Simple Sitemap – Automatically Generate a Responsive Sitemap - Version 3.5.4

Version Description

  • November 23, 2021 =

  • Tidied up configuration files. Added .eslintignore to the list of files to auto-remove from deployed free/pro plugin versions.

  • Added new 'Random Order', 'Menu Order', and 'Comment Count' options to the sitemap block Orderby drop down.

  • Added new 'num_terms' shortcode attribute to optionally limit the number of taxonomy terms displayed.

  • Added a preview for sitemap and sitemap group blocks in the editor window.

Download this release

Release Info

Developer dgwyer
Plugin Icon Simple Sitemap – Automatically Generate a Responsive Sitemap
Version 3.5.4
Comparing to
See all releases

Code changes from version 3.5.3 to 3.5.4

Files changed (48) hide show
  1. api/assets/css/admin-settings-fw.css +1 -1
  2. api/assets/js/all-admin-pages-fw.js +5 -4
  3. api/classes/enqueue-scripts.php +78 -72
  4. api/classes/upgrade.php +110 -105
  5. api/templates/settings/new-features.php +24 -6
  6. lib/assets/css/admin-settings.css +194 -0
  7. lib/assets/images/add-sitemap-block.png +0 -0
  8. lib/assets/images/create-sitemap-page.png +0 -0
  9. lib/assets/images/customise-sitemap.png +0 -0
  10. lib/assets/images/icons/1s.svg +4 -0
  11. lib/assets/images/icons/2s.svg +4 -0
  12. lib/assets/images/icons/3s.svg +4 -0
  13. lib/assets/images/icons/4s.svg +4 -0
  14. lib/assets/images/icons/copied.svg +1 -0
  15. lib/assets/images/icons/copy.svg +16 -0
  16. lib/assets/images/icons/copy1.svg +12 -0
  17. lib/assets/images/icons/disabled.svg +3 -0
  18. lib/assets/images/icons/enabled.svg +3 -0
  19. lib/assets/images/icons/high-priority.svg +1 -0
  20. lib/assets/images/icons/ok.svg +1 -0
  21. lib/assets/images/icons/prize.svg +3 -0
  22. lib/assets/images/icons/thumbs-up.svg +3 -0
  23. lib/assets/images/icons/total.svg +3 -0
  24. lib/assets/images/new-features/block-preview.png +0 -0
  25. lib/assets/images/new-features/new-default-attribute-settings.png +0 -0
  26. lib/assets/images/new-features/new-sort-options.png +0 -0
  27. lib/assets/images/new-features/num-terms-attribute.png +0 -0
  28. lib/assets/images/new-features/visibility-attribute.png +0 -0
  29. lib/assets/images/simple-sitemap.svg +20 -0
  30. lib/assets/js/simple-sitemap-admin.js +1 -1
  31. lib/assets/js/update-menu.js +10 -0
  32. lib/assets/misc/new-features.json +52 -0
  33. lib/block_assets/js/blocks.editor.js +1 -1
  34. lib/classes/bootstrap.php +68 -8
  35. lib/classes/class-constants.php +246 -0
  36. lib/classes/class-utility.php +163 -0
  37. lib/classes/enqueue-scripts.php +87 -19
  38. lib/classes/plugin-admin-pages/class-settings-new-features.php +113 -0
  39. lib/classes/plugin-admin-pages/class-settings-welcome.php +215 -0
  40. lib/classes/{settings.php → plugin-admin-pages/class-settings.php} +255 -102
  41. lib/classes/register-blocks.php +4 -0
  42. lib/classes/shortcodes/simple-sitemap-group-shortcode.php +3 -0
  43. lib/languages/simple-sitemap-gb.pot +4 -4
  44. lib/src/blocks/simple-sitemap-group/index.js +6 -0
  45. lib/src/blocks/simple-sitemap/index.js +8 -0
  46. readme.txt +9 -2
  47. shared/links.php +1 -31
  48. simple-sitemap.php +10 -2
api/assets/css/admin-settings-fw.css CHANGED
@@ -1,2 +1,2 @@
1
- .wrap.welcome .heading{line-height:1.2;font-size:2.8em;font-weight:400}.welcome-header{display:flex;justify-content:space-between}.wrap.welcome .wpgo-settings-inner p,.wrap.welcome .wpgo-settings-inner ul{font-size:15px}.wrap.welcome .wpgo-settings-inner .welcome-getting-started{line-height:22px}.wrap.welcome .wpgo-settings-inner .welcome-getting-started li span{font-weight:bold;font-size:16px}.wrap.welcome .wpgo-settings-inner h2{font-size:24px;margin-top:12px}.wrap.welcome .wpgo-settings-inner h3{font-size:16px;margin-bottom:-5px}.wrap.welcome .wpgo-settings-inner a button{font-size:14px}ul.wpgo-settings-grid-container{list-style:none;margin:40px 30px 30px 20px}@supports (display: grid){ul.wpgo-settings-grid-container{display:grid;grid-column-gap:30px;grid-row-gap:30px;grid-template-columns:repeat(auto-fill, minmax(350px, 1fr))}}ul.wpgo-settings-grid-container li{display:flex}ul.wpgo-settings-grid-container li .wpgo-settings-card{position:relative;padding:3px;display:flex;flex-direction:column;flex-wrap:wrap;box-shadow:0 10px 20px rgba(0,0,0,0.19),0 6px 6px rgba(0,0,0,0.23);border-radius:6px}ul.wpgo-settings-grid-container li .wpgo-settings-card .ribbon-wrapper{width:85px;height:88px;overflow:hidden;position:absolute;top:-2px;left:-2px;z-index:99}ul.wpgo-settings-grid-container li .wpgo-settings-card .ribbon-wrapper .ribbon{font:bold 15px sans-serif;color:#333;text-align:center;transform:rotate(-45deg);position:relative;padding:7px 0;top:15px;left:-30px;width:120px;background-color:#c34c4c;color:#fff}ul.wpgo-settings-grid-container li .wpgo-settings-card .image-wrapper{position:relative}ul.wpgo-settings-grid-container li .wpgo-settings-card .image-wrapper .pro-only{position:absolute;top:12px;right:12px;background:#f5d53e;margin:0 0 0 0;padding:4px 7px;font-weight:bold;border-radius:4px;font-size:12px;color:#151515;border:2px #cab035 solid}ul.wpgo-settings-grid-container li .wpgo-settings-card .image-wrapper .pro-only a{text-decoration:none;color:inherit}ul.wpgo-settings-grid-container li .wpgo-settings-card .image-wrapper .free-only{position:absolute;top:12px;right:12px;background:#4ebf4e;margin:0 0 0 0;padding:4px 7px;font-weight:bold;border-radius:4px;font-size:12px;color:#fff;border:2px #2e962e solid}ul.wpgo-settings-grid-container li .wpgo-settings-card .image-wrapper img{max-width:100%;border-radius:6px 6px 0 0;display:block}ul.wpgo-settings-grid-container li .wpgo-settings-card .details{display:flex;justify-content:space-between;padding:10px;color:#777;font-size:12px;background:#eee}ul.wpgo-settings-grid-container li .wpgo-settings-card .card-content{flex:1;padding:1.5rem;background:#ffffff}ul.wpgo-settings-grid-container li .wpgo-settings-card .card-content h2{margin:0 0 0.5rem 0;line-height:1em}ul.wpgo-settings-grid-container li .wpgo-settings-card .card-content p{margin:0;line-height:1.5}ul.wpgo-settings-grid-container li .wpgo-settings-card .permalink{display:flex;background:#eee;padding:1.1rem;border-radius:0 0 6px 6px;justify-content:space-between}ul.wpgo-settings-grid-container li .wpgo-settings-card .permalink .hide-button{visibility:hidden}ul.wpgo-settings-grid-container li .wpgo-settings-card .permalink a{color:#ffffff;text-decoration:none;background:#b7b7b7;padding:0.75em;border-radius:4px;font-size:1em;border:none;line-height:1em}ul.wpgo-settings-grid-container li .wpgo-settings-card .permalink .right{background:#2fa3f2}.new-features-count{display:inline-block;vertical-align:top;box-sizing:border-box;margin:1px 0 -1px 2px;padding:0 5px;min-width:18px;height:18px;border-radius:9px;background-color:#ca4a1f;color:#fff;font-size:11px;line-height:1.6;text-align:center;z-index:26}.fs-full-size-wrapper .wpgo-settings-inner{margin:25px 30px 0 30px}.wrap.no-tabs{margin:25px 30px 0 20px}.wpgo-settings-inner a,.wpgo-settings-inner a:visited{color:#388d8c}.wpgo-settings-inner a:hover{color:#59afad}.wpgo-settings-inner .plugin-btn{display:inline-block;padding:7px 7px;margin:5px 0 0 0;font-size:16px;background:#279a97bf;border:2px #237976a1 solid;border-radius:2px;color:#fff;text-decoration:none}.wpgo-settings-inner .plugin-btn:hover,.wpgo-settings-inner .plugin-btn:visited{color:#fff}.wpgo-settings-inner .plugin-text-link{padding:0;width:144px}.wpgo-settings-inner .pro a{color:#151515;text-decoration:none}.pro{background:#f5d53e;margin:0 0 0 0;padding:1px 3px;font-weight:bold;border-radius:2px;font-size:10px;color:#151515}.code-link{text-decoration:none}.shortcode-attributes{list-style-type:disc}.shortcode-attributes li{margin-left:25px}.wpgo-expand-box{background:#fff;border:1px dashed #ccc;font-size:13px;margin:30px 0 10px 0;padding:15px 15px 10px 20px}.wpgo-expand-box h4{margin-top:5px;display:inline-block;margin-bottom:10px}.wp-core-ui button[id$="-btn"]{margin-left:10px}[id$="-wrap"]{display:none}#plugin-usage-wrap,#attributes-wrap{display:none;margin:10px}.social-link{display:inline-block;line-height:0}#attributes-btn,#plugin-usage-btn{margin-left:20px}#plugin-usage-btn span{vertical-align:sub;width:16px;height:16px;font-size:16px}.other-plugins-tbl{display:inline-table}.plugin-image-link{line-height:0;display:block;width:144px}.plugin-text-link div{text-align:center;margin:0}.plugin-text-link h3{margin:0;font-size:15px;margin-top:-5px}.plugin-text-link a{text-decoration:none}.other-plugins-tbl img{box-shadow:0 10px 16px 0 rgba(0,0,0,0.1),0 6px 20px 0 rgba(0,0,0,0.19);width:140px;border-radius:5px;border:1px #fff solid}
2
 
1
+ .wrap.welcome .heading{line-height:1.2;font-size:2.8em;font-weight:400}.welcome-header{display:flex;justify-content:space-between}.wrap.welcome .wpgo-settings-inner p,.wrap.welcome .wpgo-settings-inner ul{font-size:15px}.wrap.welcome .wpgo-settings-inner .welcome-getting-started{line-height:22px}.wrap.welcome .wpgo-settings-inner .welcome-getting-started li span{font-weight:bold;font-size:16px}.wrap.welcome .wpgo-settings-inner h2{font-size:24px;margin-top:12px}.wrap.welcome .wpgo-settings-inner h3{font-size:16px;margin-bottom:-5px}.wrap.welcome .wpgo-settings-inner a button{font-size:14px}ul.wpgo-settings-grid-container{list-style:none;margin:40px 30px 30px 20px}@supports (display: grid){ul.wpgo-settings-grid-container{display:grid;grid-column-gap:30px;grid-row-gap:30px;grid-template-columns:repeat(auto-fill, minmax(350px, 1fr))}}ul.wpgo-settings-grid-container li{display:flex}ul.wpgo-settings-grid-container li .wpgo-settings-card{position:relative;padding:3px;display:flex;flex-direction:column;flex-wrap:wrap;box-shadow:0 10px 20px rgba(0,0,0,0.19),0 6px 6px rgba(0,0,0,0.23);border-radius:6px}ul.wpgo-settings-grid-container li .wpgo-settings-card .ribbon-wrapper{width:85px;height:88px;overflow:hidden;position:absolute;top:-2px;left:-2px;z-index:99}ul.wpgo-settings-grid-container li .wpgo-settings-card .ribbon-wrapper .ribbon{font:bold 15px sans-serif;color:#333;text-align:center;transform:rotate(-45deg);position:relative;padding:7px 0;top:15px;left:-30px;width:120px;color:#fff}ul.wpgo-settings-grid-container li .wpgo-settings-card .ribbon-wrapper .ribbon.new{background-color:#c34c4c}ul.wpgo-settings-grid-container li .wpgo-settings-card .ribbon-wrapper .ribbon.fix{background-color:#b3b3b3}ul.wpgo-settings-grid-container li .wpgo-settings-card .ribbon-wrapper .ribbon.update{background-color:#2bb427}ul.wpgo-settings-grid-container li .wpgo-settings-card .image-wrapper{position:relative}ul.wpgo-settings-grid-container li .wpgo-settings-card .image-wrapper .pro-only{position:absolute;top:12px;right:12px;background:#f5d53e;margin:0 0 0 0;padding:4px 7px;font-weight:bold;border-radius:4px;font-size:12px;color:#151515;border:2px #cab035 solid}ul.wpgo-settings-grid-container li .wpgo-settings-card .image-wrapper .pro-only a{text-decoration:none;color:inherit}ul.wpgo-settings-grid-container li .wpgo-settings-card .image-wrapper .free-only{position:absolute;top:12px;right:12px;background:#4ebf4e;margin:0 0 0 0;padding:4px 7px;font-weight:bold;border-radius:4px;font-size:12px;color:#fff;border:2px #2e962e solid}ul.wpgo-settings-grid-container li .wpgo-settings-card .image-wrapper img{max-width:100%;border-radius:6px 6px 0 0;display:block}ul.wpgo-settings-grid-container li .wpgo-settings-card .details{display:flex;justify-content:space-between;padding:10px;color:#777;font-size:12px;background:#eee}ul.wpgo-settings-grid-container li .wpgo-settings-card .card-content{flex:1;padding:1.5rem;background:#ffffff}ul.wpgo-settings-grid-container li .wpgo-settings-card .card-content h2{margin:0 0 0.5rem 0;line-height:1em}ul.wpgo-settings-grid-container li .wpgo-settings-card .card-content p{margin:0;line-height:1.5}ul.wpgo-settings-grid-container li .wpgo-settings-card .permalink{display:flex;background:#eee;padding:1.1rem;border-radius:0 0 6px 6px;justify-content:space-between}ul.wpgo-settings-grid-container li .wpgo-settings-card .permalink .hide-button{visibility:hidden}ul.wpgo-settings-grid-container li .wpgo-settings-card .permalink a{color:#ffffff;text-decoration:none;background:#b7b7b7;padding:0.75em;border-radius:4px;font-size:1em;border:none;line-height:1em}ul.wpgo-settings-grid-container li .wpgo-settings-card .permalink .right{background:#2fa3f2}.new-features-count{display:inline-block;vertical-align:top;box-sizing:border-box;margin:1px 0 -1px 2px;padding:0 5px;min-width:18px;height:18px;border-radius:9px;background-color:#ca4a1f;color:#fff;font-size:11px;line-height:1.6;text-align:center;z-index:26}.fs-full-size-wrapper .wpgo-settings-inner{margin:25px 30px 0 30px}.wrap.no-tabs{margin:25px 30px 0 20px}.wpgo-settings-inner a,.wpgo-settings-inner a:visited{color:#388d8c}.wpgo-settings-inner a:hover{color:#59afad}.wpgo-settings-inner .plugin-btn{display:inline-block;padding:7px 7px;margin:5px 0 0 0;font-size:16px;background:#279a97bf;border:2px #237976a1 solid;border-radius:2px;color:#fff;text-decoration:none}.wpgo-settings-inner .plugin-btn:hover,.wpgo-settings-inner .plugin-btn:visited{color:#fff}.wpgo-settings-inner .plugin-text-link{padding:0;width:144px}.wpgo-settings-inner .pro a{color:#151515;text-decoration:none}.pro{background:#f5d53e;margin:0 0 0 0;padding:1px 3px;font-weight:bold;border-radius:2px;font-size:10px;color:#151515}.code-link{text-decoration:none}.shortcode-attributes{list-style-type:disc}.shortcode-attributes li{margin-left:25px}.wpgo-expand-box{background:#fff;border:1px dashed #ccc;font-size:13px;margin:30px 0 10px 0;padding:15px 15px 10px 20px}.wpgo-expand-box h4{margin-top:5px;display:inline-block;margin-bottom:10px}.wp-core-ui button[id$="-btn"]{margin-left:10px}[id$="-wrap"]{display:none}#plugin-usage-wrap,#attributes-wrap{display:none;margin:10px}.social-link{display:inline-block;line-height:0}#attributes-btn,#plugin-usage-btn{margin-left:20px}#plugin-usage-btn span{vertical-align:sub;width:16px;height:16px;font-size:16px}.other-plugins-tbl{display:inline-table}.plugin-image-link{line-height:0;display:block;width:144px}.plugin-text-link div{text-align:center;margin:0}.plugin-text-link h3{margin:0;font-size:15px;margin-top:-5px}.plugin-text-link a{text-decoration:none}.other-plugins-tbl img{box-shadow:0 10px 16px 0 rgba(0,0,0,0.1),0 6px 20px 0 rgba(0,0,0,0.19);width:140px;border-radius:5px;border:1px #fff solid}
2
 
api/assets/js/all-admin-pages-fw.js CHANGED
@@ -1,20 +1,21 @@
 
1
  function wpgoplugins_all_admin_pages_fw_fn() {
2
 
3
  function update_menu($, plugin_data) {
4
 
5
  const {hook, new_features_number, nav_status, main_menu_label, menu_type, plugin_prefix } = plugin_data;
6
 
7
- // add numbered icon to menu/tab label
8
  if (new_features_number === '0') {
9
  return; // nothing to see here!
10
  }
11
 
12
  const new_features_number_html = ' <span class="update-plugins count-' + new_features_number + '"><span class="plugin-count">' + new_features_number + '</span></span>';
13
 
14
- // add numbered icon to menu items
15
  if (nav_status === 'menu') {
16
- if (menu_type === 'sub') { // normal sub menu item
17
- // @todo add numbered counters to top level menu item
18
  $('.fs-submenu-item.wpgo-plugins:contains("New Features")').append(add_features_number);
19
 
20
  } else { // cpt sub menu item
1
+ // The numbered icon is rendered via PHP now so this JS file is no longer needed?
2
  function wpgoplugins_all_admin_pages_fw_fn() {
3
 
4
  function update_menu($, plugin_data) {
5
 
6
  const {hook, new_features_number, nav_status, main_menu_label, menu_type, plugin_prefix } = plugin_data;
7
 
8
+ // Add numbered icon to menu/tab label.
9
  if (new_features_number === '0') {
10
  return; // nothing to see here!
11
  }
12
 
13
  const new_features_number_html = ' <span class="update-plugins count-' + new_features_number + '"><span class="plugin-count">' + new_features_number + '</span></span>';
14
 
15
+ // Add numbered icon to menu items.
16
  if (nav_status === 'menu') {
17
+ if (menu_type === 'sub') { // Normal sub menu item.
18
+ // @todo Add numbered counters to top level menu item.
19
  $('.fs-submenu-item.wpgo-plugins:contains("New Features")').append(add_features_number);
20
 
21
  } else { // cpt sub menu item
api/classes/enqueue-scripts.php CHANGED
@@ -6,78 +6,84 @@ namespace WPGO_Plugins\Plugin_Framework;
6
  * Enqueue plugin scripts
7
  */
8
 
9
- class Enqueue_Framework_Scripts
10
- {
11
-
12
- /* Class constructor. */
13
- public function __construct($module_roots, $new_features_arr, $plugin_data, $custom_plugin_data)
14
- {
15
- $this->module_roots = $module_roots;
16
- $this->new_features_arr = $new_features_arr;
17
- $this->plugin_data = $plugin_data;
18
- $this->custom_plugin_data = $custom_plugin_data;
19
- $this->enq_pfx = $this->custom_plugin_data->enqueue_prefix;
20
-
21
- $this->js_deps = [ 'wp-element', 'wp-i18n', 'wp-hooks', 'wp-components', 'wp-blocks', 'wp-editor', 'wp-compose' ];
22
- $this->js_deps = ['wp-plugins', 'wp-element', 'wp-edit-post', 'wp-i18n', 'wp-api-request', 'wp-data', 'wp-hooks', 'wp-plugins', 'wp-components', 'wp-blocks', 'wp-editor', 'wp-compose'];
23
-
24
- // Priority of 8 here should always enqueue these before main plugin scripts. This is necessary as these scripts are used as dependencies.
25
- add_action('admin_enqueue_scripts', array(&$this, 'enqueue_admin_settings_scripts'), 8);
26
- add_action('admin_enqueue_scripts', array(&$this, 'enqueue_admin_scripts'), 8);
27
- }
28
-
29
- /* Scripts for all admin pages. This is necessary as we need to modify the main admin menu from JS. */
30
- public function enqueue_admin_scripts($hook)
31
- {
32
- // here, $this will refer to the specific plugin that's invoking it
33
- $all_admin_pages_js_rel = 'api/assets/js/all-admin-pages-fw.js';
34
- $all_admin_pages_js_url = plugins_url($all_admin_pages_js_rel, $this->module_roots['file']);
35
- $all_admin_pages_js_ver = filemtime($this->module_roots['dir'] . $all_admin_pages_js_rel);
36
-
37
- // keep the handle generic so only one instance is enqueued (e.g. if multiple WPGO plugins are installed)
38
- wp_enqueue_script('wpgo-all-admin-pages-fw-js', $all_admin_pages_js_url, array(), $all_admin_pages_js_ver, true);
39
- }
40
-
41
- /* Scripts just for the plugin settings page. */
42
- public function enqueue_admin_settings_scripts($hook)
43
- {
44
-
45
- // don't try to enqueue if $_GET['page'] not set
46
- if (!isset($_GET['page'])) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
  return;
48
- }
49
-
50
- if ($this->custom_plugin_data->menu_type === 'sub') {
51
- // Only enqueue scripts on the plugin settings page(s) (and Freemius pages)
52
- $pos = strpos($hook, $this->custom_plugin_data->settings_page_hook);
53
- if ($pos !== 0) {
54
- return;
55
- }
56
- } else {
57
- // Only enqueue scripts on the plugin settings page(s) (and Freemius pages)
58
- $pos = strpos($hook, $this->custom_plugin_data->settings_page_hook_top);
59
- $pos1 = strpos($hook, $this->custom_plugin_data->settings_page_hook_sub);
60
-
61
- // return if at least one values doesn't match
62
- if ($pos !== 0 && $pos1 !== 0) {
63
- return;
64
- }
65
- }
66
-
67
- // here, $this will refer to the specific plugin that's invoking it
68
- $admin_settings_fw_js_rel = 'api/assets/js/admin-settings-fw.js';
69
- $admin_settings_fw_js_url = plugins_url($admin_settings_fw_js_rel, $this->module_roots['file']);
70
- $admin_settings_fw_js_ver = filemtime($this->module_roots['dir'] . $admin_settings_fw_js_rel);
71
-
72
- // here, $this will refer to the specific plugin that's invoking it
73
- $admin_settings_fw_css_rel = 'api/assets/css/admin-settings-fw.css';
74
- $admin_settings_fw_css_url = plugins_url($admin_settings_fw_css_rel, $this->module_roots['file']);
75
- $admin_settings_fw_css_ver = filemtime($this->module_roots['dir'] . $admin_settings_fw_css_rel);
76
-
77
- wp_enqueue_script('wpgo-admin-settings-fw-js', $admin_settings_fw_js_url, array(), $admin_settings_fw_js_ver, true);
78
-
79
- // Styles for plugin admin settings page
80
- wp_enqueue_style($this->enq_pfx . '-admin-settings-fw-css', $admin_settings_fw_css_url, [], $admin_settings_fw_css_ver);
81
- }
82
 
83
  } /* End class definition */
6
  * Enqueue plugin scripts
7
  */
8
 
9
+ class Enqueue_Framework_Scripts {
10
+
11
+ /* Class constructor. */
12
+ public function __construct( $module_roots, $new_features_arr, $plugin_data, $custom_plugin_data ) {
13
+ $this->module_roots = $module_roots;
14
+ $this->new_features_arr = $new_features_arr;
15
+ $this->plugin_data = $plugin_data;
16
+ $this->custom_plugin_data = $custom_plugin_data;
17
+ $this->enq_pfx = $this->custom_plugin_data->enqueue_prefix;
18
+
19
+ $this->js_deps = array( 'wp-element', 'wp-i18n', 'wp-hooks', 'wp-components', 'wp-blocks', 'wp-editor', 'wp-compose' );
20
+ $this->js_deps = array( 'wp-plugins', 'wp-element', 'wp-edit-post', 'wp-i18n', 'wp-api-request', 'wp-data', 'wp-hooks', 'wp-plugins', 'wp-components', 'wp-blocks', 'wp-editor', 'wp-compose' );
21
+
22
+ // Priority of 8 here should always enqueue these before main plugin scripts. This is necessary as these scripts are used as dependencies.
23
+ add_action( 'admin_enqueue_scripts', array( &$this, 'enqueue_admin_settings_scripts' ), 8 );
24
+ //add_action( 'admin_enqueue_scripts', array( &$this, 'enqueue_admin_scripts' ), 8 );
25
+ }
26
+
27
+ /* Scripts for all admin pages. This is necessary as we need to modify the main admin menu from JS. */
28
+ public function enqueue_admin_scripts( $hook ) {
29
+ // Here, $this will refer to the specific plugin that's invoking it.
30
+ // $all_admin_pages_js_rel = 'api/assets/js/all-admin-pages-fw.js';
31
+ // $all_admin_pages_js_url = plugins_url( $all_admin_pages_js_rel, $this->module_roots['file'] );
32
+ // $all_admin_pages_js_ver = filemtime( $this->module_roots['dir'] . $all_admin_pages_js_rel );
33
+
34
+ // Keep the handle generic so only one instance is enqueued (e.g. if multiple WPGO plugins are installed).
35
+ // wp_enqueue_script( 'wpgo-all-admin-pages-fw-js', $all_admin_pages_js_url, array(), $all_admin_pages_js_ver, true );
36
+ }
37
+
38
+ /* Scripts just for the plugin settings page. */
39
+ public function enqueue_admin_settings_scripts( $hook ) {
40
+
41
+ // Don't try to enqueue if $_GET['page'] not set.
42
+ if ( ! isset( $_GET['page'] ) ) {
43
+ return;
44
+ }
45
+
46
+ // Only enqueue scripts on the plugin settings page(s) (and Freemius pages).
47
+ $pos = strpos( $hook, $this->custom_plugin_data->css_prefix );
48
+
49
+ // echo '<pre style="margin-left:250px;">';
50
+ // print_r($_GET);
51
+ // echo "pos: " . $pos . "<br>";
52
+ // echo "hook: " . $hook . "<br>";
53
+ // echo "settings page hook top: " . $this->custom_plugin_data->settings_page_hook_top . "<br>";
54
+ // echo "settings page hook sub: " . $this->custom_plugin_data->settings_page_hook_sub . "<br>";
55
+ // echo "menu_type: " . $this->custom_plugin_data->menu_type . "<br>";
56
+ // echo "css_prefix: " . $this->custom_plugin_data->css_prefix . "<br>";
57
+ // //print_r($var);
58
+ // echo '</pre>';
59
+
60
+ if ( 'sub' === $this->custom_plugin_data->menu_type ) {
61
+ // @todo I think we can probably use the same test for sub settings pages as in the 'else' conditional
62
+ // below but this needs proper testing.
63
+ // Only enqueue scripts on the plugin settings page(s) (and Freemius pages).
64
+ $pos = strpos($hook, $this->custom_plugin_data->settings_page_hook);
65
+ if ($pos !== 0) {
66
  return;
67
+ }
68
+ } else {
69
+ // Return if we're not on a plugin settings page.
70
+ if ( $pos === false ) {
71
+ return;
72
+ }
73
+ }
74
+
75
+ $admin_settings_fw_js_rel = 'api/assets/js/admin-settings-fw.js';
76
+ $admin_settings_fw_js_url = plugins_url( $admin_settings_fw_js_rel, $this->module_roots['file'] );
77
+ $admin_settings_fw_js_ver = filemtime( $this->module_roots['dir'] . $admin_settings_fw_js_rel );
78
+
79
+ $admin_settings_fw_css_rel = 'api/assets/css/admin-settings-fw.css';
80
+ $admin_settings_fw_css_url = plugins_url( $admin_settings_fw_css_rel, $this->module_roots['file'] );
81
+ $admin_settings_fw_css_ver = filemtime( $this->module_roots['dir'] . $admin_settings_fw_css_rel );
82
+
83
+ wp_enqueue_script( 'wpgo-admin-settings-fw-js', $admin_settings_fw_js_url, array(), $admin_settings_fw_js_ver, true );
84
+
85
+ // Styles for plugin admin settings page.
86
+ wp_enqueue_style( $this->enq_pfx . '-admin-settings-fw-css', $admin_settings_fw_css_url, array(), $admin_settings_fw_css_ver );
87
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
88
 
89
  } /* End class definition */
api/classes/upgrade.php CHANGED
@@ -6,110 +6,115 @@ namespace WPGO_Plugins\Plugin_Framework;
6
  * Run upgrade routine(s) when plugin updated to new (higher) version
7
  */
8
 
9
- class Upgrade_FW
10
- {
11
-
12
- protected $module_roots;
13
-
14
- /* Class constructor. */
15
- public function __construct($module_roots, $custom_plugin_data)
16
- {
17
-
18
- $this->module_roots = $module_roots;
19
- $this->custom_plugin_data = $custom_plugin_data;
20
-
21
- add_action('plugins_loaded', array(&$this, 'upgrade_routine'));
22
- }
23
-
24
- /**
25
- * Setup transient for admin notice to be displayed
26
- */
27
- public function upgrade_routine()
28
- {
29
-
30
- // At the moment the 'upgrade routine consists only of handling the new features numbered icon.
31
-
32
- // only run upgrade routine on admin pages but not on post editor (for performance)
33
- if ( !is_admin() || isset($_GET['post'])) {
34
- return;
35
- }
36
-
37
- $opt_pfx = $this->custom_plugin_data->db_option_prefix;
38
- $plugin_data = get_plugin_data($this->module_roots['file'], false, false);
39
- $current_version = $plugin_data['Version'];
40
- $ffaq_global_options = get_option( $opt_pfx . '_options', array() );
41
- $stored_version = isset($ffaq_global_options['plugin_version']) ? $ffaq_global_options['plugin_version'] : '0.0.0';
42
-
43
- // echo "<pre style='margin-left:200px;'>UPGRADE.PHP [Current: " . $current_version . "][Stored: " . $stored_version . "]<br>";
44
- // print_r($ffaq_global_options);
45
- // echo "</pre>";
46
-
47
- // Only run on plugin settings pages, plugin main index page, and Dashboard > Updates page
48
- // if (isset($_GET['page'])) {
49
- // echo "<pre style='margin-left:200px;'>";
50
- // print_r($_GET['page']);
51
-
52
- // if (strpos($_GET['page'], 'wpgoplugins-new-features') !== false) {
53
- // echo 'ON NEW FEATURES PAGE<br>';
54
- // }
55
- // echo "</pre>";
56
- // $settings_page_prefix = $this->custom_plugin_data->plugin_slug;
57
- // $pos = strpos($_GET['page'], $settings_page_prefix);
58
- // if ($pos !== 0) {
59
- // return;
60
- // }
61
- // }
62
- // } else {
63
- // return;
64
- // }
65
-
66
- // Run upgrade routine if current plugin version is not equal to stored version.
67
- if (version_compare($current_version, $stored_version, '=')) {
68
-
69
- // Only run on new features page.
70
- if ( isset($_GET['page']) && strpos($_GET['page'], 'wpgoplugins-new-features') !== false ) {
71
- //echo ">>>>>>>>>>>>>>>>>>>> DON'T RUN UPGRADE ROUTINE - SETTING DISPLAY NUMBERED ICON TO FALSE<br>";
72
- $ffaq_global_options[ 'new_features_numbered_icon'] = 'false';
73
- update_option($opt_pfx . '_options', $ffaq_global_options);
74
- return;
75
- } else {
76
- //echo ">>>>>>>>>>>>>>>>>>>> DON'T RUN UPGRADE ROUTINE - STRAIGHT RETURN<br>";
77
- return;
78
- }
79
- } else {
80
- // If a new plugin version has been detected scan for new features and add numbered icon to plugin menu/tab
81
- //echo ">>>>>>>>>>>>>>>>>>>> SETTING TO TRUE<br>";
82
- $ffaq_global_options[ 'new_features_numbered_icon'] = 'true';
83
- $ffaq_global_options[ 'plugin_version' ] = $current_version;
84
- update_option($opt_pfx . '_options', $ffaq_global_options);
85
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
86
  }
87
 
88
- public static function calc_new_features($opt_pfx, $new_features_arr, $plugin_data)
89
- {
90
- // Calc numbered icon and send to JS
91
- $new_features_number = 0;
92
- $ffaq_global_options = get_option( $opt_pfx . '_options', array() );
93
- $display_numbered_icon = isset( $ffaq_global_options[ 'new_features_numbered_icon'] ) ? $ffaq_global_options[ 'new_features_numbered_icon'] : 'false';
94
-
95
- if ($display_numbered_icon === 'true') {
96
- //echo ">>>>>>>>>>>>>>>>>>>> display_numbered_icon [" . $display_numbered_icon . "]<br>";
97
- foreach ($new_features_arr as $key => $new_feature) {
98
- if ($plugin_data['Version'] === $new_feature->version || $new_feature->version === 'latest') {
99
- $new_features_number++;
100
- }
101
- }
102
- }
103
-
104
- // echo ">>>>>>>>>>>>>>>>>>>> NEW FEATURES ARR: <br>";
105
- // echo "<pre style='margin-left:150px;'>";
106
- // print_r($new_features_arr);
107
- // echo "</pre>";
108
- // echo ">>>>>>>>>>>>>>>>>>>> DISPLAY NUMBERED ICON: [" . $display_numbered_icon . "][" . gettype($display_numbered_icon) . "]<br>";
109
- // echo ">>>>>>>>>>>>>>>>>>>> OPT_PFX: [" . $opt_pfx . "]<br>";
110
- // echo ">>>>>>>>>>>>>>>>>>>> TOTAL NUMBER [" . $new_features_number . "]<br>";
111
-
112
- return $new_features_number;
113
- }
114
-
115
- } /* End class definition */
6
  * Run upgrade routine(s) when plugin updated to new (higher) version
7
  */
8
 
9
+ class Upgrade_FW {
10
+
11
+ protected $module_roots;
12
+
13
+ /* Class constructor. */
14
+ public function __construct( $module_roots, $custom_plugin_data ) {
15
+
16
+ $this->module_roots = $module_roots;
17
+ $this->custom_plugin_data = $custom_plugin_data;
18
+
19
+ add_action( 'plugins_loaded', array( &$this, 'upgrade_routine' ) );
20
+ }
21
+
22
+ /**
23
+ * Setup transient for admin notice to be displayed
24
+ */
25
+ public function upgrade_routine() {
26
+
27
+ // At the moment the 'upgrade routine consists only of handling the new features numbered icon.
28
+
29
+ // only run upgrade routine on admin pages but not on post editor (for performance)
30
+ if ( ! is_admin() || isset( $_GET['post'] ) ) {
31
+ return;
32
+ }
33
+
34
+ $opt_pfx = $this->custom_plugin_data->db_option_prefix;
35
+ $plugin_data = get_plugin_data( $this->module_roots['file'], false, false );
36
+ $current_version = $plugin_data['Version'];
37
+ $global_plugin_options = get_option( $opt_pfx . '_options', array() );
38
+ $stored_version = isset( $global_plugin_options['plugin_version'] ) ? $global_plugin_options['plugin_version'] : '0.0.0';
39
+
40
+ // echo "<pre style='margin-left:200px;'>UPGRADE.PHP [Current: " . $current_version . "][Stored: " . $stored_version . "]<br>";
41
+ // print_r($global_plugin_options);
42
+ // echo "</pre>";
43
+
44
+ // // Only run on plugin settings pages, plugin main index page, and Dashboard > Updates page
45
+ // if (isset($_GET['page'])) {
46
+ // echo "<pre style='margin-left:200px;'>";
47
+ // print_r($this->custom_plugin_data->plugin_slug);
48
+ // print_r($_GET['page']);
49
+
50
+ // if (strpos($_GET['page'], $this->custom_plugin_data->plugin_slug) !== false && strpos($_GET['page'], '-new-features') !== false) {
51
+ // echo '<br>ON NEW FEATURES PAGE<br>';
52
+ // }
53
+
54
+ // echo "</pre>";
55
+ // }
56
+
57
+ // $settings_page_prefix = $this->custom_plugin_data->plugin_slug;
58
+ // $pos = strpos($_GET['page'], $settings_page_prefix);
59
+ // if ($pos !== 0) {
60
+ // return;
61
+ // }
62
+ // }
63
+ // } else {
64
+ // return;
65
+ // }
66
+
67
+ // Run upgrade routine if current plugin version is not equal to stored version.
68
+ if ( version_compare( $current_version, $stored_version, '=' ) ) {
69
+
70
+ // Only run on new features page.
71
+ if ( isset( $_GET['page'] ) && strpos( $_GET['page'], $this->custom_plugin_data->plugin_slug ) !== false && strpos($_GET['page'], '-new-features') !== false) {
72
+ // echo ">>>>>>>>>>>>>>>>>>>> DON'T RUN UPGRADE ROUTINE - SETTING DISPLAY NUMBERED ICON TO FALSE<br>";
73
+ $global_plugin_options['new_features_numbered_icon'] = 'false';
74
+ update_option( $opt_pfx . '_options', $global_plugin_options );
75
+ return;
76
+ } else {
77
+ // echo ">>>>>>>>>>>>>>>>>>>> DON'T RUN UPGRADE ROUTINE - STRAIGHT RETURN<br>";
78
+ return;
79
+ }
80
+ } else {
81
+ // If a new plugin version has been detected scan for new features and add numbered icon to plugin menu/tab
82
+ // echo ">>>>>>>>>>>>>>>>>>>> SETTING TO TRUE<br>";
83
+ $global_plugin_options['new_features_numbered_icon'] = 'true';
84
+ $global_plugin_options['plugin_version'] = $current_version;
85
+ update_option( $opt_pfx . '_options', $global_plugin_options );
86
+ }
87
+ }
88
+
89
+ public static function calc_new_features( $opt_pfx, $new_features_arr, $plugin_data ) {
90
+ // Calc numbered icon and send to JS
91
+ $new_features_number = 0;
92
+ $global_plugin_options = get_option( $opt_pfx . '_options', array() );
93
+
94
+ // echo '<pre style="margin-left:250px;">';
95
+ // print_r($global_plugin_options);
96
+ // echo '</pre>';
97
+
98
+ $display_numbered_icon = isset( $global_plugin_options['new_features_numbered_icon'] ) ? $global_plugin_options['new_features_numbered_icon'] : 'false';
99
+
100
+ if ( $display_numbered_icon === 'true' ) {
101
+ // echo ">>>>>>>>>>>>>>>>>>>> display_numbered_icon [" . $display_numbered_icon . "]<br>";
102
+ foreach ( $new_features_arr as $key => $new_feature ) {
103
+ if ( $plugin_data['Version'] === $new_feature->version || $new_feature->version === 'latest' ) {
104
+ $new_features_number++;
105
+ }
106
+ }
107
+ }
108
+
109
+ // echo ">>>>>>>>>>>>>>>>>>>> NEW FEATURES ARR: <br>";
110
+ // echo "<pre style='margin-left:150px;'>";
111
+ // print_r($new_features_arr);
112
+ // echo "</pre>";
113
+ // echo ">>>>>>>>>>>>>>>>>>>> DISPLAY NUMBERED ICON: [" . $display_numbered_icon . "][" . gettype($display_numbered_icon) . "]<br>";
114
+ // echo ">>>>>>>>>>>>>>>>>>>> OPT_PFX: [" . $opt_pfx . "]<br>";
115
+ // echo ">>>>>>>>>>>>>>>>>>>> TOTAL NUMBER [" . $new_features_number . "]<br>";
116
+
117
+ return $new_features_number;
118
  }
119
 
120
+ } /* End class definition */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
api/templates/settings/new-features.php CHANGED
@@ -17,7 +17,9 @@ class New_Features_Templates_FW
17
  $this->module_roots = $module_roots;
18
  }
19
 
20
- public function new_features_loop($new_features_arr, $freemius_discount_upgrade_url, $is_premium, $plugin_data ) {
 
 
21
 
22
  ob_start(); // Start recording output.
23
  ?>
@@ -26,7 +28,23 @@ class New_Features_Templates_FW
26
  <?php
27
 
28
  foreach ($new_features_arr as $key => $new_feature):
29
- if ($new_feature->type === 'pro') {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
  $type_class = 'pro-only';
31
  $type_label = '<a href="' . $freemius_discount_upgrade_url . '">PRO</a>';
32
  } else {
@@ -37,15 +55,15 @@ foreach ($new_features_arr as $key => $new_feature):
37
  // don't show 'PRO' label for the premium plugin as it's redundant
38
  $type_html = !$is_premium ? '<div class="' . $type_class . '">' . $type_label . '</div>' : '';
39
 
40
- // ribbon visibility
41
- $new_ribbon = (($plugin_data['Version'] === $new_feature->version) || ($new_feature->version === 'latest')) ? '<div class="ribbon-wrapper"><div class="ribbon">NEW</div></div>' : '';
42
  ?>
43
  <li>
44
  <div class="wpgo-settings-card">
45
  <?php echo $new_ribbon; ?>
46
  <div class="image-wrapper">
47
  <?php echo $type_html; ?>
48
- <img class="post-image" src="<?php echo $this->module_roots['uri'] . '/assets/images/new-features/' . $new_feature->banner_url; ?>">
49
  </div>
50
  <div class="details" style="font-weight: bold;">
51
  <div>Version: <?php echo $new_feature->version; ?></div>
@@ -58,7 +76,7 @@ foreach ($new_features_arr as $key => $new_feature):
58
  <?php
59
  $hide = ' hide-button';
60
  $learn_more_visibility = $new_feature->learn_more_url === '' ? $hide : '';
61
- $upgrade_visibility = ($new_feature->type === 'free' || $new_feature->type === 'free-only') || $is_premium ? $hide : '';
62
 
63
  // if both buttons not shown then don't show permalink section
64
  // $permalink_html = ($learn_more_visibility !== '') && ($upgrade_visibility !== '') ? '' : '<div class="permalink"><a class="button left' . $learn_more_visibility . '" href="' . $new_feature->learn_more_url . '" target="_blank">Learn More</a><a class="button right' . $upgrade_visibility . '" href="' . $freemius_discount_upgrade_url . '">Upgrade</a></div>';
17
  $this->module_roots = $module_roots;
18
  }
19
 
20
+ public function new_features_loop($new_features_arr, $freemius_discount_upgrade_url, $is_premium, $plugin_data, $path_prefix = '' ) {
21
+
22
+ $path_prefix = empty($path_prefix) ? '' : '/' . $path_prefix;
23
 
24
  ob_start(); // Start recording output.
25
  ?>
28
  <?php
29
 
30
  foreach ($new_features_arr as $key => $new_feature):
31
+ if( isset( $new_feature->type) ) {
32
+ if ( 'update' === $new_feature->type) {
33
+ $ribbon_text = "UPDATE";
34
+ $ribbon_color = 'update';
35
+ } else if ( 'fix' === $new_feature->type) {
36
+ $ribbon_text = "FIX";
37
+ $ribbon_color = 'fix';
38
+ } else {
39
+ $ribbon_text = "NEW";
40
+ $ribbon_color = 'new';
41
+ }
42
+ } else {
43
+ $ribbon_text = '';
44
+ $ribbon_color = '';
45
+ }
46
+
47
+ if ($new_feature->license === 'pro') {
48
  $type_class = 'pro-only';
49
  $type_label = '<a href="' . $freemius_discount_upgrade_url . '">PRO</a>';
50
  } else {
55
  // don't show 'PRO' label for the premium plugin as it's redundant
56
  $type_html = !$is_premium ? '<div class="' . $type_class . '">' . $type_label . '</div>' : '';
57
 
58
+ // Ribbon visibility.
59
+ $new_ribbon = (($plugin_data['Version'] === $new_feature->version) || ($new_feature->version === 'latest')) ? '<div class="ribbon-wrapper"><div class="ribbon ' . $ribbon_color . '">' . $ribbon_text . '</div></div>' : '';
60
  ?>
61
  <li>
62
  <div class="wpgo-settings-card">
63
  <?php echo $new_ribbon; ?>
64
  <div class="image-wrapper">
65
  <?php echo $type_html; ?>
66
+ <img class="post-image" src="<?php echo $this->module_roots['uri'] . $path_prefix . '/assets/images/new-features/' . $new_feature->banner_url; ?>">
67
  </div>
68
  <div class="details" style="font-weight: bold;">
69
  <div>Version: <?php echo $new_feature->version; ?></div>
76
  <?php
77
  $hide = ' hide-button';
78
  $learn_more_visibility = $new_feature->learn_more_url === '' ? $hide : '';
79
+ $upgrade_visibility = ($new_feature->license === 'free' || $new_feature->license === 'free-only') || $is_premium ? $hide : '';
80
 
81
  // if both buttons not shown then don't show permalink section
82
  // $permalink_html = ($learn_more_visibility !== '') && ($upgrade_visibility !== '') ? '' : '<div class="permalink"><a class="button left' . $learn_more_visibility . '" href="' . $new_feature->learn_more_url . '" target="_blank">Learn More</a><a class="button right' . $upgrade_visibility . '" href="' . $freemius_discount_upgrade_url . '">Upgrade</a></div>';
lib/assets/css/admin-settings.css ADDED
@@ -0,0 +1,194 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Plugin specific admin settings styles. */
2
+ .about-con .sub-header .sub-header-title {
3
+ display: flex;
4
+ justify-content: space-between;
5
+ align-items: baseline;
6
+ }
7
+ .about-con .sub-header .sub-header-title h1 {
8
+ margin: 0.2em 0 0 0;
9
+ font-size: 2.8em;
10
+ }
11
+ .about-con .sub-header .sub-header-title .title-ver {
12
+ font-size: 16px;
13
+ font-weight: 600;
14
+ }
15
+
16
+ .about-con .sub-header .title-desc p {
17
+ font-size: 1.2em;
18
+ }
19
+
20
+ .about-con .header {
21
+ display: flex;
22
+ grid-gap: 1.5em;
23
+ }
24
+
25
+ .premium-tbl {
26
+ background-color: #279a97a6;
27
+ border: #237976a1 dashed 4px;
28
+ margin: 20px 0 30px 0;
29
+ padding: 12px 20px;
30
+ color: #fff;
31
+ }
32
+ .premium-tbl .upgrade-txt-pc {
33
+ font-size: 16px;
34
+ font-weight: 700;
35
+ color: #237976;
36
+ }
37
+ .premium-tbl .upgrade-txt-pc:hover {
38
+ color: #237976;
39
+ }
40
+ .premium-tbl a.upgrade-link,
41
+ .premium-tbl a.upgrade-link:hover {
42
+ color: #fff;
43
+ font-weight: 700;
44
+ }
45
+ .premium-tbl .detail-cel {
46
+ margin: 0 0 0 15px;
47
+ font-size: 18px;
48
+ font-style: italic;
49
+ line-height: 1.25em;
50
+ }
51
+
52
+ .about-con .header-img img {
53
+ margin: 1em 0 0 0;
54
+ box-shadow: 3px 3px 10px #aaa;
55
+ width: 130px;
56
+ height: auto;
57
+ }
58
+
59
+ .about-con .plugin-desc-con h2.sub-title {
60
+ text-align: left;
61
+ font-size: 24px;
62
+ font-weight: 600;
63
+ }
64
+
65
+ .about-con .plugin-desc-con .new-fea-con-img {
66
+ margin: 0 0 20px;
67
+ }
68
+
69
+ .about-con .plugin-desc-con .getting-start-desc {
70
+ padding: 0 0 0 20px;
71
+ }
72
+
73
+ .about-con .plugin-desc-con .getting-start-desc table td {
74
+ padding: 5px;
75
+ }
76
+
77
+ .about-con .plugin-desc-con .getting-start-desc table td:first-child {
78
+ width: 70px;
79
+ }
80
+
81
+ .about-con .plugin-desc-con .coming-soon-con .coming-soon-ul,
82
+ .lets-get-started {
83
+ list-style: initial;
84
+ margin-left: 30px;
85
+ }
86
+
87
+ .about-con .plugin-desc-con .getting-more-btn {
88
+ cursor: pointer;
89
+ margin-left: -20px;
90
+ }
91
+
92
+ .about-con .plugin-desc-con .getting-more-btn h3 {
93
+ text-decoration: underline;
94
+ }
95
+
96
+ .about-con .plugin-desc-con .getting-more {
97
+ background-color: white;
98
+ max-height: 0;
99
+ overflow: hidden;
100
+ transition: max-height 0.2s ease-out;
101
+ }
102
+
103
+ .about-con .plugin-desc-con .getting-start-gen-con {
104
+ display: flex;
105
+ justify-content: space-between;
106
+ margin-top: 40px;
107
+ }
108
+
109
+ .about-con .plugin-desc-con .getting-start-gen-con .getting-start-gen {
110
+ width: calc(100% - 360px);
111
+ }
112
+
113
+ .about-con .plugin-desc-con .getting-start-gen-con .getting-start-img {
114
+ width: 300px;
115
+ box-shadow: 3px 3px 10px #aaa;
116
+ height: -webkit-fit-content;
117
+ height: -moz-fit-content;
118
+ height: fit-content;
119
+ }
120
+
121
+ .font-setting-wrapper {
122
+ margin: 15px 15px 15px 0;
123
+ }
124
+ .font-setting-wrapper input {
125
+ width: 100%;
126
+ margin-left: 10px;
127
+ }
128
+ @media only screen and (min-width: 1200px) {
129
+ .font-setting-wrapper input {
130
+ width: 75%;
131
+ }
132
+ }
133
+ @media only screen and (min-width: 1500px) {
134
+ .font-setting-wrapper input {
135
+ width: 60%;
136
+ }
137
+ }
138
+ @media only screen and (min-width: 2000px) {
139
+ .font-setting-wrapper input {
140
+ width: 50%;
141
+ }
142
+ }
143
+
144
+ .plugin-btn.get-started-btn {
145
+ width: 230px;
146
+ display: flex;
147
+ }
148
+ .plugin-btn.get-started-btn .get-started-txt {
149
+ margin-left: 8px;
150
+ }
151
+
152
+ /*Settings page's header's styling*/
153
+ .wpgo-settings-inner .wpgo-settings-page-header {
154
+ display: flex;
155
+ align-items: center;
156
+ justify-content: space-between;
157
+ }
158
+ .wpgo-settings-inner .wpgo-settings-page-header .heading {
159
+ display: flex;
160
+ align-items: center;
161
+ grid-gap: 15px;
162
+ }
163
+ .wpgo-settings-inner .wpgo-settings-page-header .heading img {
164
+ max-width: 60px;
165
+ box-shadow: 5px 5px 10px #00000026;
166
+ border-radius: 3px;
167
+ }
168
+ .wpgo-settings-inner .wpgo-settings-page-header .wpgo-header-btns {
169
+ display: flex;
170
+ grid-gap: 10px;
171
+ }
172
+ .wpgo-settings-inner .wpgo-settings-page-header .wpgo-header-btns a {
173
+ color: #fff;
174
+ padding: 7px 10px;
175
+ text-decoration: none;
176
+ }
177
+ .wpgo-settings-inner .wpgo-settings-page-header .wpgo-header-btns a:first-of-type {
178
+ background: #59afad;
179
+ border: 2px solid #388d8c;
180
+ }
181
+
182
+ .wpgo-settings-inner .wpgo-header-description {
183
+ margin: 35px 0 0;
184
+ }
185
+ .wpgo-settings-inner .wpgo-header-description p.description-txt {
186
+ font-size: 17px;
187
+ }
188
+
189
+ .wpgo-settings-inner .wpgo-expand-box {
190
+ background: #fff;
191
+ padding: 20px 20px 15px 20px;
192
+ }
193
+
194
+ /*# sourceMappingURL=admin-settings.css.map*/
lib/assets/images/add-sitemap-block.png ADDED
Binary file
lib/assets/images/create-sitemap-page.png ADDED
Binary file
lib/assets/images/customise-sitemap.png ADDED
Binary file
lib/assets/images/icons/1s.svg ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ <svg width="480" height="480" viewBox="0 0 480 480" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M60 100C60 77.91 77.91 60 100 60H380C402.09 60 420 77.91 420 100V380C420 402.09 402.09 420 380 420H100C77.91 420 60 402.09 60 380V100Z" fill="#2196F3"/>
3
+ <path d="M270 320H234.7V204.41L200 214.83V187.33L266.77 163.59H270V320Z" fill="white"/>
4
+ </svg>
lib/assets/images/icons/2s.svg ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ <svg width="480" height="480" viewBox="0 0 480 480" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M60 100C60 77.91 77.91 60 100 60H380C402.09 60 420 77.91 420 100V380C420 402.09 402.09 420 380 420H100C77.91 420 60 402.09 60 380V100Z" fill="#2196F3"/>
3
+ <path d="M300 320H193.15V296.17L242.36 242.87C254.51 228.64 260.56 217.35 260.56 208.96C260.56 202.18 259.11 197.01 256.25 193.47C253.37 189.93 249.2 188.17 243.72 188.17C238.33 188.17 233.94 190.53 230.59 195.27C227.23 200 225.54 205.9 225.54 212.98H190C190 203.3 192.34 194.37 197.05 186.17C201.74 177.97 208.26 171.55 216.61 166.93C224.94 162.32 234.27 160 244.58 160C261.11 160 273.88 163.95 282.8 171.82C291.75 179.68 296.22 190.99 296.22 205.73C296.22 211.94 295.09 217.99 292.84 223.87C290.6 229.75 287.12 235.92 282.38 242.39C277.65 248.86 270.03 257.51 259.51 268.34L239.73 291.85H300V320Z" fill="white"/>
4
+ </svg>
lib/assets/images/icons/3s.svg ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ <svg width="480" height="480" viewBox="0 0 480 480" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M60 100C60 77.91 77.91 60 100 60H380C402.09 60 420 77.91 420 100V380C420 402.09 402.09 420 380 420H100C77.91 420 60 402.09 60 380V100Z" fill="#2196F3"/>
3
+ <path d="M217.6 235.31H234.68C248.22 235.31 254.98 228.69 254.98 215.44C254.98 210.28 253.37 206.07 250.15 202.82C246.93 199.56 242.38 197.93 236.51 197.93C231.71 197.93 227.54 199.33 224 202.12C220.46 204.91 218.68 208.39 218.68 212.54H182.48C182.48 204.31 184.77 196.96 189.36 190.52C193.94 184.07 200.3 179.05 208.43 175.42C216.54 171.81 225.47 170 235.21 170C252.61 170 266.28 173.97 276.25 181.92C286.2 189.87 291.18 200.79 291.18 214.68C291.18 221.41 289.12 227.77 285 233.75C280.88 239.73 274.88 244.58 267.01 248.3C275.31 251.31 281.83 255.88 286.56 261.99C291.29 268.12 293.65 275.69 293.65 284.71C293.65 298.67 288.28 309.85 277.54 318.23C266.8 326.61 252.69 330.8 235.22 330.8C224.98 330.8 215.47 328.85 206.7 324.94C197.93 321.04 191.28 315.63 186.77 308.73C182.26 301.83 180 293.96 180 285.16H216.42C216.42 289.95 218.35 294.12 222.22 297.62C226.09 301.12 230.85 302.88 236.51 302.88C242.88 302.88 247.97 301.1 251.76 297.57C255.55 294.02 257.45 289.49 257.45 283.98C257.45 276.1 255.48 270.51 251.54 267.22C247.6 263.93 242.16 262.28 235.21 262.28H217.6V235.31Z" fill="white"/>
4
+ </svg>
lib/assets/images/icons/4s.svg ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ <svg width="480" height="480" viewBox="0 0 480 480" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M60 100C60 77.91 77.91 60 100 60H380C402.09 60 420 77.91 420 100V380C420 402.09 402.09 420 380 420H100C77.91 420 60 402.09 60 380V100Z" fill="#2196F3"/>
3
+ <path d="M279.87 257.47H299.87V286.04H279.87V320H242.01V286.04H182.24L180 263.41L242.01 160.33V160H279.87V257.47V257.47ZM212.58 257.47H242.01V208.24L239.65 211.98L212.58 257.47Z" fill="white"/>
4
+ </svg>
lib/assets/images/icons/copied.svg ADDED
@@ -0,0 +1 @@
 
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 128 128"><path fill="#fff" d="M90,111H37c-5.523,0-10-4.477-10-10V32c0-5.523,4.477-10,10-10h53c5.523,0,10,4.477,10,10v69 C100,106.523,95.523,111,90,111z"/><path fill="#cfcece" d="M47 22L47 34 80 34 80 22"/><path fill="none" stroke="#444b54" stroke-width="6" d="M90,111H37c-5.523,0-10-4.477-10-10V32 c0-5.523,4.477-10,10-10h53c5.523,0,10,4.477,10,10v69C100,106.523,95.523,111,90,111z"/><path fill="none" stroke="#444b54" stroke-linejoin="round" stroke-width="6" d="M47 22H80V34H47z"/><path fill="none" stroke="#444b54" stroke-width="6" d="M64 8A7 7 0 1 0 64 22A7 7 0 1 0 64 8Z"/><path fill="none" stroke="#8ccfb9" stroke-linecap="round" stroke-linejoin="round" stroke-width="6" d="M44 72.029L56.318 83 84 51"/></svg>
lib/assets/images/icons/copy.svg ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 24.3.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
+ viewBox="0 0 128 128" style="enable-background:new 0 0 128 128;" xml:space="preserve">
5
+ <style type="text/css">
6
+ .st0{fill:#FFFFFF;}
7
+ .st1{fill:#CFCECE;}
8
+ .st2{fill:none;stroke:#444B54;stroke-width:6;}
9
+ .st3{fill:none;stroke:#444B54;stroke-width:6;stroke-linejoin:round;}
10
+ </style>
11
+ <path class="st0" d="M90,111H37c-5.5,0-10-4.5-10-10V32c0-5.5,4.5-10,10-10h53c5.5,0,10,4.5,10,10v69C100,106.5,95.5,111,90,111z"/>
12
+ <path class="st1" d="M47,22v12h33V22"/>
13
+ <path class="st2" d="M90,111H37c-5.5,0-10-4.5-10-10V32c0-5.5,4.5-10,10-10h53c5.5,0,10,4.5,10,10v69C100,106.5,95.5,111,90,111z"/>
14
+ <path class="st3" d="M47,22h33v12H47V22z"/>
15
+ <path class="st2" d="M64,8c-3.9,0-7,3.1-7,7s3.1,7,7,7s7-3.1,7-7S67.9,8,64,8z"/>
16
+ </svg>
lib/assets/images/icons/copy1.svg ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
3
+ viewBox="0 0 488.3 488.3" style="enable-background:new 0 0 488.3 488.3;" xml:space="preserve">
4
+ <g>
5
+ <path d="M314.25,85.4h-227c-21.3,0-38.6,17.3-38.6,38.6v325.7c0,21.3,17.3,38.6,38.6,38.6h227c21.3,0,38.6-17.3,38.6-38.6V124
6
+ C352.75,102.7,335.45,85.4,314.25,85.4z M325.75,449.6c0,6.4-5.2,11.6-11.6,11.6h-227c-6.4,0-11.6-5.2-11.6-11.6V124
7
+ c0-6.4,5.2-11.6,11.6-11.6h227c6.4,0,11.6,5.2,11.6,11.6V449.6z"/>
8
+ <path d="M401.05,0h-227c-21.3,0-38.6,17.3-38.6,38.6c0,7.5,6,13.5,13.5,13.5s13.5-6,13.5-13.5c0-6.4,5.2-11.6,11.6-11.6h227
9
+ c6.4,0,11.6,5.2,11.6,11.6v325.7c0,6.4-5.2,11.6-11.6,11.6c-7.5,0-13.5,6-13.5,13.5s6,13.5,13.5,13.5c21.3,0,38.6-17.3,38.6-38.6
10
+ V38.6C439.65,17.3,422.35,0,401.05,0z"/>
11
+ </g>
12
+ </svg>
lib/assets/images/icons/disabled.svg ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
2
+ <path d="M4.2070312 2.7929688L2.7929688 4.2070312L5.0761719 6.4902344C2.1993447 8.8382005 1 12 1 12C1 12 4 20 12 20C14.075568 20 15.806003 19.45473 17.242188 18.65625L19.792969 21.207031L21.207031 19.792969L4.2070312 2.7929688 z M 12 4C10.788 4 9.7057969 4.1997187 8.7167969 4.5117188L11.277344 7.0722656C11.514344 7.0372656 11.753 7 12 7C14.761 7 17 9.239 17 12C17 12.247 16.962734 12.485656 16.927734 12.722656L20.357422 16.152344C22.204422 14.102344 23 12 23 12C23 12 20 4 12 4 z M 7.8339844 9.2480469L9.296875 10.710938C9.1081595 11.100829 9 11.536566 9 12C9 13.657 10.343 15 12 15C12.463434 15 12.899171 14.89184 13.289062 14.703125L14.751953 16.166016C13.962039 16.689758 13.019271 17 12 17C9.239 17 7 14.761 7 12C7 10.980729 7.3102415 10.037961 7.8339844 9.2480469 z" fill="#5B5B5B" />
3
+ </svg>
lib/assets/images/icons/enabled.svg ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 26 26">
2
+ <path d="M22.566406 4.730469L20.773438 3.511719C20.277344 3.175781 19.597656 3.304688 19.265625 3.796875L10.476563 16.757813L6.4375 12.71875C6.015625 12.296875 5.328125 12.296875 4.90625 12.71875L3.371094 14.253906C2.949219 14.675781 2.949219 15.363281 3.371094 15.789063L9.582031 22C9.929688 22.347656 10.476563 22.613281 10.96875 22.613281C11.460938 22.613281 11.957031 22.304688 12.277344 21.839844L22.855469 6.234375C23.191406 5.742188 23.0625 5.066406 22.566406 4.730469Z" fill="#5B5B5B" />
3
+ </svg>
lib/assets/images/icons/high-priority.svg ADDED
@@ -0,0 +1 @@
 
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 48 48"><path fill="#F44336" d="M21.2,44.8l-18-18c-1.6-1.6-1.6-4.1,0-5.7l18-18c1.6-1.6,4.1-1.6,5.7,0l18,18c1.6,1.6,1.6,4.1,0,5.7l-18,18C25.3,46.4,22.7,46.4,21.2,44.8z"/><path fill="#FFF" d="M21.6,32.7c0-0.3,0.1-0.6,0.2-0.9c0.1-0.3,0.3-0.5,0.5-0.7c0.2-0.2,0.5-0.4,0.8-0.5s0.6-0.2,1-0.2s0.7,0.1,1,0.2c0.3,0.1,0.6,0.3,0.8,0.5c0.2,0.2,0.4,0.4,0.5,0.7c0.1,0.3,0.2,0.6,0.2,0.9s-0.1,0.6-0.2,0.9s-0.3,0.5-0.5,0.7c-0.2,0.2-0.5,0.4-0.8,0.5c-0.3,0.1-0.6,0.2-1,0.2s-0.7-0.1-1-0.2s-0.5-0.3-0.8-0.5c-0.2-0.2-0.4-0.4-0.5-0.7S21.6,33.1,21.6,32.7z M25.8,28.1h-3.6L21.7,13h4.6L25.8,28.1z"/></svg>
lib/assets/images/icons/ok.svg ADDED
@@ -0,0 +1 @@
 
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 48 48"><path fill="#4caf50" d="M44,24c0,11.045-8.955,20-20,20S4,35.045,4,24S12.955,4,24,4S44,12.955,44,24z"/><path fill="#ccff90" d="M34.602,14.602L21,28.199l-5.602-5.598l-2.797,2.797L21,33.801l16.398-16.402L34.602,14.602z"/></svg>
lib/assets/images/icons/prize.svg ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50">
2
+ <path d="M25.105469 2C24.867188 2 24.625 2.082031 24.433594 2.253906L21.5625 4.816406L17.800781 3.984375C17.300781 3.875 16.796875 4.15625 16.636719 4.644531L15.429688 8.300781L11.761719 9.460938C11.269531 9.613281 10.976563 10.113281 11.078125 10.617188L11.863281 14.386719L9.261719 17.222656C8.914063 17.605469 8.910156 18.183594 9.253906 18.566406L11.816406 21.4375L10.984375 25.199219C10.871094 25.699219 11.15625 26.203125 11.644531 26.363281L15.300781 27.570313L16.457031 31.242188C16.613281 31.730469 17.113281 32.023438 17.613281 31.921875L21.386719 31.136719L24.222656 33.738281C24.414063 33.910156 24.660156 34 24.902344 34C25.136719 34 25.375 33.914063 25.566406 33.746094L28.4375 31.183594L32.199219 32.015625C32.699219 32.125 33.203125 31.839844 33.363281 31.355469L34.566406 27.699219L38.238281 26.542969C38.730469 26.386719 39.023438 25.886719 38.921875 25.386719L38.136719 21.613281L40.738281 18.777344C41.085938 18.394531 41.089844 17.816406 40.746094 17.433594L38.183594 14.5625L39.015625 10.800781C39.128906 10.300781 38.839844 9.796875 38.355469 9.636719L34.699219 8.429688L33.539063 4.757813C33.382813 4.269531 32.886719 3.980469 32.382813 4.078125L28.613281 4.863281L25.777344 2.261719C25.585938 2.089844 25.34375 2 25.105469 2 Z M 25 7C31.066406 7 36 11.933594 36 18C36 24.066406 31.066406 29 25 29C18.933594 29 14 24.066406 14 18C14 11.933594 18.933594 7 25 7 Z M 25 9C20.035156 9 16 13.035156 16 18C16 22.964844 20.035156 27 25 27C29.964844 27 34 22.964844 34 18C34 13.035156 29.964844 9 25 9 Z M 20.792969 33.300781L18.011719 33.878906C17.816406 33.917969 17.617188 33.9375 17.417969 33.9375C16.910156 33.9375 16.425781 33.8125 16 33.582031L16 47C16 47.347656 16.179688 47.667969 16.472656 47.851563C16.769531 48.035156 17.136719 48.046875 17.449219 47.894531L25 44.117188L32.550781 47.894531C32.695313 47.964844 32.847656 48 33 48C33.183594 48 33.367188 47.949219 33.527344 47.851563C33.820313 47.667969 34 47.347656 34 47L34 33.578125C33.535156 33.867188 32.988281 34.039063 32.410156 34.039063C32.199219 34.039063 31.984375 34.015625 31.765625 33.96875L29.003906 33.359375L26.894531 35.242188C26.34375 35.730469 25.636719 36 24.902344 36C24.148438 36 23.429688 35.722656 22.875 35.214844Z" fill="#5B5B5B" />
3
+ </svg>
lib/assets/images/icons/thumbs-up.svg ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 50 50" fill="#5B5B5B">
2
+ <path d="M24 4C22.824219 4 21.691406 4.726563 20.9375 5.90625C20.910156 5.945313 20.867188 5.960938 20.84375 6L9.6875 21.3125C8.570313 22.878906 8 24.699219 8 26.59375L8 36C8 40.945313 12.054688 45 17 45L36 45C37.515625 45 38.769531 44.386719 39.625 43.5625C40.480469 42.738281 41 41.722656 41 40.6875C41 39.832031 40.800781 39.128906 40.59375 38.59375C41.566406 38.070313 43 37.078125 43 34.8125C43 33.386719 42.308594 32.453125 41.625 31.84375C42.308594 31.171875 43 30.183594 43 28.6875C43 26.445313 41.578125 25.527344 40.75 25.09375C40.835938 24.578125 41 23.820313 41 22.90625C41 20.949219 39.152344 19.109375 36.4375 19.09375C36.429688 19.09375 36.414063 19.09375 36.40625 19.09375C33.300781 19.003906 25.800781 19 23.9375 19C24.269531 18.253906 24.511719 17.734375 25.125 16.34375C26.058594 14.226563 27.039063 12.007813 27.34375 11.15625C27.34375 11.152344 27.34375 11.128906 27.34375 11.125C27.613281 10.410156 28 9.703125 28 8.59375C28 7.050781 27.398438 5.847656 26.59375 5.09375C25.789063 4.339844 24.851563 4 24 4 Z M 24 6C24.246094 6 24.796875 6.167969 25.21875 6.5625C25.640625 6.957031 26 7.539063 26 8.59375C26 9.273438 25.796875 9.558594 25.46875 10.4375C25.46875 10.449219 25.46875 10.457031 25.46875 10.46875C25.269531 11.027344 24.25 13.410156 23.3125 15.53125C22.375 17.652344 21.5 19.59375 21.5 19.59375C21.363281 19.902344 21.390625 20.257813 21.574219 20.542969C21.757813 20.824219 22.070313 20.996094 22.40625 21C22.40625 21 33.035156 20.996094 36.375 21.09375C36.386719 21.09375 36.394531 21.09375 36.40625 21.09375C38.269531 21.09375 39 22.273438 39 22.90625C39 23.707031 38.71875 25.4375 38.71875 25.4375C38.644531 25.914063 38.921875 26.371094 39.375 26.53125C39.375 26.53125 41 27.054688 41 28.6875C41 30.152344 39.53125 31.03125 39.53125 31.03125C39.1875 31.214844 38.980469 31.578125 39 31.96875C39.019531 32.355469 39.261719 32.699219 39.625 32.84375C39.625 32.84375 41 33.347656 41 34.8125C41 36.460938 38.9375 37.25 38.9375 37.25C38.640625 37.355469 38.410156 37.597656 38.320313 37.898438C38.226563 38.199219 38.28125 38.527344 38.46875 38.78125C38.46875 38.78125 39 39.5 39 40.6875C39 40.953125 38.769531 41.625 38.25 42.125C37.730469 42.625 36.984375 43 36 43L17 43C13.144531 43 10 39.855469 10 36L10 26.59375C10 25.097656 10.441406 23.730469 11.3125 22.5C11.316406 22.492188 11.308594 22.476563 11.3125 22.46875L22.5 7.09375C22.523438 7.0625 22.542969 7.03125 22.5625 7C23.011719 6.253906 23.617188 6 24 6Z" fill="#fff" />
3
+ </svg>
lib/assets/images/icons/total.svg ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50">
2
+ <path d="M42.199219 50L4.101563 50C3.28125 50 2.101563 49.429688 2.101563 48.398438C2.101563 48.164063 2.183594 47.9375 2.332031 47.757813C8.601563 40.257813 14.875 32.800781 21.5 24.988281C14.828125 16.808594 2.457031 1.789063 2.328125 1.636719C2.082031 1.335938 2.03125 0.921875 2.195313 0.574219C2.359375 0.222656 2.714844 0 3.101563 0L42 0C42.554688 0 43 0.449219 43 1L43 12.5C43 13.050781 42.554688 13.5 42 13.5L40.699219 13.5C39.675781 13.5 39.046875 13.015625 38.832031 12.054688C38.777344 11.875 38.742188 11.695313 38.714844 11.515625C38.695313 11.417969 38.683594 11.316406 38.652344 11.21875C37.457031 7.230469 37.058594 5.898438 31.898438 5.898438C28.324219 5.980469 22.195313 5.996094 18.9375 6L22.148438 10.214844C25.15625 14.160156 28.105469 18.03125 31.292969 22.191406C31.574219 22.5625 31.566406 23.078125 31.273438 23.4375L16.816406 41L34.421875 41.003906C37.570313 41.003906 39.683594 39.632813 40.878906 36.808594C40.914063 36.691406 41.007813 36.496094 41.105469 36.304688C41.160156 36.195313 41.214844 36.089844 41.253906 35.980469C41.742188 34.300781 43.019531 33.273438 44.660156 33.273438C44.984375 33.273438 45.1875 33.316406 45.1875 33.316406C45.71875 33.429688 46.082031 33.953125 45.980469 34.488281L43.183594 49.1875C43.09375 49.660156 42.679688 50 42.199219 50Z" fill="#5B5B5B" />
3
+ </svg>
lib/assets/images/new-features/block-preview.png ADDED
Binary file
lib/assets/images/new-features/new-default-attribute-settings.png ADDED
Binary file
lib/assets/images/new-features/new-sort-options.png ADDED
Binary file
lib/assets/images/new-features/num-terms-attribute.png ADDED
Binary file
lib/assets/images/new-features/visibility-attribute.png ADDED
Binary file
lib/assets/images/simple-sitemap.svg ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg width="1024px" height="1024px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>Simple Sitemap Pro</title>
4
+ <desc>Created with Sketch.</desc>
5
+ <defs></defs>
6
+ <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
7
+ <g id="Simple-Sitemap-Pro">
8
+ <rect id="background" fill="#F5A356" x="0" y="1" width="1024" height="1024" rx="40"></rect>
9
+ <rect id="Rectangle-1" fill="#FFFFFF" x="190" y="243" width="644.38538" height="644.38538" rx="12"></rect>
10
+ <polygon id="Fill-110" fill-opacity="0.385388361" fill="#F5AD67" points="226 849.156549 795.368261 849.156549 795.368261 280 226 280"></polygon>
11
+ <path d="M501.803151,739.847129 L681.189451,739.847129 L681.189451,538.866141 L501.803151,538.866141 L501.803151,739.847129 Z M359.196445,629.143325 L475.47048,629.143325 L475.47048,422.241684 L359.196445,422.241684 L359.196445,629.143325 Z M795.368261,422.241684 L795.368261,395.887112 L359.196445,395.887112 L359.196445,280 L332.841873,280 L332.841873,395.887112 L226,395.887112 L226,422.241684 L332.841873,422.241684 L332.841873,629.150626 L226,629.150626 L226,655.512498 L475.47048,655.512498 L475.47048,849.156549 L501.803151,849.156549 L501.803151,766.201701 L795.368261,766.201701 L795.368261,739.847129 L707.573225,739.847129 L707.573225,538.866141 L795.368261,538.866141 L795.368261,512.504268 L501.803151,512.504268 L501.803151,422.241684 L795.368261,422.241684 L795.368261,422.241684 Z" id="Fill-111" fill="#FFFFFF"></path>
12
+ <polygon id="Fill-112" fill="#D5EAF7" points="226 849.64405 475.47048 849.64405 475.47048 656 226 656"></polygon>
13
+ <polygon id="Fill-113" fill="#D5EAF7" points="502 849.954848 795.56511 849.954848 795.56511 767 502 767"></polygon>
14
+ <polygon id="Fill-114" fill="#D5EAF7" points="226 629.901641 332.841873 629.901641 332.841873 423 226 423"></polygon>
15
+ <path d="M616.449972,274.228636 C616.449972,332.887635 568.902236,380.471873 510.235937,380.471873 C451.562337,380.471873 404,332.887635 404,274.228636 C404,215.576938 451.562337,168 510.235937,168 C568.902236,168 616.449972,215.576938 616.449972,274.228636" id="Fill-115" fill="#FFFFFF"></path>
16
+ <polyline id="Fill-116" fill="#933C60" points="510.448244 213 530.363832 253.371408 574.896488 259.868796 542.686967 291.253368 550.315922 335.618114 510.448244 314.687765 470.573266 335.618114 478.18762 291.253368 446 259.868796 490.496154 253.371408 510.448244 213"></polyline>
17
+ <path d="M511.622904,380.85884 C452.949304,380.85884 405.386967,333.274602 405.386967,274.615603 C405.386967,215.963905 452.949304,168.386967 511.622904,168.386967 C570.289203,168.386967 617.836939,215.963905 617.836939,274.615603 C617.836939,333.274602 570.289203,380.85884 511.622904,380.85884 L511.622904,380.85884 Z M511.622904,122 C427.324775,122 359,190.324775 359,274.615603 C359,334.902599 393.969086,387.005807 444.707112,411.819987 L511.622904,525.933094 L578.516794,411.819987 C629.24752,387.005807 664.231206,334.902599 664.231206,274.615603 C664.231206,190.324775 595.89183,122 511.622904,122 L511.622904,122 Z" id="Fill-117" fill="#933C60"></path>
18
+ </g>
19
+ </g>
20
+ </svg>
lib/assets/js/simple-sitemap-admin.js CHANGED
@@ -2,7 +2,7 @@
2
  jQuery(document).ready(function ($) {
3
  // Reset plugin settings link
4
  $('#simple-sitemap-reset > a').on('click', function () {
5
- const res = document.confirm(
6
  'Are you sure? All plugin options will be reset to their default settings!'
7
  );
8
  if (res === true) {
2
  jQuery(document).ready(function ($) {
3
  // Reset plugin settings link
4
  $('#simple-sitemap-reset > a').on('click', function () {
5
+ const res = window.confirm(
6
  'Are you sure? All plugin options will be reset to their default settings!'
7
  );
8
  if (res === true) {
lib/assets/js/update-menu.js ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ /* eslint-disable no-undef */
2
+ // The numbered icon is rendered via PHP now so this JS file is no longer needed?
3
+ // JavaScript for all admin pages.
4
+ // jQuery( document ).ready( function ( $ ) {
5
+ // console.log('update menu: Simple Sitemap', simple_sitemap_admin_menu_data);
6
+ // wpgoplugins_all_admin_pages_fw.update_menu(
7
+ // $,
8
+ // simple_sitemap_admin_menu_data
9
+ // );
10
+ // } );
lib/assets/misc/new-features.json ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "update",
4
+ "license": "pro",
5
+ "banner_url": "visibility-attribute.png",
6
+ "version": "latest",
7
+ "date": "22nd November 2021",
8
+ "title": "Visibility Attribute",
9
+ "description": "<p style='margin:15px 0;'>For convenience, the <strong><code>visibility</code></strong> shortcode attribute is now set to <code>false</code> by default so private posts/pages won't appear in the sitemap list unless set to <code>true</code>.</p>",
10
+ "learn_more_url": ""
11
+ },
12
+ {
13
+ "type": "update",
14
+ "license": "pro",
15
+ "banner_url": "new-default-attribute-settings.png",
16
+ "version": "latest",
17
+ "date": "22nd November 2021",
18
+ "title": "New Default Settings",
19
+ "description": "<p style='margin:15px 0;'>The <code>post_type_label_font_size</code> and <code>sitemap_container_margin</code> attributes in the sitemap blocks/shortcodes are now set to empty strings by default to blend in better with the current active WordPress theme.</p>",
20
+ "learn_more_url": ""
21
+ },
22
+ {
23
+ "type": "new",
24
+ "license": "free",
25
+ "banner_url": "new-sort-options.png",
26
+ "version": "latest",
27
+ "date": "22nd November 2021",
28
+ "title": "New Sort Options",
29
+ "description": "<p style='margin:15px 0;'>New sort options (<em>Random Order, Menu Order, Comment Count</em>) have been added to the <strong>Orderby</strong> attribute for the main sitemap block and shortcode.</p>",
30
+ "learn_more_url": ""
31
+ },
32
+ {
33
+ "type": "new",
34
+ "license": "free",
35
+ "banner_url": "num-terms-attribute.png",
36
+ "version": "latest",
37
+ "date": "22nd November 2021",
38
+ "title": "New Shortcode Attribute",
39
+ "description": "<p style='margin:15px 0;'>Added a new <strong><code>num_terms</code></strong> attribute to the <code>&#91;simple-sitemap-group&#93;</code> shortcode to limit the number of taxonomy terms displayed.</p>",
40
+ "learn_more_url": ""
41
+ },
42
+ {
43
+ "type": "new",
44
+ "license": "free",
45
+ "banner_url": "block-preview.png",
46
+ "version": "latest",
47
+ "date": "22nd November 2021",
48
+ "title": "Preview Sitemap Blocks",
49
+ "description": "<p style='margin:15px 0;'>Added support for block previews in the editor for sitemap and sitemap group blocks, when browsing blocks.</p>",
50
+ "learn_more_url": ""
51
+ }
52
+ ]
lib/block_assets/js/blocks.editor.js CHANGED
@@ -1,3 +1,3 @@
1
  /*! For license information please see blocks.editor.js.LICENSE.txt */
2
- (()=>{var e={679:(e,t,n)=>{"use strict";var r=n(864),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={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 l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var o=d(n);o&&o!==m&&e(t,o,r)}var a=c(n);p&&(a=a.concat(p(n)));for(var s=l(t),h=l(n),v=0;v<a.length;++v){var b=a[v];if(!(i[b]||r&&r[b]||h&&h[b]||s&&s[b])){var g=f(n,b);try{u(t,b,g)}catch(e){}}}}return t}},703:(e,t,n)=>{"use strict";var r=n(414);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},697:(e,t,n)=>{e.exports=n(703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},639:(e,t,n)=>{"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(804),a=l(i),s=l(n(697));function l(e){return e&&e.__esModule?e:{default:e}}var u={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},c=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],p=function(e,t){t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform},f=!("undefined"==typeof window||!window.navigator)&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),d=function(){return f?"_"+Math.random().toString(36).substr(2,12):void 0},m=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.inputRef=function(e){n.input=e,"function"==typeof n.props.inputRef&&n.props.inputRef(e)},n.placeHolderSizerRef=function(e){n.placeHolderSizer=e},n.sizerRef=function(e){n.sizer=e},n.state={inputWidth:e.minWidth,inputId:e.id||d(),prevId:e.id},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.id;return n!==t.prevId?{inputId:n||d(),prevId:n}:null}}]),o(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"componentDidUpdate",value:function(e,t){t.inputWidth!==this.state.inputWidth&&"function"==typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(this.mounted&&window.getComputedStyle){var e=this.input&&window.getComputedStyle(this.input);e&&(p(e,this.sizer),this.placeHolderSizer&&p(e,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(this.mounted&&this.sizer&&void 0!==this.sizer.scrollWidth){var e=void 0;e=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2,(e+="number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0)<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var e=this.props.injectStyles;return f&&e?a.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var e=[this.props.defaultValue,this.props.value,""].reduce((function(e,t){return null!=e?e:t})),t=r({},this.props.style);t.display||(t.display="inline-block");var n=r({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),o=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(this.props,[]);return function(e){c.forEach((function(t){return delete e[t]}))}(o),o.className=this.props.inputClassName,o.id=this.state.inputId,o.style=n,a.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),a.default.createElement("input",r({},o,{ref:this.inputRef})),a.default.createElement("div",{ref:this.sizerRef,style:u},e),this.props.placeholder?a.default.createElement("div",{ref:this.placeHolderSizerRef,style:u},this.props.placeholder):null)}}]),t}(i.Component);m.propTypes={className:s.default.string,defaultValue:s.default.any,extraWidth:s.default.oneOfType([s.default.number,s.default.string]),id:s.default.string,injectStyles:s.default.bool,inputClassName:s.default.string,inputRef:s.default.func,inputStyle:s.default.object,minWidth:s.default.oneOfType([s.default.number,s.default.string]),onAutosize:s.default.func,onChange:s.default.func,placeholder:s.default.string,placeholderIsMinWidth:s.default.bool,style:s.default.object,value:s.default.any},m.defaultProps={minWidth:1,injectStyles:!0},t.Z=m},921:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,b=n?Symbol.for("react.block"):60121,g=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,O=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case p:case i:case s:case a:case d:return e;default:switch(e=e&&e.$$typeof){case u:case f:case v:case h:case l:return e;default:return t}}case o:return t}}}function S(e){return w(e)===p}t.AsyncMode=c,t.ConcurrentMode=p,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=v,t.Memo=h,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=d,t.isAsyncMode=function(e){return S(e)||w(e)===c},t.isConcurrentMode=S,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===v},t.isMemo=function(e){return w(e)===h},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===p||e===s||e===a||e===d||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===h||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===g||e.$$typeof===y||e.$$typeof===O||e.$$typeof===b)},t.typeOf=w},864:(e,t,n)=>{"use strict";e.exports=n(921)},804:e=>{"use strict";e.exports=React}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(e){if(null==e)throw new TypeError("Cannot destructure undefined")}var r=n(804),o=n.n(r);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),s=Math.abs,l=String.fromCharCode;function u(e){return e.trim()}function c(e,t,n){return e.replace(t,n)}function p(e,t){return e.indexOf(t)}function f(e,t){return 0|e.charCodeAt(t)}function d(e,t,n){return e.slice(t,n)}function m(e){return e.length}function h(e){return e.length}function v(e,t){return t.push(e),e}var b=1,g=1,y=0,O=0,w=0,S="";function x(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:b,column:g,length:a,return:""}}function k(e,t,n){return x(e,t.root,t.parent,n,t.props,t.children,0)}function C(){return w=O>0?f(S,--O):0,g--,10===w&&(g=1,b--),w}function E(){return w=O<y?f(S,O++):0,g++,10===w&&(g=1,b++),w}function P(){return f(S,O)}function M(){return O}function I(e,t){return d(S,e,t)}function R(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function V(e){return b=g=1,y=m(S=e),O=0,[]}function D(e){return S="",e}function T(e){return u(I(O-1,A(91===e?e+2:40===e?e+1:e)))}function _(e){for(;(w=P())&&w<33;)E();return R(e)>2||R(w)>3?"":" "}function L(e,t){for(;--t&&E()&&!(w<48||w>102||w>57&&w<65||w>70&&w<97););return I(e,M()+(t<6&&32==P()&&32==E()))}function A(e){for(;E();)switch(w){case e:return O;case 34:case 39:return A(34===e||39===e?e:w);case 40:41===e&&A(e);break;case 92:E()}return O}function F(e,t){for(;E()&&e+w!==57&&(e+w!==84||47!==P()););return"/*"+I(t,O-1)+"*"+l(47===e?e:E())}function N(e){for(;!R(P());)E();return I(e,O)}var j="-ms-",H="-moz-",z="-webkit-",$="comm",U="rule",B="decl";function W(e,t){for(var n="",r=h(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function G(e,t,n,r){switch(e.type){case"@import":case B:return e.return=e.return||e.value;case $:return"";case U:e.value=e.props.join(",")}return m(n=W(e.children,r))?e.return=e.value+"{"+n+"}":""}function Y(e,t){switch(function(e,t){return(((t<<2^f(e,0))<<2^f(e,1))<<2^f(e,2))<<2^f(e,3)}(e,t)){case 5103:return z+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return z+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return z+e+H+e+j+e+e;case 6828:case 4268:return z+e+j+e+e;case 6165:return z+e+j+"flex-"+e+e;case 5187:return z+e+c(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return z+e+j+"flex-item-"+c(e,/flex-|-self/,"")+e;case 4675:return z+e+j+"flex-line-pack"+c(e,/align-content|flex-|-self/,"")+e;case 5548:return z+e+j+c(e,"shrink","negative")+e;case 5292:return z+e+j+c(e,"basis","preferred-size")+e;case 6060:return z+"box-"+c(e,"-grow","")+z+e+j+c(e,"grow","positive")+e;case 4554:return z+c(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return c(c(c(e,/(zoom-|grab)/,z+"$1"),/(image-set)/,z+"$1"),e,"")+e;case 5495:case 3959:return c(e,/(image-set\([^]*)/,z+"$1$`$1");case 4968:return c(c(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+z+e+e;case 4095:case 3583:case 4068:case 2532:return c(e,/(.+)-inline(.+)/,z+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(m(e)-1-t>6)switch(f(e,t+1)){case 109:if(45!==f(e,t+4))break;case 102:return c(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+H+(108==f(e,t+3)?"$3":"$2-$3"))+e;case 115:return~p(e,"stretch")?Y(c(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==f(e,t+1))break;case 6444:switch(f(e,m(e)-3-(~p(e,"!important")&&10))){case 107:return c(e,":",":"+z)+e;case 101:return c(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+z+(45===f(e,14)?"inline-":"")+"box$3$1"+z+"$2$3$1"+j+"$2box$3")+e}break;case 5936:switch(f(e,t+11)){case 114:return z+e+j+c(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return z+e+j+c(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return z+e+j+c(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return z+e+j+e+e}return e}function X(e){return D(q("",null,null,null,[""],e=V(e),0,[0],e))}function q(e,t,n,r,o,i,a,s,u){for(var p=0,f=0,d=a,h=0,b=0,g=0,y=1,O=1,w=1,S=0,x="",k=o,I=i,R=r,V=x;O;)switch(g=S,S=E()){case 34:case 39:case 91:case 40:V+=T(S);break;case 9:case 10:case 13:case 32:V+=_(g);break;case 92:V+=L(M()-1,7);continue;case 47:switch(P()){case 42:case 47:v(Z(F(E(),M()),t,n),u);break;default:V+="/"}break;case 123*y:s[p++]=m(V)*w;case 125*y:case 59:case 0:switch(S){case 0:case 125:O=0;case 59+f:b>0&&m(V)-d&&v(b>32?J(V+";",r,n,d-1):J(c(V," ","")+";",r,n,d-2),u);break;case 59:V+=";";default:if(v(R=K(V,t,n,p,f,o,s,x,k=[],I=[],d),i),123===S)if(0===f)q(V,t,R,R,k,i,d,s,I);else switch(h){case 100:case 109:case 115:q(e,R,R,r&&v(K(e,R,R,0,0,o,s,x,o,k=[],d),I),o,I,d,s,r?k:I);break;default:q(V,R,R,R,[""],I,d,s,I)}}p=f=b=0,y=w=1,x=V="",d=a;break;case 58:d=1+m(V),b=g;default:if(y<1)if(123==S)--y;else if(125==S&&0==y++&&125==C())continue;switch(V+=l(S),S*y){case 38:w=f>0?1:(V+="\f",-1);break;case 44:s[p++]=(m(V)-1)*w,w=1;break;case 64:45===P()&&(V+=T(E())),h=P(),f=m(x=V+=N(M())),S++;break;case 45:45===g&&2==m(V)&&(y=0)}}return i}function K(e,t,n,r,o,i,a,l,p,f,m){for(var v=o-1,b=0===o?i:[""],g=h(b),y=0,O=0,w=0;y<r;++y)for(var S=0,k=d(e,v+1,v=s(O=a[y])),C=e;S<g;++S)(C=u(O>0?b[S]+" "+k:c(k,/&\f/g,b[S])))&&(p[w++]=C);return x(e,t,n,0===o?U:l,p,f,m)}function Z(e,t,n){return x(e,t,n,$,l(w),d(e,2,-2),0)}function J(e,t,n,r){return x(e,t,n,B,d(e,0,r),d(e,r+1,-1),r)}var Q=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&e.length){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Q.get(n))&&!r){Q.set(e,!0);for(var o=[],i=function(e,t){return D(function(e,t){var n=-1,r=44;do{switch(R(r)){case 0:38===r&&12===P()&&(t[n]=1),e[n]+=N(O-1);break;case 2:e[n]+=T(r);break;case 4:if(44===r){e[++n]=58===P()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=l(r)}}while(r=E());return e}(V(e),t))}(t,o),a=n.props,s=0,u=0;s<i.length;s++)for(var c=0;c<a.length;c++,u++)e.props[u]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},te=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},ne=[function(e,t,n,r){if(!e.return)switch(e.type){case B:e.return=Y(e.value,e.length);break;case"@keyframes":return W([k(c(e.value,"@","@"+z),e,"")],r);case U:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return W([k(c(t,/:(read-\w+)/,":-moz-$1"),e,"")],r);case"::placeholder":return W([k(c(t,/:(plac\w+)/,":-webkit-input-$1"),e,""),k(c(t,/:(plac\w+)/,":-moz-$1"),e,""),k(c(t,/:(plac\w+)/,j+"input-$1"),e,"")],r)}return""}))}}];const re=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){document.head.appendChild(e),e.setAttribute("data-s","")}))}var r,o,i=e.stylisPlugins||ne,s={},l=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll("style[data-emotion]"),(function(e){var n=e.getAttribute("data-emotion").split(" ");if(n[0]===t){for(var r=1;r<n.length;r++)s[n[r]]=!0;l.push(e)}}));var u,c,p,f,d=[G,(f=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&f(e)})],m=(c=[ee,te].concat(i,d),p=h(c),function(e,t,n,r){for(var o="",i=0;i<p;i++)o+=c[i](e,t,n,r)||"";return o});o=function(e,t,n,r){u=n,W(X(e?e+"{"+t.styles+"}":t.styles),m),r&&(v.inserted[t.name]=!0)};var v={key:t,sheet:new a({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend}),nonce:e.nonce,inserted:s,registered:{},insert:o};return v.sheet.hydrate(l),v};function oe(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var ie=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};const ae=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},se={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var le=/[A-Z]|^ms/g,ue=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ce=function(e){return 45===e.charCodeAt(1)},pe=function(e){return null!=e&&"boolean"!=typeof e},fe=function(e){var t=Object.create(null);return function(e){return void 0===t[e]&&(t[e]=ce(n=e)?n:n.replace(le,"-$&").toLowerCase()),t[e];var n}}(),de=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(ue,(function(e,t,n){return he={name:t,styles:n,next:he},t}))}return 1===se[e]||ce(e)||"number"!=typeof t||0===t?t:t+"px"};function me(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return he={name:n.name,styles:n.styles,next:he},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)he={name:r.name,styles:r.styles,next:he},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=me(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":pe(a)&&(r+=fe(i)+":"+de(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=me(e,t,a);switch(i){case"animation":case"animationName":r+=fe(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var l=0;l<a.length;l++)pe(a[l])&&(r+=fe(i)+":"+de(i,a[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=he,i=n(e);return he=o,me(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var he,ve=/label:\s*([^\s;\n{]+)\s*(;|$)/g,be=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";he=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=me(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=me(n,t,e[a]),r&&(o+=i[a]);ve.lastIndex=0;for(var s,l="";null!==(s=ve.exec(o));)l+="-"+s[1];return{name:ae(o)+l,styles:o,next:he}},ge=Object.prototype.hasOwnProperty,ye=(0,r.createContext)("undefined"!=typeof HTMLElement?re({key:"css"}):null),Oe=(ye.Provider,function(e){return(0,r.forwardRef)((function(t,n){var o=(0,r.useContext)(ye);return e(t,o,n)}))}),we=(0,r.createContext)({}),Se="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",xe=function(e,t){var n={};for(var r in t)ge.call(t,r)&&(n[r]=t[r]);return n[Se]=e,n},ke=Oe((function(e,t,n){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var i=e[Se],a=[o],s="";"string"==typeof e.className?s=oe(t.registered,a,e.className):null!=e.className&&(s=e.className+" ");var l=be(a,void 0,"function"==typeof o||Array.isArray(o)?(0,r.useContext)(we):void 0);ie(t,l,"string"==typeof i),s+=t.key+"-"+l.name;var u={};for(var c in e)ge.call(e,c)&&"css"!==c&&c!==Se&&(u[c]=e[c]);return u.ref=n,u.className=s,(0,r.createElement)(i,u)}));n(679);var Ce=function(e,t){var n=arguments;if(null==t||!ge.call(t,"css"))return r.createElement.apply(void 0,n);var o=n.length,i=new Array(o);i[0]=ke,i[1]=xe(e,t);for(var a=2;a<o;a++)i[a]=n[a];return r.createElement.apply(null,i)};function Ee(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return be(t)}var Pe=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var s in a="",i)i[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o};function Me(e,t,n){var r=[],o=oe(e,r,n);return r.length<2?n:o+t(r)}var Ie=Oe((function(e,t){var n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=be(n,t.registered);return ie(t,o,!1),t.key+"-"+o.name},o={css:n,cx:function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return Me(t.registered,n,Pe(r))},theme:(0,r.useContext)(we)};return e.children(o)}));function Re(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ve(e){return(Ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var De=n(639);function Te(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Le(e,t,n){return t&&_e(e.prototype,t),n&&_e(e,n),e}function Ae(e,t){return(Ae=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Fe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ae(e,t)}const Ne=ReactDOM;function je(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function He(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?He(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):He(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $e(e){return($e=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ue(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Be(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=$e(e);if(t){var o=$e(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ue(this,n)}}var We=function(){};function Ge(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Ye(e,t,n){var r=[n];if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&r.push("".concat(Ge(e,o)));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Xe=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===Ve(e)&&null!==e?[e]:[]},qe=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,ze({},Re(e,["className","clearValue","cx","getStyles","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"]))};function Ke(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Ze(e){return Ke(e)?window.pageYOffset:e.scrollTop}function Je(e,t){Ke(e)?window.scrollTo(0,t):e.scrollTop=t}function Qe(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function et(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:We,o=Ze(e),i=t-o,a=10,s=0;function l(){var t=Qe(s+=a,o,i,n);Je(e,t),s<n?window.requestAnimationFrame(l):r(e)}l()}function tt(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var nt=!1,rt={get passive(){return nt=!0}},ot="undefined"!=typeof window?window:{};ot.addEventListener&&ot.removeEventListener&&(ot.addEventListener("p",We,rt),ot.removeEventListener("p",We,!1));var it=nt;function at(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.theme.spacing,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/,o=document.documentElement;if("fixed"===t.position)return o;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return o}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c=l.getBoundingClientRect().height,p=n.getBoundingClientRect(),f=p.bottom,d=p.height,m=p.top,h=n.offsetParent.getBoundingClientRect().top,v=window.innerHeight,b=Ze(l),g=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),O=h-y,w=v-m,S=O+b,x=c-b-m,k=f-v+b+g,C=b+m-y,E=160;switch(o){case"auto":case"bottom":if(w>=d)return{placement:"bottom",maxHeight:t};if(x>=d&&!a)return i&&et(l,k,E),{placement:"bottom",maxHeight:t};if(!a&&x>=r||a&&w>=r)return i&&et(l,k,E),{placement:"bottom",maxHeight:a?w-g:x-g};if("auto"===o||a){var P=t,M=a?O:S;return M>=r&&(P=Math.min(M-g-s.controlHeight,t)),{placement:"top",maxHeight:P}}if("bottom"===o)return i&&Je(l,k),{placement:"bottom",maxHeight:t};break;case"top":if(O>=d)return{placement:"top",maxHeight:t};if(S>=d&&!a)return i&&et(l,C,E),{placement:"top",maxHeight:t};if(!a&&S>=r||a&&O>=r){var I=t;return(!a&&S>=r||a&&O>=r)&&(I=a?O-y:S-y),i&&et(l,C,E),{placement:"top",maxHeight:I}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}var st=function(e){return"auto"===e?"bottom":e},lt=(0,r.createContext)({getPortalPlacement:null}),ut=function(e){Fe(n,e);var t=Be(n);function n(){var e;Te(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={maxHeight:e.props.maxMenuHeight,placement:null},e.getPlacement=function(t){var n=e.props,r=n.minMenuHeight,o=n.maxMenuHeight,i=n.menuPlacement,a=n.menuPosition,s=n.menuShouldScrollIntoView,l=n.theme;if(t){var u="fixed"===a,c=at({maxHeight:o,menuEl:t,minHeight:r,placement:i,shouldScroll:s&&!u,isFixedPosition:u,theme:l}),p=e.context.getPortalPlacement;p&&p(c),e.setState(c)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,n=e.state.placement||st(t);return ze(ze({},e.props),{},{placement:n,maxHeight:e.state.maxHeight})},e}return Le(n,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),n}(r.Component);ut.contextType=lt;var ct=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},pt=ct,ft=ct,dt=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return Ce("div",i({css:o("noOptionsMessage",e),className:r({"menu-notice":!0,"menu-notice--no-options":!0},n)},a),t)};dt.defaultProps={children:"No options"};var mt=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return Ce("div",i({css:o("loadingMessage",e),className:r({"menu-notice":!0,"menu-notice--loading":!0},n)},a),t)};mt.defaultProps={children:"Loading..."};var ht,vt,bt,gt=function(e){Fe(n,e);var t=Be(n);function n(){var e;Te(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={placement:null},e.getPortalPlacement=function(t){var n=t.placement;n!==st(e.props.menuPlacement)&&e.setState({placement:n})},e}return Le(n,[{key:"render",value:function(){var e=this.props,t=e.appendTo,n=e.children,r=e.className,o=e.controlElement,a=e.cx,s=e.innerProps,l=e.menuPlacement,u=e.menuPosition,c=e.getStyles,p="fixed"===u;if(!t&&!p||!o)return null;var f=this.state.placement||st(l),d=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(o),m=p?0:window.pageYOffset,h=d[f]+m,v=Ce("div",i({css:c("menuPortal",{offset:h,position:u,rect:d}),className:a({"menu-portal":!0},r)},s),n);return Ce(lt.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},t?(0,Ne.createPortal)(v,t):v)}}]),n}(r.Component),yt={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Ot=function(e){var t=e.size,n=Re(e,["size"]);return Ce("svg",i({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:yt},n))},wt=function(e){return Ce(Ot,i({size:20},e),Ce("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},St=function(e){return Ce(Ot,i({size:20},e),Ce("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},xt=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorContainer",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?o.neutral80:o.neutral40}}},kt=xt,Ct=xt,Et=function(){var e=Ee.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(ht||(vt=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],bt||(bt=vt.slice(0)),ht=Object.freeze(Object.defineProperties(vt,{raw:{value:Object.freeze(bt)}})))),Pt=function(e){var t=e.delay,n=e.offset;return Ce("span",{css:Ee({animation:"".concat(Et," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Mt=function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps,a=e.isRtl;return Ce("div",i({css:r("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)},o),Ce(Pt,{delay:0,offset:a}),Ce(Pt,{delay:160,offset:!0}),Ce(Pt,{delay:320,offset:!a}))};Mt.defaultProps={size:4};var It=function(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}},Rt=function(e){var t=e.children,n=e.innerProps;return Ce("div",n,t)},Vt=Rt,Dt=Rt,Tt=function(e){var t=e.children,n=e.className,r=e.components,o=e.cx,i=e.data,a=e.getStyles,s=e.innerProps,l=e.isDisabled,u=e.removeProps,c=e.selectProps,p=r.Container,f=r.Label,d=r.Remove;return Ce(Ie,null,(function(r){var m=r.css,h=r.cx;return Ce(p,{data:i,innerProps:ze({className:h(m(a("multiValue",e)),o({"multi-value":!0,"multi-value--is-disabled":l},n))},s),selectProps:c},Ce(f,{data:i,innerProps:{className:h(m(a("multiValueLabel",e)),o({"multi-value__label":!0},n))},selectProps:c},t),Ce(d,{data:i,innerProps:ze({className:h(m(a("multiValueRemove",e)),o({"multi-value__remove":!0},n))},u),selectProps:c}))}))};Tt.defaultProps={cropWithEllipsis:!0};var _t={ClearIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return Ce("div",i({css:o("clearIndicator",e),className:r({indicator:!0,"clear-indicator":!0},n)},a),t||Ce(wt,null))},Control:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.className,a=e.isDisabled,s=e.isFocused,l=e.innerRef,u=e.innerProps,c=e.menuIsOpen;return Ce("div",i({ref:l,css:r("control",e),className:n({control:!0,"control--is-disabled":a,"control--is-focused":s,"control--menu-is-open":c},o)},u),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return Ce("div",i({css:o("dropdownIndicator",e),className:r({indicator:!0,"dropdown-indicator":!0},n)},a),t||Ce(St,null))},DownChevron:St,CrossIcon:wt,Group:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.Heading,s=e.headingProps,l=e.innerProps,u=e.label,c=e.theme,p=e.selectProps;return Ce("div",i({css:o("group",e),className:r({group:!0},n)},l),Ce(a,i({},s,{selectProps:p,theme:c,getStyles:o,cx:r}),u),Ce("div",null,t))},GroupHeading:function(e){var t=e.getStyles,n=e.cx,r=e.className,o=qe(e);o.data;var a=Re(o,["data"]);return Ce("div",i({css:t("groupHeading",e),className:n({"group-heading":!0},r)},a))},IndicatorsContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.innerProps,a=e.getStyles;return Ce("div",i({css:a("indicatorsContainer",e),className:r({indicators:!0},n)},o),t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps;return Ce("span",i({},o,{css:r("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=qe(e),a=o.innerRef,s=o.isDisabled,l=o.isHidden,u=Re(o,["innerRef","isDisabled","isHidden"]);return Ce("div",{css:r("input",e)},Ce(De.Z,i({className:n({input:!0},t),inputRef:a,inputStyle:It(l),disabled:s},u)))},LoadingIndicator:Mt,Menu:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerRef,s=e.innerProps;return Ce("div",i({css:o("menu",e),className:r({menu:!0},n),ref:a},s),t)},MenuList:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps,s=e.innerRef,l=e.isMulti;return Ce("div",i({css:o("menuList",e),className:r({"menu-list":!0,"menu-list--is-multi":l},n),ref:s},a),t)},MenuPortal:gt,LoadingMessage:mt,NoOptionsMessage:dt,MultiValue:Tt,MultiValueContainer:Vt,MultiValueLabel:Dt,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Ce("div",n,t||Ce(wt,{size:14}))},Option:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.isDisabled,s=e.isFocused,l=e.isSelected,u=e.innerRef,c=e.innerProps;return Ce("div",i({css:o("option",e),className:r({option:!0,"option--is-disabled":a,"option--is-focused":s,"option--is-selected":l},n),ref:u},c),t)},Placeholder:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return Ce("div",i({css:o("placeholder",e),className:r({placeholder:!0},n)},a),t)},SelectContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps,s=e.isDisabled,l=e.isRtl;return Ce("div",i({css:o("container",e),className:r({"--is-disabled":s,"--is-rtl":l},n)},a),t)},SingleValue:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.isDisabled,s=e.innerProps;return Ce("div",i({css:o("singleValue",e),className:r({"single-value":!0,"single-value--is-disabled":a},n)},s),t)},ValueContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.innerProps,a=e.isMulti,s=e.getStyles,l=e.hasValue;return Ce("div",i({css:s("valueContainer",e),className:r({"value-container":!0,"value-container--is-multi":a,"value-container--has-value":l},n)},o),t)}};function Lt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function At(e,t){if(e){if("string"==typeof e)return Lt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Lt(e,t):void 0}}function Ft(e){return function(e){if(Array.isArray(e))return Lt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||At(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Nt(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}for(var jt={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},Ht=function(e){return Ce("span",i({css:jt},e))},zt={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.isDisabled,o=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(r?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"select-option":return"option ".concat(r,o?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=void 0===n?{}:n,o=e.options,i=e.label,a=void 0===i?"":i,s=e.selectValue,l=e.isDisabled,u=e.isSelected,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&s)return"value ".concat(a," focused, ").concat(c(s,r),".");if("menu"===t){var p=l?" disabled":"",f="".concat(u?"selected":"focused").concat(p);return"option ".concat(a," ").concat(f,", ").concat(c(o,r),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},$t=function(e){var t=e.ariaSelection,n=e.focusedOption,i=e.focusedValue,a=e.focusableOptions,s=e.isFocused,l=e.selectValue,u=e.selectProps,c=u.ariaLiveMessages,p=u.getOptionLabel,f=u.inputValue,d=u.isMulti,m=u.isOptionDisabled,h=u.isSearchable,v=u.menuIsOpen,b=u.options,g=u.screenReaderStatus,y=u.tabSelectsValue,O=u["aria-label"],w=u["aria-live"],S=(0,r.useMemo)((function(){return ze(ze({},zt),c||{})}),[c]),x=(0,r.useMemo)((function(){var e,n="";if(t&&S.onChange){var r=t.option,o=t.removedValue,i=t.value,a=o||r||(e=i,Array.isArray(e)?null:e),s=ze({isDisabled:a&&m(a),label:a?p(a):""},t);n=S.onChange(s)}return n}),[t,m,p,S]),k=(0,r.useMemo)((function(){var e="",t=n||i,r=!!(n&&l&&l.includes(n));if(t&&S.onFocus){var o={focused:t,label:p(t),isDisabled:m(t),isSelected:r,options:b,context:t===n?"menu":"value",selectValue:l};e=S.onFocus(o)}return e}),[n,i,p,m,S,b,l]),C=(0,r.useMemo)((function(){var e="";if(v&&b.length&&S.onFilter){var t=g({count:a.length});e=S.onFilter({inputValue:f,resultsMessage:t})}return e}),[a,f,v,S,b,g]),E=(0,r.useMemo)((function(){var e="";if(S.guidance){var t=i?"value":v?"menu":"input";e=S.guidance({"aria-label":O,context:t,isDisabled:n&&m(n),isMulti:d,isSearchable:h,tabSelectsValue:y})}return e}),[O,n,i,d,m,h,v,S,y]),P="".concat(k," ").concat(C," ").concat(E);return Ce(Ht,{"aria-live":w,"aria-atomic":"false","aria-relevant":"additions text"},s&&Ce(o().Fragment,null,Ce("span",{id:"aria-selection"},x),Ce("span",{id:"aria-context"},P)))},Ut=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Bt=new RegExp("["+Ut.map((function(e){return e.letters})).join("")+"]","g"),Wt={},Gt=0;Gt<Ut.length;Gt++)for(var Yt=Ut[Gt],Xt=0;Xt<Yt.letters.length;Xt++)Wt[Yt.letters[Xt]]=Yt.base;var qt=function(e){return e.replace(Bt,(function(e){return Wt[e]}))},Kt=function(e,t){var n;void 0===t&&(t=Nt);var r,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}(qt),Zt=function(e){return e.replace(/^\s+|\s+$/g,"")},Jt=function(e){return"".concat(e.label," ").concat(e.value)};function Qt(e){e.in,e.out,e.onExited,e.appear,e.enter,e.exit;var t=e.innerRef;e.emotion;var n=Re(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]);return Ce("input",i({ref:t},n,{css:Ee({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"","")}))}var en=["boxSizing","height","overflow","paddingRight","position"],tn={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function nn(e){e.preventDefault()}function rn(e){e.stopPropagation()}function on(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function an(){return"ontouchstart"in window||navigator.maxTouchPoints}var sn=!("undefined"==typeof window||!window.document||!window.document.createElement),ln=0,un={capture:!1,passive:!1},cn=function(){return document.activeElement&&document.activeElement.blur()},pn={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function fn(e){var t=e.children,n=e.lockEnabled,i=e.captureEnabled,a=function(e){var t=e.isEnabled,n=e.onBottomArrive,o=e.onBottomLeave,i=e.onTopArrive,a=e.onTopLeave,s=(0,r.useRef)(!1),l=(0,r.useRef)(!1),u=(0,r.useRef)(0),c=(0,r.useRef)(null),p=(0,r.useCallback)((function(e,t){if(null!==c.current){var r=c.current,u=r.scrollTop,p=r.scrollHeight,f=r.clientHeight,d=c.current,m=t>0,h=p-f-u,v=!1;h>t&&s.current&&(o&&o(e),s.current=!1),m&&l.current&&(a&&a(e),l.current=!1),m&&t>h?(n&&!s.current&&n(e),d.scrollTop=p,v=!0,s.current=!0):!m&&-t>u&&(i&&!l.current&&i(e),d.scrollTop=0,v=!0,l.current=!0),v&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[]),f=(0,r.useCallback)((function(e){p(e,e.deltaY)}),[p]),d=(0,r.useCallback)((function(e){u.current=e.changedTouches[0].clientY}),[]),m=(0,r.useCallback)((function(e){var t=u.current-e.changedTouches[0].clientY;p(e,t)}),[p]),h=(0,r.useCallback)((function(e){if(e){var t=!!it&&{passive:!1};"function"==typeof e.addEventListener&&e.addEventListener("wheel",f,t),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",d,t),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",m,t)}}),[m,d,f]),v=(0,r.useCallback)((function(e){e&&("function"==typeof e.removeEventListener&&e.removeEventListener("wheel",f,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",d,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",m,!1))}),[m,d,f]);return(0,r.useEffect)((function(){if(t){var e=c.current;return h(e),function(){v(e)}}}),[t,h,v]),function(e){c.current=e}}({isEnabled:void 0===i||i,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),s=function(e){var t=e.isEnabled,n=e.accountForScrollbars,o=void 0===n||n,i=(0,r.useRef)({}),a=(0,r.useRef)(null),s=(0,r.useCallback)((function(e){if(sn){var t=document.body,n=t&&t.style;if(o&&en.forEach((function(e){var t=n&&n[e];i.current[e]=t})),o&&ln<1){var r=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+r||0;Object.keys(tn).forEach((function(e){var t=tn[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&an()&&(t.addEventListener("touchmove",nn,un),e&&(e.addEventListener("touchstart",on,un),e.addEventListener("touchmove",rn,un))),ln+=1}}),[]),l=(0,r.useCallback)((function(e){if(sn){var t=document.body,n=t&&t.style;ln=Math.max(ln-1,0),o&&ln<1&&en.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&an()&&(t.removeEventListener("touchmove",nn,un),e&&(e.removeEventListener("touchstart",on,un),e.removeEventListener("touchmove",rn,un)))}}),[]);return(0,r.useEffect)((function(){if(t){var e=a.current;return s(e),function(){l(e)}}}),[t,s,l]),function(e){a.current=e}}({isEnabled:n});return Ce(o().Fragment,null,n&&Ce("div",{onClick:cn,css:pn}),t((function(e){a(e),s(e)})))}var dn={clearIndicator:Ct,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,o=r.colors,i=r.borderRadius,a=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:n?o.primary:o.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(o.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?o.primary:o.neutral30}}},dropdownIndicator:kt,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:o.neutral80}},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,o=r.colors,i=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*i,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:ft,menu:function(t){var n,r=t.placement,o=t.theme,i=o.borderRadius,a=o.spacing,s=o.colors;return e(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),e(n,"backgroundColor",s.neutral0),e(n,"borderRadius",i),e(n,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),e(n,"marginBottom",a.menuGutter),e(n,"marginTop",a.menuGutter),e(n,"position","absolute"),e(n,"width","100%"),e(n,"zIndex",1),n},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,r=t.colors,o=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused&&o.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},noOptionsMessage:pt,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,o=e.theme,i=o.spacing,a=o.colors;return{label:"option",backgroundColor:r?a.primary:n?a.primary25:"transparent",color:t?a.neutral20:r?a.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!t&&(r?a.primary:a.primary50)}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{label:"singleValue",color:t?o.neutral40:o.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"calc(100% - ".concat(2*r.baseUnit,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},valueContainer:function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}},mn={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},hn={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:tt(),captureMenuScroll:!tt(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){var n=ze({ignoreCase:!0,ignoreAccents:!0,stringify:Jt,trim:!0,matchFrom:"any"},undefined),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,s=n.matchFrom,l=a?Zt(t):t,u=a?Zt(i(e)):i(e);return r&&(l=l.toLowerCase(),u=u.toLowerCase()),o&&(l=Kt(l),u=qt(u)),"start"===s?u.substr(0,l.length)===l:u.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0};function vn(e,t,n,r){return{type:"option",data:t,isDisabled:Sn(e,t,n),isSelected:xn(e,t,n),label:On(e,t),value:wn(e,t),index:r}}function bn(e,t){return e.options.map((function(n,r){if(n.options){var o=n.options.map((function(n,r){return vn(e,n,t,r)})).filter((function(t){return yn(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=vn(e,n,t,r);return yn(e,i)?i:void 0})).filter((function(e){return!!e}))}function gn(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Ft(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function yn(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,s=t.value;return(!Cn(e)||!i)&&kn(e,{label:a,value:s,data:o},r)}var On=function(e,t){return e.getOptionLabel(t)},wn=function(e,t){return e.getOptionValue(t)};function Sn(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function xn(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=wn(e,t);return n.some((function(t){return wn(e,t)===r}))}function kn(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Cn=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},En=1,Pn=function(e){Fe(n,e);var t=Be(n);function n(e){var r;return Te(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.instancePrefix="",r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,i=n.name;t.name=i,r.ariaOnChange(e,t),o(e,t)},r.setValue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",n=arguments.length>2?arguments[2]:void 0,o=r.props,i=o.closeMenuOnSelect,a=o.isMulti;r.onInputChange("",{action:"set-value"}),i&&(r.setState({inputIsHiddenAfterUpdate:!a}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,i=t.name,a=r.state.selectValue,s=o&&r.isOptionSelected(e,a),l=r.isOptionDisabled(e,a);if(s){var u=r.getOptionValue(e);r.setValue(a.filter((function(e){return r.getOptionValue(e)!==u})),"deselect-option",e)}else{if(l)return void r.ariaOnChange(e,{action:"select-option",name:i});o?r.setValue([].concat(Ft(a),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,o=r.getOptionValue(e),i=n.filter((function(e){return r.getOptionValue(e)!==o})),a=t?i:i[0]||null;r.onChange(a,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(r.props.isMulti?[]:null,{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],o=t.slice(0,t.length-1),i=e?o:o[0]||null;r.onChange(i,{action:"pop-value",removedValue:n})},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ye.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return On(r.props,e)},r.getOptionValue=function(e){return wn(r.props,e)},r.getStyles=function(e,t){var n=dn[e](t);n.boxSizing="border-box";var o=r.props.styles[e];return o?o(n,t):n},r.getElementId=function(e){return"".concat(r.instancePrefix,"-").concat(e)},r.getComponents=function(){return e=r.props,ze(ze({},_t),e.components);var e},r.buildCategorizedOptions=function(){return bn(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return gn(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:ze({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault(),e.stopPropagation()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.stopPropagation(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout((function(){return r.focusInput()})))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Ke(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var o=Math.abs(n.clientX-r.initialTouchX),i=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||i>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(t,{action:"input-change"}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur"}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){r.blockOptionHover||r.state.focusedOption===e||r.setState({focusedOption:e})},r.shouldHideSelectedOptions=function(){return Cn(r.props)},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,l=t.isDisabled,u=t.menuIsOpen,c=t.onKeyDown,p=t.tabSelectsValue,f=t.openMenuOnFocus,d=r.state,m=d.focusedOption,h=d.focusedValue,v=d.selectValue;if(!(l||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;r.focusValue("previous");break;case"ArrowRight":if(!n||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(h)r.removeValue(h);else{if(!o)return;n?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!u||!p||!m||f&&r.isOptionSelected(m,v))return;r.selectOption(m);break;case"Enter":if(229===e.keyCode)break;if(u){if(!m)return;if(r.isComposing)return;r.selectOption(m);break}return;case"Escape":u?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close"}),r.onMenuClose()):s&&i&&r.clearValue();break;case" ":if(a)return;if(!u){r.openMenu("first");break}if(!m)return;r.selectOption(m);break;case"ArrowUp":u?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":u?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!u)return;r.focusOption("pageup");break;case"PageDown":if(!u)return;r.focusOption("pagedown");break;case"Home":if(!u)return;r.focusOption("first");break;case"End":if(!u)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.instancePrefix="react-select-"+(r.props.instanceId||++En),r.state.selectValue=Xe(e.value),r}return Le(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"componentDidUpdate",value:function(e){var t,n,r,o,i,a=this.props,s=a.isDisabled,l=a.menuIsOpen,u=this.state.isFocused;(u&&!s&&e.isDisabled||u&&l&&!e.menuIsOpen)&&this.focusInput(),u&&s&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,r=t.getBoundingClientRect(),o=n.getBoundingClientRect(),i=n.offsetHeight/3,o.bottom+i>r.bottom?Je(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+i,t.scrollHeight)):o.top-i<r.top&&Je(t,Math.max(n.offsetTop-i,0)),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(mn):ze(ze({},mn),this.props.theme):mn}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getValue,o=this.selectOption,i=this.setValue,a=this.props,s=a.isMulti,l=a.isRtl,u=a.options;return{clearValue:e,cx:t,getStyles:n,getValue:r,hasValue:this.hasValue(),isMulti:s,isRtl:l,options:u,selectOption:o,selectProps:a,setValue:i,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return Sn(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return xn(this.props,e,t)}},{key:"filterOption",value:function(e,t){return kn(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,a=e.inputValue,s=e.tabIndex,l=e.form,u=this.getComponents().Input,c=this.state.inputIsHidden,p=this.commonProps,f=r||this.getElementId("input"),d={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};return n?o().createElement(u,i({},p,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:f,innerRef:this.getInputRef,isDisabled:t,isHidden:c,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:s,form:l,type:"text",value:a},d)):o().createElement(Qt,i({id:f,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:We,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:s,form:l,value:""},d))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,a=t.MultiValueLabel,s=t.MultiValueRemove,l=t.SingleValue,u=t.Placeholder,c=this.commonProps,p=this.props,f=p.controlShouldRenderValue,d=p.isDisabled,m=p.isMulti,h=p.inputValue,v=p.placeholder,b=this.state,g=b.selectValue,y=b.focusedValue,O=b.isFocused;if(!this.hasValue()||!f)return h?null:o().createElement(u,i({},c,{key:"placeholder",isDisabled:d,isFocused:O}),v);if(m)return g.map((function(t,l){var u=t===y;return o().createElement(n,i({},c,{components:{Container:r,Label:a,Remove:s},isFocused:u,isDisabled:d,key:"".concat(e.getOptionValue(t)).concat(l),index:l,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))}));if(h)return null;var w=g[0];return o().createElement(l,i({},c,{data:w,isDisabled:d}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,a=n.isLoading,s=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||a)return null;var l={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return o().createElement(e,i({},t,{innerProps:l,isFocused:s}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,a=n.isLoading,s=this.state.isFocused;return e&&a?o().createElement(e,i({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:s})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,a=this.props.isDisabled,s=this.state.isFocused;return o().createElement(n,i({},r,{isDisabled:a,isFocused:s}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,a={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return o().createElement(e,i({},t,{innerProps:a,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,a=t.Menu,s=t.MenuList,l=t.MenuPortal,u=t.LoadingMessage,c=t.NoOptionsMessage,p=t.Option,f=this.commonProps,d=this.state.focusedOption,m=this.props,h=m.captureMenuScroll,v=m.inputValue,b=m.isLoading,g=m.loadingMessage,y=m.minMenuHeight,O=m.maxMenuHeight,w=m.menuIsOpen,S=m.menuPlacement,x=m.menuPosition,k=m.menuPortalTarget,C=m.menuShouldBlockScroll,E=m.menuShouldScrollIntoView,P=m.noOptionsMessage,M=m.onMenuScrollToTop,I=m.onMenuScrollToBottom;if(!w)return null;var R,V=function(t,n){var r=t.type,a=t.data,s=t.isDisabled,l=t.isSelected,u=t.label,c=t.value,m=d===a,h=s?void 0:function(){return e.onOptionHover(a)},v=s?void 0:function(){return e.selectOption(a)},b="".concat(e.getElementId("option"),"-").concat(n),g={id:b,onClick:v,onMouseMove:h,onMouseOver:h,tabIndex:-1};return o().createElement(p,i({},f,{innerProps:g,data:a,isDisabled:s,isSelected:l,key:b,label:u,type:r,value:c,isFocused:m,innerRef:m?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())R=this.getCategorizedOptions().map((function(t){if("group"===t.type){var a=t.data,s=t.options,l=t.index,u="".concat(e.getElementId("group"),"-").concat(l),c="".concat(u,"-heading");return o().createElement(n,i({},f,{key:u,data:a,options:s,Heading:r,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return V(e,"".concat(l,"-").concat(e.index))})))}if("option"===t.type)return V(t,"".concat(t.index))}));else if(b){var D=g({inputValue:v});if(null===D)return null;R=o().createElement(u,f,D)}else{var T=P({inputValue:v});if(null===T)return null;R=o().createElement(c,f,T)}var _={minMenuHeight:y,maxMenuHeight:O,menuPlacement:S,menuPosition:x,menuShouldScrollIntoView:E},L=o().createElement(ut,i({},f,_),(function(t){var n=t.ref,r=t.placerProps,l=r.placement,u=r.maxHeight;return o().createElement(a,i({},f,_,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:b,placement:l}),o().createElement(fn,{captureEnabled:h,onTopArrive:M,onBottomArrive:I,lockEnabled:C},(function(t){return o().createElement(s,i({},f,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:b,maxHeight:u,focusedOption:d}),R)})))}));return k||"fixed"===x?o().createElement(l,i({},f,{appendTo:k,controlElement:this.controlRef,menuPlacement:S,menuPosition:x}),L):L}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,i=t.isMulti,a=t.name,s=this.state.selectValue;if(a&&!r){if(i){if(n){var l=s.map((function(t){return e.getOptionValue(t)})).join(n);return o().createElement("input",{name:a,type:"hidden",value:l})}var u=s.length>0?s.map((function(t,n){return o().createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):o().createElement("input",{name:a,type:"hidden"});return o().createElement("div",null,u)}var c=s[0]?this.getOptionValue(s[0]):"";return o().createElement("input",{name:a,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,a=t.focusedValue,s=t.isFocused,l=t.selectValue,u=this.getFocusableOptions();return o().createElement($t,i({},e,{ariaSelection:n,focusedOption:r,focusedValue:a,isFocused:s,selectValue:l,focusableOptions:u}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,a=e.ValueContainer,s=this.props,l=s.className,u=s.id,c=s.isDisabled,p=s.menuIsOpen,f=this.state.isFocused,d=this.commonProps=this.getCommonProps();return o().createElement(r,i({},d,{className:l,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:f}),this.renderLiveRegion(),o().createElement(t,i({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:f,menuIsOpen:p}),o().createElement(a,i({},d,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),o().createElement(n,i({},d,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=e.options,a=e.value,s=e.menuIsOpen,l=e.inputValue,u={};if(n&&(a!==n.value||i!==n.options||s!==n.menuIsOpen||l!==n.inputValue)){var c=Xe(a),p=s?function(e,t){return gn(bn(e,t))}(e,c):[],f=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,c):null;u={selectValue:c,focusedOption:function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,p),focusedValue:f,clearFocusValueOnUpdate:!1}}var d=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{};return ze(ze(ze({},u),d),{},{prevProps:e})}}]),n}(r.Component);Pn.defaultProps=hn;var Mn,In,Rn;r.Component;const Vn=(Mn=Pn,Rn=In=function(e){Fe(n,e);var t=Be(n);function n(){var e;Te(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).select=void 0,e.state={inputValue:void 0!==e.props.inputValue?e.props.inputValue:e.props.defaultInputValue,menuIsOpen:void 0!==e.props.menuIsOpen?e.props.menuIsOpen:e.props.defaultMenuIsOpen,value:void 0!==e.props.value?e.props.value:e.props.defaultValue},e.onChange=function(t,n){e.callProp("onChange",t,n),e.setState({value:t})},e.onInputChange=function(t,n){var r=e.callProp("onInputChange",t,n);e.setState({inputValue:void 0!==r?r:t})},e.onMenuOpen=function(){e.callProp("onMenuOpen"),e.setState({menuIsOpen:!0})},e.onMenuClose=function(){e.callProp("onMenuClose"),e.setState({menuIsOpen:!1})},e}return Le(n,[{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"getProp",value:function(e){return void 0!==this.props[e]?this.props[e]:this.state[e]}},{key:"callProp",value:function(e){if("function"==typeof this.props[e]){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(t=this.props)[e].apply(t,r)}}},{key:"render",value:function(){var e=this,t=this.props;t.defaultInputValue,t.defaultMenuIsOpen,t.defaultValue;var n=Re(t,["defaultInputValue","defaultMenuIsOpen","defaultValue"]);return o().createElement(Mn,i({},n,{ref:function(t){e.select=t},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))}}]),n}(r.Component),In.defaultProps={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null},Rn);var Dn=wp.components.CheckboxControl,Tn=function(e){var t=e.help,n=e.disabled,o=e.label,i=e.updateCheckbox,a=e.value;return(0,r.createElement)(Dn,{help:t,disabled:n,label:o,checked:a,onChange:function(e){return i(e)}})};function _n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ln(e,t){return!t||"object"!==Ve(t)&&"function"!=typeof t?_n(e):t}function An(e){return(An=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}const Fn=lodash;function Nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jn(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Nn(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Nn(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var Hn=wp.element,zn=Hn.Component,$n=Hn.RawHTML,Un=Hn.Fragment,Bn=wp.i18n,Wn=Bn.__,Gn=Bn.sprintf,Yn=wp.apiFetch,Xn=(wp.url.addQueryArgs,wp.components),qn=Xn.Placeholder,Kn=Xn.Spinner,Zn=function(e){Fe(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=An(t);if(n){var o=An(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return Ln(this,e)});function a(e){var t;return Te(this,a),(t=o.call(this,e)).state={response:null,prevResponse:null},t}return Le(a,[{key:"componentDidMount",value:function(){this.isStillMounted=!0,this.fetch(this.props),this.fetch=(0,Fn.debounce)(this.fetch,500)}},{key:"componentWillUnmount",value:function(){this.isStillMounted=!1}},{key:"componentDidUpdate",value:function(e){(0,Fn.isEqual)(e,this.props)||this.fetch(this.props)}},{key:"fetch",value:function(e){var t=this;if(this.isStillMounted){null!==this.state.response&&this.setState((function(e){return{response:null,prevResponse:e.response}}));var n=e.block,r=e.attributes,o=void 0===r?null:r,i=e.urlQueryArgs,a=void 0===i?{}:i,s=this.currentFetchRequest=Yn({path:"/wp/v2/block-renderer/".concat(n),method:"POST",data:jn(jn({context:"edit"},null!==o?{attributes:o}:{}),a)}).then((function(e){t.isStillMounted&&s===t.currentFetchRequest&&e&&t.setState({response:e.rendered})})).catch((function(e){t.isStillMounted&&s===t.currentFetchRequest&&t.setState({response:{error:!0,errorMsg:e.message}})}));return s}}},{key:"render",value:function(){var e=this.props.spinnerLocation,t=(e.right,e.top,e.unit,this.state.response),n=this.state.prevResponse,o="";null!==n&&(o='<div style="position:relative;"><div style="position:absolute;left:-45px;bottom:50%;"><span class="spinner" style="visibility: visible;></span><span class="components-spinner"></span></div>'.concat(n,"</div>"));var a=this.props,s=a.className,l=a.EmptyResponsePlaceholder,u=a.ErrorResponsePlaceholder;return a.LoadingResponsePlaceholder,""===t?(0,r.createElement)(l,i({response:t},this.props)):t?t.error?(0,r.createElement)(u,i({response:t},this.props)):(0,r.createElement)($n,{key:"html",className:s},t):(0,r.createElement)(Un,null,(0,r.createElement)($n,{key:"html",className:s},o))}}]),a}(zn);function Jn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qn(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Jn(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Jn(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}Zn.defaultProps={spinnerLocation:{right:0,top:10,unit:"px"},EmptyResponsePlaceholder:function(e){var t=e.className;return(0,r.createElement)(qn,{className:t},Wn("Block rendered as empty."))},ErrorResponsePlaceholder:function(e){var t=e.response,n=e.className,o=Gn(Wn("Error loading block: %s"),t.errorMsg);return(0,r.createElement)(qn,{className:n},o)},LoadingResponsePlaceholder:function(e){var t=e.className;return(0,r.createElement)(qn,{className:t},(0,r.createElement)(Kn,null))}};var er=wp.i18n.__,tr=wp.blockEditor.InspectorControls,nr=wp.components,rr=nr.PanelBody,or=nr.PanelRow,ir=nr.TextControl,ar=nr.SelectControl,sr=wp.blocks.registerBlockType;t(wp.element),wp.serverSideRender;var lr=wp.hooks,ur=lr.applyFilters;function cr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||At(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}lr.addAction,lr.addFilter,sr("wpgoplugins/simple-sitemap-block",{title:"Simple Sitemap",icon:"editor-ul",keywords:[er("Sitemap","simple-sitemap"),er("Single","simple-sitemap"),er("HTML Sitemap","simple-sitemap")],category:"simple-sitemap",edit:function(e){var t=e.attributes,n=t.show_excerpt,o=t.show_label,i=t.links,a=t.page_depth,s=(t.nofollow,t.image,t.list_icon,t.max_width,t.responsive_breakpoint,t.sitemap_container_margin,t.sitemap_item_line_height,t.tab_color,t.tab_header_bg,t.post_type_label_padding,t.post_type_label_font_size,t.render_tab),l=t.block_post_types,u=(t.exclude,t.include,t.order),c=t.orderby,p=e.setAttributes,f=e.attributes,d={container:function(e){return Qn(Qn({},e),{},{marginBottom:"5px",'& div[class$="-Input"]':{"& input:focus":{boxShadow:"none"}}})}},m=ur("sitemap-post-types-select",(0,r.createElement)(Vn,{title:"Title",defaultValue:JSON.parse(l),isMulti:!0,onChange:function(e){return p({block_post_types:JSON.stringify(e)})},options:[{value:"post",label:"Post"},{value:"page",label:"Page"}],styles:d}),e),h=ur("post-types-help-label",(0,r.createElement)(or,{className:"panel-row-help-label"},(0,r.createElement)("p",{style:{marginTop:"-20px",fontSize:"13px",fontStyle:"italic",marginLeft:"2px"}},"List"," ",(0,r.createElement)("a",{href:"https://wpgoplugins.com/plugins/simple-sitemap-pro/#post-types",target:"_blank",rel:"noreferrer"},"more")," ","post types")),e),v=ur("sitemap-general-settings","",e),b=ur("sitemap-general-styles","",e),g=ur("sitemap-featured-image","",e),y=ur("sitemap-tab-controls","",e);return[(0,r.createElement)(tr,{key:"simple-sitemap-block-controls"},(0,r.createElement)(rr,{title:er("General Settings","simple-sitemap")},(0,r.createElement)(or,{className:"panel-row-label"},(0,r.createElement)("label",{style:{marginBottom:"-14px"},className:"components-base-control__label"},"Select post types to display")),(0,r.createElement)(or,null,m),h,(0,r.createElement)(or,{className:"simple-sitemap order"},(0,r.createElement)(ar,{label:"Orderby",value:c,options:[{label:"Title",value:"title"},{label:"Date",value:"date"},{label:"ID",value:"ID"},{label:"Author",value:"author"},{label:"Name",value:"name"},{label:"Modified",value:"modified"}],onChange:function(e){p({orderby:e})}}),(0,r.createElement)(ar,{label:"Order",value:u,options:[{label:"Ascending",value:"asc"},{label:"Descending",value:"desc"}],onChange:function(e){p({order:e})}})),(0,r.createElement)(or,{className:"simple-sitemap general-chk"},(0,r.createElement)(Tn,{value:o,label:"Show post type label",updateCheckbox:function(e){p({show_label:e})}})),(0,r.createElement)(or,{className:"simple-sitemap general-chk"},(0,r.createElement)(Tn,{value:n,label:"Show excerpt",updateCheckbox:function(e){p({show_excerpt:e})}})),(0,r.createElement)(or,{className:"simple-sitemap general-chk"},(0,r.createElement)(Tn,{value:i,label:"Enable sitemap links",updateCheckbox:function(e){p({links:e})}})),v),b,g,(0,r.createElement)(rr,{title:er("Tab Settings","simple-sitemap"),initialOpen:!1},(0,r.createElement)(or,{className:"simple-sitemap"},(0,r.createElement)(Tn,{value:s,label:"Enable tabs",updateCheckbox:function(e){p({render_tab:e})}})),y),(0,r.createElement)(rr,{title:er("Page Settings","simple-sitemap"),initialOpen:!1},(0,r.createElement)(or,{className:"simple-sitemap"},(0,r.createElement)("p",null,"Affects sitemap pages only.")),(0,r.createElement)(or,{className:"simple-sitemap"},(0,r.createElement)(ir,{type:"number",label:"Page indentation",min:"0",max:"5",help:"Leave at zero for auto-depth",value:a,onChange:function(e){p({page_depth:parseInt(e)})}})))),(0,r.createElement)(Zn,{key:"simple-sitemap-server-side-render-component",block:"wpgoplugins/simple-sitemap-block",attributes:f})]},save:function(){return null}});var pr=wp.components,fr=pr.PanelRow,dr=pr.SelectControl,mr=(pr.Button,wp.element),hr=(mr.Fragment,mr.Component),vr=wp.hooks,br=vr.applyFilters,gr=(vr.addAction,vr.addFilter,function(e){Fe(i,e);var t,n,o=(t=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=An(t);if(n){var o=An(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return Ln(this,e)});function i(e){var t;return Te(this,i),(t=o.call(this)).state={types:[],taxonomies:[],taxonomy_select_disabled_status:!0,taxonomy_select_disabled_help:"",wrapperClass:""},t.props=e,t.updatePostTypeValues=t.updatePostTypeValues.bind(_n(t)),t}return Le(i,[{key:"componentDidUpdate",value:function(){}},{key:"componentDidMount",value:function(){var e=this,t=wp.hooks.applyFilters("fetch-sitemap-cpts",null);"function"==typeof t&&t(this.props).then((function(t){e.setState({types:t})})),this.fetchTaxonomies(null)}},{key:"fetchTaxonomies",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=this.props,r=n.setAttributes,o=n.block_post_type,i=n.block_taxonomy,a="simple-sitemap/v1/post-type-taxonomies/".concat(t||o);wp.apiFetch({path:a,method:"GET"}).then((function(t){var n="",o=!1,a="",s=[],l=!0;if(0===t.length)n="No taxonomies found for this post type",o=!0,a="disabled",r({block_taxonomy:""});else{for(var u=0,c=Object.entries(t);u<c.length;u++){var p=cr(c[u],2),f={value:p[0],label:p[1]};s.push(f),f.value===i&&(l=!1)}l&&r({block_taxonomy:s[0].value})}return e.setState({taxonomy_select_disabled_status:o,taxonomy_select_disabled_help:n,taxonomies:s,wrapperClass:a}),t}),(function(e){return e}))}},{key:"updatePostTypeValues",value:function(e){(0,this.props.setAttributes)({block_post_type:e}),this.fetchTaxonomies(e)}},{key:"render",value:function(){var e=this,t=this.props,n=(t.setAttributes,t.block_post_type,t.block_taxonomy),o=(t.multi,t.className,br("sitemap-group-post-types-select","",this.props,this.state,this.updatePostTypeValues));return br("sitemap-list-more-taxonomies",(0,r.createElement)(fr,null,(0,r.createElement)("p",{style:{marginTop:"-24px",fontSize:"13px",fontStyle:"italic",marginLeft:"2px"}},"List ",(0,r.createElement)("a",{href:"https://wpgoplugins.com/plugins/simple-sitemap-pro/#taxonomies-for-any-post-type",target:"_blank",rel:"noreferrer"},"taxonomies")," for any post type"))),(0,r.createElement)("div",{className:"ss-taxonomy-select ".concat(this.state.wrapperClass)},o,(0,r.createElement)(dr,{label:"Select taxonomy",value:n,options:this.state.taxonomies,onChange:function(t){(0,e.props.setAttributes)({block_taxonomy:t})},disabled:this.state.taxonomy_select_disabled_status}))}}]),i}(hr)),yr=wp.i18n.__,Or=wp.blockEditor.InspectorControls,wr=wp.components,Sr=wr.PanelBody,xr=wr.PanelRow,kr=(wr.TextControl,wr.SelectControl),Cr=wp.blocks.registerBlockType;t(wp.element),wp.serverSideRender;var Er=wp.hooks,Pr=Er.applyFilters;Er.addAction,Er.addFilter,Cr("wpgoplugins/simple-sitemap-group-block",{title:"Simple Sitemap Group",icon:"networking",keywords:[yr("Sitemap","simple-sitemap"),yr("Group","simple-sitemap"),yr("HTML Sitemap","simple-sitemap")],category:"simple-sitemap",edit:function(e){var t=e.attributes,n=t.show_excerpt,o=t.show_label,i=t.links,a=t.block_taxonomy,s=t.block_post_type,l=t.order,u=t.orderby,c=(e.className,e.setAttributes),p=(e.isSelected,e.attributes),f=Pr("sitemap-group-general-settings","",e),d=Pr("sitemap-group-general-styles","",e),m=Pr("sitemap-group-featured-image","",e);return[(0,r.createElement)(Or,{key:"simple-sitemap-group-block-controls"},(0,r.createElement)(Sr,{title:yr("General Settings","simple-sitemap")},(0,r.createElement)(xr,{className:"simple-sitemap"},(0,r.createElement)(gr,{setAttributes:c,multi:!1,block_post_type:s,block_taxonomy:a})),(0,r.createElement)(xr,{className:"simple-sitemap order-label"},(0,r.createElement)("h3",{style:{marginBottom:"-12px"}},"Post ordering")),(0,r.createElement)(xr,{className:"simple-sitemap order"},(0,r.createElement)(kr,{label:"Orderby",value:u,options:[{label:"Title",value:"title"},{label:"Date",value:"date"},{label:"ID",value:"ID"},{label:"Author",value:"author"},{label:"Name",value:"name"},{label:"Modified",value:"modified"}],onChange:function(e){c({orderby:e})}}),(0,r.createElement)(kr,{label:"Order",value:l,options:[{label:"Ascending",value:"asc"},{label:"Descending",value:"desc"}],onChange:function(e){c({order:e})}})),(0,r.createElement)(xr,{className:"simple-sitemap general-chk"},(0,r.createElement)(Tn,{value:o,label:"Display post type label",updateCheckbox:function(e){c({show_label:e})}})),(0,r.createElement)(xr,{className:"simple-sitemap general-chk"},(0,r.createElement)(Tn,{value:n,label:"Display post excerpt",updateCheckbox:function(e){c({show_excerpt:e})}})),(0,r.createElement)(xr,{className:"simple-sitemap general-chk"},(0,r.createElement)(Tn,{value:i,label:"Display sitemap links",updateCheckbox:function(e){c({links:e})}})),f),d,m),(0,r.createElement)(Zn,{key:"simple-sitemap-server-side-render-component",block:"wpgoplugins/simple-sitemap-group-block",attributes:p})]},save:function(){return null}})})()})();
3
  //# sourceMappingURL=blocks.editor.js.map
1
  /*! For license information please see blocks.editor.js.LICENSE.txt */
2
+ (()=>{var e={679:(e,t,n)=>{"use strict";var r=n(864),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?i:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=i;var u=Object.defineProperty,c=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var o=d(n);o&&o!==m&&e(t,o,r)}var i=c(n);p&&(i=i.concat(p(n)));for(var s=l(t),h=l(n),v=0;v<i.length;++v){var b=i[v];if(!(a[b]||r&&r[b]||h&&h[b]||s&&s[b])){var g=f(n,b);try{u(t,b,g)}catch(e){}}}}return t}},703:(e,t,n)=>{"use strict";var r=n(414);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},697:(e,t,n)=>{e.exports=n(703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},639:(e,t,n)=>{"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(804),i=l(a),s=l(n(697));function l(e){return e&&e.__esModule?e:{default:e}}var u={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},c=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],p=function(e,t){t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform},f=!("undefined"==typeof window||!window.navigator)&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),d=function(){return f?"_"+Math.random().toString(36).substr(2,12):void 0},m=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.inputRef=function(e){n.input=e,"function"==typeof n.props.inputRef&&n.props.inputRef(e)},n.placeHolderSizerRef=function(e){n.placeHolderSizer=e},n.sizerRef=function(e){n.sizer=e},n.state={inputWidth:e.minWidth,inputId:e.id||d(),prevId:e.id},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.id;return n!==t.prevId?{inputId:n||d(),prevId:n}:null}}]),o(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"componentDidUpdate",value:function(e,t){t.inputWidth!==this.state.inputWidth&&"function"==typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(this.mounted&&window.getComputedStyle){var e=this.input&&window.getComputedStyle(this.input);e&&(p(e,this.sizer),this.placeHolderSizer&&p(e,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(this.mounted&&this.sizer&&void 0!==this.sizer.scrollWidth){var e=void 0;e=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2,(e+="number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0)<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var e=this.props.injectStyles;return f&&e?i.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var e=[this.props.defaultValue,this.props.value,""].reduce((function(e,t){return null!=e?e:t})),t=r({},this.props.style);t.display||(t.display="inline-block");var n=r({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),o=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(this.props,[]);return function(e){c.forEach((function(t){return delete e[t]}))}(o),o.className=this.props.inputClassName,o.id=this.state.inputId,o.style=n,i.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),i.default.createElement("input",r({},o,{ref:this.inputRef})),i.default.createElement("div",{ref:this.sizerRef,style:u},e),this.props.placeholder?i.default.createElement("div",{ref:this.placeHolderSizerRef,style:u},this.props.placeholder):null)}}]),t}(a.Component);m.propTypes={className:s.default.string,defaultValue:s.default.any,extraWidth:s.default.oneOfType([s.default.number,s.default.string]),id:s.default.string,injectStyles:s.default.bool,inputClassName:s.default.string,inputRef:s.default.func,inputStyle:s.default.object,minWidth:s.default.oneOfType([s.default.number,s.default.string]),onAutosize:s.default.func,onChange:s.default.func,placeholder:s.default.string,placeholderIsMinWidth:s.default.bool,style:s.default.object,value:s.default.any},m.defaultProps={minWidth:1,injectStyles:!0},t.Z=m},921:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,b=n?Symbol.for("react.block"):60121,g=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,O=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case p:case a:case s:case i:case d:return e;default:switch(e=e&&e.$$typeof){case u:case f:case v:case h:case l:return e;default:return t}}case o:return t}}}function S(e){return w(e)===p}t.AsyncMode=c,t.ConcurrentMode=p,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=a,t.Lazy=v,t.Memo=h,t.Portal=o,t.Profiler=s,t.StrictMode=i,t.Suspense=d,t.isAsyncMode=function(e){return S(e)||w(e)===c},t.isConcurrentMode=S,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===v},t.isMemo=function(e){return w(e)===h},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===i},t.isSuspense=function(e){return w(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===p||e===s||e===i||e===d||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===h||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===g||e.$$typeof===y||e.$$typeof===O||e.$$typeof===b)},t.typeOf=w},864:(e,t,n)=>{"use strict";e.exports=n(921)},804:e=>{"use strict";e.exports=React}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(e){if(null==e)throw new TypeError("Cannot destructure undefined")}var r=n(804),o=n.n(r);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),s=Math.abs,l=String.fromCharCode;function u(e){return e.trim()}function c(e,t,n){return e.replace(t,n)}function p(e,t){return e.indexOf(t)}function f(e,t){return 0|e.charCodeAt(t)}function d(e,t,n){return e.slice(t,n)}function m(e){return e.length}function h(e){return e.length}function v(e,t){return t.push(e),e}var b=1,g=1,y=0,O=0,w=0,S="";function x(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:b,column:g,length:i,return:""}}function k(e,t,n){return x(e,t.root,t.parent,n,t.props,t.children,0)}function C(){return w=O>0?f(S,--O):0,g--,10===w&&(g=1,b--),w}function E(){return w=O<y?f(S,O++):0,g++,10===w&&(g=1,b++),w}function P(){return f(S,O)}function M(){return O}function I(e,t){return d(S,e,t)}function R(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function V(e){return b=g=1,y=m(S=e),O=0,[]}function D(e){return S="",e}function T(e){return u(I(O-1,A(91===e?e+2:40===e?e+1:e)))}function _(e){for(;(w=P())&&w<33;)E();return R(e)>2||R(w)>3?"":" "}function L(e,t){for(;--t&&E()&&!(w<48||w>102||w>57&&w<65||w>70&&w<97););return I(e,M()+(t<6&&32==P()&&32==E()))}function A(e){for(;E();)switch(w){case e:return O;case 34:case 39:return A(34===e||39===e?e:w);case 40:41===e&&A(e);break;case 92:E()}return O}function F(e,t){for(;E()&&e+w!==57&&(e+w!==84||47!==P()););return"/*"+I(t,O-1)+"*"+l(47===e?e:E())}function N(e){for(;!R(P());)E();return I(e,O)}var j="-ms-",H="-moz-",z="-webkit-",$="comm",U="rule",B="decl";function W(e,t){for(var n="",r=h(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function G(e,t,n,r){switch(e.type){case"@import":case B:return e.return=e.return||e.value;case $:return"";case U:e.value=e.props.join(",")}return m(n=W(e.children,r))?e.return=e.value+"{"+n+"}":""}function Y(e,t){switch(function(e,t){return(((t<<2^f(e,0))<<2^f(e,1))<<2^f(e,2))<<2^f(e,3)}(e,t)){case 5103:return z+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return z+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return z+e+H+e+j+e+e;case 6828:case 4268:return z+e+j+e+e;case 6165:return z+e+j+"flex-"+e+e;case 5187:return z+e+c(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return z+e+j+"flex-item-"+c(e,/flex-|-self/,"")+e;case 4675:return z+e+j+"flex-line-pack"+c(e,/align-content|flex-|-self/,"")+e;case 5548:return z+e+j+c(e,"shrink","negative")+e;case 5292:return z+e+j+c(e,"basis","preferred-size")+e;case 6060:return z+"box-"+c(e,"-grow","")+z+e+j+c(e,"grow","positive")+e;case 4554:return z+c(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return c(c(c(e,/(zoom-|grab)/,z+"$1"),/(image-set)/,z+"$1"),e,"")+e;case 5495:case 3959:return c(e,/(image-set\([^]*)/,z+"$1$`$1");case 4968:return c(c(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+z+e+e;case 4095:case 3583:case 4068:case 2532:return c(e,/(.+)-inline(.+)/,z+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(m(e)-1-t>6)switch(f(e,t+1)){case 109:if(45!==f(e,t+4))break;case 102:return c(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+H+(108==f(e,t+3)?"$3":"$2-$3"))+e;case 115:return~p(e,"stretch")?Y(c(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==f(e,t+1))break;case 6444:switch(f(e,m(e)-3-(~p(e,"!important")&&10))){case 107:return c(e,":",":"+z)+e;case 101:return c(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+z+(45===f(e,14)?"inline-":"")+"box$3$1"+z+"$2$3$1"+j+"$2box$3")+e}break;case 5936:switch(f(e,t+11)){case 114:return z+e+j+c(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return z+e+j+c(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return z+e+j+c(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return z+e+j+e+e}return e}function X(e){return D(q("",null,null,null,[""],e=V(e),0,[0],e))}function q(e,t,n,r,o,a,i,s,u){for(var p=0,f=0,d=i,h=0,b=0,g=0,y=1,O=1,w=1,S=0,x="",k=o,I=a,R=r,V=x;O;)switch(g=S,S=E()){case 34:case 39:case 91:case 40:V+=T(S);break;case 9:case 10:case 13:case 32:V+=_(g);break;case 92:V+=L(M()-1,7);continue;case 47:switch(P()){case 42:case 47:v(Z(F(E(),M()),t,n),u);break;default:V+="/"}break;case 123*y:s[p++]=m(V)*w;case 125*y:case 59:case 0:switch(S){case 0:case 125:O=0;case 59+f:b>0&&m(V)-d&&v(b>32?J(V+";",r,n,d-1):J(c(V," ","")+";",r,n,d-2),u);break;case 59:V+=";";default:if(v(R=K(V,t,n,p,f,o,s,x,k=[],I=[],d),a),123===S)if(0===f)q(V,t,R,R,k,a,d,s,I);else switch(h){case 100:case 109:case 115:q(e,R,R,r&&v(K(e,R,R,0,0,o,s,x,o,k=[],d),I),o,I,d,s,r?k:I);break;default:q(V,R,R,R,[""],I,d,s,I)}}p=f=b=0,y=w=1,x=V="",d=i;break;case 58:d=1+m(V),b=g;default:if(y<1)if(123==S)--y;else if(125==S&&0==y++&&125==C())continue;switch(V+=l(S),S*y){case 38:w=f>0?1:(V+="\f",-1);break;case 44:s[p++]=(m(V)-1)*w,w=1;break;case 64:45===P()&&(V+=T(E())),h=P(),f=m(x=V+=N(M())),S++;break;case 45:45===g&&2==m(V)&&(y=0)}}return a}function K(e,t,n,r,o,a,i,l,p,f,m){for(var v=o-1,b=0===o?a:[""],g=h(b),y=0,O=0,w=0;y<r;++y)for(var S=0,k=d(e,v+1,v=s(O=i[y])),C=e;S<g;++S)(C=u(O>0?b[S]+" "+k:c(k,/&\f/g,b[S])))&&(p[w++]=C);return x(e,t,n,0===o?U:l,p,f,m)}function Z(e,t,n){return x(e,t,n,$,l(w),d(e,2,-2),0)}function J(e,t,n,r){return x(e,t,n,B,d(e,0,r),d(e,r+1,-1),r)}var Q=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&e.length){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Q.get(n))&&!r){Q.set(e,!0);for(var o=[],a=function(e,t){return D(function(e,t){var n=-1,r=44;do{switch(R(r)){case 0:38===r&&12===P()&&(t[n]=1),e[n]+=N(O-1);break;case 2:e[n]+=T(r);break;case 4:if(44===r){e[++n]=58===P()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=l(r)}}while(r=E());return e}(V(e),t))}(t,o),i=n.props,s=0,u=0;s<a.length;s++)for(var c=0;c<i.length;c++,u++)e.props[u]=o[s]?a[s].replace(/&\f/g,i[c]):i[c]+" "+a[s]}}},te=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},ne=[function(e,t,n,r){if(!e.return)switch(e.type){case B:e.return=Y(e.value,e.length);break;case"@keyframes":return W([k(c(e.value,"@","@"+z),e,"")],r);case U:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return W([k(c(t,/:(read-\w+)/,":-moz-$1"),e,"")],r);case"::placeholder":return W([k(c(t,/:(plac\w+)/,":-webkit-input-$1"),e,""),k(c(t,/:(plac\w+)/,":-moz-$1"),e,""),k(c(t,/:(plac\w+)/,j+"input-$1"),e,"")],r)}return""}))}}];const re=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){document.head.appendChild(e),e.setAttribute("data-s","")}))}var r,o,a=e.stylisPlugins||ne,s={},l=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll("style[data-emotion]"),(function(e){var n=e.getAttribute("data-emotion").split(" ");if(n[0]===t){for(var r=1;r<n.length;r++)s[n[r]]=!0;l.push(e)}}));var u,c,p,f,d=[G,(f=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&f(e)})],m=(c=[ee,te].concat(a,d),p=h(c),function(e,t,n,r){for(var o="",a=0;a<p;a++)o+=c[a](e,t,n,r)||"";return o});o=function(e,t,n,r){u=n,W(X(e?e+"{"+t.styles+"}":t.styles),m),r&&(v.inserted[t.name]=!0)};var v={key:t,sheet:new i({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend}),nonce:e.nonce,inserted:s,registered:{},insert:o};return v.sheet.hydrate(l),v};function oe(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var ae=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};const ie=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},se={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var le=/[A-Z]|^ms/g,ue=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ce=function(e){return 45===e.charCodeAt(1)},pe=function(e){return null!=e&&"boolean"!=typeof e},fe=function(e){var t=Object.create(null);return function(e){return void 0===t[e]&&(t[e]=ce(n=e)?n:n.replace(le,"-$&").toLowerCase()),t[e];var n}}(),de=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(ue,(function(e,t,n){return he={name:t,styles:n,next:he},t}))}return 1===se[e]||ce(e)||"number"!=typeof t||0===t?t:t+"px"};function me(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return he={name:n.name,styles:n.styles,next:he},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)he={name:r.name,styles:r.styles,next:he},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=me(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":pe(i)&&(r+=fe(a)+":"+de(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=me(e,t,i);switch(a){case"animation":case"animationName":r+=fe(a)+":"+s+";";break;default:r+=a+"{"+s+"}"}}else for(var l=0;l<i.length;l++)pe(i[l])&&(r+=fe(a)+":"+de(a,i[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=he,a=n(e);return he=o,me(e,t,a)}}if(null==t)return n;var i=t[n];return void 0!==i?i:n}var he,ve=/label:\s*([^\s;\n{]+)\s*(;|$)/g,be=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";he=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=me(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=me(n,t,e[i]),r&&(o+=a[i]);ve.lastIndex=0;for(var s,l="";null!==(s=ve.exec(o));)l+="-"+s[1];return{name:ie(o)+l,styles:o,next:he}},ge=Object.prototype.hasOwnProperty,ye=(0,r.createContext)("undefined"!=typeof HTMLElement?re({key:"css"}):null),Oe=(ye.Provider,function(e){return(0,r.forwardRef)((function(t,n){var o=(0,r.useContext)(ye);return e(t,o,n)}))}),we=(0,r.createContext)({}),Se="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",xe=function(e,t){var n={};for(var r in t)ge.call(t,r)&&(n[r]=t[r]);return n[Se]=e,n},ke=Oe((function(e,t,n){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var a=e[Se],i=[o],s="";"string"==typeof e.className?s=oe(t.registered,i,e.className):null!=e.className&&(s=e.className+" ");var l=be(i,void 0,"function"==typeof o||Array.isArray(o)?(0,r.useContext)(we):void 0);ae(t,l,"string"==typeof a),s+=t.key+"-"+l.name;var u={};for(var c in e)ge.call(e,c)&&"css"!==c&&c!==Se&&(u[c]=e[c]);return u.ref=n,u.className=s,(0,r.createElement)(a,u)}));n(679);var Ce=function(e,t){var n=arguments;if(null==t||!ge.call(t,"css"))return r.createElement.apply(void 0,n);var o=n.length,a=new Array(o);a[0]=ke,a[1]=xe(e,t);for(var i=2;i<o;i++)a[i]=n[i];return r.createElement.apply(null,a)};function Ee(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return be(t)}var Pe=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var a=t[r];if(null!=a){var i=void 0;switch(typeof a){case"boolean":break;case"object":if(Array.isArray(a))i=e(a);else for(var s in i="",a)a[s]&&s&&(i&&(i+=" "),i+=s);break;default:i=a}i&&(o&&(o+=" "),o+=i)}}return o};function Me(e,t,n){var r=[],o=oe(e,r,n);return r.length<2?n:o+t(r)}var Ie=Oe((function(e,t){var n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=be(n,t.registered);return ae(t,o,!1),t.key+"-"+o.name},o={css:n,cx:function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return Me(t.registered,n,Pe(r))},theme:(0,r.useContext)(we)};return e.children(o)}));function Re(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ve(e){return(Ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var De=n(639);function Te(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Le(e,t,n){return t&&_e(e.prototype,t),n&&_e(e,n),e}function Ae(e,t){return(Ae=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Fe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ae(e,t)}const Ne=ReactDOM;function je(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function He(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?He(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):He(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $e(e){return($e=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ue(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Be(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=$e(e);if(t){var o=$e(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ue(this,n)}}var We=function(){};function Ge(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Ye(e,t,n){var r=[n];if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&r.push("".concat(Ge(e,o)));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Xe=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===Ve(e)&&null!==e?[e]:[]},qe=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,ze({},Re(e,["className","clearValue","cx","getStyles","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"]))};function Ke(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Ze(e){return Ke(e)?window.pageYOffset:e.scrollTop}function Je(e,t){Ke(e)?window.scrollTo(0,t):e.scrollTop=t}function Qe(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function et(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:We,o=Ze(e),a=t-o,i=10,s=0;function l(){var t=Qe(s+=i,o,a,n);Je(e,t),s<n?window.requestAnimationFrame(l):r(e)}l()}function tt(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var nt=!1,rt={get passive(){return nt=!0}},ot="undefined"!=typeof window?window:{};ot.addEventListener&&ot.removeEventListener&&(ot.addEventListener("p",We,rt),ot.removeEventListener("p",We,!1));var at=nt;function it(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,a=e.shouldScroll,i=e.isFixedPosition,s=e.theme.spacing,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/,o=document.documentElement;if("fixed"===t.position)return o;for(var a=e;a=a.parentElement;)if(t=getComputedStyle(a),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return a;return o}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c=l.getBoundingClientRect().height,p=n.getBoundingClientRect(),f=p.bottom,d=p.height,m=p.top,h=n.offsetParent.getBoundingClientRect().top,v=window.innerHeight,b=Ze(l),g=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),O=h-y,w=v-m,S=O+b,x=c-b-m,k=f-v+b+g,C=b+m-y,E=160;switch(o){case"auto":case"bottom":if(w>=d)return{placement:"bottom",maxHeight:t};if(x>=d&&!i)return a&&et(l,k,E),{placement:"bottom",maxHeight:t};if(!i&&x>=r||i&&w>=r)return a&&et(l,k,E),{placement:"bottom",maxHeight:i?w-g:x-g};if("auto"===o||i){var P=t,M=i?O:S;return M>=r&&(P=Math.min(M-g-s.controlHeight,t)),{placement:"top",maxHeight:P}}if("bottom"===o)return a&&Je(l,k),{placement:"bottom",maxHeight:t};break;case"top":if(O>=d)return{placement:"top",maxHeight:t};if(S>=d&&!i)return a&&et(l,C,E),{placement:"top",maxHeight:t};if(!i&&S>=r||i&&O>=r){var I=t;return(!i&&S>=r||i&&O>=r)&&(I=i?O-y:S-y),a&&et(l,C,E),{placement:"top",maxHeight:I}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}var st=function(e){return"auto"===e?"bottom":e},lt=(0,r.createContext)({getPortalPlacement:null}),ut=function(e){Fe(n,e);var t=Be(n);function n(){var e;Te(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).state={maxHeight:e.props.maxMenuHeight,placement:null},e.getPlacement=function(t){var n=e.props,r=n.minMenuHeight,o=n.maxMenuHeight,a=n.menuPlacement,i=n.menuPosition,s=n.menuShouldScrollIntoView,l=n.theme;if(t){var u="fixed"===i,c=it({maxHeight:o,menuEl:t,minHeight:r,placement:a,shouldScroll:s&&!u,isFixedPosition:u,theme:l}),p=e.context.getPortalPlacement;p&&p(c),e.setState(c)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,n=e.state.placement||st(t);return ze(ze({},e.props),{},{placement:n,maxHeight:e.state.maxHeight})},e}return Le(n,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),n}(r.Component);ut.contextType=lt;var ct=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},pt=ct,ft=ct,dt=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return Ce("div",a({css:o("noOptionsMessage",e),className:r({"menu-notice":!0,"menu-notice--no-options":!0},n)},i),t)};dt.defaultProps={children:"No options"};var mt=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return Ce("div",a({css:o("loadingMessage",e),className:r({"menu-notice":!0,"menu-notice--loading":!0},n)},i),t)};mt.defaultProps={children:"Loading..."};var ht,vt,bt,gt=function(e){Fe(n,e);var t=Be(n);function n(){var e;Te(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).state={placement:null},e.getPortalPlacement=function(t){var n=t.placement;n!==st(e.props.menuPlacement)&&e.setState({placement:n})},e}return Le(n,[{key:"render",value:function(){var e=this.props,t=e.appendTo,n=e.children,r=e.className,o=e.controlElement,i=e.cx,s=e.innerProps,l=e.menuPlacement,u=e.menuPosition,c=e.getStyles,p="fixed"===u;if(!t&&!p||!o)return null;var f=this.state.placement||st(l),d=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(o),m=p?0:window.pageYOffset,h=d[f]+m,v=Ce("div",a({css:c("menuPortal",{offset:h,position:u,rect:d}),className:i({"menu-portal":!0},r)},s),n);return Ce(lt.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},t?(0,Ne.createPortal)(v,t):v)}}]),n}(r.Component),yt={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Ot=function(e){var t=e.size,n=Re(e,["size"]);return Ce("svg",a({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:yt},n))},wt=function(e){return Ce(Ot,a({size:20},e),Ce("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},St=function(e){return Ce(Ot,a({size:20},e),Ce("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},xt=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorContainer",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?o.neutral80:o.neutral40}}},kt=xt,Ct=xt,Et=function(){var e=Ee.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(ht||(vt=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],bt||(bt=vt.slice(0)),ht=Object.freeze(Object.defineProperties(vt,{raw:{value:Object.freeze(bt)}})))),Pt=function(e){var t=e.delay,n=e.offset;return Ce("span",{css:Ee({animation:"".concat(Et," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Mt=function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps,i=e.isRtl;return Ce("div",a({css:r("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)},o),Ce(Pt,{delay:0,offset:i}),Ce(Pt,{delay:160,offset:!0}),Ce(Pt,{delay:320,offset:!i}))};Mt.defaultProps={size:4};var It=function(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}},Rt=function(e){var t=e.children,n=e.innerProps;return Ce("div",n,t)},Vt=Rt,Dt=Rt,Tt=function(e){var t=e.children,n=e.className,r=e.components,o=e.cx,a=e.data,i=e.getStyles,s=e.innerProps,l=e.isDisabled,u=e.removeProps,c=e.selectProps,p=r.Container,f=r.Label,d=r.Remove;return Ce(Ie,null,(function(r){var m=r.css,h=r.cx;return Ce(p,{data:a,innerProps:ze({className:h(m(i("multiValue",e)),o({"multi-value":!0,"multi-value--is-disabled":l},n))},s),selectProps:c},Ce(f,{data:a,innerProps:{className:h(m(i("multiValueLabel",e)),o({"multi-value__label":!0},n))},selectProps:c},t),Ce(d,{data:a,innerProps:ze({className:h(m(i("multiValueRemove",e)),o({"multi-value__remove":!0},n))},u),selectProps:c}))}))};Tt.defaultProps={cropWithEllipsis:!0};var _t={ClearIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return Ce("div",a({css:o("clearIndicator",e),className:r({indicator:!0,"clear-indicator":!0},n)},i),t||Ce(wt,null))},Control:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.className,i=e.isDisabled,s=e.isFocused,l=e.innerRef,u=e.innerProps,c=e.menuIsOpen;return Ce("div",a({ref:l,css:r("control",e),className:n({control:!0,"control--is-disabled":i,"control--is-focused":s,"control--menu-is-open":c},o)},u),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return Ce("div",a({css:o("dropdownIndicator",e),className:r({indicator:!0,"dropdown-indicator":!0},n)},i),t||Ce(St,null))},DownChevron:St,CrossIcon:wt,Group:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.Heading,s=e.headingProps,l=e.innerProps,u=e.label,c=e.theme,p=e.selectProps;return Ce("div",a({css:o("group",e),className:r({group:!0},n)},l),Ce(i,a({},s,{selectProps:p,theme:c,getStyles:o,cx:r}),u),Ce("div",null,t))},GroupHeading:function(e){var t=e.getStyles,n=e.cx,r=e.className,o=qe(e);o.data;var i=Re(o,["data"]);return Ce("div",a({css:t("groupHeading",e),className:n({"group-heading":!0},r)},i))},IndicatorsContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.innerProps,i=e.getStyles;return Ce("div",a({css:i("indicatorsContainer",e),className:r({indicators:!0},n)},o),t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps;return Ce("span",a({},o,{css:r("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=qe(e),i=o.innerRef,s=o.isDisabled,l=o.isHidden,u=Re(o,["innerRef","isDisabled","isHidden"]);return Ce("div",{css:r("input",e)},Ce(De.Z,a({className:n({input:!0},t),inputRef:i,inputStyle:It(l),disabled:s},u)))},LoadingIndicator:Mt,Menu:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerRef,s=e.innerProps;return Ce("div",a({css:o("menu",e),className:r({menu:!0},n),ref:i},s),t)},MenuList:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps,s=e.innerRef,l=e.isMulti;return Ce("div",a({css:o("menuList",e),className:r({"menu-list":!0,"menu-list--is-multi":l},n),ref:s},i),t)},MenuPortal:gt,LoadingMessage:mt,NoOptionsMessage:dt,MultiValue:Tt,MultiValueContainer:Vt,MultiValueLabel:Dt,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Ce("div",n,t||Ce(wt,{size:14}))},Option:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.isDisabled,s=e.isFocused,l=e.isSelected,u=e.innerRef,c=e.innerProps;return Ce("div",a({css:o("option",e),className:r({option:!0,"option--is-disabled":i,"option--is-focused":s,"option--is-selected":l},n),ref:u},c),t)},Placeholder:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return Ce("div",a({css:o("placeholder",e),className:r({placeholder:!0},n)},i),t)},SelectContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps,s=e.isDisabled,l=e.isRtl;return Ce("div",a({css:o("container",e),className:r({"--is-disabled":s,"--is-rtl":l},n)},i),t)},SingleValue:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.isDisabled,s=e.innerProps;return Ce("div",a({css:o("singleValue",e),className:r({"single-value":!0,"single-value--is-disabled":i},n)},s),t)},ValueContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.innerProps,i=e.isMulti,s=e.getStyles,l=e.hasValue;return Ce("div",a({css:s("valueContainer",e),className:r({"value-container":!0,"value-container--is-multi":i,"value-container--has-value":l},n)},o),t)}};function Lt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function At(e,t){if(e){if("string"==typeof e)return Lt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Lt(e,t):void 0}}function Ft(e){return function(e){if(Array.isArray(e))return Lt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||At(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Nt(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}for(var jt={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},Ht=function(e){return Ce("span",a({css:jt},e))},zt={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.isDisabled,o=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(r?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"select-option":return"option ".concat(r,o?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=void 0===n?{}:n,o=e.options,a=e.label,i=void 0===a?"":a,s=e.selectValue,l=e.isDisabled,u=e.isSelected,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&s)return"value ".concat(i," focused, ").concat(c(s,r),".");if("menu"===t){var p=l?" disabled":"",f="".concat(u?"selected":"focused").concat(p);return"option ".concat(i," ").concat(f,", ").concat(c(o,r),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},$t=function(e){var t=e.ariaSelection,n=e.focusedOption,a=e.focusedValue,i=e.focusableOptions,s=e.isFocused,l=e.selectValue,u=e.selectProps,c=u.ariaLiveMessages,p=u.getOptionLabel,f=u.inputValue,d=u.isMulti,m=u.isOptionDisabled,h=u.isSearchable,v=u.menuIsOpen,b=u.options,g=u.screenReaderStatus,y=u.tabSelectsValue,O=u["aria-label"],w=u["aria-live"],S=(0,r.useMemo)((function(){return ze(ze({},zt),c||{})}),[c]),x=(0,r.useMemo)((function(){var e,n="";if(t&&S.onChange){var r=t.option,o=t.removedValue,a=t.value,i=o||r||(e=a,Array.isArray(e)?null:e),s=ze({isDisabled:i&&m(i),label:i?p(i):""},t);n=S.onChange(s)}return n}),[t,m,p,S]),k=(0,r.useMemo)((function(){var e="",t=n||a,r=!!(n&&l&&l.includes(n));if(t&&S.onFocus){var o={focused:t,label:p(t),isDisabled:m(t),isSelected:r,options:b,context:t===n?"menu":"value",selectValue:l};e=S.onFocus(o)}return e}),[n,a,p,m,S,b,l]),C=(0,r.useMemo)((function(){var e="";if(v&&b.length&&S.onFilter){var t=g({count:i.length});e=S.onFilter({inputValue:f,resultsMessage:t})}return e}),[i,f,v,S,b,g]),E=(0,r.useMemo)((function(){var e="";if(S.guidance){var t=a?"value":v?"menu":"input";e=S.guidance({"aria-label":O,context:t,isDisabled:n&&m(n),isMulti:d,isSearchable:h,tabSelectsValue:y})}return e}),[O,n,a,d,m,h,v,S,y]),P="".concat(k," ").concat(C," ").concat(E);return Ce(Ht,{"aria-live":w,"aria-atomic":"false","aria-relevant":"additions text"},s&&Ce(o().Fragment,null,Ce("span",{id:"aria-selection"},x),Ce("span",{id:"aria-context"},P)))},Ut=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Bt=new RegExp("["+Ut.map((function(e){return e.letters})).join("")+"]","g"),Wt={},Gt=0;Gt<Ut.length;Gt++)for(var Yt=Ut[Gt],Xt=0;Xt<Yt.letters.length;Xt++)Wt[Yt.letters[Xt]]=Yt.base;var qt=function(e){return e.replace(Bt,(function(e){return Wt[e]}))},Kt=function(e,t){var n;void 0===t&&(t=Nt);var r,o=[],a=!1;return function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return a&&n===this&&t(i,o)||(r=e.apply(this,i),a=!0,n=this,o=i),r}}(qt),Zt=function(e){return e.replace(/^\s+|\s+$/g,"")},Jt=function(e){return"".concat(e.label," ").concat(e.value)};function Qt(e){e.in,e.out,e.onExited,e.appear,e.enter,e.exit;var t=e.innerRef;e.emotion;var n=Re(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]);return Ce("input",a({ref:t},n,{css:Ee({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"","")}))}var en=["boxSizing","height","overflow","paddingRight","position"],tn={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function nn(e){e.preventDefault()}function rn(e){e.stopPropagation()}function on(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function an(){return"ontouchstart"in window||navigator.maxTouchPoints}var sn=!("undefined"==typeof window||!window.document||!window.document.createElement),ln=0,un={capture:!1,passive:!1},cn=function(){return document.activeElement&&document.activeElement.blur()},pn={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function fn(e){var t=e.children,n=e.lockEnabled,a=e.captureEnabled,i=function(e){var t=e.isEnabled,n=e.onBottomArrive,o=e.onBottomLeave,a=e.onTopArrive,i=e.onTopLeave,s=(0,r.useRef)(!1),l=(0,r.useRef)(!1),u=(0,r.useRef)(0),c=(0,r.useRef)(null),p=(0,r.useCallback)((function(e,t){if(null!==c.current){var r=c.current,u=r.scrollTop,p=r.scrollHeight,f=r.clientHeight,d=c.current,m=t>0,h=p-f-u,v=!1;h>t&&s.current&&(o&&o(e),s.current=!1),m&&l.current&&(i&&i(e),l.current=!1),m&&t>h?(n&&!s.current&&n(e),d.scrollTop=p,v=!0,s.current=!0):!m&&-t>u&&(a&&!l.current&&a(e),d.scrollTop=0,v=!0,l.current=!0),v&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[]),f=(0,r.useCallback)((function(e){p(e,e.deltaY)}),[p]),d=(0,r.useCallback)((function(e){u.current=e.changedTouches[0].clientY}),[]),m=(0,r.useCallback)((function(e){var t=u.current-e.changedTouches[0].clientY;p(e,t)}),[p]),h=(0,r.useCallback)((function(e){if(e){var t=!!at&&{passive:!1};"function"==typeof e.addEventListener&&e.addEventListener("wheel",f,t),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",d,t),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",m,t)}}),[m,d,f]),v=(0,r.useCallback)((function(e){e&&("function"==typeof e.removeEventListener&&e.removeEventListener("wheel",f,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",d,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",m,!1))}),[m,d,f]);return(0,r.useEffect)((function(){if(t){var e=c.current;return h(e),function(){v(e)}}}),[t,h,v]),function(e){c.current=e}}({isEnabled:void 0===a||a,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),s=function(e){var t=e.isEnabled,n=e.accountForScrollbars,o=void 0===n||n,a=(0,r.useRef)({}),i=(0,r.useRef)(null),s=(0,r.useCallback)((function(e){if(sn){var t=document.body,n=t&&t.style;if(o&&en.forEach((function(e){var t=n&&n[e];a.current[e]=t})),o&&ln<1){var r=parseInt(a.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,s=window.innerWidth-i+r||0;Object.keys(tn).forEach((function(e){var t=tn[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&an()&&(t.addEventListener("touchmove",nn,un),e&&(e.addEventListener("touchstart",on,un),e.addEventListener("touchmove",rn,un))),ln+=1}}),[]),l=(0,r.useCallback)((function(e){if(sn){var t=document.body,n=t&&t.style;ln=Math.max(ln-1,0),o&&ln<1&&en.forEach((function(e){var t=a.current[e];n&&(n[e]=t)})),t&&an()&&(t.removeEventListener("touchmove",nn,un),e&&(e.removeEventListener("touchstart",on,un),e.removeEventListener("touchmove",rn,un)))}}),[]);return(0,r.useEffect)((function(){if(t){var e=i.current;return s(e),function(){l(e)}}}),[t,s,l]),function(e){i.current=e}}({isEnabled:n});return Ce(o().Fragment,null,n&&Ce("div",{onClick:cn,css:pn}),t((function(e){i(e),s(e)})))}var dn={clearIndicator:Ct,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,o=r.colors,a=r.borderRadius,i=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:n?o.primary:o.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(o.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?o.primary:o.neutral30}}},dropdownIndicator:kt,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:o.neutral80}},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,o=r.colors,a=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*a,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:ft,menu:function(t){var n,r=t.placement,o=t.theme,a=o.borderRadius,i=o.spacing,s=o.colors;return e(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),e(n,"backgroundColor",s.neutral0),e(n,"borderRadius",a),e(n,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),e(n,"marginBottom",i.menuGutter),e(n,"marginTop",i.menuGutter),e(n,"position","absolute"),e(n,"width","100%"),e(n,"zIndex",1),n},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,r=t.colors,o=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused&&o.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},noOptionsMessage:pt,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,o=e.theme,a=o.spacing,i=o.colors;return{label:"option",backgroundColor:r?i.primary:n?i.primary25:"transparent",color:t?i.neutral20:r?i.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!t&&(r?i.primary:i.primary50)}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{label:"singleValue",color:t?o.neutral40:o.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"calc(100% - ".concat(2*r.baseUnit,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},valueContainer:function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}},mn={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},hn={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:tt(),captureMenuScroll:!tt(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){var n=ze({ignoreCase:!0,ignoreAccents:!0,stringify:Jt,trim:!0,matchFrom:"any"},undefined),r=n.ignoreCase,o=n.ignoreAccents,a=n.stringify,i=n.trim,s=n.matchFrom,l=i?Zt(t):t,u=i?Zt(a(e)):a(e);return r&&(l=l.toLowerCase(),u=u.toLowerCase()),o&&(l=Kt(l),u=qt(u)),"start"===s?u.substr(0,l.length)===l:u.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0};function vn(e,t,n,r){return{type:"option",data:t,isDisabled:Sn(e,t,n),isSelected:xn(e,t,n),label:On(e,t),value:wn(e,t),index:r}}function bn(e,t){return e.options.map((function(n,r){if(n.options){var o=n.options.map((function(n,r){return vn(e,n,t,r)})).filter((function(t){return yn(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var a=vn(e,n,t,r);return yn(e,a)?a:void 0})).filter((function(e){return!!e}))}function gn(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Ft(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function yn(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,a=t.isSelected,i=t.label,s=t.value;return(!Cn(e)||!a)&&kn(e,{label:i,value:s,data:o},r)}var On=function(e,t){return e.getOptionLabel(t)},wn=function(e,t){return e.getOptionValue(t)};function Sn(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function xn(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=wn(e,t);return n.some((function(t){return wn(e,t)===r}))}function kn(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Cn=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},En=1,Pn=function(e){Fe(n,e);var t=Be(n);function n(e){var r;return Te(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.instancePrefix="",r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,a=n.name;t.name=a,r.ariaOnChange(e,t),o(e,t)},r.setValue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",n=arguments.length>2?arguments[2]:void 0,o=r.props,a=o.closeMenuOnSelect,i=o.isMulti;r.onInputChange("",{action:"set-value"}),a&&(r.setState({inputIsHiddenAfterUpdate:!i}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,a=t.name,i=r.state.selectValue,s=o&&r.isOptionSelected(e,i),l=r.isOptionDisabled(e,i);if(s){var u=r.getOptionValue(e);r.setValue(i.filter((function(e){return r.getOptionValue(e)!==u})),"deselect-option",e)}else{if(l)return void r.ariaOnChange(e,{action:"select-option",name:a});o?r.setValue([].concat(Ft(i),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,o=r.getOptionValue(e),a=n.filter((function(e){return r.getOptionValue(e)!==o})),i=t?a:a[0]||null;r.onChange(i,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(r.props.isMulti?[]:null,{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],o=t.slice(0,t.length-1),a=e?o:o[0]||null;r.onChange(a,{action:"pop-value",removedValue:n})},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ye.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return On(r.props,e)},r.getOptionValue=function(e){return wn(r.props,e)},r.getStyles=function(e,t){var n=dn[e](t);n.boxSizing="border-box";var o=r.props.styles[e];return o?o(n,t):n},r.getElementId=function(e){return"".concat(r.instancePrefix,"-").concat(e)},r.getComponents=function(){return e=r.props,ze(ze({},_t),e.components);var e},r.buildCategorizedOptions=function(){return bn(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return gn(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:ze({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault(),e.stopPropagation()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.stopPropagation(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout((function(){return r.focusInput()})))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Ke(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var o=Math.abs(n.clientX-r.initialTouchX),a=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||a>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(t,{action:"input-change"}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur"}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){r.blockOptionHover||r.state.focusedOption===e||r.setState({focusedOption:e})},r.shouldHideSelectedOptions=function(){return Cn(r.props)},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,a=t.escapeClearsValue,i=t.inputValue,s=t.isClearable,l=t.isDisabled,u=t.menuIsOpen,c=t.onKeyDown,p=t.tabSelectsValue,f=t.openMenuOnFocus,d=r.state,m=d.focusedOption,h=d.focusedValue,v=d.selectValue;if(!(l||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||i)return;r.focusValue("previous");break;case"ArrowRight":if(!n||i)return;r.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(h)r.removeValue(h);else{if(!o)return;n?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!u||!p||!m||f&&r.isOptionSelected(m,v))return;r.selectOption(m);break;case"Enter":if(229===e.keyCode)break;if(u){if(!m)return;if(r.isComposing)return;r.selectOption(m);break}return;case"Escape":u?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close"}),r.onMenuClose()):s&&a&&r.clearValue();break;case" ":if(i)return;if(!u){r.openMenu("first");break}if(!m)return;r.selectOption(m);break;case"ArrowUp":u?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":u?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!u)return;r.focusOption("pageup");break;case"PageDown":if(!u)return;r.focusOption("pagedown");break;case"Home":if(!u)return;r.focusOption("first");break;case"End":if(!u)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.instancePrefix="react-select-"+(r.props.instanceId||++En),r.state.selectValue=Xe(e.value),r}return Le(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"componentDidUpdate",value:function(e){var t,n,r,o,a,i=this.props,s=i.isDisabled,l=i.menuIsOpen,u=this.state.isFocused;(u&&!s&&e.isDisabled||u&&l&&!e.menuIsOpen)&&this.focusInput(),u&&s&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,r=t.getBoundingClientRect(),o=n.getBoundingClientRect(),a=n.offsetHeight/3,o.bottom+a>r.bottom?Je(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+a,t.scrollHeight)):o.top-a<r.top&&Je(t,Math.max(n.offsetTop-a,0)),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,a=this.buildFocusableOptions(),i="first"===e?0:a.length-1;if(!this.props.isMulti){var s=a.indexOf(r[0]);s>-1&&(i=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:a[i]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var a=n.length-1,i=-1;if(n.length){switch(e){case"previous":i=0===o?0:-1===o?a:o-1;break;case"next":o>-1&&o<a&&(i=o+1)}this.setState({inputIsHidden:-1!==i,focusedValue:n[i]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,a=r.indexOf(n);n||(a=-1),"up"===e?o=a>0?a-1:r.length-1:"down"===e?o=(a+1)%r.length:"pageup"===e?(o=a-t)<0&&(o=0):"pagedown"===e?(o=a+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(mn):ze(ze({},mn),this.props.theme):mn}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getValue,o=this.selectOption,a=this.setValue,i=this.props,s=i.isMulti,l=i.isRtl,u=i.options;return{clearValue:e,cx:t,getStyles:n,getValue:r,hasValue:this.hasValue(),isMulti:s,isRtl:l,options:u,selectOption:o,selectProps:i,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return Sn(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return xn(this.props,e,t)}},{key:"filterOption",value:function(e,t){return kn(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,i=e.inputValue,s=e.tabIndex,l=e.form,u=this.getComponents().Input,c=this.state.inputIsHidden,p=this.commonProps,f=r||this.getElementId("input"),d={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};return n?o().createElement(u,a({},p,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:f,innerRef:this.getInputRef,isDisabled:t,isHidden:c,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:s,form:l,type:"text",value:i},d)):o().createElement(Qt,a({id:f,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:We,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:s,form:l,value:""},d))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,i=t.MultiValueLabel,s=t.MultiValueRemove,l=t.SingleValue,u=t.Placeholder,c=this.commonProps,p=this.props,f=p.controlShouldRenderValue,d=p.isDisabled,m=p.isMulti,h=p.inputValue,v=p.placeholder,b=this.state,g=b.selectValue,y=b.focusedValue,O=b.isFocused;if(!this.hasValue()||!f)return h?null:o().createElement(u,a({},c,{key:"placeholder",isDisabled:d,isFocused:O}),v);if(m)return g.map((function(t,l){var u=t===y;return o().createElement(n,a({},c,{components:{Container:r,Label:i,Remove:s},isFocused:u,isDisabled:d,key:"".concat(e.getOptionValue(t)).concat(l),index:l,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))}));if(h)return null;var w=g[0];return o().createElement(l,a({},c,{data:w,isDisabled:d}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,s=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||i)return null;var l={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return o().createElement(e,a({},t,{innerProps:l,isFocused:s}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,s=this.state.isFocused;return e&&i?o().createElement(e,a({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:s})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,i=this.props.isDisabled,s=this.state.isFocused;return o().createElement(n,a({},r,{isDisabled:i,isFocused:s}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return o().createElement(e,a({},t,{innerProps:i,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,i=t.Menu,s=t.MenuList,l=t.MenuPortal,u=t.LoadingMessage,c=t.NoOptionsMessage,p=t.Option,f=this.commonProps,d=this.state.focusedOption,m=this.props,h=m.captureMenuScroll,v=m.inputValue,b=m.isLoading,g=m.loadingMessage,y=m.minMenuHeight,O=m.maxMenuHeight,w=m.menuIsOpen,S=m.menuPlacement,x=m.menuPosition,k=m.menuPortalTarget,C=m.menuShouldBlockScroll,E=m.menuShouldScrollIntoView,P=m.noOptionsMessage,M=m.onMenuScrollToTop,I=m.onMenuScrollToBottom;if(!w)return null;var R,V=function(t,n){var r=t.type,i=t.data,s=t.isDisabled,l=t.isSelected,u=t.label,c=t.value,m=d===i,h=s?void 0:function(){return e.onOptionHover(i)},v=s?void 0:function(){return e.selectOption(i)},b="".concat(e.getElementId("option"),"-").concat(n),g={id:b,onClick:v,onMouseMove:h,onMouseOver:h,tabIndex:-1};return o().createElement(p,a({},f,{innerProps:g,data:i,isDisabled:s,isSelected:l,key:b,label:u,type:r,value:c,isFocused:m,innerRef:m?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())R=this.getCategorizedOptions().map((function(t){if("group"===t.type){var i=t.data,s=t.options,l=t.index,u="".concat(e.getElementId("group"),"-").concat(l),c="".concat(u,"-heading");return o().createElement(n,a({},f,{key:u,data:i,options:s,Heading:r,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return V(e,"".concat(l,"-").concat(e.index))})))}if("option"===t.type)return V(t,"".concat(t.index))}));else if(b){var D=g({inputValue:v});if(null===D)return null;R=o().createElement(u,f,D)}else{var T=P({inputValue:v});if(null===T)return null;R=o().createElement(c,f,T)}var _={minMenuHeight:y,maxMenuHeight:O,menuPlacement:S,menuPosition:x,menuShouldScrollIntoView:E},L=o().createElement(ut,a({},f,_),(function(t){var n=t.ref,r=t.placerProps,l=r.placement,u=r.maxHeight;return o().createElement(i,a({},f,_,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:b,placement:l}),o().createElement(fn,{captureEnabled:h,onTopArrive:M,onBottomArrive:I,lockEnabled:C},(function(t){return o().createElement(s,a({},f,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:b,maxHeight:u,focusedOption:d}),R)})))}));return k||"fixed"===x?o().createElement(l,a({},f,{appendTo:k,controlElement:this.controlRef,menuPlacement:S,menuPosition:x}),L):L}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,a=t.isMulti,i=t.name,s=this.state.selectValue;if(i&&!r){if(a){if(n){var l=s.map((function(t){return e.getOptionValue(t)})).join(n);return o().createElement("input",{name:i,type:"hidden",value:l})}var u=s.length>0?s.map((function(t,n){return o().createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):o().createElement("input",{name:i,type:"hidden"});return o().createElement("div",null,u)}var c=s[0]?this.getOptionValue(s[0]):"";return o().createElement("input",{name:i,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,s=t.isFocused,l=t.selectValue,u=this.getFocusableOptions();return o().createElement($t,a({},e,{ariaSelection:n,focusedOption:r,focusedValue:i,isFocused:s,selectValue:l,focusableOptions:u}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,i=e.ValueContainer,s=this.props,l=s.className,u=s.id,c=s.isDisabled,p=s.menuIsOpen,f=this.state.isFocused,d=this.commonProps=this.getCommonProps();return o().createElement(r,a({},d,{className:l,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:f}),this.renderLiveRegion(),o().createElement(t,a({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:f,menuIsOpen:p}),o().createElement(i,a({},d,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),o().createElement(n,a({},d,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,a=e.options,i=e.value,s=e.menuIsOpen,l=e.inputValue,u={};if(n&&(i!==n.value||a!==n.options||s!==n.menuIsOpen||l!==n.inputValue)){var c=Xe(i),p=s?function(e,t){return gn(bn(e,t))}(e,c):[],f=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,c):null;u={selectValue:c,focusedOption:function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,p),focusedValue:f,clearFocusValueOnUpdate:!1}}var d=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{};return ze(ze(ze({},u),d),{},{prevProps:e})}}]),n}(r.Component);Pn.defaultProps=hn;var Mn,In,Rn;r.Component;const Vn=(Mn=Pn,Rn=In=function(e){Fe(n,e);var t=Be(n);function n(){var e;Te(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).select=void 0,e.state={inputValue:void 0!==e.props.inputValue?e.props.inputValue:e.props.defaultInputValue,menuIsOpen:void 0!==e.props.menuIsOpen?e.props.menuIsOpen:e.props.defaultMenuIsOpen,value:void 0!==e.props.value?e.props.value:e.props.defaultValue},e.onChange=function(t,n){e.callProp("onChange",t,n),e.setState({value:t})},e.onInputChange=function(t,n){var r=e.callProp("onInputChange",t,n);e.setState({inputValue:void 0!==r?r:t})},e.onMenuOpen=function(){e.callProp("onMenuOpen"),e.setState({menuIsOpen:!0})},e.onMenuClose=function(){e.callProp("onMenuClose"),e.setState({menuIsOpen:!1})},e}return Le(n,[{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"getProp",value:function(e){return void 0!==this.props[e]?this.props[e]:this.state[e]}},{key:"callProp",value:function(e){if("function"==typeof this.props[e]){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(t=this.props)[e].apply(t,r)}}},{key:"render",value:function(){var e=this,t=this.props;t.defaultInputValue,t.defaultMenuIsOpen,t.defaultValue;var n=Re(t,["defaultInputValue","defaultMenuIsOpen","defaultValue"]);return o().createElement(Mn,a({},n,{ref:function(t){e.select=t},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))}}]),n}(r.Component),In.defaultProps={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null},Rn);var Dn=wp.components.CheckboxControl,Tn=function(e){var t=e.help,n=e.disabled,o=e.label,a=e.updateCheckbox,i=e.value;return(0,r.createElement)(Dn,{help:t,disabled:n,label:o,checked:i,onChange:function(e){return a(e)}})};function _n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ln(e,t){return!t||"object"!==Ve(t)&&"function"!=typeof t?_n(e):t}function An(e){return(An=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}const Fn=lodash;function Nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jn(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Nn(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Nn(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var Hn=wp.element,zn=Hn.Component,$n=Hn.RawHTML,Un=Hn.Fragment,Bn=wp.i18n,Wn=Bn.__,Gn=Bn.sprintf,Yn=wp.apiFetch,Xn=(wp.url.addQueryArgs,wp.components),qn=Xn.Placeholder,Kn=Xn.Spinner,Zn=function(e){Fe(i,e);var t,n,o=(t=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=An(t);if(n){var o=An(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return Ln(this,e)});function i(e){var t;return Te(this,i),(t=o.call(this,e)).state={response:null,prevResponse:null},t}return Le(i,[{key:"componentDidMount",value:function(){this.isStillMounted=!0,this.fetch(this.props),this.fetch=(0,Fn.debounce)(this.fetch,500)}},{key:"componentWillUnmount",value:function(){this.isStillMounted=!1}},{key:"componentDidUpdate",value:function(e){(0,Fn.isEqual)(e,this.props)||this.fetch(this.props)}},{key:"fetch",value:function(e){var t=this;if(this.isStillMounted){null!==this.state.response&&this.setState((function(e){return{response:null,prevResponse:e.response}}));var n=e.block,r=e.attributes,o=void 0===r?null:r,a=e.urlQueryArgs,i=void 0===a?{}:a,s=this.currentFetchRequest=Yn({path:"/wp/v2/block-renderer/".concat(n),method:"POST",data:jn(jn({context:"edit"},null!==o?{attributes:o}:{}),i)}).then((function(e){t.isStillMounted&&s===t.currentFetchRequest&&e&&t.setState({response:e.rendered})})).catch((function(e){t.isStillMounted&&s===t.currentFetchRequest&&t.setState({response:{error:!0,errorMsg:e.message}})}));return s}}},{key:"render",value:function(){var e=this.props.spinnerLocation,t=(e.right,e.top,e.unit,this.state.response),n=this.state.prevResponse,o="";null!==n&&(o='<div style="position:relative;"><div style="position:absolute;left:-45px;bottom:50%;"><span class="spinner" style="visibility: visible;></span><span class="components-spinner"></span></div>'.concat(n,"</div>"));var i=this.props,s=i.className,l=i.EmptyResponsePlaceholder,u=i.ErrorResponsePlaceholder;return i.LoadingResponsePlaceholder,""===t?(0,r.createElement)(l,a({response:t},this.props)):t?t.error?(0,r.createElement)(u,a({response:t},this.props)):(0,r.createElement)($n,{key:"html",className:s},t):(0,r.createElement)(Un,null,(0,r.createElement)($n,{key:"html",className:s},o))}}]),i}(zn);function Jn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qn(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Jn(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Jn(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}Zn.defaultProps={spinnerLocation:{right:0,top:10,unit:"px"},EmptyResponsePlaceholder:function(e){var t=e.className;return(0,r.createElement)(qn,{className:t},Wn("Block rendered as empty."))},ErrorResponsePlaceholder:function(e){var t=e.response,n=e.className,o=Gn(Wn("Error loading block: %s"),t.errorMsg);return(0,r.createElement)(qn,{className:n},o)},LoadingResponsePlaceholder:function(e){var t=e.className;return(0,r.createElement)(qn,{className:t},(0,r.createElement)(Kn,null))}};var er=wp.i18n.__,tr=wp.blockEditor.InspectorControls,nr=wp.components,rr=nr.PanelBody,or=nr.PanelRow,ar=nr.TextControl,ir=nr.SelectControl,sr=wp.blocks.registerBlockType;t(wp.element),wp.serverSideRender;var lr=wp.hooks,ur=lr.applyFilters;function cr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}return n}}(e,t)||At(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}lr.addAction,lr.addFilter,sr("wpgoplugins/simple-sitemap-block",{title:"Simple Sitemap",icon:"editor-ul",keywords:[er("Sitemap","simple-sitemap"),er("Single","simple-sitemap"),er("HTML Sitemap","simple-sitemap")],category:"simple-sitemap",example:{attributes:{num_posts:20}},edit:function(e){var t=e.attributes,n=t.show_excerpt,o=t.show_label,a=t.links,i=t.page_depth,s=(t.nofollow,t.image,t.list_icon,t.max_width,t.responsive_breakpoint,t.sitemap_container_margin,t.sitemap_item_line_height,t.tab_color,t.tab_header_bg,t.post_type_label_padding,t.post_type_label_font_size,t.render_tab),l=t.block_post_types,u=(t.exclude,t.include,t.order),c=t.orderby,p=e.setAttributes,f=e.attributes,d={container:function(e){return Qn(Qn({},e),{},{marginBottom:"5px",'& div[class$="-Input"]':{"& input:focus":{boxShadow:"none"}}})}},m=ur("sitemap-post-types-select",(0,r.createElement)(Vn,{title:"Title",defaultValue:JSON.parse(l),isMulti:!0,onChange:function(e){return p({block_post_types:JSON.stringify(e)})},options:[{value:"post",label:"Post"},{value:"page",label:"Page"}],styles:d}),e),h=ur("post-types-help-label",(0,r.createElement)(or,{className:"panel-row-help-label"},(0,r.createElement)("p",{style:{marginTop:"-20px",fontSize:"13px",fontStyle:"italic",marginLeft:"2px"}},"List"," ",(0,r.createElement)("a",{href:"https://wpgoplugins.com/plugins/simple-sitemap-pro/#post-types",target:"_blank",rel:"noreferrer"},"more")," ","post types")),e),v=ur("sitemap-general-settings","",e),b=ur("sitemap-general-styles","",e),g=ur("sitemap-featured-image","",e),y=ur("sitemap-tab-controls","",e);return[(0,r.createElement)(tr,{key:"simple-sitemap-block-controls"},(0,r.createElement)(rr,{title:er("General Settings","simple-sitemap")},(0,r.createElement)(or,{className:"panel-row-label"},(0,r.createElement)("label",{style:{marginBottom:"-14px"},className:"components-base-control__label"},"Select post types to display")),(0,r.createElement)(or,null,m),h,(0,r.createElement)(or,{className:"simple-sitemap order"},(0,r.createElement)(ir,{label:"Orderby",value:c,options:[{label:"Title",value:"title"},{label:"Date",value:"date"},{label:"ID",value:"ID"},{label:"Author",value:"author"},{label:"Name",value:"name"},{label:"Modified",value:"modified"},{label:"Menu Order",value:"menu_order"},{label:"Random Order",value:"rand"},{label:"Comment Count",value:"comment_count"}],onChange:function(e){p({orderby:e})}}),(0,r.createElement)(ir,{label:"Order",value:u,options:[{label:"Ascending",value:"asc"},{label:"Descending",value:"desc"}],onChange:function(e){p({order:e})}})),(0,r.createElement)(or,{className:"simple-sitemap general-chk"},(0,r.createElement)(Tn,{value:o,label:"Show post type label",updateCheckbox:function(e){p({show_label:e})}})),(0,r.createElement)(or,{className:"simple-sitemap general-chk"},(0,r.createElement)(Tn,{value:n,label:"Show excerpt",updateCheckbox:function(e){p({show_excerpt:e})}})),(0,r.createElement)(or,{className:"simple-sitemap general-chk"},(0,r.createElement)(Tn,{value:a,label:"Enable sitemap links",updateCheckbox:function(e){p({links:e})}})),v),b,g,(0,r.createElement)(rr,{title:er("Tab Settings","simple-sitemap"),initialOpen:!1},(0,r.createElement)(or,{className:"simple-sitemap"},(0,r.createElement)(Tn,{value:s,label:"Enable tabs",updateCheckbox:function(e){p({render_tab:e})}})),y),(0,r.createElement)(rr,{title:er("Page Settings","simple-sitemap"),initialOpen:!1},(0,r.createElement)(or,{className:"simple-sitemap"},(0,r.createElement)("p",null,"Affects sitemap pages only.")),(0,r.createElement)(or,{className:"simple-sitemap"},(0,r.createElement)(ar,{type:"number",label:"Page indentation",min:"0",max:"5",help:"Leave at zero for auto-depth",value:i,onChange:function(e){p({page_depth:parseInt(e)})}})))),(0,r.createElement)(Zn,{key:"simple-sitemap-server-side-render-component",block:"wpgoplugins/simple-sitemap-block",attributes:f})]},save:function(){return null}});var pr=wp.components,fr=pr.PanelRow,dr=pr.SelectControl,mr=(pr.Button,wp.element),hr=(mr.Fragment,mr.Component),vr=wp.hooks,br=vr.applyFilters,gr=(vr.addAction,vr.addFilter,function(e){Fe(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=An(t);if(n){var o=An(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return Ln(this,e)});function a(e){var t;return Te(this,a),(t=o.call(this)).state={types:[],taxonomies:[],taxonomy_select_disabled_status:!0,taxonomy_select_disabled_help:"",wrapperClass:""},t.props=e,t.updatePostTypeValues=t.updatePostTypeValues.bind(_n(t)),t}return Le(a,[{key:"componentDidUpdate",value:function(){}},{key:"componentDidMount",value:function(){var e=this,t=wp.hooks.applyFilters("fetch-sitemap-cpts",null);"function"==typeof t&&t(this.props).then((function(t){e.setState({types:t})})),this.fetchTaxonomies(null)}},{key:"fetchTaxonomies",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=this.props,r=n.setAttributes,o=n.block_post_type,a=n.block_taxonomy,i="simple-sitemap/v1/post-type-taxonomies/".concat(t||o);wp.apiFetch({path:i,method:"GET"}).then((function(t){var n="",o=!1,i="",s=[],l=!0;if(0===t.length)n="No taxonomies found for this post type",o=!0,i="disabled",r({block_taxonomy:""});else{for(var u=0,c=Object.entries(t);u<c.length;u++){var p=cr(c[u],2),f={value:p[0],label:p[1]};s.push(f),f.value===a&&(l=!1)}l&&r({block_taxonomy:s[0].value})}return e.setState({taxonomy_select_disabled_status:o,taxonomy_select_disabled_help:n,taxonomies:s,wrapperClass:i}),t}),(function(e){return e}))}},{key:"updatePostTypeValues",value:function(e){(0,this.props.setAttributes)({block_post_type:e}),this.fetchTaxonomies(e)}},{key:"render",value:function(){var e=this,t=this.props,n=(t.setAttributes,t.block_post_type,t.block_taxonomy),o=(t.multi,t.className,br("sitemap-group-post-types-select","",this.props,this.state,this.updatePostTypeValues));return br("sitemap-list-more-taxonomies",(0,r.createElement)(fr,null,(0,r.createElement)("p",{style:{marginTop:"-24px",fontSize:"13px",fontStyle:"italic",marginLeft:"2px"}},"List ",(0,r.createElement)("a",{href:"https://wpgoplugins.com/plugins/simple-sitemap-pro/#taxonomies-for-any-post-type",target:"_blank",rel:"noreferrer"},"taxonomies")," for any post type"))),(0,r.createElement)("div",{className:"ss-taxonomy-select ".concat(this.state.wrapperClass)},o,(0,r.createElement)(dr,{label:"Select taxonomy",value:n,options:this.state.taxonomies,onChange:function(t){(0,e.props.setAttributes)({block_taxonomy:t})},disabled:this.state.taxonomy_select_disabled_status}))}}]),a}(hr)),yr=wp.i18n.__,Or=wp.blockEditor.InspectorControls,wr=wp.components,Sr=wr.PanelBody,xr=wr.PanelRow,kr=(wr.TextControl,wr.SelectControl),Cr=wp.blocks.registerBlockType;t(wp.element),wp.serverSideRender;var Er=wp.hooks,Pr=Er.applyFilters;Er.addAction,Er.addFilter,Cr("wpgoplugins/simple-sitemap-group-block",{title:"Simple Sitemap Group",icon:"networking",keywords:[yr("Sitemap","simple-sitemap"),yr("Group","simple-sitemap"),yr("HTML Sitemap","simple-sitemap")],category:"simple-sitemap",example:{attributes:{num_posts:5,num_terms:5}},edit:function(e){var t=e.attributes,n=t.show_excerpt,o=t.show_label,a=t.links,i=t.block_taxonomy,s=t.block_post_type,l=t.order,u=t.orderby,c=(e.className,e.setAttributes),p=(e.isSelected,e.attributes),f=Pr("sitemap-group-general-settings","",e),d=Pr("sitemap-group-general-styles","",e),m=Pr("sitemap-group-featured-image","",e);return[(0,r.createElement)(Or,{key:"simple-sitemap-group-block-controls"},(0,r.createElement)(Sr,{title:yr("General Settings","simple-sitemap")},(0,r.createElement)(xr,{className:"simple-sitemap"},(0,r.createElement)(gr,{setAttributes:c,multi:!1,block_post_type:s,block_taxonomy:i})),(0,r.createElement)(xr,{className:"simple-sitemap order-label"},(0,r.createElement)("h3",{style:{marginBottom:"-12px"}},"Post ordering")),(0,r.createElement)(xr,{className:"simple-sitemap order"},(0,r.createElement)(kr,{label:"Orderby",value:u,options:[{label:"Title",value:"title"},{label:"Date",value:"date"},{label:"ID",value:"ID"},{label:"Author",value:"author"},{label:"Name",value:"name"},{label:"Modified",value:"modified"}],onChange:function(e){c({orderby:e})}}),(0,r.createElement)(kr,{label:"Order",value:l,options:[{label:"Ascending",value:"asc"},{label:"Descending",value:"desc"}],onChange:function(e){c({order:e})}})),(0,r.createElement)(xr,{className:"simple-sitemap general-chk"},(0,r.createElement)(Tn,{value:o,label:"Display post type label",updateCheckbox:function(e){c({show_label:e})}})),(0,r.createElement)(xr,{className:"simple-sitemap general-chk"},(0,r.createElement)(Tn,{value:n,label:"Display post excerpt",updateCheckbox:function(e){c({show_excerpt:e})}})),(0,r.createElement)(xr,{className:"simple-sitemap general-chk"},(0,r.createElement)(Tn,{value:a,label:"Display sitemap links",updateCheckbox:function(e){c({links:e})}})),f),d,m),(0,r.createElement)(Zn,{key:"simple-sitemap-server-side-render-component",block:"wpgoplugins/simple-sitemap-group-block",attributes:p})]},save:function(){return null}})})()})();
3
  //# sourceMappingURL=blocks.editor.js.map
lib/classes/bootstrap.php CHANGED
@@ -28,6 +28,18 @@ class BootStrap
28
  public function load_supported_features()
29
  {
30
  $root = $this->module_roots['dir'];
 
 
 
 
 
 
 
 
 
 
 
 
31
  // Import plugin framework classes (fw = framework).
32
  if ( !class_exists( '\\WPGO_Plugins\\Plugin_Framework\\Utilities_FW' ) ) {
33
  require_once $root . 'api/classes/utilities.php';
@@ -37,33 +49,81 @@ class BootStrap
37
  ss_fs()->add_filter( 'show_deactivation_feedback_form', function () {
38
  return false;
39
  } );
 
 
 
 
 
 
 
 
 
 
40
  // Enqueue plugin scripts.
41
  require_once $root . 'lib/classes/enqueue-scripts.php';
42
- new Enqueue_Scripts( $this->module_roots, $utilities_fw );
 
 
 
 
 
 
43
  // Import plugin framework classes (fw = framework).
44
  if ( !class_exists( '\\WPGO_Plugins\\Plugin_Framework\\Settings_Templates_FW' ) ) {
45
  require_once $root . 'api/templates/settings/settings.php';
46
  }
47
  $settings_fw = new \WPGO_Plugins\Plugin_Framework\Settings_Templates_FW( $this->module_roots );
 
 
 
 
48
  // Plugin framework hooks.
49
  if ( !class_exists( '\\WPGO_Plugins\\Plugin_Framework\\Hooks_FW' ) ) {
50
  require_once $root . 'api/classes/hooks.php';
51
  }
52
  // We don't (yet) have a constants.php class so just creating a mini version to pass required data.
53
- $custom_plugin_data = new \stdClass();
54
- $custom_plugin_data->filter_prefix = 'simple_sitemap';
55
- $custom_plugin_data->donation_link = 'https://www.paypal.com/donate?hosted_button_id=FBAG4ZHA4TTUC';
56
- $custom_plugin_data->main_menu_label = 'Simple Sitemap';
57
  new \WPGO_Plugins\Plugin_Framework\Hooks_FW( $this->module_roots, $custom_plugin_data, ss_fs() );
58
- // Plugin docs/settings page.
59
- require_once $root . 'lib/classes/settings.php';
60
- new Settings( $this->module_roots, $settings_fw );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61
  // Register blocks.
62
  require_once $root . 'lib/classes/register-blocks.php';
63
  new Register_Blocks( $this->module_roots );
64
  // Sitemap shortcodes.
65
  require_once $root . 'lib/classes/shortcodes/shortcodes.php';
66
  new Shortcodes( $this->module_roots );
 
 
 
 
 
67
  // Localize plugin.
68
  require_once $root . 'shared/localize.php';
69
  new Localize( $this->module_roots );
28
  public function load_supported_features()
29
  {
30
  $root = $this->module_roots['dir'];
31
+ // Load plugin constants/data.
32
+ require_once $root . 'lib/classes/class-constants.php';
33
+ $custom_plugin_data = new Constants( $this->module_roots );
34
+ $plugin_data = get_plugin_data( $this->module_roots['file'], false, false );
35
+ // Data to pass to certain classes.
36
+ $new_features_json = '';
37
+ if ( file_exists( $root . 'lib/assets/misc/new-features.json' ) ) {
38
+ $new_features_json = file_get_contents( $root . 'lib/assets/misc/new-features.json' );
39
+ }
40
+ require_once $root . 'lib/classes/class-utility.php';
41
+ $utility = new Utility( $this->module_roots, $custom_plugin_data );
42
+ $new_features_arr = Utility::filter_and_decode_json( $new_features_json );
43
  // Import plugin framework classes (fw = framework).
44
  if ( !class_exists( '\\WPGO_Plugins\\Plugin_Framework\\Utilities_FW' ) ) {
45
  require_once $root . 'api/classes/utilities.php';
49
  ss_fs()->add_filter( 'show_deactivation_feedback_form', function () {
50
  return false;
51
  } );
52
+ // Enqueue framework scripts.
53
+ if ( !class_exists( '\\WPGO_Plugins\\Plugin_Framework\\Enqueue_Framework_Scripts' ) ) {
54
+ require_once $root . 'api/classes/enqueue-scripts.php';
55
+ }
56
+ new \WPGO_Plugins\Plugin_Framework\Enqueue_Framework_Scripts(
57
+ $this->module_roots,
58
+ $new_features_arr,
59
+ $plugin_data,
60
+ $custom_plugin_data
61
+ );
62
  // Enqueue plugin scripts.
63
  require_once $root . 'lib/classes/enqueue-scripts.php';
64
+ new Enqueue_Scripts(
65
+ $this->module_roots,
66
+ $utilities_fw,
67
+ $new_features_arr,
68
+ $plugin_data,
69
+ $custom_plugin_data
70
+ );
71
  // Import plugin framework classes (fw = framework).
72
  if ( !class_exists( '\\WPGO_Plugins\\Plugin_Framework\\Settings_Templates_FW' ) ) {
73
  require_once $root . 'api/templates/settings/settings.php';
74
  }
75
  $settings_fw = new \WPGO_Plugins\Plugin_Framework\Settings_Templates_FW( $this->module_roots );
76
+ if ( !class_exists( '\\WPGO_Plugins\\Plugin_Framework\\New_Features_Templates_FW' ) ) {
77
+ require_once $root . 'api/templates/settings/new-features.php';
78
+ }
79
+ $new_features_fw = new \WPGO_Plugins\Plugin_Framework\New_Features_Templates_FW( $this->module_roots );
80
  // Plugin framework hooks.
81
  if ( !class_exists( '\\WPGO_Plugins\\Plugin_Framework\\Hooks_FW' ) ) {
82
  require_once $root . 'api/classes/hooks.php';
83
  }
84
  // We don't (yet) have a constants.php class so just creating a mini version to pass required data.
85
+ //$custom_plugin_data = new \stdClass;
86
+ //$custom_plugin_data->filter_prefix = 'simple_sitemap';
87
+ //$custom_plugin_data->donation_link = 'https://www.paypal.com/donate?hosted_button_id=FBAG4ZHA4TTUC';
88
+ //$custom_plugin_data->main_menu_label = 'Simple Sitemap';
89
  new \WPGO_Plugins\Plugin_Framework\Hooks_FW( $this->module_roots, $custom_plugin_data, ss_fs() );
90
+ // Plugin settings pages.
91
+ require_once $root . 'lib/classes/plugin-admin-pages/class-settings.php';
92
+ new Settings(
93
+ $this->module_roots,
94
+ $plugin_data,
95
+ $custom_plugin_data,
96
+ $utility,
97
+ $settings_fw,
98
+ $new_features_arr
99
+ );
100
+ require_once $root . 'lib/classes/plugin-admin-pages/class-settings-new-features.php';
101
+ new Settings_New_Features(
102
+ $this->module_roots,
103
+ $new_features_arr,
104
+ $plugin_data,
105
+ $custom_plugin_data,
106
+ $utility,
107
+ $new_features_fw
108
+ );
109
+ require_once $root . 'lib/classes/plugin-admin-pages/class-settings-welcome.php';
110
+ new Settings_Welcome(
111
+ $this->module_roots,
112
+ $plugin_data,
113
+ $custom_plugin_data,
114
+ $utility
115
+ );
116
  // Register blocks.
117
  require_once $root . 'lib/classes/register-blocks.php';
118
  new Register_Blocks( $this->module_roots );
119
  // Sitemap shortcodes.
120
  require_once $root . 'lib/classes/shortcodes/shortcodes.php';
121
  new Shortcodes( $this->module_roots );
122
+ // Run upgrade routine when plugin updated to new version.
123
+ if ( !class_exists( '\\WPGO_Plugins\\Plugin_Framework\\Upgrade_FW' ) ) {
124
+ require_once $root . 'api/classes/upgrade.php';
125
+ }
126
+ new \WPGO_Plugins\Plugin_Framework\Upgrade_FW( $this->module_roots, $custom_plugin_data );
127
  // Localize plugin.
128
  require_once $root . 'shared/localize.php';
129
  new Localize( $this->module_roots );
lib/classes/class-constants.php ADDED
@@ -0,0 +1,246 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace WPGO_Plugins\Simple_Sitemap;
4
+
5
+ /**
6
+ * Plugin constants.
7
+ */
8
+ class Constants {
9
+
10
+ /**
11
+ * Common root paths/directories.
12
+ *
13
+ * @var $module_roots
14
+ */
15
+ protected $module_roots;
16
+
17
+ /**
18
+ * Main class constructor.
19
+ *
20
+ * @param Array $module_roots Root plugin path/dir.
21
+ */
22
+ public function __construct( $module_roots ) {
23
+ $this->module_roots = $module_roots;
24
+ $this->define_constants();
25
+ }
26
+
27
+ /**
28
+ * Define plugin constants.
29
+ */
30
+ public function define_constants() {
31
+
32
+ // **********************
33
+ // START - EDIT CONSTANTS
34
+ // **********************
35
+
36
+ $this->plugin_data = get_plugin_data( $this->module_roots['file'] );
37
+ $this->freemius_slug = ss_fs()->get_slug();
38
+ $this->main_menu_label = 'Simple Sitemap';
39
+ $this->plugin_slug = 'simple-sitemap-menu';
40
+ $this->plugin_cpt_slug = 'simple-sitemap'; // use this as plugin (menu) slug if using CPT as parent menu.
41
+ $this->menu_type = 'top'; // top|top-cpt|sub.
42
+ $this->cpt_slug = ''; // same one used in register_post_type().
43
+ $this->css_prefix = 'simple-sitemap';
44
+ $this->filter_prefix = 'simple_sitemap';
45
+ $this->db_option_prefix = 'simple_sitemap';
46
+ $this->enqueue_prefix = 'simple-sitemap';
47
+ $this->plugin_settings_prefix = 'simple_sitemap';
48
+ $this->donation_link = 'https://www.paypal.com/donate?hosted_button_id=FBAG4ZHA4TTUC';
49
+ $this->duplicate_post_label = '';
50
+ $coupon = '&coupon=30PCOFF';
51
+
52
+ // ********************
53
+ // END - EDIT CONSTANTS
54
+ // ********************
55
+
56
+ $root = $this->module_roots['dir'];
57
+
58
+ // CREATE FAQ THEME DEFAULTS.
59
+
60
+ // Setup template names and urls for JSON data.
61
+ // $attributes_urls = array(
62
+ // 'text' => $root . 'assets/misc/default-text-expand-attributes.json',
63
+ // 'box' => $root . 'assets/misc/default-box-expand-attributes.json',
64
+ // 'accordion' => $root . 'assets/misc/default-accordion-expand-attributes.json',
65
+ // );
66
+
67
+ // Loop through each JSON template file and extract default FAQ attributes for each theme.
68
+ // foreach ( $attributes_urls as $key => $value ) {
69
+
70
+ // $raw_json_contents = file_get_contents( $value );
71
+ // $decoded_json_contents = json_decode( $raw_json_contents, true );
72
+
73
+ // if ( flexible_faqs_fs()->can_use_premium_code__premium_only() ) {
74
+ // // Merge free theme defaults with pro theme defaults.
75
+ // $decoded_json_contents = Priority_Extend_Utility::filter_pro_att( $decoded_json_contents, $key, $root );
76
+ // }
77
+ // $prop = 'raw_' . $key . '_expand_attribute_defaults';
78
+ // $this->$prop = $decoded_json_contents;
79
+ // }
80
+
81
+ // FORMAT ATTRIBUTE DEFAULTS FOR SHORTCODE AND BLOCKS.
82
+
83
+ //$block_templates = array( 'text', 'box', 'accordion' );
84
+
85
+ // Build block/shortcode attributes.
86
+ // foreach ( $block_templates as $template ) {
87
+
88
+ // $raw_prop = 'raw_' . $template . '_expand_attribute_defaults';
89
+ // $block_prop = 'block_' . $template . '_expand_attribute_defaults';
90
+ // $shortcode_prop = 'shortcode_' . $template . '_expand_attribute_defaults';
91
+
92
+ // $this->$block_prop = array();
93
+
94
+ // // Cycle through each FAQ theme defined in JSON files.
95
+ // foreach ( $this->$raw_prop as $faq_theme_name => $faq_theme_atts ) {
96
+
97
+ // $tmp_attribute_defaults = array();
98
+
99
+ // // Cycle through each parsed FAQ theme attribute defined in JSON files.
100
+ // foreach ( $faq_theme_atts['faq_attributes'] as $faq_attribute => $value ) {
101
+
102
+ // // For each FAQ theme format the defaults to be used in the shortcode.
103
+ // $tmp_attribute_defaults[ $faq_attribute ] = $value['default'];
104
+
105
+ // // Only need the initial defaults from the 'default' theme for blocks so we can register the block via PHP.
106
+ // // The other themes will be created via JS.
107
+ // if ( 'default' === $faq_theme_name ) {
108
+ // // Adding brackets here manually as when deploying the PHP processor inserts them incorrectly when accessing dynamic array properties.
109
+ // $this->{$block_prop}[ $faq_attribute ] = $value;
110
+ // }
111
+ // }
112
+ // // Flatten the faq_attributes array to $attr => $value.
113
+ // // Adding brackets here manually as when deploying, the PHP processor inserts them incorrectly when accessing dynamic array properties.
114
+ // $this->{$raw_prop}[ $faq_theme_name ]['faq_attributes'] = $tmp_attribute_defaults;
115
+ // }
116
+ // $this->$shortcode_prop = $this->$raw_prop;
117
+ // }
118
+
119
+ // LOAD SAMPLE FAQS.
120
+
121
+ // $sf_url = $root . 'assets/misc/sample-faqs.json';
122
+ // if ( flexible_faqs_fs()->can_use_premium_code__premium_only() ) {
123
+ // // Load pro sample FAQs.
124
+ // $sf_url = $root . 'classes/modules/misc/pro-sample-faqs.json';
125
+ // }
126
+
127
+ // $raw_json_contents = file_get_contents( $sf_url );
128
+ // $decoded_json_contents = json_decode( $raw_json_contents, true );
129
+ // $this->sample_faqs = $decoded_json_contents;
130
+
131
+ // ========================================================================================
132
+
133
+ // Always set to true for blocks.
134
+ // $this->block_text_expand_attribute_defaults['gutenberg_bl'] = array(
135
+ // 'type' => 'boolean',
136
+ // 'default' => true,
137
+ // );
138
+ // $this->block_box_expand_attribute_defaults['gutenberg_bl'] = array(
139
+ // 'type' => 'boolean',
140
+ // 'default' => true,
141
+ // );
142
+ // $this->block_accordion_expand_attribute_defaults['gutenberg_bl'] = array(
143
+ // 'type' => 'boolean',
144
+ // 'default' => true,
145
+ // );
146
+
147
+ // Store plugin premium status in variable.
148
+ $this->is_premium = ss_fs()->can_use_premium_code();
149
+
150
+ if ( 'sub' === $this->menu_type ) {
151
+ $this->parent_slug = 'options-general.php';
152
+ $this->settings_page_hook = 'settings_page_' . $this->plugin_slug; // when main settings page is a submenu under the 'Settings' menu.
153
+ } elseif ( 'top' === $this->menu_type ) {
154
+ $this->parent_slug = $this->plugin_slug; // when main settings page is a top-level menu.
155
+ $this->settings_page_hook_top = 'toplevel_page_' . $this->plugin_slug;
156
+ // Important: WordPress calculates the first part of this string (i.e. before '_page_') by basing it on the second argument passed to add_menu_page().
157
+ // Unfortunately we can't generalize the argument in add_menu_page() into a variable because the language translation functions don't allow vars. @TODO actually we should be able to do this with translation string functions that allow vars.
158
+ $this->settings_page_hook_sub = $this->db_option_prefix . '_page_' . $this->plugin_slug;
159
+ } elseif ( 'top-cpt' === $this->menu_type ) {
160
+ $this->parent_slug = 'edit.php?post_type=' . $this->cpt_slug; // when main settings page is a top-level menu.
161
+ $this->settings_page_hook_top = 'edit.php';
162
+ // Important: WordPress calculates the first part of this string (i.e. before '_page_') by basing it on the second argument passed to add_menu_page().
163
+ // Unfortunately we can't generalize the argument in add_menu_page() into a variable because the language translation functions don't allow vars.
164
+ $this->settings_page_hook_sub = $this->cpt_slug . '_page_' . $this->plugin_slug;
165
+ } else {
166
+ wp_die( 'WPGO PLUGINS ERROR [' . $this->main_menu_label . ']: $this->menu_type must be one of: top|top-cpt|sub.' );
167
+ }
168
+
169
+ // Define settings pages used in the plugin.
170
+ $this->settings_pages = array(
171
+ 'settings' => array(
172
+ 'slug' => $this->plugin_slug,
173
+ 'label' => 'Settings',
174
+ 'css_class' => 'home',
175
+ ),
176
+ 'new-features' => array(
177
+ 'slug' => $this->plugin_slug . '-new-features',
178
+ 'label' => 'New Features',
179
+ 'css_class' => 'new-features',
180
+ ),
181
+ 'welcome' => array(
182
+ 'slug' => $this->plugin_slug . '-welcome',
183
+ 'label' => 'Welcome to ' . $this->main_menu_label . '!',
184
+ 'css_class' => 'welcome',
185
+ ),
186
+ );
187
+
188
+ // Define menu prefix and upgrade URL.
189
+ $this->url_prefix = '';
190
+ if ( 'sub' === $this->menu_type ) {
191
+ $this->url_prefix = 'options-general.php';
192
+ } elseif ( 'top' === $this->menu_type ) {
193
+ $this->url_prefix = 'admin.php';
194
+ } elseif ( 'top-cpt' === $this->menu_type ) {
195
+ $this->url_prefix = 'edit.php?post_type=' . $this->cpt_slug;
196
+ }
197
+ // If using a CPT as top-level parent then the post type is already the first query string so subsequent values are separated by '&' and not '?'.
198
+ $query_string_prefix = 'top-cpt' === $this->menu_type ? '&' : '?';
199
+
200
+ // For Freemius pages if CPT is used for top-level menu then use slightly different slug.
201
+ $freemius_slug = 'top-cpt' === $this->menu_type ? $this->plugin_cpt_slug : $this->settings_pages['settings']['slug'];
202
+ $this->url_prefix .= $query_string_prefix;
203
+ $this->main_settings_url = admin_url() . $this->url_prefix . 'page=' . $this->settings_pages['settings']['slug'];
204
+ $this->welcome_url = admin_url() . $this->url_prefix . 'page=' . $this->settings_pages['welcome']['slug'];
205
+ $this->new_features_url = admin_url() . $this->url_prefix . 'page=' . $this->settings_pages['new-features']['slug'];
206
+ $this->freemius_upgrade_url = admin_url() . $this->url_prefix . 'page=' . $freemius_slug . '-pricing';
207
+ $this->freemius_discount_upgrade_url = admin_url() . $this->url_prefix . 'page=' . $freemius_slug . '-pricing&checkout=true&plan_id=6617&plan_name=pro&billing_cycle=annual&pricing_id=6018&currency=usd' . $coupon;
208
+ $this->contact_us_url = admin_url() . $this->url_prefix . 'page=' . $freemius_slug . '-contact';
209
+ $this->admin_url = admin_url();
210
+
211
+ // Don't allow tabs to be used when the plugin uses a top-level menu.
212
+ if ( SITEMAP_FREEMIUS_NAVIGATION === 'tabs' && ( 'top' === $this->menu_type || 'top-cpt' === $this->menu_type ) ) {
213
+ wp_die( 'WPGO PLUGINS ERROR [' . $this->main_menu_label . ']: Freemius doesn\'t support using tabs with a top-level main settings page. Please change navigation to \'menu\' or use a submenu for the main settings page.' );
214
+ }
215
+
216
+ // Construct list of expand icons.
217
+
218
+ // $icon_methods = get_class_methods( new Svg_Icons() );
219
+
220
+ // if ( flexible_faqs_fs()->can_use_premium_code__premium_only() ) {
221
+ // // Include pro only icons.
222
+ // $pro_icon_methods = get_class_methods( new Svg_Pro_Icons() );
223
+ // $icon_methods = array_merge( $icon_methods, $pro_icon_methods );
224
+ // }
225
+
226
+ // $icon_methods_format = array();
227
+ // foreach ( $icon_methods as $key => $icon ) {
228
+ // if ( substr( $icon, 0, 1 ) === '_' ) {
229
+ // continue;
230
+ // }
231
+ // $tmp_val_str = ucfirst( substr( $icon, 0, strlen( $icon ) - 1 ) );
232
+ // $tmp_val_num = substr( $icon, -1 );
233
+ // array_push(
234
+ // $icon_methods_format,
235
+ // array(
236
+ // 'label' => $tmp_val_str . ' ' . $tmp_val_num,
237
+ // 'value' => $icon,
238
+ // )
239
+ // );
240
+ // }
241
+ // sort( $icon_methods_format );
242
+
243
+ // $this->expand_icons = $icon_methods_format;
244
+ }
245
+
246
+ } /* End class definition */
lib/classes/class-utility.php ADDED
@@ -0,0 +1,163 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace WPGO_Plugins\Simple_Sitemap;
4
+
5
+ /**
6
+ * Plugin utility functions.
7
+ */
8
+ class Utility {
9
+
10
+ /**
11
+ * Common root paths/directories.
12
+ *
13
+ * @var $module_roots
14
+ */
15
+ protected $module_roots;
16
+
17
+ /**
18
+ * Main class constructor.
19
+ *
20
+ * @param Array $module_roots Root plugin path/dir.
21
+ * @param Array $custom_plugin_data Plugin data.
22
+ */
23
+ public function __construct( $module_roots, $custom_plugin_data ) {
24
+ $this->module_roots = $module_roots;
25
+ $this->custom_plugin_data = $custom_plugin_data;
26
+ }
27
+
28
+ /**
29
+ * Build attributes for the element
30
+ *
31
+ * @param Array $class_attribute Array of strings of classes names to assign this element.
32
+ * @param Array $style_attribute Array of style attributes for inline styling of this element.
33
+ * @param String $title_attribute Title for this element.
34
+ * @return String Attributes for an HTML element.
35
+ */
36
+ public static function build_el_attributes( $class_attribute, $style_attribute, $title_attribute ) {
37
+ $el_attributes = '';
38
+ if ( ! empty( $class_attribute ) ) {
39
+ $el_attributes .= ' class="';
40
+ foreach ( $class_attribute as $key => $value ) {
41
+ $el_attributes .= $value;
42
+ }
43
+ $el_attributes .= '"';
44
+ }
45
+ if ( ! empty( $style_attribute ) ) {
46
+ $el_attributes .= ' style="';
47
+ foreach ( $style_attribute as $key => $value ) {
48
+ $el_attributes .= $value;
49
+ }
50
+ $el_attributes .= '"';
51
+ }
52
+ if ( ! empty( $title_attribute ) ) {
53
+ $el_attributes .= ' title="' . $title_attribute . '"';
54
+ }
55
+
56
+ return $el_attributes;
57
+ }
58
+
59
+ /**
60
+ * Build and return tab HTML. Numbered icon is added via JS.
61
+ *
62
+ * @param Object $plugin_data All the settings and configurations of this plugin.
63
+ * @return String formatted as HTML.
64
+ */
65
+ public function build_settings_tabs_html( $plugin_data ) {
66
+
67
+ if ( SITEMAP_FREEMIUS_NAVIGATION === 'menu' ) {
68
+ return '';
69
+ }
70
+
71
+ $settings_page_main_url = admin_url() . 'options-general.php?page=' . $this->custom_plugin_data->settings_pages['settings']['slug'];
72
+ $settings_page_new_features_url = admin_url() . 'options-general.php?page=' . $this->custom_plugin_data->settings_pages['new-features']['slug'];
73
+ $settings_page_welcome_url = admin_url() . 'options-general.php?page=' . $this->custom_plugin_data->settings_pages['welcome']['slug'];
74
+
75
+ $main_active = ( isset( $_GET['page'] ) && ( $_GET['page'] === $this->custom_plugin_data->settings_pages['settings']['slug'] ) ) ? ' nav-tab-active' : '';
76
+ $new_features_active = ( isset( $_GET['page'] ) && ( $_GET['page'] === $this->custom_plugin_data->settings_pages['new-features']['slug'] ) ) ? ' nav-tab-active' : '';
77
+ $welcome_active = ( isset( $_GET['page'] ) && ( $_GET['page'] === $this->custom_plugin_data->settings_pages['welcome']['slug'] ) ) ? ' nav-tab-active' : '';
78
+
79
+ $tabs_list_html = '<h2 class="nav-tab-wrapper"><a href="' . $settings_page_main_url . '" class="nav-tab fs-tab' . $main_active . '">Settings</a><a href="' . $settings_page_new_features_url . '" class="nav-tab fs-tab' . $new_features_active . '">New Features</a><a href="' . $settings_page_welcome_url . '" class="nav-tab fs-tab' . $welcome_active . '">About</a></h2>';
80
+
81
+ return $tabs_list_html;
82
+ }
83
+
84
+ /**
85
+ * Decode and return the JSON encoded string in the form of Object.
86
+ *
87
+ * @todo Add to framework plugin.
88
+ *
89
+ * @param String $data JSON encoded string.
90
+ * @return Array List of premium new available features.
91
+ */
92
+ public static function filter_and_decode_json( $data ) {
93
+ $new_features = json_decode( $data );
94
+
95
+ if ( ss_fs()->can_use_premium_code() ) {
96
+ // Remove all entries that are 'free-only'.
97
+ foreach ( $new_features as $key => $new_feature ) {
98
+ if ( 'free' === $new_feature->license ) {
99
+ unset( $new_features[ $key ] );
100
+ }
101
+ }
102
+ $new_features = array_values( $new_features ); // reindex array.
103
+ }
104
+
105
+ return $new_features;
106
+ }
107
+
108
+ /**
109
+ * Utilized for converting the custom styled block's border object to CSS string.
110
+ *
111
+ * @param Object $json_obj JSON encoded object.
112
+ * @param Boolean $border_bottom Parameter for border bottom state.
113
+ * @param Boolean $border_bottom_only Parameter for border bottom state.
114
+ * @param Boolean $border_top_only Parameter for border top state.
115
+ * @param Array $args Additional arguments passed as an array.
116
+ * @return String CSS property and value formatted as valid CSS statement.
117
+ */
118
+ public static function build_css_from_border_object( $json_obj, $border_bottom = true, $border_bottom_only = false, $border_top_only = false, $args = array() ) {
119
+ $css_obj = json_decode( $json_obj );
120
+
121
+ // If for any reason the parsed JSON string doesn't evaluate to an object (it should) then return no CSS.
122
+ if ( ! is_object( $css_obj ) ) {
123
+ return '';
124
+ }
125
+
126
+ // If JSON border style is in shorthand and the styles haven't been customised then output the literal value the first value is always assumed to be the border width.
127
+ if ( property_exists( $css_obj, 'literal' ) ) {
128
+ $literal_arr = explode( ' ', $css_obj->literal );
129
+
130
+ if ( true === $border_bottom_only ) {
131
+ return true === $border_bottom ? 'border-bottom: ' . $literal_arr[0] . 'px ' . $literal_arr[1] . ' ' . $literal_arr[2] . ';' : '';
132
+ }
133
+
134
+ if ( true === $border_top_only ) {
135
+ return 'border-top: ' . $literal_arr[0] . 'px ' . $literal_arr[1] . ' ' . $literal_arr[2] . ';';
136
+ }
137
+
138
+ return 'border: ' . $literal_arr[0] . 'px ' . $literal_arr[1] . ' ' . $literal_arr[2] . ';';
139
+ } else {
140
+ $border_top = 'border-top: ' . $css_obj->top->width . 'px ' . $css_obj->top->color . ' ' . $css_obj->top->style . ';';
141
+ $border_right = 'border-right: ' . $css_obj->right->width . 'px ' . $css_obj->right->color . ' ' . $css_obj->right->style . ';';
142
+ $border_bottom = true === $border_bottom ? 'border-bottom: ' . $css_obj->bottom->width . 'px ' . $css_obj->bottom->color . ' ' . $css_obj->bottom->style . ';' : '';
143
+ $border_left = 'border-left: ' . $css_obj->left->width . 'px ' . $css_obj->left->color . ' ' . $css_obj->left->style . ';';
144
+ }
145
+
146
+ if ( true === $border_bottom_only ) {
147
+ return $border_bottom;
148
+ }
149
+
150
+ if ( true === $border_top_only ) {
151
+ return $border_top;
152
+ }
153
+
154
+ if ( '1' === $css_obj->mode ) {
155
+ return 'border: ' . $css_obj->top->width . 'px ' . $css_obj->top->color . ' ' . $css_obj->top->style;
156
+ }
157
+ if ( '4' === $css_obj->mode ) {
158
+
159
+ return $border_top . ' ' . $border_right . ' ' . $border_bottom . ' ' . $border_left;
160
+ }
161
+ }
162
+
163
+ } /* End class definition */
lib/classes/enqueue-scripts.php CHANGED
@@ -19,15 +19,30 @@ class Enqueue_Scripts
19
  * @param Array $module_roots Root plugin path/dir.
20
  * @param Object $utilities_fw An object of API utilities class.
21
  */
22
- public function __construct( $module_roots, $utilities_fw )
 
 
 
 
 
 
23
  {
24
  $this->module_roots = $module_roots;
25
  $this->utilities_fw = $utilities_fw;
 
 
 
26
  $this->plugin_version = get_plugin_data( $module_roots['file'] )['Version'];
27
  $this->enq_pfx = 'simple-sitemap';
28
  $this->plugin_settings_prefix = 'simple_sitemap';
29
  // Scripts for plugin settings page.
30
- add_action( 'admin_enqueue_scripts', array( &$this, 'enqueue_admin_scripts' ) );
 
 
 
 
 
 
31
  // Enqueue frontend/editor scripts.
32
  add_action( 'enqueue_block_assets', array( &$this, 'enqueue_assets' ) );
33
  add_action( 'enqueue_block_editor_assets', array( &$this, 'enqueue_block_editor_scripts' ) );
@@ -48,6 +63,43 @@ class Enqueue_Scripts
48
  );
49
  }
50
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
51
  /**
52
  * Enqueue front end and editor JavaScript and CSS assets.
53
  */
@@ -68,25 +120,41 @@ class Enqueue_Scripts
68
  * @param String $hook Page hook name.
69
  * @return Void
70
  */
71
- public function enqueue_admin_scripts( $hook )
72
  {
73
- if ( 'toplevel_page_simple-sitemap-menu' !== $hook ) {
74
- return;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
75
  }
76
- $ss_settings_css = $this->utilities_fw->get_enqueue_version( '/lib/assets/css/simple-sitemap-admin.css', $this->plugin_version );
77
- $ss_settings_js = $this->utilities_fw->get_enqueue_version( '/lib/assets/js/simple-sitemap-admin.js', $this->plugin_version );
78
- wp_enqueue_style(
79
- 'simple-sitemap-settings-css',
80
- $ss_settings_css['uri'],
81
- array(),
82
- $ss_settings_css['ver']
83
- );
84
- wp_enqueue_script(
85
- 'simple-sitemap-settings-js',
86
- $ss_settings_js['uri'],
87
- array(),
88
- $ss_settings_js['ver']
89
- );
 
 
90
  }
91
 
92
  /**
19
  * @param Array $module_roots Root plugin path/dir.
20
  * @param Object $utilities_fw An object of API utilities class.
21
  */
22
+ public function __construct(
23
+ $module_roots,
24
+ $utilities_fw,
25
+ $new_features_arr,
26
+ $plugin_data,
27
+ $custom_plugin_data
28
+ )
29
  {
30
  $this->module_roots = $module_roots;
31
  $this->utilities_fw = $utilities_fw;
32
+ $this->new_features_arr = $new_features_arr;
33
+ $this->plugin_data = $plugin_data;
34
+ $this->custom_plugin_data = $custom_plugin_data;
35
  $this->plugin_version = get_plugin_data( $module_roots['file'] )['Version'];
36
  $this->enq_pfx = 'simple-sitemap';
37
  $this->plugin_settings_prefix = 'simple_sitemap';
38
  // Scripts for plugin settings page.
39
+ add_action( 'admin_enqueue_scripts', array( &$this, 'enqueue_admin_settings_scripts' ) );
40
+ add_action(
41
+ 'admin_enqueue_scripts',
42
+ array( &$this, 'enqueue_admin_scripts' ),
43
+ 9,
44
+ 2
45
+ );
46
  // Enqueue frontend/editor scripts.
47
  add_action( 'enqueue_block_assets', array( &$this, 'enqueue_assets' ) );
48
  add_action( 'enqueue_block_editor_assets', array( &$this, 'enqueue_block_editor_scripts' ) );
63
  );
64
  }
65
 
66
+ /**
67
+ * Scripts for all admin pages. This is necessary as we need to modify the main admin menu from JS.
68
+ *
69
+ * @param String $hook Passed as parameter.
70
+ */
71
+ public function enqueue_admin_scripts( $hook )
72
+ {
73
+ // $all_admin_pages_js_url = plugins_url($all_admin_pages_js_rel, $this->module_roots['file']);
74
+ // $all_admin_pages_js_ver = filemtime($this->module_roots['dir'] . $all_admin_pages_js_rel);
75
+ $admin_settings_js = $this->utilities_fw->get_enqueue_version( '/lib/assets/js/update-menu.js', $this->custom_plugin_data->plugin_data['Version'] );
76
+ //$opt_pfx = $this->custom_plugin_data->db_option_prefix;
77
+ //$new_features_number = \WPGO_Plugins\Plugin_Framework\Upgrade_FW::calc_new_features( $opt_pfx, $this->new_features_arr, $this->plugin_data );
78
+ // Register and localize the script with new data.
79
+ // wp_register_script( $this->enq_pfx . '-update-menu-js', $admin_settings_js['uri'], array( 'wpgo-all-admin-pages-fw-js' ), $admin_settings_js['ver'], true );
80
+ wp_register_script(
81
+ $this->enq_pfx . '-update-menu-js',
82
+ $admin_settings_js['uri'],
83
+ array(),
84
+ $admin_settings_js['ver'],
85
+ true
86
+ );
87
+ $data = array(
88
+ 'admin_url' => admin_url(),
89
+ 'nav_status' => SITEMAP_FREEMIUS_NAVIGATION,
90
+ 'hook' => $hook,
91
+ 'menu_type' => $this->custom_plugin_data->menu_type,
92
+ 'main_menu_label' => $this->custom_plugin_data->main_menu_label,
93
+ 'plugin_prefix' => $this->enq_pfx,
94
+ );
95
+ // Keep the handle generic so only one instance is enqueued (if multiple WPGO plugins are installed).
96
+ // wp_enqueue_script('wpgo-all-admin-pages-fw-js', $all_admin_pages_js_url, array(), $all_admin_pages_js_ver, true);
97
+ wp_localize_script( $this->enq_pfx . '-update-menu-js', $this->custom_plugin_data->plugin_settings_prefix . '_admin_menu_data', $data );
98
+ wp_enqueue_script( $this->enq_pfx . '-update-menu-js' );
99
+ }
100
+
101
+ // sitemap-5_page _simple-sitemap-menu-welcome
102
+ // simple-sitemap_page _simple-sitemap-menu-welcome
103
  /**
104
  * Enqueue front end and editor JavaScript and CSS assets.
105
  */
120
  * @param String $hook Page hook name.
121
  * @return Void
122
  */
123
+ public function enqueue_admin_settings_scripts( $hook )
124
  {
125
+
126
+ if ( 'toplevel_page_simple-sitemap-menu' === $hook ) {
127
+ $ss_settings_css = $this->utilities_fw->get_enqueue_version( '/lib/assets/css/admin-settings.css', $this->plugin_version );
128
+ $ss_settings_js = $this->utilities_fw->get_enqueue_version( '/lib/assets/js/simple-sitemap-admin.js', $this->plugin_version );
129
+ wp_enqueue_style(
130
+ 'simple-sitemap-settings-welcome-css',
131
+ $ss_settings_css['uri'],
132
+ array(),
133
+ $ss_settings_css['ver']
134
+ );
135
+ wp_enqueue_script(
136
+ 'simple-sitemap-settings-welcome-js',
137
+ $ss_settings_js['uri'],
138
+ array(),
139
+ $ss_settings_js['ver']
140
+ );
141
  }
142
+
143
+ // Having to do it this way as for the welcome page the hook has the numbered icon number included (when rendered).
144
+
145
+ if ( strpos( $hook, '_page_simple-sitemap-menu-welcome' ) !== false ) {
146
+ //if ( 'simple-sitemap_page_simple-sitemap-menu-welcome' === $hook ) {
147
+ $ss_settings_css = $this->utilities_fw->get_enqueue_version( '/lib/assets/css/admin-settings.css', $this->plugin_version );
148
+ $ss_settings_js = $this->utilities_fw->get_enqueue_version( '/lib/assets/js/simple-sitemap-admin.js', $this->plugin_version );
149
+ wp_enqueue_style(
150
+ 'simple-sitemap-settings-css',
151
+ $ss_settings_css['uri'],
152
+ array(),
153
+ $ss_settings_css['ver']
154
+ );
155
+ //wp_enqueue_script( 'simple-sitemap-settings-js', $ss_settings_js['uri'], array(), $ss_settings_js['ver'] );
156
+ }
157
+
158
  }
159
 
160
  /**
lib/classes/plugin-admin-pages/class-settings-new-features.php ADDED
@@ -0,0 +1,113 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace WPGO_Plugins\Simple_Sitemap;
4
+
5
+ /**
6
+ * Plugin 'New Features' settings page.
7
+ */
8
+ class Settings_New_Features {
9
+
10
+ /**
11
+ * Common root paths/directories.
12
+ *
13
+ * @var $module_roots
14
+ */
15
+ protected $module_roots;
16
+
17
+ /**
18
+ * Main class constructor.
19
+ *
20
+ * @param Array $module_roots Root plugin path/dir.
21
+ * @param Array $new_features_arr New plugin features.
22
+ * @param Array $plugin_data Plugin data.
23
+ * @param Array $custom_plugin_data Custom plugin data.
24
+ * @param Array $utility Utility data.
25
+ * @param Array $new_features_fw Plugin framework new features.
26
+ */
27
+ public function __construct( $module_roots, $new_features_arr, $plugin_data, $custom_plugin_data, $utility, $new_features_fw ) {
28
+ $this->module_roots = $module_roots;
29
+ $this->custom_plugin_data = $custom_plugin_data;
30
+ $this->freemius_upgrade_url = $this->custom_plugin_data->freemius_upgrade_url;
31
+ $this->freemius_discount_upgrade_url = $this->custom_plugin_data->freemius_discount_upgrade_url;
32
+ $this->utility = $utility;
33
+ $this->new_features_fw = $new_features_fw;
34
+
35
+ // $this->pro_attribute = '<span class="pro" title="Shortcode attribute available in ' . $this->custom_plugin_data->main_menu_label . ' Pro"><a href="' . $this->freemius_upgrade_url . '">PRO</a></span>';
36
+ $this->new_features_arr = $new_features_arr;
37
+ // $this->settings_slug = $this->custom_plugin_data->settings_pages['settings']['slug'];
38
+ $this->new_features_slug = $this->custom_plugin_data->settings_pages['new-features']['slug'];
39
+ // $this->welcome_slug = $this->custom_plugin_data->settings_pages['welcome']['slug'];
40
+ $this->plugin_data = $plugin_data;
41
+
42
+ add_action( 'admin_menu', array( &$this, 'add_options_page' ) );
43
+ }
44
+
45
+ /**
46
+ * Add menu page.
47
+ */
48
+ public function add_options_page() {
49
+
50
+ $parent_slug = null;
51
+
52
+ if ( SITEMAP_FREEMIUS_NAVIGATION === 'tabs' ) {
53
+ // Only show submenu page when tabs enabled if new features tab is active.
54
+ if ( isset( $_GET['page'] ) && $_GET['page'] === $this->new_features_slug ) {
55
+ $parent_slug = $this->custom_plugin_data->parent_slug;
56
+ }
57
+ } else {
58
+ // Always use this if navigation is set to 'menu'.
59
+ $parent_slug = $this->custom_plugin_data->parent_slug;
60
+ }
61
+
62
+ // @todo calc this in constants.php just once and pass it in.
63
+ $opt_pfx = $this->custom_plugin_data->db_option_prefix;
64
+ $new_features_number = \WPGO_Plugins\Plugin_Framework\Upgrade_FW::calc_new_features( $opt_pfx, $this->new_features_arr, $this->plugin_data );
65
+
66
+ $title = 0 === $new_features_number ? __( 'New Features', 'simple-sitemap' ) : 'New Features <span class="update-plugins count-' . $new_features_number . '"><span class="plugin-count">' . $new_features_number . '</span></span>';
67
+
68
+ if ( 'top' === $this->custom_plugin_data->menu_type || 'top-cpt' === $this->custom_plugin_data->menu_type ) {
69
+ $label = $title;
70
+ } elseif ( 'sub' === $this->custom_plugin_data->menu_type ) {
71
+ $label = '<span class="fs-submenu-item fs-sub wpgo-plugins">' . $title . '</span>';
72
+ }
73
+
74
+ $hook = add_submenu_page(
75
+ 'simple-sitemap-menu', //$parent_slug,
76
+ 'New Features',
77
+ $label,
78
+ 'manage_options',
79
+ $this->new_features_slug,
80
+ array( &$this, 'render_sub_menu_form' )
81
+ );
82
+ }
83
+
84
+ /**
85
+ * Display the sub menu page.
86
+ */
87
+ public function render_sub_menu_form() {
88
+
89
+ $tabs_list_html = $this->utility->build_settings_tabs_html( $this->plugin_data );
90
+ $tab_classes = SITEMAP_FREEMIUS_NAVIGATION === 'tabs' ? ' fs-section fs-full-size-wrapper' : ' no-tabs';
91
+ $is_premium = $this->custom_plugin_data->is_premium;
92
+ $opt_pfx = $this->custom_plugin_data->db_option_prefix;
93
+ ?>
94
+ <div class="wrap welcome new-features<?php echo $tab_classes; ?>">
95
+ <?php echo $tabs_list_html; ?>
96
+ <div class="wpgo-settings-inner">
97
+ <h1 class="heading"><?php _e( 'Simple Sitemap New Features & Updates!', 'simple-sitemap' ); ?></h1>
98
+ <p style="font-size:18px;">Features added in recent releases will appear here, ordered by the date first implemented. If you'd like to be notified of all plugin changes as soon as they're available then please <a href="https://us4.list-manage.com/subscribe?u=7ac9d1df68c71b93569502c5c&id=e4929d34d7" target="_blank">signup to our newsletter</a>. And if you have any suggestions for new features you'd like to see added to the plugin then why not <a href="<?php echo $this->custom_plugin_data->contact_us_url; ?>">drop us a line</a>? We always like to hear feedback from our users. Tell us what's on your mind!</p>
99
+ <?php
100
+ echo $this->new_features_fw->new_features_loop(
101
+ $this->new_features_arr,
102
+ $this->freemius_discount_upgrade_url,
103
+ $is_premium,
104
+ $this->plugin_data,
105
+ 'lib'
106
+ );
107
+ ?>
108
+ </div>
109
+ </div>
110
+ <?php
111
+ }
112
+
113
+ } /* End class definition */
lib/classes/plugin-admin-pages/class-settings-welcome.php ADDED
@@ -0,0 +1,215 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace WPGO_Plugins\Simple_Sitemap;
4
+
5
+ /**
6
+ * Plugin 'Welcome' settings page
7
+ */
8
+ class Settings_Welcome {
9
+
10
+ /**
11
+ * Common root paths/directories.
12
+ *
13
+ * @var $module_roots
14
+ */
15
+ protected $module_roots;
16
+
17
+ /**
18
+ * Main class constructor.
19
+ *
20
+ * @param Array $module_roots Root plugin path/dir.
21
+ * @param Array $plugin_data Plugin data.
22
+ * @param Array $custom_plugin_data Custom plugin data.
23
+ * @param Array $utility Utility data.
24
+ */
25
+ public function __construct( $module_roots, $plugin_data, $custom_plugin_data, $utility ) {
26
+ $this->module_roots = $module_roots;
27
+ $this->plugin_data = $plugin_data;
28
+ $this->custom_plugin_data = $custom_plugin_data;
29
+ $this->freemius_upgrade_url = $this->custom_plugin_data->freemius_upgrade_url;
30
+ $this->freemius_discount_upgrade_url = $this->custom_plugin_data->freemius_discount_upgrade_url;
31
+ $this->new_features_url = $this->custom_plugin_data->new_features_url;
32
+ $this->admin_url = $this->custom_plugin_data->admin_url;
33
+ $this->utility = $utility;
34
+
35
+ // $this->pro_attribute = '<span class="pro" title="Shortcode attribute available in ' . $this->custom_plugin_data->main_menu_label . ' Pro"><a href="' . $this->freemius_upgrade_url . '">PRO</a></span>';
36
+ // $this->settings_slug = $this->custom_plugin_data->settings_pages['settings']['slug'];
37
+ // $this->new_features_slug = $this->custom_plugin_data->settings_pages['new-features']['slug'];
38
+ $this->welcome_slug = $this->custom_plugin_data->settings_pages['welcome']['slug'];
39
+ $this->plugin_data = $plugin_data;
40
+
41
+ add_action( 'admin_menu', array( &$this, 'add_options_page' ) );
42
+ }
43
+
44
+ /**
45
+ * Add menu page.
46
+ */
47
+ public function add_options_page() {
48
+ $parent_slug = null;
49
+
50
+ if ( SITEMAP_FREEMIUS_NAVIGATION === 'tabs' ) {
51
+ // Only show submenu page when tabs enabled if welcome tab is active.
52
+ if ( isset( $_GET['page'] ) && $_GET['page'] === $this->welcome_slug ) {
53
+ $parent_slug = $this->custom_plugin_data->parent_slug;
54
+ }
55
+ } else {
56
+ // Always use this if navigation is set to 'menu'.
57
+ $parent_slug = $this->custom_plugin_data->parent_slug;
58
+ }
59
+
60
+ if ( 'top' === $this->custom_plugin_data->menu_type || 'top-cpt' === $this->custom_plugin_data->menu_type ) {
61
+ $label = 'About';
62
+ } elseif ( 'sub' === $this->custom_plugin_data->menu_type ) {
63
+ $label = '<span class="fs-submenu-item fs-sub wpgo-plugins">About</span>';
64
+ }
65
+
66
+ $hook = add_submenu_page(
67
+ 'simple-sitemap-menu', //$parent_slug,
68
+ __( 'Welcome to ' . $this->custom_plugin_data->main_menu_label, 'simple-sitemap' ),
69
+ $label,
70
+ 'manage_options',
71
+ 'simple-sitemap-menu-welcome', // $this->welcome_slug,
72
+ array( &$this, 'render_sub_menu_form' )
73
+ );
74
+
75
+ }
76
+
77
+ /**
78
+ * Display the sub menu page.
79
+ */
80
+ public function render_sub_menu_form() {
81
+
82
+ $tabs_list_html = $this->utility->build_settings_tabs_html( $this->plugin_data );
83
+ $tab_classes = SITEMAP_FREEMIUS_NAVIGATION === 'tabs' ? ' fs-section fs-full-size-wrapper' : ' no-tabs';
84
+ $is_premium = $this->custom_plugin_data->is_premium;
85
+ $plugin_lbl = $this->custom_plugin_data->main_menu_label;
86
+ $more_features = $is_premium ? 'View the full set of <a href="https://wpgoplugins.com/document/simple-sitemap-pro-documentation/" target="_blank">shortcode attributes</a> available.' : 'See the <a href="' . $this->custom_plugin_data->main_settings_url . '">main settings</a> page for a list of shortcode attributes available in the free version (expand the <strong>Shortcode Attributes & Default Values</strong> section).';
87
+ ?>
88
+ <div class="wrap <?php echo $tab_classes; ?> about-wrap">
89
+ <?php echo $tabs_list_html; ?>
90
+ <div class="wpgo-settings-inner about-con">
91
+ <div class="header">
92
+ <div class="header-img">
93
+ <img style="box-shadow:none;" src="<?php echo $this->module_roots['uri'] . '/lib/assets/images/simple-sitemap.svg'; ?>" />
94
+ </div>
95
+ <div class="sub-header">
96
+ <div class="sub-header-title">
97
+ <div>
98
+ <h1 class="title">Welcome to <?php _e( $plugin_lbl . '!', 'simple-sitemap' ); ?></h1>
99
+ </div>
100
+ <div>
101
+ <span class="dashicons dashicons-flag"></span>
102
+ <span class="title-ver">v<?php echo $this->plugin_data['Version']; ?></span>
103
+ <span style="display:none;" class="title-ver">v<?php echo $this->plugin_data['Version']; ?> | <a href="#">Changelog</a></span>
104
+ </div>
105
+ </div>
106
+ <div class="title-desc">
107
+ <p>This release see's a new positive direction for the Simple Sitemap plugin. Starting with this version you'll be redirected to this welcome page upon activation (and when updating). There's also a <a href="<?php echo $this->new_features_url; ?>">New Features & Updates</a> page which goes into more detail about new plugin features and other relevant updates.</p>
108
+ </div>
109
+ </div>
110
+ </div>
111
+
112
+ <?php if ( ! $is_premium ) : ?>
113
+ <table class="premium-tbl">
114
+ <tr>
115
+ <td>
116
+ <a href="<?php echo $this->freemius_discount_upgrade_url; ?>">
117
+ <button class="button upgrade-txt-pc" title="Apply the exclusive discount offer right now">Upgrade to PRO - <span style="color:red;">30% OFF</span></button>
118
+ </a>
119
+ </td>
120
+ <td>
121
+ <div class="detail-cel">
122
+ <strong>Exclusive discount offer for our FREE plugin users!</strong>
123
+ Get immediate access to <a class="upgrade-link" href="<?php echo $this->freemius_upgrade_url; ?>" title="View the FULL list of pro plugin features" target="_blank">all Pro features</a> right now, at a significantly reduced price! <small>(first year only - renewals charged at normal rate)</small>
124
+ </div>
125
+ </td>
126
+ </tr>
127
+ </table>
128
+ <?php endif; ?>
129
+
130
+ <div class="plugin-desc-con">
131
+ <div class="new-con plugin-des-item">
132
+ <div class="new-fea-con-des">
133
+ <h2 style="margin-top:25px;" class="sub-title">What's New in <?php echo $this->plugin_data['Version']; ?>?</h2>
134
+ <p>To see all new major features for this plugin release, click the <span style="font-weight:bold;">'New Features'</span> button below for more details. You can also access the plugin documentation, and check out the the live sitemap demo examples via the other two buttons.</p>
135
+ <div>
136
+ <span><a class="plugin-btn" href="<?php echo $this->new_features_url; ?>">New Features<span style="margin:0 -2px 0 3px;width:18px;height:18px;" class="dashicons dashicons-arrow-right-alt2"></span></a></span>
137
+ <span style="margin-left:5px;"><a style="background:#933c60;border:2px #6d314a solid;" class="plugin-btn" href="https://wpgoplugins.com/document/simple-sitemap-pro-documentation/" target="_blank">Plugin Docs</a></span>
138
+ <span style="margin-left:5px;"><a style="background:#f5a356;border:2px #d9914e solid;" class="plugin-btn" href="https://demo.wpgothemes.com/flexr/simple-sitemap-pro-demo/" target="_blank">Sitemap Live Demo</a></span>
139
+ </div>
140
+ </div>
141
+
142
+ <div class="getting-start-con plugin-des-item">
143
+ <h2 class="sub-title">Getting Started Using <?php echo $plugin_lbl; ?></h2>
144
+ <p>The Simple Sitemap plugin is one of the easiest way to add a comprehensive HTML sitemap to your website. To get started quickly, follow these steps and you'll be creating a sitemap in no time at all. For full instructions take a look at the plugin <a href="https://wpgoplugins.com/document/simple-sitemap-pro-documentation/" target="_blank">documentation</a>.</p>
145
+ <div class="getting-start-gen-con">
146
+ <div class="getting-start-gen">
147
+ <h3 style="margin-top:0;display:flex;align-items:center;"><span><img style="margin:0 6px 2px 0;width:40px;" src="<?php echo $this->module_roots['uri'] . '/lib/assets/images/icons/1s.svg'; ?>" /></span><span> Create an HTML Sitemap Page</span></h3>
148
+ <p>The first thing to do is to create a <a href="<?php echo $this->admin_url . '/post-new.php?post_type=page'; ?>" target="_blank">new page</a> that you want to display the sitemap on. Then, enter a page title. e.g. "Sitemap".</p>
149
+ </div>
150
+ <div class="getting-start-img">
151
+ <img src="<?php echo $this->module_roots['uri'] . '/lib/assets/images/create-sitemap-page.png'; ?>" />
152
+ </div>
153
+ </div>
154
+ <div class="getting-start-gen-con">
155
+ <div class="getting-start-gen">
156
+ <h3 style="margin-top:0;display:flex;align-items:center;"><span><img style="margin:0 6px 2px 0;width:40px;" src="<?php echo $this->module_roots['uri'] . '/lib/assets/images/icons/2s.svg'; ?>" /></span><span> Add a Sitemap Block or Shortcode</span></h3>
157
+ <p>There are two ways to add a sitemap into a post or page:</p>
158
+ <ul style="list-style:initial;padding-left:20px;">
159
+ <li><a href="https://wordpress.org/support/article/adding-a-new-block/" target="_blank">Blocks</a></li>
160
+ <li><a href="https://codex.wordpress.org/shortcode" target="_blank">Shortcodes</a></li>
161
+ </ul>
162
+ <p>If you want to add a sitemap block then you can see a list of available ones via the block inserter (along with all the other blocks). To find them quicker just start typing <em>'sitemap'</em> in the block inserter to see only sitemap blocks listed.</p>
163
+ <p>Sitemap shortcodes are also included in the plugin as they can be used in any page builder too, which is very useful if you're not using the core block editor. Any block setting is also available as a shortcode attribute for convenience. See <a href="https://wpgoplugins.com/document/simple-sitemap-pro-documentation/#simple-sitemap-shortcodes" target="_blank">here</a> for a list of available sitemap shortcodes.</p>
164
+ </div>
165
+ <div class="getting-start-img">
166
+ <img src="<?php echo $this->module_roots['uri'] . '/lib/assets/images/add-sitemap-block.png'; ?>" />
167
+ </div>
168
+ </div>
169
+ <div class="getting-start-gen-con">
170
+ <div class="getting-start-gen">
171
+ <h3 style="margin-top:0;display:flex;align-items:center;"><span><img style="margin:0 6px 2px 0;width:40px;" src="<?php echo $this->module_roots['uri'] . '/lib/assets/images/icons/3s.svg'; ?>" /></span><span> Customize & Display</span></h3>
172
+ <p>Once you've inserted a Sitemap block into the editor you can configure block options via the settings sidebar panel to the right.</p>
173
+ <p>There are many options to choose from so take your time looking through each settings panel.</p>
174
+ <p>If you're using the sitemap shortcodes then take a look <a href="https://wpgoplugins.com/document/simple-sitemap-pro-documentation/#simple-sitemap-shortcodes" target="_blank">here</a> for all the various shortcodes and attributes that are available.</p>
175
+ </div>
176
+ <div class="getting-start-img">
177
+ <img src="<?php echo $this->module_roots['uri'] . '/lib/assets/images/customise-sitemap.png'; ?>" />
178
+ </div>
179
+ </div>
180
+ <div class="getting-start-gen-con">
181
+ <div class="getting-start-gen">
182
+ <h3 style="margin-top:0;display:flex;align-items:center;"><span><img style="margin:0 6px 2px 0;width:40px;" src="<?php echo $this->module_roots['uri'] . '/lib/assets/images/icons/4s.svg'; ?>" /></span><span> Let's Get Started!</span></h3>
183
+ <p>OK, time to get started. What would you like to do first? <span class="dashicons dashicons-smiley"></span></p>
184
+ <div>
185
+ <div><a class="plugin-btn get-started-btn" href="<?php echo $this->admin_url . '/post-new.php?post_type=page'; ?>" target="_blank"><span style="margin:0 -2px 0 3px;width:18px;height:18px;" class="dashicons dashicons-arrow-right-alt2"></span><span class="get-started-txt">Add a new Sitemap page</span></a></div>
186
+ <div><a class="plugin-btn get-started-btn" href="https://wpgoplugins.com/document/simple-sitemap-pro-documentation/" target="_blank"><span style="margin:0 -2px 0 3px;width:18px;height:18px;" class="dashicons dashicons-arrow-right-alt2"></span><span class="get-started-txt">View plugin documentation</span></a></div>
187
+ <div><a class="plugin-btn get-started-btn" href="https://demo.wpgothemes.com/flexr/simple-sitemap-pro-demo/" target="_blank"><span style="margin:0 -2px 0 3px;width:18px;height:18px;" class="dashicons dashicons-arrow-right-alt2"></span><span class="get-started-txt">See some examples</span></a></div>
188
+ <div><a class="plugin-btn get-started-btn" href="<?php echo $this->custom_plugin_data->contact_us_url; ?>" target="_blank"><span style="margin:0 -2px 0 3px;width:18px;height:18px;" class="dashicons dashicons-arrow-right-alt2"></span><span class="get-started-txt">Ask us a question</span></a></div>
189
+ </div>
190
+ </div>
191
+ </div>
192
+ </div>
193
+ <div class="coming-soon-con">
194
+ <h2 class="sub-title">Coming Soon</h2>
195
+ <p>We're not done yet! There's still lot's more feature we want to add to <?php echo $plugin_lbl; ?>. Some of the upcoming features include:</p>
196
+ <ul class="coming-soon-ul">
197
+ <li>More sitemap block settings.</li>
198
+ <li>New sitemap blocks.</li>
199
+ <li>Display number of posts in the sitemap.</li>
200
+ <li>Add dates to sitemap items.</li>
201
+ <li>More color options.</li>
202
+ <li>Add font options.</li>
203
+ <li><strong><em>Plus many more...</em></strong></li>
204
+ </ul>
205
+ <p>If you'd like to be notified of all plugin changes as soon as they are available then please <a href="http://eepurl.com/bXZmmD" target="_blank">signup to our newsletter</a>.</p>
206
+ <p>Or, if you'd like to see a new feature added then why not drop us a line? We always like to hear how our plugins can be improved. Click the button below to send us a message and tell us what's on your mind.</a></p>
207
+ <p><a href="<?php echo $this->custom_plugin_data->contact_us_url; ?>"><button class="button"><strong>Suggest a Feature</strong></button></a></p>
208
+ </div>
209
+ </div>
210
+ </div>
211
+ </div>
212
+ <?php
213
+ }
214
+
215
+ } /* End class definition */
lib/classes/{settings.php → plugin-admin-pages/class-settings.php} RENAMED
@@ -19,14 +19,47 @@ class Settings
19
  * @param Array $module_roots Root plugin path/dir.
20
  * @param Array $settings_fw Plugin framework settings.
21
  */
22
- public function __construct( $module_roots, $settings_fw )
 
 
 
 
 
 
 
23
  {
24
  $this->module_roots = $module_roots;
25
- $this->hook_prefix = 'simple_sitemap';
 
 
 
26
  $this->settings_fw = $settings_fw;
 
 
 
 
 
 
27
  add_action( 'admin_init', array( &$this, 'register_plugin_settings' ) );
28
  add_action( 'admin_menu', array( &$this, 'add_options_page' ) );
29
  add_filter( 'simple_sitemap_defaults', array( &$this, 'add_defaults' ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
  }
31
 
32
  /**
@@ -43,11 +76,15 @@ class Settings
43
  */
44
  public function add_options_page()
45
  {
 
 
 
 
46
  add_menu_page(
47
  __( 'Simple Sitemap Settings Page', 'simple-sitemap' ),
48
- __( 'Simple Sitemap', 'simple-sitemap' ),
49
  'manage_options',
50
- 'simple-sitemap-menu',
51
  array( &$this, 'render' ),
52
  'dashicons-pressthis',
53
  82
@@ -58,7 +95,7 @@ class Settings
58
  'Simple Sitemap Settings Page',
59
  'Settings',
60
  'manage_options',
61
- 'simple-sitemap-menu'
62
  );
63
  }
64
 
@@ -102,112 +139,47 @@ class Settings
102
  $pro_attribute = '';
103
  $pro_attribute = '&nbsp;<span class="pro" title="Click to get immediate access to this feature"><a href="' . $freemius_upgrade_url . '">PRO</a></span>';
104
  ?>
105
- <div class="wrap">
106
-
107
- <h1 class="heading"><?php
108
- _e( 'Simple Sitemap - Settings', 'simple-sitemap' );
109
- ?></h1>
110
- <div style="position:absolute;padding:15px;top:5px;right:0;"><a style="text-decoration:none;" title="Check out our other plugins" alt="WPGO Plugins Site" href="https://wpgoplugins.com/" target="_blank">wpgoplugins.com</a></div>
111
-
112
- <div style="clear:both;"></div>
113
-
114
- <?php
115
- // Check to see if user clicked on the reset options button.
116
-
117
- if ( isset( $_POST['reset_options'] ) ) {
118
- // Reset plugin defaults.
119
- update_option( 'simple_sitemap_options', self::get_default_plugin_options() );
120
- // Display update notice here.
121
- ?>
122
- <div style="margin:20px 0 10px;">
123
- <p><strong><?php
124
- echo 'Settings reset.' ;
125
- ?></strong></p><button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button>
126
- </div>
127
- <?php
128
- }
129
-
130
- ?>
131
-
132
- <div style="margin:20px 0 10px;font-size:16px;line-height:1.5em;">What type of sitemap will you create today? There are just so many different types of sitemap to choose from. That's why we recommend checking out the <a href="http://demo.wpgothemes.com/flexr/simple-sitemap-pro-demo/" target="_blank">live demo</a> page to start with to see all the different types of sitemap available!</div>
133
-
134
- <div><span><a class="plugin-btn" href="http://demo.wpgothemes.com/flexr/simple-sitemap-pro-demo/" target="_blank">Sitemap Live Demo</a></span><span style="margin-left:10px;"><a class="plugin-btn" href="https://wpgoplugins.com/document/simple-sitemap-pro-documentation/" target="_blank">Plugin Docs</a></span></div>
135
-
136
- <h2 style="margin:35px 0 0 0;">Sitemap Settings</h2>
137
 
138
- <div class="ss-box" style="margin-top:20px;">
139
- <p>Use this section to manage plugin options.</p>
140
-
141
- <div style="padding-top:10px;" id="settings-wrap">
142
-
143
- <!-- Start Main Form -->
144
- <form id="plugin-options-form" method="post" action="options.php">
145
- <?php
146
- $options = self::get_plugin_options();
147
- settings_fields( 'simple_sitemap_options_group' );
148
- ?>
149
-
150
- <div class="simple-sitemap-pro-tab">
151
- <table class="form-table">
152
-
153
- <tr valign="top">
154
- <td colspan="2" style="padding:0;">
155
- <div>
156
-
157
- <label><input name="simple_sitemap_options[chk_parent_page_link]" type="checkbox" value="1"
158
- <?php
159
- if ( isset( $options['chk_parent_page_link'] ) ) {
160
- checked( '1', $options['chk_parent_page_link'] );
161
- }
162
  ?>
163
- > Remove parent page links?</label><br><br>
164
 
165
- <input type="text" class="exclude regular-text code" name="simple_sitemap_options[txt_exclude_parent_pages]" value="<?php
166
- echo $options['txt_exclude_parent_pages'] ;
 
 
167
  ?>">
168
-
169
- <p class="description">Enter comma separated list of parent page IDs to remove specific links. Leave blank to remove ALL parent page links.</p>
170
- </div>
171
- </td>
172
- </tr>
173
-
174
- <tr valign="top" style="display:none;">
175
- <th scope="row">Advanced Configuration</th>
176
- <td>
177
- <textarea name="simple_sitemap_options[txtar_sitemap_script]" rows="7" cols="50" type='textarea'><?php
178
- echo $options['txtar_sitemap_script'] ;
179
- ?></textarea>
180
- <p class="description">Add script into the box above to output an advanced sitemap.</p>
181
- </td>
182
- </tr>
183
- </table>
184
- </div>
185
-
186
- <div class="support-tab">
187
- <?php
188
- do_settings_sections( 'simple-sitemap-menu' );
189
- ?>
190
- </div>
191
-
192
  <?php
193
- submit_button();
194
  ?>
 
 
 
 
 
 
 
 
 
195
 
196
- </form>
197
- <!-- main form closing tag -->
198
-
199
- <form action="<?php
200
- echo self::current_url() ;
201
- // current page url
202
- ?>" method="post" id="simple-sitemap-reset-form" style="display:inline;">
203
- <div style="padding-bottom:10px;"><span id="simple-sitemap-reset"><a href="#">Reset plugin options</a><input type="hidden" name="reset_options" value="true"></span></div>
204
- </form>
205
  </div>
206
- </div>
207
 
208
  <h2 style="margin:35px 0 0 0;">Sitemap Blocks</h2>
209
 
210
- <div class="ss-box" style="margin-top:20px;">
 
 
 
 
211
  <h4 style="margin-top:5px;display:inline-block;margin-bottom:10px;">Available Blocks</h4><button id="blocks-btn" class="button">Expand <span style="vertical-align:sub;width:16px;height:16px;font-size:16px;" class="dashicons dashicons-arrow-down-alt2"></span></button>
212
 
213
  <div style="padding-top:0;" id="blocks-wrap">
@@ -242,9 +214,11 @@ class Settings
242
 
243
  <h2 style="margin:35px 0 0 0;">Sitemap Shortcodes</h2>
244
 
 
 
245
  <p style="font-size:14px;">Expand the section directly below to see all Simple Sitemap shortcodes currently available, along with a full list of supported shortcode attributes.</p>
246
 
247
- <div class="ss-box">
248
  <h4 style="margin-top:5px;display:inline-block;margin-bottom:10px;">Available Shortcodes & Supported Attributes</h4><button id="attributes-btn" class="button">Expand <span style="vertical-align:sub;width:16px;height:16px;font-size:16px;" class="dashicons dashicons-arrow-down-alt2"></span></button>
249
  <div id="attributes-wrap" style="padding-bottom:10px;">
250
  <div style="padding-top:0;">
@@ -373,6 +347,7 @@ class Settings
373
  <li><code>show_label="true"</code> - Optionally show post type label above the sitemap list of posts.</li>
374
  <li><code>page_depth="0"</code> - For the 'page' post type allow the indentation depth to be specified.</li>
375
  <li><code>container_tag="ul"</code> - List type tag, ordered, or unordered.</li>
 
376
  <li><code>type="post"</code><?php
377
  echo $pro_attribute ;
378
  ?> - List posts grouped by taxonomy from ANY post type.</li>
@@ -525,6 +500,78 @@ class Settings
525
  </div>
526
  </div>
527
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
528
  <div style="margin-top:25px;"></div>
529
 
530
  <h2 style="margin:35px 0 0 0;">Stay In Touch!</h2>
@@ -552,7 +599,7 @@ class Settings
552
  ?>
553
 
554
  </table>
555
-
556
  </div>
557
  <?php
558
  }
@@ -603,5 +650,111 @@ class Settings
603
  // self::get_default_plugin_options()
604
  // );
605
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
606
 
607
  }
19
  * @param Array $module_roots Root plugin path/dir.
20
  * @param Array $settings_fw Plugin framework settings.
21
  */
22
+ public function __construct(
23
+ $module_roots,
24
+ $plugin_data,
25
+ $custom_plugin_data,
26
+ $utility,
27
+ $settings_fw,
28
+ $new_features_arr
29
+ )
30
  {
31
  $this->module_roots = $module_roots;
32
+ $this->custom_plugin_data = $custom_plugin_data;
33
+ $this->hook_prefix = $this->custom_plugin_data->plugin_settings_prefix;
34
+ $this->freemius_upgrade_url = $this->custom_plugin_data->freemius_upgrade_url;
35
+ $this->utility = $utility;
36
  $this->settings_fw = $settings_fw;
37
+ $this->plugin_data = $plugin_data;
38
+ $this->new_features_arr = $new_features_arr;
39
+ $this->pro_attribute = ( $this->custom_plugin_data->is_premium ? '' : '<span class="pro" title="Upgrade now for immediate access to this feature"><a href="' . $this->freemius_upgrade_url . '">PRO</a></span>' );
40
+ $this->settings_slug = $this->custom_plugin_data->settings_pages['settings']['slug'];
41
+ $this->new_features_slug = $this->custom_plugin_data->settings_pages['new-features']['slug'];
42
+ $this->welcome_slug = $this->custom_plugin_data->settings_pages['welcome']['slug'];
43
  add_action( 'admin_init', array( &$this, 'register_plugin_settings' ) );
44
  add_action( 'admin_menu', array( &$this, 'add_options_page' ) );
45
  add_filter( 'simple_sitemap_defaults', array( &$this, 'add_defaults' ) );
46
+ add_filter( 'custom_menu_order', array( &$this, 'filter_menu_order' ) );
47
+ // enable custom menu ordering.
48
+ add_action( 'admin_notices', function () {
49
+ // Check to see if user clicked on the reset options button.
50
+
51
+ if ( isset( $_POST['reset_options'] ) ) {
52
+ // Display update notice here.
53
+ ?>
54
+ <div class="notice notice-success is-dismissible">
55
+ <p>Plugin settings reset to defaults.</p>
56
+ </div>
57
+ <?php
58
+ // Reset plugin defaults.
59
+ update_option( 'simple_sitemap_options', self::get_default_plugin_options() );
60
+ }
61
+
62
+ } );
63
  }
64
 
65
  /**
76
  */
77
  public function add_options_page()
78
  {
79
+ // @todo calc this in constants.php just once and pass it in.
80
+ $opt_pfx = $this->custom_plugin_data->db_option_prefix;
81
+ $new_features_number = \WPGO_Plugins\Plugin_Framework\Upgrade_FW::calc_new_features( $opt_pfx, $this->new_features_arr, $this->plugin_data );
82
+ $title = ( 0 === $new_features_number ? __( 'Simple Sitemap', 'simple-sitemap' ) : 'Sitemap <span class="update-plugins count-' . $new_features_number . '"><span class="plugin-count">' . $new_features_number . '</span></span>' );
83
  add_menu_page(
84
  __( 'Simple Sitemap Settings Page', 'simple-sitemap' ),
85
+ $title,
86
  'manage_options',
87
+ $this->settings_slug,
88
  array( &$this, 'render' ),
89
  'dashicons-pressthis',
90
  82
95
  'Simple Sitemap Settings Page',
96
  'Settings',
97
  'manage_options',
98
+ $this->settings_slug
99
  );
100
  }
101
 
139
  $pro_attribute = '';
140
  $pro_attribute = '&nbsp;<span class="pro" title="Click to get immediate access to this feature"><a href="' . $freemius_upgrade_url . '">PRO</a></span>';
141
  ?>
142
+ <div class="wrap welcome main no-tabs">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
143
 
144
+ <?php
145
+ // Display setting update messages.
146
+ settings_errors();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
147
  ?>
148
+ <div class="wpgo-settings-inner">
149
 
150
+ <div class="wpgo-settings-page-header">
151
+ <h1 class="heading">
152
+ <img src="<?php
153
+ echo $this->module_roots['uri'] . '/lib/assets/images/simple-sitemap.svg' ;
154
  ?>">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
155
  <?php
156
+ _e( 'Simple Sitemap', 'simple-sitemap' );
157
  ?>
158
+ </h1>
159
+ <div class="wpgo-header-btns">
160
+ <a class="plugin-btn" href="<?php
161
+ echo $this->custom_plugin_data->welcome_url ;
162
+ ?>#getting-started">Start Here<span style="width:15px;height:15px;" class="dashicons dashicons-arrow-right-alt2"></span></a>
163
+ <a style="background:#f5a356;border:2px #d9914e solid;" class="plugin-btn" href="https://demo.wpgothemes.com/flexr/simple-sitemap-pro-demo/" target="_blank">Live Demo</a></span>
164
+ <a style="background:#933c60;border:2px #6d314a solid;" class="plugin-btn" href="https://wpgoplugins.com/document/simple-sitemap-pro-documentation/" target="_blank">Plugin Docs</a>
165
+ </div>
166
+ </div>
167
 
168
+ <div class="wpgo-header-description">
169
+ <p class="description-txt">
170
+ To see what's new at a glance and how to use the plugin we recommend visiting the <a href="<?php
171
+ echo $this->custom_plugin_data->welcome_url ;
172
+ ?>">About</a> plugin page. Or, why not take a look at the Simple Sitemap <a href="https://demo.wpgothemes.com/flexr/simple-sitemap-pro-demo/" target="_blank">Live Demo</a> to see plenty of sitemap examples in action.
173
+ </p>
 
 
 
174
  </div>
 
175
 
176
  <h2 style="margin:35px 0 0 0;">Sitemap Blocks</h2>
177
 
178
+ <p>Using blocks is the is the new preferred way to add content to posts and pages. The main benefit is that the editor view is exactly the same as the frontend. This means no more having to switch between the editor and frontend to check how everything looks.</p>
179
+
180
+ <p>Expand the section directly below to see all editor blocks included with the Simple Sitemap plugin.</p>
181
+
182
+ <div class="wpgo-expand-box" style="margin-top:20px;">
183
  <h4 style="margin-top:5px;display:inline-block;margin-bottom:10px;">Available Blocks</h4><button id="blocks-btn" class="button">Expand <span style="vertical-align:sub;width:16px;height:16px;font-size:16px;" class="dashicons dashicons-arrow-down-alt2"></span></button>
184
 
185
  <div style="padding-top:0;" id="blocks-wrap">
214
 
215
  <h2 style="margin:35px 0 0 0;">Sitemap Shortcodes</h2>
216
 
217
+ <p>Shortcodes have been around for a long time in WordPress and, before blocks were available, they were the only really accessible way to add complex or dynamic content to the editor. We've included sitemap shortcodes for those who prefer them to blocks, or if you don't have any choice. e.g. If using a 3rd party page builder, or the block editor has been disabled.</p>
218
+
219
  <p style="font-size:14px;">Expand the section directly below to see all Simple Sitemap shortcodes currently available, along with a full list of supported shortcode attributes.</p>
220
 
221
+ <div class="wpgo-expand-box">
222
  <h4 style="margin-top:5px;display:inline-block;margin-bottom:10px;">Available Shortcodes & Supported Attributes</h4><button id="attributes-btn" class="button">Expand <span style="vertical-align:sub;width:16px;height:16px;font-size:16px;" class="dashicons dashicons-arrow-down-alt2"></span></button>
223
  <div id="attributes-wrap" style="padding-bottom:10px;">
224
  <div style="padding-top:0;">
347
  <li><code>show_label="true"</code> - Optionally show post type label above the sitemap list of posts.</li>
348
  <li><code>page_depth="0"</code> - For the 'page' post type allow the indentation depth to be specified.</li>
349
  <li><code>container_tag="ul"</code> - List type tag, ordered, or unordered.</li>
350
+ <li><code>num_terms="0"</code> - Limit the number of taxonomy terms displayed.</li>
351
  <li><code>type="post"</code><?php
352
  echo $pro_attribute ;
353
  ?> - List posts grouped by taxonomy from ANY post type.</li>
500
  </div>
501
  </div>
502
 
503
+ <h2 style="margin:35px 0 0 0;">Sitemap Settings</h2>
504
+
505
+ <div class="wpgo-expand-box" style="margin-top:20px;">
506
+ <p>Use this section to manage plugin options.</p>
507
+
508
+ <div style="padding-top:10px;" class="settings-wrap">
509
+
510
+ <!-- Start Main Form -->
511
+ <form id="plugin-options-form" method="post" action="options.php">
512
+ <?php
513
+ $options = self::get_plugin_options();
514
+ settings_fields( 'simple_sitemap_options_group' );
515
+ ?>
516
+
517
+ <div class="simple-sitemap-pro-tab">
518
+ <table class="form-table">
519
+
520
+ <tr valign="top">
521
+ <td colspan="2" style="padding:0;">
522
+ <div>
523
+
524
+ <label><input name="simple_sitemap_options[chk_parent_page_link]" type="checkbox" value="1"
525
+ <?php
526
+ if ( isset( $options['chk_parent_page_link'] ) ) {
527
+ checked( '1', $options['chk_parent_page_link'] );
528
+ }
529
+ ?>
530
+ > Remove parent page links?</label><br><br>
531
+
532
+ <input type="text" class="exclude regular-text code" name="simple_sitemap_options[txt_exclude_parent_pages]" value="<?php
533
+ echo $options['txt_exclude_parent_pages'] ;
534
+ ?>">
535
+
536
+ <p class="description">Enter comma separated list of parent page IDs to remove specific links. Leave blank to remove ALL parent page links.</p>
537
+ </div>
538
+ </td>
539
+ </tr>
540
+
541
+ <tr valign="top" style="display:none;">
542
+ <th scope="row">Advanced Configuration</th>
543
+ <td>
544
+ <textarea name="simple_sitemap_options[txtar_sitemap_script]" rows="7" cols="50" type='textarea'><?php
545
+ echo $options['txtar_sitemap_script'] ;
546
+ ?></textarea>
547
+ <p class="description">Add script into the box above to output an advanced sitemap.</p>
548
+ </td>
549
+ </tr>
550
+ </table>
551
+ </div>
552
+
553
+ <div class="support-tab">
554
+ <?php
555
+ do_settings_sections( 'simple-sitemap-menu' );
556
+ ?>
557
+ </div>
558
+
559
+ <?php
560
+ submit_button();
561
+ ?>
562
+
563
+ </form>
564
+ <!-- main form closing tag -->
565
+
566
+ <form action="<?php
567
+ echo self::current_url() ;
568
+ // current page url
569
+ ?>" method="post" id="simple-sitemap-reset-form" style="display:inline;">
570
+ <div style="padding-bottom:10px;"><span id="simple-sitemap-reset"><a href="#">Reset plugin options</a><input type="hidden" name="reset_options" value="true"></span></div>
571
+ </form>
572
+ </div>
573
+ </div>
574
+
575
  <div style="margin-top:25px;"></div>
576
 
577
  <h2 style="margin:35px 0 0 0;">Stay In Touch!</h2>
599
  ?>
600
 
601
  </table>
602
+ </div>
603
  </div>
604
  <?php
605
  }
650
  // self::get_default_plugin_options()
651
  // );
652
  }
653
+
654
+ /**
655
+ * Filters the order of menu.
656
+ *
657
+ * @param String $custom A custom request string.
658
+ * @return Array List of items in the menu.
659
+ *
660
+ * @todo Add this to the plugin framework.
661
+ */
662
+ public function filter_menu_order( $custom )
663
+ {
664
+ global $submenu ;
665
+ // selectively rearrange for 'tabs', and always for 'menu' .
666
+ if ( SITEMAP_FREEMIUS_NAVIGATION === 'tabs' ) {
667
+ // don't bother to rearrange unless the submenu page is displayed.
668
+ if ( !isset( $_GET['page'] ) || $_GET['page'] !== $this->new_features_slug && $_GET['page'] !== $this->welcome_slug ) {
669
+ return $custom;
670
+ }
671
+ }
672
+ $parent_slug = $this->custom_plugin_data->parent_slug;
673
+ $menu_type = $this->custom_plugin_data->menu_type;
674
+ $pricingpage_index = 0;
675
+ $parent_index = 0;
676
+ $subpage_index1 = 0;
677
+ $subpage_index2 = 0;
678
+ $wp_org_support_forum_index = 0;
679
+ // if global menu array is empty then don't try to re-index. This is typically empty when the Freemius
680
+ // opt-in is displayed.
681
+ if ( empty($submenu[$parent_slug]) ) {
682
+ return $custom;
683
+ }
684
+ // store menu indexes of settings pages.
685
+ foreach ( $submenu[$parent_slug] as $menu_index => $val ) {
686
+ $menu_slug = $val[2];
687
+ if ( $menu_slug === $this->settings_slug ) {
688
+ $parent_index = $menu_index;
689
+ }
690
+ if ( $menu_slug === $this->new_features_slug ) {
691
+ $subpage_index1 = $menu_index;
692
+ }
693
+ if ( $menu_slug === $this->welcome_slug ) {
694
+ $subpage_index2 = $menu_index;
695
+ }
696
+ if ( $menu_slug === $this->custom_plugin_data->plugin_cpt_slug . '-wp-support-forum' ) {
697
+ $wp_org_support_forum_index = $menu_index;
698
+ }
699
+ if ( $val[2] === $this->custom_plugin_data->freemius_slug . '-pricing' ) {
700
+ $pricingpage_index = $menu_index;
701
+ }
702
+ // in the case of a CPT being used as the parent menu the Freemius generated pages will use
703
+ // a different prefix to the normal one
704
+ // if ($this->custom_plugin_data->menu_type === 'top-cpt') {
705
+ // if ($menu_slug === $this->custom_plugin_data->plugin_cpt_slug . '-pricing') {
706
+ // $pricingpage_index = $menu_index;
707
+ // }
708
+ // } else {
709
+ // if ($menu_slug === $this->settings_slug . '-pricing') {
710
+ // $pricingpage_index = $menu_index;
711
+ // }
712
+ // } // .
713
+ }
714
+ // Only re-index new features page if menu type is 'sub'.
715
+ if ( 'sub' === $menu_type ) {
716
+ // Only re-index if tabs are active and we're on new feature settings page OR tabs are not active.
717
+
718
+ if ( SITEMAP_FREEMIUS_NAVIGATION === 'tabs' && $_GET['page'] === $this->new_features_slug || SITEMAP_FREEMIUS_NAVIGATION === 'menu' ) {
719
+ // Find the next available index after the main settings page.
720
+ $tmp_parent_index1 = $parent_index;
721
+ while ( isset( $submenu[$parent_slug][$tmp_parent_index1] ) ) {
722
+ $tmp_parent_index1++;
723
+ }
724
+ // Move new features page to next position after main settings page.
725
+ $submenu[$parent_slug][$tmp_parent_index1] = $submenu[$parent_slug][$subpage_index1];
726
+ unset( $submenu[$parent_slug][$subpage_index1] );
727
+ ksort( $submenu[$parent_slug] );
728
+ }
729
+
730
+ }
731
+ // Only re-index welcome (about) page if tabs are active and we're on welcome settings page, OR tabs are not active.
732
+
733
+ if ( SITEMAP_FREEMIUS_NAVIGATION === 'tabs' && $_GET['page'] === $this->welcome_slug || SITEMAP_FREEMIUS_NAVIGATION === 'menu' ) {
734
+ // Find the next available index after the pricing page unless tabs are active in which case get next.
735
+ // Available index after main settings page.
736
+
737
+ if ( SITEMAP_FREEMIUS_NAVIGATION === 'tabs' ) {
738
+ $tmp_parent_index2 = $parent_index;
739
+ } else {
740
+ $tmp_parent_index2 = $pricingpage_index;
741
+ }
742
+
743
+ // $pricingpage_index will be 0 when license has been activated
744
+ // @todo perhaps better to always make the about page last menu item rather than dependent on pricing page (if it exists).
745
+ if ( 0 === $pricingpage_index ) {
746
+ $tmp_parent_index2 = $wp_org_support_forum_index;
747
+ }
748
+ while ( isset( $submenu[$parent_slug][$tmp_parent_index2] ) ) {
749
+ $tmp_parent_index2++;
750
+ }
751
+ // Move welcome page to next position after pricing/support forum page.
752
+ $submenu[$parent_slug][$tmp_parent_index2] = $submenu[$parent_slug][$subpage_index2];
753
+ unset( $submenu[$parent_slug][$subpage_index2] );
754
+ ksort( $submenu[$parent_slug] );
755
+ }
756
+
757
+ return $custom;
758
+ }
759
 
760
  }
lib/classes/register-blocks.php CHANGED
@@ -160,6 +160,10 @@ class Register_Blocks
160
  'block_post_type' => array(
161
  'type' => 'string',
162
  'default' => 'post',
 
 
 
 
163
  ),
164
  'gutenberg_block' => array(
165
  'type' => 'boolean',
160
  'block_post_type' => array(
161
  'type' => 'string',
162
  'default' => 'post',
163
+ ),
164
+ 'num_terms' => array(
165
+ 'type' => 'number',
166
+ 'default' => 0,
167
  ),
168
  'gutenberg_block' => array(
169
  'type' => 'boolean',
lib/classes/shortcodes/simple-sitemap-group-shortcode.php CHANGED
@@ -116,6 +116,7 @@ class Simple_Sitemap_Group_Shortcode {
116
  'post_type_tag' => 'h3',
117
  'show_label' => 'true',
118
  'container_tag' => 'ul',
 
119
  ),
120
  $attributes,
121
  'simple-sitemap-group'
@@ -164,6 +165,7 @@ class Simple_Sitemap_Group_Shortcode {
164
  $post_type_arr = apply_filters( '_simple_sitemap_group_post_type', array( 'post', $render_err ), $args );
165
  $term_orderby = apply_filters( '_simple_sitemap_group_term_orderby', 'name', $args );
166
  $term_order = apply_filters( '_simple_sitemap_group_term_order', 'asc', $args );
 
167
 
168
  $post_type = $post_type_arr[0];
169
  $render_err = $post_type_arr[1];
@@ -214,6 +216,7 @@ class Simple_Sitemap_Group_Shortcode {
214
  $term_attr = array(
215
  'orderby' => $term_orderby,
216
  'order' => $term_order,
 
217
  );
218
 
219
  $terms = get_terms( $args['tax'], $term_attr );
116
  'post_type_tag' => 'h3',
117
  'show_label' => 'true',
118
  'container_tag' => 'ul',
119
+ 'num_terms' => 0,
120
  ),
121
  $attributes,
122
  'simple-sitemap-group'
165
  $post_type_arr = apply_filters( '_simple_sitemap_group_post_type', array( 'post', $render_err ), $args );
166
  $term_orderby = apply_filters( '_simple_sitemap_group_term_orderby', 'name', $args );
167
  $term_order = apply_filters( '_simple_sitemap_group_term_order', 'asc', $args );
168
+ $num_terms = $args['num_terms'];
169
 
170
  $post_type = $post_type_arr[0];
171
  $render_err = $post_type_arr[1];
216
  $term_attr = array(
217
  'orderby' => $term_orderby,
218
  'order' => $term_order,
219
+ 'number' => $num_terms,
220
  );
221
 
222
  $terms = get_terms( $args['tax'], $term_attr );
lib/languages/simple-sitemap-gb.pot CHANGED
@@ -34,16 +34,16 @@ msgstr ""
34
  msgid "HTML Sitemap"
35
  msgstr ""
36
 
37
- #: lib/src/blocks/simple-sitemap-group/index.js:70
38
- #: lib/src/blocks/simple-sitemap/index.js:151
39
  msgid "General Settings"
40
  msgstr ""
41
 
42
- #: lib/src/blocks/simple-sitemap/index.js:218
43
  msgid "Tab Settings"
44
  msgstr ""
45
 
46
- #: lib/src/blocks/simple-sitemap/index.js:231
47
  msgid "Page Settings"
48
  msgstr ""
49
 
34
  msgid "HTML Sitemap"
35
  msgstr ""
36
 
37
+ #: lib/src/blocks/simple-sitemap-group/index.js:76
38
+ #: lib/src/blocks/simple-sitemap/index.js:156
39
  msgid "General Settings"
40
  msgstr ""
41
 
42
+ #: lib/src/blocks/simple-sitemap/index.js:226
43
  msgid "Tab Settings"
44
  msgstr ""
45
 
46
+ #: lib/src/blocks/simple-sitemap/index.js:239
47
  msgid "Page Settings"
48
  msgstr ""
49
 
lib/src/blocks/simple-sitemap-group/index.js CHANGED
@@ -32,6 +32,12 @@ export default registerBlockType( 'wpgoplugins/simple-sitemap-group-block', {
32
  __( 'HTML Sitemap', 'simple-sitemap' )
33
  ],
34
  category: 'simple-sitemap',
 
 
 
 
 
 
35
  edit: ( props ) => {
36
  const {
37
  attributes: {
32
  __( 'HTML Sitemap', 'simple-sitemap' )
33
  ],
34
  category: 'simple-sitemap',
35
+ example: {
36
+ attributes: {
37
+ num_posts: 5,
38
+ num_terms: 5,
39
+ },
40
+ },
41
  edit: ( props ) => {
42
  const {
43
  attributes: {
lib/src/blocks/simple-sitemap/index.js CHANGED
@@ -32,6 +32,11 @@ export default registerBlockType( 'wpgoplugins/simple-sitemap-block', {
32
  __( 'HTML Sitemap', 'simple-sitemap' )
33
  ],
34
  category: 'simple-sitemap',
 
 
 
 
 
35
  edit: ( props ) => {
36
  const {
37
  attributes: {
@@ -172,6 +177,9 @@ export default registerBlockType( 'wpgoplugins/simple-sitemap-block', {
172
  { label: 'Author', value: 'author' },
173
  { label: 'Name', value: 'name' },
174
  { label: 'Modified', value: 'modified' },
 
 
 
175
  ] }
176
  onChange={ ( value ) => {
177
  setAttributes( { orderby: value } );
32
  __( 'HTML Sitemap', 'simple-sitemap' )
33
  ],
34
  category: 'simple-sitemap',
35
+ example: {
36
+ attributes: {
37
+ num_posts: 20,
38
+ },
39
+ },
40
  edit: ( props ) => {
41
  const {
42
  attributes: {
177
  { label: 'Author', value: 'author' },
178
  { label: 'Name', value: 'name' },
179
  { label: 'Modified', value: 'modified' },
180
+ { label: 'Menu Order', value: 'menu_order' },
181
+ { label: 'Random Order', value: 'rand' },
182
+ { label: 'Comment Count', value: 'comment_count' },
183
  ] }
184
  onChange={ ( value ) => {
185
  setAttributes( { orderby: value } );
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: dgwyer, wpgoplugins
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FBAG4ZHA4TTUC
4
  Tags: seo sitemap, html, sitemap, html sitemap, responsive sitemap
5
  Requires at least: 5.0
6
- Tested up to: 5.8
7
- Stable tag: 3.5.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -159,6 +159,13 @@ No. This plugin is for generating an HTML sitemap only.
159
 
160
  == Changelog ==
161
 
 
 
 
 
 
 
 
162
  = 3.5.3 - November 6, 2021 =
163
 
164
  * Refactored plugin codebase.
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FBAG4ZHA4TTUC
4
  Tags: seo sitemap, html, sitemap, html sitemap, responsive sitemap
5
  Requires at least: 5.0
6
+ Tested up to: 5.9
7
+ Stable tag: 3.5.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
159
 
160
  == Changelog ==
161
 
162
+ = 3.5.4 - November 23, 2021 =
163
+
164
+ * Tidied up configuration files. Added .eslintignore to the list of files to auto-remove from deployed free/pro plugin versions.
165
+ * Added new 'Random Order', 'Menu Order', and 'Comment Count' options to the sitemap block Orderby drop down.
166
+ * Added new 'num_terms' shortcode attribute to optionally limit the number of taxonomy terms displayed.
167
+ * Added a preview for sitemap and sitemap group blocks in the editor window.
168
+
169
  = 3.5.3 - November 6, 2021 =
170
 
171
  * Refactored plugin codebase.
shared/links.php CHANGED
@@ -25,36 +25,6 @@ class Links {
25
 
26
  add_filter( 'plugin_row_meta', array( &$this, 'plugin_action_links' ), 10, 2 );
27
  add_filter( 'plugin_action_links', array( &$this, 'plugin_settings_link' ), 10, 2 );
28
-
29
- // Redirect user to plugin settings page when plugin activated manually.
30
- register_activation_hook( $this->module_roots['file'], array( $this, 'set_redirect_transient' ) );
31
- add_action( 'admin_init', array( &$this, 'redirect_settings_page' ) );
32
- }
33
-
34
- /**
35
- * Runs only when the plugin is activated.
36
- */
37
- public function set_redirect_transient() {
38
- set_transient( 'simple-sitemap-redirect', true, 60 );
39
- }
40
-
41
- /**
42
- * Redirect automatically to plugin settings page
43
- */
44
- public function redirect_settings_page() {
45
- // Only do this if the user can activate plugins.
46
- if ( ! current_user_can( 'manage_options' ) ) {
47
- return;
48
- }
49
-
50
- // Don't do anything if the transient isn't set.
51
- if ( ! get_transient( 'simple-sitemap-redirect' ) ) {
52
- return;
53
- }
54
-
55
- delete_transient( 'simple-sitemap-redirect' );
56
- wp_safe_redirect( admin_url( 'admin.php?page=simple-sitemap-menu' ) );
57
- exit;
58
  }
59
 
60
  /**
@@ -83,7 +53,7 @@ class Links {
83
  public function plugin_settings_link( $links, $file ) {
84
 
85
  if ( $file == 'simple-sitemap/simple-sitemap.php') {
86
- $pccf_links = '<a href="' . get_admin_url() . 'admin.php?page=simple-sitemap-menu">' . __( 'Get Started', 'simple-sitemap' ) . '</a>';
87
  array_unshift( $links, $pccf_links );
88
  }
89
 
25
 
26
  add_filter( 'plugin_row_meta', array( &$this, 'plugin_action_links' ), 10, 2 );
27
  add_filter( 'plugin_action_links', array( &$this, 'plugin_settings_link' ), 10, 2 );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  }
29
 
30
  /**
53
  public function plugin_settings_link( $links, $file ) {
54
 
55
  if ( $file == 'simple-sitemap/simple-sitemap.php') {
56
+ $pccf_links = '<a href="' . get_admin_url() . 'admin.php?page=simple-sitemap-menu-welcome">' . __( 'Get Started', 'simple-sitemap' ) . '</a>';
57
  array_unshift( $links, $pccf_links );
58
  }
59
 
simple-sitemap.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: Simple Sitemap
5
  Plugin URI: http://wordpress.org/plugins/simple-sitemap/
6
  Description: HTML sitemap to display content as a single linked list of posts, pages, or custom post types. You can even display posts in groups sorted by taxonomy!
7
- Version: 3.5.3
8
  Author: David Gwyer
9
  Author URI: http://www.wpgoplugins.com
10
  Text Domain: simple-sitemap
@@ -31,6 +31,13 @@ namespace WPGO_Plugins\Simple_Sitemap;
31
  if ( !defined( 'ABSPATH' ) ) {
32
  exit;
33
  }
 
 
 
 
 
 
 
34
 
35
  if ( function_exists( __NAMESPACE__ . '\\ss_fs' ) ) {
36
  ss_fs()->set_basename( false, __FILE__ );
@@ -56,12 +63,13 @@ if ( function_exists( __NAMESPACE__ . '\\ss_fs' ) ) {
56
  'type' => 'plugin',
57
  'public_key' => 'pk_d7776ef9a819e02b17ef810b17551',
58
  'is_premium' => false,
 
59
  'premium_suffix' => 'Pro',
60
  'has_addons' => false,
61
  'has_paid_plans' => true,
62
  'menu' => array(
63
  'slug' => 'simple-sitemap-menu',
64
- 'first-path' => 'admin.php?page=simple-sitemap-menu',
65
  ),
66
  'is_live' => true,
67
  ) );
4
  Plugin Name: Simple Sitemap
5
  Plugin URI: http://wordpress.org/plugins/simple-sitemap/
6
  Description: HTML sitemap to display content as a single linked list of posts, pages, or custom post types. You can even display posts in groups sorted by taxonomy!
7
+ Version: 3.5.4
8
  Author: David Gwyer
9
  Author URI: http://www.wpgoplugins.com
10
  Text Domain: simple-sitemap
31
  if ( !defined( 'ABSPATH' ) ) {
32
  exit;
33
  }
34
+ // For now hard code this until a better method can be found.
35
+
36
+ if ( !defined( 'SITEMAP_FREEMIUS_NAVIGATION' ) ) {
37
+ define( 'SITEMAP_FREEMIUS_NAVIGATION', 'menu' );
38
+ // Options: menu|tabs.
39
+ }
40
+
41
 
42
  if ( function_exists( __NAMESPACE__ . '\\ss_fs' ) ) {
43
  ss_fs()->set_basename( false, __FILE__ );
63
  'type' => 'plugin',
64
  'public_key' => 'pk_d7776ef9a819e02b17ef810b17551',
65
  'is_premium' => false,
66
+ 'navigation' => SITEMAP_FREEMIUS_NAVIGATION,
67
  'premium_suffix' => 'Pro',
68
  'has_addons' => false,
69
  'has_paid_plans' => true,
70
  'menu' => array(
71
  'slug' => 'simple-sitemap-menu',
72
+ 'first-path' => 'admin.php?page=simple-sitemap-menu-welcome',
73
  ),
74
  'is_live' => true,
75
  ) );