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

Version Description

Download this release

Release Info

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

Code changes from version 2.13.0 to 2.14.0

Files changed (48) hide show
  1. CHANGELOG.md +41 -0
  2. inc/Assets.php +2 -2
  3. inc/UserConsent.php +2 -0
  4. inc/Utils.php +12 -0
  5. inc/base/others/cachebuster-lib.php +1 -1
  6. inc/base/others/cachebuster.php +69 -69
  7. inc/comp/PresetsPluginIntegrations.php +3 -1
  8. inc/presets/BannerPresets.php +4 -1
  9. inc/presets/UpdateNotice.php +11 -2
  10. inc/presets/pro/CustomFacebookFeedPreset.php +1 -1
  11. inc/presets/pro/ExactMetricsPreset.php +2 -0
  12. inc/presets/pro/FacebookLikePreset.php +1 -1
  13. inc/presets/pro/FacebookPagePluginPreset.php +1 -1
  14. inc/presets/pro/FacebookPixelPreset.php +1 -1
  15. inc/presets/pro/FacebookPostPreset.php +1 -1
  16. inc/presets/pro/FacebookSharePreset.php +1 -1
  17. inc/presets/pro/InstagramPostPreset.php +1 -1
  18. inc/presets/pro/blocker/GoogleMapsPreset.php +4 -1
  19. inc/scanner/Scanner.php +2 -0
  20. inc/view/BannerCustomize.php +1 -1
  21. inc/view/customize/banner/Decision.php +27 -1
  22. inc/view/customize/banner/Mobile.php +29 -0
  23. index.php +1 -1
  24. languages/real-cookie-banner-de_AT.mo +0 -0
  25. languages/real-cookie-banner-de_AT.po +84 -5
  26. languages/real-cookie-banner-de_CH.mo +0 -0
  27. languages/real-cookie-banner-de_CH.po +84 -5
  28. languages/real-cookie-banner-de_CH_informal.mo +0 -0
  29. languages/real-cookie-banner-de_CH_informal.po +84 -5
  30. languages/real-cookie-banner-de_DE.mo +0 -0
  31. languages/real-cookie-banner-de_DE.po +84 -5
  32. languages/real-cookie-banner-de_DE_formal.mo +0 -0
  33. languages/real-cookie-banner-de_DE_formal.po +82 -3
  34. languages/real-cookie-banner.pot +41 -1
  35. public/dist/138.lite.js +2 -2
  36. public/dist/138.lite.js.map +1 -1
  37. public/dist/152.lite.js +0 -2
  38. public/dist/152.lite.js.map +0 -1
  39. public/dist/193.lite.js +2 -0
  40. public/dist/{415.lite.js.map → 193.lite.js.map} +1 -1
  41. public/dist/240.lite.js +0 -2
  42. public/dist/296.lite.js +2 -0
  43. public/dist/296.lite.js.map +1 -0
  44. public/dist/385.lite.js +0 -2
  45. public/dist/{480.lite.js → 411.lite.js} +2 -2
  46. public/dist/{480.lite.js.map → 411.lite.js.map} +1 -1
  47. public/dist/415.lite.js +0 -2
  48. public/dist/{173.lite.js → 440.lite.js} +1 -2
CHANGELOG.md CHANGED
@@ -3,6 +3,47 @@
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.13.0 (2022-01-17)
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.14.0 (2022-01-25)
7
+
8
+
9
+ ### chore
10
+
11
+ * add more security hashes for disabled footer (CU-1znbady)
12
+ * add notice to mobile experience in free version as it is always responsive even in free (CU-2328pwb)
13
+ * review 1 (CU-22b6qqj)
14
+ * update Facebook provider to Meta provider for all FB service templates (CU-23kf838)
15
+ * update upgrade notice to be more descriptive about update process (CU-23kf838)
16
+
17
+
18
+ ### feat
19
+
20
+ * allow to skip failed jobs (e.g. scan process, CU-1px7fvw)
21
+ * introduce new close icon in cookie banner header (CU-22b6qqj)
22
+
23
+
24
+ ### fix
25
+
26
+ * compatibility with latest ExactMetrics Premium version (CU-23keqgb)
27
+ * compatibility with ProgressMap (Google Maps, CU-23284bc)
28
+ * config page could not be loaded if there is no admin color scheme defined (CU-23djh08)
29
+ * reduce required length of Hotjar ID to 5 instead of 7 (CU-23dk3f1)
30
+ * shortcode buttons did not work as expected with custom HTML tag (CU-23dmpjf)
31
+ * umlauts could not be saved in opt-in scripts (CU-1zb10r8)
32
+
33
+
34
+ ### refactor
35
+
36
+ * extract unblocking mechanism to @devowl-wp/headless-content-unblocker (CU-23dqww5)
37
+
38
+
39
+ ### style
40
+
41
+ * cookie banner had a small gap on the bottom when mobile experience is active (CU-237tnje)
42
+
43
+
44
+
45
+
46
+
47
  # 2.13.0 (2022-01-17)
48
 
49
 
inc/Assets.php CHANGED
@@ -323,7 +323,7 @@ class Assets {
323
  * @return array
324
  */
325
  public function overrideLocalizeScript($context) {
326
- global $_wp_admin_css_colors, $wp_version;
327
  $result = [];
328
  $core = \DevOwl\RealCookieBanner\Core::getInstance();
329
  $banner = $core->getBanner();
@@ -341,7 +341,7 @@ class Assets {
341
  $licenseActivation->getInstallationType() ===
342
  \DevOwl\RealCookieBanner\Vendor\DevOwl\RealProductManagerWpClient\license\License::INSTALLATION_TYPE_DEVELOPMENT;
343
  if ($context === self::$TYPE_ADMIN) {
344
- $colorScheme = $_wp_admin_css_colors[get_user_option('admin_color')]->colors;
345
  if (\count($colorScheme) < 4) {
346
  // Backwards-compatibility: The "modern" color scheme has only three colors, but for all
347
  // our graphs and charts we need at least 4
323
  * @return array
324
  */
325
  public function overrideLocalizeScript($context) {
326
+ global $wp_version;
327
  $result = [];
328
  $core = \DevOwl\RealCookieBanner\Core::getInstance();
329
  $banner = $core->getBanner();
341
  $licenseActivation->getInstallationType() ===
342
  \DevOwl\RealCookieBanner\Vendor\DevOwl\RealProductManagerWpClient\license\License::INSTALLATION_TYPE_DEVELOPMENT;
343
  if ($context === self::$TYPE_ADMIN) {
344
+ $colorScheme = \DevOwl\RealCookieBanner\Utils::get_admin_colors();
345
  if (\count($colorScheme) < 4) {
346
  // Backwards-compatibility: The "modern" color scheme has only three colors, but for all
347
  // our graphs and charts we need at least 4
inc/UserConsent.php CHANGED
@@ -23,9 +23,11 @@ class UserConsent {
23
  'none',
24
  'main_all',
25
  'main_essential',
 
26
  'main_custom',
27
  'ind_all',
28
  'ind_essential',
 
29
  'ind_custom',
30
  \DevOwl\RealCookieBanner\view\shortcode\LinkShortcode::BUTTON_CLICKED_IDENTIFIER,
31
  \DevOwl\RealCookieBanner\view\Blocker::BUTTON_CLICKED_IDENTIFIER
23
  'none',
24
  'main_all',
25
  'main_essential',
26
+ 'main_close_icon',
27
  'main_custom',
28
  'ind_all',
29
  'ind_essential',
30
+ 'ind_close_icon',
31
  'ind_custom',
32
  \DevOwl\RealCookieBanner\view\shortcode\LinkShortcode::BUTTON_CLICKED_IDENTIFIER,
33
  \DevOwl\RealCookieBanner\view\Blocker::BUTTON_CLICKED_IDENTIFIER
inc/Utils.php CHANGED
@@ -34,6 +34,18 @@ class Utils {
34
  */
35
  const HOST_TYPE_CURRENT_WITH_ALL_SUBDOMAINS = 'current+subdomains';
36
  const PREINSTALLED_ENV_IONOS = 'ionos';
 
 
 
 
 
 
 
 
 
 
 
 
37
  /**
38
  * Flatten an array.
39
  *
34
  */
35
  const HOST_TYPE_CURRENT_WITH_ALL_SUBDOMAINS = 'current+subdomains';
36
  const PREINSTALLED_ENV_IONOS = 'ionos';
37
+ /**
38
+ * Get the currently used admin color scheme.
39
+ *
40
+ * @return string[]
41
+ */
42
+ public static function get_admin_colors() {
43
+ global $_wp_admin_css_colors;
44
+ $defaults = ['#1d2327', '#2c3338', '#2271b1', '#72aee6'];
45
+ // In some cases this could be null, do not ask why and which plugin/theme does override this?
46
+ $cfg = $_wp_admin_css_colors[get_user_option('admin_color')] ?? null;
47
+ return $cfg === null ? $defaults : $cfg->colors ?? ['#1d2327', '#2c3338', '#2271b1', '#72aee6'];
48
+ }
49
  /**
50
  * Flatten an array.
51
  *
inc/base/others/cachebuster-lib.php CHANGED
@@ -1,5 +1,5 @@
1
  <?php
2
- /* This file was automatically generated (Mon Jan 17 2022 11:58:12 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 Jan 25 2022 08:16:46 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,74 +1,74 @@
1
  <?php
2
- /* This file was automatically generated (Mon Jan 17 2022 11:58:12 GMT+0000 (Coordinated Universal Time)). */
3
  return [
4
- 'src/public/dist/138.lite.js' => '65f1edbed7125ce49856f57b4825336f',
5
- 'src/public/dist/152.lite.js' => '4bd4c8c476a4bdd5b83306f4a75262d6',
6
- 'src/public/dist/173.lite.js' => 'aee58084f23fd41ed770cfa2c3736660',
7
- 'src/public/dist/173.pro.js' => '3e94eeed4997659296345846209a80e8',
8
- 'src/public/dist/240.lite.js' => 'df4a0a60b070f85e3cbfb59e7e28a256',
9
- 'src/public/dist/240.pro.js' => 'a3f87d6afd6c1af2ed6b89a09b349c39',
10
- 'src/public/dist/263.lite.js' => 'c33dc3e93f1a24ee2a9b1a5f8a35b2c6',
11
- 'src/public/dist/263.pro.js' => '60f5dfb763871a1a56e9853c5d512592',
12
- 'src/public/dist/289.pro.js' => '69c855491a0e6ab72b1488195574336d',
13
- 'src/public/dist/385.lite.js' => '234f1218b362b9767d13c74a8a7598a3',
14
- 'src/public/dist/385.pro.js' => 'fc6e39c96a22b9c1f5dfa017e49ecabf',
15
- 'src/public/dist/415.lite.js' => '99d862371b573b2c0fd2a21ac7f8daae',
16
- 'src/public/dist/415.pro.js' => 'f88b1240ffe3ae53a1b59bfcc2d236e6',
17
- 'src/public/dist/480.lite.js' => '4bcdabf5c2a264e28ed1e6adbfcb9b2d',
18
- 'src/public/dist/480.pro.js' => '49faaea9ad310f327053b665b1ca5b47',
19
- 'src/public/dist/57.lite.js' => 'da6bce5a01f459bf5066cd73a8b05f96',
20
- 'src/public/dist/57.pro.js' => 'b6cb0352ca13a7b78ee51cfd16c67455',
21
- 'src/public/dist/599.lite.js' => '678ec01cf83613a006e0dc5018899d7d',
22
- 'src/public/dist/599.pro.js' => 'b57d89647423f9583c5189d731e87046',
23
- 'src/public/dist/736.lite.js' => '394707088c75cf6245b792d1d36384e5',
24
- 'src/public/dist/736.pro.js' => '3148156e2137176d53b3a2ad6e38a5d8',
25
- 'src/public/dist/76.pro.js' => '27cc3bf5355c0e62b78a5822762a5db6',
26
- 'src/public/dist/77.pro.js' => 'a4c012d6971c110820a6df52230fbe62',
27
- 'src/public/dist/792.lite.js' => '3ae3362472770bd4378862a4113ba446',
28
- 'src/public/dist/792.pro.js' => 'cb7544ca7b6232e4242fb1c45d71612a',
29
- 'src/public/dist/958.lite.js' => '2b70b5d38e6454652130a92e70ccddbd',
30
- 'src/public/dist/958.pro.js' => '8e03a46a93a7d6e61e1253c7adfc846a',
31
- 'src/public/dist/admin.lite.js' => '13b89d98dfbcf831b23114c895e7b991',
32
- 'src/public/dist/admin.pro.js' => 'c35a8ef0e12fb923d406e97d3b9d2444',
33
- 'src/public/dist/banner_tcf.pro.js' => '0a192ebb20b37b5ba16d5eb30cf4abfe',
34
- 'src/public/dist/banner.lite.js' => '78d61bdf56e4b973d655e4700398bcee',
35
- 'src/public/dist/banner.pro.js' => '90c8653bbcd48883d3885e5b590a2003',
36
- 'src/public/dist/blocker_tcf.pro.js' => 'fccd8082e41cf2de84909b44cf8d5391',
37
- 'src/public/dist/blocker.lite.js' => '2043f8ed3abd83a5f58a4fef97ddae8e',
38
- 'src/public/dist/blocker.pro.js' => 'c03122ddf11d5369126c9920f79cec1a',
39
- 'src/public/dist/chunk-config-tab-blocker.lite.js' => '652220bd87a8e9a87358b3ae2f022af9',
40
- 'src/public/dist/chunk-config-tab-blocker.pro.js' => '625618008af8e743d78d7b00557fa913',
41
- 'src/public/dist/chunk-config-tab-consent.lite.js' => '45f5559796ddfbc28d54bed6a029b842',
42
- 'src/public/dist/chunk-config-tab-consent.pro.js' => '0da98b760f7e0baefed2876855b7fc4d',
43
- 'src/public/dist/chunk-config-tab-cookies.lite.js' => '96dcc692dfc7f4fcea58b2d2e3bcd0d3',
44
- 'src/public/dist/chunk-config-tab-cookies.pro.js' => '0f5f06d904591d999a071f5845243ffb',
45
- 'src/public/dist/chunk-config-tab-dashboard.lite.js' => '578517e3c86295440210b8b2173fc424',
46
- 'src/public/dist/chunk-config-tab-dashboard.pro.js' => '6a0c677be1ff59dcf13d782983519c6a',
47
- 'src/public/dist/chunk-config-tab-import.lite.js' => '23c57753509413a5b171bd4e28d6e2e1',
48
- 'src/public/dist/chunk-config-tab-import.pro.js' => '81fd03c1cd7d75ae3b05dc0e3114c3f8',
49
- 'src/public/dist/chunk-config-tab-licensing.lite.js' => 'f48f4e6e6328ffa30a2324b0e198d71e',
50
- 'src/public/dist/chunk-config-tab-licensing.pro.js' => 'e8a1602123a12544ec21728d1137d99d',
51
- 'src/public/dist/chunk-config-tab-scanner.lite.js' => '62f3f8be5b48982f4b722087a72435de',
52
- 'src/public/dist/chunk-config-tab-scanner.pro.js' => '1b5efd506c6195b69cbafbac6314309e',
53
- 'src/public/dist/chunk-config-tab-settings.lite.js' => '5ff07cce717e648b0d71637edcd8a19b',
54
- 'src/public/dist/chunk-config-tab-settings.pro.js' => '329d334863a3d20d12090eec123031db',
55
- 'src/public/dist/chunk-config-tab-tcf.lite.js' => 'c6b8bb1df15640f222665205faf27946',
56
- 'src/public/dist/chunk-config-tab-tcf.pro.js' => '876a4961d506977d38f8dee0c15d94f4',
57
- 'src/public/dist/customize_banner.lite.js' => '8cf0467b558051bc15ff935b1c54b458',
58
- 'src/public/dist/customize_banner.pro.js' => '2c7e2b1195702acbffbc3b0b6976752e',
59
- 'src/public/dist/customize.lite.js' => '72a2d6f8f356ce5154c50544a0869180',
60
- 'src/public/dist/customize.pro.js' => '9c7b0104db464190fb93a8000f8d4c85',
61
- 'src/public/dist/queue.lite.js' => '4808189af9984edb3d6aa51c8bc988a2',
62
- 'src/public/dist/queue.pro.js' => 'b695e3488bd6ffb2eb6cf68f96be530b',
63
- 'src/public/dist/vendor-admin.lite.js' => '9f9b2171aa1a1ce6a915920acbb408ab',
64
- 'src/public/dist/vendor-admin.pro.js' => 'bed418d0f11d3942c366273572c77d66',
65
- 'src/public/dist/vendor-banner_tcf.pro.js' => 'e70bfd12fd425fff314e9835d190d85a',
66
- 'src/public/dist/vendor-banner.lite.js' => 'f45c4341897da266540209eedae64277',
67
- 'src/public/dist/vendor-banner.pro.js' => '44172cee2f601c3e5575fb34a91a4a71',
68
- 'src/public/dist/vendor-customize_banner.lite.js' => 'ce3f41d06310f07b51c66fb2e124302a',
69
- 'src/public/dist/vendor-customize_banner.pro.js' => 'eb43bd8404b188225f48f4ef662621ff',
70
- 'src/public/dist/vendor-customize.lite.js' => 'a0162aec3108f0603c7e31e618ff0e84',
71
- 'src/public/dist/vendor-customize.pro.js' => 'f49c32686fd94fb70c3c1c8f07208a0a',
72
  'src/public/dist/vendor-queue.lite.js' => 'b72bded98fc236932c39620d16d7780e',
73
  'src/public/dist/vendor-queue.pro.js' => 'b72bded98fc236932c39620d16d7780e',
74
  'src/public/dist/admin.css' => '41f54422350df159f1eed5fb882a91b7',
1
  <?php
2
+ /* This file was automatically generated (Tue Jan 25 2022 08:16:46 GMT+0000 (Coordinated Universal Time)). */
3
  return [
4
+ 'src/public/dist/138.lite.js' => '7bb52c010098ad4fe761a58de9aaccc7',
5
+ 'src/public/dist/193.lite.js' => 'd7a0722155f835c915b08b6c93a9208d',
6
+ 'src/public/dist/193.pro.js' => 'd71177a05a4f8e8252c7a480e8a2842b',
7
+ 'src/public/dist/289.pro.js' => '1e66b8cdf84fecf524444a8534473092',
8
+ 'src/public/dist/296.lite.js' => '357d44b075febf76b83ebd6058d96332',
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' => '7662937bb0ede4d67920effe88274b45',
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',
18
+ 'src/public/dist/717.pro.js' => '6d4d196df6482b00c12e89c8165d2406',
19
+ 'src/public/dist/728.lite.js' => '68a96825de2ef34290003ba0ac5101a4',
20
+ 'src/public/dist/728.pro.js' => '969665cf863f3355590c7ee8278ac41f',
21
+ 'src/public/dist/795.lite.js' => 'f24c07d99365d028468d9a8eef40ca37',
22
+ 'src/public/dist/795.pro.js' => '0f2c5c70d9be03caab24126e536c3c3d',
23
+ 'src/public/dist/813.lite.js' => 'aab23dc65e1b86ccd60890e0ae75643b',
24
+ 'src/public/dist/813.pro.js' => '1979b8d159be528e4e2d3683f197dc44',
25
+ 'src/public/dist/914.lite.js' => 'e58092e06d5f33173282b43d04705d56',
26
+ 'src/public/dist/914.pro.js' => '182de60076ce6b7f80084a25543f0e63',
27
+ 'src/public/dist/930.lite.js' => 'aebeaed94b7d7b94c30efbfdafa70863',
28
+ 'src/public/dist/930.pro.js' => '757d70b559d754597000612bed3f870b',
29
+ 'src/public/dist/954.lite.js' => 'ee2cda44e2cd4c19a1f7288055efa5d0',
30
+ 'src/public/dist/954.pro.js' => 'c39fe799c52c7690d66633725671963f',
31
+ 'src/public/dist/admin.lite.js' => 'f5502333a9defac5af120e7f0dc50ac1',
32
+ 'src/public/dist/admin.pro.js' => 'd29d0d98aa3e38d2945924c5fb6a3acd',
33
+ 'src/public/dist/banner_tcf.pro.js' => '7a1d388e1799af1246b6ac8e60f8fa3b',
34
+ 'src/public/dist/banner.lite.js' => 'd1e9fd953fbfe01d2df0be11ba91380f',
35
+ 'src/public/dist/banner.pro.js' => '45def5a51ab7eb48f2607ea27ac40d5c',
36
+ 'src/public/dist/blocker_tcf.pro.js' => '0297c4ef78ca3227b735dc0f1318e562',
37
+ 'src/public/dist/blocker.lite.js' => 'bc025cc504a2b86d45eb4b9c709f8c51',
38
+ 'src/public/dist/blocker.pro.js' => 'a1becac195543fbc303fbdf9962f64f8',
39
+ 'src/public/dist/chunk-config-tab-blocker.lite.js' => '479d9b4da35c5d28745e31ea6ca11adf',
40
+ 'src/public/dist/chunk-config-tab-blocker.pro.js' => 'ce8b9ebed1cc39ea5681e9a9ba2f2cff',
41
+ 'src/public/dist/chunk-config-tab-consent.lite.js' => 'ff3c43e445f86faf57311d80bf0544fb',
42
+ 'src/public/dist/chunk-config-tab-consent.pro.js' => 'e4ba9dbe5f2465ddd52ccd327857e811',
43
+ 'src/public/dist/chunk-config-tab-cookies.lite.js' => 'aaca3c88991bec76da95f3f82dd3316f',
44
+ 'src/public/dist/chunk-config-tab-cookies.pro.js' => '2a8850894d2893e8efd3e48ea66a988f',
45
+ 'src/public/dist/chunk-config-tab-dashboard.lite.js' => 'f4683e85e66028ebbeda9ec3ec97a0c3',
46
+ 'src/public/dist/chunk-config-tab-dashboard.pro.js' => 'e66072fb10d6e2e4a29e27b5900646b7',
47
+ 'src/public/dist/chunk-config-tab-import.lite.js' => 'a4701b781883f23b497c465f77c92f0a',
48
+ 'src/public/dist/chunk-config-tab-import.pro.js' => 'c402d8c01a8d59adb4f18efc40bf502d',
49
+ 'src/public/dist/chunk-config-tab-licensing.lite.js' => 'f0bfb9817f440c8028ee4515b0ee8253',
50
+ 'src/public/dist/chunk-config-tab-licensing.pro.js' => 'a8f79d7bf7415ecc281a5b523fe6a209',
51
+ 'src/public/dist/chunk-config-tab-scanner.lite.js' => 'e68dad5f99e4f958e68e53c01c56d9f4',
52
+ 'src/public/dist/chunk-config-tab-scanner.pro.js' => 'ceabbc1a43f03279fdde5547652b02b5',
53
+ 'src/public/dist/chunk-config-tab-settings.lite.js' => '15fdbaef9d0f37e3958b76e47680d440',
54
+ 'src/public/dist/chunk-config-tab-settings.pro.js' => 'ca917178eb21159b635e2827caed1f17',
55
+ 'src/public/dist/chunk-config-tab-tcf.lite.js' => '49039aa52b34f9a47693edfb552ebe56',
56
+ 'src/public/dist/chunk-config-tab-tcf.pro.js' => '0d5d765ffa4b8ad490392c2e8e79a09b',
57
+ 'src/public/dist/customize_banner.lite.js' => 'de83ddcc7c98ca55bf8f6534c757d238',
58
+ 'src/public/dist/customize_banner.pro.js' => '662da647ba89be92e0c5cb51298cafc1',
59
+ 'src/public/dist/customize.lite.js' => '763d894b1c5e98d1aca6da9848128337',
60
+ 'src/public/dist/customize.pro.js' => 'af8e0591a8f3522bb9484256ce63a1cc',
61
+ 'src/public/dist/queue.lite.js' => '3efddadd4c9c851e49d25df9605403d3',
62
+ 'src/public/dist/queue.pro.js' => '3d524c1c920a49e0c1a566da78d5df33',
63
+ 'src/public/dist/vendor-admin.lite.js' => '82fb17c010c4bab211b9ddaf7b4798e2',
64
+ 'src/public/dist/vendor-admin.pro.js' => 'fab5160d324f4a4c8c58959a67f7c483',
65
+ 'src/public/dist/vendor-banner_tcf.pro.js' => 'da109c912783dc5b85d9513f7766e1cc',
66
+ 'src/public/dist/vendor-banner.lite.js' => '62129f980213359ac260ac5b1c6abcce',
67
+ 'src/public/dist/vendor-banner.pro.js' => '6d8907d53228cd642f894b67a39f8306',
68
+ 'src/public/dist/vendor-customize_banner.lite.js' => 'a69e5a9bb664512a5f795fc36d23b4a9',
69
+ 'src/public/dist/vendor-customize_banner.pro.js' => '0c0b40da32bec8ba7268ccdf40674f5b',
70
+ 'src/public/dist/vendor-customize.lite.js' => 'a9286d85f30eed31832d6665422ce291',
71
+ 'src/public/dist/vendor-customize.pro.js' => '6f37a40af6d37ad3812f6a14d0ff670d',
72
  'src/public/dist/vendor-queue.lite.js' => 'b72bded98fc236932c39620d16d7780e',
73
  'src/public/dist/vendor-queue.pro.js' => 'b72bded98fc236932c39620d16d7780e',
74
  'src/public/dist/admin.css' => '41f54422350df159f1eed5fb882a91b7',
inc/comp/PresetsPluginIntegrations.php CHANGED
@@ -20,7 +20,8 @@ class PresetsPluginIntegrations {
20
  const SLUG_RANKMATH_SEO_FREE = 'seo-by-rank-math';
21
  const SLUG_ANALYTIFY_PRO = 'wp-analytify-pro';
22
  const SLUG_ANALYTIFY_FREE = 'wp-analytify';
23
- const SLUG_EXACTMETRICS_PRO = 'google-analytics-dashboard-for-wp-premium';
 
24
  const SLUG_EXACTMETRICS_FREE = 'google-analytics-dashboard-for-wp';
25
  const SLUG_MONSTERINSIGHTS_PRO = 'google-analytics-premium';
26
  const SLUG_MONSTERINSIGHTS_FREE = 'google-analytics-for-wordpress';
@@ -260,6 +261,7 @@ class PresetsPluginIntegrations {
260
  $profile['install_ga_code'] === 'on';
261
  }
262
  return \is_array($auth) && isset($auth['manual_ua_code']) && !empty($auth['manual_ua_code']);
 
263
  case self::SLUG_EXACTMETRICS_PRO:
264
  case self::SLUG_EXACTMETRICS_FREE:
265
  return (\function_exists('exactmetrics_get_ua') && !empty(exactmetrics_get_ua())) ||
20
  const SLUG_RANKMATH_SEO_FREE = 'seo-by-rank-math';
21
  const SLUG_ANALYTIFY_PRO = 'wp-analytify-pro';
22
  const SLUG_ANALYTIFY_FREE = 'wp-analytify';
23
+ const SLUG_EXACTMETRICS_PRO_LEGACY = 'google-analytics-dashboard-for-wp-premium';
24
+ const SLUG_EXACTMETRICS_PRO = 'exactmetrics-premium';
25
  const SLUG_EXACTMETRICS_FREE = 'google-analytics-dashboard-for-wp';
26
  const SLUG_MONSTERINSIGHTS_PRO = 'google-analytics-premium';
27
  const SLUG_MONSTERINSIGHTS_FREE = 'google-analytics-for-wordpress';
261
  $profile['install_ga_code'] === 'on';
262
  }
263
  return \is_array($auth) && isset($auth['manual_ua_code']) && !empty($auth['manual_ua_code']);
264
+ case self::SLUG_EXACTMETRICS_PRO_LEGACY:
265
  case self::SLUG_EXACTMETRICS_PRO:
266
  case self::SLUG_EXACTMETRICS_FREE:
267
  return (\function_exists('exactmetrics_get_ua') && !empty(exactmetrics_get_ua())) ||
inc/presets/BannerPresets.php CHANGED
@@ -1864,7 +1864,10 @@ class BannerPresets {
1864
  if (
1865
  \in_array(
1866
  $controlId,
1867
- [\DevOwl\RealCookieBanner\view\customize\banner\FooterDesign::SETTING_POWERED_BY_LINK],
 
 
 
1868
  \true
1869
  )
1870
  ) {
1864
  if (
1865
  \in_array(
1866
  $controlId,
1867
+ [
1868
+ \DevOwl\RealCookieBanner\view\customize\banner\FooterDesign::SETTING_POWERED_BY_LINK,
1869
+ \DevOwl\RealCookieBanner\view\customize\banner\Decision::SETTING_SHOW_CLOSE_ICON
1870
+ ],
1871
  \true
1872
  )
1873
  ) {
inc/presets/UpdateNotice.php CHANGED
@@ -72,7 +72,7 @@ class UpdateNotice {
72
  \DevOwl\RealCookieBanner\settings\CookieGroup::TAXONOMY_NAME,
73
  ['fields' => 'ids']
74
  );
75
- $typeLabel = __('Cookie', RCB_TD);
76
  $editLink = $configPageUrl . '#/cookies/' . $groupIds[0] . '/edit/' . $update->post_id;
77
  $createLink = $configPageUrl . '#/cookies/' . $groupIds[0] . '/new';
78
  break;
@@ -90,7 +90,16 @@ class UpdateNotice {
90
  );
91
  }
92
  $dismissLink = add_query_arg(self::DISMISS_PARAM, '1');
93
- echo '</ul><p><a href="' . $dismissLink . '">' . __('Dismiss this notice', RCB_TD) . '</a></p></div>';
 
 
 
 
 
 
 
 
 
94
  }
95
  /**
96
  * Read all updates from database.
72
  \DevOwl\RealCookieBanner\settings\CookieGroup::TAXONOMY_NAME,
73
  ['fields' => 'ids']
74
  );
75
+ $typeLabel = __('Service (Cookie)', RCB_TD);
76
  $editLink = $configPageUrl . '#/cookies/' . $groupIds[0] . '/edit/' . $update->post_id;
77
  $createLink = $configPageUrl . '#/cookies/' . $groupIds[0] . '/new';
78
  break;
90
  );
91
  }
92
  $dismissLink = add_query_arg(self::DISMISS_PARAM, '1');
93
+ echo '</ul><p>' .
94
+ __(
95
+ 'The easiest way to apply the changes is to delete the service and all connected content blockers in Real Cookie Banner and create it again from the service templates.',
96
+ RCB_TD
97
+ ) .
98
+ '</p><p><a href="' .
99
+ $dismissLink .
100
+ '">' .
101
+ __('Dismiss this notice', RCB_TD) .
102
+ '</a></p></div>';
103
  }
104
  /**
105
  * Read all updates from database.
inc/presets/pro/CustomFacebookFeedPreset.php CHANGED
@@ -17,7 +17,7 @@ class CustomFacebookFeedPreset extends \DevOwl\RealCookieBanner\presets\Abstract
17
  const IDENTIFIER = \DevOwl\RealCookieBanner\presets\PresetIdentifierMap::CUSTOM_FACEBOOK_FEED;
18
  const SLUG_PRO = 'custom-facebook-feed-pro';
19
  const SLUG_FREE = 'custom-facebook-feed';
20
- const VERSION = 1;
21
  // Documented in AbstractPreset
22
  public function common() {
23
  $name = 'Custom Facebook Feed';
17
  const IDENTIFIER = \DevOwl\RealCookieBanner\presets\PresetIdentifierMap::CUSTOM_FACEBOOK_FEED;
18
  const SLUG_PRO = 'custom-facebook-feed-pro';
19
  const SLUG_FREE = 'custom-facebook-feed';
20
+ const VERSION = 2;
21
  // Documented in AbstractPreset
22
  public function common() {
23
  $name = 'Custom Facebook Feed';
inc/presets/pro/ExactMetricsPreset.php CHANGED
@@ -16,6 +16,7 @@ use DevOwl\RealCookieBanner\presets\PresetIdentifierMap;
16
  */
17
  class ExactMetricsPreset extends \DevOwl\RealCookieBanner\presets\AbstractCookiePreset {
18
  const IDENTIFIER = \DevOwl\RealCookieBanner\presets\PresetIdentifierMap::EXACT_METRICS;
 
19
  const SLUG_PRO = \DevOwl\RealCookieBanner\comp\PresetsPluginIntegrations::SLUG_EXACTMETRICS_PRO;
20
  const SLUG_FREE = \DevOwl\RealCookieBanner\comp\PresetsPluginIntegrations::SLUG_EXACTMETRICS_FREE;
21
  const VERSION = \DevOwl\RealCookieBanner\presets\pro\GoogleAnalyticsPreset::VERSION;
@@ -47,6 +48,7 @@ class ExactMetricsPreset extends \DevOwl\RealCookieBanner\presets\AbstractCookie
47
  // Self-explanatory
48
  public static function needs() {
49
  return \DevOwl\RealCookieBanner\presets\middleware\DisablePresetByNeedsMiddleware::generateNeedsForSlugs([
 
50
  self::SLUG_PRO,
51
  self::SLUG_FREE
52
  ]);
16
  */
17
  class ExactMetricsPreset extends \DevOwl\RealCookieBanner\presets\AbstractCookiePreset {
18
  const IDENTIFIER = \DevOwl\RealCookieBanner\presets\PresetIdentifierMap::EXACT_METRICS;
19
+ const SLUG_PRO_LEGACY = \DevOwl\RealCookieBanner\comp\PresetsPluginIntegrations::SLUG_EXACTMETRICS_PRO_LEGACY;
20
  const SLUG_PRO = \DevOwl\RealCookieBanner\comp\PresetsPluginIntegrations::SLUG_EXACTMETRICS_PRO;
21
  const SLUG_FREE = \DevOwl\RealCookieBanner\comp\PresetsPluginIntegrations::SLUG_EXACTMETRICS_FREE;
22
  const VERSION = \DevOwl\RealCookieBanner\presets\pro\GoogleAnalyticsPreset::VERSION;
48
  // Self-explanatory
49
  public static function needs() {
50
  return \DevOwl\RealCookieBanner\presets\middleware\DisablePresetByNeedsMiddleware::generateNeedsForSlugs([
51
+ self::SLUG_PRO_LEGACY,
52
  self::SLUG_PRO,
53
  self::SLUG_FREE
54
  ]);
inc/presets/pro/FacebookLikePreset.php CHANGED
@@ -14,7 +14,7 @@ use DevOwl\RealCookieBanner\presets\PresetIdentifierMap;
14
  */
15
  class FacebookLikePreset extends \DevOwl\RealCookieBanner\presets\AbstractCookiePreset {
16
  const IDENTIFIER = \DevOwl\RealCookieBanner\presets\PresetIdentifierMap::FACEBOOK_LIKE;
17
- const VERSION = 1;
18
  const NONCE_LENGTH = 8;
19
  // Documented in AbstractPreset
20
  public function common() {
14
  */
15
  class FacebookLikePreset extends \DevOwl\RealCookieBanner\presets\AbstractCookiePreset {
16
  const IDENTIFIER = \DevOwl\RealCookieBanner\presets\PresetIdentifierMap::FACEBOOK_LIKE;
17
+ const VERSION = 2;
18
  const NONCE_LENGTH = 8;
19
  // Documented in AbstractPreset
20
  public function common() {
inc/presets/pro/FacebookPagePluginPreset.php CHANGED
@@ -14,7 +14,7 @@ use DevOwl\RealCookieBanner\presets\PresetIdentifierMap;
14
  */
15
  class FacebookPagePluginPreset extends \DevOwl\RealCookieBanner\presets\AbstractCookiePreset {
16
  const IDENTIFIER = \DevOwl\RealCookieBanner\presets\PresetIdentifierMap::FACEBOOK_PAGE_PLUGIN;
17
- const VERSION = 1;
18
  // Documented in AbstractPreset
19
  public function common() {
20
  $name = 'Facebook Page Plugin';
14
  */
15
  class FacebookPagePluginPreset extends \DevOwl\RealCookieBanner\presets\AbstractCookiePreset {
16
  const IDENTIFIER = \DevOwl\RealCookieBanner\presets\PresetIdentifierMap::FACEBOOK_PAGE_PLUGIN;
17
+ const VERSION = 2;
18
  // Documented in AbstractPreset
19
  public function common() {
20
  $name = 'Facebook Page Plugin';
inc/presets/pro/FacebookPixelPreset.php CHANGED
@@ -14,7 +14,7 @@ use DevOwl\RealCookieBanner\presets\PresetIdentifierMap;
14
  */
15
  class FacebookPixelPreset extends \DevOwl\RealCookieBanner\presets\AbstractCookiePreset {
16
  const IDENTIFIER = \DevOwl\RealCookieBanner\presets\PresetIdentifierMap::FACEBOOK_PIXEL;
17
- const VERSION = 2;
18
  // Documented in AbstractPreset
19
  public function common() {
20
  $name = 'Facebook Pixel';
14
  */
15
  class FacebookPixelPreset extends \DevOwl\RealCookieBanner\presets\AbstractCookiePreset {
16
  const IDENTIFIER = \DevOwl\RealCookieBanner\presets\PresetIdentifierMap::FACEBOOK_PIXEL;
17
+ const VERSION = 3;
18
  // Documented in AbstractPreset
19
  public function common() {
20
  $name = 'Facebook Pixel';
inc/presets/pro/FacebookPostPreset.php CHANGED
@@ -14,7 +14,7 @@ use DevOwl\RealCookieBanner\presets\PresetIdentifierMap;
14
  */
15
  class FacebookPostPreset extends \DevOwl\RealCookieBanner\presets\AbstractCookiePreset {
16
  const IDENTIFIER = \DevOwl\RealCookieBanner\presets\PresetIdentifierMap::FACEBOOK_POST;
17
- const VERSION = 2;
18
  // Documented in AbstractPreset
19
  public function common() {
20
  $name = 'Facebook (Post)';
14
  */
15
  class FacebookPostPreset extends \DevOwl\RealCookieBanner\presets\AbstractCookiePreset {
16
  const IDENTIFIER = \DevOwl\RealCookieBanner\presets\PresetIdentifierMap::FACEBOOK_POST;
17
+ const VERSION = 3;
18
  // Documented in AbstractPreset
19
  public function common() {
20
  $name = 'Facebook (Post)';
inc/presets/pro/FacebookSharePreset.php CHANGED
@@ -14,7 +14,7 @@ use DevOwl\RealCookieBanner\presets\PresetIdentifierMap;
14
  */
15
  class FacebookSharePreset extends \DevOwl\RealCookieBanner\presets\AbstractCookiePreset {
16
  const IDENTIFIER = \DevOwl\RealCookieBanner\presets\PresetIdentifierMap::FACEBOOK_SHARE;
17
- const VERSION = 1;
18
  // Documented in AbstractPreset
19
  public function common() {
20
  $name = 'Facebook (Share)';
14
  */
15
  class FacebookSharePreset extends \DevOwl\RealCookieBanner\presets\AbstractCookiePreset {
16
  const IDENTIFIER = \DevOwl\RealCookieBanner\presets\PresetIdentifierMap::FACEBOOK_SHARE;
17
+ const VERSION = 2;
18
  // Documented in AbstractPreset
19
  public function common() {
20
  $name = 'Facebook (Share)';
inc/presets/pro/InstagramPostPreset.php CHANGED
@@ -14,7 +14,7 @@ use DevOwl\RealCookieBanner\presets\PresetIdentifierMap;
14
  */
15
  class InstagramPostPreset extends \DevOwl\RealCookieBanner\presets\AbstractCookiePreset {
16
  const IDENTIFIER = \DevOwl\RealCookieBanner\presets\PresetIdentifierMap::INSTAGRAM_POST;
17
- const VERSION = 1;
18
  // Documented in AbstractPreset
19
  public function common() {
20
  $name = 'Instagram (Post)';
14
  */
15
  class InstagramPostPreset extends \DevOwl\RealCookieBanner\presets\AbstractCookiePreset {
16
  const IDENTIFIER = \DevOwl\RealCookieBanner\presets\PresetIdentifierMap::INSTAGRAM_POST;
17
+ const VERSION = 2;
18
  // Documented in AbstractPreset
19
  public function common() {
20
  $name = 'Instagram (Post)';
inc/presets/pro/blocker/GoogleMapsPreset.php CHANGED
@@ -90,7 +90,10 @@ class GoogleMapsPreset extends \DevOwl\RealCookieBanner\presets\AbstractBlockerP
90
  'div[class*="wpforms-geolocation-map"]',
91
  '*/wp-content/plugins/wpforms-geolocation/assets/js/wpforms-geolocation-google-api*',
92
  // [Plugin Comp] https://www.wp-immomakler.de/
93
- 'iframe[src*="?callback=map-iframe"]'
 
 
 
94
  ]
95
  ],
96
  'logoFile' => \DevOwl\RealCookieBanner\Core::getInstance()->getBaseAssetsUrl('logos/google-maps.png')
90
  'div[class*="wpforms-geolocation-map"]',
91
  '*/wp-content/plugins/wpforms-geolocation/assets/js/wpforms-geolocation-google-api*',
92
  // [Plugin Comp] https://www.wp-immomakler.de/
93
+ 'iframe[src*="?callback=map-iframe"]',
94
+ // [Plugin Comp] https://codecanyon.net/item/progress-map-wordpress-plugin/5581719
95
+ '*/wp-content/plugins/codespacing-progress-map/assets/js/*',
96
+ 'div[class*="codespacing_progress_map_area"]'
97
  ]
98
  ],
99
  'logoFile' => \DevOwl\RealCookieBanner\Core::getInstance()->getBaseAssetsUrl('logos/google-maps.png')
inc/scanner/Scanner.php CHANGED
@@ -374,6 +374,8 @@ class Scanner {
374
  'url' => __('https://devowl.io/support/', RCB_TD),
375
  'linkText' => __('Contact support', RCB_TD)
376
  ];
 
 
377
  break;
378
  default:
379
  }
374
  'url' => __('https://devowl.io/support/', RCB_TD),
375
  'linkText' => __('Contact support', RCB_TD)
376
  ];
377
+ $actions[] = ['action' => 'delete', 'linkText' => __('Cancel scan', RCB_TD)];
378
+ $actions[] = ['action' => 'skip', 'linkText' => __('Skip failed pages', RCB_TD)];
379
  break;
380
  default:
381
  }
inc/view/BannerCustomize.php CHANGED
@@ -265,7 +265,7 @@ class BannerCustomize extends \DevOwl\RealCookieBanner\Vendor\DevOwl\Customize\A
265
  \in_array(
266
  \substr(\hash('sha256', 'LAQ%&^dwUCbHX1fI$89EeFlCxZ8tYXLA' . $host), 0, 13),
267
  // prettier-ignore
268
- ['5efc1df4cec8a', '05f5e3c8e0fc6', '7b75f47cc1fb6', 'ee7f2e22c5143', '7dfb073287c9d', '6b3a5a54843ba', 'd0bd5fd52695b', 'f3965a1973c95', 'cf6bc49255da5', '0db99e3ed4768', 'b7ca952882b18', '295979337eb5b', '5d213e2441d3b', '613253349aa77', 'cbb312e5dc035', '3a342098b20e3', '44b3b88600d4d', '2c3add3ab8893', 'c7e7b4291e538', '1dc7de9c7e3e0', 'd64b3e3290933', 'a67f4187a0759', '627d42b473b29', 'fbec9c21dd094', 'cc2ead8b2d48e', '85b05544fbbb2', 'bbb981d30c49f', 'ddd786e73bebf', 'a6da8de130ce5', 'cfaf5fee097d2', '7d3784ff1a192', '668c6730c1055', 'e7c54b29a080d', 'f7c719a09e699', '6d16c716afb22', 'cdc5534e75a2e', 'a80510ca3c8d0', '46d9ca0bb0598', '7653a763b4571', '0917cf1a8e6f8', '19bcc9e27a9b4', 'b19d8fc45bf40', 'bcc237d61f9b3', '35902166dcac1', '4715b6dd0f9a2', '266fc518bdd32', '5320cb490816c', '0ff2d275ecec7', '9bfab40b7dda5', 'ccf36bd1fe87e', '2772a7c803dde', '7c163b64eaeb4', '96879d0e156f9', 'd1c10df1d0641', 'ccb9264d3177d', 'e1fb232010c0b', '7d9e4b02a3e94', 'e142ac706d3ff', 'dcbdaf2a1f196', '3b319f347645c', 'd77a969945b84', '7dff5c7dcd7bd', 'b6de4d4f271d6', '1e5df2e167056', 'e8bd2f1ff0144', '97e887079e96b'],
269
  \true
270
  )
271
  ) {
265
  \in_array(
266
  \substr(\hash('sha256', 'LAQ%&^dwUCbHX1fI$89EeFlCxZ8tYXLA' . $host), 0, 13),
267
  // prettier-ignore
268
+ ['97c6d0f2d9057', '5efc1df4cec8a', 'bc44e506cd9bc', '05f5e3c8e0fc6', 'a61c3f5d4ff73', 'e15f40f8794b7', 'ff88cd49109fa', '01756c827de40', '7b75f47cc1fb6', '1a79435ace736', '995ec24c19fe0', 'ef057c2175b94', 'c5f24fb4f74db', 'd320449287478', 'ccba9618b131f', '733245bc304ae', 'ed8dc872cc923', '3f873ea04f143', '081c7e86b8621', '0e843294aaa59', 'ae5fcf377347a', 'ee7f2e22c5143', 'be10a7a6ca787', '44f77b50d4d7d', 'e35c368b2b63d', 'c5295ed1ebd4e', '7dfb073287c9d', '6b3a5a54843ba', 'd01f0ef2dfcb7', '44ce97abf3b01', 'd0bd5fd52695b', 'f3965a1973c95', 'ab2f05725d082', 'cf6bc49255da5', 'e5dd174e2dc4d', '49d51a7324d27', '0db99e3ed4768', 'a8b588265b94f', 'e703e251d8623', '9a34a738222fe', '4d24168ff43d9', 'fc7cbe78bb50e', 'b7ca952882b18', '06387e16092f4', '295979337eb5b', '5d213e2441d3b', '76d3cb2210259', '613253349aa77', 'cbb312e5dc035', '3a342098b20e3', 'f156591833726', '44b3b88600d4d', '2c3add3ab8893', 'c7e7b4291e538', '7ff82c7bfb6d5', '19a32ca94f3da', '1dc7de9c7e3e0', '8745ad151f019', '95f3140357968', 'd64b3e3290933', 'a67f4187a0759', 'ab17a79181a73', '982660176a206', '32b259167515d', '04f060e086c3a', '980b4d46ca70e', '4c86101d9c571', '627d42b473b29', 'fbec9c21dd094', 'b22fee3b99418', '2a4e77bfec9aa', '78060ddcb192d', 'ab604fbbdc920', '9d55971f4d1f2', '16b17f6009005', 'd73678d1a0980', 'cc2ead8b2d48e', '85b05544fbbb2', '6c60bab27f34f', '0eae7b1e0f25e', 'd18eafa44503d', 'bbb981d30c49f', '6f70cb91d18b0', 'ddd786e73bebf', 'a6da8de130ce5', '9fd3073399cba', '9fdfae9fc240e', 'cfaf5fee097d2', '861ec3d465a80', 'b1ee046302f93', 'a63cec34e84a8', '63f12de75c15b', '9ebe9bbe105ed', 'e8e82e9682bbc', '7d3784ff1a192', 'eee9848a2853e', 'fbaea22d19034', 'aebd1b756f001', '668c6730c1055', 'e7c54b29a080d', '563ef56ea6866', 'e7091fed7c9ef', '551c6821836e3', 'f7c719a09e699', '1231ee45e9595', '6d16c716afb22', '987a5267c0b37', '5ed9d26fc7710', '70c3a0b275576', '7839572c07676', 'af17f8f0d7dcc', 'cdc5534e75a2e', 'a80510ca3c8d0', '8b139388de527', '46d9ca0bb0598', '7653a763b4571', '558d1a7602df6', '657ebf3e1560b', '1f896990be257', 'e3c66ef322323', '4e01179ea7acf', 'cd87e3a513d7a', '34dd3546af646', 'cf253d61eaa01', 'dfc073a5b8f23', 'ee65a10563b99', 'b827c02e8de71', '4cb5a392d3a72', '5b6c4f191871e', 'aeb32cb9e2fd0', 'd4e73a944b9c0', '703a0db1576a3', '28f09969bad5b', 'ee42caa338e6d', '92f6ba77b0c5f', 'b61ea3a6c3383', '0917cf1a8e6f8', '19bcc9e27a9b4', '05831156578e0', 'b19d8fc45bf40', 'ddccc665f6c18', '17e0df1cf2288', 'e2edd8fd7151a', 'd2d8af9ecbac0', '1923c63603d8f', 'b96198915cdf4', '4ab2437da8e2a', 'bcc237d61f9b3', 'da38cbbf41d8e', 'baffe184077c1', '35902166dcac1', '4715b6dd0f9a2', '3b087e9f5c643', 'c1fe868fe958f', '266fc518bdd32', 'ad985bb7d53e8', '3c9816c40f866', '05abc1d36e413', 'a6d2d8fe53c54', '68de0dbeb1950', '5320cb490816c', '1aa2adf62ba3f', 'de2e81c8b09e7', '51b50edcb77fb', '6c956e9ee6c0a', '4de4f0698da81', '98ccd3232246a', '9e609c4fff22d', 'cafe9785cefb1', '0ff2d275ecec7', '636c2d54234f1', '83f96c0ac2b9b', '9bfab40b7dda5', 'd53651d0ef9e4', 'b04e9303a63c1', 'a9d7328f63ebc', 'ccf36bd1fe87e', '2772a7c803dde', '1c88eade55e50', '7c163b64eaeb4', 'ec18019ebcc34', 'a0d22e2fce2c3', '6916a3668afaf', '6d51480bdbaae', '99d863cf72d19', '278f92051cf64', '398e40d05702f', 'f8c973e675b05', '66ea2beeb88c5', '96879d0e156f9', 'b4f9fc7509359', '3c6d359735dee', '47802f85f1344', '5144d95702c98', '52e3dedaa1a30', 'd1c10df1d0641', 'f2fb2b4bd0ca1', 'de38e8b53b886', '9da48f9bf19c5', '0171121e14750', '39729b25ad2c7', 'e0e590a639296', 'c124348c96ef9', '8ce8dc22859fb', 'eed1e260727f8', '6d5363047c59f', 'ccb9264d3177d', 'ccad4af4183c9', 'e6bef77ef741a', '974f6dc47d949', 'c938705bcdcb3', '284f61c9c6fa2', '443ee59ee5756', 'e4de5ec4381de', 'e94f14c0e6946', '1b5ed8ba8bfdb', 'fda74c2cd8a5a', '14e83ea5c36ca', '0d7d553f18544', 'e564b0be7cf1f', 'd67751f9abcfe', 'bd1812cc7e01f', '9f26efe2410f4', 'e1fb232010c0b', '7d9e4b02a3e94', '12f6331fd2dbf', 'e8bc00ca2321f', '91cc645641b33', '31caaedd34ee3', 'e142ac706d3ff', 'b56c8bb53075c', 'b53af8107e6da', '54c9f8da355e4', '214983b7b2525', 'dcbdaf2a1f196', '746c96c7fe316', 'd989846ab6fa4', 'e6f915b95fe9b', '0ffea8bc70b85', 'dd8eb330b2b1b', 'ca3fb41e6e38b', '36e9b5d6aa397', '3b319f347645c', '600d9a3579977', 'aaabdce812331', '390e49ccd9b08', '9f0778e790f9b', 'd77a969945b84', 'aa2ae007ad6ce', '0f9398ec13ed1', '7dff5c7dcd7bd', 'dea018c7c4948', 'b6de4d4f271d6', '1e5df2e167056', 'e8bd2f1ff0144', '97e887079e96b', 'c171179943c98', '7a6d93d434290', 'b1c8e7ddcad0e', 'eefa1ca79aed6', '6d5755a9b910a', 'fb814fd142ef1', 'fcfbc97fdc098', 'a00ab3b4d4595', 'feebbbf4b08de', '11656c86726c2', '85881c0588d1f'],
269
  \true
270
  )
271
  ) {
inc/view/customize/banner/Decision.php CHANGED
@@ -23,11 +23,13 @@ class Decision {
23
  const SETTING = RCB_OPT_PREFIX . '-banner-decision';
24
  const SETTING_ACCEPT_ALL = self::SETTING . '-accept-all';
25
  const SETTING_ACCEPT_ESSENTIALS = self::SETTING . '-accept-essentials';
 
26
  const SETTING_ACCEPT_INDIVIDUAL = self::SETTING . '-accept-individual';
27
  const SETTING_GROUPS_FIRST_VIEW = self::SETTING . '-groups-first-view';
28
  const SETTING_SAVE_BUTTON = self::SETTING . '-save-button';
29
  const DEFAULT_ACCEPT_ALL = 'button';
30
  const DEFAULT_ACCEPT_ESSENTIALS = 'button';
 
31
  const DEFAULT_ACCEPT_INDIVIDUAL = 'link';
32
  const DEFAULT_GROUPS_FIRST_VIEW = \false;
33
  const DEFAULT_SAVE_BUTTON = 'always';
@@ -49,6 +51,13 @@ class Decision {
49
  RCB_TD
50
  )
51
  );
 
 
 
 
 
 
 
52
  return [
53
  'name' => 'decision',
54
  'title' => __('Consent options', RCB_TD),
@@ -101,7 +110,24 @@ class Decision {
101
  self::CUSTOM_HTML_LEGAL_NOTICE_ESSENTIALS => [
102
  'class' => \DevOwl\RealCookieBanner\Vendor\DevOwl\Customize\controls\CustomHTML::class,
103
  'name' => 'customHtmlDecisionLegalNoticeEssentials',
104
- 'description' => $textLegalNotice
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
105
  ],
106
  self::SETTING_ACCEPT_INDIVIDUAL => [
107
  'name' => 'acceptIndividual',
23
  const SETTING = RCB_OPT_PREFIX . '-banner-decision';
24
  const SETTING_ACCEPT_ALL = self::SETTING . '-accept-all';
25
  const SETTING_ACCEPT_ESSENTIALS = self::SETTING . '-accept-essentials';
26
+ const SETTING_SHOW_CLOSE_ICON = self::SETTING . '-show-close-icon';
27
  const SETTING_ACCEPT_INDIVIDUAL = self::SETTING . '-accept-individual';
28
  const SETTING_GROUPS_FIRST_VIEW = self::SETTING . '-groups-first-view';
29
  const SETTING_SAVE_BUTTON = self::SETTING . '-save-button';
30
  const DEFAULT_ACCEPT_ALL = 'button';
31
  const DEFAULT_ACCEPT_ESSENTIALS = 'button';
32
+ const DEFAULT_SHOW_CLOSE_ICON = \false;
33
  const DEFAULT_ACCEPT_INDIVIDUAL = 'link';
34
  const DEFAULT_GROUPS_FIRST_VIEW = \false;
35
  const DEFAULT_SAVE_BUTTON = 'always';
51
  RCB_TD
52
  )
53
  );
54
+ $textLegalNoticeEssentials = \sprintf(
55
+ '<div class="notice notice-warning inline below-h2 notice-alt" style="margin: 10px 0 0 0"><p>%s</p></div>',
56
+ __(
57
+ 'Please note that from a legal perspective, you must give your visitor an equivalent way to give or refuse consent. In some countries of the EU it is also allowed to display an "X" in the upper right corner of the cookie banner instead of a button/link. With the currently selected setting you are taking a risk!',
58
+ RCB_TD
59
+ )
60
+ );
61
  return [
62
  'name' => 'decision',
63
  'title' => __('Consent options', RCB_TD),
110
  self::CUSTOM_HTML_LEGAL_NOTICE_ESSENTIALS => [
111
  'class' => \DevOwl\RealCookieBanner\Vendor\DevOwl\Customize\controls\CustomHTML::class,
112
  'name' => 'customHtmlDecisionLegalNoticeEssentials',
113
+ 'description' => $textLegalNoticeEssentials
114
+ ],
115
+ self::SETTING_SHOW_CLOSE_ICON => [
116
+ 'name' => 'showCloseIcon',
117
+ 'label' => __('Show close icon, to continue without consent', RCB_TD),
118
+ 'description' => __(
119
+ 'An "X" icon is displayed at the top right of the cookie banner, which allows website visitors to close the cookie banner. It has the same function as clicking on the "Continue without consent" button/link.',
120
+ RCB_TD
121
+ ),
122
+ 'type' => 'checkbox',
123
+ 'setting' => [
124
+ // In Italian, the checkbox is required
125
+ 'default' => get_locale() === 'it_IT' ? \true : self::DEFAULT_SHOW_CLOSE_ICON,
126
+ 'sanitize_callback' => [
127
+ \DevOwl\RealCookieBanner\Vendor\DevOwl\Customize\AbstractCustomizePanel::class,
128
+ 'sanitize_checkbox'
129
+ ]
130
+ ]
131
  ],
132
  self::SETTING_ACCEPT_INDIVIDUAL => [
133
  'name' => 'acceptIndividual',
inc/view/customize/banner/Mobile.php CHANGED
@@ -3,6 +3,7 @@
3
  namespace DevOwl\RealCookieBanner\view\customize\banner;
4
 
5
  use DevOwl\RealCookieBanner\Vendor\DevOwl\Customize\AbstractCustomizePanel;
 
6
  use DevOwl\RealCookieBanner\base\UtilsProvider;
7
  use DevOwl\RealCookieBanner\view\BannerCustomize;
8
  // @codeCoverageIgnoreStart
@@ -15,6 +16,9 @@ use DevOwl\RealCookieBanner\view\BannerCustomize;
15
  class Mobile {
16
  use UtilsProvider;
17
  const SECTION = \DevOwl\RealCookieBanner\view\BannerCustomize::PANEL_MAIN . '-mobile';
 
 
 
18
  const SETTING = RCB_OPT_PREFIX . '-banner-mobile';
19
  const SETTING_ENABLED = self::SETTING . '-enabled';
20
  const SETTING_MAX_HEIGHT = self::SETTING . '-max-height';
@@ -32,10 +36,30 @@ class Mobile {
32
  * Return arguments for this section.
33
  */
34
  public function args() {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
  return [
36
  'name' => 'mobile',
37
  'title' => __('Mobile experience', RCB_TD),
38
  'controls' => [
 
 
 
 
 
39
  self::SETTING_ENABLED => [
40
  'name' => 'enabled',
41
  'type' => 'mobileSwitcher',
@@ -66,6 +90,11 @@ class Mobile {
66
  ]
67
  ]
68
  ],
 
 
 
 
 
69
  self::SETTING_ALIGNMENT => [
70
  'name' => 'alignment',
71
  'label' => __('Alignment', RCB_TD),
3
  namespace DevOwl\RealCookieBanner\view\customize\banner;
4
 
5
  use DevOwl\RealCookieBanner\Vendor\DevOwl\Customize\AbstractCustomizePanel;
6
+ use DevOwl\RealCookieBanner\Vendor\DevOwl\Customize\controls\CustomHTML;
7
  use DevOwl\RealCookieBanner\base\UtilsProvider;
8
  use DevOwl\RealCookieBanner\view\BannerCustomize;
9
  // @codeCoverageIgnoreStart
16
  class Mobile {
17
  use UtilsProvider;
18
  const SECTION = \DevOwl\RealCookieBanner\view\BannerCustomize::PANEL_MAIN . '-mobile';
19
+ const CUSTOM_HTML_HIDE_HEADER_IGNORE_DUE_CLOSE_ICON = self::SECTION . '-custom-html-hide-header-due-close-icon';
20
+ const CUSTOM_HTML_MOBILE_EXPERIENCE_IN_FREE_VERSION =
21
+ self::SECTION . '-custom-html-mobile-experience-in-free-version-notice';
22
  const SETTING = RCB_OPT_PREFIX . '-banner-mobile';
23
  const SETTING_ENABLED = self::SETTING . '-enabled';
24
  const SETTING_MAX_HEIGHT = self::SETTING . '-max-height';
36
  * Return arguments for this section.
37
  */
38
  public function args() {
39
+ $textMobileExperienceInFreeVersion = \sprintf(
40
+ '<div class="notice notice-info inline below-h2 notice-alt" style="margin: 0; display: %s;"><p>%s</p></div>',
41
+ $this->isPro() ? 'none' : 'block',
42
+ __(
43
+ 'The cookie banner is responsive even in the free version and works on mobile devices. Only further settings for a better individual appearance on mobile devices are only included in the PRO version.',
44
+ RCB_TD
45
+ )
46
+ );
47
+ $hideHeaderIgnoredDueCloseIcon = \sprintf(
48
+ '<div class="notice notice-warning inline below-h2 notice-alt" style="margin: 10px 0 0 0"><p>%s</p></div>',
49
+ __(
50
+ 'The header <strong>will not be hidden</strong>, because otherwise there is no possibility to continue without consent in compliance with the ePrivacy Directive and the GDPR. Activate the button/link "Continue without consent" in the "Consent Options” section on level above to be able to hide the header on mobile devices!',
51
+ RCB_TD
52
+ )
53
+ );
54
  return [
55
  'name' => 'mobile',
56
  'title' => __('Mobile experience', RCB_TD),
57
  'controls' => [
58
+ self::CUSTOM_HTML_MOBILE_EXPERIENCE_IN_FREE_VERSION => [
59
+ 'class' => \DevOwl\RealCookieBanner\Vendor\DevOwl\Customize\controls\CustomHTML::class,
60
+ 'name' => 'customHtmlMobileExperienceInFreeVersionNotice',
61
+ 'description' => $textMobileExperienceInFreeVersion
62
+ ],
63
  self::SETTING_ENABLED => [
64
  'name' => 'enabled',
65
  'type' => 'mobileSwitcher',
90
  ]
91
  ]
92
  ],
93
+ self::CUSTOM_HTML_HIDE_HEADER_IGNORE_DUE_CLOSE_ICON => [
94
+ 'class' => \DevOwl\RealCookieBanner\Vendor\DevOwl\Customize\controls\CustomHTML::class,
95
+ 'name' => 'customHtmlMobileHideHeaderIgnoreDueCloseIcon',
96
+ 'description' => $hideHeaderIgnoredDueCloseIcon
97
+ ],
98
  self::SETTING_ALIGNMENT => [
99
  'name' => 'alignment',
100
  'label' => __('Alignment', RCB_TD),
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.13.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.14.0
12
  * Text Domain: real-cookie-banner
13
  * Domain Path: /languages
14
  */
languages/real-cookie-banner-de_AT.mo CHANGED
Binary file
languages/real-cookie-banner-de_AT.po CHANGED
@@ -2,10 +2,10 @@ msgid ""
2
  msgstr ""
3
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/src\n"
4
  "POT-Creation-Date: n/a\n"
5
- "PO-Revision-Date: 2022-01-17 10:19+0000\n"
6
  "Last-Translator: Matthias Günter <matthias.guenter@devowl.io>\n"
7
- "Language-Team: German <https://translate.devowl.io/projects/wordpress-real-"
8
- "cookie-banner-backend-php/develop/de/>\n"
9
  "Language: de_AT\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -676,8 +676,7 @@ msgstr ""
676
  "Keine Einwilligungen gefunden. Bitte navigiere zurück und überprüfe deine "
677
  "Eingabe."
678
 
679
- #: inc/import/ImportCookies.php:1 inc/presets/UpdateNotice.php:1
680
- #: inc/settings/Cookie.php:1
681
  msgid "Cookie"
682
  msgstr "Cookie"
683
 
@@ -4415,6 +4414,10 @@ msgstr "TCF Vendor Konfiguration"
4415
  msgid "deleted"
4416
  msgstr "gelöscht"
4417
 
 
 
 
 
4418
  #: inc/overrides/pro/Stats.php:1
4419
  msgid "Shortcode revoke"
4420
  msgstr "Widerruf Shortcode"
@@ -5425,6 +5428,10 @@ msgstr ""
5425
  "strong> einige Vorlagen aktualisiert worden sind. Bitte überprüfe deine "
5426
  "folgenden Services, um sicherzustellen, dass sie auf dem neuesten Stand sind:"
5427
 
 
 
 
 
5428
  #: inc/presets/UpdateNotice.php:1
5429
  msgid "Edit"
5430
  msgstr "Bearbeiten"
@@ -5433,6 +5440,16 @@ msgstr "Bearbeiten"
5433
  msgid "Create new from template"
5434
  msgstr "Aus Vorlage erstellen"
5435
 
 
 
 
 
 
 
 
 
 
 
5436
  #: inc/presets/UpdateNotice.php:1
5437
  msgid "Dismiss this notice"
5438
  msgstr "Hinweis ausblenden"
@@ -5453,6 +5470,14 @@ msgstr "https://devowl.io/de/support/"
5453
  msgid "Contact support"
5454
  msgstr "Support kontaktieren"
5455
 
 
 
 
 
 
 
 
 
5456
  #. translators:
5457
  #: inc/scanner/Scanner.php:1
5458
  msgid "%1$d pages failed to be scanned."
@@ -6149,6 +6174,20 @@ msgstr ""
6149
  "Möglichkeit geben musst. Mit der aktuell gewählten Einstellung gehst du ein "
6150
  "Risiko ein."
6151
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6152
  #: inc/view/customize/banner/Decision.php:1
6153
  msgid "Consent options"
6154
  msgstr "Einwilligungs-Optionen"
@@ -6203,6 +6242,21 @@ msgstr ""
6203
  "Besucher diese Option – ähnlich wie der Button/Link “Alle akzeptieren” – "
6204
  "angeboten werden."
6205
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6206
  #: inc/view/customize/banner/Decision.php:1
6207
  #: inc/view/customize/banner/individual/Texts.php:1
6208
  #: inc/view/customize/banner/Texts.php:1
@@ -6581,6 +6635,31 @@ msgstr ""
6581
  msgid "Please fill in a valid URL!"
6582
  msgstr "Bitte trage eine gültige URL ein!"
6583
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6584
  #: inc/view/customize/banner/Mobile.php:1
6585
  msgid "Mobile experience"
6586
  msgstr "Mobile Nutzererfahrung"
2
  msgstr ""
3
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/src\n"
4
  "POT-Creation-Date: n/a\n"
5
+ "PO-Revision-Date: 2022-01-24 16:34+0000\n"
6
  "Last-Translator: Matthias Günter <matthias.guenter@devowl.io>\n"
7
+ "Language-Team: German <https://translate.devowl.io/projects/"
8
+ "wordpress-real-cookie-banner-backend-php/develop/de/>\n"
9
  "Language: de_AT\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
676
  "Keine Einwilligungen gefunden. Bitte navigiere zurück und überprüfe deine "
677
  "Eingabe."
678
 
679
+ #: inc/import/ImportCookies.php:1 inc/settings/Cookie.php:1
 
680
  msgid "Cookie"
681
  msgstr "Cookie"
682
 
4414
  msgid "deleted"
4415
  msgstr "gelöscht"
4416
 
4417
+ #: inc/overrides/pro/Stats.php:1
4418
+ msgid "Close icon"
4419
+ msgstr "Schließen-Symbol"
4420
+
4421
  #: inc/overrides/pro/Stats.php:1
4422
  msgid "Shortcode revoke"
4423
  msgstr "Widerruf Shortcode"
5428
  "strong> einige Vorlagen aktualisiert worden sind. Bitte überprüfe deine "
5429
  "folgenden Services, um sicherzustellen, dass sie auf dem neuesten Stand sind:"
5430
 
5431
+ #: inc/presets/UpdateNotice.php:1
5432
+ msgid "Service (Cookie)"
5433
+ msgstr "Service (Cookie)"
5434
+
5435
  #: inc/presets/UpdateNotice.php:1
5436
  msgid "Edit"
5437
  msgstr "Bearbeiten"
5440
  msgid "Create new from template"
5441
  msgstr "Aus Vorlage erstellen"
5442
 
5443
+ #: inc/presets/UpdateNotice.php:1
5444
+ msgid ""
5445
+ "The easiest way to apply the changes is to delete the service and all "
5446
+ "connected content blockers in Real Cookie Banner and create it again from "
5447
+ "the service templates."
5448
+ msgstr ""
5449
+ "Am einfachsten kannst du die Änderungen übernehmen, indem du den Service und "
5450
+ "alle damit verbundenen Content Blocker in Real Cookie Banner löschst und ihn "
5451
+ "aus den Service-Vorlagen neu erstellst."
5452
+
5453
  #: inc/presets/UpdateNotice.php:1
5454
  msgid "Dismiss this notice"
5455
  msgstr "Hinweis ausblenden"
5470
  msgid "Contact support"
5471
  msgstr "Support kontaktieren"
5472
 
5473
+ #: inc/scanner/Scanner.php:1
5474
+ msgid "Cancel scan"
5475
+ msgstr "Scan abbrechen"
5476
+
5477
+ #: inc/scanner/Scanner.php:1
5478
+ msgid "Skip failed pages"
5479
+ msgstr "Fehlerhafte Seiten überspringen"
5480
+
5481
  #. translators:
5482
  #: inc/scanner/Scanner.php:1
5483
  msgid "%1$d pages failed to be scanned."
6174
  "Möglichkeit geben musst. Mit der aktuell gewählten Einstellung gehst du ein "
6175
  "Risiko ein."
6176
 
6177
+ #: inc/view/customize/banner/Decision.php:1
6178
+ msgid ""
6179
+ "Please note that from a legal perspective, you must give your visitor an "
6180
+ "equivalent way to give or refuse consent. In some countries of the EU it is "
6181
+ "also allowed to display an \"X\" in the upper right corner of the cookie "
6182
+ "banner instead of a button/link. With the currently selected setting you are "
6183
+ "taking a risk!"
6184
+ msgstr ""
6185
+ "Bitte beachte, dass du deinem Besucher aus rechtlicher Sicht eine "
6186
+ "gleichwertige Möglichkeit geben musst, seine Einwilligung zu geben oder zu "
6187
+ "verweigern. In einigen Ländern der EU ist es auch erlaubt, ein \"X\" in der "
6188
+ "oberen rechten Ecke des Cookie Banners anstelle eines Buttons/Links "
6189
+ "anzuzeigen. Mit der aktuell gewählten Einstellung gehst du ein Risiko ein!"
6190
+
6191
  #: inc/view/customize/banner/Decision.php:1
6192
  msgid "Consent options"
6193
  msgstr "Einwilligungs-Optionen"
6242
  "Besucher diese Option – ähnlich wie der Button/Link “Alle akzeptieren” – "
6243
  "angeboten werden."
6244
 
6245
+ #: inc/view/customize/banner/Decision.php:1
6246
+ msgid "Show close icon, to continue without consent"
6247
+ msgstr "Schließen-Symbol anzeigen, um ohne Einwilligung fortzufahren"
6248
+
6249
+ #: inc/view/customize/banner/Decision.php:1
6250
+ msgid ""
6251
+ "An \"X\" icon is displayed at the top right of the cookie banner, which "
6252
+ "allows website visitors to close the cookie banner. It has the same function "
6253
+ "as clicking on the \"Continue without consent\" button/link."
6254
+ msgstr ""
6255
+ "Oben rechts im Cookie Banner wird ein \"X\"-Symbol angezeigt, mit dem "
6256
+ "Website-Besucher das Cookie Banner schließen können. Es hat die gleiche "
6257
+ "Funktion wie ein Klick auf die Schaltfläche/den Link \"Weiter ohne "
6258
+ "Einwilligung\"."
6259
+
6260
  #: inc/view/customize/banner/Decision.php:1
6261
  #: inc/view/customize/banner/individual/Texts.php:1
6262
  #: inc/view/customize/banner/Texts.php:1
6635
  msgid "Please fill in a valid URL!"
6636
  msgstr "Bitte trage eine gültige URL ein!"
6637
 
6638
+ #: inc/view/customize/banner/Mobile.php:1
6639
+ msgid ""
6640
+ "The cookie banner is responsive even in the free version and works on mobile "
6641
+ "devices. Only further settings for a better individual appearance on mobile "
6642
+ "devices are only included in the PRO version."
6643
+ msgstr ""
6644
+ "Das Cookie Banner ist bereits in der kostenlosen Version responsive und "
6645
+ "funktioniert auch auf mobilen Geräten. Nur weitere Einstellungen für eine "
6646
+ "bessere individuelle Darstellung auf mobilen Geräten sind nur in der PRO-"
6647
+ "Version enthalten."
6648
+
6649
+ #: inc/view/customize/banner/Mobile.php:1
6650
+ msgid ""
6651
+ "The header <strong>will not be hidden</strong>, because otherwise there is "
6652
+ "no possibility to continue without consent in compliance with the ePrivacy "
6653
+ "Directive and the GDPR. Activate the button/link \"Continue without consent"
6654
+ "\" in the \"Consent Options” section on level above to be able to hide the "
6655
+ "header on mobile devices!"
6656
+ msgstr ""
6657
+ "Der Header (Kopfbereich) <strong>wird nicht ausgeblendet</strong>, weil es "
6658
+ "sonst keine Möglichkeit gibt, gemäß der ePrivacy-Richtlinie und der DSGVO "
6659
+ "ohne Einwilligung fortzufahren. Aktiviere den Button/Link “Weiter ohne "
6660
+ "Einwilligung\" im Abschnitt \"Einwilligungsoptionen\" auf einer Ebene höher, "
6661
+ "um den Header auf mobilen Geräten ausblenden zu können!"
6662
+
6663
  #: inc/view/customize/banner/Mobile.php:1
6664
  msgid "Mobile experience"
6665
  msgstr "Mobile Nutzererfahrung"
languages/real-cookie-banner-de_CH.mo CHANGED
Binary file
languages/real-cookie-banner-de_CH.po CHANGED
@@ -2,10 +2,10 @@ msgid ""
2
  msgstr ""
3
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/src\n"
4
  "POT-Creation-Date: n/a\n"
5
- "PO-Revision-Date: 2022-01-17 10:19+0000\n"
6
  "Last-Translator: Matthias Günter <matthias.guenter@devowl.io>\n"
7
- "Language-Team: German <https://translate.devowl.io/projects/wordpress-real-"
8
- "cookie-banner-backend-php/develop/de/>\n"
9
  "Language: de_CH\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -676,8 +676,7 @@ msgstr ""
676
  "Keine Einwilligungen gefunden. Bitte navigiere zurück und überprüfe deine "
677
  "Eingabe."
678
 
679
- #: inc/import/ImportCookies.php:1 inc/presets/UpdateNotice.php:1
680
- #: inc/settings/Cookie.php:1
681
  msgid "Cookie"
682
  msgstr "Cookie"
683
 
@@ -4415,6 +4414,10 @@ msgstr "TCF Vendor Konfiguration"
4415
  msgid "deleted"
4416
  msgstr "gelöscht"
4417
 
 
 
 
 
4418
  #: inc/overrides/pro/Stats.php:1
4419
  msgid "Shortcode revoke"
4420
  msgstr "Widerruf Shortcode"
@@ -5425,6 +5428,10 @@ msgstr ""
5425
  "strong> einige Vorlagen aktualisiert worden sind. Bitte überprüfe deine "
5426
  "folgenden Services, um sicherzustellen, dass sie auf dem neuesten Stand sind:"
5427
 
 
 
 
 
5428
  #: inc/presets/UpdateNotice.php:1
5429
  msgid "Edit"
5430
  msgstr "Bearbeiten"
@@ -5433,6 +5440,16 @@ msgstr "Bearbeiten"
5433
  msgid "Create new from template"
5434
  msgstr "Aus Vorlage erstellen"
5435
 
 
 
 
 
 
 
 
 
 
 
5436
  #: inc/presets/UpdateNotice.php:1
5437
  msgid "Dismiss this notice"
5438
  msgstr "Hinweis ausblenden"
@@ -5453,6 +5470,14 @@ msgstr "https://devowl.io/de/support/"
5453
  msgid "Contact support"
5454
  msgstr "Support kontaktieren"
5455
 
 
 
 
 
 
 
 
 
5456
  #. translators:
5457
  #: inc/scanner/Scanner.php:1
5458
  msgid "%1$d pages failed to be scanned."
@@ -6149,6 +6174,20 @@ msgstr ""
6149
  "Möglichkeit geben musst. Mit der aktuell gewählten Einstellung gehst du ein "
6150
  "Risiko ein."
6151
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6152
  #: inc/view/customize/banner/Decision.php:1
6153
  msgid "Consent options"
6154
  msgstr "Einwilligungs-Optionen"
@@ -6203,6 +6242,21 @@ msgstr ""
6203
  "Besucher diese Option – ähnlich wie der Button/Link “Alle akzeptieren” – "
6204
  "angeboten werden."
6205
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6206
  #: inc/view/customize/banner/Decision.php:1
6207
  #: inc/view/customize/banner/individual/Texts.php:1
6208
  #: inc/view/customize/banner/Texts.php:1
@@ -6581,6 +6635,31 @@ msgstr ""
6581
  msgid "Please fill in a valid URL!"
6582
  msgstr "Bitte trage eine gültige URL ein!"
6583
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6584
  #: inc/view/customize/banner/Mobile.php:1
6585
  msgid "Mobile experience"
6586
  msgstr "Mobile Nutzererfahrung"
2
  msgstr ""
3
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/src\n"
4
  "POT-Creation-Date: n/a\n"
5
+ "PO-Revision-Date: 2022-01-24 16:34+0000\n"
6
  "Last-Translator: Matthias Günter <matthias.guenter@devowl.io>\n"
7
+ "Language-Team: German <https://translate.devowl.io/projects/"
8
+ "wordpress-real-cookie-banner-backend-php/develop/de/>\n"
9
  "Language: de_CH\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
676
  "Keine Einwilligungen gefunden. Bitte navigiere zurück und überprüfe deine "
677
  "Eingabe."
678
 
679
+ #: inc/import/ImportCookies.php:1 inc/settings/Cookie.php:1
 
680
  msgid "Cookie"
681
  msgstr "Cookie"
682
 
4414
  msgid "deleted"
4415
  msgstr "gelöscht"
4416
 
4417
+ #: inc/overrides/pro/Stats.php:1
4418
+ msgid "Close icon"
4419
+ msgstr "Schließen-Symbol"
4420
+
4421
  #: inc/overrides/pro/Stats.php:1
4422
  msgid "Shortcode revoke"
4423
  msgstr "Widerruf Shortcode"
5428
  "strong> einige Vorlagen aktualisiert worden sind. Bitte überprüfe deine "
5429
  "folgenden Services, um sicherzustellen, dass sie auf dem neuesten Stand sind:"
5430
 
5431
+ #: inc/presets/UpdateNotice.php:1
5432
+ msgid "Service (Cookie)"
5433
+ msgstr "Service (Cookie)"
5434
+
5435
  #: inc/presets/UpdateNotice.php:1
5436
  msgid "Edit"
5437
  msgstr "Bearbeiten"
5440
  msgid "Create new from template"
5441
  msgstr "Aus Vorlage erstellen"
5442
 
5443
+ #: inc/presets/UpdateNotice.php:1
5444
+ msgid ""
5445
+ "The easiest way to apply the changes is to delete the service and all "
5446
+ "connected content blockers in Real Cookie Banner and create it again from "
5447
+ "the service templates."
5448
+ msgstr ""
5449
+ "Am einfachsten kannst du die Änderungen übernehmen, indem du den Service und "
5450
+ "alle damit verbundenen Content Blocker in Real Cookie Banner löschst und ihn "
5451
+ "aus den Service-Vorlagen neu erstellst."
5452
+
5453
  #: inc/presets/UpdateNotice.php:1
5454
  msgid "Dismiss this notice"
5455
  msgstr "Hinweis ausblenden"
5470
  msgid "Contact support"
5471
  msgstr "Support kontaktieren"
5472
 
5473
+ #: inc/scanner/Scanner.php:1
5474
+ msgid "Cancel scan"
5475
+ msgstr "Scan abbrechen"
5476
+
5477
+ #: inc/scanner/Scanner.php:1
5478
+ msgid "Skip failed pages"
5479
+ msgstr "Fehlerhafte Seiten überspringen"
5480
+
5481
  #. translators:
5482
  #: inc/scanner/Scanner.php:1
5483
  msgid "%1$d pages failed to be scanned."
6174
  "Möglichkeit geben musst. Mit der aktuell gewählten Einstellung gehst du ein "
6175
  "Risiko ein."
6176
 
6177
+ #: inc/view/customize/banner/Decision.php:1
6178
+ msgid ""
6179
+ "Please note that from a legal perspective, you must give your visitor an "
6180
+ "equivalent way to give or refuse consent. In some countries of the EU it is "
6181
+ "also allowed to display an \"X\" in the upper right corner of the cookie "
6182
+ "banner instead of a button/link. With the currently selected setting you are "
6183
+ "taking a risk!"
6184
+ msgstr ""
6185
+ "Bitte beachte, dass du deinem Besucher aus rechtlicher Sicht eine "
6186
+ "gleichwertige Möglichkeit geben musst, seine Einwilligung zu geben oder zu "
6187
+ "verweigern. In einigen Ländern der EU ist es auch erlaubt, ein \"X\" in der "
6188
+ "oberen rechten Ecke des Cookie Banners anstelle eines Buttons/Links "
6189
+ "anzuzeigen. Mit der aktuell gewählten Einstellung gehst du ein Risiko ein!"
6190
+
6191
  #: inc/view/customize/banner/Decision.php:1
6192
  msgid "Consent options"
6193
  msgstr "Einwilligungs-Optionen"
6242
  "Besucher diese Option – ähnlich wie der Button/Link “Alle akzeptieren” – "
6243
  "angeboten werden."
6244
 
6245
+ #: inc/view/customize/banner/Decision.php:1
6246
+ msgid "Show close icon, to continue without consent"
6247
+ msgstr "Schließen-Symbol anzeigen, um ohne Einwilligung fortzufahren"
6248
+
6249
+ #: inc/view/customize/banner/Decision.php:1
6250
+ msgid ""
6251
+ "An \"X\" icon is displayed at the top right of the cookie banner, which "
6252
+ "allows website visitors to close the cookie banner. It has the same function "
6253
+ "as clicking on the \"Continue without consent\" button/link."
6254
+ msgstr ""
6255
+ "Oben rechts im Cookie Banner wird ein \"X\"-Symbol angezeigt, mit dem "
6256
+ "Website-Besucher das Cookie Banner schließen können. Es hat die gleiche "
6257
+ "Funktion wie ein Klick auf die Schaltfläche/den Link \"Weiter ohne "
6258
+ "Einwilligung\"."
6259
+
6260
  #: inc/view/customize/banner/Decision.php:1
6261
  #: inc/view/customize/banner/individual/Texts.php:1
6262
  #: inc/view/customize/banner/Texts.php:1
6635
  msgid "Please fill in a valid URL!"
6636
  msgstr "Bitte trage eine gültige URL ein!"
6637
 
6638
+ #: inc/view/customize/banner/Mobile.php:1
6639
+ msgid ""
6640
+ "The cookie banner is responsive even in the free version and works on mobile "
6641
+ "devices. Only further settings for a better individual appearance on mobile "
6642
+ "devices are only included in the PRO version."
6643
+ msgstr ""
6644
+ "Das Cookie Banner ist bereits in der kostenlosen Version responsive und "
6645
+ "funktioniert auch auf mobilen Geräten. Nur weitere Einstellungen für eine "
6646
+ "bessere individuelle Darstellung auf mobilen Geräten sind nur in der PRO-"
6647
+ "Version enthalten."
6648
+
6649
+ #: inc/view/customize/banner/Mobile.php:1
6650
+ msgid ""
6651
+ "The header <strong>will not be hidden</strong>, because otherwise there is "
6652
+ "no possibility to continue without consent in compliance with the ePrivacy "
6653
+ "Directive and the GDPR. Activate the button/link \"Continue without consent"
6654
+ "\" in the \"Consent Options” section on level above to be able to hide the "
6655
+ "header on mobile devices!"
6656
+ msgstr ""
6657
+ "Der Header (Kopfbereich) <strong>wird nicht ausgeblendet</strong>, weil es "
6658
+ "sonst keine Möglichkeit gibt, gemäß der ePrivacy-Richtlinie und der DSGVO "
6659
+ "ohne Einwilligung fortzufahren. Aktiviere den Button/Link “Weiter ohne "
6660
+ "Einwilligung\" im Abschnitt \"Einwilligungsoptionen\" auf einer Ebene höher, "
6661
+ "um den Header auf mobilen Geräten ausblenden zu können!"
6662
+
6663
  #: inc/view/customize/banner/Mobile.php:1
6664
  msgid "Mobile experience"
6665
  msgstr "Mobile Nutzererfahrung"
languages/real-cookie-banner-de_CH_informal.mo CHANGED
Binary file
languages/real-cookie-banner-de_CH_informal.po CHANGED
@@ -2,10 +2,10 @@ msgid ""
2
  msgstr ""
3
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/src\n"
4
  "POT-Creation-Date: n/a\n"
5
- "PO-Revision-Date: 2022-01-17 10:19+0000\n"
6
  "Last-Translator: Matthias Günter <matthias.guenter@devowl.io>\n"
7
- "Language-Team: German <https://translate.devowl.io/projects/wordpress-real-"
8
- "cookie-banner-backend-php/develop/de/>\n"
9
  "Language: de_CH_informal\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -676,8 +676,7 @@ msgstr ""
676
  "Keine Einwilligungen gefunden. Bitte navigiere zurück und überprüfe deine "
677
  "Eingabe."
678
 
679
- #: inc/import/ImportCookies.php:1 inc/presets/UpdateNotice.php:1
680
- #: inc/settings/Cookie.php:1
681
  msgid "Cookie"
682
  msgstr "Cookie"
683
 
@@ -4415,6 +4414,10 @@ msgstr "TCF Vendor Konfiguration"
4415
  msgid "deleted"
4416
  msgstr "gelöscht"
4417
 
 
 
 
 
4418
  #: inc/overrides/pro/Stats.php:1
4419
  msgid "Shortcode revoke"
4420
  msgstr "Widerruf Shortcode"
@@ -5425,6 +5428,10 @@ msgstr ""
5425
  "strong> einige Vorlagen aktualisiert worden sind. Bitte überprüfe deine "
5426
  "folgenden Services, um sicherzustellen, dass sie auf dem neuesten Stand sind:"
5427
 
 
 
 
 
5428
  #: inc/presets/UpdateNotice.php:1
5429
  msgid "Edit"
5430
  msgstr "Bearbeiten"
@@ -5433,6 +5440,16 @@ msgstr "Bearbeiten"
5433
  msgid "Create new from template"
5434
  msgstr "Aus Vorlage erstellen"
5435
 
 
 
 
 
 
 
 
 
 
 
5436
  #: inc/presets/UpdateNotice.php:1
5437
  msgid "Dismiss this notice"
5438
  msgstr "Hinweis ausblenden"
@@ -5453,6 +5470,14 @@ msgstr "https://devowl.io/de/support/"
5453
  msgid "Contact support"
5454
  msgstr "Support kontaktieren"
5455
 
 
 
 
 
 
 
 
 
5456
  #. translators:
5457
  #: inc/scanner/Scanner.php:1
5458
  msgid "%1$d pages failed to be scanned."
@@ -6149,6 +6174,20 @@ msgstr ""
6149
  "Möglichkeit geben musst. Mit der aktuell gewählten Einstellung gehst du ein "
6150
  "Risiko ein."
6151
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6152
  #: inc/view/customize/banner/Decision.php:1
6153
  msgid "Consent options"
6154
  msgstr "Einwilligungs-Optionen"
@@ -6203,6 +6242,21 @@ msgstr ""
6203
  "Besucher diese Option – ähnlich wie der Button/Link “Alle akzeptieren” – "
6204
  "angeboten werden."
6205
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6206
  #: inc/view/customize/banner/Decision.php:1
6207
  #: inc/view/customize/banner/individual/Texts.php:1
6208
  #: inc/view/customize/banner/Texts.php:1
@@ -6581,6 +6635,31 @@ msgstr ""
6581
  msgid "Please fill in a valid URL!"
6582
  msgstr "Bitte trage eine gültige URL ein!"
6583
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6584
  #: inc/view/customize/banner/Mobile.php:1
6585
  msgid "Mobile experience"
6586
  msgstr "Mobile Nutzererfahrung"
2
  msgstr ""
3
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/src\n"
4
  "POT-Creation-Date: n/a\n"
5
+ "PO-Revision-Date: 2022-01-24 16:34+0000\n"
6
  "Last-Translator: Matthias Günter <matthias.guenter@devowl.io>\n"
7
+ "Language-Team: German <https://translate.devowl.io/projects/"
8
+ "wordpress-real-cookie-banner-backend-php/develop/de/>\n"
9
  "Language: de_CH_informal\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
676
  "Keine Einwilligungen gefunden. Bitte navigiere zurück und überprüfe deine "
677
  "Eingabe."
678
 
679
+ #: inc/import/ImportCookies.php:1 inc/settings/Cookie.php:1
 
680
  msgid "Cookie"
681
  msgstr "Cookie"
682
 
4414
  msgid "deleted"
4415
  msgstr "gelöscht"
4416
 
4417
+ #: inc/overrides/pro/Stats.php:1
4418
+ msgid "Close icon"
4419
+ msgstr "Schließen-Symbol"
4420
+
4421
  #: inc/overrides/pro/Stats.php:1
4422
  msgid "Shortcode revoke"
4423
  msgstr "Widerruf Shortcode"
5428
  "strong> einige Vorlagen aktualisiert worden sind. Bitte überprüfe deine "
5429
  "folgenden Services, um sicherzustellen, dass sie auf dem neuesten Stand sind:"
5430
 
5431
+ #: inc/presets/UpdateNotice.php:1
5432
+ msgid "Service (Cookie)"
5433
+ msgstr "Service (Cookie)"
5434
+
5435
  #: inc/presets/UpdateNotice.php:1
5436
  msgid "Edit"
5437
  msgstr "Bearbeiten"
5440
  msgid "Create new from template"
5441
  msgstr "Aus Vorlage erstellen"
5442
 
5443
+ #: inc/presets/UpdateNotice.php:1
5444
+ msgid ""
5445
+ "The easiest way to apply the changes is to delete the service and all "
5446
+ "connected content blockers in Real Cookie Banner and create it again from "
5447
+ "the service templates."
5448
+ msgstr ""
5449
+ "Am einfachsten kannst du die Änderungen übernehmen, indem du den Service und "
5450
+ "alle damit verbundenen Content Blocker in Real Cookie Banner löschst und ihn "
5451
+ "aus den Service-Vorlagen neu erstellst."
5452
+
5453
  #: inc/presets/UpdateNotice.php:1
5454
  msgid "Dismiss this notice"
5455
  msgstr "Hinweis ausblenden"
5470
  msgid "Contact support"
5471
  msgstr "Support kontaktieren"
5472
 
5473
+ #: inc/scanner/Scanner.php:1
5474
+ msgid "Cancel scan"
5475
+ msgstr "Scan abbrechen"
5476
+
5477
+ #: inc/scanner/Scanner.php:1
5478
+ msgid "Skip failed pages"
5479
+ msgstr "Fehlerhafte Seiten überspringen"
5480
+
5481
  #. translators:
5482
  #: inc/scanner/Scanner.php:1
5483
  msgid "%1$d pages failed to be scanned."
6174
  "Möglichkeit geben musst. Mit der aktuell gewählten Einstellung gehst du ein "
6175
  "Risiko ein."
6176
 
6177
+ #: inc/view/customize/banner/Decision.php:1
6178
+ msgid ""
6179
+ "Please note that from a legal perspective, you must give your visitor an "
6180
+ "equivalent way to give or refuse consent. In some countries of the EU it is "
6181
+ "also allowed to display an \"X\" in the upper right corner of the cookie "
6182
+ "banner instead of a button/link. With the currently selected setting you are "
6183
+ "taking a risk!"
6184
+ msgstr ""
6185
+ "Bitte beachte, dass du deinem Besucher aus rechtlicher Sicht eine "
6186
+ "gleichwertige Möglichkeit geben musst, seine Einwilligung zu geben oder zu "
6187
+ "verweigern. In einigen Ländern der EU ist es auch erlaubt, ein \"X\" in der "
6188
+ "oberen rechten Ecke des Cookie Banners anstelle eines Buttons/Links "
6189
+ "anzuzeigen. Mit der aktuell gewählten Einstellung gehst du ein Risiko ein!"
6190
+
6191
  #: inc/view/customize/banner/Decision.php:1
6192
  msgid "Consent options"
6193
  msgstr "Einwilligungs-Optionen"
6242
  "Besucher diese Option – ähnlich wie der Button/Link “Alle akzeptieren” – "
6243
  "angeboten werden."
6244
 
6245
+ #: inc/view/customize/banner/Decision.php:1
6246
+ msgid "Show close icon, to continue without consent"
6247
+ msgstr "Schließen-Symbol anzeigen, um ohne Einwilligung fortzufahren"
6248
+
6249
+ #: inc/view/customize/banner/Decision.php:1
6250
+ msgid ""
6251
+ "An \"X\" icon is displayed at the top right of the cookie banner, which "
6252
+ "allows website visitors to close the cookie banner. It has the same function "
6253
+ "as clicking on the \"Continue without consent\" button/link."
6254
+ msgstr ""
6255
+ "Oben rechts im Cookie Banner wird ein \"X\"-Symbol angezeigt, mit dem "
6256
+ "Website-Besucher das Cookie Banner schließen können. Es hat die gleiche "
6257
+ "Funktion wie ein Klick auf die Schaltfläche/den Link \"Weiter ohne "
6258
+ "Einwilligung\"."
6259
+
6260
  #: inc/view/customize/banner/Decision.php:1
6261
  #: inc/view/customize/banner/individual/Texts.php:1
6262
  #: inc/view/customize/banner/Texts.php:1
6635
  msgid "Please fill in a valid URL!"
6636
  msgstr "Bitte trage eine gültige URL ein!"
6637
 
6638
+ #: inc/view/customize/banner/Mobile.php:1
6639
+ msgid ""
6640
+ "The cookie banner is responsive even in the free version and works on mobile "
6641
+ "devices. Only further settings for a better individual appearance on mobile "
6642
+ "devices are only included in the PRO version."
6643
+ msgstr ""
6644
+ "Das Cookie Banner ist bereits in der kostenlosen Version responsive und "
6645
+ "funktioniert auch auf mobilen Geräten. Nur weitere Einstellungen für eine "
6646
+ "bessere individuelle Darstellung auf mobilen Geräten sind nur in der PRO-"
6647
+ "Version enthalten."
6648
+
6649
+ #: inc/view/customize/banner/Mobile.php:1
6650
+ msgid ""
6651
+ "The header <strong>will not be hidden</strong>, because otherwise there is "
6652
+ "no possibility to continue without consent in compliance with the ePrivacy "
6653
+ "Directive and the GDPR. Activate the button/link \"Continue without consent"
6654
+ "\" in the \"Consent Options” section on level above to be able to hide the "
6655
+ "header on mobile devices!"
6656
+ msgstr ""
6657
+ "Der Header (Kopfbereich) <strong>wird nicht ausgeblendet</strong>, weil es "
6658
+ "sonst keine Möglichkeit gibt, gemäß der ePrivacy-Richtlinie und der DSGVO "
6659
+ "ohne Einwilligung fortzufahren. Aktiviere den Button/Link “Weiter ohne "
6660
+ "Einwilligung\" im Abschnitt \"Einwilligungsoptionen\" auf einer Ebene höher, "
6661
+ "um den Header auf mobilen Geräten ausblenden zu können!"
6662
+
6663
  #: inc/view/customize/banner/Mobile.php:1
6664
  msgid "Mobile experience"
6665
  msgstr "Mobile Nutzererfahrung"
languages/real-cookie-banner-de_DE.mo CHANGED
Binary file
languages/real-cookie-banner-de_DE.po CHANGED
@@ -2,10 +2,10 @@ msgid ""
2
  msgstr ""
3
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/src\n"
4
  "POT-Creation-Date: n/a\n"
5
- "PO-Revision-Date: 2022-01-17 10:19+0000\n"
6
  "Last-Translator: Matthias Günter <matthias.guenter@devowl.io>\n"
7
- "Language-Team: German <https://translate.devowl.io/projects/wordpress-real-"
8
- "cookie-banner-backend-php/develop/de/>\n"
9
  "Language: de_DE\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -676,8 +676,7 @@ msgstr ""
676
  "Keine Einwilligungen gefunden. Bitte navigiere zurück und überprüfe deine "
677
  "Eingabe."
678
 
679
- #: inc/import/ImportCookies.php:1 inc/presets/UpdateNotice.php:1
680
- #: inc/settings/Cookie.php:1
681
  msgid "Cookie"
682
  msgstr "Cookie"
683
 
@@ -4415,6 +4414,10 @@ msgstr "TCF Vendor Konfiguration"
4415
  msgid "deleted"
4416
  msgstr "gelöscht"
4417
 
 
 
 
 
4418
  #: inc/overrides/pro/Stats.php:1
4419
  msgid "Shortcode revoke"
4420
  msgstr "Widerruf Shortcode"
@@ -5425,6 +5428,10 @@ msgstr ""
5425
  "strong> einige Vorlagen aktualisiert worden sind. Bitte überprüfe deine "
5426
  "folgenden Services, um sicherzustellen, dass sie auf dem neuesten Stand sind:"
5427
 
 
 
 
 
5428
  #: inc/presets/UpdateNotice.php:1
5429
  msgid "Edit"
5430
  msgstr "Bearbeiten"
@@ -5433,6 +5440,16 @@ msgstr "Bearbeiten"
5433
  msgid "Create new from template"
5434
  msgstr "Aus Vorlage erstellen"
5435
 
 
 
 
 
 
 
 
 
 
 
5436
  #: inc/presets/UpdateNotice.php:1
5437
  msgid "Dismiss this notice"
5438
  msgstr "Hinweis ausblenden"
@@ -5453,6 +5470,14 @@ msgstr "https://devowl.io/de/support/"
5453
  msgid "Contact support"
5454
  msgstr "Support kontaktieren"
5455
 
 
 
 
 
 
 
 
 
5456
  #. translators:
5457
  #: inc/scanner/Scanner.php:1
5458
  msgid "%1$d pages failed to be scanned."
@@ -6149,6 +6174,20 @@ msgstr ""
6149
  "Möglichkeit geben musst. Mit der aktuell gewählten Einstellung gehst du ein "
6150
  "Risiko ein."
6151
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6152
  #: inc/view/customize/banner/Decision.php:1
6153
  msgid "Consent options"
6154
  msgstr "Einwilligungs-Optionen"
@@ -6203,6 +6242,21 @@ msgstr ""
6203
  "Besucher diese Option – ähnlich wie der Button/Link “Alle akzeptieren” – "
6204
  "angeboten werden."
6205
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6206
  #: inc/view/customize/banner/Decision.php:1
6207
  #: inc/view/customize/banner/individual/Texts.php:1
6208
  #: inc/view/customize/banner/Texts.php:1
@@ -6581,6 +6635,31 @@ msgstr ""
6581
  msgid "Please fill in a valid URL!"
6582
  msgstr "Bitte trage eine gültige URL ein!"
6583
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6584
  #: inc/view/customize/banner/Mobile.php:1
6585
  msgid "Mobile experience"
6586
  msgstr "Mobile Nutzererfahrung"
2
  msgstr ""
3
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/src\n"
4
  "POT-Creation-Date: n/a\n"
5
+ "PO-Revision-Date: 2022-01-24 16:34+0000\n"
6
  "Last-Translator: Matthias Günter <matthias.guenter@devowl.io>\n"
7
+ "Language-Team: German <https://translate.devowl.io/projects/"
8
+ "wordpress-real-cookie-banner-backend-php/develop/de/>\n"
9
  "Language: de_DE\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
676
  "Keine Einwilligungen gefunden. Bitte navigiere zurück und überprüfe deine "
677
  "Eingabe."
678
 
679
+ #: inc/import/ImportCookies.php:1 inc/settings/Cookie.php:1
 
680
  msgid "Cookie"
681
  msgstr "Cookie"
682
 
4414
  msgid "deleted"
4415
  msgstr "gelöscht"
4416
 
4417
+ #: inc/overrides/pro/Stats.php:1
4418
+ msgid "Close icon"
4419
+ msgstr "Schließen-Symbol"
4420
+
4421
  #: inc/overrides/pro/Stats.php:1
4422
  msgid "Shortcode revoke"
4423
  msgstr "Widerruf Shortcode"
5428
  "strong> einige Vorlagen aktualisiert worden sind. Bitte überprüfe deine "
5429
  "folgenden Services, um sicherzustellen, dass sie auf dem neuesten Stand sind:"
5430
 
5431
+ #: inc/presets/UpdateNotice.php:1
5432
+ msgid "Service (Cookie)"
5433
+ msgstr "Service (Cookie)"
5434
+
5435
  #: inc/presets/UpdateNotice.php:1
5436
  msgid "Edit"
5437
  msgstr "Bearbeiten"
5440
  msgid "Create new from template"
5441
  msgstr "Aus Vorlage erstellen"
5442
 
5443
+ #: inc/presets/UpdateNotice.php:1
5444
+ msgid ""
5445
+ "The easiest way to apply the changes is to delete the service and all "
5446
+ "connected content blockers in Real Cookie Banner and create it again from "
5447
+ "the service templates."
5448
+ msgstr ""
5449
+ "Am einfachsten kannst du die Änderungen übernehmen, indem du den Service und "
5450
+ "alle damit verbundenen Content Blocker in Real Cookie Banner löschst und ihn "
5451
+ "aus den Service-Vorlagen neu erstellst."
5452
+
5453
  #: inc/presets/UpdateNotice.php:1
5454
  msgid "Dismiss this notice"
5455
  msgstr "Hinweis ausblenden"
5470
  msgid "Contact support"
5471
  msgstr "Support kontaktieren"
5472
 
5473
+ #: inc/scanner/Scanner.php:1
5474
+ msgid "Cancel scan"
5475
+ msgstr "Scan abbrechen"
5476
+
5477
+ #: inc/scanner/Scanner.php:1
5478
+ msgid "Skip failed pages"
5479
+ msgstr "Fehlerhafte Seiten überspringen"
5480
+
5481
  #. translators:
5482
  #: inc/scanner/Scanner.php:1
5483
  msgid "%1$d pages failed to be scanned."
6174
  "Möglichkeit geben musst. Mit der aktuell gewählten Einstellung gehst du ein "
6175
  "Risiko ein."
6176
 
6177
+ #: inc/view/customize/banner/Decision.php:1
6178
+ msgid ""
6179
+ "Please note that from a legal perspective, you must give your visitor an "
6180
+ "equivalent way to give or refuse consent. In some countries of the EU it is "
6181
+ "also allowed to display an \"X\" in the upper right corner of the cookie "
6182
+ "banner instead of a button/link. With the currently selected setting you are "
6183
+ "taking a risk!"
6184
+ msgstr ""
6185
+ "Bitte beachte, dass du deinem Besucher aus rechtlicher Sicht eine "
6186
+ "gleichwertige Möglichkeit geben musst, seine Einwilligung zu geben oder zu "
6187
+ "verweigern. In einigen Ländern der EU ist es auch erlaubt, ein \"X\" in der "
6188
+ "oberen rechten Ecke des Cookie Banners anstelle eines Buttons/Links "
6189
+ "anzuzeigen. Mit der aktuell gewählten Einstellung gehst du ein Risiko ein!"
6190
+
6191
  #: inc/view/customize/banner/Decision.php:1
6192
  msgid "Consent options"
6193
  msgstr "Einwilligungs-Optionen"
6242
  "Besucher diese Option – ähnlich wie der Button/Link “Alle akzeptieren” – "
6243
  "angeboten werden."
6244
 
6245
+ #: inc/view/customize/banner/Decision.php:1
6246
+ msgid "Show close icon, to continue without consent"
6247
+ msgstr "Schließen-Symbol anzeigen, um ohne Einwilligung fortzufahren"
6248
+
6249
+ #: inc/view/customize/banner/Decision.php:1
6250
+ msgid ""
6251
+ "An \"X\" icon is displayed at the top right of the cookie banner, which "
6252
+ "allows website visitors to close the cookie banner. It has the same function "
6253
+ "as clicking on the \"Continue without consent\" button/link."
6254
+ msgstr ""
6255
+ "Oben rechts im Cookie Banner wird ein \"X\"-Symbol angezeigt, mit dem "
6256
+ "Website-Besucher das Cookie Banner schließen können. Es hat die gleiche "
6257
+ "Funktion wie ein Klick auf die Schaltfläche/den Link \"Weiter ohne "
6258
+ "Einwilligung\"."
6259
+
6260
  #: inc/view/customize/banner/Decision.php:1
6261
  #: inc/view/customize/banner/individual/Texts.php:1
6262
  #: inc/view/customize/banner/Texts.php:1
6635
  msgid "Please fill in a valid URL!"
6636
  msgstr "Bitte trage eine gültige URL ein!"
6637
 
6638
+ #: inc/view/customize/banner/Mobile.php:1
6639
+ msgid ""
6640
+ "The cookie banner is responsive even in the free version and works on mobile "
6641
+ "devices. Only further settings for a better individual appearance on mobile "
6642
+ "devices are only included in the PRO version."
6643
+ msgstr ""
6644
+ "Das Cookie Banner ist bereits in der kostenlosen Version responsive und "
6645
+ "funktioniert auch auf mobilen Geräten. Nur weitere Einstellungen für eine "
6646
+ "bessere individuelle Darstellung auf mobilen Geräten sind nur in der PRO-"
6647
+ "Version enthalten."
6648
+
6649
+ #: inc/view/customize/banner/Mobile.php:1
6650
+ msgid ""
6651
+ "The header <strong>will not be hidden</strong>, because otherwise there is "
6652
+ "no possibility to continue without consent in compliance with the ePrivacy "
6653
+ "Directive and the GDPR. Activate the button/link \"Continue without consent"
6654
+ "\" in the \"Consent Options” section on level above to be able to hide the "
6655
+ "header on mobile devices!"
6656
+ msgstr ""
6657
+ "Der Header (Kopfbereich) <strong>wird nicht ausgeblendet</strong>, weil es "
6658
+ "sonst keine Möglichkeit gibt, gemäß der ePrivacy-Richtlinie und der DSGVO "
6659
+ "ohne Einwilligung fortzufahren. Aktiviere den Button/Link “Weiter ohne "
6660
+ "Einwilligung\" im Abschnitt \"Einwilligungsoptionen\" auf einer Ebene höher, "
6661
+ "um den Header auf mobilen Geräten ausblenden zu können!"
6662
+
6663
  #: inc/view/customize/banner/Mobile.php:1
6664
  msgid "Mobile experience"
6665
  msgstr "Mobile Nutzererfahrung"
languages/real-cookie-banner-de_DE_formal.mo CHANGED
Binary file
languages/real-cookie-banner-de_DE_formal.po CHANGED
@@ -5,7 +5,7 @@ msgstr ""
5
  "Project-Id-Version: n/a\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/src\n"
7
  "POT-Creation-Date: n/a\n"
8
- "PO-Revision-Date: 2022-01-17 10:19+0000\n"
9
  "Last-Translator: Matthias Günter <matthias.guenter@devowl.io>\n"
10
  "Language-Team: German (formal) <https://translate.devowl.io/projects/"
11
  "wordpress-real-cookie-banner-backend-php/develop/de@formal/>\n"
@@ -679,8 +679,7 @@ msgstr ""
679
  "Keine Einwilligungen gefunden. Bitte navigieren Sie zurück und überprüfen "
680
  "Sie Ihre Eingabe."
681
 
682
- #: inc/import/ImportCookies.php:1 inc/presets/UpdateNotice.php:1
683
- #: inc/settings/Cookie.php:1
684
  msgid "Cookie"
685
  msgstr "Cookie"
686
 
@@ -4427,6 +4426,10 @@ msgstr "TCF-Anbieter-Konfiguration"
4427
  msgid "deleted"
4428
  msgstr "Gelöscht"
4429
 
 
 
 
 
4430
  #: inc/overrides/pro/Stats.php:1
4431
  msgid "Shortcode revoke"
4432
  msgstr "Shortcode widerrufen"
@@ -5436,6 +5439,10 @@ msgstr ""
5436
  "strong> einige Vorlagen aktualisiert. Bitte überprüfen Sie Ihre folgenden "
5437
  "Services, um sicherzustellen, dass sie auf dem neuesten Stand sind:"
5438
 
 
 
 
 
5439
  #: inc/presets/UpdateNotice.php:1
5440
  msgid "Edit"
5441
  msgstr "Bearbeiten"
@@ -5444,6 +5451,16 @@ msgstr "Bearbeiten"
5444
  msgid "Create new from template"
5445
  msgstr "Aus Vorlage erstellen"
5446
 
 
 
 
 
 
 
 
 
 
 
5447
  #: inc/presets/UpdateNotice.php:1
5448
  msgid "Dismiss this notice"
5449
  msgstr "Hinweis ausblenden"
@@ -5464,6 +5481,14 @@ msgstr "https://devowl.io/support/"
5464
  msgid "Contact support"
5465
  msgstr "Support kontaktieren"
5466
 
 
 
 
 
 
 
 
 
5467
  #. translators:
5468
  #: inc/scanner/Scanner.php:1
5469
  msgid "%1$d pages failed to be scanned."
@@ -6160,6 +6185,20 @@ msgstr ""
6160
  "Option anbieten müssen. Mit der aktuellen Einstellung gehen Sie ein Risiko "
6161
  "ein."
6162
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6163
  #: inc/view/customize/banner/Decision.php:1
6164
  msgid "Consent options"
6165
  msgstr "Einwilligungs-Optionen"
@@ -6214,6 +6253,21 @@ msgstr ""
6214
  "dem Besucher diese Option in ähnlicher Weise wie der „Alle akzeptieren”-"
6215
  "Button/Link gegeben werden."
6216
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6217
  #: inc/view/customize/banner/Decision.php:1
6218
  #: inc/view/customize/banner/individual/Texts.php:1
6219
  #: inc/view/customize/banner/Texts.php:1
@@ -6592,6 +6646,31 @@ msgstr ""
6592
  msgid "Please fill in a valid URL!"
6593
  msgstr "Bitte geben Sie eine gültige URL ein!"
6594
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6595
  #: inc/view/customize/banner/Mobile.php:1
6596
  msgid "Mobile experience"
6597
  msgstr "Mobile Nutzererfahrung"
5
  "Project-Id-Version: n/a\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/src\n"
7
  "POT-Creation-Date: n/a\n"
8
+ "PO-Revision-Date: 2022-01-24 16:34+0000\n"
9
  "Last-Translator: Matthias Günter <matthias.guenter@devowl.io>\n"
10
  "Language-Team: German (formal) <https://translate.devowl.io/projects/"
11
  "wordpress-real-cookie-banner-backend-php/develop/de@formal/>\n"
679
  "Keine Einwilligungen gefunden. Bitte navigieren Sie zurück und überprüfen "
680
  "Sie Ihre Eingabe."
681
 
682
+ #: inc/import/ImportCookies.php:1 inc/settings/Cookie.php:1
 
683
  msgid "Cookie"
684
  msgstr "Cookie"
685
 
4426
  msgid "deleted"
4427
  msgstr "Gelöscht"
4428
 
4429
+ #: inc/overrides/pro/Stats.php:1
4430
+ msgid "Close icon"
4431
+ msgstr "Schließen-Symbol"
4432
+
4433
  #: inc/overrides/pro/Stats.php:1
4434
  msgid "Shortcode revoke"
4435
  msgstr "Shortcode widerrufen"
5439
  "strong> einige Vorlagen aktualisiert. Bitte überprüfen Sie Ihre folgenden "
5440
  "Services, um sicherzustellen, dass sie auf dem neuesten Stand sind:"
5441
 
5442
+ #: inc/presets/UpdateNotice.php:1
5443
+ msgid "Service (Cookie)"
5444
+ msgstr "Service (Cookie)"
5445
+
5446
  #: inc/presets/UpdateNotice.php:1
5447
  msgid "Edit"
5448
  msgstr "Bearbeiten"
5451
  msgid "Create new from template"
5452
  msgstr "Aus Vorlage erstellen"
5453
 
5454
+ #: inc/presets/UpdateNotice.php:1
5455
+ msgid ""
5456
+ "The easiest way to apply the changes is to delete the service and all "
5457
+ "connected content blockers in Real Cookie Banner and create it again from "
5458
+ "the service templates."
5459
+ msgstr ""
5460
+ "Am einfachsten können Sie die Änderungen übernehmen, indem Sie den Service "
5461
+ "und alle damit verbundenen Content Blocker in Real Cookie Banner löschen und "
5462
+ "ihn aus den Service-Vorlagen neu erstellen."
5463
+
5464
  #: inc/presets/UpdateNotice.php:1
5465
  msgid "Dismiss this notice"
5466
  msgstr "Hinweis ausblenden"
5481
  msgid "Contact support"
5482
  msgstr "Support kontaktieren"
5483
 
5484
+ #: inc/scanner/Scanner.php:1
5485
+ msgid "Cancel scan"
5486
+ msgstr "Scan abbrechen"
5487
+
5488
+ #: inc/scanner/Scanner.php:1
5489
+ msgid "Skip failed pages"
5490
+ msgstr "Fehlerhafte Seiten überspringen"
5491
+
5492
  #. translators:
5493
  #: inc/scanner/Scanner.php:1
5494
  msgid "%1$d pages failed to be scanned."
6185
  "Option anbieten müssen. Mit der aktuellen Einstellung gehen Sie ein Risiko "
6186
  "ein."
6187
 
6188
+ #: inc/view/customize/banner/Decision.php:1
6189
+ msgid ""
6190
+ "Please note that from a legal perspective, you must give your visitor an "
6191
+ "equivalent way to give or refuse consent. In some countries of the EU it is "
6192
+ "also allowed to display an \"X\" in the upper right corner of the cookie "
6193
+ "banner instead of a button/link. With the currently selected setting you are "
6194
+ "taking a risk!"
6195
+ msgstr ""
6196
+ "Bitte beachten Sie, dass Sie Ihrem Besucher aus rechtlicher Sicht eine "
6197
+ "gleichwertige Möglichkeit geben müssen, seine Einwilligung zu erteilen oder "
6198
+ "zu verweigern. In einigen Ländern der EU ist es auch erlaubt, anstelle eines "
6199
+ "Buttons/Links ein \"X\" in der oberen rechten Ecke des Cookie Banners "
6200
+ "anzuzeigen. Mit der derzeit gewählten Einstellung gehen Sie ein Risiko ein!"
6201
+
6202
  #: inc/view/customize/banner/Decision.php:1
6203
  msgid "Consent options"
6204
  msgstr "Einwilligungs-Optionen"
6253
  "dem Besucher diese Option in ähnlicher Weise wie der „Alle akzeptieren”-"
6254
  "Button/Link gegeben werden."
6255
 
6256
+ #: inc/view/customize/banner/Decision.php:1
6257
+ msgid "Show close icon, to continue without consent"
6258
+ msgstr "Schließen-Symbol anzeigen, um ohne Einwilligung fortzufahren"
6259
+
6260
+ #: inc/view/customize/banner/Decision.php:1
6261
+ msgid ""
6262
+ "An \"X\" icon is displayed at the top right of the cookie banner, which "
6263
+ "allows website visitors to close the cookie banner. It has the same function "
6264
+ "as clicking on the \"Continue without consent\" button/link."
6265
+ msgstr ""
6266
+ "Oben rechts im Cookie Banner wird ein \"X\"-Symbol angezeigt, mit dem "
6267
+ "Website-Besucher das Cookie Banner schließen können. Es hat die gleiche "
6268
+ "Funktion wie ein Klick auf die Schaltfläche/den Link \"Weiter ohne "
6269
+ "Einwilligung\"."
6270
+
6271
  #: inc/view/customize/banner/Decision.php:1
6272
  #: inc/view/customize/banner/individual/Texts.php:1
6273
  #: inc/view/customize/banner/Texts.php:1
6646
  msgid "Please fill in a valid URL!"
6647
  msgstr "Bitte geben Sie eine gültige URL ein!"
6648
 
6649
+ #: inc/view/customize/banner/Mobile.php:1
6650
+ msgid ""
6651
+ "The cookie banner is responsive even in the free version and works on mobile "
6652
+ "devices. Only further settings for a better individual appearance on mobile "
6653
+ "devices are only included in the PRO version."
6654
+ msgstr ""
6655
+ "Das Cookie Banner ist bereits in der kostenlosen Version responsive und "
6656
+ "funktioniert auch auf mobilen Geräten. Nur weitere Einstellungen für eine "
6657
+ "bessere individuelle Darstellung auf mobilen Geräten sind nur in der PRO-"
6658
+ "Version enthalten."
6659
+
6660
+ #: inc/view/customize/banner/Mobile.php:1
6661
+ msgid ""
6662
+ "The header <strong>will not be hidden</strong>, because otherwise there is "
6663
+ "no possibility to continue without consent in compliance with the ePrivacy "
6664
+ "Directive and the GDPR. Activate the button/link \"Continue without consent"
6665
+ "\" in the \"Consent Options” section on level above to be able to hide the "
6666
+ "header on mobile devices!"
6667
+ msgstr ""
6668
+ "Der Header (Kopfbereich) <strong>wird nicht ausgeblendet</strong>, weil es "
6669
+ "sonst keine Möglichkeit gibt, gemäß der ePrivacy-Richtlinie und der DSGVO "
6670
+ "ohne Einwilligung fortzufahren. Aktivieren Sie den Button/Link “Weiter ohne "
6671
+ "Einwilligung\" im Abschnitt \"Einwilligungsoptionen\" auf einer Ebene höher, "
6672
+ "um den Header auf mobilen Geräten ausblenden zu können!"
6673
+
6674
  #: inc/view/customize/banner/Mobile.php:1
6675
  msgid "Mobile experience"
6676
  msgstr "Mobile Nutzererfahrung"
languages/real-cookie-banner.pot CHANGED
@@ -547,7 +547,6 @@ msgstr ""
547
 
548
  #: inc/import/ImportCookies.php:1
549
  #: inc/import/ImportCookies.php:1
550
- #: inc/presets/UpdateNotice.php:1
551
  #: inc/settings/Cookie.php:1
552
  msgid "Cookie"
553
  msgstr ""
@@ -2063,6 +2062,11 @@ msgstr ""
2063
  msgid "deleted"
2064
  msgstr ""
2065
 
 
 
 
 
 
2066
  #: inc/overrides/pro/Stats.php:1
2067
  msgid "Shortcode revoke"
2068
  msgstr ""
@@ -2762,6 +2766,10 @@ msgstr ""
2762
  msgid "It seems that since the last update of <strong>Real Cookies Banner</strong> some templates have been updated. Please check your following services to make sure they are up to date:"
2763
  msgstr ""
2764
 
 
 
 
 
2765
  #: inc/presets/UpdateNotice.php:1
2766
  msgid "Edit"
2767
  msgstr ""
@@ -2770,6 +2778,10 @@ msgstr ""
2770
  msgid "Create new from template"
2771
  msgstr ""
2772
 
 
 
 
 
2773
  #: inc/presets/UpdateNotice.php:1
2774
  msgid "Dismiss this notice"
2775
  msgstr ""
@@ -2790,6 +2802,14 @@ msgstr ""
2790
  msgid "Contact support"
2791
  msgstr ""
2792
 
 
 
 
 
 
 
 
 
2793
  #. translators:
2794
  #: inc/scanner/Scanner.php:1
2795
  msgid "%1$d pages failed to be scanned."
@@ -3352,6 +3372,10 @@ msgstr ""
3352
  msgid "Please note that from a legal point of view you have to give your visitor this option. With the currently selected setting, you are taking a risk."
3353
  msgstr ""
3354
 
 
 
 
 
3355
  #: inc/view/customize/banner/Decision.php:1
3356
  msgid "Consent options"
3357
  msgstr ""
@@ -3390,6 +3414,14 @@ msgstr ""
3390
  msgid "The GDPR (EU 2016/679) and ePrivacy Directive (EU 2009/136/EC) defines that visitors must be able to easily reject cookies, whereby essential cookies can be set in any case. Therefore, the visitor should be given this option in a similar manner to the \"Accept all\" button/link."
3391
  msgstr ""
3392
 
 
 
 
 
 
 
 
 
3393
  #: inc/view/customize/banner/Decision.php:1
3394
  #: inc/view/customize/banner/individual/Texts.php:1
3395
  #: inc/view/customize/banner/Texts.php:1
@@ -3712,6 +3744,14 @@ msgstr ""
3712
  msgid "Please fill in a valid URL!"
3713
  msgstr ""
3714
 
 
 
 
 
 
 
 
 
3715
  #: inc/view/customize/banner/Mobile.php:1
3716
  msgid "Mobile experience"
3717
  msgstr ""
547
 
548
  #: inc/import/ImportCookies.php:1
549
  #: inc/import/ImportCookies.php:1
 
550
  #: inc/settings/Cookie.php:1
551
  msgid "Cookie"
552
  msgstr ""
2062
  msgid "deleted"
2063
  msgstr ""
2064
 
2065
+ #: inc/overrides/pro/Stats.php:1
2066
+ #: inc/overrides/pro/Stats.php:1
2067
+ msgid "Close icon"
2068
+ msgstr ""
2069
+
2070
  #: inc/overrides/pro/Stats.php:1
2071
  msgid "Shortcode revoke"
2072
  msgstr ""
2766
  msgid "It seems that since the last update of <strong>Real Cookies Banner</strong> some templates have been updated. Please check your following services to make sure they are up to date:"
2767
  msgstr ""
2768
 
2769
+ #: inc/presets/UpdateNotice.php:1
2770
+ msgid "Service (Cookie)"
2771
+ msgstr ""
2772
+
2773
  #: inc/presets/UpdateNotice.php:1
2774
  msgid "Edit"
2775
  msgstr ""
2778
  msgid "Create new from template"
2779
  msgstr ""
2780
 
2781
+ #: inc/presets/UpdateNotice.php:1
2782
+ msgid "The easiest way to apply the changes is to delete the service and all connected content blockers in Real Cookie Banner and create it again from the service templates."
2783
+ msgstr ""
2784
+
2785
  #: inc/presets/UpdateNotice.php:1
2786
  msgid "Dismiss this notice"
2787
  msgstr ""
2802
  msgid "Contact support"
2803
  msgstr ""
2804
 
2805
+ #: inc/scanner/Scanner.php:1
2806
+ msgid "Cancel scan"
2807
+ msgstr ""
2808
+
2809
+ #: inc/scanner/Scanner.php:1
2810
+ msgid "Skip failed pages"
2811
+ msgstr ""
2812
+
2813
  #. translators:
2814
  #: inc/scanner/Scanner.php:1
2815
  msgid "%1$d pages failed to be scanned."
3372
  msgid "Please note that from a legal point of view you have to give your visitor this option. With the currently selected setting, you are taking a risk."
3373
  msgstr ""
3374
 
3375
+ #: inc/view/customize/banner/Decision.php:1
3376
+ msgid "Please note that from a legal perspective, you must give your visitor an equivalent way to give or refuse consent. In some countries of the EU it is also allowed to display an \"X\" in the upper right corner of the cookie banner instead of a button/link. With the currently selected setting you are taking a risk!"
3377
+ msgstr ""
3378
+
3379
  #: inc/view/customize/banner/Decision.php:1
3380
  msgid "Consent options"
3381
  msgstr ""
3414
  msgid "The GDPR (EU 2016/679) and ePrivacy Directive (EU 2009/136/EC) defines that visitors must be able to easily reject cookies, whereby essential cookies can be set in any case. Therefore, the visitor should be given this option in a similar manner to the \"Accept all\" button/link."
3415
  msgstr ""
3416
 
3417
+ #: inc/view/customize/banner/Decision.php:1
3418
+ msgid "Show close icon, to continue without consent"
3419
+ msgstr ""
3420
+
3421
+ #: inc/view/customize/banner/Decision.php:1
3422
+ msgid "An \"X\" icon is displayed at the top right of the cookie banner, which allows website visitors to close the cookie banner. It has the same function as clicking on the \"Continue without consent\" button/link."
3423
+ msgstr ""
3424
+
3425
  #: inc/view/customize/banner/Decision.php:1
3426
  #: inc/view/customize/banner/individual/Texts.php:1
3427
  #: inc/view/customize/banner/Texts.php:1
3744
  msgid "Please fill in a valid URL!"
3745
  msgstr ""
3746
 
3747
+ #: inc/view/customize/banner/Mobile.php:1
3748
+ msgid "The cookie banner is responsive even in the free version and works on mobile devices. Only further settings for a better individual appearance on mobile devices are only included in the PRO version."
3749
+ msgstr ""
3750
+
3751
+ #: inc/view/customize/banner/Mobile.php:1
3752
+ msgid "The header <strong>will not be hidden</strong>, because otherwise there is no possibility to continue without consent in compliance with the ePrivacy Directive and the GDPR. Activate the button/link \"Continue without consent\" in the \"Consent Options” section on level above to be able to hide the header on mobile devices!"
3753
+ msgstr ""
3754
+
3755
  #: inc/view/customize/banner/Mobile.php:1
3756
  msgid "Mobile experience"
3757
  msgstr ""
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(6211),a=n(7228),r=n(7363),i=n(3554),c=n(5071),s=n(5132),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,b=(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:b,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(5744),r=n(8911),i=n(6619),c=n(7228),s=n(3875),l=n(7363),u=n(3554),d=n(6703),h=n(5071),m=n(7452),p=n(2762),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.attributes_name,u=e.tier,d=e.tags,g=e.onSelect,k=e.renderActions,_=(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!",(_?(0,h.__)("Demo"):(0,h.__)("Free")).toLowerCase())).concat(_?"":"\n\n".concat((0,h.__)("You can create this service yourself in the free version without any restrictions and research the necessary information.")))},!_&&void 0),w=b.isPro,E=b.open,R=b.modal,C=(0,h.__)("Disabled"),x=(0,h.__)("Already exists"),Z="pro"===u&&!w;return React.createElement(l.Fragment,{key:t},R,React.createElement(m.Z,{title:i?React.createElement("span",{dangerouslySetInnerHTML:{__html:d[C]}}):void 0},React.createElement(s.Z,{className:"rcb-antd-preset-card",hoverable:!i,style:{opacity:i||null!=d&&d[x]?.6:1},onClick:function(e){e.target.closest(".rcb-antd-card")&&(Z?E():i||g({identifier:t,version:n,attributes_name:c},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"),!!d&&Object.keys(d).map((function(e){return React.createElement(m.Z,{title:e===C?void 0:React.createElement("span",{dangerouslySetInnerHTML:{__html:d[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,b=e.showDisabled,w=void 0===b||b,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],A=(0,l.useState)(!1),P=(0,c.Z)(A,2),W=P[0],D=P[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!!w||!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 d}});var o=n(9707),a=n(7984),r=n(2867),i=n(6771),c=n(7820),s=n(4614),l=n(5071),u=n(2185);function d(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(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.");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(2867),a=n(6412),r=n(6211),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=a214344f3a8b2e783454
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,b=(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:b,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.attributes_name,u=e.tier,d=e.tags,g=e.onSelect,k=e.renderActions,_=(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!",(_?(0,h.__)("Demo"):(0,h.__)("Free")).toLowerCase())).concat(_?"":"\n\n".concat((0,h.__)("You can create this service yourself in the free version without any restrictions and research the necessary information.")))},!_&&void 0),w=b.isPro,E=b.open,R=b.modal,C=(0,h.__)("Disabled"),x=(0,h.__)("Already exists"),Z="pro"===u&&!w;return React.createElement(l.Fragment,{key:t},R,React.createElement(m.Z,{title:i?React.createElement("span",{dangerouslySetInnerHTML:{__html:d[C]}}):void 0},React.createElement(s.Z,{className:"rcb-antd-preset-card",hoverable:!i,style:{opacity:i||null!=d&&d[x]?.6:1},onClick:function(e){e.target.closest(".rcb-antd-card")&&(Z?E():i||g({identifier:t,version:n,attributes_name:c},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"),!!d&&Object.keys(d).map((function(e){return React.createElement(m.Z,{title:e===C?void 0:React.createElement("span",{dangerouslySetInnerHTML:{__html:d[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,b=e.showDisabled,w=void 0===b||b,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],A=(0,l.useState)(!1),P=(0,c.Z)(A,2),W=P[0],D=P[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!!w||!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 d}});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);function d(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(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.");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=2a84dc7640aee5713d6e
public/dist/138.lite.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"138.lite.js?ver=a214344f3a8b2e783454","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/B,EAAK+B,WAClBR,EAAQvB,EAAKuB,MACbS,EAAQhC,EAAKgC,MAGbC,GADa,SACYA,YAEzBC,EAAaD,EAAYE,OAAOD,WAEhCE,GAAY,IAAAC,WAAS,GACrBC,GAAa,OAAeF,EAAW,GACvCG,EAAUD,EAAW,G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C,QAAS,SAGboG,QAAsB7I,MAAMC,cAAc,MAAO,CAC/CG,MAAO,CACLgI,UAAW,WAECpI,MAAMC,cAAc,MAAO,CACzC4E,IAAK9B,EACL3C,MAAO,CACLqC,QAAS,QACTqG,WAAY,GACZ/B,OAAQ,OACRuB,OAAQ,OAEKtI,MAAMC,cAAc,KAAM,CACzCG,MAAO,CACL2G,OAAQ,aAET,kBAAgC/G,MAAMC,cAAc,IAAK,CAC1DG,MAAO,CACLgH,UAAW,KAEZ,IAAAtF,IAAG,yCAAuD9B,MAAMC,cAAc,IAAU,KAAmBD,MAAMC,cAAc,UAAe,CAC/I8I,KAAM,SACQ/I,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 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 alreadyExistsTranslatedText = __(\"Already exists\");\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 || tags !== null && tags !== void 0 && tags[alreadyExistsTranslatedText] ? 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\";\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 __(\"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.\");\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","attributes_name","tier","tags","onSelect","renderActions","isDemoEnv","_useProModal","useProModal","feature","toLowerCase","undefined","isPro","openProModal","open","modal","disabledTranslatedText","alreadyExistsTranslatedText","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","useCookieExpertsModal","assetsUrl","icon","okButtonProps","content","paddingTop","size"],"sourceRoot":""}
1
+ {"version":3,"file":"138.lite.js?ver=2a84dc7640aee5713d6e","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,SAAU9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b,SAASgB,IACP,IACIC,GADa,SACU3H,YAAYE,OAAOyH,UAE1C3F,EAAU,GAAGlB,OAAO6G,EAAW,sBAC/Bb,GAAa,IAAA9H,cAAY,WAC3B,SAAY,CACV4I,UAAMhF,EACNtD,MAAO,IACPgC,UAAU,EACVuG,cAAe,CACbxI,MAAO,CACLqC,QAAS,SAGboG,QAAsB7I,MAAMC,cAAc,MAAO,CAC/CG,MAAO,CACLgI,UAAW,WAECpI,MAAMC,cAAc,MAAO,CACzC4E,IAAK9B,EACL3C,MAAO,CACLqC,QAAS,QACTqG,WAAY,GACZ/B,OAAQ,OACRuB,OAAQ,OAEKtI,MAAMC,cAAc,KAAM,CACzCG,MAAO,CACL2G,OAAQ,aAET,kBAAgC/G,MAAMC,cAAc,IAAK,CAC1DG,MAAO,CACLgH,UAAW,KAEZ,IAAAtF,IAAG,yCAAuD9B,MAAMC,cAAc,IAAU,KAAmBD,MAAMC,cAAc,UAAe,CAC/I8I,KAAM,SACQ/I,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 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 alreadyExistsTranslatedText = __(\"Already exists\");\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 || tags !== null && tags !== void 0 && tags[alreadyExistsTranslatedText] ? 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\";\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 __(\"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.\");\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","attributes_name","tier","tags","onSelect","renderActions","isDemoEnv","_useProModal","useProModal","feature","toLowerCase","undefined","isPro","openProModal","open","modal","disabledTranslatedText","alreadyExistsTranslatedText","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","useCookieExpertsModal","assetsUrl","icon","okButtonProps","content","paddingTop","size"],"sourceRoot":""}
public/dist/152.lite.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunkrealCookieBanner_name_=self.webpackChunkrealCookieBanner_name_||[]).push([[152],{9372:function(e,t,a){a.d(t,{ZG:function(){return Q},PS:function(){return W},y$:function(){return X}});var n=a(5744),o=a(4741),r=a(2027),i=a(8911),c=a(8791),l=a(175),s=a(2711),u=a(4115),m=a(7938),d=a(1593),p=a(7228),g=a(5450),h=a.n(g),v=a(7363),f=a(3554),y=a(4947);function E(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 R=a(2200),b=a(5071),_=a(4614),k=a(6711),I=a(238),Z=function(){var e=(0,I.R)(),t=e.group,a=(0,k.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}},w=a(6428),N=a(2780),O=a(6619),T=a(5408),M=a(8618),P=a(4342),S=a(3839),C=(0,f.Pi)((function(e){var t,a,n=e.showNoticePresetGroupNotFound,o=void 0!==n&&n,i=e.groupNotice,c=e.providerPrivacyPolicyNotice,l=(0,_.m)(),s=l.cookieStore,u=s.groups,p=s.essentialGroup,g=l.optionStore,f=g.ePrivacyUSA,y=g.consentForwarding,R=Z(),k=R.cookie,I=R.fetched,C="real-cookie-banner"===(null===(t=k.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,T.W)({location:S.V,params:{slug:t}});case 3:return e.abrupt("return",e.sent.filter((function(e){return e.ID!==k.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)}}(),[k.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,b.__)("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(M.C,{offset:W.labelCol.span},(0,b.__)("General service configuration")," ",React.createElement(P.r,{url:(0,b.__)("https://devowl.io/knowledge-base/real-cookie-banner-create-individual-cookie/")})),React.createElement(d.Z.Item,{label:(0,b.__)("Name"),required:!0},React.createElement(d.Z.Item,{name:"name",noStyle:!0,rules:[{required:!0,message:(0,b.__)("Please provide a name!")}]},React.createElement(O.Z,null)),React.createElement("p",{className:"description"},(0,b.__)('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,b.__)("Status"),required:!0},React.createElement(d.Z.Item,{name:"status",noStyle:!0,rules:[{required:!0,message:(0,b.__)("Please choose a status!")}]},React.createElement(N.ZP.Group,null,React.createElement(N.ZP.Button,{value:"publish"},(0,b.__)("Enabled")),React.createElement(N.ZP.Button,{value:"private"},(0,b.__)("Disabled")),React.createElement(N.ZP.Button,{value:"draft"},(0,b.__)("Draft")))),React.createElement("p",{className:"description"},(0,b.__)('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,b.__)("Group"),required:!0},React.createElement(d.Z.Item,{name:"group",noStyle:!0,rules:[{required:!0,message:(0,b.__)("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,b.__)("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,b.__)("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,b.__)("Provider"),required:!0},React.createElement(d.Z.Item,{name:"provider",noStyle:!0,rules:[{required:!0,message:(0,b.__)("Please name a provider!")}]},React.createElement(O.Z,null)),React.createElement("p",{className:"description"},(0,b.__)('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,b.__)("Purpose")},React.createElement(d.Z.Item,{name:"purpose",noStyle:!0},React.createElement(O.Z.TextArea,{autoSize:{minRows:3}})),React.createElement("p",{className:"description"},(0,b.__)("The ePrivacy Directive and the GDPR require that a non-professional user understands the purpose of this service, how personal data is collected and how cookies are used for this purpose."))),React.createElement(d.Z.Item,{label:(0,b.__)("Privacy policy of the provider")},React.createElement(d.Z.Item,{name:"providerPrivacyPolicy",noStyle:!0,rules:[{type:"url",message:(0,b.__)("Please provide a valid URL!")}]},React.createElement(O.Z,null)),React.createElement("p",{className:"description"},(0,b.__)("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,b.__)("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||E(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(O.Z,{placeholder:I?"":E(a("name"))})),React.createElement("p",{className:"description"},(0,b.__)("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,b.__)("You can define a unique name, but essential services are automatically accepted when a consent is forwarded.")))),React.createElement(d.Z.Item,{label:(0,b.__)("Legal basis"),required:!0},React.createElement(d.Z.Item,{name:"legalBasis",noStyle:!0,rules:[{required:!0}]},React.createElement(N.ZP.Group,{disabled:o},React.createElement(N.ZP.Button,{value:"consent"},(0,b.__)("Consent (Opt-in)")),React.createElement(N.ZP.Button,{value:"legitimate-interest"},(0,b.__)("Legitimate interest (Opt-out)")),C&&React.createElement(N.ZP.Button,{value:"legal-requirement"},(0,b.__)("Compliance with a legal obligation")))),React.createElement("p",{className:"description"},(0,b._i)((0,b.__)('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&&!C&&React.createElement("div",{className:"notice notice-info below-h2 notice-alt"},React.createElement("p",null,(0,b.__)('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,b.__)("US data processing"),style:{display:f?void 0:"none"}},React.createElement(d.Z.Item,{name:"ePrivacyUSA",valuePropName:"checked",noStyle:!0},React.createElement(w.Z,null)),React.createElement("span",null,"  ",(0,b.__)("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,b.__)("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,b.__)("No technical definitions")},React.createElement(d.Z.Item,{name:"noTechnicalDefinitions",valuePropName:"checked",noStyle:!0},React.createElement(w.Z,null)),React.createElement("span",null,"  ",(0,b.__)("This service does not set any technical cookies on the client of the visitor, but e.g. integrates a script."))))})),D=a(7452),x=a(6965),F=a(3251),A=a(1294),B=a(6999),U=a(8172),G={labelCol:{span:0},wrapperCol:{span:24},style:{margin:0}},q=(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(M.C,{offset:W.labelCol.span,description:(0,b.__)("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,b.__)("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,b.__)("Cookie type")),React.createElement("td",null,React.createElement(D.Z,{title:(0,b._i)((0,b.__)("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,b.__)("Technical cookie name")," ",React.createElement(A.Z,null)))),React.createElement("td",null,React.createElement(D.Z,{title:(0,b.__)("Every cookie is associated to a domain or hostname.")},React.createElement("span",null,(0,b.__)("Technical cookie host")," ",React.createElement(A.Z,null)))),React.createElement("td",null,React.createElement(D.Z,{title:(0,b.__)("A HTTP cookie is only valid for a certain time, which is defined when the cookie is set.")},React.createElement("span",null,(0,b.__)("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,G,{fieldKey:[a.fieldKey,"type"],name:[a.name,"type"],rules:[{required:!0,message:(0,b.__)("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,G,{fieldKey:[a.fieldKey,"name"],name:[a.name,"name"],rules:[{required:!0,message:(0,b.__)("Please provide a technical cookie name!")}]}),React.createElement(O.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,b._i)((0,b.__)("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,G,{fieldKey:[a.fieldKey,"host"],name:[a.name,"host"],rules:[{validator:function(e,a){return(["local","session","indexedDb"].indexOf(t)>-1?(0,x.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,b.__)("Please provide a valid hostname!"))}}]}),React.createElement(O.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,b._i)((0,b.__)("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(D.Z,{title:(0,b.__)("This cookie is active as long as the session is active")},React.createElement("span",null,(0,b.__)("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,G,{fieldKey:[a.fieldKey,"duration"],name:[a.name,"duration"],rules:[{required:!t,message:(0,b.__)("Please provide a valid duration!")}]}),React.createElement(O.Z,{min:"0",addonAfter:React.createElement(d.Z.Item,{name:[a.name,"durationUnit"],noStyle:!0,rules:[{required:!0,message:(0,b.__)("Please provide an unit!")}]},React.createElement(r.Z,null,React.createElement(r.Z.Option,{value:"s"},(0,b.__)("second(s)")),React.createElement(r.Z.Option,{value:"m"},(0,b.__)("minute(s)")," "),React.createElement(r.Z.Option,{value:"h"},(0,b.__)("hour(s)")," "),React.createElement(r.Z.Option,{value:"d"},(0,b.__)("day(s)")," "),React.createElement(r.Z.Option,{value:"mo"},(0,b.__)("month(s)")," "),React.createElement(r.Z.Option,{value:"y"},(0,b.__)("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(X)}},React.createElement(U.Z,null)," ",(0,b.__)("Add another cookie definition")))))))}))}))})),L=a(8950),V=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,_.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:W.labelCol.span}},React.createElement(D.Z,{title:m&&h.key!==m?(0,b.__)("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(w.Z,{disabled:m&&h.key!==m})),React.createElement("span",null,"  ",(0,b.__)("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:W.labelCol.span}},React.createElement("div",{className:"notice notice-warning below-h2 notice-alt"},React.createElement("p",null,(0,b.__)("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,b.__)("Event names for %s",t)},React.createElement(d.Z.Item,{name:r,noStyle:!0},React.createElement(O.Z,{addonBefore:(0,b.__)("Opt-in"),style:{maxWidth:400,marginRight:10,marginBottom:5}})),React.createElement(d.Z.Item,{name:i,noStyle:!0},React.createElement(O.Z,{addonBefore:(0,b.__)("Opt-out"),style:{maxWidth:400,marginRight:10,marginBottom:5}})),React.createElement("div",null,React.createElement(P.r,{url:(0,b.__)("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,b.__)("You have not yet defined a %s service. To use event names, you must create a %s service.",t,t))))})))})),j=["codeOptIn","codeOptOut","codeOnPageLoad"],Y=/{{([A-Za-z0-9_]+)}}/gm,$=(0,f.Pi)((function(e){var t=e.dynamicFields;return React.createElement(d.Z.Item,{noStyle:!0,shouldUpdate:function(e,t){return j.map((function(a){return e[a]!==t[a]})).filter(Boolean).length>0}},(function(e){var a=e.getFieldValue,n=j.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,b.__)("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(O.Z,{placeholder:l?"".concat((0,b.__)("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}))})),K=a(7870),J=(0,f.Pi)((function(e){var t=e.name,a=(0,_.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,K.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,b._i)((0,b.__)("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)})))}))})),z=(0,f.Pi)((function(e){var t=e.notices,a=e.dynamicFields,n=(0,_.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(M.C,{offset:W.labelCol.span,description:"none"===i?(0,b.__)("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,b.__)("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?V.Gh:V.Ki)},(0,b.__)("Technical handling")),React.createElement(H,{manager:V.Gh,onlyWhenManagerIs:"googleTagManager",hasManagerAttributeName:"hasGTM",thisIsManagerAttributeName:"thisIsGoogleTagManager",inEventNameAttributeName:"googleTagManagerInEventName",outEventNameAttributeName:"googleTagManagerOutEventName"}),React.createElement(H,{manager:V.Ki,onlyWhenManagerIs:"matomoTagManager",hasManagerAttributeName:"hasMTM",thisIsManagerAttributeName:"thisIsMatomoTagManager",inEventNameAttributeName:"matomoTagManagerInEventName",outEventNameAttributeName:"matomoTagManagerOutEventName"}),React.createElement($,{dynamicFields:a}),(null==t?void 0:t.length)>0&&React.createElement(d.Z.Item,{wrapperCol:{offset:W.labelCol.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,b.__)("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(w.Z,null)),React.createElement("span",null,"  ",(0,b._i)((0,b.__)("Only run this script if the user has {{u}}not{{/u}} allowed to use %s",V.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(w.Z,null)),React.createElement("span",null,"  ",(0,b._i)((0,b.__)("Only run this script if the user has {{u}}not{{/u}} allowed to use %s",V.Ki),{u:React.createElement("u",null)})))})),React.createElement(d.Z.Item,{name:"codeOptIn",noStyle:!0},React.createElement(L.Y,{settings:window.cm_settings})),React.createElement(J,{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,b.__)("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(w.Z,null)),React.createElement("span",null,"  ",(0,b.__)("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(w.Z,null)),React.createElement("span",null,"  ",(0,b._i)((0,b.__)("Only run this script if the user has {{u}}not{{/u}} allowed to use %s",V.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(w.Z,null)),React.createElement("span",null,"  ",(0,b._i)((0,b.__)("Only run this script if the user has {{u}}not{{/u}} allowed to use %s",V.Ki),{u:React.createElement("u",null)})))})),React.createElement(d.Z.Item,{name:"codeOptOut",noStyle:!0},React.createElement(L.Y,{settings:window.cm_settings})),React.createElement(J,{name:"codeOptOut"})))})),React.createElement(d.Z.Item,{label:(0,b.__)("Code executed on page load")},React.createElement(d.Z.Item,{name:"codeOnPageLoad",noStyle:!0},React.createElement(L.Y,{settings:window.cm_settings})),React.createElement(J,{name:"codeOnPageLoad"})))})),W={labelCol:{span:6},wrapperCol:{span:16}},X={type:"http",name:"",host:"",duration:void 0,durationUnit:"y",sessionDuration:!1},Q=(0,f.Pi)((function(e){var t,a,g,f,I,w,N,O=e.preset,T=e.attributes,M=e.navigateAfterCreation,S=void 0===M||M,D=e.scrollToTop,x=void 0===D||D,F=e.onCreated,A=Z(),B=A.routeGroup,U=B.group,G=B.link,L=A.cookie,V=A.id,H=A.queried,j=A.fetched,Y=d.Z.useForm(),$=(0,p.Z)(Y,1)[0],K=(0,v.useState)(!1),J=(0,p.Z)(K,2),Q=J[0],ee=J[1],te=(0,v.useState)(!1),ae=(0,p.Z)(te,2),ne=ae[0],oe=ae[1],re=(0,k.useHistory)(),ie=(0,_.m)(),ce=ie.cookieStore,le=ie.optionStore.others.useEncodedStringForScriptInputs,se=ce.essentialGroup,ue=(null==L?void 0:L.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:U.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=j?{name:L.data.title.raw,status:L.data.status,group:U.key||void 0,purpose:L.data.content.raw,provider:L.data.meta.provider,providerPrivacyPolicy:L.data.meta.providerPrivacyPolicy,consentForwardingUniqueName:L.data.meta.consentForwardingUniqueName||L.data.slug,noTechnicalDefinitions:L.data.meta.noTechnicalDefinitions,legalBasis:L.data.meta.legalBasis,ePrivacyUSA:L.data.meta.ePrivacyUSA,technicalDefinitions:JSON.parse(JSON.stringify(L.technicalDefinitions||"[]")),codeDynamics:JSON.parse(JSON.stringify(L.codeDynamics||"{}")),thisIsGoogleTagManager:L.data.meta.thisIsGoogleTagManager,googleTagManagerInEventName:L.data.meta.googleTagManagerInEventName,googleTagManagerOutEventName:L.data.meta.googleTagManagerOutEventName,thisIsMatomoTagManager:L.data.meta.thisIsMatomoTagManager,matomoTagManagerInEventName:L.data.meta.matomoTagManagerInEventName,matomoTagManagerOutEventName:L.data.meta.matomoTagManagerOutEventName,codeOptIn:L.data.meta.codeOptIn,codeOptInNoGoogleTagManager:L.data.meta.codeOptInNoGoogleTagManager,codeOptInNoMatomoTagManager:L.data.meta.codeOptInNoMatomoTagManager,codeOptOut:L.data.meta.codeOptOut,codeOptOutNoGoogleTagManager:L.data.meta.codeOptOutNoGoogleTagManager,codeOptOutNoMatomoTagManager:L.data.meta.codeOptOutNoMatomoTagManager,codeOnPageLoad:L.data.meta.codeOnPageLoad,codeOptOutDelete:L.data.meta.codeOptOutDelete}:{name:(null==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)):[X],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(){H&&!j&&U.cookies.getSingle({params:{id:V,context:"edit"}})}),[H,j]),(0,v.useEffect)((function(){ue&&!ue.attributes&&ue.fetchAttributes()}),[ue]),(0,v.useEffect)((function(){x&&(0,R.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,R,_,k,I,Z,w;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,a=function(e){return le?"encodedScript:".concat(btoa(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,R=t.codeOptOut,_=t.codeOnPageLoad,k=(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)({},k),{},{codeOptIn:a(f),codeOptOut:a(R),codeOnPageLoad:a(_),noTechnicalDefinitions:i,codeDynamics:JSON.stringify(d),technicalDefinitions:JSON.stringify(i?he.technicalDefinitions:c),consentForwardingUniqueName:v||E(n)})).presetCheck,!H){e.next=15;break}return L.setName(n),L.setStatus(o),L.setPurpose(r),L.setMeta(I),L.setGroup(m),e.next=13,L.patch();case 13:e.next=20;break;case 15:return Z=ce.groups.entries.get(m),w=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,w.persist();case 19:null==F||F(w);case 20:oe(!1),l.ZP.success((0,b.__)("You have successfully saved the service.")+(p?" ".concat((0,b.__)("Continue with the corresponding Content Blocker!")):"")),S&&setTimeout((function(){return p?re.push("/blocker/new?force=".concat(g||O.identifier,"&cookieCreationPrompt=1").concat("string"==typeof S?"&navigateAfterCreation=".concat(encodeURIComponent(S)):"")):"string"==typeof S?window.location.href=S: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)}}(),[H,L,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 ee(!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,ee(!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,b.__)("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,b.__)('You have unsaved changes. If you click on "confirm", your changes will be discarded.')}),[$,he]);return H&&!j?React.createElement(c.Z,{active:!0,paragraph:{rows:8}}):React.createElement(n.Z,{spinning:Q||(null==ue?void 0:ue.busy)||!1},React.createElement(k.Prompt,{message:Ee}),React.createElement(d.Z,(0,o.Z)({name:"cookie-".concat(U.key,"-").concat(V),form:$},W,{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(C,{groupNotice:(null==T?void 0:T.groupNotice)||(null==ue||null===(I=ue.attributes)||void 0===I?void 0:I.groupNotice),providerPrivacyPolicyNotice:j||null==ue||!ue.attributes||he.providerPrivacyPolicy?null:(0,b.__)('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"===me&&T.group}),React.createElement(q,null),React.createElement(z,{dynamicFields:(null==T?void 0:T.dynamicFields)||(null==ue||null===(w=ue.attributes)||void 0===w?void 0:w.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,b.__)("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,b.__)("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&&S&&React.createElement(d.Z.Item,{wrapperCol:{offset:W.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,b.__)('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,b.__)("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,b.__)("Please select a template for the Content Blocker!")}]},React.createElement(r.Z,{style:{maxWidth:500,marginTop:10,display:"block"},placeholder:(0,b.__)("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,b.__)("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,b.__)("Please confirm that you have checked the contents of the service.")}],wrapperCol:{offset:W.labelCol.span}},React.createElement(i.Z,null,(0,b.__)("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(P.r,{url:(0,b.__)("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,b.__)("Save")})))))}))},8618:function(e,t,a){a.d(t,{C:function(){return o}});var n=a(1593),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=152.lite.js.map?ver=ab9265e568feecc9baeb
 
 
public/dist/152.lite.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"152.lite.js?ver=ab9265e568feecc9baeb","mappings":"wXAKA,SAASA,EAAQC,GAGfA,GAFAA,EAAMA,EAAIC,QAAQ,aAAc,KAEtBC,cAKV,IAHA,IAAIC,EAAO,+BAGFC,EAAI,EAAGC,EAAIF,EA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UAAW,CACTpS,KAAM,YACN+R,KAAM,OACNC,gBAAiB,Y","sources":["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:///./src/public/ts/others/dynamics/index.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 * 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 }, __(\"The ePrivacy Directive and the GDPR require that a non-professional user understands the purpose of this service, how personal data is collected and how cookies are used for this purpose.\"))), /*#__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(\"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, isUrl } from \"../../../../utils\";\nimport { getCookieTypeLocalized } from \"../../../../others\";\nimport { PlusOutlined, QuestionCircleFilled, DeleteOutlined } from \"@ant-design/icons\";\nimport { FormHeadline } from \"../../..\";\nimport { CookieEditFormLayout, technicalDefinitionDefaults } from \"..\";\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 };","/**\n * This fields of cookies can hold dynamic variables in `{{my_variable}}` format.\n */\nvar DYNAMICS_SEARCH_IN = [\"codeOptIn\", \"codeOptOut\", \"codeOnPageLoad\"];\nvar DYNAMICS_VARIABLE_REGEXP = /{{([A-Za-z0-9_]+)}}/gm;\nexport * from \"./apply\";\nexport { DYNAMICS_SEARCH_IN, 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_SEARCH_IN, DYNAMICS_VARIABLE_REGEXP } from \"../../../../others\";\n\n/**\n * Provide dynamic variables in `codeOptIn`, `codeOptOut` and `codeOnPageLoad`.\n */\nvar CookieEditFormCodeDynamics = observer(function (_ref) {\n var dynamicFields = _ref.dynamicFields;\n return /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n shouldUpdate: function shouldUpdate(prevValues, nextValues) {\n return DYNAMICS_SEARCH_IN.map(function (k) {\n return prevValues[k] !== nextValues[k];\n }).filter(Boolean).length > 0;\n }\n }, function (_ref2) {\n var getFieldValue = _ref2.getFieldValue;\n var searchInResolved = DYNAMICS_SEARCH_IN.map(function (k) {\n return getFieldValue(k);\n }).join(\"\");\n var matches = Array.from(searchInResolved.matchAll(DYNAMICS_VARIABLE_REGEXP)).map(function (_ref3) {\n var _ref4 = _slicedToArray(_ref3, 2),\n m = _ref4[1];\n\n return m;\n });\n var added = [];\n return matches ? matches.map(function (name) {\n var formName = [\"codeDynamics\", name];\n\n var _ref5 = (dynamicFields === null || dynamicFields === void 0 ? void 0 : dynamicFields[name]) || {},\n label = _ref5.label,\n _ref5$invalidMessage = _ref5.invalidMessage,\n invalidMessage = _ref5$invalidMessage === void 0 ? __(\"Please fill in a value!\") : _ref5$invalidMessage,\n example = _ref5.example,\n expression = _ref5.expression,\n hint = _ref5.hint;\n\n if (added.indexOf(name) > -1) {\n return null;\n }\n\n added.push(name);\n return /*#__PURE__*/React.createElement(_Form.Item, {\n key: name,\n label: label || /*#__PURE__*/React.createElement(\"code\", null, name),\n required: true\n }, /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n name: formName,\n rules: [{\n required: true,\n pattern: expression ? new RegExp(expression) : undefined,\n message: invalidMessage\n }]\n }, /*#__PURE__*/React.createElement(_Input, {\n placeholder: example ? \"\".concat(__(\"e. g.\"), \" \").concat(example) : undefined\n })), !!hint && /*#__PURE__*/React.createElement(\"div\", {\n className: \"notice notice-info below-h2 notice-alt\",\n style: {\n margin: \"10px 0 5px\"\n }\n }, /*#__PURE__*/React.createElement(\"p\", {\n dangerouslySetInnerHTML: {\n __html: hint\n }\n })));\n }) : null;\n });\n});\nexport { CookieEditFormCodeDynamics };","import _Form from \"antd/es/form\";\nimport _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nimport _toConsumableArray from \"@babel/runtime/helpers/toConsumableArray\";\nimport { useMemo } from \"react\";\nimport { _i, __ } from \"../../../../utils\";\nimport { observer } from \"mobx-react\";\nimport { useStores } from \"../../../../store\";\nvar NoticeFormItemContainsSkipIfActiveAttribute = observer(function (_ref) {\n var name = _ref.name;\n\n var _useStores = useStores(),\n activePlugins = _useStores.optionStore.others.activePlugins;\n\n var activePluginKeys = useMemo(function () {\n return Object.keys(activePlugins);\n }, [activePlugins]);\n return /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n shouldUpdate: function shouldUpdate(prevValues, nextValues) {\n return prevValues[name] !== nextValues[name];\n }\n }, function (_ref2) {\n var getFieldValue = _ref2.getFieldValue;\n var value = getFieldValue(name); // Find `skip-if-active` and their active plugins\n\n var matches = _toConsumableArray(value.matchAll(/\\s+(skip-if-active=\")([^\"]+)(\")/gm)).map(function (_ref3) {\n var _ref4 = _slicedToArray(_ref3, 3),\n plugins = _ref4[2];\n\n return plugins.split(\",\").filter(function (plugin) {\n return activePluginKeys.indexOf(plugin) > -1;\n });\n }).flat();\n\n var uniq = matches.filter(function (plugin, i) {\n return matches.indexOf(plugin) === i;\n });\n\n if (uniq.length === 0) {\n return null;\n }\n\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"notice notice-info below-h2 notice-alt\"\n }, /*#__PURE__*/React.createElement(\"p\", null, _i(__(\"The code above contains HTML tags that are skipped when one of the following plugins is active: {{strong/}}. {{i}}What does this mean for me?{{/i}} In most cases, another plugin will take over the execution of the technical code, and you have to create a corresponding content blocker.\"), {\n strong: /*#__PURE__*/React.createElement(\"strong\", null, uniq.map(function (plugin) {\n return activePlugins[plugin];\n }).join(\", \")),\n i: /*#__PURE__*/React.createElement(\"i\", null)\n })));\n });\n});\nexport { NoticeFormItemContainsSkipIfActiveAttribute };","import _Switch from \"antd/es/switch\";\nimport _Form from \"antd/es/form\";\nimport { useCallback } from \"react\";\nimport { observer } from \"mobx-react\";\nimport { FormHeadline, CodeMirror } 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 }\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 } 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(btoa(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":["slugify","str","replace","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","match","_","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","type","shouldUpdate","prevValues","nextValues","_ref5","_validator","getFieldValue","setFieldsValue","isEssentialGroup","style","display","validateTrigger","validator","_callee3","_context3","_x4","_x5","placeholder","disabled","_i","strong","_ref6","valuePropName","WP_LIST_TABLE_FORM_ITEM_PROPS","wrapperCol","margin","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_SEARCH_IN","DYNAMICS_VARIABLE_REGEXP","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","btoa","setName","setStatus","setPurpose","setMeta","setGroup","patch","rendered","protected","presetId","presetVersion","version","persist","setTimeout","encodeURIComponent","href","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/193.lite.js ADDED
@@ -0,0 +1,2 @@
 
 
1
+ "use strict";(self.webpackChunkrealCookieBanner_name_=self.webpackChunkrealCookieBanner_name_||[]).push([[193],{5193:function(e,t,r){r.d(t,{Z:function(){return G}});var s=r(63),n=r(4741),o=r(6762),a=r(3340),c=r(5558),i=r(3841),l=r(5952),p=r(7363),u=r(2286),d=r.n(u),f=r(733),h=r(1543),k=r(2412),m=r(8719),g=r(2324),y=r(4178),v=r(7988),b=r(7139),C=r(6294);function P(e){return!e||e<0?0:e>100?100:e}function O(e){var t=e.success,r=e.successPercent;return t&&"progress"in t&&((0,b.Z)(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),r=t.progress),t&&"percent"in t&&(r=t.percent),r}var x=function(e,t){var r,s,n=e.from,o=void 0===n?C.ez.blue:n,a=e.to,c=void 0===a?C.ez.blue:a,i=e.direction,l=void 0===i?"rtl"===t?"to left":"to right":i,p=function(e,t){var r={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(r[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(s=Object.getOwnPropertySymbols(e);n<s.length;n++)t.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(e,s[n])&&(r[s[n]]=e[s[n]])}return r}(e,["from","to","direction"]);if(0!==Object.keys(p).length){var u=(r=p,s=[],Object.keys(r).forEach((function(e){var t=parseFloat(e.replace(/%/g,""));isNaN(t)||s.push({key:t,value:r[e]})})),(s=s.sort((function(e,t){return e.key-t.key}))).map((function(e){var t=e.key,r=e.value;return"".concat(r," ").concat(t,"%")})).join(", "));return{backgroundImage:"linear-gradient(".concat(l,", ").concat(u,")")}}return{backgroundImage:"linear-gradient(".concat(l,", ").concat(o,", ").concat(c,")")}},E=function(e){var t=e.prefixCls,r=e.direction,s=e.percent,o=e.strokeWidth,a=e.size,c=e.strokeColor,i=e.strokeLinecap,l=e.children,u=e.trailColor,d=e.success,f=c&&"string"!=typeof c?x(c,r):{background:c},h=u?{backgroundColor:u}:void 0,k=(0,n.Z)({width:"".concat(P(s),"%"),height:o||("small"===a?6:8),borderRadius:"square"===i?0:""},f),m=O(e),g={width:"".concat(P(m),"%"),height:o||("small"===a?6:8),borderRadius:"square"===i?0:"",backgroundColor:null==d?void 0:d.strokeColor},y=void 0!==m?p.createElement("div",{className:"".concat(t,"-success-bg"),style:g}):null;return p.createElement(p.Fragment,null,p.createElement("div",{className:"".concat(t,"-outer")},p.createElement("div",{className:"".concat(t,"-inner"),style:h},p.createElement("div",{className:"".concat(t,"-bg"),style:k}),y)),l)},Z=r(7228),N=r(4115),w={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},j=function(e){var t=e.map((function(){return(0,p.useRef)()})),r=(0,p.useRef)(null);return(0,p.useEffect)((function(){var e=Date.now(),s=!1;Object.keys(t).forEach((function(n){var o=t[n].current;if(o){s=!0;var a=o.style;a.transitionDuration=".3s, .3s, .3s, .06s",r.current&&e-r.current<100&&(a.transitionDuration="0s, 0s")}})),s&&(r.current=Date.now())})),[t]},W=function(e){var t=e.className,r=e.percent,s=e.prefixCls,n=e.strokeColor,o=e.strokeLinecap,a=e.strokeWidth,c=e.style,i=e.trailColor,l=e.trailWidth,u=e.transition,f=(0,N.Z)(e,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete f.gapPosition;var h=Array.isArray(r)?r:[r],k=Array.isArray(n)?n:[n],m=j(h),g=(0,Z.Z)(m,1)[0],y=a/2,v=100-a/2,b="M ".concat("round"===o?y:0,",").concat(y,"\n L ").concat("round"===o?v:100,",").concat(y),C="0 0 100 ".concat(a),P=0;return p.createElement("svg",Object.assign({className:d()("".concat(s,"-line"),t),viewBox:C,preserveAspectRatio:"none",style:c},f),p.createElement("path",{className:"".concat(s,"-line-trail"),d:b,strokeLinecap:o,stroke:i,strokeWidth:l||a,fillOpacity:"0"}),h.map((function(e,t){var r={strokeDasharray:"".concat(e,"px, 100px"),strokeDashoffset:"-".concat(P,"px"),transition:u||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},n=k[t]||k[k.length-1];return P+=e,p.createElement("path",{key:t,className:"".concat(s,"-line-path"),d:b,strokeLinecap:o,stroke:n,strokeWidth:a,fillOpacity:"0",ref:g[t],style:r})})))};W.defaultProps=w,W.displayName="Line";var S=0;function D(e){return+e.replace("%","")}function L(e){return Array.isArray(e)?e:[e]}function I(e,t,r,s){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5?arguments[5]:void 0,a=50-s/2,c=0,i=-a,l=0,p=-2*a;switch(o){case"left":c=-a,i=0,l=2*a,p=0;break;case"right":c=a,i=0,l=-2*a,p=0;break;case"bottom":i=a,p=2*a}var u="M 50,50 m ".concat(c,",").concat(i,"\n a ").concat(a,",").concat(a," 0 1 1 ").concat(l,",").concat(-p,"\n a ").concat(a,",").concat(a," 0 1 1 ").concat(-l,",").concat(p),d=2*Math.PI*a,f={stroke:r,strokeDasharray:"".concat(t/100*(d-n),"px ").concat(d,"px"),strokeDashoffset:"-".concat(n/2+e/100*(d-n),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:u,pathStyle:f}}var z=function(e){var t,r=e.prefixCls,s=e.strokeWidth,n=e.trailWidth,o=e.gapDegree,a=e.gapPosition,c=e.trailColor,i=e.strokeLinecap,l=e.style,u=e.className,f=e.strokeColor,h=e.percent,k=(0,N.Z)(e,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),m=p.useMemo((function(){return S+=1}),[]),g=I(0,100,c,s,o,a),y=g.pathString,v=g.pathStyle,b=L(h),C=L(f),P=C.find((function(e){return"[object Object]"===Object.prototype.toString.call(e)})),O=j(b),x=(0,Z.Z)(O,1)[0];return p.createElement("svg",Object.assign({className:d()("".concat(r,"-circle"),u),viewBox:"0 0 100 100",style:l},k),P&&p.createElement("defs",null,p.createElement("linearGradient",{id:"".concat(r,"-gradient-").concat(m),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(P).sort((function(e,t){return D(e)-D(t)})).map((function(e,t){return p.createElement("stop",{key:t,offset:e,stopColor:P[e]})})))),p.createElement("path",{className:"".concat(r,"-circle-trail"),d:y,stroke:c,strokeLinecap:i,strokeWidth:n||s,fillOpacity:"0",style:v}),(t=0,b.map((function(e,n){var c=C[n]||C[C.length-1],l="[object Object]"===Object.prototype.toString.call(c)?"url(#".concat(r,"-gradient-").concat(m,")"):"",u=I(t,e,c,s,o,a);return t+=e,p.createElement("path",{key:n,className:"".concat(r,"-circle-path"),d:u.pathString,stroke:l,strokeLinecap:i,strokeWidth:s,opacity:0===e?0:1,fillOpacity:"0",style:u.pathStyle,ref:x[n]})}))).reverse())};z.defaultProps=w,z.displayName="Circle";var A=z;function M(e){var t=e.percent,r=e.success,s=e.successPercent,n=P(t),o=O({success:r,successPercent:s});return o?[P(o),P(n-P(o))]:n}var R=function(e){var t,r,n,o=e.prefixCls,a=e.width,c=e.strokeWidth,i=e.trailColor,l=e.strokeLinecap,u=e.gapPosition,f=e.gapDegree,h=e.type,k=e.children,m=a||120,g={width:m,height:m,fontSize:.15*m+6},y=c||6,v=u||"dashboard"===h&&"bottom"||"top",b=(r=(t=e).success,n=t.strokeColor||null,O({success:r,successPercent:t.successPercent})?[C.ez.green,n]:n),P="[object Object]"===Object.prototype.toString.call(b),x=d()("".concat(o,"-inner"),(0,s.Z)({},"".concat(o,"-circle-gradient"),P));return p.createElement("div",{className:x,style:g},p.createElement(A,{percent:M(e),strokeWidth:y,trailWidth:y,strokeColor:b,strokeLinecap:l,trailColor:i,prefixCls:o,gapDegree:f||0===f?f:"dashboard"===h?75:void 0,gapPosition:v}),k)},B=function(e){for(var t=e.size,r=e.steps,n=e.percent,o=void 0===n?0:n,a=e.strokeWidth,c=void 0===a?8:a,i=e.strokeColor,l=e.trailColor,u=e.prefixCls,f=e.children,h=Math.round(r*(o/100)),k="small"===t?2:14,m=[],g=0;g<r;g+=1)m.push(p.createElement("div",{key:g,className:d()("".concat(u,"-steps-item"),(0,s.Z)({},"".concat(u,"-steps-item-active"),g<=h-1)),style:{backgroundColor:g<=h-1?i:l,width:k,height:c}}));return p.createElement("div",{className:"".concat(u,"-steps-outer")},m,f)},_=function(e,t){var r={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(r[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(s=Object.getOwnPropertySymbols(e);n<s.length;n++)t.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(e,s[n])&&(r[s[n]]=e[s[n]])}return r},q=((0,v.b)("line","circle","dashboard"),(0,v.b)("normal","exception","active","success")),F=function(e){(0,i.Z)(r,e);var t=(0,l.Z)(r);function r(){var e;return(0,o.Z)(this,r),(e=t.apply(this,arguments)).renderProgress=function(t){var r,o,a=t.getPrefixCls,i=t.direction,l=(0,c.Z)(e).props,u=l.prefixCls,h=l.className,k=l.size,m=l.type,g=l.steps,y=l.showInfo,v=l.strokeColor,C=_(l,["prefixCls","className","size","type","steps","showInfo","strokeColor"]),P=a("progress",u),O=e.getProgressStatus(),x=e.renderProcessInfo(P,O);(0,b.Z)(!("successPercent"in l),"Progress","`successPercent` is deprecated. Please use `success.percent` instead."),"line"===m?o=g?p.createElement(B,(0,n.Z)({},e.props,{strokeColor:"string"==typeof v?v:void 0,prefixCls:P,steps:g}),x):p.createElement(E,(0,n.Z)({},e.props,{prefixCls:P,direction:i}),x):"circle"!==m&&"dashboard"!==m||(o=p.createElement(R,(0,n.Z)({},e.props,{prefixCls:P,progressStatus:O}),x));var Z=d()(P,(r={},(0,s.Z)(r,"".concat(P,"-").concat(("dashboard"===m?"circle":g&&"steps")||m),!0),(0,s.Z)(r,"".concat(P,"-status-").concat(O),!0),(0,s.Z)(r,"".concat(P,"-show-info"),y),(0,s.Z)(r,"".concat(P,"-").concat(k),k),(0,s.Z)(r,"".concat(P,"-rtl"),"rtl"===i),r),h);return p.createElement("div",(0,n.Z)({},(0,f.Z)(C,["status","format","trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","percent","success","successPercent"]),{className:Z}),o)},e}return(0,a.Z)(r,[{key:"getPercentNumber",value:function(){var e=this.props.percent,t=void 0===e?0:e,r=O(this.props);return parseInt(void 0!==r?r.toString():t.toString(),10)}},{key:"getProgressStatus",value:function(){var e=this.props.status;return q.indexOf(e)<0&&this.getPercentNumber()>=100?"success":e||"normal"}},{key:"renderProcessInfo",value:function(e,t){var r,s=this.props,n=s.showInfo,o=s.format,a=s.type,c=s.percent,i=O(this.props);if(!n)return null;var l="line"===a;return o||"exception"!==t&&"success"!==t?r=(o||function(e){return"".concat(e,"%")})(P(c),P(i)):"exception"===t?r=l?p.createElement(g.Z,null):p.createElement(h.Z,null):"success"===t&&(r=l?p.createElement(m.Z,null):p.createElement(k.Z,null)),p.createElement("span",{className:"".concat(e,"-text"),title:"string"==typeof r?r:void 0},r)}},{key:"render",value:function(){return p.createElement(y.C,null,this.renderProgress)}}]),r}(p.Component);F.defaultProps={type:"line",percent:0,showInfo:!0,trailColor:null,size:"default",gapDegree:void 0,strokeLinecap:"round"};var G=F}}]);
2
+ //# sourceMappingURL=193.lite.js.map?ver=ce7e07933bcbf069b690
public/dist/{415.lite.js.map → 193.lite.js.map} RENAMED
@@ -1 +1 @@
1
- {"version":3,"file":"415.lite.js?ver=b2d0ca21f8210618fd80","mappings":"kWACO,SAASA,EAAcC,GAC5B,OAAKA,GAAYA,EAAW,EACnB,EAGLA,EAAW,IACN,IAGFA,EAEF,SAASC,EAAkBC,GAChC,IAAIC,EAAUD,EAAKC,QAEfC,EADiBF,EAAKG,eAa1B,OATIF,GAAW,aAAcA,KAC3B,EAAAG,EAAA,IAAW,EAAO,WAAY,2EAC9BF,EAAUD,EAAQH,UAGhBG,GAAW,YAAaA,IAC1BC,EAAUD,EAAQC,SAGbA,ECzBT,IA8DWG,EAA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,EAAe8H,WAAa/H,EAAQ+H,WAAY,MAEhG,CACD/F,IAAK,oBACLM,MAAO,WACL,IAAIwI,EAASf,KAAKjH,MAAMgI,OAExB,OAAIpB,EAAiBnI,QAAQuJ,GAAU,GAAKf,KAAKgB,oBAAsB,IAC9D,UAGFD,GAAU,WAElB,CACD9I,IAAK,oBACLM,MAAO,SAA2BS,EAAWuH,GAC3C,IAOIU,EAPAC,EAAclB,KAAKjH,MACnBuH,EAAWY,EAAYZ,SACvBa,EAASD,EAAYC,OACrBtC,EAAOqC,EAAYrC,KACnB5I,EAAUiL,EAAYjL,QACtBC,EAAiBJ,EAAkBkK,KAAKjH,OAC5C,IAAKuH,EAAU,OAAO,KAGtB,IAIIc,EAAsB,SAATvC,EAUjB,OARIsC,GAA6B,cAAnBZ,GAAqD,YAAnBA,EAC9CU,GAPkBE,GAAU,SAAUE,GACtC,MAAO,GAAGzI,OAAOyI,EAAe,OAMXzL,EAAcK,GAAUL,EAAcM,IAC/B,cAAnBqK,EACTU,EAAOG,EAA0B,gBAAoBE,EAAA,EAAmB,MAAqB,gBAAoBC,EAAA,EAAe,MACpG,YAAnBhB,IACTU,EAAOG,EAA0B,gBAAoBI,EAAA,EAAmB,MAAqB,gBAAoBC,EAAA,EAAe,OAG9G,gBAAoB,OAAQ,CAC9CxH,UAAW,GAAGrB,OAAOI,EAAW,SAChC0I,MAAuB,iBAATT,EAAoBA,OAAOvH,GACxCuH,KAEJ,CACDhJ,IAAK,SACLM,MAAO,WACL,OAAoB,gBAAoB,EAAAoJ,EAAgB,KAAM3B,KAAKE,oBAIhEN,EAzHmB,CA0H1B,aAGFA,EAASzF,aAAe,CACtB0E,KAAM,OACN5I,QAAS,EACTqK,UAAU,EAEVjH,WAAY,KACZH,KAAM,UACN+D,eAAWvD,EACXP,cAAe,SC1KjB","sources":["webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/antd/es/progress/utils.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/antd/es/progress/Line.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/rc-progress/es/common.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/rc-progress/es/Line.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/rc-progress/es/Circle.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/antd/es/progress/Circle.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/antd/es/progress/Steps.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/antd/es/progress/progress.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/antd/es/progress/index.js"],"sourcesContent":["import devWarning from '../_util/devWarning';\nexport function validProgress(progress) {\n if (!progress || progress < 0) {\n return 0;\n }\n\n if (progress > 100) {\n return 100;\n }\n\n return progress;\n}\nexport function getSuccessPercent(_ref) {\n var success = _ref.success,\n successPercent = _ref.successPercent;\n var percent = successPercent;\n /** @deprecated Use `percent` instead */\n\n if (success && 'progress' in success) {\n devWarning(false, 'Progress', '`success.progress` is deprecated. Please use `success.percent` instead.');\n percent = success.progress;\n }\n\n if (success && 'percent' in success) {\n percent = success.percent;\n }\n\n return percent;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\n\nimport * as React from 'react';\nimport { presetPrimaryColors } from '@ant-design/colors';\nimport { validProgress, getSuccessPercent } from './utils';\n/**\n * @example\n * {\n * \"0%\": \"#afc163\",\n * \"75%\": \"#009900\",\n * \"50%\": \"green\", // ====> '#afc163 0%, #66FF00 25%, #00CC00 50%, #009900 75%, #ffffff 100%'\n * \"25%\": \"#66FF00\",\n * \"100%\": \"#ffffff\"\n * }\n */\n\nexport var sortGradient = function sortGradient(gradients) {\n var tempArr = [];\n Object.keys(gradients).forEach(function (key) {\n var formattedKey = parseFloat(key.replace(/%/g, ''));\n\n if (!isNaN(formattedKey)) {\n tempArr.push({\n key: formattedKey,\n value: gradients[key]\n });\n }\n });\n tempArr = tempArr.sort(function (a, b) {\n return a.key - b.key;\n });\n return tempArr.map(function (_ref) {\n var key = _ref.key,\n value = _ref.value;\n return \"\".concat(value, \" \").concat(key, \"%\");\n }).join(', ');\n};\n/**\n * Then this man came to realize the truth: Besides six pence, there is the moon. Besides bread and\n * butter, there is the bug. And... Besides women, there is the code.\n *\n * @example\n * {\n * \"0%\": \"#afc163\",\n * \"25%\": \"#66FF00\",\n * \"50%\": \"#00CC00\", // ====> linear-gradient(to right, #afc163 0%, #66FF00 25%,\n * \"75%\": \"#009900\", // #00CC00 50%, #009900 75%, #ffffff 100%)\n * \"100%\": \"#ffffff\"\n * }\n */\n\nexport var handleGradient = function handleGradient(strokeColor, directionConfig) {\n var _strokeColor$from = strokeColor.from,\n from = _strokeColor$from === void 0 ? presetPrimaryColors.blue : _strokeColor$from,\n _strokeColor$to = strokeColor.to,\n to = _strokeColor$to === void 0 ? presetPrimaryColors.blue : _strokeColor$to,\n _strokeColor$directio = strokeColor.direction,\n direction = _strokeColor$directio === void 0 ? directionConfig === 'rtl' ? 'to left' : 'to right' : _strokeColor$directio,\n rest = __rest(strokeColor, [\"from\", \"to\", \"direction\"]);\n\n if (Object.keys(rest).length !== 0) {\n var sortedGradients = sortGradient(rest);\n return {\n backgroundImage: \"linear-gradient(\".concat(direction, \", \").concat(sortedGradients, \")\")\n };\n }\n\n return {\n backgroundImage: \"linear-gradient(\".concat(direction, \", \").concat(from, \", \").concat(to, \")\")\n };\n};\n\nvar Line = function Line(props) {\n var prefixCls = props.prefixCls,\n directionConfig = props.direction,\n percent = props.percent,\n strokeWidth = props.strokeWidth,\n size = props.size,\n strokeColor = props.strokeColor,\n strokeLinecap = props.strokeLinecap,\n children = props.children,\n trailColor = props.trailColor,\n success = props.success;\n var backgroundProps = strokeColor && typeof strokeColor !== 'string' ? handleGradient(strokeColor, directionConfig) : {\n background: strokeColor\n };\n var trailStyle = trailColor ? {\n backgroundColor: trailColor\n } : undefined;\n\n var percentStyle = _extends({\n width: \"\".concat(validProgress(percent), \"%\"),\n height: strokeWidth || (size === 'small' ? 6 : 8),\n borderRadius: strokeLinecap === 'square' ? 0 : ''\n }, backgroundProps);\n\n var successPercent = getSuccessPercent(props);\n var successPercentStyle = {\n width: \"\".concat(validProgress(successPercent), \"%\"),\n height: strokeWidth || (size === 'small' ? 6 : 8),\n borderRadius: strokeLinecap === 'square' ? 0 : '',\n backgroundColor: success === null || success === void 0 ? void 0 : success.strokeColor\n };\n var successSegment = successPercent !== undefined ? /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-success-bg\"),\n style: successPercentStyle\n }) : null;\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-outer\")\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-inner\"),\n style: trailStyle\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-bg\"),\n style: percentStyle\n }), successSegment)), children);\n};\n\nexport default Line;","import { useRef, useEffect } from 'react';\nexport var defaultProps = {\n className: '',\n percent: 0,\n prefixCls: 'rc-progress',\n strokeColor: '#2db7f5',\n strokeLinecap: 'round',\n strokeWidth: 1,\n style: {},\n trailColor: '#D9D9D9',\n trailWidth: 1\n};\nexport var useTransitionDuration = function useTransitionDuration(percentList) {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n var paths = percentList.map(function () {\n return useRef();\n });\n var prevTimeStamp = useRef(null);\n useEffect(function () {\n var now = Date.now();\n var updated = false;\n Object.keys(paths).forEach(function (key) {\n var path = paths[key].current;\n\n if (!path) {\n return;\n }\n\n updated = true;\n var pathStyle = path.style;\n pathStyle.transitionDuration = '.3s, .3s, .3s, .06s';\n\n if (prevTimeStamp.current && now - prevTimeStamp.current < 100) {\n pathStyle.transitionDuration = '0s, 0s';\n }\n });\n\n if (updated) {\n prevTimeStamp.current = Date.now();\n }\n });\n return [paths];\n};","import _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { useTransitionDuration, defaultProps } from './common';\n\nvar Line = function Line(_ref) {\n var className = _ref.className,\n percent = _ref.percent,\n prefixCls = _ref.prefixCls,\n strokeColor = _ref.strokeColor,\n strokeLinecap = _ref.strokeLinecap,\n strokeWidth = _ref.strokeWidth,\n style = _ref.style,\n trailColor = _ref.trailColor,\n trailWidth = _ref.trailWidth,\n transition = _ref.transition,\n restProps = _objectWithoutProperties(_ref, [\"className\", \"percent\", \"prefixCls\", \"strokeColor\", \"strokeLinecap\", \"strokeWidth\", \"style\", \"trailColor\", \"trailWidth\", \"transition\"]);\n\n // eslint-disable-next-line no-param-reassign\n delete restProps.gapPosition;\n var percentList = Array.isArray(percent) ? percent : [percent];\n var strokeColorList = Array.isArray(strokeColor) ? strokeColor : [strokeColor];\n\n var _useTransitionDuratio = useTransitionDuration(percentList),\n _useTransitionDuratio2 = _slicedToArray(_useTransitionDuratio, 1),\n paths = _useTransitionDuratio2[0];\n\n var center = strokeWidth / 2;\n var right = 100 - strokeWidth / 2;\n var pathString = \"M \".concat(strokeLinecap === 'round' ? center : 0, \",\").concat(center, \"\\n L \").concat(strokeLinecap === 'round' ? right : 100, \",\").concat(center);\n var viewBoxString = \"0 0 100 \".concat(strokeWidth);\n var stackPtg = 0;\n return React.createElement(\"svg\", Object.assign({\n className: classNames(\"\".concat(prefixCls, \"-line\"), className),\n viewBox: viewBoxString,\n preserveAspectRatio: \"none\",\n style: style\n }, restProps), React.createElement(\"path\", {\n className: \"\".concat(prefixCls, \"-line-trail\"),\n d: pathString,\n strokeLinecap: strokeLinecap,\n stroke: trailColor,\n strokeWidth: trailWidth || strokeWidth,\n fillOpacity: \"0\"\n }), percentList.map(function (ptg, index) {\n var pathStyle = {\n strokeDasharray: \"\".concat(ptg, \"px, 100px\"),\n strokeDashoffset: \"-\".concat(stackPtg, \"px\"),\n transition: transition || 'stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear'\n };\n var color = strokeColorList[index] || strokeColorList[strokeColorList.length - 1];\n stackPtg += ptg;\n return React.createElement(\"path\", {\n key: index,\n className: \"\".concat(prefixCls, \"-line-path\"),\n d: pathString,\n strokeLinecap: strokeLinecap,\n stroke: color,\n strokeWidth: strokeWidth,\n fillOpacity: \"0\",\n ref: paths[index],\n style: pathStyle\n });\n }));\n};\n\nLine.defaultProps = defaultProps;\nLine.displayName = 'Line';\nexport default Line;","import _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { useTransitionDuration, defaultProps } from './common';\nvar gradientSeed = 0;\n\nfunction stripPercentToNumber(percent) {\n return +percent.replace('%', '');\n}\n\nfunction toArray(symArray) {\n return Array.isArray(symArray) ? symArray : [symArray];\n}\n\nfunction getPathStyles(offset, percent, strokeColor, strokeWidth) {\n var gapDegree = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;\n var gapPosition = arguments.length > 5 ? arguments[5] : undefined;\n var radius = 50 - strokeWidth / 2;\n var beginPositionX = 0;\n var beginPositionY = -radius;\n var endPositionX = 0;\n var endPositionY = -2 * radius;\n\n switch (gapPosition) {\n case 'left':\n beginPositionX = -radius;\n beginPositionY = 0;\n endPositionX = 2 * radius;\n endPositionY = 0;\n break;\n\n case 'right':\n beginPositionX = radius;\n beginPositionY = 0;\n endPositionX = -2 * radius;\n endPositionY = 0;\n break;\n\n case 'bottom':\n beginPositionY = radius;\n endPositionY = 2 * radius;\n break;\n\n default:\n }\n\n var pathString = \"M 50,50 m \".concat(beginPositionX, \",\").concat(beginPositionY, \"\\n a \").concat(radius, \",\").concat(radius, \" 0 1 1 \").concat(endPositionX, \",\").concat(-endPositionY, \"\\n a \").concat(radius, \",\").concat(radius, \" 0 1 1 \").concat(-endPositionX, \",\").concat(endPositionY);\n var len = Math.PI * 2 * radius;\n var pathStyle = {\n stroke: strokeColor,\n strokeDasharray: \"\".concat(percent / 100 * (len - gapDegree), \"px \").concat(len, \"px\"),\n strokeDashoffset: \"-\".concat(gapDegree / 2 + offset / 100 * (len - gapDegree), \"px\"),\n transition: 'stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s'\n };\n return {\n pathString: pathString,\n pathStyle: pathStyle\n };\n}\n\nvar Circle = function Circle(_ref) {\n var prefixCls = _ref.prefixCls,\n strokeWidth = _ref.strokeWidth,\n trailWidth = _ref.trailWidth,\n gapDegree = _ref.gapDegree,\n gapPosition = _ref.gapPosition,\n trailColor = _ref.trailColor,\n strokeLinecap = _ref.strokeLinecap,\n style = _ref.style,\n className = _ref.className,\n strokeColor = _ref.strokeColor,\n percent = _ref.percent,\n restProps = _objectWithoutProperties(_ref, [\"prefixCls\", \"strokeWidth\", \"trailWidth\", \"gapDegree\", \"gapPosition\", \"trailColor\", \"strokeLinecap\", \"style\", \"className\", \"strokeColor\", \"percent\"]);\n\n var gradientId = React.useMemo(function () {\n gradientSeed += 1;\n return gradientSeed;\n }, []);\n\n var _getPathStyles = getPathStyles(0, 100, trailColor, strokeWidth, gapDegree, gapPosition),\n pathString = _getPathStyles.pathString,\n pathStyle = _getPathStyles.pathStyle;\n\n var percentList = toArray(percent);\n var strokeColorList = toArray(strokeColor);\n var gradient = strokeColorList.find(function (color) {\n return Object.prototype.toString.call(color) === '[object Object]';\n });\n\n var _useTransitionDuratio = useTransitionDuration(percentList),\n _useTransitionDuratio2 = _slicedToArray(_useTransitionDuratio, 1),\n paths = _useTransitionDuratio2[0];\n\n var getStokeList = function getStokeList() {\n var stackPtg = 0;\n return percentList.map(function (ptg, index) {\n var color = strokeColorList[index] || strokeColorList[strokeColorList.length - 1];\n var stroke = Object.prototype.toString.call(color) === '[object Object]' ? \"url(#\".concat(prefixCls, \"-gradient-\").concat(gradientId, \")\") : '';\n var pathStyles = getPathStyles(stackPtg, ptg, color, strokeWidth, gapDegree, gapPosition);\n stackPtg += ptg;\n return React.createElement(\"path\", {\n key: index,\n className: \"\".concat(prefixCls, \"-circle-path\"),\n d: pathStyles.pathString,\n stroke: stroke,\n strokeLinecap: strokeLinecap,\n strokeWidth: strokeWidth,\n opacity: ptg === 0 ? 0 : 1,\n fillOpacity: \"0\",\n style: pathStyles.pathStyle,\n ref: paths[index]\n });\n });\n };\n\n return React.createElement(\"svg\", Object.assign({\n className: classNames(\"\".concat(prefixCls, \"-circle\"), className),\n viewBox: \"0 0 100 100\",\n style: style\n }, restProps), gradient && React.createElement(\"defs\", null, React.createElement(\"linearGradient\", {\n id: \"\".concat(prefixCls, \"-gradient-\").concat(gradientId),\n x1: \"100%\",\n y1: \"0%\",\n x2: \"0%\",\n y2: \"0%\"\n }, Object.keys(gradient).sort(function (a, b) {\n return stripPercentToNumber(a) - stripPercentToNumber(b);\n }).map(function (key, index) {\n return React.createElement(\"stop\", {\n key: index,\n offset: key,\n stopColor: gradient[key]\n });\n }))), React.createElement(\"path\", {\n className: \"\".concat(prefixCls, \"-circle-trail\"),\n d: pathString,\n stroke: trailColor,\n strokeLinecap: strokeLinecap,\n strokeWidth: trailWidth || strokeWidth,\n fillOpacity: \"0\",\n style: pathStyle\n }), getStokeList().reverse());\n};\n\nCircle.defaultProps = defaultProps;\nCircle.displayName = 'Circle';\nexport default Circle;","import _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport * as React from 'react';\nimport { Circle as RCCircle } from 'rc-progress';\nimport { presetPrimaryColors } from '@ant-design/colors';\nimport classNames from 'classnames';\nimport { validProgress, getSuccessPercent } from './utils';\n\nfunction getPercentage(_ref) {\n var percent = _ref.percent,\n success = _ref.success,\n successPercent = _ref.successPercent;\n var ptg = validProgress(percent);\n var realSuccessPercent = getSuccessPercent({\n success: success,\n successPercent: successPercent\n });\n\n if (!realSuccessPercent) {\n return ptg;\n }\n\n return [validProgress(realSuccessPercent), validProgress(ptg - validProgress(realSuccessPercent))];\n}\n\nfunction getStrokeColor(_ref2) {\n var success = _ref2.success,\n strokeColor = _ref2.strokeColor,\n successPercent = _ref2.successPercent;\n var color = strokeColor || null;\n var realSuccessPercent = getSuccessPercent({\n success: success,\n successPercent: successPercent\n });\n\n if (!realSuccessPercent) {\n return color;\n }\n\n return [presetPrimaryColors.green, color];\n}\n\nvar Circle = function Circle(props) {\n var prefixCls = props.prefixCls,\n width = props.width,\n strokeWidth = props.strokeWidth,\n trailColor = props.trailColor,\n strokeLinecap = props.strokeLinecap,\n gapPosition = props.gapPosition,\n gapDegree = props.gapDegree,\n type = props.type,\n children = props.children;\n var circleSize = width || 120;\n var circleStyle = {\n width: circleSize,\n height: circleSize,\n fontSize: circleSize * 0.15 + 6\n };\n var circleWidth = strokeWidth || 6;\n var gapPos = gapPosition || type === 'dashboard' && 'bottom' || 'top';\n\n var getGapDegree = function getGapDegree() {\n // Support gapDeg = 0 when type = 'dashboard'\n if (gapDegree || gapDegree === 0) {\n return gapDegree;\n }\n\n if (type === 'dashboard') {\n return 75;\n }\n\n return undefined;\n }; // using className to style stroke color\n\n\n var strokeColor = getStrokeColor(props);\n var isGradient = Object.prototype.toString.call(strokeColor) === '[object Object]';\n var wrapperClassName = classNames(\"\".concat(prefixCls, \"-inner\"), _defineProperty({}, \"\".concat(prefixCls, \"-circle-gradient\"), isGradient));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: wrapperClassName,\n style: circleStyle\n }, /*#__PURE__*/React.createElement(RCCircle, {\n percent: getPercentage(props),\n strokeWidth: circleWidth,\n trailWidth: circleWidth,\n strokeColor: strokeColor,\n strokeLinecap: strokeLinecap,\n trailColor: trailColor,\n prefixCls: prefixCls,\n gapDegree: getGapDegree(),\n gapPosition: gapPos\n }), children);\n};\n\nexport default Circle;","import _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport * as React from 'react';\nimport classNames from 'classnames';\n\nvar Steps = function Steps(props) {\n var size = props.size,\n steps = props.steps,\n _props$percent = props.percent,\n percent = _props$percent === void 0 ? 0 : _props$percent,\n _props$strokeWidth = props.strokeWidth,\n strokeWidth = _props$strokeWidth === void 0 ? 8 : _props$strokeWidth,\n strokeColor = props.strokeColor,\n trailColor = props.trailColor,\n prefixCls = props.prefixCls,\n children = props.children;\n var current = Math.round(steps * (percent / 100));\n var stepWidth = size === 'small' ? 2 : 14;\n var styledSteps = [];\n\n for (var i = 0; i < steps; i += 1) {\n styledSteps.push( /*#__PURE__*/React.createElement(\"div\", {\n key: i,\n className: classNames(\"\".concat(prefixCls, \"-steps-item\"), _defineProperty({}, \"\".concat(prefixCls, \"-steps-item-active\"), i <= current - 1)),\n style: {\n backgroundColor: i <= current - 1 ? strokeColor : trailColor,\n width: stepWidth,\n height: strokeWidth\n }\n }));\n }\n\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-steps-outer\")\n }, styledSteps, children);\n};\n\nexport default Steps;","import _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport omit from \"rc-util/es/omit\";\nimport CloseOutlined from \"@ant-design/icons/es/icons/CloseOutlined\";\nimport CheckOutlined from \"@ant-design/icons/es/icons/CheckOutlined\";\nimport CheckCircleFilled from \"@ant-design/icons/es/icons/CheckCircleFilled\";\nimport CloseCircleFilled from \"@ant-design/icons/es/icons/CloseCircleFilled\";\nimport { ConfigConsumer } from '../config-provider';\nimport { tuple } from '../_util/type';\nimport devWarning from '../_util/devWarning';\nimport Line from './Line';\nimport Circle from './Circle';\nimport Steps from './Steps';\nimport { validProgress, getSuccessPercent } from './utils';\nvar ProgressTypes = tuple('line', 'circle', 'dashboard');\nvar ProgressStatuses = tuple('normal', 'exception', 'active', 'success');\n\nvar Progress = /*#__PURE__*/function (_React$Component) {\n _inherits(Progress, _React$Component);\n\n var _super = _createSuper(Progress);\n\n function Progress() {\n var _this;\n\n _classCallCheck(this, Progress);\n\n _this = _super.apply(this, arguments);\n\n _this.renderProgress = function (_ref) {\n var _classNames;\n\n var getPrefixCls = _ref.getPrefixCls,\n direction = _ref.direction;\n\n var _assertThisInitialize = _assertThisInitialized(_this),\n props = _assertThisInitialize.props;\n\n var customizePrefixCls = props.prefixCls,\n className = props.className,\n size = props.size,\n type = props.type,\n steps = props.steps,\n showInfo = props.showInfo,\n strokeColor = props.strokeColor,\n restProps = __rest(props, [\"prefixCls\", \"className\", \"size\", \"type\", \"steps\", \"showInfo\", \"strokeColor\"]);\n\n var prefixCls = getPrefixCls('progress', customizePrefixCls);\n\n var progressStatus = _this.getProgressStatus();\n\n var progressInfo = _this.renderProcessInfo(prefixCls, progressStatus);\n\n devWarning(!('successPercent' in props), 'Progress', '`successPercent` is deprecated. Please use `success.percent` instead.');\n var progress; // Render progress shape\n\n if (type === 'line') {\n progress = steps ? /*#__PURE__*/React.createElement(Steps, _extends({}, _this.props, {\n strokeColor: typeof strokeColor === 'string' ? strokeColor : undefined,\n prefixCls: prefixCls,\n steps: steps\n }), progressInfo) : /*#__PURE__*/React.createElement(Line, _extends({}, _this.props, {\n prefixCls: prefixCls,\n direction: direction\n }), progressInfo);\n } else if (type === 'circle' || type === 'dashboard') {\n progress = /*#__PURE__*/React.createElement(Circle, _extends({}, _this.props, {\n prefixCls: prefixCls,\n progressStatus: progressStatus\n }), progressInfo);\n }\n\n var classString = classNames(prefixCls, (_classNames = {}, _defineProperty(_classNames, \"\".concat(prefixCls, \"-\").concat(type === 'dashboard' && 'circle' || steps && 'steps' || type), true), _defineProperty(_classNames, \"\".concat(prefixCls, \"-status-\").concat(progressStatus), true), _defineProperty(_classNames, \"\".concat(prefixCls, \"-show-info\"), showInfo), _defineProperty(_classNames, \"\".concat(prefixCls, \"-\").concat(size), size), _defineProperty(_classNames, \"\".concat(prefixCls, \"-rtl\"), direction === 'rtl'), _classNames), className);\n return /*#__PURE__*/React.createElement(\"div\", _extends({}, omit(restProps, ['status', 'format', 'trailColor', 'strokeWidth', 'width', 'gapDegree', 'gapPosition', 'strokeLinecap', 'percent', 'success', 'successPercent']), {\n className: classString\n }), progress);\n };\n\n return _this;\n }\n\n _createClass(Progress, [{\n key: \"getPercentNumber\",\n value: function getPercentNumber() {\n var _this$props$percent = this.props.percent,\n percent = _this$props$percent === void 0 ? 0 : _this$props$percent;\n var successPercent = getSuccessPercent(this.props);\n return parseInt(successPercent !== undefined ? successPercent.toString() : percent.toString(), 10);\n }\n }, {\n key: \"getProgressStatus\",\n value: function getProgressStatus() {\n var status = this.props.status;\n\n if (ProgressStatuses.indexOf(status) < 0 && this.getPercentNumber() >= 100) {\n return 'success';\n }\n\n return status || 'normal';\n }\n }, {\n key: \"renderProcessInfo\",\n value: function renderProcessInfo(prefixCls, progressStatus) {\n var _this$props = this.props,\n showInfo = _this$props.showInfo,\n format = _this$props.format,\n type = _this$props.type,\n percent = _this$props.percent;\n var successPercent = getSuccessPercent(this.props);\n if (!showInfo) return null;\n var text;\n\n var textFormatter = format || function (percentNumber) {\n return \"\".concat(percentNumber, \"%\");\n };\n\n var isLineType = type === 'line';\n\n if (format || progressStatus !== 'exception' && progressStatus !== 'success') {\n text = textFormatter(validProgress(percent), validProgress(successPercent));\n } else if (progressStatus === 'exception') {\n text = isLineType ? /*#__PURE__*/React.createElement(CloseCircleFilled, null) : /*#__PURE__*/React.createElement(CloseOutlined, null);\n } else if (progressStatus === 'success') {\n text = isLineType ? /*#__PURE__*/React.createElement(CheckCircleFilled, null) : /*#__PURE__*/React.createElement(CheckOutlined, null);\n }\n\n return /*#__PURE__*/React.createElement(\"span\", {\n className: \"\".concat(prefixCls, \"-text\"),\n title: typeof text === 'string' ? text : undefined\n }, text);\n }\n }, {\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(ConfigConsumer, null, this.renderProgress);\n }\n }]);\n\n return Progress;\n}(React.Component);\n\nexport { Progress as default };\nProgress.defaultProps = {\n type: 'line',\n percent: 0,\n showInfo: true,\n // null for different theme definition\n trailColor: null,\n size: 'default',\n gapDegree: undefined,\n strokeLinecap: 'round'\n};","import Progress from './progress';\nexport default Progress;"],"names":["validProgress","progress","getSuccessPercent","_ref","success","percent","successPercent","devWarning","handleGradient","strokeColor","directionConfig","gradients","tempArr","_strokeColor$from","from","_strokeColor$to","to","_strokeColor$directio","direction","rest","s","e","t","p","Object","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","__rest","keys","sortedGradients","forEach","key","formattedKey","parseFloat","replace","isNaN","push","value","sort","a","b","map","concat","join","backgroundImage","props","prefixCls","strokeWidth","size","strokeLinecap","children","trailColor","backgroundProps","background","trailStyle","backgroundColor","undefined","percentStyle","width","height","borderRadius","successPercentStyle","successSegment","className","style","defaultProps","trailWidth","useTransitionDuration","percentList","paths","useRef","prevTimeStamp","useEffect","now","Date","updated","path","current","pathStyle","transitionDuration","transition","restProps","gapPosition","Array","isArray","strokeColorList","_useTransitionDuratio","center","right","pathString","viewBoxString","stackPtg","assign","viewBox","preserveAspectRatio","d","stroke","fillOpacity","ptg","index","strokeDasharray","strokeDashoffset","color","ref","displayName","gradientSeed","stripPercentToNumber","toArray","symArray","getPathStyles","offset","gapDegree","arguments","radius","beginPositionX","beginPositionY","endPositionX","endPositionY","len","Math","PI","Circle","gradientId","_getPathStyles","gradient","find","toString","id","x1","y1","x2","y2","stopColor","pathStyles","opacity","reverse","getPercentage","realSuccessPercent","_ref2","type","circleSize","circleStyle","fontSize","circleWidth","gapPos","isGradient","wrapperClassName","steps","_props$percent","_props$strokeWidth","round","stepWidth","styledSteps","ProgressStatuses","Progress","_React$Component","_super","_this","this","apply","renderProgress","_classNames","getPrefixCls","customizePrefixCls","showInfo","progressStatus","getProgressStatus","progressInfo","renderProcessInfo","classString","omit","_this$props$percent","parseInt","status","getPercentNumber","text","_this$props","format","isLineType","percentNumber","CloseCircleFilled","CloseOutlined","CheckCircleFilled","CheckOutlined","title","C"],"sourceRoot":""}
1
+ {"version":3,"file":"193.lite.js?ver=ce7e07933bcbf069b690","mappings":"mWACO,SAASA,EAAcC,GAC5B,OAAKA,GAAYA,EAAW,EACnB,EAGLA,EAAW,IACN,IAGFA,EAEF,SAASC,EAAkBC,GAChC,IAAIC,EAAUD,EAAKC,QAEfC,EADiBF,EAAKG,eAa1B,OATIF,GAAW,aAAcA,KAC3B,EAAAG,EAAA,IAAW,EAAO,WAAY,2EAC9BF,EAAUD,EAAQH,UAGhBG,GAAW,YAAaA,IAC1BC,EAAUD,EAAQC,SAGbA,ECzBT,IA8DWG,EAAiB,SAAwBC,EAAaC,GAC/D,IApC8CC,EAC1CC,EAmCAC,EAAoBJ,EAAYK,KAChCA,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IwI,EAASf,KAAKjH,MAAMgI,OAExB,OAAIpB,EAAiBnI,QAAQuJ,GAAU,GAAKf,KAAKgB,oBAAsB,IAC9D,UAGFD,GAAU,WAElB,CACD9I,IAAK,oBACLM,MAAO,SAA2BS,EAAWuH,GAC3C,IAOIU,EAPAC,EAAclB,KAAKjH,MACnBuH,EAAWY,EAAYZ,SACvBa,EAASD,EAAYC,OACrBtC,EAAOqC,EAAYrC,KACnB5I,EAAUiL,EAAYjL,QACtBC,EAAiBJ,EAAkBkK,KAAKjH,OAC5C,IAAKuH,EAAU,OAAO,KAGtB,IAIIc,EAAsB,SAATvC,EAUjB,OARIsC,GAA6B,cAAnBZ,GAAqD,YAAnBA,EAC9CU,GAPkBE,GAAU,SAAUE,GACtC,MAAO,GAAGzI,OAAOyI,EAAe,OAMXzL,EAAcK,GAAUL,EAAcM,IAC/B,cAAnBqK,EACTU,EAAOG,EAA0B,gBAAoBE,EAAA,EAAmB,MAAqB,gBAAoBC,EAAA,EAAe,MACpG,YAAnBhB,IACTU,EAAOG,EAA0B,gBAAoBI,EAAA,EAAmB,MAAqB,gBAAoBC,EAAA,EAAe,OAG9G,gBAAoB,OAAQ,CAC9CxH,UAAW,GAAGrB,OAAOI,EAAW,SAChC0I,MAAuB,iBAATT,EAAoBA,OAAOvH,GACxCuH,KAEJ,CACDhJ,IAAK,SACLM,MAAO,WACL,OAAoB,gBAAoB,EAAAoJ,EAAgB,KAAM3B,KAAKE,oBAIhEN,EAzHmB,CA0H1B,aAGFA,EAASzF,aAAe,CACtB0E,KAAM,OACN5I,QAAS,EACTqK,UAAU,EAEVjH,WAAY,KACZH,KAAM,UACN+D,eAAWvD,EACXP,cAAe,SC1KjB","sources":["webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/antd/es/progress/utils.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/antd/es/progress/Line.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/rc-progress/es/common.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/rc-progress/es/Line.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/rc-progress/es/Circle.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/antd/es/progress/Circle.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/antd/es/progress/Steps.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/antd/es/progress/progress.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/antd/es/progress/index.js"],"sourcesContent":["import devWarning from '../_util/devWarning';\nexport function validProgress(progress) {\n if (!progress || progress < 0) {\n return 0;\n }\n\n if (progress > 100) {\n return 100;\n }\n\n return progress;\n}\nexport function getSuccessPercent(_ref) {\n var success = _ref.success,\n successPercent = _ref.successPercent;\n var percent = successPercent;\n /** @deprecated Use `percent` instead */\n\n if (success && 'progress' in success) {\n devWarning(false, 'Progress', '`success.progress` is deprecated. Please use `success.percent` instead.');\n percent = success.progress;\n }\n\n if (success && 'percent' in success) {\n percent = success.percent;\n }\n\n return percent;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\n\nimport * as React from 'react';\nimport { presetPrimaryColors } from '@ant-design/colors';\nimport { validProgress, getSuccessPercent } from './utils';\n/**\n * @example\n * {\n * \"0%\": \"#afc163\",\n * \"75%\": \"#009900\",\n * \"50%\": \"green\", // ====> '#afc163 0%, #66FF00 25%, #00CC00 50%, #009900 75%, #ffffff 100%'\n * \"25%\": \"#66FF00\",\n * \"100%\": \"#ffffff\"\n * }\n */\n\nexport var sortGradient = function sortGradient(gradients) {\n var tempArr = [];\n Object.keys(gradients).forEach(function (key) {\n var formattedKey = parseFloat(key.replace(/%/g, ''));\n\n if (!isNaN(formattedKey)) {\n tempArr.push({\n key: formattedKey,\n value: gradients[key]\n });\n }\n });\n tempArr = tempArr.sort(function (a, b) {\n return a.key - b.key;\n });\n return tempArr.map(function (_ref) {\n var key = _ref.key,\n value = _ref.value;\n return \"\".concat(value, \" \").concat(key, \"%\");\n }).join(', ');\n};\n/**\n * Then this man came to realize the truth: Besides six pence, there is the moon. Besides bread and\n * butter, there is the bug. And... Besides women, there is the code.\n *\n * @example\n * {\n * \"0%\": \"#afc163\",\n * \"25%\": \"#66FF00\",\n * \"50%\": \"#00CC00\", // ====> linear-gradient(to right, #afc163 0%, #66FF00 25%,\n * \"75%\": \"#009900\", // #00CC00 50%, #009900 75%, #ffffff 100%)\n * \"100%\": \"#ffffff\"\n * }\n */\n\nexport var handleGradient = function handleGradient(strokeColor, directionConfig) {\n var _strokeColor$from = strokeColor.from,\n from = _strokeColor$from === void 0 ? presetPrimaryColors.blue : _strokeColor$from,\n _strokeColor$to = strokeColor.to,\n to = _strokeColor$to === void 0 ? presetPrimaryColors.blue : _strokeColor$to,\n _strokeColor$directio = strokeColor.direction,\n direction = _strokeColor$directio === void 0 ? directionConfig === 'rtl' ? 'to left' : 'to right' : _strokeColor$directio,\n rest = __rest(strokeColor, [\"from\", \"to\", \"direction\"]);\n\n if (Object.keys(rest).length !== 0) {\n var sortedGradients = sortGradient(rest);\n return {\n backgroundImage: \"linear-gradient(\".concat(direction, \", \").concat(sortedGradients, \")\")\n };\n }\n\n return {\n backgroundImage: \"linear-gradient(\".concat(direction, \", \").concat(from, \", \").concat(to, \")\")\n };\n};\n\nvar Line = function Line(props) {\n var prefixCls = props.prefixCls,\n directionConfig = props.direction,\n percent = props.percent,\n strokeWidth = props.strokeWidth,\n size = props.size,\n strokeColor = props.strokeColor,\n strokeLinecap = props.strokeLinecap,\n children = props.children,\n trailColor = props.trailColor,\n success = props.success;\n var backgroundProps = strokeColor && typeof strokeColor !== 'string' ? handleGradient(strokeColor, directionConfig) : {\n background: strokeColor\n };\n var trailStyle = trailColor ? {\n backgroundColor: trailColor\n } : undefined;\n\n var percentStyle = _extends({\n width: \"\".concat(validProgress(percent), \"%\"),\n height: strokeWidth || (size === 'small' ? 6 : 8),\n borderRadius: strokeLinecap === 'square' ? 0 : ''\n }, backgroundProps);\n\n var successPercent = getSuccessPercent(props);\n var successPercentStyle = {\n width: \"\".concat(validProgress(successPercent), \"%\"),\n height: strokeWidth || (size === 'small' ? 6 : 8),\n borderRadius: strokeLinecap === 'square' ? 0 : '',\n backgroundColor: success === null || success === void 0 ? void 0 : success.strokeColor\n };\n var successSegment = successPercent !== undefined ? /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-success-bg\"),\n style: successPercentStyle\n }) : null;\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-outer\")\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-inner\"),\n style: trailStyle\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-bg\"),\n style: percentStyle\n }), successSegment)), children);\n};\n\nexport default Line;","import { useRef, useEffect } from 'react';\nexport var defaultProps = {\n className: '',\n percent: 0,\n prefixCls: 'rc-progress',\n strokeColor: '#2db7f5',\n strokeLinecap: 'round',\n strokeWidth: 1,\n style: {},\n trailColor: '#D9D9D9',\n trailWidth: 1\n};\nexport var useTransitionDuration = function useTransitionDuration(percentList) {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n var paths = percentList.map(function () {\n return useRef();\n });\n var prevTimeStamp = useRef(null);\n useEffect(function () {\n var now = Date.now();\n var updated = false;\n Object.keys(paths).forEach(function (key) {\n var path = paths[key].current;\n\n if (!path) {\n return;\n }\n\n updated = true;\n var pathStyle = path.style;\n pathStyle.transitionDuration = '.3s, .3s, .3s, .06s';\n\n if (prevTimeStamp.current && now - prevTimeStamp.current < 100) {\n pathStyle.transitionDuration = '0s, 0s';\n }\n });\n\n if (updated) {\n prevTimeStamp.current = Date.now();\n }\n });\n return [paths];\n};","import _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { useTransitionDuration, defaultProps } from './common';\n\nvar Line = function Line(_ref) {\n var className = _ref.className,\n percent = _ref.percent,\n prefixCls = _ref.prefixCls,\n strokeColor = _ref.strokeColor,\n strokeLinecap = _ref.strokeLinecap,\n strokeWidth = _ref.strokeWidth,\n style = _ref.style,\n trailColor = _ref.trailColor,\n trailWidth = _ref.trailWidth,\n transition = _ref.transition,\n restProps = _objectWithoutProperties(_ref, [\"className\", \"percent\", \"prefixCls\", \"strokeColor\", \"strokeLinecap\", \"strokeWidth\", \"style\", \"trailColor\", \"trailWidth\", \"transition\"]);\n\n // eslint-disable-next-line no-param-reassign\n delete restProps.gapPosition;\n var percentList = Array.isArray(percent) ? percent : [percent];\n var strokeColorList = Array.isArray(strokeColor) ? strokeColor : [strokeColor];\n\n var _useTransitionDuratio = useTransitionDuration(percentList),\n _useTransitionDuratio2 = _slicedToArray(_useTransitionDuratio, 1),\n paths = _useTransitionDuratio2[0];\n\n var center = strokeWidth / 2;\n var right = 100 - strokeWidth / 2;\n var pathString = \"M \".concat(strokeLinecap === 'round' ? center : 0, \",\").concat(center, \"\\n L \").concat(strokeLinecap === 'round' ? right : 100, \",\").concat(center);\n var viewBoxString = \"0 0 100 \".concat(strokeWidth);\n var stackPtg = 0;\n return React.createElement(\"svg\", Object.assign({\n className: classNames(\"\".concat(prefixCls, \"-line\"), className),\n viewBox: viewBoxString,\n preserveAspectRatio: \"none\",\n style: style\n }, restProps), React.createElement(\"path\", {\n className: \"\".concat(prefixCls, \"-line-trail\"),\n d: pathString,\n strokeLinecap: strokeLinecap,\n stroke: trailColor,\n strokeWidth: trailWidth || strokeWidth,\n fillOpacity: \"0\"\n }), percentList.map(function (ptg, index) {\n var pathStyle = {\n strokeDasharray: \"\".concat(ptg, \"px, 100px\"),\n strokeDashoffset: \"-\".concat(stackPtg, \"px\"),\n transition: transition || 'stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear'\n };\n var color = strokeColorList[index] || strokeColorList[strokeColorList.length - 1];\n stackPtg += ptg;\n return React.createElement(\"path\", {\n key: index,\n className: \"\".concat(prefixCls, \"-line-path\"),\n d: pathString,\n strokeLinecap: strokeLinecap,\n stroke: color,\n strokeWidth: strokeWidth,\n fillOpacity: \"0\",\n ref: paths[index],\n style: pathStyle\n });\n }));\n};\n\nLine.defaultProps = defaultProps;\nLine.displayName = 'Line';\nexport default Line;","import _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { useTransitionDuration, defaultProps } from './common';\nvar gradientSeed = 0;\n\nfunction stripPercentToNumber(percent) {\n return +percent.replace('%', '');\n}\n\nfunction toArray(symArray) {\n return Array.isArray(symArray) ? symArray : [symArray];\n}\n\nfunction getPathStyles(offset, percent, strokeColor, strokeWidth) {\n var gapDegree = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;\n var gapPosition = arguments.length > 5 ? arguments[5] : undefined;\n var radius = 50 - strokeWidth / 2;\n var beginPositionX = 0;\n var beginPositionY = -radius;\n var endPositionX = 0;\n var endPositionY = -2 * radius;\n\n switch (gapPosition) {\n case 'left':\n beginPositionX = -radius;\n beginPositionY = 0;\n endPositionX = 2 * radius;\n endPositionY = 0;\n break;\n\n case 'right':\n beginPositionX = radius;\n beginPositionY = 0;\n endPositionX = -2 * radius;\n endPositionY = 0;\n break;\n\n case 'bottom':\n beginPositionY = radius;\n endPositionY = 2 * radius;\n break;\n\n default:\n }\n\n var pathString = \"M 50,50 m \".concat(beginPositionX, \",\").concat(beginPositionY, \"\\n a \").concat(radius, \",\").concat(radius, \" 0 1 1 \").concat(endPositionX, \",\").concat(-endPositionY, \"\\n a \").concat(radius, \",\").concat(radius, \" 0 1 1 \").concat(-endPositionX, \",\").concat(endPositionY);\n var len = Math.PI * 2 * radius;\n var pathStyle = {\n stroke: strokeColor,\n strokeDasharray: \"\".concat(percent / 100 * (len - gapDegree), \"px \").concat(len, \"px\"),\n strokeDashoffset: \"-\".concat(gapDegree / 2 + offset / 100 * (len - gapDegree), \"px\"),\n transition: 'stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s'\n };\n return {\n pathString: pathString,\n pathStyle: pathStyle\n };\n}\n\nvar Circle = function Circle(_ref) {\n var prefixCls = _ref.prefixCls,\n strokeWidth = _ref.strokeWidth,\n trailWidth = _ref.trailWidth,\n gapDegree = _ref.gapDegree,\n gapPosition = _ref.gapPosition,\n trailColor = _ref.trailColor,\n strokeLinecap = _ref.strokeLinecap,\n style = _ref.style,\n className = _ref.className,\n strokeColor = _ref.strokeColor,\n percent = _ref.percent,\n restProps = _objectWithoutProperties(_ref, [\"prefixCls\", \"strokeWidth\", \"trailWidth\", \"gapDegree\", \"gapPosition\", \"trailColor\", \"strokeLinecap\", \"style\", \"className\", \"strokeColor\", \"percent\"]);\n\n var gradientId = React.useMemo(function () {\n gradientSeed += 1;\n return gradientSeed;\n }, []);\n\n var _getPathStyles = getPathStyles(0, 100, trailColor, strokeWidth, gapDegree, gapPosition),\n pathString = _getPathStyles.pathString,\n pathStyle = _getPathStyles.pathStyle;\n\n var percentList = toArray(percent);\n var strokeColorList = toArray(strokeColor);\n var gradient = strokeColorList.find(function (color) {\n return Object.prototype.toString.call(color) === '[object Object]';\n });\n\n var _useTransitionDuratio = useTransitionDuration(percentList),\n _useTransitionDuratio2 = _slicedToArray(_useTransitionDuratio, 1),\n paths = _useTransitionDuratio2[0];\n\n var getStokeList = function getStokeList() {\n var stackPtg = 0;\n return percentList.map(function (ptg, index) {\n var color = strokeColorList[index] || strokeColorList[strokeColorList.length - 1];\n var stroke = Object.prototype.toString.call(color) === '[object Object]' ? \"url(#\".concat(prefixCls, \"-gradient-\").concat(gradientId, \")\") : '';\n var pathStyles = getPathStyles(stackPtg, ptg, color, strokeWidth, gapDegree, gapPosition);\n stackPtg += ptg;\n return React.createElement(\"path\", {\n key: index,\n className: \"\".concat(prefixCls, \"-circle-path\"),\n d: pathStyles.pathString,\n stroke: stroke,\n strokeLinecap: strokeLinecap,\n strokeWidth: strokeWidth,\n opacity: ptg === 0 ? 0 : 1,\n fillOpacity: \"0\",\n style: pathStyles.pathStyle,\n ref: paths[index]\n });\n });\n };\n\n return React.createElement(\"svg\", Object.assign({\n className: classNames(\"\".concat(prefixCls, \"-circle\"), className),\n viewBox: \"0 0 100 100\",\n style: style\n }, restProps), gradient && React.createElement(\"defs\", null, React.createElement(\"linearGradient\", {\n id: \"\".concat(prefixCls, \"-gradient-\").concat(gradientId),\n x1: \"100%\",\n y1: \"0%\",\n x2: \"0%\",\n y2: \"0%\"\n }, Object.keys(gradient).sort(function (a, b) {\n return stripPercentToNumber(a) - stripPercentToNumber(b);\n }).map(function (key, index) {\n return React.createElement(\"stop\", {\n key: index,\n offset: key,\n stopColor: gradient[key]\n });\n }))), React.createElement(\"path\", {\n className: \"\".concat(prefixCls, \"-circle-trail\"),\n d: pathString,\n stroke: trailColor,\n strokeLinecap: strokeLinecap,\n strokeWidth: trailWidth || strokeWidth,\n fillOpacity: \"0\",\n style: pathStyle\n }), getStokeList().reverse());\n};\n\nCircle.defaultProps = defaultProps;\nCircle.displayName = 'Circle';\nexport default Circle;","import _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport * as React from 'react';\nimport { Circle as RCCircle } from 'rc-progress';\nimport { presetPrimaryColors } from '@ant-design/colors';\nimport classNames from 'classnames';\nimport { validProgress, getSuccessPercent } from './utils';\n\nfunction getPercentage(_ref) {\n var percent = _ref.percent,\n success = _ref.success,\n successPercent = _ref.successPercent;\n var ptg = validProgress(percent);\n var realSuccessPercent = getSuccessPercent({\n success: success,\n successPercent: successPercent\n });\n\n if (!realSuccessPercent) {\n return ptg;\n }\n\n return [validProgress(realSuccessPercent), validProgress(ptg - validProgress(realSuccessPercent))];\n}\n\nfunction getStrokeColor(_ref2) {\n var success = _ref2.success,\n strokeColor = _ref2.strokeColor,\n successPercent = _ref2.successPercent;\n var color = strokeColor || null;\n var realSuccessPercent = getSuccessPercent({\n success: success,\n successPercent: successPercent\n });\n\n if (!realSuccessPercent) {\n return color;\n }\n\n return [presetPrimaryColors.green, color];\n}\n\nvar Circle = function Circle(props) {\n var prefixCls = props.prefixCls,\n width = props.width,\n strokeWidth = props.strokeWidth,\n trailColor = props.trailColor,\n strokeLinecap = props.strokeLinecap,\n gapPosition = props.gapPosition,\n gapDegree = props.gapDegree,\n type = props.type,\n children = props.children;\n var circleSize = width || 120;\n var circleStyle = {\n width: circleSize,\n height: circleSize,\n fontSize: circleSize * 0.15 + 6\n };\n var circleWidth = strokeWidth || 6;\n var gapPos = gapPosition || type === 'dashboard' && 'bottom' || 'top';\n\n var getGapDegree = function getGapDegree() {\n // Support gapDeg = 0 when type = 'dashboard'\n if (gapDegree || gapDegree === 0) {\n return gapDegree;\n }\n\n if (type === 'dashboard') {\n return 75;\n }\n\n return undefined;\n }; // using className to style stroke color\n\n\n var strokeColor = getStrokeColor(props);\n var isGradient = Object.prototype.toString.call(strokeColor) === '[object Object]';\n var wrapperClassName = classNames(\"\".concat(prefixCls, \"-inner\"), _defineProperty({}, \"\".concat(prefixCls, \"-circle-gradient\"), isGradient));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: wrapperClassName,\n style: circleStyle\n }, /*#__PURE__*/React.createElement(RCCircle, {\n percent: getPercentage(props),\n strokeWidth: circleWidth,\n trailWidth: circleWidth,\n strokeColor: strokeColor,\n strokeLinecap: strokeLinecap,\n trailColor: trailColor,\n prefixCls: prefixCls,\n gapDegree: getGapDegree(),\n gapPosition: gapPos\n }), children);\n};\n\nexport default Circle;","import _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport * as React from 'react';\nimport classNames from 'classnames';\n\nvar Steps = function Steps(props) {\n var size = props.size,\n steps = props.steps,\n _props$percent = props.percent,\n percent = _props$percent === void 0 ? 0 : _props$percent,\n _props$strokeWidth = props.strokeWidth,\n strokeWidth = _props$strokeWidth === void 0 ? 8 : _props$strokeWidth,\n strokeColor = props.strokeColor,\n trailColor = props.trailColor,\n prefixCls = props.prefixCls,\n children = props.children;\n var current = Math.round(steps * (percent / 100));\n var stepWidth = size === 'small' ? 2 : 14;\n var styledSteps = [];\n\n for (var i = 0; i < steps; i += 1) {\n styledSteps.push( /*#__PURE__*/React.createElement(\"div\", {\n key: i,\n className: classNames(\"\".concat(prefixCls, \"-steps-item\"), _defineProperty({}, \"\".concat(prefixCls, \"-steps-item-active\"), i <= current - 1)),\n style: {\n backgroundColor: i <= current - 1 ? strokeColor : trailColor,\n width: stepWidth,\n height: strokeWidth\n }\n }));\n }\n\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-steps-outer\")\n }, styledSteps, children);\n};\n\nexport default Steps;","import _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport omit from \"rc-util/es/omit\";\nimport CloseOutlined from \"@ant-design/icons/es/icons/CloseOutlined\";\nimport CheckOutlined from \"@ant-design/icons/es/icons/CheckOutlined\";\nimport CheckCircleFilled from \"@ant-design/icons/es/icons/CheckCircleFilled\";\nimport CloseCircleFilled from \"@ant-design/icons/es/icons/CloseCircleFilled\";\nimport { ConfigConsumer } from '../config-provider';\nimport { tuple } from '../_util/type';\nimport devWarning from '../_util/devWarning';\nimport Line from './Line';\nimport Circle from './Circle';\nimport Steps from './Steps';\nimport { validProgress, getSuccessPercent } from './utils';\nvar ProgressTypes = tuple('line', 'circle', 'dashboard');\nvar ProgressStatuses = tuple('normal', 'exception', 'active', 'success');\n\nvar Progress = /*#__PURE__*/function (_React$Component) {\n _inherits(Progress, _React$Component);\n\n var _super = _createSuper(Progress);\n\n function Progress() {\n var _this;\n\n _classCallCheck(this, Progress);\n\n _this = _super.apply(this, arguments);\n\n _this.renderProgress = function (_ref) {\n var _classNames;\n\n var getPrefixCls = _ref.getPrefixCls,\n direction = _ref.direction;\n\n var _assertThisInitialize = _assertThisInitialized(_this),\n props = _assertThisInitialize.props;\n\n var customizePrefixCls = props.prefixCls,\n className = props.className,\n size = props.size,\n type = props.type,\n steps = props.steps,\n showInfo = props.showInfo,\n strokeColor = props.strokeColor,\n restProps = __rest(props, [\"prefixCls\", \"className\", \"size\", \"type\", \"steps\", \"showInfo\", \"strokeColor\"]);\n\n var prefixCls = getPrefixCls('progress', customizePrefixCls);\n\n var progressStatus = _this.getProgressStatus();\n\n var progressInfo = _this.renderProcessInfo(prefixCls, progressStatus);\n\n devWarning(!('successPercent' in props), 'Progress', '`successPercent` is deprecated. Please use `success.percent` instead.');\n var progress; // Render progress shape\n\n if (type === 'line') {\n progress = steps ? /*#__PURE__*/React.createElement(Steps, _extends({}, _this.props, {\n strokeColor: typeof strokeColor === 'string' ? strokeColor : undefined,\n prefixCls: prefixCls,\n steps: steps\n }), progressInfo) : /*#__PURE__*/React.createElement(Line, _extends({}, _this.props, {\n prefixCls: prefixCls,\n direction: direction\n }), progressInfo);\n } else if (type === 'circle' || type === 'dashboard') {\n progress = /*#__PURE__*/React.createElement(Circle, _extends({}, _this.props, {\n prefixCls: prefixCls,\n progressStatus: progressStatus\n }), progressInfo);\n }\n\n var classString = classNames(prefixCls, (_classNames = {}, _defineProperty(_classNames, \"\".concat(prefixCls, \"-\").concat(type === 'dashboard' && 'circle' || steps && 'steps' || type), true), _defineProperty(_classNames, \"\".concat(prefixCls, \"-status-\").concat(progressStatus), true), _defineProperty(_classNames, \"\".concat(prefixCls, \"-show-info\"), showInfo), _defineProperty(_classNames, \"\".concat(prefixCls, \"-\").concat(size), size), _defineProperty(_classNames, \"\".concat(prefixCls, \"-rtl\"), direction === 'rtl'), _classNames), className);\n return /*#__PURE__*/React.createElement(\"div\", _extends({}, omit(restProps, ['status', 'format', 'trailColor', 'strokeWidth', 'width', 'gapDegree', 'gapPosition', 'strokeLinecap', 'percent', 'success', 'successPercent']), {\n className: classString\n }), progress);\n };\n\n return _this;\n }\n\n _createClass(Progress, [{\n key: \"getPercentNumber\",\n value: function getPercentNumber() {\n var _this$props$percent = this.props.percent,\n percent = _this$props$percent === void 0 ? 0 : _this$props$percent;\n var successPercent = getSuccessPercent(this.props);\n return parseInt(successPercent !== undefined ? successPercent.toString() : percent.toString(), 10);\n }\n }, {\n key: \"getProgressStatus\",\n value: function getProgressStatus() {\n var status = this.props.status;\n\n if (ProgressStatuses.indexOf(status) < 0 && this.getPercentNumber() >= 100) {\n return 'success';\n }\n\n return status || 'normal';\n }\n }, {\n key: \"renderProcessInfo\",\n value: function renderProcessInfo(prefixCls, progressStatus) {\n var _this$props = this.props,\n showInfo = _this$props.showInfo,\n format = _this$props.format,\n type = _this$props.type,\n percent = _this$props.percent;\n var successPercent = getSuccessPercent(this.props);\n if (!showInfo) return null;\n var text;\n\n var textFormatter = format || function (percentNumber) {\n return \"\".concat(percentNumber, \"%\");\n };\n\n var isLineType = type === 'line';\n\n if (format || progressStatus !== 'exception' && progressStatus !== 'success') {\n text = textFormatter(validProgress(percent), validProgress(successPercent));\n } else if (progressStatus === 'exception') {\n text = isLineType ? /*#__PURE__*/React.createElement(CloseCircleFilled, null) : /*#__PURE__*/React.createElement(CloseOutlined, null);\n } else if (progressStatus === 'success') {\n text = isLineType ? /*#__PURE__*/React.createElement(CheckCircleFilled, null) : /*#__PURE__*/React.createElement(CheckOutlined, null);\n }\n\n return /*#__PURE__*/React.createElement(\"span\", {\n className: \"\".concat(prefixCls, \"-text\"),\n title: typeof text === 'string' ? text : undefined\n }, text);\n }\n }, {\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(ConfigConsumer, null, this.renderProgress);\n }\n }]);\n\n return Progress;\n}(React.Component);\n\nexport { Progress as default };\nProgress.defaultProps = {\n type: 'line',\n percent: 0,\n showInfo: true,\n // null for different theme definition\n trailColor: null,\n size: 'default',\n gapDegree: undefined,\n strokeLinecap: 'round'\n};","import Progress from './progress';\nexport default Progress;"],"names":["validProgress","progress","getSuccessPercent","_ref","success","percent","successPercent","devWarning","handleGradient","strokeColor","directionConfig","gradients","tempArr","_strokeColor$from","from","_strokeColor$to","to","_strokeColor$directio","direction","rest","s","e","t","p","Object","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","__rest","keys","sortedGradients","forEach","key","formattedKey","parseFloat","replace","isNaN","push","value","sort","a","b","map","concat","join","backgroundImage","props","prefixCls","strokeWidth","size","strokeLinecap","children","trailColor","backgroundProps","background","trailStyle","backgroundColor","undefined","percentStyle","width","height","borderRadius","successPercentStyle","successSegment","className","style","defaultProps","trailWidth","useTransitionDuration","percentList","paths","useRef","prevTimeStamp","useEffect","now","Date","updated","path","current","pathStyle","transitionDuration","transition","restProps","gapPosition","Array","isArray","strokeColorList","_useTransitionDuratio","center","right","pathString","viewBoxString","stackPtg","assign","viewBox","preserveAspectRatio","d","stroke","fillOpacity","ptg","index","strokeDasharray","strokeDashoffset","color","ref","displayName","gradientSeed","stripPercentToNumber","toArray","symArray","getPathStyles","offset","gapDegree","arguments","radius","beginPositionX","beginPositionY","endPositionX","endPositionY","len","Math","PI","Circle","gradientId","_getPathStyles","gradient","find","toString","id","x1","y1","x2","y2","stopColor","pathStyles","opacity","reverse","getPercentage","realSuccessPercent","_ref2","type","circleSize","circleStyle","fontSize","circleWidth","gapPos","isGradient","wrapperClassName","steps","_props$percent","_props$strokeWidth","round","stepWidth","styledSteps","ProgressStatuses","Progress","_React$Component","_super","_this","this","apply","renderProgress","_classNames","getPrefixCls","customizePrefixCls","showInfo","progressStatus","getProgressStatus","progressInfo","renderProcessInfo","classString","omit","_this$props$percent","parseInt","status","getPercentNumber","text","_this$props","format","isLineType","percentNumber","CloseCircleFilled","CloseOutlined","CheckCircleFilled","CheckOutlined","title","C"],"sourceRoot":""}
public/dist/240.lite.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunkrealCookieBanner_name_=self.webpackChunkrealCookieBanner_name_||[]).push([[240],{6771:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(7363),a={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:e}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm193.4 225.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.3 0 19.9 5 25.9 13.3l71.2 98.8 157.2-218c6-8.4 15.7-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.4 12.7z",fill:t}},{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z",fill:e}}]}},name:"check-circle",theme:"twotone"},o=n(2545),l=function(e,t){return r.createElement(o.Z,Object.assign({},e,{ref:t,icon:a}))};l.displayName="CheckCircleTwoTone";var i=r.forwardRef(l)},7820:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(7363),a={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:e}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm171.8 527.1c1.2 1.5 1.9 3.3 1.9 5.2 0 4.5-3.6 8-8 8l-66-.3-99.3-118.4-99.3 118.5-66.1.3c-4.4 0-8-3.6-8-8 0-1.9.7-3.7 1.9-5.2L471 512.3l-130.1-155a8.32 8.32 0 01-1.9-5.2c0-4.5 3.6-8 8-8l66.1.3 99.3 118.4 99.4-118.5 66-.3c4.4 0 8 3.6 8 8 0 1.9-.6 3.8-1.8 5.2l-130.1 155 129.9 154.9z",fill:t}},{tag:"path",attrs:{d:"M685.8 352c0-4.4-3.6-8-8-8l-66 .3-99.4 118.5-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155-130.1 154.9a8.32 8.32 0 00-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3 99.3-118.5L611.7 680l66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.9 512.2l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z",fill:e}}]}},name:"close-circle",theme:"twotone"},o=n(2545),l=function(e,t){return r.createElement(o.Z,Object.assign({},e,{ref:t,icon:a}))};l.displayName="CloseCircleTwoTone";var i=r.forwardRef(l)},6412:function(e,t,n){n.d(t,{C:function(){return w}});var r=n(4741),a=n(63),o=n(3429),l=n(7228),i=n(7363),c=n(2286),s=n.n(c),u=n(2125),f=n(5643),d=n(7079),p=n(3631),v=n(4952),h=n(3490),m=i.createContext("default"),g=function(e){var t=e.children,n=e.size;return i.createElement(m.Consumer,null,(function(e){return i.createElement(m.Provider,{value:n||e},t)}))},y=m,b=function(e,t){var n,c,m=i.useContext(y),g=i.useState(1),b=(0,l.Z)(g,2),O=b[0],Z=b[1],C=i.useState(!1),E=(0,l.Z)(C,2),x=E[0],k=E[1],w=i.useState(!0),N=(0,l.Z)(w,2),z=N[0],P=N[1],S=i.useRef(),j=i.useRef(),R=(0,f.sQ)(t,S),M=i.useContext(d.E_).getPrefixCls,_=function(){if(j.current&&S.current){var t=j.current.offsetWidth,n=S.current.offsetWidth;if(0!==t&&0!==n){var r=e.gap,a=void 0===r?4:r;2*a<n&&Z(n-2*a<t?(n-2*a)/t:1)}}};i.useEffect((function(){k(!0)}),[]),i.useEffect((function(){P(!0),Z(1)}),[e.src]),i.useEffect((function(){_()}),[e.gap]);var H=e.prefixCls,V=e.shape,W=e.size,L=e.src,T=e.srcSet,B=e.icon,I=e.className,U=e.alt,D=e.draggable,G=e.children,A=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}(e,["prefixCls","shape","size","src","srcSet","icon","className","alt","draggable","children"]),F="default"===W?m:W,Q=(0,h.Z)(),X=i.useMemo((function(){if("object"!==(0,o.Z)(F))return{};var e=v.c4.find((function(e){return Q[e]})),t=F[e];return t?{width:t,height:t,lineHeight:"".concat(t,"px"),fontSize:B?t/2:18}:{}}),[Q,F]);(0,p.Z)(!("string"==typeof B&&B.length>2),"Avatar","`icon` is using ReactNode instead of string naming in v4. Please check `".concat(B,"` at https://ant.design/components/icon"));var K,Y=M("avatar",H),q=s()((n={},(0,a.Z)(n,"".concat(Y,"-lg"),"large"===F),(0,a.Z)(n,"".concat(Y,"-sm"),"small"===F),n)),J=i.isValidElement(L),$=s()(Y,q,(c={},(0,a.Z)(c,"".concat(Y,"-").concat(V),!!V),(0,a.Z)(c,"".concat(Y,"-image"),J||L&&z),(0,a.Z)(c,"".concat(Y,"-icon"),!!B),c),I),ee="number"==typeof F?{width:F,height:F,lineHeight:"".concat(F,"px"),fontSize:B?F/2:18}:{};if("string"==typeof L&&z)K=i.createElement("img",{src:L,draggable:D,srcSet:T,onError:function(){var t=e.onError;!1!==(t?t():void 0)&&P(!1)},alt:U});else if(J)K=L;else if(B)K=B;else if(x||1!==O){var te="scale(".concat(O,") translateX(-50%)"),ne={msTransform:te,WebkitTransform:te,transform:te},re="number"==typeof F?{lineHeight:"".concat(F,"px")}:{};K=i.createElement(u.Z,{onResize:_},i.createElement("span",{className:"".concat(Y,"-string"),ref:function(e){j.current=e},style:(0,r.Z)((0,r.Z)({},re),ne)},G))}else K=i.createElement("span",{className:"".concat(Y,"-string"),style:{opacity:0},ref:function(e){j.current=e}},G);return delete A.onError,delete A.gap,i.createElement("span",(0,r.Z)({},A,{style:(0,r.Z)((0,r.Z)((0,r.Z)({},ee),X),A.style),className:$,ref:R}),K)},O=i.forwardRef(b);O.displayName="Avatar",O.defaultProps={shape:"circle",size:"default"};var Z=O,C=n(4237),E=n(6219),x=n(2481),k=Z;k.Group=function(e){var t=i.useContext(d.E_),n=t.getPrefixCls,r=t.direction,o=e.prefixCls,l=e.className,c=void 0===l?"":l,u=e.maxCount,f=e.maxStyle,p=e.size,v=n("avatar-group",o),h=s()(v,(0,a.Z)({},"".concat(v,"-rtl"),"rtl"===r),c),m=e.children,y=e.maxPopoverPlacement,b=void 0===y?"top":y,O=(0,C.Z)(m).map((function(e,t){return(0,E.Tm)(e,{key:"avatar-key-".concat(t)})})),k=O.length;if(u&&u<k){var w=O.slice(0,u),N=O.slice(u,k);return w.push(i.createElement(x.Z,{key:"avatar-popover-key",content:N,trigger:"hover",placement:b,overlayClassName:"".concat(v,"-popover")},i.createElement(Z,{style:f},"+".concat(k-u)))),i.createElement(g,{size:p},i.createElement("div",{className:h,style:e.style},w))}return i.createElement(g,{size:p},i.createElement("div",{className:h,style:e.style},O))};var w=k},8911:function(e,t,n){n.d(t,{Z:function(){return C}});var r=n(63),a=n(4741),o=n(7363),l=n(2286),i=n.n(l),c=n(3296),s=n(7870),u=n(7228),f=n(733),d=n(7079),p=o.createContext(null),v=function(e,t){var n=e.defaultValue,l=e.children,c=e.options,v=void 0===c?[]:c,h=e.prefixCls,m=e.className,g=e.style,y=e.onChange,b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}(e,["defaultValue","children","options","prefixCls","className","style","onChange"]),Z=o.useContext(d.E_),C=Z.getPrefixCls,E=Z.direction,x=o.useState(b.value||n||[]),k=(0,u.Z)(x,2),w=k[0],N=k[1],z=o.useState([]),P=(0,u.Z)(z,2),S=P[0],j=P[1];o.useEffect((function(){"value"in b&&N(b.value||[])}),[b.value]);var R=function(){return v.map((function(e){return"string"==typeof e?{label:e,value:e}:e}))},M=C("checkbox",h),_="".concat(M,"-group"),H=(0,f.Z)(b,["value","disabled"]);v&&v.length>0&&(l=R().map((function(e){return o.createElement(O,{prefixCls:M,key:e.value.toString(),disabled:"disabled"in e?e.disabled:b.disabled,value:e.value,checked:-1!==w.indexOf(e.value),onChange:e.onChange,className:"".concat(_,"-item"),style:e.style},e.label)})));var V={toggleOption:function(e){var t=w.indexOf(e.value),n=(0,s.Z)(w);-1===t?n.push(e.value):n.splice(t,1),"value"in b||N(n);var r=R();null==y||y(n.filter((function(e){return-1!==S.indexOf(e)})).sort((function(e,t){return r.findIndex((function(t){return t.value===e}))-r.findIndex((function(e){return e.value===t}))})))},value:w,disabled:b.disabled,name:b.name,registerValue:function(e){j((function(t){return[].concat((0,s.Z)(t),[e])}))},cancelValue:function(e){j((function(t){return t.filter((function(t){return t!==e}))}))}},W=i()(_,(0,r.Z)({},"".concat(_,"-rtl"),"rtl"===E),m);return o.createElement("div",(0,a.Z)({className:W,style:g},H,{ref:t}),o.createElement(p.Provider,{value:V},l))},h=o.forwardRef(v),m=o.memo(h),g=n(3631),y=function(e,t){var n,l=e.prefixCls,s=e.className,u=e.children,f=e.indeterminate,v=void 0!==f&&f,h=e.style,m=e.onMouseEnter,y=e.onMouseLeave,b=e.skipGroup,O=void 0!==b&&b,Z=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}(e,["prefixCls","className","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup"]),C=o.useContext(d.E_),E=C.getPrefixCls,x=C.direction,k=o.useContext(p),w=o.useRef(Z.value);o.useEffect((function(){null==k||k.registerValue(Z.value),(0,g.Z)("checked"in Z||!!k||!("value"in Z),"Checkbox","`value` is not a valid prop, do you mean `checked`?")}),[]),o.useEffect((function(){if(!O)return Z.value!==w.current&&(null==k||k.cancelValue(w.current),null==k||k.registerValue(Z.value)),function(){return null==k?void 0:k.cancelValue(Z.value)}}),[Z.value]);var N=E("checkbox",l),z=(0,a.Z)({},Z);k&&!O&&(z.onChange=function(){Z.onChange&&Z.onChange.apply(Z,arguments),k.toggleOption&&k.toggleOption({label:u,value:Z.value})},z.name=k.name,z.checked=-1!==k.value.indexOf(Z.value),z.disabled=Z.disabled||k.disabled);var P=i()((n={},(0,r.Z)(n,"".concat(N,"-wrapper"),!0),(0,r.Z)(n,"".concat(N,"-rtl"),"rtl"===x),(0,r.Z)(n,"".concat(N,"-wrapper-checked"),z.checked),(0,r.Z)(n,"".concat(N,"-wrapper-disabled"),z.disabled),n),s),S=i()((0,r.Z)({},"".concat(N,"-indeterminate"),v));return o.createElement("label",{className:P,style:h,onMouseEnter:m,onMouseLeave:y},o.createElement(c.Z,(0,a.Z)({},z,{prefixCls:N,className:S,ref:t})),void 0!==u&&o.createElement("span",null,u))},b=o.forwardRef(y);b.displayName="Checkbox";var O=b,Z=O;Z.Group=m,Z.__ANT_CHECKBOX=!0;var C=Z},2481:function(e,t,n){var r=n(4741),a=n(7363),o=n(7452),l=n(7079),i=n(3305),c=n(9425),s=a.forwardRef((function(e,t){var n=e.prefixCls,s=e.title,u=e.content,f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}(e,["prefixCls","title","content"]),d=a.useContext(l.E_).getPrefixCls,p=d("popover",n),v=d();return a.createElement(o.Z,(0,r.Z)({},f,{prefixCls:p,ref:t,overlay:function(e){return a.createElement(a.Fragment,null,s&&a.createElement("div",{className:"".concat(e,"-title")},(0,i.Z)(s)),a.createElement("div",{className:"".concat(e,"-inner-content")},(0,i.Z)(u)))}(p),transitionName:(0,c.m)(v,"zoom-big",f.transitionName)}))}));s.displayName="Popover",s.defaultProps={placement:"top",trigger:"hover",mouseEnterDelay:.1,mouseLeaveDelay:.1,overlayStyle:{}},t.Z=s},2125:function(e,t,n){var r=n(2711),a=n(6762),o=n(3340),l=n(3841),i=n(5952),c=n(7363),s=n(8369),u=n(4237),f=n(1894),d=n(5643),p=n(7410),v=function(e){(0,l.Z)(n,e);var t=(0,i.Z)(n);function n(){var e;return(0,a.Z)(this,n),(e=t.apply(this,arguments)).resizeObserver=null,e.childNode=null,e.currentElement=null,e.state={width:0,height:0,offsetHeight:0,offsetWidth:0},e.onResize=function(t){var n=e.props.onResize,a=t[0].target,o=a.getBoundingClientRect(),l=o.width,i=o.height,c=a.offsetWidth,s=a.offsetHeight,u=Math.floor(l),f=Math.floor(i);if(e.state.width!==u||e.state.height!==f||e.state.offsetWidth!==c||e.state.offsetHeight!==s){var d={width:u,height:f,offsetWidth:c,offsetHeight:s};e.setState(d),n&&Promise.resolve().then((function(){n((0,r.Z)((0,r.Z)({},d),{},{offsetWidth:c,offsetHeight:s}),a)}))}},e.setChildNode=function(t){e.childNode=t},e}return(0,o.Z)(n,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){if(this.props.disabled)this.destroyObserver();else{var e=(0,s.Z)(this.childNode||this);e!==this.currentElement&&(this.destroyObserver(),this.currentElement=e),!this.resizeObserver&&e&&(this.resizeObserver=new p.Z(this.onResize),this.resizeObserver.observe(e))}}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var e=this.props.children,t=(0,u.Z)(e);if(t.length>1)(0,f.ZP)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(0===t.length)return(0,f.ZP)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var n=t[0];if(c.isValidElement(n)&&(0,d.Yr)(n)){var r=n.ref;t[0]=c.cloneElement(n,{ref:(0,d.sQ)(r,this.setChildNode)})}return 1===t.length?t[0]:t.map((function(e,t){return!c.isValidElement(e)||"key"in e&&null!==e.key?e:c.cloneElement(e,{key:"".concat("rc-observer-key","-").concat(t)})}))}}]),n}(c.Component);v.displayName="ResizeObserver",t.Z=v}}]);
2
- //# sourceMappingURL=240.lite.js.map?ver=d513d9a0b303a3d99e11
 
 
public/dist/296.lite.js ADDED
@@ -0,0 +1,2 @@
 
 
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),Z=a(238),w=function(){var e=(0,Z.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=w(),b=E.cookie,I=E.fetched,Z="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,_.__)("The ePrivacy Directive and the GDPR require that a non-professional user understands the purpose of this service, how personal data is collected and how cookies are used for this purpose."))),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)")),Z&&React.createElement(O.ZP.Button,{value:"legal-requirement"},(0,_.__)("Compliance with a legal obligation")))),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&&!Z&&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=w().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}},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,Z,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=w(),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,Z,w,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(Z=(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(Z),V.setGroup(m),e.next=13,V.patch();case 13:e.next=20;break;case 15:return w=le.groups.entries.get(m),N=new y.U(w.cookies,{title:{rendered:n},content:{rendered:r,protected:!1},status:o,meta:(0,s.Z)((0,s.Z)({},Z),{},{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===(Z=me.attributes)||void 0===Z?void 0:Z.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=8b20000a1adc023e1b28
public/dist/296.lite.js.map ADDED
@@ -0,0 +1 @@
 
1
+ {"version":3,"file":"296.lite.js?ver=8b20000a1adc023e1b28","mappings":"yXAKA,SAASA,EAAwBC,GAC/B,OAAOC,KAAKC,mBAAmBF,GAAKG,QAAQ,mBAAmB,SAAUC,EAAOC,GAC9E,OAAOC,O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ACL/R,KAAM,gBACN6R,KAAM,QACNC,gBAAiB,WAEnBE,QAAS,CACPhS,KAAM,kBACN6R,KAAM,UACNC,gBAAiB,WAEnBG,MAAO,CACLjS,KAAM,4BACN6R,KAAM,QACNC,gBAAiB,WAEnBI,UAAW,CACTlS,KAAM,YACN6R,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 }, __(\"The ePrivacy Directive and the GDPR require that a non-professional user understands the purpose of this service, how personal data is collected and how cookies are used for this purpose.\"))), /*#__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(\"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 }\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","type","shouldUpdate","prevValues","nextValues","_ref5","_validator","getFieldValue","setFieldsValue","isEssentialGroup","style","display","validateTrigger","validator","_callee3","_context3","_x4","_x5","placeholder","disabled","_i","strong","_ref6","valuePropName","WP_LIST_TABLE_FORM_ITEM_PROPS","wrapperCol","margin","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","href","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/385.lite.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunkrealCookieBanner_name_=self.webpackChunkrealCookieBanner_name_||[]).push([[385],{3601:function(e,t,n){n.d(t,{Z:function(){return o}});var a=n(7363),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},l=n(2545),c=function(e,t){return a.createElement(l.Z,Object.assign({},e,{ref:t,icon:r}))};c.displayName="LeftOutlined";var o=a.forwardRef(c)},4624:function(e,t,n){n.d(t,{Z:function(){return o}});var a=n(7363),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},l=n(2545),c=function(e,t){return a.createElement(l.Z,Object.assign({},e,{ref:t,icon:r}))};c.displayName="RightOutlined";var o=a.forwardRef(c)},3875:function(e,t,n){n.d(t,{Z:function(){return g}});var a=n(63),r=n(4741),l=n(7363),c=n(2286),o=n.n(c),i=n(733),s=n(7079),u=function(e){var t=e.prefixCls,n=e.className,c=e.hoverable,i=void 0===c||c,u=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n}(e,["prefixCls","className","hoverable"]);return l.createElement(s.C,null,(function(e){var c=(0,e.getPrefixCls)("card",t),s=o()("".concat(c,"-grid"),n,(0,a.Z)({},"".concat(c,"-grid-hoverable"),i));return l.createElement("div",(0,r.Z)({},u,{className:s}))}))},p=n(9697),m=n(9707),d=n(7984),h=n(6166),f=function(e){var t,n,c,f=l.useContext(s.E_),g=f.getPrefixCls,v=f.direction,b=l.useContext(h.Z),y=e.prefixCls,x=e.className,E=e.extra,C=e.headStyle,N=void 0===C?{}:C,P=e.bodyStyle,Z=void 0===P?{}:P,S=e.title,k=e.loading,I=e.bordered,O=void 0===I||I,w=e.size,z=e.type,j=e.cover,T=e.actions,_=e.tabList,K=e.children,V=e.activeTabKey,L=e.defaultActiveTabKey,B=e.tabBarExtraContent,J=e.hoverable,R=e.tabProps,M=void 0===R?{}:R,D=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n}(e,["prefixCls","className","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),G=g("card",y),U=0===Z.padding||"0px"===Z.padding?{padding:24}:void 0,A=l.createElement("div",{className:"".concat(G,"-loading-block")}),q=l.createElement("div",{className:"".concat(G,"-loading-content"),style:U},l.createElement(m.Z,{gutter:8},l.createElement(d.Z,{span:22},A)),l.createElement(m.Z,{gutter:8},l.createElement(d.Z,{span:8},A),l.createElement(d.Z,{span:15},A)),l.createElement(m.Z,{gutter:8},l.createElement(d.Z,{span:6},A),l.createElement(d.Z,{span:18},A)),l.createElement(m.Z,{gutter:8},l.createElement(d.Z,{span:13},A),l.createElement(d.Z,{span:9},A)),l.createElement(m.Z,{gutter:8},l.createElement(d.Z,{span:4},A),l.createElement(d.Z,{span:3},A),l.createElement(d.Z,{span:16},A))),Q=void 0!==V,H=(0,r.Z)((0,r.Z)({},M),(t={},(0,a.Z)(t,Q?"activeKey":"defaultActiveKey",Q?V:L),(0,a.Z)(t,"tabBarExtraContent",B),t)),F=_&&_.length?l.createElement(p.Z,(0,r.Z)({size:"large"},H,{className:"".concat(G,"-head-tabs"),onChange:function(t){var n;null===(n=e.onTabChange)||void 0===n||n.call(e,t)}}),_.map((function(e){return l.createElement(p.Z.TabPane,{tab:e.tab,disabled:e.disabled,key:e.key})}))):null;(S||E||F)&&(c=l.createElement("div",{className:"".concat(G,"-head"),style:N},l.createElement("div",{className:"".concat(G,"-head-wrapper")},S&&l.createElement("div",{className:"".concat(G,"-head-title")},S),E&&l.createElement("div",{className:"".concat(G,"-extra")},E)),F));var W,Y=j?l.createElement("div",{className:"".concat(G,"-cover")},j):null,X=l.createElement("div",{className:"".concat(G,"-body"),style:Z},k?q:K),$=T&&T.length?l.createElement("ul",{className:"".concat(G,"-actions")},function(e){return e.map((function(t,n){return l.createElement("li",{style:{width:"".concat(100/e.length,"%")},key:"action-".concat(n)},l.createElement("span",null,t))}))}(T)):null,ee=(0,i.Z)(D,["onTabChange"]),te=w||b,ne=o()(G,(n={},(0,a.Z)(n,"".concat(G,"-loading"),k),(0,a.Z)(n,"".concat(G,"-bordered"),O),(0,a.Z)(n,"".concat(G,"-hoverable"),J),(0,a.Z)(n,"".concat(G,"-contain-grid"),(l.Children.forEach(e.children,(function(e){e&&e.type&&e.type===u&&(W=!0)})),W)),(0,a.Z)(n,"".concat(G,"-contain-tabs"),_&&_.length),(0,a.Z)(n,"".concat(G,"-").concat(te),te),(0,a.Z)(n,"".concat(G,"-type-").concat(z),!!z),(0,a.Z)(n,"".concat(G,"-rtl"),"rtl"===v),n),x);return l.createElement("div",(0,r.Z)({},ee,{className:ne}),c,Y,X,$)};f.Grid=u,f.Meta=function(e){return l.createElement(s.C,null,(function(t){var n=t.getPrefixCls,a=e.prefixCls,c=e.className,i=e.avatar,s=e.title,u=e.description,p=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n}(e,["prefixCls","className","avatar","title","description"]),m=n("card",a),d=o()("".concat(m,"-meta"),c),h=i?l.createElement("div",{className:"".concat(m,"-meta-avatar")},i):null,f=s?l.createElement("div",{className:"".concat(m,"-meta-title")},s):null,g=u?l.createElement("div",{className:"".concat(m,"-meta-description")},u):null,v=f||g?l.createElement("div",{className:"".concat(m,"-meta-detail")},f,g):null;return l.createElement("div",(0,r.Z)({},p,{className:d}),h,v)}))};var g=f},3490:function(e,t,n){var a=n(7228),r=n(7363),l=n(4952);t.Z=function(){var e=(0,r.useState)({}),t=(0,a.Z)(e,2),n=t[0],c=t[1];return(0,r.useEffect)((function(){var e=l.ZP.subscribe((function(e){c(e)}));return function(){return l.ZP.unsubscribe(e)}}),[]),n}},1347:function(e,t,n){n.d(t,{Z:function(){return L}});var a=n(63),r=n(4741),l=n(7363),c=n.n(l),o=n(2711),i=n(6762),s=n(3340),u=n(3841),p=n(5952),m=n(2286),d=n.n(m),h=function(e){var t,n="".concat(e.rootPrefixCls,"-item"),r=d()(n,"".concat(n,"-").concat(e.page),(t={},(0,a.Z)(t,"".concat(n,"-active"),e.active),(0,a.Z)(t,e.className,!!e.className),(0,a.Z)(t,"".concat(n,"-disabled"),!e.page),t));return c().createElement("li",{title:e.showTitle?e.page:null,className:r,onClick:function(){e.onClick(e.page)},onKeyPress:function(t){e.onKeyPress(t,e.onClick,e.page)},tabIndex:"0"},e.itemRender(e.page,"page",c().createElement("a",{rel:"nofollow"},e.page)))},f=function(e){(0,u.Z)(n,e);var t=(0,p.Z)(n);function n(){var e;(0,i.Z)(this,n);for(var a=arguments.length,r=new Array(a),l=0;l<a;l++)r[l]=arguments[l];return(e=t.call.apply(t,[this].concat(r))).state={goInputText:""},e.buildOptionText=function(t){return"".concat(t," ").concat(e.props.locale.items_per_page)},e.changeSize=function(t){e.props.changeSize(Number(t))},e.handleChange=function(t){e.setState({goInputText:t.target.value})},e.handleBlur=function(t){var n=e.props,a=n.goButton,r=n.quickGo,l=n.rootPrefixCls,c=e.state.goInputText;a||""===c||(e.setState({goInputText:""}),t.relatedTarget&&(t.relatedTarget.className.indexOf("".concat(l,"-item-link"))>=0||t.relatedTarget.className.indexOf("".concat(l,"-item"))>=0)||r(e.getValidValue()))},e.go=function(t){""!==e.state.goInputText&&(13!==t.keyCode&&"click"!==t.type||(e.setState({goInputText:""}),e.props.quickGo(e.getValidValue())))},e}return(0,s.Z)(n,[{key:"getValidValue",value:function(){var e=this.state.goInputText;return!e||isNaN(e)?void 0:Number(e)}},{key:"getPageSizeOptions",value:function(){var e=this.props,t=e.pageSize,n=e.pageSizeOptions;return n.some((function(e){return e.toString()===t.toString()}))?n:n.concat([t.toString()]).sort((function(e,t){return(isNaN(Number(e))?0:Number(e))-(isNaN(Number(t))?0:Number(t))}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.pageSize,a=t.locale,r=t.rootPrefixCls,l=t.changeSize,o=t.quickGo,i=t.goButton,s=t.selectComponentClass,u=t.buildOptionText,p=t.selectPrefixCls,m=t.disabled,d=this.state.goInputText,h="".concat(r,"-options"),f=s,g=null,v=null,b=null;if(!l&&!o)return null;var y=this.getPageSizeOptions();if(l&&f){var x=y.map((function(t,n){return c().createElement(f.Option,{key:n,value:t.toString()},(u||e.buildOptionText)(t))}));g=c().createElement(f,{disabled:m,prefixCls:p,showSearch:!1,className:"".concat(h,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(n||y[0]).toString(),onChange:this.changeSize,getPopupContainer:function(e){return e.parentNode}},x)}return o&&(i&&(b="boolean"==typeof i?c().createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:m,className:"".concat(h,"-quick-jumper-button")},a.jump_to_confirm):c().createElement("span",{onClick:this.go,onKeyUp:this.go},i)),v=c().createElement("div",{className:"".concat(h,"-quick-jumper")},a.jump_to,c().createElement("input",{disabled:m,type:"text",value:d,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),a.page,b)),c().createElement("li",{className:"".concat(h)},g,v)}}]),n}(c().Component);f.defaultProps={pageSizeOptions:["10","20","50","100"]};var g=f;function v(){}function b(e,t,n){var a=void 0===e?t.pageSize:e;return Math.floor((n.total-1)/a)+1}var y=function(e){(0,u.Z)(n,e);var t=(0,p.Z)(n);function n(e){var a;(0,i.Z)(this,n),(a=t.call(this,e)).getJumpPrevPage=function(){return Math.max(1,a.state.current-(a.props.showLessItems?3:5))},a.getJumpNextPage=function(){return Math.min(b(void 0,a.state,a.props),a.state.current+(a.props.showLessItems?3:5))},a.getItemIcon=function(e,t){var n=a.props.prefixCls,r=e||c().createElement("button",{type:"button","aria-label":t,className:"".concat(n,"-item-link")});return"function"==typeof e&&(r=c().createElement(e,(0,o.Z)({},a.props))),r},a.savePaginationNode=function(e){a.paginationNode=e},a.isValid=function(e){return"number"==typeof(t=e)&&isFinite(t)&&Math.floor(t)===t&&e!==a.state.current;var t},a.shouldDisplayQuickJumper=function(){var e=a.props,t=e.showQuickJumper,n=e.pageSize;return!(e.total<=n)&&t},a.handleKeyDown=function(e){38!==e.keyCode&&40!==e.keyCode||e.preventDefault()},a.handleKeyUp=function(e){var t=a.getValidValue(e);t!==a.state.currentInputValue&&a.setState({currentInputValue:t}),13===e.keyCode?a.handleChange(t):38===e.keyCode?a.handleChange(t-1):40===e.keyCode&&a.handleChange(t+1)},a.changePageSize=function(e){var t=a.state.current,n=b(e,a.state,a.props);t=t>n?n:t,0===n&&(t=a.state.current),"number"==typeof e&&("pageSize"in a.props||a.setState({pageSize:e}),"current"in a.props||a.setState({current:t,currentInputValue:t})),a.props.onShowSizeChange(t,e),"onChange"in a.props&&a.props.onChange&&a.props.onChange(t,e)},a.handleChange=function(e){var t=a.props.disabled,n=e;if(a.isValid(n)&&!t){var r=b(void 0,a.state,a.props);n>r?n=r:n<1&&(n=1),"current"in a.props||a.setState({current:n,currentInputValue:n});var l=a.state.pageSize;return a.props.onChange(n,l),n}return a.state.current},a.prev=function(){a.hasPrev()&&a.handleChange(a.state.current-1)},a.next=function(){a.hasNext()&&a.handleChange(a.state.current+1)},a.jumpPrev=function(){a.handleChange(a.getJumpPrevPage())},a.jumpNext=function(){a.handleChange(a.getJumpNextPage())},a.hasPrev=function(){return a.state.current>1},a.hasNext=function(){return a.state.current<b(void 0,a.state,a.props)},a.runIfEnter=function(e,t){if("Enter"===e.key||13===e.charCode){for(var n=arguments.length,a=new Array(n>2?n-2:0),r=2;r<n;r++)a[r-2]=arguments[r];t.apply(void 0,a)}},a.runIfEnterPrev=function(e){a.runIfEnter(e,a.prev)},a.runIfEnterNext=function(e){a.runIfEnter(e,a.next)},a.runIfEnterJumpPrev=function(e){a.runIfEnter(e,a.jumpPrev)},a.runIfEnterJumpNext=function(e){a.runIfEnter(e,a.jumpNext)},a.handleGoTO=function(e){13!==e.keyCode&&"click"!==e.type||a.handleChange(a.state.currentInputValue)};var r=e.onChange!==v;"current"in e&&!r&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var l=e.defaultCurrent;"current"in e&&(l=e.current);var s=e.defaultPageSize;return"pageSize"in e&&(s=e.pageSize),l=Math.min(l,b(s,void 0,e)),a.state={current:l,currentInputValue:l,pageSize:s},a}return(0,s.Z)(n,[{key:"componentDidUpdate",value:function(e,t){var n=this.props.prefixCls;if(t.current!==this.state.current&&this.paginationNode){var a=this.paginationNode.querySelector(".".concat(n,"-item-").concat(t.current));a&&document.activeElement===a&&a.blur()}}},{key:"getValidValue",value:function(e){var t=e.target.value,n=b(void 0,this.state,this.props),a=this.state.currentInputValue;return""===t?t:isNaN(Number(t))?a:t>=n?n:Number(t)}},{key:"getShowSizeChanger",value:function(){var e=this.props,t=e.showSizeChanger,n=e.total,a=e.totalBoundaryShowSizeChanger;return void 0!==t?t:n>a}},{key:"renderPrev",value:function(e){var t=this.props,n=t.prevIcon,a=(0,t.itemRender)(e,"prev",this.getItemIcon(n,"prev page")),r=!this.hasPrev();return(0,l.isValidElement)(a)?(0,l.cloneElement)(a,{disabled:r}):a}},{key:"renderNext",value:function(e){var t=this.props,n=t.nextIcon,a=(0,t.itemRender)(e,"next",this.getItemIcon(n,"next page")),r=!this.hasNext();return(0,l.isValidElement)(a)?(0,l.cloneElement)(a,{disabled:r}):a}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefixCls,o=t.className,i=t.style,s=t.disabled,u=t.hideOnSinglePage,p=t.total,m=t.locale,f=t.showQuickJumper,v=t.showLessItems,y=t.showTitle,x=t.showTotal,E=t.simple,C=t.itemRender,N=t.showPrevNextJumpers,P=t.jumpPrevIcon,Z=t.jumpNextIcon,S=t.selectComponentClass,k=t.selectPrefixCls,I=t.pageSizeOptions,O=this.state,w=O.current,z=O.pageSize,j=O.currentInputValue;if(!0===u&&p<=z)return null;var T=b(void 0,this.state,this.props),_=[],K=null,V=null,L=null,B=null,J=null,R=f&&f.goButton,M=v?1:2,D=w-1>0?w-1:0,G=w+1<T?w+1:T,U=Object.keys(this.props).reduce((function(t,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)&&"role"!==n||(t[n]=e.props[n]),t}),{});if(E)return R&&(J="boolean"==typeof R?c().createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},m.jump_to_confirm):c().createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},R),J=c().createElement("li",{title:y?"".concat(m.jump_to).concat(w,"/").concat(T):null,className:"".concat(n,"-simple-pager")},J)),c().createElement("ul",(0,r.Z)({className:d()(n,"".concat(n,"-simple"),(0,a.Z)({},"".concat(n,"-disabled"),s),o),style:i,ref:this.savePaginationNode},U),c().createElement("li",{title:y?m.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:d()("".concat(n,"-prev"),(0,a.Z)({},"".concat(n,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(D)),c().createElement("li",{title:y?"".concat(w,"/").concat(T):null,className:"".concat(n,"-simple-pager")},c().createElement("input",{type:"text",value:j,disabled:s,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"}),c().createElement("span",{className:"".concat(n,"-slash")},"/"),T),c().createElement("li",{title:y?m.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:d()("".concat(n,"-next"),(0,a.Z)({},"".concat(n,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(G)),J);if(T<=3+2*M){var A={locale:m,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:y,itemRender:C};T||_.push(c().createElement(h,(0,r.Z)({},A,{key:"noPager",page:T,className:"".concat(n,"-disabled")})));for(var q=1;q<=T;q+=1){var Q=w===q;_.push(c().createElement(h,(0,r.Z)({},A,{key:q,page:q,active:Q})))}}else{var H=v?m.prev_3:m.prev_5,F=v?m.next_3:m.next_5;N&&(K=c().createElement("li",{title:y?H:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:d()("".concat(n,"-jump-prev"),(0,a.Z)({},"".concat(n,"-jump-prev-custom-icon"),!!P))},C(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(P,"prev page"))),V=c().createElement("li",{title:y?F:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:d()("".concat(n,"-jump-next"),(0,a.Z)({},"".concat(n,"-jump-next-custom-icon"),!!Z))},C(this.getJumpNextPage(),"jump-next",this.getItemIcon(Z,"next page")))),B=c().createElement(h,{locale:m,last:!0,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:T,page:T,active:!1,showTitle:y,itemRender:C}),L=c().createElement(h,{locale:m,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:y,itemRender:C});var W=Math.max(1,w-M),Y=Math.min(w+M,T);w-1<=M&&(Y=1+2*M),T-w<=M&&(W=T-2*M);for(var X=W;X<=Y;X+=1){var $=w===X;_.push(c().createElement(h,{locale:m,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:X,page:X,active:$,showTitle:y,itemRender:C}))}w-1>=2*M&&3!==w&&(_[0]=(0,l.cloneElement)(_[0],{className:"".concat(n,"-item-after-jump-prev")}),_.unshift(K)),T-w>=2*M&&w!==T-2&&(_[_.length-1]=(0,l.cloneElement)(_[_.length-1],{className:"".concat(n,"-item-before-jump-next")}),_.push(V)),1!==W&&_.unshift(L),Y!==T&&_.push(B)}var ee=null;x&&(ee=c().createElement("li",{className:"".concat(n,"-total-text")},x(p,[0===p?0:(w-1)*z+1,w*z>p?p:w*z])));var te=!this.hasPrev()||!T,ne=!this.hasNext()||!T;return c().createElement("ul",(0,r.Z)({className:d()(n,o,(0,a.Z)({},"".concat(n,"-disabled"),s)),style:i,unselectable:"unselectable",ref:this.savePaginationNode},U),ee,c().createElement("li",{title:y?m.prev_page:null,onClick:this.prev,tabIndex:te?null:0,onKeyPress:this.runIfEnterPrev,className:d()("".concat(n,"-prev"),(0,a.Z)({},"".concat(n,"-disabled"),te)),"aria-disabled":te},this.renderPrev(D)),_,c().createElement("li",{title:y?m.next_page:null,onClick:this.next,tabIndex:ne?null:0,onKeyPress:this.runIfEnterNext,className:d()("".concat(n,"-next"),(0,a.Z)({},"".concat(n,"-disabled"),ne)),"aria-disabled":ne},this.renderNext(G)),c().createElement(g,{disabled:s,locale:m,rootPrefixCls:n,selectComponentClass:S,selectPrefixCls:k,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:w,pageSize:z,pageSizeOptions:I,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:R}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n={};if("current"in e&&(n.current=e.current,e.current!==t.current&&(n.currentInputValue=n.current)),"pageSize"in e&&e.pageSize!==t.pageSize){var a=t.current,r=b(e.pageSize,t,e);a=a>r?r:a,"current"in e||(n.current=a,n.currentInputValue=a),n.pageSize=e.pageSize}return n}}]),n}(c().Component);y.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:v,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:v,locale:{items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页"},style:{},itemRender:function(e,t,n){return n},totalBoundaryShowSizeChanger:50};var x=y,E=n(2191),C=n(3601),N=n(4624),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},Z=n(2545),S=function(e,t){return l.createElement(Z.Z,Object.assign({},e,{ref:t,icon:P}))};S.displayName="DoubleLeftOutlined";var k=l.forwardRef(S),I={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},O=function(e,t){return l.createElement(Z.Z,Object.assign({},e,{ref:t,icon:I}))};O.displayName="DoubleRightOutlined";var w=l.forwardRef(O),z=n(2027),j=function(e){return l.createElement(z.Z,(0,r.Z)({size:"small"},e))};j.Option=z.Z.Option;var T=j,_=n(4724),K=n(7079),V=n(3490),L=function(e){var t=e.prefixCls,n=e.selectPrefixCls,c=e.className,o=e.size,i=e.locale,s=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n}(e,["prefixCls","selectPrefixCls","className","size","locale"]),u=(0,V.Z)().xs,p=l.useContext(K.E_),m=p.getPrefixCls,h=p.direction,f=m("pagination",t),g=function(e){var t=(0,r.Z)((0,r.Z)({},e),i),p="small"===o||!(!u||o||!s.responsive),g=m("select",n),v=d()((0,a.Z)({mini:p},"".concat(f,"-rtl"),"rtl"===h),c);return l.createElement(x,(0,r.Z)({},s,{prefixCls:f,selectPrefixCls:g},function(){var e=l.createElement("span",{className:"".concat(f,"-item-ellipsis")},"•••"),t=l.createElement("button",{className:"".concat(f,"-item-link"),type:"button",tabIndex:-1},l.createElement(C.Z,null)),n=l.createElement("button",{className:"".concat(f,"-item-link"),type:"button",tabIndex:-1},l.createElement(N.Z,null)),a=l.createElement("a",{className:"".concat(f,"-item-link")},l.createElement("div",{className:"".concat(f,"-item-container")},l.createElement(k,{className:"".concat(f,"-item-link-icon")}),e)),r=l.createElement("a",{className:"".concat(f,"-item-link")},l.createElement("div",{className:"".concat(f,"-item-container")},l.createElement(w,{className:"".concat(f,"-item-link-icon")}),e));if("rtl"===h){var c=[n,t];t=c[0],n=c[1];var o=[r,a];a=o[0],r=o[1]}return{prevIcon:t,nextIcon:n,jumpPrevIcon:a,jumpNextIcon:r}}(),{className:v,selectComponentClass:p?T:z.Z,locale:t}))};return l.createElement(_.Z,{componentName:"Pagination",defaultLocale:E.Z},g)}}}]);
2
- //# sourceMappingURL=385.lite.js.map?ver=11fc4ff22149d7471e12
 
 
public/dist/{480.lite.js → 411.lite.js} RENAMED
@@ -1,2 +1,2 @@
1
- "use strict";(self.webpackChunkrealCookieBanner_name_=self.webpackChunkrealCookieBanner_name_||[]).push([[480],{6559:function(e,t,n){function r(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}function o(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}n.d(t,{g1:function(){return r},os:function(){return o}})},9402:function(e,t,n){n.d(t,{Z:function(){return q}});var r=n(4741),o=n(3429),a=n(7363),i=n(5103),c=n(2711),l=n(63),s=n(7228),u=n(4115),m=n(2286),f=n.n(m),d=n(6559),v=n(8833),p=n(2134),g=n(5905),h=n(1894),w=n(6871);function y(e,t,n,r){var o=t+n,a=(n-r)/2;if(n>r){if(t>0)return(0,l.Z)({},e,a);if(t<0&&o<r)return(0,l.Z)({},e,-a)}else if(t<0||o>r)return(0,l.Z)({},e,t<0?a:-a);return{}}var Z=a.createContext({previewUrls:new Map,setPreviewUrls:function(){return null},current:null,setCurrent:function(){return null},setShowPreview:function(){return null},setMousePosition:function(){return null},registerImage:function(){return function(){return null}}}),C=Z.Provider,E=a.useState,b=a.useEffect,x={x:0,y:0},N=function(e){var t=e.prefixCls,n=e.src,o=e.alt,i=e.onClose,m=(e.afterClose,e.visible),v=e.icons,C=void 0===v?{}:v,N=(0,u.Z)(e,["prefixCls","src","alt","onClose","afterClose","visible","icons"]),P=C.rotateLeft,O=C.rotateRight,k=C.zoomIn,S=C.zoomOut,z=C.close,M=C.left,j=C.right,I=E(1),L=(0,s.Z)(I,2),R=L[0],H=L[1],V=E(0),T=(0,s.Z)(V,2),_=T[0],Y=T[1],B=function(e){var t=a.useRef(null),n=a.useState(e),r=(0,s.Z)(n,2),o=r[0],i=r[1],l=a.useRef([]);return a.useEffect((function(){return function(){return t.current&&w.Z.cancel(t.current)}}),[]),[o,function(e){null===t.current&&(l.current=[],t.current=(0,w.Z)((function(){i((function(e){var n=e;return l.current.forEach((function(e){n=(0,c.Z)((0,c.Z)({},n),e)})),t.current=null,n}))}))),l.current.push(e)}]}(x),D=(0,s.Z)(B,2),X=D[0],G=D[1],U=a.useRef(),A=a.useRef({originX:0,originY:0,deltaX:0,deltaY:0}),W=a.useState(!1),K=(0,s.Z)(W,2),F=K[0],q=K[1],J=a.useContext(Z),Q=J.previewUrls,$=J.current,ee=J.isPreviewGroup,te=J.setCurrent,ne=Q.size,re=Array.from(Q.keys()),oe=re.indexOf($),ae=ee?Q.get($):n,ie=ee&&ne>1,ce=a.useState({wheelDirection:0}),le=(0,s.Z)(ce,2),se=le[0],ue=le[1],me=function(){H((function(e){return e+1})),G(x)},fe=function(){R>1&&H((function(e){return e-1})),G(x)},de=f()((0,l.Z)({},"".concat(t,"-moving"),F)),ve="".concat(t,"-operations-operation"),pe="".concat(t,"-operations-icon"),ge=[{icon:z,onClick:i,type:"close"},{icon:k,onClick:me,type:"zoomIn"},{icon:S,onClick:fe,type:"zoomOut",disabled:1===R},{icon:O,onClick:function(){Y((function(e){return e+90}))},type:"rotateRight"},{icon:P,onClick:function(){Y((function(e){return e-90}))},type:"rotateLeft"}],he=function(){if(m&&F){var e=U.current.offsetWidth*R,t=U.current.offsetHeight*R,n=U.current.getBoundingClientRect(),r=n.left,o=n.top,a=_%180!=0;q(!1);var i=function(e,t,n,r){var o=(0,d.g1)(),a=o.width,i=o.height,l=null;return e<=a&&t<=i?l={x:0,y:0}:(e>a||t>i)&&(l=(0,c.Z)((0,c.Z)({},y("x",n,e,a)),y("y",r,t,i))),l}(a?t:e,a?e:t,r,o);i&&G((0,c.Z)({},i))}},we=function(e){m&&F&&G({x:e.pageX-A.current.deltaX,y:e.pageY-A.current.deltaY})},ye=function(e){if(m){e.preventDefault();var t=e.deltaY;ue({wheelDirection:t})}};return b((function(){var e=se.wheelDirection;e>0?fe():e<0&&me()}),[se]),b((function(){var e,t,n=(0,g.Z)(window,"mouseup",he,!1),r=(0,g.Z)(window,"mousemove",we,!1),o=(0,g.Z)(window,"wheel",ye,{passive:!1});try{window.top!==window.self&&(e=(0,g.Z)(window.top,"mouseup",he,!1),t=(0,g.Z)(window.top,"mousemove",we,!1))}catch(e){(0,h.Kp)(!1,"[rc-image] ".concat(e))}return function(){n.remove(),r.remove(),o.remove(),e&&e.remove(),t&&t.remove()}}),[m,F]),a.createElement(p.Z,(0,r.Z)({transitionName:"zoom",maskTransitionName:"fade",closable:!1,keyboard:!0,prefixCls:t,onClose:i,afterClose:function(){H(1),Y(0),G(x)},visible:m,wrapClassName:de},N),a.createElement("ul",{className:"".concat(t,"-operations")},ge.map((function(e){var n=e.icon,r=e.onClick,o=e.type,i=e.disabled;return a.createElement("li",{className:f()(ve,(0,l.Z)({},"".concat(t,"-operations-operation-disabled"),!!i)),onClick:r,key:o},a.isValidElement(n)?a.cloneElement(n,{className:pe}):n)}))),a.createElement("div",{className:"".concat(t,"-img-wrapper"),style:{transform:"translate3d(".concat(X.x,"px, ").concat(X.y,"px, 0)")}},a.createElement("img",{onMouseDown:function(e){0===e.button&&(e.preventDefault(),e.stopPropagation(),A.current.deltaX=e.pageX-X.x,A.current.deltaY=e.pageY-X.y,A.current.originX=X.x,A.current.originY=X.y,q(!0))},ref:U,className:"".concat(t,"-img"),src:ae,alt:o,style:{transform:"scale3d(".concat(R,", ").concat(R,", 1) rotate(").concat(_,"deg)")}})),ie&&a.createElement("div",{className:f()("".concat(t,"-switch-left"),(0,l.Z)({},"".concat(t,"-switch-left-disabled"),0===oe)),onClick:function(e){e.preventDefault(),e.stopPropagation(),oe>0&&te(re[oe-1])}},M),ie&&a.createElement("div",{className:f()("".concat(t,"-switch-right"),(0,l.Z)({},"".concat(t,"-switch-right-disabled"),oe===ne-1)),onClick:function(e){e.preventDefault(),e.stopPropagation(),oe<ne-1&&te(re[oe+1])}},j))},P=0,O=function(e){var t=e.src,n=e.alt,i=e.onPreviewClose,m=e.prefixCls,p=void 0===m?"rc-image":m,g=e.previewPrefixCls,h=void 0===g?"".concat(p,"-preview"):g,w=e.placeholder,y=e.fallback,C=e.width,E=e.height,b=e.style,x=e.preview,O=void 0===x||x,k=e.className,S=e.onClick,z=e.onError,M=e.wrapperClassName,j=e.wrapperStyle,I=e.crossOrigin,L=e.decoding,R=e.loading,H=e.referrerPolicy,V=e.sizes,T=e.srcSet,_=e.useMap,Y=(0,u.Z)(e,["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","crossOrigin","decoding","loading","referrerPolicy","sizes","srcSet","useMap"]),B=w&&!0!==w,D="object"===(0,o.Z)(O)?O:{},X=D.src,G=D.visible,U=void 0===G?void 0:G,A=D.onVisibleChange,W=void 0===A?i:A,K=D.getContainer,F=void 0===K?void 0:K,q=D.mask,J=D.maskClassName,Q=D.icons,$=(0,u.Z)(D,["src","visible","onVisibleChange","getContainer","mask","maskClassName","icons"]),ee=null!=X?X:t,te=void 0!==U,ne=(0,v.Z)(!!U,{value:U,onChange:W}),re=(0,s.Z)(ne,2),oe=re[0],ae=re[1],ie=(0,a.useState)(B?"loading":"normal"),ce=(0,s.Z)(ie,2),le=ce[0],se=ce[1],ue=(0,a.useState)(null),me=(0,s.Z)(ue,2),fe=me[0],de=me[1],ve="error"===le,pe=a.useContext(Z),ge=pe.isPreviewGroup,he=pe.setCurrent,we=pe.setShowPreview,ye=pe.setMousePosition,Ze=pe.registerImage,Ce=a.useState((function(){return P+=1})),Ee=(0,s.Z)(Ce,1)[0],be=O&&!ve,xe=a.useRef(!1),Ne=function(){se("normal")};a.useEffect((function(){return Ze(Ee,ee)}),[]),a.useEffect((function(){Ze(Ee,ee,be)}),[ee,be]),a.useEffect((function(){ve&&se("normal"),B&&!xe.current&&se("loading")}),[t]);var Pe=f()(p,M,(0,l.Z)({},"".concat(p,"-error"),ve)),Oe=ve&&y?y:ee,ke={crossOrigin:I,decoding:L,loading:R,referrerPolicy:H,sizes:V,srcSet:T,useMap:_,alt:n,className:f()("".concat(p,"-img"),(0,l.Z)({},"".concat(p,"-img-placeholder"),!0===w),k),style:(0,c.Z)({height:E},b)};return a.createElement(a.Fragment,null,a.createElement("div",(0,r.Z)({},Y,{className:Pe,onClick:O&&!ve?function(e){if(!te){var t=(0,d.os)(e.target),n=t.left,r=t.top;ge?(he(Ee),ye({x:n,y:r})):de({x:n,y:r})}ge?we(!0):ae(!0),S&&S(e)}:S,style:(0,c.Z)({width:C,height:E},j)}),a.createElement("img",(0,r.Z)({},ke,{ref:function(e){xe.current=!1,"loading"===le&&(null==e?void 0:e.complete)&&(e.naturalWidth||e.naturalHeight)&&(xe.current=!0,Ne())}},ve&&y?{src:y}:{onLoad:Ne,onError:function(e){z&&z(e),se("error")},src:t})),"loading"===le&&a.createElement("div",{"aria-hidden":"true",className:"".concat(p,"-placeholder")},w),q&&be&&a.createElement("div",{className:f()("".concat(p,"-mask"),J)},q)),!ge&&be&&a.createElement(N,(0,r.Z)({"aria-hidden":!oe,visible:oe,prefixCls:h,onClose:function(e){e.stopPropagation(),ae(!1),te||de(null)},mousePosition:fe,src:Oe,alt:n,getContainer:F,icons:Q},$)))};O.PreviewGroup=function(e){var t=e.previewPrefixCls,n=void 0===t?"rc-image-preview":t,i=e.children,c=e.icons,l=void 0===c?{}:c,m=e.preview,f="object"===(0,o.Z)(m)?m:{},d=f.visible,p=void 0===d?void 0:d,g=f.onVisibleChange,h=void 0===g?void 0:g,w=f.getContainer,y=void 0===w?void 0:w,Z=f.current,E=void 0===Z?0:Z,b=(0,u.Z)(f,["visible","onVisibleChange","getContainer","current"]),x=(0,a.useState)(new Map),P=(0,s.Z)(x,2),O=P[0],k=P[1],S=(0,a.useState)(),z=(0,s.Z)(S,2),M=z[0],j=z[1],I=(0,v.Z)(!!p,{value:p,onChange:h}),L=(0,s.Z)(I,2),R=L[0],H=L[1],V=(0,a.useState)(null),T=(0,s.Z)(V,2),_=T[0],Y=T[1],B=void 0!==p,D=Array.from(O.keys())[E],X=new Map(Array.from(O).filter((function(e){return!!(0,s.Z)(e,2)[1].canPreview})).map((function(e){var t=(0,s.Z)(e,2);return[t[0],t[1].url]})));return a.useEffect((function(){j(D)}),[D]),a.useEffect((function(){!R&&B&&j(D)}),[D,B,R]),a.createElement(C,{value:{isPreviewGroup:!0,previewUrls:X,setPreviewUrls:k,current:M,setCurrent:j,setShowPreview:H,setMousePosition:Y,registerImage:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=function(){k((function(t){var n=new Map(t);return n.delete(e)?n:t}))};return k((function(r){return new Map(r).set(e,{url:t,canPreview:n})})),r}}},i,a.createElement(N,(0,r.Z)({"aria-hidden":!R,visible:R,prefixCls:n,onClose:function(e){e.stopPropagation(),H(!1),Y(null)},mousePosition:_,src:X.get(M),icons:l,getContainer:y},b)))},O.displayName="Image";var k=O,S=n(4995),z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},M=n(2545),j=function(e,t){return a.createElement(M.Z,Object.assign({},e,{ref:t,icon:z}))};j.displayName="RotateLeftOutlined";var I=a.forwardRef(j),L={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},R=function(e,t){return a.createElement(M.Z,Object.assign({},e,{ref:t,icon:L}))};R.displayName="RotateRightOutlined";var H=a.forwardRef(R),V={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},T=function(e,t){return a.createElement(M.Z,Object.assign({},e,{ref:t,icon:V}))};T.displayName="ZoomInOutlined";var _=a.forwardRef(T),Y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},B=function(e,t){return a.createElement(M.Z,Object.assign({},e,{ref:t,icon:Y}))};B.displayName="ZoomOutOutlined";var D=a.forwardRef(B),X=n(2092),G=n(3601),U=n(4624),A=n(7079),W=n(9425),K={rotateLeft:a.createElement(I,null),rotateRight:a.createElement(H,null),zoomIn:a.createElement(_,null),zoomOut:a.createElement(D,null),close:a.createElement(X.Z,null),left:a.createElement(G.Z,null),right:a.createElement(U.Z,null)},F=function(e){var t=e.prefixCls,n=e.preview,c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","preview"]),l=(0,a.useContext)(A.E_).getPrefixCls,s=l("image",t),u=l(),m=(0,a.useContext)(A.E_).locale,f=(void 0===m?S.Z:m).Image||S.Z.Image,d=a.useMemo((function(){if(!1===n)return n;var e="object"===(0,o.Z)(n)?n:{};return(0,r.Z)((0,r.Z)({mask:a.createElement("div",{className:"".concat(s,"-mask-info")},a.createElement(i.Z,null),null==f?void 0:f.preview),icons:K},e),{transitionName:(0,W.m)(u,"zoom",e.transitionName),maskTransitionName:(0,W.m)(u,"fade",e.maskTransitionName)})}),[n,f]);return a.createElement(k,(0,r.Z)({prefixCls:s,preview:d},c))};F.PreviewGroup=function(e){var t=e.previewPrefixCls,n=e.preview,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["previewPrefixCls","preview"]),c=a.useContext(A.E_).getPrefixCls,l=c("image-preview",t),s=c(),u=a.useMemo((function(){if(!1===n)return n;var e="object"===(0,o.Z)(n)?n:{};return(0,r.Z)((0,r.Z)({},e),{transitionName:(0,W.m)(s,"zoom",e.transitionName),maskTransitionName:(0,W.m)(s,"fade",e.maskTransitionName)})}),[n]);return a.createElement(k.PreviewGroup,(0,r.Z)({preview:u,previewPrefixCls:l,icons:K},i))};var q=F},2789:function(e,t,n){n.d(t,{ZM:function(){return E},ZP:function(){return x}});var r=n(7870),o=n(4741),a=n(63),i=n(7228),c=n(3429),l=n(7363),s=n(2286),u=n.n(s),m=n(5744),f=n(3490),d=n(4952),v=n(7079),p=n(1347),g=n(7918),h=n(1349),w=n(6219),y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Z=function(e){var t,n=e.prefixCls,r=e.children,i=e.actions,c=e.extra,s=e.className,m=e.colStyle,f=y(e,["prefixCls","children","actions","extra","className","colStyle"]),d=l.useContext(E),p=d.grid,g=d.itemLayout,Z=(0,l.useContext(v.E_).getPrefixCls)("list",n),C=i&&i.length>0&&l.createElement("ul",{className:"".concat(Z,"-item-action"),key:"actions"},i.map((function(e,t){return l.createElement("li",{key:"".concat(Z,"-item-action-").concat(t)},e,t!==i.length-1&&l.createElement("em",{className:"".concat(Z,"-item-action-split")}))}))),b=p?"div":"li",x=l.createElement(b,(0,o.Z)({},f,{className:u()("".concat(Z,"-item"),(0,a.Z)({},"".concat(Z,"-item-no-flex"),!("vertical"===g?c:(l.Children.forEach(r,(function(e){"string"==typeof e&&(t=!0)})),!(t&&l.Children.count(r)>1)))),s)}),"vertical"===g&&c?[l.createElement("div",{className:"".concat(Z,"-item-main"),key:"content"},r,C),l.createElement("div",{className:"".concat(Z,"-item-extra"),key:"extra"},c)]:[r,C,(0,w.Tm)(c,{key:"extra"})]);return p?l.createElement(h.Z,{flex:1,style:m},x):x};Z.Meta=function(e){var t=e.prefixCls,n=e.className,r=e.avatar,a=e.title,i=e.description,c=y(e,["prefixCls","className","avatar","title","description"]),s=(0,l.useContext(v.E_).getPrefixCls)("list",t),m=u()("".concat(s,"-item-meta"),n),f=l.createElement("div",{className:"".concat(s,"-item-meta-content")},a&&l.createElement("h4",{className:"".concat(s,"-item-meta-title")},a),i&&l.createElement("div",{className:"".concat(s,"-item-meta-description")},i));return l.createElement("div",(0,o.Z)({},c,{className:m}),r&&l.createElement("div",{className:"".concat(s,"-item-meta-avatar")},r),(a||i)&&f)};var C=Z,E=l.createContext({});function b(e){var t,n=e.pagination,s=void 0!==n&&n,h=e.prefixCls,w=e.bordered,y=void 0!==w&&w,Z=e.split,C=void 0===Z||Z,b=e.className,x=e.children,N=e.itemLayout,P=e.loadMore,O=e.grid,k=e.dataSource,S=void 0===k?[]:k,z=e.size,M=e.header,j=e.footer,I=e.loading,L=void 0!==I&&I,R=e.rowKey,H=e.renderItem,V=e.locale,T=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["pagination","prefixCls","bordered","split","className","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale"]),_=s&&"object"===(0,c.Z)(s)?s:{},Y=l.useState(_.defaultCurrent||1),B=(0,i.Z)(Y,2),D=B[0],X=B[1],G=l.useState(_.defaultPageSize||10),U=(0,i.Z)(G,2),A=U[0],W=U[1],K=l.useContext(v.E_),F=K.getPrefixCls,q=K.renderEmpty,J=K.direction,Q={},$=function(e){return function(t,n){X(t),W(n),s&&s[e]&&s[e](t,n)}},ee=$("onChange"),te=$("onShowSizeChange"),ne=F("list",h),re=L;"boolean"==typeof re&&(re={spinning:re});var oe=re&&re.spinning,ae="";switch(z){case"large":ae="lg";break;case"small":ae="sm"}var ie=u()(ne,(t={},(0,a.Z)(t,"".concat(ne,"-vertical"),"vertical"===N),(0,a.Z)(t,"".concat(ne,"-").concat(ae),ae),(0,a.Z)(t,"".concat(ne,"-split"),C),(0,a.Z)(t,"".concat(ne,"-bordered"),y),(0,a.Z)(t,"".concat(ne,"-loading"),oe),(0,a.Z)(t,"".concat(ne,"-grid"),!!O),(0,a.Z)(t,"".concat(ne,"-something-after-last-item"),!!(P||s||j)),(0,a.Z)(t,"".concat(ne,"-rtl"),"rtl"===J),t),b),ce=(0,o.Z)((0,o.Z)((0,o.Z)({},{current:1,total:0}),{total:S.length,current:D,pageSize:A}),s||{}),le=Math.ceil(ce.total/ce.pageSize);ce.current>le&&(ce.current=le);var se=s?l.createElement("div",{className:"".concat(ne,"-pagination")},l.createElement(p.Z,(0,o.Z)({},ce,{onChange:ee,onShowSizeChange:te}))):null,ue=(0,r.Z)(S);s&&S.length>(ce.current-1)*ce.pageSize&&(ue=(0,r.Z)(S).splice((ce.current-1)*ce.pageSize,ce.pageSize));var me=(0,f.Z)(),fe=l.useMemo((function(){for(var e=0;e<d.c4.length;e+=1){var t=d.c4[e];if(me[t])return t}}),[me]),de=l.useMemo((function(){if(O){var e=fe&&O[fe]?O[fe]:O.column;return e?{width:"".concat(100/e,"%"),maxWidth:"".concat(100/e,"%")}:void 0}}),[null==O?void 0:O.column,fe]),ve=oe&&l.createElement("div",{style:{minHeight:53}});if(ue.length>0){var pe=ue.map((function(e,t){return function(e,t){return H?((n="function"==typeof R?R(e):"string"==typeof R?e[R]:e.key)||(n="list-item-".concat(t)),Q[t]=n,H(e,t)):null;var n}(e,t)})),ge=l.Children.map(pe,(function(e,t){return l.createElement("div",{key:Q[t],style:de},e)}));ve=O?l.createElement(g.Z,{gutter:O.gutter},ge):l.createElement("ul",{className:"".concat(ne,"-items")},pe)}else x||oe||(ve=function(e,t){return l.createElement("div",{className:"".concat(e,"-empty-text")},V&&V.emptyText||t("List"))}(ne,q));var he=ce.position||"bottom";return l.createElement(E.Provider,{value:{grid:O,itemLayout:N}},l.createElement("div",(0,o.Z)({className:ie},T),("top"===he||"both"===he)&&se,M&&l.createElement("div",{className:"".concat(ne,"-header")},M),l.createElement(m.Z,re,ve,x),j&&l.createElement("div",{className:"".concat(ne,"-footer")},j),P||("bottom"===he||"both"===he)&&se))}E.Consumer,b.Item=C;var x=b},4995:function(e,t,n){var r=n(3070);t.Z=r.Z}}]);
2
- //# sourceMappingURL=480.lite.js.map?ver=9dceeabb39deab26f14c
1
+ "use strict";(self.webpackChunkrealCookieBanner_name_=self.webpackChunkrealCookieBanner_name_||[]).push([[411],{6559:function(e,t,n){function r(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}function o(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}n.d(t,{g1:function(){return r},os:function(){return o}})},4716:function(e,t,n){n.d(t,{Z:function(){return q}});var r=n(4741),o=n(3429),a=n(7363),i=n(3161),c=n(2711),l=n(63),s=n(7228),u=n(4115),m=n(2286),f=n.n(m),d=n(6559),v=n(8833),p=n(2134),g=n(5905),h=n(1894),w=n(6871);function y(e,t,n,r){var o=t+n,a=(n-r)/2;if(n>r){if(t>0)return(0,l.Z)({},e,a);if(t<0&&o<r)return(0,l.Z)({},e,-a)}else if(t<0||o>r)return(0,l.Z)({},e,t<0?a:-a);return{}}var Z=a.createContext({previewUrls:new Map,setPreviewUrls:function(){return null},current:null,setCurrent:function(){return null},setShowPreview:function(){return null},setMousePosition:function(){return null},registerImage:function(){return function(){return null}}}),C=Z.Provider,E=a.useState,b=a.useEffect,x={x:0,y:0},N=function(e){var t=e.prefixCls,n=e.src,o=e.alt,i=e.onClose,m=(e.afterClose,e.visible),v=e.icons,C=void 0===v?{}:v,N=(0,u.Z)(e,["prefixCls","src","alt","onClose","afterClose","visible","icons"]),P=C.rotateLeft,O=C.rotateRight,k=C.zoomIn,S=C.zoomOut,z=C.close,M=C.left,j=C.right,I=E(1),L=(0,s.Z)(I,2),R=L[0],H=L[1],V=E(0),T=(0,s.Z)(V,2),_=T[0],Y=T[1],B=function(e){var t=a.useRef(null),n=a.useState(e),r=(0,s.Z)(n,2),o=r[0],i=r[1],l=a.useRef([]);return a.useEffect((function(){return function(){return t.current&&w.Z.cancel(t.current)}}),[]),[o,function(e){null===t.current&&(l.current=[],t.current=(0,w.Z)((function(){i((function(e){var n=e;return l.current.forEach((function(e){n=(0,c.Z)((0,c.Z)({},n),e)})),t.current=null,n}))}))),l.current.push(e)}]}(x),D=(0,s.Z)(B,2),X=D[0],G=D[1],U=a.useRef(),A=a.useRef({originX:0,originY:0,deltaX:0,deltaY:0}),W=a.useState(!1),K=(0,s.Z)(W,2),F=K[0],q=K[1],J=a.useContext(Z),Q=J.previewUrls,$=J.current,ee=J.isPreviewGroup,te=J.setCurrent,ne=Q.size,re=Array.from(Q.keys()),oe=re.indexOf($),ae=ee?Q.get($):n,ie=ee&&ne>1,ce=a.useState({wheelDirection:0}),le=(0,s.Z)(ce,2),se=le[0],ue=le[1],me=function(){H((function(e){return e+1})),G(x)},fe=function(){R>1&&H((function(e){return e-1})),G(x)},de=f()((0,l.Z)({},"".concat(t,"-moving"),F)),ve="".concat(t,"-operations-operation"),pe="".concat(t,"-operations-icon"),ge=[{icon:z,onClick:i,type:"close"},{icon:k,onClick:me,type:"zoomIn"},{icon:S,onClick:fe,type:"zoomOut",disabled:1===R},{icon:O,onClick:function(){Y((function(e){return e+90}))},type:"rotateRight"},{icon:P,onClick:function(){Y((function(e){return e-90}))},type:"rotateLeft"}],he=function(){if(m&&F){var e=U.current.offsetWidth*R,t=U.current.offsetHeight*R,n=U.current.getBoundingClientRect(),r=n.left,o=n.top,a=_%180!=0;q(!1);var i=function(e,t,n,r){var o=(0,d.g1)(),a=o.width,i=o.height,l=null;return e<=a&&t<=i?l={x:0,y:0}:(e>a||t>i)&&(l=(0,c.Z)((0,c.Z)({},y("x",n,e,a)),y("y",r,t,i))),l}(a?t:e,a?e:t,r,o);i&&G((0,c.Z)({},i))}},we=function(e){m&&F&&G({x:e.pageX-A.current.deltaX,y:e.pageY-A.current.deltaY})},ye=function(e){if(m){e.preventDefault();var t=e.deltaY;ue({wheelDirection:t})}};return b((function(){var e=se.wheelDirection;e>0?fe():e<0&&me()}),[se]),b((function(){var e,t,n=(0,g.Z)(window,"mouseup",he,!1),r=(0,g.Z)(window,"mousemove",we,!1),o=(0,g.Z)(window,"wheel",ye,{passive:!1});try{window.top!==window.self&&(e=(0,g.Z)(window.top,"mouseup",he,!1),t=(0,g.Z)(window.top,"mousemove",we,!1))}catch(e){(0,h.Kp)(!1,"[rc-image] ".concat(e))}return function(){n.remove(),r.remove(),o.remove(),e&&e.remove(),t&&t.remove()}}),[m,F]),a.createElement(p.Z,(0,r.Z)({transitionName:"zoom",maskTransitionName:"fade",closable:!1,keyboard:!0,prefixCls:t,onClose:i,afterClose:function(){H(1),Y(0),G(x)},visible:m,wrapClassName:de},N),a.createElement("ul",{className:"".concat(t,"-operations")},ge.map((function(e){var n=e.icon,r=e.onClick,o=e.type,i=e.disabled;return a.createElement("li",{className:f()(ve,(0,l.Z)({},"".concat(t,"-operations-operation-disabled"),!!i)),onClick:r,key:o},a.isValidElement(n)?a.cloneElement(n,{className:pe}):n)}))),a.createElement("div",{className:"".concat(t,"-img-wrapper"),style:{transform:"translate3d(".concat(X.x,"px, ").concat(X.y,"px, 0)")}},a.createElement("img",{onMouseDown:function(e){0===e.button&&(e.preventDefault(),e.stopPropagation(),A.current.deltaX=e.pageX-X.x,A.current.deltaY=e.pageY-X.y,A.current.originX=X.x,A.current.originY=X.y,q(!0))},ref:U,className:"".concat(t,"-img"),src:ae,alt:o,style:{transform:"scale3d(".concat(R,", ").concat(R,", 1) rotate(").concat(_,"deg)")}})),ie&&a.createElement("div",{className:f()("".concat(t,"-switch-left"),(0,l.Z)({},"".concat(t,"-switch-left-disabled"),0===oe)),onClick:function(e){e.preventDefault(),e.stopPropagation(),oe>0&&te(re[oe-1])}},M),ie&&a.createElement("div",{className:f()("".concat(t,"-switch-right"),(0,l.Z)({},"".concat(t,"-switch-right-disabled"),oe===ne-1)),onClick:function(e){e.preventDefault(),e.stopPropagation(),oe<ne-1&&te(re[oe+1])}},j))},P=0,O=function(e){var t=e.src,n=e.alt,i=e.onPreviewClose,m=e.prefixCls,p=void 0===m?"rc-image":m,g=e.previewPrefixCls,h=void 0===g?"".concat(p,"-preview"):g,w=e.placeholder,y=e.fallback,C=e.width,E=e.height,b=e.style,x=e.preview,O=void 0===x||x,k=e.className,S=e.onClick,z=e.onError,M=e.wrapperClassName,j=e.wrapperStyle,I=e.crossOrigin,L=e.decoding,R=e.loading,H=e.referrerPolicy,V=e.sizes,T=e.srcSet,_=e.useMap,Y=(0,u.Z)(e,["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","crossOrigin","decoding","loading","referrerPolicy","sizes","srcSet","useMap"]),B=w&&!0!==w,D="object"===(0,o.Z)(O)?O:{},X=D.src,G=D.visible,U=void 0===G?void 0:G,A=D.onVisibleChange,W=void 0===A?i:A,K=D.getContainer,F=void 0===K?void 0:K,q=D.mask,J=D.maskClassName,Q=D.icons,$=(0,u.Z)(D,["src","visible","onVisibleChange","getContainer","mask","maskClassName","icons"]),ee=null!=X?X:t,te=void 0!==U,ne=(0,v.Z)(!!U,{value:U,onChange:W}),re=(0,s.Z)(ne,2),oe=re[0],ae=re[1],ie=(0,a.useState)(B?"loading":"normal"),ce=(0,s.Z)(ie,2),le=ce[0],se=ce[1],ue=(0,a.useState)(null),me=(0,s.Z)(ue,2),fe=me[0],de=me[1],ve="error"===le,pe=a.useContext(Z),ge=pe.isPreviewGroup,he=pe.setCurrent,we=pe.setShowPreview,ye=pe.setMousePosition,Ze=pe.registerImage,Ce=a.useState((function(){return P+=1})),Ee=(0,s.Z)(Ce,1)[0],be=O&&!ve,xe=a.useRef(!1),Ne=function(){se("normal")};a.useEffect((function(){return Ze(Ee,ee)}),[]),a.useEffect((function(){Ze(Ee,ee,be)}),[ee,be]),a.useEffect((function(){ve&&se("normal"),B&&!xe.current&&se("loading")}),[t]);var Pe=f()(p,M,(0,l.Z)({},"".concat(p,"-error"),ve)),Oe=ve&&y?y:ee,ke={crossOrigin:I,decoding:L,loading:R,referrerPolicy:H,sizes:V,srcSet:T,useMap:_,alt:n,className:f()("".concat(p,"-img"),(0,l.Z)({},"".concat(p,"-img-placeholder"),!0===w),k),style:(0,c.Z)({height:E},b)};return a.createElement(a.Fragment,null,a.createElement("div",(0,r.Z)({},Y,{className:Pe,onClick:O&&!ve?function(e){if(!te){var t=(0,d.os)(e.target),n=t.left,r=t.top;ge?(he(Ee),ye({x:n,y:r})):de({x:n,y:r})}ge?we(!0):ae(!0),S&&S(e)}:S,style:(0,c.Z)({width:C,height:E},j)}),a.createElement("img",(0,r.Z)({},ke,{ref:function(e){xe.current=!1,"loading"===le&&(null==e?void 0:e.complete)&&(e.naturalWidth||e.naturalHeight)&&(xe.current=!0,Ne())}},ve&&y?{src:y}:{onLoad:Ne,onError:function(e){z&&z(e),se("error")},src:t})),"loading"===le&&a.createElement("div",{"aria-hidden":"true",className:"".concat(p,"-placeholder")},w),q&&be&&a.createElement("div",{className:f()("".concat(p,"-mask"),J)},q)),!ge&&be&&a.createElement(N,(0,r.Z)({"aria-hidden":!oe,visible:oe,prefixCls:h,onClose:function(e){e.stopPropagation(),ae(!1),te||de(null)},mousePosition:fe,src:Oe,alt:n,getContainer:F,icons:Q},$)))};O.PreviewGroup=function(e){var t=e.previewPrefixCls,n=void 0===t?"rc-image-preview":t,i=e.children,c=e.icons,l=void 0===c?{}:c,m=e.preview,f="object"===(0,o.Z)(m)?m:{},d=f.visible,p=void 0===d?void 0:d,g=f.onVisibleChange,h=void 0===g?void 0:g,w=f.getContainer,y=void 0===w?void 0:w,Z=f.current,E=void 0===Z?0:Z,b=(0,u.Z)(f,["visible","onVisibleChange","getContainer","current"]),x=(0,a.useState)(new Map),P=(0,s.Z)(x,2),O=P[0],k=P[1],S=(0,a.useState)(),z=(0,s.Z)(S,2),M=z[0],j=z[1],I=(0,v.Z)(!!p,{value:p,onChange:h}),L=(0,s.Z)(I,2),R=L[0],H=L[1],V=(0,a.useState)(null),T=(0,s.Z)(V,2),_=T[0],Y=T[1],B=void 0!==p,D=Array.from(O.keys())[E],X=new Map(Array.from(O).filter((function(e){return!!(0,s.Z)(e,2)[1].canPreview})).map((function(e){var t=(0,s.Z)(e,2);return[t[0],t[1].url]})));return a.useEffect((function(){j(D)}),[D]),a.useEffect((function(){!R&&B&&j(D)}),[D,B,R]),a.createElement(C,{value:{isPreviewGroup:!0,previewUrls:X,setPreviewUrls:k,current:M,setCurrent:j,setShowPreview:H,setMousePosition:Y,registerImage:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=function(){k((function(t){var n=new Map(t);return n.delete(e)?n:t}))};return k((function(r){return new Map(r).set(e,{url:t,canPreview:n})})),r}}},i,a.createElement(N,(0,r.Z)({"aria-hidden":!R,visible:R,prefixCls:n,onClose:function(e){e.stopPropagation(),H(!1),Y(null)},mousePosition:_,src:X.get(M),icons:l,getContainer:y},b)))},O.displayName="Image";var k=O,S=n(6273),z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},M=n(3751),j=function(e,t){return a.createElement(M.Z,Object.assign({},e,{ref:t,icon:z}))};j.displayName="RotateLeftOutlined";var I=a.forwardRef(j),L={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},R=function(e,t){return a.createElement(M.Z,Object.assign({},e,{ref:t,icon:L}))};R.displayName="RotateRightOutlined";var H=a.forwardRef(R),V={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},T=function(e,t){return a.createElement(M.Z,Object.assign({},e,{ref:t,icon:V}))};T.displayName="ZoomInOutlined";var _=a.forwardRef(T),Y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},B=function(e,t){return a.createElement(M.Z,Object.assign({},e,{ref:t,icon:Y}))};B.displayName="ZoomOutOutlined";var D=a.forwardRef(B),X=n(1543),G=n(8122),U=n(4632),A=n(4178),W=n(5670),K={rotateLeft:a.createElement(I,null),rotateRight:a.createElement(H,null),zoomIn:a.createElement(_,null),zoomOut:a.createElement(D,null),close:a.createElement(X.Z,null),left:a.createElement(G.Z,null),right:a.createElement(U.Z,null)},F=function(e){var t=e.prefixCls,n=e.preview,c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","preview"]),l=(0,a.useContext)(A.E_).getPrefixCls,s=l("image",t),u=l(),m=(0,a.useContext)(A.E_).locale,f=(void 0===m?S.Z:m).Image||S.Z.Image,d=a.useMemo((function(){if(!1===n)return n;var e="object"===(0,o.Z)(n)?n:{};return(0,r.Z)((0,r.Z)({mask:a.createElement("div",{className:"".concat(s,"-mask-info")},a.createElement(i.Z,null),null==f?void 0:f.preview),icons:K},e),{transitionName:(0,W.m)(u,"zoom",e.transitionName),maskTransitionName:(0,W.m)(u,"fade",e.maskTransitionName)})}),[n,f]);return a.createElement(k,(0,r.Z)({prefixCls:s,preview:d},c))};F.PreviewGroup=function(e){var t=e.previewPrefixCls,n=e.preview,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["previewPrefixCls","preview"]),c=a.useContext(A.E_).getPrefixCls,l=c("image-preview",t),s=c(),u=a.useMemo((function(){if(!1===n)return n;var e="object"===(0,o.Z)(n)?n:{};return(0,r.Z)((0,r.Z)({},e),{transitionName:(0,W.m)(s,"zoom",e.transitionName),maskTransitionName:(0,W.m)(s,"fade",e.maskTransitionName)})}),[n]);return a.createElement(k.PreviewGroup,(0,r.Z)({preview:u,previewPrefixCls:l,icons:K},i))};var q=F},9455:function(e,t,n){n.d(t,{ZM:function(){return E},ZP:function(){return x}});var r=n(7870),o=n(4741),a=n(63),i=n(7228),c=n(3429),l=n(7363),s=n(2286),u=n.n(s),m=n(9591),f=n(5806),d=n(5e3),v=n(4178),p=n(754),g=n(9388),h=n(2275),w=n(8929),y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Z=function(e){var t,n=e.prefixCls,r=e.children,i=e.actions,c=e.extra,s=e.className,m=e.colStyle,f=y(e,["prefixCls","children","actions","extra","className","colStyle"]),d=l.useContext(E),p=d.grid,g=d.itemLayout,Z=(0,l.useContext(v.E_).getPrefixCls)("list",n),C=i&&i.length>0&&l.createElement("ul",{className:"".concat(Z,"-item-action"),key:"actions"},i.map((function(e,t){return l.createElement("li",{key:"".concat(Z,"-item-action-").concat(t)},e,t!==i.length-1&&l.createElement("em",{className:"".concat(Z,"-item-action-split")}))}))),b=p?"div":"li",x=l.createElement(b,(0,o.Z)({},f,{className:u()("".concat(Z,"-item"),(0,a.Z)({},"".concat(Z,"-item-no-flex"),!("vertical"===g?c:(l.Children.forEach(r,(function(e){"string"==typeof e&&(t=!0)})),!(t&&l.Children.count(r)>1)))),s)}),"vertical"===g&&c?[l.createElement("div",{className:"".concat(Z,"-item-main"),key:"content"},r,C),l.createElement("div",{className:"".concat(Z,"-item-extra"),key:"extra"},c)]:[r,C,(0,w.Tm)(c,{key:"extra"})]);return p?l.createElement(h.Z,{flex:1,style:m},x):x};Z.Meta=function(e){var t=e.prefixCls,n=e.className,r=e.avatar,a=e.title,i=e.description,c=y(e,["prefixCls","className","avatar","title","description"]),s=(0,l.useContext(v.E_).getPrefixCls)("list",t),m=u()("".concat(s,"-item-meta"),n),f=l.createElement("div",{className:"".concat(s,"-item-meta-content")},a&&l.createElement("h4",{className:"".concat(s,"-item-meta-title")},a),i&&l.createElement("div",{className:"".concat(s,"-item-meta-description")},i));return l.createElement("div",(0,o.Z)({},c,{className:m}),r&&l.createElement("div",{className:"".concat(s,"-item-meta-avatar")},r),(a||i)&&f)};var C=Z,E=l.createContext({});function b(e){var t,n=e.pagination,s=void 0!==n&&n,h=e.prefixCls,w=e.bordered,y=void 0!==w&&w,Z=e.split,C=void 0===Z||Z,b=e.className,x=e.children,N=e.itemLayout,P=e.loadMore,O=e.grid,k=e.dataSource,S=void 0===k?[]:k,z=e.size,M=e.header,j=e.footer,I=e.loading,L=void 0!==I&&I,R=e.rowKey,H=e.renderItem,V=e.locale,T=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["pagination","prefixCls","bordered","split","className","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale"]),_=s&&"object"===(0,c.Z)(s)?s:{},Y=l.useState(_.defaultCurrent||1),B=(0,i.Z)(Y,2),D=B[0],X=B[1],G=l.useState(_.defaultPageSize||10),U=(0,i.Z)(G,2),A=U[0],W=U[1],K=l.useContext(v.E_),F=K.getPrefixCls,q=K.renderEmpty,J=K.direction,Q={},$=function(e){return function(t,n){X(t),W(n),s&&s[e]&&s[e](t,n)}},ee=$("onChange"),te=$("onShowSizeChange"),ne=F("list",h),re=L;"boolean"==typeof re&&(re={spinning:re});var oe=re&&re.spinning,ae="";switch(z){case"large":ae="lg";break;case"small":ae="sm"}var ie=u()(ne,(t={},(0,a.Z)(t,"".concat(ne,"-vertical"),"vertical"===N),(0,a.Z)(t,"".concat(ne,"-").concat(ae),ae),(0,a.Z)(t,"".concat(ne,"-split"),C),(0,a.Z)(t,"".concat(ne,"-bordered"),y),(0,a.Z)(t,"".concat(ne,"-loading"),oe),(0,a.Z)(t,"".concat(ne,"-grid"),!!O),(0,a.Z)(t,"".concat(ne,"-something-after-last-item"),!!(P||s||j)),(0,a.Z)(t,"".concat(ne,"-rtl"),"rtl"===J),t),b),ce=(0,o.Z)((0,o.Z)((0,o.Z)({},{current:1,total:0}),{total:S.length,current:D,pageSize:A}),s||{}),le=Math.ceil(ce.total/ce.pageSize);ce.current>le&&(ce.current=le);var se=s?l.createElement("div",{className:"".concat(ne,"-pagination")},l.createElement(p.Z,(0,o.Z)({},ce,{onChange:ee,onShowSizeChange:te}))):null,ue=(0,r.Z)(S);s&&S.length>(ce.current-1)*ce.pageSize&&(ue=(0,r.Z)(S).splice((ce.current-1)*ce.pageSize,ce.pageSize));var me=(0,f.Z)(),fe=l.useMemo((function(){for(var e=0;e<d.c4.length;e+=1){var t=d.c4[e];if(me[t])return t}}),[me]),de=l.useMemo((function(){if(O){var e=fe&&O[fe]?O[fe]:O.column;return e?{width:"".concat(100/e,"%"),maxWidth:"".concat(100/e,"%")}:void 0}}),[null==O?void 0:O.column,fe]),ve=oe&&l.createElement("div",{style:{minHeight:53}});if(ue.length>0){var pe=ue.map((function(e,t){return function(e,t){return H?((n="function"==typeof R?R(e):"string"==typeof R?e[R]:e.key)||(n="list-item-".concat(t)),Q[t]=n,H(e,t)):null;var n}(e,t)})),ge=l.Children.map(pe,(function(e,t){return l.createElement("div",{key:Q[t],style:de},e)}));ve=O?l.createElement(g.Z,{gutter:O.gutter},ge):l.createElement("ul",{className:"".concat(ne,"-items")},pe)}else x||oe||(ve=function(e,t){return l.createElement("div",{className:"".concat(e,"-empty-text")},V&&V.emptyText||t("List"))}(ne,q));var he=ce.position||"bottom";return l.createElement(E.Provider,{value:{grid:O,itemLayout:N}},l.createElement("div",(0,o.Z)({className:ie},T),("top"===he||"both"===he)&&se,M&&l.createElement("div",{className:"".concat(ne,"-header")},M),l.createElement(m.Z,re,ve,x),j&&l.createElement("div",{className:"".concat(ne,"-footer")},j),P||("bottom"===he||"both"===he)&&se))}E.Consumer,b.Item=C;var x=b},6273:function(e,t,n){var r=n(5175);t.Z=r.Z}}]);
2
+ //# sourceMappingURL=411.lite.js.map?ver=49967c6ebf6317fa7624
public/dist/{480.lite.js.map → 411.lite.js.map} RENAMED
@@ -1 +1 @@
1
- {"version":3,"file":"480.lite.js?ver=9dceeabb39deab26f14c","mappings":"qIAsFO,SAASA,IAGd,MAAO,CACLC,MAHUC,SAASC,gBAAgBC,YAInCC,OAHWC,OAAOC,aAAeL,SAASC,gBAAgBK,cAYvD,SAASC,EAAUC,GACxB,IAAIC,EAAMD,EAAKE,wBACXC,EAAUX,SAASC,gBAEvB,MAAO,CACLW,KAAMH,EAAIG,MAAQR,OAAOS,aAAeF,EAAQG,aA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S,mCCvPA,IAAe,EAAa","sources":["webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/rc-util/es/Dom/css.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/rc-image/es/getFixScaleEleTransPosition.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/rc-image/es/PreviewGroup.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/rc-image/es/Preview.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/rc-image/es/hooks/useFrameSetState.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/rc-image/es/Image.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/rc-image/es/index.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/@ant-design/icons-svg/es/asn/RotateLeftOutlined.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/@ant-design/icons/es/icons/RotateLeftOutlined.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/@ant-design/icons-svg/es/asn/RotateRightOutlined.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/@ant-design/icons/es/icons/RotateRightOutlined.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/@ant-design/icons-svg/es/asn/ZoomInOutlined.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/@ant-design/icons/es/icons/ZoomInOutlined.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/@ant-design/icons-svg/es/asn/ZoomOutOutlined.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/@ant-design/icons/es/icons/ZoomOutOutlined.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/antd/es/image/PreviewGroup.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/antd/es/image/index.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/antd/es/list/Item.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/antd/es/list/index.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/antd/es/locale/en_US.js"],"sourcesContent":["/* eslint-disable no-nested-ternary */\nvar PIXEL_PATTERN = /margin|padding|width|height|max|min|offset/;\nvar removePixel = {\n left: true,\n top: true\n};\nvar floatMap = {\n cssFloat: 1,\n styleFloat: 1,\n float: 1\n};\n\nfunction getComputedStyle(node) {\n return node.nodeType === 1 ? node.ownerDocument.defaultView.getComputedStyle(node, null) : {};\n}\n\nfunction getStyleValue(node, type, value) {\n type = type.toLowerCase();\n\n if (value === 'auto') {\n if (type === 'height') {\n return node.offsetHeight;\n }\n\n if (type === 'width') {\n return node.offsetWidth;\n }\n }\n\n if (!(type in removePixel)) {\n removePixel[type] = PIXEL_PATTERN.test(type);\n }\n\n return removePixel[type] ? parseFloat(value) || 0 : value;\n}\n\nexport function get(node, name) {\n var length = arguments.length;\n var style = getComputedStyle(node);\n name = floatMap[name] ? 'cssFloat' in node.style ? 'cssFloat' : 'styleFloat' : name;\n return length === 1 ? style : getStyleValue(node, name, style[name] || node.style[name]);\n}\nexport function set(node, name, value) {\n var length = arguments.length;\n name = floatMap[name] ? 'cssFloat' in node.style ? 'cssFloat' : 'styleFloat' : name;\n\n if (length === 3) {\n if (typeof value === 'number' && PIXEL_PATTERN.test(name)) {\n value = \"\".concat(value, \"px\");\n }\n\n node.style[name] = value; // Number\n\n return value;\n }\n\n for (var x in name) {\n if (name.hasOwnProperty(x)) {\n set(node, x, name[x]);\n }\n }\n\n return getComputedStyle(node);\n}\nexport function getOuterWidth(el) {\n if (el === document.body) {\n return document.documentElement.clientWidth;\n }\n\n return el.offsetWidth;\n}\nexport function getOuterHeight(el) {\n if (el === document.body) {\n return window.innerHeight || document.documentElement.clientHeight;\n }\n\n return el.offsetHeight;\n}\nexport function getDocSize() {\n var width = Math.max(document.documentElement.scrollWidth, document.body.scrollWidth);\n var height = Math.max(document.documentElement.scrollHeight, document.body.scrollHeight);\n return {\n width: width,\n height: height\n };\n}\nexport function getClientSize() {\n var width = document.documentElement.clientWidth;\n var height = window.innerHeight || document.documentElement.clientHeight;\n return {\n width: width,\n height: height\n };\n}\nexport function getScroll() {\n return {\n scrollLeft: Math.max(document.documentElement.scrollLeft, document.body.scrollLeft),\n scrollTop: Math.max(document.documentElement.scrollTop, document.body.scrollTop)\n };\n}\nexport function getOffset(node) {\n var box = node.getBoundingClientRect();\n var docElem = document.documentElement; // < ie8 不支持 win.pageXOffset, 则使用 docElem.scrollLeft\n\n return {\n left: box.left + (window.pageXOffset || docElem.scrollLeft) - (docElem.clientLeft || document.body.clientLeft || 0),\n top: box.top + (window.pageYOffset || docElem.scrollTop) - (docElem.clientTop || document.body.clientTop || 0)\n };\n}","import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport { getClientSize } from \"rc-util/es/Dom/css\";\n\nfunction fixPoint(key, start, width, clientWidth) {\n var startAddWidth = start + width;\n var offsetStart = (width - clientWidth) / 2;\n\n if (width > clientWidth) {\n if (start > 0) {\n return _defineProperty({}, key, offsetStart);\n }\n\n if (start < 0 && startAddWidth < clientWidth) {\n return _defineProperty({}, key, -offsetStart);\n }\n } else if (start < 0 || startAddWidth > clientWidth) {\n return _defineProperty({}, key, start < 0 ? offsetStart : -offsetStart);\n }\n\n return {};\n}\n/**\n * Fix positon x,y point when\n *\n * Ele width && height < client\n * - Back origin\n *\n * - Ele width | height > clientWidth | clientHeight\n * - left | top > 0 -> Back 0\n * - left | top + width | height < clientWidth | clientHeight -> Back left | top + width | height === clientWidth | clientHeight\n *\n * Regardless of other\n */\n\n\nexport default function getFixScaleEleTransPosition(width, height, left, top) {\n var _getClientSize = getClientSize(),\n clientWidth = _getClientSize.width,\n clientHeight = _getClientSize.height;\n\n var fixPos = null;\n\n if (width <= clientWidth && height <= clientHeight) {\n fixPos = {\n x: 0,\n y: 0\n };\n } else if (width > clientWidth || height > clientHeight) {\n fixPos = _objectSpread(_objectSpread({}, fixPoint('x', left, width, clientWidth)), fixPoint('y', top, height, clientHeight));\n }\n\n return fixPos;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport _typeof from \"@babel/runtime/helpers/esm/typeof\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport { useState } from 'react';\nimport useMergedState from \"rc-util/es/hooks/useMergedState\";\nimport Preview from './Preview';\n/* istanbul ignore next */\n\nexport var context = /*#__PURE__*/React.createContext({\n previewUrls: new Map(),\n setPreviewUrls: function setPreviewUrls() {\n return null;\n },\n current: null,\n setCurrent: function setCurrent() {\n return null;\n },\n setShowPreview: function setShowPreview() {\n return null;\n },\n setMousePosition: function setMousePosition() {\n return null;\n },\n registerImage: function registerImage() {\n return function () {\n return null;\n };\n }\n});\nvar Provider = context.Provider;\n\nvar Group = function Group(_ref) {\n var _ref$previewPrefixCls = _ref.previewPrefixCls,\n previewPrefixCls = _ref$previewPrefixCls === void 0 ? 'rc-image-preview' : _ref$previewPrefixCls,\n children = _ref.children,\n _ref$icons = _ref.icons,\n icons = _ref$icons === void 0 ? {} : _ref$icons,\n preview = _ref.preview;\n\n var _ref2 = _typeof(preview) === 'object' ? preview : {},\n _ref2$visible = _ref2.visible,\n previewVisible = _ref2$visible === void 0 ? undefined : _ref2$visible,\n _ref2$onVisibleChange = _ref2.onVisibleChange,\n onPreviewVisibleChange = _ref2$onVisibleChange === void 0 ? undefined : _ref2$onVisibleChange,\n _ref2$getContainer = _ref2.getContainer,\n getContainer = _ref2$getContainer === void 0 ? undefined : _ref2$getContainer,\n _ref2$current = _ref2.current,\n currentIndex = _ref2$current === void 0 ? 0 : _ref2$current,\n dialogProps = _objectWithoutProperties(_ref2, [\"visible\", \"onVisibleChange\", \"getContainer\", \"current\"]);\n\n var _useState = useState(new Map()),\n _useState2 = _slicedToArray(_useState, 2),\n previewUrls = _useState2[0],\n setPreviewUrls = _useState2[1];\n\n var _useState3 = useState(),\n _useState4 = _slicedToArray(_useState3, 2),\n current = _useState4[0],\n setCurrent = _useState4[1];\n\n var _useMergedState = useMergedState(!!previewVisible, {\n value: previewVisible,\n onChange: onPreviewVisibleChange\n }),\n _useMergedState2 = _slicedToArray(_useMergedState, 2),\n isShowPreview = _useMergedState2[0],\n setShowPreview = _useMergedState2[1];\n\n var _useState5 = useState(null),\n _useState6 = _slicedToArray(_useState5, 2),\n mousePosition = _useState6[0],\n setMousePosition = _useState6[1];\n\n var isControlled = previewVisible !== undefined;\n var previewUrlsKeys = Array.from(previewUrls.keys());\n var currentControlledKey = previewUrlsKeys[currentIndex];\n var canPreviewUrls = new Map(Array.from(previewUrls).filter(function (_ref3) {\n var _ref4 = _slicedToArray(_ref3, 2),\n canPreview = _ref4[1].canPreview;\n\n return !!canPreview;\n }).map(function (_ref5) {\n var _ref6 = _slicedToArray(_ref5, 2),\n id = _ref6[0],\n url = _ref6[1].url;\n\n return [id, url];\n }));\n\n var registerImage = function registerImage(id, url) {\n var canPreview = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n\n var unRegister = function unRegister() {\n setPreviewUrls(function (oldPreviewUrls) {\n var clonePreviewUrls = new Map(oldPreviewUrls);\n var deleteResult = clonePreviewUrls.delete(id);\n return deleteResult ? clonePreviewUrls : oldPreviewUrls;\n });\n };\n\n setPreviewUrls(function (oldPreviewUrls) {\n return new Map(oldPreviewUrls).set(id, {\n url: url,\n canPreview: canPreview\n });\n });\n return unRegister;\n };\n\n var onPreviewClose = function onPreviewClose(e) {\n e.stopPropagation();\n setShowPreview(false);\n setMousePosition(null);\n };\n\n React.useEffect(function () {\n setCurrent(currentControlledKey);\n }, [currentControlledKey]);\n React.useEffect(function () {\n if (!isShowPreview && isControlled) {\n setCurrent(currentControlledKey);\n }\n }, [currentControlledKey, isControlled, isShowPreview]);\n return /*#__PURE__*/React.createElement(Provider, {\n value: {\n isPreviewGroup: true,\n previewUrls: canPreviewUrls,\n setPreviewUrls: setPreviewUrls,\n current: current,\n setCurrent: setCurrent,\n setShowPreview: setShowPreview,\n setMousePosition: setMousePosition,\n registerImage: registerImage\n }\n }, children, /*#__PURE__*/React.createElement(Preview, _extends({\n \"aria-hidden\": !isShowPreview,\n visible: isShowPreview,\n prefixCls: previewPrefixCls,\n onClose: onPreviewClose,\n mousePosition: mousePosition,\n src: canPreviewUrls.get(current),\n icons: icons,\n getContainer: getContainer\n }, dialogProps)));\n};\n\nexport default Group;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport Dialog from 'rc-dialog';\nimport classnames from 'classnames';\nimport addEventListener from \"rc-util/es/Dom/addEventListener\";\nimport { warning } from \"rc-util/es/warning\";\nimport useFrameSetState from './hooks/useFrameSetState';\nimport getFixScaleEleTransPosition from './getFixScaleEleTransPosition';\nimport { context } from './PreviewGroup';\nvar useState = React.useState,\n useEffect = React.useEffect;\nvar initialPosition = {\n x: 0,\n y: 0\n};\n\nvar Preview = function Preview(props) {\n var prefixCls = props.prefixCls,\n src = props.src,\n alt = props.alt,\n onClose = props.onClose,\n afterClose = props.afterClose,\n visible = props.visible,\n _props$icons = props.icons,\n icons = _props$icons === void 0 ? {} : _props$icons,\n restProps = _objectWithoutProperties(props, [\"prefixCls\", \"src\", \"alt\", \"onClose\", \"afterClose\", \"visible\", \"icons\"]);\n\n var rotateLeft = icons.rotateLeft,\n rotateRight = icons.rotateRight,\n zoomIn = icons.zoomIn,\n zoomOut = icons.zoomOut,\n close = icons.close,\n left = icons.left,\n right = icons.right;\n\n var _useState = useState(1),\n _useState2 = _slicedToArray(_useState, 2),\n scale = _useState2[0],\n setScale = _useState2[1];\n\n var _useState3 = useState(0),\n _useState4 = _slicedToArray(_useState3, 2),\n rotate = _useState4[0],\n setRotate = _useState4[1];\n\n var _useFrameSetState = useFrameSetState(initialPosition),\n _useFrameSetState2 = _slicedToArray(_useFrameSetState, 2),\n position = _useFrameSetState2[0],\n setPosition = _useFrameSetState2[1];\n\n var imgRef = React.useRef();\n var originPositionRef = React.useRef({\n originX: 0,\n originY: 0,\n deltaX: 0,\n deltaY: 0\n });\n\n var _React$useState = React.useState(false),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n isMoving = _React$useState2[0],\n setMoving = _React$useState2[1];\n\n var _React$useContext = React.useContext(context),\n previewUrls = _React$useContext.previewUrls,\n current = _React$useContext.current,\n isPreviewGroup = _React$useContext.isPreviewGroup,\n setCurrent = _React$useContext.setCurrent;\n\n var previewGroupCount = previewUrls.size;\n var previewUrlsKeys = Array.from(previewUrls.keys());\n var currentPreviewIndex = previewUrlsKeys.indexOf(current);\n var combinationSrc = isPreviewGroup ? previewUrls.get(current) : src;\n var showLeftOrRightSwitches = isPreviewGroup && previewGroupCount > 1;\n\n var _React$useState3 = React.useState({\n wheelDirection: 0\n }),\n _React$useState4 = _slicedToArray(_React$useState3, 2),\n lastWheelZoomDirection = _React$useState4[0],\n setLastWheelZoomDirection = _React$useState4[1];\n\n var onAfterClose = function onAfterClose() {\n setScale(1);\n setRotate(0);\n setPosition(initialPosition);\n };\n\n var onZoomIn = function onZoomIn() {\n setScale(function (value) {\n return value + 1;\n });\n setPosition(initialPosition);\n };\n\n var onZoomOut = function onZoomOut() {\n if (scale > 1) {\n setScale(function (value) {\n return value - 1;\n });\n }\n\n setPosition(initialPosition);\n };\n\n var onRotateRight = function onRotateRight() {\n setRotate(function (value) {\n return value + 90;\n });\n };\n\n var onRotateLeft = function onRotateLeft() {\n setRotate(function (value) {\n return value - 90;\n });\n };\n\n var onSwitchLeft = function onSwitchLeft(event) {\n event.preventDefault(); // Without this mask close will abnormal\n\n event.stopPropagation();\n\n if (currentPreviewIndex > 0) {\n setCurrent(previewUrlsKeys[currentPreviewIndex - 1]);\n }\n };\n\n var onSwitchRight = function onSwitchRight(event) {\n event.preventDefault(); // Without this mask close will abnormal\n\n event.stopPropagation();\n\n if (currentPreviewIndex < previewGroupCount - 1) {\n setCurrent(previewUrlsKeys[currentPreviewIndex + 1]);\n }\n };\n\n var wrapClassName = classnames(_defineProperty({}, \"\".concat(prefixCls, \"-moving\"), isMoving));\n var toolClassName = \"\".concat(prefixCls, \"-operations-operation\");\n var iconClassName = \"\".concat(prefixCls, \"-operations-icon\");\n var tools = [{\n icon: close,\n onClick: onClose,\n type: 'close'\n }, {\n icon: zoomIn,\n onClick: onZoomIn,\n type: 'zoomIn'\n }, {\n icon: zoomOut,\n onClick: onZoomOut,\n type: 'zoomOut',\n disabled: scale === 1\n }, {\n icon: rotateRight,\n onClick: onRotateRight,\n type: 'rotateRight'\n }, {\n icon: rotateLeft,\n onClick: onRotateLeft,\n type: 'rotateLeft'\n }];\n\n var onMouseUp = function onMouseUp() {\n if (visible && isMoving) {\n var width = imgRef.current.offsetWidth * scale;\n var height = imgRef.current.offsetHeight * scale; // eslint-disable-next-line @typescript-eslint/no-shadow\n\n var _imgRef$current$getBo = imgRef.current.getBoundingClientRect(),\n _left = _imgRef$current$getBo.left,\n top = _imgRef$current$getBo.top;\n\n var isRotate = rotate % 180 !== 0;\n setMoving(false);\n var fixState = getFixScaleEleTransPosition(isRotate ? height : width, isRotate ? width : height, _left, top);\n\n if (fixState) {\n setPosition(_objectSpread({}, fixState));\n }\n }\n };\n\n var onMouseDown = function onMouseDown(event) {\n // Only allow main button\n if (event.button !== 0) return;\n event.preventDefault(); // Without this mask close will abnormal\n\n event.stopPropagation();\n originPositionRef.current.deltaX = event.pageX - position.x;\n originPositionRef.current.deltaY = event.pageY - position.y;\n originPositionRef.current.originX = position.x;\n originPositionRef.current.originY = position.y;\n setMoving(true);\n };\n\n var onMouseMove = function onMouseMove(event) {\n if (visible && isMoving) {\n setPosition({\n x: event.pageX - originPositionRef.current.deltaX,\n y: event.pageY - originPositionRef.current.deltaY\n });\n }\n };\n\n var onWheelMove = function onWheelMove(event) {\n if (!visible) return;\n event.preventDefault();\n var wheelDirection = event.deltaY;\n setLastWheelZoomDirection({\n wheelDirection: wheelDirection\n });\n };\n\n useEffect(function () {\n var wheelDirection = lastWheelZoomDirection.wheelDirection;\n\n if (wheelDirection > 0) {\n onZoomOut();\n } else if (wheelDirection < 0) {\n onZoomIn();\n }\n }, [lastWheelZoomDirection]);\n useEffect(function () {\n var onTopMouseUpListener;\n var onTopMouseMoveListener;\n var onMouseUpListener = addEventListener(window, 'mouseup', onMouseUp, false);\n var onMouseMoveListener = addEventListener(window, 'mousemove', onMouseMove, false);\n var onScrollWheelListener = addEventListener(window, 'wheel', onWheelMove, {\n passive: false\n });\n\n try {\n // Resolve if in iframe lost event\n\n /* istanbul ignore next */\n if (window.top !== window.self) {\n onTopMouseUpListener = addEventListener(window.top, 'mouseup', onMouseUp, false);\n onTopMouseMoveListener = addEventListener(window.top, 'mousemove', onMouseMove, false);\n }\n } catch (error) {\n /* istanbul ignore next */\n warning(false, \"[rc-image] \".concat(error));\n }\n\n return function () {\n onMouseUpListener.remove();\n onMouseMoveListener.remove();\n onScrollWheelListener.remove();\n /* istanbul ignore next */\n\n if (onTopMouseUpListener) onTopMouseUpListener.remove();\n /* istanbul ignore next */\n\n if (onTopMouseMoveListener) onTopMouseMoveListener.remove();\n };\n }, [visible, isMoving]);\n return /*#__PURE__*/React.createElement(Dialog, _extends({\n transitionName: \"zoom\",\n maskTransitionName: \"fade\",\n closable: false,\n keyboard: true,\n prefixCls: prefixCls,\n onClose: onClose,\n afterClose: onAfterClose,\n visible: visible,\n wrapClassName: wrapClassName\n }, restProps), /*#__PURE__*/React.createElement(\"ul\", {\n className: \"\".concat(prefixCls, \"-operations\")\n }, tools.map(function (_ref) {\n var icon = _ref.icon,\n onClick = _ref.onClick,\n type = _ref.type,\n disabled = _ref.disabled;\n return /*#__PURE__*/React.createElement(\"li\", {\n className: classnames(toolClassName, _defineProperty({}, \"\".concat(prefixCls, \"-operations-operation-disabled\"), !!disabled)),\n onClick: onClick,\n key: type\n }, /*#__PURE__*/React.isValidElement(icon) ? /*#__PURE__*/React.cloneElement(icon, {\n className: iconClassName\n }) : icon);\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-img-wrapper\"),\n style: {\n transform: \"translate3d(\".concat(position.x, \"px, \").concat(position.y, \"px, 0)\")\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n onMouseDown: onMouseDown,\n ref: imgRef,\n className: \"\".concat(prefixCls, \"-img\"),\n src: combinationSrc,\n alt: alt,\n style: {\n transform: \"scale3d(\".concat(scale, \", \").concat(scale, \", 1) rotate(\").concat(rotate, \"deg)\")\n }\n })), showLeftOrRightSwitches && /*#__PURE__*/React.createElement(\"div\", {\n className: classnames(\"\".concat(prefixCls, \"-switch-left\"), _defineProperty({}, \"\".concat(prefixCls, \"-switch-left-disabled\"), currentPreviewIndex === 0)),\n onClick: onSwitchLeft\n }, left), showLeftOrRightSwitches && /*#__PURE__*/React.createElement(\"div\", {\n className: classnames(\"\".concat(prefixCls, \"-switch-right\"), _defineProperty({}, \"\".concat(prefixCls, \"-switch-right-disabled\"), currentPreviewIndex === previewGroupCount - 1)),\n onClick: onSwitchRight\n }, right));\n};\n\nexport default Preview;","import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport * as React from 'react';\nimport raf from \"rc-util/es/raf\";\nexport default function useFrameSetState(initial) {\n var frame = React.useRef(null);\n\n var _React$useState = React.useState(initial),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n state = _React$useState2[0],\n setState = _React$useState2[1];\n\n var queue = React.useRef([]);\n\n var setFrameState = function setFrameState(newState) {\n if (frame.current === null) {\n queue.current = [];\n frame.current = raf(function () {\n setState(function (preState) {\n var memoState = preState;\n queue.current.forEach(function (queueState) {\n memoState = _objectSpread(_objectSpread({}, memoState), queueState);\n });\n frame.current = null;\n return memoState;\n });\n });\n }\n\n queue.current.push(newState);\n };\n\n React.useEffect(function () {\n return function () {\n return frame.current && raf.cancel(frame.current);\n };\n }, []);\n return [state, setFrameState];\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport _typeof from \"@babel/runtime/helpers/esm/typeof\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport { useState } from 'react';\nimport cn from 'classnames';\nimport { getOffset } from \"rc-util/es/Dom/css\";\nimport useMergedState from \"rc-util/es/hooks/useMergedState\";\nimport Preview from './Preview';\nimport PreviewGroup, { context } from './PreviewGroup';\nvar uuid = 0;\n\nvar ImageInternal = function ImageInternal(_ref) {\n var imgSrc = _ref.src,\n alt = _ref.alt,\n onInitialPreviewClose = _ref.onPreviewClose,\n _ref$prefixCls = _ref.prefixCls,\n prefixCls = _ref$prefixCls === void 0 ? 'rc-image' : _ref$prefixCls,\n _ref$previewPrefixCls = _ref.previewPrefixCls,\n previewPrefixCls = _ref$previewPrefixCls === void 0 ? \"\".concat(prefixCls, \"-preview\") : _ref$previewPrefixCls,\n placeholder = _ref.placeholder,\n fallback = _ref.fallback,\n width = _ref.width,\n height = _ref.height,\n style = _ref.style,\n _ref$preview = _ref.preview,\n preview = _ref$preview === void 0 ? true : _ref$preview,\n className = _ref.className,\n onClick = _ref.onClick,\n onImageError = _ref.onError,\n wrapperClassName = _ref.wrapperClassName,\n wrapperStyle = _ref.wrapperStyle,\n crossOrigin = _ref.crossOrigin,\n decoding = _ref.decoding,\n loading = _ref.loading,\n referrerPolicy = _ref.referrerPolicy,\n sizes = _ref.sizes,\n srcSet = _ref.srcSet,\n useMap = _ref.useMap,\n otherProps = _objectWithoutProperties(_ref, [\"src\", \"alt\", \"onPreviewClose\", \"prefixCls\", \"previewPrefixCls\", \"placeholder\", \"fallback\", \"width\", \"height\", \"style\", \"preview\", \"className\", \"onClick\", \"onError\", \"wrapperClassName\", \"wrapperStyle\", \"crossOrigin\", \"decoding\", \"loading\", \"referrerPolicy\", \"sizes\", \"srcSet\", \"useMap\"]);\n\n var isCustomPlaceholder = placeholder && placeholder !== true;\n\n var _ref2 = _typeof(preview) === 'object' ? preview : {},\n previewSrc = _ref2.src,\n _ref2$visible = _ref2.visible,\n previewVisible = _ref2$visible === void 0 ? undefined : _ref2$visible,\n _ref2$onVisibleChange = _ref2.onVisibleChange,\n onPreviewVisibleChange = _ref2$onVisibleChange === void 0 ? onInitialPreviewClose : _ref2$onVisibleChange,\n _ref2$getContainer = _ref2.getContainer,\n getPreviewContainer = _ref2$getContainer === void 0 ? undefined : _ref2$getContainer,\n previewMask = _ref2.mask,\n maskClassName = _ref2.maskClassName,\n icons = _ref2.icons,\n dialogProps = _objectWithoutProperties(_ref2, [\"src\", \"visible\", \"onVisibleChange\", \"getContainer\", \"mask\", \"maskClassName\", \"icons\"]);\n\n var src = previewSrc !== null && previewSrc !== void 0 ? previewSrc : imgSrc;\n var isControlled = previewVisible !== undefined;\n\n var _useMergedState = useMergedState(!!previewVisible, {\n value: previewVisible,\n onChange: onPreviewVisibleChange\n }),\n _useMergedState2 = _slicedToArray(_useMergedState, 2),\n isShowPreview = _useMergedState2[0],\n setShowPreview = _useMergedState2[1];\n\n var _useState = useState(isCustomPlaceholder ? 'loading' : 'normal'),\n _useState2 = _slicedToArray(_useState, 2),\n status = _useState2[0],\n setStatus = _useState2[1];\n\n var _useState3 = useState(null),\n _useState4 = _slicedToArray(_useState3, 2),\n mousePosition = _useState4[0],\n setMousePosition = _useState4[1];\n\n var isError = status === 'error';\n\n var _React$useContext = React.useContext(context),\n isPreviewGroup = _React$useContext.isPreviewGroup,\n setCurrent = _React$useContext.setCurrent,\n setGroupShowPreview = _React$useContext.setShowPreview,\n setGroupMousePosition = _React$useContext.setMousePosition,\n registerImage = _React$useContext.registerImage;\n\n var _React$useState = React.useState(function () {\n uuid += 1;\n return uuid;\n }),\n _React$useState2 = _slicedToArray(_React$useState, 1),\n currentId = _React$useState2[0];\n\n var canPreview = preview && !isError;\n var isLoaded = React.useRef(false);\n\n var onLoad = function onLoad() {\n setStatus('normal');\n };\n\n var onError = function onError(e) {\n if (onImageError) {\n onImageError(e);\n }\n\n setStatus('error');\n };\n\n var onPreview = function onPreview(e) {\n if (!isControlled) {\n var _getOffset = getOffset(e.target),\n left = _getOffset.left,\n top = _getOffset.top;\n\n if (isPreviewGroup) {\n setCurrent(currentId);\n setGroupMousePosition({\n x: left,\n y: top\n });\n } else {\n setMousePosition({\n x: left,\n y: top\n });\n }\n }\n\n if (isPreviewGroup) {\n setGroupShowPreview(true);\n } else {\n setShowPreview(true);\n }\n\n if (onClick) onClick(e);\n };\n\n var onPreviewClose = function onPreviewClose(e) {\n e.stopPropagation();\n setShowPreview(false);\n\n if (!isControlled) {\n setMousePosition(null);\n }\n };\n\n var getImgRef = function getImgRef(img) {\n isLoaded.current = false;\n if (status !== 'loading') return;\n\n if ((img === null || img === void 0 ? void 0 : img.complete) && (img.naturalWidth || img.naturalHeight)) {\n isLoaded.current = true;\n onLoad();\n }\n }; // Keep order start\n // Resolve https://github.com/ant-design/ant-design/issues/28881\n // Only need unRegister when component unMount\n\n\n React.useEffect(function () {\n var unRegister = registerImage(currentId, src);\n return unRegister;\n }, []);\n React.useEffect(function () {\n registerImage(currentId, src, canPreview);\n }, [src, canPreview]); // Keep order end\n\n React.useEffect(function () {\n if (isError) {\n setStatus('normal');\n }\n\n if (isCustomPlaceholder && !isLoaded.current) {\n setStatus('loading');\n }\n }, [imgSrc]);\n var wrapperClass = cn(prefixCls, wrapperClassName, _defineProperty({}, \"\".concat(prefixCls, \"-error\"), isError));\n var mergedSrc = isError && fallback ? fallback : src;\n var imgCommonProps = {\n crossOrigin: crossOrigin,\n decoding: decoding,\n loading: loading,\n referrerPolicy: referrerPolicy,\n sizes: sizes,\n srcSet: srcSet,\n useMap: useMap,\n alt: alt,\n className: cn(\"\".concat(prefixCls, \"-img\"), _defineProperty({}, \"\".concat(prefixCls, \"-img-placeholder\"), placeholder === true), className),\n style: _objectSpread({\n height: height\n }, style)\n };\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"div\", _extends({}, otherProps, {\n className: wrapperClass,\n onClick: preview && !isError ? onPreview : onClick,\n style: _objectSpread({\n width: width,\n height: height\n }, wrapperStyle)\n }), /*#__PURE__*/React.createElement(\"img\", _extends({}, imgCommonProps, {\n ref: getImgRef\n }, isError && fallback ? {\n src: fallback\n } : {\n onLoad: onLoad,\n onError: onError,\n src: imgSrc\n })), status === 'loading' && /*#__PURE__*/React.createElement(\"div\", {\n \"aria-hidden\": \"true\",\n className: \"\".concat(prefixCls, \"-placeholder\")\n }, placeholder), previewMask && canPreview && /*#__PURE__*/React.createElement(\"div\", {\n className: cn(\"\".concat(prefixCls, \"-mask\"), maskClassName)\n }, previewMask)), !isPreviewGroup && canPreview && /*#__PURE__*/React.createElement(Preview, _extends({\n \"aria-hidden\": !isShowPreview,\n visible: isShowPreview,\n prefixCls: previewPrefixCls,\n onClose: onPreviewClose,\n mousePosition: mousePosition,\n src: mergedSrc,\n alt: alt,\n getContainer: getPreviewContainer,\n icons: icons\n }, dialogProps)));\n};\n\nImageInternal.PreviewGroup = PreviewGroup;\nImageInternal.displayName = 'Image';\nexport default ImageInternal;","import Image from './Image';\nexport * from './Image';\nexport default Image;","// This icon file is generated automatically.\nvar RotateLeftOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"defs\", \"attrs\": {}, \"children\": [{ \"tag\": \"style\", \"attrs\": {} }] }, { \"tag\": \"path\", \"attrs\": { \"d\": \"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z\" } }, { \"tag\": \"path\", \"attrs\": { \"d\": \"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z\" } }] }, \"name\": \"rotate-left\", \"theme\": \"outlined\" };\nexport default RotateLeftOutlined;\n","// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\nimport * as React from 'react';\nimport RotateLeftOutlinedSvg from \"@ant-design/icons-svg/es/asn/RotateLeftOutlined\";\nimport AntdIcon from '../components/AntdIcon';\n\nvar RotateLeftOutlined = function RotateLeftOutlined(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, Object.assign({}, props, {\n ref: ref,\n icon: RotateLeftOutlinedSvg\n }));\n};\n\nRotateLeftOutlined.displayName = 'RotateLeftOutlined';\nexport default /*#__PURE__*/React.forwardRef(RotateLeftOutlined);","// This icon file is generated automatically.\nvar RotateRightOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"defs\", \"attrs\": {}, \"children\": [{ \"tag\": \"style\", \"attrs\": {} }] }, { \"tag\": \"path\", \"attrs\": { \"d\": \"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z\" } }, { \"tag\": \"path\", \"attrs\": { \"d\": \"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z\" } }] }, \"name\": \"rotate-right\", \"theme\": \"outlined\" };\nexport default RotateRightOutlined;\n","// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\nimport * as React from 'react';\nimport RotateRightOutlinedSvg from \"@ant-design/icons-svg/es/asn/RotateRightOutlined\";\nimport AntdIcon from '../components/AntdIcon';\n\nvar RotateRightOutlined = function RotateRightOutlined(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, Object.assign({}, props, {\n ref: ref,\n icon: RotateRightOutlinedSvg\n }));\n};\n\nRotateRightOutlined.displayName = 'RotateRightOutlined';\nexport default /*#__PURE__*/React.forwardRef(RotateRightOutlined);","// This icon file is generated automatically.\nvar ZoomInOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z\" } }] }, \"name\": \"zoom-in\", \"theme\": \"outlined\" };\nexport default ZoomInOutlined;\n","// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\nimport * as React from 'react';\nimport ZoomInOutlinedSvg from \"@ant-design/icons-svg/es/asn/ZoomInOutlined\";\nimport AntdIcon from '../components/AntdIcon';\n\nvar ZoomInOutlined = function ZoomInOutlined(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, Object.assign({}, props, {\n ref: ref,\n icon: ZoomInOutlinedSvg\n }));\n};\n\nZoomInOutlined.displayName = 'ZoomInOutlined';\nexport default /*#__PURE__*/React.forwardRef(ZoomInOutlined);","// This icon file is generated automatically.\nvar ZoomOutOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z\" } }] }, \"name\": \"zoom-out\", \"theme\": \"outlined\" };\nexport default ZoomOutOutlined;\n","// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\nimport * as React from 'react';\nimport ZoomOutOutlinedSvg from \"@ant-design/icons-svg/es/asn/ZoomOutOutlined\";\nimport AntdIcon from '../components/AntdIcon';\n\nvar ZoomOutOutlined = function ZoomOutOutlined(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, Object.assign({}, props, {\n ref: ref,\n icon: ZoomOutOutlinedSvg\n }));\n};\n\nZoomOutOutlined.displayName = 'ZoomOutOutlined';\nexport default /*#__PURE__*/React.forwardRef(ZoomOutOutlined);","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _typeof from \"@babel/runtime/helpers/esm/typeof\";\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\n\nimport * as React from 'react';\nimport RcImage from 'rc-image';\nimport RotateLeftOutlined from \"@ant-design/icons/es/icons/RotateLeftOutlined\";\nimport RotateRightOutlined from \"@ant-design/icons/es/icons/RotateRightOutlined\";\nimport ZoomInOutlined from \"@ant-design/icons/es/icons/ZoomInOutlined\";\nimport ZoomOutOutlined from \"@ant-design/icons/es/icons/ZoomOutOutlined\";\nimport CloseOutlined from \"@ant-design/icons/es/icons/CloseOutlined\";\nimport LeftOutlined from \"@ant-design/icons/es/icons/LeftOutlined\";\nimport RightOutlined from \"@ant-design/icons/es/icons/RightOutlined\";\nimport { ConfigContext } from '../config-provider';\nimport { getTransitionName } from '../_util/motion';\nexport var icons = {\n rotateLeft: /*#__PURE__*/React.createElement(RotateLeftOutlined, null),\n rotateRight: /*#__PURE__*/React.createElement(RotateRightOutlined, null),\n zoomIn: /*#__PURE__*/React.createElement(ZoomInOutlined, null),\n zoomOut: /*#__PURE__*/React.createElement(ZoomOutOutlined, null),\n close: /*#__PURE__*/React.createElement(CloseOutlined, null),\n left: /*#__PURE__*/React.createElement(LeftOutlined, null),\n right: /*#__PURE__*/React.createElement(RightOutlined, null)\n};\n\nvar InternalPreviewGroup = function InternalPreviewGroup(_a) {\n var customizePrefixCls = _a.previewPrefixCls,\n preview = _a.preview,\n props = __rest(_a, [\"previewPrefixCls\", \"preview\"]);\n\n var _React$useContext = React.useContext(ConfigContext),\n getPrefixCls = _React$useContext.getPrefixCls;\n\n var prefixCls = getPrefixCls('image-preview', customizePrefixCls);\n var rootPrefixCls = getPrefixCls();\n var mergedPreview = React.useMemo(function () {\n if (preview === false) {\n return preview;\n }\n\n var _preview = _typeof(preview) === 'object' ? preview : {};\n\n return _extends(_extends({}, _preview), {\n transitionName: getTransitionName(rootPrefixCls, 'zoom', _preview.transitionName),\n maskTransitionName: getTransitionName(rootPrefixCls, 'fade', _preview.maskTransitionName)\n });\n }, [preview]);\n return /*#__PURE__*/React.createElement(RcImage.PreviewGroup, _extends({\n preview: mergedPreview,\n previewPrefixCls: prefixCls,\n icons: icons\n }, props));\n};\n\nexport default InternalPreviewGroup;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _typeof from \"@babel/runtime/helpers/esm/typeof\";\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\n\nimport * as React from 'react';\nimport { useContext } from 'react';\nimport EyeOutlined from \"@ant-design/icons/es/icons/EyeOutlined\";\nimport RcImage from 'rc-image';\nimport defaultLocale from '../locale/en_US';\nimport PreviewGroup, { icons } from './PreviewGroup';\nimport { ConfigContext } from '../config-provider';\nimport { getTransitionName } from '../_util/motion';\n\nvar Image = function Image(_a) {\n var customizePrefixCls = _a.prefixCls,\n preview = _a.preview,\n otherProps = __rest(_a, [\"prefixCls\", \"preview\"]);\n\n var _useContext = useContext(ConfigContext),\n getPrefixCls = _useContext.getPrefixCls;\n\n var prefixCls = getPrefixCls('image', customizePrefixCls);\n var rootPrefixCls = getPrefixCls();\n\n var _useContext2 = useContext(ConfigContext),\n _useContext2$locale = _useContext2.locale,\n contextLocale = _useContext2$locale === void 0 ? defaultLocale : _useContext2$locale;\n\n var imageLocale = contextLocale.Image || defaultLocale.Image;\n var mergedPreview = React.useMemo(function () {\n if (preview === false) {\n return preview;\n }\n\n var _preview = _typeof(preview) === 'object' ? preview : {};\n\n return _extends(_extends({\n mask: /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-mask-info\")\n }, /*#__PURE__*/React.createElement(EyeOutlined, null), imageLocale === null || imageLocale === void 0 ? void 0 : imageLocale.preview),\n icons: icons\n }, _preview), {\n transitionName: getTransitionName(rootPrefixCls, 'zoom', _preview.transitionName),\n maskTransitionName: getTransitionName(rootPrefixCls, 'fade', _preview.maskTransitionName)\n });\n }, [preview, imageLocale]);\n return /*#__PURE__*/React.createElement(RcImage, _extends({\n prefixCls: prefixCls,\n preview: mergedPreview\n }, otherProps));\n};\n\nImage.PreviewGroup = PreviewGroup;\nexport default Image;","import _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { ListContext } from './index';\nimport { Col } from '../grid';\nimport { ConfigContext } from '../config-provider';\nimport { cloneElement } from '../_util/reactNode';\nexport var Meta = function Meta(_a) {\n var customizePrefixCls = _a.prefixCls,\n className = _a.className,\n avatar = _a.avatar,\n title = _a.title,\n description = _a.description,\n others = __rest(_a, [\"prefixCls\", \"className\", \"avatar\", \"title\", \"description\"]);\n\n var _React$useContext = React.useContext(ConfigContext),\n getPrefixCls = _React$useContext.getPrefixCls;\n\n var prefixCls = getPrefixCls('list', customizePrefixCls);\n var classString = classNames(\"\".concat(prefixCls, \"-item-meta\"), className);\n var content = /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-item-meta-content\")\n }, title && /*#__PURE__*/React.createElement(\"h4\", {\n className: \"\".concat(prefixCls, \"-item-meta-title\")\n }, title), description && /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-item-meta-description\")\n }, description));\n return /*#__PURE__*/React.createElement(\"div\", _extends({}, others, {\n className: classString\n }), avatar && /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-item-meta-avatar\")\n }, avatar), (title || description) && content);\n};\n\nvar Item = function Item(_a) {\n var customizePrefixCls = _a.prefixCls,\n children = _a.children,\n actions = _a.actions,\n extra = _a.extra,\n className = _a.className,\n colStyle = _a.colStyle,\n others = __rest(_a, [\"prefixCls\", \"children\", \"actions\", \"extra\", \"className\", \"colStyle\"]);\n\n var _React$useContext2 = React.useContext(ListContext),\n grid = _React$useContext2.grid,\n itemLayout = _React$useContext2.itemLayout;\n\n var _React$useContext3 = React.useContext(ConfigContext),\n getPrefixCls = _React$useContext3.getPrefixCls;\n\n var isItemContainsTextNodeAndNotSingular = function isItemContainsTextNodeAndNotSingular() {\n var result;\n React.Children.forEach(children, function (element) {\n if (typeof element === 'string') {\n result = true;\n }\n });\n return result && React.Children.count(children) > 1;\n };\n\n var isFlexMode = function isFlexMode() {\n if (itemLayout === 'vertical') {\n return !!extra;\n }\n\n return !isItemContainsTextNodeAndNotSingular();\n };\n\n var prefixCls = getPrefixCls('list', customizePrefixCls);\n var actionsContent = actions && actions.length > 0 && /*#__PURE__*/React.createElement(\"ul\", {\n className: \"\".concat(prefixCls, \"-item-action\"),\n key: \"actions\"\n }, actions.map(function (action, i) {\n return (\n /*#__PURE__*/\n // eslint-disable-next-line react/no-array-index-key\n React.createElement(\"li\", {\n key: \"\".concat(prefixCls, \"-item-action-\").concat(i)\n }, action, i !== actions.length - 1 && /*#__PURE__*/React.createElement(\"em\", {\n className: \"\".concat(prefixCls, \"-item-action-split\")\n }))\n );\n }));\n var Element = grid ? 'div' : 'li';\n var itemChildren = /*#__PURE__*/React.createElement(Element, _extends({}, others, {\n // `li` element `onCopy` prop args is not same as `div`\n className: classNames(\"\".concat(prefixCls, \"-item\"), _defineProperty({}, \"\".concat(prefixCls, \"-item-no-flex\"), !isFlexMode()), className)\n }), itemLayout === 'vertical' && extra ? [/*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-item-main\"),\n key: \"content\"\n }, children, actionsContent), /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-item-extra\"),\n key: \"extra\"\n }, extra)] : [children, actionsContent, cloneElement(extra, {\n key: 'extra'\n })]);\n return grid ? /*#__PURE__*/React.createElement(Col, {\n flex: 1,\n style: colStyle\n }, itemChildren) : itemChildren;\n};\n\nItem.Meta = Meta;\nexport default Item;","import _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport _typeof from \"@babel/runtime/helpers/esm/typeof\";\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport Spin from '../spin';\nimport useBreakpoint from '../grid/hooks/useBreakpoint';\nimport { responsiveArray } from '../_util/responsiveObserve';\nimport { ConfigContext } from '../config-provider';\nimport Pagination from '../pagination';\nimport { Row } from '../grid';\nimport Item from './Item';\nexport var ListContext = /*#__PURE__*/React.createContext({});\nexport var ListConsumer = ListContext.Consumer;\n\nfunction List(_a) {\n var _classNames;\n\n var _a$pagination = _a.pagination,\n pagination = _a$pagination === void 0 ? false : _a$pagination,\n customizePrefixCls = _a.prefixCls,\n _a$bordered = _a.bordered,\n bordered = _a$bordered === void 0 ? false : _a$bordered,\n _a$split = _a.split,\n split = _a$split === void 0 ? true : _a$split,\n className = _a.className,\n children = _a.children,\n itemLayout = _a.itemLayout,\n loadMore = _a.loadMore,\n grid = _a.grid,\n _a$dataSource = _a.dataSource,\n dataSource = _a$dataSource === void 0 ? [] : _a$dataSource,\n size = _a.size,\n header = _a.header,\n footer = _a.footer,\n _a$loading = _a.loading,\n loading = _a$loading === void 0 ? false : _a$loading,\n rowKey = _a.rowKey,\n renderItem = _a.renderItem,\n locale = _a.locale,\n rest = __rest(_a, [\"pagination\", \"prefixCls\", \"bordered\", \"split\", \"className\", \"children\", \"itemLayout\", \"loadMore\", \"grid\", \"dataSource\", \"size\", \"header\", \"footer\", \"loading\", \"rowKey\", \"renderItem\", \"locale\"]);\n\n var paginationObj = pagination && _typeof(pagination) === 'object' ? pagination : {};\n\n var _React$useState = React.useState(paginationObj.defaultCurrent || 1),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n paginationCurrent = _React$useState2[0],\n setPaginationCurrent = _React$useState2[1];\n\n var _React$useState3 = React.useState(paginationObj.defaultPageSize || 10),\n _React$useState4 = _slicedToArray(_React$useState3, 2),\n paginationSize = _React$useState4[0],\n setPaginationSize = _React$useState4[1];\n\n var _React$useContext = React.useContext(ConfigContext),\n getPrefixCls = _React$useContext.getPrefixCls,\n renderEmpty = _React$useContext.renderEmpty,\n direction = _React$useContext.direction;\n\n var defaultPaginationProps = {\n current: 1,\n total: 0\n };\n var keys = {};\n\n var triggerPaginationEvent = function triggerPaginationEvent(eventName) {\n return function (page, pageSize) {\n setPaginationCurrent(page);\n setPaginationSize(pageSize);\n\n if (pagination && pagination[eventName]) {\n pagination[eventName](page, pageSize);\n }\n };\n };\n\n var onPaginationChange = triggerPaginationEvent('onChange');\n var onPaginationShowSizeChange = triggerPaginationEvent('onShowSizeChange');\n\n var renderInnerItem = function renderInnerItem(item, index) {\n if (!renderItem) return null;\n var key;\n\n if (typeof rowKey === 'function') {\n key = rowKey(item);\n } else if (typeof rowKey === 'string') {\n key = item[rowKey];\n } else {\n key = item.key;\n }\n\n if (!key) {\n key = \"list-item-\".concat(index);\n }\n\n keys[index] = key;\n return renderItem(item, index);\n };\n\n var isSomethingAfterLastItem = function isSomethingAfterLastItem() {\n return !!(loadMore || pagination || footer);\n };\n\n var renderEmptyFunc = function renderEmptyFunc(prefixCls, renderEmptyHandler) {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-empty-text\")\n }, locale && locale.emptyText || renderEmptyHandler('List'));\n };\n\n var prefixCls = getPrefixCls('list', customizePrefixCls);\n var loadingProp = loading;\n\n if (typeof loadingProp === 'boolean') {\n loadingProp = {\n spinning: loadingProp\n };\n }\n\n var isLoading = loadingProp && loadingProp.spinning; // large => lg\n // small => sm\n\n var sizeCls = '';\n\n switch (size) {\n case 'large':\n sizeCls = 'lg';\n break;\n\n case 'small':\n sizeCls = 'sm';\n break;\n\n default:\n break;\n }\n\n var classString = classNames(prefixCls, (_classNames = {}, _defineProperty(_classNames, \"\".concat(prefixCls, \"-vertical\"), itemLayout === 'vertical'), _defineProperty(_classNames, \"\".concat(prefixCls, \"-\").concat(sizeCls), sizeCls), _defineProperty(_classNames, \"\".concat(prefixCls, \"-split\"), split), _defineProperty(_classNames, \"\".concat(prefixCls, \"-bordered\"), bordered), _defineProperty(_classNames, \"\".concat(prefixCls, \"-loading\"), isLoading), _defineProperty(_classNames, \"\".concat(prefixCls, \"-grid\"), !!grid), _defineProperty(_classNames, \"\".concat(prefixCls, \"-something-after-last-item\"), isSomethingAfterLastItem()), _defineProperty(_classNames, \"\".concat(prefixCls, \"-rtl\"), direction === 'rtl'), _classNames), className);\n\n var paginationProps = _extends(_extends(_extends({}, defaultPaginationProps), {\n total: dataSource.length,\n current: paginationCurrent,\n pageSize: paginationSize\n }), pagination || {});\n\n var largestPage = Math.ceil(paginationProps.total / paginationProps.pageSize);\n\n if (paginationProps.current > largestPage) {\n paginationProps.current = largestPage;\n }\n\n var paginationContent = pagination ? /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-pagination\")\n }, /*#__PURE__*/React.createElement(Pagination, _extends({}, paginationProps, {\n onChange: onPaginationChange,\n onShowSizeChange: onPaginationShowSizeChange\n }))) : null;\n\n var splitDataSource = _toConsumableArray(dataSource);\n\n if (pagination) {\n if (dataSource.length > (paginationProps.current - 1) * paginationProps.pageSize) {\n splitDataSource = _toConsumableArray(dataSource).splice((paginationProps.current - 1) * paginationProps.pageSize, paginationProps.pageSize);\n }\n }\n\n var screens = useBreakpoint();\n var currentBreakpoint = React.useMemo(function () {\n for (var i = 0; i < responsiveArray.length; i += 1) {\n var breakpoint = responsiveArray[i];\n\n if (screens[breakpoint]) {\n return breakpoint;\n }\n }\n\n return undefined;\n }, [screens]);\n var colStyle = React.useMemo(function () {\n if (!grid) {\n return undefined;\n }\n\n var columnCount = currentBreakpoint && grid[currentBreakpoint] ? grid[currentBreakpoint] : grid.column;\n\n if (columnCount) {\n return {\n width: \"\".concat(100 / columnCount, \"%\"),\n maxWidth: \"\".concat(100 / columnCount, \"%\")\n };\n }\n }, [grid === null || grid === void 0 ? void 0 : grid.column, currentBreakpoint]);\n var childrenContent = isLoading && /*#__PURE__*/React.createElement(\"div\", {\n style: {\n minHeight: 53\n }\n });\n\n if (splitDataSource.length > 0) {\n var items = splitDataSource.map(function (item, index) {\n return renderInnerItem(item, index);\n });\n var childrenList = React.Children.map(items, function (child, index) {\n return /*#__PURE__*/React.createElement(\"div\", {\n key: keys[index],\n style: colStyle\n }, child);\n });\n childrenContent = grid ? /*#__PURE__*/React.createElement(Row, {\n gutter: grid.gutter\n }, childrenList) : /*#__PURE__*/React.createElement(\"ul\", {\n className: \"\".concat(prefixCls, \"-items\")\n }, items);\n } else if (!children && !isLoading) {\n childrenContent = renderEmptyFunc(prefixCls, renderEmpty);\n }\n\n var paginationPosition = paginationProps.position || 'bottom';\n return /*#__PURE__*/React.createElement(ListContext.Provider, {\n value: {\n grid: grid,\n itemLayout: itemLayout\n }\n }, /*#__PURE__*/React.createElement(\"div\", _extends({\n className: classString\n }, rest), (paginationPosition === 'top' || paginationPosition === 'both') && paginationContent, header && /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-header\")\n }, header), /*#__PURE__*/React.createElement(Spin, loadingProp, childrenContent, children), footer && /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-footer\")\n }, footer), loadMore || (paginationPosition === 'bottom' || paginationPosition === 'both') && paginationContent));\n}\n\nList.Item = Item;\nexport default List;","import defaultLocale from './default';\nexport default defaultLocale;"],"names":["getClientSize","width","document","documentElement","clientWidth","height","window","innerHeight","clientHeight","getOffset","node","box","getBoundingClientRect","docElem","left","pageXOffset","scrollLeft","clientLeft","body","top","pageYOffset","scrollTop","clientTop","fixPoint","key","start","startAddWidth","offsetStart","context","previewUrls","Map","setPreviewUrls","current","setCurrent","setShowPreview","setMousePosition","registerImage","Provider","useState","useEffect","initialPosition","x","y","props","prefixCls","src","alt","onClose","visible","afterClose","_props$icons","icons","restProps","rotateLeft","rotateRight","zoomIn","zoomOut","close","right","_useState","_useState2","scale","setScale","_useState3","_useState4","rotate","setRotate","_useFrameSetState","initial","frame","_React$useState","_React$useState2","state","setState","queue","raf","newState","preState","memoState","forEach","queueState","push","useFrameSetState","_useFrameSetState2","position","setPosition","imgRef","originPositionRef","originX","originY","deltaX","deltaY","isMoving","setMoving","_React$useContext","isPreviewGroup","previewGroupCount","size","previewUrlsKeys","Array","from","keys","currentPreviewIndex","indexOf","combinationSrc","get","showLeftOrRightSwitches","_React$useState3","wheelDirection","_React$useState4","lastWheelZoomDirection","setLastWheelZoomDirection","onZoomIn","value","onZoomOut","wrapClassName","concat","toolClassName","iconClassName","tools","icon","onClick","type","disabled","onMouseUp","offsetWidth","offsetHeight","_imgRef$current$getBo","_left","isRotate","fixState","_getClientSize","fixPos","getFixScaleEleTransPosition","onMouseMove","event","pageX","pageY","onWheelMove","preventDefault","onTopMouseUpListener","onTopMouseMoveListener","onMouseUpListener","addEventListener","onMouseMoveListener","onScrollWheelListener","passive","self","error","warning","remove","transitionName","maskTransitionName","closable","keyboard","className","map","_ref","style","transform","onMouseDown","button","stopPropagation","ref","uuid","ImageInternal","imgSrc","onInitialPreviewClose","onPreviewClose","_ref$prefixCls","_ref$previewPrefixCls","previewPrefixCls","placeholder","fallback","_ref$preview","preview","onImageError","onError","wrapperClassName","wrapperStyle","crossOrigin","decoding","loading","referrerPolicy","sizes","srcSet","useMap","otherProps","isCustomPlaceholder","_ref2","previewSrc","_ref2$visible","previewVisible","undefined","_ref2$onVisibleChange","onVisibleChange","onPreviewVisibleChange","_ref2$getContainer","getContainer","getPreviewContainer","previewMask","mask","maskClassName","dialogProps","isControlled","_useMergedState","useMergedState","onChange","_useMergedState2","isShowPreview","status","setStatus","mousePosition","isError","setGroupShowPreview","setGroupMousePosition","currentId","canPreview","isLoaded","onLoad","wrapperClass","mergedSrc","imgCommonProps","e","_getOffset","target","img","complete","naturalWidth","naturalHeight","PreviewGroup","children","_ref$icons","_ref2$current","currentIndex","_useState5","_useState6","currentControlledKey","canPreviewUrls","filter","_ref3","_ref5","_ref6","url","id","arguments","length","unRegister","oldPreviewUrls","clonePreviewUrls","delete","set","displayName","AntdIcon","Object","assign","CloseOutlined","LeftOutlined","RightOutlined","_a","customizePrefixCls","s","t","p","prototype","hasOwnProperty","call","getOwnPropertySymbols","i","propertyIsEnumerable","getPrefixCls","useContext","rootPrefixCls","_useContext2$locale","locale","imageLocale","Image","mergedPreview","_preview","EyeOutlined","__rest","Item","result","actions","extra","colStyle","others","_React$useContext2","ListContext","grid","itemLayout","actionsContent","action","Element","itemChildren","element","flex","Meta","avatar","title","description","classString","content","List","_classNames","_a$pagination","pagination","_a$bordered","bordered","_a$split","split","loadMore","_a$dataSource","dataSource","header","footer","_a$loading","rowKey","renderItem","rest","paginationObj","defaultCurrent","paginationCurrent","setPaginationCurrent","defaultPageSize","paginationSize","setPaginationSize","renderEmpty","direction","triggerPaginationEvent","eventName","page","pageSize","onPaginationChange","onPaginationShowSizeChange","loadingProp","spinning","isLoading","sizeCls","paginationProps","total","largestPage","Math","ceil","paginationContent","onShowSizeChange","splitDataSource","splice","screens","useBreakpoint","currentBreakpoint","breakpoint","columnCount","column","maxWidth","childrenContent","minHeight","items","item","index","renderInnerItem","childrenList","child","gutter","renderEmptyHandler","emptyText","renderEmptyFunc","paginationPosition","Consumer"],"sourceRoot":""}
1
+ {"version":3,"file":"411.lite.js?ver=49967c6ebf6317fa7624","mappings":"qIAsFO,SAASA,IAGd,MAAO,CACLC,MAHUC,SAASC,gBAAgBC,YAInCC,OAHWC,OAAOC,aAAeL,SAASC,gBAAgBK,cAYvD,SAASC,EAAUC,GACxB,IAAIC,EAAMD,EAAKE,wBACXC,EAAUX,SAASC,gBAEvB,MAAO,CACLW,KAAMH,EAAIG,MAAQR,OAAOS,aAAeF,EAAQG,aAAeH,EAAQI,YAAcf,SAASgB,KAAKD,YAAc,GACjHE,IAAKR,EAAIQ,KAAOb,OAAOc,aAAeP,EAAQQ,YAAcR,EAA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builds/devowlio/devowl-wp/node_modules/rc-image/es/getFixScaleEleTransPosition.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/rc-image/es/PreviewGroup.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/rc-image/es/Preview.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/rc-image/es/hooks/useFrameSetState.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/rc-image/es/Image.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/rc-image/es/index.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/@ant-design/icons-svg/es/asn/RotateLeftOutlined.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/@ant-design/icons/es/icons/RotateLeftOutlined.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/@ant-design/icons-svg/es/asn/RotateRightOutlined.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/@ant-design/icons/es/icons/RotateRightOutlined.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/@ant-design/icons-svg/es/asn/ZoomInOutlined.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/@ant-design/icons/es/icons/ZoomInOutlined.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/@ant-design/icons-svg/es/asn/ZoomOutOutlined.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/@ant-design/icons/es/icons/ZoomOutOutlined.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/antd/es/image/PreviewGroup.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/antd/es/image/index.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/antd/es/list/Item.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/antd/es/list/index.js","webpack:///../../../../../tmp/builds/devowlio/devowl-wp/node_modules/antd/es/locale/en_US.js"],"sourcesContent":["/* eslint-disable no-nested-ternary */\nvar PIXEL_PATTERN = /margin|padding|width|height|max|min|offset/;\nvar removePixel = {\n left: true,\n top: true\n};\nvar floatMap = {\n cssFloat: 1,\n styleFloat: 1,\n float: 1\n};\n\nfunction getComputedStyle(node) {\n return node.nodeType === 1 ? node.ownerDocument.defaultView.getComputedStyle(node, null) : {};\n}\n\nfunction getStyleValue(node, type, value) {\n type = type.toLowerCase();\n\n if (value === 'auto') {\n if (type === 'height') {\n return node.offsetHeight;\n }\n\n if (type === 'width') {\n return node.offsetWidth;\n }\n }\n\n if (!(type in removePixel)) {\n removePixel[type] = PIXEL_PATTERN.test(type);\n }\n\n return removePixel[type] ? parseFloat(value) || 0 : value;\n}\n\nexport function get(node, name) {\n var length = arguments.length;\n var style = getComputedStyle(node);\n name = floatMap[name] ? 'cssFloat' in node.style ? 'cssFloat' : 'styleFloat' : name;\n return length === 1 ? style : getStyleValue(node, name, style[name] || node.style[name]);\n}\nexport function set(node, name, value) {\n var length = arguments.length;\n name = floatMap[name] ? 'cssFloat' in node.style ? 'cssFloat' : 'styleFloat' : name;\n\n if (length === 3) {\n if (typeof value === 'number' && PIXEL_PATTERN.test(name)) {\n value = \"\".concat(value, \"px\");\n }\n\n node.style[name] = value; // Number\n\n return value;\n }\n\n for (var x in name) {\n if (name.hasOwnProperty(x)) {\n set(node, x, name[x]);\n }\n }\n\n return getComputedStyle(node);\n}\nexport function getOuterWidth(el) {\n if (el === document.body) {\n return document.documentElement.clientWidth;\n }\n\n return el.offsetWidth;\n}\nexport function getOuterHeight(el) {\n if (el === document.body) {\n return window.innerHeight || document.documentElement.clientHeight;\n }\n\n return el.offsetHeight;\n}\nexport function getDocSize() {\n var width = Math.max(document.documentElement.scrollWidth, document.body.scrollWidth);\n var height = Math.max(document.documentElement.scrollHeight, document.body.scrollHeight);\n return {\n width: width,\n height: height\n };\n}\nexport function getClientSize() {\n var width = document.documentElement.clientWidth;\n var height = window.innerHeight || document.documentElement.clientHeight;\n return {\n width: width,\n height: height\n };\n}\nexport function getScroll() {\n return {\n scrollLeft: Math.max(document.documentElement.scrollLeft, document.body.scrollLeft),\n scrollTop: Math.max(document.documentElement.scrollTop, document.body.scrollTop)\n };\n}\nexport function getOffset(node) {\n var box = node.getBoundingClientRect();\n var docElem = document.documentElement; // < ie8 不支持 win.pageXOffset, 则使用 docElem.scrollLeft\n\n return {\n left: box.left + (window.pageXOffset || docElem.scrollLeft) - (docElem.clientLeft || document.body.clientLeft || 0),\n top: box.top + (window.pageYOffset || docElem.scrollTop) - (docElem.clientTop || document.body.clientTop || 0)\n };\n}","import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport { getClientSize } from \"rc-util/es/Dom/css\";\n\nfunction fixPoint(key, start, width, clientWidth) {\n var startAddWidth = start + width;\n var offsetStart = (width - clientWidth) / 2;\n\n if (width > clientWidth) {\n if (start > 0) {\n return _defineProperty({}, key, offsetStart);\n }\n\n if (start < 0 && startAddWidth < clientWidth) {\n return _defineProperty({}, key, -offsetStart);\n }\n } else if (start < 0 || startAddWidth > clientWidth) {\n return _defineProperty({}, key, start < 0 ? offsetStart : -offsetStart);\n }\n\n return {};\n}\n/**\n * Fix positon x,y point when\n *\n * Ele width && height < client\n * - Back origin\n *\n * - Ele width | height > clientWidth | clientHeight\n * - left | top > 0 -> Back 0\n * - left | top + width | height < clientWidth | clientHeight -> Back left | top + width | height === clientWidth | clientHeight\n *\n * Regardless of other\n */\n\n\nexport default function getFixScaleEleTransPosition(width, height, left, top) {\n var _getClientSize = getClientSize(),\n clientWidth = _getClientSize.width,\n clientHeight = _getClientSize.height;\n\n var fixPos = null;\n\n if (width <= clientWidth && height <= clientHeight) {\n fixPos = {\n x: 0,\n y: 0\n };\n } else if (width > clientWidth || height > clientHeight) {\n fixPos = _objectSpread(_objectSpread({}, fixPoint('x', left, width, clientWidth)), fixPoint('y', top, height, clientHeight));\n }\n\n return fixPos;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport _typeof from \"@babel/runtime/helpers/esm/typeof\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport { useState } from 'react';\nimport useMergedState from \"rc-util/es/hooks/useMergedState\";\nimport Preview from './Preview';\n/* istanbul ignore next */\n\nexport var context = /*#__PURE__*/React.createContext({\n previewUrls: new Map(),\n setPreviewUrls: function setPreviewUrls() {\n return null;\n },\n current: null,\n setCurrent: function setCurrent() {\n return null;\n },\n setShowPreview: function setShowPreview() {\n return null;\n },\n setMousePosition: function setMousePosition() {\n return null;\n },\n registerImage: function registerImage() {\n return function () {\n return null;\n };\n }\n});\nvar Provider = context.Provider;\n\nvar Group = function Group(_ref) {\n var _ref$previewPrefixCls = _ref.previewPrefixCls,\n previewPrefixCls = _ref$previewPrefixCls === void 0 ? 'rc-image-preview' : _ref$previewPrefixCls,\n children = _ref.children,\n _ref$icons = _ref.icons,\n icons = _ref$icons === void 0 ? {} : _ref$icons,\n preview = _ref.preview;\n\n var _ref2 = _typeof(preview) === 'object' ? preview : {},\n _ref2$visible = _ref2.visible,\n previewVisible = _ref2$visible === void 0 ? undefined : _ref2$visible,\n _ref2$onVisibleChange = _ref2.onVisibleChange,\n onPreviewVisibleChange = _ref2$onVisibleChange === void 0 ? undefined : _ref2$onVisibleChange,\n _ref2$getContainer = _ref2.getContainer,\n getContainer = _ref2$getContainer === void 0 ? undefined : _ref2$getContainer,\n _ref2$current = _ref2.current,\n currentIndex = _ref2$current === void 0 ? 0 : _ref2$current,\n dialogProps = _objectWithoutProperties(_ref2, [\"visible\", \"onVisibleChange\", \"getContainer\", \"current\"]);\n\n var _useState = useState(new Map()),\n _useState2 = _slicedToArray(_useState, 2),\n previewUrls = _useState2[0],\n setPreviewUrls = _useState2[1];\n\n var _useState3 = useState(),\n _useState4 = _slicedToArray(_useState3, 2),\n current = _useState4[0],\n setCurrent = _useState4[1];\n\n var _useMergedState = useMergedState(!!previewVisible, {\n value: previewVisible,\n onChange: onPreviewVisibleChange\n }),\n _useMergedState2 = _slicedToArray(_useMergedState, 2),\n isShowPreview = _useMergedState2[0],\n setShowPreview = _useMergedState2[1];\n\n var _useState5 = useState(null),\n _useState6 = _slicedToArray(_useState5, 2),\n mousePosition = _useState6[0],\n setMousePosition = _useState6[1];\n\n var isControlled = previewVisible !== undefined;\n var previewUrlsKeys = Array.from(previewUrls.keys());\n var currentControlledKey = previewUrlsKeys[currentIndex];\n var canPreviewUrls = new Map(Array.from(previewUrls).filter(function (_ref3) {\n var _ref4 = _slicedToArray(_ref3, 2),\n canPreview = _ref4[1].canPreview;\n\n return !!canPreview;\n }).map(function (_ref5) {\n var _ref6 = _slicedToArray(_ref5, 2),\n id = _ref6[0],\n url = _ref6[1].url;\n\n return [id, url];\n }));\n\n var registerImage = function registerImage(id, url) {\n var canPreview = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n\n var unRegister = function unRegister() {\n setPreviewUrls(function (oldPreviewUrls) {\n var clonePreviewUrls = new Map(oldPreviewUrls);\n var deleteResult = clonePreviewUrls.delete(id);\n return deleteResult ? clonePreviewUrls : oldPreviewUrls;\n });\n };\n\n setPreviewUrls(function (oldPreviewUrls) {\n return new Map(oldPreviewUrls).set(id, {\n url: url,\n canPreview: canPreview\n });\n });\n return unRegister;\n };\n\n var onPreviewClose = function onPreviewClose(e) {\n e.stopPropagation();\n setShowPreview(false);\n setMousePosition(null);\n };\n\n React.useEffect(function () {\n setCurrent(currentControlledKey);\n }, [currentControlledKey]);\n React.useEffect(function () {\n if (!isShowPreview && isControlled) {\n setCurrent(currentControlledKey);\n }\n }, [currentControlledKey, isControlled, isShowPreview]);\n return /*#__PURE__*/React.createElement(Provider, {\n value: {\n isPreviewGroup: true,\n previewUrls: canPreviewUrls,\n setPreviewUrls: setPreviewUrls,\n current: current,\n setCurrent: setCurrent,\n setShowPreview: setShowPreview,\n setMousePosition: setMousePosition,\n registerImage: registerImage\n }\n }, children, /*#__PURE__*/React.createElement(Preview, _extends({\n \"aria-hidden\": !isShowPreview,\n visible: isShowPreview,\n prefixCls: previewPrefixCls,\n onClose: onPreviewClose,\n mousePosition: mousePosition,\n src: canPreviewUrls.get(current),\n icons: icons,\n getContainer: getContainer\n }, dialogProps)));\n};\n\nexport default Group;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport Dialog from 'rc-dialog';\nimport classnames from 'classnames';\nimport addEventListener from \"rc-util/es/Dom/addEventListener\";\nimport { warning } from \"rc-util/es/warning\";\nimport useFrameSetState from './hooks/useFrameSetState';\nimport getFixScaleEleTransPosition from './getFixScaleEleTransPosition';\nimport { context } from './PreviewGroup';\nvar useState = React.useState,\n useEffect = React.useEffect;\nvar initialPosition = {\n x: 0,\n y: 0\n};\n\nvar Preview = function Preview(props) {\n var prefixCls = props.prefixCls,\n src = props.src,\n alt = props.alt,\n onClose = props.onClose,\n afterClose = props.afterClose,\n visible = props.visible,\n _props$icons = props.icons,\n icons = _props$icons === void 0 ? {} : _props$icons,\n restProps = _objectWithoutProperties(props, [\"prefixCls\", \"src\", \"alt\", \"onClose\", \"afterClose\", \"visible\", \"icons\"]);\n\n var rotateLeft = icons.rotateLeft,\n rotateRight = icons.rotateRight,\n zoomIn = icons.zoomIn,\n zoomOut = icons.zoomOut,\n close = icons.close,\n left = icons.left,\n right = icons.right;\n\n var _useState = useState(1),\n _useState2 = _slicedToArray(_useState, 2),\n scale = _useState2[0],\n setScale = _useState2[1];\n\n var _useState3 = useState(0),\n _useState4 = _slicedToArray(_useState3, 2),\n rotate = _useState4[0],\n setRotate = _useState4[1];\n\n var _useFrameSetState = useFrameSetState(initialPosition),\n _useFrameSetState2 = _slicedToArray(_useFrameSetState, 2),\n position = _useFrameSetState2[0],\n setPosition = _useFrameSetState2[1];\n\n var imgRef = React.useRef();\n var originPositionRef = React.useRef({\n originX: 0,\n originY: 0,\n deltaX: 0,\n deltaY: 0\n });\n\n var _React$useState = React.useState(false),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n isMoving = _React$useState2[0],\n setMoving = _React$useState2[1];\n\n var _React$useContext = React.useContext(context),\n previewUrls = _React$useContext.previewUrls,\n current = _React$useContext.current,\n isPreviewGroup = _React$useContext.isPreviewGroup,\n setCurrent = _React$useContext.setCurrent;\n\n var previewGroupCount = previewUrls.size;\n var previewUrlsKeys = Array.from(previewUrls.keys());\n var currentPreviewIndex = previewUrlsKeys.indexOf(current);\n var combinationSrc = isPreviewGroup ? previewUrls.get(current) : src;\n var showLeftOrRightSwitches = isPreviewGroup && previewGroupCount > 1;\n\n var _React$useState3 = React.useState({\n wheelDirection: 0\n }),\n _React$useState4 = _slicedToArray(_React$useState3, 2),\n lastWheelZoomDirection = _React$useState4[0],\n setLastWheelZoomDirection = _React$useState4[1];\n\n var onAfterClose = function onAfterClose() {\n setScale(1);\n setRotate(0);\n setPosition(initialPosition);\n };\n\n var onZoomIn = function onZoomIn() {\n setScale(function (value) {\n return value + 1;\n });\n setPosition(initialPosition);\n };\n\n var onZoomOut = function onZoomOut() {\n if (scale > 1) {\n setScale(function (value) {\n return value - 1;\n });\n }\n\n setPosition(initialPosition);\n };\n\n var onRotateRight = function onRotateRight() {\n setRotate(function (value) {\n return value + 90;\n });\n };\n\n var onRotateLeft = function onRotateLeft() {\n setRotate(function (value) {\n return value - 90;\n });\n };\n\n var onSwitchLeft = function onSwitchLeft(event) {\n event.preventDefault(); // Without this mask close will abnormal\n\n event.stopPropagation();\n\n if (currentPreviewIndex > 0) {\n setCurrent(previewUrlsKeys[currentPreviewIndex - 1]);\n }\n };\n\n var onSwitchRight = function onSwitchRight(event) {\n event.preventDefault(); // Without this mask close will abnormal\n\n event.stopPropagation();\n\n if (currentPreviewIndex < previewGroupCount - 1) {\n setCurrent(previewUrlsKeys[currentPreviewIndex + 1]);\n }\n };\n\n var wrapClassName = classnames(_defineProperty({}, \"\".concat(prefixCls, \"-moving\"), isMoving));\n var toolClassName = \"\".concat(prefixCls, \"-operations-operation\");\n var iconClassName = \"\".concat(prefixCls, \"-operations-icon\");\n var tools = [{\n icon: close,\n onClick: onClose,\n type: 'close'\n }, {\n icon: zoomIn,\n onClick: onZoomIn,\n type: 'zoomIn'\n }, {\n icon: zoomOut,\n onClick: onZoomOut,\n type: 'zoomOut',\n disabled: scale === 1\n }, {\n icon: rotateRight,\n onClick: onRotateRight,\n type: 'rotateRight'\n }, {\n icon: rotateLeft,\n onClick: onRotateLeft,\n type: 'rotateLeft'\n }];\n\n var onMouseUp = function onMouseUp() {\n if (visible && isMoving) {\n var width = imgRef.current.offsetWidth * scale;\n var height = imgRef.current.offsetHeight * scale; // eslint-disable-next-line @typescript-eslint/no-shadow\n\n var _imgRef$current$getBo = imgRef.current.getBoundingClientRect(),\n _left = _imgRef$current$getBo.left,\n top = _imgRef$current$getBo.top;\n\n var isRotate = rotate % 180 !== 0;\n setMoving(false);\n var fixState = getFixScaleEleTransPosition(isRotate ? height : width, isRotate ? width : height, _left, top);\n\n if (fixState) {\n setPosition(_objectSpread({}, fixState));\n }\n }\n };\n\n var onMouseDown = function onMouseDown(event) {\n // Only allow main button\n if (event.button !== 0) return;\n event.preventDefault(); // Without this mask close will abnormal\n\n event.stopPropagation();\n originPositionRef.current.deltaX = event.pageX - position.x;\n originPositionRef.current.deltaY = event.pageY - position.y;\n originPositionRef.current.originX = position.x;\n originPositionRef.current.originY = position.y;\n setMoving(true);\n };\n\n var onMouseMove = function onMouseMove(event) {\n if (visible && isMoving) {\n setPosition({\n x: event.pageX - originPositionRef.current.deltaX,\n y: event.pageY - originPositionRef.current.deltaY\n });\n }\n };\n\n var onWheelMove = function onWheelMove(event) {\n if (!visible) return;\n event.preventDefault();\n var wheelDirection = event.deltaY;\n setLastWheelZoomDirection({\n wheelDirection: wheelDirection\n });\n };\n\n useEffect(function () {\n var wheelDirection = lastWheelZoomDirection.wheelDirection;\n\n if (wheelDirection > 0) {\n onZoomOut();\n } else if (wheelDirection < 0) {\n onZoomIn();\n }\n }, [lastWheelZoomDirection]);\n useEffect(function () {\n var onTopMouseUpListener;\n var onTopMouseMoveListener;\n var onMouseUpListener = addEventListener(window, 'mouseup', onMouseUp, false);\n var onMouseMoveListener = addEventListener(window, 'mousemove', onMouseMove, false);\n var onScrollWheelListener = addEventListener(window, 'wheel', onWheelMove, {\n passive: false\n });\n\n try {\n // Resolve if in iframe lost event\n\n /* istanbul ignore next */\n if (window.top !== window.self) {\n onTopMouseUpListener = addEventListener(window.top, 'mouseup', onMouseUp, false);\n onTopMouseMoveListener = addEventListener(window.top, 'mousemove', onMouseMove, false);\n }\n } catch (error) {\n /* istanbul ignore next */\n warning(false, \"[rc-image] \".concat(error));\n }\n\n return function () {\n onMouseUpListener.remove();\n onMouseMoveListener.remove();\n onScrollWheelListener.remove();\n /* istanbul ignore next */\n\n if (onTopMouseUpListener) onTopMouseUpListener.remove();\n /* istanbul ignore next */\n\n if (onTopMouseMoveListener) onTopMouseMoveListener.remove();\n };\n }, [visible, isMoving]);\n return /*#__PURE__*/React.createElement(Dialog, _extends({\n transitionName: \"zoom\",\n maskTransitionName: \"fade\",\n closable: false,\n keyboard: true,\n prefixCls: prefixCls,\n onClose: onClose,\n afterClose: onAfterClose,\n visible: visible,\n wrapClassName: wrapClassName\n }, restProps), /*#__PURE__*/React.createElement(\"ul\", {\n className: \"\".concat(prefixCls, \"-operations\")\n }, tools.map(function (_ref) {\n var icon = _ref.icon,\n onClick = _ref.onClick,\n type = _ref.type,\n disabled = _ref.disabled;\n return /*#__PURE__*/React.createElement(\"li\", {\n className: classnames(toolClassName, _defineProperty({}, \"\".concat(prefixCls, \"-operations-operation-disabled\"), !!disabled)),\n onClick: onClick,\n key: type\n }, /*#__PURE__*/React.isValidElement(icon) ? /*#__PURE__*/React.cloneElement(icon, {\n className: iconClassName\n }) : icon);\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-img-wrapper\"),\n style: {\n transform: \"translate3d(\".concat(position.x, \"px, \").concat(position.y, \"px, 0)\")\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n onMouseDown: onMouseDown,\n ref: imgRef,\n className: \"\".concat(prefixCls, \"-img\"),\n src: combinationSrc,\n alt: alt,\n style: {\n transform: \"scale3d(\".concat(scale, \", \").concat(scale, \", 1) rotate(\").concat(rotate, \"deg)\")\n }\n })), showLeftOrRightSwitches && /*#__PURE__*/React.createElement(\"div\", {\n className: classnames(\"\".concat(prefixCls, \"-switch-left\"), _defineProperty({}, \"\".concat(prefixCls, \"-switch-left-disabled\"), currentPreviewIndex === 0)),\n onClick: onSwitchLeft\n }, left), showLeftOrRightSwitches && /*#__PURE__*/React.createElement(\"div\", {\n className: classnames(\"\".concat(prefixCls, \"-switch-right\"), _defineProperty({}, \"\".concat(prefixCls, \"-switch-right-disabled\"), currentPreviewIndex === previewGroupCount - 1)),\n onClick: onSwitchRight\n }, right));\n};\n\nexport default Preview;","import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport * as React from 'react';\nimport raf from \"rc-util/es/raf\";\nexport default function useFrameSetState(initial) {\n var frame = React.useRef(null);\n\n var _React$useState = React.useState(initial),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n state = _React$useState2[0],\n setState = _React$useState2[1];\n\n var queue = React.useRef([]);\n\n var setFrameState = function setFrameState(newState) {\n if (frame.current === null) {\n queue.current = [];\n frame.current = raf(function () {\n setState(function (preState) {\n var memoState = preState;\n queue.current.forEach(function (queueState) {\n memoState = _objectSpread(_objectSpread({}, memoState), queueState);\n });\n frame.current = null;\n return memoState;\n });\n });\n }\n\n queue.current.push(newState);\n };\n\n React.useEffect(function () {\n return function () {\n return frame.current && raf.cancel(frame.current);\n };\n }, []);\n return [state, setFrameState];\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport _typeof from \"@babel/runtime/helpers/esm/typeof\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport { useState } from 'react';\nimport cn from 'classnames';\nimport { getOffset } from \"rc-util/es/Dom/css\";\nimport useMergedState from \"rc-util/es/hooks/useMergedState\";\nimport Preview from './Preview';\nimport PreviewGroup, { context } from './PreviewGroup';\nvar uuid = 0;\n\nvar ImageInternal = function ImageInternal(_ref) {\n var imgSrc = _ref.src,\n alt = _ref.alt,\n onInitialPreviewClose = _ref.onPreviewClose,\n _ref$prefixCls = _ref.prefixCls,\n prefixCls = _ref$prefixCls === void 0 ? 'rc-image' : _ref$prefixCls,\n _ref$previewPrefixCls = _ref.previewPrefixCls,\n previewPrefixCls = _ref$previewPrefixCls === void 0 ? \"\".concat(prefixCls, \"-preview\") : _ref$previewPrefixCls,\n placeholder = _ref.placeholder,\n fallback = _ref.fallback,\n width = _ref.width,\n height = _ref.height,\n style = _ref.style,\n _ref$preview = _ref.preview,\n preview = _ref$preview === void 0 ? true : _ref$preview,\n className = _ref.className,\n onClick = _ref.onClick,\n onImageError = _ref.onError,\n wrapperClassName = _ref.wrapperClassName,\n wrapperStyle = _ref.wrapperStyle,\n crossOrigin = _ref.crossOrigin,\n decoding = _ref.decoding,\n loading = _ref.loading,\n referrerPolicy = _ref.referrerPolicy,\n sizes = _ref.sizes,\n srcSet = _ref.srcSet,\n useMap = _ref.useMap,\n otherProps = _objectWithoutProperties(_ref, [\"src\", \"alt\", \"onPreviewClose\", \"prefixCls\", \"previewPrefixCls\", \"placeholder\", \"fallback\", \"width\", \"height\", \"style\", \"preview\", \"className\", \"onClick\", \"onError\", \"wrapperClassName\", \"wrapperStyle\", \"crossOrigin\", \"decoding\", \"loading\", \"referrerPolicy\", \"sizes\", \"srcSet\", \"useMap\"]);\n\n var isCustomPlaceholder = placeholder && placeholder !== true;\n\n var _ref2 = _typeof(preview) === 'object' ? preview : {},\n previewSrc = _ref2.src,\n _ref2$visible = _ref2.visible,\n previewVisible = _ref2$visible === void 0 ? undefined : _ref2$visible,\n _ref2$onVisibleChange = _ref2.onVisibleChange,\n onPreviewVisibleChange = _ref2$onVisibleChange === void 0 ? onInitialPreviewClose : _ref2$onVisibleChange,\n _ref2$getContainer = _ref2.getContainer,\n getPreviewContainer = _ref2$getContainer === void 0 ? undefined : _ref2$getContainer,\n previewMask = _ref2.mask,\n maskClassName = _ref2.maskClassName,\n icons = _ref2.icons,\n dialogProps = _objectWithoutProperties(_ref2, [\"src\", \"visible\", \"onVisibleChange\", \"getContainer\", \"mask\", \"maskClassName\", \"icons\"]);\n\n var src = previewSrc !== null && previewSrc !== void 0 ? previewSrc : imgSrc;\n var isControlled = previewVisible !== undefined;\n\n var _useMergedState = useMergedState(!!previewVisible, {\n value: previewVisible,\n onChange: onPreviewVisibleChange\n }),\n _useMergedState2 = _slicedToArray(_useMergedState, 2),\n isShowPreview = _useMergedState2[0],\n setShowPreview = _useMergedState2[1];\n\n var _useState = useState(isCustomPlaceholder ? 'loading' : 'normal'),\n _useState2 = _slicedToArray(_useState, 2),\n status = _useState2[0],\n setStatus = _useState2[1];\n\n var _useState3 = useState(null),\n _useState4 = _slicedToArray(_useState3, 2),\n mousePosition = _useState4[0],\n setMousePosition = _useState4[1];\n\n var isError = status === 'error';\n\n var _React$useContext = React.useContext(context),\n isPreviewGroup = _React$useContext.isPreviewGroup,\n setCurrent = _React$useContext.setCurrent,\n setGroupShowPreview = _React$useContext.setShowPreview,\n setGroupMousePosition = _React$useContext.setMousePosition,\n registerImage = _React$useContext.registerImage;\n\n var _React$useState = React.useState(function () {\n uuid += 1;\n return uuid;\n }),\n _React$useState2 = _slicedToArray(_React$useState, 1),\n currentId = _React$useState2[0];\n\n var canPreview = preview && !isError;\n var isLoaded = React.useRef(false);\n\n var onLoad = function onLoad() {\n setStatus('normal');\n };\n\n var onError = function onError(e) {\n if (onImageError) {\n onImageError(e);\n }\n\n setStatus('error');\n };\n\n var onPreview = function onPreview(e) {\n if (!isControlled) {\n var _getOffset = getOffset(e.target),\n left = _getOffset.left,\n top = _getOffset.top;\n\n if (isPreviewGroup) {\n setCurrent(currentId);\n setGroupMousePosition({\n x: left,\n y: top\n });\n } else {\n setMousePosition({\n x: left,\n y: top\n });\n }\n }\n\n if (isPreviewGroup) {\n setGroupShowPreview(true);\n } else {\n setShowPreview(true);\n }\n\n if (onClick) onClick(e);\n };\n\n var onPreviewClose = function onPreviewClose(e) {\n e.stopPropagation();\n setShowPreview(false);\n\n if (!isControlled) {\n setMousePosition(null);\n }\n };\n\n var getImgRef = function getImgRef(img) {\n isLoaded.current = false;\n if (status !== 'loading') return;\n\n if ((img === null || img === void 0 ? void 0 : img.complete) && (img.naturalWidth || img.naturalHeight)) {\n isLoaded.current = true;\n onLoad();\n }\n }; // Keep order start\n // Resolve https://github.com/ant-design/ant-design/issues/28881\n // Only need unRegister when component unMount\n\n\n React.useEffect(function () {\n var unRegister = registerImage(currentId, src);\n return unRegister;\n }, []);\n React.useEffect(function () {\n registerImage(currentId, src, canPreview);\n }, [src, canPreview]); // Keep order end\n\n React.useEffect(function () {\n if (isError) {\n setStatus('normal');\n }\n\n if (isCustomPlaceholder && !isLoaded.current) {\n setStatus('loading');\n }\n }, [imgSrc]);\n var wrapperClass = cn(prefixCls, wrapperClassName, _defineProperty({}, \"\".concat(prefixCls, \"-error\"), isError));\n var mergedSrc = isError && fallback ? fallback : src;\n var imgCommonProps = {\n crossOrigin: crossOrigin,\n decoding: decoding,\n loading: loading,\n referrerPolicy: referrerPolicy,\n sizes: sizes,\n srcSet: srcSet,\n useMap: useMap,\n alt: alt,\n className: cn(\"\".concat(prefixCls, \"-img\"), _defineProperty({}, \"\".concat(prefixCls, \"-img-placeholder\"), placeholder === true), className),\n style: _objectSpread({\n height: height\n }, style)\n };\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"div\", _extends({}, otherProps, {\n className: wrapperClass,\n onClick: preview && !isError ? onPreview : onClick,\n style: _objectSpread({\n width: width,\n height: height\n }, wrapperStyle)\n }), /*#__PURE__*/React.createElement(\"img\", _extends({}, imgCommonProps, {\n ref: getImgRef\n }, isError && fallback ? {\n src: fallback\n } : {\n onLoad: onLoad,\n onError: onError,\n src: imgSrc\n })), status === 'loading' && /*#__PURE__*/React.createElement(\"div\", {\n \"aria-hidden\": \"true\",\n className: \"\".concat(prefixCls, \"-placeholder\")\n }, placeholder), previewMask && canPreview && /*#__PURE__*/React.createElement(\"div\", {\n className: cn(\"\".concat(prefixCls, \"-mask\"), maskClassName)\n }, previewMask)), !isPreviewGroup && canPreview && /*#__PURE__*/React.createElement(Preview, _extends({\n \"aria-hidden\": !isShowPreview,\n visible: isShowPreview,\n prefixCls: previewPrefixCls,\n onClose: onPreviewClose,\n mousePosition: mousePosition,\n src: mergedSrc,\n alt: alt,\n getContainer: getPreviewContainer,\n icons: icons\n }, dialogProps)));\n};\n\nImageInternal.PreviewGroup = PreviewGroup;\nImageInternal.displayName = 'Image';\nexport default ImageInternal;","import Image from './Image';\nexport * from './Image';\nexport default Image;","// This icon file is generated automatically.\nvar RotateLeftOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"defs\", \"attrs\": {}, \"children\": [{ \"tag\": \"style\", \"attrs\": {} }] }, { \"tag\": \"path\", \"attrs\": { \"d\": \"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z\" } }, { \"tag\": \"path\", \"attrs\": { \"d\": \"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z\" } }] }, \"name\": \"rotate-left\", \"theme\": \"outlined\" };\nexport default RotateLeftOutlined;\n","// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\nimport * as React from 'react';\nimport RotateLeftOutlinedSvg from \"@ant-design/icons-svg/es/asn/RotateLeftOutlined\";\nimport AntdIcon from '../components/AntdIcon';\n\nvar RotateLeftOutlined = function RotateLeftOutlined(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, Object.assign({}, props, {\n ref: ref,\n icon: RotateLeftOutlinedSvg\n }));\n};\n\nRotateLeftOutlined.displayName = 'RotateLeftOutlined';\nexport default /*#__PURE__*/React.forwardRef(RotateLeftOutlined);","// This icon file is generated automatically.\nvar RotateRightOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"defs\", \"attrs\": {}, \"children\": [{ \"tag\": \"style\", \"attrs\": {} }] }, { \"tag\": \"path\", \"attrs\": { \"d\": \"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z\" } }, { \"tag\": \"path\", \"attrs\": { \"d\": \"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z\" } }] }, \"name\": \"rotate-right\", \"theme\": \"outlined\" };\nexport default RotateRightOutlined;\n","// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\nimport * as React from 'react';\nimport RotateRightOutlinedSvg from \"@ant-design/icons-svg/es/asn/RotateRightOutlined\";\nimport AntdIcon from '../components/AntdIcon';\n\nvar RotateRightOutlined = function RotateRightOutlined(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, Object.assign({}, props, {\n ref: ref,\n icon: RotateRightOutlinedSvg\n }));\n};\n\nRotateRightOutlined.displayName = 'RotateRightOutlined';\nexport default /*#__PURE__*/React.forwardRef(RotateRightOutlined);","// This icon file is generated automatically.\nvar ZoomInOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z\" } }] }, \"name\": \"zoom-in\", \"theme\": \"outlined\" };\nexport default ZoomInOutlined;\n","// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\nimport * as React from 'react';\nimport ZoomInOutlinedSvg from \"@ant-design/icons-svg/es/asn/ZoomInOutlined\";\nimport AntdIcon from '../components/AntdIcon';\n\nvar ZoomInOutlined = function ZoomInOutlined(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, Object.assign({}, props, {\n ref: ref,\n icon: ZoomInOutlinedSvg\n }));\n};\n\nZoomInOutlined.displayName = 'ZoomInOutlined';\nexport default /*#__PURE__*/React.forwardRef(ZoomInOutlined);","// This icon file is generated automatically.\nvar ZoomOutOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z\" } }] }, \"name\": \"zoom-out\", \"theme\": \"outlined\" };\nexport default ZoomOutOutlined;\n","// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\nimport * as React from 'react';\nimport ZoomOutOutlinedSvg from \"@ant-design/icons-svg/es/asn/ZoomOutOutlined\";\nimport AntdIcon from '../components/AntdIcon';\n\nvar ZoomOutOutlined = function ZoomOutOutlined(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, Object.assign({}, props, {\n ref: ref,\n icon: ZoomOutOutlinedSvg\n }));\n};\n\nZoomOutOutlined.displayName = 'ZoomOutOutlined';\nexport default /*#__PURE__*/React.forwardRef(ZoomOutOutlined);","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _typeof from \"@babel/runtime/helpers/esm/typeof\";\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\n\nimport * as React from 'react';\nimport RcImage from 'rc-image';\nimport RotateLeftOutlined from \"@ant-design/icons/es/icons/RotateLeftOutlined\";\nimport RotateRightOutlined from \"@ant-design/icons/es/icons/RotateRightOutlined\";\nimport ZoomInOutlined from \"@ant-design/icons/es/icons/ZoomInOutlined\";\nimport ZoomOutOutlined from \"@ant-design/icons/es/icons/ZoomOutOutlined\";\nimport CloseOutlined from \"@ant-design/icons/es/icons/CloseOutlined\";\nimport LeftOutlined from \"@ant-design/icons/es/icons/LeftOutlined\";\nimport RightOutlined from \"@ant-design/icons/es/icons/RightOutlined\";\nimport { ConfigContext } from '../config-provider';\nimport { getTransitionName } from '../_util/motion';\nexport var icons = {\n rotateLeft: /*#__PURE__*/React.createElement(RotateLeftOutlined, null),\n rotateRight: /*#__PURE__*/React.createElement(RotateRightOutlined, null),\n zoomIn: /*#__PURE__*/React.createElement(ZoomInOutlined, null),\n zoomOut: /*#__PURE__*/React.createElement(ZoomOutOutlined, null),\n close: /*#__PURE__*/React.createElement(CloseOutlined, null),\n left: /*#__PURE__*/React.createElement(LeftOutlined, null),\n right: /*#__PURE__*/React.createElement(RightOutlined, null)\n};\n\nvar InternalPreviewGroup = function InternalPreviewGroup(_a) {\n var customizePrefixCls = _a.previewPrefixCls,\n preview = _a.preview,\n props = __rest(_a, [\"previewPrefixCls\", \"preview\"]);\n\n var _React$useContext = React.useContext(ConfigContext),\n getPrefixCls = _React$useContext.getPrefixCls;\n\n var prefixCls = getPrefixCls('image-preview', customizePrefixCls);\n var rootPrefixCls = getPrefixCls();\n var mergedPreview = React.useMemo(function () {\n if (preview === false) {\n return preview;\n }\n\n var _preview = _typeof(preview) === 'object' ? preview : {};\n\n return _extends(_extends({}, _preview), {\n transitionName: getTransitionName(rootPrefixCls, 'zoom', _preview.transitionName),\n maskTransitionName: getTransitionName(rootPrefixCls, 'fade', _preview.maskTransitionName)\n });\n }, [preview]);\n return /*#__PURE__*/React.createElement(RcImage.PreviewGroup, _extends({\n preview: mergedPreview,\n previewPrefixCls: prefixCls,\n icons: icons\n }, props));\n};\n\nexport default InternalPreviewGroup;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _typeof from \"@babel/runtime/helpers/esm/typeof\";\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\n\nimport * as React from 'react';\nimport { useContext } from 'react';\nimport EyeOutlined from \"@ant-design/icons/es/icons/EyeOutlined\";\nimport RcImage from 'rc-image';\nimport defaultLocale from '../locale/en_US';\nimport PreviewGroup, { icons } from './PreviewGroup';\nimport { ConfigContext } from '../config-provider';\nimport { getTransitionName } from '../_util/motion';\n\nvar Image = function Image(_a) {\n var customizePrefixCls = _a.prefixCls,\n preview = _a.preview,\n otherProps = __rest(_a, [\"prefixCls\", \"preview\"]);\n\n var _useContext = useContext(ConfigContext),\n getPrefixCls = _useContext.getPrefixCls;\n\n var prefixCls = getPrefixCls('image', customizePrefixCls);\n var rootPrefixCls = getPrefixCls();\n\n var _useContext2 = useContext(ConfigContext),\n _useContext2$locale = _useContext2.locale,\n contextLocale = _useContext2$locale === void 0 ? defaultLocale : _useContext2$locale;\n\n var imageLocale = contextLocale.Image || defaultLocale.Image;\n var mergedPreview = React.useMemo(function () {\n if (preview === false) {\n return preview;\n }\n\n var _preview = _typeof(preview) === 'object' ? preview : {};\n\n return _extends(_extends({\n mask: /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-mask-info\")\n }, /*#__PURE__*/React.createElement(EyeOutlined, null), imageLocale === null || imageLocale === void 0 ? void 0 : imageLocale.preview),\n icons: icons\n }, _preview), {\n transitionName: getTransitionName(rootPrefixCls, 'zoom', _preview.transitionName),\n maskTransitionName: getTransitionName(rootPrefixCls, 'fade', _preview.maskTransitionName)\n });\n }, [preview, imageLocale]);\n return /*#__PURE__*/React.createElement(RcImage, _extends({\n prefixCls: prefixCls,\n preview: mergedPreview\n }, otherProps));\n};\n\nImage.PreviewGroup = PreviewGroup;\nexport default Image;","import _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { ListContext } from './index';\nimport { Col } from '../grid';\nimport { ConfigContext } from '../config-provider';\nimport { cloneElement } from '../_util/reactNode';\nexport var Meta = function Meta(_a) {\n var customizePrefixCls = _a.prefixCls,\n className = _a.className,\n avatar = _a.avatar,\n title = _a.title,\n description = _a.description,\n others = __rest(_a, [\"prefixCls\", \"className\", \"avatar\", \"title\", \"description\"]);\n\n var _React$useContext = React.useContext(ConfigContext),\n getPrefixCls = _React$useContext.getPrefixCls;\n\n var prefixCls = getPrefixCls('list', customizePrefixCls);\n var classString = classNames(\"\".concat(prefixCls, \"-item-meta\"), className);\n var content = /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-item-meta-content\")\n }, title && /*#__PURE__*/React.createElement(\"h4\", {\n className: \"\".concat(prefixCls, \"-item-meta-title\")\n }, title), description && /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-item-meta-description\")\n }, description));\n return /*#__PURE__*/React.createElement(\"div\", _extends({}, others, {\n className: classString\n }), avatar && /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-item-meta-avatar\")\n }, avatar), (title || description) && content);\n};\n\nvar Item = function Item(_a) {\n var customizePrefixCls = _a.prefixCls,\n children = _a.children,\n actions = _a.actions,\n extra = _a.extra,\n className = _a.className,\n colStyle = _a.colStyle,\n others = __rest(_a, [\"prefixCls\", \"children\", \"actions\", \"extra\", \"className\", \"colStyle\"]);\n\n var _React$useContext2 = React.useContext(ListContext),\n grid = _React$useContext2.grid,\n itemLayout = _React$useContext2.itemLayout;\n\n var _React$useContext3 = React.useContext(ConfigContext),\n getPrefixCls = _React$useContext3.getPrefixCls;\n\n var isItemContainsTextNodeAndNotSingular = function isItemContainsTextNodeAndNotSingular() {\n var result;\n React.Children.forEach(children, function (element) {\n if (typeof element === 'string') {\n result = true;\n }\n });\n return result && React.Children.count(children) > 1;\n };\n\n var isFlexMode = function isFlexMode() {\n if (itemLayout === 'vertical') {\n return !!extra;\n }\n\n return !isItemContainsTextNodeAndNotSingular();\n };\n\n var prefixCls = getPrefixCls('list', customizePrefixCls);\n var actionsContent = actions && actions.length > 0 && /*#__PURE__*/React.createElement(\"ul\", {\n className: \"\".concat(prefixCls, \"-item-action\"),\n key: \"actions\"\n }, actions.map(function (action, i) {\n return (\n /*#__PURE__*/\n // eslint-disable-next-line react/no-array-index-key\n React.createElement(\"li\", {\n key: \"\".concat(prefixCls, \"-item-action-\").concat(i)\n }, action, i !== actions.length - 1 && /*#__PURE__*/React.createElement(\"em\", {\n className: \"\".concat(prefixCls, \"-item-action-split\")\n }))\n );\n }));\n var Element = grid ? 'div' : 'li';\n var itemChildren = /*#__PURE__*/React.createElement(Element, _extends({}, others, {\n // `li` element `onCopy` prop args is not same as `div`\n className: classNames(\"\".concat(prefixCls, \"-item\"), _defineProperty({}, \"\".concat(prefixCls, \"-item-no-flex\"), !isFlexMode()), className)\n }), itemLayout === 'vertical' && extra ? [/*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-item-main\"),\n key: \"content\"\n }, children, actionsContent), /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-item-extra\"),\n key: \"extra\"\n }, extra)] : [children, actionsContent, cloneElement(extra, {\n key: 'extra'\n })]);\n return grid ? /*#__PURE__*/React.createElement(Col, {\n flex: 1,\n style: colStyle\n }, itemChildren) : itemChildren;\n};\n\nItem.Meta = Meta;\nexport default Item;","import _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport _typeof from \"@babel/runtime/helpers/esm/typeof\";\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport Spin from '../spin';\nimport useBreakpoint from '../grid/hooks/useBreakpoint';\nimport { responsiveArray } from '../_util/responsiveObserve';\nimport { ConfigContext } from '../config-provider';\nimport Pagination from '../pagination';\nimport { Row } from '../grid';\nimport Item from './Item';\nexport var ListContext = /*#__PURE__*/React.createContext({});\nexport var ListConsumer = ListContext.Consumer;\n\nfunction List(_a) {\n var _classNames;\n\n var _a$pagination = _a.pagination,\n pagination = _a$pagination === void 0 ? false : _a$pagination,\n customizePrefixCls = _a.prefixCls,\n _a$bordered = _a.bordered,\n bordered = _a$bordered === void 0 ? false : _a$bordered,\n _a$split = _a.split,\n split = _a$split === void 0 ? true : _a$split,\n className = _a.className,\n children = _a.children,\n itemLayout = _a.itemLayout,\n loadMore = _a.loadMore,\n grid = _a.grid,\n _a$dataSource = _a.dataSource,\n dataSource = _a$dataSource === void 0 ? [] : _a$dataSource,\n size = _a.size,\n header = _a.header,\n footer = _a.footer,\n _a$loading = _a.loading,\n loading = _a$loading === void 0 ? false : _a$loading,\n rowKey = _a.rowKey,\n renderItem = _a.renderItem,\n locale = _a.locale,\n rest = __rest(_a, [\"pagination\", \"prefixCls\", \"bordered\", \"split\", \"className\", \"children\", \"itemLayout\", \"loadMore\", \"grid\", \"dataSource\", \"size\", \"header\", \"footer\", \"loading\", \"rowKey\", \"renderItem\", \"locale\"]);\n\n var paginationObj = pagination && _typeof(pagination) === 'object' ? pagination : {};\n\n var _React$useState = React.useState(paginationObj.defaultCurrent || 1),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n paginationCurrent = _React$useState2[0],\n setPaginationCurrent = _React$useState2[1];\n\n var _React$useState3 = React.useState(paginationObj.defaultPageSize || 10),\n _React$useState4 = _slicedToArray(_React$useState3, 2),\n paginationSize = _React$useState4[0],\n setPaginationSize = _React$useState4[1];\n\n var _React$useContext = React.useContext(ConfigContext),\n getPrefixCls = _React$useContext.getPrefixCls,\n renderEmpty = _React$useContext.renderEmpty,\n direction = _React$useContext.direction;\n\n var defaultPaginationProps = {\n current: 1,\n total: 0\n };\n var keys = {};\n\n var triggerPaginationEvent = function triggerPaginationEvent(eventName) {\n return function (page, pageSize) {\n setPaginationCurrent(page);\n setPaginationSize(pageSize);\n\n if (pagination && pagination[eventName]) {\n pagination[eventName](page, pageSize);\n }\n };\n };\n\n var onPaginationChange = triggerPaginationEvent('onChange');\n var onPaginationShowSizeChange = triggerPaginationEvent('onShowSizeChange');\n\n var renderInnerItem = function renderInnerItem(item, index) {\n if (!renderItem) return null;\n var key;\n\n if (typeof rowKey === 'function') {\n key = rowKey(item);\n } else if (typeof rowKey === 'string') {\n key = item[rowKey];\n } else {\n key = item.key;\n }\n\n if (!key) {\n key = \"list-item-\".concat(index);\n }\n\n keys[index] = key;\n return renderItem(item, index);\n };\n\n var isSomethingAfterLastItem = function isSomethingAfterLastItem() {\n return !!(loadMore || pagination || footer);\n };\n\n var renderEmptyFunc = function renderEmptyFunc(prefixCls, renderEmptyHandler) {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-empty-text\")\n }, locale && locale.emptyText || renderEmptyHandler('List'));\n };\n\n var prefixCls = getPrefixCls('list', customizePrefixCls);\n var loadingProp = loading;\n\n if (typeof loadingProp === 'boolean') {\n loadingProp = {\n spinning: loadingProp\n };\n }\n\n var isLoading = loadingProp && loadingProp.spinning; // large => lg\n // small => sm\n\n var sizeCls = '';\n\n switch (size) {\n case 'large':\n sizeCls = 'lg';\n break;\n\n case 'small':\n sizeCls = 'sm';\n break;\n\n default:\n break;\n }\n\n var classString = classNames(prefixCls, (_classNames = {}, _defineProperty(_classNames, \"\".concat(prefixCls, \"-vertical\"), itemLayout === 'vertical'), _defineProperty(_classNames, \"\".concat(prefixCls, \"-\").concat(sizeCls), sizeCls), _defineProperty(_classNames, \"\".concat(prefixCls, \"-split\"), split), _defineProperty(_classNames, \"\".concat(prefixCls, \"-bordered\"), bordered), _defineProperty(_classNames, \"\".concat(prefixCls, \"-loading\"), isLoading), _defineProperty(_classNames, \"\".concat(prefixCls, \"-grid\"), !!grid), _defineProperty(_classNames, \"\".concat(prefixCls, \"-something-after-last-item\"), isSomethingAfterLastItem()), _defineProperty(_classNames, \"\".concat(prefixCls, \"-rtl\"), direction === 'rtl'), _classNames), className);\n\n var paginationProps = _extends(_extends(_extends({}, defaultPaginationProps), {\n total: dataSource.length,\n current: paginationCurrent,\n pageSize: paginationSize\n }), pagination || {});\n\n var largestPage = Math.ceil(paginationProps.total / paginationProps.pageSize);\n\n if (paginationProps.current > largestPage) {\n paginationProps.current = largestPage;\n }\n\n var paginationContent = pagination ? /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-pagination\")\n }, /*#__PURE__*/React.createElement(Pagination, _extends({}, paginationProps, {\n onChange: onPaginationChange,\n onShowSizeChange: onPaginationShowSizeChange\n }))) : null;\n\n var splitDataSource = _toConsumableArray(dataSource);\n\n if (pagination) {\n if (dataSource.length > (paginationProps.current - 1) * paginationProps.pageSize) {\n splitDataSource = _toConsumableArray(dataSource).splice((paginationProps.current - 1) * paginationProps.pageSize, paginationProps.pageSize);\n }\n }\n\n var screens = useBreakpoint();\n var currentBreakpoint = React.useMemo(function () {\n for (var i = 0; i < responsiveArray.length; i += 1) {\n var breakpoint = responsiveArray[i];\n\n if (screens[breakpoint]) {\n return breakpoint;\n }\n }\n\n return undefined;\n }, [screens]);\n var colStyle = React.useMemo(function () {\n if (!grid) {\n return undefined;\n }\n\n var columnCount = currentBreakpoint && grid[currentBreakpoint] ? grid[currentBreakpoint] : grid.column;\n\n if (columnCount) {\n return {\n width: \"\".concat(100 / columnCount, \"%\"),\n maxWidth: \"\".concat(100 / columnCount, \"%\")\n };\n }\n }, [grid === null || grid === void 0 ? void 0 : grid.column, currentBreakpoint]);\n var childrenContent = isLoading && /*#__PURE__*/React.createElement(\"div\", {\n style: {\n minHeight: 53\n }\n });\n\n if (splitDataSource.length > 0) {\n var items = splitDataSource.map(function (item, index) {\n return renderInnerItem(item, index);\n });\n var childrenList = React.Children.map(items, function (child, index) {\n return /*#__PURE__*/React.createElement(\"div\", {\n key: keys[index],\n style: colStyle\n }, child);\n });\n childrenContent = grid ? /*#__PURE__*/React.createElement(Row, {\n gutter: grid.gutter\n }, childrenList) : /*#__PURE__*/React.createElement(\"ul\", {\n className: \"\".concat(prefixCls, \"-items\")\n }, items);\n } else if (!children && !isLoading) {\n childrenContent = renderEmptyFunc(prefixCls, renderEmpty);\n }\n\n var paginationPosition = paginationProps.position || 'bottom';\n return /*#__PURE__*/React.createElement(ListContext.Provider, {\n value: {\n grid: grid,\n itemLayout: itemLayout\n }\n }, /*#__PURE__*/React.createElement(\"div\", _extends({\n className: classString\n }, rest), (paginationPosition === 'top' || paginationPosition === 'both') && paginationContent, header && /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-header\")\n }, header), /*#__PURE__*/React.createElement(Spin, loadingProp, childrenContent, children), footer && /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-footer\")\n }, footer), loadMore || (paginationPosition === 'bottom' || paginationPosition === 'both') && paginationContent));\n}\n\nList.Item = Item;\nexport default List;","import defaultLocale from './default';\nexport default defaultLocale;"],"names":["getClientSize","width","document","documentElement","clientWidth","height","window","innerHeight","clientHeight","getOffset","node","box","getBoundingClientRect","docElem","left","pageXOffset","scrollLeft","clientLeft","body","top","pageYOffset","scrollTop","clientTop","fixPoint","key","start","startAddWidth","offsetStart","context","previewUrls","Map","setPreviewUrls","current","setCurrent","setShowPreview","setMousePosition","registerImage","Provider","useState","useEffect","initialPosition","x","y","props","prefixCls","src","alt","onClose","visible","afterClose","_props$icons","icons","restProps","rotateLeft","rotateRight","zoomIn","zoomOut","close","right","_useState","_useState2","scale","setScale","_useState3","_useState4","rotate","setRotate","_useFrameSetState","initial","frame","_React$useState","_React$useState2","state","setState","queue","raf","newState","preState","memoState","forEach","queueState","push","useFrameSetState","_useFrameSetState2","position","setPosition","imgRef","originPositionRef","originX","originY","deltaX","deltaY","isMoving","setMoving","_React$useContext","isPreviewGroup","previewGroupCount","size","previewUrlsKeys","Array","from","keys","currentPreviewIndex","indexOf","combinationSrc","get","showLeftOrRightSwitches","_React$useState3","wheelDirection","_React$useState4","lastWheelZoomDirection","setLastWheelZoomDirection","onZoomIn","value","onZoomOut","wrapClassName","concat","toolClassName","iconClassName","tools","icon","onClick","type","disabled","onMouseUp","offsetWidth","offsetHeight","_imgRef$current$getBo","_left","isRotate","fixState","_getClientSize","fixPos","getFixScaleEleTransPosition","onMouseMove","event","pageX","pageY","onWheelMove","preventDefault","onTopMouseUpListener","onTopMouseMoveListener","onMouseUpListener","addEventListener","onMouseMoveListener","onScrollWheelListener","passive","self","error","warning","remove","transitionName","maskTransitionName","closable","keyboard","className","map","_ref","style","transform","onMouseDown","button","stopPropagation","ref","uuid","ImageInternal","imgSrc","onInitialPreviewClose","onPreviewClose","_ref$prefixCls","_ref$previewPrefixCls","previewPrefixCls","placeholder","fallback","_ref$preview","preview","onImageError","onError","wrapperClassName","wrapperStyle","crossOrigin","decoding","loading","referrerPolicy","sizes","srcSet","useMap","otherProps","isCustomPlaceholder","_ref2","previewSrc","_ref2$visible","previewVisible","undefined","_ref2$onVisibleChange","onVisibleChange","onPreviewVisibleChange","_ref2$getContainer","getContainer","getPreviewContainer","previewMask","mask","maskClassName","dialogProps","isControlled","_useMergedState","useMergedState","onChange","_useMergedState2","isShowPreview","status","setStatus","mousePosition","isError","setGroupShowPreview","setGroupMousePosition","currentId","canPreview","isLoaded","onLoad","wrapperClass","mergedSrc","imgCommonProps","e","_getOffset","target","img","complete","naturalWidth","naturalHeight","PreviewGroup","children","_ref$icons","_ref2$current","currentIndex","_useState5","_useState6","currentControlledKey","canPreviewUrls","filter","_ref3","_ref5","_ref6","url","id","arguments","length","unRegister","oldPreviewUrls","clonePreviewUrls","delete","set","displayName","AntdIcon","Object","assign","CloseOutlined","LeftOutlined","RightOutlined","_a","customizePrefixCls","s","t","p","prototype","hasOwnProperty","call","getOwnPropertySymbols","i","propertyIsEnumerable","getPrefixCls","useContext","rootPrefixCls","_useContext2$locale","locale","imageLocale","Image","mergedPreview","_preview","EyeOutlined","__rest","Item","result","actions","extra","colStyle","others","_React$useContext2","ListContext","grid","itemLayout","actionsContent","action","Element","itemChildren","element","flex","Meta","avatar","title","description","classString","content","List","_classNames","_a$pagination","pagination","_a$bordered","bordered","_a$split","split","loadMore","_a$dataSource","dataSource","header","footer","_a$loading","rowKey","renderItem","rest","paginationObj","defaultCurrent","paginationCurrent","setPaginationCurrent","defaultPageSize","paginationSize","setPaginationSize","renderEmpty","direction","triggerPaginationEvent","eventName","page","pageSize","onPaginationChange","onPaginationShowSizeChange","loadingProp","spinning","isLoading","sizeCls","paginationProps","total","largestPage","Math","ceil","paginationContent","onShowSizeChange","splitDataSource","splice","screens","useBreakpoint","currentBreakpoint","breakpoint","columnCount","column","maxWidth","childrenContent","minHeight","items","item","index","renderInnerItem","childrenList","child","gutter","renderEmptyHandler","emptyText","renderEmptyFunc","paginationPosition","Consumer"],"sourceRoot":""}
public/dist/415.lite.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunkrealCookieBanner_name_=self.webpackChunkrealCookieBanner_name_||[]).push([[415],{415:function(e,t,r){r.d(t,{Z:function(){return G}});var s=r(63),n=r(4741),o=r(6762),a=r(3340),c=r(5558),i=r(3841),l=r(5952),p=r(7363),u=r(2286),d=r.n(u),f=r(733),h=r(2092),k=r(1373),m=r(8405),g=r(2748),y=r(7079),v=r(8448),b=r(3631),C=r(4051);function P(e){return!e||e<0?0:e>100?100:e}function O(e){var t=e.success,r=e.successPercent;return t&&"progress"in t&&((0,b.Z)(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),r=t.progress),t&&"percent"in t&&(r=t.percent),r}var x=function(e,t){var r,s,n=e.from,o=void 0===n?C.ez.blue:n,a=e.to,c=void 0===a?C.ez.blue:a,i=e.direction,l=void 0===i?"rtl"===t?"to left":"to right":i,p=function(e,t){var r={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(r[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(s=Object.getOwnPropertySymbols(e);n<s.length;n++)t.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(e,s[n])&&(r[s[n]]=e[s[n]])}return r}(e,["from","to","direction"]);if(0!==Object.keys(p).length){var u=(r=p,s=[],Object.keys(r).forEach((function(e){var t=parseFloat(e.replace(/%/g,""));isNaN(t)||s.push({key:t,value:r[e]})})),(s=s.sort((function(e,t){return e.key-t.key}))).map((function(e){var t=e.key,r=e.value;return"".concat(r," ").concat(t,"%")})).join(", "));return{backgroundImage:"linear-gradient(".concat(l,", ").concat(u,")")}}return{backgroundImage:"linear-gradient(".concat(l,", ").concat(o,", ").concat(c,")")}},E=function(e){var t=e.prefixCls,r=e.direction,s=e.percent,o=e.strokeWidth,a=e.size,c=e.strokeColor,i=e.strokeLinecap,l=e.children,u=e.trailColor,d=e.success,f=c&&"string"!=typeof c?x(c,r):{background:c},h=u?{backgroundColor:u}:void 0,k=(0,n.Z)({width:"".concat(P(s),"%"),height:o||("small"===a?6:8),borderRadius:"square"===i?0:""},f),m=O(e),g={width:"".concat(P(m),"%"),height:o||("small"===a?6:8),borderRadius:"square"===i?0:"",backgroundColor:null==d?void 0:d.strokeColor},y=void 0!==m?p.createElement("div",{className:"".concat(t,"-success-bg"),style:g}):null;return p.createElement(p.Fragment,null,p.createElement("div",{className:"".concat(t,"-outer")},p.createElement("div",{className:"".concat(t,"-inner"),style:h},p.createElement("div",{className:"".concat(t,"-bg"),style:k}),y)),l)},Z=r(7228),N=r(4115),w={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},j=function(e){var t=e.map((function(){return(0,p.useRef)()})),r=(0,p.useRef)(null);return(0,p.useEffect)((function(){var e=Date.now(),s=!1;Object.keys(t).forEach((function(n){var o=t[n].current;if(o){s=!0;var a=o.style;a.transitionDuration=".3s, .3s, .3s, .06s",r.current&&e-r.current<100&&(a.transitionDuration="0s, 0s")}})),s&&(r.current=Date.now())})),[t]},W=function(e){var t=e.className,r=e.percent,s=e.prefixCls,n=e.strokeColor,o=e.strokeLinecap,a=e.strokeWidth,c=e.style,i=e.trailColor,l=e.trailWidth,u=e.transition,f=(0,N.Z)(e,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete f.gapPosition;var h=Array.isArray(r)?r:[r],k=Array.isArray(n)?n:[n],m=j(h),g=(0,Z.Z)(m,1)[0],y=a/2,v=100-a/2,b="M ".concat("round"===o?y:0,",").concat(y,"\n L ").concat("round"===o?v:100,",").concat(y),C="0 0 100 ".concat(a),P=0;return p.createElement("svg",Object.assign({className:d()("".concat(s,"-line"),t),viewBox:C,preserveAspectRatio:"none",style:c},f),p.createElement("path",{className:"".concat(s,"-line-trail"),d:b,strokeLinecap:o,stroke:i,strokeWidth:l||a,fillOpacity:"0"}),h.map((function(e,t){var r={strokeDasharray:"".concat(e,"px, 100px"),strokeDashoffset:"-".concat(P,"px"),transition:u||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},n=k[t]||k[k.length-1];return P+=e,p.createElement("path",{key:t,className:"".concat(s,"-line-path"),d:b,strokeLinecap:o,stroke:n,strokeWidth:a,fillOpacity:"0",ref:g[t],style:r})})))};W.defaultProps=w,W.displayName="Line";var S=0;function D(e){return+e.replace("%","")}function L(e){return Array.isArray(e)?e:[e]}function I(e,t,r,s){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5?arguments[5]:void 0,a=50-s/2,c=0,i=-a,l=0,p=-2*a;switch(o){case"left":c=-a,i=0,l=2*a,p=0;break;case"right":c=a,i=0,l=-2*a,p=0;break;case"bottom":i=a,p=2*a}var u="M 50,50 m ".concat(c,",").concat(i,"\n a ").concat(a,",").concat(a," 0 1 1 ").concat(l,",").concat(-p,"\n a ").concat(a,",").concat(a," 0 1 1 ").concat(-l,",").concat(p),d=2*Math.PI*a,f={stroke:r,strokeDasharray:"".concat(t/100*(d-n),"px ").concat(d,"px"),strokeDashoffset:"-".concat(n/2+e/100*(d-n),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:u,pathStyle:f}}var z=function(e){var t,r=e.prefixCls,s=e.strokeWidth,n=e.trailWidth,o=e.gapDegree,a=e.gapPosition,c=e.trailColor,i=e.strokeLinecap,l=e.style,u=e.className,f=e.strokeColor,h=e.percent,k=(0,N.Z)(e,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),m=p.useMemo((function(){return S+=1}),[]),g=I(0,100,c,s,o,a),y=g.pathString,v=g.pathStyle,b=L(h),C=L(f),P=C.find((function(e){return"[object Object]"===Object.prototype.toString.call(e)})),O=j(b),x=(0,Z.Z)(O,1)[0];return p.createElement("svg",Object.assign({className:d()("".concat(r,"-circle"),u),viewBox:"0 0 100 100",style:l},k),P&&p.createElement("defs",null,p.createElement("linearGradient",{id:"".concat(r,"-gradient-").concat(m),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(P).sort((function(e,t){return D(e)-D(t)})).map((function(e,t){return p.createElement("stop",{key:t,offset:e,stopColor:P[e]})})))),p.createElement("path",{className:"".concat(r,"-circle-trail"),d:y,stroke:c,strokeLinecap:i,strokeWidth:n||s,fillOpacity:"0",style:v}),(t=0,b.map((function(e,n){var c=C[n]||C[C.length-1],l="[object Object]"===Object.prototype.toString.call(c)?"url(#".concat(r,"-gradient-").concat(m,")"):"",u=I(t,e,c,s,o,a);return t+=e,p.createElement("path",{key:n,className:"".concat(r,"-circle-path"),d:u.pathString,stroke:l,strokeLinecap:i,strokeWidth:s,opacity:0===e?0:1,fillOpacity:"0",style:u.pathStyle,ref:x[n]})}))).reverse())};z.defaultProps=w,z.displayName="Circle";var A=z;function M(e){var t=e.percent,r=e.success,s=e.successPercent,n=P(t),o=O({success:r,successPercent:s});return o?[P(o),P(n-P(o))]:n}var R=function(e){var t,r,n,o=e.prefixCls,a=e.width,c=e.strokeWidth,i=e.trailColor,l=e.strokeLinecap,u=e.gapPosition,f=e.gapDegree,h=e.type,k=e.children,m=a||120,g={width:m,height:m,fontSize:.15*m+6},y=c||6,v=u||"dashboard"===h&&"bottom"||"top",b=(r=(t=e).success,n=t.strokeColor||null,O({success:r,successPercent:t.successPercent})?[C.ez.green,n]:n),P="[object Object]"===Object.prototype.toString.call(b),x=d()("".concat(o,"-inner"),(0,s.Z)({},"".concat(o,"-circle-gradient"),P));return p.createElement("div",{className:x,style:g},p.createElement(A,{percent:M(e),strokeWidth:y,trailWidth:y,strokeColor:b,strokeLinecap:l,trailColor:i,prefixCls:o,gapDegree:f||0===f?f:"dashboard"===h?75:void 0,gapPosition:v}),k)},B=function(e){for(var t=e.size,r=e.steps,n=e.percent,o=void 0===n?0:n,a=e.strokeWidth,c=void 0===a?8:a,i=e.strokeColor,l=e.trailColor,u=e.prefixCls,f=e.children,h=Math.round(r*(o/100)),k="small"===t?2:14,m=[],g=0;g<r;g+=1)m.push(p.createElement("div",{key:g,className:d()("".concat(u,"-steps-item"),(0,s.Z)({},"".concat(u,"-steps-item-active"),g<=h-1)),style:{backgroundColor:g<=h-1?i:l,width:k,height:c}}));return p.createElement("div",{className:"".concat(u,"-steps-outer")},m,f)},_=function(e,t){var r={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(r[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(s=Object.getOwnPropertySymbols(e);n<s.length;n++)t.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(e,s[n])&&(r[s[n]]=e[s[n]])}return r},q=((0,v.b)("line","circle","dashboard"),(0,v.b)("normal","exception","active","success")),F=function(e){(0,i.Z)(r,e);var t=(0,l.Z)(r);function r(){var e;return(0,o.Z)(this,r),(e=t.apply(this,arguments)).renderProgress=function(t){var r,o,a=t.getPrefixCls,i=t.direction,l=(0,c.Z)(e).props,u=l.prefixCls,h=l.className,k=l.size,m=l.type,g=l.steps,y=l.showInfo,v=l.strokeColor,C=_(l,["prefixCls","className","size","type","steps","showInfo","strokeColor"]),P=a("progress",u),O=e.getProgressStatus(),x=e.renderProcessInfo(P,O);(0,b.Z)(!("successPercent"in l),"Progress","`successPercent` is deprecated. Please use `success.percent` instead."),"line"===m?o=g?p.createElement(B,(0,n.Z)({},e.props,{strokeColor:"string"==typeof v?v:void 0,prefixCls:P,steps:g}),x):p.createElement(E,(0,n.Z)({},e.props,{prefixCls:P,direction:i}),x):"circle"!==m&&"dashboard"!==m||(o=p.createElement(R,(0,n.Z)({},e.props,{prefixCls:P,progressStatus:O}),x));var Z=d()(P,(r={},(0,s.Z)(r,"".concat(P,"-").concat(("dashboard"===m?"circle":g&&"steps")||m),!0),(0,s.Z)(r,"".concat(P,"-status-").concat(O),!0),(0,s.Z)(r,"".concat(P,"-show-info"),y),(0,s.Z)(r,"".concat(P,"-").concat(k),k),(0,s.Z)(r,"".concat(P,"-rtl"),"rtl"===i),r),h);return p.createElement("div",(0,n.Z)({},(0,f.Z)(C,["status","format","trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","percent","success","successPercent"]),{className:Z}),o)},e}return(0,a.Z)(r,[{key:"getPercentNumber",value:function(){var e=this.props.percent,t=void 0===e?0:e,r=O(this.props);return parseInt(void 0!==r?r.toString():t.toString(),10)}},{key:"getProgressStatus",value:function(){var e=this.props.status;return q.indexOf(e)<0&&this.getPercentNumber()>=100?"success":e||"normal"}},{key:"renderProcessInfo",value:function(e,t){var r,s=this.props,n=s.showInfo,o=s.format,a=s.type,c=s.percent,i=O(this.props);if(!n)return null;var l="line"===a;return o||"exception"!==t&&"success"!==t?r=(o||function(e){return"".concat(e,"%")})(P(c),P(i)):"exception"===t?r=l?p.createElement(g.Z,null):p.createElement(h.Z,null):"success"===t&&(r=l?p.createElement(m.Z,null):p.createElement(k.Z,null)),p.createElement("span",{className:"".concat(e,"-text"),title:"string"==typeof r?r:void 0},r)}},{key:"render",value:function(){return p.createElement(y.C,null,this.renderProgress)}}]),r}(p.Component);F.defaultProps={type:"line",percent:0,showInfo:!0,trailColor:null,size:"default",gapDegree:void 0,strokeLinecap:"round"};var G=F}}]);
2
- //# sourceMappingURL=415.lite.js.map?ver=b2d0ca21f8210618fd80
 
 
public/dist/{173.lite.js → 440.lite.js} RENAMED
@@ -1,2 +1,2 @@
1
- (self.webpackChunkrealCookieBanner_name_=self.webpackChunkrealCookieBanner_name_||[]).push([[173],{9239:function(e,t,n){"use strict";var o=n(8711),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return o.isMemo(e)?a:s[e.$$typeof]||i}s[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[o.Memo]=a;var l=Object.defineProperty,c=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,v=Object.prototype;e.exports=function e(t,n,o){if("string"!=typeof n){if(v){var i=d(n);i&&i!==v&&e(t,i,o)}var a=c(n);p&&(a=a.concat(p(n)));for(var s=u(t),m=u(n),h=0;h<a.length;++h){var y=a[h];if(!(r[y]||o&&o[y]||m&&m[y]||s&&s[y])){var g=f(n,y);try{l(t,y,g)}catch(e){}}}}return t}},7933:function(e,t,n){"use strict";n.d(t,{Z:function(){return ie}});var o=n(63),i=n(7228),r=n(4115),a=n(7363),s=n.n(a),u=n(2711),l=n(4741),c=n(6762),p=n(3340),f=n(5558),d=n(3841),v=n(5952),m=n(1533),h=n.n(m),y=n(6871),g=n(7384),b=n(8369),C=n(5643),M=n(5905),w=n(505),Z=n(2286),k=n.n(Z);function E(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}var T=n(4511),x=n(9064);function P(e){var t=e.prefixCls,n=e.motion,o=e.animation,i=e.transitionName;return n||(o?{motionName:"".concat(t,"-").concat(o)}:i?{motionName:i}:null)}function O(e){var t=e.prefixCls,n=e.visible,o=e.zIndex,i=e.mask,r=e.maskMotion,s=e.maskAnimation,c=e.maskTransitionName;if(!i)return null;var p={};return(r||c||s)&&(p=(0,u.Z)({motionAppear:!0},P({motion:r,prefixCls:t,transitionName:c,animation:s}))),a.createElement(x.Z,(0,l.Z)({},p,{visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return a.createElement("div",{style:{zIndex:o},className:k()("".concat(t,"-mask"),n)})}))}var D=n(3429),S=n(4001),N=n(3493),R=n(7410);function I(e,t){var n=null,o=null,r=new R.Z((function(e){var r=(0,i.Z)(e,1)[0].target;if(document.documentElement.contains(r)){var a=r.getBoundingClientRect(),s=a.width,u=a.height,l=Math.floor(s),c=Math.floor(u);n===l&&o===c||Promise.resolve().then((function(){t({width:l,height:c})})),n=l,o=c}}));return e&&r.observe(e),function(){r.disconnect()}}function A(e){return"function"!=typeof e?null:e()}function K(e){return"object"===(0,D.Z)(e)&&e?e:null}var V=s().forwardRef((function(e,t){var n=e.children,o=e.disabled,r=e.target,a=e.align,u=e.onAlign,l=e.monitorWindowResize,c=e.monitorBufferTime,p=void 0===c?0:c,f=s().useRef({}),d=s().useRef(),v=s().Children.only(n),m=s().useRef({});m.current.disabled=o,m.current.target=r,m.current.onAlign=u;var h=function(e,t){var n=s().useRef(!1),o=s().useRef(null);function i(){window.clearTimeout(o.current)}return[function e(r){if(n.current&&!0!==r)i(),o.current=window.setTimeout((function(){n.current=!1,e()}),t);else{if(!1===function(){var e=m.current,t=e.disabled,n=e.target,o=e.onAlign;if(!t&&n){var i,r=d.current,s=A(n),u=K(n);f.current.element=s,f.current.point=u;var l=document.activeElement;return s&&(0,S.Z)(s)?i=(0,N.E3)(r,s,a):u&&(i=(0,N.zy)(r,u,a)),function(e,t){e!==document.activeElement&&(0,g.Z)(t,e)&&"function"==typeof e.focus&&e.focus()}(l,r),o&&i&&o(r,i),!0}return!1}())return;n.current=!0,i(),o.current=window.setTimeout((function(){n.current=!1}),t)}},function(){n.current=!1,i()}]}(0,p),y=(0,i.Z)(h,2),b=y[0],w=y[1],Z=s().useRef({cancel:function(){}}),k=s().useRef({cancel:function(){}});s().useEffect((function(){var e,t,n=A(r),o=K(r);d.current!==k.current.element&&(k.current.cancel(),k.current.element=d.current,k.current.cancel=I(d.current,b)),f.current.element===n&&((e=f.current.point)===(t=o)||e&&t&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY))||(b(),Z.current.element!==n&&(Z.current.cancel(),Z.current.element=n,Z.current.cancel=I(n,b)))})),s().useEffect((function(){o?w():b()}),[o]);var E=s().useRef(null);return s().useEffect((function(){l?E.current||(E.current=(0,M.Z)(window,"resize",b)):E.current&&(E.current.remove(),E.current=null)}),[l]),s().useEffect((function(){return function(){Z.current.cancel(),k.current.cancel(),E.current&&E.current.remove(),w()}}),[]),s().useImperativeHandle(t,(function(){return{forceAlign:function(){return b(!0)}}})),s().isValidElement(v)&&(v=s().cloneElement(v,{ref:(0,C.sQ)(v.ref,d)})),v}));V.displayName="Align";var H=V,L=n(5450),F=n.n(L),j=n(7938),z=["measure","align",null,"motion"],B=a.forwardRef((function(e,t){var n=e.visible,o=e.prefixCls,r=e.className,s=e.style,c=e.children,p=e.zIndex,f=e.stretch,d=e.destroyPopupOnHide,v=e.forceRender,m=e.align,h=e.point,g=e.getRootDomNode,b=e.getClassNameFromAlign,C=e.onAlign,M=e.onMouseEnter,w=e.onMouseLeave,Z=e.onMouseDown,E=e.onTouchStart,T=(0,a.useRef)(),O=(0,a.useRef)(),D=(0,a.useState)(),S=(0,i.Z)(D,2),N=S[0],R=S[1],I=function(e){var t=a.useState({width:0,height:0}),n=(0,i.Z)(t,2),o=n[0],r=n[1];return[a.useMemo((function(){var t={};if(e){var n=o.width,i=o.height;-1!==e.indexOf("height")&&i?t.height=i:-1!==e.indexOf("minHeight")&&i&&(t.minHeight=i),-1!==e.indexOf("width")&&n?t.width=n:-1!==e.indexOf("minWidth")&&n&&(t.minWidth=n)}return t}),[e,o]),function(e){r({width:e.offsetWidth,height:e.offsetHeight})}]}(f),A=(0,i.Z)(I,2),K=A[0],V=A[1],L=function(e,t){var n=(0,a.useState)(null),o=(0,i.Z)(n,2),r=o[0],s=o[1],u=(0,a.useRef)(),l=(0,a.useRef)(!1);function c(e){l.current||s(e)}function p(){y.Z.cancel(u.current)}return(0,a.useEffect)((function(){c("measure")}),[e]),(0,a.useEffect)((function(){"measure"===r&&(f&&V(g())),r&&(u.current=(0,y.Z)((0,j.Z)(F().mark((function e(){var t,n;return F().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=z.indexOf(r),(n=z[t+1])&&-1!==t&&c(n);case 3:case"end":return e.stop()}}),e)})))))}),[r]),(0,a.useEffect)((function(){return function(){l.current=!0,p()}}),[]),[r,function(e){p(),u.current=(0,y.Z)((function(){c((function(e){switch(r){case"align":return"motion";case"motion":return"stable"}return e})),null==e||e()}))}]}(n),B=(0,i.Z)(L,2),W=B[0],U=B[1],Y=(0,a.useRef)();function _(){var e;null===(e=T.current)||void 0===e||e.forceAlign()}function X(e,t){if("align"===W){var n=b(t);R(n),N!==n?Promise.resolve().then((function(){_()})):U((function(){var e;null===(e=Y.current)||void 0===e||e.call(Y)})),null==C||C(e,t)}}var G=(0,u.Z)({},P(e));function $(){return new Promise((function(e){Y.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=G[e];G[e]=function(e,n){return U(),null==t?void 0:t(e,n)}})),a.useEffect((function(){G.motionName||"motion"!==W||U()}),[G.motionName,W]),a.useImperativeHandle(t,(function(){return{forceAlign:_,getElement:function(){return O.current}}}));var q=(0,u.Z)((0,u.Z)((0,u.Z)({},K),{},{zIndex:p},s),{},{opacity:"motion"!==W&&"stable"!==W&&n?0:void 0,pointerEvents:"stable"===W?void 0:"none"}),Q=!0;!(null==m?void 0:m.points)||"align"!==W&&"stable"!==W||(Q=!1);var J=c;return a.Children.count(c)>1&&(J=a.createElement("div",{className:"".concat(o,"-content")},c)),a.createElement(x.Z,(0,l.Z)({visible:n,ref:O,leavedClassName:"".concat(o,"-hidden")},G,{onAppearPrepare:$,onEnterPrepare:$,removeOnLeave:d,forceRender:v}),(function(e,t){var n=e.className,i=e.style,s=k()(o,r,N,n);return a.createElement(H,{target:h||g,key:"popup",ref:T,monitorWindowResize:!0,disabled:Q,align:m,onAlign:X},a.createElement("div",{ref:t,className:s,onMouseEnter:M,onMouseLeave:w,onMouseDownCapture:Z,onTouchStartCapture:E,style:(0,u.Z)((0,u.Z)({},i),q)},J))}))}));B.displayName="PopupInner";var W=B,U=a.forwardRef((function(e,t){var n=e.prefixCls,o=e.visible,i=e.zIndex,r=e.children,s=e.mobile,c=(s=void 0===s?{}:s).popupClassName,p=s.popupStyle,f=s.popupMotion,d=void 0===f?{}:f,v=s.popupRender,m=a.useRef();a.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return m.current}}}));var h=(0,u.Z)({zIndex:i},p),y=r;return a.Children.count(r)>1&&(y=a.createElement("div",{className:"".concat(n,"-content")},r)),v&&(y=v(y)),a.createElement(x.Z,(0,l.Z)({visible:o,ref:m,removeOnLeave:!0},d),(function(e,t){var o=e.className,i=e.style,r=k()(n,c,o);return a.createElement("div",{ref:t,className:r,style:(0,u.Z)((0,u.Z)({},i),h)},y)}))}));U.displayName="MobilePopupInner";var Y=U,_=a.forwardRef((function(e,t){var n=e.visible,o=e.mobile,s=(0,r.Z)(e,["visible","mobile"]),c=(0,a.useState)(n),p=(0,i.Z)(c,2),f=p[0],d=p[1],v=(0,a.useState)(!1),m=(0,i.Z)(v,2),h=m[0],y=m[1],g=(0,u.Z)((0,u.Z)({},s),{},{visible:f});(0,a.useEffect)((function(){d(n),n&&o&&y((0,T.Z)())}),[n,o]);var b=h?a.createElement(Y,(0,l.Z)({},g,{mobile:o,ref:t})):a.createElement(W,(0,l.Z)({},g,{ref:t}));return a.createElement("div",null,a.createElement(O,g),b)}));_.displayName="Popup";var X=_,G=a.createContext(null);function $(){}var q,Q,J=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"],ee=(q=w.Z,Q=function(e){(0,d.Z)(n,e);var t=(0,v.Z)(n);function n(e){var o,i;return(0,c.Z)(this,n),(o=t.call(this,e)).popupRef=a.createRef(),o.triggerRef=a.createRef(),o.onMouseEnter=function(e){var t=o.props.mouseEnterDelay;o.fireEvents("onMouseEnter",e),o.delaySetPopupVisible(!0,t,t?null:e)},o.onMouseMove=function(e){o.fireEvents("onMouseMove",e),o.setPoint(e)},o.onMouseLeave=function(e){o.fireEvents("onMouseLeave",e),o.delaySetPopupVisible(!1,o.props.mouseLeaveDelay)},o.onPopupMouseEnter=function(){o.clearDelayTimer()},o.onPopupMouseLeave=function(e){var t;e.relatedTarget&&!e.relatedTarget.setTimeout&&(0,g.Z)(null===(t=o.popupRef.current)||void 0===t?void 0:t.getElement(),e.relatedTarget)||o.delaySetPopupVisible(!1,o.props.mouseLeaveDelay)},o.onFocus=function(e){o.fireEvents("onFocus",e),o.clearDelayTimer(),o.isFocusToShow()&&(o.focusTime=Date.now(),o.delaySetPopupVisible(!0,o.props.focusDelay))},o.onMouseDown=function(e){o.fireEvents("onMouseDown",e),o.preClickTime=Date.now()},o.onTouchStart=function(e){o.fireEvents("onTouchStart",e),o.preTouchTime=Date.now()},o.onBlur=function(e){o.fireEvents("onBlur",e),o.clearDelayTimer(),o.isBlurToHide()&&o.delaySetPopupVisible(!1,o.props.blurDelay)},o.onContextMenu=function(e){e.preventDefault(),o.fireEvents("onContextMenu",e),o.setPopupVisible(!0,e)},o.onContextMenuClose=function(){o.isContextMenuToShow()&&o.close()},o.onClick=function(e){if(o.fireEvents("onClick",e),o.focusTime){var t;if(o.preClickTime&&o.preTouchTime?t=Math.min(o.preClickTime,o.preTouchTime):o.preClickTime?t=o.preClickTime:o.preTouchTime&&(t=o.preTouchTime),Math.abs(t-o.focusTime)<20)return;o.focusTime=0}o.preClickTime=0,o.preTouchTime=0,o.isClickToShow()&&(o.isClickToHide()||o.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var n=!o.state.popupVisible;(o.isClickToHide()&&!n||n&&o.isClickToShow())&&o.setPopupVisible(!o.state.popupVisible,e)},o.onPopupMouseDown=function(){var e;o.hasPopupMouseDown=!0,clearTimeout(o.mouseDownTimeout),o.mouseDownTimeout=window.setTimeout((function(){o.hasPopupMouseDown=!1}),0),o.context&&(e=o.context).onPopupMouseDown.apply(e,arguments)},o.onDocumentClick=function(e){if(!o.props.mask||o.props.maskClosable){var t=e.target,n=o.getRootDomNode(),i=o.getPopupDomNode();(0,g.Z)(n,t)&&!o.isContextMenuOnly()||(0,g.Z)(i,t)||o.hasPopupMouseDown||o.close()}},o.getRootDomNode=function(){var e=o.props.getTriggerDOMNode;if(e)return e(o.triggerRef.current);try{var t=(0,b.Z)(o.triggerRef.current);if(t)return t}catch(e){}return h().findDOMNode((0,f.Z)(o))},o.getPopupClassNameFromAlign=function(e){var t=[],n=o.props,i=n.popupPlacement,r=n.builtinPlacements,a=n.prefixCls,s=n.alignPoint,u=n.getPopupClassNameFromAlign;return i&&r&&t.push(function(e,t,n,o){for(var i=n.points,r=Object.keys(e),a=0;a<r.length;a+=1){var s=r[a];if(E(e[s].points,i,o))return"".concat(t,"-placement-").concat(s)}return""}(r,a,e,s)),u&&t.push(u(e)),t.join(" ")},o.getComponent=function(){var e=o.props,t=e.prefixCls,n=e.destroyPopupOnHide,i=e.popupClassName,r=e.onPopupAlign,s=e.popupMotion,u=e.popupAnimation,c=e.popupTransitionName,p=e.popupStyle,f=e.mask,d=e.maskAnimation,v=e.maskTransitionName,m=e.maskMotion,h=e.zIndex,y=e.popup,g=e.stretch,b=e.alignPoint,C=e.mobile,M=e.forceRender,w=o.state,Z=w.popupVisible,k=w.point,E=o.getPopupAlign(),T={};return o.isMouseEnterToShow()&&(T.onMouseEnter=o.onPopupMouseEnter),o.isMouseLeaveToHide()&&(T.onMouseLeave=o.onPopupMouseLeave),T.onMouseDown=o.onPopupMouseDown,T.onTouchStart=o.onPopupMouseDown,a.createElement(X,(0,l.Z)({prefixCls:t,destroyPopupOnHide:n,visible:Z,point:b&&k,className:i,align:E,onAlign:r,animation:u,getClassNameFromAlign:o.getPopupClassNameFromAlign},T,{stretch:g,getRootDomNode:o.getRootDomNode,style:p,mask:f,zIndex:h,transitionName:c,maskAnimation:d,maskTransitionName:v,maskMotion:m,ref:o.popupRef,motion:s,mobile:C,forceRender:M}),"function"==typeof y?y():y)},o.attachParent=function(e){y.Z.cancel(o.attachId);var t,n=o.props,i=n.getPopupContainer,r=n.getDocument,a=o.getRootDomNode();i?(a||0===i.length)&&(t=i(a)):t=r(o.getRootDomNode()).body,t?t.appendChild(e):o.attachId=(0,y.Z)((function(){o.attachParent(e)}))},o.getContainer=function(){var e=(0,o.props.getDocument)(o.getRootDomNode()).createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",o.attachParent(e),e},o.setPoint=function(e){o.props.alignPoint&&e&&o.setState({point:{pageX:e.pageX,pageY:e.pageY}})},o.handlePortalUpdate=function(){o.state.prevPopupVisible!==o.state.popupVisible&&o.props.afterPopupVisibleChange(o.state.popupVisible)},i="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,o.state={prevPopupVisible:i,popupVisible:i},J.forEach((function(e){o["fire".concat(e)]=function(t){o.fireEvents(e,t)}})),o}return(0,p.Z)(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e,t=this.props;if(this.state.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=(0,M.Z)(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=(0,M.Z)(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=(0,M.Z)(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=(0,M.Z)(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),y.Z.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var e;return(null===(e=this.popupRef.current)||void 0===e?void 0:e.getElement())||null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,o=e.builtinPlacements;return t&&o?function(e,t,n){var o=e[t]||{};return(0,u.Z)((0,u.Z)({},o),n)}(o,t,n):n}},{key:"setPopupVisible",value:function(e,t){var n=this.props.alignPoint,o=this.state.popupVisible;this.clearDelayTimer(),o!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:o}),this.props.onPopupVisibleChange(e)),n&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,n){var o=this,i=1e3*t;if(this.clearDelayTimer(),i){var r=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){o.setPopupVisible(e,r),o.clearDelayTimer()}),i)}else this.setPopupVisible(e,n)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire".concat(e)]:t[e]||n[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var e=this.props.action;return"contextMenu"===e||1===e.length&&"contextMenu"===e[0]}},{key:"isContextMenuToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var e;this.state.popupVisible&&(null===(e=this.popupRef.current)||void 0===e||e.forceAlign())}},{key:"fireEvents",value:function(e,t){var n=this.props.children.props[e];n&&n(t);var o=this.props[e];o&&o(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var e=this.state.popupVisible,t=this.props,n=t.children,o=t.forceRender,i=t.alignPoint,r=t.className,s=t.autoDestroy,l=a.Children.only(n),c={key:"trigger"};this.isContextMenuToShow()?c.onContextMenu=this.onContextMenu:c.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(c.onClick=this.onClick,c.onMouseDown=this.onMouseDown,c.onTouchStart=this.onTouchStart):(c.onClick=this.createTwoChains("onClick"),c.onMouseDown=this.createTwoChains("onMouseDown"),c.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(c.onMouseEnter=this.onMouseEnter,i&&(c.onMouseMove=this.onMouseMove)):c.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?c.onMouseLeave=this.onMouseLeave:c.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(c.onFocus=this.onFocus,c.onBlur=this.onBlur):(c.onFocus=this.createTwoChains("onFocus"),c.onBlur=this.createTwoChains("onBlur"));var p=k()(l&&l.props&&l.props.className,r);p&&(c.className=p);var f=(0,u.Z)({},c);(0,C.Yr)(l)&&(f.ref=(0,C.sQ)(this.triggerRef,l.ref));var d,v=a.cloneElement(l,f);return(e||this.popupRef.current||o)&&(d=a.createElement(q,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!e&&s&&(d=null),a.createElement(G.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},v,d)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.popupVisible,o={};return void 0!==n&&t.popupVisible!==n&&(o.popupVisible=n,o.prevPopupVisible=t.popupVisible),o}}]),n}(a.Component),Q.contextType=G,Q.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:function(){return""},getDocument:function(e){return e?e.ownerDocument:window.document},onPopupVisibleChange:$,afterPopupVisibleChange:$,onPopupAlign:$,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},Q),te={adjustX:1,adjustY:1},ne=[0,0],oe={topLeft:{points:["bl","tl"],overflow:te,offset:[0,-4],targetOffset:ne},topCenter:{points:["bc","tc"],overflow:te,offset:[0,-4],targetOffset:ne},topRight:{points:["br","tr"],overflow:te,offset:[0,-4],targetOffset:ne},bottomLeft:{points:["tl","bl"],overflow:te,offset:[0,4],targetOffset:ne},bottomCenter:{points:["tc","bc"],overflow:te,offset:[0,4],targetOffset:ne},bottomRight:{points:["tr","br"],overflow:te,offset:[0,4],targetOffset:ne}},ie=a.forwardRef((function(e,t){var n=e.arrow,s=void 0!==n&&n,u=e.prefixCls,l=void 0===u?"rc-dropdown":u,c=e.transitionName,p=e.animation,f=e.align,d=e.placement,v=void 0===d?"bottomLeft":d,m=e.placements,h=void 0===m?oe:m,y=e.getPopupContainer,g=e.showAction,b=e.hideAction,C=e.overlayClassName,M=e.overlayStyle,w=e.visible,Z=e.trigger,E=void 0===Z?["hover"]:Z,T=(0,r.Z)(e,["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger"]),x=a.useState(),P=(0,i.Z)(x,2),O=P[0],D=P[1],S="visible"in e?w:O,N=a.useRef(null);a.useImperativeHandle(t,(function(){return N.current}));var R,I,A,K,V,H,L=function(){var t=e.overlay;return"function"==typeof t?t():t},F=function(t){var n=e.onOverlayClick,o=L().props;D(!1),n&&n(t),o.onClick&&o.onClick(t)},j=function(){var e=L(),t={prefixCls:"".concat(l,"-menu"),onClick:F};return"string"==typeof e.type&&delete t.prefixCls,a.createElement(a.Fragment,null,s&&a.createElement("div",{className:"".concat(l,"-arrow")}),a.cloneElement(e,t))},z=b;return z||-1===E.indexOf("contextMenu")||(z=["click"]),a.createElement(ee,Object.assign({},T,{prefixCls:l,ref:N,popupClassName:k()(C,(0,o.Z)({},"".concat(l,"-show-arrow"),s)),popupStyle:M,builtinPlacements:h,action:E,showAction:g,hideAction:z||[],popupPlacement:v,popupAlign:f,popupTransitionName:c,popupAnimation:p,popupVisible:S,stretch:(V=e.minOverlayWidthMatchTrigger,H=e.alignPoint,("minOverlayWidthMatchTrigger"in e?V:!H)?"minWidth":""),popup:"function"==typeof e.overlay?j:j(),onPopupVisibleChange:function(t){var n=e.onVisibleChange;D(t),"function"==typeof n&&n(t)},getPopupContainer:y}),(A=(I=e.children).props?I.props:{},K=k()(A.className,void 0!==(R=e.openClassName)?R:"".concat(l,"-open")),O&&I?a.cloneElement(I,{className:K}):I))}))},1987:function(e,t,n){"use strict";n.d(t,{iz:function(){return yt},ck:function(){return dt},BW:function(){return mt},sN:function(){return dt},Wd:function(){return Qe},ZP:function(){return gt}});var o,i=n(2711),r=n(6762),a=n(3340),s=n(5558),u=n(3841),l=n(5952),c=n(7363),p=n.n(c),f=(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},o(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=c.createContext(null),v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),t.prototype.render=function(){return c.createElement(d.Provider,{value:this.props.store},this.props.children)},t}(c.Component),m=n(5724),h=n.n(m),y=n(9239),g=n.n(y),b=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),C=function(){return C=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},C.apply(this,arguments)},M=function(){return{}};function w(e,t){void 0===t&&(t={});var n=!!e,o=e||M;return function(i){var r=function(t){function r(e,n){var i=t.call(this,e,n)||this;return i.unsubscribe=null,i.handleChange=function(){if(i.unsubscribe){var e=o(i.store.getState(),i.props);i.setState({subscribed:e})}},i.store=i.context,i.state={subscribed:o(i.store.getState(),e),store:i.store,props:e},i}return b(r,t),r.getDerivedStateFromProps=function(t,n){return e&&2===e.length&&t!==n.props?{subscribed:o(n.store.getState(),t),props:t}:{props:t}},r.prototype.componentDidMount=function(){this.trySubscribe()},r.prototype.componentWillUnmount=function(){this.tryUnsubscribe()},r.prototype.shouldComponentUpdate=function(e,t){return!h()(this.props,e)||!h()(this.state.subscribed,t.subscribed)},r.prototype.trySubscribe=function(){n&&(this.unsubscribe=this.store.subscribe(this.handleChange),this.handleChange())},r.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},r.prototype.render=function(){var e=C(C(C({},this.props),this.state.subscribed),{store:this.store});return c.createElement(i,C({},e,{ref:this.props.miniStoreForwardedRef}))},r.displayName="Connect("+function(e){return e.displayName||e.name||"Component"}(i)+")",r.contextType=d,r}(c.Component);if(t.forwardRef){var a=c.forwardRef((function(e,t){return c.createElement(r,C({},e,{miniStoreForwardedRef:t}))}));return g()(a,i)}return g()(r,i)}}var Z=function(){return Z=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Z.apply(this,arguments)},k=n(2465),E=n(4741),T=n(63),x=n(5065);function P(){var e=[].slice.call(arguments,0);return 1===e.length?e[0]:function(){for(var t=0;t<e.length;t++)e[t]&&e[t].apply&&e[t].apply(this,arguments)}}var O=n(4237),D=n(2286),S=n.n(D),N=n(3429),R=n(7228),I=/iPhone/i,A=/iPod/i,K=/iPad/i,V=/\bAndroid(?:.+)Mobile\b/i,H=/Android/i,L=/\bAndroid(?:.+)SD4930UR\b/i,F=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,j=/Windows Phone/i,z=/\bWindows(?:.+)ARM\b/i,B=/BlackBerry/i,W=/BB10/i,U=/Opera Mini/i,Y=/\b(CriOS|Chrome)(?:.+)Mobile/i,_=/Mobile(?:.+)Firefox\b/i;function X(e,t){return e.test(t)}function G(e){var t=e||("undefined"!=typeof navigator?navigator.userAgent:""),n=t.split("[FBAN");if(void 0!==n[1]){var o=n;t=(0,R.Z)(o,1)[0]}if(void 0!==(n=t.split("Twitter"))[1]){var i=n;t=(0,R.Z)(i,1)[0]}var r={apple:{phone:X(I,t)&&!X(j,t),ipod:X(A,t),tablet:!X(I,t)&&X(K,t)&&!X(j,t),device:(X(I,t)||X(A,t)||X(K,t))&&!X(j,t)},amazon:{phone:X(L,t),tablet:!X(L,t)&&X(F,t),device:X(L,t)||X(F,t)},android:{phone:!X(j,t)&&X(L,t)||!X(j,t)&&X(V,t),tablet:!X(j,t)&&!X(L,t)&&!X(V,t)&&(X(F,t)||X(H,t)),device:!X(j,t)&&(X(L,t)||X(F,t)||X(V,t)||X(H,t))||X(/\bokhttp\b/i,t)},windows:{phone:X(j,t),tablet:X(z,t),device:X(j,t)||X(z,t)},other:{blackberry:X(B,t),blackberry10:X(W,t),opera:X(U,t),firefox:X(_,t),chrome:X(Y,t),device:X(B,t)||X(W,t)||X(U,t)||X(_,t)||X(Y,t)},any:null,phone:null,tablet:null};return r.any=r.apple.device||r.android.device||r.windows.device||r.other.device,r.phone=r.apple.phone||r.android.phone||r.windows.phone,r.tablet=r.apple.tablet||r.android.tablet||r.windows.tablet,r}var $=(0,i.Z)((0,i.Z)({},G()),{},{isMobile:G});function q(){}function Q(e,t,n){var o=t||"";return e.key||"".concat(o,"item_").concat(n)}function J(e){return"".concat(e,"-menu-")}function ee(e,t){var n=-1;c.Children.forEach(e,(function(e){n+=1,e&&e.type&&e.type.isMenuItemGroup?c.Children.forEach(e.props.children,(function(e){t(e,n+=1)})):t(e,n)}))}function te(e,t,n){e&&!n.find&&c.Children.forEach(e,(function(e){if(e){var o=e.type;if(!o||!(o.isSubMenu||o.isMenuItem||o.isMenuItemGroup))return;-1!==t.indexOf(e.key)?n.find=!0:e.props.children&&te(e.props.children,t,n)}}))}var ne=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],oe=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e&&"function"==typeof e.getBoundingClientRect&&e.getBoundingClientRect().width;if(n){if(t){var o=getComputedStyle(e),i=o.marginLeft,r=o.marginRight;n+=+i.replace("px","")+ +r.replace("px","")}n=+n.toFixed(6)}return n||0},ie=function(e,t,n){e&&"object"===(0,N.Z)(e.style)&&(e.style[t]=n)},re=n(7870),ae=n(4115),se=n(1533),ue=n.n(se),le=n(7410),ce=n(6871),pe=n(7384),fe=n(8369),de=n(5643),ve=n(5905),me=n(505);function he(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}var ye=n(4511),ge=n(9064);function be(e){var t=e.prefixCls,n=e.motion,o=e.animation,i=e.transitionName;return n||(o?{motionName:"".concat(t,"-").concat(o)}:i?{motionName:i}:null)}function Ce(e){var t=e.prefixCls,n=e.visible,o=e.zIndex,r=e.mask,a=e.maskMotion,s=e.maskAnimation,u=e.maskTransitionName;if(!r)return null;var l={};return(a||u||s)&&(l=(0,i.Z)({motionAppear:!0},be({motion:a,prefixCls:t,transitionName:u,animation:s}))),c.createElement(ge.Z,(0,E.Z)({},l,{visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return c.createElement("div",{style:{zIndex:o},className:S()("".concat(t,"-mask"),n)})}))}var Me=n(4001),we=n(3493);function Ze(e,t){var n=null,o=null,i=new le.Z((function(e){var i=(0,R.Z)(e,1)[0].target;if(document.documentElement.contains(i)){var r=i.getBoundingClientRect(),a=r.width,s=r.height,u=Math.floor(a),l=Math.floor(s);n===u&&o===l||Promise.resolve().then((function(){t({width:u,height:l})})),n=u,o=l}}));return e&&i.observe(e),function(){i.disconnect()}}function ke(e){return"function"!=typeof e?null:e()}function Ee(e){return"object"===(0,N.Z)(e)&&e?e:null}var Te=p().forwardRef((function(e,t){var n=e.children,o=e.disabled,i=e.target,r=e.align,a=e.onAlign,s=e.monitorWindowResize,u=e.monitorBufferTime,l=void 0===u?0:u,c=p().useRef({}),f=p().useRef(),d=p().Children.only(n),v=p().useRef({});v.current.disabled=o,v.current.target=i,v.current.onAlign=a;var m=function(e,t){var n=p().useRef(!1),o=p().useRef(null);function i(){window.clearTimeout(o.current)}return[function e(a){if(n.current&&!0!==a)i(),o.current=window.setTimeout((function(){n.current=!1,e()}),t);else{if(!1===function(){var e=v.current,t=e.disabled,n=e.target,o=e.onAlign;if(!t&&n){var i,a=f.current,s=ke(n),u=Ee(n);c.current.element=s,c.current.point=u;var l=document.activeElement;return s&&(0,Me.Z)(s)?i=(0,we.E3)(a,s,r):u&&(i=(0,we.zy)(a,u,r)),function(e,t){e!==document.activeElement&&(0,pe.Z)(t,e)&&"function"==typeof e.focus&&e.focus()}(l,a),o&&i&&o(a,i),!0}return!1}())return;n.current=!0,i(),o.current=window.setTimeout((function(){n.current=!1}),t)}},function(){n.current=!1,i()}]}(0,l),h=(0,R.Z)(m,2),y=h[0],g=h[1],b=p().useRef({cancel:function(){}}),C=p().useRef({cancel:function(){}});p().useEffect((function(){var e,t,n=ke(i),o=Ee(i);f.current!==C.current.element&&(C.current.cancel(),C.current.element=f.current,C.current.cancel=Ze(f.current,y)),c.current.element===n&&((e=c.current.point)===(t=o)||e&&t&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY))||(y(),b.current.element!==n&&(b.current.cancel(),b.current.element=n,b.current.cancel=Ze(n,y)))})),p().useEffect((function(){o?g():y()}),[o]);var M=p().useRef(null);return p().useEffect((function(){s?M.current||(M.current=(0,ve.Z)(window,"resize",y)):M.current&&(M.current.remove(),M.current=null)}),[s]),p().useEffect((function(){return function(){b.current.cancel(),C.current.cancel(),M.current&&M.current.remove(),g()}}),[]),p().useImperativeHandle(t,(function(){return{forceAlign:function(){return y(!0)}}})),p().isValidElement(d)&&(d=p().cloneElement(d,{ref:(0,de.sQ)(d.ref,f)})),d}));Te.displayName="Align";var xe=Te,Pe=n(5450),Oe=n.n(Pe),De=n(7938),Se=["measure","align",null,"motion"],Ne=c.forwardRef((function(e,t){var n=e.visible,o=e.prefixCls,r=e.className,a=e.style,s=e.children,u=e.zIndex,l=e.stretch,p=e.destroyPopupOnHide,f=e.forceRender,d=e.align,v=e.point,m=e.getRootDomNode,h=e.getClassNameFromAlign,y=e.onAlign,g=e.onMouseEnter,b=e.onMouseLeave,C=e.onMouseDown,M=e.onTouchStart,w=(0,c.useRef)(),Z=(0,c.useRef)(),k=(0,c.useState)(),T=(0,R.Z)(k,2),x=T[0],P=T[1],O=function(e){var t=c.useState({width:0,height:0}),n=(0,R.Z)(t,2),o=n[0],i=n[1];return[c.useMemo((function(){var t={};if(e){var n=o.width,i=o.height;-1!==e.indexOf("height")&&i?t.height=i:-1!==e.indexOf("minHeight")&&i&&(t.minHeight=i),-1!==e.indexOf("width")&&n?t.width=n:-1!==e.indexOf("minWidth")&&n&&(t.minWidth=n)}return t}),[e,o]),function(e){i({width:e.offsetWidth,height:e.offsetHeight})}]}(l),D=(0,R.Z)(O,2),N=D[0],I=D[1],A=function(e,t){var n=(0,c.useState)(null),o=(0,R.Z)(n,2),i=o[0],r=o[1],a=(0,c.useRef)(),s=(0,c.useRef)(!1);function u(e){s.current||r(e)}function p(){ce.Z.cancel(a.current)}return(0,c.useEffect)((function(){u("measure")}),[e]),(0,c.useEffect)((function(){"measure"===i&&(l&&I(m())),i&&(a.current=(0,ce.Z)((0,De.Z)(Oe().mark((function e(){var t,n;return Oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=Se.indexOf(i),(n=Se[t+1])&&-1!==t&&u(n);case 3:case"end":return e.stop()}}),e)})))))}),[i]),(0,c.useEffect)((function(){return function(){s.current=!0,p()}}),[]),[i,function(e){p(),a.current=(0,ce.Z)((function(){u((function(e){switch(i){case"align":return"motion";case"motion":return"stable"}return e})),null==e||e()}))}]}(n),K=(0,R.Z)(A,2),V=K[0],H=K[1],L=(0,c.useRef)();function F(){var e;null===(e=w.current)||void 0===e||e.forceAlign()}function j(e,t){if("align"===V){var n=h(t);P(n),x!==n?Promise.resolve().then((function(){F()})):H((function(){var e;null===(e=L.current)||void 0===e||e.call(L)})),null==y||y(e,t)}}var z=(0,i.Z)({},be(e));function B(){return new Promise((function(e){L.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=z[e];z[e]=function(e,n){return H(),null==t?void 0:t(e,n)}})),c.useEffect((function(){z.motionName||"motion"!==V||H()}),[z.motionName,V]),c.useImperativeHandle(t,(function(){return{forceAlign:F,getElement:function(){return Z.current}}}));var W=(0,i.Z)((0,i.Z)((0,i.Z)({},N),{},{zIndex:u},a),{},{opacity:"motion"!==V&&"stable"!==V&&n?0:void 0,pointerEvents:"stable"===V?void 0:"none"}),U=!0;!(null==d?void 0:d.points)||"align"!==V&&"stable"!==V||(U=!1);var Y=s;return c.Children.count(s)>1&&(Y=c.createElement("div",{className:"".concat(o,"-content")},s)),c.createElement(ge.Z,(0,E.Z)({visible:n,ref:Z,leavedClassName:"".concat(o,"-hidden")},z,{onAppearPrepare:B,onEnterPrepare:B,removeOnLeave:p,forceRender:f}),(function(e,t){var n=e.className,a=e.style,s=S()(o,r,x,n);return c.createElement(xe,{target:v||m,key:"popup",ref:w,monitorWindowResize:!0,disabled:U,align:d,onAlign:j},c.createElement("div",{ref:t,className:s,onMouseEnter:g,onMouseLeave:b,onMouseDownCapture:C,onTouchStartCapture:M,style:(0,i.Z)((0,i.Z)({},a),W)},Y))}))}));Ne.displayName="PopupInner";var Re=Ne,Ie=c.forwardRef((function(e,t){var n=e.prefixCls,o=e.visible,r=e.zIndex,a=e.children,s=e.mobile,u=(s=void 0===s?{}:s).popupClassName,l=s.popupStyle,p=s.popupMotion,f=void 0===p?{}:p,d=s.popupRender,v=c.useRef();c.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return v.current}}}));var m=(0,i.Z)({zIndex:r},l),h=a;return c.Children.count(a)>1&&(h=c.createElement("div",{className:"".concat(n,"-content")},a)),d&&(h=d(h)),c.createElement(ge.Z,(0,E.Z)({visible:o,ref:v,removeOnLeave:!0},f),(function(e,t){var o=e.className,r=e.style,a=S()(n,u,o);return c.createElement("div",{ref:t,className:a,style:(0,i.Z)((0,i.Z)({},r),m)},h)}))}));Ie.displayName="MobilePopupInner";var Ae=Ie,Ke=c.forwardRef((function(e,t){var n=e.visible,o=e.mobile,r=(0,ae.Z)(e,["visible","mobile"]),a=(0,c.useState)(n),s=(0,R.Z)(a,2),u=s[0],l=s[1],p=(0,c.useState)(!1),f=(0,R.Z)(p,2),d=f[0],v=f[1],m=(0,i.Z)((0,i.Z)({},r),{},{visible:u});(0,c.useEffect)((function(){l(n),n&&o&&v((0,ye.Z)())}),[n,o]);var h=d?c.createElement(Ae,(0,E.Z)({},m,{mobile:o,ref:t})):c.createElement(Re,(0,E.Z)({},m,{ref:t}));return c.createElement("div",null,c.createElement(Ce,m),h)}));Ke.displayName="Popup";var Ve=Ke,He=c.createContext(null);function Le(){}var Fe,je,ze=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"],Be=(Fe=me.Z,je=function(e){(0,u.Z)(n,e);var t=(0,l.Z)(n);function n(e){var o,i;return(0,r.Z)(this,n),(o=t.call(this,e)).popupRef=c.createRef(),o.triggerRef=c.createRef(),o.onMouseEnter=function(e){var t=o.props.mouseEnterDelay;o.fireEvents("onMouseEnter",e),o.delaySetPopupVisible(!0,t,t?null:e)},o.onMouseMove=function(e){o.fireEvents("onMouseMove",e),o.setPoint(e)},o.onMouseLeave=function(e){o.fireEvents("onMouseLeave",e),o.delaySetPopupVisible(!1,o.props.mouseLeaveDelay)},o.onPopupMouseEnter=function(){o.clearDelayTimer()},o.onPopupMouseLeave=function(e){var t;e.relatedTarget&&!e.relatedTarget.setTimeout&&(0,pe.Z)(null===(t=o.popupRef.current)||void 0===t?void 0:t.getElement(),e.relatedTarget)||o.delaySetPopupVisible(!1,o.props.mouseLeaveDelay)},o.onFocus=function(e){o.fireEvents("onFocus",e),o.clearDelayTimer(),o.isFocusToShow()&&(o.focusTime=Date.now(),o.delaySetPopupVisible(!0,o.props.focusDelay))},o.onMouseDown=function(e){o.fireEvents("onMouseDown",e),o.preClickTime=Date.now()},o.onTouchStart=function(e){o.fireEvents("onTouchStart",e),o.preTouchTime=Date.now()},o.onBlur=function(e){o.fireEvents("onBlur",e),o.clearDelayTimer(),o.isBlurToHide()&&o.delaySetPopupVisible(!1,o.props.blurDelay)},o.onContextMenu=function(e){e.preventDefault(),o.fireEvents("onContextMenu",e),o.setPopupVisible(!0,e)},o.onContextMenuClose=function(){o.isContextMenuToShow()&&o.close()},o.onClick=function(e){if(o.fireEvents("onClick",e),o.focusTime){var t;if(o.preClickTime&&o.preTouchTime?t=Math.min(o.preClickTime,o.preTouchTime):o.preClickTime?t=o.preClickTime:o.preTouchTime&&(t=o.preTouchTime),Math.abs(t-o.focusTime)<20)return;o.focusTime=0}o.preClickTime=0,o.preTouchTime=0,o.isClickToShow()&&(o.isClickToHide()||o.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var n=!o.state.popupVisible;(o.isClickToHide()&&!n||n&&o.isClickToShow())&&o.setPopupVisible(!o.state.popupVisible,e)},o.onPopupMouseDown=function(){var e;o.hasPopupMouseDown=!0,clearTimeout(o.mouseDownTimeout),o.mouseDownTimeout=window.setTimeout((function(){o.hasPopupMouseDown=!1}),0),o.context&&(e=o.context).onPopupMouseDown.apply(e,arguments)},o.onDocumentClick=function(e){if(!o.props.mask||o.props.maskClosable){var t=e.target,n=o.getRootDomNode(),i=o.getPopupDomNode();(0,pe.Z)(n,t)&&!o.isContextMenuOnly()||(0,pe.Z)(i,t)||o.hasPopupMouseDown||o.close()}},o.getRootDomNode=function(){var e=o.props.getTriggerDOMNode;if(e)return e(o.triggerRef.current);try{var t=(0,fe.Z)(o.triggerRef.current);if(t)return t}catch(e){}return ue().findDOMNode((0,s.Z)(o))},o.getPopupClassNameFromAlign=function(e){var t=[],n=o.props,i=n.popupPlacement,r=n.builtinPlacements,a=n.prefixCls,s=n.alignPoint,u=n.getPopupClassNameFromAlign;return i&&r&&t.push(function(e,t,n,o){for(var i=n.points,r=Object.keys(e),a=0;a<r.length;a+=1){var s=r[a];if(he(e[s].points,i,o))return"".concat(t,"-placement-").concat(s)}return""}(r,a,e,s)),u&&t.push(u(e)),t.join(" ")},o.getComponent=function(){var e=o.props,t=e.prefixCls,n=e.destroyPopupOnHide,i=e.popupClassName,r=e.onPopupAlign,a=e.popupMotion,s=e.popupAnimation,u=e.popupTransitionName,l=e.popupStyle,p=e.mask,f=e.maskAnimation,d=e.maskTransitionName,v=e.maskMotion,m=e.zIndex,h=e.popup,y=e.stretch,g=e.alignPoint,b=e.mobile,C=e.forceRender,M=o.state,w=M.popupVisible,Z=M.point,k=o.getPopupAlign(),T={};return o.isMouseEnterToShow()&&(T.onMouseEnter=o.onPopupMouseEnter),o.isMouseLeaveToHide()&&(T.onMouseLeave=o.onPopupMouseLeave),T.onMouseDown=o.onPopupMouseDown,T.onTouchStart=o.onPopupMouseDown,c.createElement(Ve,(0,E.Z)({prefixCls:t,destroyPopupOnHide:n,visible:w,point:g&&Z,className:i,align:k,onAlign:r,animation:s,getClassNameFromAlign:o.getPopupClassNameFromAlign},T,{stretch:y,getRootDomNode:o.getRootDomNode,style:l,mask:p,zIndex:m,transitionName:u,maskAnimation:f,maskTransitionName:d,maskMotion:v,ref:o.popupRef,motion:a,mobile:b,forceRender:C}),"function"==typeof h?h():h)},o.attachParent=function(e){ce.Z.cancel(o.attachId);var t,n=o.props,i=n.getPopupContainer,r=n.getDocument,a=o.getRootDomNode();i?(a||0===i.length)&&(t=i(a)):t=r(o.getRootDomNode()).body,t?t.appendChild(e):o.attachId=(0,ce.Z)((function(){o.attachParent(e)}))},o.getContainer=function(){var e=(0,o.props.getDocument)(o.getRootDomNode()).createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",o.attachParent(e),e},o.setPoint=function(e){o.props.alignPoint&&e&&o.setState({point:{pageX:e.pageX,pageY:e.pageY}})},o.handlePortalUpdate=function(){o.state.prevPopupVisible!==o.state.popupVisible&&o.props.afterPopupVisibleChange(o.state.popupVisible)},i="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,o.state={prevPopupVisible:i,popupVisible:i},ze.forEach((function(e){o["fire".concat(e)]=function(t){o.fireEvents(e,t)}})),o}return(0,a.Z)(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e,t=this.props;if(this.state.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=(0,ve.Z)(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=(0,ve.Z)(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=(0,ve.Z)(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=(0,ve.Z)(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),ce.Z.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var e;return(null===(e=this.popupRef.current)||void 0===e?void 0:e.getElement())||null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,o=e.builtinPlacements;return t&&o?function(e,t,n){var o=e[t]||{};return(0,i.Z)((0,i.Z)({},o),n)}(o,t,n):n}},{key:"setPopupVisible",value:function(e,t){var n=this.props.alignPoint,o=this.state.popupVisible;this.clearDelayTimer(),o!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:o}),this.props.onPopupVisibleChange(e)),n&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,n){var o=this,i=1e3*t;if(this.clearDelayTimer(),i){var r=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){o.setPopupVisible(e,r),o.clearDelayTimer()}),i)}else this.setPopupVisible(e,n)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire".concat(e)]:t[e]||n[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var e=this.props.action;return"contextMenu"===e||1===e.length&&"contextMenu"===e[0]}},{key:"isContextMenuToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var e;this.state.popupVisible&&(null===(e=this.popupRef.current)||void 0===e||e.forceAlign())}},{key:"fireEvents",value:function(e,t){var n=this.props.children.props[e];n&&n(t);var o=this.props[e];o&&o(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var e=this.state.popupVisible,t=this.props,n=t.children,o=t.forceRender,r=t.alignPoint,a=t.className,s=t.autoDestroy,u=c.Children.only(n),l={key:"trigger"};this.isContextMenuToShow()?l.onContextMenu=this.onContextMenu:l.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(l.onClick=this.onClick,l.onMouseDown=this.onMouseDown,l.onTouchStart=this.onTouchStart):(l.onClick=this.createTwoChains("onClick"),l.onMouseDown=this.createTwoChains("onMouseDown"),l.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(l.onMouseEnter=this.onMouseEnter,r&&(l.onMouseMove=this.onMouseMove)):l.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?l.onMouseLeave=this.onMouseLeave:l.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(l.onFocus=this.onFocus,l.onBlur=this.onBlur):(l.onFocus=this.createTwoChains("onFocus"),l.onBlur=this.createTwoChains("onBlur"));var p=S()(u&&u.props&&u.props.className,a);p&&(l.className=p);var f=(0,i.Z)({},l);(0,de.Yr)(u)&&(f.ref=(0,de.sQ)(this.triggerRef,u.ref));var d,v=c.cloneElement(u,f);return(e||this.popupRef.current||o)&&(d=c.createElement(Fe,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!e&&s&&(d=null),c.createElement(He.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},v,d)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.popupVisible,o={};return void 0!==n&&t.popupVisible!==n&&(o.popupVisible=n,o.prevPopupVisible=t.popupVisible),o}}]),n}(c.Component),je.contextType=He,je.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:function(){return""},getDocument:function(e){return e?e.ownerDocument:window.document},onPopupVisibleChange:Le,afterPopupVisibleChange:Le,onPopupAlign:Le,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},je),We={adjustX:1,adjustY:1},Ue={topLeft:{points:["bl","tl"],overflow:We,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:We,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:We,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:We,offset:[4,0]}},Ye={topLeft:{points:["bl","tl"],overflow:We,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:We,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:We,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:We,offset:[4,0]}},_e=0,Xe={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Ge=function(e,t,n){var o=J(t),r=e.getState();e.setState({defaultActiveFirst:(0,i.Z)((0,i.Z)({},r.defaultActiveFirst),{},(0,T.Z)({},o,n))})},$e=function(e){(0,u.Z)(n,e);var t=(0,l.Z)(n);function n(e){var o;(0,r.Z)(this,n),(o=t.call(this,e)).onDestroy=function(e){o.props.onDestroy(e)},o.onKeyDown=function(e){var t=e.keyCode,n=o.menuInstance,i=o.props.store,r=o.getVisible();if(t===x.Z.ENTER)return o.onTitleClick(e),Ge(i,o.props.eventKey,!0),!0;if(t===x.Z.RIGHT)return r?n.onKeyDown(e):(o.triggerOpenChange(!0),Ge(i,o.props.eventKey,!0)),!0;if(t===x.Z.LEFT){var a;if(!r)return;return(a=n.onKeyDown(e))||(o.triggerOpenChange(!1),a=!0),a}return!r||t!==x.Z.UP&&t!==x.Z.DOWN?void 0:n.onKeyDown(e)},o.onOpenChange=function(e){o.props.onOpenChange(e)},o.onPopupVisibleChange=function(e){o.triggerOpenChange(e,e?"mouseenter":"mouseleave")},o.onMouseEnter=function(e){var t=o.props,n=t.eventKey,i=t.onMouseEnter,r=t.store;Ge(r,o.props.eventKey,!1),i({key:n,domEvent:e})},o.onMouseLeave=function(e){var t=o.props,n=t.parentMenu,i=t.eventKey,r=t.onMouseLeave;n.subMenuInstance=(0,s.Z)(o),r({key:i,domEvent:e})},o.onTitleMouseEnter=function(e){var t=o.props,n=t.eventKey,i=t.onItemHover,r=t.onTitleMouseEnter;i({key:n,hover:!0}),r({key:n,domEvent:e})},o.onTitleMouseLeave=function(e){var t=o.props,n=t.parentMenu,i=t.eventKey,r=t.onItemHover,a=t.onTitleMouseLeave;n.subMenuInstance=(0,s.Z)(o),r({key:i,hover:!1}),a({key:i,domEvent:e})},o.onTitleClick=function(e){var t=(0,s.Z)(o).props;t.onTitleClick({key:t.eventKey,domEvent:e}),"hover"!==t.triggerSubMenuAction&&(o.triggerOpenChange(!o.getVisible(),"click"),Ge(t.store,o.props.eventKey,!1))},o.onSubMenuClick=function(e){"function"==typeof o.props.onClick&&o.props.onClick(o.addKeyPath(e))},o.onSelect=function(e){o.props.onSelect(e)},o.onDeselect=function(e){o.props.onDeselect(e)},o.getPrefixCls=function(){return"".concat(o.props.rootPrefixCls,"-submenu")},o.getActiveClassName=function(){return"".concat(o.getPrefixCls(),"-active")},o.getDisabledClassName=function(){return"".concat(o.getPrefixCls(),"-disabled")},o.getSelectedClassName=function(){return"".concat(o.getPrefixCls(),"-selected")},o.getOpenClassName=function(){return"".concat(o.props.rootPrefixCls,"-submenu-open")},o.getVisible=function(){return o.state.isOpen},o.getMode=function(){return o.state.mode},o.saveMenuInstance=function(e){o.menuInstance=e},o.addKeyPath=function(e){return(0,i.Z)((0,i.Z)({},e),{},{keyPath:(e.keyPath||[]).concat(o.props.eventKey)})},o.triggerOpenChange=function(e,t){var n=o.props.eventKey,i=function(){o.onOpenChange({key:n,item:(0,s.Z)(o),trigger:t,open:e})};"mouseenter"===t?o.mouseenterTimeout=setTimeout((function(){i()}),0):i()},o.isChildrenSelected=function(){var e={find:!1};return te(o.props.children,o.props.selectedKeys,e),e.find},o.isInlineMode=function(){return"inline"===o.getMode()},o.adjustWidth=function(){if(o.subMenuTitle&&o.menuInstance){var e=se.findDOMNode(o.menuInstance);e.offsetWidth>=o.subMenuTitle.offsetWidth||(e.style.minWidth="".concat(o.subMenuTitle.offsetWidth,"px"))}},o.saveSubMenuTitle=function(e){o.subMenuTitle=e},o.getBaseProps=function(){var e=(0,s.Z)(o).props,t=o.getMode();return{mode:"horizontal"===t?"vertical":t,visible:o.getVisible(),level:e.level+1,inlineIndent:e.inlineIndent,focusable:!1,onClick:o.onSubMenuClick,onSelect:o.onSelect,onDeselect:o.onDeselect,onDestroy:o.onDestroy,selectedKeys:e.selectedKeys,eventKey:"".concat(e.eventKey,"-menu-"),openKeys:e.openKeys,motion:e.motion,onOpenChange:o.onOpenChange,subMenuOpenDelay:e.subMenuOpenDelay,parentMenu:(0,s.Z)(o),subMenuCloseDelay:e.subMenuCloseDelay,forceSubMenuRender:e.forceSubMenuRender,triggerSubMenuAction:e.triggerSubMenuAction,builtinPlacements:e.builtinPlacements,defaultActiveFirst:e.store.getState().defaultActiveFirst[J(e.eventKey)],multiple:e.multiple,prefixCls:e.rootPrefixCls,id:o.internalMenuId,manualRef:o.saveMenuInstance,itemIcon:e.itemIcon,expandIcon:e.expandIcon,direction:e.direction}},o.getMotion=function(e,t){var n=(0,s.Z)(o).haveRendered,r=o.props,a=r.motion,u=r.rootPrefixCls;return(0,i.Z)((0,i.Z)({},a),{},{leavedClassName:"".concat(u,"-hidden"),removeOnLeave:!1,motionAppear:n||!t||"inline"!==e})};var a=e.store,u=e.eventKey,l=a.getState().defaultActiveFirst;o.isRootMenu=!1;var c=!1;return l&&(c=l[u]),Ge(a,u,c),o.state={mode:e.mode,isOpen:e.isOpen},o}return(0,a.Z)(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this,t=this.props,n=t.mode,o=t.parentMenu,i=t.manualRef,r=t.isOpen,a=function(){e.setState({mode:n,isOpen:r})},s=r!==this.state.isOpen,u=n!==this.state.mode;(u||s)&&(ce.Z.cancel(this.updateStateRaf),u?this.updateStateRaf=(0,ce.Z)(a):a()),i&&i(this),"horizontal"===n&&(null==o?void 0:o.isRootMenu)&&r&&(this.minWidthTimeout=setTimeout((function(){return e.adjustWidth()}),0))}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.onDestroy,n=e.eventKey;t&&t(n),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),ce.Z.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(e,t){var n=this.getBaseProps();return c.createElement(st,Object.assign({},n,{id:this.internalMenuId,className:e,style:t}),this.props.children)}},{key:"renderChildren",value:function(){var e=this,t=this.getBaseProps(),n=t.mode,o=t.visible,i=t.forceSubMenuRender,r=t.direction,a=this.getMotion(n,o);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||o||i,!this.haveOpened)return c.createElement("div",null);var s=S()("".concat(t.prefixCls,"-sub"),(0,T.Z)({},"".concat(t.prefixCls,"-rtl"),"rtl"===r));return this.isInlineMode()?c.createElement(ge.Z,Object.assign({visible:t.visible},a),(function(t){var n=t.className,o=t.style,i=S()(s,n);return e.renderPopupMenu(i,o)})):this.renderPopupMenu(s)}},{key:"render",value:function(){var e,t,n,o=(0,i.Z)({},this.props),r=this.getVisible(),a=this.getPrefixCls(),s=this.isInlineMode(),u=this.getMode(),l=S()(a,"".concat(a,"-").concat(u),(e={},(0,T.Z)(e,o.className,!!o.className),(0,T.Z)(e,this.getOpenClassName(),r),(0,T.Z)(e,this.getActiveClassName(),o.active||r&&!s),(0,T.Z)(e,this.getDisabledClassName(),o.disabled),(0,T.Z)(e,this.getSelectedClassName(),this.isChildrenSelected()),e));this.internalMenuId||(o.eventKey?this.internalMenuId="".concat(o.eventKey,"$Menu"):(_e+=1,this.internalMenuId="$__$".concat(_e,"$Menu")));var p={},f={},d={};o.disabled||(p={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},f={onClick:this.onTitleClick},d={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var v={},m="rtl"===o.direction;s&&(m?v.paddingRight=o.inlineIndent*o.level:v.paddingLeft=o.inlineIndent*o.level);var h={};this.getVisible()&&(h={"aria-owns":this.internalMenuId});var y=null;"horizontal"!==u&&(y=this.props.expandIcon,"function"==typeof this.props.expandIcon&&(y=c.createElement(this.props.expandIcon,(0,i.Z)({},this.props))));var g=c.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:v,className:"".concat(a,"-title"),role:"button"},d,f,{"aria-expanded":r},h,{"aria-haspopup":"true",title:"string"==typeof o.title?o.title:void 0}),o.title,y||c.createElement("i",{className:"".concat(a,"-arrow")})),b=this.renderChildren(),C=(null===(t=o.parentMenu)||void 0===t?void 0:t.isRootMenu)?o.parentMenu.props.getPopupContainer:function(e){return e.parentNode},M=Xe[u],w=o.popupOffset?{offset:o.popupOffset}:{},Z=S()((n={},(0,T.Z)(n,o.popupClassName,o.popupClassName&&!s),(0,T.Z)(n,"".concat(a,"-rtl"),m),n)),k=o.disabled,E=o.triggerSubMenuAction,x=o.subMenuOpenDelay,P=o.forceSubMenuRender,O=o.subMenuCloseDelay,D=o.builtinPlacements;ne.forEach((function(e){return delete o[e]})),delete o.onClick;var N=m?Object.assign({},Ye,D):Object.assign({},Ue,D);delete o.direction;var R=this.getBaseProps(),I=s?null:this.getMotion(R.mode,R.visible);return c.createElement("li",Object.assign({},o,p,{className:l,role:"menuitem"}),c.createElement(Be,{prefixCls:a,popupClassName:S()("".concat(a,"-popup"),Z),getPopupContainer:C,builtinPlacements:N,popupPlacement:M,popupVisible:!s&&r,popupAlign:w,popup:s?null:b,action:k||s?[]:[E],mouseEnterDelay:x,mouseLeaveDelay:O,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:P,popupMotion:I},g),s?b:null)}}]),n}(c.Component);$e.defaultProps={onMouseEnter:q,onMouseLeave:q,onTitleMouseEnter:q,onTitleMouseLeave:q,onTitleClick:q,manualRef:q,mode:"vertical",title:""};var qe=w((function(e,t){var n=e.openKeys,o=e.activeKey,i=e.selectedKeys,r=t.eventKey,a=t.subMenuKey;return{isOpen:n.indexOf(r)>-1,active:o[a]===r,selectedKeys:i}}))($e);qe.isSubMenu=!0;var Qe=qe,Je="menuitem-overflowed",et=function(e){(0,u.Z)(n,e);var t=(0,l.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).resizeObserver=null,e.mutationObserver=null,e.originalTotalWidth=0,e.overflowedItems=[],e.menuItemSizes=[],e.cancelFrameId=null,e.state={lastVisibleIndex:void 0},e.getMenuItemNodes=function(){var t=e.props.prefixCls,n=se.findDOMNode((0,s.Z)(e));return n?[].slice.call(n.children).filter((function(e){return e.className.split(" ").indexOf("".concat(t,"-overflowed-submenu"))<0})):[]},e.getOverflowedSubMenuItem=function(t,n,o){var r=e.props,a=r.overflowedIndicator,s=r.level,u=r.mode,l=r.prefixCls,p=r.theme;if(1!==s||"horizontal"!==u)return null;var f=e.props.children[0].props,d=(f.children,f.title,f.style),v=(0,ae.Z)(f,["children","title","style"]),m=(0,i.Z)({},d),h="".concat(t,"-overflowed-indicator"),y="".concat(t,"-overflowed-indicator");0===n.length&&!0!==o?m=(0,i.Z)((0,i.Z)({},m),{},{display:"none"}):o&&(m=(0,i.Z)((0,i.Z)({},m),{},{visibility:"hidden",position:"absolute"}),h="".concat(h,"-placeholder"),y="".concat(y,"-placeholder"));var g=p?"".concat(l,"-").concat(p):"",b={};return ne.forEach((function(e){void 0!==v[e]&&(b[e]=v[e])})),c.createElement(Qe,Object.assign({title:a,className:"".concat(l,"-overflowed-submenu"),popupClassName:g},b,{key:h,eventKey:y,disabled:!1,style:m}),n)},e.setChildrenWidthAndResize=function(){if("horizontal"===e.props.mode){var t=se.findDOMNode((0,s.Z)(e));if(t){var n=t.children;if(n&&0!==n.length){var o=t.children[n.length-1];ie(o,"display","inline-block");var i=e.getMenuItemNodes(),r=i.filter((function(e){return e.className.split(" ").indexOf(Je)>=0}));r.forEach((function(e){ie(e,"display","inline-block")})),e.menuItemSizes=i.map((function(e){return oe(e,!0)})),r.forEach((function(e){ie(e,"display","none")})),e.overflowedIndicatorWidth=oe(t.children[t.children.length-1],!0),e.originalTotalWidth=e.menuItemSizes.reduce((function(e,t){return e+t}),0),e.handleResize(),ie(o,"display","none")}}}},e.handleResize=function(){if("horizontal"===e.props.mode){var t=se.findDOMNode((0,s.Z)(e));if(t){var n=oe(t);e.overflowedItems=[];var o,i=0;e.originalTotalWidth>n+.5&&(o=-1,e.menuItemSizes.forEach((function(t){(i+=t)+e.overflowedIndicatorWidth<=n&&(o+=1)}))),e.setState({lastVisibleIndex:o})}}},e}return(0,a.Z)(n,[{key:"componentDidMount",value:function(){var e=this;if(this.setChildrenWidthAndResize(),1===this.props.level&&"horizontal"===this.props.mode){var t=se.findDOMNode(this);if(!t)return;this.resizeObserver=new le.Z((function(t){t.forEach((function(){var t=e.cancelFrameId;cancelAnimationFrame(t),e.cancelFrameId=requestAnimationFrame(e.setChildrenWidthAndResize)}))})),[].slice.call(t.children).concat(t).forEach((function(t){e.resizeObserver.observe(t)})),"undefined"!=typeof MutationObserver&&(this.mutationObserver=new MutationObserver((function(){e.resizeObserver.disconnect(),[].slice.call(t.children).concat(t).forEach((function(t){e.resizeObserver.observe(t)})),e.setChildrenWidthAndResize()})),this.mutationObserver.observe(t,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(e){var t=this,n=this.state.lastVisibleIndex;return(e||[]).reduce((function(o,i,r){var a=i;if("horizontal"===t.props.mode){var s=t.getOverflowedSubMenuItem(i.props.eventKey,[]);void 0!==n&&-1!==t.props.className.indexOf("".concat(t.props.prefixCls,"-root"))&&(r>n&&(a=c.cloneElement(i,{style:{display:"none"},eventKey:"".concat(i.props.eventKey,"-hidden"),className:"".concat(Je)})),r===n+1&&(t.overflowedItems=e.slice(n+1).map((function(e){return c.cloneElement(e,{key:e.props.eventKey,mode:"vertical-left"})})),s=t.getOverflowedSubMenuItem(i.props.eventKey,t.overflowedItems)));var u=[].concat((0,re.Z)(o),[s,a]);return r===e.length-1&&u.push(t.getOverflowedSubMenuItem(i.props.eventKey,[],!0)),u}return[].concat((0,re.Z)(o),[a])}),[])}},{key:"render",value:function(){var e=this.props,t=(e.visible,e.prefixCls,e.overflowedIndicator,e.mode,e.level,e.tag),n=e.children,o=(e.theme,(0,ae.Z)(e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"])),i=t;return c.createElement(i,Object.assign({},o),this.renderChildren(n))}}]),n}(c.Component);et.defaultProps={tag:"div",className:""};var tt=et;function nt(e,t,n){var o=e.getState();e.setState({activeKey:(0,i.Z)((0,i.Z)({},o.activeKey),{},(0,T.Z)({},t,n))})}function ot(e){return e.eventKey||"0-menu-"}function it(e,t){var n,o=t,i=e.children,r=e.eventKey;return o&&(ee(i,(function(e,t){e&&e.props&&!e.props.disabled&&o===Q(e,r,t)&&(n=!0)})),n)?o:(o=null,e.defaultActiveFirst?(ee(i,(function(e,t){o||!e||e.props.disabled||(o=Q(e,r,t))})),o):o)}function rt(e){if(e){var t=this.instanceArray.indexOf(e);-1!==t?this.instanceArray[t]=e:this.instanceArray.push(e)}}var at=function(e){(0,u.Z)(n,e);var t=(0,l.Z)(n);function n(e){var o;return(0,r.Z)(this,n),(o=t.call(this,e)).onKeyDown=function(e,t){var n,i=e.keyCode;if(o.getFlatInstanceArray().forEach((function(t){t&&t.props.active&&t.onKeyDown&&(n=t.onKeyDown(e))})),n)return 1;var r=null;return i!==x.Z.UP&&i!==x.Z.DOWN||(r=o.step(i===x.Z.UP?-1:1)),r?(e.preventDefault(),nt(o.props.store,ot(o.props),r.props.eventKey),"function"==typeof t&&t(r),1):void 0},o.onItemHover=function(e){var t=e.key,n=e.hover;nt(o.props.store,ot(o.props),n?t:null)},o.onDeselect=function(e){o.props.onDeselect(e)},o.onSelect=function(e){o.props.onSelect(e)},o.onClick=function(e){o.props.onClick(e)},o.onOpenChange=function(e){o.props.onOpenChange(e)},o.onDestroy=function(e){o.props.onDestroy(e)},o.getFlatInstanceArray=function(){return o.instanceArray},o.step=function(e){var t=o.getFlatInstanceArray(),n=o.props.store.getState().activeKey[ot(o.props)],i=t.length;if(!i)return null;e<0&&(t=t.concat().reverse());var r=-1;if(t.every((function(e,t){return!e||e.props.eventKey!==n||(r=t,!1)})),o.props.defaultActiveFirst||-1===r||(a=t.slice(r,i-1)).length&&!a.every((function(e){return!!e.props.disabled}))){var a,s=(r+1)%i,u=s;do{var l=t[u];if(l&&!l.props.disabled)return l;u=(u+1)%i}while(u!==s);return null}},o.renderCommonMenuItem=function(e,t,n){var r=o.props.store.getState(),a=(0,s.Z)(o).props,u=Q(e,a.eventKey,t),l=e.props;if(!l||"string"==typeof e.type)return e;var p=u===r.activeKey,f=(0,i.Z)((0,i.Z)({mode:l.mode||a.mode,level:a.level,inlineIndent:a.inlineIndent,renderMenuItem:o.renderMenuItem,rootPrefixCls:a.prefixCls,index:t,parentMenu:a.parentMenu,manualRef:l.disabled?void 0:P(e.ref,rt.bind((0,s.Z)(o))),eventKey:u,active:!l.disabled&&p,multiple:a.multiple,onClick:function(e){(l.onClick||q)(e),o.onClick(e)},onItemHover:o.onItemHover,motion:a.motion,subMenuOpenDelay:a.subMenuOpenDelay,subMenuCloseDelay:a.subMenuCloseDelay,forceSubMenuRender:a.forceSubMenuRender,onOpenChange:o.onOpenChange,onDeselect:o.onDeselect,onSelect:o.onSelect,builtinPlacements:a.builtinPlacements,itemIcon:l.itemIcon||o.props.itemIcon,expandIcon:l.expandIcon||o.props.expandIcon},n),{},{direction:a.direction});return("inline"===a.mode||$.any)&&(f.triggerSubMenuAction="click"),c.cloneElement(e,(0,i.Z)((0,i.Z)({},f),{},{key:u||t}))},o.renderMenuItem=function(e,t,n){if(!e)return null;var i=o.props.store.getState(),r={openKeys:i.openKeys,selectedKeys:i.selectedKeys,triggerSubMenuAction:o.props.triggerSubMenuAction,subMenuKey:n};return o.renderCommonMenuItem(e,t,r)},e.store.setState({activeKey:(0,i.Z)((0,i.Z)({},e.store.getState().activeKey),{},(0,T.Z)({},e.eventKey,it(e,e.activeKey)))}),o.instanceArray=[],o}return(0,a.Z)(n,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(e){return this.props.visible||e.visible||this.props.className!==e.className||!h()(this.props.style,e.style)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n="activeKey"in t?t.activeKey:t.store.getState().activeKey[ot(t)],o=it(t,n);(o!==n||"activeKey"in e&&o!==it(e,e.activeKey))&&nt(t.store,ot(t),o)}},{key:"render",value:function(){var e=this,t=(0,E.Z)({},this.props);this.instanceArray=[];var n={className:S()(t.prefixCls,t.className,"".concat(t.prefixCls,"-").concat(t.mode)),role:t.role||"menu"};t.id&&(n.id=t.id),t.focusable&&(n.tabIndex=0,n.onKeyDown=this.onKeyDown);var o=t.prefixCls,i=t.eventKey,r=t.visible,a=t.level,s=t.mode,u=t.overflowedIndicator,l=t.theme;return ne.forEach((function(e){return delete t[e]})),delete t.onClick,c.createElement(tt,Object.assign({},t,{prefixCls:o,mode:s,tag:"ul",level:a,theme:l,visible:r,overflowedIndicator:u},n),(0,O.Z)(t.children).map((function(t,n){return e.renderMenuItem(t,n,i||"0-menu-")})))}}]),n}(c.Component);at.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:q};var st=w()(at),ut=n(1894);function lt(e,t,n){var o=e.prefixCls,i=e.motion,r=e.defaultMotions,a=void 0===r?{}:r,s=e.openAnimation,u=e.openTransitionName,l=t.switchingModeFromInline;if(i)return i;if("object"===(0,N.Z)(s)&&s)(0,ut.ZP)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if("string"==typeof s)return{motionName:"".concat(o,"-open-").concat(s)};return u?{motionName:u}:a[n]||(l?null:a.other)}var ct=function(e){(0,u.Z)(n,e);var t=(0,l.Z)(n);function n(e){var o;(0,r.Z)(this,n),(o=t.call(this,e)).onSelect=function(e){var t=(0,s.Z)(o).props;if(t.selectable){var n=o.store.getState().selectedKeys,r=e.key;n=t.multiple?n.concat([r]):[r],"selectedKeys"in t||o.store.setState({selectedKeys:n}),t.onSelect((0,i.Z)((0,i.Z)({},e),{},{selectedKeys:n}))}},o.onClick=function(e){var t=o.getRealMenuMode(),n=(0,s.Z)(o),i=n.store,r=n.props.onOpenChange;"inline"===t||"openKeys"in o.props||(i.setState({openKeys:[]}),r([])),o.props.onClick(e)},o.onKeyDown=function(e,t){o.innerMenu.getWrappedInstance().onKeyDown(e,t)},o.onOpenChange=function(e){var t=(0,s.Z)(o).props,n=o.store.getState().openKeys.concat(),i=!1,r=function(e){var t=!1;if(e.open)(t=-1===n.indexOf(e.key))&&n.push(e.key);else{var o=n.indexOf(e.key);(t=-1!==o)&&n.splice(o,1)}i=i||t};Array.isArray(e)?e.forEach(r):r(e),i&&("openKeys"in o.props||o.store.setState({openKeys:n}),t.onOpenChange(n))},o.onDeselect=function(e){var t=(0,s.Z)(o).props;if(t.selectable){var n=o.store.getState().selectedKeys.concat(),r=e.key,a=n.indexOf(r);-1!==a&&n.splice(a,1),"selectedKeys"in t||o.store.setState({selectedKeys:n}),t.onDeselect((0,i.Z)((0,i.Z)({},e),{},{selectedKeys:n}))}},o.onMouseEnter=function(e){o.restoreModeVerticalFromInline();var t=o.props.onMouseEnter;t&&t(e)},o.onTransitionEnd=function(e){var t="width"===e.propertyName&&e.target===e.currentTarget,n=e.target.className,i="[object SVGAnimatedString]"===Object.prototype.toString.call(n)?n.animVal:n,r="font-size"===e.propertyName&&i.indexOf("anticon")>=0;(t||r)&&o.restoreModeVerticalFromInline()},o.setInnerMenu=function(e){o.innerMenu=e},o.isRootMenu=!0;var a,u,l,c=e.defaultSelectedKeys,p=e.defaultOpenKeys;return"selectedKeys"in e&&(c=e.selectedKeys||[]),"openKeys"in e&&(p=e.openKeys||[]),o.store=(a={selectedKeys:c,openKeys:p,activeKey:{"0-menu-":it(e,e.activeKey)}},u=a,l=[],{setState:function(e){u=Z(Z({},u),e);for(var t=0;t<l.length;t++)l[t]()},getState:function(){return u},subscribe:function(e){return l.push(e),function(){var t=l.indexOf(e);l.splice(t,1)}}}),o.state={switchingModeFromInline:!1,prevProps:e,inlineOpenKeys:[],store:o.store},o}return(0,a.Z)(n,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.siderCollapsed,o=t.inlineCollapsed,i=t.onOpenChange;(!e.inlineCollapsed&&o||!e.siderCollapsed&&n)&&i([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var e=this.props.collapsedWidth,t=this.store,n=this.prevOpenKeys;!this.getInlineCollapsed()||0!==e&&"0"!==e&&"0px"!==e?n&&(this.store.setState({openKeys:n}),this.prevOpenKeys=null):(this.prevOpenKeys=t.getState().openKeys.concat(),this.store.setState({openKeys:[]}))}},{key:"getRealMenuMode",value:function(){var e=this.props.mode,t=this.state.switchingModeFromInline,n=this.getInlineCollapsed();return t&&n?"inline":n?"vertical":e}},{key:"getInlineCollapsed",value:function(){var e=this.props,t=e.inlineCollapsed,n=e.siderCollapsed;return void 0!==n?n:t}},{key:"restoreModeVerticalFromInline",value:function(){this.state.switchingModeFromInline&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var e=(0,i.Z)({},(0,k.Z)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),t=this.getRealMenuMode();return e.className+=" ".concat(e.prefixCls,"-root"),"rtl"===e.direction&&(e.className+=" ".concat(e.prefixCls,"-rtl")),delete(e=(0,i.Z)((0,i.Z)({},e),{},{mode:t,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:lt(this.props,this.state,t)})).openAnimation,delete e.openTransitionName,c.createElement(v,{store:this.store},c.createElement(st,Object.assign({},e,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,o=t.store,i=o.getState(),r={},a={prevProps:e};return"inline"===n.mode&&"inline"!==e.mode&&(a.switchingModeFromInline=!0),"openKeys"in e?r.openKeys=e.openKeys:((e.inlineCollapsed&&!n.inlineCollapsed||e.siderCollapsed&&!n.siderCollapsed)&&(a.switchingModeFromInline=!0,a.inlineOpenKeys=i.openKeys,r.openKeys=[]),(!e.inlineCollapsed&&n.inlineCollapsed||!e.siderCollapsed&&n.siderCollapsed)&&(r.openKeys=t.inlineOpenKeys,a.inlineOpenKeys=[])),Object.keys(r).length&&o.setState(r),a}}]),n}(c.Component);ct.defaultProps={selectable:!0,onClick:q,onSelect:q,onOpenChange:q,onDeselect:q,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:c.createElement("span",null,"···")};var pt=ct,ft=function(e){(0,u.Z)(n,e);var t=(0,l.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).onKeyDown=function(t){if(t.keyCode===x.Z.ENTER)return e.onClick(t),!0},e.onMouseLeave=function(t){var n=e.props,o=n.eventKey,i=n.onItemHover,r=n.onMouseLeave;i({key:o,hover:!1}),r({key:o,domEvent:t})},e.onMouseEnter=function(t){var n=e.props,o=n.eventKey,i=n.onItemHover,r=n.onMouseEnter;i({key:o,hover:!0}),r({key:o,domEvent:t})},e.onClick=function(t){var n=e.props,o=n.eventKey,i=n.multiple,r=n.onClick,a=n.onSelect,u=n.onDeselect,l=n.isSelected,c={key:o,keyPath:[o],item:(0,s.Z)(e),domEvent:t};r(c),i?l?u(c):a(c):l||a(c)},e.saveNode=function(t){e.node=t},e}return(0,a.Z)(n,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var e=this.props;e.onDestroy&&e.onDestroy(e.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var e,t=(0,i.Z)({},this.props),n=S()(this.getPrefixCls(),t.className,(e={},(0,T.Z)(e,this.getActiveClassName(),!t.disabled&&t.active),(0,T.Z)(e,this.getSelectedClassName(),t.isSelected),(0,T.Z)(e,this.getDisabledClassName(),t.disabled),e)),o=(0,i.Z)((0,i.Z)({},t.attribute),{},{title:"string"==typeof t.title?t.title:void 0,className:n,role:t.role||"menuitem","aria-disabled":t.disabled});"option"===t.role?o=(0,i.Z)((0,i.Z)({},o),{},{role:"option","aria-selected":t.isSelected}):null!==t.role&&"none"!==t.role||(o.role="none");var r={onClick:t.disabled?null:this.onClick,onMouseLeave:t.disabled?null:this.onMouseLeave,onMouseEnter:t.disabled?null:this.onMouseEnter},a=(0,i.Z)({},t.style);"inline"===t.mode&&("rtl"===t.direction?a.paddingRight=t.inlineIndent*t.level:a.paddingLeft=t.inlineIndent*t.level),ne.forEach((function(e){return delete t[e]})),delete t.direction;var s=this.props.itemIcon;return"function"==typeof this.props.itemIcon&&(s=c.createElement(this.props.itemIcon,this.props)),c.createElement("li",Object.assign({},(0,k.Z)(t,["onClick","onMouseEnter","onMouseLeave","onSelect"]),o,r,{style:a,ref:this.saveNode}),t.children,s)}}]),n}(c.Component);ft.isMenuItem=!0,ft.defaultProps={onSelect:q,onMouseEnter:q,onMouseLeave:q,manualRef:q};var dt=w((function(e,t){var n=e.activeKey,o=e.selectedKeys,i=t.eventKey;return{active:n[t.subMenuKey]===i,isSelected:-1!==o.indexOf(i)}}))(ft),vt=function(e){(0,u.Z)(n,e);var t=(0,l.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).renderInnerMenuItem=function(t){var n=e.props;return(0,n.renderMenuItem)(t,n.index,e.props.subMenuKey)},e}return(0,a.Z)(n,[{key:"render",value:function(){var e=(0,E.Z)({},this.props),t=e.className,n=void 0===t?"":t,o=e.rootPrefixCls,i="".concat(o,"-item-group-title"),r="".concat(o,"-item-group-list"),a=e.title,s=e.children;return ne.forEach((function(t){return delete e[t]})),delete e.onClick,delete e.direction,c.createElement("li",Object.assign({},e,{className:"".concat(n," ").concat(o,"-item-group")}),c.createElement("div",{className:i,title:"string"==typeof a?a:void 0},a),c.createElement("ul",{className:r},c.Children.map(s,this.renderInnerMenuItem)))}}]),n}(c.Component);vt.isMenuItemGroup=!0,vt.defaultProps={disabled:!0};var mt=vt,ht=function(e){var t=e.className,n=e.rootPrefixCls,o=e.style;return c.createElement("li",{className:"".concat(t," ").concat(n,"-item-divider"),style:o})};ht.defaultProps={disabled:!0,className:"",style:{}};var yt=ht,gt=pt},5724:function(e){e.exports=function(e,t,n,o){var i=n?n.call(o,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),u=0;u<r.length;u++){var l=r[u];if(!s(l))return!1;var c=e[l],p=t[l];if(!1===(i=n?n.call(o,c,p,l):void 0)||void 0===i&&c!==p)return!1}return!0}},5723:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var o=n(7363),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},r=n(2545),a=function(e,t){return o.createElement(r.Z,Object.assign({},e,{ref:t,icon:i}))};a.displayName="EllipsisOutlined";var s=o.forwardRef(a)},8172:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var o=n(7363),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},r=n(2545),a=function(e,t){return o.createElement(r.Z,Object.assign({},e,{ref:t,icon:i}))};a.displayName="PlusOutlined";var s=o.forwardRef(a)},9697:function(e,t,n){"use strict";n.d(t,{Z:function(){return G}});var o=n(4741),i=n(63),r=n(7363),a=n(7228),s=n(3429),u=n(4115),l=n(2711),c=n(2286),p=n.n(c),f=n(4237),d=n(4511),v=n(8833),m=n(7870),h=n(6871),y=n(2177);function g(e){var t=(0,r.useRef)(),n=(0,r.useRef)(!1);return(0,r.useEffect)((function(){return function(){n.current=!0,h.Z.cancel(t.current)}}),[]),function(){for(var o=arguments.length,i=new Array(o),r=0;r<o;r++)i[r]=arguments[r];n.current||(h.Z.cancel(t.current),t.current=(0,h.Z)((function(){e.apply(void 0,i)})))}}var b=n(5065);function C(e,t){var n,o=e.prefixCls,a=e.id,s=e.active,u=e.rtl,l=e.tab,c=l.key,f=l.tab,d=l.disabled,v=l.closeIcon,m=e.tabBarGutter,h=e.tabPosition,y=e.closable,g=e.renderWrapper,C=e.removeAriaLabel,M=e.editable,w=e.onClick,Z=e.onRemove,k=e.onFocus,E="".concat(o,"-tab");r.useEffect((function(){return Z}),[]);var T={};"top"===h||"bottom"===h?T[u?"marginLeft":"marginRight"]=m:T.marginBottom=m;var x=M&&!1!==y&&!d;function P(e){d||w(e)}var O=r.createElement("div",{key:c,ref:t,className:p()(E,(n={},(0,i.Z)(n,"".concat(E,"-with-remove"),x),(0,i.Z)(n,"".concat(E,"-active"),s),(0,i.Z)(n,"".concat(E,"-disabled"),d),n)),style:T,onClick:P},r.createElement("div",{role:"tab","aria-selected":s,id:a&&"".concat(a,"-tab-").concat(c),className:"".concat(E,"-btn"),"aria-controls":a&&"".concat(a,"-panel-").concat(c),"aria-disabled":d,tabIndex:d?null:0,onClick:function(e){e.stopPropagation(),P(e)},onKeyDown:function(e){[b.Z.SPACE,b.Z.ENTER].includes(e.which)&&(e.preventDefault(),P(e))},onFocus:k},f),x&&r.createElement("button",{type:"button","aria-label":C||"remove",tabIndex:0,className:"".concat(E,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),M.onEdit("remove",{key:c,event:t})}},v||M.removeIcon||"×"));return g&&(O=g(O)),O}var M=r.forwardRef(C),w={width:0,height:0,left:0,top:0},Z={width:0,height:0,left:0,top:0,right:0},k=n(1987),E=n(7933);function T(e,t){var n=e.prefixCls,o=e.editable,i=e.locale,a=e.style;return o&&!1!==o.showAdd?r.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(null==i?void 0:i.addAriaLabel)||"Add tab",onClick:function(e){o.onEdit("add",{event:e})}},o.addIcon||"+"):null}var x=r.forwardRef(T);function P(e,t){var n=e.prefixCls,o=e.id,s=e.tabs,u=e.locale,l=e.mobile,c=e.moreIcon,f=void 0===c?"More":c,d=e.moreTransitionName,v=e.style,m=e.className,h=e.editable,y=e.tabBarGutter,g=e.rtl,C=e.onTabClick,M=(0,r.useState)(!1),w=(0,a.Z)(M,2),Z=w[0],T=w[1],P=(0,r.useState)(null),O=(0,a.Z)(P,2),D=O[0],S=O[1],N="".concat(o,"-more-popup"),R="".concat(n,"-dropdown"),I=null!==D?"".concat(N,"-").concat(D):null,A=null==u?void 0:u.dropdownAriaLabel,K=r.createElement(k.ZP,{onClick:function(e){var t=e.key,n=e.domEvent;C(t,n),T(!1)},id:N,tabIndex:-1,role:"listbox","aria-activedescendant":I,selectedKeys:[D],"aria-label":void 0!==A?A:"expanded dropdown"},s.map((function(e){return r.createElement(k.sN,{key:e.key,id:"".concat(N,"-").concat(e.key),role:"option","aria-controls":o&&"".concat(o,"-panel-").concat(e.key),disabled:e.disabled},e.tab)})));function V(e){for(var t=s.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===D}))||0,o=t.length,i=0;i<o;i+=1){var r=t[n=(n+e+o)%o];if(!r.disabled)return void S(r.key)}}(0,r.useEffect)((function(){var e=document.getElementById(I);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),[D]),(0,r.useEffect)((function(){Z||S(null)}),[Z]);var H=(0,i.Z)({},g?"marginLeft":"marginRight",y);s.length||(H.visibility="hidden",H.order=1);var L=p()((0,i.Z)({},"".concat(R,"-rtl"),g)),F=l?null:r.createElement(E.Z,{prefixCls:R,overlay:K,trigger:["hover"],visible:Z,transitionName:d,onVisibleChange:T,overlayClassName:L,mouseEnterDelay:.1,mouseLeaveDelay:.1},r.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:H,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":N,id:"".concat(o,"-more"),"aria-expanded":Z,onKeyDown:function(e){var t=e.which;if(Z)switch(t){case b.Z.UP:V(-1),e.preventDefault();break;case b.Z.DOWN:V(1),e.preventDefault();break;case b.Z.ESC:T(!1);break;case b.Z.SPACE:case b.Z.ENTER:null!==D&&C(D,e)}else[b.Z.DOWN,b.Z.SPACE,b.Z.ENTER].includes(t)&&(T(!0),e.preventDefault())}},f));return r.createElement("div",{className:p()("".concat(n,"-nav-operations"),m),style:v,ref:t},F,r.createElement(x,{prefixCls:n,locale:u,editable:h}))}var O=r.forwardRef(P),D=(0,r.createContext)(null),S=Math.pow(.995,20);function N(e,t){var n=r.useRef(e),o=r.useState({}),i=(0,a.Z)(o,2)[1];return[n.current,function(e){var o="function"==typeof e?e(n.current):e;o!==n.current&&t(o,n.current),n.current=o,i({})}]}var R=function(e){var t,n=e.position,o=e.prefixCls,i=e.extra;if(!i)return null;var a=i;return"right"===n&&(t=a.right||!a.left&&a||null),"left"===n&&(t=a.left||null),t?r.createElement("div",{className:"".concat(o,"-extra-content")},t):null};function I(e,t){var n,o,s=r.useContext(D),u=s.prefixCls,c=s.tabs,f=e.className,d=e.style,v=e.id,b=e.animated,C=e.activeKey,k=e.rtl,E=e.extra,T=e.editable,P=e.locale,I=e.tabPosition,A=e.tabBarGutter,K=e.children,V=e.onTabClick,H=e.onTabScroll,L=(0,r.useRef)(),F=(0,r.useRef)(),j=(0,r.useRef)(),z=(0,r.useRef)(),B=(o=(0,r.useRef)(new Map),[function(e){return o.current.has(e)||o.current.set(e,r.createRef()),o.current.get(e)},function(e){o.current.delete(e)}]),W=(0,a.Z)(B,2),U=W[0],Y=W[1],_="top"===I||"bottom"===I,X=N(0,(function(e,t){_&&H&&H({direction:e>t?"left":"right"})})),G=(0,a.Z)(X,2),$=G[0],q=G[1],Q=N(0,(function(e,t){!_&&H&&H({direction:e>t?"top":"bottom"})})),J=(0,a.Z)(Q,2),ee=J[0],te=J[1],ne=(0,r.useState)(0),oe=(0,a.Z)(ne,2),ie=oe[0],re=oe[1],ae=(0,r.useState)(0),se=(0,a.Z)(ae,2),ue=se[0],le=se[1],ce=(0,r.useState)(0),pe=(0,a.Z)(ce,2),fe=pe[0],de=pe[1],ve=(0,r.useState)(0),me=(0,a.Z)(ve,2),he=me[0],ye=me[1],ge=(0,r.useState)(null),be=(0,a.Z)(ge,2),Ce=be[0],Me=be[1],we=(0,r.useState)(null),Ze=(0,a.Z)(we,2),ke=Ze[0],Ee=Ze[1],Te=(0,r.useState)(0),xe=(0,a.Z)(Te,2),Pe=xe[0],Oe=xe[1],De=(0,r.useState)(0),Se=(0,a.Z)(De,2),Ne=Se[0],Re=Se[1],Ie=function(e){var t=(0,r.useRef)([]),n=(0,r.useState)({}),o=(0,a.Z)(n,2)[1],i=(0,r.useRef)("function"==typeof e?e():e),s=g((function(){var e=i.current;t.current.forEach((function(t){e=t(e)})),t.current=[],i.current=e,o({})}));return[i.current,function(e){t.current.push(e),s()}]}(new Map),Ae=(0,a.Z)(Ie,2),Ke=Ae[0],Ve=Ae[1],He=function(e,t,n){return(0,r.useMemo)((function(){for(var n,o=new Map,i=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||w,r=i.left+i.width,a=0;a<e.length;a+=1){var s,u=e[a].key,c=t.get(u);c||(c=t.get(null===(s=e[a-1])||void 0===s?void 0:s.key)||w);var p=o.get(u)||(0,l.Z)({},c);p.right=r-p.left-p.width,o.set(u,p)}return o}),[e.map((function(e){return e.key})).join("_"),t,n])}(c,Ke,ie),Le="".concat(u,"-nav-operations-hidden"),Fe=0,je=0;function ze(e){return e<Fe?Fe:e>je?je:e}_?k?(Fe=0,je=Math.max(0,ie-Ce)):(Fe=Math.min(0,Ce-ie),je=0):(Fe=Math.min(0,ke-ue),je=0);var Be=(0,r.useRef)(),We=(0,r.useState)(),Ue=(0,a.Z)(We,2),Ye=Ue[0],_e=Ue[1];function Xe(){_e(Date.now())}function Ge(){window.clearTimeout(Be.current)}function $e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:C,t=He.get(e)||{width:0,height:0,left:0,right:0,top:0};if(_){var n=$;k?t.right<$?n=t.right:t.right+t.width>$+Ce&&(n=t.right+t.width-Ce):t.left<-$?n=-t.left:t.left+t.width>-$+Ce&&(n=-(t.left+t.width-Ce)),te(0),q(ze(n))}else{var o=ee;t.top<-ee?o=-t.top:t.top+t.height>-ee+ke&&(o=-(t.top+t.height-ke)),q(0),te(ze(o))}}!function(e,t){var n=(0,r.useState)(),o=(0,a.Z)(n,2),i=o[0],s=o[1],u=(0,r.useState)(0),l=(0,a.Z)(u,2),c=l[0],p=l[1],f=(0,r.useState)(0),d=(0,a.Z)(f,2),v=d[0],m=d[1],h=(0,r.useState)(),y=(0,a.Z)(h,2),g=y[0],b=y[1],C=(0,r.useRef)(),M=(0,r.useRef)(),w=(0,r.useRef)(null);w.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,o=t.screenY;s({x:n,y:o}),window.clearInterval(C.current)},onTouchMove:function(e){if(i){e.preventDefault();var n=e.touches[0],o=n.screenX,r=n.screenY;s({x:o,y:r});var a=o-i.x,u=r-i.y;t(a,u);var l=Date.now();p(l),m(l-c),b({x:a,y:u})}},onTouchEnd:function(){if(i&&(s(null),b(null),g)){var e=g.x/v,n=g.y/v,o=Math.abs(e),r=Math.abs(n);if(Math.max(o,r)<.1)return;var a=e,u=n;C.current=window.setInterval((function(){Math.abs(a)<.01&&Math.abs(u)<.01?window.clearInterval(C.current):t(20*(a*=S),20*(u*=S))}),20)}},onWheel:function(e){var n=e.deltaX,o=e.deltaY,i=0,r=Math.abs(n),a=Math.abs(o);r===a?i="x"===M.current?n:o:r>a?(i=n,M.current="x"):(i=o,M.current="y"),t(-i,-i)&&e.preventDefault()}},r.useEffect((function(){function t(e){w.current.onTouchMove(e)}function n(e){w.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!1}),e.current.addEventListener("touchstart",(function(e){w.current.onTouchStart(e)}),{passive:!1}),e.current.addEventListener("wheel",(function(e){w.current.onWheel(e)})),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(L,(function(e,t){function n(e,t){e((function(e){return ze(e+t)}))}if(_){if(Ce>=ie)return!1;n(q,e)}else{if(ke>=ue)return!1;n(te,t)}return Ge(),Xe(),!0})),(0,r.useEffect)((function(){return Ge(),Ye&&(Be.current=window.setTimeout((function(){_e(0)}),100)),Ge}),[Ye]);var qe=function(e,t,n,o,i){var a,s,u,l=i.tabs,c=i.tabPosition,p=i.rtl;["top","bottom"].includes(c)?(a="width",s=p?"right":"left",u=Math.abs(t.left)):(a="height",s="top",u=-t.top);var f=t[a],d=o[a],v=f;return n[a]+d>f&&(v=f-d),(0,r.useMemo)((function(){if(!l.length)return[0,0];for(var t=l.length,n=t,o=0;o<t;o+=1){var i=e.get(l[o].key)||Z;if(i[s]+i[a]>u+v){n=o-1;break}}for(var r=0,c=t-1;c>=0;c-=1)if((e.get(l[c].key)||Z)[s]<u){r=c+1;break}return[r,n]}),[e,u,v,c,l.map((function(e){return e.key})).join("_"),p])}(He,{width:Ce,height:ke,left:$,top:ee},{width:fe,height:he},{width:Pe,height:Ne},(0,l.Z)((0,l.Z)({},e),{},{tabs:c})),Qe=(0,a.Z)(qe,2),Je=Qe[0],et=Qe[1],tt=c.map((function(e){var t=e.key;return r.createElement(M,{id:v,prefixCls:u,key:t,rtl:k,tab:e,closable:e.closable,editable:T,active:t===C,tabPosition:I,tabBarGutter:A,renderWrapper:K,removeAriaLabel:null==P?void 0:P.removeAriaLabel,ref:U(t),onClick:function(e){V(t,e)},onRemove:function(){Y(t)},onFocus:function(){$e(t),Xe(),k||(L.current.scrollLeft=0),L.current.scrollTop=0}})})),nt=g((function(){var e,t,n,o,i,r,a,s,u,l=(null===(e=L.current)||void 0===e?void 0:e.offsetWidth)||0,p=(null===(t=L.current)||void 0===t?void 0:t.offsetHeight)||0,f=(null===(n=z.current)||void 0===n?void 0:n.offsetWidth)||0,d=(null===(o=z.current)||void 0===o?void 0:o.offsetHeight)||0,v=(null===(i=j.current)||void 0===i?void 0:i.offsetWidth)||0,m=(null===(r=j.current)||void 0===r?void 0:r.offsetHeight)||0;Me(l),Ee(p),Oe(f),Re(d);var h=((null===(a=F.current)||void 0===a?void 0:a.offsetWidth)||0)-f,y=((null===(s=F.current)||void 0===s?void 0:s.offsetHeight)||0)-d;re(h),le(y);var g=null===(u=j.current)||void 0===u?void 0:u.className.includes(Le);de(h-(g?0:v)),ye(y-(g?0:m)),Ve((function(){var e=new Map;return c.forEach((function(t){var n=t.key,o=U(n).current;o&&e.set(n,{width:o.offsetWidth,height:o.offsetHeight,left:o.offsetLeft,top:o.offsetTop})})),e}))})),ot=c.slice(0,Je),it=c.slice(et+1),rt=[].concat((0,m.Z)(ot),(0,m.Z)(it)),at=(0,r.useState)(),st=(0,a.Z)(at,2),ut=st[0],lt=st[1],ct=He.get(C),pt=(0,r.useRef)();function ft(){h.Z.cancel(pt.current)}(0,r.useEffect)((function(){var e={};return ct&&(_?(k?e.right=ct.right:e.left=ct.left,e.width=ct.width):(e.top=ct.top,e.height=ct.height)),ft(),pt.current=(0,h.Z)((function(){lt(e)})),ft}),[ct,_,k]),(0,r.useEffect)((function(){$e()}),[C,ct,He,_]),(0,r.useEffect)((function(){nt()}),[k,A,C,c.map((function(e){return e.key})).join("_")]);var dt,vt,mt,ht,yt=!!rt.length,gt="".concat(u,"-nav-wrap");return _?k?(vt=$>0,dt=$+Ce<ie):(dt=$<0,vt=-$+Ce<ie):(mt=ee<0,ht=-ee+ke<ue),r.createElement("div",{ref:t,role:"tablist",className:p()("".concat(u,"-nav"),f),style:d,onKeyDown:function(){Xe()}},r.createElement(R,{position:"left",extra:E,prefixCls:u}),r.createElement(y.Z,{onResize:nt},r.createElement("div",{className:p()(gt,(n={},(0,i.Z)(n,"".concat(gt,"-ping-left"),dt),(0,i.Z)(n,"".concat(gt,"-ping-right"),vt),(0,i.Z)(n,"".concat(gt,"-ping-top"),mt),(0,i.Z)(n,"".concat(gt,"-ping-bottom"),ht),n)),ref:L},r.createElement(y.Z,{onResize:nt},r.createElement("div",{ref:F,className:"".concat(u,"-nav-list"),style:{transform:"translate(".concat($,"px, ").concat(ee,"px)"),transition:Ye?"none":void 0}},tt,r.createElement(x,{ref:z,prefixCls:u,locale:P,editable:T,style:{visibility:yt?"hidden":null}}),r.createElement("div",{className:p()("".concat(u,"-ink-bar"),(0,i.Z)({},"".concat(u,"-ink-bar-animated"),b.inkBar)),style:ut}))))),r.createElement(O,Object.assign({},e,{ref:j,prefixCls:u,tabs:rt,className:!yt&&Le})),r.createElement(R,{position:"right",extra:E,prefixCls:u}))}var A=r.forwardRef(I);function K(e){var t=e.id,n=e.activeKey,o=e.animated,a=e.tabPosition,s=e.rtl,u=e.destroyInactiveTabPane,l=r.useContext(D),c=l.prefixCls,f=l.tabs,d=o.tabPane,v=f.findIndex((function(e){return e.key===n}));return r.createElement("div",{className:p()("".concat(c,"-content-holder"))},r.createElement("div",{className:p()("".concat(c,"-content"),"".concat(c,"-content-").concat(a),(0,i.Z)({},"".concat(c,"-content-animated"),d)),style:v&&d?(0,i.Z)({},s?"marginRight":"marginLeft","-".concat(v,"00%")):null},f.map((function(e){return r.cloneElement(e.node,{key:e.key,prefixCls:c,tabKey:e.key,id:t,animated:d,active:e.key===n,destroyInactiveTabPane:u})}))))}function V(e){var t=e.prefixCls,n=e.forceRender,o=e.className,i=e.style,s=e.id,u=e.active,c=e.animated,f=e.destroyInactiveTabPane,d=e.tabKey,v=e.children,m=r.useState(n),h=(0,a.Z)(m,2),y=h[0],g=h[1];r.useEffect((function(){u?g(!0):f&&g(!1)}),[u,f]);var b={};return u||(c?(b.visibility="hidden",b.height=0,b.overflowY="hidden"):b.display="none"),r.createElement("div",{id:s&&"".concat(s,"-panel-").concat(d),role:"tabpanel",tabIndex:u?0:-1,"aria-labelledby":s&&"".concat(s,"-tab-").concat(d),"aria-hidden":!u,style:(0,l.Z)((0,l.Z)({},b),i),className:p()("".concat(t,"-tabpane"),u&&"".concat(t,"-tabpane-active"),o)},(u||y||n)&&v)}var H=0;function L(e,t){var n,o,c=e.id,m=e.prefixCls,h=void 0===m?"rc-tabs":m,y=e.className,g=e.children,b=e.direction,C=e.activeKey,M=e.defaultActiveKey,w=e.editable,Z=e.animated,k=void 0===Z?{inkBar:!0,tabPane:!1}:Z,E=e.tabPosition,T=void 0===E?"top":E,x=e.tabBarGutter,P=e.tabBarStyle,O=e.tabBarExtraContent,S=e.locale,N=e.moreIcon,R=e.moreTransitionName,I=e.destroyInactiveTabPane,V=e.renderTabBar,L=e.onChange,F=e.onTabClick,j=e.onTabScroll,z=(0,u.Z)(e,["id","prefixCls","className","children","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll"]),B=function(e){return(0,f.Z)(e).map((function(e){if(r.isValidElement(e)){var t=void 0!==e.key?String(e.key):void 0;return(0,l.Z)((0,l.Z)({key:t},e.props),{},{node:e})}return null})).filter((function(e){return e}))}(g),W="rtl"===b;o=!1===k?{inkBar:!1,tabPane:!1}:!0===k?{inkBar:!0,tabPane:!0}:(0,l.Z)({inkBar:!0,tabPane:!1},"object"===(0,s.Z)(k)?k:{});var U=(0,r.useState)(!1),Y=(0,a.Z)(U,2),_=Y[0],X=Y[1];(0,r.useEffect)((function(){X((0,d.Z)())}),[]);var G=(0,v.Z)((function(){var e;return null===(e=B[0])||void 0===e?void 0:e.key}),{value:C,defaultValue:M}),$=(0,a.Z)(G,2),q=$[0],Q=$[1],J=(0,r.useState)((function(){return B.findIndex((function(e){return e.key===q}))})),ee=(0,a.Z)(J,2),te=ee[0],ne=ee[1];(0,r.useEffect)((function(){var e,t=B.findIndex((function(e){return e.key===q}));-1===t&&(t=Math.max(0,Math.min(te,B.length-1)),Q(null===(e=B[t])||void 0===e?void 0:e.key)),ne(t)}),[B.map((function(e){return e.key})).join("_"),q,te]);var oe=(0,v.Z)(null,{value:c}),ie=(0,a.Z)(oe,2),re=ie[0],ae=ie[1],se=T;_&&!["left","right"].includes(T)&&(se="top"),(0,r.useEffect)((function(){c||(ae("rc-tabs-".concat(H)),H+=1)}),[]);var ue,le={id:re,activeKey:q,animated:o,tabPosition:se,rtl:W,mobile:_},ce=(0,l.Z)((0,l.Z)({},le),{},{editable:w,locale:S,moreIcon:N,moreTransitionName:R,tabBarGutter:x,onTabClick:function(e,t){null==F||F(e,t),Q(e),null==L||L(e)},onTabScroll:j,extra:O,style:P,panes:g});return ue=V?V(ce,A):r.createElement(A,Object.assign({},ce)),r.createElement(D.Provider,{value:{tabs:B,prefixCls:h}},r.createElement("div",Object.assign({ref:t,id:c,className:p()(h,"".concat(h,"-").concat(se),(n={},(0,i.Z)(n,"".concat(h,"-mobile"),_),(0,i.Z)(n,"".concat(h,"-editable"),w),(0,i.Z)(n,"".concat(h,"-rtl"),W),n),y)},z),ue,r.createElement(K,Object.assign({destroyInactiveTabPane:I},le,{animated:o}))))}var F=r.forwardRef(L);F.TabPane=V;var j=F,z=n(5723),B=n(8172),W=n(2092),U=n(3631),Y=n(7079),_=n(6166);function X(e){var t,n=e.type,a=e.className,s=e.size,u=e.onEdit,l=e.hideAdd,c=e.centered,f=e.addIcon,d=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}(e,["type","className","size","onEdit","hideAdd","centered","addIcon"]),v=d.prefixCls,m=d.moreIcon,h=void 0===m?r.createElement(z.Z,null):m,y=r.useContext(Y.E_),g=y.getPrefixCls,b=y.direction,C=g("tabs",v);"editable-card"===n&&(t={onEdit:function(e,t){var n=t.key,o=t.event;null==u||u("add"===e?o:n,e)},removeIcon:r.createElement(W.Z,null),addIcon:f||r.createElement(B.Z,null),showAdd:!0!==l});var M=g();return(0,U.Z)(!("onPrevClick"in d)&&!("onNextClick"in d),"Tabs","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),r.createElement(_.Z.Consumer,null,(function(e){var u,l=void 0!==s?s:e;return r.createElement(j,(0,o.Z)({direction:b,moreTransitionName:"".concat(M,"-slide-up")},d,{className:p()((u={},(0,i.Z)(u,"".concat(C,"-").concat(l),l),(0,i.Z)(u,"".concat(C,"-card"),["card","editable-card"].includes(n)),(0,i.Z)(u,"".concat(C,"-editable-card"),"editable-card"===n),(0,i.Z)(u,"".concat(C,"-centered"),c),u),a),editable:t,moreIcon:h,prefixCls:C}))}))}X.TabPane=V;var G=X}}]);
2
- //# sourceMappingURL=173.lite.js.map?ver=dbfb36bd7db3ec6d3a00
1
+ (self.webpackChunkrealCookieBanner_name_=self.webpackChunkrealCookieBanner_name_||[]).push([[440],{9239:function(e,t,n){"use strict";var o=n(8711),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return o.isMemo(e)?a:s[e.$$typeof]||i}s[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[o.Memo]=a;var l=Object.defineProperty,c=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,v=Object.prototype;e.exports=function e(t,n,o){if("string"!=typeof n){if(v){var i=d(n);i&&i!==v&&e(t,i,o)}var a=c(n);p&&(a=a.concat(p(n)));for(var s=u(t),m=u(n),h=0;h<a.length;++h){var y=a[h];if(!(r[y]||o&&o[y]||m&&m[y]||s&&s[y])){var g=f(n,y);try{l(t,y,g)}catch(e){}}}}return t}},7933:function(e,t,n){"use strict";n.d(t,{Z:function(){return ie}});var o=n(63),i=n(7228),r=n(4115),a=n(7363),s=n.n(a),u=n(2711),l=n(4741),c=n(6762),p=n(3340),f=n(5558),d=n(3841),v=n(5952),m=n(1533),h=n.n(m),y=n(6871),g=n(7384),b=n(8369),C=n(5643),M=n(5905),w=n(505),Z=n(2286),k=n.n(Z);function E(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}var T=n(4511),x=n(9064);function P(e){var t=e.prefixCls,n=e.motion,o=e.animation,i=e.transitionName;return n||(o?{motionName:"".concat(t,"-").concat(o)}:i?{motionName:i}:null)}function O(e){var t=e.prefixCls,n=e.visible,o=e.zIndex,i=e.mask,r=e.maskMotion,s=e.maskAnimation,c=e.maskTransitionName;if(!i)return null;var p={};return(r||c||s)&&(p=(0,u.Z)({motionAppear:!0},P({motion:r,prefixCls:t,transitionName:c,animation:s}))),a.createElement(x.Z,(0,l.Z)({},p,{visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return a.createElement("div",{style:{zIndex:o},className:k()("".concat(t,"-mask"),n)})}))}var D=n(3429),S=n(4001),N=n(3493),R=n(7410);function I(e,t){var n=null,o=null,r=new R.Z((function(e){var r=(0,i.Z)(e,1)[0].target;if(document.documentElement.contains(r)){var a=r.getBoundingClientRect(),s=a.width,u=a.height,l=Math.floor(s),c=Math.floor(u);n===l&&o===c||Promise.resolve().then((function(){t({width:l,height:c})})),n=l,o=c}}));return e&&r.observe(e),function(){r.disconnect()}}function A(e){return"function"!=typeof e?null:e()}function K(e){return"object"===(0,D.Z)(e)&&e?e:null}var V=s().forwardRef((function(e,t){var n=e.children,o=e.disabled,r=e.target,a=e.align,u=e.onAlign,l=e.monitorWindowResize,c=e.monitorBufferTime,p=void 0===c?0:c,f=s().useRef({}),d=s().useRef(),v=s().Children.only(n),m=s().useRef({});m.current.disabled=o,m.current.target=r,m.current.onAlign=u;var h=function(e,t){var n=s().useRef(!1),o=s().useRef(null);function i(){window.clearTimeout(o.current)}return[function e(r){if(n.current&&!0!==r)i(),o.current=window.setTimeout((function(){n.current=!1,e()}),t);else{if(!1===function(){var e=m.current,t=e.disabled,n=e.target,o=e.onAlign;if(!t&&n){var i,r=d.current,s=A(n),u=K(n);f.current.element=s,f.current.point=u;var l=document.activeElement;return s&&(0,S.Z)(s)?i=(0,N.E3)(r,s,a):u&&(i=(0,N.zy)(r,u,a)),function(e,t){e!==document.activeElement&&(0,g.Z)(t,e)&&"function"==typeof e.focus&&e.focus()}(l,r),o&&i&&o(r,i),!0}return!1}())return;n.current=!0,i(),o.current=window.setTimeout((function(){n.current=!1}),t)}},function(){n.current=!1,i()}]}(0,p),y=(0,i.Z)(h,2),b=y[0],w=y[1],Z=s().useRef({cancel:function(){}}),k=s().useRef({cancel:function(){}});s().useEffect((function(){var e,t,n=A(r),o=K(r);d.current!==k.current.element&&(k.current.cancel(),k.current.element=d.current,k.current.cancel=I(d.current,b)),f.current.element===n&&((e=f.current.point)===(t=o)||e&&t&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY))||(b(),Z.current.element!==n&&(Z.current.cancel(),Z.current.element=n,Z.current.cancel=I(n,b)))})),s().useEffect((function(){o?w():b()}),[o]);var E=s().useRef(null);return s().useEffect((function(){l?E.current||(E.current=(0,M.Z)(window,"resize",b)):E.current&&(E.current.remove(),E.current=null)}),[l]),s().useEffect((function(){return function(){Z.current.cancel(),k.current.cancel(),E.current&&E.current.remove(),w()}}),[]),s().useImperativeHandle(t,(function(){return{forceAlign:function(){return b(!0)}}})),s().isValidElement(v)&&(v=s().cloneElement(v,{ref:(0,C.sQ)(v.ref,d)})),v}));V.displayName="Align";var H=V,L=n(5450),F=n.n(L),j=n(7938),z=["measure","align",null,"motion"],B=a.forwardRef((function(e,t){var n=e.visible,o=e.prefixCls,r=e.className,s=e.style,c=e.children,p=e.zIndex,f=e.stretch,d=e.destroyPopupOnHide,v=e.forceRender,m=e.align,h=e.point,g=e.getRootDomNode,b=e.getClassNameFromAlign,C=e.onAlign,M=e.onMouseEnter,w=e.onMouseLeave,Z=e.onMouseDown,E=e.onTouchStart,T=(0,a.useRef)(),O=(0,a.useRef)(),D=(0,a.useState)(),S=(0,i.Z)(D,2),N=S[0],R=S[1],I=function(e){var t=a.useState({width:0,height:0}),n=(0,i.Z)(t,2),o=n[0],r=n[1];return[a.useMemo((function(){var t={};if(e){var n=o.width,i=o.height;-1!==e.indexOf("height")&&i?t.height=i:-1!==e.indexOf("minHeight")&&i&&(t.minHeight=i),-1!==e.indexOf("width")&&n?t.width=n:-1!==e.indexOf("minWidth")&&n&&(t.minWidth=n)}return t}),[e,o]),function(e){r({width:e.offsetWidth,height:e.offsetHeight})}]}(f),A=(0,i.Z)(I,2),K=A[0],V=A[1],L=function(e,t){var n=(0,a.useState)(null),o=(0,i.Z)(n,2),r=o[0],s=o[1],u=(0,a.useRef)(),l=(0,a.useRef)(!1);function c(e){l.current||s(e)}function p(){y.Z.cancel(u.current)}return(0,a.useEffect)((function(){c("measure")}),[e]),(0,a.useEffect)((function(){"measure"===r&&(f&&V(g())),r&&(u.current=(0,y.Z)((0,j.Z)(F().mark((function e(){var t,n;return F().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=z.indexOf(r),(n=z[t+1])&&-1!==t&&c(n);case 3:case"end":return e.stop()}}),e)})))))}),[r]),(0,a.useEffect)((function(){return function(){l.current=!0,p()}}),[]),[r,function(e){p(),u.current=(0,y.Z)((function(){c((function(e){switch(r){case"align":return"motion";case"motion":return"stable"}return e})),null==e||e()}))}]}(n),B=(0,i.Z)(L,2),W=B[0],U=B[1],Y=(0,a.useRef)();function _(){var e;null===(e=T.current)||void 0===e||e.forceAlign()}function X(e,t){if("align"===W){var n=b(t);R(n),N!==n?Promise.resolve().then((function(){_()})):U((function(){var e;null===(e=Y.current)||void 0===e||e.call(Y)})),null==C||C(e,t)}}var G=(0,u.Z)({},P(e));function $(){return new Promise((function(e){Y.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=G[e];G[e]=function(e,n){return U(),null==t?void 0:t(e,n)}})),a.useEffect((function(){G.motionName||"motion"!==W||U()}),[G.motionName,W]),a.useImperativeHandle(t,(function(){return{forceAlign:_,getElement:function(){return O.current}}}));var q=(0,u.Z)((0,u.Z)((0,u.Z)({},K),{},{zIndex:p},s),{},{opacity:"motion"!==W&&"stable"!==W&&n?0:void 0,pointerEvents:"stable"===W?void 0:"none"}),Q=!0;!(null==m?void 0:m.points)||"align"!==W&&"stable"!==W||(Q=!1);var J=c;return a.Children.count(c)>1&&(J=a.createElement("div",{className:"".concat(o,"-content")},c)),a.createElement(x.Z,(0,l.Z)({visible:n,ref:O,leavedClassName:"".concat(o,"-hidden")},G,{onAppearPrepare:$,onEnterPrepare:$,removeOnLeave:d,forceRender:v}),(function(e,t){var n=e.className,i=e.style,s=k()(o,r,N,n);return a.createElement(H,{target:h||g,key:"popup",ref:T,monitorWindowResize:!0,disabled:Q,align:m,onAlign:X},a.createElement("div",{ref:t,className:s,onMouseEnter:M,onMouseLeave:w,onMouseDownCapture:Z,onTouchStartCapture:E,style:(0,u.Z)((0,u.Z)({},i),q)},J))}))}));B.displayName="PopupInner";var W=B,U=a.forwardRef((function(e,t){var n=e.prefixCls,o=e.visible,i=e.zIndex,r=e.children,s=e.mobile,c=(s=void 0===s?{}:s).popupClassName,p=s.popupStyle,f=s.popupMotion,d=void 0===f?{}:f,v=s.popupRender,m=a.useRef();a.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return m.current}}}));var h=(0,u.Z)({zIndex:i},p),y=r;return a.Children.count(r)>1&&(y=a.createElement("div",{className:"".concat(n,"-content")},r)),v&&(y=v(y)),a.createElement(x.Z,(0,l.Z)({visible:o,ref:m,removeOnLeave:!0},d),(function(e,t){var o=e.className,i=e.style,r=k()(n,c,o);return a.createElement("div",{ref:t,className:r,style:(0,u.Z)((0,u.Z)({},i),h)},y)}))}));U.displayName="MobilePopupInner";var Y=U,_=a.forwardRef((function(e,t){var n=e.visible,o=e.mobile,s=(0,r.Z)(e,["visible","mobile"]),c=(0,a.useState)(n),p=(0,i.Z)(c,2),f=p[0],d=p[1],v=(0,a.useState)(!1),m=(0,i.Z)(v,2),h=m[0],y=m[1],g=(0,u.Z)((0,u.Z)({},s),{},{visible:f});(0,a.useEffect)((function(){d(n),n&&o&&y((0,T.Z)())}),[n,o]);var b=h?a.createElement(Y,(0,l.Z)({},g,{mobile:o,ref:t})):a.createElement(W,(0,l.Z)({},g,{ref:t}));return a.createElement("div",null,a.createElement(O,g),b)}));_.displayName="Popup";var X=_,G=a.createContext(null);function $(){}var q,Q,J=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"],ee=(q=w.Z,Q=function(e){(0,d.Z)(n,e);var t=(0,v.Z)(n);function n(e){var o,i;return(0,c.Z)(this,n),(o=t.call(this,e)).popupRef=a.createRef(),o.triggerRef=a.createRef(),o.onMouseEnter=function(e){var t=o.props.mouseEnterDelay;o.fireEvents("onMouseEnter",e),o.delaySetPopupVisible(!0,t,t?null:e)},o.onMouseMove=function(e){o.fireEvents("onMouseMove",e),o.setPoint(e)},o.onMouseLeave=function(e){o.fireEvents("onMouseLeave",e),o.delaySetPopupVisible(!1,o.props.mouseLeaveDelay)},o.onPopupMouseEnter=function(){o.clearDelayTimer()},o.onPopupMouseLeave=function(e){var t;e.relatedTarget&&!e.relatedTarget.setTimeout&&(0,g.Z)(null===(t=o.popupRef.current)||void 0===t?void 0:t.getElement(),e.relatedTarget)||o.delaySetPopupVisible(!1,o.props.mouseLeaveDelay)},o.onFocus=function(e){o.fireEvents("onFocus",e),o.clearDelayTimer(),o.isFocusToShow()&&(o.focusTime=Date.now(),o.delaySetPopupVisible(!0,o.props.focusDelay))},o.onMouseDown=function(e){o.fireEvents("onMouseDown",e),o.preClickTime=Date.now()},o.onTouchStart=function(e){o.fireEvents("onTouchStart",e),o.preTouchTime=Date.now()},o.onBlur=function(e){o.fireEvents("onBlur",e),o.clearDelayTimer(),o.isBlurToHide()&&o.delaySetPopupVisible(!1,o.props.blurDelay)},o.onContextMenu=function(e){e.preventDefault(),o.fireEvents("onContextMenu",e),o.setPopupVisible(!0,e)},o.onContextMenuClose=function(){o.isContextMenuToShow()&&o.close()},o.onClick=function(e){if(o.fireEvents("onClick",e),o.focusTime){var t;if(o.preClickTime&&o.preTouchTime?t=Math.min(o.preClickTime,o.preTouchTime):o.preClickTime?t=o.preClickTime:o.preTouchTime&&(t=o.preTouchTime),Math.abs(t-o.focusTime)<20)return;o.focusTime=0}o.preClickTime=0,o.preTouchTime=0,o.isClickToShow()&&(o.isClickToHide()||o.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var n=!o.state.popupVisible;(o.isClickToHide()&&!n||n&&o.isClickToShow())&&o.setPopupVisible(!o.state.popupVisible,e)},o.onPopupMouseDown=function(){var e;o.hasPopupMouseDown=!0,clearTimeout(o.mouseDownTimeout),o.mouseDownTimeout=window.setTimeout((function(){o.hasPopupMouseDown=!1}),0),o.context&&(e=o.context).onPopupMouseDown.apply(e,arguments)},o.onDocumentClick=function(e){if(!o.props.mask||o.props.maskClosable){var t=e.target,n=o.getRootDomNode(),i=o.getPopupDomNode();(0,g.Z)(n,t)&&!o.isContextMenuOnly()||(0,g.Z)(i,t)||o.hasPopupMouseDown||o.close()}},o.getRootDomNode=function(){var e=o.props.getTriggerDOMNode;if(e)return e(o.triggerRef.current);try{var t=(0,b.Z)(o.triggerRef.current);if(t)return t}catch(e){}return h().findDOMNode((0,f.Z)(o))},o.getPopupClassNameFromAlign=function(e){var t=[],n=o.props,i=n.popupPlacement,r=n.builtinPlacements,a=n.prefixCls,s=n.alignPoint,u=n.getPopupClassNameFromAlign;return i&&r&&t.push(function(e,t,n,o){for(var i=n.points,r=Object.keys(e),a=0;a<r.length;a+=1){var s=r[a];if(E(e[s].points,i,o))return"".concat(t,"-placement-").concat(s)}return""}(r,a,e,s)),u&&t.push(u(e)),t.join(" ")},o.getComponent=function(){var e=o.props,t=e.prefixCls,n=e.destroyPopupOnHide,i=e.popupClassName,r=e.onPopupAlign,s=e.popupMotion,u=e.popupAnimation,c=e.popupTransitionName,p=e.popupStyle,f=e.mask,d=e.maskAnimation,v=e.maskTransitionName,m=e.maskMotion,h=e.zIndex,y=e.popup,g=e.stretch,b=e.alignPoint,C=e.mobile,M=e.forceRender,w=o.state,Z=w.popupVisible,k=w.point,E=o.getPopupAlign(),T={};return o.isMouseEnterToShow()&&(T.onMouseEnter=o.onPopupMouseEnter),o.isMouseLeaveToHide()&&(T.onMouseLeave=o.onPopupMouseLeave),T.onMouseDown=o.onPopupMouseDown,T.onTouchStart=o.onPopupMouseDown,a.createElement(X,(0,l.Z)({prefixCls:t,destroyPopupOnHide:n,visible:Z,point:b&&k,className:i,align:E,onAlign:r,animation:u,getClassNameFromAlign:o.getPopupClassNameFromAlign},T,{stretch:g,getRootDomNode:o.getRootDomNode,style:p,mask:f,zIndex:h,transitionName:c,maskAnimation:d,maskTransitionName:v,maskMotion:m,ref:o.popupRef,motion:s,mobile:C,forceRender:M}),"function"==typeof y?y():y)},o.attachParent=function(e){y.Z.cancel(o.attachId);var t,n=o.props,i=n.getPopupContainer,r=n.getDocument,a=o.getRootDomNode();i?(a||0===i.length)&&(t=i(a)):t=r(o.getRootDomNode()).body,t?t.appendChild(e):o.attachId=(0,y.Z)((function(){o.attachParent(e)}))},o.getContainer=function(){var e=(0,o.props.getDocument)(o.getRootDomNode()).createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",o.attachParent(e),e},o.setPoint=function(e){o.props.alignPoint&&e&&o.setState({point:{pageX:e.pageX,pageY:e.pageY}})},o.handlePortalUpdate=function(){o.state.prevPopupVisible!==o.state.popupVisible&&o.props.afterPopupVisibleChange(o.state.popupVisible)},i="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,o.state={prevPopupVisible:i,popupVisible:i},J.forEach((function(e){o["fire".concat(e)]=function(t){o.fireEvents(e,t)}})),o}return(0,p.Z)(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e,t=this.props;if(this.state.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=(0,M.Z)(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=(0,M.Z)(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=(0,M.Z)(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=(0,M.Z)(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),y.Z.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var e;return(null===(e=this.popupRef.current)||void 0===e?void 0:e.getElement())||null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,o=e.builtinPlacements;return t&&o?function(e,t,n){var o=e[t]||{};return(0,u.Z)((0,u.Z)({},o),n)}(o,t,n):n}},{key:"setPopupVisible",value:function(e,t){var n=this.props.alignPoint,o=this.state.popupVisible;this.clearDelayTimer(),o!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:o}),this.props.onPopupVisibleChange(e)),n&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,n){var o=this,i=1e3*t;if(this.clearDelayTimer(),i){var r=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){o.setPopupVisible(e,r),o.clearDelayTimer()}),i)}else this.setPopupVisible(e,n)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire".concat(e)]:t[e]||n[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var e=this.props.action;return"contextMenu"===e||1===e.length&&"contextMenu"===e[0]}},{key:"isContextMenuToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var e;this.state.popupVisible&&(null===(e=this.popupRef.current)||void 0===e||e.forceAlign())}},{key:"fireEvents",value:function(e,t){var n=this.props.children.props[e];n&&n(t);var o=this.props[e];o&&o(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var e=this.state.popupVisible,t=this.props,n=t.children,o=t.forceRender,i=t.alignPoint,r=t.className,s=t.autoDestroy,l=a.Children.only(n),c={key:"trigger"};this.isContextMenuToShow()?c.onContextMenu=this.onContextMenu:c.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(c.onClick=this.onClick,c.onMouseDown=this.onMouseDown,c.onTouchStart=this.onTouchStart):(c.onClick=this.createTwoChains("onClick"),c.onMouseDown=this.createTwoChains("onMouseDown"),c.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(c.onMouseEnter=this.onMouseEnter,i&&(c.onMouseMove=this.onMouseMove)):c.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?c.onMouseLeave=this.onMouseLeave:c.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(c.onFocus=this.onFocus,c.onBlur=this.onBlur):(c.onFocus=this.createTwoChains("onFocus"),c.onBlur=this.createTwoChains("onBlur"));var p=k()(l&&l.props&&l.props.className,r);p&&(c.className=p);var f=(0,u.Z)({},c);(0,C.Yr)(l)&&(f.ref=(0,C.sQ)(this.triggerRef,l.ref));var d,v=a.cloneElement(l,f);return(e||this.popupRef.current||o)&&(d=a.createElement(q,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!e&&s&&(d=null),a.createElement(G.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},v,d)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.popupVisible,o={};return void 0!==n&&t.popupVisible!==n&&(o.popupVisible=n,o.prevPopupVisible=t.popupVisible),o}}]),n}(a.Component),Q.contextType=G,Q.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:function(){return""},getDocument:function(e){return e?e.ownerDocument:window.document},onPopupVisibleChange:$,afterPopupVisibleChange:$,onPopupAlign:$,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},Q),te={adjustX:1,adjustY:1},ne=[0,0],oe={topLeft:{points:["bl","tl"],overflow:te,offset:[0,-4],targetOffset:ne},topCenter:{points:["bc","tc"],overflow:te,offset:[0,-4],targetOffset:ne},topRight:{points:["br","tr"],overflow:te,offset:[0,-4],targetOffset:ne},bottomLeft:{points:["tl","bl"],overflow:te,offset:[0,4],targetOffset:ne},bottomCenter:{points:["tc","bc"],overflow:te,offset:[0,4],targetOffset:ne},bottomRight:{points:["tr","br"],overflow:te,offset:[0,4],targetOffset:ne}},ie=a.forwardRef((function(e,t){var n=e.arrow,s=void 0!==n&&n,u=e.prefixCls,l=void 0===u?"rc-dropdown":u,c=e.transitionName,p=e.animation,f=e.align,d=e.placement,v=void 0===d?"bottomLeft":d,m=e.placements,h=void 0===m?oe:m,y=e.getPopupContainer,g=e.showAction,b=e.hideAction,C=e.overlayClassName,M=e.overlayStyle,w=e.visible,Z=e.trigger,E=void 0===Z?["hover"]:Z,T=(0,r.Z)(e,["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger"]),x=a.useState(),P=(0,i.Z)(x,2),O=P[0],D=P[1],S="visible"in e?w:O,N=a.useRef(null);a.useImperativeHandle(t,(function(){return N.current}));var R,I,A,K,V,H,L=function(){var t=e.overlay;return"function"==typeof t?t():t},F=function(t){var n=e.onOverlayClick,o=L().props;D(!1),n&&n(t),o.onClick&&o.onClick(t)},j=function(){var e=L(),t={prefixCls:"".concat(l,"-menu"),onClick:F};return"string"==typeof e.type&&delete t.prefixCls,a.createElement(a.Fragment,null,s&&a.createElement("div",{className:"".concat(l,"-arrow")}),a.cloneElement(e,t))},z=b;return z||-1===E.indexOf("contextMenu")||(z=["click"]),a.createElement(ee,Object.assign({},T,{prefixCls:l,ref:N,popupClassName:k()(C,(0,o.Z)({},"".concat(l,"-show-arrow"),s)),popupStyle:M,builtinPlacements:h,action:E,showAction:g,hideAction:z||[],popupPlacement:v,popupAlign:f,popupTransitionName:c,popupAnimation:p,popupVisible:S,stretch:(V=e.minOverlayWidthMatchTrigger,H=e.alignPoint,("minOverlayWidthMatchTrigger"in e?V:!H)?"minWidth":""),popup:"function"==typeof e.overlay?j:j(),onPopupVisibleChange:function(t){var n=e.onVisibleChange;D(t),"function"==typeof n&&n(t)},getPopupContainer:y}),(A=(I=e.children).props?I.props:{},K=k()(A.className,void 0!==(R=e.openClassName)?R:"".concat(l,"-open")),O&&I?a.cloneElement(I,{className:K}):I))}))},1987:function(e,t,n){"use strict";n.d(t,{iz:function(){return yt},ck:function(){return dt},BW:function(){return mt},sN:function(){return dt},Wd:function(){return Qe},ZP:function(){return gt}});var o,i=n(2711),r=n(6762),a=n(3340),s=n(5558),u=n(3841),l=n(5952),c=n(7363),p=n.n(c),f=(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},o(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=c.createContext(null),v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),t.prototype.render=function(){return c.createElement(d.Provider,{value:this.props.store},this.props.children)},t}(c.Component),m=n(5724),h=n.n(m),y=n(9239),g=n.n(y),b=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),C=function(){return C=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},C.apply(this,arguments)},M=function(){return{}};function w(e,t){void 0===t&&(t={});var n=!!e,o=e||M;return function(i){var r=function(t){function r(e,n){var i=t.call(this,e,n)||this;return i.unsubscribe=null,i.handleChange=function(){if(i.unsubscribe){var e=o(i.store.getState(),i.props);i.setState({subscribed:e})}},i.store=i.context,i.state={subscribed:o(i.store.getState(),e),store:i.store,props:e},i}return b(r,t),r.getDerivedStateFromProps=function(t,n){return e&&2===e.length&&t!==n.props?{subscribed:o(n.store.getState(),t),props:t}:{props:t}},r.prototype.componentDidMount=function(){this.trySubscribe()},r.prototype.componentWillUnmount=function(){this.tryUnsubscribe()},r.prototype.shouldComponentUpdate=function(e,t){return!h()(this.props,e)||!h()(this.state.subscribed,t.subscribed)},r.prototype.trySubscribe=function(){n&&(this.unsubscribe=this.store.subscribe(this.handleChange),this.handleChange())},r.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},r.prototype.render=function(){var e=C(C(C({},this.props),this.state.subscribed),{store:this.store});return c.createElement(i,C({},e,{ref:this.props.miniStoreForwardedRef}))},r.displayName="Connect("+function(e){return e.displayName||e.name||"Component"}(i)+")",r.contextType=d,r}(c.Component);if(t.forwardRef){var a=c.forwardRef((function(e,t){return c.createElement(r,C({},e,{miniStoreForwardedRef:t}))}));return g()(a,i)}return g()(r,i)}}var Z=function(){return Z=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Z.apply(this,arguments)},k=n(2465),E=n(4741),T=n(63),x=n(5065);function P(){var e=[].slice.call(arguments,0);return 1===e.length?e[0]:function(){for(var t=0;t<e.length;t++)e[t]&&e[t].apply&&e[t].apply(this,arguments)}}var O=n(4237),D=n(2286),S=n.n(D),N=n(3429),R=n(7228),I=/iPhone/i,A=/iPod/i,K=/iPad/i,V=/\bAndroid(?:.+)Mobile\b/i,H=/Android/i,L=/\bAndroid(?:.+)SD4930UR\b/i,F=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,j=/Windows Phone/i,z=/\bWindows(?:.+)ARM\b/i,B=/BlackBerry/i,W=/BB10/i,U=/Opera Mini/i,Y=/\b(CriOS|Chrome)(?:.+)Mobile/i,_=/Mobile(?:.+)Firefox\b/i;function X(e,t){return e.test(t)}function G(e){var t=e||("undefined"!=typeof navigator?navigator.userAgent:""),n=t.split("[FBAN");if(void 0!==n[1]){var o=n;t=(0,R.Z)(o,1)[0]}if(void 0!==(n=t.split("Twitter"))[1]){var i=n;t=(0,R.Z)(i,1)[0]}var r={apple:{phone:X(I,t)&&!X(j,t),ipod:X(A,t),tablet:!X(I,t)&&X(K,t)&&!X(j,t),device:(X(I,t)||X(A,t)||X(K,t))&&!X(j,t)},amazon:{phone:X(L,t),tablet:!X(L,t)&&X(F,t),device:X(L,t)||X(F,t)},android:{phone:!X(j,t)&&X(L,t)||!X(j,t)&&X(V,t),tablet:!X(j,t)&&!X(L,t)&&!X(V,t)&&(X(F,t)||X(H,t)),device:!X(j,t)&&(X(L,t)||X(F,t)||X(V,t)||X(H,t))||X(/\bokhttp\b/i,t)},windows:{phone:X(j,t),tablet:X(z,t),device:X(j,t)||X(z,t)},other:{blackberry:X(B,t),blackberry10:X(W,t),opera:X(U,t),firefox:X(_,t),chrome:X(Y,t),device:X(B,t)||X(W,t)||X(U,t)||X(_,t)||X(Y,t)},any:null,phone:null,tablet:null};return r.any=r.apple.device||r.android.device||r.windows.device||r.other.device,r.phone=r.apple.phone||r.android.phone||r.windows.phone,r.tablet=r.apple.tablet||r.android.tablet||r.windows.tablet,r}var $=(0,i.Z)((0,i.Z)({},G()),{},{isMobile:G});function q(){}function Q(e,t,n){var o=t||"";return e.key||"".concat(o,"item_").concat(n)}function J(e){return"".concat(e,"-menu-")}function ee(e,t){var n=-1;c.Children.forEach(e,(function(e){n+=1,e&&e.type&&e.type.isMenuItemGroup?c.Children.forEach(e.props.children,(function(e){t(e,n+=1)})):t(e,n)}))}function te(e,t,n){e&&!n.find&&c.Children.forEach(e,(function(e){if(e){var o=e.type;if(!o||!(o.isSubMenu||o.isMenuItem||o.isMenuItemGroup))return;-1!==t.indexOf(e.key)?n.find=!0:e.props.children&&te(e.props.children,t,n)}}))}var ne=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],oe=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e&&"function"==typeof e.getBoundingClientRect&&e.getBoundingClientRect().width;if(n){if(t){var o=getComputedStyle(e),i=o.marginLeft,r=o.marginRight;n+=+i.replace("px","")+ +r.replace("px","")}n=+n.toFixed(6)}return n||0},ie=function(e,t,n){e&&"object"===(0,N.Z)(e.style)&&(e.style[t]=n)},re=n(7870),ae=n(4115),se=n(1533),ue=n.n(se),le=n(7410),ce=n(6871),pe=n(7384),fe=n(8369),de=n(5643),ve=n(5905),me=n(505);function he(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}var ye=n(4511),ge=n(9064);function be(e){var t=e.prefixCls,n=e.motion,o=e.animation,i=e.transitionName;return n||(o?{motionName:"".concat(t,"-").concat(o)}:i?{motionName:i}:null)}function Ce(e){var t=e.prefixCls,n=e.visible,o=e.zIndex,r=e.mask,a=e.maskMotion,s=e.maskAnimation,u=e.maskTransitionName;if(!r)return null;var l={};return(a||u||s)&&(l=(0,i.Z)({motionAppear:!0},be({motion:a,prefixCls:t,transitionName:u,animation:s}))),c.createElement(ge.Z,(0,E.Z)({},l,{visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return c.createElement("div",{style:{zIndex:o},className:S()("".concat(t,"-mask"),n)})}))}var Me=n(4001),we=n(3493);function Ze(e,t){var n=null,o=null,i=new le.Z((function(e){var i=(0,R.Z)(e,1)[0].target;if(document.documentElement.contains(i)){var r=i.getBoundingClientRect(),a=r.width,s=r.height,u=Math.floor(a),l=Math.floor(s);n===u&&o===l||Promise.resolve().then((function(){t({width:u,height:l})})),n=u,o=l}}));return e&&i.observe(e),function(){i.disconnect()}}function ke(e){return"function"!=typeof e?null:e()}function Ee(e){return"object"===(0,N.Z)(e)&&e?e:null}var Te=p().forwardRef((function(e,t){var n=e.children,o=e.disabled,i=e.target,r=e.align,a=e.onAlign,s=e.monitorWindowResize,u=e.monitorBufferTime,l=void 0===u?0:u,c=p().useRef({}),f=p().useRef(),d=p().Children.only(n),v=p().useRef({});v.current.disabled=o,v.current.target=i,v.current.onAlign=a;var m=function(e,t){var n=p().useRef(!1),o=p().useRef(null);function i(){window.clearTimeout(o.current)}return[function e(a){if(n.current&&!0!==a)i(),o.current=window.setTimeout((function(){n.current=!1,e()}),t);else{if(!1===function(){var e=v.current,t=e.disabled,n=e.target,o=e.onAlign;if(!t&&n){var i,a=f.current,s=ke(n),u=Ee(n);c.current.element=s,c.current.point=u;var l=document.activeElement;return s&&(0,Me.Z)(s)?i=(0,we.E3)(a,s,r):u&&(i=(0,we.zy)(a,u,r)),function(e,t){e!==document.activeElement&&(0,pe.Z)(t,e)&&"function"==typeof e.focus&&e.focus()}(l,a),o&&i&&o(a,i),!0}return!1}())return;n.current=!0,i(),o.current=window.setTimeout((function(){n.current=!1}),t)}},function(){n.current=!1,i()}]}(0,l),h=(0,R.Z)(m,2),y=h[0],g=h[1],b=p().useRef({cancel:function(){}}),C=p().useRef({cancel:function(){}});p().useEffect((function(){var e,t,n=ke(i),o=Ee(i);f.current!==C.current.element&&(C.current.cancel(),C.current.element=f.current,C.current.cancel=Ze(f.current,y)),c.current.element===n&&((e=c.current.point)===(t=o)||e&&t&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY))||(y(),b.current.element!==n&&(b.current.cancel(),b.current.element=n,b.current.cancel=Ze(n,y)))})),p().useEffect((function(){o?g():y()}),[o]);var M=p().useRef(null);return p().useEffect((function(){s?M.current||(M.current=(0,ve.Z)(window,"resize",y)):M.current&&(M.current.remove(),M.current=null)}),[s]),p().useEffect((function(){return function(){b.current.cancel(),C.current.cancel(),M.current&&M.current.remove(),g()}}),[]),p().useImperativeHandle(t,(function(){return{forceAlign:function(){return y(!0)}}})),p().isValidElement(d)&&(d=p().cloneElement(d,{ref:(0,de.sQ)(d.ref,f)})),d}));Te.displayName="Align";var xe=Te,Pe=n(5450),Oe=n.n(Pe),De=n(7938),Se=["measure","align",null,"motion"],Ne=c.forwardRef((function(e,t){var n=e.visible,o=e.prefixCls,r=e.className,a=e.style,s=e.children,u=e.zIndex,l=e.stretch,p=e.destroyPopupOnHide,f=e.forceRender,d=e.align,v=e.point,m=e.getRootDomNode,h=e.getClassNameFromAlign,y=e.onAlign,g=e.onMouseEnter,b=e.onMouseLeave,C=e.onMouseDown,M=e.onTouchStart,w=(0,c.useRef)(),Z=(0,c.useRef)(),k=(0,c.useState)(),T=(0,R.Z)(k,2),x=T[0],P=T[1],O=function(e){var t=c.useState({width:0,height:0}),n=(0,R.Z)(t,2),o=n[0],i=n[1];return[c.useMemo((function(){var t={};if(e){var n=o.width,i=o.height;-1!==e.indexOf("height")&&i?t.height=i:-1!==e.indexOf("minHeight")&&i&&(t.minHeight=i),-1!==e.indexOf("width")&&n?t.width=n:-1!==e.indexOf("minWidth")&&n&&(t.minWidth=n)}return t}),[e,o]),function(e){i({width:e.offsetWidth,height:e.offsetHeight})}]}(l),D=(0,R.Z)(O,2),N=D[0],I=D[1],A=function(e,t){var n=(0,c.useState)(null),o=(0,R.Z)(n,2),i=o[0],r=o[1],a=(0,c.useRef)(),s=(0,c.useRef)(!1);function u(e){s.current||r(e)}function p(){ce.Z.cancel(a.current)}return(0,c.useEffect)((function(){u("measure")}),[e]),(0,c.useEffect)((function(){"measure"===i&&(l&&I(m())),i&&(a.current=(0,ce.Z)((0,De.Z)(Oe().mark((function e(){var t,n;return Oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=Se.indexOf(i),(n=Se[t+1])&&-1!==t&&u(n);case 3:case"end":return e.stop()}}),e)})))))}),[i]),(0,c.useEffect)((function(){return function(){s.current=!0,p()}}),[]),[i,function(e){p(),a.current=(0,ce.Z)((function(){u((function(e){switch(i){case"align":return"motion";case"motion":return"stable"}return e})),null==e||e()}))}]}(n),K=(0,R.Z)(A,2),V=K[0],H=K[1],L=(0,c.useRef)();function F(){var e;null===(e=w.current)||void 0===e||e.forceAlign()}function j(e,t){if("align"===V){var n=h(t);P(n),x!==n?Promise.resolve().then((function(){F()})):H((function(){var e;null===(e=L.current)||void 0===e||e.call(L)})),null==y||y(e,t)}}var z=(0,i.Z)({},be(e));function B(){return new Promise((function(e){L.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=z[e];z[e]=function(e,n){return H(),null==t?void 0:t(e,n)}})),c.useEffect((function(){z.motionName||"motion"!==V||H()}),[z.motionName,V]),c.useImperativeHandle(t,(function(){return{forceAlign:F,getElement:function(){return Z.current}}}));var W=(0,i.Z)((0,i.Z)((0,i.Z)({},N),{},{zIndex:u},a),{},{opacity:"motion"!==V&&"stable"!==V&&n?0:void 0,pointerEvents:"stable"===V?void 0:"none"}),U=!0;!(null==d?void 0:d.points)||"align"!==V&&"stable"!==V||(U=!1);var Y=s;return c.Children.count(s)>1&&(Y=c.createElement("div",{className:"".concat(o,"-content")},s)),c.createElement(ge.Z,(0,E.Z)({visible:n,ref:Z,leavedClassName:"".concat(o,"-hidden")},z,{onAppearPrepare:B,onEnterPrepare:B,removeOnLeave:p,forceRender:f}),(function(e,t){var n=e.className,a=e.style,s=S()(o,r,x,n);return c.createElement(xe,{target:v||m,key:"popup",ref:w,monitorWindowResize:!0,disabled:U,align:d,onAlign:j},c.createElement("div",{ref:t,className:s,onMouseEnter:g,onMouseLeave:b,onMouseDownCapture:C,onTouchStartCapture:M,style:(0,i.Z)((0,i.Z)({},a),W)},Y))}))}));Ne.displayName="PopupInner";var Re=Ne,Ie=c.forwardRef((function(e,t){var n=e.prefixCls,o=e.visible,r=e.zIndex,a=e.children,s=e.mobile,u=(s=void 0===s?{}:s).popupClassName,l=s.popupStyle,p=s.popupMotion,f=void 0===p?{}:p,d=s.popupRender,v=c.useRef();c.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return v.current}}}));var m=(0,i.Z)({zIndex:r},l),h=a;return c.Children.count(a)>1&&(h=c.createElement("div",{className:"".concat(n,"-content")},a)),d&&(h=d(h)),c.createElement(ge.Z,(0,E.Z)({visible:o,ref:v,removeOnLeave:!0},f),(function(e,t){var o=e.className,r=e.style,a=S()(n,u,o);return c.createElement("div",{ref:t,className:a,style:(0,i.Z)((0,i.Z)({},r),m)},h)}))}));Ie.displayName="MobilePopupInner";var Ae=Ie,Ke=c.forwardRef((function(e,t){var n=e.visible,o=e.mobile,r=(0,ae.Z)(e,["visible","mobile"]),a=(0,c.useState)(n),s=(0,R.Z)(a,2),u=s[0],l=s[1],p=(0,c.useState)(!1),f=(0,R.Z)(p,2),d=f[0],v=f[1],m=(0,i.Z)((0,i.Z)({},r),{},{visible:u});(0,c.useEffect)((function(){l(n),n&&o&&v((0,ye.Z)())}),[n,o]);var h=d?c.createElement(Ae,(0,E.Z)({},m,{mobile:o,ref:t})):c.createElement(Re,(0,E.Z)({},m,{ref:t}));return c.createElement("div",null,c.createElement(Ce,m),h)}));Ke.displayName="Popup";var Ve=Ke,He=c.createContext(null);function Le(){}var Fe,je,ze=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"],Be=(Fe=me.Z,je=function(e){(0,u.Z)(n,e);var t=(0,l.Z)(n);function n(e){var o,i;return(0,r.Z)(this,n),(o=t.call(this,e)).popupRef=c.createRef(),o.triggerRef=c.createRef(),o.onMouseEnter=function(e){var t=o.props.mouseEnterDelay;o.fireEvents("onMouseEnter",e),o.delaySetPopupVisible(!0,t,t?null:e)},o.onMouseMove=function(e){o.fireEvents("onMouseMove",e),o.setPoint(e)},o.onMouseLeave=function(e){o.fireEvents("onMouseLeave",e),o.delaySetPopupVisible(!1,o.props.mouseLeaveDelay)},o.onPopupMouseEnter=function(){o.clearDelayTimer()},o.onPopupMouseLeave=function(e){var t;e.relatedTarget&&!e.relatedTarget.setTimeout&&(0,pe.Z)(null===(t=o.popupRef.current)||void 0===t?void 0:t.getElement(),e.relatedTarget)||o.delaySetPopupVisible(!1,o.props.mouseLeaveDelay)},o.onFocus=function(e){o.fireEvents("onFocus",e),o.clearDelayTimer(),o.isFocusToShow()&&(o.focusTime=Date.now(),o.delaySetPopupVisible(!0,o.props.focusDelay))},o.onMouseDown=function(e){o.fireEvents("onMouseDown",e),o.preClickTime=Date.now()},o.onTouchStart=function(e){o.fireEvents("onTouchStart",e),o.preTouchTime=Date.now()},o.onBlur=function(e){o.fireEvents("onBlur",e),o.clearDelayTimer(),o.isBlurToHide()&&o.delaySetPopupVisible(!1,o.props.blurDelay)},o.onContextMenu=function(e){e.preventDefault(),o.fireEvents("onContextMenu",e),o.setPopupVisible(!0,e)},o.onContextMenuClose=function(){o.isContextMenuToShow()&&o.close()},o.onClick=function(e){if(o.fireEvents("onClick",e),o.focusTime){var t;if(o.preClickTime&&o.preTouchTime?t=Math.min(o.preClickTime,o.preTouchTime):o.preClickTime?t=o.preClickTime:o.preTouchTime&&(t=o.preTouchTime),Math.abs(t-o.focusTime)<20)return;o.focusTime=0}o.preClickTime=0,o.preTouchTime=0,o.isClickToShow()&&(o.isClickToHide()||o.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var n=!o.state.popupVisible;(o.isClickToHide()&&!n||n&&o.isClickToShow())&&o.setPopupVisible(!o.state.popupVisible,e)},o.onPopupMouseDown=function(){var e;o.hasPopupMouseDown=!0,clearTimeout(o.mouseDownTimeout),o.mouseDownTimeout=window.setTimeout((function(){o.hasPopupMouseDown=!1}),0),o.context&&(e=o.context).onPopupMouseDown.apply(e,arguments)},o.onDocumentClick=function(e){if(!o.props.mask||o.props.maskClosable){var t=e.target,n=o.getRootDomNode(),i=o.getPopupDomNode();(0,pe.Z)(n,t)&&!o.isContextMenuOnly()||(0,pe.Z)(i,t)||o.hasPopupMouseDown||o.close()}},o.getRootDomNode=function(){var e=o.props.getTriggerDOMNode;if(e)return e(o.triggerRef.current);try{var t=(0,fe.Z)(o.triggerRef.current);if(t)return t}catch(e){}return ue().findDOMNode((0,s.Z)(o))},o.getPopupClassNameFromAlign=function(e){var t=[],n=o.props,i=n.popupPlacement,r=n.builtinPlacements,a=n.prefixCls,s=n.alignPoint,u=n.getPopupClassNameFromAlign;return i&&r&&t.push(function(e,t,n,o){for(var i=n.points,r=Object.keys(e),a=0;a<r.length;a+=1){var s=r[a];if(he(e[s].points,i,o))return"".concat(t,"-placement-").concat(s)}return""}(r,a,e,s)),u&&t.push(u(e)),t.join(" ")},o.getComponent=function(){var e=o.props,t=e.prefixCls,n=e.destroyPopupOnHide,i=e.popupClassName,r=e.onPopupAlign,a=e.popupMotion,s=e.popupAnimation,u=e.popupTransitionName,l=e.popupStyle,p=e.mask,f=e.maskAnimation,d=e.maskTransitionName,v=e.maskMotion,m=e.zIndex,h=e.popup,y=e.stretch,g=e.alignPoint,b=e.mobile,C=e.forceRender,M=o.state,w=M.popupVisible,Z=M.point,k=o.getPopupAlign(),T={};return o.isMouseEnterToShow()&&(T.onMouseEnter=o.onPopupMouseEnter),o.isMouseLeaveToHide()&&(T.onMouseLeave=o.onPopupMouseLeave),T.onMouseDown=o.onPopupMouseDown,T.onTouchStart=o.onPopupMouseDown,c.createElement(Ve,(0,E.Z)({prefixCls:t,destroyPopupOnHide:n,visible:w,point:g&&Z,className:i,align:k,onAlign:r,animation:s,getClassNameFromAlign:o.getPopupClassNameFromAlign},T,{stretch:y,getRootDomNode:o.getRootDomNode,style:l,mask:p,zIndex:m,transitionName:u,maskAnimation:f,maskTransitionName:d,maskMotion:v,ref:o.popupRef,motion:a,mobile:b,forceRender:C}),"function"==typeof h?h():h)},o.attachParent=function(e){ce.Z.cancel(o.attachId);var t,n=o.props,i=n.getPopupContainer,r=n.getDocument,a=o.getRootDomNode();i?(a||0===i.length)&&(t=i(a)):t=r(o.getRootDomNode()).body,t?t.appendChild(e):o.attachId=(0,ce.Z)((function(){o.attachParent(e)}))},o.getContainer=function(){var e=(0,o.props.getDocument)(o.getRootDomNode()).createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",o.attachParent(e),e},o.setPoint=function(e){o.props.alignPoint&&e&&o.setState({point:{pageX:e.pageX,pageY:e.pageY}})},o.handlePortalUpdate=function(){o.state.prevPopupVisible!==o.state.popupVisible&&o.props.afterPopupVisibleChange(o.state.popupVisible)},i="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,o.state={prevPopupVisible:i,popupVisible:i},ze.forEach((function(e){o["fire".concat(e)]=function(t){o.fireEvents(e,t)}})),o}return(0,a.Z)(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e,t=this.props;if(this.state.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=(0,ve.Z)(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=(0,ve.Z)(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=(0,ve.Z)(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=(0,ve.Z)(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),ce.Z.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var e;return(null===(e=this.popupRef.current)||void 0===e?void 0:e.getElement())||null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,o=e.builtinPlacements;return t&&o?function(e,t,n){var o=e[t]||{};return(0,i.Z)((0,i.Z)({},o),n)}(o,t,n):n}},{key:"setPopupVisible",value:function(e,t){var n=this.props.alignPoint,o=this.state.popupVisible;this.clearDelayTimer(),o!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:o}),this.props.onPopupVisibleChange(e)),n&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,n){var o=this,i=1e3*t;if(this.clearDelayTimer(),i){var r=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){o.setPopupVisible(e,r),o.clearDelayTimer()}),i)}else this.setPopupVisible(e,n)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire".concat(e)]:t[e]||n[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var e=this.props.action;return"contextMenu"===e||1===e.length&&"contextMenu"===e[0]}},{key:"isContextMenuToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var e;this.state.popupVisible&&(null===(e=this.popupRef.current)||void 0===e||e.forceAlign())}},{key:"fireEvents",value:function(e,t){var n=this.props.children.props[e];n&&n(t);var o=this.props[e];o&&o(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var e=this.state.popupVisible,t=this.props,n=t.children,o=t.forceRender,r=t.alignPoint,a=t.className,s=t.autoDestroy,u=c.Children.only(n),l={key:"trigger"};this.isContextMenuToShow()?l.onContextMenu=this.onContextMenu:l.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(l.onClick=this.onClick,l.onMouseDown=this.onMouseDown,l.onTouchStart=this.onTouchStart):(l.onClick=this.createTwoChains("onClick"),l.onMouseDown=this.createTwoChains("onMouseDown"),l.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(l.onMouseEnter=this.onMouseEnter,r&&(l.onMouseMove=this.onMouseMove)):l.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?l.onMouseLeave=this.onMouseLeave:l.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(l.onFocus=this.onFocus,l.onBlur=this.onBlur):(l.onFocus=this.createTwoChains("onFocus"),l.onBlur=this.createTwoChains("onBlur"));var p=S()(u&&u.props&&u.props.className,a);p&&(l.className=p);var f=(0,i.Z)({},l);(0,de.Yr)(u)&&(f.ref=(0,de.sQ)(this.triggerRef,u.ref));var d,v=c.cloneElement(u,f);return(e||this.popupRef.current||o)&&(d=c.createElement(Fe,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!e&&s&&(d=null),c.createElement(He.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},v,d)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.popupVisible,o={};return void 0!==n&&t.popupVisible!==n&&(o.popupVisible=n,o.prevPopupVisible=t.popupVisible),o}}]),n}(c.Component),je.contextType=He,je.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:function(){return""},getDocument:function(e){return e?e.ownerDocument:window.document},onPopupVisibleChange:Le,afterPopupVisibleChange:Le,onPopupAlign:Le,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},je),We={adjustX:1,adjustY:1},Ue={topLeft:{points:["bl","tl"],overflow:We,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:We,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:We,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:We,offset:[4,0]}},Ye={topLeft:{points:["bl","tl"],overflow:We,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:We,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:We,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:We,offset:[4,0]}},_e=0,Xe={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Ge=function(e,t,n){var o=J(t),r=e.getState();e.setState({defaultActiveFirst:(0,i.Z)((0,i.Z)({},r.defaultActiveFirst),{},(0,T.Z)({},o,n))})},$e=function(e){(0,u.Z)(n,e);var t=(0,l.Z)(n);function n(e){var o;(0,r.Z)(this,n),(o=t.call(this,e)).onDestroy=function(e){o.props.onDestroy(e)},o.onKeyDown=function(e){var t=e.keyCode,n=o.menuInstance,i=o.props.store,r=o.getVisible();if(t===x.Z.ENTER)return o.onTitleClick(e),Ge(i,o.props.eventKey,!0),!0;if(t===x.Z.RIGHT)return r?n.onKeyDown(e):(o.triggerOpenChange(!0),Ge(i,o.props.eventKey,!0)),!0;if(t===x.Z.LEFT){var a;if(!r)return;return(a=n.onKeyDown(e))||(o.triggerOpenChange(!1),a=!0),a}return!r||t!==x.Z.UP&&t!==x.Z.DOWN?void 0:n.onKeyDown(e)},o.onOpenChange=function(e){o.props.onOpenChange(e)},o.onPopupVisibleChange=function(e){o.triggerOpenChange(e,e?"mouseenter":"mouseleave")},o.onMouseEnter=function(e){var t=o.props,n=t.eventKey,i=t.onMouseEnter,r=t.store;Ge(r,o.props.eventKey,!1),i({key:n,domEvent:e})},o.onMouseLeave=function(e){var t=o.props,n=t.parentMenu,i=t.eventKey,r=t.onMouseLeave;n.subMenuInstance=(0,s.Z)(o),r({key:i,domEvent:e})},o.onTitleMouseEnter=function(e){var t=o.props,n=t.eventKey,i=t.onItemHover,r=t.onTitleMouseEnter;i({key:n,hover:!0}),r({key:n,domEvent:e})},o.onTitleMouseLeave=function(e){var t=o.props,n=t.parentMenu,i=t.eventKey,r=t.onItemHover,a=t.onTitleMouseLeave;n.subMenuInstance=(0,s.Z)(o),r({key:i,hover:!1}),a({key:i,domEvent:e})},o.onTitleClick=function(e){var t=(0,s.Z)(o).props;t.onTitleClick({key:t.eventKey,domEvent:e}),"hover"!==t.triggerSubMenuAction&&(o.triggerOpenChange(!o.getVisible(),"click"),Ge(t.store,o.props.eventKey,!1))},o.onSubMenuClick=function(e){"function"==typeof o.props.onClick&&o.props.onClick(o.addKeyPath(e))},o.onSelect=function(e){o.props.onSelect(e)},o.onDeselect=function(e){o.props.onDeselect(e)},o.getPrefixCls=function(){return"".concat(o.props.rootPrefixCls,"-submenu")},o.getActiveClassName=function(){return"".concat(o.getPrefixCls(),"-active")},o.getDisabledClassName=function(){return"".concat(o.getPrefixCls(),"-disabled")},o.getSelectedClassName=function(){return"".concat(o.getPrefixCls(),"-selected")},o.getOpenClassName=function(){return"".concat(o.props.rootPrefixCls,"-submenu-open")},o.getVisible=function(){return o.state.isOpen},o.getMode=function(){return o.state.mode},o.saveMenuInstance=function(e){o.menuInstance=e},o.addKeyPath=function(e){return(0,i.Z)((0,i.Z)({},e),{},{keyPath:(e.keyPath||[]).concat(o.props.eventKey)})},o.triggerOpenChange=function(e,t){var n=o.props.eventKey,i=function(){o.onOpenChange({key:n,item:(0,s.Z)(o),trigger:t,open:e})};"mouseenter"===t?o.mouseenterTimeout=setTimeout((function(){i()}),0):i()},o.isChildrenSelected=function(){var e={find:!1};return te(o.props.children,o.props.selectedKeys,e),e.find},o.isInlineMode=function(){return"inline"===o.getMode()},o.adjustWidth=function(){if(o.subMenuTitle&&o.menuInstance){var e=se.findDOMNode(o.menuInstance);e.offsetWidth>=o.subMenuTitle.offsetWidth||(e.style.minWidth="".concat(o.subMenuTitle.offsetWidth,"px"))}},o.saveSubMenuTitle=function(e){o.subMenuTitle=e},o.getBaseProps=function(){var e=(0,s.Z)(o).props,t=o.getMode();return{mode:"horizontal"===t?"vertical":t,visible:o.getVisible(),level:e.level+1,inlineIndent:e.inlineIndent,focusable:!1,onClick:o.onSubMenuClick,onSelect:o.onSelect,onDeselect:o.onDeselect,onDestroy:o.onDestroy,selectedKeys:e.selectedKeys,eventKey:"".concat(e.eventKey,"-menu-"),openKeys:e.openKeys,motion:e.motion,onOpenChange:o.onOpenChange,subMenuOpenDelay:e.subMenuOpenDelay,parentMenu:(0,s.Z)(o),subMenuCloseDelay:e.subMenuCloseDelay,forceSubMenuRender:e.forceSubMenuRender,triggerSubMenuAction:e.triggerSubMenuAction,builtinPlacements:e.builtinPlacements,defaultActiveFirst:e.store.getState().defaultActiveFirst[J(e.eventKey)],multiple:e.multiple,prefixCls:e.rootPrefixCls,id:o.internalMenuId,manualRef:o.saveMenuInstance,itemIcon:e.itemIcon,expandIcon:e.expandIcon,direction:e.direction}},o.getMotion=function(e,t){var n=(0,s.Z)(o).haveRendered,r=o.props,a=r.motion,u=r.rootPrefixCls;return(0,i.Z)((0,i.Z)({},a),{},{leavedClassName:"".concat(u,"-hidden"),removeOnLeave:!1,motionAppear:n||!t||"inline"!==e})};var a=e.store,u=e.eventKey,l=a.getState().defaultActiveFirst;o.isRootMenu=!1;var c=!1;return l&&(c=l[u]),Ge(a,u,c),o.state={mode:e.mode,isOpen:e.isOpen},o}return(0,a.Z)(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this,t=this.props,n=t.mode,o=t.parentMenu,i=t.manualRef,r=t.isOpen,a=function(){e.setState({mode:n,isOpen:r})},s=r!==this.state.isOpen,u=n!==this.state.mode;(u||s)&&(ce.Z.cancel(this.updateStateRaf),u?this.updateStateRaf=(0,ce.Z)(a):a()),i&&i(this),"horizontal"===n&&(null==o?void 0:o.isRootMenu)&&r&&(this.minWidthTimeout=setTimeout((function(){return e.adjustWidth()}),0))}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.onDestroy,n=e.eventKey;t&&t(n),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),ce.Z.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(e,t){var n=this.getBaseProps();return c.createElement(st,Object.assign({},n,{id:this.internalMenuId,className:e,style:t}),this.props.children)}},{key:"renderChildren",value:function(){var e=this,t=this.getBaseProps(),n=t.mode,o=t.visible,i=t.forceSubMenuRender,r=t.direction,a=this.getMotion(n,o);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||o||i,!this.haveOpened)return c.createElement("div",null);var s=S()("".concat(t.prefixCls,"-sub"),(0,T.Z)({},"".concat(t.prefixCls,"-rtl"),"rtl"===r));return this.isInlineMode()?c.createElement(ge.Z,Object.assign({visible:t.visible},a),(function(t){var n=t.className,o=t.style,i=S()(s,n);return e.renderPopupMenu(i,o)})):this.renderPopupMenu(s)}},{key:"render",value:function(){var e,t,n,o=(0,i.Z)({},this.props),r=this.getVisible(),a=this.getPrefixCls(),s=this.isInlineMode(),u=this.getMode(),l=S()(a,"".concat(a,"-").concat(u),(e={},(0,T.Z)(e,o.className,!!o.className),(0,T.Z)(e,this.getOpenClassName(),r),(0,T.Z)(e,this.getActiveClassName(),o.active||r&&!s),(0,T.Z)(e,this.getDisabledClassName(),o.disabled),(0,T.Z)(e,this.getSelectedClassName(),this.isChildrenSelected()),e));this.internalMenuId||(o.eventKey?this.internalMenuId="".concat(o.eventKey,"$Menu"):(_e+=1,this.internalMenuId="$__$".concat(_e,"$Menu")));var p={},f={},d={};o.disabled||(p={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},f={onClick:this.onTitleClick},d={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var v={},m="rtl"===o.direction;s&&(m?v.paddingRight=o.inlineIndent*o.level:v.paddingLeft=o.inlineIndent*o.level);var h={};this.getVisible()&&(h={"aria-owns":this.internalMenuId});var y=null;"horizontal"!==u&&(y=this.props.expandIcon,"function"==typeof this.props.expandIcon&&(y=c.createElement(this.props.expandIcon,(0,i.Z)({},this.props))));var g=c.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:v,className:"".concat(a,"-title"),role:"button"},d,f,{"aria-expanded":r},h,{"aria-haspopup":"true",title:"string"==typeof o.title?o.title:void 0}),o.title,y||c.createElement("i",{className:"".concat(a,"-arrow")})),b=this.renderChildren(),C=(null===(t=o.parentMenu)||void 0===t?void 0:t.isRootMenu)?o.parentMenu.props.getPopupContainer:function(e){return e.parentNode},M=Xe[u],w=o.popupOffset?{offset:o.popupOffset}:{},Z=S()((n={},(0,T.Z)(n,o.popupClassName,o.popupClassName&&!s),(0,T.Z)(n,"".concat(a,"-rtl"),m),n)),k=o.disabled,E=o.triggerSubMenuAction,x=o.subMenuOpenDelay,P=o.forceSubMenuRender,O=o.subMenuCloseDelay,D=o.builtinPlacements;ne.forEach((function(e){return delete o[e]})),delete o.onClick;var N=m?Object.assign({},Ye,D):Object.assign({},Ue,D);delete o.direction;var R=this.getBaseProps(),I=s?null:this.getMotion(R.mode,R.visible);return c.createElement("li",Object.assign({},o,p,{className:l,role:"menuitem"}),c.createElement(Be,{prefixCls:a,popupClassName:S()("".concat(a,"-popup"),Z),getPopupContainer:C,builtinPlacements:N,popupPlacement:M,popupVisible:!s&&r,popupAlign:w,popup:s?null:b,action:k||s?[]:[E],mouseEnterDelay:x,mouseLeaveDelay:O,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:P,popupMotion:I},g),s?b:null)}}]),n}(c.Component);$e.defaultProps={onMouseEnter:q,onMouseLeave:q,onTitleMouseEnter:q,onTitleMouseLeave:q,onTitleClick:q,manualRef:q,mode:"vertical",title:""};var qe=w((function(e,t){var n=e.openKeys,o=e.activeKey,i=e.selectedKeys,r=t.eventKey,a=t.subMenuKey;return{isOpen:n.indexOf(r)>-1,active:o[a]===r,selectedKeys:i}}))($e);qe.isSubMenu=!0;var Qe=qe,Je="menuitem-overflowed",et=function(e){(0,u.Z)(n,e);var t=(0,l.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).resizeObserver=null,e.mutationObserver=null,e.originalTotalWidth=0,e.overflowedItems=[],e.menuItemSizes=[],e.cancelFrameId=null,e.state={lastVisibleIndex:void 0},e.getMenuItemNodes=function(){var t=e.props.prefixCls,n=se.findDOMNode((0,s.Z)(e));return n?[].slice.call(n.children).filter((function(e){return e.className.split(" ").indexOf("".concat(t,"-overflowed-submenu"))<0})):[]},e.getOverflowedSubMenuItem=function(t,n,o){var r=e.props,a=r.overflowedIndicator,s=r.level,u=r.mode,l=r.prefixCls,p=r.theme;if(1!==s||"horizontal"!==u)return null;var f=e.props.children[0].props,d=(f.children,f.title,f.style),v=(0,ae.Z)(f,["children","title","style"]),m=(0,i.Z)({},d),h="".concat(t,"-overflowed-indicator"),y="".concat(t,"-overflowed-indicator");0===n.length&&!0!==o?m=(0,i.Z)((0,i.Z)({},m),{},{display:"none"}):o&&(m=(0,i.Z)((0,i.Z)({},m),{},{visibility:"hidden",position:"absolute"}),h="".concat(h,"-placeholder"),y="".concat(y,"-placeholder"));var g=p?"".concat(l,"-").concat(p):"",b={};return ne.forEach((function(e){void 0!==v[e]&&(b[e]=v[e])})),c.createElement(Qe,Object.assign({title:a,className:"".concat(l,"-overflowed-submenu"),popupClassName:g},b,{key:h,eventKey:y,disabled:!1,style:m}),n)},e.setChildrenWidthAndResize=function(){if("horizontal"===e.props.mode){var t=se.findDOMNode((0,s.Z)(e));if(t){var n=t.children;if(n&&0!==n.length){var o=t.children[n.length-1];ie(o,"display","inline-block");var i=e.getMenuItemNodes(),r=i.filter((function(e){return e.className.split(" ").indexOf(Je)>=0}));r.forEach((function(e){ie(e,"display","inline-block")})),e.menuItemSizes=i.map((function(e){return oe(e,!0)})),r.forEach((function(e){ie(e,"display","none")})),e.overflowedIndicatorWidth=oe(t.children[t.children.length-1],!0),e.originalTotalWidth=e.menuItemSizes.reduce((function(e,t){return e+t}),0),e.handleResize(),ie(o,"display","none")}}}},e.handleResize=function(){if("horizontal"===e.props.mode){var t=se.findDOMNode((0,s.Z)(e));if(t){var n=oe(t);e.overflowedItems=[];var o,i=0;e.originalTotalWidth>n+.5&&(o=-1,e.menuItemSizes.forEach((function(t){(i+=t)+e.overflowedIndicatorWidth<=n&&(o+=1)}))),e.setState({lastVisibleIndex:o})}}},e}return(0,a.Z)(n,[{key:"componentDidMount",value:function(){var e=this;if(this.setChildrenWidthAndResize(),1===this.props.level&&"horizontal"===this.props.mode){var t=se.findDOMNode(this);if(!t)return;this.resizeObserver=new le.Z((function(t){t.forEach((function(){var t=e.cancelFrameId;cancelAnimationFrame(t),e.cancelFrameId=requestAnimationFrame(e.setChildrenWidthAndResize)}))})),[].slice.call(t.children).concat(t).forEach((function(t){e.resizeObserver.observe(t)})),"undefined"!=typeof MutationObserver&&(this.mutationObserver=new MutationObserver((function(){e.resizeObserver.disconnect(),[].slice.call(t.children).concat(t).forEach((function(t){e.resizeObserver.observe(t)})),e.setChildrenWidthAndResize()})),this.mutationObserver.observe(t,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(e){var t=this,n=this.state.lastVisibleIndex;return(e||[]).reduce((function(o,i,r){var a=i;if("horizontal"===t.props.mode){var s=t.getOverflowedSubMenuItem(i.props.eventKey,[]);void 0!==n&&-1!==t.props.className.indexOf("".concat(t.props.prefixCls,"-root"))&&(r>n&&(a=c.cloneElement(i,{style:{display:"none"},eventKey:"".concat(i.props.eventKey,"-hidden"),className:"".concat(Je)})),r===n+1&&(t.overflowedItems=e.slice(n+1).map((function(e){return c.cloneElement(e,{key:e.props.eventKey,mode:"vertical-left"})})),s=t.getOverflowedSubMenuItem(i.props.eventKey,t.overflowedItems)));var u=[].concat((0,re.Z)(o),[s,a]);return r===e.length-1&&u.push(t.getOverflowedSubMenuItem(i.props.eventKey,[],!0)),u}return[].concat((0,re.Z)(o),[a])}),[])}},{key:"render",value:function(){var e=this.props,t=(e.visible,e.prefixCls,e.overflowedIndicator,e.mode,e.level,e.tag),n=e.children,o=(e.theme,(0,ae.Z)(e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"])),i=t;return c.createElement(i,Object.assign({},o),this.renderChildren(n))}}]),n}(c.Component);et.defaultProps={tag:"div",className:""};var tt=et;function nt(e,t,n){var o=e.getState();e.setState({activeKey:(0,i.Z)((0,i.Z)({},o.activeKey),{},(0,T.Z)({},t,n))})}function ot(e){return e.eventKey||"0-menu-"}function it(e,t){var n,o=t,i=e.children,r=e.eventKey;return o&&(ee(i,(function(e,t){e&&e.props&&!e.props.disabled&&o===Q(e,r,t)&&(n=!0)})),n)?o:(o=null,e.defaultActiveFirst?(ee(i,(function(e,t){o||!e||e.props.disabled||(o=Q(e,r,t))})),o):o)}function rt(e){if(e){var t=this.instanceArray.indexOf(e);-1!==t?this.instanceArray[t]=e:this.instanceArray.push(e)}}var at=function(e){(0,u.Z)(n,e);var t=(0,l.Z)(n);function n(e){var o;return(0,r.Z)(this,n),(o=t.call(this,e)).onKeyDown=function(e,t){var n,i=e.keyCode;if(o.getFlatInstanceArray().forEach((function(t){t&&t.props.active&&t.onKeyDown&&(n=t.onKeyDown(e))})),n)return 1;var r=null;return i!==x.Z.UP&&i!==x.Z.DOWN||(r=o.step(i===x.Z.UP?-1:1)),r?(e.preventDefault(),nt(o.props.store,ot(o.props),r.props.eventKey),"function"==typeof t&&t(r),1):void 0},o.onItemHover=function(e){var t=e.key,n=e.hover;nt(o.props.store,ot(o.props),n?t:null)},o.onDeselect=function(e){o.props.onDeselect(e)},o.onSelect=function(e){o.props.onSelect(e)},o.onClick=function(e){o.props.onClick(e)},o.onOpenChange=function(e){o.props.onOpenChange(e)},o.onDestroy=function(e){o.props.onDestroy(e)},o.getFlatInstanceArray=function(){return o.instanceArray},o.step=function(e){var t=o.getFlatInstanceArray(),n=o.props.store.getState().activeKey[ot(o.props)],i=t.length;if(!i)return null;e<0&&(t=t.concat().reverse());var r=-1;if(t.every((function(e,t){return!e||e.props.eventKey!==n||(r=t,!1)})),o.props.defaultActiveFirst||-1===r||(a=t.slice(r,i-1)).length&&!a.every((function(e){return!!e.props.disabled}))){var a,s=(r+1)%i,u=s;do{var l=t[u];if(l&&!l.props.disabled)return l;u=(u+1)%i}while(u!==s);return null}},o.renderCommonMenuItem=function(e,t,n){var r=o.props.store.getState(),a=(0,s.Z)(o).props,u=Q(e,a.eventKey,t),l=e.props;if(!l||"string"==typeof e.type)return e;var p=u===r.activeKey,f=(0,i.Z)((0,i.Z)({mode:l.mode||a.mode,level:a.level,inlineIndent:a.inlineIndent,renderMenuItem:o.renderMenuItem,rootPrefixCls:a.prefixCls,index:t,parentMenu:a.parentMenu,manualRef:l.disabled?void 0:P(e.ref,rt.bind((0,s.Z)(o))),eventKey:u,active:!l.disabled&&p,multiple:a.multiple,onClick:function(e){(l.onClick||q)(e),o.onClick(e)},onItemHover:o.onItemHover,motion:a.motion,subMenuOpenDelay:a.subMenuOpenDelay,subMenuCloseDelay:a.subMenuCloseDelay,forceSubMenuRender:a.forceSubMenuRender,onOpenChange:o.onOpenChange,onDeselect:o.onDeselect,onSelect:o.onSelect,builtinPlacements:a.builtinPlacements,itemIcon:l.itemIcon||o.props.itemIcon,expandIcon:l.expandIcon||o.props.expandIcon},n),{},{direction:a.direction});return("inline"===a.mode||$.any)&&(f.triggerSubMenuAction="click"),c.cloneElement(e,(0,i.Z)((0,i.Z)({},f),{},{key:u||t}))},o.renderMenuItem=function(e,t,n){if(!e)return null;var i=o.props.store.getState(),r={openKeys:i.openKeys,selectedKeys:i.selectedKeys,triggerSubMenuAction:o.props.triggerSubMenuAction,subMenuKey:n};return o.renderCommonMenuItem(e,t,r)},e.store.setState({activeKey:(0,i.Z)((0,i.Z)({},e.store.getState().activeKey),{},(0,T.Z)({},e.eventKey,it(e,e.activeKey)))}),o.instanceArray=[],o}return(0,a.Z)(n,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(e){return this.props.visible||e.visible||this.props.className!==e.className||!h()(this.props.style,e.style)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n="activeKey"in t?t.activeKey:t.store.getState().activeKey[ot(t)],o=it(t,n);(o!==n||"activeKey"in e&&o!==it(e,e.activeKey))&&nt(t.store,ot(t),o)}},{key:"render",value:function(){var e=this,t=(0,E.Z)({},this.props);this.instanceArray=[];var n={className:S()(t.prefixCls,t.className,"".concat(t.prefixCls,"-").concat(t.mode)),role:t.role||"menu"};t.id&&(n.id=t.id),t.focusable&&(n.tabIndex=0,n.onKeyDown=this.onKeyDown);var o=t.prefixCls,i=t.eventKey,r=t.visible,a=t.level,s=t.mode,u=t.overflowedIndicator,l=t.theme;return ne.forEach((function(e){return delete t[e]})),delete t.onClick,c.createElement(tt,Object.assign({},t,{prefixCls:o,mode:s,tag:"ul",level:a,theme:l,visible:r,overflowedIndicator:u},n),(0,O.Z)(t.children).map((function(t,n){return e.renderMenuItem(t,n,i||"0-menu-")})))}}]),n}(c.Component);at.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:q};var st=w()(at),ut=n(1894);function lt(e,t,n){var o=e.prefixCls,i=e.motion,r=e.defaultMotions,a=void 0===r?{}:r,s=e.openAnimation,u=e.openTransitionName,l=t.switchingModeFromInline;if(i)return i;if("object"===(0,N.Z)(s)&&s)(0,ut.ZP)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if("string"==typeof s)return{motionName:"".concat(o,"-open-").concat(s)};return u?{motionName:u}:a[n]||(l?null:a.other)}var ct=function(e){(0,u.Z)(n,e);var t=(0,l.Z)(n);function n(e){var o;(0,r.Z)(this,n),(o=t.call(this,e)).onSelect=function(e){var t=(0,s.Z)(o).props;if(t.selectable){var n=o.store.getState().selectedKeys,r=e.key;n=t.multiple?n.concat([r]):[r],"selectedKeys"in t||o.store.setState({selectedKeys:n}),t.onSelect((0,i.Z)((0,i.Z)({},e),{},{selectedKeys:n}))}},o.onClick=function(e){var t=o.getRealMenuMode(),n=(0,s.Z)(o),i=n.store,r=n.props.onOpenChange;"inline"===t||"openKeys"in o.props||(i.setState({openKeys:[]}),r([])),o.props.onClick(e)},o.onKeyDown=function(e,t){o.innerMenu.getWrappedInstance().onKeyDown(e,t)},o.onOpenChange=function(e){var t=(0,s.Z)(o).props,n=o.store.getState().openKeys.concat(),i=!1,r=function(e){var t=!1;if(e.open)(t=-1===n.indexOf(e.key))&&n.push(e.key);else{var o=n.indexOf(e.key);(t=-1!==o)&&n.splice(o,1)}i=i||t};Array.isArray(e)?e.forEach(r):r(e),i&&("openKeys"in o.props||o.store.setState({openKeys:n}),t.onOpenChange(n))},o.onDeselect=function(e){var t=(0,s.Z)(o).props;if(t.selectable){var n=o.store.getState().selectedKeys.concat(),r=e.key,a=n.indexOf(r);-1!==a&&n.splice(a,1),"selectedKeys"in t||o.store.setState({selectedKeys:n}),t.onDeselect((0,i.Z)((0,i.Z)({},e),{},{selectedKeys:n}))}},o.onMouseEnter=function(e){o.restoreModeVerticalFromInline();var t=o.props.onMouseEnter;t&&t(e)},o.onTransitionEnd=function(e){var t="width"===e.propertyName&&e.target===e.currentTarget,n=e.target.className,i="[object SVGAnimatedString]"===Object.prototype.toString.call(n)?n.animVal:n,r="font-size"===e.propertyName&&i.indexOf("anticon")>=0;(t||r)&&o.restoreModeVerticalFromInline()},o.setInnerMenu=function(e){o.innerMenu=e},o.isRootMenu=!0;var a,u,l,c=e.defaultSelectedKeys,p=e.defaultOpenKeys;return"selectedKeys"in e&&(c=e.selectedKeys||[]),"openKeys"in e&&(p=e.openKeys||[]),o.store=(a={selectedKeys:c,openKeys:p,activeKey:{"0-menu-":it(e,e.activeKey)}},u=a,l=[],{setState:function(e){u=Z(Z({},u),e);for(var t=0;t<l.length;t++)l[t]()},getState:function(){return u},subscribe:function(e){return l.push(e),function(){var t=l.indexOf(e);l.splice(t,1)}}}),o.state={switchingModeFromInline:!1,prevProps:e,inlineOpenKeys:[],store:o.store},o}return(0,a.Z)(n,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.siderCollapsed,o=t.inlineCollapsed,i=t.onOpenChange;(!e.inlineCollapsed&&o||!e.siderCollapsed&&n)&&i([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var e=this.props.collapsedWidth,t=this.store,n=this.prevOpenKeys;!this.getInlineCollapsed()||0!==e&&"0"!==e&&"0px"!==e?n&&(this.store.setState({openKeys:n}),this.prevOpenKeys=null):(this.prevOpenKeys=t.getState().openKeys.concat(),this.store.setState({openKeys:[]}))}},{key:"getRealMenuMode",value:function(){var e=this.props.mode,t=this.state.switchingModeFromInline,n=this.getInlineCollapsed();return t&&n?"inline":n?"vertical":e}},{key:"getInlineCollapsed",value:function(){var e=this.props,t=e.inlineCollapsed,n=e.siderCollapsed;return void 0!==n?n:t}},{key:"restoreModeVerticalFromInline",value:function(){this.state.switchingModeFromInline&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var e=(0,i.Z)({},(0,k.Z)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),t=this.getRealMenuMode();return e.className+=" ".concat(e.prefixCls,"-root"),"rtl"===e.direction&&(e.className+=" ".concat(e.prefixCls,"-rtl")),delete(e=(0,i.Z)((0,i.Z)({},e),{},{mode:t,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:lt(this.props,this.state,t)})).openAnimation,delete e.openTransitionName,c.createElement(v,{store:this.store},c.createElement(st,Object.assign({},e,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,o=t.store,i=o.getState(),r={},a={prevProps:e};return"inline"===n.mode&&"inline"!==e.mode&&(a.switchingModeFromInline=!0),"openKeys"in e?r.openKeys=e.openKeys:((e.inlineCollapsed&&!n.inlineCollapsed||e.siderCollapsed&&!n.siderCollapsed)&&(a.switchingModeFromInline=!0,a.inlineOpenKeys=i.openKeys,r.openKeys=[]),(!e.inlineCollapsed&&n.inlineCollapsed||!e.siderCollapsed&&n.siderCollapsed)&&(r.openKeys=t.inlineOpenKeys,a.inlineOpenKeys=[])),Object.keys(r).length&&o.setState(r),a}}]),n}(c.Component);ct.defaultProps={selectable:!0,onClick:q,onSelect:q,onOpenChange:q,onDeselect:q,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:c.createElement("span",null,"···")};var pt=ct,ft=function(e){(0,u.Z)(n,e);var t=(0,l.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).onKeyDown=function(t){if(t.keyCode===x.Z.ENTER)return e.onClick(t),!0},e.onMouseLeave=function(t){var n=e.props,o=n.eventKey,i=n.onItemHover,r=n.onMouseLeave;i({key:o,hover:!1}),r({key:o,domEvent:t})},e.onMouseEnter=function(t){var n=e.props,o=n.eventKey,i=n.onItemHover,r=n.onMouseEnter;i({key:o,hover:!0}),r({key:o,domEvent:t})},e.onClick=function(t){var n=e.props,o=n.eventKey,i=n.multiple,r=n.onClick,a=n.onSelect,u=n.onDeselect,l=n.isSelected,c={key:o,keyPath:[o],item:(0,s.Z)(e),domEvent:t};r(c),i?l?u(c):a(c):l||a(c)},e.saveNode=function(t){e.node=t},e}return(0,a.Z)(n,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var e=this.props;e.onDestroy&&e.onDestroy(e.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var e,t=(0,i.Z)({},this.props),n=S()(this.getPrefixCls(),t.className,(e={},(0,T.Z)(e,this.getActiveClassName(),!t.disabled&&t.active),(0,T.Z)(e,this.getSelectedClassName(),t.isSelected),(0,T.Z)(e,this.getDisabledClassName(),t.disabled),e)),o=(0,i.Z)((0,i.Z)({},t.attribute),{},{title:"string"==typeof t.title?t.title:void 0,className:n,role:t.role||"menuitem","aria-disabled":t.disabled});"option"===t.role?o=(0,i.Z)((0,i.Z)({},o),{},{role:"option","aria-selected":t.isSelected}):null!==t.role&&"none"!==t.role||(o.role="none");var r={onClick:t.disabled?null:this.onClick,onMouseLeave:t.disabled?null:this.onMouseLeave,onMouseEnter:t.disabled?null:this.onMouseEnter},a=(0,i.Z)({},t.style);"inline"===t.mode&&("rtl"===t.direction?a.paddingRight=t.inlineIndent*t.level:a.paddingLeft=t.inlineIndent*t.level),ne.forEach((function(e){return delete t[e]})),delete t.direction;var s=this.props.itemIcon;return"function"==typeof this.props.itemIcon&&(s=c.createElement(this.props.itemIcon,this.props)),c.createElement("li",Object.assign({},(0,k.Z)(t,["onClick","onMouseEnter","onMouseLeave","onSelect"]),o,r,{style:a,ref:this.saveNode}),t.children,s)}}]),n}(c.Component);ft.isMenuItem=!0,ft.defaultProps={onSelect:q,onMouseEnter:q,onMouseLeave:q,manualRef:q};var dt=w((function(e,t){var n=e.activeKey,o=e.selectedKeys,i=t.eventKey;return{active:n[t.subMenuKey]===i,isSelected:-1!==o.indexOf(i)}}))(ft),vt=function(e){(0,u.Z)(n,e);var t=(0,l.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).renderInnerMenuItem=function(t){var n=e.props;return(0,n.renderMenuItem)(t,n.index,e.props.subMenuKey)},e}return(0,a.Z)(n,[{key:"render",value:function(){var e=(0,E.Z)({},this.props),t=e.className,n=void 0===t?"":t,o=e.rootPrefixCls,i="".concat(o,"-item-group-title"),r="".concat(o,"-item-group-list"),a=e.title,s=e.children;return ne.forEach((function(t){return delete e[t]})),delete e.onClick,delete e.direction,c.createElement("li",Object.assign({},e,{className:"".concat(n," ").concat(o,"-item-group")}),c.createElement("div",{className:i,title:"string"==typeof a?a:void 0},a),c.createElement("ul",{className:r},c.Children.map(s,this.renderInnerMenuItem)))}}]),n}(c.Component);vt.isMenuItemGroup=!0,vt.defaultProps={disabled:!0};var mt=vt,ht=function(e){var t=e.className,n=e.rootPrefixCls,o=e.style;return c.createElement("li",{className:"".concat(t," ").concat(n,"-item-divider"),style:o})};ht.defaultProps={disabled:!0,className:"",style:{}};var yt=ht,gt=pt},5724:function(e){e.exports=function(e,t,n,o){var i=n?n.call(o,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),u=0;u<r.length;u++){var l=r[u];if(!s(l))return!1;var c=e[l],p=t[l];if(!1===(i=n?n.call(o,c,p,l):void 0)||void 0===i&&c!==p)return!1}return!0}},9080:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var o=n(7363),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},r=n(3751),a=function(e,t){return o.createElement(r.Z,Object.assign({},e,{ref:t,icon:i}))};a.displayName="EllipsisOutlined";var s=o.forwardRef(a)},9033:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var o=n(7363),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},r=n(3751),a=function(e,t){return o.createElement(r.Z,Object.assign({},e,{ref:t,icon:i}))};a.displayName="PlusOutlined";var s=o.forwardRef(a)},9440:function(e,t,n){"use strict";n.d(t,{Z:function(){return G}});var o=n(4741),i=n(63),r=n(7363),a=n(7228),s=n(3429),u=n(4115),l=n(2711),c=n(2286),p=n.n(c),f=n(4237),d=n(4511),v=n(8833),m=n(7870),h=n(6871),y=n(2177);function g(e){var t=(0,r.useRef)(),n=(0,r.useRef)(!1);return(0,r.useEffect)((function(){return function(){n.current=!0,h.Z.cancel(t.current)}}),[]),function(){for(var o=arguments.length,i=new Array(o),r=0;r<o;r++)i[r]=arguments[r];n.current||(h.Z.cancel(t.current),t.current=(0,h.Z)((function(){e.apply(void 0,i)})))}}var b=n(5065);function C(e,t){var n,o=e.prefixCls,a=e.id,s=e.active,u=e.rtl,l=e.tab,c=l.key,f=l.tab,d=l.disabled,v=l.closeIcon,m=e.tabBarGutter,h=e.tabPosition,y=e.closable,g=e.renderWrapper,C=e.removeAriaLabel,M=e.editable,w=e.onClick,Z=e.onRemove,k=e.onFocus,E="".concat(o,"-tab");r.useEffect((function(){return Z}),[]);var T={};"top"===h||"bottom"===h?T[u?"marginLeft":"marginRight"]=m:T.marginBottom=m;var x=M&&!1!==y&&!d;function P(e){d||w(e)}var O=r.createElement("div",{key:c,ref:t,className:p()(E,(n={},(0,i.Z)(n,"".concat(E,"-with-remove"),x),(0,i.Z)(n,"".concat(E,"-active"),s),(0,i.Z)(n,"".concat(E,"-disabled"),d),n)),style:T,onClick:P},r.createElement("div",{role:"tab","aria-selected":s,id:a&&"".concat(a,"-tab-").concat(c),className:"".concat(E,"-btn"),"aria-controls":a&&"".concat(a,"-panel-").concat(c),"aria-disabled":d,tabIndex:d?null:0,onClick:function(e){e.stopPropagation(),P(e)},onKeyDown:function(e){[b.Z.SPACE,b.Z.ENTER].includes(e.which)&&(e.preventDefault(),P(e))},onFocus:k},f),x&&r.createElement("button",{type:"button","aria-label":C||"remove",tabIndex:0,className:"".concat(E,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),M.onEdit("remove",{key:c,event:t})}},v||M.removeIcon||"×"));return g&&(O=g(O)),O}var M=r.forwardRef(C),w={width:0,height:0,left:0,top:0},Z={width:0,height:0,left:0,top:0,right:0},k=n(1987),E=n(7933);function T(e,t){var n=e.prefixCls,o=e.editable,i=e.locale,a=e.style;return o&&!1!==o.showAdd?r.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(null==i?void 0:i.addAriaLabel)||"Add tab",onClick:function(e){o.onEdit("add",{event:e})}},o.addIcon||"+"):null}var x=r.forwardRef(T);function P(e,t){var n=e.prefixCls,o=e.id,s=e.tabs,u=e.locale,l=e.mobile,c=e.moreIcon,f=void 0===c?"More":c,d=e.moreTransitionName,v=e.style,m=e.className,h=e.editable,y=e.tabBarGutter,g=e.rtl,C=e.onTabClick,M=(0,r.useState)(!1),w=(0,a.Z)(M,2),Z=w[0],T=w[1],P=(0,r.useState)(null),O=(0,a.Z)(P,2),D=O[0],S=O[1],N="".concat(o,"-more-popup"),R="".concat(n,"-dropdown"),I=null!==D?"".concat(N,"-").concat(D):null,A=null==u?void 0:u.dropdownAriaLabel,K=r.createElement(k.ZP,{onClick:function(e){var t=e.key,n=e.domEvent;C(t,n),T(!1)},id:N,tabIndex:-1,role:"listbox","aria-activedescendant":I,selectedKeys:[D],"aria-label":void 0!==A?A:"expanded dropdown"},s.map((function(e){return r.createElement(k.sN,{key:e.key,id:"".concat(N,"-").concat(e.key),role:"option","aria-controls":o&&"".concat(o,"-panel-").concat(e.key),disabled:e.disabled},e.tab)})));function V(e){for(var t=s.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===D}))||0,o=t.length,i=0;i<o;i+=1){var r=t[n=(n+e+o)%o];if(!r.disabled)return void S(r.key)}}(0,r.useEffect)((function(){var e=document.getElementById(I);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),[D]),(0,r.useEffect)((function(){Z||S(null)}),[Z]);var H=(0,i.Z)({},g?"marginLeft":"marginRight",y);s.length||(H.visibility="hidden",H.order=1);var L=p()((0,i.Z)({},"".concat(R,"-rtl"),g)),F=l?null:r.createElement(E.Z,{prefixCls:R,overlay:K,trigger:["hover"],visible:Z,transitionName:d,onVisibleChange:T,overlayClassName:L,mouseEnterDelay:.1,mouseLeaveDelay:.1},r.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:H,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":N,id:"".concat(o,"-more"),"aria-expanded":Z,onKeyDown:function(e){var t=e.which;if(Z)switch(t){case b.Z.UP:V(-1),e.preventDefault();break;case b.Z.DOWN:V(1),e.preventDefault();break;case b.Z.ESC:T(!1);break;case b.Z.SPACE:case b.Z.ENTER:null!==D&&C(D,e)}else[b.Z.DOWN,b.Z.SPACE,b.Z.ENTER].includes(t)&&(T(!0),e.preventDefault())}},f));return r.createElement("div",{className:p()("".concat(n,"-nav-operations"),m),style:v,ref:t},F,r.createElement(x,{prefixCls:n,locale:u,editable:h}))}var O=r.forwardRef(P),D=(0,r.createContext)(null),S=Math.pow(.995,20);function N(e,t){var n=r.useRef(e),o=r.useState({}),i=(0,a.Z)(o,2)[1];return[n.current,function(e){var o="function"==typeof e?e(n.current):e;o!==n.current&&t(o,n.current),n.current=o,i({})}]}var R=function(e){var t,n=e.position,o=e.prefixCls,i=e.extra;if(!i)return null;var a=i;return"right"===n&&(t=a.right||!a.left&&a||null),"left"===n&&(t=a.left||null),t?r.createElement("div",{className:"".concat(o,"-extra-content")},t):null};function I(e,t){var n,o,s=r.useContext(D),u=s.prefixCls,c=s.tabs,f=e.className,d=e.style,v=e.id,b=e.animated,C=e.activeKey,k=e.rtl,E=e.extra,T=e.editable,P=e.locale,I=e.tabPosition,A=e.tabBarGutter,K=e.children,V=e.onTabClick,H=e.onTabScroll,L=(0,r.useRef)(),F=(0,r.useRef)(),j=(0,r.useRef)(),z=(0,r.useRef)(),B=(o=(0,r.useRef)(new Map),[function(e){return o.current.has(e)||o.current.set(e,r.createRef()),o.current.get(e)},function(e){o.current.delete(e)}]),W=(0,a.Z)(B,2),U=W[0],Y=W[1],_="top"===I||"bottom"===I,X=N(0,(function(e,t){_&&H&&H({direction:e>t?"left":"right"})})),G=(0,a.Z)(X,2),$=G[0],q=G[1],Q=N(0,(function(e,t){!_&&H&&H({direction:e>t?"top":"bottom"})})),J=(0,a.Z)(Q,2),ee=J[0],te=J[1],ne=(0,r.useState)(0),oe=(0,a.Z)(ne,2),ie=oe[0],re=oe[1],ae=(0,r.useState)(0),se=(0,a.Z)(ae,2),ue=se[0],le=se[1],ce=(0,r.useState)(0),pe=(0,a.Z)(ce,2),fe=pe[0],de=pe[1],ve=(0,r.useState)(0),me=(0,a.Z)(ve,2),he=me[0],ye=me[1],ge=(0,r.useState)(null),be=(0,a.Z)(ge,2),Ce=be[0],Me=be[1],we=(0,r.useState)(null),Ze=(0,a.Z)(we,2),ke=Ze[0],Ee=Ze[1],Te=(0,r.useState)(0),xe=(0,a.Z)(Te,2),Pe=xe[0],Oe=xe[1],De=(0,r.useState)(0),Se=(0,a.Z)(De,2),Ne=Se[0],Re=Se[1],Ie=function(e){var t=(0,r.useRef)([]),n=(0,r.useState)({}),o=(0,a.Z)(n,2)[1],i=(0,r.useRef)("function"==typeof e?e():e),s=g((function(){var e=i.current;t.current.forEach((function(t){e=t(e)})),t.current=[],i.current=e,o({})}));return[i.current,function(e){t.current.push(e),s()}]}(new Map),Ae=(0,a.Z)(Ie,2),Ke=Ae[0],Ve=Ae[1],He=function(e,t,n){return(0,r.useMemo)((function(){for(var n,o=new Map,i=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||w,r=i.left+i.width,a=0;a<e.length;a+=1){var s,u=e[a].key,c=t.get(u);c||(c=t.get(null===(s=e[a-1])||void 0===s?void 0:s.key)||w);var p=o.get(u)||(0,l.Z)({},c);p.right=r-p.left-p.width,o.set(u,p)}return o}),[e.map((function(e){return e.key})).join("_"),t,n])}(c,Ke,ie),Le="".concat(u,"-nav-operations-hidden"),Fe=0,je=0;function ze(e){return e<Fe?Fe:e>je?je:e}_?k?(Fe=0,je=Math.max(0,ie-Ce)):(Fe=Math.min(0,Ce-ie),je=0):(Fe=Math.min(0,ke-ue),je=0);var Be=(0,r.useRef)(),We=(0,r.useState)(),Ue=(0,a.Z)(We,2),Ye=Ue[0],_e=Ue[1];function Xe(){_e(Date.now())}function Ge(){window.clearTimeout(Be.current)}function $e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:C,t=He.get(e)||{width:0,height:0,left:0,right:0,top:0};if(_){var n=$;k?t.right<$?n=t.right:t.right+t.width>$+Ce&&(n=t.right+t.width-Ce):t.left<-$?n=-t.left:t.left+t.width>-$+Ce&&(n=-(t.left+t.width-Ce)),te(0),q(ze(n))}else{var o=ee;t.top<-ee?o=-t.top:t.top+t.height>-ee+ke&&(o=-(t.top+t.height-ke)),q(0),te(ze(o))}}!function(e,t){var n=(0,r.useState)(),o=(0,a.Z)(n,2),i=o[0],s=o[1],u=(0,r.useState)(0),l=(0,a.Z)(u,2),c=l[0],p=l[1],f=(0,r.useState)(0),d=(0,a.Z)(f,2),v=d[0],m=d[1],h=(0,r.useState)(),y=(0,a.Z)(h,2),g=y[0],b=y[1],C=(0,r.useRef)(),M=(0,r.useRef)(),w=(0,r.useRef)(null);w.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,o=t.screenY;s({x:n,y:o}),window.clearInterval(C.current)},onTouchMove:function(e){if(i){e.preventDefault();var n=e.touches[0],o=n.screenX,r=n.screenY;s({x:o,y:r});var a=o-i.x,u=r-i.y;t(a,u);var l=Date.now();p(l),m(l-c),b({x:a,y:u})}},onTouchEnd:function(){if(i&&(s(null),b(null),g)){var e=g.x/v,n=g.y/v,o=Math.abs(e),r=Math.abs(n);if(Math.max(o,r)<.1)return;var a=e,u=n;C.current=window.setInterval((function(){Math.abs(a)<.01&&Math.abs(u)<.01?window.clearInterval(C.current):t(20*(a*=S),20*(u*=S))}),20)}},onWheel:function(e){var n=e.deltaX,o=e.deltaY,i=0,r=Math.abs(n),a=Math.abs(o);r===a?i="x"===M.current?n:o:r>a?(i=n,M.current="x"):(i=o,M.current="y"),t(-i,-i)&&e.preventDefault()}},r.useEffect((function(){function t(e){w.current.onTouchMove(e)}function n(e){w.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!1}),e.current.addEventListener("touchstart",(function(e){w.current.onTouchStart(e)}),{passive:!1}),e.current.addEventListener("wheel",(function(e){w.current.onWheel(e)})),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(L,(function(e,t){function n(e,t){e((function(e){return ze(e+t)}))}if(_){if(Ce>=ie)return!1;n(q,e)}else{if(ke>=ue)return!1;n(te,t)}return Ge(),Xe(),!0})),(0,r.useEffect)((function(){return Ge(),Ye&&(Be.current=window.setTimeout((function(){_e(0)}),100)),Ge}),[Ye]);var qe=function(e,t,n,o,i){var a,s,u,l=i.tabs,c=i.tabPosition,p=i.rtl;["top","bottom"].includes(c)?(a="width",s=p?"right":"left",u=Math.abs(t.left)):(a="height",s="top",u=-t.top);var f=t[a],d=o[a],v=f;return n[a]+d>f&&(v=f-d),(0,r.useMemo)((function(){if(!l.length)return[0,0];for(var t=l.length,n=t,o=0;o<t;o+=1){var i=e.get(l[o].key)||Z;if(i[s]+i[a]>u+v){n=o-1;break}}for(var r=0,c=t-1;c>=0;c-=1)if((e.get(l[c].key)||Z)[s]<u){r=c+1;break}return[r,n]}),[e,u,v,c,l.map((function(e){return e.key})).join("_"),p])}(He,{width:Ce,height:ke,left:$,top:ee},{width:fe,height:he},{width:Pe,height:Ne},(0,l.Z)((0,l.Z)({},e),{},{tabs:c})),Qe=(0,a.Z)(qe,2),Je=Qe[0],et=Qe[1],tt=c.map((function(e){var t=e.key;return r.createElement(M,{id:v,prefixCls:u,key:t,rtl:k,tab:e,closable:e.closable,editable:T,active:t===C,tabPosition:I,tabBarGutter:A,renderWrapper:K,removeAriaLabel:null==P?void 0:P.removeAriaLabel,ref:U(t),onClick:function(e){V(t,e)},onRemove:function(){Y(t)},onFocus:function(){$e(t),Xe(),k||(L.current.scrollLeft=0),L.current.scrollTop=0}})})),nt=g((function(){var e,t,n,o,i,r,a,s,u,l=(null===(e=L.current)||void 0===e?void 0:e.offsetWidth)||0,p=(null===(t=L.current)||void 0===t?void 0:t.offsetHeight)||0,f=(null===(n=z.current)||void 0===n?void 0:n.offsetWidth)||0,d=(null===(o=z.current)||void 0===o?void 0:o.offsetHeight)||0,v=(null===(i=j.current)||void 0===i?void 0:i.offsetWidth)||0,m=(null===(r=j.current)||void 0===r?void 0:r.offsetHeight)||0;Me(l),Ee(p),Oe(f),Re(d);var h=((null===(a=F.current)||void 0===a?void 0:a.offsetWidth)||0)-f,y=((null===(s=F.current)||void 0===s?void 0:s.offsetHeight)||0)-d;re(h),le(y);var g=null===(u=j.current)||void 0===u?void 0:u.className.includes(Le);de(h-(g?0:v)),ye(y-(g?0:m)),Ve((function(){var e=new Map;return c.forEach((function(t){var n=t.key,o=U(n).current;o&&e.set(n,{width:o.offsetWidth,height:o.offsetHeight,left:o.offsetLeft,top:o.offsetTop})})),e}))})),ot=c.slice(0,Je),it=c.slice(et+1),rt=[].concat((0,m.Z)(ot),(0,m.Z)(it)),at=(0,r.useState)(),st=(0,a.Z)(at,2),ut=st[0],lt=st[1],ct=He.get(C),pt=(0,r.useRef)();function ft(){h.Z.cancel(pt.current)}(0,r.useEffect)((function(){var e={};return ct&&(_?(k?e.right=ct.right:e.left=ct.left,e.width=ct.width):(e.top=ct.top,e.height=ct.height)),ft(),pt.current=(0,h.Z)((function(){lt(e)})),ft}),[ct,_,k]),(0,r.useEffect)((function(){$e()}),[C,ct,He,_]),(0,r.useEffect)((function(){nt()}),[k,A,C,c.map((function(e){return e.key})).join("_")]);var dt,vt,mt,ht,yt=!!rt.length,gt="".concat(u,"-nav-wrap");return _?k?(vt=$>0,dt=$+Ce<ie):(dt=$<0,vt=-$+Ce<ie):(mt=ee<0,ht=-ee+ke<ue),r.createElement("div",{ref:t,role:"tablist",className:p()("".concat(u,"-nav"),f),style:d,onKeyDown:function(){Xe()}},r.createElement(R,{position:"left",extra:E,prefixCls:u}),r.createElement(y.Z,{onResize:nt},r.createElement("div",{className:p()(gt,(n={},(0,i.Z)(n,"".concat(gt,"-ping-left"),dt),(0,i.Z)(n,"".concat(gt,"-ping-right"),vt),(0,i.Z)(n,"".concat(gt,"-ping-top"),mt),(0,i.Z)(n,"".concat(gt,"-ping-bottom"),ht),n)),ref:L},r.createElement(y.Z,{onResize:nt},r.createElement("div",{ref:F,className:"".concat(u,"-nav-list"),style:{transform:"translate(".concat($,"px, ").concat(ee,"px)"),transition:Ye?"none":void 0}},tt,r.createElement(x,{ref:z,prefixCls:u,locale:P,editable:T,style:{visibility:yt?"hidden":null}}),r.createElement("div",{className:p()("".concat(u,"-ink-bar"),(0,i.Z)({},"".concat(u,"-ink-bar-animated"),b.inkBar)),style:ut}))))),r.createElement(O,Object.assign({},e,{ref:j,prefixCls:u,tabs:rt,className:!yt&&Le})),r.createElement(R,{position:"right",extra:E,prefixCls:u}))}var A=r.forwardRef(I);function K(e){var t=e.id,n=e.activeKey,o=e.animated,a=e.tabPosition,s=e.rtl,u=e.destroyInactiveTabPane,l=r.useContext(D),c=l.prefixCls,f=l.tabs,d=o.tabPane,v=f.findIndex((function(e){return e.key===n}));return r.createElement("div",{className:p()("".concat(c,"-content-holder"))},r.createElement("div",{className:p()("".concat(c,"-content"),"".concat(c,"-content-").concat(a),(0,i.Z)({},"".concat(c,"-content-animated"),d)),style:v&&d?(0,i.Z)({},s?"marginRight":"marginLeft","-".concat(v,"00%")):null},f.map((function(e){return r.cloneElement(e.node,{key:e.key,prefixCls:c,tabKey:e.key,id:t,animated:d,active:e.key===n,destroyInactiveTabPane:u})}))))}function V(e){var t=e.prefixCls,n=e.forceRender,o=e.className,i=e.style,s=e.id,u=e.active,c=e.animated,f=e.destroyInactiveTabPane,d=e.tabKey,v=e.children,m=r.useState(n),h=(0,a.Z)(m,2),y=h[0],g=h[1];r.useEffect((function(){u?g(!0):f&&g(!1)}),[u,f]);var b={};return u||(c?(b.visibility="hidden",b.height=0,b.overflowY="hidden"):b.display="none"),r.createElement("div",{id:s&&"".concat(s,"-panel-").concat(d),role:"tabpanel",tabIndex:u?0:-1,"aria-labelledby":s&&"".concat(s,"-tab-").concat(d),"aria-hidden":!u,style:(0,l.Z)((0,l.Z)({},b),i),className:p()("".concat(t,"-tabpane"),u&&"".concat(t,"-tabpane-active"),o)},(u||y||n)&&v)}var H=0;function L(e,t){var n,o,c=e.id,m=e.prefixCls,h=void 0===m?"rc-tabs":m,y=e.className,g=e.children,b=e.direction,C=e.activeKey,M=e.defaultActiveKey,w=e.editable,Z=e.animated,k=void 0===Z?{inkBar:!0,tabPane:!1}:Z,E=e.tabPosition,T=void 0===E?"top":E,x=e.tabBarGutter,P=e.tabBarStyle,O=e.tabBarExtraContent,S=e.locale,N=e.moreIcon,R=e.moreTransitionName,I=e.destroyInactiveTabPane,V=e.renderTabBar,L=e.onChange,F=e.onTabClick,j=e.onTabScroll,z=(0,u.Z)(e,["id","prefixCls","className","children","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll"]),B=function(e){return(0,f.Z)(e).map((function(e){if(r.isValidElement(e)){var t=void 0!==e.key?String(e.key):void 0;return(0,l.Z)((0,l.Z)({key:t},e.props),{},{node:e})}return null})).filter((function(e){return e}))}(g),W="rtl"===b;o=!1===k?{inkBar:!1,tabPane:!1}:!0===k?{inkBar:!0,tabPane:!0}:(0,l.Z)({inkBar:!0,tabPane:!1},"object"===(0,s.Z)(k)?k:{});var U=(0,r.useState)(!1),Y=(0,a.Z)(U,2),_=Y[0],X=Y[1];(0,r.useEffect)((function(){X((0,d.Z)())}),[]);var G=(0,v.Z)((function(){var e;return null===(e=B[0])||void 0===e?void 0:e.key}),{value:C,defaultValue:M}),$=(0,a.Z)(G,2),q=$[0],Q=$[1],J=(0,r.useState)((function(){return B.findIndex((function(e){return e.key===q}))})),ee=(0,a.Z)(J,2),te=ee[0],ne=ee[1];(0,r.useEffect)((function(){var e,t=B.findIndex((function(e){return e.key===q}));-1===t&&(t=Math.max(0,Math.min(te,B.length-1)),Q(null===(e=B[t])||void 0===e?void 0:e.key)),ne(t)}),[B.map((function(e){return e.key})).join("_"),q,te]);var oe=(0,v.Z)(null,{value:c}),ie=(0,a.Z)(oe,2),re=ie[0],ae=ie[1],se=T;_&&!["left","right"].includes(T)&&(se="top"),(0,r.useEffect)((function(){c||(ae("rc-tabs-".concat(H)),H+=1)}),[]);var ue,le={id:re,activeKey:q,animated:o,tabPosition:se,rtl:W,mobile:_},ce=(0,l.Z)((0,l.Z)({},le),{},{editable:w,locale:S,moreIcon:N,moreTransitionName:R,tabBarGutter:x,onTabClick:function(e,t){null==F||F(e,t),Q(e),null==L||L(e)},onTabScroll:j,extra:O,style:P,panes:g});r