Version Description
- 2022-04-26 =
- Optimize live preview rendering
- Add faster server backend
- Add Extendify welcome page
- Remove content idle timer
- Update sidebar handle accessability styling
- Updated wp tested up to value
- Implement UI improvements to encourage discoverability
Download this release
Release Info
Developer | extendify |
Plugin | Extendify — Gutenberg Patterns and Templates |
Version | 0.8.0 |
Comparing to | |
See all releases |
Code changes from version 0.7.0 to 0.8.0
- app/Http.php +4 -0
- app/User.php +1 -1
- app/Welcome.php +175 -0
- bootstrap.php +2 -0
- extendify.php +1 -1
- public/admin-page/welcome.css +377 -0
- public/assets/extendify-logo.svg +3 -0
- public/assets/welcome-banner.jpg +0 -0
- public/assets/welcome-block-1.jpg +0 -0
- public/assets/welcome-block-2.jpg +0 -0
- public/assets/welcome-block-3.jpg +0 -0
- public/build/extendify.css +1 -1
- public/build/extendify.js +1 -1
- readme.txt +12 -3
- src/app.css +1 -17
- src/blocks/block-category.js +17 -1
- src/buttons.js +2 -2
- src/components/ImportCounter.js +2 -2
- src/components/ImportTemplateBlock.js +25 -72
- src/components/TaxonomySection.js +33 -19
- src/components/TypeSelect.js +22 -20
- src/hooks/helpers.js +0 -29
- src/pages/GridView.js +10 -13
- src/pages/Sidebar.js +5 -3
- src/pages/layout/Layout.js +3 -35
- src/pages/layout/Toolbar.js +1 -4
- src/state/Templates.js +14 -11
- src/state/User.js +1 -1
- vendor/composer/InstalledVersions.php +88 -88
- vendor/composer/installed.php +88 -88
app/Http.php
CHANGED
@@ -69,6 +69,10 @@ class Http
|
|
69 |
'sdk_partner' => App::$sdkPartner,
|
70 |
];
|
71 |
|
|
|
|
|
|
|
|
|
72 |
$this->headers = [
|
73 |
'Accept' => 'application/json',
|
74 |
'referer' => $request->get_header('referer'),
|
69 |
'sdk_partner' => App::$sdkPartner,
|
70 |
];
|
71 |
|
72 |
+
if ($request->get_header('x_extendify_dev_mode') !== 'false') {
|
73 |
+
$this->data['devmode'] = true;
|
74 |
+
}
|
75 |
+
|
76 |
$this->headers = [
|
77 |
'Accept' => 'application/json',
|
78 |
'referer' => $request->get_header('referer'),
|
app/User.php
CHANGED
@@ -111,7 +111,7 @@ class User
|
|
111 |
$userData['state']['allowedImports'] = 0;
|
112 |
}
|
113 |
|
114 |
-
//
|
115 |
if (!get_transient('extendify_free_extra_imports_check_' . $this->user->ID)) {
|
116 |
set_transient('extendify_free_extra_imports_check_' . $this->user->ID, time(), strtotime('first day of next month', 0));
|
117 |
$userData['state']['runningImports'] = 0;
|
111 |
$userData['state']['allowedImports'] = 0;
|
112 |
}
|
113 |
|
114 |
+
// Similar to above, this will give the user free imports once a month just for logging in.
|
115 |
if (!get_transient('extendify_free_extra_imports_check_' . $this->user->ID)) {
|
116 |
set_transient('extendify_free_extra_imports_check_' . $this->user->ID, time(), strtotime('first day of next month', 0));
|
117 |
$userData['state']['runningImports'] = 0;
|
app/Welcome.php
ADDED
@@ -0,0 +1,175 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Admin Welcome page.
|
4 |
+
*/
|
5 |
+
|
6 |
+
namespace Extendify\Library;
|
7 |
+
|
8 |
+
use function add_action;
|
9 |
+
use function add_menu_page;
|
10 |
+
use function wp_enqueue_style;
|
11 |
+
use function wp_sprintf;
|
12 |
+
|
13 |
+
/**
|
14 |
+
* This class handles the Welcome page on the admin panel.
|
15 |
+
*/
|
16 |
+
class Welcome
|
17 |
+
{
|
18 |
+
|
19 |
+
/**
|
20 |
+
* Adds various actions to set up the page
|
21 |
+
*
|
22 |
+
* @return void
|
23 |
+
*/
|
24 |
+
public function __construct()
|
25 |
+
{
|
26 |
+
add_action( 'admin_menu', [ $this, 'addAdminMenu' ] );
|
27 |
+
|
28 |
+
$this->loadScripts();
|
29 |
+
}
|
30 |
+
|
31 |
+
/**
|
32 |
+
* Adds Extendify menu to admin panel.
|
33 |
+
*
|
34 |
+
* @return void
|
35 |
+
*/
|
36 |
+
public function addAdminMenu()
|
37 |
+
{
|
38 |
+
$raw = wp_remote_get( EXTENDIFY_URL . 'public/assets/extendify-logo.svg' );
|
39 |
+
if (is_wp_error($raw)) {
|
40 |
+
$svg = '';
|
41 |
+
} else {
|
42 |
+
$svg = wp_remote_retrieve_body($raw);
|
43 |
+
}
|
44 |
+
|
45 |
+
add_menu_page(
|
46 |
+
'Extendify',
|
47 |
+
'Extendify',
|
48 |
+
App::$requiredCapability,
|
49 |
+
'extendify',
|
50 |
+
[
|
51 |
+
$this,
|
52 |
+
'createAdminPage',
|
53 |
+
],
|
54 |
+
// phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_encode
|
55 |
+
'data:image/svg+xml;base64,' . base64_encode( $svg )
|
56 |
+
);
|
57 |
+
}
|
58 |
+
|
59 |
+
/**
|
60 |
+
* Settings page output
|
61 |
+
*
|
62 |
+
* @since 1.0.0
|
63 |
+
*
|
64 |
+
* @return void
|
65 |
+
*/
|
66 |
+
public function createAdminPage()
|
67 |
+
{
|
68 |
+
?>
|
69 |
+
<div class="extendify-outer-container">
|
70 |
+
<div class="wrap welcome-container">
|
71 |
+
<div class="welcome-header">
|
72 |
+
<img alt="<?php esc_html_e( 'Extendify Banner', 'extendify' ); ?>" src="<?php echo esc_url( EXTENDIFY_URL . 'public/assets/welcome-banner.jpg' ); ?>">
|
73 |
+
</div>
|
74 |
+
<hr class="is-small"/>
|
75 |
+
<div class="welcome-section">
|
76 |
+
<h2 class="aligncenter">
|
77 |
+
<?php esc_html_e( 'Welcome to Extendify', 'extendify' ); ?>
|
78 |
+
</h2>
|
79 |
+
<p class="aligncenter is-subheading">
|
80 |
+
<?php esc_html_e( 'Extendify is a massive library of drop-in black patterns easily customized to your liking. Each pattern is meticulously designed to work with your existing WordPress theme.', 'extendify' ); ?>
|
81 |
+
</p>
|
82 |
+
</div>
|
83 |
+
<hr/>
|
84 |
+
<div class="welcome-section has-2-columns has-gutters is-wider-right">
|
85 |
+
<div class="column is-edge-to-edge">
|
86 |
+
<h3>
|
87 |
+
<?php esc_html_e( '1. Open the Extendify Library', 'extendify' ); ?>
|
88 |
+
</h3>
|
89 |
+
<p>
|
90 |
+
<?php esc_html_e( "When editing a page or post within the block editor, you'll see the Extendify library button within the editor's header", 'extendify' ); ?>
|
91 |
+
</p>
|
92 |
+
<p>
|
93 |
+
<?php
|
94 |
+
// translators: %1$s = URL.
|
95 |
+
echo wp_sprintf( esc_html__( 'You may also add a new page with the library opened for you by %1$s.', 'extendify' ), '<a href="' . esc_url( admin_url( 'post-new.php?post_type=page&ext-open' ) ) . '">' . esc_html__( 'clicking here', 'extendify' ) . '</a>' );
|
96 |
+
?>
|
97 |
+
</p>
|
98 |
+
</div>
|
99 |
+
<div class="column welcome-image is-vertically-aligned-center is-edge-to-edge">
|
100 |
+
<img src="<?php echo esc_url( EXTENDIFY_URL . 'public/assets/welcome-block-1.jpg' ); ?>" alt=""/>
|
101 |
+
</div>
|
102 |
+
</div>
|
103 |
+
<div class="welcome-section has-2-columns has-gutters is-wider-left">
|
104 |
+
<div class="column welcome-image is-vertically-aligned-center is-edge-to-edge">
|
105 |
+
<img src="<?php echo esc_url( EXTENDIFY_URL . 'public/assets/welcome-block-2.jpg' ); ?>" alt=""/>
|
106 |
+
</div>
|
107 |
+
<div class="column is-edge-to-edge">
|
108 |
+
<h3>
|
109 |
+
<?php esc_html_e( '2. Choose a site industry', 'extendify' ); ?>
|
110 |
+
</h3>
|
111 |
+
<p>
|
112 |
+
<?php esc_html_e( 'With the library open, you can set your site industry - or type - which will surface the perfect industry-specific patterns and full page layouts to drop onto your website.', 'extendify' ); ?>
|
113 |
+
</p>
|
114 |
+
<p>
|
115 |
+
<?php esc_html_e( 'Extendify supports over sixty types with new industries added regularly.', 'extendify' ); ?>
|
116 |
+
</p>
|
117 |
+
</div>
|
118 |
+
</div>
|
119 |
+
<div class="welcome-section has-2-columns has-gutters is-wider-right">
|
120 |
+
<div class="column is-edge-to-edge">
|
121 |
+
<h3>
|
122 |
+
<?php esc_html_e( '3. Browse Patterns & Layouts.', 'extendify' ); ?>
|
123 |
+
</h3>
|
124 |
+
<p>
|
125 |
+
<?php esc_html_e( 'Search by industry, contents, and design attributes. Extendify has thousands of best-in-class block patterns. Find what you love and add it to the page - done!', 'extendify' ); ?>
|
126 |
+
</p>
|
127 |
+
<p>
|
128 |
+
<?php esc_html_e( "You'll find beautiful high fidelity Gutenberg content to add to your pages in no time!", 'extendify' ); ?>
|
129 |
+
</p>
|
130 |
+
</div>
|
131 |
+
<div class="column welcome-image is-vertically-aligned-center is-edge-to-edge">
|
132 |
+
<img src="<?php echo esc_url( EXTENDIFY_URL . 'public/assets/welcome-block-3.jpg' ); ?>" alt=""/>
|
133 |
+
</div>
|
134 |
+
</div>
|
135 |
+
<hr class="is-small"/>
|
136 |
+
<div class="welcome-section">
|
137 |
+
<h2 class="aligncenter">
|
138 |
+
<?php esc_html_e( 'Upgrade to Extendify Pro', 'extendify' ); ?>
|
139 |
+
</h2>
|
140 |
+
<p class="aligncenter is-subheading">
|
141 |
+
<?php esc_html_e( 'Do you want more patterns and layouts - without limits? Choose one of our plans and receive unlimited access to our complete library.', 'extendify' ); ?>
|
142 |
+
</p>
|
143 |
+
</div>
|
144 |
+
<a href="https://extendify.com/pricing/?utm_source=welcome&utm_medium=settings&utm_campaign=get_started&utm_campaign=get_started" class="button button-primary components-button">
|
145 |
+
<?php echo esc_html__( 'View Pricing', 'extendify' ); ?></a>
|
146 |
+
<hr/>
|
147 |
+
</div>
|
148 |
+
</div>
|
149 |
+
<?php
|
150 |
+
}
|
151 |
+
|
152 |
+
/**
|
153 |
+
* Adds scripts and styles to every page is enabled
|
154 |
+
*
|
155 |
+
* @return void
|
156 |
+
*/
|
157 |
+
public function loadScripts()
|
158 |
+
{
|
159 |
+
// No nonce for _GET.
|
160 |
+
// phpcs:ignore WordPress.Security.NonceVerification
|
161 |
+
if (isset($_GET['page'] ) && $_GET['page'] === 'extendify') {
|
162 |
+
add_action(
|
163 |
+
'admin_enqueue_scripts',
|
164 |
+
function () {
|
165 |
+
wp_enqueue_style(
|
166 |
+
'extendify-welcome',
|
167 |
+
EXTENDIFY_URL . 'public/admin-page/welcome.css',
|
168 |
+
[],
|
169 |
+
App::$version
|
170 |
+
);
|
171 |
+
}
|
172 |
+
);
|
173 |
+
}
|
174 |
+
}
|
175 |
+
}
|
bootstrap.php
CHANGED
@@ -6,6 +6,7 @@
|
|
6 |
use Extendify\Library\Admin;
|
7 |
use Extendify\Library\Frontend;
|
8 |
use Extendify\Library\Shared;
|
|
|
9 |
|
10 |
if (!defined('ABSPATH')) {
|
11 |
die('No direct access.');
|
@@ -30,6 +31,7 @@ if (is_readable(EXTENDIFY_PATH . 'vendor/autoload.php')) {
|
|
30 |
$extendifyAdmin = new Admin();
|
31 |
$extendifyFrontend = new Frontend();
|
32 |
$extendifyShared = new Shared();
|
|
|
33 |
|
34 |
require EXTENDIFY_PATH . 'routes/api.php';
|
35 |
require EXTENDIFY_PATH . 'editorplus/EditorPlus.php';
|
6 |
use Extendify\Library\Admin;
|
7 |
use Extendify\Library\Frontend;
|
8 |
use Extendify\Library\Shared;
|
9 |
+
use Extendify\Library\Welcome;
|
10 |
|
11 |
if (!defined('ABSPATH')) {
|
12 |
die('No direct access.');
|
31 |
$extendifyAdmin = new Admin();
|
32 |
$extendifyFrontend = new Frontend();
|
33 |
$extendifyShared = new Shared();
|
34 |
+
$extendifyWelcome = new Welcome();
|
35 |
|
36 |
require EXTENDIFY_PATH . 'routes/api.php';
|
37 |
require EXTENDIFY_PATH . 'editorplus/EditorPlus.php';
|
extendify.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Plugin URI: https://extendify.com/?utm_source=wp-plugins&utm_campaign=plugin-uri&utm_medium=wp-dash
|
6 |
* Author: Extendify
|
7 |
* Author URI: https://extendify.com/?utm_source=wp-plugins&utm_campaign=author-uri&utm_medium=wp-dash
|
8 |
-
* Version: 0.
|
9 |
* License: GPL-2.0-or-later
|
10 |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
* Text Domain: extendify
|
5 |
* Plugin URI: https://extendify.com/?utm_source=wp-plugins&utm_campaign=plugin-uri&utm_medium=wp-dash
|
6 |
* Author: Extendify
|
7 |
* Author URI: https://extendify.com/?utm_source=wp-plugins&utm_campaign=author-uri&utm_medium=wp-dash
|
8 |
+
* Version: 0.8.0
|
9 |
* License: GPL-2.0-or-later
|
10 |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
* Text Domain: extendify
|
public/admin-page/welcome.css
ADDED
@@ -0,0 +1,377 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#wpbody-content > *:not(.extendify-outer-container) {
|
2 |
+
display: none;
|
3 |
+
}
|
4 |
+
|
5 |
+
.extendify-outer-container {
|
6 |
+
background-color: #ffffff;
|
7 |
+
padding: 60px 60px 0 60px;
|
8 |
+
margin: 40px 30px 0 20px;
|
9 |
+
}
|
10 |
+
|
11 |
+
.extendify-outer-container .welcome-container {
|
12 |
+
/* Section backgrounds */
|
13 |
+
--background: transparent;
|
14 |
+
--subtle-background: #def;
|
15 |
+
/* Main text color */
|
16 |
+
--text: #000;
|
17 |
+
--text-light: #fff;
|
18 |
+
/* Accent colors: used in header, on special classes. */
|
19 |
+
--accent-1: #3858e9;
|
20 |
+
/* Accent background, link color */
|
21 |
+
--accent-2: #3858e9;
|
22 |
+
/* Header background */
|
23 |
+
/* Navigation colors. */
|
24 |
+
--nav-background: #fff;
|
25 |
+
--nav-border: transparent;
|
26 |
+
--nav-color: var(--text);
|
27 |
+
--nav-current: var(--accent-1);
|
28 |
+
--gap: 2rem;
|
29 |
+
line-height: 1.4;
|
30 |
+
color: var(--text);
|
31 |
+
max-width: 1000px;
|
32 |
+
margin: 24px auto;
|
33 |
+
clear: both;
|
34 |
+
top: -40px;
|
35 |
+
position: relative;
|
36 |
+
}
|
37 |
+
|
38 |
+
.extendify-outer-container .welcome-container h1 {
|
39 |
+
padding: 0;
|
40 |
+
color: inherit;
|
41 |
+
}
|
42 |
+
|
43 |
+
.extendify-outer-container .welcome-container h1,
|
44 |
+
.extendify-outer-container .welcome-container h2,
|
45 |
+
.extendify-outer-container .welcome-container h3.is-larger-heading {
|
46 |
+
margin-top: 0;
|
47 |
+
margin-bottom: 0.5em;
|
48 |
+
font-size: 2em;
|
49 |
+
line-height: 1.2;
|
50 |
+
font-weight: 700;
|
51 |
+
}
|
52 |
+
|
53 |
+
.extendify-outer-container .welcome-container h3,
|
54 |
+
.extendify-outer-container .welcome-container h1.is-smaller-heading,
|
55 |
+
.extendify-outer-container .welcome-container h2.is-smaller-heading {
|
56 |
+
margin-top: 0;
|
57 |
+
font-size: 1.6em;
|
58 |
+
line-height: 1.3;
|
59 |
+
font-weight: 400;
|
60 |
+
}
|
61 |
+
|
62 |
+
.extendify-outer-container .welcome-container p {
|
63 |
+
font-size: inherit;
|
64 |
+
line-height: inherit;
|
65 |
+
}
|
66 |
+
|
67 |
+
.extendify-outer-container .welcome-container p.is-subheading {
|
68 |
+
margin-top: 0;
|
69 |
+
font-size: 1.8em;
|
70 |
+
}
|
71 |
+
|
72 |
+
.extendify-outer-container .welcome-container img {
|
73 |
+
margin: 0;
|
74 |
+
max-width: 100%;
|
75 |
+
vertical-align: middle;
|
76 |
+
}
|
77 |
+
|
78 |
+
.extendify-outer-container .welcome-container .welcome-image {
|
79 |
+
margin: 0;
|
80 |
+
}
|
81 |
+
|
82 |
+
.extendify-outer-container .welcome-container .welcome-image img {
|
83 |
+
max-width: 100%;
|
84 |
+
width: 100%;
|
85 |
+
height: auto;
|
86 |
+
}
|
87 |
+
|
88 |
+
.extendify-outer-container .welcome-container hr {
|
89 |
+
margin: 0;
|
90 |
+
height: var(--gap);
|
91 |
+
border: none;
|
92 |
+
}
|
93 |
+
|
94 |
+
.extendify-outer-container .welcome-container hr.is-small {
|
95 |
+
height: calc(var(--gap) / 4);
|
96 |
+
}
|
97 |
+
|
98 |
+
.extendify-outer-container .welcome-container hr.is-large {
|
99 |
+
height: calc(var(--gap) * 2);
|
100 |
+
margin: calc(var(--gap) / 2) auto;
|
101 |
+
}
|
102 |
+
|
103 |
+
.extendify-outer-container .welcome-container .welcome-header {
|
104 |
+
position: relative;
|
105 |
+
margin-bottom: var(--gap);
|
106 |
+
padding-top: 0;
|
107 |
+
background-color: var(--accent-2);
|
108 |
+
color: var(--text-light);
|
109 |
+
background-image: url("https://ps.w.org/extendify/assets/banner-772x250.png");
|
110 |
+
}
|
111 |
+
|
112 |
+
.extendify-outer-container .welcome-container .components-button {
|
113 |
+
border: 0;
|
114 |
+
cursor: pointer;
|
115 |
+
opacity: 1;
|
116 |
+
transition: opacity 0.2s ease-in-out;
|
117 |
+
box-shadow: none !important;
|
118 |
+
color: #fff;
|
119 |
+
text-decoration: none;
|
120 |
+
padding: 0.75em 1.25em;
|
121 |
+
display: block;
|
122 |
+
margin: 0 auto;
|
123 |
+
max-width: 200px;
|
124 |
+
text-align: center;
|
125 |
+
font-size: calc(13px + 0.1vw);
|
126 |
+
font-weight: 600;
|
127 |
+
}
|
128 |
+
|
129 |
+
.extendify-outer-container .welcome-container .alignleft {
|
130 |
+
float: left;
|
131 |
+
}
|
132 |
+
|
133 |
+
.extendify-outer-container .welcome-container .alignright {
|
134 |
+
float: right;
|
135 |
+
}
|
136 |
+
|
137 |
+
.extendify-outer-container .welcome-container .aligncenter {
|
138 |
+
text-align: center;
|
139 |
+
}
|
140 |
+
|
141 |
+
.extendify-outer-container .welcome-container .is-vertically-aligned-top {
|
142 |
+
align-self: start;
|
143 |
+
}
|
144 |
+
|
145 |
+
.extendify-outer-container .welcome-container .is-vertically-aligned-center {
|
146 |
+
align-self: center;
|
147 |
+
}
|
148 |
+
|
149 |
+
.extendify-outer-container .welcome-container .is-vertically-aligned-bottom {
|
150 |
+
align-self: end;
|
151 |
+
}
|
152 |
+
|
153 |
+
.extendify-outer-container .welcome-container .has-accent-background-color {
|
154 |
+
background-color: var(--accent-1);
|
155 |
+
color: var(--text-light);
|
156 |
+
}
|
157 |
+
|
158 |
+
.extendify-outer-container .welcome-container .has-accent-background-color a {
|
159 |
+
color: var(--text-light);
|
160 |
+
}
|
161 |
+
|
162 |
+
.extendify-outer-container .welcome-container .has-transparent-background-color {
|
163 |
+
background-color: transparent;
|
164 |
+
}
|
165 |
+
|
166 |
+
.extendify-outer-container .welcome-container .has-accent-color {
|
167 |
+
color: var(--accent-1);
|
168 |
+
}
|
169 |
+
|
170 |
+
.extendify-outer-container .welcome-container .has-border {
|
171 |
+
border: 3px solid currentColor;
|
172 |
+
}
|
173 |
+
|
174 |
+
.extendify-outer-container .welcome-container .has-subtle-background-color {
|
175 |
+
background-color: var(--subtle-background);
|
176 |
+
}
|
177 |
+
|
178 |
+
.extendify-outer-container .welcome-container .has-background-image {
|
179 |
+
background-size: contain;
|
180 |
+
background-repeat: no-repeat;
|
181 |
+
background-position: center;
|
182 |
+
}
|
183 |
+
|
184 |
+
.extendify-outer-container .welcome-container .welcome-section {
|
185 |
+
background: var(--background);
|
186 |
+
clear: both;
|
187 |
+
margin: 0 0 var(--gap);
|
188 |
+
font-size: 1.2em;
|
189 |
+
}
|
190 |
+
|
191 |
+
.extendify-outer-container .welcome-container .welcome-section .column:not(.is-edge-to-edge) {
|
192 |
+
padding: var(--gap);
|
193 |
+
}
|
194 |
+
|
195 |
+
.extendify-outer-container .welcome-container .welcome-section + .welcome-section .is-section-header {
|
196 |
+
padding-bottom: var(--gap);
|
197 |
+
}
|
198 |
+
|
199 |
+
.extendify-outer-container .welcome-container .welcome-section .column[class*=background-color], .extendify-outer-container .welcome-container .welcome-section:where([class*="background-color"]) .column,
|
200 |
+
.extendify-outer-container .welcome-container .welcome-section .column.has-border {
|
201 |
+
padding-top: var(--gap);
|
202 |
+
padding-bottom: var(--gap);
|
203 |
+
}
|
204 |
+
|
205 |
+
.extendify-outer-container .welcome-container .welcome-section .column p:first-of-type {
|
206 |
+
margin-top: 0;
|
207 |
+
}
|
208 |
+
|
209 |
+
.extendify-outer-container .welcome-container .welcome-section .column p:last-of-type {
|
210 |
+
margin-bottom: 0;
|
211 |
+
}
|
212 |
+
|
213 |
+
.extendify-outer-container .welcome-container .welcome-section .has-text-columns {
|
214 |
+
columns: 2;
|
215 |
+
column-gap: calc(var(--gap) * 2);
|
216 |
+
}
|
217 |
+
|
218 |
+
.extendify-outer-container .welcome-container .welcome-section .is-section-header {
|
219 |
+
margin-bottom: 0;
|
220 |
+
padding: var(--gap) var(--gap) 0;
|
221 |
+
}
|
222 |
+
|
223 |
+
.extendify-outer-container .welcome-container .welcome-section .is-section-header p:last-child {
|
224 |
+
margin-bottom: 0;
|
225 |
+
}
|
226 |
+
|
227 |
+
.extendify-outer-container .welcome-container .welcome-section .is-section-header:first-child:last-child {
|
228 |
+
padding: 0;
|
229 |
+
}
|
230 |
+
|
231 |
+
.extendify-outer-container .welcome-container .welcome-section.has-2-columns, .extendify-outer-container .welcome-container .welcome-section.has-overlap-style {
|
232 |
+
display: grid;
|
233 |
+
}
|
234 |
+
|
235 |
+
.extendify-outer-container .welcome-container .welcome-section.has-gutters {
|
236 |
+
gap: var(--gap);
|
237 |
+
margin-bottom: calc(var(--gap) * 2);
|
238 |
+
}
|
239 |
+
|
240 |
+
.extendify-outer-container .welcome-container .welcome-section.has-2-columns {
|
241 |
+
grid-template-columns: 1fr 1fr;
|
242 |
+
}
|
243 |
+
|
244 |
+
.extendify-outer-container .welcome-container .welcome-section.has-2-columns.is-wider-right {
|
245 |
+
grid-template-columns: 2fr 3fr;
|
246 |
+
}
|
247 |
+
|
248 |
+
.extendify-outer-container .welcome-container .welcome-section.has-2-columns.is-wider-left {
|
249 |
+
grid-template-columns: 3fr 2fr;
|
250 |
+
}
|
251 |
+
|
252 |
+
.extendify-outer-container .welcome-container .welcome-section.has-2-columns .is-section-header {
|
253 |
+
grid-column-start: 1;
|
254 |
+
-ms-grid-column-span: 2;
|
255 |
+
grid-column-end: span 2;
|
256 |
+
}
|
257 |
+
|
258 |
+
.extendify-outer-container .welcome-container .welcome-section.has-2-columns .column:nth-of-type(2n+1) {
|
259 |
+
grid-column-start: 1;
|
260 |
+
}
|
261 |
+
|
262 |
+
.extendify-outer-container .welcome-container .welcome-section.has-2-columns .column:nth-of-type(2n) {
|
263 |
+
grid-column-start: 2;
|
264 |
+
}
|
265 |
+
|
266 |
+
.extendify-outer-container .welcome-container .welcome-section.has-2-columns .is-section-header ~ .column, .extendify-outer-container .welcome-container .welcome-section.has-overlap-style .is-section-header ~ .column {
|
267 |
+
grid-row-start: 2;
|
268 |
+
}
|
269 |
+
|
270 |
+
.extendify-outer-container .welcome-container .welcome-section.has-overlap-style {
|
271 |
+
grid-template-columns: repeat(7, 1fr);
|
272 |
+
}
|
273 |
+
|
274 |
+
.extendify-outer-container .welcome-container .welcome-section.has-overlap-style .column {
|
275 |
+
grid-row-start: 1;
|
276 |
+
}
|
277 |
+
|
278 |
+
.extendify-outer-container .welcome-container .welcome-section.has-overlap-style .column:nth-of-type(2n+1) {
|
279 |
+
grid-column-start: 2;
|
280 |
+
-ms-grid-column-span: 3;
|
281 |
+
grid-column-end: span 3;
|
282 |
+
}
|
283 |
+
|
284 |
+
.extendify-outer-container .welcome-container .welcome-section.has-overlap-style .column:nth-of-type(2n) {
|
285 |
+
grid-column-start: 4;
|
286 |
+
-ms-grid-column-span: 3;
|
287 |
+
grid-column-end: span 3;
|
288 |
+
}
|
289 |
+
|
290 |
+
.extendify-outer-container .welcome-container .welcome-section.has-overlap-style .column.is-top-layer {
|
291 |
+
z-index: 1;
|
292 |
+
}
|
293 |
+
|
294 |
+
.extendify-outer-container .welcome-container .welcome-section a {
|
295 |
+
color: var(--accent-1);
|
296 |
+
text-decoration: underline;
|
297 |
+
}
|
298 |
+
|
299 |
+
.extendify-outer-container .welcome-container .welcome-section a:hover, .extendify-outer-container .welcome-container .welcome-section a:active, .extendify-outer-container .welcome-container .welcome-section a:focus {
|
300 |
+
color: var(--accent-1);
|
301 |
+
text-decoration: none;
|
302 |
+
}
|
303 |
+
|
304 |
+
@media screen and (max-width: 782px) {
|
305 |
+
.extendify-outer-container .welcome-section.has-2-columns.is-wider-right, .extendify-outer-container .welcome-section.has-2-columns.is-wider-left {
|
306 |
+
display: block;
|
307 |
+
margin-bottom: calc(var(--gap) / 2);
|
308 |
+
}
|
309 |
+
|
310 |
+
.extendify-outer-container .welcome-section .column:not(.is-edge-to-edge) {
|
311 |
+
padding-top: var(--gap);
|
312 |
+
padding-bottom: var(--gap);
|
313 |
+
}
|
314 |
+
|
315 |
+
.extendify-outer-container .welcome-section.has-2-columns.has-gutters.is-wider-right, .extendify-outer-container .welcome-section.has-2-columns.has-gutters.is-wider-left {
|
316 |
+
margin-bottom: calc(var(--gap) * 2);
|
317 |
+
}
|
318 |
+
|
319 |
+
.extendify-outer-container .welcome-section.has-2-columns.has-gutters .column, .extendify-outer-container .welcome-section.has-2-columns.has-gutters .column {
|
320 |
+
margin-bottom: var(--gap);
|
321 |
+
}
|
322 |
+
|
323 |
+
.extendify-outer-container .welcome-section.has-2-columns.has-gutters .column:last-child, .extendify-outer-container .welcome-section.has-2-columns.has-gutters .column:last-child {
|
324 |
+
margin-bottom: 0;
|
325 |
+
}
|
326 |
+
|
327 |
+
.extendify-outer-container .welcome-section.has-overlap-style {
|
328 |
+
grid-template-columns: 1fr;
|
329 |
+
}
|
330 |
+
|
331 |
+
.extendify-outer-container .welcome-section.has-overlap-style .column.column {
|
332 |
+
grid-column-start: 1;
|
333 |
+
-ms-grid-column-span: 1;
|
334 |
+
grid-column-end: 2;
|
335 |
+
grid-row-start: 1;
|
336 |
+
-ms-grid-row-span: 1;
|
337 |
+
grid-row-end: 2;
|
338 |
+
}
|
339 |
+
}
|
340 |
+
|
341 |
+
@media screen and (max-width: 600px) {
|
342 |
+
.extendify-outer-container .welcome-section.has-2-columns {
|
343 |
+
display: block;
|
344 |
+
margin-bottom: var(--gap);
|
345 |
+
}
|
346 |
+
|
347 |
+
.extendify-outer-container .welcome-section.has-2-columns:not(.has-gutters) .column:nth-of-type(n) {
|
348 |
+
padding-top: calc(var(--gap) / 2);
|
349 |
+
padding-bottom: calc(var(--gap) / 2);
|
350 |
+
}
|
351 |
+
|
352 |
+
.extendify-outer-container .welcome-section.has-2-columns.has-gutters {
|
353 |
+
margin-bottom: calc(var(--gap) * 2);
|
354 |
+
}
|
355 |
+
|
356 |
+
.extendify-outer-container .welcome-section.has-2-columns.has-gutters .column {
|
357 |
+
margin-bottom: var(--gap);
|
358 |
+
}
|
359 |
+
|
360 |
+
.extendify-outer-container .welcome-section.has-2-columns.has-gutters .column:last-child {
|
361 |
+
margin-bottom: 0;
|
362 |
+
}
|
363 |
+
}
|
364 |
+
|
365 |
+
@media screen and (max-width: 480px) {
|
366 |
+
.extendify-outer-container .welcome-section.is-feature .column {
|
367 |
+
padding: 0;
|
368 |
+
}
|
369 |
+
}
|
370 |
+
|
371 |
+
@media screen and (max-width: 480px) {
|
372 |
+
.extendify-outer-container .welcome-container h1,
|
373 |
+
.extendify-outer-container .welcome-container h2,
|
374 |
+
.extendify-outer-container .welcome-container h3.is-larger-heading {
|
375 |
+
font-size: 2em;
|
376 |
+
}
|
377 |
+
}
|
public/assets/extendify-logo.svg
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
1 |
+
<svg width="20" height="20" viewBox="0 0 60 62" fill="black" xmlns="http://www.w3.org/2000/svg">
|
2 |
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M36.0201 0H49.2377C52.9815 0 54.3365 0.391104 55.7061 1.12116C57.0756 1.85412 58.1469 2.92893 58.8795 4.29635C59.612 5.66666 60 7.02248 60 10.7684V23.9935C60 27.7394 59.6091 29.0952 58.8795 30.4655C58.1469 31.8358 57.0727 32.9078 55.7061 33.6407C55.0938 33.9684 54.4831 34.2381 53.661 34.4312V44.9564C53.661 50.7417 53.0573 52.8356 51.9305 54.952C50.7991 57.0683 49.1401 58.7238 47.0294 59.8558C44.9143 60.9878 42.8215 61.5873 37.0395 61.5873H16.626C10.844 61.5873 8.75122 60.9833 6.63608 59.8558C4.52094 58.7238 2.86639 57.0638 1.73504 54.952C0.603687 52.8401 0 50.7417 0 44.9564V24.5358C0 18.7506 0.603687 16.6566 1.73057 14.5403C2.86192 12.424 4.52094 10.764 6.63608 9.63201C8.74675 8.5045 10.844 7.90047 16.626 7.90047H25.3664C25.5303 6.18172 25.8724 5.24393 26.3754 4.29924C27.1079 2.92893 28.1821 1.85412 29.5517 1.12116C30.9183 0.391104 32.2763 0 36.0201 0ZM29.2266 8.41812C29.2266 5.96352 31.2155 3.97368 33.6689 3.97368H51.5859C54.0393 3.97368 56.0282 5.96352 56.0282 8.41812V26.3438C56.0282 28.7984 54.0393 30.7882 51.5859 30.7882H33.6689C31.2155 30.7882 29.2266 28.7984 29.2266 26.3438V8.41812Z" fill="black"/>
|
3 |
+
</svg>
|
public/assets/welcome-banner.jpg
ADDED
Binary file
|
public/assets/welcome-block-1.jpg
ADDED
Binary file
|
public/assets/welcome-block-2.jpg
ADDED
Binary file
|
public/assets/welcome-block-3.jpg
ADDED
Binary file
|
public/build/extendify.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
div.extendify .sr-only{clip:rect(0,0,0,0)!important;border-width:0!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}div.extendify .focus\:not-sr-only:focus{clip:auto!important;height:auto!important;margin:0!important;overflow:visible!important;padding:0!important;position:static!important;white-space:normal!important;width:auto!important}div.extendify .pointer-events-none{pointer-events:none!important}div.extendify .invisible{visibility:hidden!important}div.extendify .group:focus .group-focus\:visible,div.extendify .group:hover .group-hover\:visible{visibility:visible!important}div.extendify .static{position:static!important}div.extendify .fixed{position:fixed!important}div.extendify .absolute{position:absolute!important}div.extendify .relative{position:relative!important}div.extendify .sticky{position:-webkit-sticky!important;position:sticky!important}div.extendify .inset-0{bottom:0!important;left:0!important;right:0!important;top:0!important}div.extendify .top-0{top:0!important}div.extendify .top-2{top:.5rem!important}div.extendify .top-4{top:1rem!important}div.extendify .right-0{right:0!important}div.extendify .right-1{right:.25rem!important}div.extendify .right-2{right:.5rem!important}div.extendify .right-4{right:1rem!important}div.extendify .right-2\.5{right:.625rem!important}div.extendify .bottom-0{bottom:0!important}div.extendify .bottom-4{bottom:1rem!important}div.extendify .left-0{left:0!important}div.extendify .group:hover .group-hover\:-top-2{top:-.5rem!important}div.extendify .group:hover .group-hover\:-top-2\.5{top:-.625rem!important}div.extendify .group:focus .group-focus\:-top-2{top:-.5rem!important}div.extendify .group:focus .group-focus\:-top-2\.5{top:-.625rem!important}div.extendify .z-10{z-index:10!important}div.extendify .z-20{z-index:20!important}div.extendify .z-30{z-index:30!important}div.extendify .z-40{z-index:40!important}div.extendify .z-50{z-index:50!important}div.extendify .z-high{z-index:99999!important}div.extendify .m-0{margin:0!important}div.extendify .m-8{margin:2rem!important}div.extendify .m-auto{margin:auto!important}div.extendify .mx-1{margin-left:.25rem!important;margin-right:.25rem!important}div.extendify .mx-5{margin-left:1.25rem!important;margin-right:1.25rem!important}div.extendify .mx-6{margin-left:1.5rem!important;margin-right:1.5rem!important}div.extendify .mx-auto{margin-left:auto!important;margin-right:auto!important}div.extendify .my-0{margin-bottom:0!important;margin-top:0!important}div.extendify .my-20{margin-bottom:5rem!important;margin-top:5rem!important}div.extendify .mt-0{margin-top:0!important}div.extendify .mt-2{margin-top:.5rem!important}div.extendify .mt-4{margin-top:1rem!important}div.extendify .mt-px{margin-top:1px!important}div.extendify .-mt-2{margin-top:-.5rem!important}div.extendify .-mt-5{margin-top:-1.25rem!important}div.extendify .-mt-6{margin-top:-1.5rem!important}div.extendify .-mr-1{margin-right:-.25rem!important}div.extendify .-mr-1\.5{margin-right:-.375rem!important}div.extendify .mb-0{margin-bottom:0!important}div.extendify .mb-1{margin-bottom:.25rem!important}div.extendify .mb-4{margin-bottom:1rem!important}div.extendify .mb-5{margin-bottom:1.25rem!important}div.extendify .mb-6{margin-bottom:1.5rem!important}div.extendify .mb-10{margin-bottom:2.5rem!important}div.extendify .mb-1\.5{margin-bottom:.375rem!important}div.extendify .ml-1{margin-left:.25rem!important}div.extendify .ml-2{margin-left:.5rem!important}div.extendify .ml-4{margin-left:1rem!important}div.extendify .ml-6{margin-left:1.5rem!important}div.extendify .-ml-1{margin-left:-.25rem!important}div.extendify .-ml-2{margin-left:-.5rem!important}div.extendify .-ml-6{margin-left:-1.5rem!important}div.extendify .-ml-px{margin-left:-1px!important}div.extendify .-ml-1\.5{margin-left:-.375rem!important}div.extendify .block{display:block!important}div.extendify .inline-block{display:inline-block!important}div.extendify .flex{display:flex!important}div.extendify .inline-flex{display:inline-flex!important}div.extendify .table{display:table!important}div.extendify .grid{display:grid!important}div.extendify .hidden{display:none!important}div.extendify .h-0{height:0!important}div.extendify .h-8{height:2rem!important}div.extendify .h-20{height:5rem!important}div.extendify .h-auto{height:auto!important}div.extendify .h-full{height:100%!important}div.extendify .h-screen{height:100vh!important}div.extendify .max-h-96{max-height:24rem!important}div.extendify .min-h-screen{min-height:100vh!important}div.extendify .w-0{width:0!important}div.extendify .w-6{width:1.5rem!important}div.extendify .w-72{width:18rem!important}div.extendify .w-auto{width:auto!important}div.extendify .w-6\/12{width:50%!important}div.extendify .w-7\/12{width:58.333333%!important}div.extendify .w-full{width:100%!important}div.extendify .w-screen{width:100vw!important}div.extendify .min-w-0{min-width:0!important}div.extendify .min-w-sm{min-width:7rem!important}div.extendify .max-w-md{max-width:28rem!important}div.extendify .max-w-lg{max-width:32rem!important}div.extendify .max-w-xl{max-width:36rem!important}div.extendify .max-w-full{max-width:100%!important}div.extendify .max-w-screen-4xl{max-width:1920px!important}div.extendify .flex-1{flex:1 1 0%!important}div.extendify .flex-shrink-0{flex-shrink:0!important}div.extendify .flex-grow-0{flex-grow:0!important}div.extendify .flex-grow{flex-grow:1!important}div.extendify .transform{--tw-translate-x:0!important;--tw-translate-y:0!important;--tw-rotate:0!important;--tw-skew-x:0!important;--tw-skew-y:0!important;--tw-scale-x:1!important;--tw-scale-y:1!important;transform:translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}div.extendify .-translate-x-1{--tw-translate-x:-0.25rem!important}div.extendify .translate-y-0{--tw-translate-y:0px!important}div.extendify .translate-y-4{--tw-translate-y:1rem!important}div.extendify .-translate-y-px{--tw-translate-y:-1px!important}div.extendify .-translate-y-full{--tw-translate-y:-100%!important}div.extendify .rotate-90{--tw-rotate:90deg!important}div.extendify .cursor-pointer{cursor:pointer!important}div.extendify .resize{resize:both!important}div.extendify .flex-col{flex-direction:column!important}div.extendify .items-end{align-items:flex-end!important}div.extendify .items-center{align-items:center!important}div.extendify .justify-end{justify-content:flex-end!important}div.extendify .justify-center{justify-content:center!important}div.extendify .justify-between{justify-content:space-between!important}div.extendify .gap-6{gap:1.5rem!important}div.extendify .space-x-0>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(0px*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(0px*var(--tw-space-x-reverse))!important}div.extendify .space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(.25rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(.25rem*var(--tw-space-x-reverse))!important}div.extendify .space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(.5rem*var(--tw-space-x-reverse))!important}div.extendify .space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(.75rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(.75rem*var(--tw-space-x-reverse))!important}div.extendify .space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(1rem*var(--tw-space-x-reverse))!important}div.extendify .space-x-0\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(.125rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(.125rem*var(--tw-space-x-reverse))!important}div.extendify .space-x-1\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(.375rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(.375rem*var(--tw-space-x-reverse))!important}div.extendify .space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(.5rem*var(--tw-space-y-reverse))!important;margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify .space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse))!important;margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify .divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0!important;border-bottom-width:calc(1px*var(--tw-divide-y-reverse))!important;border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))!important}div.extendify .overflow-hidden{overflow:hidden!important}div.extendify .overflow-y-auto{overflow-y:auto!important}div.extendify .whitespace-nowrap{white-space:nowrap!important}div.extendify .rounded-sm{border-radius:.125rem!important}div.extendify .rounded{border-radius:.25rem!important}div.extendify .rounded-md{border-radius:.375rem!important}div.extendify .rounded-tl-sm{border-top-left-radius:.125rem!important}div.extendify .rounded-tr-sm{border-top-right-radius:.125rem!important}div.extendify .rounded-br-sm{border-bottom-right-radius:.125rem!important}div.extendify .rounded-bl-sm{border-bottom-left-radius:.125rem!important}div.extendify .border-0{border-width:0!important}div.extendify .border-2{border-width:2px!important}div.extendify .border-8{border-width:8px!important}div.extendify .border{border-width:1px!important}div.extendify .border-r{border-right-width:1px!important}div.extendify .border-b-0{border-bottom-width:0!important}div.extendify .border-b{border-bottom-width:1px!important}div.extendify .border-l-8{border-left-width:8px!important}div.extendify .border-solid{border-style:solid!important}div.extendify .border-none{border-style:none!important}div.extendify .border-transparent{border-color:transparent!important}div.extendify .border-black{--tw-border-opacity:1!important;border-color:rgba(0,0,0,var(--tw-border-opacity))!important}div.extendify .border-gray-200{--tw-border-opacity:1!important;border-color:rgba(224,224,224,var(--tw-border-opacity))!important}div.extendify .border-gray-900{--tw-border-opacity:1!important;border-color:rgba(30,30,30,var(--tw-border-opacity))!important}div.extendify .border-extendify-main{--tw-border-opacity:1!important;border-color:rgba(11,74,67,var(--tw-border-opacity))!important}div.extendify .border-extendify-secondary{--tw-border-opacity:1!important;border-color:rgba(203,195,245,var(--tw-border-opacity))!important}div.extendify .border-extendify-transparent-black-100{border-color:rgba(0,0,0,.07)!important}div.extendify .border-wp-alert-red{--tw-border-opacity:1!important;border-color:rgba(204,24,24,var(--tw-border-opacity))!important}div.extendify .focus\:border-transparent:focus{border-color:transparent!important}div.extendify .bg-transparent{background-color:transparent!important}div.extendify .bg-black{--tw-bg-opacity:1!important;background-color:rgba(0,0,0,var(--tw-bg-opacity))!important}div.extendify .bg-white{--tw-bg-opacity:1!important;background-color:rgba(255,255,255,var(--tw-bg-opacity))!important}div.extendify .bg-gray-50{--tw-bg-opacity:1!important;background-color:rgba(251,251,251,var(--tw-bg-opacity))!important}div.extendify .bg-gray-100{--tw-bg-opacity:1!important;background-color:rgba(240,240,240,var(--tw-bg-opacity))!important}div.extendify .bg-gray-900{--tw-bg-opacity:1!important;background-color:rgba(30,30,30,var(--tw-bg-opacity))!important}div.extendify .bg-extendify-main{--tw-bg-opacity:1!important;background-color:rgba(11,74,67,var(--tw-bg-opacity))!important}div.extendify .bg-extendify-alert{--tw-bg-opacity:1!important;background-color:rgba(132,16,16,var(--tw-bg-opacity))!important}div.extendify .bg-extendify-secondary{--tw-bg-opacity:1!important;background-color:rgba(203,195,245,var(--tw-bg-opacity))!important}div.extendify .bg-extendify-transparent-white{background-color:hsla(0,0%,99%,.88)!important}div.extendify .bg-wp-theme-500{background-color:var(--wp-admin-theme-color)!important}div.extendify .hover\:bg-extendify-main-dark:hover{--tw-bg-opacity:1!important;background-color:rgba(5,49,44,var(--tw-bg-opacity))!important}div.extendify .hover\:bg-wp-theme-600:hover{background-color:var(--wp-admin-theme-color-darker-10)!important}div.extendify .active\:bg-gray-900:active{--tw-bg-opacity:1!important;background-color:rgba(30,30,30,var(--tw-bg-opacity))!important}div.extendify .bg-opacity-40{--tw-bg-opacity:0.4!important}div.extendify .bg-cover{background-size:cover!important}div.extendify .bg-clip-padding{background-clip:padding-box!important}div.extendify .fill-current{fill:currentColor!important}div.extendify .stroke-current{stroke:currentColor!important}div.extendify .p-0{padding:0!important}div.extendify .p-1{padding:.25rem!important}div.extendify .p-2{padding:.5rem!important}div.extendify .p-3{padding:.75rem!important}div.extendify .p-4{padding:1rem!important}div.extendify .p-6{padding:1.5rem!important}div.extendify .p-10{padding:2.5rem!important}div.extendify .p-12{padding:3rem!important}div.extendify .p-1\.5{padding:.375rem!important}div.extendify .p-3\.5{padding:.875rem!important}div.extendify .px-0{padding-left:0!important;padding-right:0!important}div.extendify .px-1{padding-left:.25rem!important;padding-right:.25rem!important}div.extendify .px-2{padding-left:.5rem!important;padding-right:.5rem!important}div.extendify .px-3{padding-left:.75rem!important;padding-right:.75rem!important}div.extendify .px-4{padding-left:1rem!important;padding-right:1rem!important}div.extendify .px-5{padding-left:1.25rem!important;padding-right:1.25rem!important}div.extendify .px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}div.extendify .px-0\.5{padding-left:.125rem!important;padding-right:.125rem!important}div.extendify .px-2\.5{padding-left:.625rem!important;padding-right:.625rem!important}div.extendify .py-0{padding-bottom:0!important;padding-top:0!important}div.extendify .py-1{padding-bottom:.25rem!important;padding-top:.25rem!important}div.extendify .py-2{padding-bottom:.5rem!important;padding-top:.5rem!important}div.extendify .py-3{padding-bottom:.75rem!important;padding-top:.75rem!important}div.extendify .py-4{padding-bottom:1rem!important;padding-top:1rem!important}div.extendify .py-6{padding-bottom:1.5rem!important;padding-top:1.5rem!important}div.extendify .py-2\.5{padding-bottom:.625rem!important;padding-top:.625rem!important}div.extendify .pt-0{padding-top:0!important}div.extendify .pt-2{padding-top:.5rem!important}div.extendify .pt-4{padding-top:1rem!important}div.extendify .pt-6{padding-top:1.5rem!important}div.extendify .pt-px{padding-top:1px!important}div.extendify .pt-0\.5{padding-top:.125rem!important}div.extendify .pr-3{padding-right:.75rem!important}div.extendify .pb-2{padding-bottom:.5rem!important}div.extendify .pb-20{padding-bottom:5rem!important}div.extendify .pb-36{padding-bottom:9rem!important}div.extendify .pb-40{padding-bottom:10rem!important}div.extendify .pl-0{padding-left:0!important}div.extendify .pl-2{padding-left:.5rem!important}div.extendify .pl-6{padding-left:1.5rem!important}div.extendify .text-left{text-align:left!important}div.extendify .text-center{text-align:center!important}div.extendify .text-xs{font-size:.75rem!important;line-height:1rem!important}div.extendify .text-sm{font-size:.875rem!important;line-height:1.25rem!important}div.extendify .text-base{font-size:1rem!important;line-height:1.5rem!important}div.extendify .text-lg{font-size:1.125rem!important;line-height:1.75rem!important}div.extendify .text-xl{font-size:1.25rem!important;line-height:1.75rem!important}div.extendify .text-xss{font-size:11px!important}div.extendify .font-light{font-weight:300!important}div.extendify .font-normal{font-weight:400!important}div.extendify .font-medium{font-weight:500!important}div.extendify .font-semibold{font-weight:600!important}div.extendify .font-bold{font-weight:700!important}div.extendify .uppercase{text-transform:uppercase!important}div.extendify .italic{font-style:italic!important}div.extendify .leading-none{line-height:1!important}div.extendify .text-black{--tw-text-opacity:1!important;color:rgba(0,0,0,var(--tw-text-opacity))!important}div.extendify .text-white{--tw-text-opacity:1!important;color:rgba(255,255,255,var(--tw-text-opacity))!important}div.extendify .text-gray-500{--tw-text-opacity:1!important;color:rgba(204,204,204,var(--tw-text-opacity))!important}div.extendify .text-gray-700{--tw-text-opacity:1!important;color:rgba(117,117,117,var(--tw-text-opacity))!important}div.extendify .text-gray-800{--tw-text-opacity:1!important;color:rgba(31,41,55,var(--tw-text-opacity))!important}div.extendify .text-gray-900{--tw-text-opacity:1!important;color:rgba(30,30,30,var(--tw-text-opacity))!important}div.extendify .text-red-500{--tw-text-opacity:1!important;color:rgba(239,68,68,var(--tw-text-opacity))!important}div.extendify .text-extendify-main{--tw-text-opacity:1!important;color:rgba(11,74,67,var(--tw-text-opacity))!important}div.extendify .text-extendify-gray{--tw-text-opacity:1!important;color:rgba(95,95,95,var(--tw-text-opacity))!important}div.extendify .text-extendify-black{--tw-text-opacity:1!important;color:rgba(30,30,30,var(--tw-text-opacity))!important}div.extendify .text-wp-theme-500{color:var(--wp-admin-theme-color)!important}div.extendify .text-wp-alert-red{--tw-text-opacity:1!important;color:rgba(204,24,24,var(--tw-text-opacity))!important}div.extendify .hover\:text-white:hover{--tw-text-opacity:1!important;color:rgba(255,255,255,var(--tw-text-opacity))!important}div.extendify .hover\:text-wp-theme-500:hover{color:var(--wp-admin-theme-color)!important}div.extendify .focus\:text-white:focus{--tw-text-opacity:1!important;color:rgba(255,255,255,var(--tw-text-opacity))!important}div.extendify .focus\:text-blue-500:focus{--tw-text-opacity:1!important;color:rgba(59,130,246,var(--tw-text-opacity))!important}div.extendify .underline{text-decoration:underline!important}div.extendify .no-underline{text-decoration:none!important}div.extendify .group:hover .group-hover\:underline{text-decoration:underline!important}div.extendify .hover\:no-underline:hover{text-decoration:none!important}div.extendify .opacity-0{opacity:0!important}div.extendify .opacity-30{opacity:.3!important}div.extendify .opacity-50{opacity:.5!important}div.extendify .opacity-75{opacity:.75!important}div.extendify .focus\:opacity-100:focus,div.extendify .group:focus .group-focus\:opacity-100,div.extendify .group:hover .group-hover\:opacity-100,div.extendify .hover\:opacity-100:hover,div.extendify .opacity-100{opacity:1!important}div.extendify .shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05)!important}div.extendify .shadow-md,div.extendify .shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}div.extendify .shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -1px rgba(0,0,0,.06)!important}div.extendify .shadow-modal{--tw-shadow: 0 0 0 1px rgba(0,0,0,.1),0 3px 15px -3px rgba(0,0,0,.035),0 0 1px rgba(0,0,0,.05)!important}div.extendify .focus\:shadow-none:focus,div.extendify .shadow-modal{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}div.extendify .focus\:shadow-none:focus{--tw-shadow:0 0 #0000!important}div.extendify .focus\:outline-none:focus,div.extendify .outline-none{outline:2px solid transparent!important;outline-offset:2px!important}div.extendify .focus\:ring-wp:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--wp-admin-border-width-focus) + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}div.extendify .filter{--tw-blur:var(--tw-empty,/*!*/ /*!*/)!important;--tw-brightness:var(--tw-empty,/*!*/ /*!*/)!important;--tw-contrast:var(--tw-empty,/*!*/ /*!*/)!important;--tw-grayscale:var(--tw-empty,/*!*/ /*!*/)!important;--tw-hue-rotate:var(--tw-empty,/*!*/ /*!*/)!important;--tw-invert:var(--tw-empty,/*!*/ /*!*/)!important;--tw-saturate:var(--tw-empty,/*!*/ /*!*/)!important;--tw-sepia:var(--tw-empty,/*!*/ /*!*/)!important;--tw-drop-shadow:var(--tw-empty,/*!*/ /*!*/)!important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}div.extendify .blur{--tw-blur:blur(8px)!important}div.extendify .invert{--tw-invert:invert(100%)!important}div.extendify .backdrop-filter{--tw-backdrop-blur:var(--tw-empty,/*!*/ /*!*/)!important;--tw-backdrop-brightness:var(--tw-empty,/*!*/ /*!*/)!important;--tw-backdrop-contrast:var(--tw-empty,/*!*/ /*!*/)!important;--tw-backdrop-grayscale:var(--tw-empty,/*!*/ /*!*/)!important;--tw-backdrop-hue-rotate:var(--tw-empty,/*!*/ /*!*/)!important;--tw-backdrop-invert:var(--tw-empty,/*!*/ /*!*/)!important;--tw-backdrop-opacity:var(--tw-empty,/*!*/ /*!*/)!important;--tw-backdrop-saturate:var(--tw-empty,/*!*/ /*!*/)!important;--tw-backdrop-sepia:var(--tw-empty,/*!*/ /*!*/)!important;-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important;backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important}div.extendify .backdrop-blur-xl{--tw-backdrop-blur:blur(24px)!important}div.extendify .backdrop-saturate-200{--tw-backdrop-saturate:saturate(2)!important}div.extendify .transition-all{transition-duration:.15s!important;transition-property:all!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}div.extendify .transition{transition-duration:.15s!important;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter!important;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter!important;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}div.extendify .transition-opacity{transition-duration:.15s!important;transition-property:opacity!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}div.extendify .delay-200{transition-delay:.2s!important}div.extendify .duration-100{transition-duration:.1s!important}div.extendify .duration-200{transition-duration:.2s!important}div.extendify .duration-300{transition-duration:.3s!important}div.extendify .ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)!important}div.extendify .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.extendify{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/)!important;--tw-ring-offset-width:0px!important;--tw-ring-offset-color:transparent!important;--tw-ring-color:var(--wp-admin-theme-color)!important}.extendify *,.extendify :after,.extendify :before{border:0 solid #e5e7eb!important;box-sizing:border-box!important}.extendify .button-focus:focus{--tw-shadow:0 0 #0000!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.extendify .button-focus{outline:2px solid transparent!important;outline-offset:2px!important}.extendify .button-focus:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--wp-admin-border-width-focus) + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;--tw-ring-color:var(--wp-admin-theme-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}div.extendify button.extendify-skip-to-sr-link:focus{--tw-bg-opacity:1!important;background-color:rgba(255,255,255,var(--tw-bg-opacity))!important;padding:1rem!important;position:fixed!important;top:0!important;z-index:99999!important}.button-extendify-main{--tw-bg-opacity:1!important;background-color:rgba(11,74,67,var(--tw-bg-opacity))!important;border-radius:.25rem!important;cursor:pointer!important;white-space:nowrap!important}.button-extendify-main:hover{--tw-bg-opacity:1!important;background-color:rgba(5,49,44,var(--tw-bg-opacity))!important}.button-extendify-main:active{--tw-bg-opacity:1!important;background-color:rgba(30,30,30,var(--tw-bg-opacity))!important}.button-extendify-main{font-size:1rem!important;line-height:1.5rem!important;padding:.375rem .75rem!important}.button-extendify-main,.button-extendify-main:active,.button-extendify-main:focus,.button-extendify-main:hover{--tw-text-opacity:1!important;color:rgba(255,255,255,var(--tw-text-opacity))!important}.button-extendify-main{text-decoration:none!important;transition-duration:.15s!important;transition-duration:.2s!important;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter!important;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter!important;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.extendify .button-extendify-main:focus{--tw-shadow:0 0 #0000!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.extendify .button-extendify-main{outline:2px solid transparent!important;outline-offset:2px!important}.extendify .button-extendify-main:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--wp-admin-border-width-focus) + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;--tw-ring-color:var(--wp-admin-theme-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.extendify input.button-extendify-main:focus,.extendify input.button-focus:focus,.extendify select.button-extendify-main:focus,.extendify select.button-focus:focus{--tw-shadow:0 0 #0000!important;border-color:transparent!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important;outline:2px solid transparent!important;outline-offset:2px!important}#extendify-search-input:not(:-moz-placeholder-shown)~svg{display:none!important}#extendify-search-input:not(:-ms-input-placeholder)~svg{display:none!important}#extendify-search-input:focus~svg,#extendify-search-input:not(:placeholder-shown)~svg{display:none!important}#extendify-search-input::-webkit-textfield-decoration-container{margin-right:.75rem!important}.extendify .components-panel__body>.components-panel__body-title{background-color:transparent!important;border-bottom:1px solid #e0e0e0!important}.extendify .components-modal__header{--tw-border-opacity:1!important;border-bottom-width:1px!important;border-color:rgba(221,221,221,var(--tw-border-opacity))!important}.block-editor-block-preview__content .block-editor-block-list__layout.is-root-container>.ext{max-width:none!important}.block-editor-block-list__layout.is-root-container .ext.block-editor-block-list__block{max-width:100%!important}.block-editor-block-preview__content-iframe .block-editor-block-list__layout.is-root-container .ext.block-editor-block-list__block{max-width:none!important}.extendify .block-editor-block-preview__container{-webkit-animation:extendifyOpacityIn .2s cubic-bezier(.694,0,.335,1) 0ms forwards;animation:extendifyOpacityIn .2s cubic-bezier(.694,0,.335,1) 0ms forwards;opacity:0}.extendify .is-root-container>[data-align=full],.extendify .is-root-container>[data-align=full]>.wp-block,.extendify .is-root-container>[data-block]{margin-bottom:0!important;margin-top:0!important}.editor-styles-wrapper:not(.block-editor-writing-flow)>.is-root-container :where(.wp-block)[data-align=full]{margin-bottom:0!important;margin-top:0!important}@-webkit-keyframes extendifyOpacityIn{0%{opacity:0}to{opacity:1}}@keyframes extendifyOpacityIn{0%{opacity:0}to{opacity:1}}.extendify .with-light-shadow:after{--tw-shadow:inset 0 0 0 1px rgba(0,0,0,.1),0 3px 15px -3px rgba(0,0,0,.035),0 0 1px rgba(0,0,0,.025)!important;border-width:0!important;bottom:0!important;content:""!important;left:0!important;position:absolute!important;right:0!important;top:0!important}.extendify .with-light-shadow:after,.extendify .with-light-shadow:hover:after{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.extendify .with-light-shadow:hover:after{--tw-shadow:inset 0 0 0 1px rgba(0,0,0,.2),0 3px 15px -3px rgba(0,0,0,.025),0 0 1px rgba(0,0,0,.02)!important}@supports not (((-webkit-backdrop-filter:saturate(2) blur(24px)) or (backdrop-filter:saturate(2) blur(24px)))){div.extendify .bg-extendify-transparent-white{--tw-bg-opacity:1!important;background-color:rgba(240,240,240,var(--tw-bg-opacity))!important}}.components-panel__body.ext-type-control .components-panel__body-toggle{padding-left:0!important;padding-right:0!important}.components-panel__body.ext-type-control .components-panel__body-title{border-bottom-width:0!important;margin:0!important;padding-left:1.25rem!important;padding-right:1.25rem!important}.components-panel__body.ext-type-control .components-panel__body-title .components-button{--tw-text-opacity:1!important;border-bottom-width:0!important;color:rgba(95,95,95,var(--tw-text-opacity))!important;font-size:11px!important;font-weight:500!important;margin:0!important;padding-bottom:.5rem!important;padding-top:.5rem!important;text-transform:uppercase!important}.components-panel__body.ext-type-control .components-button .components-panel__arrow{--tw-text-opacity:1!important;color:rgba(95,95,95,var(--tw-text-opacity))!important;right:0!important}.extendify .animate-pulse{-webkit-animation:extendifyPulse 3s cubic-bezier(.4,0,.6,1) infinite;animation:extendifyPulse 3s cubic-bezier(.4,0,.6,1) infinite}@-webkit-keyframes extendifyPulse{0%,to{opacity:1}50%{opacity:.5}}@keyframes extendifyPulse{0%,to{opacity:1}50%{opacity:.5}}.is-template--in-review:before,.is-template--inactive:before{--tw-border-opacity:1!important;border:8px solid rgba(203,195,245,var(--tw-border-opacity))!important;bottom:0!important;content:""!important;height:100%!important;left:0!important;position:absolute!important;right:0!important;top:0!important;width:100%!important;z-index:40!important}.is-template--inactive:before{border-color:#fdeab6!important}.extendify-tooltip-default:not(.is-without-arrow)[data-y-axis=bottom]:after{border-bottom-color:#1e1e1e!important}.extendify-tooltip-default:not(.is-without-arrow):before{border-color:transparent!important}.extendify-tooltip-default:not(.is-without-arrow) .components-popover__content{--tw-bg-opacity:1!important;--tw-text-opacity:1!important;background-color:rgba(30,30,30,var(--tw-bg-opacity))!important;border-color:transparent!important;color:rgba(255,255,255,var(--tw-text-opacity))!important;min-width:250px!important;padding:1rem!important}.extendify-bottom-arrow:after{--tw-translate-x:0!important;--tw-translate-y:0!important;--tw-rotate:0!important;--tw-skew-x:0!important;--tw-skew-y:0!important;--tw-scale-x:1!important;--tw-scale-y:1!important;--tw-translate-y:-1px!important;border-color:#1e1e1e transparent transparent!important;border-width:8px!important;bottom:-15px!important;content:""!important;display:inline-block!important;height:0!important;position:absolute!important;transform:translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important;width:0!important}@media (min-width:480px){div.extendify .xs\:inline{display:inline!important}div.extendify .xs\:h-9{height:2.25rem!important}div.extendify .xs\:pr-3{padding-right:.75rem!important}div.extendify .xs\:pl-2{padding-left:.5rem!important}}@media (min-width:600px){div.extendify .sm\:mx-0{margin-left:0!important;margin-right:0!important}div.extendify .sm\:mt-0{margin-top:0!important}div.extendify .sm\:mb-8{margin-bottom:2rem!important}div.extendify .sm\:ml-2{margin-left:.5rem!important}div.extendify .sm\:block{display:block!important}div.extendify .sm\:flex{display:flex!important}div.extendify .sm\:h-auto{height:auto!important}div.extendify .sm\:w-72{width:18rem!important}div.extendify .sm\:w-auto{width:auto!important}div.extendify .sm\:translate-y-5{--tw-translate-y:1.25rem!important}div.extendify .sm\:space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse))!important;margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify .sm\:p-0{padding:0!important}div.extendify .sm\:py-0{padding-bottom:0!important;padding-top:0!important}div.extendify .sm\:pt-0{padding-top:0!important}div.extendify .sm\:pt-5{padding-top:1.25rem!important}}@media (min-width:782px){div.extendify .md\:m-0{margin:0!important}div.extendify .md\:-ml-8{margin-left:-2rem!important}div.extendify .md\:block{display:block!important}div.extendify .md\:flex{display:flex!important}div.extendify .md\:hidden{display:none!important}div.extendify .md\:max-w-2xl{max-width:42rem!important}div.extendify .md\:gap-8{gap:2rem!important}div.extendify .md\:space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(2rem*var(--tw-space-y-reverse))!important;margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify .md\:p-8{padding:2rem!important}div.extendify .md\:px-8{padding-right:2rem!important}div.extendify .md\:pl-8,div.extendify .md\:px-8{padding-left:2rem!important}}@media (min-width:1080px){div.extendify .lg\:absolute{position:absolute!important}div.extendify .lg\:block{display:block!important}div.extendify .lg\:flex{display:flex!important}div.extendify .lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}div.extendify .lg\:overflow-hidden{overflow:hidden!important}div.extendify .lg\:p-16{padding:4rem!important}}
|
1 |
+
div.extendify .sr-only{clip:rect(0,0,0,0)!important;border-width:0!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}div.extendify .focus\:not-sr-only:focus{clip:auto!important;height:auto!important;margin:0!important;overflow:visible!important;padding:0!important;position:static!important;white-space:normal!important;width:auto!important}div.extendify .pointer-events-none{pointer-events:none!important}div.extendify .invisible{visibility:hidden!important}div.extendify .group:focus .group-focus\:visible,div.extendify .group:hover .group-hover\:visible{visibility:visible!important}div.extendify .static{position:static!important}div.extendify .fixed{position:fixed!important}div.extendify .absolute{position:absolute!important}div.extendify .relative{position:relative!important}div.extendify .sticky{position:-webkit-sticky!important;position:sticky!important}div.extendify .inset-0{bottom:0!important;left:0!important;right:0!important;top:0!important}div.extendify .top-0{top:0!important}div.extendify .top-2{top:.5rem!important}div.extendify .top-4{top:1rem!important}div.extendify .-top-1\/4{top:-25%!important}div.extendify .right-0{right:0!important}div.extendify .right-1{right:.25rem!important}div.extendify .right-2{right:.5rem!important}div.extendify .right-4{right:1rem!important}div.extendify .right-2\.5{right:.625rem!important}div.extendify .bottom-0{bottom:0!important}div.extendify .bottom-4{bottom:1rem!important}div.extendify .left-0{left:0!important}div.extendify .group:hover .group-hover\:-top-2{top:-.5rem!important}div.extendify .group:hover .group-hover\:-top-2\.5{top:-.625rem!important}div.extendify .group:focus .group-focus\:-top-2{top:-.5rem!important}div.extendify .group:focus .group-focus\:-top-2\.5{top:-.625rem!important}div.extendify .z-10{z-index:10!important}div.extendify .z-20{z-index:20!important}div.extendify .z-30{z-index:30!important}div.extendify .z-40{z-index:40!important}div.extendify .z-50{z-index:50!important}div.extendify .z-high{z-index:99999!important}div.extendify .m-0{margin:0!important}div.extendify .m-8{margin:2rem!important}div.extendify .m-auto{margin:auto!important}div.extendify .mx-1{margin-left:.25rem!important;margin-right:.25rem!important}div.extendify .mx-5{margin-left:1.25rem!important;margin-right:1.25rem!important}div.extendify .mx-6{margin-left:1.5rem!important;margin-right:1.5rem!important}div.extendify .mx-auto{margin-left:auto!important;margin-right:auto!important}div.extendify .-mx-4{margin-left:-1rem!important;margin-right:-1rem!important}div.extendify .my-0{margin-bottom:0!important;margin-top:0!important}div.extendify .my-px{margin-bottom:1px!important;margin-top:1px!important}div.extendify .mt-0{margin-top:0!important}div.extendify .mt-2{margin-top:.5rem!important}div.extendify .mt-4{margin-top:1rem!important}div.extendify .mt-8{margin-top:2rem!important}div.extendify .mt-px{margin-top:1px!important}div.extendify .-mt-2{margin-top:-.5rem!important}div.extendify .-mt-5{margin-top:-1.25rem!important}div.extendify .-mt-6{margin-top:-1.5rem!important}div.extendify .-mr-1{margin-right:-.25rem!important}div.extendify .-mr-1\.5{margin-right:-.375rem!important}div.extendify .mb-0{margin-bottom:0!important}div.extendify .mb-1{margin-bottom:.25rem!important}div.extendify .mb-4{margin-bottom:1rem!important}div.extendify .mb-5{margin-bottom:1.25rem!important}div.extendify .mb-10{margin-bottom:2.5rem!important}div.extendify .mb-1\.5{margin-bottom:.375rem!important}div.extendify .ml-1{margin-left:.25rem!important}div.extendify .ml-2{margin-left:.5rem!important}div.extendify .ml-4{margin-left:1rem!important}div.extendify .ml-6{margin-left:1.5rem!important}div.extendify .-ml-1{margin-left:-.25rem!important}div.extendify .-ml-2{margin-left:-.5rem!important}div.extendify .-ml-6{margin-left:-1.5rem!important}div.extendify .-ml-px{margin-left:-1px!important}div.extendify .-ml-1\.5{margin-left:-.375rem!important}div.extendify .block{display:block!important}div.extendify .inline-block{display:inline-block!important}div.extendify .flex{display:flex!important}div.extendify .inline-flex{display:inline-flex!important}div.extendify .table{display:table!important}div.extendify .grid{display:grid!important}div.extendify .hidden{display:none!important}div.extendify .h-0{height:0!important}div.extendify .h-4{height:1rem!important}div.extendify .h-8{height:2rem!important}div.extendify .h-12{height:3rem!important}div.extendify .h-auto{height:auto!important}div.extendify .h-full{height:100%!important}div.extendify .h-screen{height:100vh!important}div.extendify .max-h-96{max-height:24rem!important}div.extendify .min-h-screen{min-height:100vh!important}div.extendify .w-0{width:0!important}div.extendify .w-6{width:1.5rem!important}div.extendify .w-72{width:18rem!important}div.extendify .w-auto{width:auto!important}div.extendify .w-6\/12{width:50%!important}div.extendify .w-7\/12{width:58.333333%!important}div.extendify .w-full{width:100%!important}div.extendify .w-screen{width:100vw!important}div.extendify .min-w-0{min-width:0!important}div.extendify .min-w-sm{min-width:7rem!important}div.extendify .max-w-md{max-width:28rem!important}div.extendify .max-w-lg{max-width:32rem!important}div.extendify .max-w-xl{max-width:36rem!important}div.extendify .max-w-full{max-width:100%!important}div.extendify .max-w-screen-4xl{max-width:1920px!important}div.extendify .flex-1{flex:1 1 0%!important}div.extendify .flex-shrink-0{flex-shrink:0!important}div.extendify .flex-grow-0{flex-grow:0!important}div.extendify .flex-grow{flex-grow:1!important}div.extendify .transform{--tw-translate-x:0!important;--tw-translate-y:0!important;--tw-rotate:0!important;--tw-skew-x:0!important;--tw-skew-y:0!important;--tw-scale-x:1!important;--tw-scale-y:1!important;transform:translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}div.extendify .-translate-x-1{--tw-translate-x:-0.25rem!important}div.extendify .translate-y-0{--tw-translate-y:0px!important}div.extendify .translate-y-4{--tw-translate-y:1rem!important}div.extendify .-translate-y-px{--tw-translate-y:-1px!important}div.extendify .-translate-y-full{--tw-translate-y:-100%!important}div.extendify .rotate-90{--tw-rotate:90deg!important}div.extendify .cursor-pointer{cursor:pointer!important}div.extendify .flex-col{flex-direction:column!important}div.extendify .items-end{align-items:flex-end!important}div.extendify .items-center{align-items:center!important}div.extendify .justify-end{justify-content:flex-end!important}div.extendify .justify-center{justify-content:center!important}div.extendify .justify-between{justify-content:space-between!important}div.extendify .justify-evenly{justify-content:space-evenly!important}div.extendify .gap-6{gap:1.5rem!important}div.extendify .space-x-0>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(0px*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(0px*var(--tw-space-x-reverse))!important}div.extendify .space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(.25rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(.25rem*var(--tw-space-x-reverse))!important}div.extendify .space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(.5rem*var(--tw-space-x-reverse))!important}div.extendify .space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(.75rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(.75rem*var(--tw-space-x-reverse))!important}div.extendify .space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(1rem*var(--tw-space-x-reverse))!important}div.extendify .space-x-0\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(.125rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(.125rem*var(--tw-space-x-reverse))!important}div.extendify .space-x-1\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(.375rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(.375rem*var(--tw-space-x-reverse))!important}div.extendify .space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(.5rem*var(--tw-space-y-reverse))!important;margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify .space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse))!important;margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify .divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0!important;border-bottom-width:calc(1px*var(--tw-divide-y-reverse))!important;border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))!important}div.extendify .overflow-hidden{overflow:hidden!important}div.extendify .overflow-y-auto{overflow-y:auto!important}div.extendify .overflow-x-hidden{overflow-x:hidden!important}div.extendify .whitespace-nowrap{white-space:nowrap!important}div.extendify .rounded-sm{border-radius:.125rem!important}div.extendify .rounded{border-radius:.25rem!important}div.extendify .rounded-md{border-radius:.375rem!important}div.extendify .rounded-tr-sm{border-top-right-radius:.125rem!important}div.extendify .rounded-br-sm{border-bottom-right-radius:.125rem!important}div.extendify .border-0{border-width:0!important}div.extendify .border-2{border-width:2px!important}div.extendify .border-8{border-width:8px!important}div.extendify .border{border-width:1px!important}div.extendify .border-r{border-right-width:1px!important}div.extendify .border-b-0{border-bottom-width:0!important}div.extendify .border-b{border-bottom-width:1px!important}div.extendify .border-l-8{border-left-width:8px!important}div.extendify .border-solid{border-style:solid!important}div.extendify .border-none{border-style:none!important}div.extendify .border-transparent{border-color:transparent!important}div.extendify .border-black{--tw-border-opacity:1!important;border-color:rgba(0,0,0,var(--tw-border-opacity))!important}div.extendify .border-gray-200{--tw-border-opacity:1!important;border-color:rgba(224,224,224,var(--tw-border-opacity))!important}div.extendify .border-gray-900{--tw-border-opacity:1!important;border-color:rgba(30,30,30,var(--tw-border-opacity))!important}div.extendify .border-extendify-main{--tw-border-opacity:1!important;border-color:rgba(11,74,67,var(--tw-border-opacity))!important}div.extendify .border-extendify-secondary{--tw-border-opacity:1!important;border-color:rgba(203,195,245,var(--tw-border-opacity))!important}div.extendify .border-extendify-transparent-black-100{border-color:rgba(0,0,0,.07)!important}div.extendify .border-wp-alert-red{--tw-border-opacity:1!important;border-color:rgba(204,24,24,var(--tw-border-opacity))!important}div.extendify .focus\:border-transparent:focus{border-color:transparent!important}div.extendify .bg-transparent{background-color:transparent!important}div.extendify .bg-black{--tw-bg-opacity:1!important;background-color:rgba(0,0,0,var(--tw-bg-opacity))!important}div.extendify .bg-white{--tw-bg-opacity:1!important;background-color:rgba(255,255,255,var(--tw-bg-opacity))!important}div.extendify .bg-gray-50{--tw-bg-opacity:1!important;background-color:rgba(251,251,251,var(--tw-bg-opacity))!important}div.extendify .bg-gray-100{--tw-bg-opacity:1!important;background-color:rgba(240,240,240,var(--tw-bg-opacity))!important}div.extendify .bg-gray-900{--tw-bg-opacity:1!important;background-color:rgba(30,30,30,var(--tw-bg-opacity))!important}div.extendify .bg-extendify-main{--tw-bg-opacity:1!important;background-color:rgba(11,74,67,var(--tw-bg-opacity))!important}div.extendify .bg-extendify-alert{--tw-bg-opacity:1!important;background-color:rgba(132,16,16,var(--tw-bg-opacity))!important}div.extendify .bg-extendify-secondary{--tw-bg-opacity:1!important;background-color:rgba(203,195,245,var(--tw-bg-opacity))!important}div.extendify .bg-extendify-transparent-white{background-color:hsla(0,0%,99%,.88)!important}div.extendify .bg-wp-theme-500{background-color:var(--wp-admin-theme-color)!important}div.extendify .group:hover .group-hover\:bg-gray-900{--tw-bg-opacity:1!important;background-color:rgba(30,30,30,var(--tw-bg-opacity))!important}div.extendify .hover\:bg-extendify-main-dark:hover{--tw-bg-opacity:1!important;background-color:rgba(5,49,44,var(--tw-bg-opacity))!important}div.extendify .hover\:bg-wp-theme-600:hover{background-color:var(--wp-admin-theme-color-darker-10)!important}div.extendify .active\:bg-gray-900:active{--tw-bg-opacity:1!important;background-color:rgba(30,30,30,var(--tw-bg-opacity))!important}div.extendify .bg-opacity-40{--tw-bg-opacity:0.4!important}div.extendify .bg-cover{background-size:cover!important}div.extendify .bg-clip-padding{background-clip:padding-box!important}div.extendify .fill-current{fill:currentColor!important}div.extendify .stroke-current{stroke:currentColor!important}div.extendify .p-0{padding:0!important}div.extendify .p-1{padding:.25rem!important}div.extendify .p-2{padding:.5rem!important}div.extendify .p-3{padding:.75rem!important}div.extendify .p-4{padding:1rem!important}div.extendify .p-6{padding:1.5rem!important}div.extendify .p-10{padding:2.5rem!important}div.extendify .p-12{padding:3rem!important}div.extendify .p-0\.5{padding:.125rem!important}div.extendify .p-1\.5{padding:.375rem!important}div.extendify .p-3\.5{padding:.875rem!important}div.extendify .px-0{padding-left:0!important;padding-right:0!important}div.extendify .px-1{padding-left:.25rem!important;padding-right:.25rem!important}div.extendify .px-2{padding-left:.5rem!important;padding-right:.5rem!important}div.extendify .px-3{padding-left:.75rem!important;padding-right:.75rem!important}div.extendify .px-4{padding-left:1rem!important;padding-right:1rem!important}div.extendify .px-5{padding-left:1.25rem!important;padding-right:1.25rem!important}div.extendify .px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}div.extendify .px-0\.5{padding-left:.125rem!important;padding-right:.125rem!important}div.extendify .px-2\.5{padding-left:.625rem!important;padding-right:.625rem!important}div.extendify .py-0{padding-bottom:0!important;padding-top:0!important}div.extendify .py-1{padding-bottom:.25rem!important;padding-top:.25rem!important}div.extendify .py-2{padding-bottom:.5rem!important;padding-top:.5rem!important}div.extendify .py-3{padding-bottom:.75rem!important;padding-top:.75rem!important}div.extendify .py-4{padding-bottom:1rem!important;padding-top:1rem!important}div.extendify .py-6{padding-bottom:1.5rem!important;padding-top:1.5rem!important}div.extendify .py-2\.5{padding-bottom:.625rem!important;padding-top:.625rem!important}div.extendify .pt-0{padding-top:0!important}div.extendify .pt-2{padding-top:.5rem!important}div.extendify .pt-4{padding-top:1rem!important}div.extendify .pt-6{padding-top:1.5rem!important}div.extendify .pt-px{padding-top:1px!important}div.extendify .pt-0\.5{padding-top:.125rem!important}div.extendify .pr-3{padding-right:.75rem!important}div.extendify .pb-2{padding-bottom:.5rem!important}div.extendify .pb-20{padding-bottom:5rem!important}div.extendify .pb-36{padding-bottom:9rem!important}div.extendify .pb-40{padding-bottom:10rem!important}div.extendify .pl-0{padding-left:0!important}div.extendify .pl-2{padding-left:.5rem!important}div.extendify .pl-6{padding-left:1.5rem!important}div.extendify .text-left{text-align:left!important}div.extendify .text-center{text-align:center!important}div.extendify .text-xs{font-size:.75rem!important;line-height:1rem!important}div.extendify .text-sm{font-size:.875rem!important;line-height:1.25rem!important}div.extendify .text-base{font-size:1rem!important;line-height:1.5rem!important}div.extendify .text-lg{font-size:1.125rem!important;line-height:1.75rem!important}div.extendify .text-xl{font-size:1.25rem!important;line-height:1.75rem!important}div.extendify .font-light{font-weight:300!important}div.extendify .font-normal{font-weight:400!important}div.extendify .font-medium{font-weight:500!important}div.extendify .font-semibold{font-weight:600!important}div.extendify .font-bold{font-weight:700!important}div.extendify .uppercase{text-transform:uppercase!important}div.extendify .italic{font-style:italic!important}div.extendify .leading-none{line-height:1!important}div.extendify .text-black{--tw-text-opacity:1!important;color:rgba(0,0,0,var(--tw-text-opacity))!important}div.extendify .text-white{--tw-text-opacity:1!important;color:rgba(255,255,255,var(--tw-text-opacity))!important}div.extendify .text-gray-50{--tw-text-opacity:1!important;color:rgba(251,251,251,var(--tw-text-opacity))!important}div.extendify .text-gray-500{--tw-text-opacity:1!important;color:rgba(204,204,204,var(--tw-text-opacity))!important}div.extendify .text-gray-700{--tw-text-opacity:1!important;color:rgba(117,117,117,var(--tw-text-opacity))!important}div.extendify .text-gray-800{--tw-text-opacity:1!important;color:rgba(31,41,55,var(--tw-text-opacity))!important}div.extendify .text-gray-900{--tw-text-opacity:1!important;color:rgba(30,30,30,var(--tw-text-opacity))!important}div.extendify .text-red-500{--tw-text-opacity:1!important;color:rgba(239,68,68,var(--tw-text-opacity))!important}div.extendify .text-extendify-main{--tw-text-opacity:1!important;color:rgba(11,74,67,var(--tw-text-opacity))!important}div.extendify .text-extendify-gray{--tw-text-opacity:1!important;color:rgba(95,95,95,var(--tw-text-opacity))!important}div.extendify .text-extendify-black{--tw-text-opacity:1!important;color:rgba(30,30,30,var(--tw-text-opacity))!important}div.extendify .text-wp-theme-500{color:var(--wp-admin-theme-color)!important}div.extendify .text-wp-alert-red{--tw-text-opacity:1!important;color:rgba(204,24,24,var(--tw-text-opacity))!important}div.extendify .group:hover .group-hover\:text-gray-50{--tw-text-opacity:1!important;color:rgba(251,251,251,var(--tw-text-opacity))!important}div.extendify .hover\:text-white:hover{--tw-text-opacity:1!important;color:rgba(255,255,255,var(--tw-text-opacity))!important}div.extendify .hover\:text-wp-theme-500:hover{color:var(--wp-admin-theme-color)!important}div.extendify .focus\:text-white:focus{--tw-text-opacity:1!important;color:rgba(255,255,255,var(--tw-text-opacity))!important}div.extendify .focus\:text-blue-500:focus{--tw-text-opacity:1!important;color:rgba(59,130,246,var(--tw-text-opacity))!important}div.extendify .underline{text-decoration:underline!important}div.extendify .no-underline{text-decoration:none!important}div.extendify .group:hover .group-hover\:underline{text-decoration:underline!important}div.extendify .hover\:no-underline:hover{text-decoration:none!important}div.extendify .opacity-0{opacity:0!important}div.extendify .opacity-30{opacity:.3!important}div.extendify .opacity-50{opacity:.5!important}div.extendify .opacity-75{opacity:.75!important}div.extendify .focus\:opacity-100:focus,div.extendify .group:focus .group-focus\:opacity-100,div.extendify .group:hover .group-hover\:opacity-100,div.extendify .hover\:opacity-100:hover,div.extendify .opacity-100{opacity:1!important}div.extendify .shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05)!important}div.extendify .shadow-md,div.extendify .shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}div.extendify .shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -1px rgba(0,0,0,.06)!important}div.extendify .shadow-modal{--tw-shadow: 0 0 0 1px rgba(0,0,0,.1),0 3px 15px -3px rgba(0,0,0,.035),0 0 1px rgba(0,0,0,.05)!important}div.extendify .focus\:shadow-none:focus,div.extendify .shadow-modal{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}div.extendify .focus\:shadow-none:focus{--tw-shadow:0 0 #0000!important}div.extendify .focus\:outline-none:focus,div.extendify .outline-none{outline:2px solid transparent!important;outline-offset:2px!important}div.extendify .focus\:ring-wp:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--wp-admin-border-width-focus) + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}div.extendify .filter{--tw-blur:var(--tw-empty,/*!*/ /*!*/)!important;--tw-brightness:var(--tw-empty,/*!*/ /*!*/)!important;--tw-contrast:var(--tw-empty,/*!*/ /*!*/)!important;--tw-grayscale:var(--tw-empty,/*!*/ /*!*/)!important;--tw-hue-rotate:var(--tw-empty,/*!*/ /*!*/)!important;--tw-invert:var(--tw-empty,/*!*/ /*!*/)!important;--tw-saturate:var(--tw-empty,/*!*/ /*!*/)!important;--tw-sepia:var(--tw-empty,/*!*/ /*!*/)!important;--tw-drop-shadow:var(--tw-empty,/*!*/ /*!*/)!important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}div.extendify .blur{--tw-blur:blur(8px)!important}div.extendify .invert{--tw-invert:invert(100%)!important}div.extendify .backdrop-filter{--tw-backdrop-blur:var(--tw-empty,/*!*/ /*!*/)!important;--tw-backdrop-brightness:var(--tw-empty,/*!*/ /*!*/)!important;--tw-backdrop-contrast:var(--tw-empty,/*!*/ /*!*/)!important;--tw-backdrop-grayscale:var(--tw-empty,/*!*/ /*!*/)!important;--tw-backdrop-hue-rotate:var(--tw-empty,/*!*/ /*!*/)!important;--tw-backdrop-invert:var(--tw-empty,/*!*/ /*!*/)!important;--tw-backdrop-opacity:var(--tw-empty,/*!*/ /*!*/)!important;--tw-backdrop-saturate:var(--tw-empty,/*!*/ /*!*/)!important;--tw-backdrop-sepia:var(--tw-empty,/*!*/ /*!*/)!important;-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important;backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important}div.extendify .backdrop-blur-xl{--tw-backdrop-blur:blur(24px)!important}div.extendify .backdrop-saturate-200{--tw-backdrop-saturate:saturate(2)!important}div.extendify .transition-all{transition-duration:.15s!important;transition-property:all!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}div.extendify .transition{transition-duration:.15s!important;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter!important;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter!important;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}div.extendify .transition-opacity{transition-duration:.15s!important;transition-property:opacity!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}div.extendify .delay-200{transition-delay:.2s!important}div.extendify .duration-100{transition-duration:.1s!important}div.extendify .duration-200{transition-duration:.2s!important}div.extendify .duration-300{transition-duration:.3s!important}div.extendify .ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)!important}div.extendify .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.extendify{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/)!important;--tw-ring-offset-width:0px!important;--tw-ring-offset-color:transparent!important;--tw-ring-color:var(--wp-admin-theme-color)!important}.extendify *,.extendify :after,.extendify :before{border:0 solid #e5e7eb!important;box-sizing:border-box!important}.extendify .button-focus:focus{--tw-shadow:0 0 #0000!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.extendify .button-focus{outline:2px solid transparent!important;outline-offset:2px!important}.extendify .button-focus:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--wp-admin-border-width-focus) + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;--tw-ring-color:var(--wp-admin-theme-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}div.extendify button.extendify-skip-to-sr-link:focus{--tw-bg-opacity:1!important;background-color:rgba(255,255,255,var(--tw-bg-opacity))!important;padding:1rem!important;position:fixed!important;top:0!important;z-index:99999!important}.button-extendify-main{--tw-bg-opacity:1!important;background-color:rgba(11,74,67,var(--tw-bg-opacity))!important;border-radius:.25rem!important;cursor:pointer!important;white-space:nowrap!important}.button-extendify-main:hover{--tw-bg-opacity:1!important;background-color:rgba(5,49,44,var(--tw-bg-opacity))!important}.button-extendify-main:active{--tw-bg-opacity:1!important;background-color:rgba(30,30,30,var(--tw-bg-opacity))!important}.button-extendify-main{font-size:1rem!important;line-height:1.5rem!important;padding:.375rem .75rem!important}.button-extendify-main,.button-extendify-main:active,.button-extendify-main:focus,.button-extendify-main:hover{--tw-text-opacity:1!important;color:rgba(255,255,255,var(--tw-text-opacity))!important}.button-extendify-main{text-decoration:none!important;transition-duration:.15s!important;transition-duration:.2s!important;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter!important;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter!important;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.extendify .button-extendify-main:focus{--tw-shadow:0 0 #0000!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.extendify .button-extendify-main{outline:2px solid transparent!important;outline-offset:2px!important}.extendify .button-extendify-main:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--wp-admin-border-width-focus) + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;--tw-ring-color:var(--wp-admin-theme-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.extendify input.button-extendify-main:focus,.extendify input.button-focus:focus,.extendify select.button-extendify-main:focus,.extendify select.button-focus:focus{--tw-shadow:0 0 #0000!important;border-color:transparent!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important;outline:2px solid transparent!important;outline-offset:2px!important}#extendify-search-input:not(:-moz-placeholder-shown)~svg{display:none!important}#extendify-search-input:not(:-ms-input-placeholder)~svg{display:none!important}#extendify-search-input:focus~svg,#extendify-search-input:not(:placeholder-shown)~svg{display:none!important}#extendify-search-input::-webkit-textfield-decoration-container{margin-right:.75rem!important}.extendify .components-panel__body>.components-panel__body-title{background-color:transparent!important;border-bottom:1px solid #e0e0e0!important}.extendify .components-modal__header{--tw-border-opacity:1!important;border-bottom-width:1px!important;border-color:rgba(221,221,221,var(--tw-border-opacity))!important}.block-editor-block-preview__content .block-editor-block-list__layout.is-root-container>.ext{max-width:none!important}.block-editor-block-list__layout.is-root-container .ext.block-editor-block-list__block{max-width:100%!important}.block-editor-block-preview__content-iframe .block-editor-block-list__layout.is-root-container .ext.block-editor-block-list__block{max-width:none!important}.extendify .block-editor-block-preview__container{-webkit-animation:extendifyOpacityIn .2s cubic-bezier(.694,0,.335,1) 0ms forwards;animation:extendifyOpacityIn .2s cubic-bezier(.694,0,.335,1) 0ms forwards;opacity:0}.extendify .is-root-container>[data-align=full],.extendify .is-root-container>[data-align=full]>.wp-block,.extendify .is-root-container>[data-block]{margin-bottom:0!important;margin-top:0!important}.editor-styles-wrapper:not(.block-editor-writing-flow)>.is-root-container :where(.wp-block)[data-align=full]{margin-bottom:0!important;margin-top:0!important}@-webkit-keyframes extendifyOpacityIn{0%{opacity:0}to{opacity:1}}@keyframes extendifyOpacityIn{0%{opacity:0}to{opacity:1}}.extendify .with-light-shadow:after{--tw-shadow:inset 0 0 0 1px rgba(0,0,0,.1),0 3px 15px -3px rgba(0,0,0,.035),0 0 1px rgba(0,0,0,.025)!important;border-width:0!important;bottom:0!important;content:""!important;left:0!important;position:absolute!important;right:0!important;top:0!important}.extendify .with-light-shadow:after,.extendify .with-light-shadow:hover:after{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.extendify .with-light-shadow:hover:after{--tw-shadow:inset 0 0 0 1px rgba(0,0,0,.2),0 3px 15px -3px rgba(0,0,0,.025),0 0 1px rgba(0,0,0,.02)!important}@supports not (((-webkit-backdrop-filter:saturate(2) blur(24px)) or (backdrop-filter:saturate(2) blur(24px)))){div.extendify .bg-extendify-transparent-white{--tw-bg-opacity:1!important;background-color:rgba(240,240,240,var(--tw-bg-opacity))!important}}.components-panel__body.ext-type-control .components-panel__body-title{border-bottom-width:0!important;margin:0 -1rem!important;padding-left:1.25rem!important;padding-right:1.25rem!important}.extendify .animate-pulse{-webkit-animation:extendifyPulse 3s cubic-bezier(.4,0,.6,1) infinite;animation:extendifyPulse 3s cubic-bezier(.4,0,.6,1) infinite}@-webkit-keyframes extendifyPulse{0%,to{opacity:1}50%{opacity:.5}}@keyframes extendifyPulse{0%,to{opacity:1}50%{opacity:.5}}.is-template--in-review:before,.is-template--inactive:before{--tw-border-opacity:1!important;border:8px solid rgba(203,195,245,var(--tw-border-opacity))!important;bottom:0!important;content:""!important;height:100%!important;left:0!important;position:absolute!important;right:0!important;top:0!important;width:100%!important;z-index:40!important}.is-template--inactive:before{border-color:#fdeab6!important}.extendify-tooltip-default:not(.is-without-arrow)[data-y-axis=bottom]:after{border-bottom-color:#1e1e1e!important}.extendify-tooltip-default:not(.is-without-arrow):before{border-color:transparent!important}.extendify-tooltip-default:not(.is-without-arrow) .components-popover__content{--tw-bg-opacity:1!important;--tw-text-opacity:1!important;background-color:rgba(30,30,30,var(--tw-bg-opacity))!important;border-color:transparent!important;color:rgba(255,255,255,var(--tw-text-opacity))!important;min-width:250px!important;padding:1rem!important}.extendify-bottom-arrow:after{--tw-translate-x:0!important;--tw-translate-y:0!important;--tw-rotate:0!important;--tw-skew-x:0!important;--tw-skew-y:0!important;--tw-scale-x:1!important;--tw-scale-y:1!important;--tw-translate-y:-1px!important;border-color:#1e1e1e transparent transparent!important;border-width:8px!important;bottom:-15px!important;content:""!important;display:inline-block!important;height:0!important;position:absolute!important;transform:translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important;width:0!important}@media (min-width:480px){div.extendify .xs\:inline{display:inline!important}div.extendify .xs\:h-9{height:2.25rem!important}div.extendify .xs\:pr-3{padding-right:.75rem!important}div.extendify .xs\:pl-2{padding-left:.5rem!important}}@media (min-width:600px){div.extendify .sm\:mx-0{margin-left:0!important;margin-right:0!important}div.extendify .sm\:mt-0{margin-top:0!important}div.extendify .sm\:mb-8{margin-bottom:2rem!important}div.extendify .sm\:ml-2{margin-left:.5rem!important}div.extendify .sm\:block{display:block!important}div.extendify .sm\:flex{display:flex!important}div.extendify .sm\:h-auto{height:auto!important}div.extendify .sm\:w-72{width:18rem!important}div.extendify .sm\:w-auto{width:auto!important}div.extendify .sm\:translate-y-5{--tw-translate-y:1.25rem!important}div.extendify .sm\:space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse))!important;margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify .sm\:p-0{padding:0!important}div.extendify .sm\:py-0{padding-bottom:0!important;padding-top:0!important}div.extendify .sm\:pt-0{padding-top:0!important}div.extendify .sm\:pt-5{padding-top:1.25rem!important}}@media (min-width:782px){div.extendify .md\:m-0{margin:0!important}div.extendify .md\:-ml-8{margin-left:-2rem!important}div.extendify .md\:block{display:block!important}div.extendify .md\:flex{display:flex!important}div.extendify .md\:hidden{display:none!important}div.extendify .md\:max-w-2xl{max-width:42rem!important}div.extendify .md\:gap-8{gap:2rem!important}div.extendify .md\:space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(2rem*var(--tw-space-y-reverse))!important;margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify .md\:p-8{padding:2rem!important}div.extendify .md\:px-8{padding-right:2rem!important}div.extendify .md\:pl-8,div.extendify .md\:px-8{padding-left:2rem!important}}@media (min-width:1080px){div.extendify .lg\:absolute{position:absolute!important}div.extendify .lg\:-mr-1{margin-right:-.25rem!important}div.extendify .lg\:block{display:block!important}div.extendify .lg\:flex{display:flex!important}div.extendify .lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}div.extendify .lg\:overflow-hidden{overflow:hidden!important}div.extendify .lg\:p-16{padding:4rem!important}}
|
public/build/extendify.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
/*! For license information please see extendify.js.LICENSE.txt */
|
2 |
-
(()=>{var e,t={135:(e,t,n)=>{e.exports=n(248)},206:(e,t,n)=>{e.exports=n(57)},387:(e,t,n)=>{"use strict";var r=n(485),o=n(570),i=n(940),a=n(581),s=n(574),l=n(845),c=n(338),u=n(524),d=n(141),f=n(132);e.exports=function(e){return new Promise((function(t,n){var p,h=e.data,m=e.headers,x=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}r.isFormData(h)&&delete m["Content-Type"];var v=new XMLHttpRequest;if(e.auth){var g=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(g+":"+b)}var w=s(e.baseURL,e.url);function j(){if(v){var r="getAllResponseHeaders"in v?l(v.getAllResponseHeaders()):null,i={data:x&&"text"!==x&&"json"!==x?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:r,config:e,request:v};o((function(e){t(e),y()}),(function(e){n(e),y()}),i),v=null}}if(v.open(e.method.toUpperCase(),a(w,e.params,e.paramsSerializer),!0),v.timeout=e.timeout,"onloadend"in v?v.onloadend=j:v.onreadystatechange=function(){v&&4===v.readyState&&(0!==v.status||v.responseURL&&0===v.responseURL.indexOf("file:"))&&setTimeout(j)},v.onabort=function(){v&&(n(u("Request aborted",e,"ECONNABORTED",v)),v=null)},v.onerror=function(){n(u("Network Error",e,null,v)),v=null},v.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||d.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",v)),v=null},r.isStandardBrowserEnv()){var k=(e.withCredentials||c(w))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;k&&(m[e.xsrfHeaderName]=k)}"setRequestHeader"in v&&r.forEach(m,(function(e,t){void 0===h&&"content-type"===t.toLowerCase()?delete m[t]:v.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(v.withCredentials=!!e.withCredentials),x&&"json"!==x&&(v.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&v.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&v.upload&&v.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){v&&(n(!e||e&&e.type?new f("canceled"):e),v.abort(),v=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),h||(h=null),v.send(h)}))}},57:(e,t,n)=>{"use strict";var r=n(485),o=n(875),i=n(29),a=n(941);var s=function e(t){var n=new i(t),s=o(i.prototype.request,n);return r.extend(s,i.prototype,n),r.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(141));s.Axios=i,s.Cancel=n(132),s.CancelToken=n(603),s.isCancel=n(475),s.VERSION=n(345).version,s.all=function(e){return Promise.all(e)},s.spread=n(739),s.isAxiosError=n(835),e.exports=s,e.exports.default=s},132:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},603:(e,t,n)=>{"use strict";var r=n(132);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},o.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},475:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},29:(e,t,n)=>{"use strict";var r=n(485),o=n(581),i=n(96),a=n(9),s=n(941),l=n(144),c=l.validators;function u(e){this.defaults=e,this.interceptors={request:new i,response:new i}}u.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&l.assertOptions(n,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var r=[],o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var i,u=[];if(this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)})),!o){var d=[a,void 0];for(Array.prototype.unshift.apply(d,r),d=d.concat(u),i=Promise.resolve(t);d.length;)i=i.then(d.shift(),d.shift());return i}for(var f=t;r.length;){var p=r.shift(),h=r.shift();try{f=p(f)}catch(e){h(e);break}}try{i=a(f)}catch(e){return Promise.reject(e)}for(;u.length;)i=i.then(u.shift(),u.shift());return i},u.prototype.getUri=function(e){return e=s(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=u},96:(e,t,n)=>{"use strict";var r=n(485);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},574:(e,t,n)=>{"use strict";var r=n(642),o=n(288);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},524:(e,t,n)=>{"use strict";var r=n(953);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},9:(e,t,n)=>{"use strict";var r=n(485),o=n(212),i=n(475),a=n(141),s=n(132);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s("canceled")}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return l(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(l(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},953:e=>{"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},941:(e,t,n)=>{"use strict";var r=n(485);e.exports=function(e,t){t=t||{};var n={};function o(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function i(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(e[n],t[n])}function a(e){if(!r.isUndefined(t[e]))return o(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(void 0,t[n])}function l(n){return n in t?o(e[n],t[n]):n in e?o(void 0,e[n]):void 0}var c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||i,o=t(e);r.isUndefined(o)&&t!==l||(n[e]=o)})),n}},570:(e,t,n)=>{"use strict";var r=n(524);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},212:(e,t,n)=>{"use strict";var r=n(485),o=n(141);e.exports=function(e,t,n){var i=this||o;return r.forEach(n,(function(n){e=n.call(i,e,t)})),e}},141:(e,t,n)=>{"use strict";var r=n(61),o=n(485),i=n(446),a=n(953),s={"Content-Type":"application/x-www-form-urlencoded"};function l(e,t){!o.isUndefined(e)&&o.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==r&&"[object process]"===Object.prototype.toString.call(r))&&(c=n(387)),c),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),o.isFormData(e)||o.isArrayBuffer(e)||o.isBuffer(e)||o.isStream(e)||o.isFile(e)||o.isBlob(e)?e:o.isArrayBufferView(e)?e.buffer:o.isURLSearchParams(e)?(l(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):o.isObject(e)||t&&"application/json"===t["Content-Type"]?(l(t,"application/json"),function(e,t,n){if(o.isString(e))try{return(t||JSON.parse)(e),o.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||u.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,i=!n&&"json"===this.responseType;if(i||r&&o.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw a(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),o.forEach(["post","put","patch"],(function(e){u.headers[e]=o.merge(s)})),e.exports=u},345:e=>{e.exports={version:"0.26.0"}},875:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},581:(e,t,n)=>{"use strict";var r=n(485);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},288:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},940:(e,t,n)=>{"use strict";var r=n(485);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},642:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},835:(e,t,n)=>{"use strict";var r=n(485);e.exports=function(e){return r.isObject(e)&&!0===e.isAxiosError}},338:(e,t,n)=>{"use strict";var r=n(485);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},446:(e,t,n)=>{"use strict";var r=n(485);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},845:(e,t,n)=>{"use strict";var r=n(485),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},739:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},144:(e,t,n)=>{"use strict";var r=n(345).version,o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var i={};o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,a){if(!1===e)throw new Error(o(r," has been removed"+(t?" in "+t:"")));return t&&!i[r]&&(i[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var s=e[i],l=void 0===s||a(s,i,e);if(!0!==l)throw new TypeError("option "+i+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:o}},485:(e,t,n)=>{"use strict";var r=n(875),o=Object.prototype.toString;function i(e){return Array.isArray(e)}function a(e){return void 0===e}function s(e){return"[object ArrayBuffer]"===o.call(e)}function l(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===o.call(e)}function d(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:i,isArrayBuffer:s,isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"[object FormData]"===o.call(e)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&s(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:l,isPlainObject:c,isUndefined:a,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:u,isStream:function(e){return l(e)&&u(e.pipe)},isURLSearchParams:function(e){return"[object URLSearchParams]"===o.call(e)},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:d,merge:function e(){var t={};function n(n,r){c(t[r])&&c(n)?t[r]=e(t[r],n):c(n)?t[r]=e({},n):i(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)d(arguments[r],n);return t},extend:function(e,t,n){return d(t,(function(t,o){e[o]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},364:(e,t,n)=>{"use strict";const r=wp.blocks,o=wp.element;var i=n(363),a=n.n(i);function s(e){let t;const n=new Set,r=(e,r)=>{const o="function"==typeof e?e(t):e;if(o!==t){const e=t;t=r?o:Object.assign({},t,o),n.forEach((n=>n(t,e)))}},o=()=>t,i={setState:r,getState:o,subscribe:(e,r,i)=>r||i?((e,r=o,i=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let a=r(t);function s(){const n=r(t);if(!i(a,n)){const t=a;e(a=n,t)}}return n.add(s),()=>n.delete(s)})(e,r,i):(n.add(e),()=>n.delete(e)),destroy:()=>n.clear()};return t=e(r,o,i),i}const l="undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent)?i.useEffect:i.useLayoutEffect;function c(e){const t="function"==typeof e?s(e):e,n=(e=t.getState,n=Object.is)=>{const[,r]=(0,i.useReducer)((e=>e+1),0),o=t.getState(),a=(0,i.useRef)(o),s=(0,i.useRef)(e),c=(0,i.useRef)(n),u=(0,i.useRef)(!1),d=(0,i.useRef)();let f;void 0===d.current&&(d.current=e(o));let p=!1;(a.current!==o||s.current!==e||c.current!==n||u.current)&&(f=e(o),p=!n(d.current,f)),l((()=>{p&&(d.current=f),a.current=o,s.current=e,c.current=n,u.current=!1}));const h=(0,i.useRef)(o);l((()=>{const e=()=>{try{const e=t.getState(),n=s.current(e);c.current(d.current,n)||(a.current=e,d.current=n,r())}catch(e){u.current=!0,r()}},n=t.subscribe(e);return t.getState()!==h.current&&e(),n}),[]);const m=p?f:d.current;return(0,i.useDebugValue)(m),m};return Object.assign(n,t),n[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const e=[n,t];return{next(){const t=e.length<=0;return{value:e.shift(),done:t}}}},n}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;const u=e=>(t,n,r)=>{const o=r.subscribe;r.subscribe=(e,t,n)=>{let i=e;if(t){const o=(null==n?void 0:n.equalityFn)||Object.is;let a=e(r.getState());i=n=>{const r=e(n);if(!o(a,r)){const e=a;t(a=r,e)}},(null==n?void 0:n.fireImmediately)&&t(a,a)}return o(i)};return e(t,n,r)};var d=Object.defineProperty,f=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,m=(e,t,n)=>t in e?d(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,x=(e,t)=>{for(var n in t||(t={}))p.call(t,n)&&m(e,n,t[n]);if(f)for(var n of f(t))h.call(t,n)&&m(e,n,t[n]);return e};const y=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then:e=>y(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>y(t)(e)}}},v=(e,t)=>(n,r,o)=>{let i=x({getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>x(x({},t),e)},t);(i.blacklist||i.whitelist)&&console.warn(`The ${i.blacklist?"blacklist":"whitelist"} option is deprecated and will be removed in the next version. Please use the 'partialize' option instead.`);let a=!1;const s=new Set,l=new Set;let c;try{c=i.getStorage()}catch(e){}if(!c)return e(((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...e)}),r,o);c.removeItem||console.warn(`[zustand persist middleware] The given storage for item '${i.name}' does not contain a 'removeItem' method, which will be required in v4.`);const u=y(i.serialize),d=()=>{const e=i.partialize(x({},r()));let t;i.whitelist&&Object.keys(e).forEach((t=>{var n;!(null==(n=i.whitelist)?void 0:n.includes(t))&&delete e[t]})),i.blacklist&&i.blacklist.forEach((t=>delete e[t]));const n=u({state:e,version:i.version}).then((e=>c.setItem(i.name,e))).catch((e=>{t=e}));if(t)throw t;return n},f=o.setState;o.setState=(e,t)=>{f(e,t),d()};const p=e(((...e)=>{n(...e),d()}),r,o);let h;const m=()=>{var e;if(!c)return;a=!1,s.forEach((e=>e(r())));const t=(null==(e=i.onRehydrateStorage)?void 0:e.call(i,r()))||void 0;return y(c.getItem.bind(c))(i.name).then((e=>{if(e)return i.deserialize(e)})).then((e=>{if(e){if("number"!=typeof e.version||e.version===i.version)return e.state;if(i.migrate)return i.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((e=>(h=i.merge(e,p),n(h,!0),d()))).then((()=>{null==t||t(h,void 0),a=!0,l.forEach((e=>e(h)))})).catch((e=>{null==t||t(void 0,e)}))};return o.persist={setOptions:e=>{i=x(x({},i),e),e.getStorage&&(c=e.getStorage())},clearStorage:()=>{var e;null==(e=null==c?void 0:c.removeItem)||e.call(c,i.name)},rehydrate:()=>m(),hasHydrated:()=>a,onHydrate:e=>(s.add(e),()=>{s.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},m(),h||p};function g(e){return function(e){if(Array.isArray(e))return b(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b(e,t)}(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 b(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}var w=c(u(v((function(e,t){return{open:!1,ready:!1,metaData:{},currentTaxonomies:{},currentType:"pattern",modals:[],pushModal:function(n){return e({modals:[n].concat(g(t().modals))})},popModal:function(){return e({modals:t().modals.slice(1)})},removeAllModals:function(){return e({modals:[]})},updateCurrentTaxonomies:function(t){return e({currentTaxonomies:Object.assign({},t)})},updateCurrentType:function(t){return e({currentType:t})},setOpen:function(t){return e({open:t})},setReady:function(t){return e({ready:t})}}}),{name:"extendify-global-state",partialize:function(e){return delete e.modals,delete e.ready,e}}))),j=n(135),k=n.n(j),S=n(206),C=n.n(S);const _=lodash;function O(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}var E,N=function(){return(e=k().mark((function e(){var t;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("".concat(window.extendifyData.root,"/user"),{method:"GET",headers:{"X-WP-Nonce":window.extendifyData.nonce,"X-Requested-With":"XMLHttpRequest","X-Extendify":!0}});case 2:return t=e.sent,e.next=5,t.json();case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){O(i,r,o,a,s,"next",e)}function s(e){O(i,r,o,a,s,"throw",e)}a(void 0)}))})();var e},A=function(e,t){var n=new FormData;return n.append("email",e),n.append("key",t),J.post("login",n,{headers:{"Content-Type":"multipart/form-data"}})},P=function(e){var t=new FormData;return t.append("data",JSON.stringify(e)),J.post("user",t,{headers:{"Content-Type":"multipart/form-data"}})},T=function(){return J.post("clear-user")},I=function(){return J.get("max-free-imports")};function L(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 M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(Object(n),!0).forEach((function(t){F(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function R(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return D(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return D(e,t)}(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.")}()}function D(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 F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function z(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){B(i,r,o,a,s,"next",e)}function s(e){B(i,r,o,a,s,"throw",e)}a(void 0)}))}}var U,V,H,W={getItem:(H=z(k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(){return H.apply(this,arguments)}),setItem:(V=z(k().mark((function e(t,n){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,P(n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(e,t){return V.apply(this,arguments)}),removeItem:(U=z(k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,T();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(){return U.apply(this,arguments)})},q=function(){var e,t,n;return null===window.extendifyData.sitesettings||(null===(e=window.extendifyData)||void 0===e||null===(t=e.sitesettings)||void 0===t||null===(n=t.state)||void 0===n?void 0:n.enabled)},$=(F(E={},"notice-position","0001"),F(E,"main-button-text","0002"),F(E,"default-or-alt-sitetype","0004"),F(E,"import-counter-type","0005"),F(E,"sitetype-open-closed","0006"),E),G=c(v((function(e,t){return{_hasHydrated:!1,firstLoadedOn:(new Date).toISOString(),email:"",apiKey:"",uuid:"",sdkPartner:"",noticesDismissedAt:{},modalNoticesDismissedAt:{},imports:0,runningImports:0,allowedImports:0,freebieImports:0,entryPoint:"not-set",enabled:q(),canInstallPlugins:!1,canActivatePlugins:!1,participatingTestsGroups:{},preferredOptions:{taxonomies:{},type:"",search:""},incrementImports:function(){var n=Number(t().freebieImports)>0?Number(t().freebieImports)-1:Number(t().freebieImports),r=Number(t().runningImports)+ +(n<1);e({imports:Number(t().imports)+1,runningImports:r,freebieImports:n})},giveFreebieImports:function(n){e({freebieImports:t().freebieImports+n})},totalAvailableImports:function(){return Number(t().allowedImports)+Number(t().freebieImports)},testGroup:function(n,r){if(Object.keys($).includes(n)){var o=t().participatingTestsGroups;return o[n]||e({participatingTestsGroups:Object.assign({},o,F({},n,(0,_.sample)(r)))}),(o=t().participatingTestsGroups)[n]}},activeTestGroups:function(){return Object.entries(t().participatingTestsGroups).filter((function(e){var t=R(e,1)[0];return Object.keys($).includes(t)})).reduce((function(e,t){var n=R(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})},activeTestGroupsUtmValue:function(){var e=Object.entries(t().activeTestGroups()).map((function(e){var t=R(e,2),n=t[0],r=t[1];return"".concat($[n],"=").concat(r)}),"").join(":");return encodeURIComponent(e)},hasAvailableImports:function(){return!!t().apiKey||Number(t().runningImports)<Number(t().totalAvailableImports())},remainingImports:function(){var e=Number(t().totalAvailableImports())-Number(t().runningImports);return t().allowedImports?e>0?e:0:null},updatePreferredSiteType:function(e){t().updatePreferredOption("siteType",e)},updatePreferredOption:function(n,r){var o,i;Object.prototype.hasOwnProperty.call(t().preferredOptions,n)||(r=Object.assign({},null!==(o=null===(i=t().preferredOptions)||void 0===i?void 0:i.taxonomies)&&void 0!==o?o:{},F({},n,r)),n="taxonomies");e({preferredOptions:M({},Object.assign({},t().preferredOptions,F({},n,r)))})},markNoticeSeen:function(n,r){e(F({},"".concat(r,"DismissedAt"),M(M({},t()["".concat(r,"DismissedAt")]),{},F({},n,(new Date).toISOString()))))}}}),{name:"extendify-user",getStorage:function(){return W},onRehydrateStorage:function(){return function(){G.setState({_hasHydrated:!0})}},partialize:function(e){return delete e._hasHydrated,e}})),J=C().create({baseURL:window.extendifyData.root,headers:{"X-WP-Nonce":window.extendifyData.nonce,"X-Requested-With":"XMLHttpRequest","X-Extendify":!0}});function K(e){return Object.prototype.hasOwnProperty.call(e,"data")?e.data:e}function X(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}J.interceptors.response.use((function(e){return function(e){return Object.prototype.hasOwnProperty.call(e,"soft_error")&&window.dispatchEvent(new CustomEvent("extendify::softerror-encountered",{detail:e.soft_error,bubbles:!0})),e}(K(e))}),(function(e){return function(e){if(e.response)return console.error(e.response),Promise.reject(K(e.response))}(e)})),J.interceptors.request.use((function(e){return function(e){return e.headers["X-Extendify-Dev-Mode"]=window.location.search.indexOf("DEVMODE")>-1,e.headers["X-Extendify-Local-Mode"]=window.location.search.indexOf("LOCALMODE")>-1,e}(function(e){var t=G.getState(),n=t.apiKey?"unlimited":t.remainingImports();return e.data&&(e.data.remaining_imports=n,e.data.entry_point=t.entryPoint,e.data.total_imports=t.imports,e.data.participating_tests=t.activeTestGroups()),e}(e))}),(function(e){return e}));var Z=function(){return(e=k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,J.get("taxonomies");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){X(i,r,o,a,s,"next",e)}function s(e){X(i,r,o,a,s,"throw",e)}a(void 0)}))})();var e};function Y(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}var Q=c(v((function(e,t){return{taxonomies:{},setTaxonomies:function(t){return e({taxonomies:t})},fetchTaxonomies:(n=k().mark((function e(){var n,r;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Z();case 2:if(r=e.sent,r=Object.keys(r).reduce((function(e,t){return e[t]=r[t],e}),{}),null!==(n=Object.keys(r))&&void 0!==n&&n.length){e.next=6;break}return e.abrupt("return");case 6:t().setTaxonomies(r);case 7:case"end":return e.stop()}}),e)})),r=function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function a(e){Y(i,r,o,a,s,"next",e)}function s(e){Y(i,r,o,a,s,"throw",e)}a(void 0)}))},function(){return r.apply(this,arguments)})};var n,r}),{name:"extendify-taxonomies"}));function ee(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 te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(n),!0).forEach((function(t){ne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function re(e){return function(e){if(Array.isArray(e))return oe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return oe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oe(e,t)}(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 oe(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}var ie,ae,se=c(u((function(e,t){return{templates:[],skipNextFetch:!1,fetchToken:null,taxonomyDefaultState:{},nextPage:"",searchParams:{taxonomies:{},type:"pattern"},initTemplateData:function(){e({activeTemplate:{}}),t().setupDefaultTaxonomies(),t().updateType(w.getState().currentType)},appendTemplates:function(n){return e({templates:re(new Map([].concat(re(t().templates),re(n)).map((function(e){return[e.id,e]}))).values())})},setupDefaultTaxonomies:function(){var n,r,o,i,a=Q.getState().taxonomies,s=Object.entries(a).reduce((function(e,t){return e[t[0]]=function(e){return"siteType"===e?{slug:"",title:"Not set"}:{slug:"",title:"Featured"}}(t[0]),e}),{}),l={},c=null!==(n=null===(r=G.getState().preferredOptions)||void 0===r?void 0:r.taxonomies)&&void 0!==n?n:{};c.tax_categories&&(c=t().getLegacySiteType(c,a)),s=Object.assign({},s,c,null!==(o=null===(i=w.getState())||void 0===i?void 0:i.currentTaxonomies)&&void 0!==o?o:{}),l.taxonomies=Object.assign({},s),e({taxonomyDefaultState:s,searchParams:te({},Object.assign(t().searchParams,l))})},updateTaxonomies:function(e){var n,r,o={};(o.taxonomies=Object.assign({},t().searchParams.taxonomies,e),null!=o&&null!==(n=o.taxonomies)&&void 0!==n&&n.siteType)&&G.getState().updatePreferredOption("siteType",null==o||null===(r=o.taxonomies)||void 0===r?void 0:r.siteType);w.getState().updateCurrentTaxonomies(null==o?void 0:o.taxonomies),t().updateSearchParams(o)},updateType:function(e){w.getState().updateCurrentType(e),t().updateSearchParams({type:e})},updateSearchParams:function(n){null!=n&&n.taxonomies&&!Object.keys(n.taxonomies).length&&(n.taxonomies=t().taxonomyDefaultState);var r=Object.assign({},t().searchParams,n);JSON.stringify(r)!==JSON.stringify(t().searchParams)&&e({templates:[],nextPage:"",searchParams:r})},resetTemplates:function(){return e({templates:[],nextPage:""})},getLegacySiteType:function(e,n){var r=n.siteType.find((function(t){return[t.slug,null==t?void 0:t.title].includes(e.tax_categories)}));return G.getState().updatePreferredSiteType(r),t().updateTaxonomies({siteType:r}),G.getState().updatePreferredOption("tax_categories",null),G.getState().preferredOptions.taxonomies}}}))),le=function(){return J.get("meta-data")},ce=function(e){var t,n,r,o,i,a=null!==(t=null===(n=se.getState())||void 0===n||null===(r=n.searchParams)||void 0===r?void 0:r.taxonomies)&&void 0!==t?t:[];return J.post("simple-ping",{action:e,categories:a,sdk_partner:null!==(o=null===(i=G.getState())||void 0===i?void 0:i.sdkPartner)&&void 0!==o?o:""})};function ue(){return ue=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},ue.apply(this,arguments)}function de(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}function fe(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 pe(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return fe(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)?fe(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function he(e,t){if(e in t){for(var n=t[e],r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];return"function"==typeof n?n.apply(void 0,o):n}var a=new Error('Tried to handle "'+e+'" but there is no handler defined. Only defined handlers are: '+Object.keys(t).map((function(e){return'"'+e+'"'})).join(", ")+".");throw Error.captureStackTrace&&Error.captureStackTrace(a,he),a}function me(e){var t=e.props,n=e.slot,r=e.defaultTag,o=e.features,i=e.visible,a=void 0===i||i,s=e.name;if(a)return xe(t,n,r,s);var l=null!=o?o:ie.None;if(l&ie.Static){var c=t.static,u=void 0!==c&&c,d=de(t,["static"]);if(u)return xe(d,n,r,s)}if(l&ie.RenderStrategy){var f,p=t.unmount,h=void 0===p||p,m=de(t,["unmount"]);return he(h?ae.Unmount:ae.Hidden,((f={})[ae.Unmount]=function(){return null},f[ae.Hidden]=function(){return xe(ue({},m,{hidden:!0,style:{display:"none"}}),n,r,s)},f))}return xe(t,n,r,s)}function xe(e,t,n,r){var o;void 0===t&&(t={});var a=ve(e,["unmount","static"]),s=a.as,l=void 0===s?n:s,c=a.children,u=a.refName,d=void 0===u?"ref":u,f=de(a,["as","children","refName"]),p=void 0!==e.ref?((o={})[d]=e.ref,o):{},h="function"==typeof c?c(t):c;if(f.className&&"function"==typeof f.className&&(f.className=f.className(t)),l===i.Fragment&&Object.keys(f).length>0){if(!(0,i.isValidElement)(h)||Array.isArray(h)&&h.length>1)throw new Error(['Passing props on "Fragment"!',"","The current component <"+r+' /> is rendering a "Fragment".',"However we need to passthrough the following props:",Object.keys(f).map((function(e){return" - "+e})).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((function(e){return" - "+e})).join("\n")].join("\n"));return(0,i.cloneElement)(h,Object.assign({},function(e,t,n){for(var r,o=Object.assign({},e),i=function(){var n,i=r.value;void 0!==e[i]&&void 0!==t[i]&&Object.assign(o,((n={})[i]=function(n){n.defaultPrevented||e[i](n),n.defaultPrevented||t[i](n)},n))},a=pe(n);!(r=a()).done;)i();return o}(function(e){var t=Object.assign({},e);for(var n in t)void 0===t[n]&&delete t[n];return t}(ve(f,["ref"])),h.props,["onClick"]),p))}return(0,i.createElement)(l,Object.assign({},ve(f,["ref"]),l!==i.Fragment&&p),h)}function ye(e){var t;return Object.assign((0,i.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function ve(e,t){void 0===t&&(t=[]);for(var n,r=Object.assign({},e),o=pe(t);!(n=o()).done;){var i=n.value;i in r&&delete r[i]}return r}!function(e){e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static"}(ie||(ie={})),function(e){e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden"}(ae||(ae={}));var ge="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,be={serverHandoffComplete:!1};function we(){var e=(0,i.useState)(be.serverHandoffComplete),t=e[0],n=e[1];return(0,i.useEffect)((function(){!0!==t&&n(!0)}),[t]),(0,i.useEffect)((function(){!1===be.serverHandoffComplete&&(be.serverHandoffComplete=!0)}),[]),t}var je=0;function ke(){return++je}function Se(){var e=we(),t=(0,i.useState)(e?ke:null),n=t[0],r=t[1];return ge((function(){null===n&&r(ke())}),[n]),null!=n?""+n:void 0}function Ce(){var e=(0,i.useRef)(!1);return(0,i.useEffect)((function(){return e.current=!0,function(){e.current=!1}}),[]),e}var _e,Oe,Ee=(0,i.createContext)(null);function Ne(){return(0,i.useContext)(Ee)}function Ae(e){var t=e.value,n=e.children;return a().createElement(Ee.Provider,{value:t},n)}function Pe(){var e=[],t={requestAnimationFrame:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){var e=requestAnimationFrame.apply(void 0,arguments);t.add((function(){return cancelAnimationFrame(e)}))})),nextFrame:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.requestAnimationFrame((function(){t.requestAnimationFrame.apply(t,n)}))},setTimeout:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){var e=setTimeout.apply(void 0,arguments);t.add((function(){return clearTimeout(e)}))})),add:function(t){e.push(t)},dispose:function(){for(var t,n=pe(e.splice(0));!(t=n()).done;){var r=t.value;r()}}};return t}function Te(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];e&&r.length>0&&(t=e.classList).add.apply(t,r)}function Ie(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];e&&r.length>0&&(t=e.classList).remove.apply(t,r)}function Le(e,t,n,r,o,i){var a=Pe(),s=void 0!==i?function(e){var t={called:!1};return function(){if(!t.called)return t.called=!0,e.apply(void 0,arguments)}}(i):function(){};return Ie.apply(void 0,[e].concat(o)),Te.apply(void 0,[e].concat(t,n)),a.nextFrame((function(){Ie.apply(void 0,[e].concat(n)),Te.apply(void 0,[e].concat(r)),a.add(function(e,t){var n=Pe();if(!e)return n.dispose;var r=getComputedStyle(e),o=[r.transitionDuration,r.transitionDelay].map((function(e){var t=e.split(",").filter(Boolean).map((function(e){return e.includes("ms")?parseFloat(e):1e3*parseFloat(e)})).sort((function(e,t){return t-e}))[0];return void 0===t?0:t})),i=o[0],a=o[1];return 0!==i?n.setTimeout((function(){t(Oe.Finished)}),i+a):t(Oe.Finished),n.add((function(){return t(Oe.Cancelled)})),n.dispose}(e,(function(n){return Ie.apply(void 0,[e].concat(r,t)),Te.apply(void 0,[e].concat(o)),s(n)})))})),a.add((function(){return Ie.apply(void 0,[e].concat(t,n,r,o))})),a.add((function(){return s(Oe.Cancelled)})),a.dispose}function Me(e){return void 0===e&&(e=""),(0,i.useMemo)((function(){return e.split(" ").filter((function(e){return e.trim().length>1}))}),[e])}Ee.displayName="OpenClosedContext",function(e){e[e.Open=0]="Open",e[e.Closed=1]="Closed"}(_e||(_e={})),function(e){e.Finished="finished",e.Cancelled="cancelled"}(Oe||(Oe={}));var Re,De=(0,i.createContext)(null);De.displayName="TransitionContext",function(e){e.Visible="visible",e.Hidden="hidden"}(Re||(Re={}));var Fe=(0,i.createContext)(null);function Be(e){return"children"in e?Be(e.children):e.current.filter((function(e){return e.state===Re.Visible})).length>0}function ze(e){var t=(0,i.useRef)(e),n=(0,i.useRef)([]),r=Ce();(0,i.useEffect)((function(){t.current=e}),[e]);var o=(0,i.useCallback)((function(e,o){var i;void 0===o&&(o=ae.Hidden);var a=n.current.findIndex((function(t){return t.id===e}));-1!==a&&(he(o,((i={})[ae.Unmount]=function(){n.current.splice(a,1)},i[ae.Hidden]=function(){n.current[a].state=Re.Hidden},i)),!Be(n)&&r.current&&(null==t.current||t.current()))}),[t,r,n]),a=(0,i.useCallback)((function(e){var t=n.current.find((function(t){return t.id===e}));return t?t.state!==Re.Visible&&(t.state=Re.Visible):n.current.push({id:e,state:Re.Visible}),function(){return o(e,ae.Unmount)}}),[n,o]);return(0,i.useMemo)((function(){return{children:n,register:a,unregister:o}}),[a,o,n])}function Ue(){}Fe.displayName="NestingContext";var Ve=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function He(e){for(var t,n={},r=pe(Ve);!(t=r()).done;){var o,i=t.value;n[i]=null!=(o=e[i])?o:Ue}return n}var We,qe=ie.RenderStrategy;function $e(e){var t,n=e.beforeEnter,r=e.afterEnter,o=e.beforeLeave,s=e.afterLeave,l=e.enter,c=e.enterFrom,u=e.enterTo,d=e.entered,f=e.leave,p=e.leaveFrom,h=e.leaveTo,m=de(e,["beforeEnter","afterEnter","beforeLeave","afterLeave","enter","enterFrom","enterTo","entered","leave","leaveFrom","leaveTo"]),x=(0,i.useRef)(null),y=(0,i.useState)(Re.Visible),v=y[0],g=y[1],b=m.unmount?ae.Unmount:ae.Hidden,w=function(){var e=(0,i.useContext)(De);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),j=w.show,k=w.appear,S=w.initial,C=function(){var e=(0,i.useContext)(Fe);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),_=C.register,O=C.unregister,E=Se(),N=(0,i.useRef)(!1),A=ze((function(){N.current||(g(Re.Hidden),O(E),F.current.afterLeave())}));ge((function(){if(E)return _(E)}),[_,E]),ge((function(){var e;b===ae.Hidden&&E&&(j&&v!==Re.Visible?g(Re.Visible):he(v,((e={})[Re.Hidden]=function(){return O(E)},e[Re.Visible]=function(){return _(E)},e)))}),[v,E,_,O,j,b]);var P=Me(l),T=Me(c),I=Me(u),L=Me(d),M=Me(f),R=Me(p),D=Me(h),F=function(e){var t=(0,i.useRef)(He(e));return(0,i.useEffect)((function(){t.current=He(e)}),[e]),t}({beforeEnter:n,afterEnter:r,beforeLeave:o,afterLeave:s}),B=we();(0,i.useEffect)((function(){if(B&&v===Re.Visible&&null===x.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[x,v,B]);var z=S&&!k;ge((function(){var e=x.current;if(e&&!z)return N.current=!0,j&&F.current.beforeEnter(),j||F.current.beforeLeave(),j?Le(e,P,T,I,L,(function(e){N.current=!1,e===Oe.Finished&&F.current.afterEnter()})):Le(e,M,R,D,L,(function(e){N.current=!1,e===Oe.Finished&&(Be(A)||(g(Re.Hidden),O(E),F.current.afterLeave()))}))}),[F,E,N,O,A,x,z,j,P,T,I,M,R,D]);var U={ref:x},V=m;return a().createElement(Fe.Provider,{value:A},a().createElement(Ae,{value:he(v,(t={},t[Re.Visible]=_e.Open,t[Re.Hidden]=_e.Closed,t))},me({props:ue({},V,U),defaultTag:"div",features:qe,visible:v===Re.Visible,name:"Transition.Child"})))}function Ge(e){var t,n=e.show,r=e.appear,o=void 0!==r&&r,s=e.unmount,l=de(e,["show","appear","unmount"]),c=Ne();void 0===n&&null!==c&&(n=he(c,((t={})[_e.Open]=!0,t[_e.Closed]=!1,t)));if(![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");var u=(0,i.useState)(n?Re.Visible:Re.Hidden),d=u[0],f=u[1],p=ze((function(){f(Re.Hidden)})),h=function(){var e=(0,i.useRef)(!0);return(0,i.useEffect)((function(){e.current=!1}),[]),e.current}(),m=(0,i.useMemo)((function(){return{show:n,appear:o||!h,initial:h}}),[n,o,h]);(0,i.useEffect)((function(){n?f(Re.Visible):Be(p)||f(Re.Hidden)}),[n,p]);var x={unmount:s};return a().createElement(Fe.Provider,{value:p},a().createElement(De.Provider,{value:m},me({props:ue({},x,{as:i.Fragment,children:a().createElement($e,Object.assign({},x,l))}),defaultTag:i.Fragment,features:qe,visible:d===Re.Visible,name:"Transition"})))}function Je(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=(0,i.useRef)(t);return(0,i.useEffect)((function(){r.current=t}),[t]),(0,i.useCallback)((function(e){for(var t,n=pe(r.current);!(t=n()).done;){var o=t.value;null!=o&&("function"==typeof o?o(e):o.current=e)}}),[r])}function Ke(e){for(var t,n,r=e.parentElement,o=null;r&&!(r instanceof HTMLFieldSetElement);)r instanceof HTMLLegendElement&&(o=r),r=r.parentElement;var i=null!=(t=""===(null==(n=r)?void 0:n.getAttribute("disabled")))&&t;return(!i||!function(e){if(!e)return!1;var t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(o))&&i}function Xe(e,t,n){var r=(0,i.useRef)(t);r.current=t,(0,i.useEffect)((function(){function t(e){r.current.call(window,e)}return window.addEventListener(e,t,n),function(){return window.removeEventListener(e,t,n)}}),[e,n])}Ge.Child=function(e){var t=null!==(0,i.useContext)(De),n=null!==Ne();return!t&&n?a().createElement(Ge,Object.assign({},e)):a().createElement($e,Object.assign({},e))},Ge.Root=Ge,function(e){e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab"}(We||(We={}));var Ze,Ye,Qe,et,tt,nt=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((function(e){return e+":not([tabindex='-1'])"})).join(",");function rt(e){null==e||e.focus({preventScroll:!0})}function ot(e,t){var n=Array.isArray(e)?e:function(e){return void 0===e&&(e=document.body),null==e?[]:Array.from(e.querySelectorAll(nt))}(e),r=document.activeElement,o=function(){if(t&(Ze.First|Ze.Next))return Qe.Next;if(t&(Ze.Previous|Ze.Last))return Qe.Previous;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")}(),i=function(){if(t&Ze.First)return 0;if(t&Ze.Previous)return Math.max(0,n.indexOf(r))-1;if(t&Ze.Next)return Math.max(0,n.indexOf(r))+1;if(t&Ze.Last)return n.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")}(),a=t&Ze.NoScroll?{preventScroll:!0}:{},s=0,l=n.length,c=void 0;do{var u;if(s>=l||s+l<=0)return Ye.Error;var d=i+s;if(t&Ze.WrapAround)d=(d+l)%l;else{if(d<0)return Ye.Underflow;if(d>=l)return Ye.Overflow}null==(u=c=n[d])||u.focus(a),s+=o}while(c!==document.activeElement);return c.hasAttribute("tabindex")||c.setAttribute("tabindex","0"),Ye.Success}function it(e,t,n){void 0===t&&(t=tt.All);var r=void 0===n?{}:n,o=r.initialFocus,a=r.containers,s=(0,i.useRef)("undefined"!=typeof window?document.activeElement:null),l=(0,i.useRef)(null),c=Ce(),u=Boolean(t&tt.RestoreFocus),d=Boolean(t&tt.InitialFocus);(0,i.useEffect)((function(){u&&(s.current=document.activeElement)}),[u]),(0,i.useEffect)((function(){if(u)return function(){rt(s.current),s.current=null}}),[u]),(0,i.useEffect)((function(){if(d&&e.current){var t=document.activeElement;if(null==o?void 0:o.current){if((null==o?void 0:o.current)===t)return void(l.current=t)}else if(e.current.contains(t))return void(l.current=t);(null==o?void 0:o.current)?rt(o.current):ot(e.current,Ze.First)===Ye.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),l.current=document.activeElement}}),[e,o,d]),Xe("keydown",(function(n){t&tt.TabLock&&e.current&&n.key===We.Tab&&(n.preventDefault(),ot(e.current,(n.shiftKey?Ze.Previous:Ze.Next)|Ze.WrapAround)===Ye.Success&&(l.current=document.activeElement))})),Xe("focus",(function(n){if(t&tt.FocusLock){var r=new Set(null==a?void 0:a.current);if(r.add(e),r.size){var o=l.current;if(o&&c.current){var i=n.target;i&&i instanceof HTMLElement?!function(e,t){for(var n,r=pe(e);!(n=r()).done;){var o;if(null==(o=n.value.current)?void 0:o.contains(t))return!0}return!1}(r,i)?(n.preventDefault(),n.stopPropagation(),rt(o)):(l.current=i,rt(i)):rt(l.current)}}}}),!0)}!function(e){e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll"}(Ze||(Ze={})),function(e){e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow"}(Ye||(Ye={})),function(e){e[e.Previous=-1]="Previous",e[e.Next=1]="Next"}(Qe||(Qe={})),function(e){e[e.Strict=0]="Strict",e[e.Loose=1]="Loose"}(et||(et={})),function(e){e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All"}(tt||(tt={}));var at=new Set,st=new Map;function lt(e){e.setAttribute("aria-hidden","true"),e.inert=!0}function ct(e){var t=st.get(e);t&&(null===t["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",t["aria-hidden"]),e.inert=t.inert)}var ut=(0,i.createContext)(!1);function dt(e){return a().createElement(ut.Provider,{value:e.force},e.children)}const ft=ReactDOM;function pt(){var e=(0,i.useContext)(ut),t=(0,i.useContext)(yt),n=(0,i.useState)((function(){if(!e&&null!==t)return null;if("undefined"==typeof window)return null;var n=document.getElementById("headlessui-portal-root");if(n)return n;var r=document.createElement("div");return r.setAttribute("id","headlessui-portal-root"),document.body.appendChild(r)})),r=n[0],o=n[1];return(0,i.useEffect)((function(){e||null!==t&&o(t.current)}),[t,o,e]),r}var ht=i.Fragment;function mt(e){var t=e,n=pt(),r=(0,i.useState)((function(){return"undefined"==typeof window?null:document.createElement("div")}))[0],o=we();return ge((function(){if(n&&r)return n.appendChild(r),function(){var e;n&&(r&&(n.removeChild(r),n.childNodes.length<=0&&(null==(e=n.parentElement)||e.removeChild(n))))}}),[n,r]),o&&n&&r?(0,ft.createPortal)(me({props:t,defaultTag:ht,name:"Portal"}),r):null}var xt=i.Fragment,yt=(0,i.createContext)(null);mt.Group=function(e){var t=e.target,n=de(e,["target"]);return a().createElement(yt.Provider,{value:t},me({props:n,defaultTag:xt,name:"Popover.Group"}))};var vt=(0,i.createContext)(null);function gt(){var e=(0,i.useContext)(vt);if(null===e){var t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,gt),t}return e}var bt,wt,jt,kt,St=(0,i.createContext)((function(){}));function Ct(e){var t=e.children,n=e.onUpdate,r=e.type,o=e.element,s=(0,i.useContext)(St),l=(0,i.useCallback)((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];null==n||n.apply(void 0,t),s.apply(void 0,t)}),[s,n]);return ge((function(){return l(bt.Add,r,o),function(){return l(bt.Remove,r,o)}}),[l,r,o]),a().createElement(St.Provider,{value:l},t)}St.displayName="StackContext",function(e){e[e.Add=0]="Add",e[e.Remove=1]="Remove"}(bt||(bt={})),function(e){e[e.Open=0]="Open",e[e.Closed=1]="Closed"}(jt||(jt={})),function(e){e[e.SetTitleId=0]="SetTitleId"}(kt||(kt={}));var _t=((wt={})[kt.SetTitleId]=function(e,t){return e.titleId===t.id?e:ue({},e,{titleId:t.id})},wt),Ot=(0,i.createContext)(null);function Et(e){var t=(0,i.useContext)(Ot);if(null===t){var n=new Error("<"+e+" /> is missing a parent <"+It.displayName+" /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(n,Et),n}return t}function Nt(e,t){return he(t.type,_t,e,t)}Ot.displayName="DialogContext";var At=ie.RenderStrategy|ie.Static,Pt=ye((function(e,t){var n,r=e.open,o=e.onClose,s=e.initialFocus,l=de(e,["open","onClose","initialFocus"]),c=(0,i.useState)(0),u=c[0],d=c[1],f=Ne();void 0===r&&null!==f&&(r=he(f,((n={})[_e.Open]=!0,n[_e.Closed]=!1,n)));var p=(0,i.useRef)(new Set),h=(0,i.useRef)(null),m=Je(h,t),x=e.hasOwnProperty("open")||null!==f,y=e.hasOwnProperty("onClose");if(!x&&!y)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!x)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!y)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof r)throw new Error("You provided an `open` prop to the `Dialog`, but the value is not a boolean. Received: "+r);if("function"!=typeof o)throw new Error("You provided an `onClose` prop to the `Dialog`, but the value is not a function. Received: "+o);var v=r?jt.Open:jt.Closed,g=null!==f?f===_e.Open:v===jt.Open,b=(0,i.useReducer)(Nt,{titleId:null,descriptionId:null}),w=b[0],j=b[1],k=(0,i.useCallback)((function(){return o(!1)}),[o]),S=(0,i.useCallback)((function(e){return j({type:kt.SetTitleId,id:e})}),[j]),C=we()&&v===jt.Open,_=u>1,O=null!==(0,i.useContext)(Ot);it(h,C?he(_?"parent":"leaf",{parent:tt.RestoreFocus,leaf:tt.All}):tt.None,{initialFocus:s,containers:p}),function(e,t){void 0===t&&(t=!0),ge((function(){if(t&&e.current){var n=e.current;at.add(n);for(var r,o=pe(st.keys());!(r=o()).done;){var i=r.value;i.contains(n)&&(ct(i),st.delete(i))}return document.querySelectorAll("body > *").forEach((function(e){if(e instanceof HTMLElement){for(var t,n=pe(at);!(t=n()).done;){var r=t.value;if(e.contains(r))return}1===at.size&&(st.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),lt(e))}})),function(){if(at.delete(n),at.size>0)document.querySelectorAll("body > *").forEach((function(e){if(e instanceof HTMLElement&&!st.has(e)){for(var t,n=pe(at);!(t=n()).done;){var r=t.value;if(e.contains(r))return}st.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),lt(e)}}));else for(var e,t=pe(st.keys());!(e=t()).done;){var r=e.value;ct(r),st.delete(r)}}}}),[t])}(h,!!_&&C),Xe("mousedown",(function(e){var t,n=e.target;v===jt.Open&&(_||(null==(t=h.current)?void 0:t.contains(n))||k())})),Xe("keydown",(function(e){e.key===We.Escape&&v===jt.Open&&(_||(e.preventDefault(),e.stopPropagation(),k()))})),(0,i.useEffect)((function(){if(v===jt.Open&&!O){var e=document.documentElement.style.overflow,t=document.documentElement.style.paddingRight,n=window.innerWidth-document.documentElement.clientWidth;return document.documentElement.style.overflow="hidden",document.documentElement.style.paddingRight=n+"px",function(){document.documentElement.style.overflow=e,document.documentElement.style.paddingRight=t}}}),[v,O]),(0,i.useEffect)((function(){if(v===jt.Open&&h.current){var e=new IntersectionObserver((function(e){for(var t,n=pe(e);!(t=n()).done;){var r=t.value;0===r.boundingClientRect.x&&0===r.boundingClientRect.y&&0===r.boundingClientRect.width&&0===r.boundingClientRect.height&&k()}}));return e.observe(h.current),function(){return e.disconnect()}}}),[v,h,k]);var E=function(){var e=(0,i.useState)([]),t=e[0],n=e[1];return[t.length>0?t.join(" "):void 0,(0,i.useMemo)((function(){return function(e){var t=(0,i.useCallback)((function(e){return n((function(t){return[].concat(t,[e])})),function(){return n((function(t){var n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))}}),[]),r=(0,i.useMemo)((function(){return{register:t,slot:e.slot,name:e.name,props:e.props}}),[t,e.slot,e.name,e.props]);return a().createElement(vt.Provider,{value:r},e.children)}}),[n])]}(),N=E[0],A=E[1],P="headlessui-dialog-"+Se(),T=(0,i.useMemo)((function(){return[{dialogState:v,close:k,setTitleId:S},w]}),[v,w,k,S]),I=(0,i.useMemo)((function(){return{open:v===jt.Open}}),[v]),L={ref:m,id:P,role:"dialog","aria-modal":v===jt.Open||void 0,"aria-labelledby":w.titleId,"aria-describedby":N,onClick:function(e){e.stopPropagation()}},M=l;return a().createElement(Ct,{type:"Dialog",element:h,onUpdate:(0,i.useCallback)((function(e,t,n){var r;"Dialog"===t&&he(e,((r={})[bt.Add]=function(){p.current.add(n),d((function(e){return e+1}))},r[bt.Remove]=function(){p.current.add(n),d((function(e){return e-1}))},r))}),[])},a().createElement(dt,{force:!0},a().createElement(mt,null,a().createElement(Ot.Provider,{value:T},a().createElement(mt.Group,{target:h},a().createElement(dt,{force:!1},a().createElement(A,{slot:I,name:"Dialog.Description"},me({props:ue({},M,L),slot:I,defaultTag:"div",features:At,visible:g,name:"Dialog"}))))))))})),Tt=ye((function e(t,n){var r=Et([It.displayName,e.name].join("."))[0],o=r.dialogState,a=r.close,s=Je(n),l="headlessui-dialog-overlay-"+Se(),c=(0,i.useCallback)((function(e){if(e.target===e.currentTarget){if(Ke(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),a()}}),[a]),u=(0,i.useMemo)((function(){return{open:o===jt.Open}}),[o]);return me({props:ue({},t,{ref:s,id:l,"aria-hidden":!0,onClick:c}),slot:u,defaultTag:"div",name:"Dialog.Overlay"})}));var It=Object.assign(Pt,{Overlay:Tt,Title:function e(t){var n=Et([It.displayName,e.name].join("."))[0],r=n.dialogState,o=n.setTitleId,a="headlessui-dialog-title-"+Se();(0,i.useEffect)((function(){return o(a),function(){return o(null)}}),[a,o]);var s=(0,i.useMemo)((function(){return{open:r===jt.Open}}),[r]);return me({props:ue({},t,{id:a}),slot:s,defaultTag:"h2",name:"Dialog.Title"})},Description:function(e){var t=gt(),n="headlessui-description-"+Se();ge((function(){return t.register(n)}),[n,t.register]);var r=e,o=ue({},t.props,{id:n});return me({props:ue({},r,o),slot:t.slot||{},defaultTag:"p",name:t.name||"Description"})}});const Lt=wp.components,Mt=wp.i18n;const Rt=function(e){let{icon:t,size:n=24,...r}=e;return(0,o.cloneElement)(t,{width:n,height:n,...r})};var Dt=n(42),Ft=n.n(Dt);const Bt=e=>(0,o.createElement)("circle",e),zt=e=>(0,o.createElement)("g",e),Ut=e=>(0,o.createElement)("path",e),Vt=e=>(0,o.createElement)("rect",e),Ht=e=>{let{className:t,isPressed:n,...r}=e;const i={...r,className:Ft()(t,{"is-pressed":n})||void 0,role:"img","aria-hidden":!0,focusable:!1};return(0,o.createElement)("svg",i)},Wt=(0,o.createElement)(Ht,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(Ut,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}));var qt=n(246);function $t(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Gt(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){$t(i,r,o,a,s,"next",e)}function s(e){$t(i,r,o,a,s,"throw",e)}a(void 0)}))}}var Jt=function(){return J.get("plugins")},Kt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=new FormData;return t.append("plugins",JSON.stringify(e)),J.post("plugins",t,{headers:{"Content-Type":"multipart/form-data"}})},Xt=function(){return J.get("active-plugins")};function Zt(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Yt(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Zt(i,r,o,a,s,"next",e)}function s(e){Zt(i,r,o,a,s,"throw",e)}a(void 0)}))}}function Qt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return en(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return en(e,t)}(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.")}()}function en(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 tn(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function nn(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){tn(i,r,o,a,s,"next",e)}function s(e){tn(i,r,o,a,s,"throw",e)}a(void 0)}))}}function rn(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function on(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return an(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return an(e,t)}(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.")}()}function an(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}var sn={promotion:function(e){var t,n=e.promotionData;return(0,qt.jsxs)(qt.Fragment,{children:[(0,qt.jsx)("span",{className:"text-black",children:null!==(t=null==n?void 0:n.text)&&void 0!==t?t:""}),(0,qt.jsx)("span",{className:"px-2 opacity-50","aria-hidden":"true",children:"|"}),(0,qt.jsx)("div",{className:"flex items-center justify-center space-x-2",children:(null==n?void 0:n.url)&&(0,qt.jsx)(Lt.Button,{variant:"link",className:"h-auto p-0 text-black underline hover:no-underline",href:"".concat(n.url,"&utm_source=").concat(window.extendifyData.sdk_partner,"&utm_group=").concat(G.getState().activeTestGroupsUtmValue()),onClick:nn(k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ce("promotion-notice-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),target:"_blank",children:null==n?void 0:n.button_text})})]})},feedback:function(){return(0,qt.jsxs)(qt.Fragment,{children:[(0,qt.jsx)("span",{className:"text-black",children:(0,Mt.__)("Tell us how to make the Extendify Library work better for you","extendify")}),(0,qt.jsx)("span",{className:"px-2 opacity-50","aria-hidden":"true",children:"|"}),(0,qt.jsx)("div",{className:"flex items-center justify-center space-x-2",children:(0,qt.jsx)(Lt.Button,{variant:"link",className:"h-auto p-0 text-black underline hover:no-underline",href:"https://extendify.com/feedback/?utm_source=".concat(window.extendifyData.sdk_partner,"&utm_medium=library&utm_campaign=feedback-notice&utm_content=give-feedback&utm_group=").concat(G.getState().activeTestGroupsUtmValue()),onClick:Gt(k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ce("feedback-notice-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),target:"_blank",children:(0,Mt.__)("Give feedback","extendify")})})]})},standalone:function(){var e=Qt((0,o.useState)(""),2),t=e[0],n=e[1],r=G((function(e){return e.giveFreebieImports}));return(0,qt.jsxs)("div",{children:[(0,qt.jsx)("span",{className:"text-black",children:(0,Mt.__)("Install the new Extendify Library plugin to get the latest we have to offer","extendify")}),(0,qt.jsx)("span",{className:"px-2 opacity-50","aria-hidden":"true",children:"|"}),(0,qt.jsxs)("div",{className:"relative inline-flex items-center space-x-2",children:[(0,qt.jsx)(Lt.Button,{variant:"link",className:Ft()("h-auto p-0 text-black underline hover:no-underline",{"opacity-0":t}),onClick:function(){n((0,Mt.__)("Installing...","extendify")),Promise.all([ce("stln-footer-install"),Kt(["extendify"]),new Promise((function(e){return setTimeout(e,1e3)}))]).then(Yt(k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r(10),n((0,Mt.__)("Success! Reloading...","extendify")),e.next=4,ce("stln-footer-success");case 4:window.location.reload();case 5:case"end":return e.stop()}}),e)})))).catch(function(){var e=Yt(k().mark((function e(t){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.error(t),n((0,Mt.__)("Error. See console.","extendify")),e.next=4,ce("stln-footer-fail");case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},children:(0,Mt.__)("Install Extendify standalone plugin","extendify")}),t?(0,qt.jsx)(Lt.Button,{variant:"link",disabled:!0,className:"absolute left-0 h-auto p-0 text-black underline opacity-100 hover:no-underline",onClick:function(){},children:t}):null]})]})}};function ln(e){var t,n=e.className,r=void 0===n?"":n,i=on((0,o.useState)(null),2),a=i[0],s=i[1],l=(0,o.useRef)(!1),c=w((function(e){var t,n;return null===(t=e.metaData)||void 0===t||null===(n=t.banners)||void 0===n?void 0:n.footer})),u=null!==(t=Object.keys(sn).find((function(e){var t,n,r,o,i,a,s;return"promotion"===e?!(null!==(t=G.getState().apiKey)&&void 0!==t&&t.length)&&(null==c?void 0:c.key)&&!G.getState().noticesDismissedAt[c.key]:"feedback"===e?(i=null!==(n=G.getState().imports)&&void 0!==n?n:0,a=null!==(r=null===(o=G.getState())||void 0===o?void 0:o.firstLoadedOn)&&void 0!==r?r:new Date,s=(new Date).getTime()-new Date(a).getTime(),i>=3&&s/864e5>3&&!G.getState().noticesDismissedAt[e]):"standalone"===e?!window.extendifyData.standalone&&!G.getState().noticesDismissedAt[e]:!G.getState().noticesDismissedAt[e]})))&&void 0!==t?t:null,d=sn[u],f=function(){var e,t=(e=k().mark((function e(){var t;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s(!1),t="promotion"===u?c.key:u,G.getState().markNoticeSeen(t,"notices"),e.next=5,ce("footer-notice-x-".concat(t));case 5:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){rn(i,r,o,a,s,"next",e)}function s(e){rn(i,r,o,a,s,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();return(0,o.useEffect)((function(){sn[u]&&!l.current&&(s(!0),l.current=!0)}),[u]),a&&d?(0,qt.jsxs)("div",{className:"".concat(r," relative mx-auto hidden max-w-screen-4xl items-center justify-center space-x-4 bg-extendify-secondary py-3 px-5 lg:flex"),children:[(0,qt.jsx)(d,{promotionData:c}),(0,qt.jsx)("div",{className:"absolute right-1",children:(0,qt.jsx)(Lt.Button,{className:"text-extendify-black opacity-50 hover:opacity-100 focus:opacity-100",icon:(0,qt.jsx)(Rt,{icon:Wt}),label:(0,Mt.__)("Dismiss this notice","extendify"),onClick:f,showTooltip:!1})})]}):null}function cn(e){const{body:t}=document.implementation.createHTMLDocument("");t.innerHTML=e;const n=t.getElementsByTagName("*");let r=n.length;for(;r--;){const e=n[r];if("SCRIPT"===e.tagName)(o=e).parentNode,o.parentNode.removeChild(o);else{let t=e.attributes.length;for(;t--;){const{name:n}=e.attributes[t];n.startsWith("on")&&e.removeAttribute(n)}}}var o;return t.innerHTML}const un=(0,qt.jsxs)(Ht,{viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg",children:[(0,qt.jsx)(Ut,{d:"M7.32457 0.907043C3.98785 0.907043 1.2829 3.61199 1.2829 6.94871C1.2829 10.2855 3.98785 12.9904 7.32457 12.9904C10.6613 12.9904 13.3663 10.2855 13.3663 6.94871C13.3663 3.61199 10.6613 0.907043 7.32457 0.907043V0.907043Z",stroke:"currentColor",strokeWidth:"1.25",fill:"none"}),(0,qt.jsx)(Ut,{d:"M6.34684 9.72526C6.34684 9.18224 6.77716 8.74168 7.32018 8.74168C7.8632 8.74168 8.30377 9.18224 8.30377 9.72526C8.30377 10.2683 7.8632 10.6986 7.32018 10.6986C6.77716 10.6986 6.34684 10.2683 6.34684 9.72526Z",fill:"currentColor"}),(0,qt.jsx)(Ut,{d:"M7.9759 7.11261C7.93492 7.47121 7.67878 7.76834 7.32018 7.76834C6.95134 7.76834 6.70544 7.46097 6.6747 7.11261L6.34684 4.1721C6.28537 3.67006 6.81814 3.19876 7.32018 3.19876C7.82222 3.19876 8.35499 3.67006 8.30377 4.1721L7.9759 7.11261Z",fill:"currentColor"})]});const dn=(0,qt.jsx)(Ht,{fill:"none",viewBox:"0 0 25 24",xmlns:"http://www.w3.org/2000/svg",children:(0,qt.jsx)(Ut,{clipRule:"evenodd",d:"m14.4063 2h4.1856c1.1856 0 1.6147.12701 2.0484.36409.4336.23802.7729.58706 1.0049 1.03111.2319.445.3548.8853.3548 2.10175v4.29475c0 1.2165-.1238 1.6567-.3548 2.1017-.232.445-.5722.7931-1.0049 1.0312-.1939.1064-.3873.1939-.6476.2567v3.4179c0 1.8788-.1912 2.5588-.5481 3.246-.3582.6873-.8836 1.2249-1.552 1.5925-.6697.3676-1.3325.5623-3.1634.5623h-6.46431c-1.83096 0-2.49367-.1962-3.16346-.5623-.6698-.3676-1.19374-.9067-1.552-1.5925s-.54943-1.3672-.54943-3.246v-6.63138c0-1.87871.19117-2.55871.54801-3.24597.35827-.68727.88362-1.22632 1.55342-1.59393.66837-.36615 1.3325-.56231 3.16346-.56231h2.76781c.0519-.55814.1602-.86269.3195-1.16946.232-.445.5721-.79404 1.0058-1.03206.4328-.23708.8628-.36409 2.0483-.36409zm-2.1512 2.73372c0-.79711.6298-1.4433 1.4067-1.4433h5.6737c.777 0 1.4068.64619 1.4068 1.4433v5.82118c0 .7971-.6298 1.4433-1.4068 1.4433h-5.6737c-.7769 0-1.4067-.6462-1.4067-1.4433z",fill:"currentColor",fillRule:"evenodd"})});const fn=(0,qt.jsx)(Ht,{fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,qt.jsx)(Ut,{clipRule:"evenodd",d:"m13.505 4h3.3044c.936 0 1.2747.10161 1.6171.29127.3424.19042.6102.46965.7934.82489.1831.356.2801.70824.2801 1.6814v3.43584c0 .9731-.0977 1.3254-.2801 1.6814-.1832.356-.4517.6344-.7934.8248-.153.0852-.3057.1552-.5112.2054v2.7344c0 1.503-.151 2.047-.4327 2.5968-.2828.5498-.6976.9799-1.2252 1.274-.5288.294-1.052.4498-2.4975.4498h-5.10341c-1.44549 0-1.96869-.1569-2.49747-.4498-.52878-.2941-.94242-.7254-1.22526-1.274-.28284-.5487-.43376-1.0938-.43376-2.5968v-5.3051c0-1.50301.15092-2.04701.43264-2.59682.28284-.54981.6976-.98106 1.22638-1.27514.52767-.29293 1.05198-.44985 2.49747-.44985h2.18511c.041-.44652.1265-.69015.2522-.93557.1832-.356.4517-.63523.7941-.82565.3417-.18966.6812-.29127 1.6171-.29127zm-1.6984 2.18698c0-.63769.4973-1.15464 1.1106-1.15464h4.4793c.6133 0 1.1106.51695 1.1106 1.15464v4.65692c0 .6377-.4973 1.1547-1.1106 1.1547h-4.4793c-.6133 0-1.1106-.517-1.1106-1.1547z",fill:"currentColor",fillRule:"evenodd"})});const pn=(0,qt.jsx)(Ht,{fill:"none",width:"150",height:"30",viewBox:"0 0 2524 492",xmlns:"http://www.w3.org/2000/svg",children:(0,qt.jsxs)(zt,{fill:"currentColor",children:[(0,qt.jsx)(Ut,{d:"m609.404 378.5c-24.334 0-46-5.5-65-16.5-18.667-11.333-33.334-26.667-44-46-10.667-19.667-16-42.167-16-67.5 0-25.667 5.166-48.333 15.5-68 10.333-19.667 24.833-35 43.5-46 18.666-11.333 40-17 64-17 25 0 46.5 5.333 64.5 16 18 10.333 31.833 24.833 41.5 43.5 10 18.667 15 41 15 67v18.5l-212 .5 1-39h150.5c0-17-5.5-30.667-16.5-41-10.667-10.333-25.167-15.5-43.5-15.5-14.334 0-26.5 3-36.5 9-9.667 6-17 15-22 27s-7.5 26.667-7.5 44c0 26.667 5.666 46.833 17 60.5 11.666 13.667 28.833 20.5 51.5 20.5 16.666 0 30.333-3.167 41-9.5 11-6.333 18.166-15.333 21.5-27h56.5c-5.334 27-18.667 48.167-40 63.5-21 15.333-47.667 23-80 23z"}),(0,qt.jsx)("path",{d:"m797.529 372h-69.5l85-121-85-126h71l54.5 84 52.5-84h68.5l-84 125.5 81.5 121.5h-70l-53-81.5z"}),(0,qt.jsx)("path",{d:"m994.142 125h155.998v51h-155.998zm108.498 247h-61v-324h61z"}),(0,qt.jsx)("path",{d:"m1278.62 378.5c-24.33 0-46-5.5-65-16.5-18.66-11.333-33.33-26.667-44-46-10.66-19.667-16-42.167-16-67.5 0-25.667 5.17-48.333 15.5-68 10.34-19.667 24.84-35 43.5-46 18.67-11.333 40-17 64-17 25 0 46.5 5.333 64.5 16 18 10.333 31.84 24.833 41.5 43.5 10 18.667 15 41 15 67v18.5l-212 .5 1-39h150.5c0-17-5.5-30.667-16.5-41-10.66-10.333-25.16-15.5-43.5-15.5-14.33 0-26.5 3-36.5 9-9.66 6-17 15-22 27s-7.5 26.667-7.5 44c0 26.667 5.67 46.833 17 60.5 11.67 13.667 28.84 20.5 51.5 20.5 16.67 0 30.34-3.167 41-9.5 11-6.333 18.17-15.333 21.5-27h56.5c-5.33 27-18.66 48.167-40 63.5-21 15.333-47.66 23-80 23z"}),(0,qt.jsx)("path",{d:"m1484.44 372h-61v-247h56.5l5 32c7.67-12.333 18.5-22 32.5-29 14.34-7 29.84-10.5 46.5-10.5 31 0 54.34 9.167 70 27.5 16 18.333 24 43.333 24 75v152h-61v-137.5c0-20.667-4.66-36-14-46-9.33-10.333-22-15.5-38-15.5-19 0-33.83 6-44.5 18-10.66 12-16 28-16 48z"}),(0,qt.jsx)("path",{d:"m1798.38 378.5c-24 0-44.67-5.333-62-16-17-11-30.34-26.167-40-45.5-9.34-19.333-14-41.833-14-67.5s4.66-48.333 14-68c9.66-20 23.5-35.667 41.5-47s39.33-17 64-17c17.33 0 33.16 3.5 47.5 10.5 14.33 6.667 25.33 16.167 33 28.5v-156.5h60.5v372h-56l-4-38.5c-7.34 14-18.67 25-34 33-15 8-31.84 12-50.5 12zm13.5-56c14.33 0 26.66-3 37-9 10.33-6.333 18.33-15.167 24-26.5 6-11.667 9-24.833 9-39.5 0-15-3-28-9-39-5.67-11.333-13.67-20.167-24-26.5-10.34-6.667-22.67-10-37-10-14 0-26.17 3.333-36.5 10-10.34 6.333-18.34 15.167-24 26.5-5.34 11.333-8 24.333-8 39s2.66 27.667 8 39c5.66 11.333 13.66 20.167 24 26.5 10.33 6.333 22.5 9.5 36.5 9.5z"}),(0,qt.jsx)("path",{d:"m1996.45 372v-247h61v247zm30-296.5c-10.34 0-19.17-3.5-26.5-10.5-7-7.3333-10.5-16.1667-10.5-26.5s3.5-19 10.5-26c7.33-6.99999 16.16-10.49998 26.5-10.49998 10.33 0 19 3.49999 26 10.49998 7.33 7 11 15.6667 11 26s-3.67 19.1667-11 26.5c-7 7-15.67 10.5-26 10.5z"}),(0,qt.jsx)("path",{d:"m2085.97 125h155v51h-155zm155.5-122.5v52c-3.33 0-6.83 0-10.5 0-3.33 0-6.83 0-10.5 0-15.33 0-25.67 3.6667-31 11-5 7.3333-7.5 17.1667-7.5 29.5v277h-60.5v-277c0-22.6667 3.67-40.8333 11-54.5 7.33-14 17.67-24.1667 31-30.5 13.33-6.66666 28.83-10 46.5-10 5 0 10.17.166671 15.5.5 5.67.333329 11 .99999 16 2z"}),(0,qt.jsx)("path",{d:"m2330.4 125 80.5 228-33 62.5-112-290.5zm-58 361.5v-50.5h36.5c8 0 15-1 21-3 6-1.667 11.34-5 16-10 5-5 9.17-12.333 12.5-22l102.5-276h63l-121 302c-9 22.667-20.33 39.167-34 49.5-13.66 10.333-30.66 15.5-51 15.5-8.66 0-16.83-.5-24.5-1.5-7.33-.667-14.33-2-21-4z"}),(0,qt.jsx)("path",{clipRule:"evenodd",d:"m226.926 25.1299h83.271c23.586 0 32.123 2.4639 40.751 7.0633 8.628 4.6176 15.378 11.389 19.993 20.0037 4.615 8.6329 7.059 17.1746 7.059 40.7738v83.3183c0 23.599-2.463 32.141-7.059 40.774-4.615 8.633-11.383 15.386-19.993 20.003-3.857 2.065-7.704 3.764-12.884 4.981v66.308c0 36.447-3.803 49.639-10.902 62.972-7.128 13.333-17.579 23.763-30.877 30.894-13.325 7.132-26.51 10.909-62.936 10.909h-128.605c-36.4268 0-49.6113-3.805-62.9367-10.909-13.3254-7.131-23.749-17.589-30.8765-30.894-7.12757-13.304-10.9308-26.525-10.9308-62.972v-128.649c0-36.447 3.80323-49.639 10.9026-62.972 7.1275-13.333 17.5793-23.7909 30.9047-30.9224 13.2972-7.1034 26.5099-10.9088 62.9367-10.9088h55.064c1.033-10.8281 3.188-16.7362 6.357-22.6877 4.615-8.6329 11.382-15.4043 20.01-20.0219 8.61-4.5994 17.165-7.0633 40.751-7.0633zm-42.798 53.0342c0-15.464 12.53-28 27.986-28h112.877c15.457 0 27.987 12.536 27.987 28v112.9319c0 15.464-12.53 28-27.987 28h-112.877c-15.456 0-27.986-12.536-27.986-28z",fillRule:"evenodd"})]})});const hn=(0,qt.jsx)(Ht,{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:(0,qt.jsx)("path",{d:"m11.9893 2.59931c-.1822.00285-.3558.07789-.4827.20864s-.1967.30653-.1941.48871v1.375c-.0013.0911.0156.18155.0495.26609.034.08454.0844.16149.1484.22637s.1402.11639.2242.15156c.0841.03516.1743.05327.2654.05327s.1813-.01811.2654-.05327c.084-.03517.1603-.08668.2242-.15156.064-.06488.1144-.14183.1484-.22637s.0508-.17499.0495-.26609v-1.375c.0013-.09202-.0158-.18337-.0505-.26863-.0346-.08526-.086-.1627-.1511-.22773s-.1426-.11633-.2279-.15085c-.0853-.03453-.1767-.05158-.2687-.05014zm-5.72562.46013c-.1251.00033-.24775.0348-.35471.09968-.10697.06488-.19421.15771-.25232.2685-.05812.1108-.0849.23534-.07747.36023.00744.12488.0488.24537.11964.34849l.91667 1.375c.04939.07667.11354.14274.18872.19437.07517.05164.15987.0878.24916.10639.08928.01858.18137.01922.27091.00187.08953-.01734.17472-.05233.2506-.10292.07589-.05059.14095-.11577.1914-.19174.05045-.07598.08528-.16123.10246-.2508.01719-.08956.01638-.18165-.00237-.2709s-.05507-.17388-.10684-.24897l-.91666-1.375c-.06252-.09667-.14831-.1761-.2495-.231-.1012-.0549-.21456-.08351-.32969-.0832zm11.45212 0c-.1117.00307-.2209.03329-.3182.08804-.0973.05474-.1798.13237-.2404.22616l-.9167 1.375c-.0518.07509-.0881.15972-.1068.24897-.0188.08925-.0196.18134-.0024.2709.0172.08957.052.17482.1024.2508.0505.07597.1156.14115.1914.19174.0759.05059.1611.08558.2506.10292.0896.01735.1817.01671.271-.00187.0892-.01859.1739-.05475.2491-.10639.0752-.05163.1393-.1177.1887-.19437l.9167-1.375c.0719-.10456.1135-.22698.1201-.3537s-.022-.25281-.0826-.36429c-.0606-.11149-.1508-.20403-.2608-.26738-.11-.06334-.2353-.09502-.3621-.09153zm-9.61162 3.67472c-.09573-.00001-.1904.01998-.27795.05867-.08756.03869-.16607.09524-.23052.16602l-4.58333 5.04165c-.11999.1319-.18407.3052-.17873.4834.00535.1782.0797.3473.20738.4718l8.47917 8.25c.1284.1251.3006.1951.4798.1951.1793 0 .3514-.07.4798-.1951l8.4792-8.25c.1277-.1245.202-.2936.2074-.4718.0053-.1782-.0588-.3515-.1788-.4834l-4.5833-5.04165c-.0644-.07078-.1429-.12733-.2305-.16602s-.1822-.05868-.278-.05867h-3.877zm.30436 1.375h2.21646l-2.61213 3.48314c-.04258.0557-.07639.1176-.10026.1835h-2.83773zm4.96646 0h2.2165l3.3336 3.66664h-2.8368c-.0241-.066-.0582-.1278-.1011-.1835zm-1.375.45833 2.4063 3.20831h-4.81254zm-6.78637 4.58331h2.70077c.00665.0188.01412.0374.02238.0555l2.11442 4.6505zm4.20826 0h5.15621l-2.5781 5.6719zm6.66371 0h2.7008l-4.8376 4.706 2.1144-4.6505c.0083-.0181.0158-.0367.0224-.0555z",fill:"#000"})});const mn=(0,qt.jsxs)(Ht,{viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,qt.jsx)(Ut,{d:"M7.32457 0.907043C3.98785 0.907043 1.2829 3.61199 1.2829 6.94871C1.2829 10.2855 3.98785 12.9904 7.32457 12.9904C10.6613 12.9904 13.3663 10.2855 13.3663 6.94871C13.3663 3.61199 10.6613 0.907043 7.32457 0.907043V0.907043Z",stroke:"white",strokeWidth:"1.25"}),(0,qt.jsx)(Ut,{d:"M7.32458 10.0998L4.82458 7.59977M7.32458 10.0998V3.79764V10.0998ZM7.32458 10.0998L9.82458 7.59977L7.32458 10.0998Z",stroke:"white",strokeWidth:"1.25"})]});const xn=(0,qt.jsxs)(Ht,{viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,qt.jsx)("path",{d:"M7.93298 20.2773L17.933 20.2773C18.1982 20.2773 18.4526 20.172 18.6401 19.9845C18.8276 19.7969 18.933 19.5426 18.933 19.2773C18.933 19.0121 18.8276 18.7578 18.6401 18.5702C18.4526 18.3827 18.1982 18.2773 17.933 18.2773L7.93298 18.2773C7.66777 18.2773 7.41341 18.3827 7.22588 18.5702C7.03834 18.7578 6.93298 19.0121 6.93298 19.2773C6.93298 19.5426 7.03834 19.7969 7.22588 19.9845C7.41341 20.172 7.66777 20.2773 7.93298 20.2773Z",fill:"white"}),(0,qt.jsx)("path",{d:"M12.933 4.27734C12.6678 4.27734 12.4134 4.3827 12.2259 4.57024C12.0383 4.75777 11.933 5.01213 11.933 5.27734L11.933 12.8673L9.64298 10.5773C9.55333 10.4727 9.44301 10.3876 9.31895 10.3276C9.19488 10.2676 9.05975 10.2339 8.92203 10.2285C8.78431 10.2232 8.64698 10.2464 8.51865 10.2967C8.39033 10.347 8.27378 10.4232 8.17632 10.5207C8.07887 10.6181 8.00261 10.7347 7.95234 10.863C7.90206 10.9913 7.87886 11.1287 7.88418 11.2664C7.8895 11.4041 7.92323 11.5392 7.98325 11.6633C8.04327 11.7874 8.12829 11.8977 8.23297 11.9873L12.233 15.9873C12.3259 16.0811 12.4365 16.1555 12.5584 16.2062C12.6803 16.257 12.811 16.2831 12.943 16.2831C13.075 16.2831 13.2057 16.257 13.3276 16.2062C13.4494 16.1555 13.56 16.0811 13.653 15.9873L17.653 11.9873C17.8168 11.796 17.9024 11.55 17.8927 11.2983C17.883 11.0466 17.7786 10.8079 17.6005 10.6298C17.4224 10.4517 17.1837 10.3474 16.932 10.3376C16.6804 10.3279 16.4343 10.4135 16.243 10.5773L13.933 12.8673L13.933 5.27734C13.933 5.01213 13.8276 4.75777 13.6401 4.57024C13.4525 4.3827 13.1982 4.27734 12.933 4.27734Z",fill:"white"})]});const yn=(0,qt.jsxs)(Ht,{fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,qt.jsx)(Ut,{d:"m11.2721 16.9866.6041 2.2795.6042-2.2795.6213-2.3445c.0001-.0002.0001-.0004.0002-.0006.2404-.9015.8073-1.5543 1.4638-1.8165.0005-.0002.0009-.0004.0013-.0006l1.9237-.7555 1.4811-.5818-1.4811-.5817-1.9264-.7566c0-.0001-.0001-.0001-.0001-.0001-.0001 0-.0001 0-.0001 0-.654-.25727-1.2213-.90816-1.4621-1.81563-.0001-.00006-.0001-.00011-.0001-.00017l-.6215-2.34519-.6042-2.27947-.6041 2.27947-.6216 2.34519v.00017c-.2409.90747-.80819 1.55836-1.46216 1.81563-.00002 0-.00003 0-.00005 0-.00006 0-.00011 0-.00017.0001l-1.92637.7566-1.48108.5817 1.48108.5818 1.92637.7566c.00007 0 .00015.0001.00022.0001.65397.2572 1.22126.9082 1.46216 1.8156v.0002z",stroke:"currentColor",strokeWidth:"1.25",fill:"none"}),(0,qt.jsxs)(zt,{fill:"currentColor",children:[(0,qt.jsx)(Ut,{d:"m18.1034 18.3982-.2787.8625-.2787-.8625c-.1314-.4077-.4511-.7275-.8589-.8589l-.8624-.2786.8624-.2787c.4078-.1314.7275-.4512.8589-.8589l.2787-.8624.2787.8624c.1314.4077.4511.7275.8589.8589l.8624.2787-.8624.2786c-.4078.1314-.7269.4512-.8589.8589z"}),(0,qt.jsx)(Ut,{d:"m6.33141 6.97291-.27868.86242-.27867-.86242c-.13142-.40775-.45116-.72749-.8589-.85891l-.86243-.27867.86243-.27868c.40774-.13141.72748-.45115.8589-.8589l.27867-.86242.27868.86242c.13142.40775.45116.72749.8589.8589l.86242.27868-.86242.27867c-.40774.13142-.7269.45116-.8589.85891z"})]})]});const vn=(0,qt.jsx)(Ht,{fill:"none",height:"25",viewBox:"0 0 25 25",width:"25",xmlns:"http://www.w3.org/2000/svg",children:(0,qt.jsx)(Ut,{d:"m16.2382 9.17969.7499.00645.0066-.75988-.7599.00344zm-5.5442.77506 5.5475-.02507-.0067-1.49998-5.5476.02506zm4.7942-.78152-.0476 5.52507 1.5.0129.0475-5.52506zm.2196-.52387-7.68099 7.68104 1.06066 1.0606 7.68103-7.68098z",fill:"currentColor"})});const gn=(0,qt.jsx)(Ht,{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:(0,qt.jsxs)(zt,{stroke:"currentColor",strokeWidth:"1.5",children:[(0,qt.jsx)(Ut,{d:"m6 4.75h12c.6904 0 1.25.55964 1.25 1.25v12c0 .6904-.5596 1.25-1.25 1.25h-12c-.69036 0-1.25-.5596-1.25-1.25v-12c0-.69036.55964-1.25 1.25-1.25z"}),(0,qt.jsx)(Ut,{d:"m9.25 19v-14"})]})});const bn=(0,qt.jsxs)(Ht,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,qt.jsx)(Ut,{fillRule:"evenodd",clipRule:"evenodd",d:"M7.49271 18.0092C6.97815 17.1176 7.28413 15.9755 8.17569 15.4609C9.06724 14.946 10.2094 15.252 10.7243 16.1435C11.2389 17.0355 10.9329 18.1772 10.0413 18.6922C9.14978 19.2071 8.00764 18.9011 7.49271 18.0092V18.0092Z",fill:"currentColor"}),(0,qt.jsx)(Ut,{fillRule:"evenodd",clipRule:"evenodd",d:"M16.5073 6.12747C17.0218 7.01903 16.7158 8.16117 15.8243 8.67573C14.9327 9.19066 13.7906 8.88467 13.2757 7.99312C12.7611 7.10119 13.0671 5.95942 13.9586 5.44449C14.8502 4.92956 15.9923 5.23555 16.5073 6.12747V6.12747Z",fill:"currentColor"}),(0,qt.jsx)(Ut,{fillRule:"evenodd",clipRule:"evenodd",d:"M4.60135 11.1355C5.11628 10.2439 6.25805 9.93793 7.14998 10.4525C8.04153 10.9674 8.34752 12.1096 7.83296 13.0011C7.31803 13.8927 6.17588 14.1987 5.28433 13.6841C4.39278 13.1692 4.08679 12.0274 4.60135 11.1355V11.1355Z",fill:"currentColor"}),(0,qt.jsx)(Ut,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.3986 13.0011C18.8837 13.8927 17.7419 14.1987 16.85 13.6841C15.9584 13.1692 15.6525 12.027 16.167 11.1355C16.682 10.2439 17.8241 9.93793 18.7157 10.4525C19.6072 10.9674 19.9132 12.1092 19.3986 13.0011V13.0011Z",fill:"currentColor"}),(0,qt.jsx)(Ut,{d:"M9.10857 8.92594C10.1389 8.92594 10.9742 8.09066 10.9742 7.06029C10.9742 6.02992 10.1389 5.19464 9.10857 5.19464C8.0782 5.19464 7.24292 6.02992 7.24292 7.06029C7.24292 8.09066 8.0782 8.92594 9.10857 8.92594Z",fill:"currentColor"}),(0,qt.jsx)(Ut,{d:"M14.8913 18.942C15.9217 18.942 16.7569 18.1067 16.7569 17.0763C16.7569 16.046 15.9217 15.2107 14.8913 15.2107C13.8609 15.2107 13.0256 16.046 13.0256 17.0763C13.0256 18.1067 13.8609 18.942 14.8913 18.942Z",fill:"currentColor"}),(0,qt.jsx)(Ut,{fillRule:"evenodd",clipRule:"evenodd",d:"M10.3841 13.0011C9.86951 12.1096 10.1755 10.9674 11.067 10.4525C11.9586 9.93793 13.1007 10.2439 13.6157 11.1355C14.1302 12.0274 13.8242 13.1692 12.9327 13.6841C12.0411 14.1987 10.899 13.8927 10.3841 13.0011V13.0011Z",fill:"currentColor"})]});const wn=(0,qt.jsxs)(Ht,{fill:"none",viewBox:"0 0 151 148",width:"151",xmlns:"http://www.w3.org/2000/svg",children:[(0,qt.jsx)(Bt,{cx:"65.6441",cy:"66.6114",fill:"#0b4a43",r:"65.3897"}),(0,qt.jsxs)(zt,{fill:"#cbc3f5",stroke:"#0b4a43",children:[(0,qt.jsx)(Ut,{d:"m61.73 11.3928 3.0825 8.3304.1197.3234.3234.1197 8.3304 3.0825-8.3304 3.0825-.3234.1197-.1197.3234-3.0825 8.3304-3.0825-8.3304-.1197-.3234-.3234-.1197-8.3304-3.0825 8.3304-3.0825.3234-.1197.1197-.3234z",strokeWidth:"1.5"}),(0,qt.jsx)(Ut,{d:"m84.3065 31.2718c0 5.9939-12.4614 22.323-18.6978 22.323h-17.8958v56.1522c3.5249.9 11.6535 0 17.8958 0h6.2364c11.2074 3.33 36.0089 7.991 45.5529 0l-9.294-62.1623c-2.267-1.7171-5.949-6.6968-2.55-12.8786 3.4-6.1817 2.55-18.0406 0-24.5756-1.871-4.79616-8.3289-8.90882-14.4482-8.90882s-7.0825 4.00668-6.7993 6.01003z",strokeWidth:"1.75"}),(0,qt.jsx)(Vt,{height:"45.5077",rx:"9.13723",strokeWidth:"1.75",transform:"matrix(0 1 -1 0 191.5074 -96.0026)",width:"18.2745",x:"143.755",y:"47.7524"}),(0,qt.jsx)(Vt,{height:"42.3038",rx:"8.73674",strokeWidth:"1.75",transform:"matrix(0 1 -1 0 241.97 -50.348)",width:"17.4735",x:"146.159",y:"95.811"}),(0,qt.jsx)(Vt,{height:"55.9204",rx:"8.73674",strokeWidth:"1.75",transform:"matrix(0 1 -1 0 213.1347 -85.5913)",width:"17.4735",x:"149.363",y:"63.7717"}),(0,qt.jsx)(Vt,{height:"51.1145",rx:"8.73674",strokeWidth:"1.75",transform:"matrix(0 1 -1 0 229.1545 -69.5715)",width:"17.4735",x:"149.363",y:"79.7915"}),(0,qt.jsx)(Ut,{d:"m75.7483 105.349c.9858-25.6313-19.2235-42.0514-32.8401-44.0538v12.0146c8.5438 1.068 24.8303 9.7642 24.8303 36.0442 0 23.228 19.4905 33.374 29.6362 33.641v-10.413s-22.6122-1.602-21.6264-27.233z",strokeWidth:"1.75"}),(0,qt.jsx)(Ut,{d:"m68.5388 109.354c.9858-25.6312-19.2234-42.0513-32.8401-44.0537v12.0147c8.5438 1.0679 24.8303 9.7641 24.8303 36.044 0 23.228 19.4905 33.374 29.6362 33.641v-10.413s-22.6122-1.602-21.6264-27.233z",strokeWidth:"1.75"})]})]});const jn=(0,qt.jsxs)(Ht,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,qt.jsx)(Bt,{cx:"12",cy:"12",r:"7.25",stroke:"currentColor",strokeWidth:"1.5"}),(0,qt.jsx)(Bt,{cx:"12",cy:"12",r:"4.25",stroke:"currentColor",strokeWidth:"1.5"}),(0,qt.jsx)(Bt,{cx:"11.9999",cy:"12.2",r:"6",transform:"rotate(-45 11.9999 12.2)",stroke:"currentColor",strokeWidth:"3",strokeDasharray:"1.5 4"})]});const kn=(0,qt.jsx)(Ht,{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:(0,qt.jsx)(Ut,{d:"m11.7758 3.45425c.0917-.18582.3567-.18581.4484 0l2.3627 4.78731c.0364.07379.1068.12493.1882.13676l5.2831.76769c.2051.02979.287.28178.1386.42642l-3.8229 3.72637c-.0589.0575-.0858.1402-.0719.2213l.9024 5.2618c.0351.2042-.1793.36-.3627.2635l-4.7254-2.4842c-.0728-.0383-.1598-.0383-.2326 0l-4.7254 2.4842c-.18341.0965-.39776-.0593-.36274-.2635l.90247-5.2618c.01391-.0811-.01298-.1638-.0719-.2213l-3.8229-3.72637c-.14838-.14464-.0665-.39663.13855-.42642l5.28312-.76769c.08143-.01183.15182-.06297.18823-.13676z",fill:"currentColor"})});const Sn=(0,qt.jsx)(Ht,{fill:"none",viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg",children:(0,qt.jsx)(Ut,{clipRule:"evenodd",d:"m13 4c4.9545 0 9 4.04545 9 9 0 4.9545-4.0455 9-9 9-4.95455 0-9-4.0455-9-9 0-4.95455 4.04545-9 9-9zm5.0909 13.4545c-1.9545 3.8637-8.22726 3.8637-10.22726 0-.04546-.1818-.04546-.3636 0-.5454 2-3.8636 8.27276-3.8636 10.22726 0 .0909.1818.0909.3636 0 .5454zm-5.0909-8.90905c-1.2727 0-2.3182 1.04546-2.3182 2.31815 0 1.2728 1.0455 2.3182 2.3182 2.3182s2.3182-1.0454 2.3182-2.3182c0-1.27269-1.0455-2.31815-2.3182-2.31815z",fill:"currentColor",fillRule:"evenodd"})}),Cn=(0,o.createElement)(Ht,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(Ut,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));var _n=(0,o.forwardRef)((function(e,t){var n,r=e.onClose,i=e.isOpen,a=e.invertedButtonColor,s=e.children,l=e.leftContainerBgColor,c=void 0===l?"bg-white":l,u=e.rightContainerBgColor,d=void 0===u?"bg-gray-100":u,f=(0,o.useRef)(null),p=w((function(e){return e.removeAllModals}));return r=null!==(n=r)&&void 0!==n?n:p,(0,qt.jsx)(Ge.Root,{appear:!0,show:!0,as:o.Fragment,children:(0,qt.jsx)(It,{as:"div",static:!0,open:i,className:"extendify",initialFocus:null!=t?t:f,onClose:r,children:(0,qt.jsxs)("div",{className:"fixed inset-0 z-high flex",children:[(0,qt.jsx)(Ge.Child,{as:o.Fragment,enter:"ease-out duration-50 transition",enterFrom:"opacity-0",enterTo:"opacity-100",children:(0,qt.jsx)(It.Overlay,{className:"fixed inset-0 bg-black bg-opacity-40 transition-opacity"})}),(0,qt.jsx)(Ge.Child,{as:o.Fragment,enter:"ease-out duration-300 translate transform",enterFrom:"opacity-0 translate-y-4 sm:translate-y-5",enterTo:"opacity-100 translate-y-0",children:(0,qt.jsx)("div",{className:"m-auto",children:(0,qt.jsxs)("div",{className:"relative m-8 max-w-md justify-between rounded-sm shadow-modal md:m-0 md:flex md:max-w-2xl",children:[(0,qt.jsxs)("button",{onClick:r,ref:f,className:"absolute top-0 right-0 block cursor-pointer rounded-md bg-transparent p-4 text-gray-700 opacity-30 hover:opacity-100",style:a&&{filter:"invert(1)"},children:[(0,qt.jsx)("span",{className:"sr-only",children:(0,Mt.__)("Close","extendify")}),(0,qt.jsx)(Rt,{icon:Cn})]}),(0,qt.jsx)("div",{className:"w-7/12 p-12 ".concat(c),children:s[0]}),(0,qt.jsx)("div",{className:"hidden w-6/12 md:block ".concat(d),children:s[1]})]})})})]})})})}));function On(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function En(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){On(i,r,o,a,s,"next",e)}function s(e){On(i,r,o,a,s,"throw",e)}a(void 0)}))}}function Nn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return An(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return An(e,t)}(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.")}()}function An(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}var Pn=function(){var e=Nn((0,o.useState)((0,Mt.__)("Install Extendify","extendify")),2),t=e[0],n=e[1],r=Nn((0,o.useState)(!1),2),i=r[0],a=r[1],s=Nn((0,o.useState)(!1),2),l=s[0],c=s[1],u=(0,o.useRef)(null),d=G((function(e){return e.markNoticeSeen})),f=G((function(e){return e.giveFreebieImports})),p=w((function(e){return e.removeAllModals})),h=function(){var e=En(k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return p(),d("standalone","modalNotices"),e.next=4,ce("stln-modal-x");case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,qt.jsxs)(_n,{ref:u,onClose:h,children:[(0,qt.jsxs)("div",{children:[(0,qt.jsx)("div",{className:"mb-10 flex items-center space-x-2 text-extendify-black",children:pn}),(0,qt.jsx)("h3",{className:"text-xl",children:(0,Mt.__)("Get the brand new Extendify plugin today!","extendify")}),(0,qt.jsx)("p",{className:"text-sm text-black",dangerouslySetInnerHTML:{__html:cn((0,Mt.sprintf)((0,Mt.__)("Install the new Extendify Library plugin to get the latest we have to offer — right from WordPress.org. Plus, well send you %1$s10 more imports%2$s. Nice.","extendify"),"<strong>","</strong>"))}}),(0,qt.jsx)("div",{children:(0,qt.jsxs)("button",{onClick:function(){n((0,Mt.__)("Installing...","extendify")),c(!0),Promise.all([ce("stln-modal-install"),Kt(["extendify"]),new Promise((function(e){return setTimeout(e,1e3)}))]).then(En(k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n((0,Mt.__)("Success! Reloading...","extendify")),a(!0),f(10),e.next=5,ce("stln-modal-success");case 5:window.location.reload();case 6:case"end":return e.stop()}}),e)})))).catch(function(){var e=En(k().mark((function e(t){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.error(t),n((0,Mt.__)("Error. See console.","extendify")),e.next=4,ce("stln-modal-fail");case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},ref:u,disabled:l,className:"button-extendify-main button-focus mt-2 inline-flex justify-center px-4 py-3",style:{minWidth:"225px"},children:[t,i||(0,qt.jsx)(Lt.Icon,{icon:xn,size:24,className:"ml-2 w-6 flex-grow-0"})]})})]}),(0,qt.jsx)("div",{className:"flex w-full justify-end rounded-tr-sm rounded-br-sm bg-extendify-secondary",children:(0,qt.jsx)("img",{alt:(0,Mt.__)("Upgrade Now","extendify"),className:"roudned-br-sm max-w-full rounded-tr-sm",src:window.extendifyData.asset_path+"/modal-extendify-purple.png"})})]})};function Tn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return In(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return In(e,t)}(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.")}()}function In(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 Ln(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Mn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Mn(e,t)}(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.")}()}function Mn(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}var Rn=function(e,t,n){var r=Ln((0,o.useState)(),2),i=r[0],a=r[1],s=w((function(e){return e.ready}));return(0,o.useLayoutEffect)((function(){if(n||s&&!i||window.extendifyData._canRehydrate){var r=G.getState().testGroup(e,t);a(r)}}),[e,t,i,s,n]),i};function Dn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Fn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fn(e,t)}(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.")}()}function Fn(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 Bn(){var e=(0,o.useRef)(!1);return(0,o.useEffect)((function(){return e.current=!0,function(){return e.current=!1}})),e}var zn=function(){var e=Dn((0,o.useState)(!1),2),t=e[0],n=e[1];return(0,o.useEffect)((function(){var e=function(){return n(window.location.search.indexOf("DEVMODE")>-1||window.location.search.indexOf("LOCALMODE")>-1)};return e(),window.addEventListener("popstate",e),function(){window.removeEventListener("popstate",e)}}),[]),t};function Un(){return Un=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},Un.apply(this,arguments)}function Vn(e,t){return Vn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Vn(e,t)}var Hn=new Map,Wn=new WeakMap,qn=0,$n=void 0;function Gn(e){return Object.keys(e).sort().filter((function(t){return void 0!==e[t]})).map((function(t){return t+"_"+("root"===t?(n=e.root)?(Wn.has(n)||(qn+=1,Wn.set(n,qn.toString())),Wn.get(n)):"0":e[t]);var n})).toString()}function Jn(e,t,n,r){if(void 0===n&&(n={}),void 0===r&&(r=$n),void 0===window.IntersectionObserver&&void 0!==r){var o=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:o,intersectionRect:o,rootBounds:o}),function(){}}var i=function(e){var t=Gn(e),n=Hn.get(t);if(!n){var r,o=new Map,i=new IntersectionObserver((function(t){t.forEach((function(t){var n,i=t.isIntersecting&&r.some((function(e){return t.intersectionRatio>=e}));e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=i),null==(n=o.get(t.target))||n.forEach((function(e){e(i,t)}))}))}),e);r=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:o},Hn.set(t,n)}return n}(n),a=i.id,s=i.observer,l=i.elements,c=l.get(e)||[];return l.has(e)||l.set(e,c),c.push(t),s.observe(e),function(){c.splice(c.indexOf(t),1),0===c.length&&(l.delete(e),s.unobserve(e)),0===l.size&&(s.disconnect(),Hn.delete(a))}}var Kn=["children","as","tag","triggerOnce","threshold","root","rootMargin","onChange","skip","trackVisibility","delay","initialInView","fallbackInView"];function Xn(e){return"function"!=typeof e.children}var Zn=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).node=null,n._unobserveCb=null,n.handleNode=function(e){n.node&&(n.unobserve(),e||n.props.triggerOnce||n.props.skip||n.setState({inView:!!n.props.initialInView,entry:void 0})),n.node=e||null,n.observeNode()},n.handleChange=function(e,t){e&&n.props.triggerOnce&&n.unobserve(),Xn(n.props)||n.setState({inView:e,entry:t}),n.props.onChange&&n.props.onChange(e,t)},n.state={inView:!!t.initialInView,entry:void 0},n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,Vn(t,n);var o=r.prototype;return o.componentDidUpdate=function(e){e.rootMargin===this.props.rootMargin&&e.root===this.props.root&&e.threshold===this.props.threshold&&e.skip===this.props.skip&&e.trackVisibility===this.props.trackVisibility&&e.delay===this.props.delay||(this.unobserve(),this.observeNode())},o.componentWillUnmount=function(){this.unobserve(),this.node=null},o.observeNode=function(){if(this.node&&!this.props.skip){var e=this.props,t=e.threshold,n=e.root,r=e.rootMargin,o=e.trackVisibility,i=e.delay,a=e.fallbackInView;this._unobserveCb=Jn(this.node,this.handleChange,{threshold:t,root:n,rootMargin:r,trackVisibility:o,delay:i},a)}},o.unobserve=function(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)},o.render=function(){if(!Xn(this.props)){var e=this.state,t=e.inView,n=e.entry;return this.props.children({inView:t,entry:n,ref:this.handleNode})}var r=this.props,o=r.children,a=r.as,s=r.tag,l=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}(r,Kn);return i.createElement(a||s||"div",Un({ref:this.handleNode},l),o)},r}(i.Component);function Yn(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 Qn(){return Qn=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},Qn.apply(this,arguments)}function er(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 tr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?er(Object(n),!0).forEach((function(t){nr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):er(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Zn.displayName="InView",Zn.defaultProps={threshold:0,triggerOnce:!1,initialInView:!1};const rr={breakpointCols:void 0,className:void 0,columnClassName:void 0,children:void 0,columnAttrs:void 0,column:void 0};class or extends a().Component{constructor(e){let t;super(e),this.reCalculateColumnCount=this.reCalculateColumnCount.bind(this),this.reCalculateColumnCountDebounce=this.reCalculateColumnCountDebounce.bind(this),t=this.props.breakpointCols&&this.props.breakpointCols.default?this.props.breakpointCols.default:parseInt(this.props.breakpointCols)||2,this.state={columnCount:t}}componentDidMount(){this.reCalculateColumnCount(),window&&window.addEventListener("resize",this.reCalculateColumnCountDebounce)}componentDidUpdate(){this.reCalculateColumnCount()}componentWillUnmount(){window&&window.removeEventListener("resize",this.reCalculateColumnCountDebounce)}reCalculateColumnCountDebounce(){window&&window.requestAnimationFrame?(window.cancelAnimationFrame&&window.cancelAnimationFrame(this._lastRecalculateAnimationFrame),this._lastRecalculateAnimationFrame=window.requestAnimationFrame((()=>{this.reCalculateColumnCount()}))):this.reCalculateColumnCount()}reCalculateColumnCount(){const e=window&&window.innerWidth||1/0;let t=this.props.breakpointCols;"object"!=typeof t&&(t={default:parseInt(t)||2});let n=1/0,r=t.default||2;for(let o in t){const i=parseInt(o);i>0&&e<=i&&i<n&&(n=i,r=t[o])}r=Math.max(1,parseInt(r)||1),this.state.columnCount!==r&&this.setState({columnCount:r})}itemsInColumns(){const e=this.state.columnCount,t=new Array(e),n=a().Children.toArray(this.props.children);for(let r=0;r<n.length;r++){const o=r%e;t[o]||(t[o]=[]),t[o].push(n[r])}return t}renderColumns(){const{column:e,columnAttrs:t={},columnClassName:n}=this.props,r=this.itemsInColumns(),o=100/r.length+"%";let i=n;i&&"string"!=typeof i&&(this.logDeprecated('The property "columnClassName" requires a string'),void 0===i&&(i="my-masonry-grid_column"));const s=tr(tr(tr({},e),t),{},{style:tr(tr({},t.style),{},{width:o}),className:i});return r.map(((e,t)=>a().createElement("div",Qn({},s,{key:t}),e)))}logDeprecated(e){console.error("[Masonry]",e)}render(){const e=this.props,{children:t,breakpointCols:n,columnClassName:r,columnAttrs:o,column:i,className:s}=e,l=Yn(e,["children","breakpointCols","columnClassName","columnAttrs","column","className"]);let c=s;return"string"!=typeof s&&(this.logDeprecated('The property "className" requires a string'),void 0===s&&(c="my-masonry-grid")),a().createElement("div",Qn({},l,{className:c}),this.renderColumns())}}or.defaultProps=rr;const ir=or;function ar(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function sr(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ar(i,r,o,a,s,"next",e)}function s(e){ar(i,r,o,a,s,"throw",e)}a(void 0)}))}}var lr=0,cr=function(e){var t=arguments;return sr(k().mark((function n(){var r,o,i,a,s;return k().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o=t.length>1&&void 0!==t[1]?t[1]:{},lr++,i="pattern"===e.type?"8":"4",a="pattern"===e.type?"patternType":"layoutType",s=Object.assign({filterByFormula:fr(e,a),pageSize:i,categories:e.taxonomies,search:e.search,type:e.type,offset:"",initial:1===lr,request_count:lr,sdk_partner:null!==(r=G.getState().sdkPartner)&&void 0!==r?r:""},o),n.next=7,J.post("templates",s);case 7:return n.abrupt("return",n.sent);case 8:case"end":return n.stop()}}),n)})))()},ur=function(e){var t,n,r,o,i,a,s=null!==(t=null===(n=se.getState())||void 0===n||null===(r=n.searchParams)||void 0===r?void 0:r.taxonomies)&&void 0!==t?t:[];return J.post("templates/".concat(e.id),{template_id:null==e?void 0:e.id,categories:s,maybe_import:!0,type:null===(o=e.fields)||void 0===o?void 0:o.type,sdk_partner:null!==(i=G.getState().sdkPartner)&&void 0!==i?i:"",pageSize:"1",template_name:null===(a=e.fields)||void 0===a?void 0:a.title})},dr=function(e){var t,n,r,o,i,a,s,l,c,u=null!==(t=null===(n=se.getState())||void 0===n||null===(r=n.searchParams)||void 0===r?void 0:r.taxonomies)&&void 0!==t?t:[];return J.post("templates/".concat(e.id),{template_id:e.id,categories:u,imported:!0,basePattern:null!==(o=null!==(i=null===(a=e.fields)||void 0===a?void 0:a.basePattern)&&void 0!==i?i:null===(s=e.fields)||void 0===s?void 0:s.baseLayout)&&void 0!==o?o:"",type:e.fields.type,sdk_partner:null!==(l=G.getState().sdkPartner)&&void 0!==l?l:"",pageSize:"1",template_name:null===(c=e.fields)||void 0===c?void 0:c.title})},fr=function(e,t){var n,r,o=e.taxonomies,i=null==o||null===(n=o.siteType)||void 0===n?void 0:n.slug,a=['{type}="'.concat(t.replace("Type",""),'"'),'{siteType}="'.concat(i,'"')];return null!==(r=o[t])&&void 0!==r&&r.slug&&a.push("{".concat(t,'}="').concat(o[t].slug,'"')),"AND(".concat(a.join(", "),")").replace(/\r?\n|\r/g,"")};const pr=wp.blockEditor;function hr(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function mr(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){hr(i,r,o,a,s,"next",e)}function s(e){hr(i,r,o,a,s,"throw",e)}a(void 0)}))}}var xr=[],yr=[];function vr(e){return gr.apply(this,arguments)}function gr(){return(gr=mr(k().mark((function e(t){var n,r,o,i,a,s,l;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=(s=null!==(n=null==t||null===(r=t.fields)||void 0===r?void 0:r.required_plugins)&&void 0!==n?n:[]).filter((function(e){return"editorplus"!==e})),null!==(o=s)&&void 0!==o&&o.length){e.next=4;break}return e.abrupt("return",!1);case 4:if(null!==(i=xr)&&void 0!==i&&i.length){e.next=10;break}return e.t0=Object,e.next=8,Jt();case 8:e.t1=e.sent,xr=e.t0.keys.call(e.t0,e.t1);case 10:return l=!(null===(a=s)||void 0===a||!a.length)&&s.filter((function(e){return!xr.some((function(t){return t.includes(e)}))})),e.abrupt("return",l.length);case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function br(e){return wr.apply(this,arguments)}function wr(){return(wr=mr(k().mark((function e(t){var n,r,o,i,a,s,l;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=(s=null!==(n=null==t||null===(r=t.fields)||void 0===r?void 0:r.required_plugins)&&void 0!==n?n:[]).filter((function(e){return"editorplus"!==e})),null!==(o=s)&&void 0!==o&&o.length){e.next=4;break}return e.abrupt("return",!1);case 4:if(null!==(i=yr)&&void 0!==i&&i.length){e.next=10;break}return e.t0=Object,e.next=8,Xt();case 8:e.t1=e.sent,yr=e.t0.values.call(e.t0,e.t1);case 10:if(!(l=!(null===(a=s)||void 0===a||!a.length)&&s.filter((function(e){return!yr.some((function(t){return t.includes(e)}))})))){e.next=16;break}return e.next=14,vr(t);case 14:if(!e.sent){e.next=16;break}return e.abrupt("return",!1);case 16:return e.abrupt("return",null==l?void 0:l.length);case 17:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var jr=c(v((function(e){return{wantedTemplate:{},importOnLoad:!1,setWanted:function(t){return e({wantedTemplate:t})},removeWanted:function(){return e({wantedTemplate:{}})}}}),{name:"extendify-wanted-template"}));var kr=function(e){return Sr(e,"open")};function Sr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"broken-event",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"open";G.setState({entryPoint:e}),window.dispatchEvent(new CustomEvent("extendify::".concat(t,"-library"),{detail:e,bubbles:!0}))}function Cr(e){switch(e){case"editorplus":return"Editor Plus";case"ml-slider":return"MetaSlider"}return e}function _r(e){switch(e){case"siteType":return"Site Type";case"patternType":return"Content";case"layoutType":return"Page Types"}return e}function Or(){var e,t,n,r=jr((function(e){return e.wantedTemplate})),i=(null==r||null===(e=r.fields)||void 0===e?void 0:e.required_plugins)||[];return(0,qt.jsxs)(Lt.Modal,{title:(0,Mt.__)("Plugins required","extendify"),isDismissible:!1,children:[(0,qt.jsx)("p",{style:{maxWidth:"400px"},children:(0,Mt.sprintf)((0,Mt.__)("In order to add this %s to your site, the following plugins are required to be installed and activated.","extendify"),null!==(t=null==r||null===(n=r.fields)||void 0===n?void 0:n.type)&&void 0!==t?t:"template")}),(0,qt.jsx)("ul",{children:i.filter((function(e){return"editorplus"!==e})).map((function(e){return(0,qt.jsx)("li",{children:Cr(e)},e)}))}),(0,qt.jsx)("p",{style:{maxWidth:"400px",fontWeight:"bold"},children:(0,Mt.__)("Please contact a site admin for assistance in adding these plugins to your site.","extendify")}),(0,qt.jsx)(Lt.Button,{isPrimary:!0,onClick:function(){return(0,o.render)((0,qt.jsx)(ca,{show:!0}),document.getElementById("extendify-root"))},style:{boxShadow:"none"},children:(0,Mt.__)("Return to library","extendify")})]})}const Er=wp.data;function Nr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ar(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ar(e,t)}(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.")}()}function Ar(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 Pr(){var e=Nr((0,o.useState)(!1),2),t=e[0],n=e[1],r=function(){};return(0,(0,Er.select)("core/editor").isEditedPostDirty)()?(0,qt.jsxs)(Lt.Modal,{title:(0,Mt.__)("Reload required","extendify"),isDismissible:!1,children:[(0,qt.jsx)("p",{style:{maxWidth:"400px"},children:(0,Mt.__)("Just one more thing! We need to reload the page to continue.","extendify")}),(0,qt.jsxs)(Lt.ButtonGroup,{children:[(0,qt.jsx)(Lt.Button,{isPrimary:!0,onClick:r,disabled:t,children:(0,Mt.__)("Reload page","extendify")}),(0,qt.jsx)(Lt.Button,{isSecondary:!0,onClick:function(){n(!0),(0,Er.dispatch)("core/editor").savePost(),n(!1)},isBusy:t,style:{margin:"0 4px"},children:(0,Mt.__)("Save changes","extendify")})]})]}):null}function Tr(e){var t=e.msg;return(0,qt.jsxs)(Lt.Modal,{style:{maxWidth:"500px"},title:(0,Mt.__)("Error Activating plugins","extendify"),isDismissible:!1,children:[(0,Mt.__)("You have encountered an error that we cannot recover from. Please try again.","extendify"),(0,qt.jsx)("br",{}),(0,qt.jsx)(Lt.Notice,{isDismissible:!1,status:"error",children:t}),(0,qt.jsx)(Lt.Button,{isPrimary:!0,onClick:function(){(0,o.render)((0,qt.jsx)(Fr,{}),document.getElementById("extendify-root"))},children:(0,Mt.__)("Go back","extendify")})]})}function Ir(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Lr(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Ir(i,r,o,a,s,"next",e)}function s(e){Ir(i,r,o,a,s,"throw",e)}a(void 0)}))}}function Mr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Rr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Rr(e,t)}(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.")}()}function Rr(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 Dr(){var e,t=Mr((0,o.useState)(""),2),n=t[0],r=t[1],i=jr((function(e){return e.wantedTemplate})),a=null==i||null===(e=i.fields)||void 0===e?void 0:e.required_plugins.filter((function(e){return"editorplus"!==e}));return Kt(a).then((function(){jr.setState({importOnLoad:!0})})).then(Lr(k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new Promise((function(e){return setTimeout(e,1e3)}));case 2:(0,o.render)((0,qt.jsx)(Pr,{}),document.getElementById("extendify-root"));case 3:case"end":return e.stop()}}),e)})))).catch((function(e){var t=e.response;r(t.data.message)})),n?(0,qt.jsx)(Tr,{msg:n}):(0,qt.jsx)(Lt.Modal,{title:(0,Mt.__)("Activating plugins","extendify"),isDismissible:!1,children:(0,qt.jsx)(Lt.Button,{style:{width:"100%"},disabled:!0,isPrimary:!0,isBusy:!0,onClick:function(){},children:(0,Mt.__)("Activating...","extendify")})})}function Fr(e){var t,n,r,i,a,s=jr((function(e){return e.wantedTemplate})),l=(null==s||null===(t=s.fields)||void 0===t?void 0:t.required_plugins)||[];return null!==(n=G.getState())&&void 0!==n&&n.canActivatePlugins?(0,qt.jsx)(Lt.Modal,{title:(0,Mt.__)("Activate required plugins","extendify"),isDismissible:!1,children:(0,qt.jsxs)("div",{children:[(0,qt.jsx)("p",{style:{maxWidth:"400px"},children:null!==(r=e.message)&&void 0!==r?r:(0,Mt.__)((0,Mt.sprintf)("There is just one more step. This %s requires the following plugins to be installed and activated:",null!==(i=null==s||null===(a=s.fields)||void 0===a?void 0:a.type)&&void 0!==i?i:"template"),"extendify")}),(0,qt.jsx)("ul",{children:l.filter((function(e){return"editorplus"!==e})).map((function(e){return(0,qt.jsx)("li",{children:Cr(e)},e)}))}),(0,qt.jsxs)(Lt.ButtonGroup,{children:[(0,qt.jsx)(Lt.Button,{isPrimary:!0,onClick:function(){return(0,o.render)((0,qt.jsx)(Dr,{}),document.getElementById("extendify-root"))},children:(0,Mt.__)("Activate Plugins","extendify")}),e.showClose&&(0,qt.jsx)(Lt.Button,{isTertiary:!0,onClick:function(){return(0,o.render)((0,qt.jsx)(ca,{show:!0}),document.getElementById("extendify-root"))},style:{boxShadow:"none",margin:"0 4px"},children:(0,Mt.__)("No thanks, return to library","extendify")})]})]})}):(0,qt.jsx)(Or,{})}function Br(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}var zr=function(){var e,t=(e=k().mark((function e(t){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,br(t);case 2:return e.t0=!e.sent,e.t1=function(){},e.t2=function(){return new Promise((function(){(0,o.render)((0,qt.jsx)(Fr,{showClose:!0}),document.getElementById("extendify-root"))}))},e.abrupt("return",{id:"hasPluginsActivated",pass:e.t0,allow:e.t1,deny:e.t2});case 6:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Br(i,r,o,a,s,"next",e)}function s(e){Br(i,r,o,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}();function Ur(e){var t=e.msg;return(0,qt.jsxs)(Lt.Modal,{style:{maxWidth:"500px"},title:(0,Mt.__)("Error installing plugins","extendify"),isDismissible:!1,children:[(0,Mt.__)("You have encountered an error that we cannot recover from. Please try again.","extendify"),(0,qt.jsx)("br",{}),(0,qt.jsx)(Lt.Notice,{isDismissible:!1,status:"error",children:t}),(0,qt.jsx)(Lt.Button,{isPrimary:!0,onClick:function(){return(0,o.render)((0,qt.jsx)(qr,{}),document.getElementById("extendify-root"))},children:(0,Mt.__)("Go back","extendify")})]})}function Vr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Hr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Hr(e,t)}(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.")}()}function Hr(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 Wr(e){var t,n=e.requiredPlugins,r=Vr((0,o.useState)(""),2),i=r[0],a=r[1],s=jr((function(e){return e.wantedTemplate})),l=null!=n?n:null==s||null===(t=s.fields)||void 0===t?void 0:t.required_plugins.filter((function(e){return"editorplus"!==e}));return Kt(l).then((function(){jr.setState({importOnLoad:!0}),(0,o.render)((0,qt.jsx)(Pr,{}),document.getElementById("extendify-root"))})).catch((function(e){var t=e.message;a(t)})),i?(0,qt.jsx)(Ur,{msg:i}):(0,qt.jsx)(Lt.Modal,{title:(0,Mt.__)("Installing plugins","extendify"),isDismissible:!1,children:(0,qt.jsx)(Lt.Button,{style:{width:"100%"},disabled:!0,isPrimary:!0,isBusy:!0,onClick:function(){},children:(0,Mt.__)("Installing...","extendify")})})}function qr(e){var t,n,r,i,a,s=e.forceOpen,l=e.buttonLabel,c=e.title,u=e.message,d=e.requiredPlugins,f=jr((function(e){return e.wantedTemplate}));d=null!==(t=d)&&void 0!==t?t:null==f||null===(n=f.fields)||void 0===n?void 0:n.required_plugins;return null!==(r=G.getState())&&void 0!==r&&r.canInstallPlugins?(0,qt.jsxs)(Lt.Modal,{title:null!=c?c:(0,Mt.__)("Install required plugins","extendify"),isDismissible:!1,children:[(0,qt.jsx)("p",{style:{maxWidth:"400px"},children:null!=u?u:(0,Mt.__)((0,Mt.sprintf)("There is just one more step. This %s requires the following to be automatically installed and activated:",null!==(i=null==f||null===(a=f.fields)||void 0===a?void 0:a.type)&&void 0!==i?i:"template"),"extendify")}),(null==u?void 0:u.length)>0||(0,qt.jsx)("ul",{children:d.filter((function(e){return"editorplus"!==e})).map((function(e){return(0,qt.jsx)("li",{children:Cr(e)},e)}))}),(0,qt.jsxs)(Lt.ButtonGroup,{children:[(0,qt.jsx)(Lt.Button,{isPrimary:!0,onClick:function(){return(0,o.render)((0,qt.jsx)(Wr,{requiredPlugins:d}),document.getElementById("extendify-root"))},children:null!=l?l:(0,Mt.__)("Install Plugins","extendify")}),s||(0,qt.jsx)(Lt.Button,{isTertiary:!0,onClick:function(){s||(0,o.render)((0,qt.jsx)(ca,{show:!0}),document.getElementById("extendify-root"))},style:{boxShadow:"none",margin:"0 4px"},children:(0,Mt.__)("No thanks, take me back","extendify")})]})]}):(0,qt.jsx)(Or,{})}function $r(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}var Gr=function(){var e,t=(e=k().mark((function e(t){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,vr(t);case 2:return e.t0=!e.sent,e.t1=function(){},e.t2=function(){return new Promise((function(){(0,o.render)((0,qt.jsx)(qr,{}),document.getElementById("extendify-root"))}))},e.abrupt("return",{id:"hasRequiredPlugins",pass:e.t0,allow:e.t1,deny:e.t2});case 6:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){$r(i,r,o,a,s,"next",e)}function s(e){$r(i,r,o,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}();function Jr(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Kr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Kr(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Kr(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 Xr(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Zr(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Xr(i,r,o,a,s,"next",e)}function s(e){Xr(i,r,o,a,s,"throw",e)}a(void 0)}))}}function Yr(e){return new to(e)}function Qr(e){return function(){return new eo(e.apply(this,arguments))}}function eo(e){var t,n;function r(t,n){try{var i=e[t](n),a=i.value,s=a instanceof to;Promise.resolve(s?a.wrapped:a).then((function(e){s?r("return"===t?"return":"next",e):o(i.done?"return":"normal",e)}),(function(e){r("throw",e)}))}catch(e){o("throw",e)}}function o(e,o){switch(e){case"return":t.resolve({value:o,done:!0});break;case"throw":t.reject(o);break;default:t.resolve({value:o,done:!1})}(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,o){return new Promise((function(i,a){var s={key:e,arg:o,resolve:i,reject:a,next:null};n?n=n.next=s:(t=n=s,r(e,o))}))},"function"!=typeof e.return&&(this.return=void 0)}function to(e){this.wrapped=e}eo.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},eo.prototype.next=function(e){return this._invoke("next",e)},eo.prototype.throw=function(e){return this._invoke("throw",e)},eo.prototype.return=function(e){return this._invoke("return",e)};function no(e){return ro.apply(this,arguments)}function ro(){return(ro=Zr(k().mark((function e(t){var n,r;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=oo(t.stack);case 1:return r=void 0,e.prev=3,e.next=6,n.next();case 6:r=e.sent,e.next=13;break;case 9:throw e.prev=9,e.t0=e.catch(3),t.reset(),"Middleware exited";case 13:if(!r.done){e.next=15;break}return e.abrupt("break",17);case 15:e.next=1;break;case 17:case"end":return e.stop()}}),e,null,[[3,9]])})))).apply(this,arguments)}function oo(e){return io.apply(this,arguments)}function io(){return(io=Qr(k().mark((function e(t){var n,r,o;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=Jr(t),e.prev=1,n.s();case 3:if((r=n.n()).done){e.next=11;break}return o=r.value,e.next=7,Yr(o());case 7:return e.next=9,e.sent;case 9:e.next=3;break;case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(1),n.e(e.t0);case 16:return e.prev=16,n.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[1,13,16,19]])})))).apply(this,arguments)}function ao(e,t){var n=(0,Er.dispatch)("core/block-editor"),r=n.insertBlocks,o=n.replaceBlock,i=(0,Er.select)("core/block-editor"),a=i.getSelectedBlock,s=i.getBlockHierarchyRootClientId,l=i.getBlockIndex,c=i.getGlobalBlockCount,u=a()||{},d=u.clientId,f=u.name,p=u.attributes,h=d?s(d):"",m=(h?l(h):c())+1;return("core/paragraph"===f&&""===(null==p?void 0:p.content)?o(d,e):r(e,m)).then((function(){return window.dispatchEvent(new CustomEvent("extendify::template-inserted",{detail:{template:t},bubbles:!0}))}))}var so=n(306);function lo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return co(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return co(e,t)}(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.")}()}function co(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}var uo=function(e){var t,n,r,i,a,s=e.template,l=null!=s&&null!==(t=s.fields)&&void 0!==t&&null!==(n=t.basePattern)&&void 0!==n&&n.length?null==s||null===(r=s.fields)||void 0===r?void 0:r.basePattern[0]:"",c=lo((0,o.useState)(l),2),u=c[0],d=c[1];return(0,o.useEffect)((function(){null!=l&&l.length&&u!==l&&setTimeout((function(){return d(l)}),1e3)}),[u,l]),l?(0,qt.jsxs)("div",{className:"absolute bottom-0 left-0 z-50 mb-4 ml-4 flex items-center space-x-2 opacity-0 transition duration-100 group-hover:opacity-100 space-x-0.5",children:[(0,qt.jsx)(so.CopyToClipboard,{text:null==s||null===(i=s.fields)||void 0===i?void 0:i.basePattern,onCopy:function(){return d((0,Mt.__)("Copied!","extendify"))},children:(0,qt.jsx)("button",{className:"text-sm rounded-md border border-black bg-white py-1 px-2.5 font-medium text-black no-underline m-0 cursor-pointer",children:(0,Mt.sprintf)((0,Mt.__)("Base: %s","extendify"),u)})}),(0,qt.jsx)("a",{target:"_blank",className:"text-sm rounded-md border border-black bg-white py-1 px-2.5 font-medium text-black no-underline m-0",href:null==s||null===(a=s.fields)||void 0===a?void 0:a.editURL,rel:"noreferrer",children:(0,Mt.__)("Edit","extendify")})]}):null};function fo(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 po(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fo(Object(n),!0).forEach((function(t){ho(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ho(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mo=(0,o.forwardRef)((function(e,t){var n,r=e.isOpen,i=e.heading,a=e.onClose,s=e.children,l=(0,o.useRef)(null),c=w((function(e){return e.removeAllModals}));return a=null!==(n=a)&&void 0!==n?n:c,(0,qt.jsx)(Ge,{appear:!0,show:r,as:o.Fragment,className:"extendify",children:(0,qt.jsx)(It,{initialFocus:null!=t?t:l,onClose:a,children:(0,qt.jsxs)("div",{className:"fixed inset-0 z-high flex",children:[(0,qt.jsx)(Ge.Child,{as:o.Fragment,enter:"ease-out duration-200 transition",enterFrom:"opacity-0",enterTo:"opacity-100",children:(0,qt.jsx)(It.Overlay,{className:"fixed inset-0 bg-black bg-opacity-40"})}),(0,qt.jsx)(Ge.Child,{as:o.Fragment,enter:"ease-out duration-300 translate transform",enterFrom:"opacity-0 translate-y-4 sm:translate-y-5",enterTo:"opacity-100 translate-y-0",children:(0,qt.jsx)("div",{className:"relative m-auto w-full",children:(0,qt.jsxs)("div",{className:"relative m-auto w-full max-w-lg items-center justify-center rounded-sm bg-white shadow-modal",children:[i?(0,qt.jsxs)("div",{className:"flex items-center justify-between border-b py-2 pl-6 pr-3 leading-none",children:[(0,qt.jsx)("span",{className:"whitespace-nowrap text-base text-extendify-black",children:i}),(0,qt.jsx)(xo,{onClick:a})]}):(0,qt.jsx)("div",{className:"absolute top-0 right-0 block px-4 py-4 ",children:(0,qt.jsx)(xo,{ref:l,onClick:a})}),(0,qt.jsx)("div",{children:s})]})})})]})})})})),xo=(0,o.forwardRef)((function(e,t){return(0,qt.jsx)(Lt.Button,po(po({},e),{},{icon:(0,qt.jsx)(Rt,{icon:Cn}),ref:t,className:"text-extendify-black opacity-75 hover:opacity-100",showTooltip:!1,label:(0,Mt.__)("Close dialog","extendify")}))}));function yo(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function vo(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){yo(i,r,o,a,s,"next",e)}function s(e){yo(i,r,o,a,s,"throw",e)}a(void 0)}))}}function go(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return bo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bo(e,t)}(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.")}()}function bo(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}var wo=function(){var e=go((0,o.useState)(!1),2),t=e[0],n=e[1],r=go((0,o.useState)(!1),2),i=r[0],a=r[1],s=zn(),l=function(){var e=vo(k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=2;break}return e.abrupt("return");case 2:if(n(!0),!i){e.next=11;break}return a(!1),G.setState({participatingTestsGroups:[]}),e.next=8,G.persist.rehydrate();case 8:return window.extendifyData._canRehydrate=!1,n(!1),e.abrupt("return");case 11:return G.persist.clearStorage(),w.persist.clearStorage(),e.next=15,new Promise((function(e){return setTimeout(e,1e3)}));case 15:window.extendifyData._canRehydrate=!0,a(!0),n(!1);case 18:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),c=function(){var e=vo(k().mark((function e(){var t;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new URLSearchParams(window.location.search)).delete("LOCALMODE",1),t[t.has("DEVMODE")||s?"delete":"append"]("DEVMODE",1),window.history.replaceState(null,null,window.location.pathname+"?"+t.toString()),e.next=6,new Promise((function(e){return setTimeout(e,500)}));case 6:window.dispatchEvent(new Event("popstate")),se.getState().resetTemplates(),se.getState().updateSearchParams({}),Q.persist.clearStorage(),Q.persist.rehydrate(),se.setState({taxonomyDefaultState:{}}),Q.getState().fetchTaxonomies().then((function(){se.getState().setupDefaultTaxonomies()}));case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return window.extendifyData.devbuild?(0,qt.jsxs)("section",{className:"p-6 flex flex-col space-y-6 border-l-8 border-extendify-secondary",children:[(0,qt.jsxs)("div",{children:[(0,qt.jsx)("p",{className:"text-base m-0 text-extendify-black",children:"Development Settings"}),(0,qt.jsx)("p",{className:"text-sm italic m-0 text-gray-500",children:"Only available on dev builds"})]}),(0,qt.jsxs)("div",{className:"flex space-x-2",children:[(0,qt.jsxs)(Lt.Button,{isSecondary:!0,onClick:c,children:["Switch to ",s?"Live":"Dev"," Server"]}),(0,qt.jsx)(Lt.Button,{isSecondary:!0,onClick:l,children:t?"Processing...":i?"OK! Press to rehydrate app":"Reset User Data"})]})]}):null};function jo(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function ko(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){jo(i,r,o,a,s,"next",e)}function s(e){jo(i,r,o,a,s,"throw",e)}a(void 0)}))}}function So(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Co(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Co(e,t)}(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.")}()}function Co(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 _o(e){var t=e.actionCallback,n=e.initialFocus,r=G((function(e){return e.apiKey.length})),i=So((0,o.useState)(""),2),a=i[0],s=i[1],l=So((0,o.useState)(""),2),c=l[0],u=l[1],d=So((0,o.useState)(""),2),f=d[0],p=d[1],h=So((0,o.useState)("info"),2),m=h[0],x=h[1],y=So((0,o.useState)(!1),2),v=y[0],g=y[1],b=So((0,o.useState)(!1),2),w=b[0],j=b[1],S=(0,o.useRef)(null),C=(0,o.useRef)(null),_=zn();(0,o.useEffect)((function(){return s(G.getState().email),function(){return x("info")}}),[]),(0,o.useEffect)((function(){var e;w&&(null==S||null===(e=S.current)||void 0===e||e.focus())}),[w]);var O=function(){var e=ko(k().mark((function e(t){var n,r,o,i,s;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),g(!0),p(""),e.next=5,A(a,c);case 5:if(n=e.sent,r=n.token,o=n.error,i=n.exception,void 0===(s=n.message)){e.next=15;break}return x("error"),g(!1),p(null!=s&&s.length?s:"Error: Are you interacting with the wrong server?"),e.abrupt("return");case 15:if(!o&&!i){e.next=20;break}return x("error"),g(!1),p(null!=o&&o.length?o:i),e.abrupt("return");case 20:if(r&&"string"==typeof r){e.next=25;break}return x("error"),g(!1),p((0,Mt.__)("Something went wrong","extendify")),e.abrupt("return");case 25:x("success"),p("Success!"),j(!0),g(!1),G.setState({email:a,apiKey:r});case 30:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return w?(0,qt.jsxs)("section",{className:"space-y-6 p-6 text-center flex flex-col items-center",children:[(0,qt.jsx)(Rt,{icon:wn,size:148}),(0,qt.jsx)("p",{className:"text-center text-lg font-semibold m-0 text-extendify-black",children:(0,Mt.__)("You've signed in to Extendify","extendify")}),(0,qt.jsx)(Lt.Button,{ref:S,className:"cursor-pointer rounded bg-extendify-main p-2 px-4 text-center text-white",onClick:t,children:(0,Mt.__)("View patterns","extendify")})]}):r?(0,qt.jsxs)("section",{className:"w-full space-y-6 p-6",children:[(0,qt.jsx)("p",{className:"text-base m-0 text-extendify-black",children:(0,Mt.__)("Account","extendify")}),(0,qt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,qt.jsxs)("div",{className:"-ml-2 flex items-center space-x-2",children:[(0,qt.jsx)(Rt,{icon:Sn,size:48}),(0,qt.jsx)("p",{className:"text-extendify-black",children:null!=a&&a.length?a:(0,Mt.__)("Logged In","extendify")})]}),_&&(0,qt.jsx)(Lt.Button,{className:"cursor-pointer rounded bg-extendify-main px-4 py-3 text-center text-white hover:bg-extendify-main-dark",onClick:function(){u(""),G.setState({apiKey:""}),setTimeout((function(){var e;null==C||null===(e=C.current)||void 0===e||e.focus()}),0)},children:(0,Mt.__)("Sign out","extendify")})]})]}):(0,qt.jsxs)("section",{className:"space-y-6 p-6 text-left",children:[(0,qt.jsxs)("div",{children:[(0,qt.jsx)("p",{className:"text-center text-lg font-semibold m-0 text-extendify-black",children:(0,Mt.__)("Sign in to Extendify","extendify")}),(0,qt.jsxs)("p",{className:"space-x-1 text-center text-sm m-0 text-extendify-gray",children:[(0,qt.jsx)("span",{children:(0,Mt.__)("Don't have an account?","extendify")}),(0,qt.jsx)("a",{href:"https://extendify.com/pricing?utm_source=".concat(window.extendifyData.sdk_partner,"&utm_medium=library&utm_campaign=sign-in-form&utm_content=sign-up&utm_group=").concat(G.getState().activeTestGroupsUtmValue()),target:"_blank",onClick:ko(k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ce("sign-up-link-from-login-modal-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),className:"underline hover:no-underline text-extendify-gray",rel:"noreferrer",children:(0,Mt.__)("Sign up","extendify")})]})]}),(0,qt.jsxs)("form",{onSubmit:O,className:"flex flex-col items-center justify-center space-y-2",children:[(0,qt.jsxs)("div",{className:"flex items-center",children:[(0,qt.jsx)("label",{className:"sr-only",htmlFor:"extendify-login-email",children:(0,Mt.__)("Email address","extendify")}),(0,qt.jsx)("input",{ref:n,id:"extendify-login-email",name:"extendify-login-email",style:{minWidth:"320px"},type:"email",className:"w-full rounded border-2 p-2",placeholder:(0,Mt.__)("Email address","extendify"),value:a.length?a:"",onChange:function(e){return s(e.target.value)}})]}),(0,qt.jsxs)("div",{className:"flex items-center",children:[(0,qt.jsx)("label",{className:"sr-only",htmlFor:"extendify-login-license",children:(0,Mt.__)("License key","extendify")}),(0,qt.jsx)("input",{ref:C,id:"extendify-login-license",name:"extendify-login-license",style:{minWidth:"320px"},type:"text",className:"w-full rounded border-2 p-2",placeholder:(0,Mt.__)("License key","extendify"),value:c,onChange:function(e){return u(e.target.value)}})]}),(0,qt.jsx)("div",{className:"flex justify-center pt-2",children:(0,qt.jsxs)("button",{type:"submit",className:"relative flex w-72 max-w-full cursor-pointer justify-center rounded bg-extendify-main p-2 py-3 text-center text-base text-white hover:bg-extendify-main-dark ",children:[(0,qt.jsx)("span",{children:(0,Mt.__)("Sign In","extendify")}),v&&(0,qt.jsx)("div",{className:"absolute right-2.5",children:(0,qt.jsx)(Lt.Spinner,{})})]})}),f&&(0,qt.jsx)("div",{className:Ft()({"border-gray-900 text-gray-900":"info"===m,"border-wp-alert-red text-wp-alert-red":"error"===m,"border-extendify-main text-extendify-main":"success"===m}),children:f}),(0,qt.jsx)("div",{className:"pt-4 text-center",children:(0,qt.jsx)("a",{target:"_blank",rel:"noreferrer",href:"https://extendify.com/guides/sign-in?utm_source=".concat(window.extendifyData.sdk_partner,"&utm_medium=library&utm_campaign=sign-in-form&utm_content=need-help&utm_group=").concat(G.getState().activeTestGroupsUtmValue()),onClick:ko(k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ce("need-help-link-from-login-modal-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),className:"underline hover:no-underline text-sm text-extendify-gray",children:(0,Mt.__)("Need Help?","extendify")})})]})]})}var Oo=function(){var e=(0,o.useRef)(null),t=w((function(e){return e.removeAllModals}));return(0,qt.jsx)(mo,{heading:(0,Mt.__)("Settings","extendify"),isOpen:!0,ref:e,children:(0,qt.jsxs)("div",{className:"flex justify-center flex-col divide-y",children:[(0,qt.jsx)(wo,{}),(0,qt.jsx)(_o,{initialFocus:e,actionCallback:t})]})})};function Eo(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function No(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Eo(i,r,o,a,s,"next",e)}function s(e){Eo(i,r,o,a,s,"throw",e)}a(void 0)}))}}var Ao=function(){var e=w((function(e){return e.pushModal})),t=(0,o.useRef)(null);return(0,qt.jsxs)(_n,{isOpen:!0,ref:t,leftContainerBgColor:"bg-white",children:[(0,qt.jsxs)("div",{children:[(0,qt.jsx)("div",{className:"mb-5 flex items-center space-x-2 text-extendify-black",children:pn}),(0,qt.jsx)("h3",{className:"mt-0 text-xl",children:(0,Mt.__)("You're out of imports","extendify")}),(0,qt.jsx)("p",{className:"text-sm text-black",children:(0,Mt.__)("Sign up today and get unlimited access to our entire collection of patterns and page layouts.","extendify")}),(0,qt.jsxs)("div",{children:[(0,qt.jsxs)("a",{target:"_blank",ref:t,className:"button-extendify-main button-focus mt-2 inline-flex justify-center px-4 py-3",style:{minWidth:"225px"},href:"https://extendify.com/pricing/?utm_source=".concat(window.extendifyData.sdk_partner,"&utm_medium=library&utm_campaign=no-imports-modal&utm_content=get-unlimited-imports&utm_group=").concat(G.getState().activeTestGroupsUtmValue()),onClick:No(k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ce("no-imports-modal-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),rel:"noreferrer",children:[(0,Mt.__)("Get Unlimited Imports","extendify"),(0,qt.jsx)(Lt.Icon,{icon:vn,size:24,className:"-mr-1"})]}),(0,qt.jsxs)("p",{className:"mb-0 text-left text-sm text-extendify-gray",children:[(0,Mt.__)("Have an account?","extendify"),(0,qt.jsx)(Lt.Button,{onClick:function(){return e((0,qt.jsx)(Oo,{}))},className:"pl-2 text-sm text-extendify-gray underline hover:no-underline",children:(0,Mt.__)("Sign in","extendify")})]})]})]}),(0,qt.jsxs)("div",{className:"flex h-full flex-col justify-center space-y-2 p-10 text-black",children:[(0,qt.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,qt.jsx)(Lt.Icon,{icon:bn,size:24}),(0,qt.jsx)("span",{className:"text-sm leading-none",children:(0,Mt.__)("Access to 100's of Patterns","extendify")})]}),(0,qt.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,qt.jsx)(Lt.Icon,{icon:hn,size:24}),(0,qt.jsx)("span",{className:"text-sm leading-none",children:(0,Mt.__)('Access to "Pro" catalog',"extendify")})]}),(0,qt.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,qt.jsx)(Lt.Icon,{icon:gn,size:24}),(0,qt.jsx)("span",{className:"text-sm leading-none",children:(0,Mt.__)("Beautiful full page layouts","extendify")})]}),(0,qt.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,qt.jsx)(Lt.Icon,{icon:jn,size:24}),(0,qt.jsx)("span",{className:"text-sm leading-none",children:(0,Mt.__)("Fast and friendly support","extendify")})]}),(0,qt.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,qt.jsx)(Lt.Icon,{icon:kn,size:24}),(0,qt.jsx)("span",{className:"text-sm leading-none",children:(0,Mt.__)("14-Day guarantee","extendify")})]})]})]})};function Po(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function To(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Po(i,r,o,a,s,"next",e)}function s(e){Po(i,r,o,a,s,"throw",e)}a(void 0)}))}}var Io=function(){var e=(0,o.useRef)(null);return(0,qt.jsxs)(_n,{isOpen:!0,invertedButtonColor:!0,ref:e,children:[(0,qt.jsxs)("div",{children:[(0,qt.jsx)("div",{className:"mb-5 flex items-center space-x-2 text-extendify-black",children:pn}),(0,qt.jsx)("h3",{className:"mt-0 text-xl",children:(0,Mt.__)("Get unlimited access to all our Pro patterns & layouts","extendify")}),(0,qt.jsx)("p",{className:"text-sm text-black",children:(0,Mt.__)("Upgrade to Extendify Pro and use all the patterns and layouts you'd like, including our exclusive Pro catalog.","extendify")}),(0,qt.jsx)("div",{children:(0,qt.jsxs)("a",{target:"_blank",ref:e,className:"button-extendify-main button-focus mt-2 inline-flex justify-center px-4 py-3",style:{minWidth:"225px"},href:"https://extendify.com/pricing/?utm_source=".concat(window.extendifyData.sdk_partner,"&utm_medium=library&utm_campaign=pro-modal&utm_content=upgrade-now&utm_group=").concat(G.getState().activeTestGroupsUtmValue()),onClick:To(k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ce("pro-modal-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),rel:"noreferrer",children:[(0,Mt.__)("Upgrade Now","extendify"),(0,qt.jsx)(Lt.Icon,{icon:vn,size:24,className:"-mr-1"})]})})]}),(0,qt.jsx)("div",{className:"justify-endrounded-tr-sm flex w-full rounded-br-sm bg-black",children:(0,qt.jsx)("img",{alt:(0,Mt.__)("Upgrade Now","extendify"),className:"max-w-full rounded-tr-sm rounded-br-sm",src:window.extendifyData.asset_path+"/modal-extendify-black.png"})})]})};function Lo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mo(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Ro(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Do(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Do(e,t)}(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.")}()}function Do(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}var Fo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{hasRequiredPlugins:Gr,hasPluginsActivated:zr,stack:[],check:function(t){var n=this;return Zr(k().mark((function r(){var o,i,a,s;return k().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:o=Jr(e),r.prev=1,o.s();case 3:if((i=o.n()).done){r.next=11;break}return a=i.value,r.next=7,n["".concat(a)](t);case 7:s=r.sent,n.stack.push(s.pass?s.allow:s.deny);case 9:r.next=3;break;case 11:r.next=16;break;case 13:r.prev=13,r.t0=r.catch(1),o.e(r.t0);case 16:return r.prev=16,o.f(),r.finish(16);case 19:case"end":return r.stop()}}),r,null,[[1,13,16,19]])})))()},reset:function(){this.stack=[]}}}(["hasRequiredPlugins","hasPluginsActivated"]);function Bo(e){var t,n,i,a,s=e.template,l=e.maxHeight,c=(0,o.useRef)(null),u=(0,o.useRef)(!1),d=G((function(e){return e.hasAvailableImports})),f=G((function(e){return e.apiKey.length})),p=w((function(e){return e.setOpen})),h=w((function(e){return e.pushModal})),m=w((function(e){return e.removeAllModals})),x=(0,o.useMemo)((function(){return(0,r.rawHandler)({HTML:s.fields.code})}),[s.fields.code]),y=Ro((0,o.useState)(!1),2),v=y[0],g=y[1],b=zn(),j=Ro((0,o.useState)(0),2),S=j[0],C=j[1],_=function(){var e,t=(e=k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Fo.check(s);case 2:no(Fo).then((function(){setTimeout((function(){ao(x,s).then((function(){return m()})).then((function(){return p(!1)})).then((function(){return Fo.reset()}))}),100)})).catch((function(){}));case 3:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Mo(i,r,o,a,s,"next",e)}function s(e){Mo(i,r,o,a,s,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}(),O=function(){var e;ur(s),null==s||null===(e=s.fields)||void 0===e||!e.pro||f?d()?_():h((0,qt.jsx)(Ao,{})):h((0,qt.jsx)(Io,{}))};return(0,o.useEffect)((function(){var e,t,n,r,o=[],i=[];return e=window.requestAnimationFrame((function(){t=window.requestAnimationFrame((function(){c.current.querySelectorAll("iframe").forEach((function(e){var t=e.contentWindow.document.body,n=window.requestAnimationFrame((function(){var n=t.querySelector(".is-root-container");if(n&&(null==n?void 0:n.offsetHeight)){r=window.requestAnimationFrame((function(){e.contentWindow.dispatchEvent(new Event("resize"))}));var o=window.setTimeout((function(){e.contentWindow.dispatchEvent(new Event("resize"))}),2e3);i.push(o)}e.contentWindow.dispatchEvent(new Event("resize"))}));o.push(n)})),n=window.requestAnimationFrame((function(){window.dispatchEvent(new Event("resize")),g(!0)}))}))})),function(){[].concat(o,[e,t,n,r]).forEach((function(e){return window.cancelAnimationFrame(e)})),i.forEach((function(e){return window.clearTimeout(e)}))}}),[]),(0,o.useEffect)((function(){if(Number.isInteger(l)){var e=c.current,t=function(){var t=e.offsetHeight;e.style.transitionDuration=1.5*t+"ms",C(-1*Math.abs(t-l))},n=function(){var t=e.offsetHeight;e.style.transitionDuration=t/1.5+"ms",C(0)};return e.addEventListener("focus",t),e.addEventListener("mouseenter",t),e.addEventListener("blur",n),e.addEventListener("mouseleave",n),function(){e.removeEventListener("focus",t),e.removeEventListener("mouseenter",t),e.removeEventListener("blur",n),e.removeEventListener("mouseleave",n)}}}),[l]),(0,qt.jsxs)("div",{className:"group relative",children:[(0,qt.jsx)("div",{role:"button",tabIndex:"0","aria-label":(0,Mt.sprintf)((0,Mt.__)("Press to import %s","extendify"),null==s||null===(t=s.fields)||void 0===t?void 0:t.type),style:{maxHeight:l},className:"button-focus relative m-0 cursor-pointer overflow-hidden bg-gray-100 ease-in-out",onFocus:function(){u.current||(u.current=!0,Array.from(c.current.querySelectorAll('a, button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])')).forEach((function(e){return e.setAttribute("tabIndex","-1")})))},onClick:O,onKeyDown:function(e){["Enter","Space"," "].includes(e.key)&&(e.stopPropagation(),e.preventDefault(),O())},children:(0,qt.jsx)("div",{ref:c,style:{top:S,transitionProperty:"all"},className:Ft()("with-light-shadow relative",(i={},Lo(i,"is-template--".concat(s.fields.status),(null==s||null===(n=s.fields)||void 0===n?void 0:n.status)&&b),Lo(i,"p-6 md:p-8",Number.isInteger(l)),i)),children:(0,qt.jsx)(pr.BlockPreview,{blocks:x,live:!1,viewportWidth:1400})})}),b&&v&&(0,qt.jsx)(uo,{template:s}),(null==s||null===(a=s.fields)||void 0===a?void 0:a.pro)&&(0,qt.jsx)("div",{className:"pointer-events-none absolute top-4 right-4 z-20 rounded-md border border-none bg-white bg-wp-theme-500 py-1 px-2.5 font-medium text-white no-underline shadow-sm",children:(0,Mt.__)("Pro","extendify")})]})}function zo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Uo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Uo(e,t)}(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.")}()}function Uo(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}var Vo=(0,o.memo)((function(){var e=Bn(),t=se((function(e){return e.templates})),n=se((function(e){return e.appendTemplates})),r=zo((0,o.useState)(""),2),a=r[0],s=r[1],l=(0,o.useRef)(!1),c=zo((0,o.useState)(!1),2),u=c[0],d=c[1],f=zo((0,o.useState)(!1),2),p=f[0],h=f[1],m=function(e){var t=void 0===e?{}:e,n=t.threshold,r=t.delay,o=t.trackVisibility,a=t.rootMargin,s=t.root,l=t.triggerOnce,c=t.skip,u=t.initialInView,d=t.fallbackInView,f=i.useRef(),p=i.useState({inView:!!u}),h=p[0],m=p[1],x=i.useCallback((function(e){void 0!==f.current&&(f.current(),f.current=void 0),c||e&&(f.current=Jn(e,(function(e,t){m({inView:e,entry:t}),t.isIntersecting&&l&&f.current&&(f.current(),f.current=void 0)}),{root:s,rootMargin:a,threshold:n,trackVisibility:o,delay:r},d))}),[Array.isArray(n)?n.toString():n,s,a,l,c,o,d,r]);(0,i.useEffect)((function(){f.current||!h.entry||l||c||m({inView:!!u})}));var y=[x,h.inView,h.entry];return y.ref=y[0],y.inView=y[1],y.entry=y[2],y}(),x=zo(m,2),y=x[0],v=x[1],g=se((function(e){return e.searchParams})),b=w((function(e){return e.currentType})),j=se((function(e){return e.resetTemplates})),k=w((function(e){return e.open})),S=Q((function(e){return e.taxonomies})),C=se((function(e){return e.updateType})),O=se((function(e){return e.updateTaxonomies})),E=(0,o.useRef)(se.getState().nextPage),N=(0,o.useRef)(se.getState().searchParams),A="pattern"===N.current.type?"patternType":"layoutType",P=N.current.taxonomies[A],T=Rn("default-or-alt-sitetype",["A","B"]);(0,o.useEffect)((function(){return se.subscribe((function(e){return e.nextPage}),(function(e){return E.current=e}))}),[]),(0,o.useEffect)((function(){return se.subscribe((function(e){return e.searchParams}),(function(e){return N.current=e}))}),[]);var I,L=(0,o.useCallback)((function(){var t,r,o;if(T){s(""),d(!1);var i=(0,Mt.__)("Unknown error occured. Check browser console or contact support.","extendify"),a={offset:E.current},l="A"===T?{slug:"default"}:{slug:"defaultAlt"},c=null!==(t=N.current.taxonomies)&&void 0!==t&&null!==(r=t.siteType)&&void 0!==r&&null!==(o=r.slug)&&void 0!==o&&o.length?N.current.taxonomies.siteType:l,u=(0,_.cloneDeep)(N.current);u.taxonomies.siteType=c,cr(u,a).then((function(t){var r,o,i,a;e.current&&(null!=t&&null!==(r=t.error)&&void 0!==r&&r.length?s(null==t?void 0:t.error):(null==t||null===(o=t.records)||void 0===o?void 0:o.length)<=0?d(!0):g===N.current&&null!=t&&null!==(i=t.records)&&void 0!==i&&i.length&&(se.setState({nextPage:null!==(a=null==t?void 0:t.offset)&&void 0!==a?a:""}),n(t.records),h(!1)))})).catch((function(t){e.current&&(console.error(t),s(i))}))}}),[n,e,g,T]);return(0,o.useEffect)((function(){0!==(null==t?void 0:t.length)||h(!0)}),[null==t?void 0:t.length,g]),(0,o.useEffect)((function(){!l.current&&a.length&&(l.current=!0,L())}),[a,L]),(0,o.useEffect)((function(){var e;if(k&&null!=S&&null!==(e=S.patternType)&&void 0!==e&&e.length){var t=new URLSearchParams(window.location.search);if(t.has("ext-patternType")){var n=t.get("ext-patternType");t.delete("ext-patternType"),window.history.replaceState(null,null,window.location.pathname+"?"+t.toString());var r=S.patternType.find((function(e){return e.slug===n}));r&&(O({patternType:r}),C("pattern"))}}}),[k,S,C,O]),(0,o.useEffect)((function(){var e,t;if(null!==(e=Object.keys(null===(t=N.current)||void 0===t?void 0:t.taxonomies))&&void 0!==e&&e.length){if(!se.getState().skipNextFetch)return L(),function(){return j()};se.setState({skipNextFetch:!1})}}),[L,N,j]),(0,o.useEffect)((function(){E.current&&v&&L()}),[v,L,t]),a.length&&l.current?(0,qt.jsxs)("div",{className:"text-left",children:[(0,qt.jsx)("h2",{className:"text-left",children:(0,Mt.__)("Server error","extendify")}),(0,qt.jsx)("code",{className:"mb-4 block max-w-xl p-4",style:{minHeight:"10rem"},children:a}),(0,qt.jsx)(Lt.Button,{isTertiary:!0,onClick:function(){l.current=!1,L()},children:(0,Mt.__)("Press here to reload")})]}):u?(0,qt.jsx)("div",{className:"-mt-2 flex h-full w-full items-center justify-center sm:mt-0",children:(0,qt.jsx)("h2",{className:"text-sm font-normal text-extendify-gray",children:(0,Mt.sprintf)("template"===N.current.type?(0,Mt.__)('We couldn\'t find any layouts in the "%s" category.',"extendify"):(0,Mt.__)('We couldn\'t find any patterns in the "%s" category.',"extendify"),null!==(I=null==P?void 0:P.title)&&void 0!==I?I:P.slug)})}):(0,qt.jsxs)(qt.Fragment,{children:[p&&(0,qt.jsx)("div",{className:"-mt-2 flex h-full w-full items-center justify-center sm:mt-0",children:(0,qt.jsx)(Lt.Spinner,{})}),(0,qt.jsx)(Ho,{type:b,templates:t,children:t.map((function(e){return(0,qt.jsx)(Bo,{maxHeight:"template"===b?520:"none",template:e},e.id)}))}),E.current&&(0,qt.jsxs)(qt.Fragment,{children:[(0,qt.jsx)("div",{className:"my-20",children:(0,qt.jsx)(Lt.Spinner,{})}),(0,qt.jsx)("div",{className:"relative flex -translate-y-full transform flex-col items-end justify-end",ref:y,style:{zIndex:-1,marginBottom:"-100%",height:"template"===b?"150vh":"75vh"}})]})]})})),Ho=function(e){var t=e.type,n=e.children,r="relative min-h-screen z-10 pb-40 pt-0.5";if("template"===t)return(0,qt.jsx)("div",{className:"grid gap-6 md:gap-8 lg:grid-cols-2 ".concat(r),children:n});return(0,qt.jsx)(ir,{breakpointCols:{default:3,1600:2,860:1,599:2,400:1},className:"-ml-6 flex w-auto px-0.5 md:-ml-8 ".concat(r),columnClassName:"pl-6 md:pl-8 bg-clip-padding space-y-6 md:space-y-8",children:n})};function Wo(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function qo(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Wo(i,r,o,a,s,"next",e)}function s(e){Wo(i,r,o,a,s,"throw",e)}a(void 0)}))}}var $o=(0,o.memo)((function(){var e=G((function(e){return e.remainingImports})),t=G((function(e){return e.allowedImports})),n=e(),r=n>0?"has-imports":"no-imports",i=(0,o.useRef)();return(0,o.useEffect)((function(){if(t<1||!t){I().then((function(e){e=/^[1-9]\d*$/.test(e)?e:5,G.setState({allowedImports:e})})).catch((function(){return G.setState({allowedImports:5})}))}}),[t]),t?(0,qt.jsxs)("div",{tabIndex:"0",className:"group relative mb-5",children:[(0,qt.jsxs)("a",{target:"_blank",ref:i,rel:"noreferrer",className:Ft()("button-focus hidden w-full justify-between rounded py-3 px-4 text-sm text-white no-underline sm:flex",{"bg-wp-theme-500 hover:bg-wp-theme-600":n>0,"bg-extendify-alert":!n}),onClick:qo(k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ce("import-counter-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),href:"https://www.extendify.com/pricing/?utm_source=".concat(encodeURIComponent(window.extendifyData.sdk_partner),"&utm_medium=library&utm_campaign=import-counter&utm_content=get-more&utm_term=").concat(r,"&utm_group=").concat(G.getState().activeTestGroupsUtmValue()),children:[(0,qt.jsxs)("span",{className:"flex items-center space-x-2 text-xs no-underline",children:[(0,qt.jsx)(Rt,{icon:n>0?mn:un,size:14}),(0,qt.jsx)("span",{children:(0,Mt.sprintf)((0,Mt._n)("%s Import","%s Imports",n,"extendify"),n)})]}),(0,qt.jsxs)("span",{className:"outline-none flex items-center text-sm font-medium text-white no-underline",children:[(0,Mt.__)("Get more","extendify"),(0,qt.jsx)(Rt,{icon:vn,size:24,className:"-mr-1.5"})]})]}),(0,qt.jsx)("div",{className:"extendify-bottom-arrow invisible absolute top-0 w-full -translate-y-full transform opacity-0 shadow-md transition-all delay-200 duration-300 ease-in-out group-hover:visible group-hover:-top-2.5 group-hover:opacity-100 group-focus:visible group-focus:-top-2.5 group-focus:opacity-100",tabIndex:"-1",children:(0,qt.jsx)("a",{href:"https://www.extendify.com/pricing/?utm_source=".concat(encodeURIComponent(window.extendifyData.sdk_partner),"&utm_medium=library&utm_campaign=import-counter-tooltip&utm_content=get-50-off&utm_term=").concat(r,"&utm_group=").concat(G.getState().activeTestGroupsUtmValue()),className:"block bg-gray-900 text-white p-4 no-underline rounded bg-cover",onClick:qo(k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ce("import-counter-tooltip-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),style:{backgroundImage:"url(".concat(window.extendifyData.asset_path,"/logo-tips.png)"),backgroundSize:"100% 100%"},children:(0,qt.jsx)("span",{dangerouslySetInnerHTML:{__html:cn((0,Mt.sprintf)((0,Mt.__)("%1$sGet %2$s off%3$s Extendify Pro when you upgrade today!","extendify"),"<strong>","50%","</strong>"))}})})})]}):null}));function Go(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Jo(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Go(i,r,o,a,s,"next",e)}function s(e){Go(i,r,o,a,s,"throw",e)}a(void 0)}))}}var Ko=(0,o.memo)((function(){var e=G((function(e){return e.remainingImports})),t=G((function(e){return e.allowedImports})),n=e(),r="https://www.extendify.com/pricing/?utm_source=".concat(encodeURIComponent(window.extendifyData.sdk_partner),"&utm_medium=library&utm_campaign=import-counter&utm_content=get-more&utm_term=").concat(n>0?"has-imports":"no-imports","&utm_group=").concat(G.getState().activeTestGroupsUtmValue());return(0,o.useEffect)((function(){if(t<1||!t){I().then((function(e){e=/^[1-9]\d*$/.test(e)?e:5,G.setState({allowedImports:e})})).catch((function(){return G.setState({allowedImports:5})}))}}),[t]),t?(0,qt.jsxs)("a",{target:"_blank",className:"absolute bottom-4 left-0 mx-5 hidden sm:block bg-white rounded border-solid border border-gray-200 p-4 text-left no-underline group button-focus",rel:"noreferrer",onClick:Jo(k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ce("fp-sb-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),href:r,children:[(0,qt.jsxs)("span",{className:"flex -ml-1.5 space-x-1.5",children:[(0,qt.jsx)(Rt,{icon:fn}),(0,qt.jsx)("span",{className:"mb-1 text-gray-800 font-medium text-sm",children:(0,Mt.__)("Free Plan","extendify")})]}),(0,qt.jsx)("span",{className:"text-gray-700 block ml-6 mb-1.5",children:(0,Mt.sprintf)((0,Mt._n)("You have %s free pattern and layout import remaining this month.","You have %s free pattern and layout imports remaining this month.",n,"extendify"),n)}),(0,qt.jsx)("span",{className:Ft()("block font-semibold ml-6 text-sm group-hover:underline",{"text-red-500":n<2,"text-wp-theme-500":n>1}),dangerouslySetInnerHTML:{__html:cn((0,Mt.sprintf)((0,Mt._x)("Upgrade today %s","The replacement string is a right arrow and context is not lost if removed.","extendify"),'<span class="text-base">\n '.concat(String.fromCharCode(8250),"\n </span>")))}})]}):null}));function Xo(e){return Array.isArray?Array.isArray(e):"[object Array]"===ri(e)}function Zo(e){return"string"==typeof e}function Yo(e){return"number"==typeof e}function Qo(e){return!0===e||!1===e||function(e){return ei(e)&&null!==e}(e)&&"[object Boolean]"==ri(e)}function ei(e){return"object"==typeof e}function ti(e){return null!=e}function ni(e){return!e.trim().length}function ri(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const oi=Object.prototype.hasOwnProperty;class ii{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach((e=>{let n=ai(e);t+=n.weight,this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight})),this._keys.forEach((e=>{e.weight/=t}))}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function ai(e){let t=null,n=null,r=null,o=1;if(Zo(e)||Xo(e))r=e,t=si(e),n=li(e);else{if(!oi.call(e,"name"))throw new Error((e=>`Missing ${e} property in key`)("name"));const i=e.name;if(r=i,oi.call(e,"weight")&&(o=e.weight,o<=0))throw new Error((e=>`Property 'weight' in key '${e}' must be a positive integer`)(i));t=si(i),n=li(i)}return{path:t,id:n,weight:o,src:r}}function si(e){return Xo(e)?e:e.split(".")}function li(e){return Xo(e)?e.join("."):e}var ci={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,...{useExtendedSearch:!1,getFn:function(e,t){let n=[],r=!1;const o=(e,t,i)=>{if(ti(e))if(t[i]){const a=e[t[i]];if(!ti(a))return;if(i===t.length-1&&(Zo(a)||Yo(a)||Qo(a)))n.push(function(e){return null==e?"":function(e){if("string"==typeof e)return e;let t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}(a));else if(Xo(a)){r=!0;for(let e=0,n=a.length;e<n;e+=1)o(a[e],t,i+1)}else t.length&&o(a,t,i+1)}else n.push(e)};return o(e,Zo(t)?t.split("."):t,0),r?n:n[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1}};const ui=/[^ ]+/g;class di{constructor({getFn:e=ci.getFn,fieldNormWeight:t=ci.fieldNormWeight}={}){this.norm=function(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(t){const o=t.match(ui).length;if(n.has(o))return n.get(o);const i=1/Math.pow(o,.5*e),a=parseFloat(Math.round(i*r)/r);return n.set(o,a),a},clear(){n.clear()}}}(t,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach(((e,t)=>{this._keysMap[e.id]=t}))}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,Zo(this.docs[0])?this.docs.forEach(((e,t)=>{this._addString(e,t)})):this.docs.forEach(((e,t)=>{this._addObject(e,t)})),this.norm.clear())}add(e){const t=this.size();Zo(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,n=this.size();t<n;t+=1)this.records[t].i-=1}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_addString(e,t){if(!ti(e)||ni(e))return;let n={v:e,i:t,n:this.norm.get(e)};this.records.push(n)}_addObject(e,t){let n={i:t,$:{}};this.keys.forEach(((t,r)=>{let o=this.getFn(e,t.path);if(ti(o))if(Xo(o)){let e=[];const t=[{nestedArrIndex:-1,value:o}];for(;t.length;){const{nestedArrIndex:n,value:r}=t.pop();if(ti(r))if(Zo(r)&&!ni(r)){let t={v:r,i:n,n:this.norm.get(r)};e.push(t)}else Xo(r)&&r.forEach(((e,n)=>{t.push({nestedArrIndex:n,value:e})}))}n.$[r]=e}else if(!ni(o)){let e={v:o,n:this.norm.get(o)};n.$[r]=e}})),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function fi(e,t,{getFn:n=ci.getFn,fieldNormWeight:r=ci.fieldNormWeight}={}){const o=new di({getFn:n,fieldNormWeight:r});return o.setKeys(e.map(ai)),o.setSources(t),o.create(),o}function pi(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:o=ci.distance,ignoreLocation:i=ci.ignoreLocation}={}){const a=t/e.length;if(i)return a;const s=Math.abs(r-n);return o?a+s/o:s?1:a}const hi=32;function mi(e,t,n,{location:r=ci.location,distance:o=ci.distance,threshold:i=ci.threshold,findAllMatches:a=ci.findAllMatches,minMatchCharLength:s=ci.minMatchCharLength,includeMatches:l=ci.includeMatches,ignoreLocation:c=ci.ignoreLocation}={}){if(t.length>hi)throw new Error(`Pattern length exceeds max of ${hi}.`);const u=t.length,d=e.length,f=Math.max(0,Math.min(r,d));let p=i,h=f;const m=s>1||l,x=m?Array(d):[];let y;for(;(y=e.indexOf(t,h))>-1;){let e=pi(t,{currentLocation:y,expectedLocation:f,distance:o,ignoreLocation:c});if(p=Math.min(e,p),h=y+u,m){let e=0;for(;e<u;)x[y+e]=1,e+=1}}h=-1;let v=[],g=1,b=u+d;const w=1<<u-1;for(let r=0;r<u;r+=1){let i=0,s=b;for(;i<s;){pi(t,{errors:r,currentLocation:f+s,expectedLocation:f,distance:o,ignoreLocation:c})<=p?i=s:b=s,s=Math.floor((b-i)/2+i)}b=s;let l=Math.max(1,f-s+1),y=a?d:Math.min(f+s,d)+u,j=Array(y+2);j[y+1]=(1<<r)-1;for(let i=y;i>=l;i-=1){let a=i-1,s=n[e.charAt(a)];if(m&&(x[a]=+!!s),j[i]=(j[i+1]<<1|1)&s,r&&(j[i]|=(v[i+1]|v[i])<<1|1|v[i+1]),j[i]&w&&(g=pi(t,{errors:r,currentLocation:a,expectedLocation:f,distance:o,ignoreLocation:c}),g<=p)){if(p=g,h=a,h<=f)break;l=Math.max(1,2*f-h)}}if(pi(t,{errors:r+1,currentLocation:f,expectedLocation:f,distance:o,ignoreLocation:c})>p)break;v=j}const j={isMatch:h>=0,score:Math.max(.001,g)};if(m){const e=function(e=[],t=ci.minMatchCharLength){let n=[],r=-1,o=-1,i=0;for(let a=e.length;i<a;i+=1){let a=e[i];a&&-1===r?r=i:a||-1===r||(o=i-1,o-r+1>=t&&n.push([r,o]),r=-1)}return e[i-1]&&i-r>=t&&n.push([r,i-1]),n}(x,s);e.length?l&&(j.indices=e):j.isMatch=!1}return j}function xi(e){let t={};for(let n=0,r=e.length;n<r;n+=1){const o=e.charAt(n);t[o]=(t[o]||0)|1<<r-n-1}return t}class yi{constructor(e,{location:t=ci.location,threshold:n=ci.threshold,distance:r=ci.distance,includeMatches:o=ci.includeMatches,findAllMatches:i=ci.findAllMatches,minMatchCharLength:a=ci.minMatchCharLength,isCaseSensitive:s=ci.isCaseSensitive,ignoreLocation:l=ci.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:r,includeMatches:o,findAllMatches:i,minMatchCharLength:a,isCaseSensitive:s,ignoreLocation:l},this.pattern=s?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const c=(e,t)=>{this.chunks.push({pattern:e,alphabet:xi(e),startIndex:t})},u=this.pattern.length;if(u>hi){let e=0;const t=u%hi,n=u-t;for(;e<n;)c(this.pattern.substr(e,hi),e),e+=hi;if(t){const e=u-hi;c(this.pattern.substr(e),e)}}else c(this.pattern,0)}searchIn(e){const{isCaseSensitive:t,includeMatches:n}=this.options;if(t||(e=e.toLowerCase()),this.pattern===e){let t={isMatch:!0,score:0};return n&&(t.indices=[[0,e.length-1]]),t}const{location:r,distance:o,threshold:i,findAllMatches:a,minMatchCharLength:s,ignoreLocation:l}=this.options;let c=[],u=0,d=!1;this.chunks.forEach((({pattern:t,alphabet:f,startIndex:p})=>{const{isMatch:h,score:m,indices:x}=mi(e,t,f,{location:r+p,distance:o,threshold:i,findAllMatches:a,minMatchCharLength:s,includeMatches:n,ignoreLocation:l});h&&(d=!0),u+=m,h&&x&&(c=[...c,...x])}));let f={isMatch:d,score:d?u/this.chunks.length:1};return d&&n&&(f.indices=c),f}}class vi{constructor(e){this.pattern=e}static isMultiMatch(e){return gi(e,this.multiRegex)}static isSingleMatch(e){return gi(e,this.singleRegex)}search(){}}function gi(e,t){const n=e.match(t);return n?n[1]:null}class bi extends vi{constructor(e,{location:t=ci.location,threshold:n=ci.threshold,distance:r=ci.distance,includeMatches:o=ci.includeMatches,findAllMatches:i=ci.findAllMatches,minMatchCharLength:a=ci.minMatchCharLength,isCaseSensitive:s=ci.isCaseSensitive,ignoreLocation:l=ci.ignoreLocation}={}){super(e),this._bitapSearch=new yi(e,{location:t,threshold:n,distance:r,includeMatches:o,findAllMatches:i,minMatchCharLength:a,isCaseSensitive:s,ignoreLocation:l})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class wi extends vi{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,n=0;const r=[],o=this.pattern.length;for(;(t=e.indexOf(this.pattern,n))>-1;)n=t+o,r.push([t,n-1]);const i=!!r.length;return{isMatch:i,score:i?0:1,indices:r}}}const ji=[class extends vi{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},wi,class extends vi{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},class extends vi{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends vi{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends vi{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}},class extends vi{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},bi],ki=ji.length,Si=/ +(?=([^\"]*\"[^\"]*\")*[^\"]*$)/;const Ci=new Set([bi.type,wi.type]);class _i{constructor(e,{isCaseSensitive:t=ci.isCaseSensitive,includeMatches:n=ci.includeMatches,minMatchCharLength:r=ci.minMatchCharLength,ignoreLocation:o=ci.ignoreLocation,findAllMatches:i=ci.findAllMatches,location:a=ci.location,threshold:s=ci.threshold,distance:l=ci.distance}={}){this.query=null,this.options={isCaseSensitive:t,includeMatches:n,minMatchCharLength:r,findAllMatches:i,ignoreLocation:o,location:a,threshold:s,distance:l},this.pattern=t?e:e.toLowerCase(),this.query=function(e,t={}){return e.split("|").map((e=>{let n=e.trim().split(Si).filter((e=>e&&!!e.trim())),r=[];for(let e=0,o=n.length;e<o;e+=1){const o=n[e];let i=!1,a=-1;for(;!i&&++a<ki;){const e=ji[a];let n=e.isMultiMatch(o);n&&(r.push(new e(n,t)),i=!0)}if(!i)for(a=-1;++a<ki;){const e=ji[a];let n=e.isSingleMatch(o);if(n){r.push(new e(n,t));break}}}return r}))}(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){const t=this.query;if(!t)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:r}=this.options;e=r?e:e.toLowerCase();let o=0,i=[],a=0;for(let r=0,s=t.length;r<s;r+=1){const s=t[r];i.length=0,o=0;for(let t=0,r=s.length;t<r;t+=1){const r=s[t],{isMatch:l,indices:c,score:u}=r.search(e);if(!l){a=0,o=0,i.length=0;break}if(o+=1,a+=u,n){const e=r.constructor.type;Ci.has(e)?i=[...i,...c]:i.push(c)}}if(o){let e={isMatch:!0,score:a/o};return n&&(e.indices=i),e}}return{isMatch:!1,score:1}}}const Oi=[];function Ei(e,t){for(let n=0,r=Oi.length;n<r;n+=1){let r=Oi[n];if(r.condition(e,t))return new r(e,t)}return new yi(e,t)}const Ni="$and",Ai="$or",Pi="$path",Ti="$val",Ii=e=>!(!e[Ni]&&!e[Ai]),Li=e=>({[Ni]:Object.keys(e).map((t=>({[t]:e[t]})))});function Mi(e,t,{auto:n=!0}={}){const r=e=>{let o=Object.keys(e);const i=(e=>!!e[Pi])(e);if(!i&&o.length>1&&!Ii(e))return r(Li(e));if((e=>!Xo(e)&&ei(e)&&!Ii(e))(e)){const r=i?e[Pi]:o[0],a=i?e[Ti]:e[r];if(!Zo(a))throw new Error((e=>`Invalid value for key ${e}`)(r));const s={keyId:li(r),pattern:a};return n&&(s.searcher=Ei(a,t)),s}let a={children:[],operator:o[0]};return o.forEach((t=>{const n=e[t];Xo(n)&&n.forEach((e=>{a.children.push(r(e))}))})),a};return Ii(e)||(e=Li(e)),r(e)}function Ri(e,t){const n=e.matches;t.matches=[],ti(n)&&n.forEach((e=>{if(!ti(e.indices)||!e.indices.length)return;const{indices:n,value:r}=e;let o={indices:n,value:r};e.key&&(o.key=e.key.src),e.idx>-1&&(o.refIndex=e.idx),t.matches.push(o)}))}function Di(e,t){t.score=e.score}class Fi{constructor(e,t={},n){this.options={...ci,...t},this.options.useExtendedSearch,this._keyStore=new ii(this.options.keys),this.setCollection(e,n)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof di))throw new Error("Incorrect 'index' type");this._myIndex=t||fi(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){ti(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=(()=>!1)){const t=[];for(let n=0,r=this._docs.length;n<r;n+=1){const o=this._docs[n];e(o,n)&&(this.removeAt(n),n-=1,r-=1,t.push(o))}return t}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:t=-1}={}){const{includeMatches:n,includeScore:r,shouldSort:o,sortFn:i,ignoreFieldNorm:a}=this.options;let s=Zo(e)?Zo(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return function(e,{ignoreFieldNorm:t=ci.ignoreFieldNorm}){e.forEach((e=>{let n=1;e.matches.forEach((({key:e,norm:r,score:o})=>{const i=e?e.weight:null;n*=Math.pow(0===o&&i?Number.EPSILON:o,(i||1)*(t?1:r))})),e.score=n}))}(s,{ignoreFieldNorm:a}),o&&s.sort(i),Yo(t)&&t>-1&&(s=s.slice(0,t)),function(e,t,{includeMatches:n=ci.includeMatches,includeScore:r=ci.includeScore}={}){const o=[];return n&&o.push(Ri),r&&o.push(Di),e.map((e=>{const{idx:n}=e,r={item:t[n],refIndex:n};return o.length&&o.forEach((t=>{t(e,r)})),r}))}(s,this._docs,{includeMatches:n,includeScore:r})}_searchStringList(e){const t=Ei(e,this.options),{records:n}=this._myIndex,r=[];return n.forEach((({v:e,i:n,n:o})=>{if(!ti(e))return;const{isMatch:i,score:a,indices:s}=t.searchIn(e);i&&r.push({item:e,idx:n,matches:[{score:a,value:e,norm:o,indices:s}]})})),r}_searchLogical(e){const t=Mi(e,this.options),n=(e,t,r)=>{if(!e.children){const{keyId:n,searcher:o}=e,i=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(t,n),searcher:o});return i&&i.length?[{idx:r,item:t,matches:i}]:[]}const o=[];for(let i=0,a=e.children.length;i<a;i+=1){const a=e.children[i],s=n(a,t,r);if(s.length)o.push(...s);else if(e.operator===Ni)return[]}return o},r=this._myIndex.records,o={},i=[];return r.forEach((({$:e,i:r})=>{if(ti(e)){let a=n(t,e,r);a.length&&(o[r]||(o[r]={idx:r,item:e,matches:[]},i.push(o[r])),a.forEach((({matches:e})=>{o[r].matches.push(...e)})))}})),i}_searchObjectList(e){const t=Ei(e,this.options),{keys:n,records:r}=this._myIndex,o=[];return r.forEach((({$:e,i:r})=>{if(!ti(e))return;let i=[];n.forEach(((n,r)=>{i.push(...this._findMatches({key:n,value:e[r],searcher:t}))})),i.length&&o.push({idx:r,item:e,matches:i})})),o}_findMatches({key:e,value:t,searcher:n}){if(!ti(t))return[];let r=[];if(Xo(t))t.forEach((({v:t,i:o,n:i})=>{if(!ti(t))return;const{isMatch:a,score:s,indices:l}=n.searchIn(t);a&&r.push({score:s,key:e,value:t,idx:o,norm:i,indices:l})}));else{const{v:o,n:i}=t,{isMatch:a,score:s,indices:l}=n.searchIn(o);a&&r.push({score:s,key:e,value:o,norm:i,indices:l})}return r}}function Bi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return zi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zi(e,t)}(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.")}()}function zi(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}Fi.version="6.5.3",Fi.createIndex=fi,Fi.parseIndex=function(e,{getFn:t=ci.getFn,fieldNormWeight:n=ci.fieldNormWeight}={}){const{keys:r,records:o}=e,i=new di({getFn:t,fieldNormWeight:n});return i.setKeys(r),i.setIndexRecords(o),i},Fi.config=ci,Fi.parseQuery=Mi,function(...e){Oi.push(...e)}(_i);var Ui=new Map,Vi=function(e){var t,n,r=e.value,i=e.setValue,a=e.terms,s=se((function(e){return e.searchParams})),l=Bi((0,o.useState)(!1),2),c=l[0],u=l[1],d=(0,o.useRef)(),f=Bi((0,o.useState)({}),2),p=f[0],h=f[1],m=Bi((0,o.useState)(""),2),x=m[0],y=m[1],v=Bi((0,o.useState)([]),2),g=v[0],b=v[1],w=Bi((0,o.useState)(!0),2),j=w[0],k=w[1],S=Rn("sitetype-open-closed",["A","B"]),C=(0,o.useMemo)((function(){return a.sort((function(e,t){return e.slug<t.slug?-1:e.slug>t.slug?1:0}))}),[a]),_=(0,o.useMemo)((function(){return C.filter((function(e){return null==e?void 0:e.featured}))}),[C]),O=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(Ui.has(e))b(Ui.get(e));else{var t=p.search(e);Ui.set(e,null!=t&&t.length?t.map((function(e){return e.item})):_),b(Ui.get(e))}};(0,o.useEffect)((function(){h(new Fi(a,{keys:["slug","title","keywords"],minMatchCharLength:1,threshold:.3}))}),[a]),(0,o.useEffect)((function(){null!=x&&x.length||b(j?_:C)}),[_,x,C,j]),(0,o.useEffect)((function(){c&&d.current.focus()}),[c]),(0,o.useEffect)((function(){"B"!==S||r.slug||u(!0)}),[S,r.slug]);var E,N,A;return(0,qt.jsxs)("div",{className:"w-full rounded bg-gray-50 border border-gray-900",children:[(0,qt.jsx)("button",{type:"button",onClick:function(){return u((function(e){return!e}))},className:"button-focus m-0 flex w-full cursor-pointer items-center justify-between rounded bg-transparent p-4 text-gray-800",children:(N=c?(0,Mt.__)("Choose a site industry","extendify"):null!==(t=null!==(n=null==r?void 0:r.title)&&void 0!==n?n:r.slug)&&void 0!==t?t:"Not set",(0,qt.jsxs)(qt.Fragment,{children:[(0,qt.jsxs)("span",{className:"flex flex-col text-left",children:[(0,qt.jsx)("span",{className:Ft()("mb-1",{"text-base font-normal":!r.slug,"text-sm font-normal":null===(A=r.slug)||void 0===A?void 0:A.length}),children:(0,Mt.__)("Site Type","extendify")}),(0,qt.jsx)("span",{className:"text-xs font-light",children:N})]}),(0,qt.jsxs)("span",{className:"flex items-center space-x-4",children:[!c&&!r.slug&&(0,qt.jsxs)("svg",{className:"text-wp-alert-red","aria-hidden":"true",focusable:"false",width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,qt.jsx)("path",{className:"stroke-current",d:"M10.9982 4.05371C7.66149 4.05371 4.95654 6.75866 4.95654 10.0954C4.95654 13.4321 7.66149 16.137 10.9982 16.137C14.3349 16.137 17.0399 13.4321 17.0399 10.0954C17.0399 6.75866 14.3349 4.05371 10.9982 4.05371V4.05371Z",strokeWidth:"1.25"}),(0,qt.jsx)("path",{className:"fill-current",d:"M10.0205 12.8717C10.0205 12.3287 10.4508 11.8881 10.9938 11.8881C11.5368 11.8881 11.9774 12.3287 11.9774 12.8717C11.9774 13.4147 11.5368 13.8451 10.9938 13.8451C10.4508 13.8451 10.0205 13.4147 10.0205 12.8717Z"}),(0,qt.jsx)("path",{className:"fill-current",d:"M11.6495 10.2591C11.6086 10.6177 11.3524 10.9148 10.9938 10.9148C10.625 10.9148 10.3791 10.6074 10.3483 10.2591L10.0205 7.31855C9.95901 6.81652 10.4918 6.34521 10.9938 6.34521C11.4959 6.34521 12.0286 6.81652 11.9774 7.31855L11.6495 10.2591Z"})]}),(0,qt.jsx)("svg",{className:Ft()("stroke-current text-gray-900",{"-translate-x-1 rotate-90 transform":c}),"aria-hidden":"true",focusable:"false",width:"8",height:"13",viewBox:"0 0 8 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,qt.jsx)("path",{d:"M1.24194 11.5952L6.24194 6.09519L1.24194 0.595215",strokeWidth:"1.5"})})]})]}))}),c&&(0,qt.jsxs)("div",{className:"max-h-96 overflow-y-auto px-4 py-0",children:[(0,qt.jsx)("div",{className:"sticky top-0 pt-0.5 pb-2 bg-gray-50",children:(0,qt.jsxs)("div",{className:"relative",children:[(0,qt.jsx)("label",{htmlFor:"site-type-search",className:"sr-only",children:(0,Mt.__)("Search","extendify")}),(0,qt.jsx)("input",{ref:d,id:"site-type-search",value:null!=x?x:"",onChange:function(e){return t=e.target.value,y(t),void O(t);var t},type:"text",className:"button-focus m-0 w-full bg-white p-3.5 py-2.5 text-sm border border-gray-900",placeholder:(0,Mt.__)("Search","extendify")}),(0,qt.jsx)("svg",{className:"pointer-events-none absolute top-2 right-2 hidden lg:block",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",role:"img","aria-hidden":"true",focusable:"false",children:(0,qt.jsx)("path",{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"})})]})}),(null==x?void 0:x.length)>1&&g===_&&(0,qt.jsx)("p",{className:"text-left",children:(0,Mt.__)("Nothing found...","extendify")}),(null==g?void 0:g.length)>0&&(0,qt.jsx)("div",{children:(E=g,(0,qt.jsx)(qt.Fragment,{children:(0,qt.jsx)("ul",{className:"mt-4 mb-0",children:E.map((function(e){var t,n,r,o=null!==(t=null==e?void 0:e.title)&&void 0!==t?t:e.slug,a=(null==s||null===(n=s.taxonomies)||void 0===n||null===(r=n.siteType)||void 0===r?void 0:r.slug)===e.slug;return(0,qt.jsx)("li",{className:"m-0 mb-1",children:(0,qt.jsx)("button",{type:"button",className:Ft()("m-0 w-full cursor-pointer bg-transparent pl-0 text-left text-sm font-normal hover:text-wp-theme-500",{"text-gray-800":!a}),onClick:function(){u(!1),i(e)},children:o})},e.slug+(null==e?void 0:e.title))}))})}))})]}),x||!c?null:(0,qt.jsx)("button",{type:"button",className:"w-full cursor-pointer bg-transparent p-4 py-2 text-left text-sm text-wp-theme-500 hover:text-wp-theme-500",onClick:function(){return k((function(e){return!e}))},children:j?(0,Mt.__)("Show all","extendify"):(0,Mt.__)("Close","extendify")})]})};function Hi(e){var t=e.taxType,n=e.taxonomies,r=e.taxLabel,o=se((function(e){return e.updateTaxonomies})),i=se((function(e){return e.searchParams}));return!(null!=n&&n.length)>0?null:(0,qt.jsx)(Lt.PanelBody,{title:_r(null!=r?r:t),className:"ext-type-control p-0",initialOpen:!0,children:(0,qt.jsx)(Lt.PanelRow,{children:(0,qt.jsx)("div",{className:"relative w-full overflow-hidden",children:(0,qt.jsx)("ul",{className:"m-0 w-full px-5 py-1",children:n.map((function(e){var n,r,a=(null==i||null===(n=i.taxonomies[t])||void 0===n?void 0:n.slug)===(null==e?void 0:e.slug);return(0,qt.jsx)("li",{className:"m-0 w-full",children:(0,qt.jsx)("button",{type:"button",className:"button-focus m-0 flex w-full cursor-pointer items-center justify-between bg-transparent px-0 py-2 text-left text-sm leading-none transition duration-200 hover:text-wp-theme-500",onClick:function(){return o((i=e,(r=t)in(n={})?Object.defineProperty(n,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[r]=i,n));var n,r,i},children:(0,qt.jsx)("span",{className:Ft()({"text-wp-theme-500":a}),children:null!==(r=null==e?void 0:e.title)&&void 0!==r?r:e.slug})})},e.slug)}))})})})})}var Wi=(0,o.memo)((function(){var e,t,n,r,o,i,a,s=Q((function(e){return e.taxonomies})),l=se((function(e){return e.searchParams})),c=G((function(e){return e.updatePreferredSiteType})),u=se((function(e){return e.updateTaxonomies})),d=G((function(e){return e.apiKey})),f="pattern"===l.type?"patternType":"layoutType",p=!(null!=l&&null!==(e=l.taxonomies[f])&&void 0!==e&&null!==(t=e.slug)&&void 0!==t&&t.length),h=w((function(e){return e.setOpen})),m=Rn("import-counter-type",["A","B"]);return(0,qt.jsxs)(qt.Fragment,{children:[(0,qt.jsx)("div",{className:"-ml-1.5 hidden px-5 text-extendify-black sm:flex",children:(0,qt.jsx)(Rt,{icon:fn,size:40})}),(0,qt.jsx)("div",{className:"flex md:hidden items-center justify-end -mt-5 mx-1",children:(0,qt.jsx)(Lt.Button,{onClick:function(){return h(!1)},icon:(0,qt.jsx)(Rt,{icon:Cn,size:24}),label:(0,Mt.__)("Close library","extendify")})}),(0,qt.jsx)("div",{className:"px-5 hidden md:block",children:(0,qt.jsxs)("button",{onClick:function(){return u((n={slug:"",title:"Featured"},(t=f)in(e={})?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e));var e,t,n},className:Ft()("button-focus m-0 flex w-full cursor-pointer items-center space-x-1 bg-transparent px-0 py-2 text-left text-sm leading-none transition duration-200 hover:text-wp-theme-500",{"text-wp-theme-500":p}),children:[(0,qt.jsx)(Rt,{icon:yn,size:24}),(0,qt.jsx)("span",{className:"text-sm",children:(0,Mt.__)("Featured","extendify")})]})}),(0,qt.jsx)("div",{className:"mx-6 px-5 pt-0.5 sm:mx-0 sm:mb-8 sm:mt-0",children:Object.keys(null!==(n=null==s?void 0:s.siteType)&&void 0!==n?n:{}).length>0&&(0,qt.jsx)(Vi,{value:null!==(r=null==l||null===(o=l.taxonomies)||void 0===o?void 0:o.siteType)&&void 0!==r?r:"",setValue:function(e){c(e),u({siteType:e})},terms:s.siteType})}),(0,qt.jsxs)("div",{className:"mt-px hidden flex-grow overflow-y-auto pb-36 pt-px sm:block space-y-6",children:[(0,qt.jsx)(Lt.Panel,{className:"bg-transparent",children:(0,qt.jsx)(Hi,{taxType:f,taxonomies:null===(i=s[f])||void 0===i?void 0:i.filter((function(e){return!(null!=e&&e.designType)}))})}),(0,qt.jsx)(Lt.Panel,{className:"bg-transparent",children:(0,qt.jsx)(Hi,{taxLabel:(0,Mt.__)("Design","extendify"),taxType:f,taxonomies:null===(a=s[f])||void 0===a?void 0:a.filter((function(e){return Boolean(null==e?void 0:e.designType)}))})})]}),!d.length&&(0,qt.jsxs)("div",{className:"px-5",children:["A"===m?(0,qt.jsx)($o,{}):null,"B"===m?(0,qt.jsx)(Ko,{}):null]})]})}));function qi(e){var t=e.children,n=w((function(e){return e.ready}));return(0,qt.jsxs)(qt.Fragment,{children:[(0,qt.jsx)("aside",{className:"relative flex-shrink-0 border-r border-extendify-transparent-black-100 bg-extendify-transparent-white py-0 backdrop-blur-xl backdrop-saturate-200 backdrop-filter sm:pt-5",children:(0,qt.jsx)("div",{className:"flex h-full flex-col py-6 sm:w-72 sm:space-y-6 sm:py-0",children:n?t[0]:null})}),(0,qt.jsx)("main",{id:"extendify-templates",className:"h-full w-full overflow-hidden bg-gray-50 pt-6 sm:pt-0",children:n?t[1]:null})]})}var $i=function(e){var t=e.className,n=se((function(e){return e.updateType})),r=w((function(e){var t;return null!==(t=null==e?void 0:e.currentType)&&void 0!==t?t:"pattern"}));return(0,qt.jsxs)("div",{className:t,children:[(0,qt.jsx)("h4",{className:"sr-only",children:(0,Mt.__)("Type select","extendify")}),(0,qt.jsx)("button",{type:"button",className:Ft()({"button-focus m-0 min-w-sm cursor-pointer rounded-tl-sm rounded-bl-sm border border-black py-2.5 px-4 text-xs leading-none":!0,"bg-gray-900 text-white":"pattern"===r,"bg-transparent text-black":"pattern"!==r}),onClick:function(){return n("pattern")},children:(0,qt.jsx)("span",{className:"",children:(0,Mt.__)("Patterns","extendify")})}),(0,qt.jsx)("button",{type:"button",className:Ft()({"outline-none button-focus m-0 -ml-px min-w-sm cursor-pointer items-center rounded-tr-sm rounded-br-sm border border-black py-2.5 px-4 text-xs leading-none":!0,"bg-gray-900 text-white":"template"===r,"bg-transparent text-black":"template"!==r}),onClick:function(){return n("template")},children:(0,qt.jsx)("span",{className:"",children:(0,Mt.__)("Page Layouts","extendify")})})]})},Gi=(0,o.memo)((function(e){var t=e.className,n=w((function(e){return e.setOpen})),r=w((function(e){return e.pushModal})),o=G((function(e){return e.apiKey.length}));return(0,qt.jsx)("div",{className:t,children:(0,qt.jsxs)("div",{className:"flex h-full items-center justify-between",children:[(0,qt.jsx)("div",{className:"flex-1"}),(0,qt.jsx)($i,{className:"flex flex-1 items-center justify-center"}),(0,qt.jsxs)("div",{className:"flex flex-1 items-center justify-end",children:[(0,qt.jsx)(Lt.Button,{onClick:function(){return r((0,qt.jsx)(Oo,{}))},icon:(0,qt.jsx)(Rt,{icon:Sn,size:24}),label:(0,Mt.__)("Login and settings area","extendify"),children:o?"":(0,Mt.__)("Sign in","extendify")}),(0,qt.jsx)(Lt.Button,{onClick:function(){return n(!1)},icon:(0,qt.jsx)(Rt,{icon:Cn,size:24}),label:(0,Mt.__)("Close library","extendify")})]})]})})}));function Ji(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ki(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ki(e,t)}(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.")}()}function Ki(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}var Xi=function(e){var t=e.setOpen,n=(0,o.useRef)(),r=se((function(e){return e.searchParams})),i=Ji((0,o.useState)(!1),2),a=i[0],s=i[1],l=se((function(e){return e.resetTemplates})),c=function(e){var t=Dn((0,o.useState)(!1),2),n=t[0],r=t[1],i=Bn();return(0,o.useEffect)((function(){var t,n=function(){r(!1),window.clearTimeout(t),t=window.setTimeout((function(){i.current&&r(!0)}),e)},o={passive:!0};return window.addEventListener("keydown",n,o),window.addEventListener("mousemove",n,o),window.addEventListener("touchmove",n,o),function(){window.removeEventListener("keydown",n),window.removeEventListener("mousemove",n),window.removeEventListener("touchmove",n)}}),[i,e]),n}(3e5),u=(0,o.useCallback)((function(){s(!1),l()}),[l]);return(0,o.useEffect)((function(){c&&s(!0)}),[c]),(0,o.useEffect)((function(){s(!1)}),[r]),(0,o.useEffect)((function(){n.current&&(n.current.scrollTop=0)}),[r]),(0,qt.jsx)("div",{className:"relative mx-auto flex h-full max-w-screen-4xl flex-col items-center",children:(0,qt.jsxs)("div",{className:"w-full flex-grow overflow-hidden",children:[(0,qt.jsx)("button",{onClick:function(){return document.getElementById("extendify-templates").querySelector("button").focus()},className:"extendify-skip-to-sr-link sr-only focus:not-sr-only focus:text-blue-500",children:(0,Mt.__)("Skip to templates","extendify")}),(0,qt.jsx)("div",{className:"relative mx-auto h-full sm:flex",children:(0,qt.jsxs)(qi,{children:[(0,qt.jsx)(Wi,{}),(0,qt.jsxs)("div",{className:"relative z-30 flex h-full flex-col",children:[(0,qt.jsx)(Gi,{className:"hidden h-20 w-full flex-shrink-0 px-6 sm:block md:px-8",hideLibrary:function(){return t(!1)}}),(0,qt.jsx)("div",{ref:n,className:"z-20 flex-grow overflow-y-auto px-6 md:px-8",children:a?(0,qt.jsx)(Zi,{callback:u}):(0,qt.jsx)(Vo,{})})]})]})})]})})},Zi=function(e){var t=e.callback;return(0,qt.jsxs)("div",{className:"flex h-full flex-col items-center justify-center",children:[(0,qt.jsx)("p",{className:"mb-6 text-sm font-normal text-extendify-gray",children:(0,Mt.__)("We've added new stuff while you were away.","extendify")}),(0,qt.jsx)(Lt.Button,{className:"components-button border-color-wp-theme-500 bg-wp-theme-500 text-white hover:bg-wp-theme-600",onClick:t,children:(0,Mt.__)("Reload")})]})};function Yi(){var e=(0,o.useRef)(null),t=w((function(e){return e.open})),n=w((function(e){return e.setOpen})),r=function(){var e=Tn((0,o.useState)(null),2),t=e[0],n=e[1],r=w((function(e){return e.open})),i=w((function(e){return e.pushModal})),a=w((function(e){return e.removeAllModals}));return(0,o.useEffect)((function(){return w.subscribe((function(e){return e.modals}),(function(e){return n((null==e?void 0:e.length)>0?e[0]:null)}))}),[]),(0,o.useEffect)((function(){var e;if(r){var t={standalone:Pn},n=t[null!==(e=Object.keys(t).find((function(e){return"standalone"===e?!window.extendifyData.standalone&&!G.getState().modalNoticesDismissedAt[e]:!G.getState().modalNoticesDismissedAt[e]})))&&void 0!==e?e:null];n&&i((0,qt.jsx)(n,{}))}else a()}),[r,i,a]),t}(),i=w((function(e){return e.ready})),a=Rn("notice-position",["A","B"]);return(0,qt.jsx)(Ge,{appear:!0,show:t,as:o.Fragment,children:(0,qt.jsx)(It,{as:"div",static:!0,className:"extendify",initialFocus:e,onClose:function(){return n(!1)},children:(0,qt.jsx)("div",{className:"fixed inset-0 z-high m-auto h-screen w-screen overflow-y-auto sm:h-auto sm:w-auto",children:(0,qt.jsxs)("div",{className:"flex min-h-screen items-end justify-center px-4 pt-4 pb-20 text-center sm:block sm:p-0",children:[(0,qt.jsx)(Ge.Child,{as:o.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",children:(0,qt.jsx)(It.Overlay,{className:"fixed inset-0 bg-black bg-opacity-40 transition-opacity"})}),(0,qt.jsx)(Ge.Child,{as:o.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-5",enterTo:"opacity-100 translate-y-0",children:(0,qt.jsxs)("div",{ref:e,tabIndex:"0",onClick:function(e){return e.target===e.currentTarget&&n(!1)},className:"fixed inset-0 transform p-2 transition-all lg:absolute lg:overflow-hidden lg:p-16",children:["B"===a&&(0,qt.jsx)(ln,{className:"-mt-6"}),(0,qt.jsx)(Xi,{}),i?(0,qt.jsxs)(qt.Fragment,{children:["A"===a&&(0,qt.jsx)(ln,{}),r]}):null]})})]})})})})}const Qi=wp.compose,ea=wp.hooks,ta=JSON.parse('{"t":["ext-absolute","ext-relative","ext-top-base","ext-top-lg","ext--top-base","ext--top-lg","ext-right-base","ext-right-lg","ext--right-base","ext--right-lg","ext-bottom-base","ext-bottom-lg","ext--bottom-base","ext--bottom-lg","ext-left-base","ext-left-lg","ext--left-base","ext--left-lg","ext-order-1","ext-order-2","ext-col-auto","ext-col-span-1","ext-col-span-2","ext-col-span-3","ext-col-span-4","ext-col-span-5","ext-col-span-6","ext-col-span-7","ext-col-span-8","ext-col-span-9","ext-col-span-10","ext-col-span-11","ext-col-span-12","ext-col-span-full","ext-col-start-1","ext-col-start-2","ext-col-start-3","ext-col-start-4","ext-col-start-5","ext-col-start-6","ext-col-start-7","ext-col-start-8","ext-col-start-9","ext-col-start-10","ext-col-start-11","ext-col-start-12","ext-col-start-13","ext-col-start-auto","ext-col-end-1","ext-col-end-2","ext-col-end-3","ext-col-end-4","ext-col-end-5","ext-col-end-6","ext-col-end-7","ext-col-end-8","ext-col-end-9","ext-col-end-10","ext-col-end-11","ext-col-end-12","ext-col-end-13","ext-col-end-auto","ext-row-auto","ext-row-span-1","ext-row-span-2","ext-row-span-3","ext-row-span-4","ext-row-span-5","ext-row-span-6","ext-row-span-full","ext-row-start-1","ext-row-start-2","ext-row-start-3","ext-row-start-4","ext-row-start-5","ext-row-start-6","ext-row-start-7","ext-row-start-auto","ext-row-end-1","ext-row-end-2","ext-row-end-3","ext-row-end-4","ext-row-end-5","ext-row-end-6","ext-row-end-7","ext-row-end-auto","ext-m-0","ext-m-auto","ext-m-base","ext-m-lg","ext--m-base","ext--m-lg","ext-mx-0","ext-mx-auto","ext-mx-base","ext-mx-lg","ext--mx-base","ext--mx-lg","ext-my-0","ext-my-auto","ext-my-base","ext-my-lg","ext--my-base","ext--my-lg","ext-mt-0","ext-mt-auto","ext-mt-base","ext-mt-lg","ext--mt-base","ext--mt-lg","ext-mr-0","ext-mr-auto","ext-mr-base","ext-mr-lg","ext--mr-base","ext--mr-lg","ext-mb-0","ext-mb-auto","ext-mb-base","ext-mb-lg","ext--mb-base","ext--mb-lg","ext-ml-0","ext-ml-auto","ext-ml-base","ext-ml-lg","ext--ml-base","ext--ml-lg","ext-block","ext-inline-block","ext-inline","ext-flex","ext-inline-flex","ext-grid","ext-inline-grid","ext-hidden","ext-w-auto","ext-w-full","ext-max-w-full","ext-flex-1","ext-flex-auto","ext-flex-initial","ext-flex-none","ext-flex-shrink-0","ext-flex-shrink","ext-flex-grow-0","ext-flex-grow","ext-list-none","ext-grid-cols-1","ext-grid-cols-2","ext-grid-cols-3","ext-grid-cols-4","ext-grid-cols-5","ext-grid-cols-6","ext-grid-cols-7","ext-grid-cols-8","ext-grid-cols-9","ext-grid-cols-10","ext-grid-cols-11","ext-grid-cols-12","ext-grid-cols-none","ext-grid-rows-1","ext-grid-rows-2","ext-grid-rows-3","ext-grid-rows-4","ext-grid-rows-5","ext-grid-rows-6","ext-grid-rows-none","ext-flex-row","ext-flex-row-reverse","ext-flex-col","ext-flex-col-reverse","ext-flex-wrap","ext-flex-wrap-reverse","ext-flex-nowrap","ext-items-start","ext-items-end","ext-items-center","ext-items-baseline","ext-items-stretch","ext-justify-start","ext-justify-end","ext-justify-center","ext-justify-between","ext-justify-around","ext-justify-evenly","ext-justify-items-start","ext-justify-items-end","ext-justify-items-center","ext-justify-items-stretch","ext-gap-0","ext-gap-base","ext-gap-lg","ext-gap-x-0","ext-gap-x-base","ext-gap-x-lg","ext-gap-y-0","ext-gap-y-base","ext-gap-y-lg","ext-justify-self-auto","ext-justify-self-start","ext-justify-self-end","ext-justify-self-center","ext-justify-self-stretch","ext-rounded-none","ext-rounded-full","ext-rounded-t-none","ext-rounded-t-full","ext-rounded-r-none","ext-rounded-r-full","ext-rounded-b-none","ext-rounded-b-full","ext-rounded-l-none","ext-rounded-l-full","ext-rounded-tl-none","ext-rounded-tl-full","ext-rounded-tr-none","ext-rounded-tr-full","ext-rounded-br-none","ext-rounded-br-full","ext-rounded-bl-none","ext-rounded-bl-full","ext-border-0","ext-border-t-0","ext-border-r-0","ext-border-b-0","ext-border-l-0","ext-p-0","ext-p-base","ext-p-lg","ext-px-0","ext-px-base","ext-px-lg","ext-py-0","ext-py-base","ext-py-lg","ext-pt-0","ext-pt-base","ext-pt-lg","ext-pr-0","ext-pr-base","ext-pr-lg","ext-pb-0","ext-pb-base","ext-pb-lg","ext-pl-0","ext-pl-base","ext-pl-lg","ext-text-left","ext-text-center","ext-text-right","ext-leading-none","ext-leading-tight","ext-leading-snug","ext-leading-normal","ext-leading-relaxed","ext-leading-loose","clip-path--rhombus","clip-path--diamond","clip-path--rhombus-alt","wp-block-columns[class*=\\"fullwidth-cols\\"]\\n","tablet\\\\:fullwidth-cols","desktop\\\\:fullwidth-cols","direction-rtl","direction-ltr","bring-to-front","text-stroke","text-stroke--primary","text-stroke--secondary","editor\\\\:no-caption","editor\\\\:no-inserter","editor\\\\:no-resize","editor\\\\:pointer-events-none","tablet\\\\:ext-absolute","tablet\\\\:ext-relative","tablet\\\\:ext-top-base","tablet\\\\:ext-top-lg","tablet\\\\:ext--top-base","tablet\\\\:ext--top-lg","tablet\\\\:ext-right-base","tablet\\\\:ext-right-lg","tablet\\\\:ext--right-base","tablet\\\\:ext--right-lg","tablet\\\\:ext-bottom-base","tablet\\\\:ext-bottom-lg","tablet\\\\:ext--bottom-base","tablet\\\\:ext--bottom-lg","tablet\\\\:ext-left-base","tablet\\\\:ext-left-lg","tablet\\\\:ext--left-base","tablet\\\\:ext--left-lg","tablet\\\\:ext-order-1","tablet\\\\:ext-order-2","tablet\\\\:ext-m-0","tablet\\\\:ext-m-auto","tablet\\\\:ext-m-base","tablet\\\\:ext-m-lg","tablet\\\\:ext--m-base","tablet\\\\:ext--m-lg","tablet\\\\:ext-mx-0","tablet\\\\:ext-mx-auto","tablet\\\\:ext-mx-base","tablet\\\\:ext-mx-lg","tablet\\\\:ext--mx-base","tablet\\\\:ext--mx-lg","tablet\\\\:ext-my-0","tablet\\\\:ext-my-auto","tablet\\\\:ext-my-base","tablet\\\\:ext-my-lg","tablet\\\\:ext--my-base","tablet\\\\:ext--my-lg","tablet\\\\:ext-mt-0","tablet\\\\:ext-mt-auto","tablet\\\\:ext-mt-base","tablet\\\\:ext-mt-lg","tablet\\\\:ext--mt-base","tablet\\\\:ext--mt-lg","tablet\\\\:ext-mr-0","tablet\\\\:ext-mr-auto","tablet\\\\:ext-mr-base","tablet\\\\:ext-mr-lg","tablet\\\\:ext--mr-base","tablet\\\\:ext--mr-lg","tablet\\\\:ext-mb-0","tablet\\\\:ext-mb-auto","tablet\\\\:ext-mb-base","tablet\\\\:ext-mb-lg","tablet\\\\:ext--mb-base","tablet\\\\:ext--mb-lg","tablet\\\\:ext-ml-0","tablet\\\\:ext-ml-auto","tablet\\\\:ext-ml-base","tablet\\\\:ext-ml-lg","tablet\\\\:ext--ml-base","tablet\\\\:ext--ml-lg","tablet\\\\:ext-block","tablet\\\\:ext-inline-block","tablet\\\\:ext-inline","tablet\\\\:ext-flex","tablet\\\\:ext-inline-flex","tablet\\\\:ext-grid","tablet\\\\:ext-inline-grid","tablet\\\\:ext-hidden","tablet\\\\:ext-w-auto","tablet\\\\:ext-w-full","tablet\\\\:ext-max-w-full","tablet\\\\:ext-flex-1","tablet\\\\:ext-flex-auto","tablet\\\\:ext-flex-initial","tablet\\\\:ext-flex-none","tablet\\\\:ext-flex-shrink-0","tablet\\\\:ext-flex-shrink","tablet\\\\:ext-flex-grow-0","tablet\\\\:ext-flex-grow","tablet\\\\:ext-list-none","tablet\\\\:ext-grid-cols-1","tablet\\\\:ext-grid-cols-2","tablet\\\\:ext-grid-cols-3","tablet\\\\:ext-grid-cols-4","tablet\\\\:ext-grid-cols-5","tablet\\\\:ext-grid-cols-6","tablet\\\\:ext-grid-cols-7","tablet\\\\:ext-grid-cols-8","tablet\\\\:ext-grid-cols-9","tablet\\\\:ext-grid-cols-10","tablet\\\\:ext-grid-cols-11","tablet\\\\:ext-grid-cols-12","tablet\\\\:ext-grid-cols-none","tablet\\\\:ext-flex-row","tablet\\\\:ext-flex-row-reverse","tablet\\\\:ext-flex-col","tablet\\\\:ext-flex-col-reverse","tablet\\\\:ext-flex-wrap","tablet\\\\:ext-flex-wrap-reverse","tablet\\\\:ext-flex-nowrap","tablet\\\\:ext-items-start","tablet\\\\:ext-items-end","tablet\\\\:ext-items-center","tablet\\\\:ext-items-baseline","tablet\\\\:ext-items-stretch","tablet\\\\:ext-justify-start","tablet\\\\:ext-justify-end","tablet\\\\:ext-justify-center","tablet\\\\:ext-justify-between","tablet\\\\:ext-justify-around","tablet\\\\:ext-justify-evenly","tablet\\\\:ext-justify-items-start","tablet\\\\:ext-justify-items-end","tablet\\\\:ext-justify-items-center","tablet\\\\:ext-justify-items-stretch","tablet\\\\:ext-justify-self-auto","tablet\\\\:ext-justify-self-start","tablet\\\\:ext-justify-self-end","tablet\\\\:ext-justify-self-center","tablet\\\\:ext-justify-self-stretch","tablet\\\\:ext-p-0","tablet\\\\:ext-p-base","tablet\\\\:ext-p-lg","tablet\\\\:ext-px-0","tablet\\\\:ext-px-base","tablet\\\\:ext-px-lg","tablet\\\\:ext-py-0","tablet\\\\:ext-py-base","tablet\\\\:ext-py-lg","tablet\\\\:ext-pt-0","tablet\\\\:ext-pt-base","tablet\\\\:ext-pt-lg","tablet\\\\:ext-pr-0","tablet\\\\:ext-pr-base","tablet\\\\:ext-pr-lg","tablet\\\\:ext-pb-0","tablet\\\\:ext-pb-base","tablet\\\\:ext-pb-lg","tablet\\\\:ext-pl-0","tablet\\\\:ext-pl-base","tablet\\\\:ext-pl-lg","tablet\\\\:ext-text-left","tablet\\\\:ext-text-center","tablet\\\\:ext-text-right","desktop\\\\:ext-absolute","desktop\\\\:ext-relative","desktop\\\\:ext-top-base","desktop\\\\:ext-top-lg","desktop\\\\:ext--top-base","desktop\\\\:ext--top-lg","desktop\\\\:ext-right-base","desktop\\\\:ext-right-lg","desktop\\\\:ext--right-base","desktop\\\\:ext--right-lg","desktop\\\\:ext-bottom-base","desktop\\\\:ext-bottom-lg","desktop\\\\:ext--bottom-base","desktop\\\\:ext--bottom-lg","desktop\\\\:ext-left-base","desktop\\\\:ext-left-lg","desktop\\\\:ext--left-base","desktop\\\\:ext--left-lg","desktop\\\\:ext-order-1","desktop\\\\:ext-order-2","desktop\\\\:ext-m-0","desktop\\\\:ext-m-auto","desktop\\\\:ext-m-base","desktop\\\\:ext-m-lg","desktop\\\\:ext--m-base","desktop\\\\:ext--m-lg","desktop\\\\:ext-mx-0","desktop\\\\:ext-mx-auto","desktop\\\\:ext-mx-base","desktop\\\\:ext-mx-lg","desktop\\\\:ext--mx-base","desktop\\\\:ext--mx-lg","desktop\\\\:ext-my-0","desktop\\\\:ext-my-auto","desktop\\\\:ext-my-base","desktop\\\\:ext-my-lg","desktop\\\\:ext--my-base","desktop\\\\:ext--my-lg","desktop\\\\:ext-mt-0","desktop\\\\:ext-mt-auto","desktop\\\\:ext-mt-base","desktop\\\\:ext-mt-lg","desktop\\\\:ext--mt-base","desktop\\\\:ext--mt-lg","desktop\\\\:ext-mr-0","desktop\\\\:ext-mr-auto","desktop\\\\:ext-mr-base","desktop\\\\:ext-mr-lg","desktop\\\\:ext--mr-base","desktop\\\\:ext--mr-lg","desktop\\\\:ext-mb-0","desktop\\\\:ext-mb-auto","desktop\\\\:ext-mb-base","desktop\\\\:ext-mb-lg","desktop\\\\:ext--mb-base","desktop\\\\:ext--mb-lg","desktop\\\\:ext-ml-0","desktop\\\\:ext-ml-auto","desktop\\\\:ext-ml-base","desktop\\\\:ext-ml-lg","desktop\\\\:ext--ml-base","desktop\\\\:ext--ml-lg","desktop\\\\:ext-block","desktop\\\\:ext-inline-block","desktop\\\\:ext-inline","desktop\\\\:ext-flex","desktop\\\\:ext-inline-flex","desktop\\\\:ext-grid","desktop\\\\:ext-inline-grid","desktop\\\\:ext-hidden","desktop\\\\:ext-w-auto","desktop\\\\:ext-w-full","desktop\\\\:ext-max-w-full","desktop\\\\:ext-flex-1","desktop\\\\:ext-flex-auto","desktop\\\\:ext-flex-initial","desktop\\\\:ext-flex-none","desktop\\\\:ext-flex-shrink-0","desktop\\\\:ext-flex-shrink","desktop\\\\:ext-flex-grow-0","desktop\\\\:ext-flex-grow","desktop\\\\:ext-list-none","desktop\\\\:ext-grid-cols-1","desktop\\\\:ext-grid-cols-2","desktop\\\\:ext-grid-cols-3","desktop\\\\:ext-grid-cols-4","desktop\\\\:ext-grid-cols-5","desktop\\\\:ext-grid-cols-6","desktop\\\\:ext-grid-cols-7","desktop\\\\:ext-grid-cols-8","desktop\\\\:ext-grid-cols-9","desktop\\\\:ext-grid-cols-10","desktop\\\\:ext-grid-cols-11","desktop\\\\:ext-grid-cols-12","desktop\\\\:ext-grid-cols-none","desktop\\\\:ext-flex-row","desktop\\\\:ext-flex-row-reverse","desktop\\\\:ext-flex-col","desktop\\\\:ext-flex-col-reverse","desktop\\\\:ext-flex-wrap","desktop\\\\:ext-flex-wrap-reverse","desktop\\\\:ext-flex-nowrap","desktop\\\\:ext-items-start","desktop\\\\:ext-items-end","desktop\\\\:ext-items-center","desktop\\\\:ext-items-baseline","desktop\\\\:ext-items-stretch","desktop\\\\:ext-justify-start","desktop\\\\:ext-justify-end","desktop\\\\:ext-justify-center","desktop\\\\:ext-justify-between","desktop\\\\:ext-justify-around","desktop\\\\:ext-justify-evenly","desktop\\\\:ext-justify-items-start","desktop\\\\:ext-justify-items-end","desktop\\\\:ext-justify-items-center","desktop\\\\:ext-justify-items-stretch","desktop\\\\:ext-justify-self-auto","desktop\\\\:ext-justify-self-start","desktop\\\\:ext-justify-self-end","desktop\\\\:ext-justify-self-center","desktop\\\\:ext-justify-self-stretch","desktop\\\\:ext-p-0","desktop\\\\:ext-p-base","desktop\\\\:ext-p-lg","desktop\\\\:ext-px-0","desktop\\\\:ext-px-base","desktop\\\\:ext-px-lg","desktop\\\\:ext-py-0","desktop\\\\:ext-py-base","desktop\\\\:ext-py-lg","desktop\\\\:ext-pt-0","desktop\\\\:ext-pt-base","desktop\\\\:ext-pt-lg","desktop\\\\:ext-pr-0","desktop\\\\:ext-pr-base","desktop\\\\:ext-pr-lg","desktop\\\\:ext-pb-0","desktop\\\\:ext-pb-base","desktop\\\\:ext-pb-lg","desktop\\\\:ext-pl-0","desktop\\\\:ext-pl-base","desktop\\\\:ext-pl-lg","desktop\\\\:ext-text-left","desktop\\\\:ext-text-center","desktop\\\\:ext-text-right"]}');function na(e){return function(e){if(Array.isArray(e))return ra(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ra(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ra(e,t)}(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 ra(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 oa(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 ia(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oa(Object(n),!0).forEach((function(t){aa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function aa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sa=(0,Qi.createHigherOrderComponent)((function(e){return function(t){var n,r,o=null!==(n=null==t||null===(r=t.attributes)||void 0===r?void 0:r.extUtilities)&&void 0!==n?n:[],i=ta.t.map((function(e){return e.replace(".","").replace(new RegExp("\\\\","g"),"")}));return(0,qt.jsxs)(qt.Fragment,{children:[(0,qt.jsx)(e,ia({},t)),o&&(0,qt.jsx)(pr.InspectorAdvancedControls,{children:(0,qt.jsx)(Lt.FormTokenField,{label:(0,Mt.__)("Extendify Utilities","extendify"),tokenizeOnSpace:!0,value:o,suggestions:i,onChange:function(e){t.setAttributes({extUtilities:e})}})})]})}}),"utilityClassEdit");function la(e,t,n){var r,o,i,a=null!==(r=null==e?void 0:e.className)&&void 0!==r?r:[],s=null!==(o=null==n?void 0:n.extUtilities)&&void 0!==o?o:[],l=null!==(i=null==n?void 0:n.className)&&void 0!==i?i:[];if(!s||!Object.keys(s).length)return e;var c=function(e){switch(Object.prototype.toString.call(e)){case"[object String]":return e.split(" ");case"[object Array]":return e;default:return[]}},u=new Set([].concat(na(c(l)),na(c(a)),na(c(s))));return Object.assign({},e,{className:na(u).join(" ")})}function ca(e){var t=e.show,n=void 0!==t&&t,r=w((function(e){return e.open})),i=w((function(e){return e.setReady})),a=w((function(e){return e.setOpen})),s=(0,o.useCallback)((function(){return a(!0)}),[a]),l=(0,o.useCallback)((function(){return a(!1)}),[a]),c=se((function(e){return e.initTemplateData})),u=Q((function(e){return e.fetchTaxonomies})),d=G((function(e){return e._hasHydrated})),f=se((function(e){return Object.keys(e.taxonomyDefaultState).length>0}));return(0,o.useEffect)((function(){r&&u().then((function(){se.getState().setupDefaultTaxonomies()}))}),[r,u]),(0,o.useEffect)((function(){d&&f&&(c(),i(!0))}),[d,f,c,i]),(0,o.useEffect)((function(){var e=new URLSearchParams(window.location.search);(n||e.has("ext-open"))&&a(!0)}),[n,a]),(0,o.useEffect)((function(){le().then((function(e){w.setState({metaData:e})}))}),[]),(0,o.useEffect)((function(){return window.addEventListener("extendify::open-library",s),window.addEventListener("extendify::close-library",l),function(){window.removeEventListener("extendify::open-library",s),window.removeEventListener("extendify::close-library",l)}}),[l,s]),(0,qt.jsx)(Yi,{})}(0,ea.addFilter)("blocks.registerBlockType","extendify/utilities/attributes",(function(e){return ia(ia({},e),{},{attributes:ia(ia({},e.attributes),{},{extUtilities:{type:"array",default:[]}})})})),(0,ea.addFilter)("blocks.registerBlockType","extendify/utilities/addEditProps",(function(e){var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),la(r,e,n)},e})),(0,ea.addFilter)("editor.BlockEdit","extendify/utilities/advancedClassControls",sa),(0,ea.addFilter)("blocks.getSaveContent.extraProps","extendify/utilities/extra-props",la),(0,r.registerBlockCollection)("extendify",{title:"Extendify",icon:(0,qt.jsx)(Lt.Icon,{icon:dn})});const ua=(0,o.createElement)(Ht,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)(Ut,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8h-1.5zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zM4.5 4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1V12l-2.3-1.7c-.3-.2-.6-.2-.9 0l-2.9 2.1L8 11.3c-.2-.1-.5-.1-.7 0l-2.9 1.5V4.6zm0 11.8v-1.8l3.2-1.7 2.4 1.2c.2.1.5.1.8-.1l2.8-2 2.8 2v2.5c0 .1-.1.1-.1.1H4.6c0-.1-.1-.2-.1-.2z"})),da=(0,o.createElement)(Ht,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)(Ut,{d:"M10 4.5a1 1 0 11-2 0 1 1 0 012 0zm1.5 0a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0zm2.25 7.5v-1A2.75 2.75 0 0011 8.25H7A2.75 2.75 0 004.25 11v1h1.5v-1c0-.69.56-1.25 1.25-1.25h4c.69 0 1.25.56 1.25 1.25v1h1.5zM4 20h9v-1.5H4V20zm16-4H4v-1.5h16V16z",fillRule:"evenodd",clipRule:"evenodd"})),fa=(0,o.createElement)(Ht,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(Ut,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h6.2v8.9l2.5-3.1 2.5 3.1V4.5h2.2c.4 0 .8.4.8.8v13.4z"})),pa=(0,o.createElement)(Ht,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(Ut,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12-9.8c.4 0 .8-.3.9-.7l1.1-3h3.6l.5 1.7h1.9L13 9h-2.2l-3.4 9.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12H20V6c0-1.1-.9-2-2-2zm-6 7l1.4 3.9h-2.7L12 11z"})),ha=(0,o.createElement)(Ht,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(Ut,{d:"M12 9c-.8 0-1.5.7-1.5 1.5S11.2 12 12 12s1.5-.7 1.5-1.5S12.8 9 12 9zm0-5c-3.6 0-6.5 2.8-6.5 6.2 0 .8.3 1.8.9 3.1.5 1.1 1.2 2.3 2 3.6.7 1 3 3.8 3.2 3.9l.4.5.4-.5c.2-.2 2.6-2.9 3.2-3.9.8-1.2 1.5-2.5 2-3.6.6-1.3.9-2.3.9-3.1C18.5 6.8 15.6 4 12 4zm4.3 8.7c-.5 1-1.1 2.2-1.9 3.4-.5.7-1.7 2.2-2.4 3-.7-.8-1.9-2.3-2.4-3-.8-1.2-1.4-2.3-1.9-3.3-.6-1.4-.7-2.2-.7-2.5 0-2.6 2.2-4.7 5-4.7s5 2.1 5 4.7c0 .2-.1 1-.7 2.4z"})),ma=(0,o.createElement)(Ht,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)(Ut,{d:"M19 6.5H5c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v7zM8 12.8h8v-1.5H8v1.5z"})),xa=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"extendify/library","title":"Pattern Library","description":"Add block patterns and full page layouts with the Extendify Library.","keywords":["template","layouts"],"textdomain":"extendify","attributes":{"preview":{"type":"string"},"search":{"type":"string"}}}');(0,r.registerBlockType)(xa,{icon:dn,category:"extendify",example:{attributes:{preview:window.extendifyData.asset_path+"/preview.png"}},variations:[{name:"gallery",icon:(0,qt.jsx)(Rt,{icon:ua}),category:"extendify",attributes:{search:"gallery"},title:(0,Mt.__)("Gallery Patterns","extendify"),description:(0,Mt.__)("Add gallery patterns and layouts.","extendify"),keywords:[(0,Mt.__)("slideshow","extendify"),(0,Mt.__)("images","extendify")]},{name:"team",icon:(0,qt.jsx)(Rt,{icon:da}),category:"extendify",attributes:{search:"team"},title:(0,Mt.__)("Team Patterns","extendify"),description:(0,Mt.__)("Add team patterns and layouts.","extendify"),keywords:[(0,Mt._x)("crew","As in team","extendify"),(0,Mt.__)("colleagues","extendify"),(0,Mt.__)("members","extendify")]},{name:"hero",icon:(0,qt.jsx)(Rt,{icon:fa}),category:"extendify",attributes:{search:"hero"},title:(0,Mt._x)("Hero Patterns","Hero being a hero/top section of a webpage","extendify"),description:(0,Mt.__)("Add hero patterns and layouts.","extendify"),keywords:[(0,Mt.__)("heading","extendify"),(0,Mt.__)("headline","extendify")]},{name:"text",icon:(0,qt.jsx)(Rt,{icon:pa}),category:"extendify",attributes:{search:"text"},title:(0,Mt._x)("Text Patterns","Relating to patterns that feature text only","extendify"),description:(0,Mt.__)("Add text patterns and layouts.","extendify"),keywords:[(0,Mt.__)("simple","extendify"),(0,Mt.__)("paragraph","extendify")]},{name:"about",icon:(0,qt.jsx)(Rt,{icon:ha}),category:"extendify",attributes:{search:"about"},title:(0,Mt._x)("About Page Patterns","Add patterns relating to an about us page","extendify"),description:(0,Mt.__)("About patterns and layouts.","extendify"),keywords:[(0,Mt.__)("who we are","extendify"),(0,Mt.__)("team","extendify")]},{name:"call-to-action",icon:(0,qt.jsx)(Rt,{icon:ma}),category:"extendify",attributes:{search:"call-to-action"},title:(0,Mt.__)("Call to Action Patterns","extendify"),description:(0,Mt.__)("Add call to action patterns and layouts.","extendify"),keywords:[(0,Mt._x)("cta","Initialism for call to action","extendify"),(0,Mt.__)("callout","extendify"),(0,Mt.__)("buttons","extendify")]}],edit:function(e){var t=e.clientId,n=e.attributes,r=(0,Er.useDispatch)("core/block-editor").removeBlock;return(0,o.useEffect)((function(){n.preview||(n.search&&ya(n.search),Sr("library-block","open"),r(t))}),[t,n,r]),(0,qt.jsx)("img",{style:{display:"block",maxWidth:"100%"},src:n.preview,alt:(0,Mt.sprintf)((0,Mt.__)("%s Pattern Library","extendify"),"Extendify")})}});var ya=function(e){var t=new URLSearchParams(window.location.search);t.append("ext-patternType",e),window.history.replaceState(null,null,window.location.pathname+"?"+t.toString())};const va=wp.editPost,ga=wp.plugins;var ba=function(){return J.get("site-settings")},wa=function(e){var t=new FormData;return t.append("data",JSON.stringify(e)),J.post("site-settings",t,{headers:{"Content-Type":"multipart/form-data"}})};function ja(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function ka(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ja(i,r,o,a,s,"next",e)}function s(e){ja(i,r,o,a,s,"throw",e)}a(void 0)}))}}var Sa={getItem:function(){var e=ka(k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ba();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),setItem:function(){var e=ka(k().mark((function e(t,n){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,wa(n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),removeItem:function(){}},Ca=c(v((function(){return{enabled:!0}}),{name:"extendify-sitesettings",getStorage:function(){return Sa}}));function _a(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Oa(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){_a(i,r,o,a,s,"next",e)}function s(e){_a(i,r,o,a,s,"throw",e)}a(void 0)}))}}function Ea(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Na(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Na(e,t)}(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.")}()}function Na(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}const Aa=function(){var e=(0,Er.useSelect)((function(e){return e("core").canUser("create","users")})),t=Ea((0,o.useState)(G.getState().enabled),2),n=t[0],r=t[1],i=Ea((0,o.useState)(Ca.getState().enabled),2),a=i[0],s=i[1];function l(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=document.getElementById("extendify-templates-inserter-btn");t&&(e?t.classList.add("hidden"):t.classList.remove("hidden"))}function c(e){return u.apply(this,arguments)}function u(){return(u=Oa(k().mark((function e(t){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,G.setState({enabled:t});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function d(e){return f.apply(this,arguments)}function f(){return(f=Oa(k().mark((function e(t){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ca.setState({enabled:t});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e,t){return h.apply(this,arguments)}function h(){return h=Oa(k().mark((function e(t,n){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("global"!==n){e.next=5;break}return e.next=3,d(t);case 3:e.next=7;break;case 5:return e.next=7,c(t);case 7:case"end":return e.stop()}}),e)}))),h.apply(this,arguments)}function m(e){"global"===e?s((function(t){return p(!t,e),!t})):r((function(t){return l(!t),p(!t,e),!t}))}return(0,o.useEffect)((function(){l(!n)}),[n]),(0,qt.jsxs)(Lt.Modal,{title:(0,Mt.__)("Extendify Settings","extendify"),onRequestClose:function(){var e=document.getElementById("extendify-util");(0,o.unmountComponentAtNode)(e)},children:[(0,qt.jsx)(Lt.ToggleControl,{label:e?(0,Mt.__)("Enable the library for myself","extendify"):(0,Mt.__)("Enable the library","extendify"),help:(0,Mt.__)("Publish with hundreds of patterns & page layouts","extendify"),checked:n,onChange:function(){return m("user")}}),e&&(0,qt.jsxs)(qt.Fragment,{children:[(0,qt.jsx)("br",{}),(0,qt.jsx)(Lt.ToggleControl,{label:(0,Mt.__)("Allow all users to publish with the library"),help:(0,Mt.__)("Everyone publishes with patterns & page layouts","extendify"),checked:a,onChange:function(){return m("global")}})]})]})};var Pa=function(e){var t=e.anchorRef,n=e.onPressX,r=e.onClick,o=e.onClickOutside;return t.current?(0,qt.jsx)(Lt.Popover,{anchorRef:t.current,shouldAnchorIncludePadding:!0,className:"extendify-tooltip-default",focusOnMount:!1,onFocusOutside:o,onClick:r,position:"bottom center",noArrow:!1,children:(0,qt.jsxs)(qt.Fragment,{children:[(0,qt.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"0.5rem"},children:[(0,qt.jsx)("span",{style:{textTransform:"uppercase",color:"#8b8b8b"},children:(0,Mt.__)("Monthly Imports","extendify")}),(0,qt.jsx)(Lt.Button,{style:{color:"white",position:"relative",right:"-5px",padding:"0",minWidth:"0",height:"20px",width:"20px"},onClick:function(e){e.stopPropagation(),n()},icon:(0,qt.jsx)(Rt,{icon:Cn,size:12}),showTooltip:!1,label:(0,Mt.__)("Close callout","extendify")})]}),(0,qt.jsx)("div",{dangerouslySetInnerHTML:{__html:cn((0,Mt.sprintf)((0,Mt.__)("%1$sGood news!%2$s We've added more imports to your library. Enjoy!","extendify"),"<strong>","</strong>"))}})]})}):null};function Ta(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Ia(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Ta(i,r,o,a,s,"next",e)}function s(e){Ta(i,r,o,a,s,"throw",e)}a(void 0)}))}}function La(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ma(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ma(e,t)}(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.")}()}function Ma(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}var Ra,Da,Fa,Ba,za,Ua,Va,Ha,Wa,qa,$a=function(){var e=La((0,o.useState)(!1),2),t=e[0],n=e[1],r=(0,o.useRef)(!1),i=(0,o.useRef)(),a=G((function(e){return e.apiKey.length})),s=G((function(e){return e.imports>0})),l=w((function(e){return e.open})),c=G((function(e){return 0===e.allowedImports})),u=G((function(e){return e.uuid})),d=Rn("main-button-text",["A","B","C"],!0),f=La((0,o.useState)(),2),p=f[0],h=f[1],m=function(){var e=Ia(k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ce("mb-tooltip-closed");case 2:n(!1),G.setState({allowedImports:-1});case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,o.useEffect)((function(){if(u){h(function(){switch(d){case"A":return(0,Mt.__)("Library","extendify");case"B":return(0,Mt.__)("Add section","extendify");case"C":return(0,Mt.__)("Add template","extendify")}}())}}),[d,u]),(0,o.useEffect)((function(){l&&(n(!1),r.current=!0),!a&&c&&s&&(r.current||n(!0),r.current=!0)}),[a,c,s,l]),(0,qt.jsxs)(qt.Fragment,{children:[(0,qt.jsx)(Ga,{buttonRef:i,text:p}),t&&(0,qt.jsx)(Pa,{anchorRef:i,onClick:Ia(k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ce("mb-tooltip-pressed");case 2:kr("main-button-tooltip");case 3:case"end":return e.stop()}}),e)}))),onPressX:m})]})},Ga=function(e){var t=e.buttonRef,n=e.text;return(0,qt.jsx)("div",{className:"extendify",children:(0,qt.jsx)(Lt.Button,{isPrimary:!0,ref:t,className:"h-8 xs:h-9 px-1 min-w-0 xs:pl-2 xs:pr-3 sm:ml-2",onClick:function(){return kr("main-button")},id:"extendify-templates-inserter-btn",icon:(0,qt.jsx)(Rt,{icon:fn,size:24,style:{marginRight:0}}),children:(0,qt.jsx)("span",{className:"hidden xs:inline ml-1",children:n})})})},Ja=function(){return(0,qt.jsx)(Lt.Button,{id:"extendify-cta-button",style:{margin:"1rem 1rem 0",width:"calc(100% - 2rem)",justifyContent:" center"},onClick:function(){return kr("patterns-cta")},isSecondary:!0,children:(0,Mt.__)("Discover patterns in Extendify Library","extendify")})},Ka=null===(Ra=window.extendifyData)||void 0===Ra||null===(Da=Ra.user)||void 0===Da?void 0:Da.state,Xa=function(){return null===window.extendifyData.user||(null==Ka?void 0:Ka.isAdmin)},Za=function(){var e,t,n;return null===window.extendifyData.sitesettings||(null===(e=window.extendifyData)||void 0===e||null===(t=e.sitesettings)||void 0===t||null===(n=t.state)||void 0===n?void 0:n.enabled)},Ya=null===(Fa=window)||void 0===Fa||null===(Ba=Fa.wp)||void 0===Ba||null===(za=Ba.data)||void 0===za?void 0:za.subscribe((function(){requestAnimationFrame((function(){var e,t;if((Za()||Xa())&&!document.getElementById("extendify-templates-inserter")&&(document.querySelector(".edit-post-header-toolbar")||document.querySelector(".edit-site-header_start"))){var n=Object.assign(document.createElement("div"),{id:"extendify-templates-inserter"});null===(e=document.querySelector(".edit-post-header-toolbar"))||void 0===e||e.append(n),null===(t=document.querySelector(".edit-site-header_start"))||void 0===t||t.append(n),(0,o.render)((0,qt.jsx)($a,{}),n),(null===window.extendifyData.user?Za():null==Ka?void 0:Ka.enabled)||document.getElementById("extendify-templates-inserter-btn").classList.add("hidden"),Ya()}}))})),Qa=null===(Ua=window)||void 0===Ua||null===(Va=Ua.wp)||void 0===Va||null===(Ha=Va.data)||void 0===Ha?void 0:Ha.subscribe((function(){requestAnimationFrame((function(){if((Za()||Xa())&&document.querySelector("[id$=patterns-view]")&&!document.getElementById("extendify-cta-button")){var e=Object.assign(document.createElement("div"),{id:"extendify-cta-button-container"});document.querySelector("[id$=patterns-view]").prepend(e),(0,o.render)((0,qt.jsx)(Ja,{}),e),Qa()}}))}));try{(0,ga.registerPlugin)("extendify-settings-enable-disable",{render:function(){return(0,qt.jsx)(qt.Fragment,{children:(0,qt.jsxs)(va.PluginSidebarMoreMenuItem,{onClick:function(){var e=document.getElementById("extendify-util");(0,o.render)((0,qt.jsx)(Aa,{}),e)},icon:(0,qt.jsx)(Rt,{icon:fn,size:24}),children:[" ",(0,Mt.__)("Extendify","extendify")]})})}})}catch(e){console.error("registerPlugin not supported? (error handled gradefully)",e.message)}[{register:function(){var e=(0,Er.dispatch)("core/notices").createNotice,t=G.getState().incrementImports;window.addEventListener("extendify::template-inserted",(function(n){e("info",(0,Mt.__)("Page layout added"),{isDismissible:!0,type:"snackbar"}),setTimeout((function(){var e;t(),dr(null===(e=n.detail)||void 0===e?void 0:e.template)}),0)}))}},{register:function(){var e=this;window.addEventListener("extendify::softerror-encountered",(function(t){e[(0,_.camelCase)(t.detail.type)](t.detail)}))},versionOutdated:function(e){(0,o.render)((0,qt.jsx)(qr,{title:e.data.title,requiredPlugins:["extendify"],message:e.data.message,buttonLabel:e.data.buttonLabel,forceOpen:!0}),document.getElementById("extendify-root"))}}].forEach((function(e){return e.register()})),null===(Wa=window)||void 0===Wa||null===(qa=Wa.wp)||void 0===qa||qa.domReady((function(){var e=Object.assign(document.createElement("div"),{id:"extendify-root"});if(document.body.append(e),(0,o.render)((0,qt.jsx)(ca,{}),e),e.parentNode.insertBefore(Object.assign(document.createElement("div"),{id:"extendify-util"}),e.nextSibling),jr.getState().importOnLoad){var t=jr.getState().wantedTemplate;setTimeout((function(){ao((0,r.rawHandler)({HTML:t.fields.code}),t)}),0)}jr.setState({importOnLoad:!1,wantedTemplate:{}})}))},42:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var s in n)r.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},12:(e,t,n)=>{"use strict";var r=n(185),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,a,s,l,c,u=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),s=document.createRange(),l=document.getSelection(),(c=document.createElement("span")).textContent=e,c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(c),s.selectNodeContents(c),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),c&&document.body.removeChild(c),a()}return u}},716:()=>{},965:()=>{},525:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,s,l=o(e),c=1;c<arguments.length;c++){for(var u in a=Object(arguments[c]))n.call(a,u)&&(l[u]=a[u]);if(t){s=t(a);for(var d=0;d<s.length;d++)r.call(a,s[d])&&(l[s[d]]=a[s[d]])}}return l}},61:e=>{var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var s,l=[],c=!1,u=-1;function d(){c&&s&&(c=!1,s.length?l=s.concat(l):u=-1,l.length&&f())}function f(){if(!c){var e=a(d);c=!0;for(var t=l.length;t;){for(s=l,l=[];++u<t;)s&&s[u].run();u=-1,t=l.length}s=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new p(e,t)),1!==l.length||c||a(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},218:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var r=i(n(363)),o=i(n(12));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return a="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},a(e)}function s(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 l(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 c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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 d(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?p(e):t}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x=function(e){function t(){var e,n;c(this,t);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return m(p(n=d(this,(e=f(t)).call.apply(e,[this].concat(a)))),"onClick",(function(e){var t=n.props,i=t.text,a=t.onCopy,s=t.children,l=t.options,c=r.default.Children.only(s),u=(0,o.default)(i,l);a&&a(i,u),c&&c.props&&"function"==typeof c.props.onClick&&c.props.onClick(e)})),n}var n,i,a;return function(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&&h(e,t)}(t,e),n=t,i=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),n=l(e,["text","onCopy","options","children"]),o=r.default.Children.only(t);return r.default.cloneElement(o,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(n,!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n,{onClick:this.onClick}))}}],i&&u(n.prototype,i),a&&u(n,a),t}(r.default.PureComponent);t.CopyToClipboard=x,m(x,"defaultProps",{onCopy:void 0,options:void 0})},306:(e,t,n)=>{"use strict";var r=n(218).CopyToClipboard;r.CopyToClipboard=r,e.exports=r},426:(e,t,n)=>{"use strict";n(525);var r=n(363),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),t.Fragment=i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:a.current}}t.jsx=c,t.jsxs=c},246:(e,t,n)=>{"use strict";e.exports=n(426)},248:e=>{var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof x?t:x,i=Object.create(o.prototype),a=new E(r||[]);return i._invoke=function(e,t,n){var r=d;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return A()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=C(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var l=u(e,t,n);if("normal"===l.type){if(r=n.done?h:f,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=h,n.method="throw",n.arg=l.arg)}}}(e,n,a),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d="suspendedStart",f="suspendedYield",p="executing",h="completed",m={};function x(){}function y(){}function v(){}var g={};l(g,i,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(N([])));w&&w!==n&&r.call(w,i)&&(g=w);var j=v.prototype=x.prototype=Object.create(g);function k(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;this._invoke=function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}}function C(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,C(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=u(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function N(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:A}}function A(){return{value:t,done:!0}}return y.prototype=v,l(j,"constructor",v),l(v,"constructor",y),y.displayName=l(v,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,l(e,s,"GeneratorFunction")),e.prototype=Object.create(j),e},e.awrap=function(e){return{__await:e}},k(S.prototype),l(S.prototype,a,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(c(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(j),l(j,s,"Generator"),l(j,i,(function(){return this})),l(j,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=N,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:N(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},185:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},363:e=>{"use strict";e.exports=React}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,r),i.exports}r.m=t,e=[],r.O=(t,n,o,i)=>{if(!n){var a=1/0;for(u=0;u<e.length;u++){for(var[n,o,i]=e[u],s=!0,l=0;l<n.length;l++)(!1&i||a>=i)&&Object.keys(r.O).every((e=>r.O[e](n[l])))?n.splice(l--,1):(s=!1,i<a&&(a=i));if(s){e.splice(u--,1);var c=o();void 0!==c&&(t=c)}}return t}i=i||0;for(var u=e.length;u>0&&e[u-1][2]>i;u--)e[u]=e[u-1];e[u]=[n,o,i]},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={245:0,506:0,551:0};r.O.j=t=>0===e[t];var t=(t,n)=>{var o,i,[a,s,l]=n,c=0;if(a.some((t=>0!==e[t]))){for(o in s)r.o(s,o)&&(r.m[o]=s[o]);if(l)var u=l(r)}for(t&&t(n);c<a.length;c++)i=a[c],r.o(e,i)&&e[i]&&e[i][0](),e[a[c]]=0;return r.O(u)},n=self.webpackChunk=self.webpackChunk||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),r.O(void 0,[506,551],(()=>r(364))),r.O(void 0,[506,551],(()=>r(716)));var o=r.O(void 0,[506,551],(()=>r(965)));o=r.O(o)})();
|
1 |
/*! For license information please see extendify.js.LICENSE.txt */
|
2 |
+
(()=>{var e,t={135:(e,t,n)=>{e.exports=n(248)},206:(e,t,n)=>{e.exports=n(57)},387:(e,t,n)=>{"use strict";var r=n(485),o=n(570),i=n(940),a=n(581),s=n(574),l=n(845),c=n(338),u=n(524),d=n(141),f=n(132);e.exports=function(e){return new Promise((function(t,n){var p,h=e.data,m=e.headers,x=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}r.isFormData(h)&&delete m["Content-Type"];var v=new XMLHttpRequest;if(e.auth){var g=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(g+":"+b)}var w=s(e.baseURL,e.url);function j(){if(v){var r="getAllResponseHeaders"in v?l(v.getAllResponseHeaders()):null,i={data:x&&"text"!==x&&"json"!==x?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:r,config:e,request:v};o((function(e){t(e),y()}),(function(e){n(e),y()}),i),v=null}}if(v.open(e.method.toUpperCase(),a(w,e.params,e.paramsSerializer),!0),v.timeout=e.timeout,"onloadend"in v?v.onloadend=j:v.onreadystatechange=function(){v&&4===v.readyState&&(0!==v.status||v.responseURL&&0===v.responseURL.indexOf("file:"))&&setTimeout(j)},v.onabort=function(){v&&(n(u("Request aborted",e,"ECONNABORTED",v)),v=null)},v.onerror=function(){n(u("Network Error",e,null,v)),v=null},v.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||d.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",v)),v=null},r.isStandardBrowserEnv()){var k=(e.withCredentials||c(w))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;k&&(m[e.xsrfHeaderName]=k)}"setRequestHeader"in v&&r.forEach(m,(function(e,t){void 0===h&&"content-type"===t.toLowerCase()?delete m[t]:v.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(v.withCredentials=!!e.withCredentials),x&&"json"!==x&&(v.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&v.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&v.upload&&v.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){v&&(n(!e||e&&e.type?new f("canceled"):e),v.abort(),v=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),h||(h=null),v.send(h)}))}},57:(e,t,n)=>{"use strict";var r=n(485),o=n(875),i=n(29),a=n(941);var s=function e(t){var n=new i(t),s=o(i.prototype.request,n);return r.extend(s,i.prototype,n),r.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(141));s.Axios=i,s.Cancel=n(132),s.CancelToken=n(603),s.isCancel=n(475),s.VERSION=n(345).version,s.all=function(e){return Promise.all(e)},s.spread=n(739),s.isAxiosError=n(835),e.exports=s,e.exports.default=s},132:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},603:(e,t,n)=>{"use strict";var r=n(132);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},o.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},475:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},29:(e,t,n)=>{"use strict";var r=n(485),o=n(581),i=n(96),a=n(9),s=n(941),l=n(144),c=l.validators;function u(e){this.defaults=e,this.interceptors={request:new i,response:new i}}u.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&l.assertOptions(n,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var r=[],o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var i,u=[];if(this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)})),!o){var d=[a,void 0];for(Array.prototype.unshift.apply(d,r),d=d.concat(u),i=Promise.resolve(t);d.length;)i=i.then(d.shift(),d.shift());return i}for(var f=t;r.length;){var p=r.shift(),h=r.shift();try{f=p(f)}catch(e){h(e);break}}try{i=a(f)}catch(e){return Promise.reject(e)}for(;u.length;)i=i.then(u.shift(),u.shift());return i},u.prototype.getUri=function(e){return e=s(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=u},96:(e,t,n)=>{"use strict";var r=n(485);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},574:(e,t,n)=>{"use strict";var r=n(642),o=n(288);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},524:(e,t,n)=>{"use strict";var r=n(953);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},9:(e,t,n)=>{"use strict";var r=n(485),o=n(212),i=n(475),a=n(141),s=n(132);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s("canceled")}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return l(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(l(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},953:e=>{"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},941:(e,t,n)=>{"use strict";var r=n(485);e.exports=function(e,t){t=t||{};var n={};function o(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function i(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(e[n],t[n])}function a(e){if(!r.isUndefined(t[e]))return o(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(void 0,t[n])}function l(n){return n in t?o(e[n],t[n]):n in e?o(void 0,e[n]):void 0}var c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||i,o=t(e);r.isUndefined(o)&&t!==l||(n[e]=o)})),n}},570:(e,t,n)=>{"use strict";var r=n(524);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},212:(e,t,n)=>{"use strict";var r=n(485),o=n(141);e.exports=function(e,t,n){var i=this||o;return r.forEach(n,(function(n){e=n.call(i,e,t)})),e}},141:(e,t,n)=>{"use strict";var r=n(61),o=n(485),i=n(446),a=n(953),s={"Content-Type":"application/x-www-form-urlencoded"};function l(e,t){!o.isUndefined(e)&&o.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==r&&"[object process]"===Object.prototype.toString.call(r))&&(c=n(387)),c),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),o.isFormData(e)||o.isArrayBuffer(e)||o.isBuffer(e)||o.isStream(e)||o.isFile(e)||o.isBlob(e)?e:o.isArrayBufferView(e)?e.buffer:o.isURLSearchParams(e)?(l(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):o.isObject(e)||t&&"application/json"===t["Content-Type"]?(l(t,"application/json"),function(e,t,n){if(o.isString(e))try{return(t||JSON.parse)(e),o.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||u.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,i=!n&&"json"===this.responseType;if(i||r&&o.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw a(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),o.forEach(["post","put","patch"],(function(e){u.headers[e]=o.merge(s)})),e.exports=u},345:e=>{e.exports={version:"0.26.0"}},875:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},581:(e,t,n)=>{"use strict";var r=n(485);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},288:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},940:(e,t,n)=>{"use strict";var r=n(485);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},642:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},835:(e,t,n)=>{"use strict";var r=n(485);e.exports=function(e){return r.isObject(e)&&!0===e.isAxiosError}},338:(e,t,n)=>{"use strict";var r=n(485);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},446:(e,t,n)=>{"use strict";var r=n(485);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},845:(e,t,n)=>{"use strict";var r=n(485),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},739:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},144:(e,t,n)=>{"use strict";var r=n(345).version,o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var i={};o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,a){if(!1===e)throw new Error(o(r," has been removed"+(t?" in "+t:"")));return t&&!i[r]&&(i[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var s=e[i],l=void 0===s||a(s,i,e);if(!0!==l)throw new TypeError("option "+i+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:o}},485:(e,t,n)=>{"use strict";var r=n(875),o=Object.prototype.toString;function i(e){return Array.isArray(e)}function a(e){return void 0===e}function s(e){return"[object ArrayBuffer]"===o.call(e)}function l(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===o.call(e)}function d(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:i,isArrayBuffer:s,isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"[object FormData]"===o.call(e)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&s(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:l,isPlainObject:c,isUndefined:a,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:u,isStream:function(e){return l(e)&&u(e.pipe)},isURLSearchParams:function(e){return"[object URLSearchParams]"===o.call(e)},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:d,merge:function e(){var t={};function n(n,r){c(t[r])&&c(n)?t[r]=e(t[r],n):c(n)?t[r]=e({},n):i(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)d(arguments[r],n);return t},extend:function(e,t,n){return d(t,(function(t,o){e[o]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},364:(e,t,n)=>{"use strict";const r=wp.blocks,o=wp.element;var i=n(135),a=n.n(i),s=n(363),l=n.n(s);function c(e){let t;const n=new Set,r=(e,r)=>{const o="function"==typeof e?e(t):e;if(o!==t){const e=t;t=r?o:Object.assign({},t,o),n.forEach((n=>n(t,e)))}},o=()=>t,i={setState:r,getState:o,subscribe:(e,r,i)=>r||i?((e,r=o,i=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let a=r(t);function s(){const n=r(t);if(!i(a,n)){const t=a;e(a=n,t)}}return n.add(s),()=>n.delete(s)})(e,r,i):(n.add(e),()=>n.delete(e)),destroy:()=>n.clear()};return t=e(r,o,i),i}const u="undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent)?s.useEffect:s.useLayoutEffect;function d(e){const t="function"==typeof e?c(e):e,n=(e=t.getState,n=Object.is)=>{const[,r]=(0,s.useReducer)((e=>e+1),0),o=t.getState(),i=(0,s.useRef)(o),a=(0,s.useRef)(e),l=(0,s.useRef)(n),c=(0,s.useRef)(!1),d=(0,s.useRef)();let f;void 0===d.current&&(d.current=e(o));let p=!1;(i.current!==o||a.current!==e||l.current!==n||c.current)&&(f=e(o),p=!n(d.current,f)),u((()=>{p&&(d.current=f),i.current=o,a.current=e,l.current=n,c.current=!1}));const h=(0,s.useRef)(o);u((()=>{const e=()=>{try{const e=t.getState(),n=a.current(e);l.current(d.current,n)||(i.current=e,d.current=n,r())}catch(e){c.current=!0,r()}},n=t.subscribe(e);return t.getState()!==h.current&&e(),n}),[]);const m=p?f:d.current;return(0,s.useDebugValue)(m),m};return Object.assign(n,t),n[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const e=[n,t];return{next(){const t=e.length<=0;return{value:e.shift(),done:t}}}},n}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;const f=e=>(t,n,r)=>{const o=r.subscribe;r.subscribe=(e,t,n)=>{let i=e;if(t){const o=(null==n?void 0:n.equalityFn)||Object.is;let a=e(r.getState());i=n=>{const r=e(n);if(!o(a,r)){const e=a;t(a=r,e)}},(null==n?void 0:n.fireImmediately)&&t(a,a)}return o(i)};return e(t,n,r)};var p=Object.defineProperty,h=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,y=(e,t,n)=>t in e?p(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,v=(e,t)=>{for(var n in t||(t={}))m.call(t,n)&&y(e,n,t[n]);if(h)for(var n of h(t))x.call(t,n)&&y(e,n,t[n]);return e};const g=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then:e=>g(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>g(t)(e)}}},b=(e,t)=>(n,r,o)=>{let i=v({getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>v(v({},t),e)},t);(i.blacklist||i.whitelist)&&console.warn(`The ${i.blacklist?"blacklist":"whitelist"} option is deprecated and will be removed in the next version. Please use the 'partialize' option instead.`);let a=!1;const s=new Set,l=new Set;let c;try{c=i.getStorage()}catch(e){}if(!c)return e(((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...e)}),r,o);c.removeItem||console.warn(`[zustand persist middleware] The given storage for item '${i.name}' does not contain a 'removeItem' method, which will be required in v4.`);const u=g(i.serialize),d=()=>{const e=i.partialize(v({},r()));let t;i.whitelist&&Object.keys(e).forEach((t=>{var n;!(null==(n=i.whitelist)?void 0:n.includes(t))&&delete e[t]})),i.blacklist&&i.blacklist.forEach((t=>delete e[t]));const n=u({state:e,version:i.version}).then((e=>c.setItem(i.name,e))).catch((e=>{t=e}));if(t)throw t;return n},f=o.setState;o.setState=(e,t)=>{f(e,t),d()};const p=e(((...e)=>{n(...e),d()}),r,o);let h;const m=()=>{var e;if(!c)return;a=!1,s.forEach((e=>e(r())));const t=(null==(e=i.onRehydrateStorage)?void 0:e.call(i,r()))||void 0;return g(c.getItem.bind(c))(i.name).then((e=>{if(e)return i.deserialize(e)})).then((e=>{if(e){if("number"!=typeof e.version||e.version===i.version)return e.state;if(i.migrate)return i.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((e=>(h=i.merge(e,p),n(h,!0),d()))).then((()=>{null==t||t(h,void 0),a=!0,l.forEach((e=>e(h)))})).catch((e=>{null==t||t(void 0,e)}))};return o.persist={setOptions:e=>{i=v(v({},i),e),e.getStorage&&(c=e.getStorage())},clearStorage:()=>{var e;null==(e=null==c?void 0:c.removeItem)||e.call(c,i.name)},rehydrate:()=>m(),hasHydrated:()=>a,onHydrate:e=>(s.add(e),()=>{s.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},m(),h||p};function w(e){return function(e){if(Array.isArray(e))return j(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return j(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j(e,t)}(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 j(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}var k=d(f(b((function(e,t){return{open:!1,ready:!1,metaData:{},currentTaxonomies:{},currentType:"pattern",modals:[],pushModal:function(n){return e({modals:[n].concat(w(t().modals))})},popModal:function(){return e({modals:t().modals.slice(1)})},removeAllModals:function(){return e({modals:[]})},updateCurrentTaxonomies:function(t){return e({currentTaxonomies:Object.assign({},t)})},updateCurrentType:function(t){return e({currentType:t})},setOpen:function(t){return e({open:t})},setReady:function(t){return e({ready:t})}}}),{name:"extendify-global-state",partialize:function(e){return delete e.modals,delete e.ready,e}}))),S=n(206),C=n.n(S);const _=lodash;function O(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}var E,N=function(){return(e=a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("".concat(window.extendifyData.root,"/user"),{method:"GET",headers:{"X-WP-Nonce":window.extendifyData.nonce,"X-Requested-With":"XMLHttpRequest","X-Extendify":!0}});case 2:return t=e.sent,e.next=5,t.json();case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){O(i,r,o,a,s,"next",e)}function s(e){O(i,r,o,a,s,"throw",e)}a(void 0)}))})();var e},A=function(e,t){var n=new FormData;return n.append("email",e),n.append("key",t),J.post("login",n,{headers:{"Content-Type":"multipart/form-data"}})},P=function(e){var t=new FormData;return t.append("data",JSON.stringify(e)),J.post("user",t,{headers:{"Content-Type":"multipart/form-data"}})},T=function(){return J.post("clear-user")},I=function(){return J.get("max-free-imports")};function L(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 M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(Object(n),!0).forEach((function(t){F(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function R(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return D(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return D(e,t)}(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.")}()}function D(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 F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function z(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){B(i,r,o,a,s,"next",e)}function s(e){B(i,r,o,a,s,"throw",e)}a(void 0)}))}}var U,V,H,W={getItem:(H=z(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(){return H.apply(this,arguments)}),setItem:(V=z(a().mark((function e(t,n){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,P(n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(e,t){return V.apply(this,arguments)}),removeItem:(U=z(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,T();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(){return U.apply(this,arguments)})},$=function(){var e,t,n;return null===window.extendifyData.sitesettings||(null===(e=window.extendifyData)||void 0===e||null===(t=e.sitesettings)||void 0===t||null===(n=t.state)||void 0===n?void 0:n.enabled)},q=(F(E={},"notice-position","0001"),F(E,"main-button-text","0002"),F(E,"default-or-alt-sitetype","0004"),F(E,"import-counter-type","0005"),F(E,"sitetype-open-closed","0006"),E),G=d(b((function(e,t){return{_hasHydrated:!1,firstLoadedOn:(new Date).toISOString(),email:"",apiKey:"",uuid:"",sdkPartner:"",noticesDismissedAt:{},modalNoticesDismissedAt:{},imports:0,runningImports:0,allowedImports:0,freebieImports:0,entryPoint:"not-set",enabled:$(),canInstallPlugins:!1,canActivatePlugins:!1,participatingTestsGroups:{},preferredOptions:{taxonomies:{},type:"",search:""},incrementImports:function(){var n=Number(t().freebieImports)>0?Number(t().freebieImports)-1:Number(t().freebieImports),r=Number(t().runningImports)+ +(n<1);e({imports:Number(t().imports)+1,runningImports:r,freebieImports:n})},giveFreebieImports:function(n){e({freebieImports:t().freebieImports+n})},totalAvailableImports:function(){return Number(t().allowedImports)+Number(t().freebieImports)},testGroup:function(n,r){if(Object.keys(q).includes(n)){var o=t().participatingTestsGroups;return o[n]||e({participatingTestsGroups:Object.assign({},o,F({},n,(0,_.sample)(r)))}),(o=t().participatingTestsGroups)[n]}},activeTestGroups:function(){return Object.entries(t().participatingTestsGroups).filter((function(e){var t=R(e,1)[0];return Object.keys(q).includes(t)})).reduce((function(e,t){var n=R(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})},activeTestGroupsUtmValue:function(){var e=Object.entries(t().activeTestGroups()).map((function(e){var t=R(e,2),n=t[0],r=t[1];return"".concat(q[n],"=").concat(r)}),"").join(":");return encodeURIComponent(e)},hasAvailableImports:function(){return!!t().apiKey||Number(t().runningImports)<Number(t().totalAvailableImports())},remainingImports:function(){var e=Number(t().totalAvailableImports())-Number(t().runningImports);return t().allowedImports?e>0?e:0:null},updatePreferredSiteType:function(e){t().updatePreferredOption("siteType",e)},updatePreferredOption:function(n,r){var o,i;Object.prototype.hasOwnProperty.call(t().preferredOptions,n)||(r=Object.assign({},null!==(o=null===(i=t().preferredOptions)||void 0===i?void 0:i.taxonomies)&&void 0!==o?o:{},F({},n,r)),n="taxonomies");e({preferredOptions:M({},Object.assign({},t().preferredOptions,F({},n,r)))})},markNoticeSeen:function(n,r){e(F({},"".concat(r,"DismissedAt"),M(M({},t()["".concat(r,"DismissedAt")]),{},F({},n,(new Date).toISOString()))))}}}),{name:"extendify-user",getStorage:function(){return W},onRehydrateStorage:function(){return function(){G.setState({_hasHydrated:!0})}},partialize:function(e){return delete e._hasHydrated,e}})),J=C().create({baseURL:window.extendifyData.root,headers:{"X-WP-Nonce":window.extendifyData.nonce,"X-Requested-With":"XMLHttpRequest","X-Extendify":!0}});function K(e){return Object.prototype.hasOwnProperty.call(e,"data")?e.data:e}function X(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}J.interceptors.response.use((function(e){return function(e){return Object.prototype.hasOwnProperty.call(e,"soft_error")&&window.dispatchEvent(new CustomEvent("extendify::softerror-encountered",{detail:e.soft_error,bubbles:!0})),e}(K(e))}),(function(e){return function(e){if(e.response)return console.error(e.response),Promise.reject(K(e.response))}(e)})),J.interceptors.request.use((function(e){return function(e){return e.headers["X-Extendify-Dev-Mode"]=window.location.search.indexOf("DEVMODE")>-1,e.headers["X-Extendify-Local-Mode"]=window.location.search.indexOf("LOCALMODE")>-1,e}(function(e){var t=G.getState(),n=t.apiKey?"unlimited":t.remainingImports();return e.data&&(e.data.remaining_imports=n,e.data.entry_point=t.entryPoint,e.data.total_imports=t.imports,e.data.participating_tests=t.activeTestGroups()),e}(e))}),(function(e){return e}));var Z=function(){return(e=a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,J.get("taxonomies");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){X(i,r,o,a,s,"next",e)}function s(e){X(i,r,o,a,s,"throw",e)}a(void 0)}))})();var e};function Y(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}var Q=d(b((function(e,t){return{taxonomies:{},setTaxonomies:function(t){return e({taxonomies:t})},fetchTaxonomies:(n=a().mark((function e(){var n,r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Z();case 2:if(r=e.sent,r=Object.keys(r).reduce((function(e,t){return e[t]=r[t],e}),{}),null!==(n=Object.keys(r))&&void 0!==n&&n.length){e.next=6;break}return e.abrupt("return");case 6:t().setTaxonomies(r);case 7:case"end":return e.stop()}}),e)})),r=function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function a(e){Y(i,r,o,a,s,"next",e)}function s(e){Y(i,r,o,a,s,"throw",e)}a(void 0)}))},function(){return r.apply(this,arguments)})};var n,r}),{name:"extendify-taxonomies"}));function ee(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 te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(n),!0).forEach((function(t){ne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function re(e){return function(e){if(Array.isArray(e))return ae(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ie(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 oe(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=ie(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function ie(e,t){if(e){if("string"==typeof e)return ae(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)?ae(e,t):void 0}}function ae(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 se(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}var le,ce,ue=d(f((function(e,t){return{templates:[],skipNextFetch:!1,fetchToken:null,taxonomyDefaultState:{},nextPage:"",searchParams:{taxonomies:{},type:"pattern"},initTemplateData:function(){e({activeTemplate:{}}),t().setupDefaultTaxonomies(),t().updateType(k.getState().currentType)},appendTemplates:(n=a().mark((function n(r){var o,i,s;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:o=oe(r),n.prev=1,s=a().mark((function n(){var r;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=i.value,!t().templates.find((function(e){return e.id===r.id}))){n.next=3;break}return n.abrupt("return","continue");case 3:return n.next=5,new Promise((function(e){return setTimeout(e,5)}));case 5:requestAnimationFrame((function(){var n=[].concat(re(t().templates),[r]);e({templates:n})}));case 6:case"end":return n.stop()}}),n)})),o.s();case 4:if((i=o.n()).done){n.next=11;break}return n.delegateYield(s(),"t0",6);case 6:if("continue"!==n.t0){n.next=9;break}return n.abrupt("continue",9);case 9:n.next=4;break;case 11:n.next=16;break;case 13:n.prev=13,n.t1=n.catch(1),o.e(n.t1);case 16:return n.prev=16,o.f(),n.finish(16);case 19:case"end":return n.stop()}}),n,null,[[1,13,16,19]])})),r=function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function a(e){se(i,r,o,a,s,"next",e)}function s(e){se(i,r,o,a,s,"throw",e)}a(void 0)}))},function(e){return r.apply(this,arguments)}),setupDefaultTaxonomies:function(){var n,r,o,i,a=Q.getState().taxonomies,s=Object.entries(a).reduce((function(e,t){return e[t[0]]=function(e){return"siteType"===e?{slug:"",title:"Not set"}:{slug:"",title:"Featured"}}(t[0]),e}),{}),l={},c=null!==(n=null===(r=G.getState().preferredOptions)||void 0===r?void 0:r.taxonomies)&&void 0!==n?n:{};c.tax_categories&&(c=t().getLegacySiteType(c,a)),s=Object.assign({},s,c,null!==(o=null===(i=k.getState())||void 0===i?void 0:i.currentTaxonomies)&&void 0!==o?o:{}),l.taxonomies=Object.assign({},s),e({taxonomyDefaultState:s,searchParams:te({},Object.assign(t().searchParams,l))})},updateTaxonomies:function(e){var n,r,o={};(o.taxonomies=Object.assign({},t().searchParams.taxonomies,e),null!=o&&null!==(n=o.taxonomies)&&void 0!==n&&n.siteType)&&G.getState().updatePreferredOption("siteType",null==o||null===(r=o.taxonomies)||void 0===r?void 0:r.siteType);k.getState().updateCurrentTaxonomies(null==o?void 0:o.taxonomies),t().updateSearchParams(o)},updateType:function(e){k.getState().updateCurrentType(e),t().updateSearchParams({type:e})},updateSearchParams:function(n){null!=n&&n.taxonomies&&!Object.keys(n.taxonomies).length&&(n.taxonomies=t().taxonomyDefaultState);var r=Object.assign({},t().searchParams,n);JSON.stringify(r)!==JSON.stringify(t().searchParams)&&e({templates:[],nextPage:"",searchParams:r})},resetTemplates:function(){return e({templates:[],nextPage:""})},getLegacySiteType:function(e,n){var r=n.siteType.find((function(t){return[t.slug,null==t?void 0:t.title].includes(e.tax_categories)}));return G.getState().updatePreferredSiteType(r),t().updateTaxonomies({siteType:r}),G.getState().updatePreferredOption("tax_categories",null),G.getState().preferredOptions.taxonomies}};var n,r}))),de=function(){return J.get("meta-data")},fe=function(e){var t,n,r,o,i,a=null!==(t=null===(n=ue.getState())||void 0===n||null===(r=n.searchParams)||void 0===r?void 0:r.taxonomies)&&void 0!==t?t:[];return J.post("simple-ping",{action:e,categories:a,sdk_partner:null!==(o=null===(i=G.getState())||void 0===i?void 0:i.sdkPartner)&&void 0!==o?o:""})};function pe(){return pe=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},pe.apply(this,arguments)}function he(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}function me(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 xe(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return me(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)?me(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function ye(e,t){if(e in t){for(var n=t[e],r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];return"function"==typeof n?n.apply(void 0,o):n}var a=new Error('Tried to handle "'+e+'" but there is no handler defined. Only defined handlers are: '+Object.keys(t).map((function(e){return'"'+e+'"'})).join(", ")+".");throw Error.captureStackTrace&&Error.captureStackTrace(a,ye),a}function ve(e){var t=e.props,n=e.slot,r=e.defaultTag,o=e.features,i=e.visible,a=void 0===i||i,s=e.name;if(a)return ge(t,n,r,s);var l=null!=o?o:le.None;if(l&le.Static){var c=t.static,u=void 0!==c&&c,d=he(t,["static"]);if(u)return ge(d,n,r,s)}if(l&le.RenderStrategy){var f,p=t.unmount,h=void 0===p||p,m=he(t,["unmount"]);return ye(h?ce.Unmount:ce.Hidden,((f={})[ce.Unmount]=function(){return null},f[ce.Hidden]=function(){return ge(pe({},m,{hidden:!0,style:{display:"none"}}),n,r,s)},f))}return ge(t,n,r,s)}function ge(e,t,n,r){var o;void 0===t&&(t={});var i=we(e,["unmount","static"]),a=i.as,l=void 0===a?n:a,c=i.children,u=i.refName,d=void 0===u?"ref":u,f=he(i,["as","children","refName"]),p=void 0!==e.ref?((o={})[d]=e.ref,o):{},h="function"==typeof c?c(t):c;if(f.className&&"function"==typeof f.className&&(f.className=f.className(t)),l===s.Fragment&&Object.keys(f).length>0){if(!(0,s.isValidElement)(h)||Array.isArray(h)&&h.length>1)throw new Error(['Passing props on "Fragment"!',"","The current component <"+r+' /> is rendering a "Fragment".',"However we need to passthrough the following props:",Object.keys(f).map((function(e){return" - "+e})).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((function(e){return" - "+e})).join("\n")].join("\n"));return(0,s.cloneElement)(h,Object.assign({},function(e,t,n){for(var r,o=Object.assign({},e),i=function(){var n,i=r.value;void 0!==e[i]&&void 0!==t[i]&&Object.assign(o,((n={})[i]=function(n){n.defaultPrevented||e[i](n),n.defaultPrevented||t[i](n)},n))},a=xe(n);!(r=a()).done;)i();return o}(function(e){var t=Object.assign({},e);for(var n in t)void 0===t[n]&&delete t[n];return t}(we(f,["ref"])),h.props,["onClick"]),p))}return(0,s.createElement)(l,Object.assign({},we(f,["ref"]),l!==s.Fragment&&p),h)}function be(e){var t;return Object.assign((0,s.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function we(e,t){void 0===t&&(t=[]);for(var n,r=Object.assign({},e),o=xe(t);!(n=o()).done;){var i=n.value;i in r&&delete r[i]}return r}!function(e){e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static"}(le||(le={})),function(e){e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden"}(ce||(ce={}));var je="undefined"!=typeof window?s.useLayoutEffect:s.useEffect,ke={serverHandoffComplete:!1};function Se(){var e=(0,s.useState)(ke.serverHandoffComplete),t=e[0],n=e[1];return(0,s.useEffect)((function(){!0!==t&&n(!0)}),[t]),(0,s.useEffect)((function(){!1===ke.serverHandoffComplete&&(ke.serverHandoffComplete=!0)}),[]),t}var Ce=0;function _e(){return++Ce}function Oe(){var e=Se(),t=(0,s.useState)(e?_e:null),n=t[0],r=t[1];return je((function(){null===n&&r(_e())}),[n]),null!=n?""+n:void 0}function Ee(){var e=(0,s.useRef)(!1);return(0,s.useEffect)((function(){return e.current=!0,function(){e.current=!1}}),[]),e}var Ne,Ae,Pe=(0,s.createContext)(null);function Te(){return(0,s.useContext)(Pe)}function Ie(e){var t=e.value,n=e.children;return l().createElement(Pe.Provider,{value:t},n)}function Le(){var e=[],t={requestAnimationFrame:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){var e=requestAnimationFrame.apply(void 0,arguments);t.add((function(){return cancelAnimationFrame(e)}))})),nextFrame:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.requestAnimationFrame((function(){t.requestAnimationFrame.apply(t,n)}))},setTimeout:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){var e=setTimeout.apply(void 0,arguments);t.add((function(){return clearTimeout(e)}))})),add:function(t){e.push(t)},dispose:function(){for(var t,n=xe(e.splice(0));!(t=n()).done;){var r=t.value;r()}}};return t}function Me(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];e&&r.length>0&&(t=e.classList).add.apply(t,r)}function Re(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];e&&r.length>0&&(t=e.classList).remove.apply(t,r)}function De(e,t,n,r,o,i){var a=Le(),s=void 0!==i?function(e){var t={called:!1};return function(){if(!t.called)return t.called=!0,e.apply(void 0,arguments)}}(i):function(){};return Re.apply(void 0,[e].concat(o)),Me.apply(void 0,[e].concat(t,n)),a.nextFrame((function(){Re.apply(void 0,[e].concat(n)),Me.apply(void 0,[e].concat(r)),a.add(function(e,t){var n=Le();if(!e)return n.dispose;var r=getComputedStyle(e),o=[r.transitionDuration,r.transitionDelay].map((function(e){var t=e.split(",").filter(Boolean).map((function(e){return e.includes("ms")?parseFloat(e):1e3*parseFloat(e)})).sort((function(e,t){return t-e}))[0];return void 0===t?0:t})),i=o[0],a=o[1];return 0!==i?n.setTimeout((function(){t(Ae.Finished)}),i+a):t(Ae.Finished),n.add((function(){return t(Ae.Cancelled)})),n.dispose}(e,(function(n){return Re.apply(void 0,[e].concat(r,t)),Me.apply(void 0,[e].concat(o)),s(n)})))})),a.add((function(){return Re.apply(void 0,[e].concat(t,n,r,o))})),a.add((function(){return s(Ae.Cancelled)})),a.dispose}function Fe(e){return void 0===e&&(e=""),(0,s.useMemo)((function(){return e.split(" ").filter((function(e){return e.trim().length>1}))}),[e])}Pe.displayName="OpenClosedContext",function(e){e[e.Open=0]="Open",e[e.Closed=1]="Closed"}(Ne||(Ne={})),function(e){e.Finished="finished",e.Cancelled="cancelled"}(Ae||(Ae={}));var Be,ze=(0,s.createContext)(null);ze.displayName="TransitionContext",function(e){e.Visible="visible",e.Hidden="hidden"}(Be||(Be={}));var Ue=(0,s.createContext)(null);function Ve(e){return"children"in e?Ve(e.children):e.current.filter((function(e){return e.state===Be.Visible})).length>0}function He(e){var t=(0,s.useRef)(e),n=(0,s.useRef)([]),r=Ee();(0,s.useEffect)((function(){t.current=e}),[e]);var o=(0,s.useCallback)((function(e,o){var i;void 0===o&&(o=ce.Hidden);var a=n.current.findIndex((function(t){return t.id===e}));-1!==a&&(ye(o,((i={})[ce.Unmount]=function(){n.current.splice(a,1)},i[ce.Hidden]=function(){n.current[a].state=Be.Hidden},i)),!Ve(n)&&r.current&&(null==t.current||t.current()))}),[t,r,n]),i=(0,s.useCallback)((function(e){var t=n.current.find((function(t){return t.id===e}));return t?t.state!==Be.Visible&&(t.state=Be.Visible):n.current.push({id:e,state:Be.Visible}),function(){return o(e,ce.Unmount)}}),[n,o]);return(0,s.useMemo)((function(){return{children:n,register:i,unregister:o}}),[i,o,n])}function We(){}Ue.displayName="NestingContext";var $e=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function qe(e){for(var t,n={},r=xe($e);!(t=r()).done;){var o,i=t.value;n[i]=null!=(o=e[i])?o:We}return n}var Ge,Je=le.RenderStrategy;function Ke(e){var t,n=e.beforeEnter,r=e.afterEnter,o=e.beforeLeave,i=e.afterLeave,a=e.enter,c=e.enterFrom,u=e.enterTo,d=e.entered,f=e.leave,p=e.leaveFrom,h=e.leaveTo,m=he(e,["beforeEnter","afterEnter","beforeLeave","afterLeave","enter","enterFrom","enterTo","entered","leave","leaveFrom","leaveTo"]),x=(0,s.useRef)(null),y=(0,s.useState)(Be.Visible),v=y[0],g=y[1],b=m.unmount?ce.Unmount:ce.Hidden,w=function(){var e=(0,s.useContext)(ze);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),j=w.show,k=w.appear,S=w.initial,C=function(){var e=(0,s.useContext)(Ue);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),_=C.register,O=C.unregister,E=Oe(),N=(0,s.useRef)(!1),A=He((function(){N.current||(g(Be.Hidden),O(E),F.current.afterLeave())}));je((function(){if(E)return _(E)}),[_,E]),je((function(){var e;b===ce.Hidden&&E&&(j&&v!==Be.Visible?g(Be.Visible):ye(v,((e={})[Be.Hidden]=function(){return O(E)},e[Be.Visible]=function(){return _(E)},e)))}),[v,E,_,O,j,b]);var P=Fe(a),T=Fe(c),I=Fe(u),L=Fe(d),M=Fe(f),R=Fe(p),D=Fe(h),F=function(e){var t=(0,s.useRef)(qe(e));return(0,s.useEffect)((function(){t.current=qe(e)}),[e]),t}({beforeEnter:n,afterEnter:r,beforeLeave:o,afterLeave:i}),B=Se();(0,s.useEffect)((function(){if(B&&v===Be.Visible&&null===x.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[x,v,B]);var z=S&&!k;je((function(){var e=x.current;if(e&&!z)return N.current=!0,j&&F.current.beforeEnter(),j||F.current.beforeLeave(),j?De(e,P,T,I,L,(function(e){N.current=!1,e===Ae.Finished&&F.current.afterEnter()})):De(e,M,R,D,L,(function(e){N.current=!1,e===Ae.Finished&&(Ve(A)||(g(Be.Hidden),O(E),F.current.afterLeave()))}))}),[F,E,N,O,A,x,z,j,P,T,I,M,R,D]);var U={ref:x},V=m;return l().createElement(Ue.Provider,{value:A},l().createElement(Ie,{value:ye(v,(t={},t[Be.Visible]=Ne.Open,t[Be.Hidden]=Ne.Closed,t))},ve({props:pe({},V,U),defaultTag:"div",features:Je,visible:v===Be.Visible,name:"Transition.Child"})))}function Xe(e){var t,n=e.show,r=e.appear,o=void 0!==r&&r,i=e.unmount,a=he(e,["show","appear","unmount"]),c=Te();void 0===n&&null!==c&&(n=ye(c,((t={})[Ne.Open]=!0,t[Ne.Closed]=!1,t)));if(![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");var u=(0,s.useState)(n?Be.Visible:Be.Hidden),d=u[0],f=u[1],p=He((function(){f(Be.Hidden)})),h=function(){var e=(0,s.useRef)(!0);return(0,s.useEffect)((function(){e.current=!1}),[]),e.current}(),m=(0,s.useMemo)((function(){return{show:n,appear:o||!h,initial:h}}),[n,o,h]);(0,s.useEffect)((function(){n?f(Be.Visible):Ve(p)||f(Be.Hidden)}),[n,p]);var x={unmount:i};return l().createElement(Ue.Provider,{value:p},l().createElement(ze.Provider,{value:m},ve({props:pe({},x,{as:s.Fragment,children:l().createElement(Ke,Object.assign({},x,a))}),defaultTag:s.Fragment,features:Je,visible:d===Be.Visible,name:"Transition"})))}function Ze(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=(0,s.useRef)(t);return(0,s.useEffect)((function(){r.current=t}),[t]),(0,s.useCallback)((function(e){for(var t,n=xe(r.current);!(t=n()).done;){var o=t.value;null!=o&&("function"==typeof o?o(e):o.current=e)}}),[r])}function Ye(e){for(var t,n,r=e.parentElement,o=null;r&&!(r instanceof HTMLFieldSetElement);)r instanceof HTMLLegendElement&&(o=r),r=r.parentElement;var i=null!=(t=""===(null==(n=r)?void 0:n.getAttribute("disabled")))&&t;return(!i||!function(e){if(!e)return!1;var t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(o))&&i}function Qe(e,t,n){var r=(0,s.useRef)(t);r.current=t,(0,s.useEffect)((function(){function t(e){r.current.call(window,e)}return window.addEventListener(e,t,n),function(){return window.removeEventListener(e,t,n)}}),[e,n])}Xe.Child=function(e){var t=null!==(0,s.useContext)(ze),n=null!==Te();return!t&&n?l().createElement(Xe,Object.assign({},e)):l().createElement(Ke,Object.assign({},e))},Xe.Root=Xe,function(e){e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab"}(Ge||(Ge={}));var et,tt,nt,rt,ot,it=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((function(e){return e+":not([tabindex='-1'])"})).join(",");function at(e){null==e||e.focus({preventScroll:!0})}function st(e,t){var n=Array.isArray(e)?e:function(e){return void 0===e&&(e=document.body),null==e?[]:Array.from(e.querySelectorAll(it))}(e),r=document.activeElement,o=function(){if(t&(et.First|et.Next))return nt.Next;if(t&(et.Previous|et.Last))return nt.Previous;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")}(),i=function(){if(t&et.First)return 0;if(t&et.Previous)return Math.max(0,n.indexOf(r))-1;if(t&et.Next)return Math.max(0,n.indexOf(r))+1;if(t&et.Last)return n.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")}(),a=t&et.NoScroll?{preventScroll:!0}:{},s=0,l=n.length,c=void 0;do{var u;if(s>=l||s+l<=0)return tt.Error;var d=i+s;if(t&et.WrapAround)d=(d+l)%l;else{if(d<0)return tt.Underflow;if(d>=l)return tt.Overflow}null==(u=c=n[d])||u.focus(a),s+=o}while(c!==document.activeElement);return c.hasAttribute("tabindex")||c.setAttribute("tabindex","0"),tt.Success}function lt(e,t,n){void 0===t&&(t=ot.All);var r=void 0===n?{}:n,o=r.initialFocus,i=r.containers,a=(0,s.useRef)("undefined"!=typeof window?document.activeElement:null),l=(0,s.useRef)(null),c=Ee(),u=Boolean(t&ot.RestoreFocus),d=Boolean(t&ot.InitialFocus);(0,s.useEffect)((function(){u&&(a.current=document.activeElement)}),[u]),(0,s.useEffect)((function(){if(u)return function(){at(a.current),a.current=null}}),[u]),(0,s.useEffect)((function(){if(d&&e.current){var t=document.activeElement;if(null==o?void 0:o.current){if((null==o?void 0:o.current)===t)return void(l.current=t)}else if(e.current.contains(t))return void(l.current=t);(null==o?void 0:o.current)?at(o.current):st(e.current,et.First)===tt.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),l.current=document.activeElement}}),[e,o,d]),Qe("keydown",(function(n){t&ot.TabLock&&e.current&&n.key===Ge.Tab&&(n.preventDefault(),st(e.current,(n.shiftKey?et.Previous:et.Next)|et.WrapAround)===tt.Success&&(l.current=document.activeElement))})),Qe("focus",(function(n){if(t&ot.FocusLock){var r=new Set(null==i?void 0:i.current);if(r.add(e),r.size){var o=l.current;if(o&&c.current){var a=n.target;a&&a instanceof HTMLElement?!function(e,t){for(var n,r=xe(e);!(n=r()).done;){var o;if(null==(o=n.value.current)?void 0:o.contains(t))return!0}return!1}(r,a)?(n.preventDefault(),n.stopPropagation(),at(o)):(l.current=a,at(a)):at(l.current)}}}}),!0)}!function(e){e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll"}(et||(et={})),function(e){e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow"}(tt||(tt={})),function(e){e[e.Previous=-1]="Previous",e[e.Next=1]="Next"}(nt||(nt={})),function(e){e[e.Strict=0]="Strict",e[e.Loose=1]="Loose"}(rt||(rt={})),function(e){e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All"}(ot||(ot={}));var ct=new Set,ut=new Map;function dt(e){e.setAttribute("aria-hidden","true"),e.inert=!0}function ft(e){var t=ut.get(e);t&&(null===t["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",t["aria-hidden"]),e.inert=t.inert)}var pt=(0,s.createContext)(!1);function ht(e){return l().createElement(pt.Provider,{value:e.force},e.children)}const mt=ReactDOM;function xt(){var e=(0,s.useContext)(pt),t=(0,s.useContext)(bt),n=(0,s.useState)((function(){if(!e&&null!==t)return null;if("undefined"==typeof window)return null;var n=document.getElementById("headlessui-portal-root");if(n)return n;var r=document.createElement("div");return r.setAttribute("id","headlessui-portal-root"),document.body.appendChild(r)})),r=n[0],o=n[1];return(0,s.useEffect)((function(){e||null!==t&&o(t.current)}),[t,o,e]),r}var yt=s.Fragment;function vt(e){var t=e,n=xt(),r=(0,s.useState)((function(){return"undefined"==typeof window?null:document.createElement("div")}))[0],o=Se();return je((function(){if(n&&r)return n.appendChild(r),function(){var e;n&&(r&&(n.removeChild(r),n.childNodes.length<=0&&(null==(e=n.parentElement)||e.removeChild(n))))}}),[n,r]),o&&n&&r?(0,mt.createPortal)(ve({props:t,defaultTag:yt,name:"Portal"}),r):null}var gt=s.Fragment,bt=(0,s.createContext)(null);vt.Group=function(e){var t=e.target,n=he(e,["target"]);return l().createElement(bt.Provider,{value:t},ve({props:n,defaultTag:gt,name:"Popover.Group"}))};var wt=(0,s.createContext)(null);function jt(){var e=(0,s.useContext)(wt);if(null===e){var t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,jt),t}return e}var kt,St,Ct,_t,Ot=(0,s.createContext)((function(){}));function Et(e){var t=e.children,n=e.onUpdate,r=e.type,o=e.element,i=(0,s.useContext)(Ot),a=(0,s.useCallback)((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];null==n||n.apply(void 0,t),i.apply(void 0,t)}),[i,n]);return je((function(){return a(kt.Add,r,o),function(){return a(kt.Remove,r,o)}}),[a,r,o]),l().createElement(Ot.Provider,{value:a},t)}Ot.displayName="StackContext",function(e){e[e.Add=0]="Add",e[e.Remove=1]="Remove"}(kt||(kt={})),function(e){e[e.Open=0]="Open",e[e.Closed=1]="Closed"}(Ct||(Ct={})),function(e){e[e.SetTitleId=0]="SetTitleId"}(_t||(_t={}));var Nt=((St={})[_t.SetTitleId]=function(e,t){return e.titleId===t.id?e:pe({},e,{titleId:t.id})},St),At=(0,s.createContext)(null);function Pt(e){var t=(0,s.useContext)(At);if(null===t){var n=new Error("<"+e+" /> is missing a parent <"+Rt.displayName+" /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(n,Pt),n}return t}function Tt(e,t){return ye(t.type,Nt,e,t)}At.displayName="DialogContext";var It=le.RenderStrategy|le.Static,Lt=be((function(e,t){var n,r=e.open,o=e.onClose,i=e.initialFocus,a=he(e,["open","onClose","initialFocus"]),c=(0,s.useState)(0),u=c[0],d=c[1],f=Te();void 0===r&&null!==f&&(r=ye(f,((n={})[Ne.Open]=!0,n[Ne.Closed]=!1,n)));var p=(0,s.useRef)(new Set),h=(0,s.useRef)(null),m=Ze(h,t),x=e.hasOwnProperty("open")||null!==f,y=e.hasOwnProperty("onClose");if(!x&&!y)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!x)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!y)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof r)throw new Error("You provided an `open` prop to the `Dialog`, but the value is not a boolean. Received: "+r);if("function"!=typeof o)throw new Error("You provided an `onClose` prop to the `Dialog`, but the value is not a function. Received: "+o);var v=r?Ct.Open:Ct.Closed,g=null!==f?f===Ne.Open:v===Ct.Open,b=(0,s.useReducer)(Tt,{titleId:null,descriptionId:null}),w=b[0],j=b[1],k=(0,s.useCallback)((function(){return o(!1)}),[o]),S=(0,s.useCallback)((function(e){return j({type:_t.SetTitleId,id:e})}),[j]),C=Se()&&v===Ct.Open,_=u>1,O=null!==(0,s.useContext)(At);lt(h,C?ye(_?"parent":"leaf",{parent:ot.RestoreFocus,leaf:ot.All}):ot.None,{initialFocus:i,containers:p}),function(e,t){void 0===t&&(t=!0),je((function(){if(t&&e.current){var n=e.current;ct.add(n);for(var r,o=xe(ut.keys());!(r=o()).done;){var i=r.value;i.contains(n)&&(ft(i),ut.delete(i))}return document.querySelectorAll("body > *").forEach((function(e){if(e instanceof HTMLElement){for(var t,n=xe(ct);!(t=n()).done;){var r=t.value;if(e.contains(r))return}1===ct.size&&(ut.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),dt(e))}})),function(){if(ct.delete(n),ct.size>0)document.querySelectorAll("body > *").forEach((function(e){if(e instanceof HTMLElement&&!ut.has(e)){for(var t,n=xe(ct);!(t=n()).done;){var r=t.value;if(e.contains(r))return}ut.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),dt(e)}}));else for(var e,t=xe(ut.keys());!(e=t()).done;){var r=e.value;ft(r),ut.delete(r)}}}}),[t])}(h,!!_&&C),Qe("mousedown",(function(e){var t,n=e.target;v===Ct.Open&&(_||(null==(t=h.current)?void 0:t.contains(n))||k())})),Qe("keydown",(function(e){e.key===Ge.Escape&&v===Ct.Open&&(_||(e.preventDefault(),e.stopPropagation(),k()))})),(0,s.useEffect)((function(){if(v===Ct.Open&&!O){var e=document.documentElement.style.overflow,t=document.documentElement.style.paddingRight,n=window.innerWidth-document.documentElement.clientWidth;return document.documentElement.style.overflow="hidden",document.documentElement.style.paddingRight=n+"px",function(){document.documentElement.style.overflow=e,document.documentElement.style.paddingRight=t}}}),[v,O]),(0,s.useEffect)((function(){if(v===Ct.Open&&h.current){var e=new IntersectionObserver((function(e){for(var t,n=xe(e);!(t=n()).done;){var r=t.value;0===r.boundingClientRect.x&&0===r.boundingClientRect.y&&0===r.boundingClientRect.width&&0===r.boundingClientRect.height&&k()}}));return e.observe(h.current),function(){return e.disconnect()}}}),[v,h,k]);var E=function(){var e=(0,s.useState)([]),t=e[0],n=e[1];return[t.length>0?t.join(" "):void 0,(0,s.useMemo)((function(){return function(e){var t=(0,s.useCallback)((function(e){return n((function(t){return[].concat(t,[e])})),function(){return n((function(t){var n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))}}),[]),r=(0,s.useMemo)((function(){return{register:t,slot:e.slot,name:e.name,props:e.props}}),[t,e.slot,e.name,e.props]);return l().createElement(wt.Provider,{value:r},e.children)}}),[n])]}(),N=E[0],A=E[1],P="headlessui-dialog-"+Oe(),T=(0,s.useMemo)((function(){return[{dialogState:v,close:k,setTitleId:S},w]}),[v,w,k,S]),I=(0,s.useMemo)((function(){return{open:v===Ct.Open}}),[v]),L={ref:m,id:P,role:"dialog","aria-modal":v===Ct.Open||void 0,"aria-labelledby":w.titleId,"aria-describedby":N,onClick:function(e){e.stopPropagation()}},M=a;return l().createElement(Et,{type:"Dialog",element:h,onUpdate:(0,s.useCallback)((function(e,t,n){var r;"Dialog"===t&&ye(e,((r={})[kt.Add]=function(){p.current.add(n),d((function(e){return e+1}))},r[kt.Remove]=function(){p.current.add(n),d((function(e){return e-1}))},r))}),[])},l().createElement(ht,{force:!0},l().createElement(vt,null,l().createElement(At.Provider,{value:T},l().createElement(vt.Group,{target:h},l().createElement(ht,{force:!1},l().createElement(A,{slot:I,name:"Dialog.Description"},ve({props:pe({},M,L),slot:I,defaultTag:"div",features:It,visible:g,name:"Dialog"}))))))))})),Mt=be((function e(t,n){var r=Pt([Rt.displayName,e.name].join("."))[0],o=r.dialogState,i=r.close,a=Ze(n),l="headlessui-dialog-overlay-"+Oe(),c=(0,s.useCallback)((function(e){if(e.target===e.currentTarget){if(Ye(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),i()}}),[i]),u=(0,s.useMemo)((function(){return{open:o===Ct.Open}}),[o]);return ve({props:pe({},t,{ref:a,id:l,"aria-hidden":!0,onClick:c}),slot:u,defaultTag:"div",name:"Dialog.Overlay"})}));var Rt=Object.assign(Lt,{Overlay:Mt,Title:function e(t){var n=Pt([Rt.displayName,e.name].join("."))[0],r=n.dialogState,o=n.setTitleId,i="headlessui-dialog-title-"+Oe();(0,s.useEffect)((function(){return o(i),function(){return o(null)}}),[i,o]);var a=(0,s.useMemo)((function(){return{open:r===Ct.Open}}),[r]);return ve({props:pe({},t,{id:i}),slot:a,defaultTag:"h2",name:"Dialog.Title"})},Description:function(e){var t=jt(),n="headlessui-description-"+Oe();je((function(){return t.register(n)}),[n,t.register]);var r=e,o=pe({},t.props,{id:n});return ve({props:pe({},r,o),slot:t.slot||{},defaultTag:"p",name:t.name||"Description"})}});const Dt=wp.components,Ft=wp.i18n;const Bt=function(e){let{icon:t,size:n=24,...r}=e;return(0,o.cloneElement)(t,{width:n,height:n,...r})};var zt=n(42),Ut=n.n(zt);const Vt=e=>(0,o.createElement)("circle",e),Ht=e=>(0,o.createElement)("g",e),Wt=e=>(0,o.createElement)("path",e),$t=e=>(0,o.createElement)("rect",e),qt=e=>{let{className:t,isPressed:n,...r}=e;const i={...r,className:Ut()(t,{"is-pressed":n})||void 0,role:"img","aria-hidden":!0,focusable:!1};return(0,o.createElement)("svg",i)},Gt=(0,o.createElement)(qt,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(Wt,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}));var Jt=n(246);function Kt(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Xt(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Kt(i,r,o,a,s,"next",e)}function s(e){Kt(i,r,o,a,s,"throw",e)}a(void 0)}))}}var Zt=function(){return J.get("plugins")},Yt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=new FormData;return t.append("plugins",JSON.stringify(e)),J.post("plugins",t,{headers:{"Content-Type":"multipart/form-data"}})},Qt=function(){return J.get("active-plugins")};function en(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function tn(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){en(i,r,o,a,s,"next",e)}function s(e){en(i,r,o,a,s,"throw",e)}a(void 0)}))}}function nn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return rn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rn(e,t)}(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.")}()}function rn(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 on(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function an(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){on(i,r,o,a,s,"next",e)}function s(e){on(i,r,o,a,s,"throw",e)}a(void 0)}))}}function sn(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function ln(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return cn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cn(e,t)}(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.")}()}function cn(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}var un={promotion:function(e){var t,n=e.promotionData;return(0,Jt.jsxs)(Jt.Fragment,{children:[(0,Jt.jsx)("span",{className:"text-black",children:null!==(t=null==n?void 0:n.text)&&void 0!==t?t:""}),(0,Jt.jsx)("span",{className:"px-2 opacity-50","aria-hidden":"true",children:"|"}),(0,Jt.jsx)("div",{className:"flex items-center justify-center space-x-2",children:(null==n?void 0:n.url)&&(0,Jt.jsx)(Dt.Button,{variant:"link",className:"h-auto p-0 text-black underline hover:no-underline",href:"".concat(n.url,"&utm_source=").concat(window.extendifyData.sdk_partner,"&utm_group=").concat(G.getState().activeTestGroupsUtmValue()),onClick:an(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fe("promotion-notice-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),target:"_blank",children:null==n?void 0:n.button_text})})]})},feedback:function(){return(0,Jt.jsxs)(Jt.Fragment,{children:[(0,Jt.jsx)("span",{className:"text-black",children:(0,Ft.__)("Tell us how to make the Extendify Library work better for you","extendify")}),(0,Jt.jsx)("span",{className:"px-2 opacity-50","aria-hidden":"true",children:"|"}),(0,Jt.jsx)("div",{className:"flex items-center justify-center space-x-2",children:(0,Jt.jsx)(Dt.Button,{variant:"link",className:"h-auto p-0 text-black underline hover:no-underline",href:"https://extendify.com/feedback/?utm_source=".concat(window.extendifyData.sdk_partner,"&utm_medium=library&utm_campaign=feedback-notice&utm_content=give-feedback&utm_group=").concat(G.getState().activeTestGroupsUtmValue()),onClick:Xt(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fe("feedback-notice-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),target:"_blank",children:(0,Ft.__)("Give feedback","extendify")})})]})},standalone:function(){var e=nn((0,o.useState)(""),2),t=e[0],n=e[1],r=G((function(e){return e.giveFreebieImports}));return(0,Jt.jsxs)("div",{children:[(0,Jt.jsx)("span",{className:"text-black",children:(0,Ft.__)("Install the new Extendify Library plugin to get the latest we have to offer","extendify")}),(0,Jt.jsx)("span",{className:"px-2 opacity-50","aria-hidden":"true",children:"|"}),(0,Jt.jsxs)("div",{className:"relative inline-flex items-center space-x-2",children:[(0,Jt.jsx)(Dt.Button,{variant:"link",className:Ut()("h-auto p-0 text-black underline hover:no-underline",{"opacity-0":t}),onClick:function(){n((0,Ft.__)("Installing...","extendify")),Promise.all([fe("stln-footer-install"),Yt(["extendify"]),new Promise((function(e){return setTimeout(e,1e3)}))]).then(tn(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r(10),n((0,Ft.__)("Success! Reloading...","extendify")),e.next=4,fe("stln-footer-success");case 4:window.location.reload();case 5:case"end":return e.stop()}}),e)})))).catch(function(){var e=tn(a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.error(t),n((0,Ft.__)("Error. See console.","extendify")),e.next=4,fe("stln-footer-fail");case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},children:(0,Ft.__)("Install Extendify standalone plugin","extendify")}),t?(0,Jt.jsx)(Dt.Button,{variant:"link",disabled:!0,className:"absolute left-0 h-auto p-0 text-black underline opacity-100 hover:no-underline",onClick:function(){},children:t}):null]})]})}};function dn(e){var t,n=e.className,r=void 0===n?"":n,i=ln((0,o.useState)(null),2),s=i[0],l=i[1],c=(0,o.useRef)(!1),u=k((function(e){var t,n;return null===(t=e.metaData)||void 0===t||null===(n=t.banners)||void 0===n?void 0:n.footer})),d=null!==(t=Object.keys(un).find((function(e){var t,n,r,o,i,a,s;return"promotion"===e?!(null!==(t=G.getState().apiKey)&&void 0!==t&&t.length)&&(null==u?void 0:u.key)&&!G.getState().noticesDismissedAt[u.key]:"feedback"===e?(i=null!==(n=G.getState().imports)&&void 0!==n?n:0,a=null!==(r=null===(o=G.getState())||void 0===o?void 0:o.firstLoadedOn)&&void 0!==r?r:new Date,s=(new Date).getTime()-new Date(a).getTime(),i>=3&&s/864e5>3&&!G.getState().noticesDismissedAt[e]):"standalone"===e?!window.extendifyData.standalone&&!G.getState().noticesDismissedAt[e]:!G.getState().noticesDismissedAt[e]})))&&void 0!==t?t:null,f=un[d],p=function(){var e,t=(e=a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l(!1),t="promotion"===d?u.key:d,G.getState().markNoticeSeen(t,"notices"),e.next=5,fe("footer-notice-x-".concat(t));case 5:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){sn(i,r,o,a,s,"next",e)}function s(e){sn(i,r,o,a,s,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();return(0,o.useEffect)((function(){un[d]&&!c.current&&(l(!0),c.current=!0)}),[d]),s&&f?(0,Jt.jsxs)("div",{className:"".concat(r," relative mx-auto hidden max-w-screen-4xl items-center justify-center space-x-4 bg-extendify-secondary py-3 px-5 lg:flex"),children:[(0,Jt.jsx)(f,{promotionData:u}),(0,Jt.jsx)("div",{className:"absolute right-1",children:(0,Jt.jsx)(Dt.Button,{className:"text-extendify-black opacity-50 hover:opacity-100 focus:opacity-100",icon:(0,Jt.jsx)(Bt,{icon:Gt}),label:(0,Ft.__)("Dismiss this notice","extendify"),onClick:p,showTooltip:!1})})]}):null}function fn(e){const{body:t}=document.implementation.createHTMLDocument("");t.innerHTML=e;const n=t.getElementsByTagName("*");let r=n.length;for(;r--;){const e=n[r];if("SCRIPT"===e.tagName)(o=e).parentNode,o.parentNode.removeChild(o);else{let t=e.attributes.length;for(;t--;){const{name:n}=e.attributes[t];n.startsWith("on")&&e.removeAttribute(n)}}}var o;return t.innerHTML}const pn=(0,Jt.jsxs)(qt,{viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg",children:[(0,Jt.jsx)(Wt,{d:"M7.32457 0.907043C3.98785 0.907043 1.2829 3.61199 1.2829 6.94871C1.2829 10.2855 3.98785 12.9904 7.32457 12.9904C10.6613 12.9904 13.3663 10.2855 13.3663 6.94871C13.3663 3.61199 10.6613 0.907043 7.32457 0.907043V0.907043Z",stroke:"currentColor",strokeWidth:"1.25",fill:"none"}),(0,Jt.jsx)(Wt,{d:"M6.34684 9.72526C6.34684 9.18224 6.77716 8.74168 7.32018 8.74168C7.8632 8.74168 8.30377 9.18224 8.30377 9.72526C8.30377 10.2683 7.8632 10.6986 7.32018 10.6986C6.77716 10.6986 6.34684 10.2683 6.34684 9.72526Z",fill:"currentColor"}),(0,Jt.jsx)(Wt,{d:"M7.9759 7.11261C7.93492 7.47121 7.67878 7.76834 7.32018 7.76834C6.95134 7.76834 6.70544 7.46097 6.6747 7.11261L6.34684 4.1721C6.28537 3.67006 6.81814 3.19876 7.32018 3.19876C7.82222 3.19876 8.35499 3.67006 8.30377 4.1721L7.9759 7.11261Z",fill:"currentColor"})]});const hn=(0,Jt.jsx)(qt,{fill:"none",viewBox:"0 0 25 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Jt.jsx)(Wt,{clipRule:"evenodd",d:"m14.4063 2h4.1856c1.1856 0 1.6147.12701 2.0484.36409.4336.23802.7729.58706 1.0049 1.03111.2319.445.3548.8853.3548 2.10175v4.29475c0 1.2165-.1238 1.6567-.3548 2.1017-.232.445-.5722.7931-1.0049 1.0312-.1939.1064-.3873.1939-.6476.2567v3.4179c0 1.8788-.1912 2.5588-.5481 3.246-.3582.6873-.8836 1.2249-1.552 1.5925-.6697.3676-1.3325.5623-3.1634.5623h-6.46431c-1.83096 0-2.49367-.1962-3.16346-.5623-.6698-.3676-1.19374-.9067-1.552-1.5925s-.54943-1.3672-.54943-3.246v-6.63138c0-1.87871.19117-2.55871.54801-3.24597.35827-.68727.88362-1.22632 1.55342-1.59393.66837-.36615 1.3325-.56231 3.16346-.56231h2.76781c.0519-.55814.1602-.86269.3195-1.16946.232-.445.5721-.79404 1.0058-1.03206.4328-.23708.8628-.36409 2.0483-.36409zm-2.1512 2.73372c0-.79711.6298-1.4433 1.4067-1.4433h5.6737c.777 0 1.4068.64619 1.4068 1.4433v5.82118c0 .7971-.6298 1.4433-1.4068 1.4433h-5.6737c-.7769 0-1.4067-.6462-1.4067-1.4433z",fill:"currentColor",fillRule:"evenodd"})});const mn=(0,Jt.jsx)(qt,{fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Jt.jsx)(Wt,{clipRule:"evenodd",d:"m13.505 4h3.3044c.936 0 1.2747.10161 1.6171.29127.3424.19042.6102.46965.7934.82489.1831.356.2801.70824.2801 1.6814v3.43584c0 .9731-.0977 1.3254-.2801 1.6814-.1832.356-.4517.6344-.7934.8248-.153.0852-.3057.1552-.5112.2054v2.7344c0 1.503-.151 2.047-.4327 2.5968-.2828.5498-.6976.9799-1.2252 1.274-.5288.294-1.052.4498-2.4975.4498h-5.10341c-1.44549 0-1.96869-.1569-2.49747-.4498-.52878-.2941-.94242-.7254-1.22526-1.274-.28284-.5487-.43376-1.0938-.43376-2.5968v-5.3051c0-1.50301.15092-2.04701.43264-2.59682.28284-.54981.6976-.98106 1.22638-1.27514.52767-.29293 1.05198-.44985 2.49747-.44985h2.18511c.041-.44652.1265-.69015.2522-.93557.1832-.356.4517-.63523.7941-.82565.3417-.18966.6812-.29127 1.6171-.29127zm-1.6984 2.18698c0-.63769.4973-1.15464 1.1106-1.15464h4.4793c.6133 0 1.1106.51695 1.1106 1.15464v4.65692c0 .6377-.4973 1.1547-1.1106 1.1547h-4.4793c-.6133 0-1.1106-.517-1.1106-1.1547z",fill:"currentColor",fillRule:"evenodd"})});const xn=(0,Jt.jsx)(qt,{fill:"none",width:"150",height:"30",viewBox:"0 0 2524 492",xmlns:"http://www.w3.org/2000/svg",children:(0,Jt.jsxs)(Ht,{fill:"currentColor",children:[(0,Jt.jsx)(Wt,{d:"m609.404 378.5c-24.334 0-46-5.5-65-16.5-18.667-11.333-33.334-26.667-44-46-10.667-19.667-16-42.167-16-67.5 0-25.667 5.166-48.333 15.5-68 10.333-19.667 24.833-35 43.5-46 18.666-11.333 40-17 64-17 25 0 46.5 5.333 64.5 16 18 10.333 31.833 24.833 41.5 43.5 10 18.667 15 41 15 67v18.5l-212 .5 1-39h150.5c0-17-5.5-30.667-16.5-41-10.667-10.333-25.167-15.5-43.5-15.5-14.334 0-26.5 3-36.5 9-9.667 6-17 15-22 27s-7.5 26.667-7.5 44c0 26.667 5.666 46.833 17 60.5 11.666 13.667 28.833 20.5 51.5 20.5 16.666 0 30.333-3.167 41-9.5 11-6.333 18.166-15.333 21.5-27h56.5c-5.334 27-18.667 48.167-40 63.5-21 15.333-47.667 23-80 23z"}),(0,Jt.jsx)("path",{d:"m797.529 372h-69.5l85-121-85-126h71l54.5 84 52.5-84h68.5l-84 125.5 81.5 121.5h-70l-53-81.5z"}),(0,Jt.jsx)("path",{d:"m994.142 125h155.998v51h-155.998zm108.498 247h-61v-324h61z"}),(0,Jt.jsx)("path",{d:"m1278.62 378.5c-24.33 0-46-5.5-65-16.5-18.66-11.333-33.33-26.667-44-46-10.66-19.667-16-42.167-16-67.5 0-25.667 5.17-48.333 15.5-68 10.34-19.667 24.84-35 43.5-46 18.67-11.333 40-17 64-17 25 0 46.5 5.333 64.5 16 18 10.333 31.84 24.833 41.5 43.5 10 18.667 15 41 15 67v18.5l-212 .5 1-39h150.5c0-17-5.5-30.667-16.5-41-10.66-10.333-25.16-15.5-43.5-15.5-14.33 0-26.5 3-36.5 9-9.66 6-17 15-22 27s-7.5 26.667-7.5 44c0 26.667 5.67 46.833 17 60.5 11.67 13.667 28.84 20.5 51.5 20.5 16.67 0 30.34-3.167 41-9.5 11-6.333 18.17-15.333 21.5-27h56.5c-5.33 27-18.66 48.167-40 63.5-21 15.333-47.66 23-80 23z"}),(0,Jt.jsx)("path",{d:"m1484.44 372h-61v-247h56.5l5 32c7.67-12.333 18.5-22 32.5-29 14.34-7 29.84-10.5 46.5-10.5 31 0 54.34 9.167 70 27.5 16 18.333 24 43.333 24 75v152h-61v-137.5c0-20.667-4.66-36-14-46-9.33-10.333-22-15.5-38-15.5-19 0-33.83 6-44.5 18-10.66 12-16 28-16 48z"}),(0,Jt.jsx)("path",{d:"m1798.38 378.5c-24 0-44.67-5.333-62-16-17-11-30.34-26.167-40-45.5-9.34-19.333-14-41.833-14-67.5s4.66-48.333 14-68c9.66-20 23.5-35.667 41.5-47s39.33-17 64-17c17.33 0 33.16 3.5 47.5 10.5 14.33 6.667 25.33 16.167 33 28.5v-156.5h60.5v372h-56l-4-38.5c-7.34 14-18.67 25-34 33-15 8-31.84 12-50.5 12zm13.5-56c14.33 0 26.66-3 37-9 10.33-6.333 18.33-15.167 24-26.5 6-11.667 9-24.833 9-39.5 0-15-3-28-9-39-5.67-11.333-13.67-20.167-24-26.5-10.34-6.667-22.67-10-37-10-14 0-26.17 3.333-36.5 10-10.34 6.333-18.34 15.167-24 26.5-5.34 11.333-8 24.333-8 39s2.66 27.667 8 39c5.66 11.333 13.66 20.167 24 26.5 10.33 6.333 22.5 9.5 36.5 9.5z"}),(0,Jt.jsx)("path",{d:"m1996.45 372v-247h61v247zm30-296.5c-10.34 0-19.17-3.5-26.5-10.5-7-7.3333-10.5-16.1667-10.5-26.5s3.5-19 10.5-26c7.33-6.99999 16.16-10.49998 26.5-10.49998 10.33 0 19 3.49999 26 10.49998 7.33 7 11 15.6667 11 26s-3.67 19.1667-11 26.5c-7 7-15.67 10.5-26 10.5z"}),(0,Jt.jsx)("path",{d:"m2085.97 125h155v51h-155zm155.5-122.5v52c-3.33 0-6.83 0-10.5 0-3.33 0-6.83 0-10.5 0-15.33 0-25.67 3.6667-31 11-5 7.3333-7.5 17.1667-7.5 29.5v277h-60.5v-277c0-22.6667 3.67-40.8333 11-54.5 7.33-14 17.67-24.1667 31-30.5 13.33-6.66666 28.83-10 46.5-10 5 0 10.17.166671 15.5.5 5.67.333329 11 .99999 16 2z"}),(0,Jt.jsx)("path",{d:"m2330.4 125 80.5 228-33 62.5-112-290.5zm-58 361.5v-50.5h36.5c8 0 15-1 21-3 6-1.667 11.34-5 16-10 5-5 9.17-12.333 12.5-22l102.5-276h63l-121 302c-9 22.667-20.33 39.167-34 49.5-13.66 10.333-30.66 15.5-51 15.5-8.66 0-16.83-.5-24.5-1.5-7.33-.667-14.33-2-21-4z"}),(0,Jt.jsx)("path",{clipRule:"evenodd",d:"m226.926 25.1299h83.271c23.586 0 32.123 2.4639 40.751 7.0633 8.628 4.6176 15.378 11.389 19.993 20.0037 4.615 8.6329 7.059 17.1746 7.059 40.7738v83.3183c0 23.599-2.463 32.141-7.059 40.774-4.615 8.633-11.383 15.386-19.993 20.003-3.857 2.065-7.704 3.764-12.884 4.981v66.308c0 36.447-3.803 49.639-10.902 62.972-7.128 13.333-17.579 23.763-30.877 30.894-13.325 7.132-26.51 10.909-62.936 10.909h-128.605c-36.4268 0-49.6113-3.805-62.9367-10.909-13.3254-7.131-23.749-17.589-30.8765-30.894-7.12757-13.304-10.9308-26.525-10.9308-62.972v-128.649c0-36.447 3.80323-49.639 10.9026-62.972 7.1275-13.333 17.5793-23.7909 30.9047-30.9224 13.2972-7.1034 26.5099-10.9088 62.9367-10.9088h55.064c1.033-10.8281 3.188-16.7362 6.357-22.6877 4.615-8.6329 11.382-15.4043 20.01-20.0219 8.61-4.5994 17.165-7.0633 40.751-7.0633zm-42.798 53.0342c0-15.464 12.53-28 27.986-28h112.877c15.457 0 27.987 12.536 27.987 28v112.9319c0 15.464-12.53 28-27.987 28h-112.877c-15.456 0-27.986-12.536-27.986-28z",fillRule:"evenodd"})]})});const yn=(0,Jt.jsx)(qt,{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:(0,Jt.jsx)("path",{d:"m11.9893 2.59931c-.1822.00285-.3558.07789-.4827.20864s-.1967.30653-.1941.48871v1.375c-.0013.0911.0156.18155.0495.26609.034.08454.0844.16149.1484.22637s.1402.11639.2242.15156c.0841.03516.1743.05327.2654.05327s.1813-.01811.2654-.05327c.084-.03517.1603-.08668.2242-.15156.064-.06488.1144-.14183.1484-.22637s.0508-.17499.0495-.26609v-1.375c.0013-.09202-.0158-.18337-.0505-.26863-.0346-.08526-.086-.1627-.1511-.22773s-.1426-.11633-.2279-.15085c-.0853-.03453-.1767-.05158-.2687-.05014zm-5.72562.46013c-.1251.00033-.24775.0348-.35471.09968-.10697.06488-.19421.15771-.25232.2685-.05812.1108-.0849.23534-.07747.36023.00744.12488.0488.24537.11964.34849l.91667 1.375c.04939.07667.11354.14274.18872.19437.07517.05164.15987.0878.24916.10639.08928.01858.18137.01922.27091.00187.08953-.01734.17472-.05233.2506-.10292.07589-.05059.14095-.11577.1914-.19174.05045-.07598.08528-.16123.10246-.2508.01719-.08956.01638-.18165-.00237-.2709s-.05507-.17388-.10684-.24897l-.91666-1.375c-.06252-.09667-.14831-.1761-.2495-.231-.1012-.0549-.21456-.08351-.32969-.0832zm11.45212 0c-.1117.00307-.2209.03329-.3182.08804-.0973.05474-.1798.13237-.2404.22616l-.9167 1.375c-.0518.07509-.0881.15972-.1068.24897-.0188.08925-.0196.18134-.0024.2709.0172.08957.052.17482.1024.2508.0505.07597.1156.14115.1914.19174.0759.05059.1611.08558.2506.10292.0896.01735.1817.01671.271-.00187.0892-.01859.1739-.05475.2491-.10639.0752-.05163.1393-.1177.1887-.19437l.9167-1.375c.0719-.10456.1135-.22698.1201-.3537s-.022-.25281-.0826-.36429c-.0606-.11149-.1508-.20403-.2608-.26738-.11-.06334-.2353-.09502-.3621-.09153zm-9.61162 3.67472c-.09573-.00001-.1904.01998-.27795.05867-.08756.03869-.16607.09524-.23052.16602l-4.58333 5.04165c-.11999.1319-.18407.3052-.17873.4834.00535.1782.0797.3473.20738.4718l8.47917 8.25c.1284.1251.3006.1951.4798.1951.1793 0 .3514-.07.4798-.1951l8.4792-8.25c.1277-.1245.202-.2936.2074-.4718.0053-.1782-.0588-.3515-.1788-.4834l-4.5833-5.04165c-.0644-.07078-.1429-.12733-.2305-.16602s-.1822-.05868-.278-.05867h-3.877zm.30436 1.375h2.21646l-2.61213 3.48314c-.04258.0557-.07639.1176-.10026.1835h-2.83773zm4.96646 0h2.2165l3.3336 3.66664h-2.8368c-.0241-.066-.0582-.1278-.1011-.1835zm-1.375.45833 2.4063 3.20831h-4.81254zm-6.78637 4.58331h2.70077c.00665.0188.01412.0374.02238.0555l2.11442 4.6505zm4.20826 0h5.15621l-2.5781 5.6719zm6.66371 0h2.7008l-4.8376 4.706 2.1144-4.6505c.0083-.0181.0158-.0367.0224-.0555z",fill:"#000"})});const vn=(0,Jt.jsxs)(qt,{viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Jt.jsx)(Wt,{d:"M7.32457 0.907043C3.98785 0.907043 1.2829 3.61199 1.2829 6.94871C1.2829 10.2855 3.98785 12.9904 7.32457 12.9904C10.6613 12.9904 13.3663 10.2855 13.3663 6.94871C13.3663 3.61199 10.6613 0.907043 7.32457 0.907043V0.907043Z",stroke:"white",strokeWidth:"1.25"}),(0,Jt.jsx)(Wt,{d:"M7.32458 10.0998L4.82458 7.59977M7.32458 10.0998V3.79764V10.0998ZM7.32458 10.0998L9.82458 7.59977L7.32458 10.0998Z",stroke:"white",strokeWidth:"1.25"})]});const gn=(0,Jt.jsxs)(qt,{viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Jt.jsx)("path",{d:"M7.93298 20.2773L17.933 20.2773C18.1982 20.2773 18.4526 20.172 18.6401 19.9845C18.8276 19.7969 18.933 19.5426 18.933 19.2773C18.933 19.0121 18.8276 18.7578 18.6401 18.5702C18.4526 18.3827 18.1982 18.2773 17.933 18.2773L7.93298 18.2773C7.66777 18.2773 7.41341 18.3827 7.22588 18.5702C7.03834 18.7578 6.93298 19.0121 6.93298 19.2773C6.93298 19.5426 7.03834 19.7969 7.22588 19.9845C7.41341 20.172 7.66777 20.2773 7.93298 20.2773Z",fill:"white"}),(0,Jt.jsx)("path",{d:"M12.933 4.27734C12.6678 4.27734 12.4134 4.3827 12.2259 4.57024C12.0383 4.75777 11.933 5.01213 11.933 5.27734L11.933 12.8673L9.64298 10.5773C9.55333 10.4727 9.44301 10.3876 9.31895 10.3276C9.19488 10.2676 9.05975 10.2339 8.92203 10.2285C8.78431 10.2232 8.64698 10.2464 8.51865 10.2967C8.39033 10.347 8.27378 10.4232 8.17632 10.5207C8.07887 10.6181 8.00261 10.7347 7.95234 10.863C7.90206 10.9913 7.87886 11.1287 7.88418 11.2664C7.8895 11.4041 7.92323 11.5392 7.98325 11.6633C8.04327 11.7874 8.12829 11.8977 8.23297 11.9873L12.233 15.9873C12.3259 16.0811 12.4365 16.1555 12.5584 16.2062C12.6803 16.257 12.811 16.2831 12.943 16.2831C13.075 16.2831 13.2057 16.257 13.3276 16.2062C13.4494 16.1555 13.56 16.0811 13.653 15.9873L17.653 11.9873C17.8168 11.796 17.9024 11.55 17.8927 11.2983C17.883 11.0466 17.7786 10.8079 17.6005 10.6298C17.4224 10.4517 17.1837 10.3474 16.932 10.3376C16.6804 10.3279 16.4343 10.4135 16.243 10.5773L13.933 12.8673L13.933 5.27734C13.933 5.01213 13.8276 4.75777 13.6401 4.57024C13.4525 4.3827 13.1982 4.27734 12.933 4.27734Z",fill:"white"})]});const bn=(0,Jt.jsxs)(qt,{fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,Jt.jsx)(Wt,{d:"m11.2721 16.9866.6041 2.2795.6042-2.2795.6213-2.3445c.0001-.0002.0001-.0004.0002-.0006.2404-.9015.8073-1.5543 1.4638-1.8165.0005-.0002.0009-.0004.0013-.0006l1.9237-.7555 1.4811-.5818-1.4811-.5817-1.9264-.7566c0-.0001-.0001-.0001-.0001-.0001-.0001 0-.0001 0-.0001 0-.654-.25727-1.2213-.90816-1.4621-1.81563-.0001-.00006-.0001-.00011-.0001-.00017l-.6215-2.34519-.6042-2.27947-.6041 2.27947-.6216 2.34519v.00017c-.2409.90747-.80819 1.55836-1.46216 1.81563-.00002 0-.00003 0-.00005 0-.00006 0-.00011 0-.00017.0001l-1.92637.7566-1.48108.5817 1.48108.5818 1.92637.7566c.00007 0 .00015.0001.00022.0001.65397.2572 1.22126.9082 1.46216 1.8156v.0002z",stroke:"currentColor",strokeWidth:"1.25",fill:"none"}),(0,Jt.jsxs)(Ht,{fill:"currentColor",children:[(0,Jt.jsx)(Wt,{d:"m18.1034 18.3982-.2787.8625-.2787-.8625c-.1314-.4077-.4511-.7275-.8589-.8589l-.8624-.2786.8624-.2787c.4078-.1314.7275-.4512.8589-.8589l.2787-.8624.2787.8624c.1314.4077.4511.7275.8589.8589l.8624.2787-.8624.2786c-.4078.1314-.7269.4512-.8589.8589z"}),(0,Jt.jsx)(Wt,{d:"m6.33141 6.97291-.27868.86242-.27867-.86242c-.13142-.40775-.45116-.72749-.8589-.85891l-.86243-.27867.86243-.27868c.40774-.13141.72748-.45115.8589-.8589l.27867-.86242.27868.86242c.13142.40775.45116.72749.8589.8589l.86242.27868-.86242.27867c-.40774.13142-.7269.45116-.8589.85891z"})]})]});const wn=(0,Jt.jsx)(qt,{fill:"none",height:"25",viewBox:"0 0 25 25",width:"25",xmlns:"http://www.w3.org/2000/svg",children:(0,Jt.jsx)(Wt,{d:"m16.2382 9.17969.7499.00645.0066-.75988-.7599.00344zm-5.5442.77506 5.5475-.02507-.0067-1.49998-5.5476.02506zm4.7942-.78152-.0476 5.52507 1.5.0129.0475-5.52506zm.2196-.52387-7.68099 7.68104 1.06066 1.0606 7.68103-7.68098z",fill:"currentColor"})});const jn=(0,Jt.jsx)(qt,{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:(0,Jt.jsxs)(Ht,{stroke:"currentColor",strokeWidth:"1.5",children:[(0,Jt.jsx)(Wt,{d:"m6 4.75h12c.6904 0 1.25.55964 1.25 1.25v12c0 .6904-.5596 1.25-1.25 1.25h-12c-.69036 0-1.25-.5596-1.25-1.25v-12c0-.69036.55964-1.25 1.25-1.25z"}),(0,Jt.jsx)(Wt,{d:"m9.25 19v-14"})]})});const kn=(0,Jt.jsxs)(qt,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Jt.jsx)(Wt,{fillRule:"evenodd",clipRule:"evenodd",d:"M7.49271 18.0092C6.97815 17.1176 7.28413 15.9755 8.17569 15.4609C9.06724 14.946 10.2094 15.252 10.7243 16.1435C11.2389 17.0355 10.9329 18.1772 10.0413 18.6922C9.14978 19.2071 8.00764 18.9011 7.49271 18.0092V18.0092Z",fill:"currentColor"}),(0,Jt.jsx)(Wt,{fillRule:"evenodd",clipRule:"evenodd",d:"M16.5073 6.12747C17.0218 7.01903 16.7158 8.16117 15.8243 8.67573C14.9327 9.19066 13.7906 8.88467 13.2757 7.99312C12.7611 7.10119 13.0671 5.95942 13.9586 5.44449C14.8502 4.92956 15.9923 5.23555 16.5073 6.12747V6.12747Z",fill:"currentColor"}),(0,Jt.jsx)(Wt,{fillRule:"evenodd",clipRule:"evenodd",d:"M4.60135 11.1355C5.11628 10.2439 6.25805 9.93793 7.14998 10.4525C8.04153 10.9674 8.34752 12.1096 7.83296 13.0011C7.31803 13.8927 6.17588 14.1987 5.28433 13.6841C4.39278 13.1692 4.08679 12.0274 4.60135 11.1355V11.1355Z",fill:"currentColor"}),(0,Jt.jsx)(Wt,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.3986 13.0011C18.8837 13.8927 17.7419 14.1987 16.85 13.6841C15.9584 13.1692 15.6525 12.027 16.167 11.1355C16.682 10.2439 17.8241 9.93793 18.7157 10.4525C19.6072 10.9674 19.9132 12.1092 19.3986 13.0011V13.0011Z",fill:"currentColor"}),(0,Jt.jsx)(Wt,{d:"M9.10857 8.92594C10.1389 8.92594 10.9742 8.09066 10.9742 7.06029C10.9742 6.02992 10.1389 5.19464 9.10857 5.19464C8.0782 5.19464 7.24292 6.02992 7.24292 7.06029C7.24292 8.09066 8.0782 8.92594 9.10857 8.92594Z",fill:"currentColor"}),(0,Jt.jsx)(Wt,{d:"M14.8913 18.942C15.9217 18.942 16.7569 18.1067 16.7569 17.0763C16.7569 16.046 15.9217 15.2107 14.8913 15.2107C13.8609 15.2107 13.0256 16.046 13.0256 17.0763C13.0256 18.1067 13.8609 18.942 14.8913 18.942Z",fill:"currentColor"}),(0,Jt.jsx)(Wt,{fillRule:"evenodd",clipRule:"evenodd",d:"M10.3841 13.0011C9.86951 12.1096 10.1755 10.9674 11.067 10.4525C11.9586 9.93793 13.1007 10.2439 13.6157 11.1355C14.1302 12.0274 13.8242 13.1692 12.9327 13.6841C12.0411 14.1987 10.899 13.8927 10.3841 13.0011V13.0011Z",fill:"currentColor"})]});const Sn=(0,Jt.jsxs)(qt,{fill:"none",viewBox:"0 0 151 148",width:"151",xmlns:"http://www.w3.org/2000/svg",children:[(0,Jt.jsx)(Vt,{cx:"65.6441",cy:"66.6114",fill:"#0b4a43",r:"65.3897"}),(0,Jt.jsxs)(Ht,{fill:"#cbc3f5",stroke:"#0b4a43",children:[(0,Jt.jsx)(Wt,{d:"m61.73 11.3928 3.0825 8.3304.1197.3234.3234.1197 8.3304 3.0825-8.3304 3.0825-.3234.1197-.1197.3234-3.0825 8.3304-3.0825-8.3304-.1197-.3234-.3234-.1197-8.3304-3.0825 8.3304-3.0825.3234-.1197.1197-.3234z",strokeWidth:"1.5"}),(0,Jt.jsx)(Wt,{d:"m84.3065 31.2718c0 5.9939-12.4614 22.323-18.6978 22.323h-17.8958v56.1522c3.5249.9 11.6535 0 17.8958 0h6.2364c11.2074 3.33 36.0089 7.991 45.5529 0l-9.294-62.1623c-2.267-1.7171-5.949-6.6968-2.55-12.8786 3.4-6.1817 2.55-18.0406 0-24.5756-1.871-4.79616-8.3289-8.90882-14.4482-8.90882s-7.0825 4.00668-6.7993 6.01003z",strokeWidth:"1.75"}),(0,Jt.jsx)($t,{height:"45.5077",rx:"9.13723",strokeWidth:"1.75",transform:"matrix(0 1 -1 0 191.5074 -96.0026)",width:"18.2745",x:"143.755",y:"47.7524"}),(0,Jt.jsx)($t,{height:"42.3038",rx:"8.73674",strokeWidth:"1.75",transform:"matrix(0 1 -1 0 241.97 -50.348)",width:"17.4735",x:"146.159",y:"95.811"}),(0,Jt.jsx)($t,{height:"55.9204",rx:"8.73674",strokeWidth:"1.75",transform:"matrix(0 1 -1 0 213.1347 -85.5913)",width:"17.4735",x:"149.363",y:"63.7717"}),(0,Jt.jsx)($t,{height:"51.1145",rx:"8.73674",strokeWidth:"1.75",transform:"matrix(0 1 -1 0 229.1545 -69.5715)",width:"17.4735",x:"149.363",y:"79.7915"}),(0,Jt.jsx)(Wt,{d:"m75.7483 105.349c.9858-25.6313-19.2235-42.0514-32.8401-44.0538v12.0146c8.5438 1.068 24.8303 9.7642 24.8303 36.0442 0 23.228 19.4905 33.374 29.6362 33.641v-10.413s-22.6122-1.602-21.6264-27.233z",strokeWidth:"1.75"}),(0,Jt.jsx)(Wt,{d:"m68.5388 109.354c.9858-25.6312-19.2234-42.0513-32.8401-44.0537v12.0147c8.5438 1.0679 24.8303 9.7641 24.8303 36.044 0 23.228 19.4905 33.374 29.6362 33.641v-10.413s-22.6122-1.602-21.6264-27.233z",strokeWidth:"1.75"})]})]});const Cn=(0,Jt.jsxs)(qt,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Jt.jsx)(Vt,{cx:"12",cy:"12",r:"7.25",stroke:"currentColor",strokeWidth:"1.5"}),(0,Jt.jsx)(Vt,{cx:"12",cy:"12",r:"4.25",stroke:"currentColor",strokeWidth:"1.5"}),(0,Jt.jsx)(Vt,{cx:"11.9999",cy:"12.2",r:"6",transform:"rotate(-45 11.9999 12.2)",stroke:"currentColor",strokeWidth:"3",strokeDasharray:"1.5 4"})]});const _n=(0,Jt.jsx)(qt,{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:(0,Jt.jsx)(Wt,{d:"m11.7758 3.45425c.0917-.18582.3567-.18581.4484 0l2.3627 4.78731c.0364.07379.1068.12493.1882.13676l5.2831.76769c.2051.02979.287.28178.1386.42642l-3.8229 3.72637c-.0589.0575-.0858.1402-.0719.2213l.9024 5.2618c.0351.2042-.1793.36-.3627.2635l-4.7254-2.4842c-.0728-.0383-.1598-.0383-.2326 0l-4.7254 2.4842c-.18341.0965-.39776-.0593-.36274-.2635l.90247-5.2618c.01391-.0811-.01298-.1638-.0719-.2213l-3.8229-3.72637c-.14838-.14464-.0665-.39663.13855-.42642l5.28312-.76769c.08143-.01183.15182-.06297.18823-.13676z",fill:"currentColor"})});const On=(0,Jt.jsx)(qt,{fill:"none",viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg",children:(0,Jt.jsx)(Wt,{clipRule:"evenodd",d:"m13 4c4.9545 0 9 4.04545 9 9 0 4.9545-4.0455 9-9 9-4.95455 0-9-4.0455-9-9 0-4.95455 4.04545-9 9-9zm5.0909 13.4545c-1.9545 3.8637-8.22726 3.8637-10.22726 0-.04546-.1818-.04546-.3636 0-.5454 2-3.8636 8.27276-3.8636 10.22726 0 .0909.1818.0909.3636 0 .5454zm-5.0909-8.90905c-1.2727 0-2.3182 1.04546-2.3182 2.31815 0 1.2728 1.0455 2.3182 2.3182 2.3182s2.3182-1.0454 2.3182-2.3182c0-1.27269-1.0455-2.31815-2.3182-2.31815z",fill:"currentColor",fillRule:"evenodd"})}),En=(0,o.createElement)(qt,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(Wt,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));var Nn=(0,o.forwardRef)((function(e,t){var n,r=e.onClose,i=e.isOpen,a=e.invertedButtonColor,s=e.children,l=e.leftContainerBgColor,c=void 0===l?"bg-white":l,u=e.rightContainerBgColor,d=void 0===u?"bg-gray-100":u,f=(0,o.useRef)(null),p=k((function(e){return e.removeAllModals}));return r=null!==(n=r)&&void 0!==n?n:p,(0,Jt.jsx)(Xe.Root,{appear:!0,show:!0,as:o.Fragment,children:(0,Jt.jsx)(Rt,{as:"div",static:!0,open:i,className:"extendify",initialFocus:null!=t?t:f,onClose:r,children:(0,Jt.jsxs)("div",{className:"fixed inset-0 z-high flex",children:[(0,Jt.jsx)(Xe.Child,{as:o.Fragment,enter:"ease-out duration-50 transition",enterFrom:"opacity-0",enterTo:"opacity-100",children:(0,Jt.jsx)(Rt.Overlay,{className:"fixed inset-0 bg-black bg-opacity-40 transition-opacity"})}),(0,Jt.jsx)(Xe.Child,{as:o.Fragment,enter:"ease-out duration-300 translate transform",enterFrom:"opacity-0 translate-y-4 sm:translate-y-5",enterTo:"opacity-100 translate-y-0",children:(0,Jt.jsx)("div",{className:"m-auto",children:(0,Jt.jsxs)("div",{className:"relative m-8 max-w-md justify-between rounded-sm shadow-modal md:m-0 md:flex md:max-w-2xl",children:[(0,Jt.jsxs)("button",{onClick:r,ref:f,className:"absolute top-0 right-0 block cursor-pointer rounded-md bg-transparent p-4 text-gray-700 opacity-30 hover:opacity-100",style:a&&{filter:"invert(1)"},children:[(0,Jt.jsx)("span",{className:"sr-only",children:(0,Ft.__)("Close","extendify")}),(0,Jt.jsx)(Bt,{icon:En})]}),(0,Jt.jsx)("div",{className:"w-7/12 p-12 ".concat(c),children:s[0]}),(0,Jt.jsx)("div",{className:"hidden w-6/12 md:block ".concat(d),children:s[1]})]})})})]})})})}));function An(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Pn(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){An(i,r,o,a,s,"next",e)}function s(e){An(i,r,o,a,s,"throw",e)}a(void 0)}))}}function Tn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return In(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return In(e,t)}(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.")}()}function In(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}var Ln=function(){var e=Tn((0,o.useState)((0,Ft.__)("Install Extendify","extendify")),2),t=e[0],n=e[1],r=Tn((0,o.useState)(!1),2),i=r[0],s=r[1],l=Tn((0,o.useState)(!1),2),c=l[0],u=l[1],d=(0,o.useRef)(null),f=G((function(e){return e.markNoticeSeen})),p=G((function(e){return e.giveFreebieImports})),h=k((function(e){return e.removeAllModals})),m=function(){var e=Pn(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return h(),f("standalone","modalNotices"),e.next=4,fe("stln-modal-x");case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,Jt.jsxs)(Nn,{ref:d,onClose:m,children:[(0,Jt.jsxs)("div",{children:[(0,Jt.jsx)("div",{className:"mb-10 flex items-center space-x-2 text-extendify-black",children:xn}),(0,Jt.jsx)("h3",{className:"text-xl",children:(0,Ft.__)("Get the brand new Extendify plugin today!","extendify")}),(0,Jt.jsx)("p",{className:"text-sm text-black",dangerouslySetInnerHTML:{__html:fn((0,Ft.sprintf)((0,Ft.__)("Install the new Extendify Library plugin to get the latest we have to offer — right from WordPress.org. Plus, well send you %1$s10 more imports%2$s. Nice.","extendify"),"<strong>","</strong>"))}}),(0,Jt.jsx)("div",{children:(0,Jt.jsxs)("button",{onClick:function(){n((0,Ft.__)("Installing...","extendify")),u(!0),Promise.all([fe("stln-modal-install"),Yt(["extendify"]),new Promise((function(e){return setTimeout(e,1e3)}))]).then(Pn(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n((0,Ft.__)("Success! Reloading...","extendify")),s(!0),p(10),e.next=5,fe("stln-modal-success");case 5:window.location.reload();case 6:case"end":return e.stop()}}),e)})))).catch(function(){var e=Pn(a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.error(t),n((0,Ft.__)("Error. See console.","extendify")),e.next=4,fe("stln-modal-fail");case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},ref:d,disabled:c,className:"button-extendify-main button-focus mt-2 inline-flex justify-center px-4 py-3",style:{minWidth:"225px"},children:[t,i||(0,Jt.jsx)(Dt.Icon,{icon:gn,size:24,className:"ml-2 w-6 flex-grow-0"})]})})]}),(0,Jt.jsx)("div",{className:"flex w-full justify-end rounded-tr-sm rounded-br-sm bg-extendify-secondary",children:(0,Jt.jsx)("img",{alt:(0,Ft.__)("Upgrade Now","extendify"),className:"roudned-br-sm max-w-full rounded-tr-sm",src:window.extendifyData.asset_path+"/modal-extendify-purple.png"})})]})};function Mn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Rn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Rn(e,t)}(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.")}()}function Rn(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 Dn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Fn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fn(e,t)}(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.")}()}function Fn(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}var Bn=function(e,t,n){var r=Dn((0,o.useState)(),2),i=r[0],a=r[1],s=k((function(e){return e.ready}));return(0,o.useLayoutEffect)((function(){if(n||s&&!i||window.extendifyData._canRehydrate){var r=G.getState().testGroup(e,t);a(r)}}),[e,t,i,s,n]),i};function zn(){return zn=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},zn.apply(this,arguments)}function Un(e,t){return Un=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Un(e,t)}var Vn=new Map,Hn=new WeakMap,Wn=0,$n=void 0;function qn(e){return Object.keys(e).sort().filter((function(t){return void 0!==e[t]})).map((function(t){return t+"_"+("root"===t?(n=e.root)?(Hn.has(n)||(Wn+=1,Hn.set(n,Wn.toString())),Hn.get(n)):"0":e[t]);var n})).toString()}function Gn(e,t,n,r){if(void 0===n&&(n={}),void 0===r&&(r=$n),void 0===window.IntersectionObserver&&void 0!==r){var o=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:o,intersectionRect:o,rootBounds:o}),function(){}}var i=function(e){var t=qn(e),n=Vn.get(t);if(!n){var r,o=new Map,i=new IntersectionObserver((function(t){t.forEach((function(t){var n,i=t.isIntersecting&&r.some((function(e){return t.intersectionRatio>=e}));e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=i),null==(n=o.get(t.target))||n.forEach((function(e){e(i,t)}))}))}),e);r=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:o},Vn.set(t,n)}return n}(n),a=i.id,s=i.observer,l=i.elements,c=l.get(e)||[];return l.has(e)||l.set(e,c),c.push(t),s.observe(e),function(){c.splice(c.indexOf(t),1),0===c.length&&(l.delete(e),s.unobserve(e)),0===l.size&&(s.disconnect(),Vn.delete(a))}}var Jn=["children","as","tag","triggerOnce","threshold","root","rootMargin","onChange","skip","trackVisibility","delay","initialInView","fallbackInView"];function Kn(e){return"function"!=typeof e.children}var Xn=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).node=null,n._unobserveCb=null,n.handleNode=function(e){n.node&&(n.unobserve(),e||n.props.triggerOnce||n.props.skip||n.setState({inView:!!n.props.initialInView,entry:void 0})),n.node=e||null,n.observeNode()},n.handleChange=function(e,t){e&&n.props.triggerOnce&&n.unobserve(),Kn(n.props)||n.setState({inView:e,entry:t}),n.props.onChange&&n.props.onChange(e,t)},n.state={inView:!!t.initialInView,entry:void 0},n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,Un(t,n);var o=r.prototype;return o.componentDidUpdate=function(e){e.rootMargin===this.props.rootMargin&&e.root===this.props.root&&e.threshold===this.props.threshold&&e.skip===this.props.skip&&e.trackVisibility===this.props.trackVisibility&&e.delay===this.props.delay||(this.unobserve(),this.observeNode())},o.componentWillUnmount=function(){this.unobserve(),this.node=null},o.observeNode=function(){if(this.node&&!this.props.skip){var e=this.props,t=e.threshold,n=e.root,r=e.rootMargin,o=e.trackVisibility,i=e.delay,a=e.fallbackInView;this._unobserveCb=Gn(this.node,this.handleChange,{threshold:t,root:n,rootMargin:r,trackVisibility:o,delay:i},a)}},o.unobserve=function(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)},o.render=function(){if(!Kn(this.props)){var e=this.state,t=e.inView,n=e.entry;return this.props.children({inView:t,entry:n,ref:this.handleNode})}var r=this.props,o=r.children,i=r.as,a=r.tag,l=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}(r,Jn);return s.createElement(i||a||"div",zn({ref:this.handleNode},l),o)},r}(s.Component);function Zn(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 Yn(){return Yn=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},Yn.apply(this,arguments)}function Qn(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 er(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qn(Object(n),!0).forEach((function(t){tr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Xn.displayName="InView",Xn.defaultProps={threshold:0,triggerOnce:!1,initialInView:!1};const nr={breakpointCols:void 0,className:void 0,columnClassName:void 0,children:void 0,columnAttrs:void 0,column:void 0};class rr extends l().Component{constructor(e){let t;super(e),this.reCalculateColumnCount=this.reCalculateColumnCount.bind(this),this.reCalculateColumnCountDebounce=this.reCalculateColumnCountDebounce.bind(this),t=this.props.breakpointCols&&this.props.breakpointCols.default?this.props.breakpointCols.default:parseInt(this.props.breakpointCols)||2,this.state={columnCount:t}}componentDidMount(){this.reCalculateColumnCount(),window&&window.addEventListener("resize",this.reCalculateColumnCountDebounce)}componentDidUpdate(){this.reCalculateColumnCount()}componentWillUnmount(){window&&window.removeEventListener("resize",this.reCalculateColumnCountDebounce)}reCalculateColumnCountDebounce(){window&&window.requestAnimationFrame?(window.cancelAnimationFrame&&window.cancelAnimationFrame(this._lastRecalculateAnimationFrame),this._lastRecalculateAnimationFrame=window.requestAnimationFrame((()=>{this.reCalculateColumnCount()}))):this.reCalculateColumnCount()}reCalculateColumnCount(){const e=window&&window.innerWidth||1/0;let t=this.props.breakpointCols;"object"!=typeof t&&(t={default:parseInt(t)||2});let n=1/0,r=t.default||2;for(let o in t){const i=parseInt(o);i>0&&e<=i&&i<n&&(n=i,r=t[o])}r=Math.max(1,parseInt(r)||1),this.state.columnCount!==r&&this.setState({columnCount:r})}itemsInColumns(){const e=this.state.columnCount,t=new Array(e),n=l().Children.toArray(this.props.children);for(let r=0;r<n.length;r++){const o=r%e;t[o]||(t[o]=[]),t[o].push(n[r])}return t}renderColumns(){const{column:e,columnAttrs:t={},columnClassName:n}=this.props,r=this.itemsInColumns(),o=100/r.length+"%";let i=n;i&&"string"!=typeof i&&(this.logDeprecated('The property "columnClassName" requires a string'),void 0===i&&(i="my-masonry-grid_column"));const a=er(er(er({},e),t),{},{style:er(er({},t.style),{},{width:o}),className:i});return r.map(((e,t)=>l().createElement("div",Yn({},a,{key:t}),e)))}logDeprecated(e){console.error("[Masonry]",e)}render(){const e=this.props,{children:t,breakpointCols:n,columnClassName:r,columnAttrs:o,column:i,className:a}=e,s=Zn(e,["children","breakpointCols","columnClassName","columnAttrs","column","className"]);let c=a;return"string"!=typeof a&&(this.logDeprecated('The property "className" requires a string'),void 0===a&&(c="my-masonry-grid")),l().createElement("div",Yn({},s,{className:c}),this.renderColumns())}}rr.defaultProps=nr;const or=rr;function ir(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function ar(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ir(i,r,o,a,s,"next",e)}function s(e){ir(i,r,o,a,s,"throw",e)}a(void 0)}))}}var sr=0,lr=function(e){var t=arguments;return ar(a().mark((function n(){var r,o,i,s,l;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o=t.length>1&&void 0!==t[1]?t[1]:{},sr++,i="pattern"===e.type?"8":"4",s="pattern"===e.type?"patternType":"layoutType",l=Object.assign({filterByFormula:dr(e,s),pageSize:i,categories:e.taxonomies,search:e.search,type:e.type,offset:"",initial:1===sr,request_count:sr,sdk_partner:null!==(r=G.getState().sdkPartner)&&void 0!==r?r:""},o),n.next=7,J.post("templates",l);case 7:return n.abrupt("return",n.sent);case 8:case"end":return n.stop()}}),n)})))()},cr=function(e){var t,n,r,o,i,a,s=null!==(t=null===(n=ue.getState())||void 0===n||null===(r=n.searchParams)||void 0===r?void 0:r.taxonomies)&&void 0!==t?t:[];return J.post("templates/".concat(e.id),{template_id:null==e?void 0:e.id,categories:s,maybe_import:!0,type:null===(o=e.fields)||void 0===o?void 0:o.type,sdk_partner:null!==(i=G.getState().sdkPartner)&&void 0!==i?i:"",pageSize:"1",template_name:null===(a=e.fields)||void 0===a?void 0:a.title})},ur=function(e){var t,n,r,o,i,a,s,l,c,u=null!==(t=null===(n=ue.getState())||void 0===n||null===(r=n.searchParams)||void 0===r?void 0:r.taxonomies)&&void 0!==t?t:[];return J.post("templates/".concat(e.id),{template_id:e.id,categories:u,imported:!0,basePattern:null!==(o=null!==(i=null===(a=e.fields)||void 0===a?void 0:a.basePattern)&&void 0!==i?i:null===(s=e.fields)||void 0===s?void 0:s.baseLayout)&&void 0!==o?o:"",type:e.fields.type,sdk_partner:null!==(l=G.getState().sdkPartner)&&void 0!==l?l:"",pageSize:"1",template_name:null===(c=e.fields)||void 0===c?void 0:c.title})},dr=function(e,t){var n,r,o=e.taxonomies,i=null==o||null===(n=o.siteType)||void 0===n?void 0:n.slug,a=['{type}="'.concat(t.replace("Type",""),'"'),'{siteType}="'.concat(i,'"')];return null!==(r=o[t])&&void 0!==r&&r.slug&&a.push("{".concat(t,'}="').concat(o[t].slug,'"')),"AND(".concat(a.join(", "),")").replace(/\r?\n|\r/g,"")};const fr=wp.blockEditor;function pr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return hr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hr(e,t)}(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.")}()}function hr(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}var mr=function(){var e=pr((0,o.useState)(!1),2),t=e[0],n=e[1];return(0,o.useEffect)((function(){var e=function(){return n(window.location.search.indexOf("DEVMODE")>-1||window.location.search.indexOf("LOCALMODE")>-1)};return e(),window.addEventListener("popstate",e),function(){window.removeEventListener("popstate",e)}}),[]),t};function xr(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function yr(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){xr(i,r,o,a,s,"next",e)}function s(e){xr(i,r,o,a,s,"throw",e)}a(void 0)}))}}var vr=[],gr=[];function br(e){return wr.apply(this,arguments)}function wr(){return(wr=yr(a().mark((function e(t){var n,r,o,i,s,l,c;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l=(l=null!==(n=null==t||null===(r=t.fields)||void 0===r?void 0:r.required_plugins)&&void 0!==n?n:[]).filter((function(e){return"editorplus"!==e})),null!==(o=l)&&void 0!==o&&o.length){e.next=4;break}return e.abrupt("return",!1);case 4:if(null!==(i=vr)&&void 0!==i&&i.length){e.next=10;break}return e.t0=Object,e.next=8,Zt();case 8:e.t1=e.sent,vr=e.t0.keys.call(e.t0,e.t1);case 10:return c=!(null===(s=l)||void 0===s||!s.length)&&l.filter((function(e){return!vr.some((function(t){return t.includes(e)}))})),e.abrupt("return",c.length);case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function jr(e){return kr.apply(this,arguments)}function kr(){return(kr=yr(a().mark((function e(t){var n,r,o,i,s,l,c;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l=(l=null!==(n=null==t||null===(r=t.fields)||void 0===r?void 0:r.required_plugins)&&void 0!==n?n:[]).filter((function(e){return"editorplus"!==e})),null!==(o=l)&&void 0!==o&&o.length){e.next=4;break}return e.abrupt("return",!1);case 4:if(null!==(i=gr)&&void 0!==i&&i.length){e.next=10;break}return e.t0=Object,e.next=8,Qt();case 8:e.t1=e.sent,gr=e.t0.values.call(e.t0,e.t1);case 10:if(!(c=!(null===(s=l)||void 0===s||!s.length)&&l.filter((function(e){return!gr.some((function(t){return t.includes(e)}))})))){e.next=16;break}return e.next=14,br(t);case 14:if(!e.sent){e.next=16;break}return e.abrupt("return",!1);case 16:return e.abrupt("return",null==c?void 0:c.length);case 17:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Sr=d(b((function(e){return{wantedTemplate:{},importOnLoad:!1,setWanted:function(t){return e({wantedTemplate:t})},removeWanted:function(){return e({wantedTemplate:{}})}}}),{name:"extendify-wanted-template"}));var Cr=function(e){return _r(e,"open")};function _r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"broken-event",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"open";G.setState({entryPoint:e}),window.dispatchEvent(new CustomEvent("extendify::".concat(t,"-library"),{detail:e,bubbles:!0}))}function Or(e){switch(e){case"editorplus":return"Editor Plus";case"ml-slider":return"MetaSlider"}return e}function Er(e){switch(e){case"siteType":return"Site Type";case"patternType":return"Content";case"layoutType":return"Page Types"}return e}function Nr(){var e,t,n,r=Sr((function(e){return e.wantedTemplate})),i=(null==r||null===(e=r.fields)||void 0===e?void 0:e.required_plugins)||[];return(0,Jt.jsxs)(Dt.Modal,{title:(0,Ft.__)("Plugins required","extendify"),isDismissible:!1,children:[(0,Jt.jsx)("p",{style:{maxWidth:"400px"},children:(0,Ft.sprintf)((0,Ft.__)("In order to add this %s to your site, the following plugins are required to be installed and activated.","extendify"),null!==(t=null==r||null===(n=r.fields)||void 0===n?void 0:n.type)&&void 0!==t?t:"template")}),(0,Jt.jsx)("ul",{children:i.filter((function(e){return"editorplus"!==e})).map((function(e){return(0,Jt.jsx)("li",{children:Or(e)},e)}))}),(0,Jt.jsx)("p",{style:{maxWidth:"400px",fontWeight:"bold"},children:(0,Ft.__)("Please contact a site admin for assistance in adding these plugins to your site.","extendify")}),(0,Jt.jsx)(Dt.Button,{isPrimary:!0,onClick:function(){return(0,o.render)((0,Jt.jsx)(da,{show:!0}),document.getElementById("extendify-root"))},style:{boxShadow:"none"},children:(0,Ft.__)("Return to library","extendify")})]})}const Ar=wp.data;function Pr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Tr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Tr(e,t)}(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.")}()}function Tr(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 Ir(){var e=Pr((0,o.useState)(!1),2),t=e[0],n=e[1],r=function(){};return(0,(0,Ar.select)("core/editor").isEditedPostDirty)()?(0,Jt.jsxs)(Dt.Modal,{title:(0,Ft.__)("Reload required","extendify"),isDismissible:!1,children:[(0,Jt.jsx)("p",{style:{maxWidth:"400px"},children:(0,Ft.__)("Just one more thing! We need to reload the page to continue.","extendify")}),(0,Jt.jsxs)(Dt.ButtonGroup,{children:[(0,Jt.jsx)(Dt.Button,{isPrimary:!0,onClick:r,disabled:t,children:(0,Ft.__)("Reload page","extendify")}),(0,Jt.jsx)(Dt.Button,{isSecondary:!0,onClick:function(){n(!0),(0,Ar.dispatch)("core/editor").savePost(),n(!1)},isBusy:t,style:{margin:"0 4px"},children:(0,Ft.__)("Save changes","extendify")})]})]}):null}function Lr(e){var t=e.msg;return(0,Jt.jsxs)(Dt.Modal,{style:{maxWidth:"500px"},title:(0,Ft.__)("Error Activating plugins","extendify"),isDismissible:!1,children:[(0,Ft.__)("You have encountered an error that we cannot recover from. Please try again.","extendify"),(0,Jt.jsx)("br",{}),(0,Jt.jsx)(Dt.Notice,{isDismissible:!1,status:"error",children:t}),(0,Jt.jsx)(Dt.Button,{isPrimary:!0,onClick:function(){(0,o.render)((0,Jt.jsx)(zr,{}),document.getElementById("extendify-root"))},children:(0,Ft.__)("Go back","extendify")})]})}function Mr(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Rr(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Mr(i,r,o,a,s,"next",e)}function s(e){Mr(i,r,o,a,s,"throw",e)}a(void 0)}))}}function Dr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Fr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fr(e,t)}(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.")}()}function Fr(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 Br(){var e,t=Dr((0,o.useState)(""),2),n=t[0],r=t[1],i=Sr((function(e){return e.wantedTemplate})),s=null==i||null===(e=i.fields)||void 0===e?void 0:e.required_plugins.filter((function(e){return"editorplus"!==e}));return Yt(s).then((function(){Sr.setState({importOnLoad:!0})})).then(Rr(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new Promise((function(e){return setTimeout(e,1e3)}));case 2:(0,o.render)((0,Jt.jsx)(Ir,{}),document.getElementById("extendify-root"));case 3:case"end":return e.stop()}}),e)})))).catch((function(e){var t=e.response;r(t.data.message)})),n?(0,Jt.jsx)(Lr,{msg:n}):(0,Jt.jsx)(Dt.Modal,{title:(0,Ft.__)("Activating plugins","extendify"),isDismissible:!1,children:(0,Jt.jsx)(Dt.Button,{style:{width:"100%"},disabled:!0,isPrimary:!0,isBusy:!0,onClick:function(){},children:(0,Ft.__)("Activating...","extendify")})})}function zr(e){var t,n,r,i,a,s=Sr((function(e){return e.wantedTemplate})),l=(null==s||null===(t=s.fields)||void 0===t?void 0:t.required_plugins)||[];return null!==(n=G.getState())&&void 0!==n&&n.canActivatePlugins?(0,Jt.jsx)(Dt.Modal,{title:(0,Ft.__)("Activate required plugins","extendify"),isDismissible:!1,children:(0,Jt.jsxs)("div",{children:[(0,Jt.jsx)("p",{style:{maxWidth:"400px"},children:null!==(r=e.message)&&void 0!==r?r:(0,Ft.__)((0,Ft.sprintf)("There is just one more step. This %s requires the following plugins to be installed and activated:",null!==(i=null==s||null===(a=s.fields)||void 0===a?void 0:a.type)&&void 0!==i?i:"template"),"extendify")}),(0,Jt.jsx)("ul",{children:l.filter((function(e){return"editorplus"!==e})).map((function(e){return(0,Jt.jsx)("li",{children:Or(e)},e)}))}),(0,Jt.jsxs)(Dt.ButtonGroup,{children:[(0,Jt.jsx)(Dt.Button,{isPrimary:!0,onClick:function(){return(0,o.render)((0,Jt.jsx)(Br,{}),document.getElementById("extendify-root"))},children:(0,Ft.__)("Activate Plugins","extendify")}),e.showClose&&(0,Jt.jsx)(Dt.Button,{isTertiary:!0,onClick:function(){return(0,o.render)((0,Jt.jsx)(da,{show:!0}),document.getElementById("extendify-root"))},style:{boxShadow:"none",margin:"0 4px"},children:(0,Ft.__)("No thanks, return to library","extendify")})]})]})}):(0,Jt.jsx)(Nr,{})}function Ur(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}var Vr=function(){var e,t=(e=a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,jr(t);case 2:return e.t0=!e.sent,e.t1=function(){},e.t2=function(){return new Promise((function(){(0,o.render)((0,Jt.jsx)(zr,{showClose:!0}),document.getElementById("extendify-root"))}))},e.abrupt("return",{id:"hasPluginsActivated",pass:e.t0,allow:e.t1,deny:e.t2});case 6:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Ur(i,r,o,a,s,"next",e)}function s(e){Ur(i,r,o,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}();function Hr(e){var t=e.msg;return(0,Jt.jsxs)(Dt.Modal,{style:{maxWidth:"500px"},title:(0,Ft.__)("Error installing plugins","extendify"),isDismissible:!1,children:[(0,Ft.__)("You have encountered an error that we cannot recover from. Please try again.","extendify"),(0,Jt.jsx)("br",{}),(0,Jt.jsx)(Dt.Notice,{isDismissible:!1,status:"error",children:t}),(0,Jt.jsx)(Dt.Button,{isPrimary:!0,onClick:function(){return(0,o.render)((0,Jt.jsx)(Gr,{}),document.getElementById("extendify-root"))},children:(0,Ft.__)("Go back","extendify")})]})}function Wr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return $r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $r(e,t)}(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.")}()}function $r(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 qr(e){var t,n=e.requiredPlugins,r=Wr((0,o.useState)(""),2),i=r[0],a=r[1],s=Sr((function(e){return e.wantedTemplate})),l=null!=n?n:null==s||null===(t=s.fields)||void 0===t?void 0:t.required_plugins.filter((function(e){return"editorplus"!==e}));return Yt(l).then((function(){Sr.setState({importOnLoad:!0}),(0,o.render)((0,Jt.jsx)(Ir,{}),document.getElementById("extendify-root"))})).catch((function(e){var t=e.message;a(t)})),i?(0,Jt.jsx)(Hr,{msg:i}):(0,Jt.jsx)(Dt.Modal,{title:(0,Ft.__)("Installing plugins","extendify"),isDismissible:!1,children:(0,Jt.jsx)(Dt.Button,{style:{width:"100%"},disabled:!0,isPrimary:!0,isBusy:!0,onClick:function(){},children:(0,Ft.__)("Installing...","extendify")})})}function Gr(e){var t,n,r,i,a,s=e.forceOpen,l=e.buttonLabel,c=e.title,u=e.message,d=e.requiredPlugins,f=Sr((function(e){return e.wantedTemplate}));d=null!==(t=d)&&void 0!==t?t:null==f||null===(n=f.fields)||void 0===n?void 0:n.required_plugins;return null!==(r=G.getState())&&void 0!==r&&r.canInstallPlugins?(0,Jt.jsxs)(Dt.Modal,{title:null!=c?c:(0,Ft.__)("Install required plugins","extendify"),isDismissible:!1,children:[(0,Jt.jsx)("p",{style:{maxWidth:"400px"},children:null!=u?u:(0,Ft.__)((0,Ft.sprintf)("There is just one more step. This %s requires the following to be automatically installed and activated:",null!==(i=null==f||null===(a=f.fields)||void 0===a?void 0:a.type)&&void 0!==i?i:"template"),"extendify")}),(null==u?void 0:u.length)>0||(0,Jt.jsx)("ul",{children:d.filter((function(e){return"editorplus"!==e})).map((function(e){return(0,Jt.jsx)("li",{children:Or(e)},e)}))}),(0,Jt.jsxs)(Dt.ButtonGroup,{children:[(0,Jt.jsx)(Dt.Button,{isPrimary:!0,onClick:function(){return(0,o.render)((0,Jt.jsx)(qr,{requiredPlugins:d}),document.getElementById("extendify-root"))},children:null!=l?l:(0,Ft.__)("Install Plugins","extendify")}),s||(0,Jt.jsx)(Dt.Button,{isTertiary:!0,onClick:function(){s||(0,o.render)((0,Jt.jsx)(da,{show:!0}),document.getElementById("extendify-root"))},style:{boxShadow:"none",margin:"0 4px"},children:(0,Ft.__)("No thanks, take me back","extendify")})]})]}):(0,Jt.jsx)(Nr,{})}function Jr(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}var Kr=function(){var e,t=(e=a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,br(t);case 2:return e.t0=!e.sent,e.t1=function(){},e.t2=function(){return new Promise((function(){(0,o.render)((0,Jt.jsx)(Gr,{}),document.getElementById("extendify-root"))}))},e.abrupt("return",{id:"hasRequiredPlugins",pass:e.t0,allow:e.t1,deny:e.t2});case 6:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Jr(i,r,o,a,s,"next",e)}function s(e){Jr(i,r,o,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}();function Xr(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Zr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Zr(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Zr(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 Yr(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Qr(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Yr(i,r,o,a,s,"next",e)}function s(e){Yr(i,r,o,a,s,"throw",e)}a(void 0)}))}}function eo(e){return new ro(e)}function to(e){return function(){return new no(e.apply(this,arguments))}}function no(e){var t,n;function r(t,n){try{var i=e[t](n),a=i.value,s=a instanceof ro;Promise.resolve(s?a.wrapped:a).then((function(e){s?r("return"===t?"return":"next",e):o(i.done?"return":"normal",e)}),(function(e){r("throw",e)}))}catch(e){o("throw",e)}}function o(e,o){switch(e){case"return":t.resolve({value:o,done:!0});break;case"throw":t.reject(o);break;default:t.resolve({value:o,done:!1})}(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,o){return new Promise((function(i,a){var s={key:e,arg:o,resolve:i,reject:a,next:null};n?n=n.next=s:(t=n=s,r(e,o))}))},"function"!=typeof e.return&&(this.return=void 0)}function ro(e){this.wrapped=e}no.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},no.prototype.next=function(e){return this._invoke("next",e)},no.prototype.throw=function(e){return this._invoke("throw",e)},no.prototype.return=function(e){return this._invoke("return",e)};function oo(e){return io.apply(this,arguments)}function io(){return(io=Qr(a().mark((function e(t){var n,r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=ao(t.stack);case 1:return r=void 0,e.prev=3,e.next=6,n.next();case 6:r=e.sent,e.next=13;break;case 9:throw e.prev=9,e.t0=e.catch(3),t.reset(),"Middleware exited";case 13:if(!r.done){e.next=15;break}return e.abrupt("break",17);case 15:e.next=1;break;case 17:case"end":return e.stop()}}),e,null,[[3,9]])})))).apply(this,arguments)}function ao(e){return so.apply(this,arguments)}function so(){return(so=to(a().mark((function e(t){var n,r,o;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=Xr(t),e.prev=1,n.s();case 3:if((r=n.n()).done){e.next=11;break}return o=r.value,e.next=7,eo(o());case 7:return e.next=9,e.sent;case 9:e.next=3;break;case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(1),n.e(e.t0);case 16:return e.prev=16,n.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[1,13,16,19]])})))).apply(this,arguments)}function lo(e,t){var n=(0,Ar.dispatch)("core/block-editor"),r=n.insertBlocks,o=n.replaceBlock,i=(0,Ar.select)("core/block-editor"),a=i.getSelectedBlock,s=i.getBlockHierarchyRootClientId,l=i.getBlockIndex,c=i.getGlobalBlockCount,u=a()||{},d=u.clientId,f=u.name,p=u.attributes,h=d?s(d):"",m=(h?l(h):c())+1;return("core/paragraph"===f&&""===(null==p?void 0:p.content)?o(d,e):r(e,m)).then((function(){return window.dispatchEvent(new CustomEvent("extendify::template-inserted",{detail:{template:t},bubbles:!0}))}))}var co=n(306);function uo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return fo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fo(e,t)}(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.")}()}function fo(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}var po=function(e){var t,n,r,i,a,s=e.template,l=null!=s&&null!==(t=s.fields)&&void 0!==t&&null!==(n=t.basePattern)&&void 0!==n&&n.length?null==s||null===(r=s.fields)||void 0===r?void 0:r.basePattern[0]:"",c=uo((0,o.useState)(l),2),u=c[0],d=c[1];return(0,o.useEffect)((function(){null!=l&&l.length&&u!==l&&setTimeout((function(){return d(l)}),1e3)}),[u,l]),l?(0,Jt.jsxs)("div",{className:"absolute bottom-0 left-0 z-50 mb-4 ml-4 flex items-center space-x-2 opacity-0 transition duration-100 group-hover:opacity-100 space-x-0.5",children:[(0,Jt.jsx)(co.CopyToClipboard,{text:null==s||null===(i=s.fields)||void 0===i?void 0:i.basePattern,onCopy:function(){return d((0,Ft.__)("Copied!","extendify"))},children:(0,Jt.jsx)("button",{className:"text-sm rounded-md border border-black bg-white py-1 px-2.5 font-medium text-black no-underline m-0 cursor-pointer",children:(0,Ft.sprintf)((0,Ft.__)("Base: %s","extendify"),u)})}),(0,Jt.jsx)("a",{target:"_blank",className:"text-sm rounded-md border border-black bg-white py-1 px-2.5 font-medium text-black no-underline m-0",href:null==s||null===(a=s.fields)||void 0===a?void 0:a.editURL,rel:"noreferrer",children:(0,Ft.__)("Edit","extendify")})]}):null};function ho(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 mo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ho(Object(n),!0).forEach((function(t){xo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ho(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yo=(0,o.forwardRef)((function(e,t){var n,r=e.isOpen,i=e.heading,a=e.onClose,s=e.children,l=(0,o.useRef)(null),c=k((function(e){return e.removeAllModals}));return a=null!==(n=a)&&void 0!==n?n:c,(0,Jt.jsx)(Xe,{appear:!0,show:r,as:o.Fragment,className:"extendify",children:(0,Jt.jsx)(Rt,{initialFocus:null!=t?t:l,onClose:a,children:(0,Jt.jsxs)("div",{className:"fixed inset-0 z-high flex",children:[(0,Jt.jsx)(Xe.Child,{as:o.Fragment,enter:"ease-out duration-200 transition",enterFrom:"opacity-0",enterTo:"opacity-100",children:(0,Jt.jsx)(Rt.Overlay,{className:"fixed inset-0 bg-black bg-opacity-40"})}),(0,Jt.jsx)(Xe.Child,{as:o.Fragment,enter:"ease-out duration-300 translate transform",enterFrom:"opacity-0 translate-y-4 sm:translate-y-5",enterTo:"opacity-100 translate-y-0",children:(0,Jt.jsx)("div",{className:"relative m-auto w-full",children:(0,Jt.jsxs)("div",{className:"relative m-auto w-full max-w-lg items-center justify-center rounded-sm bg-white shadow-modal",children:[i?(0,Jt.jsxs)("div",{className:"flex items-center justify-between border-b py-2 pl-6 pr-3 leading-none",children:[(0,Jt.jsx)("span",{className:"whitespace-nowrap text-base text-extendify-black",children:i}),(0,Jt.jsx)(vo,{onClick:a})]}):(0,Jt.jsx)("div",{className:"absolute top-0 right-0 block px-4 py-4 ",children:(0,Jt.jsx)(vo,{ref:l,onClick:a})}),(0,Jt.jsx)("div",{children:s})]})})})]})})})})),vo=(0,o.forwardRef)((function(e,t){return(0,Jt.jsx)(Dt.Button,mo(mo({},e),{},{icon:(0,Jt.jsx)(Bt,{icon:En}),ref:t,className:"text-extendify-black opacity-75 hover:opacity-100",showTooltip:!1,label:(0,Ft.__)("Close dialog","extendify")}))}));function go(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function bo(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){go(i,r,o,a,s,"next",e)}function s(e){go(i,r,o,a,s,"throw",e)}a(void 0)}))}}function wo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return jo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jo(e,t)}(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.")}()}function jo(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}var ko=function(){var e=wo((0,o.useState)(!1),2),t=e[0],n=e[1],r=wo((0,o.useState)(!1),2),i=r[0],s=r[1],l=mr(),c=function(){var e=bo(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=2;break}return e.abrupt("return");case 2:if(n(!0),!i){e.next=11;break}return s(!1),G.setState({participatingTestsGroups:[]}),e.next=8,G.persist.rehydrate();case 8:return window.extendifyData._canRehydrate=!1,n(!1),e.abrupt("return");case 11:return G.persist.clearStorage(),k.persist.clearStorage(),e.next=15,new Promise((function(e){return setTimeout(e,1e3)}));case 15:window.extendifyData._canRehydrate=!0,s(!0),n(!1);case 18:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),u=function(){var e=bo(a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new URLSearchParams(window.location.search)).delete("LOCALMODE",1),t[t.has("DEVMODE")||l?"delete":"append"]("DEVMODE",1),window.history.replaceState(null,null,window.location.pathname+"?"+t.toString()),e.next=6,new Promise((function(e){return setTimeout(e,500)}));case 6:window.dispatchEvent(new Event("popstate")),ue.getState().resetTemplates(),ue.getState().updateSearchParams({}),Q.persist.clearStorage(),Q.persist.rehydrate(),ue.setState({taxonomyDefaultState:{}}),Q.getState().fetchTaxonomies().then((function(){ue.getState().setupDefaultTaxonomies()}));case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return window.extendifyData.devbuild?(0,Jt.jsxs)("section",{className:"p-6 flex flex-col space-y-6 border-l-8 border-extendify-secondary",children:[(0,Jt.jsxs)("div",{children:[(0,Jt.jsx)("p",{className:"text-base m-0 text-extendify-black",children:"Development Settings"}),(0,Jt.jsx)("p",{className:"text-sm italic m-0 text-gray-500",children:"Only available on dev builds"})]}),(0,Jt.jsxs)("div",{className:"flex space-x-2",children:[(0,Jt.jsxs)(Dt.Button,{isSecondary:!0,onClick:u,children:["Switch to ",l?"Live":"Dev"," Server"]}),(0,Jt.jsx)(Dt.Button,{isSecondary:!0,onClick:c,children:t?"Processing...":i?"OK! Press to rehydrate app":"Reset User Data"})]})]}):null};function So(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Co(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){So(i,r,o,a,s,"next",e)}function s(e){So(i,r,o,a,s,"throw",e)}a(void 0)}))}}function _o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Oo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Oo(e,t)}(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.")}()}function Oo(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 Eo(e){var t=e.actionCallback,n=e.initialFocus,r=G((function(e){return e.apiKey.length})),i=_o((0,o.useState)(""),2),s=i[0],l=i[1],c=_o((0,o.useState)(""),2),u=c[0],d=c[1],f=_o((0,o.useState)(""),2),p=f[0],h=f[1],m=_o((0,o.useState)("info"),2),x=m[0],y=m[1],v=_o((0,o.useState)(!1),2),g=v[0],b=v[1],w=_o((0,o.useState)(!1),2),j=w[0],k=w[1],S=(0,o.useRef)(null),C=(0,o.useRef)(null),_=mr();(0,o.useEffect)((function(){return l(G.getState().email),function(){return y("info")}}),[]),(0,o.useEffect)((function(){var e;j&&(null==S||null===(e=S.current)||void 0===e||e.focus())}),[j]);var O=function(){var e=Co(a().mark((function e(t){var n,r,o,i,l;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),b(!0),h(""),e.next=5,A(s,u);case 5:if(n=e.sent,r=n.token,o=n.error,i=n.exception,void 0===(l=n.message)){e.next=15;break}return y("error"),b(!1),h(null!=l&&l.length?l:"Error: Are you interacting with the wrong server?"),e.abrupt("return");case 15:if(!o&&!i){e.next=20;break}return y("error"),b(!1),h(null!=o&&o.length?o:i),e.abrupt("return");case 20:if(r&&"string"==typeof r){e.next=25;break}return y("error"),b(!1),h((0,Ft.__)("Something went wrong","extendify")),e.abrupt("return");case 25:y("success"),h("Success!"),k(!0),b(!1),G.setState({email:s,apiKey:r});case 30:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return j?(0,Jt.jsxs)("section",{className:"space-y-6 p-6 text-center flex flex-col items-center",children:[(0,Jt.jsx)(Bt,{icon:Sn,size:148}),(0,Jt.jsx)("p",{className:"text-center text-lg font-semibold m-0 text-extendify-black",children:(0,Ft.__)("You've signed in to Extendify","extendify")}),(0,Jt.jsx)(Dt.Button,{ref:S,className:"cursor-pointer rounded bg-extendify-main p-2 px-4 text-center text-white",onClick:t,children:(0,Ft.__)("View patterns","extendify")})]}):r?(0,Jt.jsxs)("section",{className:"w-full space-y-6 p-6",children:[(0,Jt.jsx)("p",{className:"text-base m-0 text-extendify-black",children:(0,Ft.__)("Account","extendify")}),(0,Jt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Jt.jsxs)("div",{className:"-ml-2 flex items-center space-x-2",children:[(0,Jt.jsx)(Bt,{icon:On,size:48}),(0,Jt.jsx)("p",{className:"text-extendify-black",children:null!=s&&s.length?s:(0,Ft.__)("Logged In","extendify")})]}),_&&(0,Jt.jsx)(Dt.Button,{className:"cursor-pointer rounded bg-extendify-main px-4 py-3 text-center text-white hover:bg-extendify-main-dark",onClick:function(){d(""),G.setState({apiKey:""}),setTimeout((function(){var e;null==C||null===(e=C.current)||void 0===e||e.focus()}),0)},children:(0,Ft.__)("Sign out","extendify")})]})]}):(0,Jt.jsxs)("section",{className:"space-y-6 p-6 text-left",children:[(0,Jt.jsxs)("div",{children:[(0,Jt.jsx)("p",{className:"text-center text-lg font-semibold m-0 text-extendify-black",children:(0,Ft.__)("Sign in to Extendify","extendify")}),(0,Jt.jsxs)("p",{className:"space-x-1 text-center text-sm m-0 text-extendify-gray",children:[(0,Jt.jsx)("span",{children:(0,Ft.__)("Don't have an account?","extendify")}),(0,Jt.jsx)("a",{href:"https://extendify.com/pricing?utm_source=".concat(window.extendifyData.sdk_partner,"&utm_medium=library&utm_campaign=sign-in-form&utm_content=sign-up&utm_group=").concat(G.getState().activeTestGroupsUtmValue()),target:"_blank",onClick:Co(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fe("sign-up-link-from-login-modal-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),className:"underline hover:no-underline text-extendify-gray",rel:"noreferrer",children:(0,Ft.__)("Sign up","extendify")})]})]}),(0,Jt.jsxs)("form",{onSubmit:O,className:"flex flex-col items-center justify-center space-y-2",children:[(0,Jt.jsxs)("div",{className:"flex items-center",children:[(0,Jt.jsx)("label",{className:"sr-only",htmlFor:"extendify-login-email",children:(0,Ft.__)("Email address","extendify")}),(0,Jt.jsx)("input",{ref:n,id:"extendify-login-email",name:"extendify-login-email",style:{minWidth:"320px"},type:"email",className:"w-full rounded border-2 p-2",placeholder:(0,Ft.__)("Email address","extendify"),value:s.length?s:"",onChange:function(e){return l(e.target.value)}})]}),(0,Jt.jsxs)("div",{className:"flex items-center",children:[(0,Jt.jsx)("label",{className:"sr-only",htmlFor:"extendify-login-license",children:(0,Ft.__)("License key","extendify")}),(0,Jt.jsx)("input",{ref:C,id:"extendify-login-license",name:"extendify-login-license",style:{minWidth:"320px"},type:"text",className:"w-full rounded border-2 p-2",placeholder:(0,Ft.__)("License key","extendify"),value:u,onChange:function(e){return d(e.target.value)}})]}),(0,Jt.jsx)("div",{className:"flex justify-center pt-2",children:(0,Jt.jsxs)("button",{type:"submit",className:"relative flex w-72 max-w-full cursor-pointer justify-center rounded bg-extendify-main p-2 py-3 text-center text-base text-white hover:bg-extendify-main-dark ",children:[(0,Jt.jsx)("span",{children:(0,Ft.__)("Sign In","extendify")}),g&&(0,Jt.jsx)("div",{className:"absolute right-2.5",children:(0,Jt.jsx)(Dt.Spinner,{})})]})}),p&&(0,Jt.jsx)("div",{className:Ut()({"border-gray-900 text-gray-900":"info"===x,"border-wp-alert-red text-wp-alert-red":"error"===x,"border-extendify-main text-extendify-main":"success"===x}),children:p}),(0,Jt.jsx)("div",{className:"pt-4 text-center",children:(0,Jt.jsx)("a",{target:"_blank",rel:"noreferrer",href:"https://extendify.com/guides/sign-in?utm_source=".concat(window.extendifyData.sdk_partner,"&utm_medium=library&utm_campaign=sign-in-form&utm_content=need-help&utm_group=").concat(G.getState().activeTestGroupsUtmValue()),onClick:Co(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fe("need-help-link-from-login-modal-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),className:"underline hover:no-underline text-sm text-extendify-gray",children:(0,Ft.__)("Need Help?","extendify")})})]})]})}var No=function(){var e=(0,o.useRef)(null),t=k((function(e){return e.removeAllModals}));return(0,Jt.jsx)(yo,{heading:(0,Ft.__)("Settings","extendify"),isOpen:!0,ref:e,children:(0,Jt.jsxs)("div",{className:"flex justify-center flex-col divide-y",children:[(0,Jt.jsx)(ko,{}),(0,Jt.jsx)(Eo,{initialFocus:e,actionCallback:t})]})})};function Ao(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Po(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Ao(i,r,o,a,s,"next",e)}function s(e){Ao(i,r,o,a,s,"throw",e)}a(void 0)}))}}var To=function(){var e=k((function(e){return e.pushModal})),t=(0,o.useRef)(null);return(0,Jt.jsxs)(Nn,{isOpen:!0,ref:t,leftContainerBgColor:"bg-white",children:[(0,Jt.jsxs)("div",{children:[(0,Jt.jsx)("div",{className:"mb-5 flex items-center space-x-2 text-extendify-black",children:xn}),(0,Jt.jsx)("h3",{className:"mt-0 text-xl",children:(0,Ft.__)("You're out of imports","extendify")}),(0,Jt.jsx)("p",{className:"text-sm text-black",children:(0,Ft.__)("Sign up today and get unlimited access to our entire collection of patterns and page layouts.","extendify")}),(0,Jt.jsxs)("div",{children:[(0,Jt.jsxs)("a",{target:"_blank",ref:t,className:"button-extendify-main button-focus mt-2 inline-flex justify-center px-4 py-3",style:{minWidth:"225px"},href:"https://extendify.com/pricing/?utm_source=".concat(window.extendifyData.sdk_partner,"&utm_medium=library&utm_campaign=no-imports-modal&utm_content=get-unlimited-imports&utm_group=").concat(G.getState().activeTestGroupsUtmValue()),onClick:Po(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fe("no-imports-modal-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),rel:"noreferrer",children:[(0,Ft.__)("Get Unlimited Imports","extendify"),(0,Jt.jsx)(Dt.Icon,{icon:wn,size:24,className:"-mr-1"})]}),(0,Jt.jsxs)("p",{className:"mb-0 text-left text-sm text-extendify-gray",children:[(0,Ft.__)("Have an account?","extendify"),(0,Jt.jsx)(Dt.Button,{onClick:function(){return e((0,Jt.jsx)(No,{}))},className:"pl-2 text-sm text-extendify-gray underline hover:no-underline",children:(0,Ft.__)("Sign in","extendify")})]})]})]}),(0,Jt.jsxs)("div",{className:"flex h-full flex-col justify-center space-y-2 p-10 text-black",children:[(0,Jt.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,Jt.jsx)(Dt.Icon,{icon:kn,size:24}),(0,Jt.jsx)("span",{className:"text-sm leading-none",children:(0,Ft.__)("Access to 100's of Patterns","extendify")})]}),(0,Jt.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,Jt.jsx)(Dt.Icon,{icon:yn,size:24}),(0,Jt.jsx)("span",{className:"text-sm leading-none",children:(0,Ft.__)('Access to "Pro" catalog',"extendify")})]}),(0,Jt.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,Jt.jsx)(Dt.Icon,{icon:jn,size:24}),(0,Jt.jsx)("span",{className:"text-sm leading-none",children:(0,Ft.__)("Beautiful full page layouts","extendify")})]}),(0,Jt.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,Jt.jsx)(Dt.Icon,{icon:Cn,size:24}),(0,Jt.jsx)("span",{className:"text-sm leading-none",children:(0,Ft.__)("Fast and friendly support","extendify")})]}),(0,Jt.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,Jt.jsx)(Dt.Icon,{icon:_n,size:24}),(0,Jt.jsx)("span",{className:"text-sm leading-none",children:(0,Ft.__)("14-Day guarantee","extendify")})]})]})]})};function Io(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Lo(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Io(i,r,o,a,s,"next",e)}function s(e){Io(i,r,o,a,s,"throw",e)}a(void 0)}))}}var Mo=function(){var e=(0,o.useRef)(null);return(0,Jt.jsxs)(Nn,{isOpen:!0,invertedButtonColor:!0,ref:e,children:[(0,Jt.jsxs)("div",{children:[(0,Jt.jsx)("div",{className:"mb-5 flex items-center space-x-2 text-extendify-black",children:xn}),(0,Jt.jsx)("h3",{className:"mt-0 text-xl",children:(0,Ft.__)("Get unlimited access to all our Pro patterns & layouts","extendify")}),(0,Jt.jsx)("p",{className:"text-sm text-black",children:(0,Ft.__)("Upgrade to Extendify Pro and use all the patterns and layouts you'd like, including our exclusive Pro catalog.","extendify")}),(0,Jt.jsx)("div",{children:(0,Jt.jsxs)("a",{target:"_blank",ref:e,className:"button-extendify-main button-focus mt-2 inline-flex justify-center px-4 py-3",style:{minWidth:"225px"},href:"https://extendify.com/pricing/?utm_source=".concat(window.extendifyData.sdk_partner,"&utm_medium=library&utm_campaign=pro-modal&utm_content=upgrade-now&utm_group=").concat(G.getState().activeTestGroupsUtmValue()),onClick:Lo(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fe("pro-modal-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),rel:"noreferrer",children:[(0,Ft.__)("Upgrade Now","extendify"),(0,Jt.jsx)(Dt.Icon,{icon:wn,size:24,className:"-mr-1"})]})})]}),(0,Jt.jsx)("div",{className:"justify-endrounded-tr-sm flex w-full rounded-br-sm bg-black",children:(0,Jt.jsx)("img",{alt:(0,Ft.__)("Upgrade Now","extendify"),className:"max-w-full rounded-tr-sm rounded-br-sm",src:window.extendifyData.asset_path+"/modal-extendify-black.png"})})]})};function Ro(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Do(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Fo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Bo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Bo(e,t)}(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.")}()}function Bo(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}var zo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{hasRequiredPlugins:Kr,hasPluginsActivated:Vr,stack:[],check:function(t){var n=this;return Qr(a().mark((function r(){var o,i,s,l;return a().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:o=Xr(e),r.prev=1,o.s();case 3:if((i=o.n()).done){r.next=11;break}return s=i.value,r.next=7,n["".concat(s)](t);case 7:l=r.sent,n.stack.push(l.pass?l.allow:l.deny);case 9:r.next=3;break;case 11:r.next=16;break;case 13:r.prev=13,r.t0=r.catch(1),o.e(r.t0);case 16:return r.prev=16,o.f(),r.finish(16);case 19:case"end":return r.stop()}}),r,null,[[1,13,16,19]])})))()},reset:function(){this.stack=[]}}}(["hasRequiredPlugins","hasPluginsActivated"]);function Uo(e){var t,n,i,s,l,c,u=e.template,d=e.maxHeight,f=(0,o.useRef)(null),p=G((function(e){return e.hasAvailableImports})),h=G((function(e){return e.apiKey.length})),m=k((function(e){return e.setOpen})),x=k((function(e){return e.pushModal})),y=k((function(e){return e.removeAllModals})),v=Fo((0,o.useState)(0),2),g=v[0],b=v[1],w=Array.isArray(null==u||null===(t=u.fields)||void 0===t?void 0:t.type)?u.fields.type[0]:null==u||null===(n=u.fields)||void 0===n?void 0:n.type,j=(0,o.useMemo)((function(){return(0,r.rawHandler)({HTML:Vo(u.fields.code)})}),[u.fields.code]),S=(0,o.useMemo)((function(){return(0,r.rawHandler)({HTML:u.fields.code})}),[u.fields.code]),C=mr(),_=function(){var e,t=(e=a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,zo.check(u);case 2:oo(zo).then((function(){setTimeout((function(){lo(S,u).then((function(){return y()})).then((function(){return m(!1)})).then((function(){return zo.reset()}))}),100)})).catch((function(){}));case 3:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Do(i,r,o,a,s,"next",e)}function s(e){Do(i,r,o,a,s,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}(),O=function(){var e;cr(u),null==u||null===(e=u.fields)||void 0===e||!e.pro||h?p()?_():x((0,Jt.jsx)(To,{})):x((0,Jt.jsx)(Mo,{}))};return(0,o.useEffect)((function(){if(Number.isInteger(d)&&"layout"===w){var e=f.current,t=function(){var t=e.offsetHeight;e.style.transitionDuration=1.5*t+"ms",b(-1*Math.abs(t-d))},n=function(){var t=e.offsetHeight;e.style.transitionDuration=t/1.5+"ms",b(0)};return e.addEventListener("focus",t),e.addEventListener("mouseenter",t),e.addEventListener("blur",n),e.addEventListener("mouseleave",n),function(){e.removeEventListener("focus",t),e.removeEventListener("mouseenter",t),e.removeEventListener("blur",n),e.removeEventListener("mouseleave",n)}}}),[d,w]),(0,Jt.jsxs)("div",{className:"group relative",children:[(0,Jt.jsx)("div",{role:"button",tabIndex:"0","aria-label":(0,Ft.sprintf)((0,Ft.__)("Press to import %s","extendify"),null==u||null===(i=u.fields)||void 0===i?void 0:i.type),style:{maxHeight:d},className:"button-focus relative m-0 cursor-pointer overflow-hidden bg-gray-100 ease-in-out",onClick:O,onKeyDown:function(e){["Enter","Space"," "].includes(e.key)&&(e.stopPropagation(),e.preventDefault(),O())},children:(0,Jt.jsx)("div",{ref:f,style:{top:g,transitionProperty:"all"},className:Ut()("with-light-shadow relative",(l={},Ro(l,"is-template--".concat(u.fields.status),(null==u||null===(s=u.fields)||void 0===s?void 0:s.status)&&C),Ro(l,"p-6 md:p-8",Number.isInteger(d)),l)),children:(0,Jt.jsx)(fr.BlockPreview,{blocks:j,live:!1,viewportWidth:1400})})}),C&&(0,Jt.jsx)(po,{template:u}),(null==u||null===(c=u.fields)||void 0===c?void 0:c.pro)&&(0,Jt.jsx)("div",{className:"pointer-events-none absolute top-4 right-4 z-20 rounded-md border border-none bg-white bg-wp-theme-500 py-1 px-2.5 font-medium text-white no-underline shadow-sm",children:(0,Ft.__)("Pro","extendify")})]})}var Vo=function(e){return e.replace(/\w+:\/\/\S*(w=(\d*))&(h=(\d*))&\w+\S*"/g,(function(e,t,n,r,o){return e.replace(t,"w="+Math.floor(Number(n)/2)).replace(r,"h="+Math.floor(Number(o)/2))}))};function Ho(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Wo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Wo(e,t)}(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.")}()}function Wo(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}var $o=(0,o.memo)((function(){var e=function(){var e=(0,o.useRef)(!1);return(0,o.useEffect)((function(){return e.current=!0,function(){return e.current=!1}})),e}(),t=ue((function(e){return e.templates})),n=Ho((0,o.useState)(0),2),r=n[0],i=n[1],a=ue((function(e){return e.appendTemplates})),l=Ho((0,o.useState)(""),2),c=l[0],u=l[1],d=(0,o.useRef)(!1),f=Ho((0,o.useState)(!1),2),p=f[0],h=f[1],m=Ho((0,o.useState)(!1),2),x=m[0],y=m[1],v=function(e){var t=void 0===e?{}:e,n=t.threshold,r=t.delay,o=t.trackVisibility,i=t.rootMargin,a=t.root,l=t.triggerOnce,c=t.skip,u=t.initialInView,d=t.fallbackInView,f=s.useRef(),p=s.useState({inView:!!u}),h=p[0],m=p[1],x=s.useCallback((function(e){void 0!==f.current&&(f.current(),f.current=void 0),c||e&&(f.current=Gn(e,(function(e,t){m({inView:e,entry:t}),t.isIntersecting&&l&&f.current&&(f.current(),f.current=void 0)}),{root:a,rootMargin:i,threshold:n,trackVisibility:o,delay:r},d))}),[Array.isArray(n)?n.toString():n,a,i,l,c,o,d,r]);(0,s.useEffect)((function(){f.current||!h.entry||l||c||m({inView:!!u})}));var y=[x,h.inView,h.entry];return y.ref=y[0],y.inView=y[1],y.entry=y[2],y}(),g=Ho(v,2),b=g[0],w=g[1],j=ue((function(e){return e.searchParams})),S=k((function(e){return e.currentType})),C=ue((function(e){return e.resetTemplates})),O=k((function(e){return e.open})),E=Q((function(e){return e.taxonomies})),N=ue((function(e){return e.updateType})),A=ue((function(e){return e.updateTaxonomies})),P=(0,o.useRef)(ue.getState().nextPage),T=(0,o.useRef)(ue.getState().searchParams),I="pattern"===T.current.type?"patternType":"layoutType",L=T.current.taxonomies[I],M=Bn("default-or-alt-sitetype",["A","B"]);(0,o.useEffect)((function(){return ue.subscribe((function(e){return e.nextPage}),(function(e){return P.current=e}))}),[]),(0,o.useEffect)((function(){return ue.subscribe((function(e){return e.searchParams}),(function(e){return T.current=e}))}),[]);var R,D=(0,o.useCallback)((function(){var t,n,r;if(M){u(""),h(!1);var o=(0,Ft.__)("Unknown error occurred. Check browser console or contact support.","extendify"),s={offset:P.current},l="A"===M?{slug:"default"}:{slug:"defaultAlt"},c=null!==(t=T.current.taxonomies)&&void 0!==t&&null!==(n=t.siteType)&&void 0!==n&&null!==(r=n.slug)&&void 0!==r&&r.length?T.current.taxonomies.siteType:l,d=(0,_.cloneDeep)(T.current);d.taxonomies.siteType=c,lr(d,s).then((function(t){var n,r,o,s;e.current&&(null!=t&&null!==(n=t.error)&&void 0!==n&&n.length?u(null==t?void 0:t.error):(null==t||null===(r=t.records)||void 0===r?void 0:r.length)<=0?h(!0):j===T.current&&null!=t&&null!==(o=t.records)&&void 0!==o&&o.length&&(ue.setState({nextPage:null!==(s=null==t?void 0:t.offset)&&void 0!==s?s:""}),a(t.records),i((function(e){return t.records.length+e})),y(!1)))})).catch((function(t){e.current&&(console.error(t),u(o))}))}}),[a,e,j,M]);return(0,o.useEffect)((function(){0!==(null==t?void 0:t.length)||y(!0)}),[null==t?void 0:t.length,j]),(0,o.useEffect)((function(){!d.current&&c.length&&(d.current=!0,D())}),[c,D]),(0,o.useEffect)((function(){var e;if(O&&null!=E&&null!==(e=E.patternType)&&void 0!==e&&e.length){var t=new URLSearchParams(window.location.search);if(t.has("ext-patternType")){var n=t.get("ext-patternType");t.delete("ext-patternType"),window.history.replaceState(null,null,window.location.pathname+"?"+t.toString());var r=E.patternType.find((function(e){return e.slug===n}));r&&(A({patternType:r}),N("pattern"))}}}),[O,E,N,A]),(0,o.useEffect)((function(){var e,t;if(null!==(e=Object.keys(null===(t=T.current)||void 0===t?void 0:t.taxonomies))&&void 0!==e&&e.length){if(!ue.getState().skipNextFetch)return D(),function(){return C()};ue.setState({skipNextFetch:!1})}}),[D,T,C]),(0,o.useEffect)((function(){P.current&&w&&D()}),[w,D,r]),c.length&&d.current?(0,Jt.jsxs)("div",{className:"text-left",children:[(0,Jt.jsx)("h2",{className:"text-left",children:(0,Ft.__)("Server error","extendify")}),(0,Jt.jsx)("code",{className:"mb-4 block max-w-xl p-4",style:{minHeight:"10rem"},children:c}),(0,Jt.jsx)(Dt.Button,{isTertiary:!0,onClick:function(){d.current=!1,D()},children:(0,Ft.__)("Press here to reload")})]}):p?(0,Jt.jsx)("div",{className:"-mt-2 flex h-full w-full items-center justify-center sm:mt-0",children:(0,Jt.jsx)("h2",{className:"text-sm font-normal text-extendify-gray",children:(0,Ft.sprintf)("template"===T.current.type?(0,Ft.__)('We couldn\'t find any layouts in the "%s" category.',"extendify"):(0,Ft.__)('We couldn\'t find any patterns in the "%s" category.',"extendify"),null!==(R=null==L?void 0:L.title)&&void 0!==R?R:L.slug)})}):(0,Jt.jsxs)(Jt.Fragment,{children:[x&&(0,Jt.jsx)("div",{className:"-mt-2 flex h-full w-full items-center justify-center sm:mt-0",children:(0,Jt.jsx)(Dt.Spinner,{})}),(0,Jt.jsx)(qo,{type:S,templates:t,children:t.map((function(e){return(0,Jt.jsx)(Uo,{maxHeight:"template"===S?520:"none",template:e},e.id)}))}),P.current&&(0,Jt.jsxs)(Jt.Fragment,{children:[(0,Jt.jsx)("div",{className:"mt-8",children:(0,Jt.jsx)(Dt.Spinner,{})}),(0,Jt.jsx)("div",{className:"relative flex flex-col items-end justify-end -top-1/4 h-4",ref:b,style:{zIndex:-1}})]})]})})),qo=function(e){var t=e.type,n=e.children,r="relative min-h-screen z-10 pb-40 pt-0.5";if("template"===t)return(0,Jt.jsx)("div",{className:"grid gap-6 md:gap-8 lg:grid-cols-2 ".concat(r),children:n});return(0,Jt.jsx)(or,{breakpointCols:{default:3,1600:2,860:1,599:2,400:1},className:"-ml-6 flex w-auto px-0.5 md:-ml-8 ".concat(r),columnClassName:"pl-6 md:pl-8 bg-clip-padding space-y-6 md:space-y-8",children:n})};function Go(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Jo(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Go(i,r,o,a,s,"next",e)}function s(e){Go(i,r,o,a,s,"throw",e)}a(void 0)}))}}var Ko=(0,o.memo)((function(){var e=G((function(e){return e.remainingImports})),t=G((function(e){return e.allowedImports})),n=e(),r=n>0?"has-imports":"no-imports",i=(0,o.useRef)();return(0,o.useEffect)((function(){if(t<1||!t){I().then((function(e){e=/^[1-9]\d*$/.test(e)?e:5,G.setState({allowedImports:e})})).catch((function(){return G.setState({allowedImports:5})}))}}),[t]),t?(0,Jt.jsxs)("div",{tabIndex:"0",className:"group relative mb-5",children:[(0,Jt.jsxs)("a",{target:"_blank",ref:i,rel:"noreferrer",className:Ut()("button-focus hidden w-full justify-between rounded py-3 px-4 text-sm text-white no-underline sm:flex",{"bg-wp-theme-500 hover:bg-wp-theme-600":n>0,"bg-extendify-alert":!n}),onClick:Jo(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fe("import-counter-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),href:"https://www.extendify.com/pricing/?utm_source=".concat(encodeURIComponent(window.extendifyData.sdk_partner),"&utm_medium=library&utm_campaign=import-counter&utm_content=get-more&utm_term=").concat(r,"&utm_group=").concat(G.getState().activeTestGroupsUtmValue()),children:[(0,Jt.jsxs)("span",{className:"flex items-center space-x-2 text-xs no-underline",children:[(0,Jt.jsx)(Bt,{icon:n>0?vn:pn,size:14}),(0,Jt.jsx)("span",{children:(0,Ft.sprintf)((0,Ft._n)("%s Import","%s Imports",n,"extendify"),n)})]}),(0,Jt.jsxs)("span",{className:"outline-none flex items-center text-sm font-medium text-white no-underline",children:[(0,Ft.__)("Get more","extendify"),(0,Jt.jsx)(Bt,{icon:wn,size:24,className:"-mr-1.5"})]})]}),(0,Jt.jsx)("div",{className:"extendify-bottom-arrow invisible absolute top-0 w-full -translate-y-full transform opacity-0 shadow-md transition-all delay-200 duration-300 ease-in-out group-hover:visible group-hover:-top-2.5 group-hover:opacity-100 group-focus:visible group-focus:-top-2.5 group-focus:opacity-100",tabIndex:"-1",children:(0,Jt.jsx)("a",{href:"https://www.extendify.com/pricing/?utm_source=".concat(encodeURIComponent(window.extendifyData.sdk_partner),"&utm_medium=library&utm_campaign=import-counter-tooltip&utm_content=get-50-off&utm_term=").concat(r,"&utm_group=").concat(G.getState().activeTestGroupsUtmValue()),className:"block bg-gray-900 text-white p-4 no-underline rounded bg-cover",onClick:Jo(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fe("import-counter-tooltip-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),style:{backgroundImage:"url(".concat(window.extendifyData.asset_path,"/logo-tips.png)"),backgroundSize:"100% 100%"},children:(0,Jt.jsx)("span",{dangerouslySetInnerHTML:{__html:fn((0,Ft.sprintf)((0,Ft.__)("%1$sGet %2$s off%3$s Extendify Pro when you upgrade today!","extendify"),"<strong>","50%","</strong>"))}})})})]}):null}));function Xo(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Zo(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Xo(i,r,o,a,s,"next",e)}function s(e){Xo(i,r,o,a,s,"throw",e)}a(void 0)}))}}var Yo=(0,o.memo)((function(){var e=G((function(e){return e.remainingImports})),t=G((function(e){return e.allowedImports})),n=e(),r="https://www.extendify.com/pricing/?utm_source=".concat(encodeURIComponent(window.extendifyData.sdk_partner),"&utm_medium=library&utm_campaign=import-counter&utm_content=get-more&utm_term=").concat(n>0?"has-imports":"no-imports","&utm_group=").concat(G.getState().activeTestGroupsUtmValue());return(0,o.useEffect)((function(){if(t<1||!t){I().then((function(e){e=/^[1-9]\d*$/.test(e)?e:5,G.setState({allowedImports:e})})).catch((function(){return G.setState({allowedImports:5})}))}}),[t]),t?(0,Jt.jsxs)("a",{target:"_blank",className:"absolute bottom-4 left-0 mx-5 hidden sm:block bg-white rounded border-solid border border-gray-200 p-4 text-left no-underline group button-focus",rel:"noreferrer",onClick:Zo(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fe("fp-sb-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),href:r,children:[(0,Jt.jsxs)("span",{className:"flex -ml-1.5 space-x-1.5",children:[(0,Jt.jsx)(Bt,{icon:mn}),(0,Jt.jsx)("span",{className:"mb-1 text-gray-800 font-medium text-sm",children:(0,Ft.__)("Free Plan","extendify")})]}),(0,Jt.jsx)("span",{className:"text-gray-700 block ml-6 mb-1.5",children:(0,Ft.sprintf)((0,Ft._n)("You have %s free pattern and layout import remaining this month.","You have %s free pattern and layout imports remaining this month.",n,"extendify"),n)}),(0,Jt.jsx)("span",{className:Ut()("block font-semibold ml-6 text-sm group-hover:underline",{"text-red-500":n<2,"text-wp-theme-500":n>1}),dangerouslySetInnerHTML:{__html:fn((0,Ft.sprintf)((0,Ft._x)("Upgrade today %s","The replacement string is a right arrow and context is not lost if removed.","extendify"),'<span class="text-base">\n '.concat(String.fromCharCode(8250),"\n </span>")))}})]}):null}));function Qo(e){return Array.isArray?Array.isArray(e):"[object Array]"===ai(e)}function ei(e){return"string"==typeof e}function ti(e){return"number"==typeof e}function ni(e){return!0===e||!1===e||function(e){return ri(e)&&null!==e}(e)&&"[object Boolean]"==ai(e)}function ri(e){return"object"==typeof e}function oi(e){return null!=e}function ii(e){return!e.trim().length}function ai(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const si=Object.prototype.hasOwnProperty;class li{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach((e=>{let n=ci(e);t+=n.weight,this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight})),this._keys.forEach((e=>{e.weight/=t}))}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function ci(e){let t=null,n=null,r=null,o=1;if(ei(e)||Qo(e))r=e,t=ui(e),n=di(e);else{if(!si.call(e,"name"))throw new Error((e=>`Missing ${e} property in key`)("name"));const i=e.name;if(r=i,si.call(e,"weight")&&(o=e.weight,o<=0))throw new Error((e=>`Property 'weight' in key '${e}' must be a positive integer`)(i));t=ui(i),n=di(i)}return{path:t,id:n,weight:o,src:r}}function ui(e){return Qo(e)?e:e.split(".")}function di(e){return Qo(e)?e.join("."):e}const fi={useExtendedSearch:!1,getFn:function(e,t){let n=[],r=!1;const o=(e,t,i)=>{if(oi(e))if(t[i]){const a=e[t[i]];if(!oi(a))return;if(i===t.length-1&&(ei(a)||ti(a)||ni(a)))n.push(function(e){return null==e?"":function(e){if("string"==typeof e)return e;let t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}(a));else if(Qo(a)){r=!0;for(let e=0,n=a.length;e<n;e+=1)o(a[e],t,i+1)}else t.length&&o(a,t,i+1)}else n.push(e)};return o(e,ei(t)?t.split("."):t,0),r?n:n[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var pi={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,...fi};const hi=/[^ ]+/g;class mi{constructor({getFn:e=pi.getFn,fieldNormWeight:t=pi.fieldNormWeight}={}){this.norm=function(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(t){const o=t.match(hi).length;if(n.has(o))return n.get(o);const i=1/Math.pow(o,.5*e),a=parseFloat(Math.round(i*r)/r);return n.set(o,a),a},clear(){n.clear()}}}(t,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach(((e,t)=>{this._keysMap[e.id]=t}))}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,ei(this.docs[0])?this.docs.forEach(((e,t)=>{this._addString(e,t)})):this.docs.forEach(((e,t)=>{this._addObject(e,t)})),this.norm.clear())}add(e){const t=this.size();ei(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,n=this.size();t<n;t+=1)this.records[t].i-=1}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_addString(e,t){if(!oi(e)||ii(e))return;let n={v:e,i:t,n:this.norm.get(e)};this.records.push(n)}_addObject(e,t){let n={i:t,$:{}};this.keys.forEach(((t,r)=>{let o=this.getFn(e,t.path);if(oi(o))if(Qo(o)){let e=[];const t=[{nestedArrIndex:-1,value:o}];for(;t.length;){const{nestedArrIndex:n,value:r}=t.pop();if(oi(r))if(ei(r)&&!ii(r)){let t={v:r,i:n,n:this.norm.get(r)};e.push(t)}else Qo(r)&&r.forEach(((e,n)=>{t.push({nestedArrIndex:n,value:e})}))}n.$[r]=e}else if(!ii(o)){let e={v:o,n:this.norm.get(o)};n.$[r]=e}})),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function xi(e,t,{getFn:n=pi.getFn,fieldNormWeight:r=pi.fieldNormWeight}={}){const o=new mi({getFn:n,fieldNormWeight:r});return o.setKeys(e.map(ci)),o.setSources(t),o.create(),o}function yi(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:o=pi.distance,ignoreLocation:i=pi.ignoreLocation}={}){const a=t/e.length;if(i)return a;const s=Math.abs(r-n);return o?a+s/o:s?1:a}const vi=32;function gi(e,t,n,{location:r=pi.location,distance:o=pi.distance,threshold:i=pi.threshold,findAllMatches:a=pi.findAllMatches,minMatchCharLength:s=pi.minMatchCharLength,includeMatches:l=pi.includeMatches,ignoreLocation:c=pi.ignoreLocation}={}){if(t.length>vi)throw new Error(`Pattern length exceeds max of ${vi}.`);const u=t.length,d=e.length,f=Math.max(0,Math.min(r,d));let p=i,h=f;const m=s>1||l,x=m?Array(d):[];let y;for(;(y=e.indexOf(t,h))>-1;){let e=yi(t,{currentLocation:y,expectedLocation:f,distance:o,ignoreLocation:c});if(p=Math.min(e,p),h=y+u,m){let e=0;for(;e<u;)x[y+e]=1,e+=1}}h=-1;let v=[],g=1,b=u+d;const w=1<<u-1;for(let r=0;r<u;r+=1){let i=0,s=b;for(;i<s;){yi(t,{errors:r,currentLocation:f+s,expectedLocation:f,distance:o,ignoreLocation:c})<=p?i=s:b=s,s=Math.floor((b-i)/2+i)}b=s;let l=Math.max(1,f-s+1),y=a?d:Math.min(f+s,d)+u,j=Array(y+2);j[y+1]=(1<<r)-1;for(let i=y;i>=l;i-=1){let a=i-1,s=n[e.charAt(a)];if(m&&(x[a]=+!!s),j[i]=(j[i+1]<<1|1)&s,r&&(j[i]|=(v[i+1]|v[i])<<1|1|v[i+1]),j[i]&w&&(g=yi(t,{errors:r,currentLocation:a,expectedLocation:f,distance:o,ignoreLocation:c}),g<=p)){if(p=g,h=a,h<=f)break;l=Math.max(1,2*f-h)}}if(yi(t,{errors:r+1,currentLocation:f,expectedLocation:f,distance:o,ignoreLocation:c})>p)break;v=j}const j={isMatch:h>=0,score:Math.max(.001,g)};if(m){const e=function(e=[],t=pi.minMatchCharLength){let n=[],r=-1,o=-1,i=0;for(let a=e.length;i<a;i+=1){let a=e[i];a&&-1===r?r=i:a||-1===r||(o=i-1,o-r+1>=t&&n.push([r,o]),r=-1)}return e[i-1]&&i-r>=t&&n.push([r,i-1]),n}(x,s);e.length?l&&(j.indices=e):j.isMatch=!1}return j}function bi(e){let t={};for(let n=0,r=e.length;n<r;n+=1){const o=e.charAt(n);t[o]=(t[o]||0)|1<<r-n-1}return t}class wi{constructor(e,{location:t=pi.location,threshold:n=pi.threshold,distance:r=pi.distance,includeMatches:o=pi.includeMatches,findAllMatches:i=pi.findAllMatches,minMatchCharLength:a=pi.minMatchCharLength,isCaseSensitive:s=pi.isCaseSensitive,ignoreLocation:l=pi.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:r,includeMatches:o,findAllMatches:i,minMatchCharLength:a,isCaseSensitive:s,ignoreLocation:l},this.pattern=s?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const c=(e,t)=>{this.chunks.push({pattern:e,alphabet:bi(e),startIndex:t})},u=this.pattern.length;if(u>vi){let e=0;const t=u%vi,n=u-t;for(;e<n;)c(this.pattern.substr(e,vi),e),e+=vi;if(t){const e=u-vi;c(this.pattern.substr(e),e)}}else c(this.pattern,0)}searchIn(e){const{isCaseSensitive:t,includeMatches:n}=this.options;if(t||(e=e.toLowerCase()),this.pattern===e){let t={isMatch:!0,score:0};return n&&(t.indices=[[0,e.length-1]]),t}const{location:r,distance:o,threshold:i,findAllMatches:a,minMatchCharLength:s,ignoreLocation:l}=this.options;let c=[],u=0,d=!1;this.chunks.forEach((({pattern:t,alphabet:f,startIndex:p})=>{const{isMatch:h,score:m,indices:x}=gi(e,t,f,{location:r+p,distance:o,threshold:i,findAllMatches:a,minMatchCharLength:s,includeMatches:n,ignoreLocation:l});h&&(d=!0),u+=m,h&&x&&(c=[...c,...x])}));let f={isMatch:d,score:d?u/this.chunks.length:1};return d&&n&&(f.indices=c),f}}class ji{constructor(e){this.pattern=e}static isMultiMatch(e){return ki(e,this.multiRegex)}static isSingleMatch(e){return ki(e,this.singleRegex)}search(){}}function ki(e,t){const n=e.match(t);return n?n[1]:null}class Si extends ji{constructor(e,{location:t=pi.location,threshold:n=pi.threshold,distance:r=pi.distance,includeMatches:o=pi.includeMatches,findAllMatches:i=pi.findAllMatches,minMatchCharLength:a=pi.minMatchCharLength,isCaseSensitive:s=pi.isCaseSensitive,ignoreLocation:l=pi.ignoreLocation}={}){super(e),this._bitapSearch=new wi(e,{location:t,threshold:n,distance:r,includeMatches:o,findAllMatches:i,minMatchCharLength:a,isCaseSensitive:s,ignoreLocation:l})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class Ci extends ji{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,n=0;const r=[],o=this.pattern.length;for(;(t=e.indexOf(this.pattern,n))>-1;)n=t+o,r.push([t,n-1]);const i=!!r.length;return{isMatch:i,score:i?0:1,indices:r}}}const _i=[class extends ji{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},Ci,class extends ji{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},class extends ji{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends ji{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends ji{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}},class extends ji{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},Si],Oi=_i.length,Ei=/ +(?=([^\"]*\"[^\"]*\")*[^\"]*$)/;const Ni=new Set([Si.type,Ci.type]);class Ai{constructor(e,{isCaseSensitive:t=pi.isCaseSensitive,includeMatches:n=pi.includeMatches,minMatchCharLength:r=pi.minMatchCharLength,ignoreLocation:o=pi.ignoreLocation,findAllMatches:i=pi.findAllMatches,location:a=pi.location,threshold:s=pi.threshold,distance:l=pi.distance}={}){this.query=null,this.options={isCaseSensitive:t,includeMatches:n,minMatchCharLength:r,findAllMatches:i,ignoreLocation:o,location:a,threshold:s,distance:l},this.pattern=t?e:e.toLowerCase(),this.query=function(e,t={}){return e.split("|").map((e=>{let n=e.trim().split(Ei).filter((e=>e&&!!e.trim())),r=[];for(let e=0,o=n.length;e<o;e+=1){const o=n[e];let i=!1,a=-1;for(;!i&&++a<Oi;){const e=_i[a];let n=e.isMultiMatch(o);n&&(r.push(new e(n,t)),i=!0)}if(!i)for(a=-1;++a<Oi;){const e=_i[a];let n=e.isSingleMatch(o);if(n){r.push(new e(n,t));break}}}return r}))}(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){const t=this.query;if(!t)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:r}=this.options;e=r?e:e.toLowerCase();let o=0,i=[],a=0;for(let r=0,s=t.length;r<s;r+=1){const s=t[r];i.length=0,o=0;for(let t=0,r=s.length;t<r;t+=1){const r=s[t],{isMatch:l,indices:c,score:u}=r.search(e);if(!l){a=0,o=0,i.length=0;break}if(o+=1,a+=u,n){const e=r.constructor.type;Ni.has(e)?i=[...i,...c]:i.push(c)}}if(o){let e={isMatch:!0,score:a/o};return n&&(e.indices=i),e}}return{isMatch:!1,score:1}}}const Pi=[];function Ti(e,t){for(let n=0,r=Pi.length;n<r;n+=1){let r=Pi[n];if(r.condition(e,t))return new r(e,t)}return new wi(e,t)}const Ii="$and",Li="$or",Mi="$path",Ri="$val",Di=e=>!(!e[Ii]&&!e[Li]),Fi=e=>({[Ii]:Object.keys(e).map((t=>({[t]:e[t]})))});function Bi(e,t,{auto:n=!0}={}){const r=e=>{let o=Object.keys(e);const i=(e=>!!e[Mi])(e);if(!i&&o.length>1&&!Di(e))return r(Fi(e));if((e=>!Qo(e)&&ri(e)&&!Di(e))(e)){const r=i?e[Mi]:o[0],a=i?e[Ri]:e[r];if(!ei(a))throw new Error((e=>`Invalid value for key ${e}`)(r));const s={keyId:di(r),pattern:a};return n&&(s.searcher=Ti(a,t)),s}let a={children:[],operator:o[0]};return o.forEach((t=>{const n=e[t];Qo(n)&&n.forEach((e=>{a.children.push(r(e))}))})),a};return Di(e)||(e=Fi(e)),r(e)}function zi(e,t){const n=e.matches;t.matches=[],oi(n)&&n.forEach((e=>{if(!oi(e.indices)||!e.indices.length)return;const{indices:n,value:r}=e;let o={indices:n,value:r};e.key&&(o.key=e.key.src),e.idx>-1&&(o.refIndex=e.idx),t.matches.push(o)}))}function Ui(e,t){t.score=e.score}class Vi{constructor(e,t={},n){this.options={...pi,...t},this.options.useExtendedSearch,this._keyStore=new li(this.options.keys),this.setCollection(e,n)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof mi))throw new Error("Incorrect 'index' type");this._myIndex=t||xi(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){oi(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=(()=>!1)){const t=[];for(let n=0,r=this._docs.length;n<r;n+=1){const o=this._docs[n];e(o,n)&&(this.removeAt(n),n-=1,r-=1,t.push(o))}return t}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:t=-1}={}){const{includeMatches:n,includeScore:r,shouldSort:o,sortFn:i,ignoreFieldNorm:a}=this.options;let s=ei(e)?ei(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return function(e,{ignoreFieldNorm:t=pi.ignoreFieldNorm}){e.forEach((e=>{let n=1;e.matches.forEach((({key:e,norm:r,score:o})=>{const i=e?e.weight:null;n*=Math.pow(0===o&&i?Number.EPSILON:o,(i||1)*(t?1:r))})),e.score=n}))}(s,{ignoreFieldNorm:a}),o&&s.sort(i),ti(t)&&t>-1&&(s=s.slice(0,t)),function(e,t,{includeMatches:n=pi.includeMatches,includeScore:r=pi.includeScore}={}){const o=[];return n&&o.push(zi),r&&o.push(Ui),e.map((e=>{const{idx:n}=e,r={item:t[n],refIndex:n};return o.length&&o.forEach((t=>{t(e,r)})),r}))}(s,this._docs,{includeMatches:n,includeScore:r})}_searchStringList(e){const t=Ti(e,this.options),{records:n}=this._myIndex,r=[];return n.forEach((({v:e,i:n,n:o})=>{if(!oi(e))return;const{isMatch:i,score:a,indices:s}=t.searchIn(e);i&&r.push({item:e,idx:n,matches:[{score:a,value:e,norm:o,indices:s}]})})),r}_searchLogical(e){const t=Bi(e,this.options),n=(e,t,r)=>{if(!e.children){const{keyId:n,searcher:o}=e,i=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(t,n),searcher:o});return i&&i.length?[{idx:r,item:t,matches:i}]:[]}const o=[];for(let i=0,a=e.children.length;i<a;i+=1){const a=e.children[i],s=n(a,t,r);if(s.length)o.push(...s);else if(e.operator===Ii)return[]}return o},r=this._myIndex.records,o={},i=[];return r.forEach((({$:e,i:r})=>{if(oi(e)){let a=n(t,e,r);a.length&&(o[r]||(o[r]={idx:r,item:e,matches:[]},i.push(o[r])),a.forEach((({matches:e})=>{o[r].matches.push(...e)})))}})),i}_searchObjectList(e){const t=Ti(e,this.options),{keys:n,records:r}=this._myIndex,o=[];return r.forEach((({$:e,i:r})=>{if(!oi(e))return;let i=[];n.forEach(((n,r)=>{i.push(...this._findMatches({key:n,value:e[r],searcher:t}))})),i.length&&o.push({idx:r,item:e,matches:i})})),o}_findMatches({key:e,value:t,searcher:n}){if(!oi(t))return[];let r=[];if(Qo(t))t.forEach((({v:t,i:o,n:i})=>{if(!oi(t))return;const{isMatch:a,score:s,indices:l}=n.searchIn(t);a&&r.push({score:s,key:e,value:t,idx:o,norm:i,indices:l})}));else{const{v:o,n:i}=t,{isMatch:a,score:s,indices:l}=n.searchIn(o);a&&r.push({score:s,key:e,value:o,norm:i,indices:l})}return r}}function Hi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Wi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Wi(e,t)}(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.")}()}function Wi(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}Vi.version="6.5.3",Vi.createIndex=xi,Vi.parseIndex=function(e,{getFn:t=pi.getFn,fieldNormWeight:n=pi.fieldNormWeight}={}){const{keys:r,records:o}=e,i=new mi({getFn:t,fieldNormWeight:n});return i.setKeys(r),i.setIndexRecords(o),i},Vi.config=pi,Vi.parseQuery=Bi,function(...e){Pi.push(...e)}(Ai);var $i=new Map,qi=function(e){var t,n,r=e.value,i=e.setValue,a=e.terms,s=ue((function(e){return e.searchParams})),l=Hi((0,o.useState)(!1),2),c=l[0],u=l[1],d=(0,o.useRef)(),f=Hi((0,o.useState)({}),2),p=f[0],h=f[1],m=Hi((0,o.useState)(""),2),x=m[0],y=m[1],v=Hi((0,o.useState)([]),2),g=v[0],b=v[1],w=Hi((0,o.useState)(!0),2),j=w[0],k=w[1],S=Bn("sitetype-open-closed",["A","B"]),C=(0,o.useMemo)((function(){return a.sort((function(e,t){return e.slug<t.slug?-1:e.slug>t.slug?1:0}))}),[a]),_=(0,o.useMemo)((function(){return C.filter((function(e){return null==e?void 0:e.featured}))}),[C]),O=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if($i.has(e))b($i.get(e));else{var t=p.search(e);$i.set(e,null!=t&&t.length?t.map((function(e){return e.item})):_),b($i.get(e))}};(0,o.useEffect)((function(){h(new Vi(a,{keys:["slug","title","keywords"],minMatchCharLength:1,threshold:.3}))}),[a]),(0,o.useEffect)((function(){null!=x&&x.length||b(j?_:C)}),[_,x,C,j]),(0,o.useEffect)((function(){c&&d.current.focus()}),[c]),(0,o.useEffect)((function(){"B"!==S||r.slug||u(!0)}),[S,r.slug]);var E,N,A;return(0,Jt.jsxs)("div",{className:"w-full rounded bg-gray-50 border border-gray-900",children:[(0,Jt.jsx)("button",{type:"button",onClick:function(){return u((function(e){return!e}))},className:"button-focus m-0 flex w-full cursor-pointer items-center justify-between rounded bg-transparent p-4 text-gray-800",children:(N=c?(0,Ft.__)("Choose a site industry","extendify"):null!==(t=null!==(n=null==r?void 0:r.title)&&void 0!==n?n:r.slug)&&void 0!==t?t:"Not set",(0,Jt.jsxs)(Jt.Fragment,{children:[(0,Jt.jsxs)("span",{className:"flex flex-col text-left",children:[(0,Jt.jsx)("span",{className:Ut()("mb-1",{"text-base font-normal":!r.slug,"text-sm font-normal":null===(A=r.slug)||void 0===A?void 0:A.length}),children:(0,Ft.__)("Site Type","extendify")}),(0,Jt.jsx)("span",{className:"text-xs font-light",children:N})]}),(0,Jt.jsxs)("span",{className:"flex items-center space-x-4",children:[!c&&!r.slug&&(0,Jt.jsxs)("svg",{className:"text-wp-alert-red","aria-hidden":"true",focusable:"false",width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Jt.jsx)("path",{className:"stroke-current",d:"M10.9982 4.05371C7.66149 4.05371 4.95654 6.75866 4.95654 10.0954C4.95654 13.4321 7.66149 16.137 10.9982 16.137C14.3349 16.137 17.0399 13.4321 17.0399 10.0954C17.0399 6.75866 14.3349 4.05371 10.9982 4.05371V4.05371Z",strokeWidth:"1.25"}),(0,Jt.jsx)("path",{className:"fill-current",d:"M10.0205 12.8717C10.0205 12.3287 10.4508 11.8881 10.9938 11.8881C11.5368 11.8881 11.9774 12.3287 11.9774 12.8717C11.9774 13.4147 11.5368 13.8451 10.9938 13.8451C10.4508 13.8451 10.0205 13.4147 10.0205 12.8717Z"}),(0,Jt.jsx)("path",{className:"fill-current",d:"M11.6495 10.2591C11.6086 10.6177 11.3524 10.9148 10.9938 10.9148C10.625 10.9148 10.3791 10.6074 10.3483 10.2591L10.0205 7.31855C9.95901 6.81652 10.4918 6.34521 10.9938 6.34521C11.4959 6.34521 12.0286 6.81652 11.9774 7.31855L11.6495 10.2591Z"})]}),(0,Jt.jsx)("svg",{className:Ut()("stroke-current text-gray-900",{"-translate-x-1 rotate-90 transform":c}),"aria-hidden":"true",focusable:"false",width:"8",height:"13",viewBox:"0 0 8 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Jt.jsx)("path",{d:"M1.24194 11.5952L6.24194 6.09519L1.24194 0.595215",strokeWidth:"1.5"})})]})]}))}),c&&(0,Jt.jsxs)("div",{className:"max-h-96 overflow-y-auto px-4 py-0",children:[(0,Jt.jsx)("div",{className:"sticky top-0 pt-0.5 pb-2 bg-gray-50",children:(0,Jt.jsxs)("div",{className:"relative",children:[(0,Jt.jsx)("label",{htmlFor:"site-type-search",className:"sr-only",children:(0,Ft.__)("Search","extendify")}),(0,Jt.jsx)("input",{ref:d,id:"site-type-search",value:null!=x?x:"",onChange:function(e){return t=e.target.value,y(t),void O(t);var t},type:"text",className:"button-focus m-0 w-full bg-white p-3.5 py-2.5 text-sm border border-gray-900",placeholder:(0,Ft.__)("Search","extendify")}),(0,Jt.jsx)("svg",{className:"pointer-events-none absolute top-2 right-2 hidden lg:block",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",role:"img","aria-hidden":"true",focusable:"false",children:(0,Jt.jsx)("path",{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"})})]})}),(null==x?void 0:x.length)>1&&g===_&&(0,Jt.jsx)("p",{className:"text-left",children:(0,Ft.__)("Nothing found...","extendify")}),(null==g?void 0:g.length)>0&&(0,Jt.jsx)("div",{children:(E=g,(0,Jt.jsx)(Jt.Fragment,{children:(0,Jt.jsx)("ul",{className:"mt-4 mb-0",children:E.map((function(e){var t,n,r,o=null!==(t=null==e?void 0:e.title)&&void 0!==t?t:e.slug,a=(null==s||null===(n=s.taxonomies)||void 0===n||null===(r=n.siteType)||void 0===r?void 0:r.slug)===e.slug;return(0,Jt.jsx)("li",{className:"m-0 mb-1",children:(0,Jt.jsx)("button",{type:"button",className:Ut()("m-0 w-full cursor-pointer bg-transparent pl-0 text-left text-sm font-normal hover:text-wp-theme-500",{"text-gray-800":!a}),onClick:function(){u(!1),i(e)},children:o})},e.slug+(null==e?void 0:e.title))}))})}))})]}),x||!c?null:(0,Jt.jsx)("button",{type:"button",className:"w-full cursor-pointer bg-transparent p-4 py-2 text-left text-sm text-wp-theme-500 hover:text-wp-theme-500",onClick:function(){return k((function(e){return!e}))},children:j?(0,Ft.__)("Show all","extendify"):(0,Ft.__)("Close","extendify")})]})};var Gi=function(e){var t,n=e.active,r=e.tax,o=e.update;return(0,Jt.jsx)("li",{className:"m-0 w-full",children:(0,Jt.jsx)("button",{type:"button",className:"group m-0 p-0 flex w-full cursor-pointer text-left text-sm leading-none my-px",onClick:o,children:(0,Jt.jsx)("span",{className:Ut()("w-full group-hover:bg-gray-900 p-2 group-hover:text-gray-50 rounded",{"bg-transparent text-gray-900":!n,"bg-gray-900 text-gray-50":n}),children:null!==(t=null==r?void 0:r.title)&&void 0!==t?t:r.slug})})},r.slug)},Ji=function(e){var t=e.taxType,n=e.taxonomies,r=e.taxLabel,o=ue((function(e){return e.searchParams})),i=ue((function(e){return e.updateTaxonomies}));return!(null!=n&&n.length)>0?null:(0,Jt.jsx)(Dt.PanelBody,{title:Er(null!=r?r:t),className:"ext-type-control p-0",initialOpen:!0,children:(0,Jt.jsx)(Dt.PanelRow,{children:(0,Jt.jsx)("div",{className:"relative w-full overflow-hidden",children:(0,Jt.jsx)("ul",{className:"m-0 w-full px-5 py-1",children:n.map((function(e){var n,r=(null==o||null===(n=o.taxonomies[t])||void 0===n?void 0:n.slug)===(null==e?void 0:e.slug);return(0,Jt.jsx)(Gi,{active:r,tax:e,update:function(){return i((o=e,(r=t)in(n={})?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n));var n,r,o}},null==e?void 0:e.slug)}))})})})})},Ki=function(e){var t=e.className,n=ue((function(e){return e.updateType})),r=k((function(e){var t;return null!==(t=null==e?void 0:e.currentType)&&void 0!==t?t:"pattern"}));return(0,Jt.jsxs)("div",{className:t,children:[(0,Jt.jsx)("h4",{className:"sr-only",children:(0,Ft.__)("Type select","extendify")}),(0,Jt.jsxs)("div",{className:"flex justify-evenly border border-gray-900 p-0.5 rounded",children:[(0,Jt.jsx)("button",{type:"button",className:Ut()({"w-full m-0 min-w-sm cursor-pointer rounded py-2.5 px-4 text-xs leading-none":!0,"bg-gray-900 text-white":"pattern"===r,"bg-transparent text-black":"pattern"!==r}),onClick:function(){return n("pattern")},children:(0,Jt.jsx)("span",{className:"",children:(0,Ft.__)("Patterns","extendify")})}),(0,Jt.jsx)("button",{type:"button",className:Ut()({"outline-none w-full m-0 -ml-px min-w-sm cursor-pointer items-center rounded-tr-sm rounded-br-sm py-2.5 px-4 text-xs leading-none":!0,"bg-gray-900 text-white":"template"===r,"bg-transparent text-black":"template"!==r}),onClick:function(){return n("template")},children:(0,Jt.jsx)("span",{className:"",children:(0,Ft.__)("Templates","extendify")})})]})]})};var Xi=(0,o.memo)((function(){var e,t,n,r,o,i,a,s=Q((function(e){return e.taxonomies})),l=ue((function(e){return e.searchParams})),c=G((function(e){return e.updatePreferredSiteType})),u=ue((function(e){return e.updateTaxonomies})),d=G((function(e){return e.apiKey})),f="pattern"===l.type?"patternType":"layoutType",p=!(null!=l&&null!==(e=l.taxonomies[f])&&void 0!==e&&null!==(t=e.slug)&&void 0!==t&&t.length),h=k((function(e){return e.setOpen})),m=Bn("import-counter-type",["A","B"]);return(0,Jt.jsxs)(Jt.Fragment,{children:[(0,Jt.jsx)("div",{className:"-ml-1.5 hidden px-5 text-extendify-black sm:flex",children:(0,Jt.jsx)(Bt,{icon:mn,size:40})}),(0,Jt.jsx)("div",{className:"flex md:hidden items-center justify-end -mt-5 mx-1",children:(0,Jt.jsx)(Dt.Button,{onClick:function(){return h(!1)},icon:(0,Jt.jsx)(Bt,{icon:En,size:24}),label:(0,Ft.__)("Close library","extendify")})}),(0,Jt.jsx)("div",{className:"px-5 hidden md:block",children:(0,Jt.jsxs)("button",{onClick:function(){return u((n={slug:"",title:"Featured"},(t=f)in(e={})?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e));var e,t,n},className:Ut()("m-0 flex w-full cursor-pointer items-center space-x-1 bg-transparent px-0 py-2 text-left text-sm leading-none transition duration-200 hover:text-wp-theme-500",{"text-wp-theme-500":p}),children:[(0,Jt.jsx)(Bt,{icon:bn,size:24}),(0,Jt.jsx)("span",{className:"text-sm",children:(0,Ft.__)("Featured","extendify")})]})}),(0,Jt.jsx)("div",{className:"mx-6 px-5 pt-0.5 sm:mx-0 sm:mb-8 sm:mt-0",children:Object.keys(null!==(n=null==s?void 0:s.siteType)&&void 0!==n?n:{}).length>0&&(0,Jt.jsx)(qi,{value:null!==(r=null==l||null===(o=l.taxonomies)||void 0===o?void 0:o.siteType)&&void 0!==r?r:"",setValue:function(e){c(e),u({siteType:e})},terms:s.siteType})}),(0,Jt.jsx)(Ki,{className:"mx-6 px-5 pt-0.5 sm:mx-0 sm:mb-8 sm:mt-0"}),(0,Jt.jsxs)("div",{className:"mt-px hidden flex-grow overflow-y-auto overflow-x-hidden pb-36 pt-px sm:block space-y-6",children:[(0,Jt.jsx)(Dt.Panel,{className:"bg-transparent",children:(0,Jt.jsx)(Ji,{taxType:f,taxonomies:null===(i=s[f])||void 0===i?void 0:i.filter((function(e){return!(null!=e&&e.designType)}))})}),(0,Jt.jsx)(Dt.Panel,{className:"bg-transparent",children:(0,Jt.jsx)(Ji,{taxLabel:(0,Ft.__)("Design","extendify"),taxType:f,taxonomies:null===(a=s[f])||void 0===a?void 0:a.filter((function(e){return Boolean(null==e?void 0:e.designType)}))})})]}),!d.length&&(0,Jt.jsxs)("div",{className:"px-5",children:["A"===m?(0,Jt.jsx)(Ko,{}):null,"B"===m?(0,Jt.jsx)(Yo,{}):null]})]})}));function Zi(e){var t=e.children,n=k((function(e){return e.ready}));return(0,Jt.jsxs)(Jt.Fragment,{children:[(0,Jt.jsx)("aside",{className:"relative flex-shrink-0 border-r border-extendify-transparent-black-100 bg-extendify-transparent-white py-0 backdrop-blur-xl backdrop-saturate-200 backdrop-filter sm:pt-5",children:(0,Jt.jsx)("div",{className:"flex h-full flex-col py-6 sm:w-72 sm:space-y-6 sm:py-0",children:n?t[0]:null})}),(0,Jt.jsx)("main",{id:"extendify-templates",className:"h-full w-full overflow-hidden bg-gray-50 pt-6 sm:pt-0",children:n?t[1]:null})]})}var Yi=(0,o.memo)((function(e){var t=e.className,n=k((function(e){return e.setOpen})),r=k((function(e){return e.pushModal})),o=G((function(e){return e.apiKey.length}));return(0,Jt.jsx)("div",{className:t,children:(0,Jt.jsx)("div",{className:"flex h-full items-center justify-between",children:(0,Jt.jsxs)("div",{className:"flex flex-1 items-center justify-end lg:-mr-1",children:[(0,Jt.jsx)(Dt.Button,{onClick:function(){return r((0,Jt.jsx)(No,{}))},icon:(0,Jt.jsx)(Bt,{icon:On,size:24}),label:(0,Ft.__)("Login and settings area","extendify"),children:o?"":(0,Ft.__)("Sign in","extendify")}),(0,Jt.jsx)(Dt.Button,{onClick:function(){return n(!1)},icon:(0,Jt.jsx)(Bt,{icon:En,size:24}),label:(0,Ft.__)("Close library","extendify")})]})})})})),Qi=function(e){var t=e.setOpen,n=(0,o.useRef)(),r=ue((function(e){return e.searchParams}));return(0,o.useEffect)((function(){n.current&&(n.current.scrollTop=0)}),[r]),(0,Jt.jsx)("div",{className:"relative mx-auto flex h-full max-w-screen-4xl flex-col items-center",children:(0,Jt.jsxs)("div",{className:"w-full flex-grow overflow-hidden",children:[(0,Jt.jsx)("button",{onClick:function(){return document.getElementById("extendify-templates").querySelector("button").focus()},className:"extendify-skip-to-sr-link sr-only focus:not-sr-only focus:text-blue-500",children:(0,Ft.__)("Skip to templates","extendify")}),(0,Jt.jsx)("div",{className:"relative mx-auto h-full sm:flex",children:(0,Jt.jsxs)(Zi,{children:[(0,Jt.jsx)(Xi,{}),(0,Jt.jsxs)("div",{className:"relative z-30 flex h-full flex-col",children:[(0,Jt.jsx)(Yi,{className:"hidden h-12 w-full flex-shrink-0 px-6 sm:block md:px-8",hideLibrary:function(){return t(!1)}}),(0,Jt.jsx)("div",{ref:n,className:"z-20 flex-grow overflow-y-auto px-6 md:px-8",children:(0,Jt.jsx)($o,{})})]})]})})]})})};function ea(){var e=(0,o.useRef)(null),t=k((function(e){return e.open})),n=k((function(e){return e.setOpen})),r=function(){var e=Mn((0,o.useState)(null),2),t=e[0],n=e[1],r=k((function(e){return e.open})),i=k((function(e){return e.pushModal})),a=k((function(e){return e.removeAllModals}));return(0,o.useEffect)((function(){return k.subscribe((function(e){return e.modals}),(function(e){return n((null==e?void 0:e.length)>0?e[0]:null)}))}),[]),(0,o.useEffect)((function(){var e;if(r){var t={standalone:Ln},n=t[null!==(e=Object.keys(t).find((function(e){return"standalone"===e?!window.extendifyData.standalone&&!G.getState().modalNoticesDismissedAt[e]:!G.getState().modalNoticesDismissedAt[e]})))&&void 0!==e?e:null];n&&i((0,Jt.jsx)(n,{}))}else a()}),[r,i,a]),t}(),i=k((function(e){return e.ready})),a=Bn("notice-position",["A","B"]);return(0,Jt.jsx)(Xe,{appear:!0,show:t,as:o.Fragment,children:(0,Jt.jsx)(Rt,{as:"div",static:!0,className:"extendify",initialFocus:e,onClose:function(){return n(!1)},children:(0,Jt.jsx)("div",{className:"fixed inset-0 z-high m-auto h-screen w-screen overflow-y-auto sm:h-auto sm:w-auto",children:(0,Jt.jsxs)("div",{className:"flex min-h-screen items-end justify-center px-4 pt-4 pb-20 text-center sm:block sm:p-0",children:[(0,Jt.jsx)(Xe.Child,{as:o.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",children:(0,Jt.jsx)(Rt.Overlay,{className:"fixed inset-0 bg-black bg-opacity-40 transition-opacity"})}),(0,Jt.jsx)(Xe.Child,{as:o.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-5",enterTo:"opacity-100 translate-y-0",children:(0,Jt.jsxs)("div",{ref:e,tabIndex:"0",onClick:function(e){return e.target===e.currentTarget&&n(!1)},className:"fixed inset-0 transform p-2 transition-all lg:absolute lg:overflow-hidden lg:p-16",children:["B"===a&&(0,Jt.jsx)(dn,{className:"-mt-6"}),(0,Jt.jsx)(Qi,{}),i?(0,Jt.jsxs)(Jt.Fragment,{children:["A"===a&&(0,Jt.jsx)(dn,{}),r]}):null]})})]})})})})}const ta=wp.compose,na=wp.hooks,ra=JSON.parse('{"t":["ext-absolute","ext-relative","ext-top-base","ext-top-lg","ext--top-base","ext--top-lg","ext-right-base","ext-right-lg","ext--right-base","ext--right-lg","ext-bottom-base","ext-bottom-lg","ext--bottom-base","ext--bottom-lg","ext-left-base","ext-left-lg","ext--left-base","ext--left-lg","ext-order-1","ext-order-2","ext-col-auto","ext-col-span-1","ext-col-span-2","ext-col-span-3","ext-col-span-4","ext-col-span-5","ext-col-span-6","ext-col-span-7","ext-col-span-8","ext-col-span-9","ext-col-span-10","ext-col-span-11","ext-col-span-12","ext-col-span-full","ext-col-start-1","ext-col-start-2","ext-col-start-3","ext-col-start-4","ext-col-start-5","ext-col-start-6","ext-col-start-7","ext-col-start-8","ext-col-start-9","ext-col-start-10","ext-col-start-11","ext-col-start-12","ext-col-start-13","ext-col-start-auto","ext-col-end-1","ext-col-end-2","ext-col-end-3","ext-col-end-4","ext-col-end-5","ext-col-end-6","ext-col-end-7","ext-col-end-8","ext-col-end-9","ext-col-end-10","ext-col-end-11","ext-col-end-12","ext-col-end-13","ext-col-end-auto","ext-row-auto","ext-row-span-1","ext-row-span-2","ext-row-span-3","ext-row-span-4","ext-row-span-5","ext-row-span-6","ext-row-span-full","ext-row-start-1","ext-row-start-2","ext-row-start-3","ext-row-start-4","ext-row-start-5","ext-row-start-6","ext-row-start-7","ext-row-start-auto","ext-row-end-1","ext-row-end-2","ext-row-end-3","ext-row-end-4","ext-row-end-5","ext-row-end-6","ext-row-end-7","ext-row-end-auto","ext-m-0","ext-m-auto","ext-m-base","ext-m-lg","ext--m-base","ext--m-lg","ext-mx-0","ext-mx-auto","ext-mx-base","ext-mx-lg","ext--mx-base","ext--mx-lg","ext-my-0","ext-my-auto","ext-my-base","ext-my-lg","ext--my-base","ext--my-lg","ext-mt-0","ext-mt-auto","ext-mt-base","ext-mt-lg","ext--mt-base","ext--mt-lg","ext-mr-0","ext-mr-auto","ext-mr-base","ext-mr-lg","ext--mr-base","ext--mr-lg","ext-mb-0","ext-mb-auto","ext-mb-base","ext-mb-lg","ext--mb-base","ext--mb-lg","ext-ml-0","ext-ml-auto","ext-ml-base","ext-ml-lg","ext--ml-base","ext--ml-lg","ext-block","ext-inline-block","ext-inline","ext-flex","ext-inline-flex","ext-grid","ext-inline-grid","ext-hidden","ext-w-auto","ext-w-full","ext-max-w-full","ext-flex-1","ext-flex-auto","ext-flex-initial","ext-flex-none","ext-flex-shrink-0","ext-flex-shrink","ext-flex-grow-0","ext-flex-grow","ext-list-none","ext-grid-cols-1","ext-grid-cols-2","ext-grid-cols-3","ext-grid-cols-4","ext-grid-cols-5","ext-grid-cols-6","ext-grid-cols-7","ext-grid-cols-8","ext-grid-cols-9","ext-grid-cols-10","ext-grid-cols-11","ext-grid-cols-12","ext-grid-cols-none","ext-grid-rows-1","ext-grid-rows-2","ext-grid-rows-3","ext-grid-rows-4","ext-grid-rows-5","ext-grid-rows-6","ext-grid-rows-none","ext-flex-row","ext-flex-row-reverse","ext-flex-col","ext-flex-col-reverse","ext-flex-wrap","ext-flex-wrap-reverse","ext-flex-nowrap","ext-items-start","ext-items-end","ext-items-center","ext-items-baseline","ext-items-stretch","ext-justify-start","ext-justify-end","ext-justify-center","ext-justify-between","ext-justify-around","ext-justify-evenly","ext-justify-items-start","ext-justify-items-end","ext-justify-items-center","ext-justify-items-stretch","ext-gap-0","ext-gap-base","ext-gap-lg","ext-gap-x-0","ext-gap-x-base","ext-gap-x-lg","ext-gap-y-0","ext-gap-y-base","ext-gap-y-lg","ext-justify-self-auto","ext-justify-self-start","ext-justify-self-end","ext-justify-self-center","ext-justify-self-stretch","ext-rounded-none","ext-rounded-full","ext-rounded-t-none","ext-rounded-t-full","ext-rounded-r-none","ext-rounded-r-full","ext-rounded-b-none","ext-rounded-b-full","ext-rounded-l-none","ext-rounded-l-full","ext-rounded-tl-none","ext-rounded-tl-full","ext-rounded-tr-none","ext-rounded-tr-full","ext-rounded-br-none","ext-rounded-br-full","ext-rounded-bl-none","ext-rounded-bl-full","ext-border-0","ext-border-t-0","ext-border-r-0","ext-border-b-0","ext-border-l-0","ext-p-0","ext-p-base","ext-p-lg","ext-px-0","ext-px-base","ext-px-lg","ext-py-0","ext-py-base","ext-py-lg","ext-pt-0","ext-pt-base","ext-pt-lg","ext-pr-0","ext-pr-base","ext-pr-lg","ext-pb-0","ext-pb-base","ext-pb-lg","ext-pl-0","ext-pl-base","ext-pl-lg","ext-text-left","ext-text-center","ext-text-right","ext-leading-none","ext-leading-tight","ext-leading-snug","ext-leading-normal","ext-leading-relaxed","ext-leading-loose","clip-path--rhombus","clip-path--diamond","clip-path--rhombus-alt","wp-block-columns[class*=\\"fullwidth-cols\\"]\\n","tablet\\\\:fullwidth-cols","desktop\\\\:fullwidth-cols","direction-rtl","direction-ltr","bring-to-front","text-stroke","text-stroke--primary","text-stroke--secondary","editor\\\\:no-caption","editor\\\\:no-inserter","editor\\\\:no-resize","editor\\\\:pointer-events-none","tablet\\\\:ext-absolute","tablet\\\\:ext-relative","tablet\\\\:ext-top-base","tablet\\\\:ext-top-lg","tablet\\\\:ext--top-base","tablet\\\\:ext--top-lg","tablet\\\\:ext-right-base","tablet\\\\:ext-right-lg","tablet\\\\:ext--right-base","tablet\\\\:ext--right-lg","tablet\\\\:ext-bottom-base","tablet\\\\:ext-bottom-lg","tablet\\\\:ext--bottom-base","tablet\\\\:ext--bottom-lg","tablet\\\\:ext-left-base","tablet\\\\:ext-left-lg","tablet\\\\:ext--left-base","tablet\\\\:ext--left-lg","tablet\\\\:ext-order-1","tablet\\\\:ext-order-2","tablet\\\\:ext-m-0","tablet\\\\:ext-m-auto","tablet\\\\:ext-m-base","tablet\\\\:ext-m-lg","tablet\\\\:ext--m-base","tablet\\\\:ext--m-lg","tablet\\\\:ext-mx-0","tablet\\\\:ext-mx-auto","tablet\\\\:ext-mx-base","tablet\\\\:ext-mx-lg","tablet\\\\:ext--mx-base","tablet\\\\:ext--mx-lg","tablet\\\\:ext-my-0","tablet\\\\:ext-my-auto","tablet\\\\:ext-my-base","tablet\\\\:ext-my-lg","tablet\\\\:ext--my-base","tablet\\\\:ext--my-lg","tablet\\\\:ext-mt-0","tablet\\\\:ext-mt-auto","tablet\\\\:ext-mt-base","tablet\\\\:ext-mt-lg","tablet\\\\:ext--mt-base","tablet\\\\:ext--mt-lg","tablet\\\\:ext-mr-0","tablet\\\\:ext-mr-auto","tablet\\\\:ext-mr-base","tablet\\\\:ext-mr-lg","tablet\\\\:ext--mr-base","tablet\\\\:ext--mr-lg","tablet\\\\:ext-mb-0","tablet\\\\:ext-mb-auto","tablet\\\\:ext-mb-base","tablet\\\\:ext-mb-lg","tablet\\\\:ext--mb-base","tablet\\\\:ext--mb-lg","tablet\\\\:ext-ml-0","tablet\\\\:ext-ml-auto","tablet\\\\:ext-ml-base","tablet\\\\:ext-ml-lg","tablet\\\\:ext--ml-base","tablet\\\\:ext--ml-lg","tablet\\\\:ext-block","tablet\\\\:ext-inline-block","tablet\\\\:ext-inline","tablet\\\\:ext-flex","tablet\\\\:ext-inline-flex","tablet\\\\:ext-grid","tablet\\\\:ext-inline-grid","tablet\\\\:ext-hidden","tablet\\\\:ext-w-auto","tablet\\\\:ext-w-full","tablet\\\\:ext-max-w-full","tablet\\\\:ext-flex-1","tablet\\\\:ext-flex-auto","tablet\\\\:ext-flex-initial","tablet\\\\:ext-flex-none","tablet\\\\:ext-flex-shrink-0","tablet\\\\:ext-flex-shrink","tablet\\\\:ext-flex-grow-0","tablet\\\\:ext-flex-grow","tablet\\\\:ext-list-none","tablet\\\\:ext-grid-cols-1","tablet\\\\:ext-grid-cols-2","tablet\\\\:ext-grid-cols-3","tablet\\\\:ext-grid-cols-4","tablet\\\\:ext-grid-cols-5","tablet\\\\:ext-grid-cols-6","tablet\\\\:ext-grid-cols-7","tablet\\\\:ext-grid-cols-8","tablet\\\\:ext-grid-cols-9","tablet\\\\:ext-grid-cols-10","tablet\\\\:ext-grid-cols-11","tablet\\\\:ext-grid-cols-12","tablet\\\\:ext-grid-cols-none","tablet\\\\:ext-flex-row","tablet\\\\:ext-flex-row-reverse","tablet\\\\:ext-flex-col","tablet\\\\:ext-flex-col-reverse","tablet\\\\:ext-flex-wrap","tablet\\\\:ext-flex-wrap-reverse","tablet\\\\:ext-flex-nowrap","tablet\\\\:ext-items-start","tablet\\\\:ext-items-end","tablet\\\\:ext-items-center","tablet\\\\:ext-items-baseline","tablet\\\\:ext-items-stretch","tablet\\\\:ext-justify-start","tablet\\\\:ext-justify-end","tablet\\\\:ext-justify-center","tablet\\\\:ext-justify-between","tablet\\\\:ext-justify-around","tablet\\\\:ext-justify-evenly","tablet\\\\:ext-justify-items-start","tablet\\\\:ext-justify-items-end","tablet\\\\:ext-justify-items-center","tablet\\\\:ext-justify-items-stretch","tablet\\\\:ext-justify-self-auto","tablet\\\\:ext-justify-self-start","tablet\\\\:ext-justify-self-end","tablet\\\\:ext-justify-self-center","tablet\\\\:ext-justify-self-stretch","tablet\\\\:ext-p-0","tablet\\\\:ext-p-base","tablet\\\\:ext-p-lg","tablet\\\\:ext-px-0","tablet\\\\:ext-px-base","tablet\\\\:ext-px-lg","tablet\\\\:ext-py-0","tablet\\\\:ext-py-base","tablet\\\\:ext-py-lg","tablet\\\\:ext-pt-0","tablet\\\\:ext-pt-base","tablet\\\\:ext-pt-lg","tablet\\\\:ext-pr-0","tablet\\\\:ext-pr-base","tablet\\\\:ext-pr-lg","tablet\\\\:ext-pb-0","tablet\\\\:ext-pb-base","tablet\\\\:ext-pb-lg","tablet\\\\:ext-pl-0","tablet\\\\:ext-pl-base","tablet\\\\:ext-pl-lg","tablet\\\\:ext-text-left","tablet\\\\:ext-text-center","tablet\\\\:ext-text-right","desktop\\\\:ext-absolute","desktop\\\\:ext-relative","desktop\\\\:ext-top-base","desktop\\\\:ext-top-lg","desktop\\\\:ext--top-base","desktop\\\\:ext--top-lg","desktop\\\\:ext-right-base","desktop\\\\:ext-right-lg","desktop\\\\:ext--right-base","desktop\\\\:ext--right-lg","desktop\\\\:ext-bottom-base","desktop\\\\:ext-bottom-lg","desktop\\\\:ext--bottom-base","desktop\\\\:ext--bottom-lg","desktop\\\\:ext-left-base","desktop\\\\:ext-left-lg","desktop\\\\:ext--left-base","desktop\\\\:ext--left-lg","desktop\\\\:ext-order-1","desktop\\\\:ext-order-2","desktop\\\\:ext-m-0","desktop\\\\:ext-m-auto","desktop\\\\:ext-m-base","desktop\\\\:ext-m-lg","desktop\\\\:ext--m-base","desktop\\\\:ext--m-lg","desktop\\\\:ext-mx-0","desktop\\\\:ext-mx-auto","desktop\\\\:ext-mx-base","desktop\\\\:ext-mx-lg","desktop\\\\:ext--mx-base","desktop\\\\:ext--mx-lg","desktop\\\\:ext-my-0","desktop\\\\:ext-my-auto","desktop\\\\:ext-my-base","desktop\\\\:ext-my-lg","desktop\\\\:ext--my-base","desktop\\\\:ext--my-lg","desktop\\\\:ext-mt-0","desktop\\\\:ext-mt-auto","desktop\\\\:ext-mt-base","desktop\\\\:ext-mt-lg","desktop\\\\:ext--mt-base","desktop\\\\:ext--mt-lg","desktop\\\\:ext-mr-0","desktop\\\\:ext-mr-auto","desktop\\\\:ext-mr-base","desktop\\\\:ext-mr-lg","desktop\\\\:ext--mr-base","desktop\\\\:ext--mr-lg","desktop\\\\:ext-mb-0","desktop\\\\:ext-mb-auto","desktop\\\\:ext-mb-base","desktop\\\\:ext-mb-lg","desktop\\\\:ext--mb-base","desktop\\\\:ext--mb-lg","desktop\\\\:ext-ml-0","desktop\\\\:ext-ml-auto","desktop\\\\:ext-ml-base","desktop\\\\:ext-ml-lg","desktop\\\\:ext--ml-base","desktop\\\\:ext--ml-lg","desktop\\\\:ext-block","desktop\\\\:ext-inline-block","desktop\\\\:ext-inline","desktop\\\\:ext-flex","desktop\\\\:ext-inline-flex","desktop\\\\:ext-grid","desktop\\\\:ext-inline-grid","desktop\\\\:ext-hidden","desktop\\\\:ext-w-auto","desktop\\\\:ext-w-full","desktop\\\\:ext-max-w-full","desktop\\\\:ext-flex-1","desktop\\\\:ext-flex-auto","desktop\\\\:ext-flex-initial","desktop\\\\:ext-flex-none","desktop\\\\:ext-flex-shrink-0","desktop\\\\:ext-flex-shrink","desktop\\\\:ext-flex-grow-0","desktop\\\\:ext-flex-grow","desktop\\\\:ext-list-none","desktop\\\\:ext-grid-cols-1","desktop\\\\:ext-grid-cols-2","desktop\\\\:ext-grid-cols-3","desktop\\\\:ext-grid-cols-4","desktop\\\\:ext-grid-cols-5","desktop\\\\:ext-grid-cols-6","desktop\\\\:ext-grid-cols-7","desktop\\\\:ext-grid-cols-8","desktop\\\\:ext-grid-cols-9","desktop\\\\:ext-grid-cols-10","desktop\\\\:ext-grid-cols-11","desktop\\\\:ext-grid-cols-12","desktop\\\\:ext-grid-cols-none","desktop\\\\:ext-flex-row","desktop\\\\:ext-flex-row-reverse","desktop\\\\:ext-flex-col","desktop\\\\:ext-flex-col-reverse","desktop\\\\:ext-flex-wrap","desktop\\\\:ext-flex-wrap-reverse","desktop\\\\:ext-flex-nowrap","desktop\\\\:ext-items-start","desktop\\\\:ext-items-end","desktop\\\\:ext-items-center","desktop\\\\:ext-items-baseline","desktop\\\\:ext-items-stretch","desktop\\\\:ext-justify-start","desktop\\\\:ext-justify-end","desktop\\\\:ext-justify-center","desktop\\\\:ext-justify-between","desktop\\\\:ext-justify-around","desktop\\\\:ext-justify-evenly","desktop\\\\:ext-justify-items-start","desktop\\\\:ext-justify-items-end","desktop\\\\:ext-justify-items-center","desktop\\\\:ext-justify-items-stretch","desktop\\\\:ext-justify-self-auto","desktop\\\\:ext-justify-self-start","desktop\\\\:ext-justify-self-end","desktop\\\\:ext-justify-self-center","desktop\\\\:ext-justify-self-stretch","desktop\\\\:ext-p-0","desktop\\\\:ext-p-base","desktop\\\\:ext-p-lg","desktop\\\\:ext-px-0","desktop\\\\:ext-px-base","desktop\\\\:ext-px-lg","desktop\\\\:ext-py-0","desktop\\\\:ext-py-base","desktop\\\\:ext-py-lg","desktop\\\\:ext-pt-0","desktop\\\\:ext-pt-base","desktop\\\\:ext-pt-lg","desktop\\\\:ext-pr-0","desktop\\\\:ext-pr-base","desktop\\\\:ext-pr-lg","desktop\\\\:ext-pb-0","desktop\\\\:ext-pb-base","desktop\\\\:ext-pb-lg","desktop\\\\:ext-pl-0","desktop\\\\:ext-pl-base","desktop\\\\:ext-pl-lg","desktop\\\\:ext-text-left","desktop\\\\:ext-text-center","desktop\\\\:ext-text-right"]}');function oa(e){return function(e){if(Array.isArray(e))return ia(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ia(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ia(e,t)}(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 ia(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 aa(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 sa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aa(Object(n),!0).forEach((function(t){la(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function la(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ca=(0,ta.createHigherOrderComponent)((function(e){return function(t){var n,r,o=null!==(n=null==t||null===(r=t.attributes)||void 0===r?void 0:r.extUtilities)&&void 0!==n?n:[],i=ra.t.map((function(e){return e.replace(".","").replace(new RegExp("\\\\","g"),"")}));return(0,Jt.jsxs)(Jt.Fragment,{children:[(0,Jt.jsx)(e,sa({},t)),o&&(0,Jt.jsx)(fr.InspectorAdvancedControls,{children:(0,Jt.jsx)(Dt.FormTokenField,{label:(0,Ft.__)("Extendify Utilities","extendify"),tokenizeOnSpace:!0,value:o,suggestions:i,onChange:function(e){t.setAttributes({extUtilities:e})}})})]})}}),"utilityClassEdit");function ua(e,t,n){var r,o,i,a=null!==(r=null==e?void 0:e.className)&&void 0!==r?r:[],s=null!==(o=null==n?void 0:n.extUtilities)&&void 0!==o?o:[],l=null!==(i=null==n?void 0:n.className)&&void 0!==i?i:[];if(!s||!Object.keys(s).length)return e;var c=function(e){switch(Object.prototype.toString.call(e)){case"[object String]":return e.split(" ");case"[object Array]":return e;default:return[]}},u=new Set([].concat(oa(c(l)),oa(c(a)),oa(c(s))));return Object.assign({},e,{className:oa(u).join(" ")})}function da(e){var t=e.show,n=void 0!==t&&t,r=k((function(e){return e.open})),i=k((function(e){return e.setReady})),a=k((function(e){return e.setOpen})),s=(0,o.useCallback)((function(){return a(!0)}),[a]),l=(0,o.useCallback)((function(){return a(!1)}),[a]),c=ue((function(e){return e.initTemplateData})),u=Q((function(e){return e.fetchTaxonomies})),d=G((function(e){return e._hasHydrated})),f=ue((function(e){return Object.keys(e.taxonomyDefaultState).length>0}));return(0,o.useEffect)((function(){r&&u().then((function(){ue.getState().setupDefaultTaxonomies()}))}),[r,u]),(0,o.useEffect)((function(){d&&f&&(c(),i(!0))}),[d,f,c,i]),(0,o.useEffect)((function(){var e=new URLSearchParams(window.location.search);(n||e.has("ext-open"))&&a(!0)}),[n,a]),(0,o.useEffect)((function(){de().then((function(e){k.setState({metaData:e})}))}),[]),(0,o.useEffect)((function(){return window.addEventListener("extendify::open-library",s),window.addEventListener("extendify::close-library",l),function(){window.removeEventListener("extendify::open-library",s),window.removeEventListener("extendify::close-library",l)}}),[l,s]),(0,Jt.jsx)(ea,{})}function fa(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}(0,na.addFilter)("blocks.registerBlockType","extendify/utilities/attributes",(function(e){return sa(sa({},e),{},{attributes:sa(sa({},e.attributes),{},{extUtilities:{type:"array",default:[]}})})})),(0,na.addFilter)("blocks.registerBlockType","extendify/utilities/addEditProps",(function(e){var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),ua(r,e,n)},e})),(0,na.addFilter)("editor.BlockEdit","extendify/utilities/advancedClassControls",ca),(0,na.addFilter)("blocks.getSaveContent.extraProps","extendify/utilities/extra-props",ua);var pa,ha=(0,Ar.select)("core/blocks").getCategories();(0,r.setCategories)([{slug:"extendify",title:"Extendify",icon:null}].concat(function(e){if(Array.isArray(e))return fa(e)}(pa=ha)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(pa)||function(e,t){if(e){if("string"==typeof e)return fa(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)?fa(e,t):void 0}}(pa)||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.")}())),(0,r.registerBlockCollection)("extendify",{title:"Extendify",icon:(0,Jt.jsx)(Dt.Icon,{icon:hn})});const ma=(0,o.createElement)(qt,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)(Wt,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8h-1.5zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zM4.5 4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1V12l-2.3-1.7c-.3-.2-.6-.2-.9 0l-2.9 2.1L8 11.3c-.2-.1-.5-.1-.7 0l-2.9 1.5V4.6zm0 11.8v-1.8l3.2-1.7 2.4 1.2c.2.1.5.1.8-.1l2.8-2 2.8 2v2.5c0 .1-.1.1-.1.1H4.6c0-.1-.1-.2-.1-.2z"})),xa=(0,o.createElement)(qt,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)(Wt,{d:"M10 4.5a1 1 0 11-2 0 1 1 0 012 0zm1.5 0a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0zm2.25 7.5v-1A2.75 2.75 0 0011 8.25H7A2.75 2.75 0 004.25 11v1h1.5v-1c0-.69.56-1.25 1.25-1.25h4c.69 0 1.25.56 1.25 1.25v1h1.5zM4 20h9v-1.5H4V20zm16-4H4v-1.5h16V16z",fillRule:"evenodd",clipRule:"evenodd"})),ya=(0,o.createElement)(qt,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(Wt,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h6.2v8.9l2.5-3.1 2.5 3.1V4.5h2.2c.4 0 .8.4.8.8v13.4z"})),va=(0,o.createElement)(qt,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(Wt,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12-9.8c.4 0 .8-.3.9-.7l1.1-3h3.6l.5 1.7h1.9L13 9h-2.2l-3.4 9.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12H20V6c0-1.1-.9-2-2-2zm-6 7l1.4 3.9h-2.7L12 11z"})),ga=(0,o.createElement)(qt,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(Wt,{d:"M12 9c-.8 0-1.5.7-1.5 1.5S11.2 12 12 12s1.5-.7 1.5-1.5S12.8 9 12 9zm0-5c-3.6 0-6.5 2.8-6.5 6.2 0 .8.3 1.8.9 3.1.5 1.1 1.2 2.3 2 3.6.7 1 3 3.8 3.2 3.9l.4.5.4-.5c.2-.2 2.6-2.9 3.2-3.9.8-1.2 1.5-2.5 2-3.6.6-1.3.9-2.3.9-3.1C18.5 6.8 15.6 4 12 4zm4.3 8.7c-.5 1-1.1 2.2-1.9 3.4-.5.7-1.7 2.2-2.4 3-.7-.8-1.9-2.3-2.4-3-.8-1.2-1.4-2.3-1.9-3.3-.6-1.4-.7-2.2-.7-2.5 0-2.6 2.2-4.7 5-4.7s5 2.1 5 4.7c0 .2-.1 1-.7 2.4z"})),ba=(0,o.createElement)(qt,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)(Wt,{d:"M19 6.5H5c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v7zM8 12.8h8v-1.5H8v1.5z"})),wa=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"extendify/library","title":"Pattern Library","description":"Add block patterns and full page layouts with the Extendify Library.","keywords":["template","layouts"],"textdomain":"extendify","attributes":{"preview":{"type":"string"},"search":{"type":"string"}}}');(0,r.registerBlockType)(wa,{icon:hn,category:"extendify",example:{attributes:{preview:window.extendifyData.asset_path+"/preview.png"}},variations:[{name:"gallery",icon:(0,Jt.jsx)(Bt,{icon:ma}),category:"extendify",attributes:{search:"gallery"},title:(0,Ft.__)("Gallery Patterns","extendify"),description:(0,Ft.__)("Add gallery patterns and layouts.","extendify"),keywords:[(0,Ft.__)("slideshow","extendify"),(0,Ft.__)("images","extendify")]},{name:"team",icon:(0,Jt.jsx)(Bt,{icon:xa}),category:"extendify",attributes:{search:"team"},title:(0,Ft.__)("Team Patterns","extendify"),description:(0,Ft.__)("Add team patterns and layouts.","extendify"),keywords:[(0,Ft._x)("crew","As in team","extendify"),(0,Ft.__)("colleagues","extendify"),(0,Ft.__)("members","extendify")]},{name:"hero",icon:(0,Jt.jsx)(Bt,{icon:ya}),category:"extendify",attributes:{search:"hero"},title:(0,Ft._x)("Hero Patterns","Hero being a hero/top section of a webpage","extendify"),description:(0,Ft.__)("Add hero patterns and layouts.","extendify"),keywords:[(0,Ft.__)("heading","extendify"),(0,Ft.__)("headline","extendify")]},{name:"text",icon:(0,Jt.jsx)(Bt,{icon:va}),category:"extendify",attributes:{search:"text"},title:(0,Ft._x)("Text Patterns","Relating to patterns that feature text only","extendify"),description:(0,Ft.__)("Add text patterns and layouts.","extendify"),keywords:[(0,Ft.__)("simple","extendify"),(0,Ft.__)("paragraph","extendify")]},{name:"about",icon:(0,Jt.jsx)(Bt,{icon:ga}),category:"extendify",attributes:{search:"about"},title:(0,Ft._x)("About Page Patterns","Add patterns relating to an about us page","extendify"),description:(0,Ft.__)("About patterns and layouts.","extendify"),keywords:[(0,Ft.__)("who we are","extendify"),(0,Ft.__)("team","extendify")]},{name:"call-to-action",icon:(0,Jt.jsx)(Bt,{icon:ba}),category:"extendify",attributes:{search:"call-to-action"},title:(0,Ft.__)("Call to Action Patterns","extendify"),description:(0,Ft.__)("Add call to action patterns and layouts.","extendify"),keywords:[(0,Ft._x)("cta","Initialism for call to action","extendify"),(0,Ft.__)("callout","extendify"),(0,Ft.__)("buttons","extendify")]}],edit:function(e){var t=e.clientId,n=e.attributes,r=(0,Ar.useDispatch)("core/block-editor").removeBlock;return(0,o.useEffect)((function(){n.preview||(n.search&&ja(n.search),_r("library-block","open"),r(t))}),[t,n,r]),(0,Jt.jsx)("img",{style:{display:"block",maxWidth:"100%"},src:n.preview,alt:(0,Ft.sprintf)((0,Ft.__)("%s Pattern Library","extendify"),"Extendify")})}});var ja=function(e){var t=new URLSearchParams(window.location.search);t.append("ext-patternType",e),window.history.replaceState(null,null,window.location.pathname+"?"+t.toString())};const ka=wp.editPost,Sa=wp.plugins;var Ca=function(){return J.get("site-settings")},_a=function(e){var t=new FormData;return t.append("data",JSON.stringify(e)),J.post("site-settings",t,{headers:{"Content-Type":"multipart/form-data"}})};function Oa(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Ea(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Oa(i,r,o,a,s,"next",e)}function s(e){Oa(i,r,o,a,s,"throw",e)}a(void 0)}))}}var Na={getItem:function(){var e=Ea(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ca();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),setItem:function(){var e=Ea(a().mark((function e(t,n){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_a(n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),removeItem:function(){}},Aa=d(b((function(){return{enabled:!0}}),{name:"extendify-sitesettings",getStorage:function(){return Na}}));function Pa(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Ta(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Pa(i,r,o,a,s,"next",e)}function s(e){Pa(i,r,o,a,s,"throw",e)}a(void 0)}))}}function Ia(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return La(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return La(e,t)}(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.")}()}function La(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}const Ma=function(){var e=(0,Ar.useSelect)((function(e){return e("core").canUser("create","users")})),t=Ia((0,o.useState)(G.getState().enabled),2),n=t[0],r=t[1],i=Ia((0,o.useState)(Aa.getState().enabled),2),s=i[0],l=i[1];function c(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=document.getElementById("extendify-templates-inserter-btn");t&&(e?t.classList.add("hidden"):t.classList.remove("hidden"))}function u(e){return d.apply(this,arguments)}function d(){return(d=Ta(a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,G.setState({enabled:t});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(e){return p.apply(this,arguments)}function p(){return(p=Ta(a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Aa.setState({enabled:t});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function h(e,t){return m.apply(this,arguments)}function m(){return m=Ta(a().mark((function e(t,n){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("global"!==n){e.next=5;break}return e.next=3,f(t);case 3:e.next=7;break;case 5:return e.next=7,u(t);case 7:case"end":return e.stop()}}),e)}))),m.apply(this,arguments)}function x(e){"global"===e?l((function(t){return h(!t,e),!t})):r((function(t){return c(!t),h(!t,e),!t}))}return(0,o.useEffect)((function(){c(!n)}),[n]),(0,Jt.jsxs)(Dt.Modal,{title:(0,Ft.__)("Extendify Settings","extendify"),onRequestClose:function(){var e=document.getElementById("extendify-util");(0,o.unmountComponentAtNode)(e)},children:[(0,Jt.jsx)(Dt.ToggleControl,{label:e?(0,Ft.__)("Enable the library for myself","extendify"):(0,Ft.__)("Enable the library","extendify"),help:(0,Ft.__)("Publish with hundreds of patterns & page layouts","extendify"),checked:n,onChange:function(){return x("user")}}),e&&(0,Jt.jsxs)(Jt.Fragment,{children:[(0,Jt.jsx)("br",{}),(0,Jt.jsx)(Dt.ToggleControl,{label:(0,Ft.__)("Allow all users to publish with the library"),help:(0,Ft.__)("Everyone publishes with patterns & page layouts","extendify"),checked:s,onChange:function(){return x("global")}})]})]})};var Ra=function(e){var t=e.anchorRef,n=e.onPressX,r=e.onClick,o=e.onClickOutside;return t.current?(0,Jt.jsx)(Dt.Popover,{anchorRef:t.current,shouldAnchorIncludePadding:!0,className:"extendify-tooltip-default",focusOnMount:!1,onFocusOutside:o,onClick:r,position:"bottom center",noArrow:!1,children:(0,Jt.jsxs)(Jt.Fragment,{children:[(0,Jt.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"0.5rem"},children:[(0,Jt.jsx)("span",{style:{textTransform:"uppercase",color:"#8b8b8b"},children:(0,Ft.__)("Monthly Imports","extendify")}),(0,Jt.jsx)(Dt.Button,{style:{color:"white",position:"relative",right:"-5px",padding:"0",minWidth:"0",height:"20px",width:"20px"},onClick:function(e){e.stopPropagation(),n()},icon:(0,Jt.jsx)(Bt,{icon:En,size:12}),showTooltip:!1,label:(0,Ft.__)("Close callout","extendify")})]}),(0,Jt.jsx)("div",{dangerouslySetInnerHTML:{__html:fn((0,Ft.sprintf)((0,Ft.__)("%1$sGood news!%2$s We've added more imports to your library. Enjoy!","extendify"),"<strong>","</strong>"))}})]})}):null};function Da(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Fa(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Da(i,r,o,a,s,"next",e)}function s(e){Da(i,r,o,a,s,"throw",e)}a(void 0)}))}}function Ba(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return za(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return za(e,t)}(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.")}()}function za(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}var Ua,Va,Ha,Wa,$a,qa,Ga,Ja,Ka,Xa,Za=function(){var e=Ba((0,o.useState)(!1),2),t=e[0],n=e[1],r=(0,o.useRef)(!1),i=(0,o.useRef)(),s=G((function(e){return e.apiKey.length})),l=G((function(e){return e.imports>0})),c=k((function(e){return e.open})),u=G((function(e){return 0===e.allowedImports})),d=G((function(e){return e.uuid})),f=Bn("main-button-text",["A","B","C"],!0),p=Ba((0,o.useState)(),2),h=p[0],m=p[1],x=function(){var e=Fa(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fe("mb-tooltip-closed");case 2:n(!1),G.setState({allowedImports:-1});case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,o.useEffect)((function(){if(d){m(function(){switch(f){case"A":return(0,Ft.__)("Library","extendify");case"B":return(0,Ft.__)("Add section","extendify");case"C":return(0,Ft.__)("Add template","extendify")}}())}}),[f,d]),(0,o.useEffect)((function(){c&&(n(!1),r.current=!0),!s&&u&&l&&(r.current||n(!0),r.current=!0)}),[s,u,l,c]),(0,Jt.jsxs)(Jt.Fragment,{children:[(0,Jt.jsx)(Ya,{buttonRef:i,text:h}),t&&(0,Jt.jsx)(Ra,{anchorRef:i,onClick:Fa(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fe("mb-tooltip-pressed");case 2:Cr("main-button-tooltip");case 3:case"end":return e.stop()}}),e)}))),onPressX:x})]})},Ya=function(e){var t=e.buttonRef,n=e.text;return(0,Jt.jsx)("div",{className:"extendify",children:(0,Jt.jsx)(Dt.Button,{isPrimary:!0,ref:t,className:"h-8 xs:h-9 px-1 min-w-0 xs:pl-2 xs:pr-3 sm:ml-2",onClick:function(){return Cr("main-button")},id:"extendify-templates-inserter-btn",icon:(0,Jt.jsx)(Bt,{icon:mn,size:24,style:{marginRight:0}}),children:(0,Jt.jsx)("span",{className:"hidden xs:inline ml-1",children:n})})})},Qa=function(){return(0,Jt.jsx)(Dt.Button,{id:"extendify-cta-button",style:{margin:"1rem 1rem 0",width:"calc(100% - 2rem)",justifyContent:" center"},onClick:function(){return Cr("patterns-cta")},isSecondary:!0,children:(0,Ft.__)("Discover patterns in Extendify Library","extendify")})},es=null===(Ua=window.extendifyData)||void 0===Ua||null===(Va=Ua.user)||void 0===Va?void 0:Va.state,ts=function(){return null===window.extendifyData.user||(null==es?void 0:es.isAdmin)},ns=function(){var e,t,n;return null===window.extendifyData.sitesettings||(null===(e=window.extendifyData)||void 0===e||null===(t=e.sitesettings)||void 0===t||null===(n=t.state)||void 0===n?void 0:n.enabled)},rs=null===(Ha=window)||void 0===Ha||null===(Wa=Ha.wp)||void 0===Wa||null===($a=Wa.data)||void 0===$a?void 0:$a.subscribe((function(){requestAnimationFrame((function(){var e,t;if((ns()||ts())&&!document.getElementById("extendify-templates-inserter")&&(document.querySelector(".edit-post-header-toolbar")||document.querySelector(".edit-site-header_start"))){var n=Object.assign(document.createElement("div"),{id:"extendify-templates-inserter"});null===(e=document.querySelector(".edit-post-header-toolbar"))||void 0===e||e.append(n),null===(t=document.querySelector(".edit-site-header_start"))||void 0===t||t.append(n),(0,o.render)((0,Jt.jsx)(Za,{}),n),(null===window.extendifyData.user?ns():null==es?void 0:es.enabled)||document.getElementById("extendify-templates-inserter-btn").classList.add("hidden"),rs()}}))})),os=null===(qa=window)||void 0===qa||null===(Ga=qa.wp)||void 0===Ga||null===(Ja=Ga.data)||void 0===Ja?void 0:Ja.subscribe((function(){requestAnimationFrame((function(){if((ns()||ts())&&document.querySelector("[id$=patterns-view]")&&!document.getElementById("extendify-cta-button")){var e=Object.assign(document.createElement("div"),{id:"extendify-cta-button-container"});document.querySelector("[id$=patterns-view]").prepend(e),(0,o.render)((0,Jt.jsx)(Qa,{}),e),os()}}))}));try{(0,Sa.registerPlugin)("extendify-settings-enable-disable",{render:function(){return(0,Jt.jsx)(Jt.Fragment,{children:(0,Jt.jsxs)(ka.PluginSidebarMoreMenuItem,{onClick:function(){var e=document.getElementById("extendify-util");(0,o.render)((0,Jt.jsx)(Ma,{}),e)},icon:(0,Jt.jsx)(Bt,{icon:mn,size:24}),children:[" ",(0,Ft.__)("Extendify","extendify")]})})}})}catch(e){console.error("registerPlugin not supported? (error handled gracefully)",e.message)}[{register:function(){var e=(0,Ar.dispatch)("core/notices").createNotice,t=G.getState().incrementImports;window.addEventListener("extendify::template-inserted",(function(n){e("info",(0,Ft.__)("Page layout added"),{isDismissible:!0,type:"snackbar"}),setTimeout((function(){var e;t(),ur(null===(e=n.detail)||void 0===e?void 0:e.template)}),0)}))}},{register:function(){var e=this;window.addEventListener("extendify::softerror-encountered",(function(t){e[(0,_.camelCase)(t.detail.type)](t.detail)}))},versionOutdated:function(e){(0,o.render)((0,Jt.jsx)(Gr,{title:e.data.title,requiredPlugins:["extendify"],message:e.data.message,buttonLabel:e.data.buttonLabel,forceOpen:!0}),document.getElementById("extendify-root"))}}].forEach((function(e){return e.register()})),null===(Ka=window)||void 0===Ka||null===(Xa=Ka.wp)||void 0===Xa||Xa.domReady((function(){var e=Object.assign(document.createElement("div"),{id:"extendify-root"});if(document.body.append(e),(0,o.render)((0,Jt.jsx)(da,{}),e),e.parentNode.insertBefore(Object.assign(document.createElement("div"),{id:"extendify-util"}),e.nextSibling),Sr.getState().importOnLoad){var t=Sr.getState().wantedTemplate;setTimeout((function(){lo((0,r.rawHandler)({HTML:t.fields.code}),t)}),0)}Sr.setState({importOnLoad:!1,wantedTemplate:{}})}))},42:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var s in n)r.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},12:(e,t,n)=>{"use strict";var r=n(185),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,a,s,l,c,u=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),s=document.createRange(),l=document.getSelection(),(c=document.createElement("span")).textContent=e,c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(c),s.selectNodeContents(c),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),c&&document.body.removeChild(c),a()}return u}},716:()=>{},965:()=>{},525:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,s,l=o(e),c=1;c<arguments.length;c++){for(var u in a=Object(arguments[c]))n.call(a,u)&&(l[u]=a[u]);if(t){s=t(a);for(var d=0;d<s.length;d++)r.call(a,s[d])&&(l[s[d]]=a[s[d]])}}return l}},61:e=>{var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var s,l=[],c=!1,u=-1;function d(){c&&s&&(c=!1,s.length?l=s.concat(l):u=-1,l.length&&f())}function f(){if(!c){var e=a(d);c=!0;for(var t=l.length;t;){for(s=l,l=[];++u<t;)s&&s[u].run();u=-1,t=l.length}s=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new p(e,t)),1!==l.length||c||a(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},218:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var r=i(n(363)),o=i(n(12));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return a="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},a(e)}function s(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 l(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 c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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 d(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?p(e):t}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x=function(e){function t(){var e,n;c(this,t);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return m(p(n=d(this,(e=f(t)).call.apply(e,[this].concat(a)))),"onClick",(function(e){var t=n.props,i=t.text,a=t.onCopy,s=t.children,l=t.options,c=r.default.Children.only(s),u=(0,o.default)(i,l);a&&a(i,u),c&&c.props&&"function"==typeof c.props.onClick&&c.props.onClick(e)})),n}var n,i,a;return function(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&&h(e,t)}(t,e),n=t,i=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),n=l(e,["text","onCopy","options","children"]),o=r.default.Children.only(t);return r.default.cloneElement(o,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(n,!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n,{onClick:this.onClick}))}}],i&&u(n.prototype,i),a&&u(n,a),t}(r.default.PureComponent);t.CopyToClipboard=x,m(x,"defaultProps",{onCopy:void 0,options:void 0})},306:(e,t,n)=>{"use strict";var r=n(218).CopyToClipboard;r.CopyToClipboard=r,e.exports=r},426:(e,t,n)=>{"use strict";n(525);var r=n(363),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),t.Fragment=i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:a.current}}t.jsx=c,t.jsxs=c},246:(e,t,n)=>{"use strict";e.exports=n(426)},248:e=>{var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof x?t:x,i=Object.create(o.prototype),a=new E(r||[]);return i._invoke=function(e,t,n){var r=d;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return A()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=C(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var l=u(e,t,n);if("normal"===l.type){if(r=n.done?h:f,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=h,n.method="throw",n.arg=l.arg)}}}(e,n,a),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d="suspendedStart",f="suspendedYield",p="executing",h="completed",m={};function x(){}function y(){}function v(){}var g={};l(g,i,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(N([])));w&&w!==n&&r.call(w,i)&&(g=w);var j=v.prototype=x.prototype=Object.create(g);function k(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;this._invoke=function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}}function C(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,C(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=u(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function N(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:A}}function A(){return{value:t,done:!0}}return y.prototype=v,l(j,"constructor",v),l(v,"constructor",y),y.displayName=l(v,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,l(e,s,"GeneratorFunction")),e.prototype=Object.create(j),e},e.awrap=function(e){return{__await:e}},k(S.prototype),l(S.prototype,a,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(c(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(j),l(j,s,"Generator"),l(j,i,(function(){return this})),l(j,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=N,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:N(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},185:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},363:e=>{"use strict";e.exports=React}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,r),i.exports}r.m=t,e=[],r.O=(t,n,o,i)=>{if(!n){var a=1/0;for(u=0;u<e.length;u++){for(var[n,o,i]=e[u],s=!0,l=0;l<n.length;l++)(!1&i||a>=i)&&Object.keys(r.O).every((e=>r.O[e](n[l])))?n.splice(l--,1):(s=!1,i<a&&(a=i));if(s){e.splice(u--,1);var c=o();void 0!==c&&(t=c)}}return t}i=i||0;for(var u=e.length;u>0&&e[u-1][2]>i;u--)e[u]=e[u-1];e[u]=[n,o,i]},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={245:0,506:0,551:0};r.O.j=t=>0===e[t];var t=(t,n)=>{var o,i,[a,s,l]=n,c=0;if(a.some((t=>0!==e[t]))){for(o in s)r.o(s,o)&&(r.m[o]=s[o]);if(l)var u=l(r)}for(t&&t(n);c<a.length;c++)i=a[c],r.o(e,i)&&e[i]&&e[i][0](),e[a[c]]=0;return r.O(u)},n=self.webpackChunk=self.webpackChunk||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),r.O(void 0,[506,551],(()=>r(364))),r.O(void 0,[506,551],(()=>r(716)));var o=r.O(void 0,[506,551],(()=>r(965)));o=r.O(o)})();
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: extendify, richtabor, kbat82, clubkert, arturgrabo
|
3 |
Tags: templates, patterns, layouts, blocks, gutenberg
|
4 |
Requires at least: 5.4
|
5 |
-
Tested up to: 5.9
|
6 |
-
Stable tag: 0.
|
7 |
Requires PHP: 5.6
|
8 |
License: GPLv2
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
@@ -118,12 +118,21 @@ Nope! Extendify imports lightweight block-based content that is served directly
|
|
118 |
|
119 |
== Screenshots ==
|
120 |
|
121 |
-
1. Select a site type/industry to use patterns with images and copy
|
122 |
2. Quickly open the Extendify library with the Pattern Library block
|
123 |
3. The Extendify library, as seen with the Twenty Twenty Two block theme
|
124 |
|
125 |
== Changelog ==
|
126 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
127 |
= 0.7.0 - 2022-03-21 =
|
128 |
- Add support for the Full Site Editor experience
|
129 |
- Update SiteType UX component
|
2 |
Contributors: extendify, richtabor, kbat82, clubkert, arturgrabo
|
3 |
Tags: templates, patterns, layouts, blocks, gutenberg
|
4 |
Requires at least: 5.4
|
5 |
+
Tested up to: 5.9
|
6 |
+
Stable tag: 0.8.0
|
7 |
Requires PHP: 5.6
|
8 |
License: GPLv2
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
118 |
|
119 |
== Screenshots ==
|
120 |
|
121 |
+
1. Select a site type/industry to use patterns with images and copy relevant to you
|
122 |
2. Quickly open the Extendify library with the Pattern Library block
|
123 |
3. The Extendify library, as seen with the Twenty Twenty Two block theme
|
124 |
|
125 |
== Changelog ==
|
126 |
|
127 |
+
= 0.8.0 - 2022-04-26 =
|
128 |
+
- Optimize live preview rendering
|
129 |
+
- Add faster server backend
|
130 |
+
- Add Extendify welcome page
|
131 |
+
- Remove content idle timer
|
132 |
+
- Update sidebar handle accessability styling
|
133 |
+
- Updated wp tested up to value
|
134 |
+
- Implement UI improvements to encourage discoverability
|
135 |
+
|
136 |
= 0.7.0 - 2022-03-21 =
|
137 |
- Add support for the Full Site Editor experience
|
138 |
- Update SiteType UX component
|
src/app.css
CHANGED
@@ -117,24 +117,8 @@ div.extendify button.extendify-skip-to-sr-link:focus {
|
|
117 |
}
|
118 |
|
119 |
/* Style contentType/pageType control in sidebar */
|
120 |
-
.components-panel__body.ext-type-control .components-panel__body-toggle {
|
121 |
-
@apply pl-0 pr-0;
|
122 |
-
}
|
123 |
-
|
124 |
.components-panel__body.ext-type-control .components-panel__body-title {
|
125 |
-
@apply
|
126 |
-
}
|
127 |
-
|
128 |
-
.components-panel__body.ext-type-control
|
129 |
-
.components-panel__body-title
|
130 |
-
.components-button {
|
131 |
-
@apply m-0 border-b-0 py-2 text-xss font-medium uppercase text-extendify-gray;
|
132 |
-
}
|
133 |
-
|
134 |
-
.components-panel__body.ext-type-control
|
135 |
-
.components-button
|
136 |
-
.components-panel__arrow {
|
137 |
-
@apply right-0 text-extendify-gray;
|
138 |
}
|
139 |
|
140 |
.extendify .animate-pulse {
|
117 |
}
|
118 |
|
119 |
/* Style contentType/pageType control in sidebar */
|
|
|
|
|
|
|
|
|
120 |
.components-panel__body.ext-type-control .components-panel__body-title {
|
121 |
+
@apply my-0 -mx-4 border-b-0 px-5;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
122 |
}
|
123 |
|
124 |
.extendify .animate-pulse {
|
src/blocks/block-category.js
CHANGED
@@ -1,10 +1,26 @@
|
|
1 |
/**
|
2 |
* WordPress dependencies
|
3 |
*/
|
4 |
-
import { registerBlockCollection } from '@wordpress/blocks'
|
5 |
import { Icon } from '@wordpress/components'
|
|
|
6 |
import { brandBlockIcon } from '@extendify/components/icons'
|
7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
/**
|
9 |
* Function to register a block collection for our block(s).
|
10 |
*/
|
1 |
/**
|
2 |
* WordPress dependencies
|
3 |
*/
|
4 |
+
import { registerBlockCollection, setCategories } from '@wordpress/blocks'
|
5 |
import { Icon } from '@wordpress/components'
|
6 |
+
import { select } from '@wordpress/data'
|
7 |
import { brandBlockIcon } from '@extendify/components/icons'
|
8 |
|
9 |
+
/**
|
10 |
+
* Register the 'Extendify' block category.
|
11 |
+
*
|
12 |
+
* Note: The category label is overridden via registerBlockCollection() below.
|
13 |
+
*/
|
14 |
+
const currentCategories = select('core/blocks').getCategories()
|
15 |
+
setCategories([
|
16 |
+
{
|
17 |
+
slug: 'extendify',
|
18 |
+
title: 'Extendify',
|
19 |
+
icon: null,
|
20 |
+
},
|
21 |
+
...currentCategories,
|
22 |
+
])
|
23 |
+
|
24 |
/**
|
25 |
* Function to register a block collection for our block(s).
|
26 |
*/
|
src/buttons.js
CHANGED
@@ -101,14 +101,14 @@ const LibraryEnableDisable = () => {
|
|
101 |
}
|
102 |
|
103 |
// Load this button always, which is used to enable or disable
|
104 |
-
// FSE doesn't seem to
|
105 |
try {
|
106 |
registerPlugin('extendify-settings-enable-disable', {
|
107 |
render: LibraryEnableDisable,
|
108 |
})
|
109 |
} catch (e) {
|
110 |
console.error(
|
111 |
-
'registerPlugin not supported? (error handled
|
112 |
e.message,
|
113 |
)
|
114 |
}
|
101 |
}
|
102 |
|
103 |
// Load this button always, which is used to enable or disable
|
104 |
+
// FSE doesn't seem to recognize registerPlugin (yet)
|
105 |
try {
|
106 |
registerPlugin('extendify-settings-enable-disable', {
|
107 |
render: LibraryEnableDisable,
|
108 |
})
|
109 |
} catch (e) {
|
110 |
console.error(
|
111 |
+
'registerPlugin not supported? (error handled gracefully)',
|
112 |
e.message,
|
113 |
)
|
114 |
}
|
src/components/ImportCounter.js
CHANGED
@@ -2,7 +2,7 @@ import { safeHTML } from '@wordpress/dom'
|
|
2 |
import { useEffect, memo, useRef } from '@wordpress/element'
|
3 |
import { __, _n, sprintf } from '@wordpress/i18n'
|
4 |
import { Icon } from '@wordpress/icons'
|
5 |
-
import
|
6 |
import { General } from '@extendify/api/General'
|
7 |
import { User as UserApi } from '@extendify/api/User'
|
8 |
import { useUserStore } from '@extendify/state/User'
|
@@ -43,7 +43,7 @@ export const ImportCounter = memo(function ImportCounter() {
|
|
43 |
target="_blank"
|
44 |
ref={buttonRef}
|
45 |
rel="noreferrer"
|
46 |
-
className={
|
47 |
'button-focus hidden w-full justify-between rounded py-3 px-4 text-sm text-white no-underline sm:flex',
|
48 |
{
|
49 |
'bg-wp-theme-500 hover:bg-wp-theme-600': count > 0,
|
2 |
import { useEffect, memo, useRef } from '@wordpress/element'
|
3 |
import { __, _n, sprintf } from '@wordpress/i18n'
|
4 |
import { Icon } from '@wordpress/icons'
|
5 |
+
import clasNames from 'classnames'
|
6 |
import { General } from '@extendify/api/General'
|
7 |
import { User as UserApi } from '@extendify/api/User'
|
8 |
import { useUserStore } from '@extendify/state/User'
|
43 |
target="_blank"
|
44 |
ref={buttonRef}
|
45 |
rel="noreferrer"
|
46 |
+
className={clasNames(
|
47 |
'button-focus hidden w-full justify-between rounded py-3 px-4 text-sm text-white no-underline sm:flex',
|
48 |
{
|
49 |
'bg-wp-theme-500 hover:bg-wp-theme-600': count > 0,
|
src/components/ImportTemplateBlock.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import { BlockPreview } from '@wordpress/block-editor'
|
2 |
import { rawHandler } from '@wordpress/blocks'
|
3 |
-
import {
|
4 |
import { __, sprintf } from '@wordpress/i18n'
|
5 |
import classNames from 'classnames'
|
6 |
import { Templates as TemplatesApi } from '@extendify/api/Templates'
|
@@ -20,7 +20,6 @@ const canImportMiddleware = Middleware([
|
|
20 |
|
21 |
export function ImportTemplateBlock({ template, maxHeight }) {
|
22 |
const importButtonRef = useRef(null)
|
23 |
-
const once = useRef(false)
|
24 |
const hasAvailableImports = useUserStore(
|
25 |
(state) => state.hasAvailableImports,
|
26 |
)
|
@@ -28,30 +27,27 @@ export function ImportTemplateBlock({ template, maxHeight }) {
|
|
28 |
const setOpen = useGlobalStore((state) => state.setOpen)
|
29 |
const pushModal = useGlobalStore((state) => state.pushModal)
|
30 |
const removeAllModals = useGlobalStore((state) => state.removeAllModals)
|
|
|
|
|
|
|
|
|
31 |
const blocks = useMemo(
|
|
|
|
|
|
|
|
|
|
|
32 |
() => rawHandler({ HTML: template.fields.code }),
|
33 |
[template.fields.code],
|
34 |
)
|
35 |
-
const [loaded, setLoaded] = useState(false)
|
36 |
const devMode = useIsDevMode()
|
37 |
-
const [topValue, setTopValue] = useState(0)
|
38 |
-
|
39 |
-
const focusTrapInnerBlocks = () => {
|
40 |
-
if (once.current) return
|
41 |
-
once.current = true
|
42 |
-
Array.from(
|
43 |
-
importButtonRef.current.querySelectorAll(
|
44 |
-
'a, button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])',
|
45 |
-
),
|
46 |
-
).forEach((el) => el.setAttribute('tabIndex', '-1'))
|
47 |
-
}
|
48 |
|
49 |
const importTemplates = async () => {
|
50 |
await canImportMiddleware.check(template)
|
51 |
AuthorizationCheck(canImportMiddleware)
|
52 |
.then(() => {
|
53 |
setTimeout(() => {
|
54 |
-
injectTemplateBlocks(
|
55 |
.then(() => removeAllModals())
|
56 |
.then(() => setOpen(false))
|
57 |
.then(() => canImportMiddleware.reset())
|
@@ -84,62 +80,10 @@ export function ImportTemplateBlock({ template, maxHeight }) {
|
|
84 |
importTemplates()
|
85 |
}
|
86 |
|
87 |
-
//
|
88 |
-
// Grammerly/Loom/etc compatability
|
89 |
-
// TODO: This can probably be removed after WP 5.9
|
90 |
-
useEffect(() => {
|
91 |
-
const rafIds = []
|
92 |
-
const timeouts = []
|
93 |
-
let rafId1, rafId2, rafId3, rafId4
|
94 |
-
rafId1 = window.requestAnimationFrame(() => {
|
95 |
-
rafId2 = window.requestAnimationFrame(() => {
|
96 |
-
importButtonRef.current
|
97 |
-
.querySelectorAll('iframe')
|
98 |
-
.forEach((frame) => {
|
99 |
-
const inner = frame.contentWindow.document.body
|
100 |
-
const rafId = window.requestAnimationFrame(() => {
|
101 |
-
const maybeRoot =
|
102 |
-
inner.querySelector('.is-root-container')
|
103 |
-
if (maybeRoot) {
|
104 |
-
const height = maybeRoot?.offsetHeight
|
105 |
-
if (height) {
|
106 |
-
rafId4 = window.requestAnimationFrame(
|
107 |
-
() => {
|
108 |
-
frame.contentWindow.dispatchEvent(
|
109 |
-
new Event('resize'),
|
110 |
-
)
|
111 |
-
},
|
112 |
-
)
|
113 |
-
const id = window.setTimeout(() => {
|
114 |
-
frame.contentWindow.dispatchEvent(
|
115 |
-
new Event('resize'),
|
116 |
-
)
|
117 |
-
}, 2000)
|
118 |
-
timeouts.push(id)
|
119 |
-
}
|
120 |
-
}
|
121 |
-
frame.contentWindow.dispatchEvent(
|
122 |
-
new Event('resize'),
|
123 |
-
)
|
124 |
-
})
|
125 |
-
rafIds.push(rafId)
|
126 |
-
})
|
127 |
-
rafId3 = window.requestAnimationFrame(() => {
|
128 |
-
window.dispatchEvent(new Event('resize'))
|
129 |
-
setLoaded(true)
|
130 |
-
})
|
131 |
-
})
|
132 |
-
})
|
133 |
-
return () => {
|
134 |
-
;[...rafIds, rafId1, rafId2, rafId3, rafId4].forEach((id) =>
|
135 |
-
window.cancelAnimationFrame(id),
|
136 |
-
)
|
137 |
-
timeouts.forEach((id) => window.clearTimeout(id))
|
138 |
-
}
|
139 |
-
}, [])
|
140 |
-
|
141 |
useEffect(() => {
|
142 |
if (!Number.isInteger(maxHeight)) return
|
|
|
143 |
const button = importButtonRef.current
|
144 |
const handleIn = () => {
|
145 |
// The live component changes over time so easier to query on demand
|
@@ -162,7 +106,7 @@ export function ImportTemplateBlock({ template, maxHeight }) {
|
|
162 |
button.removeEventListener('blur', handleOut)
|
163 |
button.removeEventListener('mouseleave', handleOut)
|
164 |
}
|
165 |
-
}, [maxHeight])
|
166 |
|
167 |
return (
|
168 |
<div className="group relative">
|
@@ -175,7 +119,6 @@ export function ImportTemplateBlock({ template, maxHeight }) {
|
|
175 |
)}
|
176 |
style={{ maxHeight }}
|
177 |
className="button-focus relative m-0 cursor-pointer overflow-hidden bg-gray-100 ease-in-out"
|
178 |
-
onFocus={focusTrapInnerBlocks}
|
179 |
onClick={importTemplate}
|
180 |
onKeyDown={handleKeyDown}>
|
181 |
<div
|
@@ -194,7 +137,7 @@ export function ImportTemplateBlock({ template, maxHeight }) {
|
|
194 |
</div>
|
195 |
</div>
|
196 |
{/* Show dev info after the preview is loaded to trigger observer */}
|
197 |
-
{devMode &&
|
198 |
{template?.fields?.pro && (
|
199 |
<div className="pointer-events-none absolute top-4 right-4 z-20 rounded-md border border-none bg-white bg-wp-theme-500 py-1 px-2.5 font-medium text-white no-underline shadow-sm">
|
200 |
{__('Pro', 'extendify')}
|
@@ -203,3 +146,13 @@ export function ImportTemplateBlock({ template, maxHeight }) {
|
|
203 |
</div>
|
204 |
)
|
205 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import { BlockPreview } from '@wordpress/block-editor'
|
2 |
import { rawHandler } from '@wordpress/blocks'
|
3 |
+
import { useRef, useMemo, useEffect, useState } from '@wordpress/element'
|
4 |
import { __, sprintf } from '@wordpress/i18n'
|
5 |
import classNames from 'classnames'
|
6 |
import { Templates as TemplatesApi } from '@extendify/api/Templates'
|
20 |
|
21 |
export function ImportTemplateBlock({ template, maxHeight }) {
|
22 |
const importButtonRef = useRef(null)
|
|
|
23 |
const hasAvailableImports = useUserStore(
|
24 |
(state) => state.hasAvailableImports,
|
25 |
)
|
27 |
const setOpen = useGlobalStore((state) => state.setOpen)
|
28 |
const pushModal = useGlobalStore((state) => state.pushModal)
|
29 |
const removeAllModals = useGlobalStore((state) => state.removeAllModals)
|
30 |
+
const [topValue, setTopValue] = useState(0)
|
31 |
+
const type = Array.isArray(template?.fields?.type)
|
32 |
+
? template.fields.type[0]
|
33 |
+
: template?.fields?.type
|
34 |
const blocks = useMemo(
|
35 |
+
() => rawHandler({ HTML: halfImageSizes(template.fields.code) }),
|
36 |
+
[template.fields.code],
|
37 |
+
)
|
38 |
+
// The above will cut the image sizes in half, and the below will be inserted into the page
|
39 |
+
const blocksRaw = useMemo(
|
40 |
() => rawHandler({ HTML: template.fields.code }),
|
41 |
[template.fields.code],
|
42 |
)
|
|
|
43 |
const devMode = useIsDevMode()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
|
45 |
const importTemplates = async () => {
|
46 |
await canImportMiddleware.check(template)
|
47 |
AuthorizationCheck(canImportMiddleware)
|
48 |
.then(() => {
|
49 |
setTimeout(() => {
|
50 |
+
injectTemplateBlocks(blocksRaw, template)
|
51 |
.then(() => removeAllModals())
|
52 |
.then(() => setOpen(false))
|
53 |
.then(() => canImportMiddleware.reset())
|
80 |
importTemplates()
|
81 |
}
|
82 |
|
83 |
+
// Handle layout animation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
useEffect(() => {
|
85 |
if (!Number.isInteger(maxHeight)) return
|
86 |
+
if (type !== 'layout') return
|
87 |
const button = importButtonRef.current
|
88 |
const handleIn = () => {
|
89 |
// The live component changes over time so easier to query on demand
|
106 |
button.removeEventListener('blur', handleOut)
|
107 |
button.removeEventListener('mouseleave', handleOut)
|
108 |
}
|
109 |
+
}, [maxHeight, type])
|
110 |
|
111 |
return (
|
112 |
<div className="group relative">
|
119 |
)}
|
120 |
style={{ maxHeight }}
|
121 |
className="button-focus relative m-0 cursor-pointer overflow-hidden bg-gray-100 ease-in-out"
|
|
|
122 |
onClick={importTemplate}
|
123 |
onKeyDown={handleKeyDown}>
|
124 |
<div
|
137 |
</div>
|
138 |
</div>
|
139 |
{/* Show dev info after the preview is loaded to trigger observer */}
|
140 |
+
{devMode && <DevButtonOverlay template={template} />}
|
141 |
{template?.fields?.pro && (
|
142 |
<div className="pointer-events-none absolute top-4 right-4 z-20 rounded-md border border-none bg-white bg-wp-theme-500 py-1 px-2.5 font-medium text-white no-underline shadow-sm">
|
143 |
{__('Pro', 'extendify')}
|
146 |
</div>
|
147 |
)
|
148 |
}
|
149 |
+
|
150 |
+
const halfImageSizes = (html) => {
|
151 |
+
return html.replace(
|
152 |
+
/\w+:\/\/\S*(w=(\d*))&(h=(\d*))&\w+\S*"/g,
|
153 |
+
(url, w, width, h, height) =>
|
154 |
+
url
|
155 |
+
.replace(w, 'w=' + Math.floor(Number(width) / 2))
|
156 |
+
.replace(h, 'h=' + Math.floor(Number(height) / 2)),
|
157 |
+
)
|
158 |
+
}
|
src/components/TaxonomySection.js
CHANGED
@@ -3,13 +3,35 @@ import classNames from 'classnames'
|
|
3 |
import { useTemplatesStore } from '@extendify/state/Templates'
|
4 |
import { getTaxonomyName } from '@extendify/util/general'
|
5 |
|
6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
const updateTaxonomies = useTemplatesStore(
|
8 |
(state) => state.updateTaxonomies,
|
9 |
)
|
10 |
-
const searchParams = useTemplatesStore((state) => state.searchParams)
|
11 |
-
|
12 |
if (!taxonomies?.length > 0) return null
|
|
|
13 |
return (
|
14 |
<PanelBody
|
15 |
title={getTaxonomyName(taxLabel ?? taxType)}
|
@@ -19,26 +41,18 @@ export default function TaxonomySection({ taxType, taxonomies, taxLabel }) {
|
|
19 |
<div className="relative w-full overflow-hidden">
|
20 |
<ul className="m-0 w-full px-5 py-1">
|
21 |
{taxonomies.map((tax) => {
|
|
|
|
|
22 |
const isCurrentTax =
|
23 |
searchParams?.taxonomies[taxType]?.slug ===
|
24 |
tax?.slug
|
25 |
return (
|
26 |
-
<
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
}>
|
33 |
-
<span
|
34 |
-
className={classNames({
|
35 |
-
'text-wp-theme-500':
|
36 |
-
isCurrentTax,
|
37 |
-
})}>
|
38 |
-
{tax?.title ?? tax.slug}
|
39 |
-
</span>
|
40 |
-
</button>
|
41 |
-
</li>
|
42 |
)
|
43 |
})}
|
44 |
</ul>
|
3 |
import { useTemplatesStore } from '@extendify/state/Templates'
|
4 |
import { getTaxonomyName } from '@extendify/util/general'
|
5 |
|
6 |
+
const SingleTaxItem = ({ active, tax, update }) => {
|
7 |
+
return (
|
8 |
+
<li className="m-0 w-full" key={tax.slug}>
|
9 |
+
<button
|
10 |
+
type="button"
|
11 |
+
className="group m-0 p-0 flex w-full cursor-pointer text-left text-sm leading-none my-px"
|
12 |
+
onClick={update}>
|
13 |
+
<span
|
14 |
+
className={classNames(
|
15 |
+
'w-full group-hover:bg-gray-900 p-2 group-hover:text-gray-50 rounded',
|
16 |
+
{
|
17 |
+
'bg-transparent text-gray-900': !active,
|
18 |
+
'bg-gray-900 text-gray-50': active,
|
19 |
+
},
|
20 |
+
)}>
|
21 |
+
{tax?.title ?? tax.slug}
|
22 |
+
</span>
|
23 |
+
</button>
|
24 |
+
</li>
|
25 |
+
)
|
26 |
+
}
|
27 |
+
|
28 |
+
export const TaxonomySection = ({ taxType, taxonomies, taxLabel }) => {
|
29 |
+
const searchParams = useTemplatesStore((state) => state.searchParams)
|
30 |
const updateTaxonomies = useTemplatesStore(
|
31 |
(state) => state.updateTaxonomies,
|
32 |
)
|
|
|
|
|
33 |
if (!taxonomies?.length > 0) return null
|
34 |
+
|
35 |
return (
|
36 |
<PanelBody
|
37 |
title={getTaxonomyName(taxLabel ?? taxType)}
|
41 |
<div className="relative w-full overflow-hidden">
|
42 |
<ul className="m-0 w-full px-5 py-1">
|
43 |
{taxonomies.map((tax) => {
|
44 |
+
const update = () =>
|
45 |
+
updateTaxonomies({ [taxType]: tax })
|
46 |
const isCurrentTax =
|
47 |
searchParams?.taxonomies[taxType]?.slug ===
|
48 |
tax?.slug
|
49 |
return (
|
50 |
+
<SingleTaxItem
|
51 |
+
key={tax?.slug}
|
52 |
+
active={isCurrentTax}
|
53 |
+
tax={tax}
|
54 |
+
update={update}
|
55 |
+
/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
)
|
57 |
})}
|
58 |
</ul>
|
src/components/TypeSelect.js
CHANGED
@@ -12,26 +12,28 @@ export const TypeSelect = ({ className }) => {
|
|
12 |
return (
|
13 |
<div className={className}>
|
14 |
<h4 className="sr-only">{__('Type select', 'extendify')}</h4>
|
15 |
-
<
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
|
|
|
|
35 |
</div>
|
36 |
)
|
37 |
}
|
12 |
return (
|
13 |
<div className={className}>
|
14 |
<h4 className="sr-only">{__('Type select', 'extendify')}</h4>
|
15 |
+
<div className="flex justify-evenly border border-gray-900 p-0.5 rounded">
|
16 |
+
<button
|
17 |
+
type="button"
|
18 |
+
className={classNames({
|
19 |
+
'w-full m-0 min-w-sm cursor-pointer rounded py-2.5 px-4 text-xs leading-none': true,
|
20 |
+
'bg-gray-900 text-white': currentType === 'pattern',
|
21 |
+
'bg-transparent text-black': currentType !== 'pattern',
|
22 |
+
})}
|
23 |
+
onClick={() => updateType('pattern')}>
|
24 |
+
<span className="">{__('Patterns', 'extendify')}</span>
|
25 |
+
</button>
|
26 |
+
<button
|
27 |
+
type="button"
|
28 |
+
className={classNames({
|
29 |
+
'outline-none w-full m-0 -ml-px min-w-sm cursor-pointer items-center rounded-tr-sm rounded-br-sm py-2.5 px-4 text-xs leading-none': true,
|
30 |
+
'bg-gray-900 text-white': currentType === 'template',
|
31 |
+
'bg-transparent text-black': currentType !== 'template',
|
32 |
+
})}
|
33 |
+
onClick={() => updateType('template')}>
|
34 |
+
<span className="">{__('Templates', 'extendify')}</span>
|
35 |
+
</button>
|
36 |
+
</div>
|
37 |
</div>
|
38 |
)
|
39 |
}
|
src/hooks/helpers.js
CHANGED
@@ -29,35 +29,6 @@ export const useIsDevMode = () => {
|
|
29 |
return devMode
|
30 |
}
|
31 |
|
32 |
-
export const useWhenIdle = (time) => {
|
33 |
-
const [idle, setIdle] = useState(false)
|
34 |
-
const isMounted = useIsMounted()
|
35 |
-
|
36 |
-
useEffect(() => {
|
37 |
-
let timer
|
38 |
-
|
39 |
-
const handleMovement = () => {
|
40 |
-
setIdle(false)
|
41 |
-
window.clearTimeout(timer)
|
42 |
-
timer = window.setTimeout(() => {
|
43 |
-
isMounted.current && setIdle(true)
|
44 |
-
}, time)
|
45 |
-
}
|
46 |
-
|
47 |
-
const passive = { passive: true }
|
48 |
-
window.addEventListener('keydown', handleMovement, passive)
|
49 |
-
window.addEventListener('mousemove', handleMovement, passive)
|
50 |
-
window.addEventListener('touchmove', handleMovement, passive)
|
51 |
-
return () => {
|
52 |
-
window.removeEventListener('keydown', handleMovement)
|
53 |
-
window.removeEventListener('mousemove', handleMovement)
|
54 |
-
window.removeEventListener('touchmove', handleMovement)
|
55 |
-
}
|
56 |
-
}, [isMounted, time])
|
57 |
-
|
58 |
-
return idle
|
59 |
-
}
|
60 |
-
|
61 |
/** Dev debugging tool to identify leaky renders: https://usehooks.com/useWhyDidYouUpdate/ */
|
62 |
export const useWhyDidYouUpdate = (name, props) => {
|
63 |
const previousProps = useRef()
|
29 |
return devMode
|
30 |
}
|
31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
/** Dev debugging tool to identify leaky renders: https://usehooks.com/useWhyDidYouUpdate/ */
|
33 |
export const useWhyDidYouUpdate = (name, props) => {
|
34 |
const previousProps = useRef()
|
src/pages/GridView.js
CHANGED
@@ -21,6 +21,7 @@ import { useTemplatesStore } from '@extendify/state/Templates'
|
|
21 |
export const GridView = memo(function GridView() {
|
22 |
const isMounted = useIsMounted()
|
23 |
const templates = useTemplatesStore((state) => state.templates)
|
|
|
24 |
const appendTemplates = useTemplatesStore((state) => state.appendTemplates)
|
25 |
const [serverError, setServerError] = useState('')
|
26 |
const retryOnce = useRef(false)
|
@@ -67,7 +68,7 @@ export const GridView = memo(function GridView() {
|
|
67 |
setServerError('')
|
68 |
setNothingFound(false)
|
69 |
const defaultError = __(
|
70 |
-
'Unknown error
|
71 |
'extendify',
|
72 |
)
|
73 |
const args = { offset: nextPage.current }
|
@@ -98,7 +99,9 @@ export const GridView = memo(function GridView() {
|
|
98 |
useTemplatesStore.setState({
|
99 |
nextPage: response?.offset ?? '',
|
100 |
})
|
|
|
101 |
appendTemplates(response.records)
|
|
|
102 |
setLoading(false)
|
103 |
}
|
104 |
})
|
@@ -118,7 +121,7 @@ export const GridView = memo(function GridView() {
|
|
118 |
|
119 |
useEffect(() => {
|
120 |
// If there's a server error, retry the request
|
121 |
-
// This is temporary until we upgrade the
|
122 |
// a tool like react query to handle this automatically
|
123 |
if (!retryOnce.current && serverError.length) {
|
124 |
retryOnce.current = true
|
@@ -128,7 +131,7 @@ export const GridView = memo(function GridView() {
|
|
128 |
|
129 |
useEffect(() => {
|
130 |
// This will check the URL for a pattern type and set that and remove it
|
131 |
-
// TODO: possibly refactor this if we
|
132 |
if (!open || !taxonomies?.patternType?.length) return
|
133 |
const search = new URLSearchParams(window.location.search)
|
134 |
if (!search.has('ext-patternType')) return
|
@@ -171,7 +174,7 @@ export const GridView = memo(function GridView() {
|
|
171 |
// Fetches when the load more is in view
|
172 |
useEffect(() => {
|
173 |
nextPage.current && inView && fetchTemplates()
|
174 |
-
}, [inView, fetchTemplates,
|
175 |
|
176 |
if (serverError.length && retryOnce.current) {
|
177 |
return (
|
@@ -239,19 +242,13 @@ export const GridView = memo(function GridView() {
|
|
239 |
|
240 |
{nextPage.current && (
|
241 |
<>
|
242 |
-
<div className="
|
243 |
<Spinner />
|
244 |
</div>
|
245 |
-
{/* This is a large div that, when in view, will trigger more patterns to load */}
|
246 |
<div
|
247 |
-
className="relative flex
|
248 |
ref={loadMoreRef}
|
249 |
-
style={{
|
250 |
-
zIndex: -1,
|
251 |
-
marginBottom: '-100%',
|
252 |
-
height:
|
253 |
-
currentType === 'template' ? '150vh' : '75vh',
|
254 |
-
}}
|
255 |
/>
|
256 |
</>
|
257 |
)}
|
21 |
export const GridView = memo(function GridView() {
|
22 |
const isMounted = useIsMounted()
|
23 |
const templates = useTemplatesStore((state) => state.templates)
|
24 |
+
const [templatesCount, setTemplatesCount] = useState(0)
|
25 |
const appendTemplates = useTemplatesStore((state) => state.appendTemplates)
|
26 |
const [serverError, setServerError] = useState('')
|
27 |
const retryOnce = useRef(false)
|
68 |
setServerError('')
|
69 |
setNothingFound(false)
|
70 |
const defaultError = __(
|
71 |
+
'Unknown error occurred. Check browser console or contact support.',
|
72 |
'extendify',
|
73 |
)
|
74 |
const args = { offset: nextPage.current }
|
99 |
useTemplatesStore.setState({
|
100 |
nextPage: response?.offset ?? '',
|
101 |
})
|
102 |
+
// Essentially used to trigger the inview observer
|
103 |
appendTemplates(response.records)
|
104 |
+
setTemplatesCount((c) => response.records.length + c)
|
105 |
setLoading(false)
|
106 |
}
|
107 |
})
|
121 |
|
122 |
useEffect(() => {
|
123 |
// If there's a server error, retry the request
|
124 |
+
// This is temporary until we upgrade the backend and add
|
125 |
// a tool like react query to handle this automatically
|
126 |
if (!retryOnce.current && serverError.length) {
|
127 |
retryOnce.current = true
|
131 |
|
132 |
useEffect(() => {
|
133 |
// This will check the URL for a pattern type and set that and remove it
|
134 |
+
// TODO: possibly refactor this if we expand it to support layouts
|
135 |
if (!open || !taxonomies?.patternType?.length) return
|
136 |
const search = new URLSearchParams(window.location.search)
|
137 |
if (!search.has('ext-patternType')) return
|
174 |
// Fetches when the load more is in view
|
175 |
useEffect(() => {
|
176 |
nextPage.current && inView && fetchTemplates()
|
177 |
+
}, [inView, fetchTemplates, templatesCount])
|
178 |
|
179 |
if (serverError.length && retryOnce.current) {
|
180 |
return (
|
242 |
|
243 |
{nextPage.current && (
|
244 |
<>
|
245 |
+
<div className="mt-8">
|
246 |
<Spinner />
|
247 |
</div>
|
|
|
248 |
<div
|
249 |
+
className="relative flex flex-col items-end justify-end -top-1/4 h-4"
|
250 |
ref={loadMoreRef}
|
251 |
+
style={{ zIndex: -1 }}
|
|
|
|
|
|
|
|
|
|
|
252 |
/>
|
253 |
</>
|
254 |
)}
|
src/pages/Sidebar.js
CHANGED
@@ -7,7 +7,8 @@ import classNames from 'classnames'
|
|
7 |
import { ImportCounter } from '@extendify/components/ImportCounter'
|
8 |
import { SidebarNotice } from '@extendify/components/SidebarNotice'
|
9 |
import { SiteTypeSelector } from '@extendify/components/SiteTypeSelector'
|
10 |
-
import TaxonomySection from '@extendify/components/TaxonomySection'
|
|
|
11 |
import { featured } from '@extendify/components/icons'
|
12 |
import { brandMark } from '@extendify/components/icons/'
|
13 |
import { useTestGroup } from '@extendify/hooks/useTestGroup'
|
@@ -52,7 +53,7 @@ export const Sidebar = memo(function Sidebar() {
|
|
52 |
})
|
53 |
}
|
54 |
className={classNames(
|
55 |
-
'
|
56 |
{ 'text-wp-theme-500': isFeatured },
|
57 |
)}>
|
58 |
<Icon icon={featured} size={24} />
|
@@ -73,7 +74,8 @@ export const Sidebar = memo(function Sidebar() {
|
|
73 |
/>
|
74 |
)}
|
75 |
</div>
|
76 |
-
<
|
|
|
77 |
<Panel className="bg-transparent">
|
78 |
<TaxonomySection
|
79 |
taxType={taxonomyType}
|
7 |
import { ImportCounter } from '@extendify/components/ImportCounter'
|
8 |
import { SidebarNotice } from '@extendify/components/SidebarNotice'
|
9 |
import { SiteTypeSelector } from '@extendify/components/SiteTypeSelector'
|
10 |
+
import { TaxonomySection } from '@extendify/components/TaxonomySection'
|
11 |
+
import { TypeSelect } from '@extendify/components/TypeSelect'
|
12 |
import { featured } from '@extendify/components/icons'
|
13 |
import { brandMark } from '@extendify/components/icons/'
|
14 |
import { useTestGroup } from '@extendify/hooks/useTestGroup'
|
53 |
})
|
54 |
}
|
55 |
className={classNames(
|
56 |
+
'm-0 flex w-full cursor-pointer items-center space-x-1 bg-transparent px-0 py-2 text-left text-sm leading-none transition duration-200 hover:text-wp-theme-500',
|
57 |
{ 'text-wp-theme-500': isFeatured },
|
58 |
)}>
|
59 |
<Icon icon={featured} size={24} />
|
74 |
/>
|
75 |
)}
|
76 |
</div>
|
77 |
+
<TypeSelect className="mx-6 px-5 pt-0.5 sm:mx-0 sm:mb-8 sm:mt-0" />
|
78 |
+
<div className="mt-px hidden flex-grow overflow-y-auto overflow-x-hidden pb-36 pt-px sm:block space-y-6">
|
79 |
<Panel className="bg-transparent">
|
80 |
<TaxonomySection
|
81 |
taxType={taxonomyType}
|
src/pages/layout/Layout.js
CHANGED
@@ -1,7 +1,5 @@
|
|
1 |
-
import {
|
2 |
-
import { useRef, useEffect, useState, useCallback } from '@wordpress/element'
|
3 |
import { __ } from '@wordpress/i18n'
|
4 |
-
import { useWhenIdle } from '@extendify/hooks/helpers'
|
5 |
import { GridView } from '@extendify/pages/GridView'
|
6 |
import { Sidebar } from '@extendify/pages/Sidebar'
|
7 |
import { useTemplatesStore } from '@extendify/state/Templates'
|
@@ -11,20 +9,7 @@ import { Toolbar } from './Toolbar'
|
|
11 |
export const Layout = ({ setOpen }) => {
|
12 |
const gridContainer = useRef()
|
13 |
const searchParams = useTemplatesStore((state) => state.searchParams)
|
14 |
-
const [showIdleScreen, setShowIdleScreen] = useState(false)
|
15 |
-
const resetTemplates = useTemplatesStore((state) => state.resetTemplates)
|
16 |
-
const idle = useWhenIdle(300_000) // 5 minutes
|
17 |
-
const removeIdleScreen = useCallback(() => {
|
18 |
-
setShowIdleScreen(false)
|
19 |
-
resetTemplates()
|
20 |
-
}, [resetTemplates])
|
21 |
|
22 |
-
useEffect(() => {
|
23 |
-
if (idle) setShowIdleScreen(true)
|
24 |
-
}, [idle])
|
25 |
-
useEffect(() => {
|
26 |
-
setShowIdleScreen(false)
|
27 |
-
}, [searchParams])
|
28 |
useEffect(() => {
|
29 |
if (!gridContainer.current) return
|
30 |
gridContainer.current.scrollTop = 0
|
@@ -48,17 +33,13 @@ export const Layout = ({ setOpen }) => {
|
|
48 |
<Sidebar />
|
49 |
<div className="relative z-30 flex h-full flex-col">
|
50 |
<Toolbar
|
51 |
-
className="hidden h-
|
52 |
hideLibrary={() => setOpen(false)}
|
53 |
/>
|
54 |
<div
|
55 |
ref={gridContainer}
|
56 |
className="z-20 flex-grow overflow-y-auto px-6 md:px-8">
|
57 |
-
|
58 |
-
<IdleScreen callback={removeIdleScreen} />
|
59 |
-
) : (
|
60 |
-
<GridView />
|
61 |
-
)}
|
62 |
</div>
|
63 |
</div>
|
64 |
</HasSidebar>
|
@@ -67,16 +48,3 @@ export const Layout = ({ setOpen }) => {
|
|
67 |
</div>
|
68 |
)
|
69 |
}
|
70 |
-
|
71 |
-
const IdleScreen = ({ callback }) => (
|
72 |
-
<div className="flex h-full flex-col items-center justify-center">
|
73 |
-
<p className="mb-6 text-sm font-normal text-extendify-gray">
|
74 |
-
{__("We've added new stuff while you were away.", 'extendify')}
|
75 |
-
</p>
|
76 |
-
<Button
|
77 |
-
className="components-button border-color-wp-theme-500 bg-wp-theme-500 text-white hover:bg-wp-theme-600"
|
78 |
-
onClick={callback}>
|
79 |
-
{__('Reload')}
|
80 |
-
</Button>
|
81 |
-
</div>
|
82 |
-
)
|
1 |
+
import { useRef, useEffect } from '@wordpress/element'
|
|
|
2 |
import { __ } from '@wordpress/i18n'
|
|
|
3 |
import { GridView } from '@extendify/pages/GridView'
|
4 |
import { Sidebar } from '@extendify/pages/Sidebar'
|
5 |
import { useTemplatesStore } from '@extendify/state/Templates'
|
9 |
export const Layout = ({ setOpen }) => {
|
10 |
const gridContainer = useRef()
|
11 |
const searchParams = useTemplatesStore((state) => state.searchParams)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
useEffect(() => {
|
14 |
if (!gridContainer.current) return
|
15 |
gridContainer.current.scrollTop = 0
|
33 |
<Sidebar />
|
34 |
<div className="relative z-30 flex h-full flex-col">
|
35 |
<Toolbar
|
36 |
+
className="hidden h-12 w-full flex-shrink-0 px-6 sm:block md:px-8"
|
37 |
hideLibrary={() => setOpen(false)}
|
38 |
/>
|
39 |
<div
|
40 |
ref={gridContainer}
|
41 |
className="z-20 flex-grow overflow-y-auto px-6 md:px-8">
|
42 |
+
<GridView />
|
|
|
|
|
|
|
|
|
43 |
</div>
|
44 |
</div>
|
45 |
</HasSidebar>
|
48 |
</div>
|
49 |
)
|
50 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
src/pages/layout/Toolbar.js
CHANGED
@@ -2,7 +2,6 @@ import { Button } from '@wordpress/components'
|
|
2 |
import { memo } from '@wordpress/element'
|
3 |
import { __ } from '@wordpress/i18n'
|
4 |
import { Icon, close } from '@wordpress/icons'
|
5 |
-
import { TypeSelect } from '@extendify/components/TypeSelect'
|
6 |
import { user } from '@extendify/components/icons/'
|
7 |
import { SettingsModal } from '@extendify/components/modals/settings/SettingsModal'
|
8 |
import { useGlobalStore } from '@extendify/state/GlobalState'
|
@@ -16,9 +15,7 @@ export const Toolbar = memo(function Toolbar({ className }) {
|
|
16 |
return (
|
17 |
<div className={className}>
|
18 |
<div className="flex h-full items-center justify-between">
|
19 |
-
<div className="flex-1"
|
20 |
-
<TypeSelect className="flex flex-1 items-center justify-center" />
|
21 |
-
<div className="flex flex-1 items-center justify-end">
|
22 |
<Button
|
23 |
onClick={() => pushModal(<SettingsModal />)}
|
24 |
icon={<Icon icon={user} size={24} />}
|
2 |
import { memo } from '@wordpress/element'
|
3 |
import { __ } from '@wordpress/i18n'
|
4 |
import { Icon, close } from '@wordpress/icons'
|
|
|
5 |
import { user } from '@extendify/components/icons/'
|
6 |
import { SettingsModal } from '@extendify/components/modals/settings/SettingsModal'
|
7 |
import { useGlobalStore } from '@extendify/state/GlobalState'
|
15 |
return (
|
16 |
<div className={className}>
|
17 |
<div className="flex h-full items-center justify-between">
|
18 |
+
<div className="flex flex-1 items-center justify-end lg:-mr-1">
|
|
|
|
|
19 |
<Button
|
20 |
onClick={() => pushModal(<SettingsModal />)}
|
21 |
icon={<Icon icon={user} size={24} />}
|
src/state/Templates.js
CHANGED
@@ -25,17 +25,20 @@ export const useTemplatesStore = create(
|
|
25 |
get().setupDefaultTaxonomies()
|
26 |
get().updateType(useGlobalStore.getState().currentType)
|
27 |
},
|
28 |
-
appendTemplates: (templates) =>
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
|
|
|
|
|
|
39 |
setupDefaultTaxonomies: () => {
|
40 |
const taxonomies = useTaxonomyStore.getState().taxonomies
|
41 |
let taxonomyDefaultState = Object.entries(taxonomies).reduce(
|
25 |
get().setupDefaultTaxonomies()
|
26 |
get().updateType(useGlobalStore.getState().currentType)
|
27 |
},
|
28 |
+
appendTemplates: async (templates) => {
|
29 |
+
for (const template of templates) {
|
30 |
+
// If we already have this one, ignore it
|
31 |
+
if (get().templates.find((t) => t.id === template.id)) {
|
32 |
+
continue
|
33 |
+
}
|
34 |
+
// Add some delay to prevent a batch update.
|
35 |
+
await new Promise((resolve) => setTimeout(resolve, 5))
|
36 |
+
requestAnimationFrame(() => {
|
37 |
+
const templatesAll = [...get().templates, template]
|
38 |
+
set({ templates: templatesAll })
|
39 |
+
})
|
40 |
+
}
|
41 |
+
},
|
42 |
setupDefaultTaxonomies: () => {
|
43 |
const taxonomies = useTaxonomyStore.getState().taxonomies
|
44 |
let taxonomyDefaultState = Object.entries(taxonomies).reduce(
|
src/state/User.js
CHANGED
@@ -112,7 +112,7 @@ export const useUserStore = create(
|
|
112 |
Number(get().totalAvailableImports()) -
|
113 |
Number(get().runningImports)
|
114 |
// If they have no allowed imports, this might be a first load
|
115 |
-
// where it's just fetching templates (and/or their max
|
116 |
if (!get().allowedImports) {
|
117 |
return null
|
118 |
}
|
112 |
Number(get().totalAvailableImports()) -
|
113 |
Number(get().runningImports)
|
114 |
// If they have no allowed imports, this might be a first load
|
115 |
+
// where it's just fetching templates (and/or their max allowed)
|
116 |
if (!get().allowedImports) {
|
117 |
return null
|
118 |
}
|
vendor/composer/InstalledVersions.php
CHANGED
@@ -23,394 +23,394 @@ use Composer\Semver\VersionParser;
|
|
23 |
class InstalledVersions
|
24 |
{
|
25 |
private static $installed = array (
|
26 |
-
'root' =>
|
27 |
array (
|
28 |
'pretty_version' => 'dev-main',
|
29 |
'version' => 'dev-main',
|
30 |
-
'aliases' =>
|
31 |
array (
|
32 |
),
|
33 |
'reference' => 'ac2cfec95277e7980dfcf8dfde5cd858f1023e03',
|
34 |
'name' => 'extendify/extendify',
|
35 |
),
|
36 |
-
'versions' =>
|
37 |
array (
|
38 |
-
'dealerdirect/phpcodesniffer-composer-installer' =>
|
39 |
array (
|
40 |
'pretty_version' => 'v0.7.1',
|
41 |
'version' => '0.7.1.0',
|
42 |
-
'aliases' =>
|
43 |
array (
|
44 |
),
|
45 |
'reference' => 'fe390591e0241955f22eb9ba327d137e501c771c',
|
46 |
),
|
47 |
-
'doctrine/instantiator' =>
|
48 |
array (
|
49 |
'pretty_version' => '1.4.0',
|
50 |
'version' => '1.4.0.0',
|
51 |
-
'aliases' =>
|
52 |
array (
|
53 |
),
|
54 |
'reference' => 'd56bf6102915de5702778fe20f2de3b2fe570b5b',
|
55 |
),
|
56 |
-
'extendify/extendify' =>
|
57 |
array (
|
58 |
'pretty_version' => 'dev-main',
|
59 |
'version' => 'dev-main',
|
60 |
-
'aliases' =>
|
61 |
array (
|
62 |
),
|
63 |
'reference' => 'ac2cfec95277e7980dfcf8dfde5cd858f1023e03',
|
64 |
),
|
65 |
-
'johnpbloch/wordpress-core' =>
|
66 |
array (
|
67 |
'pretty_version' => '5.7.0',
|
68 |
'version' => '5.7.0.0',
|
69 |
-
'aliases' =>
|
70 |
array (
|
71 |
),
|
72 |
'reference' => '8b057056692ca196aaa7a7ddd915f29426922c6d',
|
73 |
),
|
74 |
-
'myclabs/deep-copy' =>
|
75 |
array (
|
76 |
'pretty_version' => '1.10.2',
|
77 |
'version' => '1.10.2.0',
|
78 |
-
'aliases' =>
|
79 |
array (
|
80 |
),
|
81 |
'reference' => '776f831124e9c62e1a2c601ecc52e776d8bb7220',
|
82 |
-
'replaced' =>
|
83 |
array (
|
84 |
0 => '1.10.2',
|
85 |
),
|
86 |
),
|
87 |
-
'nikic/php-parser' =>
|
88 |
array (
|
89 |
'pretty_version' => 'v4.10.4',
|
90 |
'version' => '4.10.4.0',
|
91 |
-
'aliases' =>
|
92 |
array (
|
93 |
),
|
94 |
'reference' => 'c6d052fc58cb876152f89f532b95a8d7907e7f0e',
|
95 |
),
|
96 |
-
'phar-io/manifest' =>
|
97 |
array (
|
98 |
'pretty_version' => '2.0.1',
|
99 |
'version' => '2.0.1.0',
|
100 |
-
'aliases' =>
|
101 |
array (
|
102 |
),
|
103 |
'reference' => '85265efd3af7ba3ca4b2a2c34dbfc5788dd29133',
|
104 |
),
|
105 |
-
'phar-io/version' =>
|
106 |
array (
|
107 |
'pretty_version' => '3.1.0',
|
108 |
'version' => '3.1.0.0',
|
109 |
-
'aliases' =>
|
110 |
array (
|
111 |
),
|
112 |
'reference' => 'bae7c545bef187884426f042434e561ab1ddb182',
|
113 |
),
|
114 |
-
'phpcompatibility/php-compatibility' =>
|
115 |
array (
|
116 |
'pretty_version' => '9.3.5',
|
117 |
'version' => '9.3.5.0',
|
118 |
-
'aliases' =>
|
119 |
array (
|
120 |
),
|
121 |
'reference' => '9fb324479acf6f39452e0655d2429cc0d3914243',
|
122 |
),
|
123 |
-
'phpcompatibility/phpcompatibility-paragonie' =>
|
124 |
array (
|
125 |
'pretty_version' => '1.3.1',
|
126 |
'version' => '1.3.1.0',
|
127 |
-
'aliases' =>
|
128 |
array (
|
129 |
),
|
130 |
'reference' => 'ddabec839cc003651f2ce695c938686d1086cf43',
|
131 |
),
|
132 |
-
'phpcompatibility/phpcompatibility-wp' =>
|
133 |
array (
|
134 |
'pretty_version' => '2.1.1',
|
135 |
'version' => '2.1.1.0',
|
136 |
-
'aliases' =>
|
137 |
array (
|
138 |
),
|
139 |
'reference' => 'b7dc0cd7a8f767ccac5e7637550ea1c50a67b09e',
|
140 |
),
|
141 |
-
'phpdocumentor/reflection-common' =>
|
142 |
array (
|
143 |
'pretty_version' => '2.2.0',
|
144 |
'version' => '2.2.0.0',
|
145 |
-
'aliases' =>
|
146 |
array (
|
147 |
),
|
148 |
'reference' => '1d01c49d4ed62f25aa84a747ad35d5a16924662b',
|
149 |
),
|
150 |
-
'phpdocumentor/reflection-docblock' =>
|
151 |
array (
|
152 |
'pretty_version' => '5.2.2',
|
153 |
'version' => '5.2.2.0',
|
154 |
-
'aliases' =>
|
155 |
array (
|
156 |
),
|
157 |
'reference' => '069a785b2141f5bcf49f3e353548dc1cce6df556',
|
158 |
),
|
159 |
-
'phpdocumentor/type-resolver' =>
|
160 |
array (
|
161 |
'pretty_version' => '1.4.0',
|
162 |
'version' => '1.4.0.0',
|
163 |
-
'aliases' =>
|
164 |
array (
|
165 |
),
|
166 |
'reference' => '6a467b8989322d92aa1c8bf2bebcc6e5c2ba55c0',
|
167 |
),
|
168 |
-
'phpspec/prophecy' =>
|
169 |
array (
|
170 |
'pretty_version' => '1.13.0',
|
171 |
'version' => '1.13.0.0',
|
172 |
-
'aliases' =>
|
173 |
array (
|
174 |
),
|
175 |
'reference' => 'be1996ed8adc35c3fd795488a653f4b518be70ea',
|
176 |
),
|
177 |
-
'phpunit/php-code-coverage' =>
|
178 |
array (
|
179 |
'pretty_version' => '9.2.6',
|
180 |
'version' => '9.2.6.0',
|
181 |
-
'aliases' =>
|
182 |
array (
|
183 |
),
|
184 |
'reference' => 'f6293e1b30a2354e8428e004689671b83871edde',
|
185 |
),
|
186 |
-
'phpunit/php-file-iterator' =>
|
187 |
array (
|
188 |
'pretty_version' => '3.0.5',
|
189 |
'version' => '3.0.5.0',
|
190 |
-
'aliases' =>
|
191 |
array (
|
192 |
),
|
193 |
'reference' => 'aa4be8575f26070b100fccb67faabb28f21f66f8',
|
194 |
),
|
195 |
-
'phpunit/php-invoker' =>
|
196 |
array (
|
197 |
'pretty_version' => '3.1.1',
|
198 |
'version' => '3.1.1.0',
|
199 |
-
'aliases' =>
|
200 |
array (
|
201 |
),
|
202 |
'reference' => '5a10147d0aaf65b58940a0b72f71c9ac0423cc67',
|
203 |
),
|
204 |
-
'phpunit/php-text-template' =>
|
205 |
array (
|
206 |
'pretty_version' => '2.0.4',
|
207 |
'version' => '2.0.4.0',
|
208 |
-
'aliases' =>
|
209 |
array (
|
210 |
),
|
211 |
'reference' => '5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28',
|
212 |
),
|
213 |
-
'phpunit/php-timer' =>
|
214 |
array (
|
215 |
'pretty_version' => '5.0.3',
|
216 |
'version' => '5.0.3.0',
|
217 |
-
'aliases' =>
|
218 |
array (
|
219 |
),
|
220 |
'reference' => '5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2',
|
221 |
),
|
222 |
-
'phpunit/phpunit' =>
|
223 |
array (
|
224 |
'pretty_version' => '9.5.4',
|
225 |
'version' => '9.5.4.0',
|
226 |
-
'aliases' =>
|
227 |
array (
|
228 |
),
|
229 |
'reference' => 'c73c6737305e779771147af66c96ca6a7ed8a741',
|
230 |
),
|
231 |
-
'sebastian/cli-parser' =>
|
232 |
array (
|
233 |
'pretty_version' => '1.0.1',
|
234 |
'version' => '1.0.1.0',
|
235 |
-
'aliases' =>
|
236 |
array (
|
237 |
),
|
238 |
'reference' => '442e7c7e687e42adc03470c7b668bc4b2402c0b2',
|
239 |
),
|
240 |
-
'sebastian/code-unit' =>
|
241 |
array (
|
242 |
'pretty_version' => '1.0.8',
|
243 |
'version' => '1.0.8.0',
|
244 |
-
'aliases' =>
|
245 |
array (
|
246 |
),
|
247 |
'reference' => '1fc9f64c0927627ef78ba436c9b17d967e68e120',
|
248 |
),
|
249 |
-
'sebastian/code-unit-reverse-lookup' =>
|
250 |
array (
|
251 |
'pretty_version' => '2.0.3',
|
252 |
'version' => '2.0.3.0',
|
253 |
-
'aliases' =>
|
254 |
array (
|
255 |
),
|
256 |
'reference' => 'ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5',
|
257 |
),
|
258 |
-
'sebastian/comparator' =>
|
259 |
array (
|
260 |
'pretty_version' => '4.0.6',
|
261 |
'version' => '4.0.6.0',
|
262 |
-
'aliases' =>
|
263 |
array (
|
264 |
),
|
265 |
'reference' => '55f4261989e546dc112258c7a75935a81a7ce382',
|
266 |
),
|
267 |
-
'sebastian/complexity' =>
|
268 |
array (
|
269 |
'pretty_version' => '2.0.2',
|
270 |
'version' => '2.0.2.0',
|
271 |
-
'aliases' =>
|
272 |
array (
|
273 |
),
|
274 |
'reference' => '739b35e53379900cc9ac327b2147867b8b6efd88',
|
275 |
),
|
276 |
-
'sebastian/diff' =>
|
277 |
array (
|
278 |
'pretty_version' => '4.0.4',
|
279 |
'version' => '4.0.4.0',
|
280 |
-
'aliases' =>
|
281 |
array (
|
282 |
),
|
283 |
'reference' => '3461e3fccc7cfdfc2720be910d3bd73c69be590d',
|
284 |
),
|
285 |
-
'sebastian/environment' =>
|
286 |
array (
|
287 |
'pretty_version' => '5.1.3',
|
288 |
'version' => '5.1.3.0',
|
289 |
-
'aliases' =>
|
290 |
array (
|
291 |
),
|
292 |
'reference' => '388b6ced16caa751030f6a69e588299fa09200ac',
|
293 |
),
|
294 |
-
'sebastian/exporter' =>
|
295 |
array (
|
296 |
'pretty_version' => '4.0.3',
|
297 |
'version' => '4.0.3.0',
|
298 |
-
'aliases' =>
|
299 |
array (
|
300 |
),
|
301 |
'reference' => 'd89cc98761b8cb5a1a235a6b703ae50d34080e65',
|
302 |
),
|
303 |
-
'sebastian/global-state' =>
|
304 |
array (
|
305 |
'pretty_version' => '5.0.2',
|
306 |
'version' => '5.0.2.0',
|
307 |
-
'aliases' =>
|
308 |
array (
|
309 |
),
|
310 |
'reference' => 'a90ccbddffa067b51f574dea6eb25d5680839455',
|
311 |
),
|
312 |
-
'sebastian/lines-of-code' =>
|
313 |
array (
|
314 |
'pretty_version' => '1.0.3',
|
315 |
'version' => '1.0.3.0',
|
316 |
-
'aliases' =>
|
317 |
array (
|
318 |
),
|
319 |
'reference' => 'c1c2e997aa3146983ed888ad08b15470a2e22ecc',
|
320 |
),
|
321 |
-
'sebastian/object-enumerator' =>
|
322 |
array (
|
323 |
'pretty_version' => '4.0.4',
|
324 |
'version' => '4.0.4.0',
|
325 |
-
'aliases' =>
|
326 |
array (
|
327 |
),
|
328 |
'reference' => '5c9eeac41b290a3712d88851518825ad78f45c71',
|
329 |
),
|
330 |
-
'sebastian/object-reflector' =>
|
331 |
array (
|
332 |
'pretty_version' => '2.0.4',
|
333 |
'version' => '2.0.4.0',
|
334 |
-
'aliases' =>
|
335 |
array (
|
336 |
),
|
337 |
'reference' => 'b4f479ebdbf63ac605d183ece17d8d7fe49c15c7',
|
338 |
),
|
339 |
-
'sebastian/recursion-context' =>
|
340 |
array (
|
341 |
'pretty_version' => '4.0.4',
|
342 |
'version' => '4.0.4.0',
|
343 |
-
'aliases' =>
|
344 |
array (
|
345 |
),
|
346 |
'reference' => 'cd9d8cf3c5804de4341c283ed787f099f5506172',
|
347 |
),
|
348 |
-
'sebastian/resource-operations' =>
|
349 |
array (
|
350 |
'pretty_version' => '3.0.3',
|
351 |
'version' => '3.0.3.0',
|
352 |
-
'aliases' =>
|
353 |
array (
|
354 |
),
|
355 |
'reference' => '0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8',
|
356 |
),
|
357 |
-
'sebastian/type' =>
|
358 |
array (
|
359 |
'pretty_version' => '2.3.1',
|
360 |
'version' => '2.3.1.0',
|
361 |
-
'aliases' =>
|
362 |
array (
|
363 |
),
|
364 |
'reference' => '81cd61ab7bbf2de744aba0ea61fae32f721df3d2',
|
365 |
),
|
366 |
-
'sebastian/version' =>
|
367 |
array (
|
368 |
'pretty_version' => '3.0.2',
|
369 |
'version' => '3.0.2.0',
|
370 |
-
'aliases' =>
|
371 |
array (
|
372 |
),
|
373 |
'reference' => 'c6c1022351a901512170118436c764e473f6de8c',
|
374 |
),
|
375 |
-
'squizlabs/php_codesniffer' =>
|
376 |
array (
|
377 |
'pretty_version' => '3.6.0',
|
378 |
'version' => '3.6.0.0',
|
379 |
-
'aliases' =>
|
380 |
array (
|
381 |
),
|
382 |
'reference' => 'ffced0d2c8fa8e6cdc4d695a743271fab6c38625',
|
383 |
),
|
384 |
-
'symfony/polyfill-ctype' =>
|
385 |
array (
|
386 |
'pretty_version' => 'v1.22.1',
|
387 |
'version' => '1.22.1.0',
|
388 |
-
'aliases' =>
|
389 |
array (
|
390 |
),
|
391 |
'reference' => 'c6c942b1ac76c82448322025e084cadc56048b4e',
|
392 |
),
|
393 |
-
'theseer/tokenizer' =>
|
394 |
array (
|
395 |
'pretty_version' => '1.2.0',
|
396 |
'version' => '1.2.0.0',
|
397 |
-
'aliases' =>
|
398 |
array (
|
399 |
),
|
400 |
'reference' => '75a63c33a8577608444246075ea0af0d052e452a',
|
401 |
),
|
402 |
-
'webmozart/assert' =>
|
403 |
array (
|
404 |
'pretty_version' => '1.10.0',
|
405 |
'version' => '1.10.0.0',
|
406 |
-
'aliases' =>
|
407 |
array (
|
408 |
),
|
409 |
'reference' => '6964c76c7804814a842473e0c8fd15bab0f18e25',
|
410 |
),
|
411 |
-
'wordpress/core-implementation' =>
|
412 |
array (
|
413 |
-
'provided' =>
|
414 |
array (
|
415 |
0 => '5.7.0',
|
416 |
),
|
23 |
class InstalledVersions
|
24 |
{
|
25 |
private static $installed = array (
|
26 |
+
'root' =>
|
27 |
array (
|
28 |
'pretty_version' => 'dev-main',
|
29 |
'version' => 'dev-main',
|
30 |
+
'aliases' =>
|
31 |
array (
|
32 |
),
|
33 |
'reference' => 'ac2cfec95277e7980dfcf8dfde5cd858f1023e03',
|
34 |
'name' => 'extendify/extendify',
|
35 |
),
|
36 |
+
'versions' =>
|
37 |
array (
|
38 |
+
'dealerdirect/phpcodesniffer-composer-installer' =>
|
39 |
array (
|
40 |
'pretty_version' => 'v0.7.1',
|
41 |
'version' => '0.7.1.0',
|
42 |
+
'aliases' =>
|
43 |
array (
|
44 |
),
|
45 |
'reference' => 'fe390591e0241955f22eb9ba327d137e501c771c',
|
46 |
),
|
47 |
+
'doctrine/instantiator' =>
|
48 |
array (
|
49 |
'pretty_version' => '1.4.0',
|
50 |
'version' => '1.4.0.0',
|
51 |
+
'aliases' =>
|
52 |
array (
|
53 |
),
|
54 |
'reference' => 'd56bf6102915de5702778fe20f2de3b2fe570b5b',
|
55 |
),
|
56 |
+
'extendify/extendify' =>
|
57 |
array (
|
58 |
'pretty_version' => 'dev-main',
|
59 |
'version' => 'dev-main',
|
60 |
+
'aliases' =>
|
61 |
array (
|
62 |
),
|
63 |
'reference' => 'ac2cfec95277e7980dfcf8dfde5cd858f1023e03',
|
64 |
),
|
65 |
+
'johnpbloch/wordpress-core' =>
|
66 |
array (
|
67 |
'pretty_version' => '5.7.0',
|
68 |
'version' => '5.7.0.0',
|
69 |
+
'aliases' =>
|
70 |
array (
|
71 |
),
|
72 |
'reference' => '8b057056692ca196aaa7a7ddd915f29426922c6d',
|
73 |
),
|
74 |
+
'myclabs/deep-copy' =>
|
75 |
array (
|
76 |
'pretty_version' => '1.10.2',
|
77 |
'version' => '1.10.2.0',
|
78 |
+
'aliases' =>
|
79 |
array (
|
80 |
),
|
81 |
'reference' => '776f831124e9c62e1a2c601ecc52e776d8bb7220',
|
82 |
+
'replaced' =>
|
83 |
array (
|
84 |
0 => '1.10.2',
|
85 |
),
|
86 |
),
|
87 |
+
'nikic/php-parser' =>
|
88 |
array (
|
89 |
'pretty_version' => 'v4.10.4',
|
90 |
'version' => '4.10.4.0',
|
91 |
+
'aliases' =>
|
92 |
array (
|
93 |
),
|
94 |
'reference' => 'c6d052fc58cb876152f89f532b95a8d7907e7f0e',
|
95 |
),
|
96 |
+
'phar-io/manifest' =>
|
97 |
array (
|
98 |
'pretty_version' => '2.0.1',
|
99 |
'version' => '2.0.1.0',
|
100 |
+
'aliases' =>
|
101 |
array (
|
102 |
),
|
103 |
'reference' => '85265efd3af7ba3ca4b2a2c34dbfc5788dd29133',
|
104 |
),
|
105 |
+
'phar-io/version' =>
|
106 |
array (
|
107 |
'pretty_version' => '3.1.0',
|
108 |
'version' => '3.1.0.0',
|
109 |
+
'aliases' =>
|
110 |
array (
|
111 |
),
|
112 |
'reference' => 'bae7c545bef187884426f042434e561ab1ddb182',
|
113 |
),
|
114 |
+
'phpcompatibility/php-compatibility' =>
|
115 |
array (
|
116 |
'pretty_version' => '9.3.5',
|
117 |
'version' => '9.3.5.0',
|
118 |
+
'aliases' =>
|
119 |
array (
|
120 |
),
|
121 |
'reference' => '9fb324479acf6f39452e0655d2429cc0d3914243',
|
122 |
),
|
123 |
+
'phpcompatibility/phpcompatibility-paragonie' =>
|
124 |
array (
|
125 |
'pretty_version' => '1.3.1',
|
126 |
'version' => '1.3.1.0',
|
127 |
+
'aliases' =>
|
128 |
array (
|
129 |
),
|
130 |
'reference' => 'ddabec839cc003651f2ce695c938686d1086cf43',
|
131 |
),
|
132 |
+
'phpcompatibility/phpcompatibility-wp' =>
|
133 |
array (
|
134 |
'pretty_version' => '2.1.1',
|
135 |
'version' => '2.1.1.0',
|
136 |
+
'aliases' =>
|
137 |
array (
|
138 |
),
|
139 |
'reference' => 'b7dc0cd7a8f767ccac5e7637550ea1c50a67b09e',
|
140 |
),
|
141 |
+
'phpdocumentor/reflection-common' =>
|
142 |
array (
|
143 |
'pretty_version' => '2.2.0',
|
144 |
'version' => '2.2.0.0',
|
145 |
+
'aliases' =>
|
146 |
array (
|
147 |
),
|
148 |
'reference' => '1d01c49d4ed62f25aa84a747ad35d5a16924662b',
|
149 |
),
|
150 |
+
'phpdocumentor/reflection-docblock' =>
|
151 |
array (
|
152 |
'pretty_version' => '5.2.2',
|
153 |
'version' => '5.2.2.0',
|
154 |
+
'aliases' =>
|
155 |
array (
|
156 |
),
|
157 |
'reference' => '069a785b2141f5bcf49f3e353548dc1cce6df556',
|
158 |
),
|
159 |
+
'phpdocumentor/type-resolver' =>
|
160 |
array (
|
161 |
'pretty_version' => '1.4.0',
|
162 |
'version' => '1.4.0.0',
|
163 |
+
'aliases' =>
|
164 |
array (
|
165 |
),
|
166 |
'reference' => '6a467b8989322d92aa1c8bf2bebcc6e5c2ba55c0',
|
167 |
),
|
168 |
+
'phpspec/prophecy' =>
|
169 |
array (
|
170 |
'pretty_version' => '1.13.0',
|
171 |
'version' => '1.13.0.0',
|
172 |
+
'aliases' =>
|
173 |
array (
|
174 |
),
|
175 |
'reference' => 'be1996ed8adc35c3fd795488a653f4b518be70ea',
|
176 |
),
|
177 |
+
'phpunit/php-code-coverage' =>
|
178 |
array (
|
179 |
'pretty_version' => '9.2.6',
|
180 |
'version' => '9.2.6.0',
|
181 |
+
'aliases' =>
|
182 |
array (
|
183 |
),
|
184 |
'reference' => 'f6293e1b30a2354e8428e004689671b83871edde',
|
185 |
),
|
186 |
+
'phpunit/php-file-iterator' =>
|
187 |
array (
|
188 |
'pretty_version' => '3.0.5',
|
189 |
'version' => '3.0.5.0',
|
190 |
+
'aliases' =>
|
191 |
array (
|
192 |
),
|
193 |
'reference' => 'aa4be8575f26070b100fccb67faabb28f21f66f8',
|
194 |
),
|
195 |
+
'phpunit/php-invoker' =>
|
196 |
array (
|
197 |
'pretty_version' => '3.1.1',
|
198 |
'version' => '3.1.1.0',
|
199 |
+
'aliases' =>
|
200 |
array (
|
201 |
),
|
202 |
'reference' => '5a10147d0aaf65b58940a0b72f71c9ac0423cc67',
|
203 |
),
|
204 |
+
'phpunit/php-text-template' =>
|
205 |
array (
|
206 |
'pretty_version' => '2.0.4',
|
207 |
'version' => '2.0.4.0',
|
208 |
+
'aliases' =>
|
209 |
array (
|
210 |
),
|
211 |
'reference' => '5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28',
|
212 |
),
|
213 |
+
'phpunit/php-timer' =>
|
214 |
array (
|
215 |
'pretty_version' => '5.0.3',
|
216 |
'version' => '5.0.3.0',
|
217 |
+
'aliases' =>
|
218 |
array (
|
219 |
),
|
220 |
'reference' => '5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2',
|
221 |
),
|
222 |
+
'phpunit/phpunit' =>
|
223 |
array (
|
224 |
'pretty_version' => '9.5.4',
|
225 |
'version' => '9.5.4.0',
|
226 |
+
'aliases' =>
|
227 |
array (
|
228 |
),
|
229 |
'reference' => 'c73c6737305e779771147af66c96ca6a7ed8a741',
|
230 |
),
|
231 |
+
'sebastian/cli-parser' =>
|
232 |
array (
|
233 |
'pretty_version' => '1.0.1',
|
234 |
'version' => '1.0.1.0',
|
235 |
+
'aliases' =>
|
236 |
array (
|
237 |
),
|
238 |
'reference' => '442e7c7e687e42adc03470c7b668bc4b2402c0b2',
|
239 |
),
|
240 |
+
'sebastian/code-unit' =>
|
241 |
array (
|
242 |
'pretty_version' => '1.0.8',
|
243 |
'version' => '1.0.8.0',
|
244 |
+
'aliases' =>
|
245 |
array (
|
246 |
),
|
247 |
'reference' => '1fc9f64c0927627ef78ba436c9b17d967e68e120',
|
248 |
),
|
249 |
+
'sebastian/code-unit-reverse-lookup' =>
|
250 |
array (
|
251 |
'pretty_version' => '2.0.3',
|
252 |
'version' => '2.0.3.0',
|
253 |
+
'aliases' =>
|
254 |
array (
|
255 |
),
|
256 |
'reference' => 'ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5',
|
257 |
),
|
258 |
+
'sebastian/comparator' =>
|
259 |
array (
|
260 |
'pretty_version' => '4.0.6',
|
261 |
'version' => '4.0.6.0',
|
262 |
+
'aliases' =>
|
263 |
array (
|
264 |
),
|
265 |
'reference' => '55f4261989e546dc112258c7a75935a81a7ce382',
|
266 |
),
|
267 |
+
'sebastian/complexity' =>
|
268 |
array (
|
269 |
'pretty_version' => '2.0.2',
|
270 |
'version' => '2.0.2.0',
|
271 |
+
'aliases' =>
|
272 |
array (
|
273 |
),
|
274 |
'reference' => '739b35e53379900cc9ac327b2147867b8b6efd88',
|
275 |
),
|
276 |
+
'sebastian/diff' =>
|
277 |
array (
|
278 |
'pretty_version' => '4.0.4',
|
279 |
'version' => '4.0.4.0',
|
280 |
+
'aliases' =>
|
281 |
array (
|
282 |
),
|
283 |
'reference' => '3461e3fccc7cfdfc2720be910d3bd73c69be590d',
|
284 |
),
|
285 |
+
'sebastian/environment' =>
|
286 |
array (
|
287 |
'pretty_version' => '5.1.3',
|
288 |
'version' => '5.1.3.0',
|
289 |
+
'aliases' =>
|
290 |
array (
|
291 |
),
|
292 |
'reference' => '388b6ced16caa751030f6a69e588299fa09200ac',
|
293 |
),
|
294 |
+
'sebastian/exporter' =>
|
295 |
array (
|
296 |
'pretty_version' => '4.0.3',
|
297 |
'version' => '4.0.3.0',
|
298 |
+
'aliases' =>
|
299 |
array (
|
300 |
),
|
301 |
'reference' => 'd89cc98761b8cb5a1a235a6b703ae50d34080e65',
|
302 |
),
|
303 |
+
'sebastian/global-state' =>
|
304 |
array (
|
305 |
'pretty_version' => '5.0.2',
|
306 |
'version' => '5.0.2.0',
|
307 |
+
'aliases' =>
|
308 |
array (
|
309 |
),
|
310 |
'reference' => 'a90ccbddffa067b51f574dea6eb25d5680839455',
|
311 |
),
|
312 |
+
'sebastian/lines-of-code' =>
|
313 |
array (
|
314 |
'pretty_version' => '1.0.3',
|
315 |
'version' => '1.0.3.0',
|
316 |
+
'aliases' =>
|
317 |
array (
|
318 |
),
|
319 |
'reference' => 'c1c2e997aa3146983ed888ad08b15470a2e22ecc',
|
320 |
),
|
321 |
+
'sebastian/object-enumerator' =>
|
322 |
array (
|
323 |
'pretty_version' => '4.0.4',
|
324 |
'version' => '4.0.4.0',
|
325 |
+
'aliases' =>
|
326 |
array (
|
327 |
),
|
328 |
'reference' => '5c9eeac41b290a3712d88851518825ad78f45c71',
|
329 |
),
|
330 |
+
'sebastian/object-reflector' =>
|
331 |
array (
|
332 |
'pretty_version' => '2.0.4',
|
333 |
'version' => '2.0.4.0',
|
334 |
+
'aliases' =>
|
335 |
array (
|
336 |
),
|
337 |
'reference' => 'b4f479ebdbf63ac605d183ece17d8d7fe49c15c7',
|
338 |
),
|
339 |
+
'sebastian/recursion-context' =>
|
340 |
array (
|
341 |
'pretty_version' => '4.0.4',
|
342 |
'version' => '4.0.4.0',
|
343 |
+
'aliases' =>
|
344 |
array (
|
345 |
),
|
346 |
'reference' => 'cd9d8cf3c5804de4341c283ed787f099f5506172',
|
347 |
),
|
348 |
+
'sebastian/resource-operations' =>
|
349 |
array (
|
350 |
'pretty_version' => '3.0.3',
|
351 |
'version' => '3.0.3.0',
|
352 |
+
'aliases' =>
|
353 |
array (
|
354 |
),
|
355 |
'reference' => '0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8',
|
356 |
),
|
357 |
+
'sebastian/type' =>
|
358 |
array (
|
359 |
'pretty_version' => '2.3.1',
|
360 |
'version' => '2.3.1.0',
|
361 |
+
'aliases' =>
|
362 |
array (
|
363 |
),
|
364 |
'reference' => '81cd61ab7bbf2de744aba0ea61fae32f721df3d2',
|
365 |
),
|
366 |
+
'sebastian/version' =>
|
367 |
array (
|
368 |
'pretty_version' => '3.0.2',
|
369 |
'version' => '3.0.2.0',
|
370 |
+
'aliases' =>
|
371 |
array (
|
372 |
),
|
373 |
'reference' => 'c6c1022351a901512170118436c764e473f6de8c',
|
374 |
),
|
375 |
+
'squizlabs/php_codesniffer' =>
|
376 |
array (
|
377 |
'pretty_version' => '3.6.0',
|
378 |
'version' => '3.6.0.0',
|
379 |
+
'aliases' =>
|
380 |
array (
|
381 |
),
|
382 |
'reference' => 'ffced0d2c8fa8e6cdc4d695a743271fab6c38625',
|
383 |
),
|
384 |
+
'symfony/polyfill-ctype' =>
|
385 |
array (
|
386 |
'pretty_version' => 'v1.22.1',
|
387 |
'version' => '1.22.1.0',
|
388 |
+
'aliases' =>
|
389 |
array (
|
390 |
),
|
391 |
'reference' => 'c6c942b1ac76c82448322025e084cadc56048b4e',
|
392 |
),
|
393 |
+
'theseer/tokenizer' =>
|
394 |
array (
|
395 |
'pretty_version' => '1.2.0',
|
396 |
'version' => '1.2.0.0',
|
397 |
+
'aliases' =>
|
398 |
array (
|
399 |
),
|
400 |
'reference' => '75a63c33a8577608444246075ea0af0d052e452a',
|
401 |
),
|
402 |
+
'webmozart/assert' =>
|
403 |
array (
|
404 |
'pretty_version' => '1.10.0',
|
405 |
'version' => '1.10.0.0',
|
406 |
+
'aliases' =>
|
407 |
array (
|
408 |
),
|
409 |
'reference' => '6964c76c7804814a842473e0c8fd15bab0f18e25',
|
410 |
),
|
411 |
+
'wordpress/core-implementation' =>
|
412 |
array (
|
413 |
+
'provided' =>
|
414 |
array (
|
415 |
0 => '5.7.0',
|
416 |
),
|
vendor/composer/installed.php
CHANGED
@@ -1,392 +1,392 @@
|
|
1 |
<?php return array (
|
2 |
-
'root' =>
|
3 |
array (
|
4 |
'pretty_version' => 'dev-main',
|
5 |
'version' => 'dev-main',
|
6 |
-
'aliases' =>
|
7 |
array (
|
8 |
),
|
9 |
'reference' => 'ac2cfec95277e7980dfcf8dfde5cd858f1023e03',
|
10 |
'name' => 'extendify/extendify',
|
11 |
),
|
12 |
-
'versions' =>
|
13 |
array (
|
14 |
-
'dealerdirect/phpcodesniffer-composer-installer' =>
|
15 |
array (
|
16 |
'pretty_version' => 'v0.7.1',
|
17 |
'version' => '0.7.1.0',
|
18 |
-
'aliases' =>
|
19 |
array (
|
20 |
),
|
21 |
'reference' => 'fe390591e0241955f22eb9ba327d137e501c771c',
|
22 |
),
|
23 |
-
'doctrine/instantiator' =>
|
24 |
array (
|
25 |
'pretty_version' => '1.4.0',
|
26 |
'version' => '1.4.0.0',
|
27 |
-
'aliases' =>
|
28 |
array (
|
29 |
),
|
30 |
'reference' => 'd56bf6102915de5702778fe20f2de3b2fe570b5b',
|
31 |
),
|
32 |
-
'extendify/extendify' =>
|
33 |
array (
|
34 |
'pretty_version' => 'dev-main',
|
35 |
'version' => 'dev-main',
|
36 |
-
'aliases' =>
|
37 |
array (
|
38 |
),
|
39 |
'reference' => 'ac2cfec95277e7980dfcf8dfde5cd858f1023e03',
|
40 |
),
|
41 |
-
'johnpbloch/wordpress-core' =>
|
42 |
array (
|
43 |
'pretty_version' => '5.7.0',
|
44 |
'version' => '5.7.0.0',
|
45 |
-
'aliases' =>
|
46 |
array (
|
47 |
),
|
48 |
'reference' => '8b057056692ca196aaa7a7ddd915f29426922c6d',
|
49 |
),
|
50 |
-
'myclabs/deep-copy' =>
|
51 |
array (
|
52 |
'pretty_version' => '1.10.2',
|
53 |
'version' => '1.10.2.0',
|
54 |
-
'aliases' =>
|
55 |
array (
|
56 |
),
|
57 |
'reference' => '776f831124e9c62e1a2c601ecc52e776d8bb7220',
|
58 |
-
'replaced' =>
|
59 |
array (
|
60 |
0 => '1.10.2',
|
61 |
),
|
62 |
),
|
63 |
-
'nikic/php-parser' =>
|
64 |
array (
|
65 |
'pretty_version' => 'v4.10.4',
|
66 |
'version' => '4.10.4.0',
|
67 |
-
'aliases' =>
|
68 |
array (
|
69 |
),
|
70 |
'reference' => 'c6d052fc58cb876152f89f532b95a8d7907e7f0e',
|
71 |
),
|
72 |
-
'phar-io/manifest' =>
|
73 |
array (
|
74 |
'pretty_version' => '2.0.1',
|
75 |
'version' => '2.0.1.0',
|
76 |
-
'aliases' =>
|
77 |
array (
|
78 |
),
|
79 |
'reference' => '85265efd3af7ba3ca4b2a2c34dbfc5788dd29133',
|
80 |
),
|
81 |
-
'phar-io/version' =>
|
82 |
array (
|
83 |
'pretty_version' => '3.1.0',
|
84 |
'version' => '3.1.0.0',
|
85 |
-
'aliases' =>
|
86 |
array (
|
87 |
),
|
88 |
'reference' => 'bae7c545bef187884426f042434e561ab1ddb182',
|
89 |
),
|
90 |
-
'phpcompatibility/php-compatibility' =>
|
91 |
array (
|
92 |
'pretty_version' => '9.3.5',
|
93 |
'version' => '9.3.5.0',
|
94 |
-
'aliases' =>
|
95 |
array (
|
96 |
),
|
97 |
'reference' => '9fb324479acf6f39452e0655d2429cc0d3914243',
|
98 |
),
|
99 |
-
'phpcompatibility/phpcompatibility-paragonie' =>
|
100 |
array (
|
101 |
'pretty_version' => '1.3.1',
|
102 |
'version' => '1.3.1.0',
|
103 |
-
'aliases' =>
|
104 |
array (
|
105 |
),
|
106 |
'reference' => 'ddabec839cc003651f2ce695c938686d1086cf43',
|
107 |
),
|
108 |
-
'phpcompatibility/phpcompatibility-wp' =>
|
109 |
array (
|
110 |
'pretty_version' => '2.1.1',
|
111 |
'version' => '2.1.1.0',
|
112 |
-
'aliases' =>
|
113 |
array (
|
114 |
),
|
115 |
'reference' => 'b7dc0cd7a8f767ccac5e7637550ea1c50a67b09e',
|
116 |
),
|
117 |
-
'phpdocumentor/reflection-common' =>
|
118 |
array (
|
119 |
'pretty_version' => '2.2.0',
|
120 |
'version' => '2.2.0.0',
|
121 |
-
'aliases' =>
|
122 |
array (
|
123 |
),
|
124 |
'reference' => '1d01c49d4ed62f25aa84a747ad35d5a16924662b',
|
125 |
),
|
126 |
-
'phpdocumentor/reflection-docblock' =>
|
127 |
array (
|
128 |
'pretty_version' => '5.2.2',
|
129 |
'version' => '5.2.2.0',
|
130 |
-
'aliases' =>
|
131 |
array (
|
132 |
),
|
133 |
'reference' => '069a785b2141f5bcf49f3e353548dc1cce6df556',
|
134 |
),
|
135 |
-
'phpdocumentor/type-resolver' =>
|
136 |
array (
|
137 |
'pretty_version' => '1.4.0',
|
138 |
'version' => '1.4.0.0',
|
139 |
-
'aliases' =>
|
140 |
array (
|
141 |
),
|
142 |
'reference' => '6a467b8989322d92aa1c8bf2bebcc6e5c2ba55c0',
|
143 |
),
|
144 |
-
'phpspec/prophecy' =>
|
145 |
array (
|
146 |
'pretty_version' => '1.13.0',
|
147 |
'version' => '1.13.0.0',
|
148 |
-
'aliases' =>
|
149 |
array (
|
150 |
),
|
151 |
'reference' => 'be1996ed8adc35c3fd795488a653f4b518be70ea',
|
152 |
),
|
153 |
-
'phpunit/php-code-coverage' =>
|
154 |
array (
|
155 |
'pretty_version' => '9.2.6',
|
156 |
'version' => '9.2.6.0',
|
157 |
-
'aliases' =>
|
158 |
array (
|
159 |
),
|
160 |
'reference' => 'f6293e1b30a2354e8428e004689671b83871edde',
|
161 |
),
|
162 |
-
'phpunit/php-file-iterator' =>
|
163 |
array (
|
164 |
'pretty_version' => '3.0.5',
|
165 |
'version' => '3.0.5.0',
|
166 |
-
'aliases' =>
|
167 |
array (
|
168 |
),
|
169 |
'reference' => 'aa4be8575f26070b100fccb67faabb28f21f66f8',
|
170 |
),
|
171 |
-
'phpunit/php-invoker' =>
|
172 |
array (
|
173 |
'pretty_version' => '3.1.1',
|
174 |
'version' => '3.1.1.0',
|
175 |
-
'aliases' =>
|
176 |
array (
|
177 |
),
|
178 |
'reference' => '5a10147d0aaf65b58940a0b72f71c9ac0423cc67',
|
179 |
),
|
180 |
-
'phpunit/php-text-template' =>
|
181 |
array (
|
182 |
'pretty_version' => '2.0.4',
|
183 |
'version' => '2.0.4.0',
|
184 |
-
'aliases' =>
|
185 |
array (
|
186 |
),
|
187 |
'reference' => '5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28',
|
188 |
),
|
189 |
-
'phpunit/php-timer' =>
|
190 |
array (
|
191 |
'pretty_version' => '5.0.3',
|
192 |
'version' => '5.0.3.0',
|
193 |
-
'aliases' =>
|
194 |
array (
|
195 |
),
|
196 |
'reference' => '5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2',
|
197 |
),
|
198 |
-
'phpunit/phpunit' =>
|
199 |
array (
|
200 |
'pretty_version' => '9.5.4',
|
201 |
'version' => '9.5.4.0',
|
202 |
-
'aliases' =>
|
203 |
array (
|
204 |
),
|
205 |
'reference' => 'c73c6737305e779771147af66c96ca6a7ed8a741',
|
206 |
),
|
207 |
-
'sebastian/cli-parser' =>
|
208 |
array (
|
209 |
'pretty_version' => '1.0.1',
|
210 |
'version' => '1.0.1.0',
|
211 |
-
'aliases' =>
|
212 |
array (
|
213 |
),
|
214 |
'reference' => '442e7c7e687e42adc03470c7b668bc4b2402c0b2',
|
215 |
),
|
216 |
-
'sebastian/code-unit' =>
|
217 |
array (
|
218 |
'pretty_version' => '1.0.8',
|
219 |
'version' => '1.0.8.0',
|
220 |
-
'aliases' =>
|
221 |
array (
|
222 |
),
|
223 |
'reference' => '1fc9f64c0927627ef78ba436c9b17d967e68e120',
|
224 |
),
|
225 |
-
'sebastian/code-unit-reverse-lookup' =>
|
226 |
array (
|
227 |
'pretty_version' => '2.0.3',
|
228 |
'version' => '2.0.3.0',
|
229 |
-
'aliases' =>
|
230 |
array (
|
231 |
),
|
232 |
'reference' => 'ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5',
|
233 |
),
|
234 |
-
'sebastian/comparator' =>
|
235 |
array (
|
236 |
'pretty_version' => '4.0.6',
|
237 |
'version' => '4.0.6.0',
|
238 |
-
'aliases' =>
|
239 |
array (
|
240 |
),
|
241 |
'reference' => '55f4261989e546dc112258c7a75935a81a7ce382',
|
242 |
),
|
243 |
-
'sebastian/complexity' =>
|
244 |
array (
|
245 |
'pretty_version' => '2.0.2',
|
246 |
'version' => '2.0.2.0',
|
247 |
-
'aliases' =>
|
248 |
array (
|
249 |
),
|
250 |
'reference' => '739b35e53379900cc9ac327b2147867b8b6efd88',
|
251 |
),
|
252 |
-
'sebastian/diff' =>
|
253 |
array (
|
254 |
'pretty_version' => '4.0.4',
|
255 |
'version' => '4.0.4.0',
|
256 |
-
'aliases' =>
|
257 |
array (
|
258 |
),
|
259 |
'reference' => '3461e3fccc7cfdfc2720be910d3bd73c69be590d',
|
260 |
),
|
261 |
-
'sebastian/environment' =>
|
262 |
array (
|
263 |
'pretty_version' => '5.1.3',
|
264 |
'version' => '5.1.3.0',
|
265 |
-
'aliases' =>
|
266 |
array (
|
267 |
),
|
268 |
'reference' => '388b6ced16caa751030f6a69e588299fa09200ac',
|
269 |
),
|
270 |
-
'sebastian/exporter' =>
|
271 |
array (
|
272 |
'pretty_version' => '4.0.3',
|
273 |
'version' => '4.0.3.0',
|
274 |
-
'aliases' =>
|
275 |
array (
|
276 |
),
|
277 |
'reference' => 'd89cc98761b8cb5a1a235a6b703ae50d34080e65',
|
278 |
),
|
279 |
-
'sebastian/global-state' =>
|
280 |
array (
|
281 |
'pretty_version' => '5.0.2',
|
282 |
'version' => '5.0.2.0',
|
283 |
-
'aliases' =>
|
284 |
array (
|
285 |
),
|
286 |
'reference' => 'a90ccbddffa067b51f574dea6eb25d5680839455',
|
287 |
),
|
288 |
-
'sebastian/lines-of-code' =>
|
289 |
array (
|
290 |
'pretty_version' => '1.0.3',
|
291 |
'version' => '1.0.3.0',
|
292 |
-
'aliases' =>
|
293 |
array (
|
294 |
),
|
295 |
'reference' => 'c1c2e997aa3146983ed888ad08b15470a2e22ecc',
|
296 |
),
|
297 |
-
'sebastian/object-enumerator' =>
|
298 |
array (
|
299 |
'pretty_version' => '4.0.4',
|
300 |
'version' => '4.0.4.0',
|
301 |
-
'aliases' =>
|
302 |
array (
|
303 |
),
|
304 |
'reference' => '5c9eeac41b290a3712d88851518825ad78f45c71',
|
305 |
),
|
306 |
-
'sebastian/object-reflector' =>
|
307 |
array (
|
308 |
'pretty_version' => '2.0.4',
|
309 |
'version' => '2.0.4.0',
|
310 |
-
'aliases' =>
|
311 |
array (
|
312 |
),
|
313 |
'reference' => 'b4f479ebdbf63ac605d183ece17d8d7fe49c15c7',
|
314 |
),
|
315 |
-
'sebastian/recursion-context' =>
|
316 |
array (
|
317 |
'pretty_version' => '4.0.4',
|
318 |
'version' => '4.0.4.0',
|
319 |
-
'aliases' =>
|
320 |
array (
|
321 |
),
|
322 |
'reference' => 'cd9d8cf3c5804de4341c283ed787f099f5506172',
|
323 |
),
|
324 |
-
'sebastian/resource-operations' =>
|
325 |
array (
|
326 |
'pretty_version' => '3.0.3',
|
327 |
'version' => '3.0.3.0',
|
328 |
-
'aliases' =>
|
329 |
array (
|
330 |
),
|
331 |
'reference' => '0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8',
|
332 |
),
|
333 |
-
'sebastian/type' =>
|
334 |
array (
|
335 |
'pretty_version' => '2.3.1',
|
336 |
'version' => '2.3.1.0',
|
337 |
-
'aliases' =>
|
338 |
array (
|
339 |
),
|
340 |
'reference' => '81cd61ab7bbf2de744aba0ea61fae32f721df3d2',
|
341 |
),
|
342 |
-
'sebastian/version' =>
|
343 |
array (
|
344 |
'pretty_version' => '3.0.2',
|
345 |
'version' => '3.0.2.0',
|
346 |
-
'aliases' =>
|
347 |
array (
|
348 |
),
|
349 |
'reference' => 'c6c1022351a901512170118436c764e473f6de8c',
|
350 |
),
|
351 |
-
'squizlabs/php_codesniffer' =>
|
352 |
array (
|
353 |
'pretty_version' => '3.6.0',
|
354 |
'version' => '3.6.0.0',
|
355 |
-
'aliases' =>
|
356 |
array (
|
357 |
),
|
358 |
'reference' => 'ffced0d2c8fa8e6cdc4d695a743271fab6c38625',
|
359 |
),
|
360 |
-
'symfony/polyfill-ctype' =>
|
361 |
array (
|
362 |
'pretty_version' => 'v1.22.1',
|
363 |
'version' => '1.22.1.0',
|
364 |
-
'aliases' =>
|
365 |
array (
|
366 |
),
|
367 |
'reference' => 'c6c942b1ac76c82448322025e084cadc56048b4e',
|
368 |
),
|
369 |
-
'theseer/tokenizer' =>
|
370 |
array (
|
371 |
'pretty_version' => '1.2.0',
|
372 |
'version' => '1.2.0.0',
|
373 |
-
'aliases' =>
|
374 |
array (
|
375 |
),
|
376 |
'reference' => '75a63c33a8577608444246075ea0af0d052e452a',
|
377 |
),
|
378 |
-
'webmozart/assert' =>
|
379 |
array (
|
380 |
'pretty_version' => '1.10.0',
|
381 |
'version' => '1.10.0.0',
|
382 |
-
'aliases' =>
|
383 |
array (
|
384 |
),
|
385 |
'reference' => '6964c76c7804814a842473e0c8fd15bab0f18e25',
|
386 |
),
|
387 |
-
'wordpress/core-implementation' =>
|
388 |
array (
|
389 |
-
'provided' =>
|
390 |
array (
|
391 |
0 => '5.7.0',
|
392 |
),
|
1 |
<?php return array (
|
2 |
+
'root' =>
|
3 |
array (
|
4 |
'pretty_version' => 'dev-main',
|
5 |
'version' => 'dev-main',
|
6 |
+
'aliases' =>
|
7 |
array (
|
8 |
),
|
9 |
'reference' => 'ac2cfec95277e7980dfcf8dfde5cd858f1023e03',
|
10 |
'name' => 'extendify/extendify',
|
11 |
),
|
12 |
+
'versions' =>
|
13 |
array (
|
14 |
+
'dealerdirect/phpcodesniffer-composer-installer' =>
|
15 |
array (
|
16 |
'pretty_version' => 'v0.7.1',
|
17 |
'version' => '0.7.1.0',
|
18 |
+
'aliases' =>
|
19 |
array (
|
20 |
),
|
21 |
'reference' => 'fe390591e0241955f22eb9ba327d137e501c771c',
|
22 |
),
|
23 |
+
'doctrine/instantiator' =>
|
24 |
array (
|
25 |
'pretty_version' => '1.4.0',
|
26 |
'version' => '1.4.0.0',
|
27 |
+
'aliases' =>
|
28 |
array (
|
29 |
),
|
30 |
'reference' => 'd56bf6102915de5702778fe20f2de3b2fe570b5b',
|
31 |
),
|
32 |
+
'extendify/extendify' =>
|
33 |
array (
|
34 |
'pretty_version' => 'dev-main',
|
35 |
'version' => 'dev-main',
|
36 |
+
'aliases' =>
|
37 |
array (
|
38 |
),
|
39 |
'reference' => 'ac2cfec95277e7980dfcf8dfde5cd858f1023e03',
|
40 |
),
|
41 |
+
'johnpbloch/wordpress-core' =>
|
42 |
array (
|
43 |
'pretty_version' => '5.7.0',
|
44 |
'version' => '5.7.0.0',
|
45 |
+
'aliases' =>
|
46 |
array (
|
47 |
),
|
48 |
'reference' => '8b057056692ca196aaa7a7ddd915f29426922c6d',
|
49 |
),
|
50 |
+
'myclabs/deep-copy' =>
|
51 |
array (
|
52 |
'pretty_version' => '1.10.2',
|
53 |
'version' => '1.10.2.0',
|
54 |
+
'aliases' =>
|
55 |
array (
|
56 |
),
|
57 |
'reference' => '776f831124e9c62e1a2c601ecc52e776d8bb7220',
|
58 |
+
'replaced' =>
|
59 |
array (
|
60 |
0 => '1.10.2',
|
61 |
),
|
62 |
),
|
63 |
+
'nikic/php-parser' =>
|
64 |
array (
|
65 |
'pretty_version' => 'v4.10.4',
|
66 |
'version' => '4.10.4.0',
|
67 |
+
'aliases' =>
|
68 |
array (
|
69 |
),
|
70 |
'reference' => 'c6d052fc58cb876152f89f532b95a8d7907e7f0e',
|
71 |
),
|
72 |
+
'phar-io/manifest' =>
|
73 |
array (
|
74 |
'pretty_version' => '2.0.1',
|
75 |
'version' => '2.0.1.0',
|
76 |
+
'aliases' =>
|
77 |
array (
|
78 |
),
|
79 |
'reference' => '85265efd3af7ba3ca4b2a2c34dbfc5788dd29133',
|
80 |
),
|
81 |
+
'phar-io/version' =>
|
82 |
array (
|
83 |
'pretty_version' => '3.1.0',
|
84 |
'version' => '3.1.0.0',
|
85 |
+
'aliases' =>
|
86 |
array (
|
87 |
),
|
88 |
'reference' => 'bae7c545bef187884426f042434e561ab1ddb182',
|
89 |
),
|
90 |
+
'phpcompatibility/php-compatibility' =>
|
91 |
array (
|
92 |
'pretty_version' => '9.3.5',
|
93 |
'version' => '9.3.5.0',
|
94 |
+
'aliases' =>
|
95 |
array (
|
96 |
),
|
97 |
'reference' => '9fb324479acf6f39452e0655d2429cc0d3914243',
|
98 |
),
|
99 |
+
'phpcompatibility/phpcompatibility-paragonie' =>
|
100 |
array (
|
101 |
'pretty_version' => '1.3.1',
|
102 |
'version' => '1.3.1.0',
|
103 |
+
'aliases' =>
|
104 |
array (
|
105 |
),
|
106 |
'reference' => 'ddabec839cc003651f2ce695c938686d1086cf43',
|
107 |
),
|
108 |
+
'phpcompatibility/phpcompatibility-wp' =>
|
109 |
array (
|
110 |
'pretty_version' => '2.1.1',
|
111 |
'version' => '2.1.1.0',
|
112 |
+
'aliases' =>
|
113 |
array (
|
114 |
),
|
115 |
'reference' => 'b7dc0cd7a8f767ccac5e7637550ea1c50a67b09e',
|
116 |
),
|
117 |
+
'phpdocumentor/reflection-common' =>
|
118 |
array (
|
119 |
'pretty_version' => '2.2.0',
|
120 |
'version' => '2.2.0.0',
|
121 |
+
'aliases' =>
|
122 |
array (
|
123 |
),
|
124 |
'reference' => '1d01c49d4ed62f25aa84a747ad35d5a16924662b',
|
125 |
),
|
126 |
+
'phpdocumentor/reflection-docblock' =>
|
127 |
array (
|
128 |
'pretty_version' => '5.2.2',
|
129 |
'version' => '5.2.2.0',
|
130 |
+
'aliases' =>
|
131 |
array (
|
132 |
),
|
133 |
'reference' => '069a785b2141f5bcf49f3e353548dc1cce6df556',
|
134 |
),
|
135 |
+
'phpdocumentor/type-resolver' =>
|
136 |
array (
|
137 |
'pretty_version' => '1.4.0',
|
138 |
'version' => '1.4.0.0',
|
139 |
+
'aliases' =>
|
140 |
array (
|
141 |
),
|
142 |
'reference' => '6a467b8989322d92aa1c8bf2bebcc6e5c2ba55c0',
|
143 |
),
|
144 |
+
'phpspec/prophecy' =>
|
145 |
array (
|
146 |
'pretty_version' => '1.13.0',
|
147 |
'version' => '1.13.0.0',
|
148 |
+
'aliases' =>
|
149 |
array (
|
150 |
),
|
151 |
'reference' => 'be1996ed8adc35c3fd795488a653f4b518be70ea',
|
152 |
),
|
153 |
+
'phpunit/php-code-coverage' =>
|
154 |
array (
|
155 |
'pretty_version' => '9.2.6',
|
156 |
'version' => '9.2.6.0',
|
157 |
+
'aliases' =>
|
158 |
array (
|
159 |
),
|
160 |
'reference' => 'f6293e1b30a2354e8428e004689671b83871edde',
|
161 |
),
|
162 |
+
'phpunit/php-file-iterator' =>
|
163 |
array (
|
164 |
'pretty_version' => '3.0.5',
|
165 |
'version' => '3.0.5.0',
|
166 |
+
'aliases' =>
|
167 |
array (
|
168 |
),
|
169 |
'reference' => 'aa4be8575f26070b100fccb67faabb28f21f66f8',
|
170 |
),
|
171 |
+
'phpunit/php-invoker' =>
|
172 |
array (
|
173 |
'pretty_version' => '3.1.1',
|
174 |
'version' => '3.1.1.0',
|
175 |
+
'aliases' =>
|
176 |
array (
|
177 |
),
|
178 |
'reference' => '5a10147d0aaf65b58940a0b72f71c9ac0423cc67',
|
179 |
),
|
180 |
+
'phpunit/php-text-template' =>
|
181 |
array (
|
182 |
'pretty_version' => '2.0.4',
|
183 |
'version' => '2.0.4.0',
|
184 |
+
'aliases' =>
|
185 |
array (
|
186 |
),
|
187 |
'reference' => '5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28',
|
188 |
),
|
189 |
+
'phpunit/php-timer' =>
|
190 |
array (
|
191 |
'pretty_version' => '5.0.3',
|
192 |
'version' => '5.0.3.0',
|
193 |
+
'aliases' =>
|
194 |
array (
|
195 |
),
|
196 |
'reference' => '5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2',
|
197 |
),
|
198 |
+
'phpunit/phpunit' =>
|
199 |
array (
|
200 |
'pretty_version' => '9.5.4',
|
201 |
'version' => '9.5.4.0',
|
202 |
+
'aliases' =>
|
203 |
array (
|
204 |
),
|
205 |
'reference' => 'c73c6737305e779771147af66c96ca6a7ed8a741',
|
206 |
),
|
207 |
+
'sebastian/cli-parser' =>
|
208 |
array (
|
209 |
'pretty_version' => '1.0.1',
|
210 |
'version' => '1.0.1.0',
|
211 |
+
'aliases' =>
|
212 |
array (
|
213 |
),
|
214 |
'reference' => '442e7c7e687e42adc03470c7b668bc4b2402c0b2',
|
215 |
),
|
216 |
+
'sebastian/code-unit' =>
|
217 |
array (
|
218 |
'pretty_version' => '1.0.8',
|
219 |
'version' => '1.0.8.0',
|
220 |
+
'aliases' =>
|
221 |
array (
|
222 |
),
|
223 |
'reference' => '1fc9f64c0927627ef78ba436c9b17d967e68e120',
|
224 |
),
|
225 |
+
'sebastian/code-unit-reverse-lookup' =>
|
226 |
array (
|
227 |
'pretty_version' => '2.0.3',
|
228 |
'version' => '2.0.3.0',
|
229 |
+
'aliases' =>
|
230 |
array (
|
231 |
),
|
232 |
'reference' => 'ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5',
|
233 |
),
|
234 |
+
'sebastian/comparator' =>
|
235 |
array (
|
236 |
'pretty_version' => '4.0.6',
|
237 |
'version' => '4.0.6.0',
|
238 |
+
'aliases' =>
|
239 |
array (
|
240 |
),
|
241 |
'reference' => '55f4261989e546dc112258c7a75935a81a7ce382',
|
242 |
),
|
243 |
+
'sebastian/complexity' =>
|
244 |
array (
|
245 |
'pretty_version' => '2.0.2',
|
246 |
'version' => '2.0.2.0',
|
247 |
+
'aliases' =>
|
248 |
array (
|
249 |
),
|
250 |
'reference' => '739b35e53379900cc9ac327b2147867b8b6efd88',
|
251 |
),
|
252 |
+
'sebastian/diff' =>
|
253 |
array (
|
254 |
'pretty_version' => '4.0.4',
|
255 |
'version' => '4.0.4.0',
|
256 |
+
'aliases' =>
|
257 |
array (
|
258 |
),
|
259 |
'reference' => '3461e3fccc7cfdfc2720be910d3bd73c69be590d',
|
260 |
),
|
261 |
+
'sebastian/environment' =>
|
262 |
array (
|
263 |
'pretty_version' => '5.1.3',
|
264 |
'version' => '5.1.3.0',
|
265 |
+
'aliases' =>
|
266 |
array (
|
267 |
),
|
268 |
'reference' => '388b6ced16caa751030f6a69e588299fa09200ac',
|
269 |
),
|
270 |
+
'sebastian/exporter' =>
|
271 |
array (
|
272 |
'pretty_version' => '4.0.3',
|
273 |
'version' => '4.0.3.0',
|
274 |
+
'aliases' =>
|
275 |
array (
|
276 |
),
|
277 |
'reference' => 'd89cc98761b8cb5a1a235a6b703ae50d34080e65',
|
278 |
),
|
279 |
+
'sebastian/global-state' =>
|
280 |
array (
|
281 |
'pretty_version' => '5.0.2',
|
282 |
'version' => '5.0.2.0',
|
283 |
+
'aliases' =>
|
284 |
array (
|
285 |
),
|
286 |
'reference' => 'a90ccbddffa067b51f574dea6eb25d5680839455',
|
287 |
),
|
288 |
+
'sebastian/lines-of-code' =>
|
289 |
array (
|
290 |
'pretty_version' => '1.0.3',
|
291 |
'version' => '1.0.3.0',
|
292 |
+
'aliases' =>
|
293 |
array (
|
294 |
),
|
295 |
'reference' => 'c1c2e997aa3146983ed888ad08b15470a2e22ecc',
|
296 |
),
|
297 |
+
'sebastian/object-enumerator' =>
|
298 |
array (
|
299 |
'pretty_version' => '4.0.4',
|
300 |
'version' => '4.0.4.0',
|
301 |
+
'aliases' =>
|
302 |
array (
|
303 |
),
|
304 |
'reference' => '5c9eeac41b290a3712d88851518825ad78f45c71',
|
305 |
),
|
306 |
+
'sebastian/object-reflector' =>
|
307 |
array (
|
308 |
'pretty_version' => '2.0.4',
|
309 |
'version' => '2.0.4.0',
|
310 |
+
'aliases' =>
|
311 |
array (
|
312 |
),
|
313 |
'reference' => 'b4f479ebdbf63ac605d183ece17d8d7fe49c15c7',
|
314 |
),
|
315 |
+
'sebastian/recursion-context' =>
|
316 |
array (
|
317 |
'pretty_version' => '4.0.4',
|
318 |
'version' => '4.0.4.0',
|
319 |
+
'aliases' =>
|
320 |
array (
|
321 |
),
|
322 |
'reference' => 'cd9d8cf3c5804de4341c283ed787f099f5506172',
|
323 |
),
|
324 |
+
'sebastian/resource-operations' =>
|
325 |
array (
|
326 |
'pretty_version' => '3.0.3',
|
327 |
'version' => '3.0.3.0',
|
328 |
+
'aliases' =>
|
329 |
array (
|
330 |
),
|
331 |
'reference' => '0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8',
|
332 |
),
|
333 |
+
'sebastian/type' =>
|
334 |
array (
|
335 |
'pretty_version' => '2.3.1',
|
336 |
'version' => '2.3.1.0',
|
337 |
+
'aliases' =>
|
338 |
array (
|
339 |
),
|
340 |
'reference' => '81cd61ab7bbf2de744aba0ea61fae32f721df3d2',
|
341 |
),
|
342 |
+
'sebastian/version' =>
|
343 |
array (
|
344 |
'pretty_version' => '3.0.2',
|
345 |
'version' => '3.0.2.0',
|
346 |
+
'aliases' =>
|
347 |
array (
|
348 |
),
|
349 |
'reference' => 'c6c1022351a901512170118436c764e473f6de8c',
|
350 |
),
|
351 |
+
'squizlabs/php_codesniffer' =>
|
352 |
array (
|
353 |
'pretty_version' => '3.6.0',
|
354 |
'version' => '3.6.0.0',
|
355 |
+
'aliases' =>
|
356 |
array (
|
357 |
),
|
358 |
'reference' => 'ffced0d2c8fa8e6cdc4d695a743271fab6c38625',
|
359 |
),
|
360 |
+
'symfony/polyfill-ctype' =>
|
361 |
array (
|
362 |
'pretty_version' => 'v1.22.1',
|
363 |
'version' => '1.22.1.0',
|
364 |
+
'aliases' =>
|
365 |
array (
|
366 |
),
|
367 |
'reference' => 'c6c942b1ac76c82448322025e084cadc56048b4e',
|
368 |
),
|
369 |
+
'theseer/tokenizer' =>
|
370 |
array (
|
371 |
'pretty_version' => '1.2.0',
|
372 |
'version' => '1.2.0.0',
|
373 |
+
'aliases' =>
|
374 |
array (
|
375 |
),
|
376 |
'reference' => '75a63c33a8577608444246075ea0af0d052e452a',
|
377 |
),
|
378 |
+
'webmozart/assert' =>
|
379 |
array (
|
380 |
'pretty_version' => '1.10.0',
|
381 |
'version' => '1.10.0.0',
|
382 |
+
'aliases' =>
|
383 |
array (
|
384 |
),
|
385 |
'reference' => '6964c76c7804814a842473e0c8fd15bab0f18e25',
|
386 |
),
|
387 |
+
'wordpress/core-implementation' =>
|
388 |
array (
|
389 |
+
'provided' =>
|
390 |
array (
|
391 |
0 => '5.7.0',
|
392 |
),
|