Version Description
- Added: Multi Media extension. https://devs.redux.io/core-extensions/multi-media.html
- Added: DateTime extension. https://devs.redux.io/core-extensions/date-time-picker.html
- Fixed: Deprecation error surrounding
add_menu_page
in WordPress 6.0. - Fixed:
undefined
unit entry inletter-spacing
subfield of thetypography
field. - Modified: Deprecation notices for outdated API.
- Updated: Extendify Library.
- Release date: June 21, 2022
Download this release
Release Info
Developer | dovyp |
Plugin | Redux Framework |
Version | 4.3.15 |
Comparing to | |
See all releases |
Code changes from version 4.3.14 to 4.3.15
- extendify-sdk/app/ApiRouter.php +6 -6
- extendify-sdk/app/{App.php → Config.php} +50 -6
- extendify-sdk/app/Http.php +21 -10
- extendify-sdk/app/{Admin.php → Library/Admin.php} +15 -15
- extendify-sdk/app/{Controllers → Library/Controllers}/AuthController.php +1 -1
- extendify-sdk/app/{Controllers → Library/Controllers}/MetaController.php +1 -1
- extendify-sdk/app/{Controllers → Library/Controllers}/PingController.php +1 -1
- extendify-sdk/app/{Controllers → Library/Controllers}/PluginController.php +0 -0
- extendify-sdk/app/{Controllers → Library/Controllers}/SiteSettingsController.php +0 -0
- extendify-sdk/app/{Controllers → Library/Controllers}/TaxonomyController.php +1 -1
- extendify-sdk/app/{Controllers → Library/Controllers}/TemplateController.php +1 -1
- extendify-sdk/app/{Controllers → Library/Controllers}/UserController.php +2 -2
- extendify-sdk/app/{Frontend.php → Library/Frontend.php} +1 -1
- extendify-sdk/app/{Plugin.php → Library/Plugin.php} +0 -0
- extendify-sdk/app/{Shared.php → Library/Shared.php} +5 -5
- extendify-sdk/app/{SiteSettings.php → Library/SiteSettings.php} +0 -0
- extendify-sdk/app/{Welcome.php → Library/Welcome.php} +5 -12
- extendify-sdk/app/Onboarding/Admin.php +181 -0
- extendify-sdk/app/Onboarding/Controllers/DataController.php +103 -0
- extendify-sdk/app/Onboarding/Controllers/LibraryController.php +36 -0
- extendify-sdk/app/Onboarding/Controllers/WPController.php +95 -0
- extendify-sdk/app/Onboarding/Helpers/ThemeJson.php +27 -0
- extendify-sdk/app/User.php +3 -3
- extendify-sdk/bootstrap.php +9 -10
- extendify-sdk/config.json +4 -0
- extendify-sdk/public/assets/extendify-logo.svg +0 -3
- extendify-sdk/public/assets/extendify-preview.png +0 -0
- extendify-sdk/public/assets/pro-image.png +0 -0
- extendify-sdk/public/assets/wp-admin.png +0 -0
- extendify-sdk/public/build/extendify-onboarding.css +1 -0
- extendify-sdk/public/build/extendify-onboarding.js +2 -0
- extendify-sdk/public/build/extendify-onboarding.js.LICENSE.txt +44 -0
- extendify-sdk/public/build/extendify.css +1 -1
- extendify-sdk/public/build/extendify.js +1 -1
- extendify-sdk/public/build/extendify.js.LICENSE.txt +9 -0
- extendify-sdk/readme.txt +8 -1
- extendify-sdk/routes/api.php +22 -2
- extendify-sdk/src/{ExtendifyLibrary.js → Library/ExtendifyLibrary.js} +7 -6
- extendify-sdk/src/{api → Library/api}/General.js +2 -2
- extendify-sdk/src/{api → Library/api}/Plugins.js +0 -0
- extendify-sdk/src/{api → Library/api}/SiteSettings.js +0 -0
- extendify-sdk/src/{api → Library/api}/Taxonomies.js +0 -0
- extendify-sdk/src/{api → Library/api}/Templates.js +2 -2
- extendify-sdk/src/{api → Library/api}/User.js +0 -0
- extendify-sdk/src/{api → Library/api}/axios.js +2 -2
- extendify-sdk/src/{app.css → Library/app.css} +1 -1
- extendify-sdk/src/{app.js → Library/app.js} +6 -6
- extendify-sdk/src/{blocks → Library/blocks}/block-category.js +1 -1
- extendify-sdk/src/{blocks → Library/blocks}/blocks.js +0 -0
- extendify-sdk/src/{blocks → Library/blocks}/library/block.js +2 -2
- extendify-sdk/src/{blocks → Library/blocks}/library/block.json +0 -0
- extendify-sdk/src/{buttons.js → Library/buttons.js} +3 -3
- extendify-sdk/src/{components → Library/components}/DevHelpers.js +0 -0
- extendify-sdk/src/{components → Library/components}/ImportCounter.js +3 -3
- extendify-sdk/src/{components → Library/components}/ImportTemplateBlock.js +6 -6
- extendify-sdk/src/{components → Library/components}/LibraryAccessModal.js +2 -2
- extendify-sdk/src/{components → Library/components}/MainButtons.js +5 -5
- extendify-sdk/src/{components → Library/components}/SiteTypeSelector.js +1 -1
- extendify-sdk/src/{components → Library/components}/TaxonomySection.js +3 -3
- extendify-sdk/src/{components → Library/components}/TypeSelect.js +2 -2
- extendify-sdk/src/{components → Library/components}/icons/index.js +0 -0
- extendify-sdk/src/{components → Library/components}/icons/library/alert.js +0 -0
- extendify-sdk/src/{components → Library/components}/icons/library/brand-block-icon.js +0 -0
- extendify-sdk/src/{components → Library/components}/icons/library/brand-logo.js +0 -0
- extendify-sdk/src/{components → Library/components}/icons/library/brand-mark.js +0 -0
- extendify-sdk/src/{components → Library/components}/icons/library/diamond.js +0 -0
- extendify-sdk/src/{components → Library/components}/icons/library/download.js +0 -0
- extendify-sdk/src/{components → Library/components}/icons/library/download2.js +0 -0
- extendify-sdk/src/{components → Library/components}/icons/library/featured.js +0 -0
- extendify-sdk/src/{components → Library/components}/icons/library/growth-arrow.js +0 -0
- extendify-sdk/src/{components → Library/components}/icons/library/layouts.js +0 -0
- extendify-sdk/src/{components → Library/components}/icons/library/patterns.js +0 -0
- extendify-sdk/src/{components → Library/components}/icons/library/star.js +0 -0
- extendify-sdk/src/{components → Library/components}/icons/library/success.js +0 -0
- extendify-sdk/src/{components → Library/components}/icons/library/support.js +0 -0
- extendify-sdk/src/{components → Library/components}/icons/library/user.js +0 -0
- extendify-sdk/src/{components → Library/components}/modals/InstallStandaloneModal.js +6 -6
- extendify-sdk/src/{components → Library/components}/modals/Modal.js +1 -1
- extendify-sdk/src/{components → Library/components}/modals/NoImportModal.js +3 -3
- extendify-sdk/src/{components → Library/components}/modals/ProModal.js +3 -3
- extendify-sdk/src/{components → Library/components}/modals/SplitModal.js +1 -1
- extendify-sdk/src/{components → Library/components}/modals/settings/DevSettings.js +5 -5
- extendify-sdk/src/{components → Library/components}/modals/settings/LoginInterface.js +4 -4
- extendify-sdk/src/{components → Library/components}/modals/settings/SettingsModal.js +1 -1
- extendify-sdk/src/{components → Library/components}/notices/FeedbackNotice.js +2 -2
- extendify-sdk/src/{components → Library/components}/notices/FooterNotice.js +3 -3
- extendify-sdk/src/{components → Library/components}/notices/InstallStandaloneNotice.js +3 -3
- extendify-sdk/src/{components → Library/components}/notices/PromotionNotice.js +1 -1
- extendify-sdk/src/{components → Library/components}/notices/WelcomeNotice.js +3 -3
- extendify-sdk/src/{components → Library/components}/popovers/NewImportsPopover.js +0 -0
- extendify-sdk/src/{hooks → Library/hooks}/helpers.js +0 -0
- extendify-sdk/src/{hooks → Library/hooks}/useModal.js +3 -3
- extendify-sdk/src/{hooks → Library/hooks}/useTestGroup.js +2 -2
- extendify-sdk/src/{listeners → Library/listeners}/index.js +0 -0
- extendify-sdk/src/{listeners → Library/listeners}/softerror-encountered.js +1 -1
- extendify-sdk/src/{listeners → Library/listeners}/template-inserted.js +2 -2
- extendify-sdk/src/{middleware → Library/middleware}/NeedsPermissionModal.js +3 -3
- extendify-sdk/src/{middleware → Library/middleware}/ReloadRequiredModal.js +0 -0
- extendify-sdk/src/{middleware → Library/middleware}/hasPluginsActivated/ActivatePluginsModal.js +4 -4
- extendify-sdk/src/{middleware → Library/middleware}/hasPluginsActivated/ActivatingModal.js +2 -2
- extendify-sdk/src/{middleware → Library/middleware}/hasPluginsActivated/ErrorActivating.js +0 -0
- extendify-sdk/src/{middleware → Library/middleware}/hasPluginsActivated/index.js +0 -0
- extendify-sdk/src/{middleware → Library/middleware}/hasRequiredPlugins/ErrorInstalling.js +0 -0
- extendify-sdk/src/{middleware → Library/middleware}/hasRequiredPlugins/InstallingModal.js +2 -2
- extendify-sdk/src/{middleware → Library/middleware}/hasRequiredPlugins/RequiredPluginsModal.js +4 -4
- extendify-sdk/src/{middleware → Library/middleware}/hasRequiredPlugins/index.js +0 -0
- extendify-sdk/src/{middleware → Library/middleware}/helpers.js +1 -1
- extendify-sdk/src/{middleware → Library/middleware}/index.js +0 -0
- extendify-sdk/src/{pages → Library/pages}/GridView.js +6 -8
- extendify-sdk/src/Library/pages/MainWindow.js +44 -0
- extendify-sdk/src/{pages → Library/pages}/Sidebar.js +10 -10
- extendify-sdk/src/{pages → Library/pages}/layout/HasSidebar.js +1 -1
- extendify-sdk/src/{pages → Library/pages}/layout/Layout.js +3 -3
- extendify-sdk/src/{pages → Library/pages}/layout/Toolbar.js +4 -4
- extendify-sdk/src/{state → Library/state}/GlobalState.js +0 -0
- extendify-sdk/src/{state → Library/state}/Importing.js +0 -0
- extendify-sdk/src/{state → Library/state}/SiteSettings.js +1 -1
- extendify-sdk/src/{state → Library/state}/Taxonomies.js +1 -1
- extendify-sdk/src/{state → Library/state}/Templates.js +0 -0
- extendify-sdk/src/{state → Library/state}/User.js +1 -1
- extendify-sdk/src/{util → Library/util}/general.js +5 -4
- extendify-sdk/src/{util → Library/util}/templateInjection.js +0 -0
- extendify-sdk/src/{utility-control → Library/utility-control}/index.js +1 -1
- extendify-sdk/src/Onboarding/Onboarding.js +89 -0
- extendify-sdk/src/Onboarding/api/DataApi.js +16 -0
- extendify-sdk/src/Onboarding/api/LibraryApi.js +4 -0
- extendify-sdk/src/Onboarding/api/WPApi.js +97 -0
- extendify-sdk/src/Onboarding/api/axios.js +44 -0
- extendify-sdk/src/Onboarding/app.css +71 -0
- extendify-sdk/src/Onboarding/app.js +12 -0
- extendify-sdk/src/Onboarding/components/Card.js +58 -0
- extendify-sdk/src/Onboarding/components/PageControl.js +52 -0
- extendify-sdk/src/Onboarding/components/PagePreview.js +86 -0
- extendify-sdk/src/Onboarding/components/ProgressBar.js +25 -0
- extendify-sdk/src/Onboarding/components/RetryNotice.js +17 -0
- extendify-sdk/src/Onboarding/components/StyledPreview.js +214 -0
- extendify-sdk/src/Onboarding/hooks/useAnimatedHeight.js +43 -0
- extendify-sdk/src/Onboarding/hooks/useCache.js +11 -0
- extendify-sdk/src/Onboarding/hooks/useConfetti.js +19 -0
- extendify-sdk/src/Onboarding/hooks/useDisableWelcomeGuide.js +14 -0
- extendify-sdk/src/Onboarding/hooks/useFetch.js +7 -0
- extendify-sdk/src/Onboarding/hooks/useIsMounted.js +20 -0
- extendify-sdk/src/Onboarding/hooks/useScrollLock.js +9 -0
- extendify-sdk/src/Onboarding/hooks/useWarnOnLeave.js +16 -0
- extendify-sdk/src/Onboarding/layouts/PageLayout.js +45 -0
- extendify-sdk/src/Onboarding/lib/pages.js +75 -0
- extendify-sdk/src/Onboarding/lib/util.js +14 -0
- extendify-sdk/src/Onboarding/lib/wp.js +50 -0
- extendify-sdk/src/Onboarding/pages/CreateError.js +28 -0
- extendify-sdk/src/Onboarding/pages/CreatingSite.js +120 -0
- extendify-sdk/src/Onboarding/pages/Finished.js +82 -0
- extendify-sdk/src/Onboarding/pages/Goals.js +74 -0
- extendify-sdk/src/Onboarding/pages/Landing.js +91 -0
- extendify-sdk/src/Onboarding/pages/SiteInformation.js +74 -0
- extendify-sdk/src/Onboarding/pages/SitePages.js +97 -0
- extendify-sdk/src/Onboarding/pages/SiteStyle.js +124 -0
- extendify-sdk/src/Onboarding/pages/SiteSummary.js +154 -0
- extendify-sdk/src/Onboarding/pages/SiteTypeSelect.js +187 -0
- extendify-sdk/src/Onboarding/pages/SuggestedPlugins.js +98 -0
- extendify-sdk/src/Onboarding/state/Global.js +8 -0
- extendify-sdk/src/Onboarding/state/Pages.js +38 -0
- extendify-sdk/src/Onboarding/state/UserSelections.js +61 -0
- extendify-sdk/src/Onboarding/svg/Checkmark.jsx +21 -0
- extendify-sdk/src/Onboarding/svg/LeftArrowIcon.jsx +24 -0
- extendify-sdk/src/Onboarding/svg/Logo.jsx +58 -0
- extendify-sdk/src/Onboarding/svg/RefreshIcon.jsx +23 -0
- extendify-sdk/src/Onboarding/svg/SearchIcon.jsx +29 -0
- extendify-sdk/src/Onboarding/svg/SpinnerIcon.jsx +39 -0
- extendify-sdk/src/Onboarding/svg/index.js +8 -0
- extendify-sdk/src/pages/MainWindow.js +0 -59
- extendify-sdk/vendor/autoload.php +1 -1
- extendify-sdk/vendor/composer/autoload_psr4.php +1 -1
- extendify-sdk/vendor/composer/autoload_real.php +4 -4
- extendify-sdk/vendor/composer/autoload_static.php +5 -5
- readme.txt +10 -1
- redux-core/assets/css/redux-fields.min.css +1 -1
extendify-sdk/app/ApiRouter.php
CHANGED
@@ -3,10 +3,10 @@
|
|
3 |
* API router
|
4 |
*/
|
5 |
|
6 |
-
namespace Extendify
|
7 |
|
8 |
-
use Extendify\
|
9 |
-
use Extendify\
|
10 |
|
11 |
/**
|
12 |
* Simple router for the REST Endpoints
|
@@ -22,7 +22,7 @@ class ApiRouter extends \WP_REST_Controller
|
|
22 |
protected static $instance = null;
|
23 |
|
24 |
/**
|
25 |
-
* The
|
26 |
*
|
27 |
* @var $capability
|
28 |
*/
|
@@ -34,7 +34,7 @@ class ApiRouter extends \WP_REST_Controller
|
|
34 |
*/
|
35 |
public function __construct()
|
36 |
{
|
37 |
-
$this->capability =
|
38 |
add_filter(
|
39 |
'rest_request_before_callbacks',
|
40 |
// phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClassBeforeLastUsed
|
@@ -132,6 +132,6 @@ class ApiRouter extends \WP_REST_Controller
|
|
132 |
}
|
133 |
|
134 |
$r = self::$instance;
|
135 |
-
return $r->$name(
|
136 |
}
|
137 |
}
|
3 |
* API router
|
4 |
*/
|
5 |
|
6 |
+
namespace Extendify;
|
7 |
|
8 |
+
use Extendify\Config;
|
9 |
+
use Extendify\Http;
|
10 |
|
11 |
/**
|
12 |
* Simple router for the REST Endpoints
|
22 |
protected static $instance = null;
|
23 |
|
24 |
/**
|
25 |
+
* The capability required for access.
|
26 |
*
|
27 |
* @var $capability
|
28 |
*/
|
34 |
*/
|
35 |
public function __construct()
|
36 |
{
|
37 |
+
$this->capability = Config::$requiredCapability;
|
38 |
add_filter(
|
39 |
'rest_request_before_callbacks',
|
40 |
// phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClassBeforeLastUsed
|
132 |
}
|
133 |
|
134 |
$r = self::$instance;
|
135 |
+
return $r->$name(Config::$slug . '/' . Config::$apiVersion, ...$arguments);
|
136 |
}
|
137 |
}
|
extendify-sdk/app/{App.php → Config.php}
RENAMED
@@ -3,12 +3,12 @@
|
|
3 |
* The App details file
|
4 |
*/
|
5 |
|
6 |
-
namespace Extendify
|
7 |
|
8 |
/**
|
9 |
* Controller for handling various app data
|
10 |
*/
|
11 |
-
class
|
12 |
{
|
13 |
|
14 |
/**
|
@@ -46,6 +46,13 @@ class App
|
|
46 |
*/
|
47 |
public static $standalone;
|
48 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
/**
|
50 |
* Plugin environment
|
51 |
*
|
@@ -65,7 +72,7 @@ class App
|
|
65 |
*
|
66 |
* @var string
|
67 |
*/
|
68 |
-
public static $requiredCapability = '
|
69 |
|
70 |
/**
|
71 |
* Plugin config
|
@@ -85,8 +92,13 @@ class App
|
|
85 |
self::$sdkPartner = $GLOBALS['extendify_sdk_partner'];
|
86 |
}
|
87 |
|
|
|
|
|
|
|
|
|
|
|
88 |
// phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents
|
89 |
-
$readme = file_get_contents(
|
90 |
|
91 |
preg_match('/=== (.+) ===/', $readme, $matches);
|
92 |
self::$name = $matches[1];
|
@@ -96,14 +108,46 @@ class App
|
|
96 |
self::$version = $matches[1];
|
97 |
|
98 |
// An easy way to check if we are in dev mode is to look for a dev specific file.
|
99 |
-
$isDev = is_readable(EXTENDIFY_PATH . '
|
100 |
self::$environment = $isDev ? 'DEVELOPMENT' : 'PRODUCTION';
|
101 |
|
102 |
self::$standalone = self::$sdkPartner === 'standalone';
|
|
|
103 |
|
104 |
// Add the config.
|
105 |
// phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents
|
106 |
-
$config = file_get_contents(
|
107 |
self::$config = json_decode($config, true);
|
108 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
109 |
}
|
3 |
* The App details file
|
4 |
*/
|
5 |
|
6 |
+
namespace Extendify;
|
7 |
|
8 |
/**
|
9 |
* Controller for handling various app data
|
10 |
*/
|
11 |
+
class Config
|
12 |
{
|
13 |
|
14 |
/**
|
46 |
*/
|
47 |
public static $standalone;
|
48 |
|
49 |
+
/**
|
50 |
+
* Whether to show load onboarding
|
51 |
+
*
|
52 |
+
* @var boolean
|
53 |
+
*/
|
54 |
+
public static $showOnboarding = false;
|
55 |
+
|
56 |
/**
|
57 |
* Plugin environment
|
58 |
*
|
72 |
*
|
73 |
* @var string
|
74 |
*/
|
75 |
+
public static $requiredCapability = 'manage_options';
|
76 |
|
77 |
/**
|
78 |
* Plugin config
|
92 |
self::$sdkPartner = $GLOBALS['extendify_sdk_partner'];
|
93 |
}
|
94 |
|
95 |
+
// Always use the partner name if set as a constant.
|
96 |
+
if (defined('EXTENDIFY_PARTNER_NAME')) {
|
97 |
+
self::$sdkPartner = constant('EXTENDIFY_PARTNER_NAME');
|
98 |
+
}
|
99 |
+
|
100 |
// phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents
|
101 |
+
$readme = file_get_contents(EXTENDIFY_PATH . 'readme.txt');
|
102 |
|
103 |
preg_match('/=== (.+) ===/', $readme, $matches);
|
104 |
self::$name = $matches[1];
|
108 |
self::$version = $matches[1];
|
109 |
|
110 |
// An easy way to check if we are in dev mode is to look for a dev specific file.
|
111 |
+
$isDev = is_readable(EXTENDIFY_PATH . 'public/build/.devbuild');
|
112 |
self::$environment = $isDev ? 'DEVELOPMENT' : 'PRODUCTION';
|
113 |
|
114 |
self::$standalone = self::$sdkPartner === 'standalone';
|
115 |
+
self::$showOnboarding = $this->showOnboarding();
|
116 |
|
117 |
// Add the config.
|
118 |
// phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents
|
119 |
+
$config = file_get_contents(EXTENDIFY_PATH . 'config.json');
|
120 |
self::$config = json_decode($config, true);
|
121 |
}
|
122 |
+
|
123 |
+
/**
|
124 |
+
* Conditionally load Extendify Launch.
|
125 |
+
*
|
126 |
+
* @return boolean
|
127 |
+
*/
|
128 |
+
private function showOnboarding()
|
129 |
+
{
|
130 |
+
// Always show it for dev mode.
|
131 |
+
if (self::$environment === 'DEVELOPMENT') {
|
132 |
+
return true;
|
133 |
+
}
|
134 |
+
|
135 |
+
// Currently we require a flag to be set.
|
136 |
+
if (!defined('EXTENDIFY_SHOW_ONBOARDING')) {
|
137 |
+
return false;
|
138 |
+
}
|
139 |
+
|
140 |
+
// Check if they disabled it and respect that.
|
141 |
+
if (constant('EXTENDIFY_SHOW_ONBOARDING') === false) {
|
142 |
+
return false;
|
143 |
+
}
|
144 |
+
|
145 |
+
// time() will be truthy and 0 falsy.
|
146 |
+
if (get_option('extendify_onboarding_skipped', 0)) {
|
147 |
+
return false;
|
148 |
+
}
|
149 |
+
|
150 |
+
// time() will be truthy and 0 falsy, so we reverse it.
|
151 |
+
return !get_option('extendify_onboarding_completed', 0);
|
152 |
+
}
|
153 |
}
|
extendify-sdk/app/Http.php
CHANGED
@@ -3,10 +3,10 @@
|
|
3 |
* Helper class for making http requests
|
4 |
*/
|
5 |
|
6 |
-
namespace Extendify
|
7 |
|
8 |
-
use Extendify\
|
9 |
-
use Extendify\
|
10 |
|
11 |
/**
|
12 |
* Controller for http communication
|
@@ -50,23 +50,28 @@ class Http
|
|
50 |
*/
|
51 |
public function __construct($request)
|
52 |
{
|
53 |
-
// Redundant, but extra
|
54 |
if (!\wp_verify_nonce(sanitize_text_field(wp_unslash($request->get_header('x_wp_nonce'))), 'wp_rest')) {
|
55 |
return;
|
56 |
}
|
57 |
|
58 |
-
// Some special cases for development.
|
59 |
-
$this->baseUrl = $request->get_header('x_extendify_dev_mode') !== 'false' ?
|
60 |
-
$this->baseUrl = $request->get_header('x_extendify_local_mode') !== 'false' ?
|
|
|
|
|
|
|
|
|
|
|
61 |
|
62 |
$this->data = [
|
63 |
'wp_language' => \get_locale(),
|
64 |
'wp_theme' => \get_option('template'),
|
65 |
-
'mode' =>
|
66 |
'uuid' => User::data('uuid'),
|
67 |
-
'library_version' =>
|
68 |
'wp_active_plugins' => $request->get_method() === 'POST' ? \get_option('active_plugins') : [],
|
69 |
-
'sdk_partner' =>
|
70 |
];
|
71 |
|
72 |
if ($request->get_header('x_extendify_dev_mode') !== 'false') {
|
@@ -104,6 +109,9 @@ class Http
|
|
104 |
'headers' => array_merge($this->headers, $headers),
|
105 |
]
|
106 |
);
|
|
|
|
|
|
|
107 |
|
108 |
$responseBody = \wp_remote_retrieve_body($response);
|
109 |
return json_decode($responseBody, true);
|
@@ -127,6 +135,9 @@ class Http
|
|
127 |
'body' => array_merge($this->data, $data),
|
128 |
]
|
129 |
);
|
|
|
|
|
|
|
130 |
|
131 |
$responseBody = \wp_remote_retrieve_body($response);
|
132 |
return json_decode($responseBody, true);
|
3 |
* Helper class for making http requests
|
4 |
*/
|
5 |
|
6 |
+
namespace Extendify;
|
7 |
|
8 |
+
use Extendify\Config;
|
9 |
+
use Extendify\User;
|
10 |
|
11 |
/**
|
12 |
* Controller for http communication
|
50 |
*/
|
51 |
public function __construct($request)
|
52 |
{
|
53 |
+
// Redundant, but extra protection!
|
54 |
if (!\wp_verify_nonce(sanitize_text_field(wp_unslash($request->get_header('x_wp_nonce'))), 'wp_rest')) {
|
55 |
return;
|
56 |
}
|
57 |
|
58 |
+
// Some special cases for library development.
|
59 |
+
$this->baseUrl = $request->get_header('x_extendify_dev_mode') !== 'false' ? Config::$config['api']['dev'] : Config::$config['api']['live'];
|
60 |
+
$this->baseUrl = $request->get_header('x_extendify_local_mode') !== 'false' ? Config::$config['api']['local'] : $this->baseUrl;
|
61 |
+
|
62 |
+
// Onboarding request.
|
63 |
+
$this->baseUrl = $request->get_header('x_extendify_onboarding') === 'true' ? Config::$config['api']['onboarding'] : $this->baseUrl;
|
64 |
+
$this->baseUrl = $request->get_header('x_extendify_onboarding_dev_mode') === 'true' ? Config::$config['api']['onboarding-dev'] : $this->baseUrl;
|
65 |
+
$this->baseUrl = $request->get_header('x_extendify_onboarding_local_mode') === 'true' ? Config::$config['api']['onboarding-local'] : $this->baseUrl;
|
66 |
|
67 |
$this->data = [
|
68 |
'wp_language' => \get_locale(),
|
69 |
'wp_theme' => \get_option('template'),
|
70 |
+
'mode' => Config::$environment,
|
71 |
'uuid' => User::data('uuid'),
|
72 |
+
'library_version' => Config::$version,
|
73 |
'wp_active_plugins' => $request->get_method() === 'POST' ? \get_option('active_plugins') : [],
|
74 |
+
'sdk_partner' => Config::$sdkPartner,
|
75 |
];
|
76 |
|
77 |
if ($request->get_header('x_extendify_dev_mode') !== 'false') {
|
109 |
'headers' => array_merge($this->headers, $headers),
|
110 |
]
|
111 |
);
|
112 |
+
if (\is_wp_error($response)) {
|
113 |
+
return $response;
|
114 |
+
}
|
115 |
|
116 |
$responseBody = \wp_remote_retrieve_body($response);
|
117 |
return json_decode($responseBody, true);
|
135 |
'body' => array_merge($this->data, $data),
|
136 |
]
|
137 |
);
|
138 |
+
if (\is_wp_error($response)) {
|
139 |
+
return $response;
|
140 |
+
}
|
141 |
|
142 |
$responseBody = \wp_remote_retrieve_body($response);
|
143 |
return json_decode($responseBody, true);
|
extendify-sdk/app/{Admin.php → Library/Admin.php}
RENAMED
@@ -5,8 +5,8 @@
|
|
5 |
|
6 |
namespace Extendify\Library;
|
7 |
|
8 |
-
use Extendify\
|
9 |
-
use Extendify\
|
10 |
use Extendify\Library\SiteSettings;
|
11 |
|
12 |
/**
|
@@ -65,7 +65,7 @@ class Admin
|
|
65 |
\add_action(
|
66 |
'admin_enqueue_scripts',
|
67 |
function ($hook) {
|
68 |
-
if (!current_user_can(
|
69 |
return;
|
70 |
}
|
71 |
|
@@ -112,10 +112,10 @@ class Admin
|
|
112 |
*/
|
113 |
public function addScopedScriptsAndStyles()
|
114 |
{
|
115 |
-
$version =
|
116 |
|
117 |
\wp_register_script(
|
118 |
-
|
119 |
EXTENDIFY_BASE_URL . 'public/build/extendify.js',
|
120 |
[
|
121 |
'wp-i18n',
|
@@ -127,29 +127,29 @@ class Admin
|
|
127 |
true
|
128 |
);
|
129 |
\wp_localize_script(
|
130 |
-
|
131 |
'extendifyData',
|
132 |
[
|
133 |
-
'root' => \esc_url_raw(rest_url(
|
134 |
'nonce' => \wp_create_nonce('wp_rest'),
|
135 |
'user' => json_decode(User::data('extendifysdk_user_data'), true),
|
136 |
'sitesettings' => json_decode(SiteSettings::data()),
|
137 |
-
'sdk_partner' => \esc_attr(
|
138 |
'asset_path' => \esc_url(EXTENDIFY_URL . 'public/assets'),
|
139 |
-
'standalone' => \esc_attr(
|
140 |
-
'devbuild' => \esc_attr(
|
141 |
]
|
142 |
);
|
143 |
-
\wp_enqueue_script(
|
144 |
|
145 |
-
\wp_set_script_translations(
|
146 |
|
147 |
// Inline the library styles to keep them out of the iframe live preview.
|
148 |
// phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents
|
149 |
$css = file_get_contents(EXTENDIFY_PATH . 'public/build/extendify.css');
|
150 |
-
\wp_register_style(
|
151 |
-
\wp_enqueue_style(
|
152 |
-
\wp_add_inline_style(
|
153 |
}
|
154 |
|
155 |
/**
|
5 |
|
6 |
namespace Extendify\Library;
|
7 |
|
8 |
+
use Extendify\Config;
|
9 |
+
use Extendify\User;
|
10 |
use Extendify\Library\SiteSettings;
|
11 |
|
12 |
/**
|
65 |
\add_action(
|
66 |
'admin_enqueue_scripts',
|
67 |
function ($hook) {
|
68 |
+
if (!current_user_can(Config::$requiredCapability)) {
|
69 |
return;
|
70 |
}
|
71 |
|
112 |
*/
|
113 |
public function addScopedScriptsAndStyles()
|
114 |
{
|
115 |
+
$version = Config::$environment === 'PRODUCTION' ? Config::$version : uniqid();
|
116 |
|
117 |
\wp_register_script(
|
118 |
+
Config::$slug . '-scripts',
|
119 |
EXTENDIFY_BASE_URL . 'public/build/extendify.js',
|
120 |
[
|
121 |
'wp-i18n',
|
127 |
true
|
128 |
);
|
129 |
\wp_localize_script(
|
130 |
+
Config::$slug . '-scripts',
|
131 |
'extendifyData',
|
132 |
[
|
133 |
+
'root' => \esc_url_raw(rest_url(Config::$slug . '/' . Config::$apiVersion)),
|
134 |
'nonce' => \wp_create_nonce('wp_rest'),
|
135 |
'user' => json_decode(User::data('extendifysdk_user_data'), true),
|
136 |
'sitesettings' => json_decode(SiteSettings::data()),
|
137 |
+
'sdk_partner' => \esc_attr(Config::$sdkPartner),
|
138 |
'asset_path' => \esc_url(EXTENDIFY_URL . 'public/assets'),
|
139 |
+
'standalone' => \esc_attr(Config::$standalone),
|
140 |
+
'devbuild' => \esc_attr(Config::$environment === 'DEVELOPMENT'),
|
141 |
]
|
142 |
);
|
143 |
+
\wp_enqueue_script(Config::$slug . '-scripts');
|
144 |
|
145 |
+
\wp_set_script_translations(Config::$slug . '-scripts', 'extendify');
|
146 |
|
147 |
// Inline the library styles to keep them out of the iframe live preview.
|
148 |
// phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents
|
149 |
$css = file_get_contents(EXTENDIFY_PATH . 'public/build/extendify.css');
|
150 |
+
\wp_register_style(Config::$slug, false, [], $version);
|
151 |
+
\wp_enqueue_style(Config::$slug);
|
152 |
+
\wp_add_inline_style(Config::$slug, $css);
|
153 |
}
|
154 |
|
155 |
/**
|
extendify-sdk/app/{Controllers → Library/Controllers}/AuthController.php
RENAMED
@@ -5,7 +5,7 @@
|
|
5 |
|
6 |
namespace Extendify\Library\Controllers;
|
7 |
|
8 |
-
use Extendify\
|
9 |
|
10 |
if (!defined('ABSPATH')) {
|
11 |
die('No direct access.');
|
5 |
|
6 |
namespace Extendify\Library\Controllers;
|
7 |
|
8 |
+
use Extendify\Http;
|
9 |
|
10 |
if (!defined('ABSPATH')) {
|
11 |
die('No direct access.');
|
extendify-sdk/app/{Controllers → Library/Controllers}/MetaController.php
RENAMED
@@ -5,7 +5,7 @@
|
|
5 |
|
6 |
namespace Extendify\Library\Controllers;
|
7 |
|
8 |
-
use Extendify\
|
9 |
|
10 |
if (!defined('ABSPATH')) {
|
11 |
die('No direct access.');
|
5 |
|
6 |
namespace Extendify\Library\Controllers;
|
7 |
|
8 |
+
use Extendify\Http;
|
9 |
|
10 |
if (!defined('ABSPATH')) {
|
11 |
die('No direct access.');
|
extendify-sdk/app/{Controllers → Library/Controllers}/PingController.php
RENAMED
@@ -5,7 +5,7 @@
|
|
5 |
|
6 |
namespace Extendify\Library\Controllers;
|
7 |
|
8 |
-
use Extendify\
|
9 |
|
10 |
if (!defined('ABSPATH')) {
|
11 |
die('No direct access.');
|
5 |
|
6 |
namespace Extendify\Library\Controllers;
|
7 |
|
8 |
+
use Extendify\Http;
|
9 |
|
10 |
if (!defined('ABSPATH')) {
|
11 |
die('No direct access.');
|
extendify-sdk/app/{Controllers → Library/Controllers}/PluginController.php
RENAMED
File without changes
|
extendify-sdk/app/{Controllers → Library/Controllers}/SiteSettingsController.php
RENAMED
File without changes
|
extendify-sdk/app/{Controllers → Library/Controllers}/TaxonomyController.php
RENAMED
@@ -5,7 +5,7 @@
|
|
5 |
|
6 |
namespace Extendify\Library\Controllers;
|
7 |
|
8 |
-
use Extendify\
|
9 |
|
10 |
if (!defined('ABSPATH')) {
|
11 |
die('No direct access.');
|
5 |
|
6 |
namespace Extendify\Library\Controllers;
|
7 |
|
8 |
+
use Extendify\Http;
|
9 |
|
10 |
if (!defined('ABSPATH')) {
|
11 |
die('No direct access.');
|
extendify-sdk/app/{Controllers → Library/Controllers}/TemplateController.php
RENAMED
@@ -5,7 +5,7 @@
|
|
5 |
|
6 |
namespace Extendify\Library\Controllers;
|
7 |
|
8 |
-
use Extendify\
|
9 |
|
10 |
if (!defined('ABSPATH')) {
|
11 |
die('No direct access.');
|
5 |
|
6 |
namespace Extendify\Library\Controllers;
|
7 |
|
8 |
+
use Extendify\Http;
|
9 |
|
10 |
if (!defined('ABSPATH')) {
|
11 |
die('No direct access.');
|
extendify-sdk/app/{Controllers → Library/Controllers}/UserController.php
RENAMED
@@ -5,8 +5,8 @@
|
|
5 |
|
6 |
namespace Extendify\Library\Controllers;
|
7 |
|
8 |
-
use Extendify\
|
9 |
-
use Extendify\
|
10 |
|
11 |
if (!defined('ABSPATH')) {
|
12 |
die('No direct access.');
|
5 |
|
6 |
namespace Extendify\Library\Controllers;
|
7 |
|
8 |
+
use Extendify\Http;
|
9 |
+
use Extendify\User;
|
10 |
|
11 |
if (!defined('ABSPATH')) {
|
12 |
die('No direct access.');
|
extendify-sdk/app/{Frontend.php → Library/Frontend.php}
RENAMED
@@ -5,7 +5,7 @@
|
|
5 |
|
6 |
namespace Extendify\Library;
|
7 |
|
8 |
-
use Extendify\
|
9 |
|
10 |
/**
|
11 |
* This class handles any file loading for the frontend of the site.
|
5 |
|
6 |
namespace Extendify\Library;
|
7 |
|
8 |
+
use Extendify\Config;
|
9 |
|
10 |
/**
|
11 |
* This class handles any file loading for the frontend of the site.
|
extendify-sdk/app/{Plugin.php → Library/Plugin.php}
RENAMED
File without changes
|
extendify-sdk/app/{Shared.php → Library/Shared.php}
RENAMED
@@ -5,7 +5,7 @@
|
|
5 |
|
6 |
namespace Extendify\Library;
|
7 |
|
8 |
-
use Extendify\
|
9 |
|
10 |
/**
|
11 |
* This class handles assets that load within the editor and the front-end.
|
@@ -237,10 +237,10 @@ class Shared
|
|
237 |
|
238 |
// phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents
|
239 |
$content = file_get_contents(EXTENDIFY_PATH . 'public/build/extendify-utilities.css');
|
240 |
-
$version =
|
241 |
-
\wp_register_style(
|
242 |
-
\wp_enqueue_style(
|
243 |
-
\wp_add_inline_style(
|
244 |
// Adds inline to the live preview.
|
245 |
\wp_add_inline_style('wp-components', $content . $css);
|
246 |
}
|
5 |
|
6 |
namespace Extendify\Library;
|
7 |
|
8 |
+
use Extendify\Config;
|
9 |
|
10 |
/**
|
11 |
* This class handles assets that load within the editor and the front-end.
|
237 |
|
238 |
// phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents
|
239 |
$content = file_get_contents(EXTENDIFY_PATH . 'public/build/extendify-utilities.css');
|
240 |
+
$version = Config::$environment === 'PRODUCTION' ? Config::$version : uniqid();
|
241 |
+
\wp_register_style(Config::$slug . '-utilities', false, [], $version);
|
242 |
+
\wp_enqueue_style(Config::$slug . '-utilities');
|
243 |
+
\wp_add_inline_style(Config::$slug . '-utilities', $content . $css);
|
244 |
// Adds inline to the live preview.
|
245 |
\wp_add_inline_style('wp-components', $content . $css);
|
246 |
}
|
extendify-sdk/app/{SiteSettings.php → Library/SiteSettings.php}
RENAMED
File without changes
|
extendify-sdk/app/{Welcome.php → Library/Welcome.php}
RENAMED
@@ -5,7 +5,7 @@
|
|
5 |
|
6 |
namespace Extendify\Library;
|
7 |
|
8 |
-
use Extendify\
|
9 |
|
10 |
/**
|
11 |
* This class handles the Welcome page on the admin panel.
|
@@ -20,7 +20,7 @@ class Welcome
|
|
20 |
*/
|
21 |
public function __construct()
|
22 |
{
|
23 |
-
if (
|
24 |
\add_action('admin_menu', [ $this, 'addAdminMenu' ]);
|
25 |
|
26 |
$this->loadScripts();
|
@@ -34,24 +34,17 @@ class Welcome
|
|
34 |
*/
|
35 |
public function addAdminMenu()
|
36 |
{
|
37 |
-
$raw = \wp_remote_get(EXTENDIFY_URL . 'public/assets/extendify-logo.svg');
|
38 |
-
if (\is_wp_error($raw)) {
|
39 |
-
$svg = '';
|
40 |
-
} else {
|
41 |
-
$svg = \wp_remote_retrieve_body($raw);
|
42 |
-
}
|
43 |
-
|
44 |
add_menu_page(
|
45 |
'Extendify',
|
46 |
'Extendify',
|
47 |
-
|
48 |
'extendify',
|
49 |
[
|
50 |
$this,
|
51 |
'createAdminPage',
|
52 |
],
|
53 |
// phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_encode
|
54 |
-
'data:image/svg+xml;base64,' . base64_encode(
|
55 |
);
|
56 |
}
|
57 |
|
@@ -173,7 +166,7 @@ class Welcome
|
|
173 |
'extendify-welcome',
|
174 |
EXTENDIFY_URL . 'public/admin-page/welcome.css',
|
175 |
[],
|
176 |
-
|
177 |
);
|
178 |
}
|
179 |
);
|
5 |
|
6 |
namespace Extendify\Library;
|
7 |
|
8 |
+
use Extendify\Config;
|
9 |
|
10 |
/**
|
11 |
* This class handles the Welcome page on the admin panel.
|
20 |
*/
|
21 |
public function __construct()
|
22 |
{
|
23 |
+
if (Config::$standalone || Config::$showOnboarding) {
|
24 |
\add_action('admin_menu', [ $this, 'addAdminMenu' ]);
|
25 |
|
26 |
$this->loadScripts();
|
34 |
*/
|
35 |
public function addAdminMenu()
|
36 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
add_menu_page(
|
38 |
'Extendify',
|
39 |
'Extendify',
|
40 |
+
Config::$requiredCapability,
|
41 |
'extendify',
|
42 |
[
|
43 |
$this,
|
44 |
'createAdminPage',
|
45 |
],
|
46 |
// phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_encode
|
47 |
+
'data:image/svg+xml;base64,' . base64_encode('<svg width="20" height="20" viewBox="0 0 60 62" fill="black" xmlns="http://www.w3.org/2000/svg"><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"/></svg>')
|
48 |
);
|
49 |
}
|
50 |
|
166 |
'extendify-welcome',
|
167 |
EXTENDIFY_URL . 'public/admin-page/welcome.css',
|
168 |
[],
|
169 |
+
Config::$version
|
170 |
);
|
171 |
}
|
172 |
);
|
extendify-sdk/app/Onboarding/Admin.php
ADDED
@@ -0,0 +1,181 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Admin.
|
4 |
+
*/
|
5 |
+
|
6 |
+
namespace Extendify\Onboarding;
|
7 |
+
|
8 |
+
use Extendify\Config;
|
9 |
+
|
10 |
+
/**
|
11 |
+
* This class handles any file loading for the admin area.
|
12 |
+
*/
|
13 |
+
class Admin
|
14 |
+
{
|
15 |
+
|
16 |
+
/**
|
17 |
+
* The instance
|
18 |
+
*
|
19 |
+
* @var $instance
|
20 |
+
*/
|
21 |
+
public static $instance = null;
|
22 |
+
|
23 |
+
/**
|
24 |
+
* Adds various actions to set up the page
|
25 |
+
*
|
26 |
+
* @return self|void
|
27 |
+
*/
|
28 |
+
public function __construct()
|
29 |
+
{
|
30 |
+
// Whether to load Extendify Launch or not.
|
31 |
+
if (!Config::$showOnboarding) {
|
32 |
+
return;
|
33 |
+
}
|
34 |
+
|
35 |
+
if (self::$instance) {
|
36 |
+
return self::$instance;
|
37 |
+
}
|
38 |
+
|
39 |
+
self::$instance = $this;
|
40 |
+
$this->loadScripts();
|
41 |
+
$this->addAdminMenu();
|
42 |
+
$this->redirectOnLogin();
|
43 |
+
}
|
44 |
+
|
45 |
+
/**
|
46 |
+
* Adds scripts to the admin
|
47 |
+
*
|
48 |
+
* @return void
|
49 |
+
*/
|
50 |
+
public function loadScripts()
|
51 |
+
{
|
52 |
+
\add_action(
|
53 |
+
'admin_enqueue_scripts',
|
54 |
+
function ($hook) {
|
55 |
+
if (!current_user_can(Config::$requiredCapability)) {
|
56 |
+
return;
|
57 |
+
}
|
58 |
+
|
59 |
+
if (!$this->checkItsGutenbergPost($hook)) {
|
60 |
+
return;
|
61 |
+
}
|
62 |
+
|
63 |
+
$this->addScopedScriptsAndStyles();
|
64 |
+
}
|
65 |
+
);
|
66 |
+
}
|
67 |
+
|
68 |
+
/**
|
69 |
+
* Adds settings menu
|
70 |
+
*
|
71 |
+
* @return void
|
72 |
+
*/
|
73 |
+
public function addAdminMenu()
|
74 |
+
{
|
75 |
+
\add_action('admin_menu', function () {
|
76 |
+
if (Config::$environment === 'DEVELOPMENT' || Config::$showOnboarding) {
|
77 |
+
\add_submenu_page('extendify', \__('Welcome', 'extendify'), \__('Welcome', 'extendify'), Config::$requiredCapability, 'extendify', '', 400);
|
78 |
+
\add_submenu_page('extendify', 'Extendify Launch', 'Extendify Launch', Config::$requiredCapability, 'post-new.php?extendify=onboarding', '', 500);
|
79 |
+
}
|
80 |
+
});
|
81 |
+
}
|
82 |
+
|
83 |
+
/**
|
84 |
+
* Always redirect to Extendify Launch on login unless onboarding has been previously completed or skipped.
|
85 |
+
*
|
86 |
+
* Applies to the main admin account, whose email matches the entry in WP Admin > Settings > General.
|
87 |
+
*
|
88 |
+
* @return void
|
89 |
+
*/
|
90 |
+
public function redirectOnLogin()
|
91 |
+
{
|
92 |
+
// phpcs:disable Generic.CodeAnalysis.UnusedFunctionParameter
|
93 |
+
\add_filter('login_redirect', function ($location, $request, $user) {
|
94 |
+
// Don't redirect if Launch previously completed, or user skipped to WP admin.
|
95 |
+
if (get_option('extendify_onboarding_skipped', 0) || get_option('extendify_onboarding_completed', 0)) {
|
96 |
+
return $location;
|
97 |
+
}
|
98 |
+
|
99 |
+
// Redirect to Extendify Launch if user is admin, and their email matches the entry in general settings.
|
100 |
+
if (is_object($user) && isset($user->data->user_email)) {
|
101 |
+
$loginEmail = $user->data->user_email;
|
102 |
+
$adminEmail = \get_option('admin_email');
|
103 |
+
if ($loginEmail === $adminEmail && (isset($user->roles) && is_array($user->roles))) {
|
104 |
+
return in_array('administrator', $user->roles, true) ? admin_url() . 'post-new.php?extendify=onboarding' : $location;
|
105 |
+
}
|
106 |
+
}
|
107 |
+
|
108 |
+
// Redirect as normal.
|
109 |
+
return $location;
|
110 |
+
}, 10, 3);
|
111 |
+
}
|
112 |
+
|
113 |
+
/**
|
114 |
+
* Makes sure we are on the correct page
|
115 |
+
*
|
116 |
+
* @param string $hook - An optional hook provided by WP to identify the page.
|
117 |
+
* @return boolean
|
118 |
+
*/
|
119 |
+
public function checkItsGutenbergPost($hook = '')
|
120 |
+
{
|
121 |
+
if (isset($GLOBALS['typenow']) && \use_block_editor_for_post_type($GLOBALS['typenow'])) {
|
122 |
+
return $hook && in_array($hook, ['post.php', 'post-new.php'], true);
|
123 |
+
}
|
124 |
+
|
125 |
+
return false;
|
126 |
+
}
|
127 |
+
|
128 |
+
/**
|
129 |
+
* Adds various JS scripts
|
130 |
+
*
|
131 |
+
* @return void
|
132 |
+
*/
|
133 |
+
public function addScopedScriptsAndStyles()
|
134 |
+
{
|
135 |
+
$version = Config::$environment === 'PRODUCTION' ? Config::$version : uniqid();
|
136 |
+
|
137 |
+
\wp_enqueue_script(
|
138 |
+
Config::$slug . '-onboarding-scripts',
|
139 |
+
EXTENDIFY_BASE_URL . 'public/build/extendify-onboarding.js',
|
140 |
+
[
|
141 |
+
'wp-i18n',
|
142 |
+
'wp-components',
|
143 |
+
'wp-element',
|
144 |
+
'wp-editor',
|
145 |
+
],
|
146 |
+
$version,
|
147 |
+
true
|
148 |
+
);
|
149 |
+
\wp_add_inline_script(
|
150 |
+
Config::$slug . '-onboarding-scripts',
|
151 |
+
'window.extOnbData = ' . wp_json_encode([
|
152 |
+
'site' => \esc_url_raw(\get_site_url()),
|
153 |
+
'adminUrl' => \esc_url_raw(\admin_url()),
|
154 |
+
'pluginUrl' => \esc_url_raw(EXTENDIFY_BASE_URL),
|
155 |
+
'home' => \esc_url_raw(\get_home_url()),
|
156 |
+
'root' => \esc_url_raw(\rest_url(Config::$slug . '/' . Config::$apiVersion)),
|
157 |
+
'wpRoot' => \esc_url_raw(\rest_url()),
|
158 |
+
'nonce' => \wp_create_nonce('wp_rest'),
|
159 |
+
'partnerLogo' => defined('EXTENDIFY_PARTNER_LOGO') ? constant('EXTENDIFY_PARTNER_LOGO') : null,
|
160 |
+
'partnerName' => defined('EXTENDIFY_PARTNER_NAME') ? constant('EXTENDIFY_PARTNER_NAME') : null,
|
161 |
+
]),
|
162 |
+
'before'
|
163 |
+
);
|
164 |
+
|
165 |
+
\wp_set_script_translations(Config::$slug . '-onboarding-scripts', 'extendify');
|
166 |
+
|
167 |
+
\wp_enqueue_style(
|
168 |
+
Config::$slug . '-onboarding-styles',
|
169 |
+
EXTENDIFY_BASE_URL . 'public/build/extendify-onboarding.css',
|
170 |
+
[],
|
171 |
+
$version,
|
172 |
+
'all'
|
173 |
+
);
|
174 |
+
$bg = defined('EXTENDIFY_ONBOARDING_BG') ? constant('EXTENDIFY_ONBOARDING_BG') : 'var(--wp-admin-theme-color, #007cba)';
|
175 |
+
$txt = defined('EXTENDIFY_ONBOARDING_TXT') ? constant('EXTENDIFY_ONBOARDING_TXT') : '#ffffff';
|
176 |
+
\wp_add_inline_style(Config::$slug . '-onboarding-styles', "body {
|
177 |
+
--ext-partner-theme-primary-bg: {$bg};
|
178 |
+
--ext-partner-theme-primary-text: {$txt};
|
179 |
+
}");
|
180 |
+
}
|
181 |
+
}
|
extendify-sdk/app/Onboarding/Controllers/DataController.php
ADDED
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Data Controller
|
4 |
+
*/
|
5 |
+
|
6 |
+
namespace Extendify\Onboarding\Controllers;
|
7 |
+
|
8 |
+
use Extendify\Http;
|
9 |
+
|
10 |
+
if (!defined('ABSPATH')) {
|
11 |
+
die('No direct access.');
|
12 |
+
}
|
13 |
+
|
14 |
+
/**
|
15 |
+
* The controller for handling general data
|
16 |
+
*/
|
17 |
+
class DataController
|
18 |
+
{
|
19 |
+
/**
|
20 |
+
* Get Site type information.
|
21 |
+
*
|
22 |
+
* @return \WP_REST_Response
|
23 |
+
*/
|
24 |
+
public static function getSiteTypes()
|
25 |
+
{
|
26 |
+
$response = Http::get('/site-types');
|
27 |
+
return new \WP_REST_Response($response);
|
28 |
+
}
|
29 |
+
|
30 |
+
/**
|
31 |
+
* Get styles with code template.
|
32 |
+
*
|
33 |
+
* @param \WP_REST_Request $request - The request.
|
34 |
+
* @return \WP_REST_Response
|
35 |
+
*/
|
36 |
+
public static function getStyles($request)
|
37 |
+
{
|
38 |
+
$siteType = $request->get_param('siteType');
|
39 |
+
$response = Http::get('/styles', ['siteType' => $siteType]);
|
40 |
+
return new \WP_REST_Response($response);
|
41 |
+
}
|
42 |
+
/**
|
43 |
+
* Get styles with code template.
|
44 |
+
*
|
45 |
+
* @param \WP_REST_Request $request - The request.
|
46 |
+
* @return \WP_REST_Response
|
47 |
+
*/
|
48 |
+
public static function getTemplate($request)
|
49 |
+
{
|
50 |
+
$response = Http::get('/templates', $request->get_params());
|
51 |
+
if (\is_wp_error($response)) {
|
52 |
+
// TODO: Maybe handle errors better here, or higher up in the Http class.
|
53 |
+
wp_send_json_error(['message' => $response->get_error_message()], 400);
|
54 |
+
}
|
55 |
+
|
56 |
+
return new \WP_REST_Response($response);
|
57 |
+
}
|
58 |
+
|
59 |
+
/**
|
60 |
+
* Get Site type information.
|
61 |
+
*
|
62 |
+
* @return \WP_REST_Response
|
63 |
+
*/
|
64 |
+
public static function getLayoutTypes()
|
65 |
+
{
|
66 |
+
$response = Http::get('/layout-types');
|
67 |
+
return new \WP_REST_Response($response);
|
68 |
+
}
|
69 |
+
|
70 |
+
/**
|
71 |
+
* Get Goals information.
|
72 |
+
*
|
73 |
+
* @return \WP_REST_Response
|
74 |
+
*/
|
75 |
+
public static function getGoals()
|
76 |
+
{
|
77 |
+
$response = Http::get('/goals');
|
78 |
+
return new \WP_REST_Response($response);
|
79 |
+
}
|
80 |
+
|
81 |
+
/**
|
82 |
+
* Get Goals information.
|
83 |
+
*
|
84 |
+
* @return \WP_REST_Response
|
85 |
+
*/
|
86 |
+
public static function getSuggestedPlugins()
|
87 |
+
{
|
88 |
+
$response = Http::get('/suggested-plugins');
|
89 |
+
return new \WP_REST_Response($response);
|
90 |
+
}
|
91 |
+
|
92 |
+
/**
|
93 |
+
* Send data about the order.
|
94 |
+
*
|
95 |
+
* @param \WP_REST_Request $request - The request.
|
96 |
+
* @return \WP_REST_Response
|
97 |
+
*/
|
98 |
+
public static function createOrder($request)
|
99 |
+
{
|
100 |
+
$response = Http::post('/create-order', $request->get_params());
|
101 |
+
return new \WP_REST_Response($response);
|
102 |
+
}
|
103 |
+
}
|
extendify-sdk/app/Onboarding/Controllers/LibraryController.php
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Library Controller
|
4 |
+
*/
|
5 |
+
|
6 |
+
namespace Extendify\Onboarding\Controllers;
|
7 |
+
|
8 |
+
if (!defined('ABSPATH')) {
|
9 |
+
die('No direct access.');
|
10 |
+
}
|
11 |
+
|
12 |
+
/**
|
13 |
+
* The controller for handling items associated with the library
|
14 |
+
*/
|
15 |
+
class LibraryController
|
16 |
+
{
|
17 |
+
/**
|
18 |
+
* Update the site type.
|
19 |
+
*
|
20 |
+
* @param \WP_REST_Request $request - The request.
|
21 |
+
* @return \WP_REST_Response
|
22 |
+
*/
|
23 |
+
public static function updateSiteType($request)
|
24 |
+
{
|
25 |
+
$siteType = $request->get_param('siteType');
|
26 |
+
if (defined('EXTENDIFY_PATH') && is_readable(EXTENDIFY_PATH . 'app/User.php')) {
|
27 |
+
include_once EXTENDIFY_PATH . 'app/User.php';
|
28 |
+
}
|
29 |
+
|
30 |
+
if (method_exists('Extendify\User', 'updateSiteType')) {
|
31 |
+
\Extendify\User::updateSiteType($siteType);
|
32 |
+
}
|
33 |
+
|
34 |
+
return new \WP_REST_Response(['success' => true], 200);
|
35 |
+
}
|
36 |
+
}
|
extendify-sdk/app/Onboarding/Controllers/WPController.php
ADDED
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* WP Controller
|
4 |
+
*/
|
5 |
+
|
6 |
+
namespace Extendify\Onboarding\Controllers;
|
7 |
+
|
8 |
+
use Extendify\Onboarding\Helpers\ThemeJson;
|
9 |
+
|
10 |
+
if (!defined('ABSPATH')) {
|
11 |
+
die('No direct access.');
|
12 |
+
}
|
13 |
+
|
14 |
+
/**
|
15 |
+
* The controller for interacting with WordPress.
|
16 |
+
*/
|
17 |
+
class WPController
|
18 |
+
{
|
19 |
+
|
20 |
+
/**
|
21 |
+
* Parse theme.json file.
|
22 |
+
*
|
23 |
+
* @param \WP_REST_Request $request - The request.
|
24 |
+
* @return \WP_REST_Response
|
25 |
+
*/
|
26 |
+
public static function parseThemeJson($request)
|
27 |
+
{
|
28 |
+
if (!$request->get_param('themeJson')) {
|
29 |
+
return new \WP_Error('invalid_theme_json', __('Invalid Theme.json file', 'extendify'));
|
30 |
+
}
|
31 |
+
|
32 |
+
$themeJson = new ThemeJson(json_decode($request->get_param('themeJson'), true), '');
|
33 |
+
return new \WP_REST_Response([
|
34 |
+
'success' => true,
|
35 |
+
'styles' => $themeJson->get_stylesheet(),
|
36 |
+
], 200);
|
37 |
+
}
|
38 |
+
|
39 |
+
/**
|
40 |
+
* Persist the data
|
41 |
+
*
|
42 |
+
* @param \WP_REST_Request $request - The request.
|
43 |
+
* @return \WP_REST_Response
|
44 |
+
*/
|
45 |
+
public static function saveThemeJson($request)
|
46 |
+
{
|
47 |
+
if (!$request->get_param('themeJson')) {
|
48 |
+
return new \WP_Error('invalid_theme_json', __('Invalid Theme.json file', 'extendify'));
|
49 |
+
}
|
50 |
+
|
51 |
+
$themeJson = ThemeJson::justSanitize(json_decode($request->get_param('themeJson'), true));
|
52 |
+
|
53 |
+
require_once ABSPATH . '/wp-admin/includes/file.php';
|
54 |
+
$maybeError = \wp_edit_theme_plugin_file([
|
55 |
+
'theme' => \get_option('template'),
|
56 |
+
'file' => 'theme.json',
|
57 |
+
'newcontent' => \wp_json_encode($themeJson, JSON_PRETTY_PRINT),
|
58 |
+
'nonce' => \wp_create_nonce('edit-theme_' . \get_option('template') . '_theme.json'),
|
59 |
+
]);
|
60 |
+
|
61 |
+
if (\is_wp_error($maybeError)) {
|
62 |
+
return new \WP_Error('invalid_theme_json', __('Error creating theme.json file', 'extendify'));
|
63 |
+
}
|
64 |
+
|
65 |
+
return new \WP_REST_Response(['success' => true], 200);
|
66 |
+
}
|
67 |
+
|
68 |
+
/**
|
69 |
+
* Persist the data
|
70 |
+
*
|
71 |
+
* @param \WP_REST_Request $request - The request.
|
72 |
+
* @return \WP_REST_Response
|
73 |
+
*/
|
74 |
+
public static function updateOption($request)
|
75 |
+
{
|
76 |
+
$params = $request->get_json_params();
|
77 |
+
\update_option($params['option'], $params['value']);
|
78 |
+
return new \WP_REST_Response(['success' => true], 200);
|
79 |
+
}
|
80 |
+
|
81 |
+
/**
|
82 |
+
* Get a setting from the options table
|
83 |
+
*
|
84 |
+
* @param \WP_REST_Request $request - The request.
|
85 |
+
* @return \WP_REST_Response
|
86 |
+
*/
|
87 |
+
public static function getOption($request)
|
88 |
+
{
|
89 |
+
$value = \get_option($request->get_param('option'), null);
|
90 |
+
return new \WP_REST_Response([
|
91 |
+
'success' => true,
|
92 |
+
'data' => $value,
|
93 |
+
], 200);
|
94 |
+
}
|
95 |
+
}
|
extendify-sdk/app/Onboarding/Helpers/ThemeJson.php
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace Extendify\Onboarding\Helpers;
|
4 |
+
|
5 |
+
if (!defined('ABSPATH')) {
|
6 |
+
die('No direct access.');
|
7 |
+
}
|
8 |
+
|
9 |
+
/**
|
10 |
+
* Class used to expose some WP protectod methods
|
11 |
+
*/
|
12 |
+
class ThemeJson extends \WP_Theme_JSON
|
13 |
+
{
|
14 |
+
/**
|
15 |
+
* Expose the protected sanitize function to make sure the theme.json is OK.
|
16 |
+
*
|
17 |
+
* @param array $themeJson - parsed theme.json array.
|
18 |
+
* @return array
|
19 |
+
*/
|
20 |
+
public static function justSanitize($themeJson)
|
21 |
+
{
|
22 |
+
$themeJson = \WP_Theme_JSON_Schema::migrate($themeJson);
|
23 |
+
$validBlockNames = array_keys(static::get_blocks_metadata());
|
24 |
+
$validElementNames = array_keys(static::ELEMENTS);
|
25 |
+
return static::sanitize($themeJson, $validBlockNames, $validElementNames);
|
26 |
+
}
|
27 |
+
}
|
extendify-sdk/app/User.php
CHANGED
@@ -3,9 +3,9 @@
|
|
3 |
* Helper class for interacting with the user
|
4 |
*/
|
5 |
|
6 |
-
namespace Extendify
|
7 |
|
8 |
-
use Extendify\
|
9 |
|
10 |
/**
|
11 |
* Helper class for interacting with the user
|
@@ -144,7 +144,7 @@ class User
|
|
144 |
}
|
145 |
|
146 |
if (!isset($userData['state']['sdkPartner']) || !$userData['state']['sdkPartner']) {
|
147 |
-
$userData['state']['sdkPartner'] =
|
148 |
}
|
149 |
|
150 |
$userData['state']['uuid'] = self::data('uuid');
|
3 |
* Helper class for interacting with the user
|
4 |
*/
|
5 |
|
6 |
+
namespace Extendify;
|
7 |
|
8 |
+
use Extendify\Config;
|
9 |
|
10 |
/**
|
11 |
* Helper class for interacting with the user
|
144 |
}
|
145 |
|
146 |
if (!isset($userData['state']['sdkPartner']) || !$userData['state']['sdkPartner']) {
|
147 |
+
$userData['state']['sdkPartner'] = Config::$sdkPartner;
|
148 |
}
|
149 |
|
150 |
$userData['state']['uuid'] = self::data('uuid');
|
extendify-sdk/bootstrap.php
CHANGED
@@ -3,8 +3,9 @@
|
|
3 |
* Bootstrap the application
|
4 |
*/
|
5 |
|
6 |
-
use Extendify\
|
7 |
-
use Extendify\
|
|
|
8 |
use Extendify\Library\Shared;
|
9 |
use Extendify\Library\Welcome;
|
10 |
use Extendify\Library\Frontend;
|
@@ -29,8 +30,9 @@ if (is_readable(EXTENDIFY_PATH . 'vendor/autoload.php')) {
|
|
29 |
require EXTENDIFY_PATH . 'vendor/autoload.php';
|
30 |
}
|
31 |
|
32 |
-
new
|
33 |
-
new
|
|
|
34 |
new Frontend();
|
35 |
new Shared();
|
36 |
new Welcome();
|
@@ -38,12 +40,9 @@ new Welcome();
|
|
38 |
require EXTENDIFY_PATH . 'routes/api.php';
|
39 |
require EXTENDIFY_PATH . 'editorplus/EditorPlus.php';
|
40 |
|
41 |
-
\add_action(
|
42 |
-
'
|
43 |
-
|
44 |
-
\load_plugin_textdomain('extendify', false, EXTENDIFY_PATH . 'languages');
|
45 |
-
}
|
46 |
-
);
|
47 |
|
48 |
// To cover legacy conflicts.
|
49 |
// phpcs:ignore
|
3 |
* Bootstrap the application
|
4 |
*/
|
5 |
|
6 |
+
use Extendify\Config;
|
7 |
+
use Extendify\Onboarding\Admin as OnboardingAdmin;
|
8 |
+
use Extendify\Library\Admin as LibraryAdmin;
|
9 |
use Extendify\Library\Shared;
|
10 |
use Extendify\Library\Welcome;
|
11 |
use Extendify\Library\Frontend;
|
30 |
require EXTENDIFY_PATH . 'vendor/autoload.php';
|
31 |
}
|
32 |
|
33 |
+
new Config();
|
34 |
+
new OnboardingAdmin();
|
35 |
+
new LibraryAdmin();
|
36 |
new Frontend();
|
37 |
new Shared();
|
38 |
new Welcome();
|
40 |
require EXTENDIFY_PATH . 'routes/api.php';
|
41 |
require EXTENDIFY_PATH . 'editorplus/EditorPlus.php';
|
42 |
|
43 |
+
\add_action('plugins_loaded', function () {
|
44 |
+
\load_plugin_textdomain('extendify');
|
45 |
+
});
|
|
|
|
|
|
|
46 |
|
47 |
// To cover legacy conflicts.
|
48 |
// phpcs:ignore
|
extendify-sdk/config.json
CHANGED
@@ -1,5 +1,9 @@
|
|
1 |
{
|
2 |
"api": {
|
|
|
|
|
|
|
|
|
3 |
"live": "https://dashboard.extendify.com/api",
|
4 |
"dev": "https://testing.extendify.com/api",
|
5 |
"local": "http://templates.test/api"
|
1 |
{
|
2 |
"api": {
|
3 |
+
"onboarding": "https://dashboard.extendify.com/api/onboarding",
|
4 |
+
"onboarding-dev": "https://testing.extendify.com/api/onboarding",
|
5 |
+
"onboarding-local": "http://templates.test/api/onboarding",
|
6 |
+
|
7 |
"live": "https://dashboard.extendify.com/api",
|
8 |
"dev": "https://testing.extendify.com/api",
|
9 |
"local": "http://templates.test/api"
|
extendify-sdk/public/assets/extendify-logo.svg
DELETED
@@ -1,3 +0,0 @@
|
|
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>
|
|
|
|
|
|
extendify-sdk/public/assets/extendify-preview.png
ADDED
Binary file
|
extendify-sdk/public/assets/pro-image.png
ADDED
Binary file
|
extendify-sdk/public/assets/wp-admin.png
ADDED
Binary file
|
extendify-sdk/public/build/extendify-onboarding.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
div.extendify-onboarding .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-onboarding .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-onboarding .pointer-events-none{pointer-events:none!important}div.extendify-onboarding .invisible{visibility:hidden!important}div.extendify-onboarding .group:focus .group-focus\:visible,div.extendify-onboarding .group:hover .group-hover\:visible{visibility:visible!important}div.extendify-onboarding .static{position:static!important}div.extendify-onboarding .fixed{position:fixed!important}div.extendify-onboarding .absolute{position:absolute!important}div.extendify-onboarding .relative{position:relative!important}div.extendify-onboarding .sticky{position:-webkit-sticky!important;position:sticky!important}div.extendify-onboarding .inset-0{bottom:0!important;left:0!important;right:0!important;top:0!important}div.extendify-onboarding .top-0{top:0!important}div.extendify-onboarding .top-2{top:.5rem!important}div.extendify-onboarding .top-4{top:1rem!important}div.extendify-onboarding .-top-1\/4{top:-25%!important}div.extendify-onboarding .right-0{right:0!important}div.extendify-onboarding .right-1{right:.25rem!important}div.extendify-onboarding .right-2{right:.5rem!important}div.extendify-onboarding .right-3{right:.75rem!important}div.extendify-onboarding .right-4{right:1rem!important}div.extendify-onboarding .right-2\.5{right:.625rem!important}div.extendify-onboarding .bottom-0{bottom:0!important}div.extendify-onboarding .bottom-4{bottom:1rem!important}div.extendify-onboarding .-bottom-2{bottom:-.5rem!important}div.extendify-onboarding .left-0{left:0!important}div.extendify-onboarding .group:hover .group-hover\:-top-2{top:-.5rem!important}div.extendify-onboarding .group:hover .group-hover\:-top-2\.5{top:-.625rem!important}div.extendify-onboarding .group:focus .group-focus\:-top-2{top:-.5rem!important}div.extendify-onboarding .group:focus .group-focus\:-top-2\.5{top:-.625rem!important}div.extendify-onboarding .z-10{z-index:10!important}div.extendify-onboarding .z-20{z-index:20!important}div.extendify-onboarding .z-30{z-index:30!important}div.extendify-onboarding .z-40{z-index:40!important}div.extendify-onboarding .z-50{z-index:50!important}div.extendify-onboarding .z-high{z-index:99999!important}div.extendify-onboarding .z-max{z-index:2147483647!important}div.extendify-onboarding .m-0{margin:0!important}div.extendify-onboarding .m-6{margin:1.5rem!important}div.extendify-onboarding .m-8{margin:2rem!important}div.extendify-onboarding .m-auto{margin:auto!important}div.extendify-onboarding .-m-2{margin:-.5rem!important}div.extendify-onboarding .-m-6{margin:-1.5rem!important}div.extendify-onboarding .-m-8{margin:-2rem!important}div.extendify-onboarding .mx-1{margin-left:.25rem!important;margin-right:.25rem!important}div.extendify-onboarding .mx-6{margin-left:1.5rem!important;margin-right:1.5rem!important}div.extendify-onboarding .mx-auto{margin-left:auto!important;margin-right:auto!important}div.extendify-onboarding .-mx-4{margin-left:-1rem!important;margin-right:-1rem!important}div.extendify-onboarding .my-0{margin-bottom:0!important;margin-top:0!important}div.extendify-onboarding .my-px{margin-bottom:1px!important;margin-top:1px!important}div.extendify-onboarding .mt-0{margin-top:0!important}div.extendify-onboarding .mt-2{margin-top:.5rem!important}div.extendify-onboarding .mt-4{margin-top:1rem!important}div.extendify-onboarding .mt-8{margin-top:2rem!important}div.extendify-onboarding .mt-px{margin-top:1px!important}div.extendify-onboarding .-mt-2{margin-top:-.5rem!important}div.extendify-onboarding .-mt-5{margin-top:-1.25rem!important}div.extendify-onboarding .mr-1{margin-right:.25rem!important}div.extendify-onboarding .mr-2{margin-right:.5rem!important}div.extendify-onboarding .mr-6{margin-right:1.5rem!important}div.extendify-onboarding .-mr-1{margin-right:-.25rem!important}div.extendify-onboarding .-mr-1\.5{margin-right:-.375rem!important}div.extendify-onboarding .mb-0{margin-bottom:0!important}div.extendify-onboarding .mb-1{margin-bottom:.25rem!important}div.extendify-onboarding .mb-2{margin-bottom:.5rem!important}div.extendify-onboarding .mb-3{margin-bottom:.75rem!important}div.extendify-onboarding .mb-4{margin-bottom:1rem!important}div.extendify-onboarding .mb-5{margin-bottom:1.25rem!important}div.extendify-onboarding .mb-8{margin-bottom:2rem!important}div.extendify-onboarding .mb-10{margin-bottom:2.5rem!important}div.extendify-onboarding .ml-1{margin-left:.25rem!important}div.extendify-onboarding .ml-2{margin-left:.5rem!important}div.extendify-onboarding .ml-4{margin-left:1rem!important}div.extendify-onboarding .ml-12{margin-left:3rem!important}div.extendify-onboarding .-ml-1{margin-left:-.25rem!important}div.extendify-onboarding .-ml-2{margin-left:-.5rem!important}div.extendify-onboarding .-ml-6{margin-left:-1.5rem!important}div.extendify-onboarding .-ml-px{margin-left:-1px!important}div.extendify-onboarding .-ml-1\.5{margin-left:-.375rem!important}div.extendify-onboarding .block{display:block!important}div.extendify-onboarding .inline-block{display:inline-block!important}div.extendify-onboarding .flex{display:flex!important}div.extendify-onboarding .inline-flex{display:inline-flex!important}div.extendify-onboarding .table{display:table!important}div.extendify-onboarding .grid{display:grid!important}div.extendify-onboarding .hidden{display:none!important}div.extendify-onboarding .h-0{height:0!important}div.extendify-onboarding .h-2{height:.5rem!important}div.extendify-onboarding .h-4{height:1rem!important}div.extendify-onboarding .h-8{height:2rem!important}div.extendify-onboarding .h-12{height:3rem!important}div.extendify-onboarding .h-32{height:8rem!important}div.extendify-onboarding .h-64{height:16rem!important}div.extendify-onboarding .h-auto{height:auto!important}div.extendify-onboarding .h-full{height:100%!important}div.extendify-onboarding .h-screen{height:100vh!important}div.extendify-onboarding .max-h-96{max-height:24rem!important}div.extendify-onboarding .min-h-screen{min-height:100vh!important}div.extendify-onboarding .w-0{width:0!important}div.extendify-onboarding .w-4{width:1rem!important}div.extendify-onboarding .w-6{width:1.5rem!important}div.extendify-onboarding .w-8{width:2rem!important}div.extendify-onboarding .w-10{width:2.5rem!important}div.extendify-onboarding .w-16{width:4rem!important}div.extendify-onboarding .w-20{width:5rem!important}div.extendify-onboarding .w-28{width:7rem!important}div.extendify-onboarding .w-32{width:8rem!important}div.extendify-onboarding .w-72{width:18rem!important}div.extendify-onboarding .w-80{width:20rem!important}div.extendify-onboarding .w-96{width:24rem!important}div.extendify-onboarding .w-auto{width:auto!important}div.extendify-onboarding .w-6\/12{width:50%!important}div.extendify-onboarding .w-7\/12{width:58.333333%!important}div.extendify-onboarding .w-full{width:100%!important}div.extendify-onboarding .w-screen{width:100vw!important}div.extendify-onboarding .min-w-0{min-width:0!important}div.extendify-onboarding .min-w-sm{min-width:7rem!important}div.extendify-onboarding .max-w-sm{max-width:24rem!important}div.extendify-onboarding .max-w-md{max-width:28rem!important}div.extendify-onboarding .max-w-lg{max-width:32rem!important}div.extendify-onboarding .max-w-xl{max-width:36rem!important}div.extendify-onboarding .max-w-2xl{max-width:42rem!important}div.extendify-onboarding .max-w-full{max-width:100%!important}div.extendify-onboarding .max-w-screen-4xl{max-width:1920px!important}div.extendify-onboarding .flex-1{flex:1 1 0%!important}div.extendify-onboarding .flex-shrink-0{flex-shrink:0!important}div.extendify-onboarding .flex-grow-0{flex-grow:0!important}div.extendify-onboarding .flex-grow{flex-grow:1!important}div.extendify-onboarding .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-onboarding .-translate-x-1{--tw-translate-x:-0.25rem!important}div.extendify-onboarding .translate-y-0{--tw-translate-y:0px!important}div.extendify-onboarding .translate-y-4{--tw-translate-y:1rem!important}div.extendify-onboarding .-translate-y-px{--tw-translate-y:-1px!important}div.extendify-onboarding .-translate-y-full{--tw-translate-y:-100%!important}div.extendify-onboarding .rotate-90{--tw-rotate:90deg!important}div.extendify-onboarding .cursor-pointer{cursor:pointer!important}div.extendify-onboarding .grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}div.extendify-onboarding .flex-col{flex-direction:column!important}div.extendify-onboarding .flex-wrap{flex-wrap:wrap!important}div.extendify-onboarding .items-start{align-items:flex-start!important}div.extendify-onboarding .items-end{align-items:flex-end!important}div.extendify-onboarding .items-center{align-items:center!important}div.extendify-onboarding .justify-end{justify-content:flex-end!important}div.extendify-onboarding .justify-center{justify-content:center!important}div.extendify-onboarding .justify-between{justify-content:space-between!important}div.extendify-onboarding .justify-evenly{justify-content:space-evenly!important}div.extendify-onboarding .gap-4{gap:1rem!important}div.extendify-onboarding .gap-6{gap:1.5rem!important}div.extendify-onboarding .gap-8{gap:2rem!important}div.extendify-onboarding .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-onboarding .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-onboarding .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-onboarding .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-onboarding .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-onboarding .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-onboarding .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-onboarding .space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(1rem*var(--tw-space-y-reverse))!important;margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify-onboarding .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-onboarding .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-onboarding .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-onboarding .self-start{align-self:flex-start!important}div.extendify-onboarding .overflow-hidden{overflow:hidden!important}div.extendify-onboarding .overflow-y-auto{overflow-y:auto!important}div.extendify-onboarding .overflow-x-hidden{overflow-x:hidden!important}div.extendify-onboarding .whitespace-nowrap{white-space:nowrap!important}div.extendify-onboarding .rounded-sm{border-radius:.125rem!important}div.extendify-onboarding .rounded{border-radius:.25rem!important}div.extendify-onboarding .rounded-md{border-radius:.375rem!important}div.extendify-onboarding .rounded-lg{border-radius:.5rem!important}div.extendify-onboarding .rounded-full{border-radius:9999px!important}div.extendify-onboarding .rounded-tr-sm{border-top-right-radius:.125rem!important}div.extendify-onboarding .rounded-br-sm{border-bottom-right-radius:.125rem!important}div.extendify-onboarding .border-0{border-width:0!important}div.extendify-onboarding .border-2{border-width:2px!important}div.extendify-onboarding .border-8{border-width:8px!important}div.extendify-onboarding .border{border-width:1px!important}div.extendify-onboarding .border-r{border-right-width:1px!important}div.extendify-onboarding .border-b-0{border-bottom-width:0!important}div.extendify-onboarding .border-b{border-bottom-width:1px!important}div.extendify-onboarding .border-l-8{border-left-width:8px!important}div.extendify-onboarding .border-solid{border-style:solid!important}div.extendify-onboarding .border-none{border-style:none!important}div.extendify-onboarding .border-transparent{border-color:transparent!important}div.extendify-onboarding .border-black{--tw-border-opacity:1!important;border-color:rgba(0,0,0,var(--tw-border-opacity))!important}div.extendify-onboarding .border-gray-100{--tw-border-opacity:1!important;border-color:rgba(240,240,240,var(--tw-border-opacity))!important}div.extendify-onboarding .border-gray-200{--tw-border-opacity:1!important;border-color:rgba(224,224,224,var(--tw-border-opacity))!important}div.extendify-onboarding .border-gray-600{--tw-border-opacity:1!important;border-color:rgba(148,148,148,var(--tw-border-opacity))!important}div.extendify-onboarding .border-gray-900{--tw-border-opacity:1!important;border-color:rgba(30,30,30,var(--tw-border-opacity))!important}div.extendify-onboarding .border-extendify-main{--tw-border-opacity:1!important;border-color:rgba(11,74,67,var(--tw-border-opacity))!important}div.extendify-onboarding .border-extendify-secondary{--tw-border-opacity:1!important;border-color:rgba(203,195,245,var(--tw-border-opacity))!important}div.extendify-onboarding .border-extendify-transparent-black-100{border-color:rgba(0,0,0,.07)!important}div.extendify-onboarding .border-wp-alert-red{--tw-border-opacity:1!important;border-color:rgba(204,24,24,var(--tw-border-opacity))!important}div.extendify-onboarding .focus\:border-transparent:focus{border-color:transparent!important}div.extendify-onboarding .bg-transparent{background-color:transparent!important}div.extendify-onboarding .bg-black{--tw-bg-opacity:1!important;background-color:rgba(0,0,0,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-white{--tw-bg-opacity:1!important;background-color:rgba(255,255,255,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-gray-50{--tw-bg-opacity:1!important;background-color:rgba(251,251,251,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-gray-100{--tw-bg-opacity:1!important;background-color:rgba(240,240,240,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-gray-200{--tw-bg-opacity:1!important;background-color:rgba(224,224,224,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-gray-900{--tw-bg-opacity:1!important;background-color:rgba(30,30,30,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-partner-primary-bg{background-color:var(--ext-partner-theme-primary-bg,#007cba)!important}div.extendify-onboarding .bg-extendify-main{--tw-bg-opacity:1!important;background-color:rgba(11,74,67,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-extendify-alert{--tw-bg-opacity:1!important;background-color:rgba(132,16,16,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-extendify-secondary{--tw-bg-opacity:1!important;background-color:rgba(203,195,245,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-extendify-transparent-white{background-color:hsla(0,0%,99%,.88)!important}div.extendify-onboarding .bg-wp-theme-500{background-color:var(--wp-admin-theme-color,#007cba)!important}div.extendify-onboarding .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-onboarding .hover\:bg-gray-200:hover{--tw-bg-opacity:1!important;background-color:rgba(224,224,224,var(--tw-bg-opacity))!important}div.extendify-onboarding .hover\:bg-partner-primary-bg:hover{background-color:var(--ext-partner-theme-primary-bg,#007cba)!important}div.extendify-onboarding .hover\:bg-extendify-main-dark:hover{--tw-bg-opacity:1!important;background-color:rgba(5,49,44,var(--tw-bg-opacity))!important}div.extendify-onboarding .hover\:bg-wp-theme-600:hover{background-color:var(--wp-admin-theme-color-darker-10,#006ba1)!important}div.extendify-onboarding .focus\:bg-gray-100:focus{--tw-bg-opacity:1!important;background-color:rgba(240,240,240,var(--tw-bg-opacity))!important}div.extendify-onboarding .active\:bg-gray-900:active{--tw-bg-opacity:1!important;background-color:rgba(30,30,30,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-opacity-40{--tw-bg-opacity:0.4!important}div.extendify-onboarding .bg-cover{background-size:cover!important}div.extendify-onboarding .bg-clip-padding{background-clip:padding-box!important}div.extendify-onboarding .fill-current{fill:currentColor!important}div.extendify-onboarding .stroke-current{stroke:currentColor!important}div.extendify-onboarding .p-0{padding:0!important}div.extendify-onboarding .p-1{padding:.25rem!important}div.extendify-onboarding .p-2{padding:.5rem!important}div.extendify-onboarding .p-3{padding:.75rem!important}div.extendify-onboarding .p-4{padding:1rem!important}div.extendify-onboarding .p-6{padding:1.5rem!important}div.extendify-onboarding .p-8{padding:2rem!important}div.extendify-onboarding .p-10{padding:2.5rem!important}div.extendify-onboarding .p-12{padding:3rem!important}div.extendify-onboarding .p-0\.5{padding:.125rem!important}div.extendify-onboarding .p-1\.5{padding:.375rem!important}div.extendify-onboarding .p-3\.5{padding:.875rem!important}div.extendify-onboarding .px-0{padding-left:0!important;padding-right:0!important}div.extendify-onboarding .px-1{padding-left:.25rem!important;padding-right:.25rem!important}div.extendify-onboarding .px-2{padding-left:.5rem!important;padding-right:.5rem!important}div.extendify-onboarding .px-3{padding-left:.75rem!important;padding-right:.75rem!important}div.extendify-onboarding .px-4{padding-left:1rem!important;padding-right:1rem!important}div.extendify-onboarding .px-5{padding-left:1.25rem!important;padding-right:1.25rem!important}div.extendify-onboarding .px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}div.extendify-onboarding .px-8{padding-left:2rem!important;padding-right:2rem!important}div.extendify-onboarding .px-10{padding-left:2.5rem!important;padding-right:2.5rem!important}div.extendify-onboarding .px-0\.5{padding-left:.125rem!important;padding-right:.125rem!important}div.extendify-onboarding .px-2\.5{padding-left:.625rem!important;padding-right:.625rem!important}div.extendify-onboarding .py-0{padding-bottom:0!important;padding-top:0!important}div.extendify-onboarding .py-1{padding-bottom:.25rem!important;padding-top:.25rem!important}div.extendify-onboarding .py-2{padding-bottom:.5rem!important;padding-top:.5rem!important}div.extendify-onboarding .py-3{padding-bottom:.75rem!important;padding-top:.75rem!important}div.extendify-onboarding .py-4{padding-bottom:1rem!important;padding-top:1rem!important}div.extendify-onboarding .py-6{padding-bottom:1.5rem!important;padding-top:1.5rem!important}div.extendify-onboarding .py-12{padding-bottom:3rem!important;padding-top:3rem!important}div.extendify-onboarding .py-2\.5{padding-bottom:.625rem!important;padding-top:.625rem!important}div.extendify-onboarding .pt-0{padding-top:0!important}div.extendify-onboarding .pt-2{padding-top:.5rem!important}div.extendify-onboarding .pt-4{padding-top:1rem!important}div.extendify-onboarding .pt-6{padding-top:1.5rem!important}div.extendify-onboarding .pt-px{padding-top:1px!important}div.extendify-onboarding .pt-0\.5{padding-top:.125rem!important}div.extendify-onboarding .pr-3{padding-right:.75rem!important}div.extendify-onboarding .pr-8{padding-right:2rem!important}div.extendify-onboarding .pb-2{padding-bottom:.5rem!important}div.extendify-onboarding .pb-8{padding-bottom:2rem!important}div.extendify-onboarding .pb-20{padding-bottom:5rem!important}div.extendify-onboarding .pb-36{padding-bottom:9rem!important}div.extendify-onboarding .pb-40{padding-bottom:10rem!important}div.extendify-onboarding .pl-0{padding-left:0!important}div.extendify-onboarding .pl-2{padding-left:.5rem!important}div.extendify-onboarding .pl-6{padding-left:1.5rem!important}div.extendify-onboarding .text-left{text-align:left!important}div.extendify-onboarding .text-center{text-align:center!important}div.extendify-onboarding .text-xs{font-size:.75rem!important;line-height:1rem!important}div.extendify-onboarding .text-sm{font-size:.875rem!important;line-height:1.25rem!important}div.extendify-onboarding .text-base{font-size:1rem!important;line-height:1.5rem!important}div.extendify-onboarding .text-lg{font-size:1.125rem!important;line-height:1.75rem!important}div.extendify-onboarding .text-xl{font-size:1.25rem!important;line-height:1.75rem!important}div.extendify-onboarding .text-3xl{font-size:2rem!important;line-height:2.5rem!important}div.extendify-onboarding .text-4xl{font-size:2.25rem!important;line-height:2.5rem!important}div.extendify-onboarding .text-xss{font-size:11px!important}div.extendify-onboarding .font-light{font-weight:300!important}div.extendify-onboarding .font-normal{font-weight:400!important}div.extendify-onboarding .font-medium{font-weight:500!important}div.extendify-onboarding .font-semibold{font-weight:600!important}div.extendify-onboarding .font-bold{font-weight:700!important}div.extendify-onboarding .uppercase{text-transform:uppercase!important}div.extendify-onboarding .italic{font-style:italic!important}div.extendify-onboarding .leading-none{line-height:1!important}div.extendify-onboarding .tracking-tight{letter-spacing:-.025em!important}div.extendify-onboarding .text-black{--tw-text-opacity:1!important;color:rgba(0,0,0,var(--tw-text-opacity))!important}div.extendify-onboarding .text-white{--tw-text-opacity:1!important;color:rgba(255,255,255,var(--tw-text-opacity))!important}div.extendify-onboarding .text-gray-50{--tw-text-opacity:1!important;color:rgba(251,251,251,var(--tw-text-opacity))!important}div.extendify-onboarding .text-gray-500{--tw-text-opacity:1!important;color:rgba(204,204,204,var(--tw-text-opacity))!important}div.extendify-onboarding .text-gray-700{--tw-text-opacity:1!important;color:rgba(117,117,117,var(--tw-text-opacity))!important}div.extendify-onboarding .text-gray-800{--tw-text-opacity:1!important;color:rgba(31,41,55,var(--tw-text-opacity))!important}div.extendify-onboarding .text-gray-900{--tw-text-opacity:1!important;color:rgba(30,30,30,var(--tw-text-opacity))!important}div.extendify-onboarding .text-green-500{--tw-text-opacity:1!important;color:rgba(16,185,129,var(--tw-text-opacity))!important}div.extendify-onboarding .text-partner-primary-text{color:var(--ext-partner-theme-primary-text,#fff)!important}div.extendify-onboarding .text-partner-primary-bg{color:var(--ext-partner-theme-primary-bg,#007cba)!important}div.extendify-onboarding .text-extendify-main{--tw-text-opacity:1!important;color:rgba(11,74,67,var(--tw-text-opacity))!important}div.extendify-onboarding .text-extendify-gray{--tw-text-opacity:1!important;color:rgba(95,95,95,var(--tw-text-opacity))!important}div.extendify-onboarding .text-extendify-black{--tw-text-opacity:1!important;color:rgba(30,30,30,var(--tw-text-opacity))!important}div.extendify-onboarding .text-wp-theme-500{color:var(--wp-admin-theme-color,#007cba)!important}div.extendify-onboarding .text-wp-alert-red{--tw-text-opacity:1!important;color:rgba(204,24,24,var(--tw-text-opacity))!important}div.extendify-onboarding .group:hover .group-hover\:text-gray-50{--tw-text-opacity:1!important;color:rgba(251,251,251,var(--tw-text-opacity))!important}div.extendify-onboarding .hover\:text-white:hover{--tw-text-opacity:1!important;color:rgba(255,255,255,var(--tw-text-opacity))!important}div.extendify-onboarding .hover\:text-partner-primary-text:hover{color:var(--ext-partner-theme-primary-text,#fff)!important}div.extendify-onboarding .hover\:text-partner-primary-bg:hover{color:var(--ext-partner-theme-primary-bg,#007cba)!important}div.extendify-onboarding .hover\:text-wp-theme-500:hover{color:var(--wp-admin-theme-color,#007cba)!important}div.extendify-onboarding .focus\:text-white:focus{--tw-text-opacity:1!important;color:rgba(255,255,255,var(--tw-text-opacity))!important}div.extendify-onboarding .focus\:text-blue-500:focus{--tw-text-opacity:1!important;color:rgba(59,130,246,var(--tw-text-opacity))!important}div.extendify-onboarding .underline{text-decoration:underline!important}div.extendify-onboarding .no-underline{text-decoration:none!important}div.extendify-onboarding .hover\:underline:hover{text-decoration:underline!important}div.extendify-onboarding .hover\:no-underline:hover{text-decoration:none!important}div.extendify-onboarding .opacity-0{opacity:0!important}div.extendify-onboarding .opacity-30{opacity:.3!important}div.extendify-onboarding .opacity-50{opacity:.5!important}div.extendify-onboarding .opacity-70{opacity:.7!important}div.extendify-onboarding .opacity-75{opacity:.75!important}div.extendify-onboarding .focus\:opacity-100:focus,div.extendify-onboarding .group:focus .group-focus\:opacity-100,div.extendify-onboarding .group:hover .group-hover\:opacity-100,div.extendify-onboarding .hover\:opacity-100:hover,div.extendify-onboarding .opacity-100{opacity:1!important}div.extendify-onboarding .shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05)!important}div.extendify-onboarding .shadow-md,div.extendify-onboarding .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-onboarding .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-onboarding .shadow-2xl{--tw-shadow:0 25px 50px -12px rgba(0,0,0,.25)!important}div.extendify-onboarding .shadow-2xl,div.extendify-onboarding .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-onboarding .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-onboarding .focus\:shadow-none: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}div.extendify-onboarding .focus\:outline-none:focus,div.extendify-onboarding .outline-none{outline:2px solid transparent!important;outline-offset:2px!important}div.extendify-onboarding .focus\:ring-wp:focus,div.extendify-onboarding .ring-wp{--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, 2px) + 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-onboarding .ring-partner-primary-bg{--tw-ring-color:var(--ext-partner-theme-primary-bg,#007cba)!important}div.extendify-onboarding .ring-offset-2{--tw-ring-offset-width:2px!important}div.extendify-onboarding .ring-offset-white{--tw-ring-offset-color:#fff!important}div.extendify-onboarding .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-onboarding .blur{--tw-blur:blur(8px)!important}div.extendify-onboarding .invert{--tw-invert:invert(100%)!important}div.extendify-onboarding .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-onboarding .backdrop-blur-xl{--tw-backdrop-blur:blur(24px)!important}div.extendify-onboarding .backdrop-saturate-200{--tw-backdrop-saturate:saturate(2)!important}div.extendify-onboarding .transition-all{transition-duration:.15s!important;transition-property:all!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}div.extendify-onboarding .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-onboarding .transition-opacity{transition-duration:.15s!important;transition-property:opacity!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}div.extendify-onboarding .delay-200{transition-delay:.2s!important}div.extendify-onboarding .duration-100{transition-duration:.1s!important}div.extendify-onboarding .duration-200{transition-duration:.2s!important}div.extendify-onboarding .duration-300{transition-duration:.3s!important}div.extendify-onboarding .ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)!important}div.extendify-onboarding .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.extendify-onboarding{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/)!important;--tw-ring-offset-width:0px!important;--tw-ring-offset-color:transparent!important;--tw-ring-color:var(--ext-partner-theme-primary-bg,#007cba)!important}.extendify-onboarding *,.extendify-onboarding :after,.extendify-onboarding :before{border:0 solid #e5e7eb!important;box-sizing:border-box!important}.extendify-onboarding{-webkit-font-smoothing:antialiased!important}.extendify-onboarding .search-panel .icon-search{position:absolute!important;right:16px!important}.extendify-onboarding .button-focus{background-color:transparent!important;border-radius:.5rem!important;cursor:pointer!important;font-size:1rem!important;line-height:1.5rem!important;text-align:center!important;text-decoration:none!important}.extendify-onboarding .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-onboarding .button-focus{outline:2px solid transparent!important;outline-offset:2px!important}.extendify-onboarding .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, 2px) + 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}.extendify-onboarding .button-focus{--tw-ring-color:var(--ext-partner-theme-primary-bg,#007cba)!important;--tw-ring-offset-width:2px!important;--tw-ring-offset-color:#fff!important}.extendify-onboarding .input-focus{border-radius:.5rem!important;font-size:1rem!important;line-height:1.5rem!important}.extendify-onboarding .input-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-onboarding .input-focus{outline:2px solid transparent!important;outline-offset:2px!important}.extendify-onboarding .input-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, 2px) + 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}.extendify-onboarding .input-focus{--tw-ring-color:var(--ext-partner-theme-primary-bg,#007cba)!important;--tw-ring-offset-width:2px!important;--tw-ring-offset-color:#fff!important}.extendify-onboarding .button-card{border-width:1px!important;display:block!important;flex:1 1 0%!important;margin:0!important;overflow:hidden!important;padding:1rem!important}.extendify-onboarding .preview-container .block-editor-block-preview__content{max-height:none!important}.extendify-onboarding .spin{-webkit-animation:extendify-loading-spinner 2.5s linear infinite;animation:extendify-loading-spinner 2.5s linear infinite}@-webkit-keyframes extendify-loading-spinner{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes extendify-loading-spinner{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.extendify-onboarding .components-checkbox-control__input[type=checkbox]{--tw-border-opacity:1!important;border-color:rgba(30,30,30,var(--tw-border-opacity))!important;border-width:1px!important}.extendify-onboarding .components-checkbox-control__input[type=checkbox]: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, 2px) + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;--tw-ring-color:var(--ext-partner-theme-primary-bg,#007cba)!important;--tw-ring-offset-width:2px!important;--tw-ring-offset-color:#fff!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important;outline:2px solid transparent!important;outline-offset:2px!important}.extendify-onboarding .components-checkbox-control__input[type=checkbox]:checked{background-color:var(--ext-partner-theme-primary-bg,#007cba)!important}.extendify-onboarding .goal-select .components-base-control__field{margin-bottom:0!important}@media (min-width:480px){div.extendify-onboarding .xs\:inline{display:inline!important}div.extendify-onboarding .xs\:h-9{height:2.25rem!important}div.extendify-onboarding .xs\:pr-3{padding-right:.75rem!important}div.extendify-onboarding .xs\:pl-2{padding-left:.5rem!important}}@media (min-width:600px){div.extendify-onboarding .sm\:mx-0{margin-left:0!important;margin-right:0!important}div.extendify-onboarding .sm\:mt-0{margin-top:0!important}div.extendify-onboarding .sm\:mb-8{margin-bottom:2rem!important}div.extendify-onboarding .sm\:ml-2{margin-left:.5rem!important}div.extendify-onboarding .sm\:block{display:block!important}div.extendify-onboarding .sm\:flex{display:flex!important}div.extendify-onboarding .sm\:h-auto{height:auto!important}div.extendify-onboarding .sm\:w-72{width:18rem!important}div.extendify-onboarding .sm\:w-auto{width:auto!important}div.extendify-onboarding .sm\:translate-y-5{--tw-translate-y:1.25rem!important}div.extendify-onboarding .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-onboarding .sm\:p-0{padding:0!important}div.extendify-onboarding .sm\:py-0{padding-bottom:0!important;padding-top:0!important}div.extendify-onboarding .sm\:pt-0{padding-top:0!important}div.extendify-onboarding .sm\:pt-5{padding-top:1.25rem!important}}@media (min-width:782px){div.extendify-onboarding .md\:m-0{margin:0!important}div.extendify-onboarding .md\:-ml-8{margin-left:-2rem!important}div.extendify-onboarding .md\:block{display:block!important}div.extendify-onboarding .md\:flex{display:flex!important}div.extendify-onboarding .md\:hidden{display:none!important}div.extendify-onboarding .md\:h-screen{height:100vh!important}div.extendify-onboarding .md\:w-40vw{width:40vw!important}div.extendify-onboarding .md\:max-w-md{max-width:28rem!important}div.extendify-onboarding .md\:max-w-2xl{max-width:42rem!important}div.extendify-onboarding .md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}div.extendify-onboarding .md\:flex-row{flex-direction:row!important}div.extendify-onboarding .md\:gap-8{gap:2rem!important}div.extendify-onboarding .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-onboarding .md\:overflow-hidden{overflow:hidden!important}div.extendify-onboarding .md\:overflow-y-scroll{overflow-y:scroll!important}div.extendify-onboarding .md\:p-8{padding:2rem!important}div.extendify-onboarding .md\:px-8{padding-left:2rem!important;padding-right:2rem!important}div.extendify-onboarding .md\:pl-8{padding-left:2rem!important}}@media (min-width:1080px){div.extendify-onboarding .lg\:absolute{position:absolute!important}div.extendify-onboarding .lg\:-mr-1{margin-right:-.25rem!important}div.extendify-onboarding .lg\:block{display:block!important}div.extendify-onboarding .lg\:flex{display:flex!important}div.extendify-onboarding .lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}div.extendify-onboarding .lg\:space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(2rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(2rem*var(--tw-space-x-reverse))!important}div.extendify-onboarding .lg\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(0px*var(--tw-space-y-reverse))!important;margin-top:calc(0px*(1 - var(--tw-space-y-reverse)))!important}div.extendify-onboarding .lg\:overflow-hidden{overflow:hidden!important}div.extendify-onboarding .lg\:p-16{padding:4rem!important}div.extendify-onboarding .lg\:px-12{padding-left:3rem!important;padding-right:3rem!important}}
|
extendify-sdk/public/build/extendify-onboarding.js
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
1 |
+
/*! For license information please see extendify-onboarding.js.LICENSE.txt */
|
2 |
+
(()=>{var e={7135:(e,t,r)=>{e.exports=r(6248)},4206:(e,t,r)=>{e.exports=r(8057)},4387:(e,t,r)=>{"use strict";var n=r(7485),o=r(4570),i=r(2940),a=r(581),s=r(574),u=r(3845),c=r(8338),l=r(4832),f=r(7354),d=r(8870),h=r(4906);e.exports=function(e){return new Promise((function(t,r){var p,y=e.data,v=e.headers,m=e.responseType;function g(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}n.isFormData(y)&&n.isStandardBrowserEnv()&&delete v["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var w=e.auth.username||"",x=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";v.Authorization="Basic "+btoa(w+":"+x)}var j=s(e.baseURL,e.url);function O(){if(b){var n="getAllResponseHeaders"in b?u(b.getAllResponseHeaders()):null,i={data:m&&"text"!==m&&"json"!==m?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:n,config:e,request:b};o((function(e){t(e),g()}),(function(e){r(e),g()}),i),b=null}}if(b.open(e.method.toUpperCase(),a(j,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=O:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(O)},b.onabort=function(){b&&(r(new f("Request aborted",f.ECONNABORTED,e,b)),b=null)},b.onerror=function(){r(new f("Network Error",f.ERR_NETWORK,e,b,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||l;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new f(t,n.clarifyTimeoutError?f.ETIMEDOUT:f.ECONNABORTED,e,b)),b=null},n.isStandardBrowserEnv()){var E=(e.withCredentials||c(j))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;E&&(v[e.xsrfHeaderName]=E)}"setRequestHeader"in b&&n.forEach(v,(function(e,t){void 0===y&&"content-type"===t.toLowerCase()?delete v[t]:b.setRequestHeader(t,e)})),n.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),m&&"json"!==m&&(b.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){b&&(r(!e||e&&e.type?new d:e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),y||(y=null);var S=h(j);S&&-1===["http","https","file"].indexOf(S)?r(new f("Unsupported protocol "+S+":",f.ERR_BAD_REQUEST,e)):b.send(y)}))}},8057:(e,t,r)=>{"use strict";var n=r(7485),o=r(875),i=r(5029),a=r(4941);var s=function e(t){var r=new i(t),s=o(i.prototype.request,r);return n.extend(s,i.prototype,r),n.extend(s,r),s.create=function(r){return e(a(t,r))},s}(r(8396));s.Axios=i,s.CanceledError=r(8870),s.CancelToken=r(4603),s.isCancel=r(1475),s.VERSION=r(3345).version,s.toFormData=r(1020),s.AxiosError=r(7354),s.Cancel=s.CanceledError,s.all=function(e){return Promise.all(e)},s.spread=r(5739),s.isAxiosError=r(5835),e.exports=s,e.exports.default=s},4603:(e,t,r)=>{"use strict";var n=r(8870);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 r=this;this.promise.then((function(e){if(r._listeners){var t,n=r._listeners.length;for(t=0;t<n;t++)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e){r.reason||(r.reason=new n(e),t(r.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},8870:(e,t,r)=>{"use strict";var n=r(7354);function o(e){n.call(this,null==e?"canceled":e,n.ERR_CANCELED),this.name="CanceledError"}r(7485).inherits(o,n,{__CANCEL__:!0}),e.exports=o},1475:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},5029:(e,t,r)=>{"use strict";var n=r(7485),o=r(581),i=r(8096),a=r(5009),s=r(4941),u=r(574),c=r(6144),l=c.validators;function f(e){this.defaults=e,this.interceptors={request:new i,response:new i}}f.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 r=t.transitional;void 0!==r&&c.assertOptions(r,{silentJSONParsing:l.transitional(l.boolean),forcedJSONParsing:l.transitional(l.boolean),clarifyTimeoutError:l.transitional(l.boolean)},!1);var n=[],o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var i,u=[];if(this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)})),!o){var f=[a,void 0];for(Array.prototype.unshift.apply(f,n),f=f.concat(u),i=Promise.resolve(t);f.length;)i=i.then(f.shift(),f.shift());return i}for(var d=t;n.length;){var h=n.shift(),p=n.shift();try{d=h(d)}catch(e){p(e);break}}try{i=a(d)}catch(e){return Promise.reject(e)}for(;u.length;)i=i.then(u.shift(),u.shift());return i},f.prototype.getUri=function(e){e=s(this.defaults,e);var t=u(e.baseURL,e.url);return o(t,e.params,e.paramsSerializer)},n.forEach(["delete","get","head","options"],(function(e){f.prototype[e]=function(t,r){return this.request(s(r||{},{method:e,url:t,data:(r||{}).data}))}})),n.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){return this.request(s(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}f.prototype[e]=t(),f.prototype[e+"Form"]=t(!0)})),e.exports=f},7354:(e,t,r)=>{"use strict";var n=r(7485);function o(e,t,r,n,o){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}n.inherits(o,Error,{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}}});var i=o.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){a[e]={value:e}})),Object.defineProperties(o,a),Object.defineProperty(i,"isAxiosError",{value:!0}),o.from=function(e,t,r,a,s,u){var c=Object.create(i);return n.toFlatObject(e,c,(function(e){return e!==Error.prototype})),o.call(c,e.message,t,r,a,s),c.name=e.name,u&&Object.assign(c,u),c},e.exports=o},8096:(e,t,r)=>{"use strict";var n=r(7485);function o(){this.handlers=[]}o.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){n.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},574:(e,t,r)=>{"use strict";var n=r(2642),o=r(2288);e.exports=function(e,t){return e&&!n(t)?o(e,t):t}},5009:(e,t,r)=>{"use strict";var n=r(7485),o=r(9212),i=r(1475),a=r(8396),s=r(8870);function u(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s}e.exports=function(e){return u(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return u(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(u(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},4941:(e,t,r)=>{"use strict";var n=r(7485);e.exports=function(e,t){t=t||{};var r={};function o(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function i(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:o(void 0,e[r]):o(e[r],t[r])}function a(e){if(!n.isUndefined(t[e]))return o(void 0,t[e])}function s(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:o(void 0,e[r]):o(void 0,t[r])}function u(r){return r in t?o(e[r],t[r]):r in e?o(void 0,e[r]):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,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u};return n.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||i,o=t(e);n.isUndefined(o)&&t!==u||(r[e]=o)})),r}},4570:(e,t,r)=>{"use strict";var n=r(7354);e.exports=function(e,t,r){var o=r.config.validateStatus;r.status&&o&&!o(r.status)?t(new n("Request failed with status code "+r.status,[n.ERR_BAD_REQUEST,n.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}},9212:(e,t,r)=>{"use strict";var n=r(7485),o=r(8396);e.exports=function(e,t,r){var i=this||o;return n.forEach(r,(function(r){e=r.call(i,e,t)})),e}},8396:(e,t,r)=>{"use strict";var n=r(7061),o=r(7485),i=r(1446),a=r(7354),s=r(4832),u=r(1020),c={"Content-Type":"application/x-www-form-urlencoded"};function l(e,t){!o.isUndefined(e)&&o.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var f,d={transitional:s,adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==n&&"[object process]"===Object.prototype.toString.call(n))&&(f=r(4387)),f),transformRequest:[function(e,t){if(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))return e;if(o.isArrayBufferView(e))return e.buffer;if(o.isURLSearchParams(e))return l(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var r,n=o.isObject(e),a=t&&t["Content-Type"];if((r=o.isFileList(e))||n&&"multipart/form-data"===a){var s=this.env&&this.env.FormData;return u(r?{"files[]":e}:e,s&&new s)}return n||"application/json"===a?(l(t,"application/json"),function(e,t,r){if(o.isString(e))try{return(t||JSON.parse)(e),o.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||d.transitional,r=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,i=!r&&"json"===this.responseType;if(i||n&&o.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw a.from(e,a.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:r(8750)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],(function(e){d.headers[e]={}})),o.forEach(["post","put","patch"],(function(e){d.headers[e]=o.merge(c)})),e.exports=d},4832:e=>{"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},3345:e=>{e.exports={version:"0.27.2"}},875:e=>{"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}}},581:(e,t,r)=>{"use strict";var n=r(7485);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,r){if(!t)return e;var i;if(r)i=r(t);else if(n.isURLSearchParams(t))i=t.toString();else{var a=[];n.forEach(t,(function(e,t){null!=e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,(function(e){n.isDate(e)?e=e.toISOString():n.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}},2288:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},2940:(e,t,r)=>{"use strict";var n=r(7485);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,r,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),n.isString(o)&&s.push("path="+o),n.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(){}}},2642:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},5835:(e,t,r)=>{"use strict";var n=r(7485);e.exports=function(e){return n.isObject(e)&&!0===e.isAxiosError}},8338:(e,t,r)=>{"use strict";var n=r(7485);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function o(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=o(window.location.href),function(t){var r=n.isString(t)?o(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},1446:(e,t,r)=>{"use strict";var n=r(7485);e.exports=function(e,t){n.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))}},8750:e=>{e.exports=null},3845:(e,t,r)=>{"use strict";var n=r(7485),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,r,i,a={};return e?(n.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=n.trim(e.substr(0,i)).toLowerCase(),r=n.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([r]):a[t]?a[t]+", "+r:r}})),a):a}},4906:e=>{"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},5739:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},1020:(e,t,r)=>{"use strict";var n=r(816).Buffer,o=r(7485);e.exports=function(e,t){t=t||new FormData;var r=[];function i(e){return null===e?"":o.isDate(e)?e.toISOString():o.isArrayBuffer(e)||o.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):n.from(e):e}return function e(n,a){if(o.isPlainObject(n)||o.isArray(n)){if(-1!==r.indexOf(n))throw Error("Circular reference detected in "+a);r.push(n),o.forEach(n,(function(r,n){if(!o.isUndefined(r)){var s,u=a?a+"."+n:n;if(r&&!a&&"object"==typeof r)if(o.endsWith(n,"{}"))r=JSON.stringify(r);else if(o.endsWith(n,"[]")&&(s=o.toArray(r)))return void s.forEach((function(e){!o.isUndefined(e)&&t.append(u,i(e))}));e(r,u)}})),r.pop()}else t.append(a,i(n))}(e),t}},6144:(e,t,r)=>{"use strict";var n=r(3345).version,o=r(7354),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var a={};i.transitional=function(e,t,r){function i(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,n,s){if(!1===e)throw new o(i(n," has been removed"+(t?" in "+t:"")),o.ERR_DEPRECATED);return t&&!a[n]&&(a[n]=!0,console.warn(i(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,s)}},e.exports={assertOptions:function(e,t,r){if("object"!=typeof e)throw new o("options must be an object",o.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(e),i=n.length;i-- >0;){var a=n[i],s=t[a];if(s){var u=e[a],c=void 0===u||s(u,a,e);if(!0!==c)throw new o("option "+a+" must be "+c,o.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new o("Unknown option "+a,o.ERR_BAD_OPTION)}},validators:i}},7485:(e,t,r)=>{"use strict";var n,o=r(875),i=Object.prototype.toString,a=(n=Object.create(null),function(e){var t=i.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())});function s(e){return e=e.toLowerCase(),function(t){return a(t)===e}}function u(e){return Array.isArray(e)}function c(e){return void 0===e}var l=s("ArrayBuffer");function f(e){return null!==e&&"object"==typeof e}function d(e){if("object"!==a(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var h=s("Date"),p=s("File"),y=s("Blob"),v=s("FileList");function m(e){return"[object Function]"===i.call(e)}var g=s("URLSearchParams");function b(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),u(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}var w,x=(w="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return w&&e instanceof w});e.exports={isArray:u,isArrayBuffer:l,isBuffer:function(e){return null!==e&&!c(e)&&null!==e.constructor&&!c(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||i.call(e)===t||m(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&l(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:f,isPlainObject:d,isUndefined:c,isDate:h,isFile:p,isBlob:y,isFunction:m,isStream:function(e){return f(e)&&m(e.pipe)},isURLSearchParams:g,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:b,merge:function e(){var t={};function r(r,n){d(t[n])&&d(r)?t[n]=e(t[n],r):d(r)?t[n]=e({},r):u(r)?t[n]=r.slice():t[n]=r}for(var n=0,o=arguments.length;n<o;n++)b(arguments[n],r);return t},extend:function(e,t,r){return b(t,(function(t,n){e[n]=r&&"function"==typeof t?o(t,r):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},inherits:function(e,t,r,n){e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,r&&Object.assign(e.prototype,r)},toFlatObject:function(e,t,r){var n,o,i,a={};t=t||{};do{for(o=(n=Object.getOwnPropertyNames(e)).length;o-- >0;)a[i=n[o]]||(t[i]=e[i],a[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:s,endsWith:function(e,t,r){e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;var n=e.indexOf(t,r);return-1!==n&&n===r},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var r=new Array(t);t-- >0;)r[t]=e[t];return r},isTypedArray:x,isFileList:v}},4782:(e,t)=>{"use strict";t.byteLength=function(e){var t=u(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,i=u(e),a=i[0],s=i[1],c=new o(function(e,t,r){return 3*(t+r)/4-r}(0,a,s)),l=0,f=s>0?a-4:a;for(r=0;r<f;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[l++]=255&t);1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t);return c},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=16383,s=0,u=n-o;s<u;s+=a)i.push(c(e,s,s+a>u?u:s+a));1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=i.length;a<s;++a)r[a]=i[a],n[i.charCodeAt(a)]=a;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,n){for(var o,i,a=[],s=t;s<n;s+=3)o=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},816:(e,t,r)=>{"use strict";var n=r(4782),o=r(8898),i=r(5182);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,r){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return c(this,e,t,r)}function c(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n);u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=d(e,t);return e}(e,t,r,n):"string"==typeof t?function(e,t,r){"string"==typeof r&&""!==r||(r="utf8");if(!u.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|p(t,r),o=(e=s(e,n)).write(t,r);o!==n&&(e=e.slice(0,o));return e}(e,t,r):function(e,t){if(u.isBuffer(t)){var r=0|h(t.length);return 0===(e=s(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?s(e,0):d(e,t);if("Buffer"===t.type&&i(t.data))return d(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(l(t),e=s(e,t<0?0:0|h(t)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function d(e,t){var r=t.length<0?0:0|h(t.length);e=s(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function h(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return V(e).length;default:if(n)return H(e).length;t=(""+t).toLowerCase(),n=!0}}function y(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return A(this,t,r);case"utf8":case"utf-8":return _(this,t,r);case"ascii":return C(this,t,r);case"latin1":case"binary":return N(this,t,r);case"base64":return S(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function v(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function m(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:g(e,t,r,n,o);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):g(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function g(e,t,r,n,o){var i,a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var l=-1;for(i=r;i<s;i++)if(c(e,i)===c(t,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===u)return l*a}else-1!==l&&(i-=i-l),l=-1}else for(r+u>s&&(r=s-u),i=r;i>=0;i--){for(var f=!0,d=0;d<u;d++)if(c(e,i+d)!==c(t,d)){f=!1;break}if(f)return i}return-1}function b(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[r+a]=s}return a}function w(e,t,r,n){return Y(H(t,e.length-r),e,r,n)}function x(e,t,r,n){return Y(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function j(e,t,r,n){return x(e,t,r,n)}function O(e,t,r,n){return Y(V(t),e,r,n)}function E(e,t,r,n){return Y(function(e,t){for(var r,n,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=(r=e.charCodeAt(a))>>8,o=r%256,i.push(o),i.push(n);return i}(t,e.length-r),e,r,n)}function S(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function _(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var i,a,s,u,c=e[o],l=null,f=c>239?4:c>223?3:c>191?2:1;if(o+f<=r)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(i=e[o+1]))&&(u=(31&c)<<6|63&i)>127&&(l=u);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(u=(15&c)<<12|(63&i)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),o+=f}return function(e){var t=e.length;if(t<=P)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=P));return r}(n)}t.Buffer=u,t.SlowBuffer=function(e){+e!=e&&(e=0);return u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==r.g.TYPED_ARRAY_SUPPORT?r.g.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,r){return c(null,e,t,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,r){return function(e,t,r,n){return l(t),t<=0?s(e,t):void 0!==r?"string"==typeof n?s(e,t).fill(r,n):s(e,t).fill(r):s(e,t)}(null,e,t,r)},u.allocUnsafe=function(e){return f(null,e)},u.allocUnsafeSlow=function(e){return f(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,o=0,i=Math.min(r,n);o<i;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=u.allocUnsafe(t),o=0;for(r=0;r<e.length;++r){var a=e[r];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,o),o+=a.length}return n},u.byteLength=p,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?_(this,0,e):y.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,r,n,o){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(i,a),c=this.slice(n,o),l=e.slice(t,r),f=0;f<s;++f)if(c[f]!==l[f]){i=c[f],a=l[f];break}return i<a?-1:a<i?1:0},u.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},u.prototype.indexOf=function(e,t,r){return m(this,e,t,r,!0)},u.prototype.lastIndexOf=function(e,t,r){return m(this,e,t,r,!1)},u.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return b(this,e,t,r);case"utf8":case"utf-8":return w(this,e,t,r);case"ascii":return x(this,e,t,r);case"latin1":case"binary":return j(this,e,t,r);case"base64":return O(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var P=4096;function C(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}function N(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function A(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=t;i<r;++i)o+=F(e[i]);return o}function T(e,t,r){for(var n=e.slice(t,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function R(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function k(e,t,r,n,o,i){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function L(e,t,r,n){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-r,2);o<i;++o)e[r+o]=(t&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function I(e,t,r,n){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-r,4);o<i;++o)e[r+o]=t>>>8*(n?o:3-o)&255}function D(e,t,r,n,o,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function M(e,t,r,n,i){return i||D(e,0,r,4),o.write(e,t,r,n,23,4),r+4}function B(e,t,r,n,i){return i||D(e,0,r,8),o.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=u.prototype;else{var o=t-e;r=new u(o,void 0);for(var i=0;i<o;++i)r[i]=this[i+e]}return r},u.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||R(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n},u.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||R(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},u.prototype.readUInt8=function(e,t){return t||R(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||R(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||R(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||R(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||R(e,t,this.length);for(var n=t,o=1,i=this[e+--n];n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},u.prototype.readInt8=function(e,t){return t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||R(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){t||R(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||R(e,4,this.length),o.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||R(e,4,this.length),o.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||R(e,8,this.length),o.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||R(e,8,this.length),o.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||k(this,e,t,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[t]=255&e;++i<r&&(o*=256);)this[t+i]=e/o&255;return t+r},u.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||k(this,e,t,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+r},u.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):L(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):L(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):I(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);k(this,e,t,r,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<r&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);k(this,e,t,r,o-1,-o)}var i=r-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):L(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):L(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):I(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return M(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return M(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return B(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return B(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var o,i=n-r;if(this===e&&r<t&&t<n)for(o=i-1;o>=0;--o)e[o+t]=this[o+r];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+i),t);return i},u.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var a=u.isBuffer(e)?e:H(new u(e,n).toString()),s=a.length;for(i=0;i<r-t;++i)this[i+t]=a[i%s]}return this};var U=/[^+\/0-9A-Za-z-_]/g;function F(e){return e<16?"0"+e.toString(16):e.toString(16)}function H(e,t){var r;t=t||1/0;for(var n=e.length,o=null,i=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function V(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Y(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}},42:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var a=o.apply(null,r);a&&e.push(a)}}else if("object"===i)if(r.toString===Object.prototype.toString)for(var s in r)n.call(r,s)&&r[s]&&e.push(s);else e.push(r.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},8898:(e,t)=>{t.read=function(e,t,r,n,o){var i,a,s=8*o-n-1,u=(1<<s)-1,c=u>>1,l=-7,f=r?o-1:0,d=r?-1:1,h=e[t+f];for(f+=d,i=h&(1<<-l)-1,h>>=-l,l+=s;l>0;i=256*i+e[t+f],f+=d,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=n;l>0;a=256*a+e[t+f],f+=d,l-=8);if(0===i)i=1-c;else{if(i===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),i-=c}return(h?-1:1)*a*Math.pow(2,i-n)},t.write=function(e,t,r,n,o,i){var a,s,u,c=8*i-o-1,l=(1<<c)-1,f=l>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:i-1,p=n?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?d/u:d*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*u-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[r+h]=255&s,h+=p,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;e[r+h]=255&a,h+=p,a/=256,c-=8);e[r+h-p]|=128*y}},5182:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},2525:e=>{"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=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={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,s,u=o(e),c=1;c<arguments.length;c++){for(var l in a=Object(arguments[c]))r.call(a,l)&&(u[l]=a[l]);if(t){s=t(a);for(var f=0;f<s.length;f++)n.call(a,s[f])&&(u[s[f]]=a[s[f]])}}return u}},7061:e=>{var t,r,n=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(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var s,u=[],c=!1,l=-1;function f(){c&&s&&(c=!1,s.length?u=s.concat(u):l=-1,u.length&&d())}function d(){if(!c){var e=a(f);c=!0;for(var t=u.length;t;){for(s=u,u=[];++l<t;)s&&s[l].run();l=-1,t=u.length}s=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function p(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new h(e,t)),1!==u.length||c||a(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=p,n.addListener=p,n.once=p,n.off=p,n.removeListener=p,n.removeAllListeners=p,n.emit=p,n.prependListener=p,n.prependOnceListener=p,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},1426:(e,t,r)=>{"use strict";r(2525);var n=r(7363),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=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var n,i={},c=null,l=null;for(n in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(l=t.ref),t)s.call(t,n)&&!u.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:o,type:e,key:c,ref:l,props:i,_owner:a.current}}t.jsx=c,t.jsxs=c},4246:(e,t,r)=>{"use strict";e.exports=r(1426)},6248:e=>{var t=function(e){"use strict";var t,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),a=new C(n||[]);return i._invoke=function(e,t,r){var n=f;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===p){if("throw"===o)throw i;return A()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=S(a,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var u=l(e,t,r);if("normal"===u.type){if(n=r.done?p:d,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=p,r.method="throw",r.arg=u.arg)}}}(e,r,a),i}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var f="suspendedStart",d="suspendedYield",h="executing",p="completed",y={};function v(){}function m(){}function g(){}var b={};u(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(N([])));x&&x!==r&&n.call(x,i)&&(b=x);var j=g.prototype=v.prototype=Object.create(b);function O(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function r(o,i,a,s){var u=l(e[o],e,i);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(u.arg)}var o;this._invoke=function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}}function S(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method))return y;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=l(n,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}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 P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function N(e){if(e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}return{next:A}}function A(){return{value:t,done:!0}}return m.prototype=g,u(j,"constructor",g),u(g,"constructor",m),m.displayName=u(g,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,u(e,s,"GeneratorFunction")),e.prototype=Object.create(j),e},e.awrap=function(e){return{__await:e}},O(E.prototype),u(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(c(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(j),u(j,s,"Generator"),u(j,i,(function(){return this})),u(j,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=N,C.prototype={constructor:C,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(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=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 r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.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 u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){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 r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.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,y):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),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},7363:e=>{"use strict";e.exports=React}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}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.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=wp.element,t=wp.i18n;var n=r(7363);function o(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{u(n.next(e))}catch(e){i(e)}}function s(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))}function i(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}var a,s=function(){},u=s(),c=Object,l=function(e){return e===u},f=function(e){return"function"==typeof e},d=function(e,t){return c.assign({},e,t)},h="undefined",p=function(){return typeof window!=h},y=new WeakMap,v=0,m=function(e){var t,r,n=typeof e,o=e&&e.constructor,i=o==Date;if(c(e)!==e||i||o==RegExp)t=i?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=y.get(e))return t;if(t=++v+"~",y.set(e,t),o==Array){for(t="@",r=0;r<e.length;r++)t+=m(e[r])+",";y.set(e,t)}if(o==c){t="#";for(var a=c.keys(e).sort();!l(r=a.pop());)l(e[r])||(t+=r+":"+m(e[r])+",");y.set(e,t)}}return t},g=!0,b=p(),w=typeof document!=h,x=b&&window.addEventListener?window.addEventListener.bind(window):s,j=w?document.addEventListener.bind(document):s,O=b&&window.removeEventListener?window.removeEventListener.bind(window):s,E=w?document.removeEventListener.bind(document):s,S={isOnline:function(){return g},isVisible:function(){var e=w&&document.visibilityState;return l(e)||"hidden"!==e}},_={initFocus:function(e){return j("visibilitychange",e),x("focus",e),function(){E("visibilitychange",e),O("focus",e)}},initReconnect:function(e){var t=function(){g=!0,e()},r=function(){g=!1};return x("online",t),x("offline",r),function(){O("online",t),O("offline",r)}}},P=!p()||"Deno"in window,C=function(e){return p()&&typeof window.requestAnimationFrame!=h?window.requestAnimationFrame(e):setTimeout(e,1)},N=P?n.useEffect:n.useLayoutEffect,A="undefined"!=typeof navigator&&navigator.connection,T=!P&&A&&(["slow-2g","2g"].includes(A.effectiveType)||A.saveData),R=function(e){if(f(e))try{e=e()}catch(t){e=""}var t=[].concat(e);return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?m(e):"",t,e?"$swr$"+e:""]},k=new WeakMap,L=function(e,t,r,n,o,i,a){void 0===a&&(a=!0);var s=k.get(e),u=s[0],c=s[1],l=s[3],f=u[t],d=c[t];if(a&&d)for(var h=0;h<d.length;++h)d[h](r,n,o);return i&&(delete l[t],f&&f[0])?f[0](2).then((function(){return e.get(t)})):e.get(t)},I=0,D=function(){return++I},M=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o(void 0,void 0,void 0,(function(){var t,r,n,o,a,s,c,h,p,y,v,m,g,b,w,x,j,O,E,S,_;return i(this,(function(i){switch(i.label){case 0:if(t=e[0],r=e[1],n=e[2],o=e[3],s=!!l((a="boolean"==typeof o?{revalidate:o}:o||{}).populateCache)||a.populateCache,c=!1!==a.revalidate,h=!1!==a.rollbackOnError,p=a.optimisticData,y=R(r),v=y[0],m=y[2],!v)return[2];if(g=k.get(t),b=g[2],e.length<3)return[2,L(t,v,t.get(v),u,u,c,!0)];if(w=n,j=D(),b[v]=[j,0],O=!l(p),E=t.get(v),O&&(S=f(p)?p(E):p,t.set(v,S),L(t,v,S)),f(w))try{w=w(t.get(v))}catch(e){x=e}return w&&f(w.then)?[4,w.catch((function(e){x=e}))]:[3,2];case 1:if(w=i.sent(),j!==b[v][0]){if(x)throw x;return[2,w]}x&&O&&h&&(s=!0,w=E,t.set(v,E)),i.label=2;case 2:return s&&(x||(f(s)&&(w=s(w,E)),t.set(v,w)),t.set(m,d(t.get(m),{error:x}))),b[v][1]=D(),[4,L(t,v,w,x,u,c,!!s)];case 3:if(_=i.sent(),x)throw x;return[2,s?_:w]}}))}))},B=function(e,t){for(var r in e)e[r][0]&&e[r][0](t)},U=function(e,t){if(!k.has(e)){var r=d(_,t),n={},o=M.bind(u,e),i=s;if(k.set(e,[n,{},{},{},o]),!P){var a=r.initFocus(setTimeout.bind(u,B.bind(u,n,0))),c=r.initReconnect(setTimeout.bind(u,B.bind(u,n,1)));i=function(){a&&a(),c&&c(),k.delete(e)}}return[e,o,i]}return[e,k.get(e)[4]]},F=U(new Map),H=F[0],V=F[1],Y=d({onLoadingSlow:s,onSuccess:s,onError:s,onErrorRetry:function(e,t,r,n,o){var i=r.errorRetryCount,a=o.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*r.errorRetryInterval;!l(i)&&a>i||setTimeout(n,s,o)},onDiscarded:s,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:T?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:T?5e3:3e3,compare:function(e,t){return m(e)==m(t)},isPaused:function(){return!1},cache:H,mutate:V,fallback:{}},S),z=function(e,t){var r=d(e,t);if(t){var n=e.use,o=e.fallback,i=t.use,a=t.fallback;n&&i&&(r.use=n.concat(i)),o&&a&&(r.fallback=d(o,a))}return r},W=(0,n.createContext)({}),q=function(e){return f(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]},Z=function(){return d(Y,(0,n.useContext)(W))},J=function(e,t,r){var n=t[e]||(t[e]=[]);return n.push(r),function(){var e=n.indexOf(r);e>=0&&(n[e]=n[n.length-1],n.pop())}},X={dedupe:!0},$=c.defineProperty((function(e){var t=e.value,r=z((0,n.useContext)(W),t),o=t&&t.provider,i=(0,n.useState)((function(){return o?U(o(r.cache||H),t):u}))[0];return i&&(r.cache=i[0],r.mutate=i[1]),N((function(){return i?i[2]:u}),[]),(0,n.createElement)(W.Provider,d(e,{value:r}))}),"default",{value:Y}),G=(a=function(e,t,r){var a=r.cache,s=r.compare,c=r.fallbackData,h=r.suspense,p=r.revalidateOnMount,y=r.refreshInterval,v=r.refreshWhenHidden,m=r.refreshWhenOffline,g=k.get(a),b=g[0],w=g[1],x=g[2],j=g[3],O=R(e),E=O[0],S=O[1],_=O[2],A=(0,n.useRef)(!1),T=(0,n.useRef)(!1),I=(0,n.useRef)(E),B=(0,n.useRef)(t),U=(0,n.useRef)(r),F=function(){return U.current},H=function(){return F().isVisible()&&F().isOnline()},V=function(e){return a.set(_,d(a.get(_),e))},Y=a.get(E),z=l(c)?r.fallback[E]:c,W=l(Y)?z:Y,q=a.get(_)||{},Z=q.error,$=!A.current,G=function(){return $&&!l(p)?p:!F().isPaused()&&(h?!l(W)&&r.revalidateIfStale:l(W)||r.revalidateIfStale)},K=!(!E||!t)&&(!!q.isValidating||$&&G()),Q=function(e,t){var r=(0,n.useState)({})[1],o=(0,n.useRef)(e),i=(0,n.useRef)({data:!1,error:!1,isValidating:!1}),a=(0,n.useCallback)((function(e){var n=!1,a=o.current;for(var s in e){var u=s;a[u]!==e[u]&&(a[u]=e[u],i.current[u]&&(n=!0))}n&&!t.current&&r({})}),[]);return N((function(){o.current=e})),[o,i.current,a]}({data:W,error:Z,isValidating:K},T),ee=Q[0],te=Q[1],re=Q[2],ne=(0,n.useCallback)((function(e){return o(void 0,void 0,void 0,(function(){var t,n,o,c,d,h,p,y,v,m,g,b,w;return i(this,(function(i){switch(i.label){case 0:if(t=B.current,!E||!t||T.current||F().isPaused())return[2,!1];c=!0,d=e||{},h=!j[E]||!d.dedupe,p=function(){return!T.current&&E===I.current&&A.current},y=function(){var e=j[E];e&&e[1]===o&&delete j[E]},v={isValidating:!1},m=function(){V({isValidating:!1}),p()&&re(v)},V({isValidating:!0}),re({isValidating:!0}),i.label=1;case 1:return i.trys.push([1,3,,4]),h&&(L(a,E,ee.current.data,ee.current.error,!0),r.loadingTimeout&&!a.get(E)&&setTimeout((function(){c&&p()&&F().onLoadingSlow(E,r)}),r.loadingTimeout),j[E]=[t.apply(void 0,S),D()]),w=j[E],n=w[0],o=w[1],[4,n];case 2:return n=i.sent(),h&&setTimeout(y,r.dedupingInterval),j[E]&&j[E][1]===o?(V({error:u}),v.error=u,g=x[E],!l(g)&&(o<=g[0]||o<=g[1]||0===g[1])?(m(),h&&p()&&F().onDiscarded(E),[2,!1]):(s(ee.current.data,n)?v.data=ee.current.data:v.data=n,s(a.get(E),n)||a.set(E,n),h&&p()&&F().onSuccess(n,E,r),[3,4])):(h&&p()&&F().onDiscarded(E),[2,!1]);case 3:return b=i.sent(),y(),F().isPaused()||(V({error:b}),v.error=b,h&&p()&&(F().onError(b,E,r),("boolean"==typeof r.shouldRetryOnError&&r.shouldRetryOnError||f(r.shouldRetryOnError)&&r.shouldRetryOnError(b))&&H()&&F().onErrorRetry(b,E,r,ne,{retryCount:(d.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return c=!1,m(),p()&&h&&L(a,E,v.data,v.error,!1),[2,!0]}}))}))}),[E]),oe=(0,n.useCallback)(M.bind(u,a,(function(){return I.current})),[]);if(N((function(){B.current=t,U.current=r})),N((function(){if(E){var e=E!==I.current,t=ne.bind(u,X),r=0,n=J(E,w,(function(e,t,r){re(d({error:t,isValidating:r},s(ee.current.data,e)?u:{data:e}))})),o=J(E,b,(function(e){if(0==e){var n=Date.now();F().revalidateOnFocus&&n>r&&H()&&(r=n+F().focusThrottleInterval,t())}else if(1==e)F().revalidateOnReconnect&&H()&&t();else if(2==e)return ne()}));return T.current=!1,I.current=E,A.current=!0,e&&re({data:W,error:Z,isValidating:K}),G()&&(l(W)||P?t():C(t)),function(){T.current=!0,n(),o()}}}),[E,ne]),N((function(){var e;function t(){var t=f(y)?y(W):y;t&&-1!==e&&(e=setTimeout(r,t))}function r(){ee.current.error||!v&&!F().isVisible()||!m&&!F().isOnline()?t():ne(X).then(t)}return t(),function(){e&&(clearTimeout(e),e=-1)}}),[y,v,m,ne]),(0,n.useDebugValue)(W),h&&l(W)&&E)throw B.current=t,U.current=r,T.current=!1,l(Z)?ne(X):Z;return{mutate:oe,get data(){return te.data=!0,W},get error(){return te.error=!0,Z},get isValidating(){return te.isValidating=!0,K}}},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Z(),n=q(e),o=n[0],i=n[1],s=n[2],u=z(r,s),c=a,l=u.use;if(l)for(var f=l.length;f-- >0;)c=l[f](c);return c(o,i||u.fetcher,u)});const K=wp.components;var Q=r(4246),ee=function(){return(0,Q.jsx)("div",{className:"extendify-onboarding w-full fixed bottom-4 px-4 flex justify-end z-max",children:(0,Q.jsx)("div",{className:"shadow-2xl",children:(0,Q.jsx)(K.Snackbar,{children:(0,t.__)("Just a moment, this is taking longer than expected.","extendify")})})})};const te=wp.data;var re=r(7135),ne=r.n(re),oe=r(4206),ie=r.n(oe)().create({baseURL:window.extOnbData.root,headers:{"X-WP-Nonce":window.extOnbData.nonce,"X-Requested-With":"XMLHttpRequest","X-Extendify-Onboarding":!0,"X-Extendify":!0}});function ae(e){return Object.prototype.hasOwnProperty.call(e,"data")?e.data:e}ie.interceptors.response.use((function(e){return ae(e)}),(function(e){return function(e){if(e.response)return console.error(e.response),Promise.reject(ae(e.response))}(e)})),ie.interceptors.request.use((function(e){return function(e){return e.headers["X-Extendify-Onboarding-Dev-Mode"]=window.location.search.indexOf("DEVMODE")>-1,e.headers["X-Extendify-Onboarding-Local-Mode"]=window.location.search.indexOf("LOCALMODE")>-1,e}(e)}),(function(e){return e}));var se=function(e){return ie.get("onboarding/template",{params:e})};function ue(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}function ce(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){ue(i,n,o,a,s,"next",e)}function s(e){ue(i,n,o,a,s,"throw",e)}a(void 0)}))}}var le=function(e,t){return ie.post("onboarding/options",{option:e,value:t})},fe=function(){var e=ce(ne().mark((function e(t){var r,n;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ie.get("onboarding/options",{params:{option:t}});case 2:return r=e.sent,n=r.data,e.abrupt("return",n);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),de=function(){var e=ce(ne().mark((function e(t){var r,n,o,i;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={method:"POST",headers:{"Content-type":"application/json","X-WP-Nonce":window.extOnbData.nonce},body:JSON.stringify(t)},n="".concat(window.extOnbData.wpRoot,"wp/v2/pages"),e.next=4,fetch(n,r);case 4:return o=e.sent,e.next=7,o.json();case 7:return i=e.sent,e.abrupt("return",i);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),he=function(){var e=ce(ne().mark((function e(t){var r,n,o;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return r={"Content-type":"application/json","X-WP-Nonce":window.extOnbData.nonce},n="".concat(window.extOnbData.wpRoot,"wp/v2/plugins"),e.next=6,fetch(n,{method:"POST",headers:r,body:JSON.stringify({slug:t,status:"active"})});case 6:if(!((o=e.sent).status>=200&&o.status<300)){e.next=11;break}return e.next=10,o.json();case 10:case 13:return e.abrupt("return",e.sent);case 11:return e.next=13,pe(t);case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),pe=function(){var e=ce(ne().mark((function e(t){var r,n,o,i,a,s,u;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o={"Content-type":"application/json","X-WP-Nonce":window.extOnbData.nonce},i="".concat(window.extOnbData.wpRoot,"wp/v2/plugins"),e.next=4,fetch("".concat(i,"?search=").concat(t),{headers:o});case 4:return a=e.sent,e.next=7,a.json();case 7:if(e.t1=r=e.sent,e.t0=null===e.t1,e.t0){e.next=11;break}e.t0=void 0===r;case 11:if(!e.t0){e.next=15;break}e.t2=void 0,e.next=16;break;case 15:e.t2=null===(n=r[0])||void 0===n?void 0:n.plugin;case 16:return s=e.t2,e.next=19,fetch("".concat(i,"/").concat(s),{method:"POST",headers:o,body:JSON.stringify({status:"active"})});case 19:return u=e.sent,e.next=22,u.json();case 22:return e.abrupt("return",e.sent);case 23:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ye=function(){var e=ce(ne().mark((function e(r,n){var o,i,a,s;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o={method:"POST",headers:{"Content-type":"application/json","X-WP-Nonce":window.extOnbData.nonce},body:JSON.stringify({slug:"".concat(r),theme:"extendable",type:"wp_template_part",status:"publish",description:(0,t.__)("Added by Extendify Launch","extendify"),content:n})},e.prev=1,i="".concat(window.extOnbData.wpRoot,"wp/v2/template-parts/").concat(r),e.next=5,fetch(i,o);case 5:return a=e.sent,e.next=8,a.json();case 8:return s=e.sent,e.abrupt("return",s);case 12:e.prev=12,e.t0=e.catch(1);case 14:case"end":return e.stop()}}),e,null,[[1,12]])})));return function(t,r){return e.apply(this,arguments)}}(),ve=function(e){var t=e.currentPageIndex,r=e.totalPages,n=Math.round((t+1)/r*100),o="(".concat(t+1,"/").concat(r,")");return(0,Q.jsxs)("div",{className:"flex-1 hidden md:flex justify-center items-center",children:[(0,Q.jsx)("div",{role:"progressbar","aria-valuenow":n,"aria-valuemin":"0","aria-valuetext":o,"aria-valuemax":"100",className:"w-32 bg-gray-200 h-2 rounded-full",children:(0,Q.jsx)("div",{className:"rounded-full bg-partner-primary-bg h-2",style:{width:"".concat(n,"%")}})}),(0,Q.jsx)("div",{className:"pl-2 flex justify-center",children:o})]})};function me(e){let t;const r=new Set,n=(e,n)=>{const o="function"==typeof e?e(t):e;if(o!==t){const e=t;t=n?o:Object.assign({},t,o),r.forEach((r=>r(t,e)))}},o=()=>t,i={setState:n,getState:o,subscribe:(e,n,i)=>n||i?((e,n=o,i=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let a=n(t);function s(){const r=n(t);if(!i(a,r)){const t=a;e(a=r,t)}}return r.add(s),()=>r.delete(s)})(e,n,i):(r.add(e),()=>r.delete(e)),destroy:()=>r.clear()};return t=e(n,o,i),i}const ge="undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent)?n.useEffect:n.useLayoutEffect;function be(e){const t="function"==typeof e?me(e):e,r=(e=t.getState,r=Object.is)=>{const[,o]=(0,n.useReducer)((e=>e+1),0),i=t.getState(),a=(0,n.useRef)(i),s=(0,n.useRef)(e),u=(0,n.useRef)(r),c=(0,n.useRef)(!1),l=(0,n.useRef)();let f;void 0===l.current&&(l.current=e(i));let d=!1;(a.current!==i||s.current!==e||u.current!==r||c.current)&&(f=e(i),d=!r(l.current,f)),ge((()=>{d&&(l.current=f),a.current=i,s.current=e,u.current=r,c.current=!1}));const h=(0,n.useRef)(i);ge((()=>{const e=()=>{try{const e=t.getState(),r=s.current(e);u.current(l.current,r)||(a.current=e,l.current=r,o())}catch(e){c.current=!0,o()}},r=t.subscribe(e);return t.getState()!==h.current&&e(),r}),[]);const p=d?f:l.current;return(0,n.useDebugValue)(p),p};return Object.assign(r,t),r[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const e=[r,t];return{next(){const t=e.length<=0;return{value:e.shift(),done:t}}}},r}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;function we(e,t){return(r,n,o)=>{var i;let a=!1;"string"!=typeof t||a||(console.warn("[zustand devtools middleware]: passing `name` as directly will be not allowed in next majorpass the `name` in an object `{ name: ... }` instead"),a=!0);const s=void 0===t?{name:void 0,anonymousActionType:void 0}:"string"==typeof t?{name:t}:t;let u;void 0!==(null==(i=null==s?void 0:s.serialize)?void 0:i.options)&&console.warn("[zustand devtools middleware]: `serialize.options` is deprecated, just use `serialize`");try{u=window.__REDUX_DEVTOOLS_EXTENSION__||window.top.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!u)return"undefined"!=typeof window&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(r,n,o);let c=Object.create(u.connect(s)),l=!1;Object.defineProperty(o,"devtools",{get:()=>(l||(console.warn("[zustand devtools middleware] `devtools` property on the store is deprecated it will be removed in the next major.\nYou shouldn't interact with the extension directly. But in case you still want to you can patch `window.__REDUX_DEVTOOLS_EXTENSION__` directly"),l=!0),c),set:e=>{l||(console.warn("[zustand devtools middleware] `api.devtools` is deprecated, it will be removed in the next major.\nYou shouldn't interact with the extension directly. But in case you still want to you can patch `window.__REDUX_DEVTOOLS_EXTENSION__` directly"),l=!0),c=e}});let f=!1;Object.defineProperty(c,"prefix",{get:()=>(f||(console.warn("[zustand devtools middleware] along with `api.devtools`, `api.devtools.prefix` is deprecated.\nWe no longer prefix the actions/names"+s.name===void 0?", pass the `name` option to create a separate instance of devtools for each store.":", because the `name` option already creates a separate instance of devtools for each store."),f=!0),""),set:()=>{f||(console.warn("[zustand devtools middleware] along with `api.devtools`, `api.devtools.prefix` is deprecated.\nWe no longer prefix the actions/names"+s.name===void 0?", pass the `name` option to create a separate instance of devtools for each store.":", because the `name` option already creates a separate instance of devtools for each store."),f=!0)}});let d=!0;o.setState=(e,t,o)=>{r(e,t),d&&c.send(void 0===o?{type:s.anonymousActionType||"anonymous"}:"string"==typeof o?{type:o}:o,n())};const h=(...e)=>{const t=d;d=!1,r(...e),d=t},p=e(o.setState,n,o);if(c.init(p),o.dispatchFromDevtools&&"function"==typeof o.dispatch){let e=!1;const t=o.dispatch;o.dispatch=(...r)=>{"__setState"!==r[0].type||e||(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),e=!0),t(...r)}}return c.subscribe((e=>{var t;switch(e.type){case"ACTION":return"string"!=typeof e.payload?void console.error("[zustand devtools middleware] Unsupported action format"):xe(e.payload,(e=>{"__setState"!==e.type?o.dispatchFromDevtools&&"function"==typeof o.dispatch&&o.dispatch(e):h(e.state)}));case"DISPATCH":switch(e.payload.type){case"RESET":return h(p),c.init(o.getState());case"COMMIT":return c.init(o.getState());case"ROLLBACK":return xe(e.state,(e=>{h(e),c.init(o.getState())}));case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return xe(e.state,(e=>{h(e)}));case"IMPORT_STATE":{const{nextLiftedState:r}=e.payload,n=null==(t=r.computedStates.slice(-1)[0])?void 0:t.state;if(!n)return;return h(n),void c.send(null,r)}case"PAUSE_RECORDING":return d=!d}return}})),p}}const xe=(e,t)=>{let r;try{r=JSON.parse(e)}catch(e){console.error("[zustand devtools middleware] Could not parse the received json",e)}void 0!==r&&t(r)};var je=Object.defineProperty,Oe=Object.getOwnPropertySymbols,Ee=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,_e=(e,t,r)=>t in e?je(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Pe=(e,t)=>{for(var r in t||(t={}))Ee.call(t,r)&&_e(e,r,t[r]);if(Oe)for(var r of Oe(t))Se.call(t,r)&&_e(e,r,t[r]);return e};const Ce=e=>t=>{try{const r=e(t);return r instanceof Promise?r:{then:e=>Ce(e)(r),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>Ce(t)(e)}}};var Ne=be(we((function(){return{generating:!1,generatedPages:{}}}))),Ae=function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=G(e,t,n),i=o.data,a=o.error,s=null!==(r=null==i?void 0:i.data)&&void 0!==r?r:i;return{data:s,loading:!s&&!a,error:a}};function Te(e){return function(e){if(Array.isArray(e))return Re(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 Re(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Re(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 Re(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ke(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Le(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ke(Object(r),!0).forEach((function(t){Ie(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ke(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ie(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var De,Me,Be={siteType:{},siteInformation:{title:""},style:null,pages:[],plugins:[],goals:[]},Ue=be((De=we((function(e,t){return Le(Le({},Be),{},{setSiteType:function(t){e({siteType:t})},setSiteInformation:function(r,n){var o=Le(Le({},t().siteInformation),{},Ie({},r,n));e({siteInformation:o})},has:function(e,r){return!(null==r||!r.id)&&t()[e].some((function(e){return e.id===r.id}))},add:function(r,n){t().has(r,n)||e(Ie({},r,[].concat(Te(t()[r]),[n])))},remove:function(r,n){e(Ie({},r,t()[r].filter((function(e){return e.id!==n.id}))))},toggle:function(e,r){t().has(e,r)?t().remove(e,r):t().add(e,r)},setStyle:function(t){e({style:t})},canLaunch:function(){var e,r,n,o,i,a,s,u;return(null===(e=Object.keys(null!==(r=null===(n=t())||void 0===n?void 0:n.siteType)&&void 0!==r?r:{}))||void 0===e?void 0:e.length)>0&&(null===(o=Object.keys(null!==(i=null===(a=t())||void 0===a?void 0:a.style)&&void 0!==i?i:{}))||void 0===o?void 0:o.length)>0&&(null===(s=t())||void 0===s||null===(u=s.pages)||void 0===u?void 0:u.length)>0},resetState:function(){e(Be)}})})),Me={name:"extendify",getStorage:function(){return sessionStorage}},(e,t,r)=>{let n=Pe({getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>Pe(Pe({},t),e)},Me);(n.blacklist||n.whitelist)&&console.warn(`The ${n.blacklist?"blacklist":"whitelist"} option is deprecated and will be removed in the next version. Please use the 'partialize' option instead.`);let o=!1;const i=new Set,a=new Set;let s;try{s=n.getStorage()}catch(e){}if(!s)return De(((...t)=>{console.warn(`[zustand persist middleware] Unable to update item '${n.name}', the given storage is currently unavailable.`),e(...t)}),t,r);s.removeItem||console.warn(`[zustand persist middleware] The given storage for item '${n.name}' does not contain a 'removeItem' method, which will be required in v4.`);const u=Ce(n.serialize),c=()=>{const e=n.partialize(Pe({},t()));let r;n.whitelist&&Object.keys(e).forEach((t=>{var r;!(null==(r=n.whitelist)?void 0:r.includes(t))&&delete e[t]})),n.blacklist&&n.blacklist.forEach((t=>delete e[t]));const o=u({state:e,version:n.version}).then((e=>s.setItem(n.name,e))).catch((e=>{r=e}));if(r)throw r;return o},l=r.setState;r.setState=(e,t)=>{l(e,t),c()};const f=De(((...t)=>{e(...t),c()}),t,r);let d;const h=()=>{var r;if(!s)return;o=!1,i.forEach((e=>e(t())));const u=(null==(r=n.onRehydrateStorage)?void 0:r.call(n,t()))||void 0;return Ce(s.getItem.bind(s))(n.name).then((e=>{if(e)return n.deserialize(e)})).then((e=>{if(e){if("number"!=typeof e.version||e.version===n.version)return e.state;if(n.migrate)return n.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((r=>{var o;return d=n.merge(r,null!=(o=t())?o:f),e(d,!0),c()})).then((()=>{null==u||u(d,void 0),o=!0,a.forEach((e=>e(d)))})).catch((e=>{null==u||u(void 0,e)}))};return r.persist={setOptions:e=>{n=Pe(Pe({},n),e),e.getStorage&&(s=e.getStorage())},clearStorage:()=>{var e;null==(e=null==s?void 0:s.removeItem)||e.call(s,n.name)},rehydrate:()=>h(),hasHydrated:()=>o,onHydrate:e=>(i.add(e),()=>{i.delete(e)}),onFinishHydration:e=>(a.add(e),()=>{a.delete(e)})},h(),d||f})),Fe=function(){return ie.get("onboarding/goals")},He=function(){return{key:"goals"}};function Ve(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}function Ye(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}var ze=function(){var e,t=(e=ne().mark((function e(){var t;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fe("blogname");case 2:return t=e.sent,e.abrupt("return",{title:t});case 4:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Ye(i,n,o,a,s,"next",e)}function s(e){Ye(i,n,o,a,s,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}(),We=function(){return{key:"site-info"}},qe=r(42),Ze=r.n(qe);const Je=wp.blockEditor,Xe=wp.blocks;var $e=function(e){var t,r;return[null==e||null===(t=e.template)||void 0===t?void 0:t.code,null==e||null===(r=e.template)||void 0===r?void 0:r.code2].filter(Boolean).join("")},Ge=["className"];function Ke(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Qe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ke(Object(r),!0).forEach((function(t){et(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ke(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function et(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tt(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const rt=(0,e.memo)((function(e){var t=e.className,r=tt(e,Ge);return(0,Q.jsx)("svg",Qe(Qe({className:t,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),{},{children:(0,Q.jsx)("path",{d:"M8.72912 13.7449L5.77536 10.7911L4.76953 11.7899L8.72912 15.7495L17.2291 7.24948L16.2304 6.25073L8.72912 13.7449Z",fill:"currentColor"})}))}));var nt=["className"];function ot(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function it(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ot(Object(r),!0).forEach((function(t){at(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ot(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function at(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function st(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const ut=(0,e.memo)((function(e){var t=e.className,r=st(e,nt);return(0,Q.jsx)("svg",it(it({className:"icon ".concat(t),width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),{},{children:(0,Q.jsx)("path",{d:"M10 17.5L15 12L10 6.5",stroke:"#1f1f1f",strokeWidth:"1.75"})}))}));var ct=["className"];function lt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ft(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?lt(Object(r),!0).forEach((function(t){dt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function dt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ht(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const pt=(0,e.memo)((function(e){var t=e.className,r=ht(e,ct);return(0,Q.jsxs)("svg",ft(ft({className:t,viewBox:"0 0 2524 492",xmlns:"http://www.w3.org/2000/svg"},r),{},{children:[(0,Q.jsx)("path",{d:"M609.404 378.5C585.07 378.5 563.404 373 544.404 362C525.737 350.667 511.07 335.333 500.404 316C489.737 296.333 484.404 273.833 484.404 248.5C484.404 222.833 489.57 200.167 499.904 180.5C510.237 160.833 524.737 145.5 543.404 134.5C562.07 123.167 583.404 117.5 607.404 117.5C632.404 117.5 653.904 122.833 671.904 133.5C689.904 143.833 703.737 158.333 713.404 177C723.404 195.667 728.404 218 728.404 244V262.5L516.404 263L517.404 224H667.904C667.904 207 662.404 193.333 651.404 183C640.737 172.667 626.237 167.5 607.904 167.5C593.57 167.5 581.404 170.5 571.404 176.5C561.737 182.5 554.404 191.5 549.404 203.5C544.404 215.5 541.904 230.167 541.904 247.5C541.904 274.167 547.57 294.333 558.904 308C570.57 321.667 587.737 328.5 610.404 328.5C627.07 328.5 640.737 325.333 651.404 319C662.404 312.667 669.57 303.667 672.904 292H729.404C724.07 319 710.737 340.167 689.404 355.5C668.404 370.833 641.737 378.5 609.404 378.5Z",fill:"currentColor"}),(0,Q.jsx)("path",{d:"M797.529 372H728.029L813.029 251L728.029 125H799.029L853.529 209L906.029 125H974.529L890.529 250.5L972.029 372H902.029L849.029 290.5L797.529 372Z",fill:"currentColor"}),(0,Q.jsx)("path",{d:"M994.142 125H1150.14V176H994.142V125ZM1102.64 372H1041.64V48H1102.64V372Z",fill:"currentColor"}),(0,Q.jsx)("path",{d:"M1278.62 378.5C1254.29 378.5 1232.62 373 1213.62 362C1194.96 350.667 1180.29 335.333 1169.62 316C1158.96 296.333 1153.62 273.833 1153.62 248.5C1153.62 222.833 1158.79 200.167 1169.12 180.5C1179.46 160.833 1193.96 145.5 1212.62 134.5C1231.29 123.167 1252.62 117.5 1276.62 117.5C1301.62 117.5 1323.12 122.833 1341.12 133.5C1359.12 143.833 1372.96 158.333 1382.62 177C1392.62 195.667 1397.62 218 1397.62 244V262.5L1185.62 263L1186.62 224H1337.12C1337.12 207 1331.62 193.333 1320.62 183C1309.96 172.667 1295.46 167.5 1277.12 167.5C1262.79 167.5 1250.62 170.5 1240.62 176.5C1230.96 182.5 1223.62 191.5 1218.62 203.5C1213.62 215.5 1211.12 230.167 1211.12 247.5C1211.12 274.167 1216.79 294.333 1228.12 308C1239.79 321.667 1256.96 328.5 1279.62 328.5C1296.29 328.5 1309.96 325.333 1320.62 319C1331.62 312.667 1338.79 303.667 1342.12 292H1398.62C1393.29 319 1379.96 340.167 1358.62 355.5C1337.62 370.833 1310.96 378.5 1278.62 378.5Z",fill:"currentColor"}),(0,Q.jsx)("path",{d:"M1484.44 372H1423.44V125H1479.94L1484.94 157C1492.61 144.667 1503.44 135 1517.44 128C1531.78 121 1547.28 117.5 1563.94 117.5C1594.94 117.5 1618.28 126.667 1633.94 145C1649.94 163.333 1657.94 188.333 1657.94 220V372H1596.94V234.5C1596.94 213.833 1592.28 198.5 1582.94 188.5C1573.61 178.167 1560.94 173 1544.94 173C1525.94 173 1511.11 179 1500.44 191C1489.78 203 1484.44 219 1484.44 239V372Z",fill:"currentColor"}),(0,Q.jsx)("path",{d:"M1798.38 378.5C1774.38 378.5 1753.71 373.167 1736.38 362.5C1719.38 351.5 1706.04 336.333 1696.38 317C1687.04 297.667 1682.38 275.167 1682.38 249.5C1682.38 223.833 1687.04 201.167 1696.38 181.5C1706.04 161.5 1719.88 145.833 1737.88 134.5C1755.88 123.167 1777.21 117.5 1801.88 117.5C1819.21 117.5 1835.04 121 1849.38 128C1863.71 134.667 1874.71 144.167 1882.38 156.5V0H1942.88V372H1886.88L1882.88 333.5C1875.54 347.5 1864.21 358.5 1848.88 366.5C1833.88 374.5 1817.04 378.5 1798.38 378.5ZM1811.88 322.5C1826.21 322.5 1838.54 319.5 1848.88 313.5C1859.21 307.167 1867.21 298.333 1872.88 287C1878.88 275.333 1881.88 262.167 1881.88 247.5C1881.88 232.5 1878.88 219.5 1872.88 208.5C1867.21 197.167 1859.21 188.333 1848.88 182C1838.54 175.333 1826.21 172 1811.88 172C1797.88 172 1785.71 175.333 1775.38 182C1765.04 188.333 1757.04 197.167 1751.38 208.5C1746.04 219.833 1743.38 232.833 1743.38 247.5C1743.38 262.167 1746.04 275.167 1751.38 286.5C1757.04 297.833 1765.04 306.667 1775.38 313C1785.71 319.333 1797.88 322.5 1811.88 322.5Z",fill:"currentColor"}),(0,Q.jsx)("path",{d:"M1996.45 372V125H2057.45V372H1996.45ZM2026.45 75.5C2016.11 75.5 2007.28 72 1999.95 65C1992.95 57.6667 1989.45 48.8333 1989.45 38.5C1989.45 28.1667 1992.95 19.5 1999.95 12.5C2007.28 5.50001 2016.11 2.00002 2026.45 2.00002C2036.78 2.00002 2045.45 5.50001 2052.45 12.5C2059.78 19.5 2063.45 28.1667 2063.45 38.5C2063.45 48.8333 2059.78 57.6667 2052.45 65C2045.45 72 2036.78 75.5 2026.45 75.5Z",fill:"currentColor"}),(0,Q.jsx)("path",{d:"M2085.97 125H2240.97V176H2085.97V125ZM2241.47 2.5V54.5C2238.14 54.5 2234.64 54.5 2230.97 54.5C2227.64 54.5 2224.14 54.5 2220.47 54.5C2205.14 54.5 2194.8 58.1667 2189.47 65.5C2184.47 72.8333 2181.97 82.6667 2181.97 95V372H2121.47V95C2121.47 72.3333 2125.14 54.1667 2132.47 40.5C2139.8 26.5 2150.14 16.3333 2163.47 10C2176.8 3.33334 2192.3 0 2209.97 0C2214.97 0 2220.14 0.166671 2225.47 0.5C2231.14 0.833329 2236.47 1.49999 2241.47 2.5Z",fill:"currentColor"}),(0,Q.jsx)("path",{d:"M2330.4 125L2410.9 353L2377.9 415.5L2265.9 125H2330.4ZM2272.4 486.5V436H2308.9C2316.9 436 2323.9 435 2329.9 433C2335.9 431.333 2341.24 428 2345.9 423C2350.9 418 2355.07 410.667 2358.4 401L2460.9 125H2523.9L2402.9 427C2393.9 449.667 2382.57 466.167 2368.9 476.5C2355.24 486.833 2338.24 492 2317.9 492C2309.24 492 2301.07 491.5 2293.4 490.5C2286.07 489.833 2279.07 488.5 2272.4 486.5Z",fill:"currentColor"}),(0,Q.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M226.926 25.1299H310.197C333.783 25.1299 342.32 27.5938 350.948 32.1932C359.576 36.8108 366.326 43.5822 370.941 52.1969C375.556 60.8298 378 69.3715 378 92.9707V176.289C378 199.888 375.537 208.43 370.941 217.063C366.326 225.696 359.558 232.449 350.948 237.066C347.091 239.131 343.244 240.83 338.064 242.047V308.355C338.064 344.802 334.261 357.994 327.162 371.327C320.034 384.66 309.583 395.09 296.285 402.221C282.96 409.353 269.775 413.13 233.349 413.13H104.744C68.3172 413.13 55.1327 409.325 41.8073 402.221C28.4819 395.09 18.0583 384.632 10.9308 371.327C3.80323 358.023 0 344.802 0 308.355V179.706C0 143.259 3.80323 130.067 10.9026 116.734C18.0301 103.401 28.4819 92.9431 41.8073 85.8116C55.1045 78.7082 68.3172 74.9028 104.744 74.9028H159.808C160.841 64.0747 162.996 58.1666 166.165 52.2151C170.78 43.5822 177.547 36.8108 186.175 32.1932C194.785 27.5938 203.34 25.1299 226.926 25.1299ZM184.128 78.1641C184.128 62.7001 196.658 50.1641 212.114 50.1641H324.991C340.448 50.1641 352.978 62.7001 352.978 78.1641V191.096C352.978 206.56 340.448 219.096 324.991 219.096H212.114C196.658 219.096 184.128 206.56 184.128 191.096V78.1641Z",fill:"currentColor"})]}))}));var yt=["className"];function vt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function mt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vt(Object(r),!0).forEach((function(t){gt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function gt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bt(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(0,e.memo)((function(e){var t=e.className,r=bt(e,yt);return(0,Q.jsx)("svg",mt(mt({className:t,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),{},{children:(0,Q.jsx)("path",{fill:"currentColor",d:"M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z"})}))}));var wt=["className"];function xt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function jt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xt(Object(r),!0).forEach((function(t){Ot(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ot(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Et(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const St=(0,e.memo)((function(e){var t=e.className,r=Et(e,wt);return(0,Q.jsxs)("svg",jt(jt({className:t,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),{},{children:[(0,Q.jsx)("path",{d:"M8 18.5504L12 14.8899",stroke:"#1E1E1E",strokeWidth:"1.5"}),(0,Q.jsx)("path",{d:"M20.25 11.7523C20.25 14.547 18.092 16.7546 15.5 16.7546C12.908 16.7546 10.75 14.547 10.75 11.7523C10.75 8.95754 12.908 6.75 15.5 6.75C18.092 6.75 20.25 8.95754 20.25 11.7523Z",stroke:"#1E1E1E",strokeWidth:"1.5"})]}))}));var _t=["className"];function Pt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ct(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Pt(Object(r),!0).forEach((function(t){Nt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Nt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function At(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const Tt=(0,e.memo)((function(e){var t=e.className,r=At(e,_t);return(0,Q.jsxs)("svg",Ct(Ct({className:t,width:"100",height:"100",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),{},{children:[(0,Q.jsx)("path",{d:"M87.5 48.8281H75V51.1719H87.5V48.8281Z",fill:"black"}),(0,Q.jsx)("path",{d:"M25 48.8281H12.5V51.1719H25V48.8281Z",fill:"black"}),(0,Q.jsx)("path",{d:"M51.1719 75H48.8281V87.5H51.1719V75Z",fill:"black"}),(0,Q.jsx)("path",{d:"M51.1719 12.5H48.8281V25H51.1719V12.5Z",fill:"black"}),(0,Q.jsx)("path",{d:"M77.3433 75.6868L69.4082 67.7517L67.7511 69.4088L75.6862 77.344L77.3433 75.6868Z",fill:"black"}),(0,Q.jsx)("path",{d:"M32.2457 30.5897L24.3105 22.6545L22.6534 24.3117L30.5885 32.2468L32.2457 30.5897Z",fill:"black"}),(0,Q.jsx)("path",{d:"M77.3407 24.3131L75.6836 22.656L67.7485 30.5911L69.4056 32.2483L77.3407 24.3131Z",fill:"black"}),(0,Q.jsx)("path",{d:"M32.2431 69.4074L30.5859 67.7502L22.6508 75.6854L24.3079 77.3425L32.2431 69.4074Z",fill:"black"})]}))}));function Rt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return kt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return kt(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 kt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Lt=function(r){var n=r.style,o=r.selectStyle,i=r.blockHeight,a=r.onHover,s=void 0===a?null:a,u=Ue((function(e){return e.siteType})),c=function(){var t=(0,e.useRef)(!1);return(0,e.useEffect)((function(){return t.current=!0,function(){return t.current=!1}})),t}(),l=Rt((0,e.useState)(""),2),f=l[0],d=l[1],h=Rt((0,e.useState)(""),2),p=h[0],y=h[1],v=Rt((0,e.useState)(!1),2),m=v[0],g=v[1],b=Rt((0,e.useState)(!1),2),w=b[0],x=b[1],j=Rt((0,e.useState)(null),2),O=j[0],E=j[1],S=(0,e.useRef)(null),_=(0,e.useRef)(null),P=(0,e.useRef)(null),C=(0,e.useRef)(null),N=(0,e.useMemo)((function(){return(0,Xe.rawHandler)({HTML:(e=f,e.replace(/\w+:\/\/\S*(w=(\d*))&\w+\S*"/g,(function(e,t,r){return e.replace(t,"w="+Math.floor(Number(r))+"&q=10")})))});var e}),[f]),A=(0,e.useMemo)((function(){return(0,Je.transformStyles)([{css:p}],".editor-styles-wrapper")}),[p]);return(0,e.useEffect)((function(){null!=n&&n.themeJson?function(e){return ie.post("onboarding/parse-theme-json",{themeJson:e})}(n.themeJson).then((function(e){var t;y(null!==(t=null==e?void 0:e.styles)&&void 0!==t?t:"{}")})):y("{}")}),[null==n?void 0:n.themeJson]),(0,e.useEffect)((function(){if(p&&null!=n&&n.code){var e=[null==n?void 0:n.headerCode,null==n?void 0:n.code,null==n?void 0:n.footerCode].filter(Boolean).join("").replace(/<!-- wp:navigation {(.|\n)*?(\/wp:navigation -->|} \/-->)/g,'\x3c!-- wp:paragraph {"className":"tmp-nav"} --\x3e<p class="tmp-nav">Home | About | Contact</p >\x3c!-- /wp:paragraph --\x3e');d(e)}}),[null==u?void 0:u.slug,p,n]),(0,e.useEffect)((function(){var e,t;if(_.current&&m){var r=S.current,n=r.offsetWidth/1400,o=_.current.contentDocument.body;null!=o&&o.style&&(o.style.transitionProperty="all",o.style.top=0);var a=function(){var t,r;if(o.offsetHeight){var a=(null!==(t=null==P||null===(r=P.current)||void 0===r?void 0:r.offsetHeight)&&void 0!==t?t:i)-32,s=o.getBoundingClientRect().height-a/n;o.style.transitionDuration=Math.max(2*s,3e3)+"ms",e=window.requestAnimationFrame((function(){o.style.top=-1*Math.max(0,s)+"px"}))}},s=function(){var e,r;if(o.offsetHeight){var a=(null!==(e=null==P||null===(r=P.current)||void 0===r?void 0:r.offsetHeight)&&void 0!==e?e:i)-32,s=o.offsetHeight-a/n;o.style.transitionDuration=s+"ms",t=window.requestAnimationFrame((function(){o.style.top=0}))}};return r.addEventListener("focus",a),r.addEventListener("mouseenter",a),r.addEventListener("blur",s),r.addEventListener("mouseleave",s),function(){window.cancelAnimationFrame(e),window.cancelAnimationFrame(t),r.removeEventListener("focus",a),r.removeEventListener("mouseenter",a),r.removeEventListener("blur",s),r.removeEventListener("mouseleave",s)}}}),[i,m]),(0,e.useEffect)((function(){if(null!=N&&N.length&&w){var e,t=function(){var t,r,n;null!==(t=e.contentDocument)&&void 0!==t&&t.getElementById("ext-tj")||(null===(r=e.contentDocument)||void 0===r||null===(n=r.head)||void 0===n||n.insertAdjacentHTML("beforeend",'<style id="ext-tj">'.concat(A,"</style>")));_.current=e,setTimeout((function(){c.current&&g(!0)}),500)},r=new MutationObserver((function(){(e=S.current.querySelector("iframe[title]")).addEventListener("load",t),setTimeout((function(){t()}),2e3),r.disconnect()}));return r.observe(S.current,{attributes:!1,childList:!0,subtree:!1}),function(){var n;r.disconnect(),null===(n=e)||void 0===n||n.removeEventListener("load",t)}}}),[N,A,c,w]),(0,e.useEffect)((function(){return C.current||(C.current=new IntersectionObserver((function(e){e[0].isIntersecting&&x(!0)}))),C.current.observe(P.current),function(){C.current.disconnect()}}),[]),(0,Q.jsxs)(Q.Fragment,{children:[m&&f?null:(0,Q.jsx)("div",{className:"m-6 absolute inset-0 bg-gray-50 flex items-center justify-center",children:(0,Q.jsx)(Tt,{className:"spin w-8"})}),(0,Q.jsx)("div",{ref:P,role:o?"button":void 0,tabIndex:o?0:void 0,"aria-label":o?(0,t.__)("Press to select","extendify"):void 0,className:Ze()("w-full overflow-hidden bg-transparent z-10",{relative:m,"absolute opacity-0":!m,"button-focus button-card":o}),onKeyDown:function(e){["Enter","Space"," "].includes(e.key)&&o&&o(n)},onMouseEnter:function(){s&&E(s)},onMouseLeave:function(){O&&(O(),E(null))},onClick:o?function(){return o(n)}:function(){},children:(0,Q.jsx)("div",{ref:S,className:"relative rounded-lg",children:w?(0,Q.jsx)(Je.BlockPreview,{blocks:N,viewportWidth:1400,live:!1}):null})})]})};function It(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Dt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?It(Object(r),!0).forEach((function(t){Mt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):It(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Mt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Bt=function(e){return se(e)},Ut=function(e){var r=e.page,n=e.blockHeight,o=e.lock,i=void 0!==o&&o,a=e.displayOnly,s=void 0!==a&&a,u=Ue(),c=u.siteType,l=u.style,f=u.toggle,d=u.has,h="home"===(null==r?void 0:r.slug),p=Ae({siteType:c.slug,layoutType:r.slug,baseLayout:h?null==l?void 0:l.homeBaseLayout:null,kit:"home"!==r.slug?null==l?void 0:l.kit:null},Bt).data;return s?(0,Q.jsxs)("div",{className:"text-base p-0 bg-transparent overflow-hidden rounded-lg border border-gray-100",children:[(0,Q.jsx)("div",{className:"border-gray-100 border-b p-2 flex justify-between min-w-sm",children:r.title}),(0,Q.jsx)(Lt,{blockHeight:n,style:Dt(Dt({},l),{},{code:$e({template:p})})},null==l?void 0:l.recordId)]}):(0,Q.jsx)("div",{children:(0,Q.jsxs)("div",{role:"button",tabIndex:0,"aria-label":(0,t.__)("Press to select","extendify"),disabled:i,className:"text-base p-0 bg-transparent overflow-hidden rounded-lg border border-gray-100 button-focus",title:i?(0,t.__)("This page is required","extendify"):null,onKeyDown:function(e){["Enter","Space"," "].includes(e.key)&&(i||f("pages",r))},onClick:function(){return i||f("pages",r)},children:[(0,Q.jsxs)("div",{className:"border-gray-100 border-b p-2 flex justify-between min-w-sm",children:[(0,Q.jsxs)("div",{className:Ze()("flex items-center",{"text-gray-700":!d("pages",r)}),children:[(0,Q.jsx)("span",{children:r.title}),i&&(0,Q.jsx)("span",{className:"w-4 h-4 text-base leading-none pl-2 mr-6 dashicons dashicons-lock"})]}),d("pages",r)&&(0,Q.jsx)(rt,{className:"text-partner-primary-bg w-6"})]}),(0,Q.jsx)(Lt,{blockHeight:n,style:Dt(Dt({},l),{},{code:$e({template:p})})},null==l?void 0:l.recordId)]})})};function Ft(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}(e,t)||Vt(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 Ht(e){return function(e){if(Array.isArray(e))return Yt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Vt(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 Vt(e,t){if(e){if("string"==typeof e)return Yt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Yt(e,t):void 0}}function Yt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function zt(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}var Wt=function(){var e,t=(e=ne().mark((function e(){var t,r,n,o,i,a;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ie.get("onboarding/layout-types");case 2:if(n=e.sent,null!=(o=null==n||null===(t=n.data)||void 0===t?void 0:t.map((function(e){return{id:e.id,slug:e.slug,title:e.title}})))&&o.length){e.next=6;break}throw new Error("Error fetching pages");case 6:return i=o[0],a=null===(r=o.slice(1))||void 0===r?void 0:r.sort((function(e,t){return e.title>t.title?1:-1})),e.abrupt("return",[i].concat(Ht(null!=a?a:[])));case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){zt(i,n,o,a,s,"next",e)}function s(e){zt(i,n,o,a,s,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}(),qt=function(){return{key:"layout-types"}};function Zt(e){return function(e){if(Array.isArray(e))return Kt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Gt(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 Jt(e){return Jt="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},Jt(e)}function Xt(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Gt(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function $t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}(e,t)||Gt(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 Gt(e,t){if(e){if("string"==typeof e)return Kt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Kt(e,t):void 0}}function Kt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Qt(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}function er(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Qt(i,n,o,a,s,"next",e)}function s(e){Qt(i,n,o,a,s,"throw",e)}a(void 0)}))}}var tr=function(){var e=er(ne().mark((function e(t){var r,n,o;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i=t,ie.get("onboarding/styles",{params:i});case 2:return o=e.sent,e.abrupt("return",null==o||null===(r=o.data)||void 0===r||null===(n=r.map((function(e){return{label:e.title,slug:e.slug,recordId:e.id,themeJson:null==e?void 0:e.themeJson,homeBaseLayout:null==e?void 0:e.homeBaseLayout,header:null==e?void 0:e.header,footer:null==e?void 0:e.footer,kit:null==e?void 0:e.kit,headerCode:null==e?void 0:e.headerCode,footerCode:null==e?void 0:e.footerCode,code:$e(e)}})))||void 0===n?void 0:n.filter((function(e){return e.code})));case 4:case"end":return e.stop()}var i}),e)})));return function(t){return e.apply(this,arguments)}}(),rr=function(e){var t,r,n;return{key:"site-style",siteType:null!==(r=null===(n=e=null!==(t=e)&&void 0!==t?t:null==Ue?void 0:Ue.getState().siteType)||void 0===n?void 0:n.slug)&&void 0!==r?r:"default"}},nr=function(e){var t=e.image,r=e.heading,n=e.name,o=e.description,i=e.selected,a=e.onClick,s=e.lock;return(0,Q.jsxs)("div",{role:s?void 0:"button",tabIndex:s?void 0:0,"aria-label":s?void 0:n,className:Ze()("text-base p-0 bg-transparent overflow-hidden rounded-lg border border-gray-100",{"button-focus":!s}),onKeyDown:function(e){["Enter","Space"," "].includes(e.key)&&(s||a())},onClick:function(){s||a()},children:[(0,Q.jsxs)("div",{className:"border-gray-100 border-b p-2 flex justify-between min-w-sm",children:[(0,Q.jsxs)("div",{className:Ze()("flex items-center",{"text-gray-700":!i}),children:[(0,Q.jsx)("span",{children:n}),s&&(0,Q.jsx)("span",{className:"w-4 h-4 text-base leading-none pl-2 mr-6 dashicons dashicons-lock"})]}),(s||i)&&(0,Q.jsx)(rt,{className:"text-partner-primary-bg w-6"})]}),(0,Q.jsxs)("div",{className:"flex flex-col",children:[(0,Q.jsx)("div",{style:{backgroundImage:"url(".concat(t,")")},className:"h-32 bg-cover"}),(0,Q.jsxs)("div",{className:"p-6 text-left",children:[(0,Q.jsx)("div",{className:"text-base font-bold mb-2",children:r}),(0,Q.jsx)("div",{className:"text-sm",children:o})]})]})]})};function or(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}function ir(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.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 r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))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 r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var sr=function(){return ie.get("onboarding/site-types")},ur=function(){return{key:"site-types"}},cr=function(t){var r=t.option,n=t.selectSiteType,o=(0,e.useRef)(0);return(0,Q.jsxs)("button",{onClick:function(){return n(r)},onMouseEnter:function(){window.clearTimeout(o.current),o.current=window.setTimeout((function(){var e=function(){return rr(r)};V(e,(function(t){return null!=t&&t.length?t:tr(e())}))}),100)},onMouseLeave:function(){window.clearTimeout(o.current)},className:"flex bg-gray-100 hover:bg-gray-200 items-center justify-between mb-2 p-4 py-3 relative w-full button-focus",children:[(0,Q.jsx)("span",{children:r.title}),(0,Q.jsx)(ut,{})]})},lr=[["landing",{component:function(){var r=fr((function(e){return e.nextPage})),n=(0,e.useRef)(null);(0,e.useEffect)((function(){var e=requestAnimationFrame((function(){return n.current.focus()}));return function(){return cancelAnimationFrame(e)}}),[n]);var o=function(){var e,t=(e=ne().mark((function e(t){return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),e.next=3,le("extendify_onboarding_skipped",(new Date).toISOString());case 3:location.href=window.extOnbData.adminUrl;case 4:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Ve(i,n,o,a,s,"next",e)}function s(e){Ve(i,n,o,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}();return(0,Q.jsxs)(hr,{children:[(0,Q.jsxs)("div",{children:[(0,Q.jsx)("h1",{className:"text-3xl text-white mb-4 mt-0",children:(0,t.__)("Welcome to Your WordPress Site","extendify")}),(0,Q.jsx)("p",{className:"text-base opacity-70",children:(0,t.__)("Design and launch your site with our guided experience, or jump right to the WordPress dashboard if you already know what you're doing.","extendify")})]}),(0,Q.jsxs)("div",{className:"",children:[(0,Q.jsx)("p",{className:"mt-0 mb-8 text-base",children:(0,t.__)("Pick one:","extendify")}),(0,Q.jsxs)("div",{className:"lg:flex lg:space-x-8",children:[(0,Q.jsxs)("button",{onClick:r,ref:n,type:"button","aria-label":(0,t.__)("Press to continue","extendify"),className:"button-card max-w-sm button-focus",children:[(0,Q.jsx)("div",{className:"bg-gray-100 w-full h-64 bg-cover border border-gray-200",style:{backgroundImage:"url(".concat(window.extOnbData.pluginUrl,"/public/assets/extendify-preview.png)")}}),(0,Q.jsx)("p",{className:"font-bold text-lg text-gray-900",children:(0,t.__)("Extendify Launch","extendify")}),(0,Q.jsx)("p",{className:"text-base text-gray-900",children:(0,t.__)("Create a super-fast, beautiful, and fully customized site in minutes. Simply answer a few questions and pick a design to get started. Then, everything can be fully customized in the core WordPress editor.","extendify")})]}),(0,Q.jsxs)("a",{onClick:function(e){return o(e)},className:"button-card max-w-sm button-focus",children:[(0,Q.jsx)("div",{className:"bg-gray-100 w-full h-64 bg-cover border border-gray-200",style:{backgroundImage:"url(".concat(window.extOnbData.pluginUrl,"/public/assets/wp-admin.png)")}}),(0,Q.jsx)("p",{className:"font-bold text-lg text-gray-900",children:(0,t.__)("WordPress Dashboard","extendify")}),(0,Q.jsx)("p",{className:"text-base text-gray-900",children:(0,t.__)("Are you a WordPress developer and want to go straight to the admin dashboard?","extendify")})]})]})]})]})}}],["site-information",{component:function(){var r,n=Ue(),o=n.siteInformation,i=n.setSiteInformation,a=(0,e.useRef)(null),s=fr((function(e){return e.nextPage})),u=Ae(We,ze).data;return(0,e.useEffect)((function(){var e=requestAnimationFrame((function(){return a.current.focus()}));return function(){return cancelAnimationFrame(e)}}),[a]),(0,e.useEffect)((function(){null!=u&&u.title&&i("title",u.title)}),[u,i]),(0,Q.jsxs)(hr,{children:[(0,Q.jsxs)("div",{children:[(0,Q.jsx)("h1",{className:"text-3xl text-white mb-4 mt-0",children:(0,t.__)("What's the name of your new site?","extendify")}),(0,Q.jsx)("p",{className:"text-base opacity-70",children:(0,t.__)("You can change this later.","extendify")})]}),(0,Q.jsx)("div",{className:"w-full",children:(0,Q.jsxs)("form",{onSubmit:function(e){e.preventDefault(),s()},children:[(0,Q.jsx)("label",{htmlFor:"extendify-site-title-input",className:"block mt-0 mb-8 text-base",children:(0,t.__)("What's the name of your site?","extendify")}),(0,Q.jsx)("div",{className:"mb-8",children:(0,Q.jsx)("input",{autoComplete:"off",ref:a,type:"text",name:"site-title-input",id:"extendify-site-title-input",className:"w-96 max-w-full border h-12 input-focus",value:null!==(r=null==o?void 0:o.title)&&void 0!==r?r:"",onChange:function(e){return i("title",e.target.value)},placeholder:(0,t.__)("Enter your preferred site title...","extendify")})})]})})]})},fetcher:ze,fetchData:We}],["site-type-select",{component:function(){var r=Ue((function(e){return e.siteType})),n=fr((function(e){return e.nextPage})),o=ir((0,e.useState)([]),2),i=o[0],a=o[1],s=ir((0,e.useState)(""),2),u=s[0],c=s[1],l=ir((0,e.useState)(!0),2),f=l[0],d=l[1],h=(0,e.useRef)(null),p=Ae(ur,sr),y=p.data,v=p.loading;(0,e.useEffect)((function(){var e=requestAnimationFrame((function(){return h.current.focus()}));return function(){return cancelAnimationFrame(e)}}),[h]),(0,e.useEffect)((function(){if(!(v||null!=r&&r.slug)){var e=null==y?void 0:y.find((function(e){return"default"===e.slug}));e&&Ue.getState().setSiteType({label:e.title,recordId:e.id,slug:e.slug})}}),[v,null==r?void 0:r.slug,y]),(0,e.useEffect)((function(){v||((null==u?void 0:u.length)>0?a(null==y?void 0:y.filter((function(e){var t=e.title,r=e.keywords,n=null==u?void 0:u.toLowerCase();return!n||(t.toLowerCase().indexOf(n)>-1||!(null==r||!r.length)&&r.find((function(e){return e.toLowerCase().indexOf(n)>-1})))}))):(a(null==y?void 0:y.filter((function(e){return e.featured}))),d(!0)))}),[y,u,v]),(0,e.useEffect)((function(){v||a(f?y.filter((function(e){return e.featured})):y)}),[y,f,v]);var m=function(){var e,t=(e=ne().mark((function e(t){return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Ue.getState().setSiteType({label:t.title,recordId:t.id,slug:t.slug}),window.localStorage.removeItem("extendify-global-state"),e.next=4,r={siteType:{title:t.title,slug:t.slug}},ie.post("library/site-type",r);case 4:n();case 5:case"end":return e.stop()}var r}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){or(i,n,o,a,s,"next",e)}function s(e){or(i,n,o,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}();return(0,Q.jsxs)(hr,{children:[(0,Q.jsxs)("div",{children:[(0,Q.jsx)("h1",{className:"text-3xl text-white mb-4 mt-0",children:(0,t.__)("What is your site about?","extendify")}),(0,Q.jsx)("p",{className:"text-base opacity-70",children:(0,t.__)("Search for the industry that best suits your site.","extendify")})]}),(0,Q.jsxs)("div",{className:"w-80",children:[(0,Q.jsx)("p",{className:"mt-0 mb-8 text-base",children:(0,t.__)("Choose a site industry:","extendify")}),(0,Q.jsxs)("div",{className:"search-panel flex items-center justify-center relative mb-8",children:[(0,Q.jsx)("input",{ref:h,type:"text",className:"w-full border h-12 input-focus",value:u,onChange:function(e){return c(e.target.value)},placeholder:(0,t.__)("Search...","extendify")}),(0,Q.jsx)(St,{className:"icon-search"})]}),v&&(0,Q.jsx)("p",{children:(0,t.__)("Loading...","extendify")}),(null==i?void 0:i.length)>0&&(0,Q.jsxs)("div",{children:[(0,Q.jsxs)("div",{className:"flex justify-between mb-3",children:[(0,Q.jsx)("p",{className:"text-left uppercase text-xss m-0",children:(0,t.__)("Industries","extendify")}),(null==u?void 0:u.length)>0?null:(0,Q.jsx)("button",{type:"button",className:"bg-transparent hover:text-partner-primary-bg p-0 text-partner-primary-bg text-xs underline",onClick:function(){d((function(e){return!e})),h.current.focus()},children:f?(0,t.__)("Show all","extendify"):(0,t.__)("Show less","extendify")})]}),(0,Q.jsx)("div",{className:"overflow-y-auto p-2 -m-2",style:{maxHeight:"360px"},children:i.map((function(e){return(0,Q.jsx)(cr,{selectSiteType:m,option:e},e.id)}))})]})]})]})},fetcher:sr,fetchData:ur}],["goals",{component:function(){var r=Ae(He,Fe),n=r.data,o=r.loading,i=Ue(),a=i.toggle,s=i.has,u=fr((function(e){return e.nextPage})),c=(0,e.useRef)();return(0,e.useEffect)((function(){if(c.current){var e=requestAnimationFrame((function(){return c.current.querySelector("input").focus()}));return function(){return cancelAnimationFrame(e)}}}),[c]),(0,Q.jsxs)(hr,{children:[(0,Q.jsxs)("div",{children:[(0,Q.jsx)("h1",{className:"text-3xl text-white mb-4 mt-0",children:(0,t.__)("What do you want to accomplish with this new site?","extendify")}),(0,Q.jsx)("p",{className:"text-base opacity-70",children:(0,t.__)("You can change these later.","extendify")})]}),(0,Q.jsxs)("div",{className:"w-full",children:[(0,Q.jsx)("p",{className:"mt-0 mb-8 text-base",children:(0,t.__)("Select the goals relevant to your site:","extendify")}),o?(0,Q.jsx)("p",{children:(0,t.__)("Loading...","extendify")}):(0,Q.jsxs)("form",{onSubmit:function(e){e.preventDefault(),u()},className:"w-full max-w-2xl grid lg:grid-cols-2 gap-4 goal-select",children:[(0,Q.jsx)("input",{type:"submit",className:"hidden"}),n&&(null==n?void 0:n.map((function(e,t){return(0,Q.jsx)("div",{className:"border p-4",ref:0===t?c:void 0,children:(0,Q.jsx)(K.CheckboxControl,{label:e.title,checked:s("goals",e),onChange:function(){return a("goals",e)}})},e.id)})))]})]})]})},fetcher:Fe,fetchData:He}],["site-style-select",{component:function(){var r,n=Ue((function(e){return e.siteType})),o=fr((function(e){return e.nextPage})),i=Ae(rr,tr),a=i.data,s=i.loading,u=function(){var t=(0,e.useRef)(!1);return(0,e.useLayoutEffect)((function(){return t.current=!0,function(){return t.current=!1}})),t}(),c=(0,e.useCallback)((function(e){Ue.getState().setStyle(e),o()}),[o]),l=$t((0,e.useState)([]),2),f=l[0],d=l[1];return(0,e.useEffect)((function(){null!=a&&a.length&&er(ne().mark((function e(){var t,r,n,o;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=Xt(a),e.prev=1,n=ne().mark((function e(){var t;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=r.value,u.current){e.next=3;break}return e.abrupt("return",{v:void 0});case 3:return d((function(e){return[].concat(Zt(e),[t])})),e.next=6,new Promise((function(e){return setTimeout(e,1e3)}));case 6:case"end":return e.stop()}}),e)})),t.s();case 4:if((r=t.n()).done){e.next=11;break}return e.delegateYield(n(),"t0",6);case 6:if("object"!==Jt(o=e.t0)){e.next=9;break}return e.abrupt("return",o.v);case 9:e.next=4;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e.catch(1),t.e(e.t1);case 16:return e.prev=16,t.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[1,13,16,19]])})))()}),[a,u]),(0,e.useEffect)((function(){null!=f&&f.length&&!Ue.getState().style&&Ue.getState().setStyle(f[0])}),[f]),(0,Q.jsxs)(hr,{children:[(0,Q.jsxs)("div",{children:[(0,Q.jsx)("h1",{className:"text-3xl text-white mb-4 mt-0",children:(0,t.sprintf)((0,t.__)("Now pick a design for your new %s site.","extendify"),null==n||null===(r=n.label)||void 0===r?void 0:r.toLowerCase())}),(0,Q.jsx)("p",{className:"text-base opacity-70",children:(0,t.__)("You can personalize this later.","extendify")})]}),(0,Q.jsxs)("div",{className:"w-full",children:[(0,Q.jsx)("p",{className:"mt-0 mb-8 text-base",children:s?(0,t.__)("Please wait a moment while we generate style previews...","extendify"):(0,t.__)("Pick your style","extendify")}),(0,Q.jsxs)("div",{className:"lg:flex space-y-6 -m-6 lg:space-y-0 flex-wrap",children:[null==f?void 0:f.map((function(e){return(0,Q.jsx)("div",{className:"p-6 relative",style:{height:590,width:425},children:(0,Q.jsx)(Lt,{style:e,selectStyle:c,blockHeight:590})},e.recordId)})),null==a?void 0:a.slice(null==f?void 0:f.length).map((function(e){return(0,Q.jsx)("div",{style:{height:590,width:425},className:"p-6 relative",children:(0,Q.jsx)("div",{className:"bg-gray-50 h-full w-full flex items-center justify-center",children:(0,Q.jsx)(Tt,{className:"spin w-8"})})},e.slug)}))]})]})]})}}],["site-pages-select",{component:function(){var r=Ae(qt,Wt).data,n=Ft((0,e.useState)(!1),2),o=n[0],i=n[1],a=Ue(),s=a.pages,u=a.add,c=a.remove;return(0,e.useEffect)((function(){i((null==s?void 0:s.length)===(null==r?void 0:r.length))}),[s,r]),(0,e.useEffect)((function(){null==r||r.map((function(e){return u("pages",e)}))}),[r,u]),(0,Q.jsxs)(hr,{children:[(0,Q.jsxs)("div",{children:[(0,Q.jsx)("h1",{className:"text-3xl text-white mb-4 mt-0",children:(0,t.__)("What pages do you want on this site?","extendify")}),(0,Q.jsx)("p",{className:"text-base opacity-70",children:(0,t.__)("You may add more later","extendify")})]}),(0,Q.jsxs)("div",{className:"w-full",children:[(0,Q.jsxs)("div",{className:"flex justify-between",children:[(0,Q.jsx)("p",{className:"mt-0 mb-8 text-base",children:(0,t.__)("Pick the pages you'd like to add to your site","extendify")}),(0,Q.jsx)(K.CheckboxControl,{label:(0,t.__)("Include all pages","extendify"),checked:o,onChange:function(){null==r||r.map((function(e){"home"!==e.slug&&(o?c("pages",e):u("pages",e))}))}})]}),(0,Q.jsx)("div",{className:"lg:flex space-y-6 -m-8 lg:space-y-0 flex-wrap",children:null==r?void 0:r.map((function(e){return(0,Q.jsx)("div",{className:"p-8 relative",style:{height:442.5,width:318.75},children:(0,Q.jsx)(Ut,{lock:"home"===(null==e?void 0:e.slug),page:e,blockHeight:442.5})},e.id)}))})]})]})},fetcher:Wt,fetchData:qt}],["site-summary",{component:function(){var e=Ue(),r=e.siteType,n=e.style,o=e.pages,i=e.plugins,a=fr((function(e){return e.setPage}));return(0,Q.jsxs)(hr,{children:[(0,Q.jsxs)("div",{children:[(0,Q.jsx)("h1",{className:"text-3xl text-white mb-4 mt-0",children:(0,t.__)("Let's launch your site!","extendify")}),(0,Q.jsx)("p",{className:"text-base",children:(0,t.__)("Review your site configuration.","extendify")})]}),(0,Q.jsxs)("div",{className:"w-full",children:[(0,Q.jsx)("p",{className:"mt-0 mb-8 text-base",children:(0,t.__)("Site settings","extendify")}),(0,Q.jsxs)("div",{className:"flex flex-col space-y-8",children:[(0,Q.jsxs)("div",{className:"flex items-center",children:[(0,Q.jsx)("div",{className:"w-20 flex-shrink-0 text-base",children:(0,t.__)("Industry:","extendify")}),null!=r&&r.label?(0,Q.jsx)("div",{className:"p-4 py-2 rounded-lg text-base flex bg-transparent border border-gray-600 cursor-pointer",onClick:function(){return a("site-type-select")},title:(0,t.__)("Press to change the site type","extendify"),children:r.label}):(0,Q.jsx)("button",{onClick:function(){return a("site-type-select")},className:"bg-transparent text-partner-primary underline text-base",children:(0,t.__)("Press to set a site type","extendify")})]}),(0,Q.jsxs)("div",{className:"flex items-start",children:[(0,Q.jsx)("div",{className:"w-20 flex-shrink-0 text-base",children:(0,t.__)("Style:","extendify")}),null!=n&&n.label?(0,Q.jsx)("div",{className:"cursor-pointer overflow-hidden border rounded-lg",onClick:function(){return a("site-style-select")},title:(0,t.__)("Press to change the site style","extendify"),children:(0,Q.jsx)("div",{className:"p-2 relative",style:{height:354,width:255},children:(0,Q.jsx)(Lt,{style:n,blockHeight:354})},n.recordId)}):(0,Q.jsx)("button",{onClick:function(){return a("site-style-select")},className:"bg-transparent text-partner-primary underline text-base",children:(0,t.__)("Press to set a style type","extendify")})]}),(0,Q.jsxs)("div",{className:"flex items-start",children:[(0,Q.jsx)("div",{className:"w-20 flex-shrink-0 text-base",children:(0,t.__)("Pages:","extendify")}),o.length>0?(0,Q.jsx)("div",{className:"flex items-start space-x-2 cursor-pointer w-full",onClick:function(){return a("site-pages-select")},title:(0,t.__)("Press to change the selected pages","extendify"),children:(0,Q.jsx)("div",{className:"lg:flex space-y-6 -m-8 lg:space-y-0 flex-wrap",children:null==o?void 0:o.map((function(e){return(0,Q.jsx)("div",{className:"p-8 relative",style:{height:354,width:255},children:(0,Q.jsx)(Ut,{displayOnly:!0,page:e,blockHeight:175})},e.id)}))})}):(0,Q.jsx)("button",{onClick:function(){return a("site-pages-select")},className:"bg-transparent text-partner-primary underline text-base",children:(0,t.__)("Press to set your pages","extendify")})]}),i.length>0?(0,Q.jsxs)("div",{className:"flex items-start",children:[(0,Q.jsx)("div",{className:"w-20 flex-shrink-0 text-base",children:(0,t.__)("Plugins:","extendify")}),(0,Q.jsx)("div",{className:"flex items-start space-x-2 cursor-pointer w-full",onClick:function(){return a("suggested-plugins")},title:(0,t.__)("Press to change the selected plugins","extendify"),children:(0,Q.jsx)("div",{className:"grid w-full grid-cols-3 gap-4",children:i.map((function(e){return(0,Q.jsx)(nr,{lock:!0,image:(t=e.previewImage,null==t||null===(r=t[0])||void 0===r||null===(n=r.url)||void 0===n||null===(o=n.split(/[?#]/))||void 0===o?void 0:o[0]),name:e.name,heading:e.heading,description:e.description},e.id);var t,r,n,o}))})})]}):null]})]})]})}}]],fr=be(we((function(e,t){return{pages:new Map(lr),currentPageIndex:0,count:function(){return t().pages.size},pageOrder:function(){return Array.from(t().pages.keys())},currentPageData:function(){return t().pages.get(t().pageOrder()[t().currentPageIndex])},nextPageData:function(){var e=t().currentPageIndex+1;return e>t().pageOrder().length-1?{}:t().pages.get(t().pageOrder()[e])},setPage:function(r){"string"==typeof r&&(r=t().pageOrder().indexOf(r)),r>t().pageOrder().length-1||r<0||e({currentPageIndex:r})},nextPage:function(){t().setPage(t().currentPageIndex+1)},previousPage:function(){t().setPage(t().currentPageIndex-1)}}}))),dr=function(){var e=fr((function(e){return e.nextPage})),r=fr((function(e){return e.previousPage})),n=fr((function(e){return e.currentPageIndex})),o=fr((function(e){return e.count()})),i=Ue((function(e){return e.canLaunch()})),a=n===o-1,s=0===n;return(0,Q.jsxs)("div",{className:"flex items-center justify-between space-x-2",children:[(0,Q.jsx)("div",{className:"flex-1"}),(0,Q.jsx)(ve,{currentPageIndex:n,totalPages:o}),(0,Q.jsxs)("div",{className:"flex space-x-2 flex-1 justify-end",children:[s||(0,Q.jsx)("button",{className:"px-4 py-3 bg-transparent hover:bg-gray-200 font-medium button-focus focus:bg-gray-100",type:"button",onClick:r,children:(0,t.__)("Previous","extendify")}),i&&a?(0,Q.jsx)("button",{className:"px-4 py-3 font-bold bg-partner-primary-bg text-partner-primary-text button-focus",type:"button",onClick:function(){return Ne.setState({generating:!0})},children:(0,t.__)("Launch site","extendify")}):(0,Q.jsx)("button",{className:"px-4 py-3 font-bold bg-partner-primary-bg text-partner-primary-text button-focus",type:"button",onClick:e,children:(0,t.__)("Next","extendify")})]})]})},hr=function(e){var r,n,o,i=e.children,a=e.includeNav,s=void 0===a||a;return(0,Q.jsxs)("div",{className:"flex flex-col md:flex-row",children:[(0,Q.jsxs)("div",{className:"bg-partner-primary-bg text-partner-primary-text py-12 px-10 md:h-screen flex flex-col justify-between md:w-40vw md:max-w-md flex-shrink-0",children:[(0,Q.jsxs)("div",{className:"max-w-sm pr-8",children:[(null===(r=window.extOnbData)||void 0===r?void 0:r.partnerLogo)&&(0,Q.jsx)("div",{className:"pb-8",children:(0,Q.jsx)("img",{src:window.extOnbData.partnerLogo,alt:null!==(n=null===(o=window.extOnbData)||void 0===o?void 0:o.partnerName)&&void 0!==n?n:""})}),i[0]]}),(0,Q.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,Q.jsx)("span",{className:"opacity-70 text-xs",children:(0,t.__)("Powered by","extendify")}),(0,Q.jsxs)("span",{className:"relative",children:[(0,Q.jsx)(pt,{className:"logo text-white w-28"}),(0,Q.jsx)("span",{className:"absolute -bottom-2 right-3 font-semibold tracking-tight",children:(0,t.__)("Launch","extendify")})]})]})]}),(0,Q.jsxs)("div",{className:"flex-grow md:h-screen md:overflow-y-scroll",children:[s?(0,Q.jsx)("div",{className:"py-4 px-8 sticky top-0 bg-white z-50",children:(0,Q.jsx)(dr,{})}):null,(0,Q.jsx)("div",{className:"mt-8 p-8 lg:px-12 flex justify-center",children:i[1]})]})]})};function pr(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return yr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yr(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function yr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function vr(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}var mr=function(){var e,t=(e=ne().mark((function e(t,r,n){var o,i,a,s,u,c,l,f,d,h;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o={},i=pr(t),e.prev=2,i.s();case 4:if((a=i.n()).done){e.next=18;break}return s=a.value,e.next=8,se({siteType:r.slug,layoutType:s.slug,baseLayout:"home"===s.slug?null==n?void 0:n.homeBaseLayout:null,kit:"home"!==s.slug?null==n?void 0:n.kit:null});case 8:return u=e.sent,c="",null!=u&&u.data&&(c=[null==u||null===(l=u.data)||void 0===l?void 0:l.code,null==u||null===(f=u.data)||void 0===f?void 0:f.code2].filter(Boolean).join("")),d=s.slug,e.next=14,de({title:s.title,name:d,status:"publish",content:c});case 14:h=e.sent,o[d]={id:h.id,title:s.title};case 16:e.next=4;break;case 18:e.next=23;break;case 20:e.prev=20,e.t0=e.catch(2),i.e(e.t0);case 23:return e.prev=23,i.f(),e.finish(23);case 26:if(null==o||!o.home){e.next=34;break}return e.next=29,le("show_on_front","page");case 29:return e.next=31,le("page_on_front",o.home.id);case 31:if(null==o||!o.blog){e.next=34;break}return e.next=34,le("page_for_posts",o.blog);case 34:return e.next=36,le("extendify_onboarding_completed",(new Date).toISOString());case 36:return e.abrupt("return",o);case 37:case"end":return e.stop()}}),e,null,[[2,20,23,26]])})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){vr(i,n,o,a,s,"next",e)}function s(e){vr(i,n,o,a,s,"throw",e)}a(void 0)}))});return function(e,r,n){return t.apply(this,arguments)}}(),gr=function(e){return function(e){return ie.post("onboarding/save-theme-json",{themeJson:e})}(e.themeJson)},br=function(){return(0,Q.jsxs)(hr,{includeNav:!1,children:[(0,Q.jsx)("div",{children:(0,Q.jsx)("h1",{className:"text-3xl text-white mb-4 mt-0",children:(0,t.__)("We encountered an error.","extendify")})}),(0,Q.jsxs)("div",{className:"w-full",children:[(0,Q.jsx)("p",{className:"mt-0 mb-8 text-base",children:(0,t.__)("We encountered an error that we can't recover from. You can attempt to start over by pressing the button below.","extendify")}),(0,Q.jsx)("div",{className:"flex flex-col items-start space-y-4 text-base",children:(0,Q.jsx)("a",{href:"".concat(window.extOnbData.site,"/wp-admin/post-new.php?extendify=onboarding"),children:(0,t.__)("Start over")})})]})]})};function wr(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}function xr(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){wr(i,n,o,a,s,"next",e)}function s(e){wr(i,n,o,a,s,"throw",e)}a(void 0)}))}}function jr(e){return function(e){if(Array.isArray(e))return Sr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Er(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 Or(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}(e,t)||Er(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 Er(e,t){if(e){if("string"==typeof e)return Sr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Sr(e,t):void 0}}function Sr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var _r=function(){var r=Ue((function(e){return e.canLaunch()})),n=Ue(),o=n.siteType,i=n.siteInformation,a=n.pages,s=n.style,u=n.goals,c=n.plugins,l=Or((0,e.useState)([]),2),f=l[0],d=l[1],h=(0,te.useSelect)((function(e){return e("core").getCurrentTheme()})),p=function(e){return d((function(t){return[e].concat(jr(t))}))};(0,e.useEffect)((function(){var e=function(e){return e.preventDefault(),e.returnValue=""},t={capture:!0};return window.addEventListener("beforeunload",e,t),function(){window.removeEventListener("beforeunload",e,t)}}),[]);var y=(0,e.useCallback)(xr(ne().mark((function e(){var n;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r){e.next=2;break}throw new Error((0,t.__)("Site is not ready to launch.","extendify"));case 2:return p((0,t.__)("Preparing your website","extendify")),e.next=5,le("blogname",i.title);case 5:return e.next=7,new Promise((function(e){return setTimeout(e,2e3)}));case 7:return p((0,t.__)("Installing your theme","extendify")),e.next=10,gr(s);case 10:if(null==c||!c.length){e.next=14;break}return p((0,t.__)("Installing plugins","extendify")),e.next=14,Promise.all([].concat(jr(c.map((function(e){return he(e.wordpressSlug)}))),[new Promise((function(e){return setTimeout(e,2e3)}))]));case 14:return e.next=16,gr(s);case 16:return e.next=18,new Promise((function(e){return setTimeout(e,2e3)}));case 18:return p((0,t.__)("Inserting header area","extendify")),e.next=21,ye("".concat(null==h?void 0:h.stylesheet,"//header"),null==s?void 0:s.headerCode);case 21:return e.next=23,new Promise((function(e){return setTimeout(e,2e3)}));case 23:return p((0,t.__)("Generating page content","extendify")),e.next=26,mr(a,o,s);case 26:return n=e.sent,e.next=29,new Promise((function(e){return setTimeout(e,2e3)}));case 29:return p((0,t.__)("Inserting footer area","extendify")),e.next=32,ye("".concat(null==h?void 0:h.stylesheet,"//footer"),null==s?void 0:s.footerCode);case 32:return e.next=34,new Promise((function(e){return setTimeout(e,2e3)}));case 34:return p((0,t.__)("Finalizing your site","extendify")),e.next=37,l={siteType:[o.recordId],style:[s.recordId],pages:null==a?void 0:a.map((function(e){return e.id})),goals:null==u?void 0:u.map((function(e){return e.id}))},ie.post("onboarding/orders",l);case 37:return e.abrupt("return",n);case 38:case"end":return e.stop()}var l}),e)}))),[a,u,c,o,s,r,null==h?void 0:h.stylesheet,i.title]);return(0,e.useEffect)((function(){null!=h&&h.stylesheet&&y().then((function(e){Ne.setState({generatedPages:e})}))}),[y,null==h?void 0:h.stylesheet]),r?(0,Q.jsxs)(hr,{includeNav:!1,children:[(0,Q.jsxs)("div",{children:[(0,Q.jsx)("h1",{className:"text-3xl text-white mb-4 mt-0",children:(0,t.__)("Building your site now!","extendify")}),(0,Q.jsx)("p",{className:"text-base",children:(0,t.__)("Please don't close the window.","extendify")})]}),(0,Q.jsx)("div",{className:"w-full",children:(0,Q.jsx)("div",{className:"flex flex-col items-start space-y-4",children:f.map((function(e,r){return r?(0,Q.jsxs)("div",{className:"ml-12 text-base text-gray-500 flex",children:[(0,Q.jsx)(rt,{className:"text-green-500 w-6 mr-1"}),(0,t.sprintf)(e,"...")]},e):(0,Q.jsxs)("div",{className:"text-4xl flex space-x-4 items-center",children:[(0,Q.jsx)(Tt,{className:"spin w-10 mr-2"}),(0,t.sprintf)(e,"...")]},e)}))})})]}):(0,Q.jsx)(br,{})};function Pr(e){return(function(e){let t;try{t=new URL(e,"http://example.com").search.substring(1)}catch(e){}if(t)return t}(e)||"").replace(/\+/g,"%20").split("&").reduce(((e,t)=>{const[r,n=""]=t.split("=").filter(Boolean).map(decodeURIComponent);if(r){!function(e,t,r){const n=t.length,o=n-1;for(let i=0;i<n;i++){let n=t[i];!n&&Array.isArray(e)&&(n=e.length.toString()),n=["__proto__","constructor","prototype"].includes(n)?n.toUpperCase():n;const a=!isNaN(Number(t[i+1]));e[n]=i===o?r:e[n]||(a?[]:{}),Array.isArray(e[n])&&!a&&(e[n]={...e[n]}),e=e[n]}}(e,r.replace(/\]/g,"").split("["),n)}return e}),Object.create(null))}function Cr(e){let t="";const r=Object.entries(e);let n;for(;n=r.shift();){let[e,o]=n;if(Array.isArray(o)||o&&o.constructor===Object){const t=Object.entries(o).reverse();for(const[n,o]of t)r.unshift([`${e}[${n}]`,o])}else void 0!==o&&(null===o&&(o=""),t+="&"+[e,o].map(encodeURIComponent).join("="))}return t.substr(1)}function Nr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if(!t||!Object.keys(t).length)return e;let r=e;const n=e.indexOf("?");return-1!==n&&(t=Object.assign(Pr(e),t),r=r.substr(0,n)),r+"?"+Cr(t)}var Ar={};!function e(t,r,n,o){var i=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL);function a(){}function s(e){var n=r.exports.Promise,o=void 0!==n?n:t.Promise;return"function"==typeof o?new o(e):(e(a,a),null)}var u,c,l,f,d,h,p,y,v,m=(l=Math.floor(1e3/60),f={},d=0,"function"==typeof requestAnimationFrame&&"function"==typeof cancelAnimationFrame?(u=function(e){var t=Math.random();return f[t]=requestAnimationFrame((function r(n){d===n||d+l-1<n?(d=n,delete f[t],e()):f[t]=requestAnimationFrame(r)})),t},c=function(e){f[e]&&cancelAnimationFrame(f[e])}):(u=function(e){return setTimeout(e,l)},c=function(e){return clearTimeout(e)}),{frame:u,cancel:c}),g=(y={},function(){if(h)return h;if(!n&&i){var t=["var CONFETTI, SIZE = {}, module = {};","("+e.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {"," if (msg.data.options) {"," CONFETTI(msg.data.options).then(function () {"," if (msg.data.callback) {"," postMessage({ callback: msg.data.callback });"," }"," });"," } else if (msg.data.reset) {"," CONFETTI.reset();"," } else if (msg.data.resize) {"," SIZE.width = msg.data.resize.width;"," SIZE.height = msg.data.resize.height;"," } else if (msg.data.canvas) {"," SIZE.width = msg.data.canvas.width;"," SIZE.height = msg.data.canvas.height;"," CONFETTI = module.exports.create(msg.data.canvas);"," }","}"].join("\n");try{h=new Worker(URL.createObjectURL(new Blob([t])))}catch(e){return void 0!==typeof console&&"function"==typeof console.warn&&console.warn("🎊 Could not load worker",e),null}!function(e){function t(t,r){e.postMessage({options:t||{},callback:r})}e.init=function(t){var r=t.transferControlToOffscreen();e.postMessage({canvas:r},[r])},e.fire=function(r,n,o){if(p)return t(r,null),p;var i=Math.random().toString(36).slice(2);return p=s((function(n){function a(t){t.data.callback===i&&(delete y[i],e.removeEventListener("message",a),p=null,o(),n())}e.addEventListener("message",a),t(r,i),y[i]=a.bind(null,{data:{callback:i}})}))},e.reset=function(){for(var t in e.postMessage({reset:!0}),y)y[t](),delete y[t]}}(h)}return h}),b={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function w(e,t,r){return function(e,t){return t?t(e):e}(e&&null!=e[t]?e[t]:b[t],r)}function x(e){return e<0?0:Math.floor(e)}function j(e){return parseInt(e,16)}function O(e){return e.map(E)}function E(e){var t=String(e).replace(/[^0-9a-f]/gi,"");return t.length<6&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),{r:j(t.substring(0,2)),g:j(t.substring(2,4)),b:j(t.substring(4,6))}}function S(e){e.width=document.documentElement.clientWidth,e.height=document.documentElement.clientHeight}function _(e){var t=e.getBoundingClientRect();e.width=t.width,e.height=t.height}function P(e,t,r,i,a){var u,c,l=t.slice(),f=e.getContext("2d"),d=s((function(t){function s(){u=c=null,f.clearRect(0,0,i.width,i.height),a(),t()}u=m.frame((function t(){!n||i.width===o.width&&i.height===o.height||(i.width=e.width=o.width,i.height=e.height=o.height),i.width||i.height||(r(e),i.width=e.width,i.height=e.height),f.clearRect(0,0,i.width,i.height),l=l.filter((function(e){return function(e,t){t.x+=Math.cos(t.angle2D)*t.velocity+t.drift,t.y+=Math.sin(t.angle2D)*t.velocity+t.gravity,t.wobble+=t.wobbleSpeed,t.velocity*=t.decay,t.tiltAngle+=.1,t.tiltSin=Math.sin(t.tiltAngle),t.tiltCos=Math.cos(t.tiltAngle),t.random=Math.random()+2,t.wobbleX=t.x+10*t.scalar*Math.cos(t.wobble),t.wobbleY=t.y+10*t.scalar*Math.sin(t.wobble);var r=t.tick++/t.totalTicks,n=t.x+t.random*t.tiltCos,o=t.y+t.random*t.tiltSin,i=t.wobbleX+t.random*t.tiltCos,a=t.wobbleY+t.random*t.tiltSin;return e.fillStyle="rgba("+t.color.r+", "+t.color.g+", "+t.color.b+", "+(1-r)+")",e.beginPath(),"circle"===t.shape?e.ellipse?e.ellipse(t.x,t.y,Math.abs(i-n)*t.ovalScalar,Math.abs(a-o)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI):function(e,t,r,n,o,i,a,s,u){e.save(),e.translate(t,r),e.rotate(i),e.scale(n,o),e.arc(0,0,1,a,s,u),e.restore()}(e,t.x,t.y,Math.abs(i-n)*t.ovalScalar,Math.abs(a-o)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI):(e.moveTo(Math.floor(t.x),Math.floor(t.y)),e.lineTo(Math.floor(t.wobbleX),Math.floor(o)),e.lineTo(Math.floor(i),Math.floor(a)),e.lineTo(Math.floor(n),Math.floor(t.wobbleY))),e.closePath(),e.fill(),t.tick<t.totalTicks}(f,e)})),l.length?u=m.frame(t):s()})),c=s}));return{addFettis:function(e){return l=l.concat(e),d},canvas:e,promise:d,reset:function(){u&&m.cancel(u),c&&c()}}}function C(e,r){var n,o=!e,a=!!w(r||{},"resize"),u=w(r,"disableForReducedMotion",Boolean),c=i&&!!w(r||{},"useWorker")?g():null,l=o?S:_,f=!(!e||!c)&&!!e.__confetti_initialized,d="function"==typeof matchMedia&&matchMedia("(prefers-reduced-motion)").matches;function h(t,r,o){for(var i,a,s,u,c,f=w(t,"particleCount",x),d=w(t,"angle",Number),h=w(t,"spread",Number),p=w(t,"startVelocity",Number),y=w(t,"decay",Number),v=w(t,"gravity",Number),m=w(t,"drift",Number),g=w(t,"colors",O),b=w(t,"ticks",Number),j=w(t,"shapes"),E=w(t,"scalar"),S=function(e){var t=w(e,"origin",Object);return t.x=w(t,"x",Number),t.y=w(t,"y",Number),t}(t),_=f,C=[],N=e.width*S.x,A=e.height*S.y;_--;)C.push((i={x:N,y:A,angle:d,spread:h,startVelocity:p,color:g[_%g.length],shape:j[(u=0,c=j.length,Math.floor(Math.random()*(c-u))+u)],ticks:b,decay:y,gravity:v,drift:m,scalar:E},a=void 0,s=void 0,a=i.angle*(Math.PI/180),s=i.spread*(Math.PI/180),{x:i.x,y:i.y,wobble:10*Math.random(),wobbleSpeed:Math.min(.11,.1*Math.random()+.05),velocity:.5*i.startVelocity+Math.random()*i.startVelocity,angle2D:-a+(.5*s-Math.random()*s),tiltAngle:(.5*Math.random()+.25)*Math.PI,color:i.color,shape:i.shape,tick:0,totalTicks:i.ticks,decay:i.decay,drift:i.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:3*i.gravity,ovalScalar:.6,scalar:i.scalar}));return n?n.addFettis(C):(n=P(e,C,l,r,o)).promise}function p(r){var i=u||w(r,"disableForReducedMotion",Boolean),p=w(r,"zIndex",Number);if(i&&d)return s((function(e){e()}));o&&n?e=n.canvas:o&&!e&&(e=function(e){var t=document.createElement("canvas");return t.style.position="fixed",t.style.top="0px",t.style.left="0px",t.style.pointerEvents="none",t.style.zIndex=e,t}(p),document.body.appendChild(e)),a&&!f&&l(e);var y={width:e.width,height:e.height};function v(){if(c){var t={getBoundingClientRect:function(){if(!o)return e.getBoundingClientRect()}};return l(t),void c.postMessage({resize:{width:t.width,height:t.height}})}y.width=y.height=null}function m(){n=null,a&&t.removeEventListener("resize",v),o&&e&&(document.body.removeChild(e),e=null,f=!1)}return c&&!f&&c.init(e),f=!0,c&&(e.__confetti_initialized=!0),a&&t.addEventListener("resize",v,!1),c?c.fire(r,y,m):h(r,y,m)}return p.reset=function(){c&&c.reset(),n&&n.reset()},p}function N(){return v||(v=C(null,{useWorker:!0,resize:!0})),v}r.exports=function(){return N().apply(this,arguments)},r.exports.reset=function(){N().reset()},r.exports.create=C}(function(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:this||{}}(),Ar,!1);const Tr=Ar.exports;Ar.exports.create;function Rr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function kr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Rr(Object(r),!0).forEach((function(t){Lr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Lr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ir=function(){var r,n,o=Ne((function(e){return e.generatedPages})),i=Ue((function(e){return e.siteType}));return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(0,e.useEffect)((function(){var e=Date.now()+r;!function r(){Tr(kr(kr({},t),{},{disableForReducedMotion:!0,zIndex:1e5})),Date.now()<e&&requestAnimationFrame(r)}()}),[t,r])}({particleCount:2,angle:60,spread:55,origin:{x:0,y:.7},colors:["var(--ext-partner-theme-primary-text, #ffffff)"]},3e3),(0,Q.jsxs)(hr,{includeNav:!1,children:[(0,Q.jsx)("div",{children:(0,Q.jsx)("h1",{className:"text-3xl text-white mb-4 mt-0",children:(0,t.sprintf)((0,t.__)("Your site has been successfully created. Enjoy!","extendify"),null==i||null===(r=i.label)||void 0===r?void 0:r.toLowerCase())})}),(0,Q.jsxs)("div",{className:"w-full",children:[(0,Q.jsx)("p",{className:"mt-0 mb-8 text-base text-center",children:(0,t.__)("Your site is ready! You can now go to your site and start editing content.","extendify")}),(0,Q.jsxs)("div",{className:"text-center w-360 flex flex-col justify-center items-center -mt-150",children:[(0,Q.jsx)(rt,{className:"w-16 bg-partner-primary-bg text-partner-primary-text rounded-full"}),(0,Q.jsx)("h3",{className:"mb-8",children:(0,t.__)("All Done","extendify")}),(0,Q.jsx)("div",{className:"flex space-x-4",children:(0,Q.jsx)("a",{className:"px-4 py-3 rounded-md bg-gray-200 text-black no-underline hover:bg-partner-primary-bg hover:text-partner-primary-text font-medium",target:"_blank",rel:"noreferrer",href:window.extOnbData.home,children:(0,t.__)("View Site","extendify")})}),(0,Q.jsxs)("div",{className:"text-left self-start px-10 py-4 w-full",children:[(0,Q.jsx)("h4",{className:"",children:(0,t.__)("New Pages:","extendify")}),(0,Q.jsx)("div",{className:"",children:null===(n=Object.values(o))||void 0===n?void 0:n.map((function(e){return(0,Q.jsxs)("div",{className:"flex items-center mb-2",children:[(0,Q.jsx)(rt,{className:"w-6 text-green-500"}),(0,Q.jsx)("a",{target:"_blank",href:Nr("post.php",{post:e.id,action:"edit"}),className:"text-primary no-underline hover:underline ml-2 text-base",rel:"noreferrer",children:e.title})]},e.id)}))})]})]})]})]})};function Dr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Mr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Mr(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 Mr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Br,Ur=function(){var r,n,o=Ue((function(e){return e.resetState})),i=Dr((0,e.useState)(!1),2),a=i[0],s=i[1],u=fr((function(e){return e.currentPageData()})).component,c=fr((function(e){return e.nextPageData()})),l=c.fetcher,f=c.fetchData,d=Z().mutate,h=Ne((function(e){return e.generating})),p=Ne((function(e){return e.generatedPages})),y=Dr((0,e.useState)(!1),2),v=y[0],m=y[1];return n=(0,te.useSelect)((function(e){return e("core/edit-post").isFeatureActive("welcomeGuide")}),[]),(0,e.useEffect)((function(){n&&(0,te.dispatch)("core/edit-post").toggleFeature("welcomeGuide")}),[n]),(0,e.useLayoutEffect)((function(){var e=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",function(){return document.body.style.overflow=e}}),[]),(0,e.useEffect)((function(){if(v){var e=setTimeout((function(){window.dispatchEvent(new CustomEvent("extendify::close-library",{bubbles:!0}))}),0);return document.title=(0,t.__)("Extendify Launch","extendify"),function(){return clearTimeout(e)}}}),[v]),(0,e.useEffect)((function(){o();var e=new URLSearchParams(window.location.search);m(["onboarding"].includes(e.get("extendify")))}),[o]),(0,e.useEffect)((function(){l&&d(f,l)}),[l,d,f]),v?null!==(r=Object.keys(p))&&void 0!==r&&r.length?(0,Q.jsx)("div",{className:"h-screen w-screen fixed z-high inset-0 overflow-y-auto md:overflow-hidden bg-white",children:(0,Q.jsx)(Ir,{})}):(0,Q.jsxs)($,{value:{errorRetryInterval:1e3,onErrorRetry:function(e,t){var r;console.error(t,e),403!==(null==e||null===(r=e.data)||void 0===r?void 0:r.status)?a||(s(!0),setTimeout((function(){s(!1)}),5e3)):window.location.reload()}},children:[(0,Q.jsx)("div",{style:{zIndex:1e5},className:"h-screen w-screen fixed inset-0 overflow-y-auto md:overflow-hidden bg-white",children:h?(0,Q.jsx)(_r,{}):(0,Q.jsx)(u,{})}),a&&(0,Q.jsx)(ee,{})]}):null},Fr=Object.assign(document.createElement("div"),{id:"extendify-onboarding-root",className:"extendify-onboarding"});document.body.append(Fr),Br=function(){window._wpLoadBlockEditor&&(0,e.render)((0,Q.jsx)(Ur,{}),Fr)},"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",Br):Br())})()})();
|
extendify-sdk/public/build/extendify-onboarding.js.LICENSE.txt
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
object-assign
|
3 |
+
(c) Sindre Sorhus
|
4 |
+
@license MIT
|
5 |
+
*/
|
6 |
+
|
7 |
+
/*!
|
8 |
+
Copyright (c) 2018 Jed Watson.
|
9 |
+
Licensed under the MIT License (MIT), see
|
10 |
+
http://jedwatson.github.io/classnames
|
11 |
+
*/
|
12 |
+
|
13 |
+
/*!
|
14 |
+
* The buffer module from node.js, for the browser.
|
15 |
+
*
|
16 |
+
* @author Feross Aboukhadijeh <http://feross.org>
|
17 |
+
* @license MIT
|
18 |
+
*/
|
19 |
+
|
20 |
+
/*! *****************************************************************************
|
21 |
+
Copyright (c) Microsoft Corporation.
|
22 |
+
|
23 |
+
Permission to use, copy, modify, and/or distribute this software for any
|
24 |
+
purpose with or without fee is hereby granted.
|
25 |
+
|
26 |
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
27 |
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
28 |
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
29 |
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
30 |
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
31 |
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
32 |
+
PERFORMANCE OF THIS SOFTWARE.
|
33 |
+
***************************************************************************** */
|
34 |
+
|
35 |
+
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
36 |
+
|
37 |
+
/** @license React v17.0.2
|
38 |
+
* react-jsx-runtime.production.min.js
|
39 |
+
*
|
40 |
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
41 |
+
*
|
42 |
+
* This source code is licensed under the MIT license found in the
|
43 |
+
* LICENSE file in the root directory of this source tree.
|
44 |
+
*/
|
extendify-sdk/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 .-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 .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-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 .-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 .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-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-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-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-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 .hover\:no-underline:hover,div.extendify .no-underline{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}.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}}
|
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-3{right:.75rem!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 .-bottom-2{bottom:-.5rem!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 .z-max{z-index:2147483647!important}div.extendify .m-0{margin:0!important}div.extendify .m-6{margin:1.5rem!important}div.extendify .m-8{margin:2rem!important}div.extendify .m-auto{margin:auto!important}div.extendify .-m-2{margin:-.5rem!important}div.extendify .-m-6{margin:-1.5rem!important}div.extendify .-m-8{margin:-2rem!important}div.extendify .mx-1{margin-left:.25rem!important;margin-right:.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 .mr-1{margin-right:.25rem!important}div.extendify .mr-2{margin-right:.5rem!important}div.extendify .mr-6{margin-right: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-2{margin-bottom:.5rem!important}div.extendify .mb-3{margin-bottom:.75rem!important}div.extendify .mb-4{margin-bottom:1rem!important}div.extendify .mb-5{margin-bottom:1.25rem!important}div.extendify .mb-8{margin-bottom:2rem!important}div.extendify .mb-10{margin-bottom:2.5rem!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-12{margin-left:3rem!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-2{height:.5rem!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-32{height:8rem!important}div.extendify .h-64{height:16rem!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-4{width:1rem!important}div.extendify .w-6{width:1.5rem!important}div.extendify .w-8{width:2rem!important}div.extendify .w-10{width:2.5rem!important}div.extendify .w-16{width:4rem!important}div.extendify .w-20{width:5rem!important}div.extendify .w-28{width:7rem!important}div.extendify .w-32{width:8rem!important}div.extendify .w-72{width:18rem!important}div.extendify .w-80{width:20rem!important}div.extendify .w-96{width:24rem!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-sm{max-width:24rem!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-2xl{max-width:42rem!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 .grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}div.extendify .flex-col{flex-direction:column!important}div.extendify .flex-wrap{flex-wrap:wrap!important}div.extendify .items-start{align-items:flex-start!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-4{gap:1rem!important}div.extendify .gap-6{gap:1.5rem!important}div.extendify .gap-8{gap:2rem!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-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-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(1rem*var(--tw-space-y-reverse))!important;margin-top:calc(1rem*(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 .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 .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 .self-start{align-self:flex-start!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-lg{border-radius:.5rem!important}div.extendify .rounded-full{border-radius:9999px!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-100{--tw-border-opacity:1!important;border-color:rgba(240,240,240,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-600{--tw-border-opacity:1!important;border-color:rgba(148,148,148,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-200{--tw-bg-opacity:1!important;background-color:rgba(224,224,224,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-partner-primary-bg{background-color:var(--ext-partner-theme-primary-bg,#007cba)!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,#007cba)!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-gray-200:hover{--tw-bg-opacity:1!important;background-color:rgba(224,224,224,var(--tw-bg-opacity))!important}div.extendify .hover\:bg-partner-primary-bg:hover{background-color:var(--ext-partner-theme-primary-bg,#007cba)!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,#006ba1)!important}div.extendify .focus\:bg-gray-100:focus{--tw-bg-opacity:1!important;background-color:rgba(240,240,240,var(--tw-bg-opacity))!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-8{padding:2rem!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-8{padding-left:2rem!important;padding-right:2rem!important}div.extendify .px-10{padding-left:2.5rem!important;padding-right:2.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-12{padding-bottom:3rem!important;padding-top:3rem!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 .pr-8{padding-right:2rem!important}div.extendify .pb-2{padding-bottom:.5rem!important}div.extendify .pb-8{padding-bottom:2rem!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-3xl{font-size:2rem!important;line-height:2.5rem!important}div.extendify .text-4xl{font-size:2.25rem!important;line-height:2.5rem!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 .tracking-tight{letter-spacing:-.025em!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-green-500{--tw-text-opacity:1!important;color:rgba(16,185,129,var(--tw-text-opacity))!important}div.extendify .text-partner-primary-text{color:var(--ext-partner-theme-primary-text,#fff)!important}div.extendify .text-partner-primary-bg{color:var(--ext-partner-theme-primary-bg,#007cba)!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,#007cba)!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-partner-primary-text:hover{color:var(--ext-partner-theme-primary-text,#fff)!important}div.extendify .hover\:text-partner-primary-bg:hover{color:var(--ext-partner-theme-primary-bg,#007cba)!important}div.extendify .hover\:text-wp-theme-500:hover{color:var(--wp-admin-theme-color,#007cba)!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 .hover\:underline:hover{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-70{opacity:.7!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-2xl{--tw-shadow:0 25px 50px -12px rgba(0,0,0,.25)!important}div.extendify .shadow-2xl,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 .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{--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}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,div.extendify .ring-wp{--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, 2px) + 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 .ring-partner-primary-bg{--tw-ring-color:var(--ext-partner-theme-primary-bg,#007cba)!important}div.extendify .ring-offset-2{--tw-ring-offset-width:2px!important}div.extendify .ring-offset-white{--tw-ring-offset-color:#fff!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, 2px) + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;--tw-ring-color:var(--wp-admin-theme-color,#007cba)!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, 2px) + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;--tw-ring-color:var(--wp-admin-theme-color,#007cba)!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}.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-color:rgba(203,195,245,var(--tw-border-opacity))!important;border-style:solid!important;border-width:8px!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\:h-screen{height:100vh!important}div.extendify .md\:w-40vw{width:40vw!important}div.extendify .md\:max-w-md{max-width:28rem!important}div.extendify .md\:max-w-2xl{max-width:42rem!important}div.extendify .md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}div.extendify .md\:flex-row{flex-direction:row!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\:overflow-hidden{overflow:hidden!important}div.extendify .md\:overflow-y-scroll{overflow-y:scroll!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\:space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(2rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(2rem*var(--tw-space-x-reverse))!important}div.extendify .lg\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(0px*var(--tw-space-y-reverse))!important;margin-top:calc(0px*(1 - var(--tw-space-y-reverse)))!important}div.extendify .lg\:overflow-hidden{overflow:hidden!important}div.extendify .lg\:p-16{padding:4rem!important}div.extendify .lg\:px-12{padding-left:3rem!important;padding-right:3rem!important}}
|
extendify-sdk/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}}},165:(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=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},N=function(e,t){var n=new FormData;return n.append("email",e),n.append("key",t),G.post("login",n,{headers:{"Content-Type":"multipart/form-data"}})},A=function(e){var t=new FormData;return t.append("data",JSON.stringify(e)),G.post("user",t,{headers:{"Content-Type":"multipart/form-data"}})},P=function(){return G.post("clear-user")},T=function(){return G.get("max-free-imports")};function I(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){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function M(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 D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function F(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 B(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){F(i,r,o,a,s,"next",e)}function s(e){F(i,r,o,a,s,"throw",e)}a(void 0)}))}}var z,U,V,H={getItem:(V=B(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,E();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(){return V.apply(this,arguments)}),setItem:(U=B(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)}))),function(e,t){return U.apply(this,arguments)}),removeItem:(z=B(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,P();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(){return z.apply(this,arguments)})},W=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)},$=D({},"main-button-text2","0007"),q=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:W(),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,D({},n,(0,_.sample)(r)))}),(o=t().participatingTestsGroups)[n]}},activeTestGroups:function(){return Object.entries(t().participatingTestsGroups).filter((function(e){var t=M(e,1)[0];return Object.keys($).includes(t)})).reduce((function(e,t){var n=M(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=M(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:{},D({},n,r)),n="taxonomies");e({preferredOptions:L({},Object.assign({},t().preferredOptions,D({},n,r)))})},markNoticeSeen:function(n,r){e(D({},"".concat(r,"DismissedAt"),L(L({},t()["".concat(r,"DismissedAt")]),{},D({},n,(new Date).toISOString()))))}}}),{name:"extendify-user",getStorage:function(){return H},onRehydrateStorage:function(){return function(){q.setState({_hasHydrated:!0})}},partialize:function(e){return delete e._hasHydrated,e}})),G=C().create({baseURL:window.extendifyData.root,headers:{"X-WP-Nonce":window.extendifyData.nonce,"X-Requested-With":"XMLHttpRequest","X-Extendify":!0}});function J(e){return Object.prototype.hasOwnProperty.call(e,"data")?e.data:e}function K(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)}G.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}(J(e))}),(function(e){return function(e){if(e.response)return console.error(e.response),Promise.reject(J(e.response))}(e)})),G.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=q.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 X=function(){return(e=a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,G.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){K(i,r,o,a,s,"next",e)}function s(e){K(i,r,o,a,s,"throw",e)}a(void 0)}))})();var e};function Z(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 Y=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,X();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){Z(i,r,o,a,s,"next",e)}function s(e){Z(i,r,o,a,s,"throw",e)}a(void 0)}))},function(){return r.apply(this,arguments)})};var n,r}),{name:"extendify-taxonomies"}));function Q(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 ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(n),!0).forEach((function(t){te(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function te(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ne(e){return function(e){if(Array.isArray(e))return ie(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||oe(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 re(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=oe(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 oe(e,t){if(e){if("string"==typeof e)return ie(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)?ie(e,t):void 0}}function ie(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 ae(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 se,le,ce=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=re(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(ne(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){ae(i,r,o,a,s,"next",e)}function s(e){ae(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=Y.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=q.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:ee({},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)&&q.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 q.getState().updatePreferredSiteType(r),t().updateTaxonomies({siteType:r}),q.getState().updatePreferredOption("tax_categories",null),q.getState().preferredOptions.taxonomies}};var n,r}))),ue=function(){return G.get("meta-data")},de=function(e){var t,n,r,o,i,a=null!==(t=null===(n=ce.getState())||void 0===n||null===(r=n.searchParams)||void 0===r?void 0:r.taxonomies)&&void 0!==t?t:[];return G.post("simple-ping",{action:e,categories:a,sdk_partner:null!==(o=null===(i=q.getState())||void 0===i?void 0:i.sdkPartner)&&void 0!==o?o:""})};function fe(){return fe=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},fe.apply(this,arguments)}function pe(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 he(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 me(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 he(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)?he(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 xe(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,xe),a}function ye(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 ve(t,n,r,s);var l=null!=o?o:se.None;if(l&se.Static){var c=t.static,u=void 0!==c&&c,d=pe(t,["static"]);if(u)return ve(d,n,r,s)}if(l&se.RenderStrategy){var f,p=t.unmount,h=void 0===p||p,m=pe(t,["unmount"]);return xe(h?le.Unmount:le.Hidden,((f={})[le.Unmount]=function(){return null},f[le.Hidden]=function(){return ve(fe({},m,{hidden:!0,style:{display:"none"}}),n,r,s)},f))}return ve(t,n,r,s)}function ve(e,t,n,r){var o;void 0===t&&(t={});var i=be(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=pe(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=me(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}(be(f,["ref"])),h.props,["onClick"]),p))}return(0,s.createElement)(l,Object.assign({},be(f,["ref"]),l!==s.Fragment&&p),h)}function ge(e){var t;return Object.assign((0,s.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function be(e,t){void 0===t&&(t=[]);for(var n,r=Object.assign({},e),o=me(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"}(se||(se={})),function(e){e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden"}(le||(le={}));var we="undefined"!=typeof window?s.useLayoutEffect:s.useEffect,je={serverHandoffComplete:!1};function ke(){var e=(0,s.useState)(je.serverHandoffComplete),t=e[0],n=e[1];return(0,s.useEffect)((function(){!0!==t&&n(!0)}),[t]),(0,s.useEffect)((function(){!1===je.serverHandoffComplete&&(je.serverHandoffComplete=!0)}),[]),t}var Se=0;function Ce(){return++Se}function _e(){var e=ke(),t=(0,s.useState)(e?Ce:null),n=t[0],r=t[1];return we((function(){null===n&&r(Ce())}),[n]),null!=n?""+n:void 0}function Oe(){var e=(0,s.useRef)(!1);return(0,s.useEffect)((function(){return e.current=!0,function(){e.current=!1}}),[]),e}var Ee,Ne,Ae=(0,s.createContext)(null);function Pe(){return(0,s.useContext)(Ae)}function Te(e){var t=e.value,n=e.children;return l().createElement(Ae.Provider,{value:t},n)}function Ie(){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=me(e.splice(0));!(t=n()).done;){var r=t.value;r()}}};return t}function Le(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 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).remove.apply(t,r)}function Re(e,t,n,r,o,i){var a=Ie(),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 Me.apply(void 0,[e].concat(o)),Le.apply(void 0,[e].concat(t,n)),a.nextFrame((function(){Me.apply(void 0,[e].concat(n)),Le.apply(void 0,[e].concat(r)),a.add(function(e,t){var n=Ie();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(Ne.Finished)}),i+a):t(Ne.Finished),n.add((function(){return t(Ne.Cancelled)})),n.dispose}(e,(function(n){return Me.apply(void 0,[e].concat(r,t)),Le.apply(void 0,[e].concat(o)),s(n)})))})),a.add((function(){return Me.apply(void 0,[e].concat(t,n,r,o))})),a.add((function(){return s(Ne.Cancelled)})),a.dispose}function De(e){return void 0===e&&(e=""),(0,s.useMemo)((function(){return e.split(" ").filter((function(e){return e.trim().length>1}))}),[e])}Ae.displayName="OpenClosedContext",function(e){e[e.Open=0]="Open",e[e.Closed=1]="Closed"}(Ee||(Ee={})),function(e){e.Finished="finished",e.Cancelled="cancelled"}(Ne||(Ne={}));var Fe,Be=(0,s.createContext)(null);Be.displayName="TransitionContext",function(e){e.Visible="visible",e.Hidden="hidden"}(Fe||(Fe={}));var ze=(0,s.createContext)(null);function Ue(e){return"children"in e?Ue(e.children):e.current.filter((function(e){return e.state===Fe.Visible})).length>0}function Ve(e){var t=(0,s.useRef)(e),n=(0,s.useRef)([]),r=Oe();(0,s.useEffect)((function(){t.current=e}),[e]);var o=(0,s.useCallback)((function(e,o){var i;void 0===o&&(o=le.Hidden);var a=n.current.findIndex((function(t){return t.id===e}));-1!==a&&(xe(o,((i={})[le.Unmount]=function(){n.current.splice(a,1)},i[le.Hidden]=function(){n.current[a].state=Fe.Hidden},i)),!Ue(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!==Fe.Visible&&(t.state=Fe.Visible):n.current.push({id:e,state:Fe.Visible}),function(){return o(e,le.Unmount)}}),[n,o]);return(0,s.useMemo)((function(){return{children:n,register:i,unregister:o}}),[i,o,n])}function He(){}ze.displayName="NestingContext";var We=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function $e(e){for(var t,n={},r=me(We);!(t=r()).done;){var o,i=t.value;n[i]=null!=(o=e[i])?o:He}return n}var qe,Ge=se.RenderStrategy;function Je(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=pe(e,["beforeEnter","afterEnter","beforeLeave","afterLeave","enter","enterFrom","enterTo","entered","leave","leaveFrom","leaveTo"]),x=(0,s.useRef)(null),y=(0,s.useState)(Fe.Visible),v=y[0],g=y[1],b=m.unmount?le.Unmount:le.Hidden,w=function(){var e=(0,s.useContext)(Be);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)(ze);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=_e(),N=(0,s.useRef)(!1),A=Ve((function(){N.current||(g(Fe.Hidden),O(E),F.current.afterLeave())}));we((function(){if(E)return _(E)}),[_,E]),we((function(){var e;b===le.Hidden&&E&&(j&&v!==Fe.Visible?g(Fe.Visible):xe(v,((e={})[Fe.Hidden]=function(){return O(E)},e[Fe.Visible]=function(){return _(E)},e)))}),[v,E,_,O,j,b]);var P=De(a),T=De(c),I=De(u),L=De(d),M=De(f),R=De(p),D=De(h),F=function(e){var t=(0,s.useRef)($e(e));return(0,s.useEffect)((function(){t.current=$e(e)}),[e]),t}({beforeEnter:n,afterEnter:r,beforeLeave:o,afterLeave:i}),B=ke();(0,s.useEffect)((function(){if(B&&v===Fe.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;we((function(){var e=x.current;if(e&&!z)return N.current=!0,j&&F.current.beforeEnter(),j||F.current.beforeLeave(),j?Re(e,P,T,I,L,(function(e){N.current=!1,e===Ne.Finished&&F.current.afterEnter()})):Re(e,M,R,D,L,(function(e){N.current=!1,e===Ne.Finished&&(Ue(A)||(g(Fe.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(ze.Provider,{value:A},l().createElement(Te,{value:xe(v,(t={},t[Fe.Visible]=Ee.Open,t[Fe.Hidden]=Ee.Closed,t))},ye({props:fe({},V,U),defaultTag:"div",features:Ge,visible:v===Fe.Visible,name:"Transition.Child"})))}function Ke(e){var t,n=e.show,r=e.appear,o=void 0!==r&&r,i=e.unmount,a=pe(e,["show","appear","unmount"]),c=Pe();void 0===n&&null!==c&&(n=xe(c,((t={})[Ee.Open]=!0,t[Ee.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?Fe.Visible:Fe.Hidden),d=u[0],f=u[1],p=Ve((function(){f(Fe.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(Fe.Visible):Ue(p)||f(Fe.Hidden)}),[n,p]);var x={unmount:i};return l().createElement(ze.Provider,{value:p},l().createElement(Be.Provider,{value:m},ye({props:fe({},x,{as:s.Fragment,children:l().createElement(Je,Object.assign({},x,a))}),defaultTag:s.Fragment,features:Ge,visible:d===Fe.Visible,name:"Transition"})))}function Xe(){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=me(r.current);!(t=n()).done;){var o=t.value;null!=o&&("function"==typeof o?o(e):o.current=e)}}),[r])}function Ze(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 Ye(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])}Ke.Child=function(e){var t=null!==(0,s.useContext)(Be),n=null!==Pe();return!t&&n?l().createElement(Ke,Object.assign({},e)):l().createElement(Je,Object.assign({},e))},Ke.Root=Ke,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"}(qe||(qe={}));var Qe,et,tt,nt,rt,ot=["[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 it(e){null==e||e.focus({preventScroll:!0})}function at(e,t){var n=Array.isArray(e)?e:function(e){return void 0===e&&(e=document.body),null==e?[]:Array.from(e.querySelectorAll(ot))}(e),r=document.activeElement,o=function(){if(t&(Qe.First|Qe.Next))return tt.Next;if(t&(Qe.Previous|Qe.Last))return tt.Previous;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")}(),i=function(){if(t&Qe.First)return 0;if(t&Qe.Previous)return Math.max(0,n.indexOf(r))-1;if(t&Qe.Next)return Math.max(0,n.indexOf(r))+1;if(t&Qe.Last)return n.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")}(),a=t&Qe.NoScroll?{preventScroll:!0}:{},s=0,l=n.length,c=void 0;do{var u;if(s>=l||s+l<=0)return et.Error;var d=i+s;if(t&Qe.WrapAround)d=(d+l)%l;else{if(d<0)return et.Underflow;if(d>=l)return et.Overflow}null==(u=c=n[d])||u.focus(a),s+=o}while(c!==document.activeElement);return c.hasAttribute("tabindex")||c.setAttribute("tabindex","0"),et.Success}function st(e,t,n){void 0===t&&(t=rt.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=Oe(),u=Boolean(t&rt.RestoreFocus),d=Boolean(t&rt.InitialFocus);(0,s.useEffect)((function(){u&&(a.current=document.activeElement)}),[u]),(0,s.useEffect)((function(){if(u)return function(){it(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)?it(o.current):at(e.current,Qe.First)===et.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),l.current=document.activeElement}}),[e,o,d]),Ye("keydown",(function(n){t&rt.TabLock&&e.current&&n.key===qe.Tab&&(n.preventDefault(),at(e.current,(n.shiftKey?Qe.Previous:Qe.Next)|Qe.WrapAround)===et.Success&&(l.current=document.activeElement))})),Ye("focus",(function(n){if(t&rt.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=me(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(),it(o)):(l.current=a,it(a)):it(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"}(Qe||(Qe={})),function(e){e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow"}(et||(et={})),function(e){e[e.Previous=-1]="Previous",e[e.Next=1]="Next"}(tt||(tt={})),function(e){e[e.Strict=0]="Strict",e[e.Loose=1]="Loose"}(nt||(nt={})),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"}(rt||(rt={}));var lt=new Set,ct=new Map;function ut(e){e.setAttribute("aria-hidden","true"),e.inert=!0}function dt(e){var t=ct.get(e);t&&(null===t["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",t["aria-hidden"]),e.inert=t.inert)}var ft=(0,s.createContext)(!1);function pt(e){return l().createElement(ft.Provider,{value:e.force},e.children)}const ht=ReactDOM;function mt(){var e=(0,s.useContext)(ft),t=(0,s.useContext)(gt),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 xt=s.Fragment;function yt(e){var t=e,n=mt(),r=(0,s.useState)((function(){return"undefined"==typeof window?null:document.createElement("div")}))[0],o=ke();return we((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,ht.createPortal)(ye({props:t,defaultTag:xt,name:"Portal"}),r):null}var vt=s.Fragment,gt=(0,s.createContext)(null);yt.Group=function(e){var t=e.target,n=pe(e,["target"]);return l().createElement(gt.Provider,{value:t},ye({props:n,defaultTag:vt,name:"Popover.Group"}))};var bt=(0,s.createContext)(null);function wt(){var e=(0,s.useContext)(bt);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,wt),t}return e}var jt,kt,St,Ct,_t=(0,s.createContext)((function(){}));function Ot(e){var t=e.children,n=e.onUpdate,r=e.type,o=e.element,i=(0,s.useContext)(_t),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 we((function(){return a(jt.Add,r,o),function(){return a(jt.Remove,r,o)}}),[a,r,o]),l().createElement(_t.Provider,{value:a},t)}_t.displayName="StackContext",function(e){e[e.Add=0]="Add",e[e.Remove=1]="Remove"}(jt||(jt={})),function(e){e[e.Open=0]="Open",e[e.Closed=1]="Closed"}(St||(St={})),function(e){e[e.SetTitleId=0]="SetTitleId"}(Ct||(Ct={}));var Et=((kt={})[Ct.SetTitleId]=function(e,t){return e.titleId===t.id?e:fe({},e,{titleId:t.id})},kt),Nt=(0,s.createContext)(null);function At(e){var t=(0,s.useContext)(Nt);if(null===t){var n=new Error("<"+e+" /> is missing a parent <"+Mt.displayName+" /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(n,At),n}return t}function Pt(e,t){return xe(t.type,Et,e,t)}Nt.displayName="DialogContext";var Tt=se.RenderStrategy|se.Static,It=ge((function(e,t){var n,r=e.open,o=e.onClose,i=e.initialFocus,a=pe(e,["open","onClose","initialFocus"]),c=(0,s.useState)(0),u=c[0],d=c[1],f=Pe();void 0===r&&null!==f&&(r=xe(f,((n={})[Ee.Open]=!0,n[Ee.Closed]=!1,n)));var p=(0,s.useRef)(new Set),h=(0,s.useRef)(null),m=Xe(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?St.Open:St.Closed,g=null!==f?f===Ee.Open:v===St.Open,b=(0,s.useReducer)(Pt,{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:Ct.SetTitleId,id:e})}),[j]),C=ke()&&v===St.Open,_=u>1,O=null!==(0,s.useContext)(Nt);st(h,C?xe(_?"parent":"leaf",{parent:rt.RestoreFocus,leaf:rt.All}):rt.None,{initialFocus:i,containers:p}),function(e,t){void 0===t&&(t=!0),we((function(){if(t&&e.current){var n=e.current;lt.add(n);for(var r,o=me(ct.keys());!(r=o()).done;){var i=r.value;i.contains(n)&&(dt(i),ct.delete(i))}return document.querySelectorAll("body > *").forEach((function(e){if(e instanceof HTMLElement){for(var t,n=me(lt);!(t=n()).done;){var r=t.value;if(e.contains(r))return}1===lt.size&&(ct.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),ut(e))}})),function(){if(lt.delete(n),lt.size>0)document.querySelectorAll("body > *").forEach((function(e){if(e instanceof HTMLElement&&!ct.has(e)){for(var t,n=me(lt);!(t=n()).done;){var r=t.value;if(e.contains(r))return}ct.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),ut(e)}}));else for(var e,t=me(ct.keys());!(e=t()).done;){var r=e.value;dt(r),ct.delete(r)}}}}),[t])}(h,!!_&&C),Ye("mousedown",(function(e){var t,n=e.target;v===St.Open&&(_||(null==(t=h.current)?void 0:t.contains(n))||k())})),Ye("keydown",(function(e){e.key===qe.Escape&&v===St.Open&&(_||(e.preventDefault(),e.stopPropagation(),k()))})),(0,s.useEffect)((function(){if(v===St.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===St.Open&&h.current){var e=new IntersectionObserver((function(e){for(var t,n=me(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(bt.Provider,{value:r},e.children)}}),[n])]}(),N=E[0],A=E[1],P="headlessui-dialog-"+_e(),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===St.Open}}),[v]),L={ref:m,id:P,role:"dialog","aria-modal":v===St.Open||void 0,"aria-labelledby":w.titleId,"aria-describedby":N,onClick:function(e){e.stopPropagation()}},M=a;return l().createElement(Ot,{type:"Dialog",element:h,onUpdate:(0,s.useCallback)((function(e,t,n){var r;"Dialog"===t&&xe(e,((r={})[jt.Add]=function(){p.current.add(n),d((function(e){return e+1}))},r[jt.Remove]=function(){p.current.add(n),d((function(e){return e-1}))},r))}),[])},l().createElement(pt,{force:!0},l().createElement(yt,null,l().createElement(Nt.Provider,{value:T},l().createElement(yt.Group,{target:h},l().createElement(pt,{force:!1},l().createElement(A,{slot:I,name:"Dialog.Description"},ye({props:fe({},M,L),slot:I,defaultTag:"div",features:Tt,visible:g,name:"Dialog"}))))))))})),Lt=ge((function e(t,n){var r=At([Mt.displayName,e.name].join("."))[0],o=r.dialogState,i=r.close,a=Xe(n),l="headlessui-dialog-overlay-"+_e(),c=(0,s.useCallback)((function(e){if(e.target===e.currentTarget){if(Ze(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),i()}}),[i]),u=(0,s.useMemo)((function(){return{open:o===St.Open}}),[o]);return ye({props:fe({},t,{ref:a,id:l,"aria-hidden":!0,onClick:c}),slot:u,defaultTag:"div",name:"Dialog.Overlay"})}));var Mt=Object.assign(It,{Overlay:Lt,Title:function e(t){var n=At([Mt.displayName,e.name].join("."))[0],r=n.dialogState,o=n.setTitleId,i="headlessui-dialog-title-"+_e();(0,s.useEffect)((function(){return o(i),function(){return o(null)}}),[i,o]);var a=(0,s.useMemo)((function(){return{open:r===St.Open}}),[r]);return ye({props:fe({},t,{id:i}),slot:a,defaultTag:"h2",name:"Dialog.Title"})},Description:function(e){var t=wt(),n="headlessui-description-"+_e();we((function(){return t.register(n)}),[n,t.register]);var r=e,o=fe({},t.props,{id:n});return ye({props:fe({},r,o),slot:t.slot||{},defaultTag:"p",name:t.name||"Description"})}});const Rt=wp.components,Dt=wp.i18n;const Ft=function(e){let{icon:t,size:n=24,...r}=e;return(0,o.cloneElement)(t,{width:n,height:n,...r})};var Bt=n(42),zt=n.n(Bt);const Ut=e=>(0,o.createElement)("circle",e),Vt=e=>(0,o.createElement)("g",e),Ht=e=>(0,o.createElement)("path",e),Wt=e=>(0,o.createElement)("rect",e),$t=e=>{let{className:t,isPressed:n,...r}=e;const i={...r,className:zt()(t,{"is-pressed":n})||void 0,role:"img","aria-hidden":!0,focusable:!1};return(0,o.createElement)("svg",i)},qt=(0,o.createElement)($t,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(Ht,{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 Gt=n(246);function Jt(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 Kt(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Jt(i,r,o,a,s,"next",e)}function s(e){Jt(i,r,o,a,s,"throw",e)}a(void 0)}))}}var Xt=function(){return G.get("plugins")},Zt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=new FormData;return t.append("plugins",JSON.stringify(e)),G.post("plugins",t,{headers:{"Content-Type":"multipart/form-data"}})},Yt=function(){return G.get("active-plugins")};function Qt(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){Qt(i,r,o,a,s,"next",e)}function s(e){Qt(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 nn(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 nn(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 nn(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 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){return 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)}))}}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 sn(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 ln(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 ln(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 ln(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 cn={promotion:function(e){var t,n=e.promotionData;return(0,Gt.jsxs)(Gt.Fragment,{children:[(0,Gt.jsx)("span",{className:"text-black",children:null!==(t=null==n?void 0:n.text)&&void 0!==t?t:""}),(0,Gt.jsx)("span",{className:"px-2 opacity-50","aria-hidden":"true",children:"|"}),(0,Gt.jsx)("div",{className:"flex items-center justify-center space-x-2",children:(null==n?void 0:n.url)&&(0,Gt.jsx)(Rt.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(q.getState().activeTestGroupsUtmValue()),onClick:on(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,de("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,Gt.jsxs)(Gt.Fragment,{children:[(0,Gt.jsx)("span",{className:"text-black",children:(0,Dt.__)("Tell us how to make the Extendify Library work better for you","extendify")}),(0,Gt.jsx)("span",{className:"px-2 opacity-50","aria-hidden":"true",children:"|"}),(0,Gt.jsx)("div",{className:"flex items-center justify-center space-x-2",children:(0,Gt.jsx)(Rt.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(q.getState().activeTestGroupsUtmValue()),onClick:Kt(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,de("feedback-notice-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),target:"_blank",children:(0,Dt.__)("Give feedback","extendify")})})]})},standalone:function(){var e=tn((0,o.useState)(""),2),t=e[0],n=e[1],r=q((function(e){return e.giveFreebieImports}));return(0,Gt.jsxs)("div",{children:[(0,Gt.jsx)("span",{className:"text-black",children:(0,Dt.__)("Install the new Extendify Library plugin to get the latest we have to offer","extendify")}),(0,Gt.jsx)("span",{className:"px-2 opacity-50","aria-hidden":"true",children:"|"}),(0,Gt.jsxs)("div",{className:"relative inline-flex items-center space-x-2",children:[(0,Gt.jsx)(Rt.Button,{variant:"link",className:zt()("h-auto p-0 text-black underline hover:no-underline",{"opacity-0":t}),onClick:function(){n((0,Dt.__)("Installing...","extendify")),Promise.all([de("stln-footer-install"),Zt(["extendify"]),new Promise((function(e){return setTimeout(e,1e3)}))]).then(en(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r(10),n((0,Dt.__)("Success! Reloading...","extendify")),e.next=4,de("stln-footer-success");case 4:window.location.reload();case 5:case"end":return e.stop()}}),e)})))).catch(function(){var e=en(a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.error(t),n((0,Dt.__)("Error. See console.","extendify")),e.next=4,de("stln-footer-fail");case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},children:(0,Dt.__)("Install Extendify standalone plugin","extendify")}),t?(0,Gt.jsx)(Rt.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 un(e){var t,n=e.className,r=void 0===n?"":n,i=sn((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(cn).find((function(e){var t,n,r,o,i,a,s;return"promotion"===e?!(null!==(t=q.getState().apiKey)&&void 0!==t&&t.length)&&(null==u?void 0:u.key)&&!q.getState().noticesDismissedAt[u.key]:"feedback"===e?(i=null!==(n=q.getState().imports)&&void 0!==n?n:0,a=null!==(r=null===(o=q.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&&!q.getState().noticesDismissedAt[e]):"standalone"===e?!window.extendifyData.standalone&&!q.getState().noticesDismissedAt[e]:!q.getState().noticesDismissedAt[e]})))&&void 0!==t?t:null,f=cn[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,q.getState().markNoticeSeen(t,"notices"),e.next=5,de("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){an(i,r,o,a,s,"next",e)}function s(e){an(i,r,o,a,s,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();return(0,o.useEffect)((function(){cn[d]&&!c.current&&(l(!0),c.current=!0)}),[d]),s&&f?(0,Gt.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,Gt.jsx)(f,{promotionData:u}),(0,Gt.jsx)("div",{className:"absolute right-1",children:(0,Gt.jsx)(Rt.Button,{className:"text-extendify-black opacity-50 hover:opacity-100 focus:opacity-100",icon:(0,Gt.jsx)(Ft,{icon:qt}),label:(0,Dt.__)("Dismiss this notice","extendify"),onClick:p,showTooltip:!1})})]}):null}function dn(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 fn=(0,Gt.jsxs)($t,{viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg",children:[(0,Gt.jsx)(Ht,{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,Gt.jsx)(Ht,{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,Gt.jsx)(Ht,{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 pn=(0,Gt.jsx)($t,{fill:"none",viewBox:"0 0 25 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Gt.jsx)(Ht,{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 hn=(0,Gt.jsx)($t,{fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Gt.jsx)(Ht,{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 mn=(0,Gt.jsx)($t,{fill:"none",width:"150",height:"30",viewBox:"0 0 2524 492",xmlns:"http://www.w3.org/2000/svg",children:(0,Gt.jsxs)(Vt,{fill:"currentColor",children:[(0,Gt.jsx)(Ht,{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,Gt.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,Gt.jsx)("path",{d:"m994.142 125h155.998v51h-155.998zm108.498 247h-61v-324h61z"}),(0,Gt.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,Gt.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,Gt.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,Gt.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,Gt.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,Gt.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,Gt.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 xn=(0,Gt.jsx)($t,{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:(0,Gt.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 yn=(0,Gt.jsxs)($t,{viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Gt.jsx)(Ht,{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,Gt.jsx)(Ht,{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 vn=(0,Gt.jsxs)($t,{viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Gt.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,Gt.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 gn=(0,Gt.jsxs)($t,{fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,Gt.jsx)(Ht,{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,Gt.jsxs)(Vt,{fill:"currentColor",children:[(0,Gt.jsx)(Ht,{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,Gt.jsx)(Ht,{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 bn=(0,Gt.jsx)($t,{fill:"none",height:"25",viewBox:"0 0 25 25",width:"25",xmlns:"http://www.w3.org/2000/svg",children:(0,Gt.jsx)(Ht,{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 wn=(0,Gt.jsx)($t,{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:(0,Gt.jsxs)(Vt,{stroke:"currentColor",strokeWidth:"1.5",children:[(0,Gt.jsx)(Ht,{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,Gt.jsx)(Ht,{d:"m9.25 19v-14"})]})});const jn=(0,Gt.jsxs)($t,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Gt.jsx)(Ht,{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,Gt.jsx)(Ht,{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,Gt.jsx)(Ht,{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,Gt.jsx)(Ht,{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,Gt.jsx)(Ht,{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,Gt.jsx)(Ht,{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,Gt.jsx)(Ht,{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 kn=(0,Gt.jsxs)($t,{fill:"none",viewBox:"0 0 151 148",width:"151",xmlns:"http://www.w3.org/2000/svg",children:[(0,Gt.jsx)(Ut,{cx:"65.6441",cy:"66.6114",fill:"#0b4a43",r:"65.3897"}),(0,Gt.jsxs)(Vt,{fill:"#cbc3f5",stroke:"#0b4a43",children:[(0,Gt.jsx)(Ht,{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,Gt.jsx)(Ht,{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,Gt.jsx)(Wt,{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,Gt.jsx)(Wt,{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,Gt.jsx)(Wt,{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,Gt.jsx)(Wt,{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,Gt.jsx)(Ht,{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,Gt.jsx)(Ht,{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 Sn=(0,Gt.jsxs)($t,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Gt.jsx)(Ut,{cx:"12",cy:"12",r:"7.25",stroke:"currentColor",strokeWidth:"1.5"}),(0,Gt.jsx)(Ut,{cx:"12",cy:"12",r:"4.25",stroke:"currentColor",strokeWidth:"1.5"}),(0,Gt.jsx)(Ut,{cx:"11.9999",cy:"12.2",r:"6",transform:"rotate(-45 11.9999 12.2)",stroke:"currentColor",strokeWidth:"3",strokeDasharray:"1.5 4"})]});const Cn=(0,Gt.jsx)($t,{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:(0,Gt.jsx)(Ht,{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 _n=(0,Gt.jsx)($t,{fill:"none",viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg",children:(0,Gt.jsx)(Ht,{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"})}),On=(0,o.createElement)($t,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(Ht,{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 En=(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,Gt.jsx)(Ke.Root,{appear:!0,show:!0,as:o.Fragment,children:(0,Gt.jsx)(Mt,{as:"div",static:!0,open:i,className:"extendify",initialFocus:null!=t?t:f,onClose:r,children:(0,Gt.jsxs)("div",{className:"fixed inset-0 z-high flex",children:[(0,Gt.jsx)(Ke.Child,{as:o.Fragment,enter:"ease-out duration-50 transition",enterFrom:"opacity-0",enterTo:"opacity-100",children:(0,Gt.jsx)(Mt.Overlay,{className:"fixed inset-0 bg-black bg-opacity-40 transition-opacity"})}),(0,Gt.jsx)(Ke.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,Gt.jsx)("div",{className:"m-auto",children:(0,Gt.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,Gt.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,Gt.jsx)("span",{className:"sr-only",children:(0,Dt.__)("Close","extendify")}),(0,Gt.jsx)(Ft,{icon:On})]}),(0,Gt.jsx)("div",{className:"w-7/12 p-12 ".concat(c),children:s[0]}),(0,Gt.jsx)("div",{className:"hidden w-6/12 md:block ".concat(d),children:s[1]})]})})})]})})})}));function Nn(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){Nn(i,r,o,a,s,"next",e)}function s(e){Nn(i,r,o,a,s,"throw",e)}a(void 0)}))}}function Pn(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 Tn(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 Tn(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 Tn(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 In=function(){var e=Pn((0,o.useState)((0,Dt.__)("Install Extendify","extendify")),2),t=e[0],n=e[1],r=Pn((0,o.useState)(!1),2),i=r[0],s=r[1],l=Pn((0,o.useState)(!1),2),c=l[0],u=l[1],d=(0,o.useRef)(null),f=q((function(e){return e.markNoticeSeen})),p=q((function(e){return e.giveFreebieImports})),h=k((function(e){return e.removeAllModals})),m=function(){var e=An(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,de("stln-modal-x");case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,Gt.jsxs)(En,{ref:d,onClose:m,children:[(0,Gt.jsxs)("div",{children:[(0,Gt.jsx)("div",{className:"mb-10 flex items-center space-x-2 text-extendify-black",children:mn}),(0,Gt.jsx)("h3",{className:"text-xl",children:(0,Dt.__)("Get the brand new Extendify plugin today!","extendify")}),(0,Gt.jsx)("p",{className:"text-sm text-black",dangerouslySetInnerHTML:{__html:dn((0,Dt.sprintf)((0,Dt.__)("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,Gt.jsx)("div",{children:(0,Gt.jsxs)("button",{onClick:function(){n((0,Dt.__)("Installing...","extendify")),u(!0),Promise.all([de("stln-modal-install"),Zt(["extendify"]),new Promise((function(e){return setTimeout(e,1e3)}))]).then(An(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n((0,Dt.__)("Success! Reloading...","extendify")),s(!0),p(10),e.next=5,de("stln-modal-success");case 5:window.location.reload();case 6:case"end":return e.stop()}}),e)})))).catch(function(){var e=An(a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.error(t),n((0,Dt.__)("Error. See console.","extendify")),e.next=4,de("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,Gt.jsx)(Rt.Icon,{icon:vn,size:24,className:"ml-2 w-6 flex-grow-0"})]})})]}),(0,Gt.jsx)("div",{className:"flex w-full justify-end rounded-tr-sm rounded-br-sm bg-extendify-secondary",children:(0,Gt.jsx)("img",{alt:(0,Dt.__)("Upgrade Now","extendify"),className:"roudned-br-sm max-w-full rounded-tr-sm",src:window.extendifyData.asset_path+"/modal-extendify-purple.png"})})]})};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}function Rn(){return Rn=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},Rn.apply(this,arguments)}function Dn(e,t){return Dn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Dn(e,t)}var Fn=new Map,Bn=new WeakMap,zn=0,Un=void 0;function Vn(e){return Object.keys(e).sort().filter((function(t){return void 0!==e[t]})).map((function(t){return t+"_"+("root"===t?(n=e.root)?(Bn.has(n)||(zn+=1,Bn.set(n,zn.toString())),Bn.get(n)):"0":e[t]);var n})).toString()}function Hn(e,t,n,r){if(void 0===n&&(n={}),void 0===r&&(r=Un),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=Vn(e),n=Fn.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},Fn.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(),Fn.delete(a))}}var Wn=["children","as","tag","triggerOnce","threshold","root","rootMargin","onChange","skip","trackVisibility","delay","initialInView","fallbackInView"];function $n(e){return"function"!=typeof e.children}var qn=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(),$n(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,Dn(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=Hn(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(!$n(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,Wn);return s.createElement(i||a||"div",Rn({ref:this.handleNode},l),o)},r}(s.Component);function Gn(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 Jn(){return Jn=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},Jn.apply(this,arguments)}function Kn(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 Xn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kn(Object(n),!0).forEach((function(t){Zn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}qn.displayName="InView",qn.defaultProps={threshold:0,triggerOnce:!1,initialInView:!1};const Yn={breakpointCols:void 0,className:void 0,columnClassName:void 0,children:void 0,columnAttrs:void 0,column:void 0};class Qn 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=Xn(Xn(Xn({},e),t),{},{style:Xn(Xn({},t.style),{},{width:o}),className:i});return r.map(((e,t)=>l().createElement("div",Jn({},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=Gn(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",Jn({},s,{className:c}),this.renderColumns())}}Qn.defaultProps=Yn;const er=Qn;function tr(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 nr(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){tr(i,r,o,a,s,"next",e)}function s(e){tr(i,r,o,a,s,"throw",e)}a(void 0)}))}}var rr=0,or=function(e){var t=arguments;return nr(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]:{},rr++,i="pattern"===e.type?"8":"4",s="pattern"===e.type?"patternType":"layoutType",l=Object.assign({filterByFormula:sr(e,s),pageSize:i,categories:e.taxonomies,search:e.search,type:e.type,offset:"",initial:1===rr,request_count:rr,sdk_partner:null!==(r=q.getState().sdkPartner)&&void 0!==r?r:""},o),n.next=7,G.post("templates",l);case 7:return n.abrupt("return",n.sent);case 8:case"end":return n.stop()}}),n)})))()},ir=function(e){var t,n,r,o,i,a,s=null!==(t=null===(n=ce.getState())||void 0===n||null===(r=n.searchParams)||void 0===r?void 0:r.taxonomies)&&void 0!==t?t:[];return G.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=q.getState().sdkPartner)&&void 0!==i?i:"",pageSize:"1",template_name:null===(a=e.fields)||void 0===a?void 0:a.title})},ar=function(e){var t,n,r,o,i,a,s,l,c,u=null!==(t=null===(n=ce.getState())||void 0===n||null===(r=n.searchParams)||void 0===r?void 0:r.taxonomies)&&void 0!==t?t:[];return G.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=q.getState().sdkPartner)&&void 0!==l?l:"",pageSize:"1",template_name:null===(c=e.fields)||void 0===c?void 0:c.title})},sr=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 lr=wp.blockEditor;function cr(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 ur(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 ur(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 ur(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 dr=function(){var e=cr((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 fr(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 pr(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){fr(i,r,o,a,s,"next",e)}function s(e){fr(i,r,o,a,s,"throw",e)}a(void 0)}))}}var hr=[],mr=[];function xr(e){return yr.apply(this,arguments)}function yr(){return(yr=pr(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=hr)&&void 0!==i&&i.length){e.next=10;break}return e.t0=Object,e.next=8,Xt();case 8:e.t1=e.sent,hr=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!hr.some((function(t){return t.includes(e)}))})),e.abrupt("return",c.length);case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function vr(e){return gr.apply(this,arguments)}function gr(){return(gr=pr(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=mr)&&void 0!==i&&i.length){e.next=10;break}return e.t0=Object,e.next=8,Yt();case 8:e.t1=e.sent,mr=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!mr.some((function(t){return t.includes(e)}))})))){e.next=16;break}return e.next=14,xr(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 br=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 wr=function(e){return jr(e,"open")};function jr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"broken-event",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"open";q.setState({entryPoint:e}),window.dispatchEvent(new CustomEvent("extendify::".concat(t,"-library"),{detail:e,bubbles:!0}))}function kr(e){switch(e){case"editorplus":return"Editor Plus";case"ml-slider":return"MetaSlider"}return e}function Sr(e){switch(e){case"siteType":return"Site Type";case"patternType":return"Content";case"layoutType":return"Page Types"}return e}function Cr(){var e,t,n,r=br((function(e){return e.wantedTemplate})),i=(null==r||null===(e=r.fields)||void 0===e?void 0:e.required_plugins)||[];return(0,Gt.jsxs)(Rt.Modal,{title:(0,Dt.__)("Plugins required","extendify"),isDismissible:!1,children:[(0,Gt.jsx)("p",{style:{maxWidth:"400px"},children:(0,Dt.sprintf)((0,Dt.__)("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,Gt.jsx)("ul",{children:i.filter((function(e){return"editorplus"!==e})).map((function(e){return(0,Gt.jsx)("li",{children:kr(e)},e)}))}),(0,Gt.jsx)("p",{style:{maxWidth:"400px",fontWeight:"bold"},children:(0,Dt.__)("Please contact a site admin for assistance in adding these plugins to your site.","extendify")}),(0,Gt.jsx)(Rt.Button,{isPrimary:!0,onClick:function(){return(0,o.render)((0,Gt.jsx)(oa,{show:!0}),document.getElementById("extendify-root"))},style:{boxShadow:"none"},children:(0,Dt.__)("Return to library","extendify")})]})}const _r=wp.data;function Or(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 Er(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 Er(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 Er(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 Nr(){var e=Or((0,o.useState)(!1),2),t=e[0],n=e[1],r=function(){};return(0,(0,_r.select)("core/editor").isEditedPostDirty)()?(0,Gt.jsxs)(Rt.Modal,{title:(0,Dt.__)("Reload required","extendify"),isDismissible:!1,children:[(0,Gt.jsx)("p",{style:{maxWidth:"400px"},children:(0,Dt.__)("Just one more thing! We need to reload the page to continue.","extendify")}),(0,Gt.jsxs)(Rt.ButtonGroup,{children:[(0,Gt.jsx)(Rt.Button,{isPrimary:!0,onClick:r,disabled:t,children:(0,Dt.__)("Reload page","extendify")}),(0,Gt.jsx)(Rt.Button,{isSecondary:!0,onClick:function(){n(!0),(0,_r.dispatch)("core/editor").savePost(),n(!1)},isBusy:t,style:{margin:"0 4px"},children:(0,Dt.__)("Save changes","extendify")})]})]}):null}function Ar(e){var t=e.msg;return(0,Gt.jsxs)(Rt.Modal,{style:{maxWidth:"500px"},title:(0,Dt.__)("Error Activating plugins","extendify"),isDismissible:!1,children:[(0,Dt.__)("You have encountered an error that we cannot recover from. Please try again.","extendify"),(0,Gt.jsx)("br",{}),(0,Gt.jsx)(Rt.Notice,{isDismissible:!1,status:"error",children:t}),(0,Gt.jsx)(Rt.Button,{isPrimary:!0,onClick:function(){(0,o.render)((0,Gt.jsx)(Rr,{}),document.getElementById("extendify-root"))},children:(0,Dt.__)("Go back","extendify")})]})}function Pr(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 Tr(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Pr(i,r,o,a,s,"next",e)}function s(e){Pr(i,r,o,a,s,"throw",e)}a(void 0)}))}}function Ir(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 Lr(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 Lr(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 Lr(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 Mr(){var e,t=Ir((0,o.useState)(""),2),n=t[0],r=t[1],i=br((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 Zt(s).then((function(){br.setState({importOnLoad:!0})})).then(Tr(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,Gt.jsx)(Nr,{}),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,Gt.jsx)(Ar,{msg:n}):(0,Gt.jsx)(Rt.Modal,{title:(0,Dt.__)("Activating plugins","extendify"),isDismissible:!1,children:(0,Gt.jsx)(Rt.Button,{style:{width:"100%"},disabled:!0,isPrimary:!0,isBusy:!0,onClick:function(){},children:(0,Dt.__)("Activating...","extendify")})})}function Rr(e){var t,n,r,i,a,s=br((function(e){return e.wantedTemplate})),l=(null==s||null===(t=s.fields)||void 0===t?void 0:t.required_plugins)||[];return null!==(n=q.getState())&&void 0!==n&&n.canActivatePlugins?(0,Gt.jsx)(Rt.Modal,{title:(0,Dt.__)("Activate required plugins","extendify"),isDismissible:!1,children:(0,Gt.jsxs)("div",{children:[(0,Gt.jsx)("p",{style:{maxWidth:"400px"},children:null!==(r=e.message)&&void 0!==r?r:(0,Dt.__)((0,Dt.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,Gt.jsx)("ul",{children:l.filter((function(e){return"editorplus"!==e})).map((function(e){return(0,Gt.jsx)("li",{children:kr(e)},e)}))}),(0,Gt.jsxs)(Rt.ButtonGroup,{children:[(0,Gt.jsx)(Rt.Button,{isPrimary:!0,onClick:function(){return(0,o.render)((0,Gt.jsx)(Mr,{}),document.getElementById("extendify-root"))},children:(0,Dt.__)("Activate Plugins","extendify")}),e.showClose&&(0,Gt.jsx)(Rt.Button,{isTertiary:!0,onClick:function(){return(0,o.render)((0,Gt.jsx)(oa,{show:!0}),document.getElementById("extendify-root"))},style:{boxShadow:"none",margin:"0 4px"},children:(0,Dt.__)("No thanks, return to library","extendify")})]})]})}):(0,Gt.jsx)(Cr,{})}function Dr(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 Fr=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,vr(t);case 2:return e.t0=!e.sent,e.t1=function(){},e.t2=function(){return new Promise((function(){(0,o.render)((0,Gt.jsx)(Rr,{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){Dr(i,r,o,a,s,"next",e)}function s(e){Dr(i,r,o,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}();function Br(e){var t=e.msg;return(0,Gt.jsxs)(Rt.Modal,{style:{maxWidth:"500px"},title:(0,Dt.__)("Error installing plugins","extendify"),isDismissible:!1,children:[(0,Dt.__)("You have encountered an error that we cannot recover from. Please try again.","extendify"),(0,Gt.jsx)("br",{}),(0,Gt.jsx)(Rt.Notice,{isDismissible:!1,status:"error",children:t}),(0,Gt.jsx)(Rt.Button,{isPrimary:!0,onClick:function(){return(0,o.render)((0,Gt.jsx)(Hr,{}),document.getElementById("extendify-root"))},children:(0,Dt.__)("Go back","extendify")})]})}function zr(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 Ur(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 Ur(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 Ur(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 Vr(e){var t,n=e.requiredPlugins,r=zr((0,o.useState)(""),2),i=r[0],a=r[1],s=br((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 Zt(l).then((function(){br.setState({importOnLoad:!0}),(0,o.render)((0,Gt.jsx)(Nr,{}),document.getElementById("extendify-root"))})).catch((function(e){var t=e.message;a(t)})),i?(0,Gt.jsx)(Br,{msg:i}):(0,Gt.jsx)(Rt.Modal,{title:(0,Dt.__)("Installing plugins","extendify"),isDismissible:!1,children:(0,Gt.jsx)(Rt.Button,{style:{width:"100%"},disabled:!0,isPrimary:!0,isBusy:!0,onClick:function(){},children:(0,Dt.__)("Installing...","extendify")})})}function Hr(e){var t,n,r,i,a,s=e.forceOpen,l=e.buttonLabel,c=e.title,u=e.message,d=e.requiredPlugins,f=br((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=q.getState())&&void 0!==r&&r.canInstallPlugins?(0,Gt.jsxs)(Rt.Modal,{title:null!=c?c:(0,Dt.__)("Install required plugins","extendify"),isDismissible:!1,children:[(0,Gt.jsx)("p",{style:{maxWidth:"400px"},children:null!=u?u:(0,Dt.__)((0,Dt.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,Gt.jsx)("ul",{children:d.filter((function(e){return"editorplus"!==e})).map((function(e){return(0,Gt.jsx)("li",{children:kr(e)},e)}))}),(0,Gt.jsxs)(Rt.ButtonGroup,{children:[(0,Gt.jsx)(Rt.Button,{isPrimary:!0,onClick:function(){return(0,o.render)((0,Gt.jsx)(Vr,{requiredPlugins:d}),document.getElementById("extendify-root"))},children:null!=l?l:(0,Dt.__)("Install Plugins","extendify")}),s||(0,Gt.jsx)(Rt.Button,{isTertiary:!0,onClick:function(){s||(0,o.render)((0,Gt.jsx)(oa,{show:!0}),document.getElementById("extendify-root"))},style:{boxShadow:"none",margin:"0 4px"},children:(0,Dt.__)("No thanks, take me back","extendify")})]})]}):(0,Gt.jsx)(Cr,{})}function Wr(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 $r=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,xr(t);case 2:return e.t0=!e.sent,e.t1=function(){},e.t2=function(){return new Promise((function(){(0,o.render)((0,Gt.jsx)(Hr,{}),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){Wr(i,r,o,a,s,"next",e)}function s(e){Wr(i,r,o,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}();function qr(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 Gr(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 Gr(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 Gr(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 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)}function Kr(e){return 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)}))}}function Xr(e){return new Qr(e)}function Zr(e){return function(){return new Yr(e.apply(this,arguments))}}function Yr(e){var t,n;function r(t,n){try{var i=e[t](n),a=i.value,s=a instanceof Qr;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 Qr(e){this.wrapped=e}Yr.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},Yr.prototype.next=function(e){return this._invoke("next",e)},Yr.prototype.throw=function(e){return this._invoke("throw",e)},Yr.prototype.return=function(e){return this._invoke("return",e)};function eo(e){return to.apply(this,arguments)}function to(){return(to=Kr(a().mark((function e(t){var n,r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=no(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 no(e){return ro.apply(this,arguments)}function ro(){return(ro=Zr(a().mark((function e(t){var n,r,o;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=qr(t),e.prev=1,n.s();case 3:if((r=n.n()).done){e.next=11;break}return o=r.value,e.next=7,Xr(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 oo(e,t){var n=(0,_r.dispatch)("core/block-editor"),r=n.insertBlocks,o=n.replaceBlock,i=(0,_r.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 io=n(306);function ao(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 so(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 so(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 so(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 lo=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=ao((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,Gt.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,Gt.jsx)(io.CopyToClipboard,{text:null==s||null===(i=s.fields)||void 0===i?void 0:i.basePattern,onCopy:function(){return d((0,Dt.__)("Copied!","extendify"))},children:(0,Gt.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,Dt.sprintf)((0,Dt.__)("Base: %s","extendify"),u)})}),(0,Gt.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,Dt.__)("Edit","extendify")})]}):null};function co(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 uo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?co(Object(n),!0).forEach((function(t){fo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):co(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var po=(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,Gt.jsx)(Ke,{appear:!0,show:r,as:o.Fragment,className:"extendify",children:(0,Gt.jsx)(Mt,{initialFocus:null!=t?t:l,onClose:a,children:(0,Gt.jsxs)("div",{className:"fixed inset-0 z-high flex",children:[(0,Gt.jsx)(Ke.Child,{as:o.Fragment,enter:"ease-out duration-200 transition",enterFrom:"opacity-0",enterTo:"opacity-100",children:(0,Gt.jsx)(Mt.Overlay,{className:"fixed inset-0 bg-black bg-opacity-40"})}),(0,Gt.jsx)(Ke.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,Gt.jsx)("div",{className:"relative m-auto w-full",children:(0,Gt.jsxs)("div",{className:"relative m-auto w-full max-w-lg items-center justify-center rounded-sm bg-white shadow-modal",children:[i?(0,Gt.jsxs)("div",{className:"flex items-center justify-between border-b py-2 pl-6 pr-3 leading-none",children:[(0,Gt.jsx)("span",{className:"whitespace-nowrap text-base text-extendify-black",children:i}),(0,Gt.jsx)(ho,{onClick:a})]}):(0,Gt.jsx)("div",{className:"absolute top-0 right-0 block px-4 py-4 ",children:(0,Gt.jsx)(ho,{ref:l,onClick:a})}),(0,Gt.jsx)("div",{children:s})]})})})]})})})})),ho=(0,o.forwardRef)((function(e,t){return(0,Gt.jsx)(Rt.Button,uo(uo({},e),{},{icon:(0,Gt.jsx)(Ft,{icon:On}),ref:t,className:"text-extendify-black opacity-75 hover:opacity-100",showTooltip:!1,label:(0,Dt.__)("Close dialog","extendify")}))}));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 xo(e){return 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)}))}}function yo(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 vo(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 vo(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 vo(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 go=function(){var e=yo((0,o.useState)(!1),2),t=e[0],n=e[1],r=yo((0,o.useState)(!1),2),i=r[0],s=r[1],l=dr(),c=function(){var e=xo(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),q.setState({participatingTestsGroups:[]}),e.next=8,q.persist.rehydrate();case 8:return window.extendifyData._canRehydrate=!1,n(!1),e.abrupt("return");case 11:return q.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=xo(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")),ce.getState().resetTemplates(),ce.getState().updateSearchParams({}),Y.persist.clearStorage(),Y.persist.rehydrate(),ce.setState({taxonomyDefaultState:{}}),Y.getState().fetchTaxonomies().then((function(){ce.getState().setupDefaultTaxonomies()}));case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return window.extendifyData.devbuild?(0,Gt.jsxs)("section",{className:"p-6 flex flex-col space-y-6 border-l-8 border-extendify-secondary",children:[(0,Gt.jsxs)("div",{children:[(0,Gt.jsx)("p",{className:"text-base m-0 text-extendify-black",children:"Development Settings"}),(0,Gt.jsx)("p",{className:"text-sm italic m-0 text-gray-500",children:"Only available on dev builds"})]}),(0,Gt.jsxs)("div",{className:"flex space-x-2",children:[(0,Gt.jsxs)(Rt.Button,{isSecondary:!0,onClick:u,children:["Switch to ",l?"Live":"Dev"," Server"]}),(0,Gt.jsx)(Rt.Button,{isSecondary:!0,onClick:c,children:t?"Processing...":i?"OK! Press to rehydrate app":"Reset User Data"})]})]}):null};function bo(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 wo(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){bo(i,r,o,a,s,"next",e)}function s(e){bo(i,r,o,a,s,"throw",e)}a(void 0)}))}}function jo(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 ko(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 ko(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 ko(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 So(e){var t=e.actionCallback,n=e.initialFocus,r=q((function(e){return e.apiKey.length})),i=jo((0,o.useState)(""),2),s=i[0],l=i[1],c=jo((0,o.useState)(""),2),u=c[0],d=c[1],f=jo((0,o.useState)(""),2),p=f[0],h=f[1],m=jo((0,o.useState)("info"),2),x=m[0],y=m[1],v=jo((0,o.useState)(!1),2),g=v[0],b=v[1],w=jo((0,o.useState)(!1),2),j=w[0],k=w[1],S=(0,o.useRef)(null),C=(0,o.useRef)(null),_=dr();(0,o.useEffect)((function(){return l(q.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=wo(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,N(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,Dt.__)("Something went wrong","extendify")),e.abrupt("return");case 25:y("success"),h("Success!"),k(!0),b(!1),q.setState({email:s,apiKey:r});case 30:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return j?(0,Gt.jsxs)("section",{className:"space-y-6 p-6 text-center flex flex-col items-center",children:[(0,Gt.jsx)(Ft,{icon:kn,size:148}),(0,Gt.jsx)("p",{className:"text-center text-lg font-semibold m-0 text-extendify-black",children:(0,Dt.__)("You've signed in to Extendify","extendify")}),(0,Gt.jsx)(Rt.Button,{ref:S,className:"cursor-pointer rounded bg-extendify-main p-2 px-4 text-center text-white",onClick:t,children:(0,Dt.__)("View patterns","extendify")})]}):r?(0,Gt.jsxs)("section",{className:"w-full space-y-6 p-6",children:[(0,Gt.jsx)("p",{className:"text-base m-0 text-extendify-black",children:(0,Dt.__)("Account","extendify")}),(0,Gt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Gt.jsxs)("div",{className:"-ml-2 flex items-center space-x-2",children:[(0,Gt.jsx)(Ft,{icon:_n,size:48}),(0,Gt.jsx)("p",{className:"text-extendify-black",children:null!=s&&s.length?s:(0,Dt.__)("Logged In","extendify")})]}),_&&(0,Gt.jsx)(Rt.Button,{className:"cursor-pointer rounded bg-extendify-main px-4 py-3 text-center text-white hover:bg-extendify-main-dark",onClick:function(){d(""),q.setState({apiKey:""}),setTimeout((function(){var e;null==C||null===(e=C.current)||void 0===e||e.focus()}),0)},children:(0,Dt.__)("Sign out","extendify")})]})]}):(0,Gt.jsxs)("section",{className:"space-y-6 p-6 text-left",children:[(0,Gt.jsxs)("div",{children:[(0,Gt.jsx)("p",{className:"text-center text-lg font-semibold m-0 text-extendify-black",children:(0,Dt.__)("Sign in to Extendify","extendify")}),(0,Gt.jsxs)("p",{className:"space-x-1 text-center text-sm m-0 text-extendify-gray",children:[(0,Gt.jsx)("span",{children:(0,Dt.__)("Don't have an account?","extendify")}),(0,Gt.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(q.getState().activeTestGroupsUtmValue()),target:"_blank",onClick:wo(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,de("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,Dt.__)("Sign up","extendify")})]})]}),(0,Gt.jsxs)("form",{onSubmit:O,className:"flex flex-col items-center justify-center space-y-2",children:[(0,Gt.jsxs)("div",{className:"flex items-center",children:[(0,Gt.jsx)("label",{className:"sr-only",htmlFor:"extendify-login-email",children:(0,Dt.__)("Email address","extendify")}),(0,Gt.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,Dt.__)("Email address","extendify"),value:s.length?s:"",onChange:function(e){return l(e.target.value)}})]}),(0,Gt.jsxs)("div",{className:"flex items-center",children:[(0,Gt.jsx)("label",{className:"sr-only",htmlFor:"extendify-login-license",children:(0,Dt.__)("License key","extendify")}),(0,Gt.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,Dt.__)("License key","extendify"),value:u,onChange:function(e){return d(e.target.value)}})]}),(0,Gt.jsx)("div",{className:"flex justify-center pt-2",children:(0,Gt.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,Gt.jsx)("span",{children:(0,Dt.__)("Sign In","extendify")}),g&&(0,Gt.jsx)("div",{className:"absolute right-2.5",children:(0,Gt.jsx)(Rt.Spinner,{})})]})}),p&&(0,Gt.jsx)("div",{className:zt()({"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,Gt.jsx)("div",{className:"pt-4 text-center",children:(0,Gt.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(q.getState().activeTestGroupsUtmValue()),onClick:wo(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,de("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,Dt.__)("Need Help?","extendify")})})]})]})}var Co=function(){var e=(0,o.useRef)(null),t=k((function(e){return e.removeAllModals}));return(0,Gt.jsx)(po,{heading:(0,Dt.__)("Settings","extendify"),isOpen:!0,ref:e,children:(0,Gt.jsxs)("div",{className:"flex justify-center flex-col divide-y",children:[(0,Gt.jsx)(go,{}),(0,Gt.jsx)(So,{initialFocus:e,actionCallback:t})]})})};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)}function Oo(e){return 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 Eo=function(){var e=k((function(e){return e.pushModal})),t=(0,o.useRef)(null);return(0,Gt.jsxs)(En,{isOpen:!0,ref:t,leftContainerBgColor:"bg-white",children:[(0,Gt.jsxs)("div",{children:[(0,Gt.jsx)("div",{className:"mb-5 flex items-center space-x-2 text-extendify-black",children:mn}),(0,Gt.jsx)("h3",{className:"mt-0 text-xl",children:(0,Dt.__)("You're out of imports","extendify")}),(0,Gt.jsx)("p",{className:"text-sm text-black",children:(0,Dt.__)("Sign up today and get unlimited access to our entire collection of patterns and page layouts.","extendify")}),(0,Gt.jsxs)("div",{children:[(0,Gt.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(q.getState().activeTestGroupsUtmValue()),onClick:Oo(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,de("no-imports-modal-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),rel:"noreferrer",children:[(0,Dt.__)("Get Unlimited Imports","extendify"),(0,Gt.jsx)(Rt.Icon,{icon:bn,size:24,className:"-mr-1"})]}),(0,Gt.jsxs)("p",{className:"mb-0 text-left text-sm text-extendify-gray",children:[(0,Dt.__)("Have an account?","extendify"),(0,Gt.jsx)(Rt.Button,{onClick:function(){return e((0,Gt.jsx)(Co,{}))},className:"pl-2 text-sm text-extendify-gray underline hover:no-underline",children:(0,Dt.__)("Sign in","extendify")})]})]})]}),(0,Gt.jsxs)("div",{className:"flex h-full flex-col justify-center space-y-2 p-10 text-black",children:[(0,Gt.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,Gt.jsx)(Rt.Icon,{icon:jn,size:24}),(0,Gt.jsx)("span",{className:"text-sm leading-none",children:(0,Dt.__)("Access to 100's of Patterns","extendify")})]}),(0,Gt.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,Gt.jsx)(Rt.Icon,{icon:xn,size:24}),(0,Gt.jsx)("span",{className:"text-sm leading-none",children:(0,Dt.__)('Access to "Pro" catalog',"extendify")})]}),(0,Gt.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,Gt.jsx)(Rt.Icon,{icon:wn,size:24}),(0,Gt.jsx)("span",{className:"text-sm leading-none",children:(0,Dt.__)("Beautiful full page layouts","extendify")})]}),(0,Gt.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,Gt.jsx)(Rt.Icon,{icon:Sn,size:24}),(0,Gt.jsx)("span",{className:"text-sm leading-none",children:(0,Dt.__)("Fast and friendly support","extendify")})]}),(0,Gt.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,Gt.jsx)(Rt.Icon,{icon:Cn,size:24}),(0,Gt.jsx)("span",{className:"text-sm leading-none",children:(0,Dt.__)("14-Day guarantee","extendify")})]})]})]})};function No(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 Ao(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){No(i,r,o,a,s,"next",e)}function s(e){No(i,r,o,a,s,"throw",e)}a(void 0)}))}}var Po=function(){var e=(0,o.useRef)(null);return(0,Gt.jsxs)(En,{isOpen:!0,invertedButtonColor:!0,ref:e,children:[(0,Gt.jsxs)("div",{children:[(0,Gt.jsx)("div",{className:"mb-5 flex items-center space-x-2 text-extendify-black",children:mn}),(0,Gt.jsx)("h3",{className:"mt-0 text-xl",children:(0,Dt.__)("Get unlimited access to all our Pro patterns & layouts","extendify")}),(0,Gt.jsx)("p",{className:"text-sm text-black",children:(0,Dt.__)("Upgrade to Extendify Pro and use all the patterns and layouts you'd like, including our exclusive Pro catalog.","extendify")}),(0,Gt.jsx)("div",{children:(0,Gt.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(q.getState().activeTestGroupsUtmValue()),onClick:Ao(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,de("pro-modal-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),rel:"noreferrer",children:[(0,Dt.__)("Upgrade Now","extendify"),(0,Gt.jsx)(Rt.Icon,{icon:bn,size:24,className:"-mr-1"})]})})]}),(0,Gt.jsx)("div",{className:"justify-endrounded-tr-sm flex w-full rounded-br-sm bg-black",children:(0,Gt.jsx)("img",{alt:(0,Dt.__)("Upgrade Now","extendify"),className:"max-w-full rounded-tr-sm rounded-br-sm",src:window.extendifyData.asset_path+"/modal-extendify-black.png"})})]})};function To(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}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,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 Mo(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 Mo(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 Mo(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 Ro=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{hasRequiredPlugins:$r,hasPluginsActivated:Fr,stack:[],check:function(t){var n=this;return Kr(a().mark((function r(){var o,i,s,l;return a().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:o=qr(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 Do(e){var t,n,i,s,l,c,u=e.template,d=e.maxHeight,f=(0,o.useRef)(null),p=q((function(e){return e.hasAvailableImports})),h=q((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=Lo((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:Fo(u.fields.code)})}),[u.fields.code]),S=(0,o.useMemo)((function(){return(0,r.rawHandler)({HTML:u.fields.code})}),[u.fields.code]),C=dr(),_=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,Ro.check(u);case 2:eo(Ro).then((function(){setTimeout((function(){oo(S,u).then((function(){return y()})).then((function(){return m(!1)})).then((function(){return Ro.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){Io(i,r,o,a,s,"next",e)}function s(e){Io(i,r,o,a,s,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}(),O=function(){var e;ir(u),null==u||null===(e=u.fields)||void 0===e||!e.pro||h?p()?_():x((0,Gt.jsx)(Eo,{})):x((0,Gt.jsx)(Po,{}))};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,Gt.jsxs)("div",{className:"group relative",children:[(0,Gt.jsx)("div",{role:"button",tabIndex:"0","aria-label":(0,Dt.sprintf)((0,Dt.__)("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,Gt.jsx)("div",{ref:f,style:{top:g,transitionProperty:"all"},className:zt()("with-light-shadow relative",(l={},To(l,"is-template--".concat(u.fields.status),(null==u||null===(s=u.fields)||void 0===s?void 0:s.status)&&C),To(l,"p-6 md:p-8",Number.isInteger(d)),l)),children:(0,Gt.jsx)(lr.BlockPreview,{blocks:j,live:!1,viewportWidth:1400})})}),C&&(0,Gt.jsx)(lo,{template:u}),(null==u||null===(c=u.fields)||void 0===c?void 0:c.pro)&&(0,Gt.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,Dt.__)("Pro","extendify")})]})}var Fo=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 Bo(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 zo(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 zo(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 zo(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=(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=ce((function(e){return e.templates})),n=Bo((0,o.useState)(0),2),r=n[0],i=n[1],a=ce((function(e){return e.appendTemplates})),l=Bo((0,o.useState)(""),2),c=l[0],u=l[1],d=(0,o.useRef)(!1),f=Bo((0,o.useState)(!1),2),p=f[0],h=f[1],m=Bo((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=Hn(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=Bo(v,2),b=g[0],w=g[1],j=ce((function(e){return e.searchParams})),S=k((function(e){return e.currentType})),C=ce((function(e){return e.resetTemplates})),O=k((function(e){return e.open})),E=Y((function(e){return e.taxonomies})),N=ce((function(e){return e.updateType})),A=ce((function(e){return e.updateTaxonomies})),P=(0,o.useRef)(ce.getState().nextPage),T=(0,o.useRef)(ce.getState().searchParams),I="pattern"===T.current.type?"patternType":"layoutType",L=T.current.taxonomies[I];(0,o.useEffect)((function(){return ce.subscribe((function(e){return e.nextPage}),(function(e){return P.current=e}))}),[]),(0,o.useEffect)((function(){return ce.subscribe((function(e){return e.searchParams}),(function(e){return T.current=e}))}),[]);var M,R=(0,o.useCallback)((function(){var t,n,r;u(""),h(!1);var o=(0,Dt.__)("Unknown error occurred. Check browser console or contact support.","extendify"),s={offset:P.current},l=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:{slug:"default"},c=(0,_.cloneDeep)(T.current);c.taxonomies.siteType=l,or(c,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&&(ce.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]);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,R())}),[c,R]),(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(!ce.getState().skipNextFetch)return R(),function(){return C()};ce.setState({skipNextFetch:!1})}}),[R,T,C]),(0,o.useEffect)((function(){P.current&&w&&R()}),[w,R,r]),c.length&&d.current?(0,Gt.jsxs)("div",{className:"text-left",children:[(0,Gt.jsx)("h2",{className:"text-left",children:(0,Dt.__)("Server error","extendify")}),(0,Gt.jsx)("code",{className:"mb-4 block max-w-xl p-4",style:{minHeight:"10rem"},children:c}),(0,Gt.jsx)(Rt.Button,{isTertiary:!0,onClick:function(){d.current=!1,R()},children:(0,Dt.__)("Press here to reload")})]}):p?(0,Gt.jsx)("div",{className:"-mt-2 flex h-full w-full items-center justify-center sm:mt-0",children:(0,Gt.jsx)("h2",{className:"text-sm font-normal text-extendify-gray",children:(0,Dt.sprintf)("template"===T.current.type?(0,Dt.__)('We couldn\'t find any layouts in the "%s" category.',"extendify"):(0,Dt.__)('We couldn\'t find any patterns in the "%s" category.',"extendify"),null!==(M=null==L?void 0:L.title)&&void 0!==M?M:L.slug)})}):(0,Gt.jsxs)(Gt.Fragment,{children:[x&&(0,Gt.jsx)("div",{className:"-mt-2 flex h-full w-full items-center justify-center sm:mt-0",children:(0,Gt.jsx)(Rt.Spinner,{})}),(0,Gt.jsx)(Vo,{type:S,templates:t,children:t.map((function(e){return(0,Gt.jsx)(Do,{maxHeight:"template"===S?520:"none",template:e},e.id)}))}),P.current&&(0,Gt.jsxs)(Gt.Fragment,{children:[(0,Gt.jsx)("div",{className:"mt-8",children:(0,Gt.jsx)(Rt.Spinner,{})}),(0,Gt.jsx)("div",{className:"relative flex flex-col items-end justify-end -top-1/4 h-4",ref:b,style:{zIndex:-1}})]})]})})),Vo=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,Gt.jsx)("div",{className:"grid gap-6 md:gap-8 lg:grid-cols-2 ".concat(r),children:n});return(0,Gt.jsx)(er,{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 Ho(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 Wo(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Ho(i,r,o,a,s,"next",e)}function s(e){Ho(i,r,o,a,s,"throw",e)}a(void 0)}))}}var $o=(0,o.memo)((function(){var e=q((function(e){return e.remainingImports})),t=q((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){T().then((function(e){e=/^[1-9]\d*$/.test(e)?e:5,q.setState({allowedImports:e})})).catch((function(){return q.setState({allowedImports:5})}))}}),[t]),t?(0,Gt.jsxs)("div",{tabIndex:"0",className:"group relative mb-5",children:[(0,Gt.jsxs)("a",{target:"_blank",ref:i,rel:"noreferrer",className:zt()("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:Wo(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,de("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(q.getState().activeTestGroupsUtmValue()),children:[(0,Gt.jsxs)("span",{className:"flex items-center space-x-2 text-xs no-underline",children:[(0,Gt.jsx)(Ft,{icon:n>0?yn:fn,size:14}),(0,Gt.jsx)("span",{children:(0,Dt.sprintf)((0,Dt._n)("%s Import","%s Imports",n,"extendify"),n)})]}),(0,Gt.jsxs)("span",{className:"outline-none flex items-center text-sm font-medium text-white no-underline",children:[(0,Dt.__)("Get more","extendify"),(0,Gt.jsx)(Ft,{icon:bn,size:24,className:"-mr-1.5"})]})]}),(0,Gt.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,Gt.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(q.getState().activeTestGroupsUtmValue()),className:"block bg-gray-900 text-white p-4 no-underline rounded bg-cover",onClick:Wo(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,de("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,Gt.jsx)("span",{dangerouslySetInnerHTML:{__html:dn((0,Dt.sprintf)((0,Dt.__)("%1$sGet %2$s off%3$s Extendify Pro when you upgrade today!","extendify"),"<strong>","50%","</strong>"))}})})})]}):null}));function qo(e){return Array.isArray?Array.isArray(e):"[object Array]"===Qo(e)}function Go(e){return"string"==typeof e}function Jo(e){return"number"==typeof e}function Ko(e){return!0===e||!1===e||function(e){return Xo(e)&&null!==e}(e)&&"[object Boolean]"==Qo(e)}function Xo(e){return"object"==typeof e}function Zo(e){return null!=e}function Yo(e){return!e.trim().length}function Qo(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const ei=Object.prototype.hasOwnProperty;class ti{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach((e=>{let n=ni(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 ni(e){let t=null,n=null,r=null,o=1;if(Go(e)||qo(e))r=e,t=ri(e),n=oi(e);else{if(!ei.call(e,"name"))throw new Error((e=>`Missing ${e} property in key`)("name"));const i=e.name;if(r=i,ei.call(e,"weight")&&(o=e.weight,o<=0))throw new Error((e=>`Property 'weight' in key '${e}' must be a positive integer`)(i));t=ri(i),n=oi(i)}return{path:t,id:n,weight:o,src:r}}function ri(e){return qo(e)?e:e.split(".")}function oi(e){return qo(e)?e.join("."):e}const ii={useExtendedSearch:!1,getFn:function(e,t){let n=[],r=!1;const o=(e,t,i)=>{if(Zo(e))if(t[i]){const a=e[t[i]];if(!Zo(a))return;if(i===t.length-1&&(Go(a)||Jo(a)||Ko(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,Go(t)?t.split("."):t,0),r?n:n[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var ai={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,...ii};const si=/[^ ]+/g;class li{constructor({getFn:e=ai.getFn,fieldNormWeight:t=ai.fieldNormWeight}={}){this.norm=function(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(t){const o=t.match(si).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,Go(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();Go(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(!Zo(e)||Yo(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(Zo(o))if(qo(o)){let e=[];const t=[{nestedArrIndex:-1,value:o}];for(;t.length;){const{nestedArrIndex:n,value:r}=t.pop();if(Zo(r))if(Go(r)&&!Yo(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(!Yo(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 ci(e,t,{getFn:n=ai.getFn,fieldNormWeight:r=ai.fieldNormWeight}={}){const o=new li({getFn:n,fieldNormWeight:r});return o.setKeys(e.map(ni)),o.setSources(t),o.create(),o}function ui(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:o=ai.distance,ignoreLocation:i=ai.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 di=32;function fi(e,t,n,{location:r=ai.location,distance:o=ai.distance,threshold:i=ai.threshold,findAllMatches:a=ai.findAllMatches,minMatchCharLength:s=ai.minMatchCharLength,includeMatches:l=ai.includeMatches,ignoreLocation:c=ai.ignoreLocation}={}){if(t.length>di)throw new Error(`Pattern length exceeds max of ${di}.`);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=ui(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;){ui(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=ui(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(ui(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=ai.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 pi(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 hi{constructor(e,{location:t=ai.location,threshold:n=ai.threshold,distance:r=ai.distance,includeMatches:o=ai.includeMatches,findAllMatches:i=ai.findAllMatches,minMatchCharLength:a=ai.minMatchCharLength,isCaseSensitive:s=ai.isCaseSensitive,ignoreLocation:l=ai.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:pi(e),startIndex:t})},u=this.pattern.length;if(u>di){let e=0;const t=u%di,n=u-t;for(;e<n;)c(this.pattern.substr(e,di),e),e+=di;if(t){const e=u-di;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}=fi(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 mi{constructor(e){this.pattern=e}static isMultiMatch(e){return xi(e,this.multiRegex)}static isSingleMatch(e){return xi(e,this.singleRegex)}search(){}}function xi(e,t){const n=e.match(t);return n?n[1]:null}class yi extends mi{constructor(e,{location:t=ai.location,threshold:n=ai.threshold,distance:r=ai.distance,includeMatches:o=ai.includeMatches,findAllMatches:i=ai.findAllMatches,minMatchCharLength:a=ai.minMatchCharLength,isCaseSensitive:s=ai.isCaseSensitive,ignoreLocation:l=ai.ignoreLocation}={}){super(e),this._bitapSearch=new hi(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 vi extends mi{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 gi=[class extends mi{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]}}},vi,class extends mi{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 mi{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 mi{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 mi{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 mi{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]}}},yi],bi=gi.length,wi=/ +(?=([^\"]*\"[^\"]*\")*[^\"]*$)/;const ji=new Set([yi.type,vi.type]);class ki{constructor(e,{isCaseSensitive:t=ai.isCaseSensitive,includeMatches:n=ai.includeMatches,minMatchCharLength:r=ai.minMatchCharLength,ignoreLocation:o=ai.ignoreLocation,findAllMatches:i=ai.findAllMatches,location:a=ai.location,threshold:s=ai.threshold,distance:l=ai.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(wi).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<bi;){const e=gi[a];let n=e.isMultiMatch(o);n&&(r.push(new e(n,t)),i=!0)}if(!i)for(a=-1;++a<bi;){const e=gi[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;ji.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 Si=[];function Ci(e,t){for(let n=0,r=Si.length;n<r;n+=1){let r=Si[n];if(r.condition(e,t))return new r(e,t)}return new hi(e,t)}const _i="$and",Oi="$or",Ei="$path",Ni="$val",Ai=e=>!(!e[_i]&&!e[Oi]),Pi=e=>({[_i]:Object.keys(e).map((t=>({[t]:e[t]})))});function Ti(e,t,{auto:n=!0}={}){const r=e=>{let o=Object.keys(e);const i=(e=>!!e[Ei])(e);if(!i&&o.length>1&&!Ai(e))return r(Pi(e));if((e=>!qo(e)&&Xo(e)&&!Ai(e))(e)){const r=i?e[Ei]:o[0],a=i?e[Ni]:e[r];if(!Go(a))throw new Error((e=>`Invalid value for key ${e}`)(r));const s={keyId:oi(r),pattern:a};return n&&(s.searcher=Ci(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 Ai(e)||(e=Pi(e)),r(e)}function Ii(e,t){const n=e.matches;t.matches=[],Zo(n)&&n.forEach((e=>{if(!Zo(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 Li(e,t){t.score=e.score}class Mi{constructor(e,t={},n){this.options={...ai,...t},this.options.useExtendedSearch,this._keyStore=new ti(this.options.keys),this.setCollection(e,n)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof li))throw new Error("Incorrect 'index' type");this._myIndex=t||ci(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){Zo(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=Go(e)?Go(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return function(e,{ignoreFieldNorm:t=ai.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),Jo(t)&&t>-1&&(s=s.slice(0,t)),function(e,t,{includeMatches:n=ai.includeMatches,includeScore:r=ai.includeScore}={}){const o=[];return n&&o.push(Ii),r&&o.push(Li),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=Ci(e,this.options),{records:n}=this._myIndex,r=[];return n.forEach((({v:e,i:n,n:o})=>{if(!Zo(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=Ti(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===_i)return[]}return o},r=this._myIndex.records,o={},i=[];return r.forEach((({$:e,i:r})=>{if(Zo(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=Ci(e,this.options),{keys:n,records:r}=this._myIndex,o=[];return r.forEach((({$:e,i:r})=>{if(!Zo(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(!Zo(t))return[];let r=[];if(qo(t))t.forEach((({v:t,i:o,n:i})=>{if(!Zo(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 Ri(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 Di(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 Di(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 Di(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}Mi.version="6.5.3",Mi.createIndex=ci,Mi.parseIndex=function(e,{getFn:t=ai.getFn,fieldNormWeight:n=ai.fieldNormWeight}={}){const{keys:r,records:o}=e,i=new li({getFn:t,fieldNormWeight:n});return i.setKeys(r),i.setIndexRecords(o),i},Mi.config=ai,Mi.parseQuery=Ti,function(...e){Si.push(...e)}(ki);var Fi=new Map,Bi=function(e){var t,n,r=e.value,i=e.setValue,a=e.terms,s=ce((function(e){return e.searchParams})),l=Ri((0,o.useState)(!1),2),c=l[0],u=l[1],d=(0,o.useRef)(),f=Ri((0,o.useState)({}),2),p=f[0],h=f[1],m=Ri((0,o.useState)(""),2),x=m[0],y=m[1],v=Ri((0,o.useState)([]),2),g=v[0],b=v[1],w=Ri((0,o.useState)(!0),2),j=w[0],k=w[1],S=(0,o.useMemo)((function(){return a.sort((function(e,t){return e.slug<t.slug?-1:e.slug>t.slug?1:0}))}),[a]),C=(0,o.useMemo)((function(){return S.filter((function(e){return null==e?void 0:e.featured}))}),[S]),_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(Fi.has(e))b(Fi.get(e));else{var t=p.search(e);Fi.set(e,null!=t&&t.length?t.map((function(e){return e.item})):C),b(Fi.get(e))}};(0,o.useEffect)((function(){h(new Mi(a,{keys:["slug","title","keywords"],minMatchCharLength:1,threshold:.3}))}),[a]),(0,o.useEffect)((function(){null!=x&&x.length||b(j?C:S)}),[C,x,S,j]),(0,o.useEffect)((function(){c&&d.current.focus()}),[c]),(0,o.useEffect)((function(){r.slug||u(!0)}),[r.slug]);var O,E,N;return(0,Gt.jsxs)("div",{className:"w-full rounded bg-gray-50 border border-gray-900",children:[(0,Gt.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:(E=c?(0,Dt.__)("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,Gt.jsxs)(Gt.Fragment,{children:[(0,Gt.jsxs)("span",{className:"flex flex-col text-left",children:[(0,Gt.jsx)("span",{className:zt()("mb-1",{"text-base font-normal":!r.slug,"text-sm font-normal":null===(N=r.slug)||void 0===N?void 0:N.length}),children:(0,Dt.__)("Site Type","extendify")}),(0,Gt.jsx)("span",{className:"text-xs font-light",children:E})]}),(0,Gt.jsxs)("span",{className:"flex items-center space-x-4",children:[!c&&!r.slug&&(0,Gt.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,Gt.jsx)("title",{children:(0,Dt.__)("Click to select a preferred site industry","extendify")}),(0,Gt.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,Gt.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,Gt.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,Gt.jsx)("svg",{className:zt()("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,Gt.jsx)("path",{d:"M1.24194 11.5952L6.24194 6.09519L1.24194 0.595215",strokeWidth:"1.5"})})]})]}))}),c&&(0,Gt.jsxs)("div",{className:"max-h-96 overflow-y-auto px-4 py-0",children:[(0,Gt.jsx)("div",{className:"sticky top-0 pt-0.5 pb-2 bg-gray-50",children:(0,Gt.jsxs)("div",{className:"relative",children:[(0,Gt.jsx)("label",{htmlFor:"site-type-search",className:"sr-only",children:(0,Dt.__)("Search","extendify")}),(0,Gt.jsx)("input",{ref:d,id:"site-type-search",value:null!=x?x:"",onChange:function(e){return t=e.target.value,y(t),void _(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,Dt.__)("Search","extendify")}),(0,Gt.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,Gt.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===C&&(0,Gt.jsx)("p",{className:"text-left",children:(0,Dt.__)("Nothing found...","extendify")}),(null==g?void 0:g.length)>0&&(0,Gt.jsx)("div",{children:(O=g,(0,Gt.jsx)(Gt.Fragment,{children:(0,Gt.jsx)("ul",{className:"mt-4 mb-0",children:O.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,Gt.jsx)("li",{className:"m-0 mb-1",children:(0,Gt.jsx)("button",{type:"button",className:zt()("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,Gt.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,Dt.__)("Show all","extendify"):(0,Dt.__)("Close","extendify")})]})};var zi=function(e){var t,n=e.active,r=e.tax,o=e.update;return(0,Gt.jsx)("li",{className:"m-0 w-full",children:(0,Gt.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,Gt.jsx)("span",{className:zt()("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)},Ui=function(e){var t=e.taxType,n=e.taxonomies,r=e.taxLabel,o=ce((function(e){return e.searchParams})),i=ce((function(e){return e.updateTaxonomies}));return!(null!=n&&n.length)>0?null:(0,Gt.jsx)(Rt.PanelBody,{title:Sr(null!=r?r:t),className:"ext-type-control p-0",initialOpen:!0,children:(0,Gt.jsx)(Rt.PanelRow,{children:(0,Gt.jsx)("div",{className:"relative w-full overflow-hidden",children:(0,Gt.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,Gt.jsx)(zi,{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)}))})})})})},Vi=function(e){var t=e.className,n=ce((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,Gt.jsxs)("div",{className:t,children:[(0,Gt.jsx)("h4",{className:"sr-only",children:(0,Dt.__)("Type select","extendify")}),(0,Gt.jsxs)("div",{className:"flex justify-evenly border border-gray-900 p-0.5 rounded",children:[(0,Gt.jsx)("button",{type:"button",className:zt()({"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,Gt.jsx)("span",{className:"",children:(0,Dt.__)("Patterns","extendify")})}),(0,Gt.jsx)("button",{type:"button",className:zt()({"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,Gt.jsx)("span",{className:"",children:(0,Dt.__)("Templates","extendify")})})]})]})};var Hi=(0,o.memo)((function(){var e,t,n,r,o,i,a,s=Y((function(e){return e.taxonomies})),l=ce((function(e){return e.searchParams})),c=q((function(e){return e.updatePreferredSiteType})),u=ce((function(e){return e.updateTaxonomies})),d=q((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}));return(0,Gt.jsxs)(Gt.Fragment,{children:[(0,Gt.jsx)("div",{className:"-ml-1.5 hidden px-5 text-extendify-black sm:flex",children:(0,Gt.jsx)(Ft,{icon:hn,size:40})}),(0,Gt.jsx)("div",{className:"flex md:hidden items-center justify-end -mt-5 mx-1",children:(0,Gt.jsx)(Rt.Button,{onClick:function(){return h(!1)},icon:(0,Gt.jsx)(Ft,{icon:On,size:24}),label:(0,Dt.__)("Close library","extendify")})}),(0,Gt.jsx)("div",{className:"px-5 hidden md:block",children:(0,Gt.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:zt()("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,Gt.jsx)(Ft,{icon:gn,size:24}),(0,Gt.jsx)("span",{className:"text-sm",children:(0,Dt.__)("Featured","extendify")})]})}),(0,Gt.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,Gt.jsx)(Bi,{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,Gt.jsx)(Vi,{className:"mx-6 px-5 pt-0.5 sm:mx-0 sm:mb-8 sm:mt-0"}),(0,Gt.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,Gt.jsx)(Rt.Panel,{className:"bg-transparent",children:(0,Gt.jsx)(Ui,{taxType:f,taxonomies:null===(i=s[f])||void 0===i?void 0:i.filter((function(e){return!(null!=e&&e.designType)}))})}),(0,Gt.jsx)(Rt.Panel,{className:"bg-transparent",children:(0,Gt.jsx)(Ui,{taxLabel:(0,Dt.__)("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,Gt.jsx)("div",{className:"px-5",children:(0,Gt.jsx)($o,{})})]})}));function Wi(e){var t=e.children,n=k((function(e){return e.ready}));return(0,Gt.jsxs)(Gt.Fragment,{children:[(0,Gt.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,Gt.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,Gt.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=(0,o.memo)((function(e){var t=e.className,n=k((function(e){return e.setOpen})),r=k((function(e){return e.pushModal})),o=q((function(e){return e.apiKey.length}));return(0,Gt.jsx)("div",{className:t,children:(0,Gt.jsx)("div",{className:"flex h-full items-center justify-between",children:(0,Gt.jsxs)("div",{className:"flex flex-1 items-center justify-end lg:-mr-1",children:[(0,Gt.jsx)(Rt.Button,{onClick:function(){return r((0,Gt.jsx)(Co,{}))},icon:(0,Gt.jsx)(Ft,{icon:_n,size:24}),label:(0,Dt.__)("Login and settings area","extendify"),children:o?"":(0,Dt.__)("Sign in","extendify")}),(0,Gt.jsx)(Rt.Button,{onClick:function(){return n(!1)},icon:(0,Gt.jsx)(Ft,{icon:On,size:24}),label:(0,Dt.__)("Close library","extendify")})]})})})})),qi=function(e){var t=e.setOpen,n=(0,o.useRef)(),r=ce((function(e){return e.searchParams}));return(0,o.useEffect)((function(){n.current&&(n.current.scrollTop=0)}),[r]),(0,Gt.jsx)("div",{className:"relative mx-auto flex h-full max-w-screen-4xl flex-col items-center",children:(0,Gt.jsxs)("div",{className:"w-full flex-grow overflow-hidden",children:[(0,Gt.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,Dt.__)("Skip to templates","extendify")}),(0,Gt.jsx)("div",{className:"relative mx-auto h-full sm:flex",children:(0,Gt.jsxs)(Wi,{children:[(0,Gt.jsx)(Hi,{}),(0,Gt.jsxs)("div",{className:"relative z-30 flex h-full flex-col",children:[(0,Gt.jsx)($i,{className:"hidden h-12 w-full flex-shrink-0 px-6 sm:block md:px-8",hideLibrary:function(){return t(!1)}}),(0,Gt.jsx)("div",{ref:n,className:"z-20 flex-grow overflow-y-auto px-6 md:px-8",children:(0,Gt.jsx)(Uo,{})})]})]})})]})})};function Gi(){var e=(0,o.useRef)(null),t=k((function(e){return e.open})),n=k((function(e){return e.setOpen})),r=function(){var e=Ln((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:In},n=t[null!==(e=Object.keys(t).find((function(e){return"standalone"===e?!window.extendifyData.standalone&&!q.getState().modalNoticesDismissedAt[e]:!q.getState().modalNoticesDismissedAt[e]})))&&void 0!==e?e:null];n&&i((0,Gt.jsx)(n,{}))}else a()}),[r,i,a]),t}(),i=k((function(e){return e.ready}));return(0,Gt.jsx)(Ke,{appear:!0,show:t,as:o.Fragment,children:(0,Gt.jsx)(Mt,{as:"div",static:!0,className:"extendify",initialFocus:e,onClose:function(){return n(!1)},children:(0,Gt.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,Gt.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,Gt.jsx)(Ke.Child,{as:o.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",children:(0,Gt.jsx)(Mt.Overlay,{className:"fixed inset-0 bg-black bg-opacity-40 transition-opacity"})}),(0,Gt.jsx)(Ke.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,Gt.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:[(0,Gt.jsx)(qi,{}),i?(0,Gt.jsxs)(Gt.Fragment,{children:[(0,Gt.jsx)(un,{}),r]}):null]})})]})})})})}const Ji=wp.compose,Ki=wp.hooks,Xi=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 Zi(e){return function(e){if(Array.isArray(e))return Yi(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 Yi(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 Yi(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 Yi(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 Qi(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 ea(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qi(Object(n),!0).forEach((function(t){ta(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ta(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var na=(0,Ji.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=Xi.t.map((function(e){return e.replace(".","").replace(new RegExp("\\\\","g"),"")}));return(0,Gt.jsxs)(Gt.Fragment,{children:[(0,Gt.jsx)(e,ea({},t)),o&&(0,Gt.jsx)(lr.InspectorAdvancedControls,{children:(0,Gt.jsx)(Rt.FormTokenField,{label:(0,Dt.__)("Extendify Utilities","extendify"),tokenizeOnSpace:!0,value:o,suggestions:i,onChange:function(e){t.setAttributes({extUtilities:e})}})})]})}}),"utilityClassEdit");function ra(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(Zi(c(l)),Zi(c(a)),Zi(c(s))));return Object.assign({},e,{className:Zi(u).join(" ")})}function oa(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=ce((function(e){return e.initTemplateData})),u=Y((function(e){return e.fetchTaxonomies})),d=q((function(e){return e._hasHydrated})),f=ce((function(e){return Object.keys(e.taxonomyDefaultState).length>0}));return(0,o.useEffect)((function(){r&&u().then((function(){ce.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(){ue().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,Gt.jsx)(Gi,{})}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}(0,Ki.addFilter)("blocks.registerBlockType","extendify/utilities/attributes",(function(e){return ea(ea({},e),{},{attributes:ea(ea({},e.attributes),{},{extUtilities:{type:"array",default:[]}})})})),(0,Ki.addFilter)("blocks.registerBlockType","extendify/utilities/addEditProps",(function(e){var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),ra(r,e,n)},e})),(0,Ki.addFilter)("editor.BlockEdit","extendify/utilities/advancedClassControls",na),(0,Ki.addFilter)("blocks.getSaveContent.extraProps","extendify/utilities/extra-props",ra);var aa,sa=(0,_r.select)("core/blocks").getCategories();(0,r.setCategories)([{slug:"extendify",title:"Extendify",icon:null}].concat(function(e){if(Array.isArray(e))return ia(e)}(aa=sa)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(aa)||function(e,t){if(e){if("string"==typeof e)return ia(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)?ia(e,t):void 0}}(aa)||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,Gt.jsx)(Rt.Icon,{icon:pn})});const la=(0,o.createElement)($t,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)(Ht,{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"})),ca=(0,o.createElement)($t,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)(Ht,{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"})),ua=(0,o.createElement)($t,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(Ht,{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"})),da=(0,o.createElement)($t,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(Ht,{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"})),fa=(0,o.createElement)($t,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(Ht,{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"})),pa=(0,o.createElement)($t,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)(Ht,{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"})),ha=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)(ha,{icon:pn,category:"extendify",example:{attributes:{preview:window.extendifyData.asset_path+"/preview.png"}},variations:[{name:"gallery",icon:(0,Gt.jsx)(Ft,{icon:la}),category:"extendify",attributes:{search:"gallery"},title:(0,Dt.__)("Gallery Patterns","extendify"),description:(0,Dt.__)("Add gallery patterns and layouts.","extendify"),keywords:[(0,Dt.__)("slideshow","extendify"),(0,Dt.__)("images","extendify")]},{name:"team",icon:(0,Gt.jsx)(Ft,{icon:ca}),category:"extendify",attributes:{search:"team"},title:(0,Dt.__)("Team Patterns","extendify"),description:(0,Dt.__)("Add team patterns and layouts.","extendify"),keywords:[(0,Dt._x)("crew","As in team","extendify"),(0,Dt.__)("colleagues","extendify"),(0,Dt.__)("members","extendify")]},{name:"hero",icon:(0,Gt.jsx)(Ft,{icon:ua}),category:"extendify",attributes:{search:"hero"},title:(0,Dt._x)("Hero Patterns","Hero being a hero/top section of a webpage","extendify"),description:(0,Dt.__)("Add hero patterns and layouts.","extendify"),keywords:[(0,Dt.__)("heading","extendify"),(0,Dt.__)("headline","extendify")]},{name:"text",icon:(0,Gt.jsx)(Ft,{icon:da}),category:"extendify",attributes:{search:"text"},title:(0,Dt._x)("Text Patterns","Relating to patterns that feature text only","extendify"),description:(0,Dt.__)("Add text patterns and layouts.","extendify"),keywords:[(0,Dt.__)("simple","extendify"),(0,Dt.__)("paragraph","extendify")]},{name:"about",icon:(0,Gt.jsx)(Ft,{icon:fa}),category:"extendify",attributes:{search:"about"},title:(0,Dt._x)("About Page Patterns","Add patterns relating to an about us page","extendify"),description:(0,Dt.__)("About patterns and layouts.","extendify"),keywords:[(0,Dt.__)("who we are","extendify"),(0,Dt.__)("team","extendify")]},{name:"call-to-action",icon:(0,Gt.jsx)(Ft,{icon:pa}),category:"extendify",attributes:{search:"call-to-action"},title:(0,Dt.__)("Call to Action Patterns","extendify"),description:(0,Dt.__)("Add call to action patterns and layouts.","extendify"),keywords:[(0,Dt._x)("cta","Initialism for call to action","extendify"),(0,Dt.__)("callout","extendify"),(0,Dt.__)("buttons","extendify")]}],edit:function(e){var t=e.clientId,n=e.attributes,r=(0,_r.useDispatch)("core/block-editor").removeBlock;return(0,o.useEffect)((function(){n.preview||(n.search&&ma(n.search),jr("library-block","open"),r(t))}),[t,n,r]),(0,Gt.jsx)("img",{style:{display:"block",maxWidth:"100%"},src:n.preview,alt:(0,Dt.sprintf)((0,Dt.__)("%s Pattern Library","extendify"),"Extendify")})}});var ma=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 xa=wp.editPost,ya=wp.plugins;var va=function(){return G.get("site-settings")},ga=function(e){var t=new FormData;return t.append("data",JSON.stringify(e)),G.post("site-settings",t,{headers:{"Content-Type":"multipart/form-data"}})};function ba(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 wa(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ba(i,r,o,a,s,"next",e)}function s(e){ba(i,r,o,a,s,"throw",e)}a(void 0)}))}}var ja={getItem:function(){var e=wa(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,va();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=wa(a().mark((function e(t,n){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ga(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(){}},ka=d(b((function(){return{enabled:!0}}),{name:"extendify-sitesettings",getStorage:function(){return ja}}));function Sa(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 Ca(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Sa(i,r,o,a,s,"next",e)}function s(e){Sa(i,r,o,a,s,"throw",e)}a(void 0)}))}}function _a(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 Oa(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 Oa(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 Oa(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 Ea=function(){var e=(0,_r.useSelect)((function(e){return e("core").canUser("create","users")})),t=_a((0,o.useState)(q.getState().enabled),2),n=t[0],r=t[1],i=_a((0,o.useState)(ka.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=Ca(a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,q.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=Ca(a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ka.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=Ca(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,Gt.jsxs)(Rt.Modal,{title:(0,Dt.__)("Extendify Settings","extendify"),onRequestClose:function(){var e=document.getElementById("extendify-util");(0,o.unmountComponentAtNode)(e)},children:[(0,Gt.jsx)(Rt.ToggleControl,{label:e?(0,Dt.__)("Enable the library for myself","extendify"):(0,Dt.__)("Enable the library","extendify"),help:(0,Dt.__)("Publish with hundreds of patterns & page layouts","extendify"),checked:n,onChange:function(){return x("user")}}),e&&(0,Gt.jsxs)(Gt.Fragment,{children:[(0,Gt.jsx)("br",{}),(0,Gt.jsx)(Rt.ToggleControl,{label:(0,Dt.__)("Allow all users to publish with the library"),help:(0,Dt.__)("Everyone publishes with patterns & page layouts","extendify"),checked:s,onChange:function(){return x("global")}})]})]})};function Na(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 Aa(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 Aa(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 Aa(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 Pa=function(e){var t=e.anchorRef,n=e.onPressX,r=e.onClick,o=e.onClickOutside;return t.current?(0,Gt.jsx)(Rt.Popover,{anchorRef:t.current,shouldAnchorIncludePadding:!0,className:"extendify-tooltip-default",focusOnMount:!1,onFocusOutside:o,onClick:r,position:"bottom center",noArrow:!1,children:(0,Gt.jsxs)(Gt.Fragment,{children:[(0,Gt.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"0.5rem"},children:[(0,Gt.jsx)("span",{style:{textTransform:"uppercase",color:"#8b8b8b"},children:(0,Dt.__)("Monthly Imports","extendify")}),(0,Gt.jsx)(Rt.Button,{style:{color:"white",position:"relative",right:"-5px",padding:"0",minWidth:"0",height:"20px",width:"20px"},onClick:function(e){e.stopPropagation(),n()},icon:(0,Gt.jsx)(Ft,{icon:On,size:12}),showTooltip:!1,label:(0,Dt.__)("Close callout","extendify")})]}),(0,Gt.jsx)("div",{dangerouslySetInnerHTML:{__html:dn((0,Dt.sprintf)((0,Dt.__)("%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,$a,qa=function(){var e=La((0,o.useState)(!1),2),t=e[0],n=e[1],r=(0,o.useRef)(!1),i=(0,o.useRef)(),s=q((function(e){return e.apiKey.length})),l=q((function(e){return e.imports>0})),c=k((function(e){return e.open})),u=q((function(e){return 0===e.allowedImports})),d=q((function(e){return e.uuid})),f=function(e,t,n){var r=Na((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=q.getState().testGroup(e,t);a(r)}}),[e,t,i,s,n]),i}("main-button-text2",["A","B"],!0),p=La((0,o.useState)(),2),h=p[0],m=p[1],x=function(){var e=Ia(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,de("mb-tooltip-closed");case 2:n(!1),q.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,Dt.__)("Add template","extendify");case"B":return(0,Dt.__)("Design Library","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,Gt.jsxs)(Gt.Fragment,{children:[(0,Gt.jsx)(Ga,{buttonRef:i,text:h}),t&&(0,Gt.jsx)(Pa,{anchorRef:i,onClick:Ia(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,de("mb-tooltip-pressed");case 2:wr("main-button-tooltip");case 3:case"end":return e.stop()}}),e)}))),onPressX:x})]})},Ga=function(e){var t=e.buttonRef,n=e.text;return(0,Gt.jsx)("div",{className:"extendify",children:(0,Gt.jsx)(Rt.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 wr("main-button")},id:"extendify-templates-inserter-btn",icon:(0,Gt.jsx)(Ft,{icon:hn,size:24,style:{marginRight:0}}),children:(0,Gt.jsx)("span",{className:"hidden xs:inline ml-1",children:n})})})},Ja=function(){return(0,Gt.jsx)(Rt.Button,{id:"extendify-cta-button",style:{margin:"1rem 1rem 0",width:"calc(100% - 2rem)",justifyContent:" center"},onClick:function(){return wr("patterns-cta")},isSecondary:!0,children:(0,Dt.__)("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,Gt.jsx)(qa,{}),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,Gt.jsx)(Ja,{}),e),Qa()}}))}));try{(0,ya.registerPlugin)("extendify-settings-enable-disable",{render:function(){return(0,Gt.jsx)(Gt.Fragment,{children:(0,Gt.jsxs)(xa.PluginSidebarMoreMenuItem,{onClick:function(){var e=document.getElementById("extendify-util");(0,o.render)((0,Gt.jsx)(Ea,{}),e)},icon:(0,Gt.jsx)(Ft,{icon:hn,size:24}),children:[" ",(0,Dt.__)("Extendify","extendify")]})})}})}catch(e){console.error("registerPlugin not supported? (error handled gracefully)",e.message)}[{register:function(){var e=(0,_r.dispatch)("core/notices").createNotice,t=q.getState().incrementImports;window.addEventListener("extendify::template-inserted",(function(n){e("info",(0,Dt.__)("Page layout added"),{isDismissible:!0,type:"snackbar"}),setTimeout((function(){var e;t(),ar(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,Gt.jsx)(Hr,{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===($a=Wa.wp)||void 0===$a||$a.domReady((function(){var e=Object.assign(document.createElement("div"),{id:"extendify-root"});if(document.body.append(e),(0,o.render)((0,Gt.jsx)(oa,{}),e),e.parentNode.insertBefore(Object.assign(document.createElement("div"),{id:"extendify-util"}),e.nextSibling),br.getState().importOnLoad){var t=br.getState().wantedTemplate;setTimeout((function(){oo((0,r.rawHandler)({HTML:t.fields.code}),t)}),0)}br.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(165))),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={7135:(e,t,n)=>{e.exports=n(6248)},4206:(e,t,n)=>{e.exports=n(8057)},4387:(e,t,n)=>{"use strict";var r=n(7485),o=n(4570),i=n(2940),s=n(581),a=n(574),l=n(3845),u=n(8338),c=n(4832),f=n(7354),d=n(8870),p=n(4906);e.exports=function(e){return new Promise((function(t,n){var h,m=e.data,x=e.headers,y=e.responseType;function v(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}r.isFormData(m)&&r.isStandardBrowserEnv()&&delete x["Content-Type"];var g=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";x.Authorization="Basic "+btoa(b+":"+w)}var j=a(e.baseURL,e.url);function k(){if(g){var r="getAllResponseHeaders"in g?l(g.getAllResponseHeaders()):null,i={data:y&&"text"!==y&&"json"!==y?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:e,request:g};o((function(e){t(e),v()}),(function(e){n(e),v()}),i),g=null}}if(g.open(e.method.toUpperCase(),s(j,e.params,e.paramsSerializer),!0),g.timeout=e.timeout,"onloadend"in g?g.onloadend=k:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(k)},g.onabort=function(){g&&(n(new f("Request aborted",f.ECONNABORTED,e,g)),g=null)},g.onerror=function(){n(new f("Network Error",f.ERR_NETWORK,e,g,g)),g=null},g.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||c;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new f(t,r.clarifyTimeoutError?f.ETIMEDOUT:f.ECONNABORTED,e,g)),g=null},r.isStandardBrowserEnv()){var E=(e.withCredentials||u(j))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;E&&(x[e.xsrfHeaderName]=E)}"setRequestHeader"in g&&r.forEach(x,(function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete x[t]:g.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(g.withCredentials=!!e.withCredentials),y&&"json"!==y&&(g.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&g.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&g.upload&&g.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(h=function(e){g&&(n(!e||e&&e.type?new d:e),g.abort(),g=null)},e.cancelToken&&e.cancelToken.subscribe(h),e.signal&&(e.signal.aborted?h():e.signal.addEventListener("abort",h))),m||(m=null);var _=p(j);_&&-1===["http","https","file"].indexOf(_)?n(new f("Unsupported protocol "+_+":",f.ERR_BAD_REQUEST,e)):g.send(m)}))}},8057:(e,t,n)=>{"use strict";var r=n(7485),o=n(875),i=n(5029),s=n(4941);var a=function e(t){var n=new i(t),a=o(i.prototype.request,n);return r.extend(a,i.prototype,n),r.extend(a,n),a.create=function(n){return e(s(t,n))},a}(n(8396));a.Axios=i,a.CanceledError=n(8870),a.CancelToken=n(4603),a.isCancel=n(1475),a.VERSION=n(3345).version,a.toFormData=n(1020),a.AxiosError=n(7354),a.Cancel=a.CanceledError,a.all=function(e){return Promise.all(e)},a.spread=n(5739),a.isAxiosError=n(5835),e.exports=a,e.exports.default=a},4603:(e,t,n)=>{"use strict";var r=n(8870);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},8870:(e,t,n)=>{"use strict";var r=n(7354);function o(e){r.call(this,null==e?"canceled":e,r.ERR_CANCELED),this.name="CanceledError"}n(7485).inherits(o,r,{__CANCEL__:!0}),e.exports=o},1475:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},5029:(e,t,n)=>{"use strict";var r=n(7485),o=n(581),i=n(8096),s=n(5009),a=n(4941),l=n(574),u=n(6144),c=u.validators;function f(e){this.defaults=e,this.interceptors={request:new i,response:new i}}f.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=a(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&&u.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,l=[];if(this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)})),!o){var f=[s,void 0];for(Array.prototype.unshift.apply(f,r),f=f.concat(l),i=Promise.resolve(t);f.length;)i=i.then(f.shift(),f.shift());return i}for(var d=t;r.length;){var p=r.shift(),h=r.shift();try{d=p(d)}catch(e){h(e);break}}try{i=s(d)}catch(e){return Promise.reject(e)}for(;l.length;)i=i.then(l.shift(),l.shift());return i},f.prototype.getUri=function(e){e=a(this.defaults,e);var t=l(e.baseURL,e.url);return o(t,e.params,e.paramsSerializer)},r.forEach(["delete","get","head","options"],(function(e){f.prototype[e]=function(t,n){return this.request(a(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(a(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}f.prototype[e]=t(),f.prototype[e+"Form"]=t(!0)})),e.exports=f},7354:(e,t,n)=>{"use strict";var r=n(7485);function o(e,t,n,r,o){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}r.inherits(o,Error,{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}}});var i=o.prototype,s={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){s[e]={value:e}})),Object.defineProperties(o,s),Object.defineProperty(i,"isAxiosError",{value:!0}),o.from=function(e,t,n,s,a,l){var u=Object.create(i);return r.toFlatObject(e,u,(function(e){return e!==Error.prototype})),o.call(u,e.message,t,n,s,a),u.name=e.name,l&&Object.assign(u,l),u},e.exports=o},8096:(e,t,n)=>{"use strict";var r=n(7485);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(2642),o=n(2288);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},5009:(e,t,n)=>{"use strict";var r=n(7485),o=n(9212),i=n(1475),s=n(8396),a=n(8870);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new a}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||s.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)}))}},4941:(e,t,n)=>{"use strict";var r=n(7485);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 s(e){if(!r.isUndefined(t[e]))return o(void 0,t[e])}function a(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 u={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||i,o=t(e);r.isUndefined(o)&&t!==l||(n[e]=o)})),n}},4570:(e,t,n)=>{"use strict";var r=n(7354);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new r("Request failed with status code "+n.status,[r.ERR_BAD_REQUEST,r.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}},9212:(e,t,n)=>{"use strict";var r=n(7485),o=n(8396);e.exports=function(e,t,n){var i=this||o;return r.forEach(n,(function(n){e=n.call(i,e,t)})),e}},8396:(e,t,n)=>{"use strict";var r=n(7061),o=n(7485),i=n(1446),s=n(7354),a=n(4832),l=n(1020),u={"Content-Type":"application/x-www-form-urlencoded"};function c(e,t){!o.isUndefined(e)&&o.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var f,d={transitional:a,adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==r&&"[object process]"===Object.prototype.toString.call(r))&&(f=n(4387)),f),transformRequest:[function(e,t){if(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))return e;if(o.isArrayBufferView(e))return e.buffer;if(o.isURLSearchParams(e))return c(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,r=o.isObject(e),s=t&&t["Content-Type"];if((n=o.isFileList(e))||r&&"multipart/form-data"===s){var a=this.env&&this.env.FormData;return l(n?{"files[]":e}:e,a&&new a)}return r||"application/json"===s?(c(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||d.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 s.from(e,s.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n(8750)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],(function(e){d.headers[e]={}})),o.forEach(["post","put","patch"],(function(e){d.headers[e]=o.merge(u)})),e.exports=d},4832:e=>{"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},3345:e=>{e.exports={version:"0.27.2"}},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(7485);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 s=[];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)),s.push(o(t)+"="+o(e))})))})),i=s.join("&")}if(i){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},2288:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},2940:(e,t,n)=>{"use strict";var r=n(7485);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,s){var a=[];a.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(o)&&a.push("path="+o),r.isString(i)&&a.push("domain="+i),!0===s&&a.push("secure"),document.cookie=a.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(){}}},2642:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},5835:(e,t,n)=>{"use strict";var r=n(7485);e.exports=function(e){return r.isObject(e)&&!0===e.isAxiosError}},8338:(e,t,n)=>{"use strict";var r=n(7485);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}},1446:(e,t,n)=>{"use strict";var r=n(7485);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},8750:e=>{e.exports=null},3845:(e,t,n)=>{"use strict";var r=n(7485),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,s={};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(s[t]&&o.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([n]):s[t]?s[t]+", "+n:n}})),s):s}},4906:e=>{"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},5739:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},1020:(e,t,n)=>{"use strict";var r=n(816).Buffer,o=n(7485);e.exports=function(e,t){t=t||new FormData;var n=[];function i(e){return null===e?"":o.isDate(e)?e.toISOString():o.isArrayBuffer(e)||o.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):r.from(e):e}return function e(r,s){if(o.isPlainObject(r)||o.isArray(r)){if(-1!==n.indexOf(r))throw Error("Circular reference detected in "+s);n.push(r),o.forEach(r,(function(n,r){if(!o.isUndefined(n)){var a,l=s?s+"."+r:r;if(n&&!s&&"object"==typeof n)if(o.endsWith(r,"{}"))n=JSON.stringify(n);else if(o.endsWith(r,"[]")&&(a=o.toArray(n)))return void a.forEach((function(e){!o.isUndefined(e)&&t.append(l,i(e))}));e(n,l)}})),n.pop()}else t.append(s,i(r))}(e),t}},6144:(e,t,n)=>{"use strict";var r=n(3345).version,o=n(7354),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var s={};i.transitional=function(e,t,n){function i(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,a){if(!1===e)throw new o(i(r," has been removed"+(t?" in "+t:"")),o.ERR_DEPRECATED);return t&&!s[r]&&(s[r]=!0,console.warn(i(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 o("options must be an object",o.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),i=r.length;i-- >0;){var s=r[i],a=t[s];if(a){var l=e[s],u=void 0===l||a(l,s,e);if(!0!==u)throw new o("option "+s+" must be "+u,o.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new o("Unknown option "+s,o.ERR_BAD_OPTION)}},validators:i}},7485:(e,t,n)=>{"use strict";var r,o=n(875),i=Object.prototype.toString,s=(r=Object.create(null),function(e){var t=i.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function a(e){return e=e.toLowerCase(),function(t){return s(t)===e}}function l(e){return Array.isArray(e)}function u(e){return void 0===e}var c=a("ArrayBuffer");function f(e){return null!==e&&"object"==typeof e}function d(e){if("object"!==s(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var p=a("Date"),h=a("File"),m=a("Blob"),x=a("FileList");function y(e){return"[object Function]"===i.call(e)}var v=a("URLSearchParams");function g(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),l(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)}var b,w=(b="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return b&&e instanceof b});e.exports={isArray:l,isArrayBuffer:c,isBuffer:function(e){return null!==e&&!u(e)&&null!==e.constructor&&!u(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||i.call(e)===t||y(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&c(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:f,isPlainObject:d,isUndefined:u,isDate:p,isFile:h,isBlob:m,isFunction:y,isStream:function(e){return f(e)&&y(e.pipe)},isURLSearchParams:v,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:g,merge:function e(){var t={};function n(n,r){d(t[r])&&d(n)?t[r]=e(t[r],n):d(n)?t[r]=e({},n):l(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)g(arguments[r],n);return t},extend:function(e,t,n){return g(t,(function(t,r){e[r]=n&&"function"==typeof t?o(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},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n){var r,o,i,s={};t=t||{};do{for(o=(r=Object.getOwnPropertyNames(e)).length;o-- >0;)s[i=r[o]]||(t[i]=e[i],s[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:a,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(u(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:w,isFileList:x}},4330:(e,t,n)=>{"use strict";const r=wp.blocks,o=wp.element;var i=n(7135),s=n.n(i),a=n(7363),l=n.n(a);function u(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 s=r(t);function a(){const n=r(t);if(!i(s,n)){const t=s;e(s=n,t)}}return n.add(a),()=>n.delete(a)})(e,r,i):(n.add(e),()=>n.delete(e)),destroy:()=>n.clear()};return t=e(r,o,i),i}const c="undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent)?a.useEffect:a.useLayoutEffect;function f(e){const t="function"==typeof e?u(e):e,n=(e=t.getState,n=Object.is)=>{const[,r]=(0,a.useReducer)((e=>e+1),0),o=t.getState(),i=(0,a.useRef)(o),s=(0,a.useRef)(e),l=(0,a.useRef)(n),u=(0,a.useRef)(!1),f=(0,a.useRef)();let d;void 0===f.current&&(f.current=e(o));let p=!1;(i.current!==o||s.current!==e||l.current!==n||u.current)&&(d=e(o),p=!n(f.current,d)),c((()=>{p&&(f.current=d),i.current=o,s.current=e,l.current=n,u.current=!1}));const h=(0,a.useRef)(o);c((()=>{const e=()=>{try{const e=t.getState(),n=s.current(e);l.current(f.current,n)||(i.current=e,f.current=n,r())}catch(e){u.current=!0,r()}},n=t.subscribe(e);return t.getState()!==h.current&&e(),n}),[]);const m=p?d:f.current;return(0,a.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 d=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 s=e(r.getState());i=n=>{const r=e(n);if(!o(s,r)){const e=s;t(s=r,e)}},(null==n?void 0:n.fireImmediately)&&t(s,s)}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 s=!1;const a=new Set,l=new Set;let u;try{u=i.getStorage()}catch(e){}if(!u)return e(((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...e)}),r,o);u.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 c=g(i.serialize),f=()=>{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=c({state:e,version:i.version}).then((e=>u.setItem(i.name,e))).catch((e=>{t=e}));if(t)throw t;return n},d=o.setState;o.setState=(e,t)=>{d(e,t),f()};const p=e(((...e)=>{n(...e),f()}),r,o);let h;const m=()=>{var e;if(!u)return;s=!1,a.forEach((e=>e(r())));const t=(null==(e=i.onRehydrateStorage)?void 0:e.call(i,r()))||void 0;return g(u.getItem.bind(u))(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=>{var t;return h=i.merge(e,null!=(t=r())?t:p),n(h,!0),f()})).then((()=>{null==t||t(h,void 0),s=!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&&(u=e.getStorage())},clearStorage:()=>{var e;null==(e=null==u?void 0:u.removeItem)||e.call(u,i.name)},rehydrate:()=>m(),hasHydrated:()=>s,onHydrate:e=>(a.add(e),()=>{a.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=f(d(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}}))),E=n(4206),_=n.n(E);const S=lodash;function C(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}var O=function(){return(e=s().mark((function e(){var t;return s().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 s(e){C(i,r,o,s,a,"next",e)}function a(e){C(i,r,o,s,a,"throw",e)}s(void 0)}))})();var e},A=function(e,t){var n=new FormData;return n.append("email",e),n.append("key",t),Y.post("login",n,{headers:{"Content-Type":"multipart/form-data"}})},P=function(e){var t=new FormData;return t.append("data",JSON.stringify(e)),Y.post("user",t,{headers:{"Content-Type":"multipart/form-data"}})},T=function(){return Y.post("clear-user")},N=function(){return Y.get("max-free-imports")};function R(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 I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function L(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=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);s=!0);}catch(e){a=!0,o=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return M(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 M(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 M(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 D(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,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function F(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){B(i,r,o,s,a,"next",e)}function a(e){B(i,r,o,s,a,"throw",e)}s(void 0)}))}}var U,z,$,V={getItem:($=F(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,O();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(){return $.apply(this,arguments)}),setItem:(z=F(s().mark((function e(t,n){return s().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 z.apply(this,arguments)}),removeItem:(U=F(s().mark((function e(){return s().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)})},W=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=D({},"main-button-text2","0007"),H=f(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:W(),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,D({},n,(0,S.sample)(r)))}),(o=t().participatingTestsGroups)[n]}},activeTestGroups:function(){return Object.entries(t().participatingTestsGroups).filter((function(e){var t=L(e,1)[0];return Object.keys(q).includes(t)})).reduce((function(e,t){var n=L(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=L(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:{},D({},n,r)),n="taxonomies");e({preferredOptions:I({},Object.assign({},t().preferredOptions,D({},n,r)))})},markNoticeSeen:function(n,r){e(D({},"".concat(r,"DismissedAt"),I(I({},t()["".concat(r,"DismissedAt")]),{},D({},n,(new Date).toISOString()))))}}}),{name:"extendify-user",getStorage:function(){return V},onRehydrateStorage:function(){return function(){H.setState({_hasHydrated:!0})}},partialize:function(e){return delete e._hasHydrated,e}})),Y=_().create({baseURL:window.extendifyData.root,headers:{"X-WP-Nonce":window.extendifyData.nonce,"X-Requested-With":"XMLHttpRequest","X-Extendify-Library":!0,"X-Extendify":!0}});function G(e){return Object.prototype.hasOwnProperty.call(e,"data")?e.data:e}function J(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}Y.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}(G(e))}),(function(e){return function(e){if(e.response)return console.error(e.response),Promise.reject(G(e.response))}(e)})),Y.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=H.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 K=function(){return(e=s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Y.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 s(e){J(i,r,o,s,a,"next",e)}function a(e){J(i,r,o,s,a,"throw",e)}s(void 0)}))})();var e};function X(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}var Z=f(b((function(e,t){return{taxonomies:{},setTaxonomies:function(t){return e({taxonomies:t})},fetchTaxonomies:(n=s().mark((function e(){var n,r;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,K();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 s(e){X(i,r,o,s,a,"next",e)}function a(e){X(i,r,o,s,a,"throw",e)}s(void 0)}))},function(){return r.apply(this,arguments)})};var n,r}),{name:"extendify-taxonomies"}));function Q(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 ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(n),!0).forEach((function(t){te(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function te(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ne(e){return function(e){if(Array.isArray(e))return ie(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||oe(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 re(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=oe(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,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}function oe(e,t){if(e){if("string"==typeof e)return ie(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)?ie(e,t):void 0}}function ie(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,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}var ae=f(d((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=s().mark((function n(r){var o,i,a;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:o=re(r),n.prev=1,a=s().mark((function n(){var r;return s().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(ne(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(a(),"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 s(e){se(i,r,o,s,a,"next",e)}function a(e){se(i,r,o,s,a,"throw",e)}s(void 0)}))},function(e){return r.apply(this,arguments)}),setupDefaultTaxonomies:function(){var n,r,o,i,s=Z.getState().taxonomies,a=Object.entries(s).reduce((function(e,t){return e[t[0]]=function(e){return"siteType"===e?{slug:"",title:"Not set"}:{slug:"",title:"Featured"}}(t[0]),e}),{}),l={},u=null!==(n=null===(r=H.getState().preferredOptions)||void 0===r?void 0:r.taxonomies)&&void 0!==n?n:{};u.tax_categories&&(u=t().getLegacySiteType(u,s)),a=Object.assign({},a,u,null!==(o=null===(i=k.getState())||void 0===i?void 0:i.currentTaxonomies)&&void 0!==o?o:{}),l.taxonomies=Object.assign({},a),e({taxonomyDefaultState:a,searchParams:ee({},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)&&H.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 H.getState().updatePreferredSiteType(r),t().updateTaxonomies({siteType:r}),H.getState().updatePreferredOption("tax_categories",null),H.getState().preferredOptions.taxonomies}};var n,r}))),le=function(){return Y.get("meta-data")},ue=function(e){var t,n,r,o,i,s=null!==(t=null===(n=ae.getState())||void 0===n||null===(r=n.searchParams)||void 0===r?void 0:r.taxonomies)&&void 0!==t?t:[];return Y.post("simple-ping",{action:e,categories:s,sdk_partner:null!==(o=null===(i=H.getState())||void 0===i?void 0:i.sdkPartner)&&void 0!==o?o:""})};function ce(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,ce),r}var fe,de=((fe=de||{})[fe.None=0]="None",fe[fe.RenderStrategy=1]="RenderStrategy",fe[fe.Static=2]="Static",fe),pe=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(pe||{});function he({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:s}){let a=xe(t,e);if(i)return me(a,n,r,s);let l=null!=o?o:0;if(2&l){let{static:e=!1,...t}=a;if(e)return me(t,n,r,s)}if(1&l){let{unmount:e=!0,...t}=a;return ce(e?0:1,{0:()=>null,1:()=>me({...t,hidden:!0,style:{display:"none"}},n,r,s)})}return me(a,n,r,s)}function me(e,t={},n,r){let{as:o=n,children:i,refName:s="ref",...l}=ge(e,["unmount","static"]),u=void 0!==e.ref?{[s]:e.ref}:{},c="function"==typeof i?i(t):i;if(l.className&&"function"==typeof l.className&&(l.className=l.className(t)),o===a.Fragment&&Object.keys(ve(l)).length>0){if(!(0,a.isValidElement)(c)||Array.isArray(c)&&c.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(l).map((e=>` - ${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((e=>` - ${e}`)).join("\n")].join("\n"));return(0,a.cloneElement)(c,Object.assign({},xe(c.props,ve(ge(l,["ref"]))),u))}return(0,a.createElement)(o,Object.assign({},ge(l,["ref"]),o!==a.Fragment&&u),c)}function xe(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map((e=>[e,void 0]))));for(let e in n)Object.assign(t,{[e](t){let r=n[e];for(let e of r){if(t.defaultPrevented)return;e(t)}}});return t}function ye(e){var t;return Object.assign((0,a.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function ve(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function ge(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}let be=Symbol();function we(e,t=!0){return Object.assign(e,{[be]:t})}function je(...e){let t=(0,a.useRef)(e);(0,a.useEffect)((()=>{t.current=e}),[e]);let n=(0,a.useCallback)((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}),[t]);return e.every((e=>null==e||(null==e?void 0:e[be])))?void 0:n}var ke=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",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",e))(ke||{});function Ee(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}const _e="undefined"!=typeof window?a.useLayoutEffect:a.useEffect;let Se={serverHandoffComplete:!1};function Ce(){let[e,t]=(0,a.useState)(Se.serverHandoffComplete);return(0,a.useEffect)((()=>{!0!==e&&t(!0)}),[e]),(0,a.useEffect)((()=>{!1===Se.serverHandoffComplete&&(Se.serverHandoffComplete=!0)}),[]),e}var Oe;let Ae=0;function Pe(){return++Ae}let Te=null!=(Oe=a.useId)?Oe:function(){let e=Ce(),[t,n]=a.useState(e?Pe:null);return _e((()=>{null===t&&n(Pe())}),[t]),null!=t?""+t:void 0},Ne=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var Re,Ie=(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",e))(Ie||{}),Le=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Le||{}),Me=((Re=Me||{})[Re.Previous=-1]="Previous",Re[Re.Next=1]="Next",Re);var De=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(De||{});function Be(e){null==e||e.focus({preventScroll:!0})}let Fe=["textarea","input"].join(",");function Ue(e,t){let n,r=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,o=Array.isArray(e)?function(e,t=(e=>e)){return e.slice().sort(((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}(e):function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(Ne))}(e),i=r.activeElement,s=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),a=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,o.indexOf(i))-1;if(4&t)return Math.max(0,o.indexOf(i))+1;if(8&t)return o.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=32&t?{preventScroll:!0}:{},u=0,c=o.length;do{if(u>=c||u+c<=0)return 0;let e=a+u;if(16&t)e=(e+c)%c;else{if(e<0)return 3;if(e>=c)return 1}n=o[e],null==n||n.focus(l),u+=s}while(n!==r.activeElement);return 6&t&&function(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,Fe))&&n}(n)&&n.select(),n.hasAttribute("tabindex")||n.setAttribute("tabindex","0"),2}function ze(e){let t=(0,a.useRef)(e);return _e((()=>{t.current=e}),[e]),t}function $e(e,t,n,r){let o=ze(n);(0,a.useEffect)((()=>{function n(e){o.current(e)}return(e=null!=e?e:window).addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}),[e,t,r])}function Ve(){let e=(0,a.useRef)(!1);return _e((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function We(e){return"undefined"==typeof window?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function qe(...e){return(0,a.useMemo)((()=>We(...e)),[...e])}var He=(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",e))(He||{});function Ye(e,t=30,{initialFocus:n,containers:r}={}){let o=(0,a.useRef)(null),i=(0,a.useRef)(null),s=Ve(),l=Boolean(16&t),u=Boolean(2&t),c=qe(e);return(0,a.useEffect)((()=>{!l||o.current||(o.current=null==c?void 0:c.activeElement)}),[l,c]),(0,a.useEffect)((()=>{if(l)return()=>{Be(o.current),o.current=null}}),[l]),(0,a.useEffect)((()=>{if(!u)return;let t=e.current;if(!t)return;let r=null==c?void 0:c.activeElement;if(null!=n&&n.current){if((null==n?void 0:n.current)===r)return void(i.current=r)}else if(t.contains(r))return void(i.current=r);null!=n&&n.current?Be(n.current):Ue(t,Ie.First)===Le.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),i.current=null==c?void 0:c.activeElement}),[e,n,u,c]),$e(null==c?void 0:c.defaultView,"keydown",(n=>{!(4&t)||!e.current||n.key===ke.Tab&&(n.preventDefault(),Ue(e.current,(n.shiftKey?Ie.Previous:Ie.Next)|Ie.WrapAround)===Le.Success&&(i.current=null==c?void 0:c.activeElement))})),$e(null==c?void 0:c.defaultView,"focus",(n=>{if(!(8&t))return;let o=new Set(null==r?void 0:r.current);if(o.add(e),!o.size)return;let a=i.current;if(!a||!s.current)return;let l=n.target;l&&l instanceof HTMLElement?function(e,t){var n;for(let r of e)if(null!=(n=r.current)&&n.contains(t))return!0;return!1}(o,l)?(i.current=l,Be(l)):(n.preventDefault(),n.stopPropagation(),Be(a)):Be(i.current)}),!0),o}let Ge=new Set,Je=new Map;function Ke(e){e.setAttribute("aria-hidden","true"),e.inert=!0}function Xe(e){let t=Je.get(e);!t||(null===t["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",t["aria-hidden"]),e.inert=t.inert)}const Ze=ReactDOM;let Qe=(0,a.createContext)(!1);function et(){return(0,a.useContext)(Qe)}function tt(e){return a.createElement(Qe.Provider,{value:e.force},e.children)}let nt=a.Fragment,rt=ye((function(e,t){let n=e,r=(0,a.useRef)(null),o=je(we((e=>{r.current=e})),t),i=qe(r),s=function(e){let t=et(),n=(0,a.useContext)(it),r=qe(e),[o,i]=(0,a.useState)((()=>{if(!t&&null!==n||"undefined"==typeof window)return null;let e=null==r?void 0:r.getElementById("headlessui-portal-root");if(e)return e;if(null===r)return null;let o=r.createElement("div");return o.setAttribute("id","headlessui-portal-root"),r.body.appendChild(o)}));return(0,a.useEffect)((()=>{null!==o&&(null!=r&&r.body.contains(o)||null==r||r.body.appendChild(o))}),[o,r]),(0,a.useEffect)((()=>{t||null!==n&&i(n.current)}),[n,i,t]),o}(r),[l]=(0,a.useState)((()=>{var e;return"undefined"==typeof window?null:null!=(e=null==i?void 0:i.createElement("div"))?e:null})),u=Ce();return _e((()=>{if(s&&l)return s.appendChild(l),()=>{var e;!s||!l||(s.removeChild(l),s.childNodes.length<=0&&(null==(e=s.parentElement)||e.removeChild(s)))}}),[s,l]),u&&s&&l?(0,Ze.createPortal)(he({ourProps:{ref:o},theirProps:n,defaultTag:nt,name:"Portal"}),l):null})),ot=a.Fragment,it=(0,a.createContext)(null),st=ye((function(e,t){let{target:n,...r}=e,o={ref:je(t)};return a.createElement(it.Provider,{value:n},he({ourProps:o,theirProps:r,defaultTag:ot,name:"Popover.Group"}))})),at=Object.assign(rt,{Group:st}),lt=(0,a.createContext)(null);function ut(){let e=(0,a.useContext)(lt);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,ut),e}return e}function ct(){let[e,t]=(0,a.useState)([]);return[e.length>0?e.join(" "):void 0,(0,a.useMemo)((()=>function(e){let n=(0,a.useCallback)((e=>(t((t=>[...t,e])),()=>t((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n})))),[]),r=(0,a.useMemo)((()=>({register:n,slot:e.slot,name:e.name,props:e.props})),[n,e.slot,e.name,e.props]);return a.createElement(lt.Provider,{value:r},e.children)}),[t])]}let ft=ye((function(e,t){let n=ut(),r=`headlessui-description-${Te()}`,o=je(t);_e((()=>n.register(r)),[r,n.register]);let i=e;return he({ourProps:{ref:o,...n.props,id:r},theirProps:i,slot:n.slot||{},defaultTag:"p",name:n.name||"Description"})})),dt=(0,a.createContext)(null);dt.displayName="OpenClosedContext";var pt=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(pt||{});function ht(){return(0,a.useContext)(dt)}function mt({value:e,children:t}){return a.createElement(dt.Provider,{value:e},t)}let xt=(0,a.createContext)((()=>{}));xt.displayName="StackContext";var yt=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(yt||{});function vt({children:e,onUpdate:t,type:n,element:r}){let o=(0,a.useContext)(xt),i=(0,a.useCallback)(((...e)=>{null==t||t(...e),o(...e)}),[o,t]);return _e((()=>(i(0,n,r),()=>i(1,n,r))),[i,n,r]),a.createElement(xt.Provider,{value:i},e)}function gt(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function bt(e,t,n){let r=ze(t);(0,a.useEffect)((()=>{function t(e){r.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)}),[e,n])}var wt=(e=>(e[e.None=1]="None",e[e.IgnoreScrollbars=2]="IgnoreScrollbars",e))(wt||{});var jt=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(jt||{}),kt=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(kt||{});let Et={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},_t=(0,a.createContext)(null);function St(e){let t=(0,a.useContext)(_t);if(null===t){let t=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,St),t}return t}function Ct(e,t){return ce(t.type,Et,e,t)}_t.displayName="DialogContext";let Ot=de.RenderStrategy|de.Static,At=ye((function(e,t){let{open:n,onClose:r,initialFocus:o,__demoMode:i=!1,...s}=e,[l,u]=(0,a.useState)(0),c=ht();void 0===n&&null!==c&&(n=ce(c,{[pt.Open]:!0,[pt.Closed]:!1}));let f=(0,a.useRef)(new Set),d=(0,a.useRef)(null),p=je(d,t),h=qe(d),m=e.hasOwnProperty("open")||null!==c,x=e.hasOwnProperty("onClose");if(!m&&!x)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!m)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!x)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof n)throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${n}`);if("function"!=typeof r)throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${r}`);let y=n?0:1,[v,g]=(0,a.useReducer)(Ct,{titleId:null,descriptionId:null,panelRef:(0,a.createRef)()}),b=(0,a.useCallback)((()=>r(!1)),[r]),w=(0,a.useCallback)((e=>g({type:0,id:e})),[g]),j=!!Ce()&&(!i&&0===y),k=l>1,E=null!==(0,a.useContext)(_t),_=Ye(d,j?ce(k?"parent":"leaf",{parent:He.RestoreFocus,leaf:He.All&~He.FocusLock}):He.None,{initialFocus:o,containers:f});(function(e,t=!0){_e((()=>{if(!t||!e.current)return;let n=e.current,r=We(n);if(r){Ge.add(n);for(let e of Je.keys())e.contains(n)&&(Xe(e),Je.delete(e));return r.querySelectorAll("body > *").forEach((e=>{if(e instanceof HTMLElement){for(let t of Ge)if(e.contains(t))return;1===Ge.size&&(Je.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),Ke(e))}})),()=>{if(Ge.delete(n),Ge.size>0)r.querySelectorAll("body > *").forEach((e=>{if(e instanceof HTMLElement&&!Je.has(e)){for(let t of Ge)if(e.contains(t))return;Je.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),Ke(e)}}));else for(let e of Je.keys())Xe(e),Je.delete(e)}}}),[t])})(d,!!k&&j),function(e,t,n=1){let r=(0,a.useRef)(!1),o=ze((o=>{if(r.current)return;r.current=!0,gt((()=>{r.current=!1}));let i=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e),s=o.target;if(s.ownerDocument.documentElement.contains(s)){if(2==(2&n)){let e=20,t=s.ownerDocument.documentElement;if(o.clientX>t.clientWidth-e||o.clientX<e||o.clientY>t.clientHeight-e||o.clientY<e)return}for(let e of i){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(s))return}return t(o,s)}}));bt("pointerdown",((...e)=>o.current(...e))),bt("mousedown",((...e)=>o.current(...e)))}((()=>{var e,t;return[...Array.from(null!=(e=null==h?void 0:h.querySelectorAll("body > *"))?e:[]).filter((e=>!(!(e instanceof HTMLElement)||e.contains(_.current)||v.panelRef.current&&e.contains(v.panelRef.current)))),null!=(t=v.panelRef.current)?t:d.current]}),(()=>{0===y&&(k||b())}),wt.IgnoreScrollbars),$e(null==h?void 0:h.defaultView,"keydown",(e=>{e.key===ke.Escape&&0===y&&(k||(e.preventDefault(),e.stopPropagation(),b()))})),(0,a.useEffect)((()=>{var e;if(0!==y||E)return;let t=We(d);if(!t)return;let n=t.documentElement,r=null!=(e=t.defaultView)?e:window,o=n.style.overflow,i=n.style.paddingRight,s=r.innerWidth-n.clientWidth;return n.style.overflow="hidden",n.style.paddingRight=`${s}px`,()=>{n.style.overflow=o,n.style.paddingRight=i}}),[y,E]),(0,a.useEffect)((()=>{if(0!==y||!d.current)return;let e=new IntersectionObserver((e=>{for(let t of e)0===t.boundingClientRect.x&&0===t.boundingClientRect.y&&0===t.boundingClientRect.width&&0===t.boundingClientRect.height&&b()}));return e.observe(d.current),()=>e.disconnect()}),[y,d,b]);let[S,C]=ct(),O=`headlessui-dialog-${Te()}`,A=(0,a.useMemo)((()=>[{dialogState:y,close:b,setTitleId:w},v]),[y,v,b,w]),P=(0,a.useMemo)((()=>({open:0===y})),[y]),T={ref:p,id:O,role:"dialog","aria-modal":0===y||void 0,"aria-labelledby":v.titleId,"aria-describedby":S,onClick(e){e.stopPropagation()}};return a.createElement(vt,{type:"Dialog",element:d,onUpdate:(0,a.useCallback)(((e,t,n)=>{"Dialog"===t&&ce(e,{[yt.Add](){f.current.add(n),u((e=>e+1))},[yt.Remove](){f.current.add(n),u((e=>e-1))}})}),[])},a.createElement(tt,{force:!0},a.createElement(at,null,a.createElement(_t.Provider,{value:A},a.createElement(at.Group,{target:d},a.createElement(tt,{force:!1},a.createElement(C,{slot:P,name:"Dialog.Description"},he({ourProps:T,theirProps:s,slot:P,defaultTag:"div",features:Ot,visible:0===y,name:"Dialog"}))))))))})),Pt=ye((function(e,t){let[{dialogState:n,close:r}]=St("Dialog.Overlay"),o=je(t),i=`headlessui-dialog-overlay-${Te()}`,s=(0,a.useCallback)((e=>{if(e.target===e.currentTarget){if(Ee(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),r()}}),[r]);return he({ourProps:{ref:o,id:i,"aria-hidden":!0,onClick:s},theirProps:e,slot:(0,a.useMemo)((()=>({open:0===n})),[n]),defaultTag:"div",name:"Dialog.Overlay"})})),Tt=ye((function(e,t){let[{dialogState:n},r]=St("Dialog.Backdrop"),o=je(t),i=`headlessui-dialog-backdrop-${Te()}`;(0,a.useEffect)((()=>{if(null===r.panelRef.current)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")}),[r.panelRef]);let s=(0,a.useMemo)((()=>({open:0===n})),[n]);return a.createElement(tt,{force:!0},a.createElement(at,null,he({ourProps:{ref:o,id:i,"aria-hidden":!0},theirProps:e,slot:s,defaultTag:"div",name:"Dialog.Backdrop"})))})),Nt=ye((function(e,t){let[{dialogState:n},r]=St("Dialog.Panel");return he({ourProps:{ref:je(t,r.panelRef),id:`headlessui-dialog-panel-${Te()}`},theirProps:e,slot:(0,a.useMemo)((()=>({open:0===n})),[n]),defaultTag:"div",name:"Dialog.Panel"})})),Rt=ye((function(e,t){let[{dialogState:n,setTitleId:r}]=St("Dialog.Title"),o=`headlessui-dialog-title-${Te()}`,i=je(t);(0,a.useEffect)((()=>(r(o),()=>r(null))),[o,r]);let s=(0,a.useMemo)((()=>({open:0===n})),[n]);return he({ourProps:{ref:i,id:o},theirProps:e,slot:s,defaultTag:"h2",name:"Dialog.Title"})})),It=Object.assign(At,{Backdrop:Tt,Panel:Nt,Overlay:Pt,Title:Rt,Description:ft});const Lt=wp.components,Mt=wp.i18n;const Dt=function(e){let{icon:t,size:n=24,...r}=e;return(0,o.cloneElement)(t,{width:n,height:n,...r})};var Bt=n(42),Ft=n.n(Bt);const Ut=e=>(0,o.createElement)("circle",e),zt=e=>(0,o.createElement)("g",e),$t=e=>(0,o.createElement)("path",e),Vt=e=>(0,o.createElement)("rect",e),Wt=e=>{let{className:t,isPressed:n,...r}=e;const i={...r,className:Ft()(t,{"is-pressed":n})||void 0,"aria-hidden":!0,focusable:!1};return(0,o.createElement)("svg",i)},qt=(0,o.createElement)(Wt,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)($t,{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 Ht=n(4246);function Yt(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.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 s(e){Yt(i,r,o,s,a,"next",e)}function a(e){Yt(i,r,o,s,a,"throw",e)}s(void 0)}))}}var Jt=function(){return Y.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)),Y.post("plugins",t,{headers:{"Content-Type":"multipart/form-data"}})},Xt=function(){return Y.get("active-plugins")};function Zt(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function Qt(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){Zt(i,r,o,s,a,"next",e)}function a(e){Zt(i,r,o,s,a,"throw",e)}s(void 0)}))}}function en(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=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);s=!0);}catch(e){a=!0,o=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return tn(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 tn(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 tn(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 nn(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function rn(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){nn(i,r,o,s,a,"next",e)}function a(e){nn(i,r,o,s,a,"throw",e)}s(void 0)}))}}function on(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function sn(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=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);s=!0);}catch(e){a=!0,o=e}finally{try{s||null==n.return||n.return()}finally{if(a)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 ln={promotion:function(e){var t,n=e.promotionData;return(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsx)("span",{className:"text-black",children:null!==(t=null==n?void 0:n.text)&&void 0!==t?t:""}),(0,Ht.jsx)("span",{className:"px-2 opacity-50","aria-hidden":"true",children:"|"}),(0,Ht.jsx)("div",{className:"flex items-center justify-center space-x-2",children:(null==n?void 0:n.url)&&(0,Ht.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(H.getState().activeTestGroupsUtmValue()),onClick:rn(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ue("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,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsx)("span",{className:"text-black",children:(0,Mt.__)("Tell us how to make the Extendify Library work better for you","extendify")}),(0,Ht.jsx)("span",{className:"px-2 opacity-50","aria-hidden":"true",children:"|"}),(0,Ht.jsx)("div",{className:"flex items-center justify-center space-x-2",children:(0,Ht.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(H.getState().activeTestGroupsUtmValue()),onClick:Gt(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ue("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=en((0,o.useState)(""),2),t=e[0],n=e[1],r=H((function(e){return e.giveFreebieImports}));return(0,Ht.jsxs)("div",{children:[(0,Ht.jsx)("span",{className:"text-black",children:(0,Mt.__)("Install the new Extendify Library plugin to get the latest we have to offer","extendify")}),(0,Ht.jsx)("span",{className:"px-2 opacity-50","aria-hidden":"true",children:"|"}),(0,Ht.jsxs)("div",{className:"relative inline-flex items-center space-x-2",children:[(0,Ht.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([ue("stln-footer-install"),Kt(["extendify"]),new Promise((function(e){return setTimeout(e,1e3)}))]).then(Qt(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r(10),n((0,Mt.__)("Success! Reloading...","extendify")),e.next=4,ue("stln-footer-success");case 4:window.location.reload();case 5:case"end":return e.stop()}}),e)})))).catch(function(){var e=Qt(s().mark((function e(t){return s().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,ue("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,Ht.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 un(e){var t,n=e.className,r=void 0===n?"":n,i=sn((0,o.useState)(null),2),a=i[0],l=i[1],u=(0,o.useRef)(!1),c=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})),f=null!==(t=Object.keys(ln).find((function(e){var t,n,r,o,i,s,a;return"promotion"===e?!(null!==(t=H.getState().apiKey)&&void 0!==t&&t.length)&&(null==c?void 0:c.key)&&!H.getState().noticesDismissedAt[c.key]:"feedback"===e?(i=null!==(n=H.getState().imports)&&void 0!==n?n:0,s=null!==(r=null===(o=H.getState())||void 0===o?void 0:o.firstLoadedOn)&&void 0!==r?r:new Date,a=(new Date).getTime()-new Date(s).getTime(),i>=3&&a/864e5>3&&!H.getState().noticesDismissedAt[e]):"standalone"===e?!window.extendifyData.standalone&&!H.getState().noticesDismissedAt[e]:!H.getState().noticesDismissedAt[e]})))&&void 0!==t?t:null,d=ln[f],p=function(){var e,t=(e=s().mark((function e(){var t;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l(!1),t="promotion"===f?c.key:f,H.getState().markNoticeSeen(t,"notices"),e.next=5,ue("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 s(e){on(i,r,o,s,a,"next",e)}function a(e){on(i,r,o,s,a,"throw",e)}s(void 0)}))});return function(){return t.apply(this,arguments)}}();return(0,o.useEffect)((function(){ln[f]&&!u.current&&(l(!0),u.current=!0)}),[f]),a&&d?(0,Ht.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,Ht.jsx)(d,{promotionData:c}),(0,Ht.jsx)("div",{className:"absolute right-1",children:(0,Ht.jsx)(Lt.Button,{className:"text-extendify-black opacity-50 hover:opacity-100 focus:opacity-100",icon:(0,Ht.jsx)(Dt,{icon:qt}),label:(0,Mt.__)("Dismiss this notice","extendify"),onClick:p,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 fn=(0,Ht.jsxs)(Wt,{viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg",children:[(0,Ht.jsx)($t,{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,Ht.jsx)($t,{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,Ht.jsx)($t,{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,Ht.jsx)(Wt,{fill:"none",viewBox:"0 0 25 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Ht.jsx)($t,{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 pn=(0,Ht.jsx)(Wt,{fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Ht.jsx)($t,{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 hn=(0,Ht.jsx)(Wt,{fill:"none",width:"150",height:"30",viewBox:"0 0 2524 492",xmlns:"http://www.w3.org/2000/svg",children:(0,Ht.jsxs)(zt,{fill:"currentColor",children:[(0,Ht.jsx)($t,{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,Ht.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,Ht.jsx)("path",{d:"m994.142 125h155.998v51h-155.998zm108.498 247h-61v-324h61z"}),(0,Ht.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,Ht.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,Ht.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,Ht.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,Ht.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,Ht.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,Ht.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 mn=(0,Ht.jsx)(Wt,{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:(0,Ht.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 xn=(0,Ht.jsxs)(Wt,{viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Ht.jsx)($t,{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,Ht.jsx)($t,{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 yn=(0,Ht.jsxs)(Wt,{viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Ht.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,Ht.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 vn=(0,Ht.jsxs)(Wt,{fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,Ht.jsx)($t,{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,Ht.jsxs)(zt,{fill:"currentColor",children:[(0,Ht.jsx)($t,{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,Ht.jsx)($t,{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 gn=(0,Ht.jsx)(Wt,{fill:"none",height:"25",viewBox:"0 0 25 25",width:"25",xmlns:"http://www.w3.org/2000/svg",children:(0,Ht.jsx)($t,{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 bn=(0,Ht.jsx)(Wt,{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:(0,Ht.jsxs)(zt,{stroke:"currentColor",strokeWidth:"1.5",children:[(0,Ht.jsx)($t,{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,Ht.jsx)($t,{d:"m9.25 19v-14"})]})});const wn=(0,Ht.jsxs)(Wt,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Ht.jsx)($t,{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,Ht.jsx)($t,{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,Ht.jsx)($t,{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,Ht.jsx)($t,{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,Ht.jsx)($t,{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,Ht.jsx)($t,{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,Ht.jsx)($t,{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 jn=(0,Ht.jsxs)(Wt,{fill:"none",viewBox:"0 0 151 148",width:"151",xmlns:"http://www.w3.org/2000/svg",children:[(0,Ht.jsx)(Ut,{cx:"65.6441",cy:"66.6114",fill:"#0b4a43",r:"65.3897"}),(0,Ht.jsxs)(zt,{fill:"#cbc3f5",stroke:"#0b4a43",children:[(0,Ht.jsx)($t,{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,Ht.jsx)($t,{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,Ht.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,Ht.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,Ht.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,Ht.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,Ht.jsx)($t,{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,Ht.jsx)($t,{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 kn=(0,Ht.jsxs)(Wt,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Ht.jsx)(Ut,{cx:"12",cy:"12",r:"7.25",stroke:"currentColor",strokeWidth:"1.5"}),(0,Ht.jsx)(Ut,{cx:"12",cy:"12",r:"4.25",stroke:"currentColor",strokeWidth:"1.5"}),(0,Ht.jsx)(Ut,{cx:"11.9999",cy:"12.2",r:"6",transform:"rotate(-45 11.9999 12.2)",stroke:"currentColor",strokeWidth:"3",strokeDasharray:"1.5 4"})]});const En=(0,Ht.jsx)(Wt,{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:(0,Ht.jsx)($t,{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 _n=(0,Ht.jsx)(Wt,{fill:"none",viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg",children:(0,Ht.jsx)($t,{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"})}),Sn=(0,o.createElement)(Wt,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)($t,{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"}));function Cn(){let e=[],t=[],n={enqueue(e){t.push(e)},addEventListener:(e,t,r,o)=>(e.addEventListener(t,r,o),n.add((()=>e.removeEventListener(t,r,o)))),requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return n.add((()=>cancelAnimationFrame(t)))},nextFrame:(...e)=>n.requestAnimationFrame((()=>n.requestAnimationFrame(...e))),setTimeout(...e){let t=setTimeout(...e);return n.add((()=>clearTimeout(t)))},add:t=>(e.push(t),()=>{let n=e.indexOf(t);if(n>=0){let[t]=e.splice(n,1);t()}}),dispose(){for(let t of e.splice(0))t()},async workQueue(){for(let e of t.splice(0))await e()}};return n}function On(e,...t){e&&t.length>0&&e.classList.add(...t)}function An(e,...t){e&&t.length>0&&e.classList.remove(...t)}var Pn=(e=>(e.Ended="ended",e.Cancelled="cancelled",e))(Pn||{});function Tn(e,t,n,r){let o=n?"enter":"leave",i=Cn(),s=void 0!==r?function(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}(r):()=>{},a=ce(o,{enter:()=>t.enter,leave:()=>t.leave}),l=ce(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),u=ce(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return An(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),On(e,...a,...u),i.nextFrame((()=>{An(e,...u),On(e,...l),function(e,t){let n=Cn();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[i,s]=[r,o].map((e=>{let[t=0]=e.split(",").filter(Boolean).map((e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e))).sort(((e,t)=>t-e));return t}));if(i+s!==0){let r=[];r.push(n.addEventListener(e,"transitionrun",(()=>{r.splice(0).forEach((e=>e())),r.push(n.addEventListener(e,"transitionend",(()=>{t("ended"),r.splice(0).forEach((e=>e()))}),{once:!0}),n.addEventListener(e,"transitioncancel",(()=>{t("cancelled"),r.splice(0).forEach((e=>e()))}),{once:!0}))}),{once:!0}))}else t("ended");n.add((()=>t("cancelled"))),n.dispose}(e,(n=>("ended"===n&&(An(e,...a),On(e,...t.entered)),s(n))))})),i.dispose}function Nn({container:e,direction:t,classes:n,events:r,onStart:o,onStop:i}){let s=Ve(),l=function(){let[e]=(0,a.useState)(Cn);return(0,a.useEffect)((()=>()=>e.dispose()),[e]),e}(),u=ze(t),c=ze((()=>ce(u.current,{enter:()=>r.current.beforeEnter(),leave:()=>r.current.beforeLeave(),idle:()=>{}}))),f=ze((()=>ce(u.current,{enter:()=>r.current.afterEnter(),leave:()=>r.current.afterLeave(),idle:()=>{}})));_e((()=>{let t=Cn();l.add(t.dispose);let r=e.current;if(r&&"idle"!==u.current&&s.current)return t.dispose(),c.current(),o.current(u.current),t.add(Tn(r,n.current,"enter"===u.current,(e=>{t.dispose(),ce(e,{[Pn.Ended](){f.current(),i.current(u.current)},[Pn.Cancelled]:()=>{}})}))),t.dispose}),[t])}function Rn(e=""){return e.split(" ").filter((e=>e.trim().length>1))}let In=(0,a.createContext)(null);In.displayName="TransitionContext";var Ln=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Ln||{});let Mn=(0,a.createContext)(null);function Dn(e){return"children"in e?Dn(e.children):e.current.filter((({state:e})=>"visible"===e)).length>0}function Bn(e){let t=ze(e),n=(0,a.useRef)([]),r=Ve(),o=ze(((e,o=pe.Hidden)=>{let i=n.current.findIndex((({id:t})=>t===e));-1!==i&&(ce(o,{[pe.Unmount](){n.current.splice(i,1)},[pe.Hidden](){n.current[i].state="hidden"}}),gt((()=>{var e;!Dn(n)&&r.current&&(null==(e=t.current)||e.call(t))})))})),i=ze((e=>{let t=n.current.find((({id:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):n.current.push({id:e,state:"visible"}),()=>o.current(e,pe.Unmount)}));return(0,a.useMemo)((()=>({children:n,register:i,unregister:o})),[i,o,n])}function Fn(){}Mn.displayName="NestingContext";let Un=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function zn(e){var t;let n={};for(let r of Un)n[r]=null!=(t=e[r])?t:Fn;return n}let $n=de.RenderStrategy,Vn=ye((function(e,t){let{beforeEnter:n,afterEnter:r,beforeLeave:o,afterLeave:i,enter:s,enterFrom:l,enterTo:u,entered:c,leave:f,leaveFrom:d,leaveTo:p,...h}=e,m=(0,a.useRef)(null),x=je(m,t),[y,v]=(0,a.useState)("visible"),g=h.unmount?pe.Unmount:pe.Hidden,{show:b,appear:w,initial:j}=function(){let e=(0,a.useContext)(In);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:k,unregister:E}=function(){let e=(0,a.useContext)(Mn);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),_=(0,a.useRef)(null),S=Te(),C=(0,a.useRef)(!1),O=Bn((()=>{C.current||(v("hidden"),E.current(S))}));(0,a.useEffect)((()=>{if(S)return k.current(S)}),[k,S]),(0,a.useEffect)((()=>{if(g===pe.Hidden&&S){if(b&&"visible"!==y)return void v("visible");ce(y,{hidden:()=>E.current(S),visible:()=>k.current(S)})}}),[y,S,k,E,b,g]);let A=ze({enter:Rn(s),enterFrom:Rn(l),enterTo:Rn(u),entered:Rn(c),leave:Rn(f),leaveFrom:Rn(d),leaveTo:Rn(p)}),P=function(e){let t=(0,a.useRef)(zn(e));return(0,a.useEffect)((()=>{t.current=zn(e)}),[e]),t}({beforeEnter:n,afterEnter:r,beforeLeave:o,afterLeave:i}),T=Ce();(0,a.useEffect)((()=>{if(T&&"visible"===y&&null===m.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[m,y,T]);let N=j&&!w,R=!T||N||_.current===b?"idle":b?"enter":"leave";Nn({container:m,classes:A,events:P,direction:R,onStart:ze((()=>{})),onStop:ze((e=>{"leave"===e&&!Dn(O)&&(v("hidden"),E.current(S))}))}),(0,a.useEffect)((()=>{!N||(g===pe.Hidden?_.current=null:_.current=b)}),[b,N,y]);let I=h,L={ref:x};return a.createElement(Mn.Provider,{value:O},a.createElement(mt,{value:ce(y,{visible:pt.Open,hidden:pt.Closed})},he({ourProps:L,theirProps:I,defaultTag:"div",features:$n,visible:"visible"===y,name:"Transition.Child"})))})),Wn=ye((function(e,t){let{show:n,appear:r=!1,unmount:o,...i}=e,s=je(t);Ce();let l=ht();if(void 0===n&&null!==l&&(n=ce(l,{[pt.Open]:!0,[pt.Closed]:!1})),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[u,c]=(0,a.useState)(n?"visible":"hidden"),f=Bn((()=>{c("hidden")})),[d,p]=(0,a.useState)(!0),h=(0,a.useRef)([n]);_e((()=>{!1!==d&&h.current[h.current.length-1]!==n&&(h.current.push(n),p(!1))}),[h,n]);let m=(0,a.useMemo)((()=>({show:n,appear:r,initial:d})),[n,r,d]);(0,a.useEffect)((()=>{n?c("visible"):Dn(f)||c("hidden")}),[n,f]);let x={unmount:o};return a.createElement(Mn.Provider,{value:f},a.createElement(In.Provider,{value:m},he({ourProps:{...x,as:a.Fragment,children:a.createElement(Vn,{ref:s,...x,...i})},theirProps:{},defaultTag:a.Fragment,features:$n,visible:"visible"===u,name:"Transition"})))}));let qn=Object.assign(Wn,{Child:function(e){let t=null!==(0,a.useContext)(In),n=null!==ht();return a.createElement(a.Fragment,null,!t&&n?a.createElement(Wn,{...e}):a.createElement(Vn,{...e}))},Root:Wn});var Hn=(0,o.forwardRef)((function(e,t){var n,r=e.onClose,i=e.isOpen,s=e.invertedButtonColor,a=e.children,l=e.leftContainerBgColor,u=void 0===l?"bg-white":l,c=e.rightContainerBgColor,f=void 0===c?"bg-gray-100":c,d=(0,o.useRef)(null),p=k((function(e){return e.removeAllModals}));return r=null!==(n=r)&&void 0!==n?n:p,(0,Ht.jsx)(qn.Root,{appear:!0,show:!0,as:o.Fragment,children:(0,Ht.jsx)(It,{as:"div",static:!0,open:i,className:"extendify",initialFocus:null!=t?t:d,onClose:r,children:(0,Ht.jsxs)("div",{className:"fixed inset-0 z-high flex",children:[(0,Ht.jsx)(qn.Child,{as:o.Fragment,enter:"ease-out duration-50 transition",enterFrom:"opacity-0",enterTo:"opacity-100",children:(0,Ht.jsx)(It.Overlay,{className:"fixed inset-0 bg-black bg-opacity-40 transition-opacity"})}),(0,Ht.jsx)(qn.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,Ht.jsx)("div",{className:"m-auto",children:(0,Ht.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,Ht.jsxs)("button",{onClick:r,ref:d,className:"absolute top-0 right-0 block cursor-pointer rounded-md bg-transparent p-4 text-gray-700 opacity-30 hover:opacity-100",style:s&&{filter:"invert(1)"},children:[(0,Ht.jsx)("span",{className:"sr-only",children:(0,Mt.__)("Close","extendify")}),(0,Ht.jsx)(Dt,{icon:Sn})]}),(0,Ht.jsx)("div",{className:"w-7/12 p-12 ".concat(u),children:a[0]}),(0,Ht.jsx)("div",{className:"hidden w-6/12 md:block ".concat(f),children:a[1]})]})})})]})})})}));function Yn(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function Gn(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){Yn(i,r,o,s,a,"next",e)}function a(e){Yn(i,r,o,s,a,"throw",e)}s(void 0)}))}}function Jn(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=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);s=!0);}catch(e){a=!0,o=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Kn(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 Kn(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 Kn(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 Xn=function(){var e=Jn((0,o.useState)((0,Mt.__)("Install Extendify","extendify")),2),t=e[0],n=e[1],r=Jn((0,o.useState)(!1),2),i=r[0],a=r[1],l=Jn((0,o.useState)(!1),2),u=l[0],c=l[1],f=(0,o.useRef)(null),d=H((function(e){return e.markNoticeSeen})),p=H((function(e){return e.giveFreebieImports})),h=k((function(e){return e.removeAllModals})),m=function(){var e=Gn(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return h(),d("standalone","modalNotices"),e.next=4,ue("stln-modal-x");case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,Ht.jsxs)(Hn,{ref:f,onClose:m,children:[(0,Ht.jsxs)("div",{children:[(0,Ht.jsx)("div",{className:"mb-10 flex items-center space-x-2 text-extendify-black",children:hn}),(0,Ht.jsx)("h3",{className:"text-xl",children:(0,Mt.__)("Get the brand new Extendify plugin today!","extendify")}),(0,Ht.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,Ht.jsx)("div",{children:(0,Ht.jsxs)("button",{onClick:function(){n((0,Mt.__)("Installing...","extendify")),c(!0),Promise.all([ue("stln-modal-install"),Kt(["extendify"]),new Promise((function(e){return setTimeout(e,1e3)}))]).then(Gn(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n((0,Mt.__)("Success! Reloading...","extendify")),a(!0),p(10),e.next=5,ue("stln-modal-success");case 5:window.location.reload();case 6:case"end":return e.stop()}}),e)})))).catch(function(){var e=Gn(s().mark((function e(t){return s().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,ue("stln-modal-fail");case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},ref:f,disabled:u,className:"button-extendify-main button-focus mt-2 inline-flex justify-center px-4 py-3",style:{minWidth:"225px"},children:[t,i||(0,Ht.jsx)(Lt.Icon,{icon:yn,size:24,className:"ml-2 w-6 flex-grow-0"})]})})]}),(0,Ht.jsx)("div",{className:"flex w-full justify-end rounded-tr-sm rounded-br-sm bg-extendify-secondary",children:(0,Ht.jsx)("img",{alt:(0,Mt.__)("Upgrade Now","extendify"),className:"rounded-br-sm max-w-full rounded-tr-sm",src:window.extendifyData.asset_path+"/modal-extendify-purple.png"})})]})};function Zn(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=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);s=!0);}catch(e){a=!0,o=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Qn(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 Qn(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 Qn(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 er(){return er=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},er.apply(this,arguments)}function tr(e,t){return tr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},tr(e,t)}var nr=new Map,rr=new WeakMap,or=0,ir=void 0;function sr(e){return Object.keys(e).sort().filter((function(t){return void 0!==e[t]})).map((function(t){return t+"_"+("root"===t?(n=e.root)?(rr.has(n)||(or+=1,rr.set(n,or.toString())),rr.get(n)):"0":e[t]);var n})).toString()}function ar(e,t,n,r){if(void 0===n&&(n={}),void 0===r&&(r=ir),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=sr(e),n=nr.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},nr.set(t,n)}return n}(n),s=i.id,a=i.observer,l=i.elements,u=l.get(e)||[];return l.has(e)||l.set(e,u),u.push(t),a.observe(e),function(){u.splice(u.indexOf(t),1),0===u.length&&(l.delete(e),a.unobserve(e)),0===l.size&&(a.disconnect(),nr.delete(s))}}var lr=["children","as","triggerOnce","threshold","root","rootMargin","onChange","skip","trackVisibility","delay","initialInView","fallbackInView"];function ur(e){return"function"!=typeof e.children}var cr=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(),ur(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,tr(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,s=e.fallbackInView;this._unobserveCb=ar(this.node,this.handleChange,{threshold:t,root:n,rootMargin:r,trackVisibility:o,delay:i},s)}},o.unobserve=function(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)},o.render=function(){if(!ur(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,s=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,lr);return a.createElement(i||"div",er({ref:this.handleNode},s),o)},r}(a.Component);function fr(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 dr(){return dr=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},dr.apply(this,arguments)}function pr(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 hr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pr(Object(n),!0).forEach((function(t){mr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}cr.displayName="InView",cr.defaultProps={threshold:0,triggerOnce:!1,initialInView:!1};const xr={breakpointCols:void 0,className:void 0,columnClassName:void 0,children:void 0,columnAttrs:void 0,column:void 0};class yr 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 s=hr(hr(hr({},e),t),{},{style:hr(hr({},t.style),{},{width:o}),className:i});return r.map(((e,t)=>l().createElement("div",dr({},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,a=fr(e,["children","breakpointCols","columnClassName","columnAttrs","column","className"]);let u=s;return"string"!=typeof s&&(this.logDeprecated('The property "className" requires a string'),void 0===s&&(u="my-masonry-grid")),l().createElement("div",dr({},a,{className:u}),this.renderColumns())}}yr.defaultProps=xr;const vr=yr;function gr(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function br(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){gr(i,r,o,s,a,"next",e)}function a(e){gr(i,r,o,s,a,"throw",e)}s(void 0)}))}}var wr=0,jr=function(e){var t=arguments;return br(s().mark((function n(){var r,o,i,a,l;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o=t.length>1&&void 0!==t[1]?t[1]:{},wr++,i="pattern"===e.type?"8":"4",a="pattern"===e.type?"patternType":"layoutType",l=Object.assign({filterByFormula:_r(e,a),pageSize:i,categories:e.taxonomies,search:e.search,type:e.type,offset:"",initial:1===wr,request_count:wr,sdk_partner:null!==(r=H.getState().sdkPartner)&&void 0!==r?r:""},o),n.next=7,Y.post("templates",l);case 7:return n.abrupt("return",n.sent);case 8:case"end":return n.stop()}}),n)})))()},kr=function(e){var t,n,r,o,i,s,a=null!==(t=null===(n=ae.getState())||void 0===n||null===(r=n.searchParams)||void 0===r?void 0:r.taxonomies)&&void 0!==t?t:[];return Y.post("templates/".concat(e.id),{template_id:null==e?void 0:e.id,categories:a,maybe_import:!0,type:null===(o=e.fields)||void 0===o?void 0:o.type,sdk_partner:null!==(i=H.getState().sdkPartner)&&void 0!==i?i:"",pageSize:"1",template_name:null===(s=e.fields)||void 0===s?void 0:s.title})},Er=function(e){var t,n,r,o,i,s,a,l,u,c=null!==(t=null===(n=ae.getState())||void 0===n||null===(r=n.searchParams)||void 0===r?void 0:r.taxonomies)&&void 0!==t?t:[];return Y.post("templates/".concat(e.id),{template_id:e.id,categories:c,imported:!0,basePattern:null!==(o=null!==(i=null===(s=e.fields)||void 0===s?void 0:s.basePattern)&&void 0!==i?i:null===(a=e.fields)||void 0===a?void 0:a.baseLayout)&&void 0!==o?o:"",type:e.fields.type,sdk_partner:null!==(l=H.getState().sdkPartner)&&void 0!==l?l:"",pageSize:"1",template_name:null===(u=e.fields)||void 0===u?void 0:u.title})},_r=function(e,t){var n,r,o=e.taxonomies,i=null==o||null===(n=o.siteType)||void 0===n?void 0:n.slug,s=['{type}="'.concat(t.replace("Type",""),'"'),'{siteType}="'.concat(i,'"')];return null!==(r=o[t])&&void 0!==r&&r.slug&&s.push("{".concat(t,'}="').concat(o[t].slug,'"')),"AND(".concat(s.join(", "),")").replace(/\r?\n|\r/g,"")};const Sr=wp.blockEditor;function Cr(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=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);s=!0);}catch(e){a=!0,o=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Or(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 Or(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 Or(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 Ar=function(){var e=Cr((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 Pr(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function Tr(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){Pr(i,r,o,s,a,"next",e)}function a(e){Pr(i,r,o,s,a,"throw",e)}s(void 0)}))}}var Nr=[],Rr=[];function Ir(e){return Lr.apply(this,arguments)}function Lr(){return Lr=Tr(s().mark((function e(t){var n,r,o,i,a,l,u;return s().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=Nr)&&void 0!==i&&i.length){e.next=10;break}return e.t0=Object,e.next=8,Jt();case 8:e.t1=e.sent,Nr=e.t0.keys.call(e.t0,e.t1);case 10:return u=!(null===(a=l)||void 0===a||!a.length)&&l.filter((function(e){return!Nr.some((function(t){return t.includes(e)}))})),e.abrupt("return",u.length);case 12:case"end":return e.stop()}}),e)}))),Lr.apply(this,arguments)}function Mr(e){return Dr.apply(this,arguments)}function Dr(){return Dr=Tr(s().mark((function e(t){var n,r,o,i,a,l,u;return s().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=Rr)&&void 0!==i&&i.length){e.next=10;break}return e.t0=Object,e.next=8,Xt();case 8:e.t1=e.sent,Rr=e.t0.values.call(e.t0,e.t1);case 10:if(u=!(null===(a=l)||void 0===a||!a.length)&&l.filter((function(e){return!Rr.some((function(t){return t.includes(e)}))})),!u){e.next=16;break}return e.next=14,Ir(t);case 14:if(!e.sent){e.next=16;break}return e.abrupt("return",!1);case 16:return e.abrupt("return",null==u?void 0:u.length);case 17:case"end":return e.stop()}}),e)}))),Dr.apply(this,arguments)}var Br=f(b((function(e){return{wantedTemplate:{},importOnLoad:!1,setWanted:function(t){return e({wantedTemplate:t})},removeWanted:function(){return e({wantedTemplate:{}})}}}),{name:"extendify-wanted-template"}));var Fr=function(e){return Ur(e,"open")};function Ur(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"broken-event",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"open";H.setState({entryPoint:e}),window.dispatchEvent(new CustomEvent("extendify::".concat(t,"-library"),{detail:e,bubbles:!0}))}function zr(e){switch(e){case"editorplus":return"Editor Plus";case"ml-slider":return"MetaSlider"}return e}function $r(e){switch(e){case"siteType":return(0,Mt.__)("Site Type","extendify");case"patternType":return(0,Mt.__)("Content","extendify");case"layoutType":return(0,Mt.__)("Page Types","extendify")}return e}function Vr(){var e,t,n,r=Br((function(e){return e.wantedTemplate})),i=(null==r||null===(e=r.fields)||void 0===e?void 0:e.required_plugins)||[];return(0,Ht.jsxs)(Lt.Modal,{title:(0,Mt.__)("Plugins required","extendify"),isDismissible:!1,children:[(0,Ht.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,Ht.jsx)("ul",{children:i.filter((function(e){return"editorplus"!==e})).map((function(e){return(0,Ht.jsx)("li",{children:zr(e)},e)}))}),(0,Ht.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,Ht.jsx)(Lt.Button,{isPrimary:!0,onClick:function(){return(0,o.render)((0,Ht.jsx)(js,{show:!0}),document.getElementById("extendify-root"))},style:{boxShadow:"none"},children:(0,Mt.__)("Return to library","extendify")})]})}const Wr=wp.data;function qr(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=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);s=!0);}catch(e){a=!0,o=e}finally{try{s||null==n.return||n.return()}finally{if(a)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 Yr(){var e=qr((0,o.useState)(!1),2),t=e[0],n=e[1],r=function(){};return(0,(0,Wr.select)("core/editor").isEditedPostDirty)()?(0,Ht.jsxs)(Lt.Modal,{title:(0,Mt.__)("Reload required","extendify"),isDismissible:!1,children:[(0,Ht.jsx)("p",{style:{maxWidth:"400px"},children:(0,Mt.__)("Just one more thing! We need to reload the page to continue.","extendify")}),(0,Ht.jsxs)(Lt.ButtonGroup,{children:[(0,Ht.jsx)(Lt.Button,{isPrimary:!0,onClick:r,disabled:t,children:(0,Mt.__)("Reload page","extendify")}),(0,Ht.jsx)(Lt.Button,{isSecondary:!0,onClick:function(){n(!0),(0,Wr.dispatch)("core/editor").savePost(),n(!1)},isBusy:t,style:{margin:"0 4px"},children:(0,Mt.__)("Save changes","extendify")})]})]}):null}function Gr(e){var t=e.msg;return(0,Ht.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,Ht.jsx)("br",{}),(0,Ht.jsx)(Lt.Notice,{isDismissible:!1,status:"error",children:t}),(0,Ht.jsx)(Lt.Button,{isPrimary:!0,onClick:function(){(0,o.render)((0,Ht.jsx)(eo,{}),document.getElementById("extendify-root"))},children:(0,Mt.__)("Go back","extendify")})]})}function Jr(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function Kr(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){Jr(i,r,o,s,a,"next",e)}function a(e){Jr(i,r,o,s,a,"throw",e)}s(void 0)}))}}function Xr(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=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);s=!0);}catch(e){a=!0,o=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw o}}return i}(e,t)||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)||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 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 Qr(){var e,t=Xr((0,o.useState)(""),2),n=t[0],r=t[1],i=Br((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(){Br.setState({importOnLoad:!0})})).then(Kr(s().mark((function e(){return s().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,Ht.jsx)(Yr,{}),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,Ht.jsx)(Gr,{msg:n}):(0,Ht.jsx)(Lt.Modal,{title:(0,Mt.__)("Activating plugins","extendify"),isDismissible:!1,children:(0,Ht.jsx)(Lt.Button,{style:{width:"100%"},disabled:!0,isPrimary:!0,isBusy:!0,onClick:function(){},children:(0,Mt.__)("Activating...","extendify")})})}function eo(e){var t,n,r,i,s,a=Br((function(e){return e.wantedTemplate})),l=(null==a||null===(t=a.fields)||void 0===t?void 0:t.required_plugins)||[];return null!==(n=H.getState())&&void 0!==n&&n.canActivatePlugins?(0,Ht.jsx)(Lt.Modal,{title:(0,Mt.__)("Activate required plugins","extendify"),isDismissible:!1,children:(0,Ht.jsxs)("div",{children:[(0,Ht.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==a||null===(s=a.fields)||void 0===s?void 0:s.type)&&void 0!==i?i:"template"),"extendify")}),(0,Ht.jsx)("ul",{children:l.filter((function(e){return"editorplus"!==e})).map((function(e){return(0,Ht.jsx)("li",{children:zr(e)},e)}))}),(0,Ht.jsxs)(Lt.ButtonGroup,{children:[(0,Ht.jsx)(Lt.Button,{isPrimary:!0,onClick:function(){return(0,o.render)((0,Ht.jsx)(Qr,{}),document.getElementById("extendify-root"))},children:(0,Mt.__)("Activate Plugins","extendify")}),e.showClose&&(0,Ht.jsx)(Lt.Button,{isTertiary:!0,onClick:function(){return(0,o.render)((0,Ht.jsx)(js,{show:!0}),document.getElementById("extendify-root"))},style:{boxShadow:"none",margin:"0 4px"},children:(0,Mt.__)("No thanks, return to library","extendify")})]})]})}):(0,Ht.jsx)(Vr,{})}function to(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}var no=function(){var e,t=(e=s().mark((function e(t){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Mr(t);case 2:return e.t0=!e.sent,e.t1=function(){},e.t2=function(){return new Promise((function(){(0,o.render)((0,Ht.jsx)(eo,{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 s(e){to(i,r,o,s,a,"next",e)}function a(e){to(i,r,o,s,a,"throw",e)}s(void 0)}))});return function(e){return t.apply(this,arguments)}}();function ro(e){var t=e.msg;return(0,Ht.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,Ht.jsx)("br",{}),(0,Ht.jsx)(Lt.Notice,{isDismissible:!1,status:"error",children:t}),(0,Ht.jsx)(Lt.Button,{isPrimary:!0,onClick:function(){return(0,o.render)((0,Ht.jsx)(ao,{}),document.getElementById("extendify-root"))},children:(0,Mt.__)("Go back","extendify")})]})}function oo(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=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);s=!0);}catch(e){a=!0,o=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return io(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 io(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 io(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 so(e){var t,n=e.requiredPlugins,r=oo((0,o.useState)(""),2),i=r[0],s=r[1],a=Br((function(e){return e.wantedTemplate})),l=null!=n?n:null==a||null===(t=a.fields)||void 0===t?void 0:t.required_plugins.filter((function(e){return"editorplus"!==e}));return Kt(l).then((function(){Br.setState({importOnLoad:!0}),(0,o.render)((0,Ht.jsx)(Yr,{}),document.getElementById("extendify-root"))})).catch((function(e){var t=e.message;s(t)})),i?(0,Ht.jsx)(ro,{msg:i}):(0,Ht.jsx)(Lt.Modal,{title:(0,Mt.__)("Installing plugins","extendify"),isDismissible:!1,children:(0,Ht.jsx)(Lt.Button,{style:{width:"100%"},disabled:!0,isPrimary:!0,isBusy:!0,onClick:function(){},children:(0,Mt.__)("Installing...","extendify")})})}function ao(e){var t,n,r,i,s,a=e.forceOpen,l=e.buttonLabel,u=e.title,c=e.message,f=e.requiredPlugins,d=Br((function(e){return e.wantedTemplate}));f=null!==(t=f)&&void 0!==t?t:null==d||null===(n=d.fields)||void 0===n?void 0:n.required_plugins;return null!==(r=H.getState())&&void 0!==r&&r.canInstallPlugins?(0,Ht.jsxs)(Lt.Modal,{title:null!=u?u:(0,Mt.__)("Install required plugins","extendify"),isDismissible:!1,children:[(0,Ht.jsx)("p",{style:{maxWidth:"400px"},children:null!=c?c:(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==d||null===(s=d.fields)||void 0===s?void 0:s.type)&&void 0!==i?i:"template"),"extendify")}),(null==c?void 0:c.length)>0||(0,Ht.jsx)("ul",{children:f.filter((function(e){return"editorplus"!==e})).map((function(e){return(0,Ht.jsx)("li",{children:zr(e)},e)}))}),(0,Ht.jsxs)(Lt.ButtonGroup,{children:[(0,Ht.jsx)(Lt.Button,{isPrimary:!0,onClick:function(){return(0,o.render)((0,Ht.jsx)(so,{requiredPlugins:f}),document.getElementById("extendify-root"))},children:null!=l?l:(0,Mt.__)("Install Plugins","extendify")}),a||(0,Ht.jsx)(Lt.Button,{isTertiary:!0,onClick:function(){a||(0,o.render)((0,Ht.jsx)(js,{show:!0}),document.getElementById("extendify-root"))},style:{boxShadow:"none",margin:"0 4px"},children:(0,Mt.__)("No thanks, take me back","extendify")})]})]}):(0,Ht.jsx)(Vr,{})}function lo(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}var uo=function(){var e,t=(e=s().mark((function e(t){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ir(t);case 2:return e.t0=!e.sent,e.t1=function(){},e.t2=function(){return new Promise((function(){(0,o.render)((0,Ht.jsx)(ao,{}),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 s(e){lo(i,r,o,s,a,"next",e)}function a(e){lo(i,r,o,s,a,"throw",e)}s(void 0)}))});return function(e){return t.apply(this,arguments)}}();function co(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 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&&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,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}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}function po(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function ho(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){po(i,r,o,s,a,"next",e)}function a(e){po(i,r,o,s,a,"throw",e)}s(void 0)}))}}function mo(e){return new vo(e)}function xo(e){return function(){return new yo(e.apply(this,arguments))}}function yo(e){var t,n;function r(t,n){try{var i=e[t](n),s=i.value,a=s instanceof vo;Promise.resolve(a?s.wrapped:s).then((function(e){a?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,s){var a={key:e,arg:o,resolve:i,reject:s,next:null};n?n=n.next=a:(t=n=a,r(e,o))}))},"function"!=typeof e.return&&(this.return=void 0)}function vo(e){this.wrapped=e}yo.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},yo.prototype.next=function(e){return this._invoke("next",e)},yo.prototype.throw=function(e){return this._invoke("throw",e)},yo.prototype.return=function(e){return this._invoke("return",e)};function go(e){return bo.apply(this,arguments)}function bo(){return(bo=ho(s().mark((function e(t){var n,r;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=wo(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 wo(e){return jo.apply(this,arguments)}function jo(){return(jo=xo(s().mark((function e(t){var n,r,o;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=co(t),e.prev=1,n.s();case 3:if((r=n.n()).done){e.next=11;break}return o=r.value,e.next=7,mo(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 ko(e,t){var n=(0,Wr.dispatch)("core/block-editor"),r=n.insertBlocks,o=n.replaceBlock,i=(0,Wr.select)("core/block-editor"),s=i.getSelectedBlock,a=i.getBlockHierarchyRootClientId,l=i.getBlockIndex,u=i.getGlobalBlockCount,c=s()||{},f=c.clientId,d=c.name,p=c.attributes,h=f?a(f):"",m=(h?l(h):u())+1;return("core/paragraph"===d&&""===(null==p?void 0:p.content)?o(f,e):r(e,m)).then((function(){return window.dispatchEvent(new CustomEvent("extendify::template-inserted",{detail:{template:t},bubbles:!0}))}))}var Eo=n(4306);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=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);s=!0);}catch(e){a=!0,o=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return So(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 So(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 So(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 Co=function(e){var t,n,r,i,s,a=e.template,l=null!=a&&null!==(t=a.fields)&&void 0!==t&&null!==(n=t.basePattern)&&void 0!==n&&n.length?null==a||null===(r=a.fields)||void 0===r?void 0:r.basePattern[0]:"",u=_o((0,o.useState)(l),2),c=u[0],f=u[1];return(0,o.useEffect)((function(){null!=l&&l.length&&c!==l&&setTimeout((function(){return f(l)}),1e3)}),[c,l]),l?(0,Ht.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,Ht.jsx)(Eo.CopyToClipboard,{text:null==a||null===(i=a.fields)||void 0===i?void 0:i.basePattern,onCopy:function(){return f((0,Mt.__)("Copied!","extendify"))},children:(0,Ht.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"),c)})}),(0,Ht.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==a||null===(s=a.fields)||void 0===s?void 0:s.editURL,rel:"noreferrer",children:(0,Mt.__)("Edit","extendify")})]}):null};function Oo(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 Ao(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oo(Object(n),!0).forEach((function(t){Po(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Po(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var To=(0,o.forwardRef)((function(e,t){var n,r=e.isOpen,i=e.heading,s=e.onClose,a=e.children,l=(0,o.useRef)(null),u=k((function(e){return e.removeAllModals}));return s=null!==(n=s)&&void 0!==n?n:u,(0,Ht.jsx)(qn,{appear:!0,show:r,as:o.Fragment,className:"extendify",children:(0,Ht.jsx)(It,{initialFocus:null!=t?t:l,onClose:s,children:(0,Ht.jsxs)("div",{className:"fixed inset-0 z-high flex",children:[(0,Ht.jsx)(qn.Child,{as:o.Fragment,enter:"ease-out duration-200 transition",enterFrom:"opacity-0",enterTo:"opacity-100",children:(0,Ht.jsx)(It.Overlay,{className:"fixed inset-0 bg-black bg-opacity-40"})}),(0,Ht.jsx)(qn.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,Ht.jsx)("div",{className:"relative m-auto w-full",children:(0,Ht.jsxs)("div",{className:"relative m-auto w-full max-w-lg items-center justify-center rounded-sm bg-white shadow-modal",children:[i?(0,Ht.jsxs)("div",{className:"flex items-center justify-between border-b py-2 pl-6 pr-3 leading-none",children:[(0,Ht.jsx)("span",{className:"whitespace-nowrap text-base text-extendify-black",children:i}),(0,Ht.jsx)(No,{onClick:s})]}):(0,Ht.jsx)("div",{className:"absolute top-0 right-0 block px-4 py-4 ",children:(0,Ht.jsx)(No,{ref:l,onClick:s})}),(0,Ht.jsx)("div",{children:a})]})})})]})})})})),No=(0,o.forwardRef)((function(e,t){return(0,Ht.jsx)(Lt.Button,Ao(Ao({},e),{},{icon:(0,Ht.jsx)(Dt,{icon:Sn}),ref:t,className:"text-extendify-black opacity-75 hover:opacity-100",showTooltip:!1,label:(0,Mt.__)("Close dialog","extendify")}))}));function Ro(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function Io(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){Ro(i,r,o,s,a,"next",e)}function a(e){Ro(i,r,o,s,a,"throw",e)}s(void 0)}))}}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=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);s=!0);}catch(e){a=!0,o=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Mo(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 Mo(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 Mo(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 Do=function(){var e=Lo((0,o.useState)(!1),2),t=e[0],n=e[1],r=Lo((0,o.useState)(!1),2),i=r[0],a=r[1],l=Ar(),u=function(){var e=Io(s().mark((function e(){return s().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),H.setState({participatingTestsGroups:[]}),e.next=8,H.persist.rehydrate();case 8:return window.extendifyData._canRehydrate=!1,n(!1),e.abrupt("return");case 11:return H.persist.clearStorage(),k.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=Io(s().mark((function e(){var t;return s().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")),ae.getState().resetTemplates(),ae.getState().updateSearchParams({}),Z.persist.clearStorage(),Z.persist.rehydrate(),ae.setState({taxonomyDefaultState:{}}),Z.getState().fetchTaxonomies().then((function(){ae.getState().setupDefaultTaxonomies()}));case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return window.extendifyData.devbuild?(0,Ht.jsxs)("section",{className:"p-6 flex flex-col space-y-6 border-l-8 border-extendify-secondary",children:[(0,Ht.jsxs)("div",{children:[(0,Ht.jsx)("p",{className:"text-base m-0 text-extendify-black",children:"Development Settings"}),(0,Ht.jsx)("p",{className:"text-sm italic m-0 text-gray-500",children:"Only available on dev builds"})]}),(0,Ht.jsxs)("div",{className:"flex space-x-2",children:[(0,Ht.jsxs)(Lt.Button,{isSecondary:!0,onClick:c,children:["Switch to ",l?"Live":"Dev"," Server"]}),(0,Ht.jsx)(Lt.Button,{isSecondary:!0,onClick:u,children:t?"Processing...":i?"OK! Press to rehydrate app":"Reset User Data"})]})]}):null};function Bo(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function Fo(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){Bo(i,r,o,s,a,"next",e)}function a(e){Bo(i,r,o,s,a,"throw",e)}s(void 0)}))}}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=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);s=!0);}catch(e){a=!0,o=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return zo(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 zo(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 zo(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=H((function(e){return e.apiKey.length})),i=Uo((0,o.useState)(""),2),a=i[0],l=i[1],u=Uo((0,o.useState)(""),2),c=u[0],f=u[1],d=Uo((0,o.useState)(""),2),p=d[0],h=d[1],m=Uo((0,o.useState)("info"),2),x=m[0],y=m[1],v=Uo((0,o.useState)(!1),2),g=v[0],b=v[1],w=Uo((0,o.useState)(!1),2),j=w[0],k=w[1],E=(0,o.useRef)(null),_=(0,o.useRef)(null),S=Ar();(0,o.useEffect)((function(){return l(H.getState().email),function(){return y("info")}}),[]),(0,o.useEffect)((function(){var e;j&&(null==E||null===(e=E.current)||void 0===e||e.focus())}),[j]);var C=function(){var e=Fo(s().mark((function e(t){var n,r,o,i,l;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),b(!0),h(""),e.next=5,A(a,c);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,Mt.__)("Something went wrong","extendify")),e.abrupt("return");case 25:y("success"),h("Success!"),k(!0),b(!1),H.setState({email:a,apiKey:r});case 30:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return j?(0,Ht.jsxs)("section",{className:"space-y-6 p-6 text-center flex flex-col items-center",children:[(0,Ht.jsx)(Dt,{icon:jn,size:148}),(0,Ht.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,Ht.jsx)(Lt.Button,{ref:E,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,Ht.jsxs)("section",{className:"w-full space-y-6 p-6",children:[(0,Ht.jsx)("p",{className:"text-base m-0 text-extendify-black",children:(0,Mt.__)("Account","extendify")}),(0,Ht.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ht.jsxs)("div",{className:"-ml-2 flex items-center space-x-2",children:[(0,Ht.jsx)(Dt,{icon:_n,size:48}),(0,Ht.jsx)("p",{className:"text-extendify-black",children:null!=a&&a.length?a:(0,Mt.__)("Logged In","extendify")})]}),S&&(0,Ht.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(){f(""),H.setState({apiKey:""}),setTimeout((function(){var e;null==_||null===(e=_.current)||void 0===e||e.focus()}),0)},children:(0,Mt.__)("Sign out","extendify")})]})]}):(0,Ht.jsxs)("section",{className:"space-y-6 p-6 text-left",children:[(0,Ht.jsxs)("div",{children:[(0,Ht.jsx)("p",{className:"text-center text-lg font-semibold m-0 text-extendify-black",children:(0,Mt.__)("Sign in to Extendify","extendify")}),(0,Ht.jsxs)("p",{className:"space-x-1 text-center text-sm m-0 text-extendify-gray",children:[(0,Ht.jsx)("span",{children:(0,Mt.__)("Don't have an account?","extendify")}),(0,Ht.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(H.getState().activeTestGroupsUtmValue()),target:"_blank",onClick:Fo(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ue("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,Ht.jsxs)("form",{onSubmit:C,className:"flex flex-col items-center justify-center space-y-2",children:[(0,Ht.jsxs)("div",{className:"flex items-center",children:[(0,Ht.jsx)("label",{className:"sr-only",htmlFor:"extendify-login-email",children:(0,Mt.__)("Email address","extendify")}),(0,Ht.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 l(e.target.value)}})]}),(0,Ht.jsxs)("div",{className:"flex items-center",children:[(0,Ht.jsx)("label",{className:"sr-only",htmlFor:"extendify-login-license",children:(0,Mt.__)("License key","extendify")}),(0,Ht.jsx)("input",{ref:_,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 f(e.target.value)}})]}),(0,Ht.jsx)("div",{className:"flex justify-center pt-2",children:(0,Ht.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,Ht.jsx)("span",{children:(0,Mt.__)("Sign In","extendify")}),g&&(0,Ht.jsx)("div",{className:"absolute right-2.5",children:(0,Ht.jsx)(Lt.Spinner,{})})]})}),p&&(0,Ht.jsx)("div",{className:Ft()({"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,Ht.jsx)("div",{className:"pt-4 text-center",children:(0,Ht.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(H.getState().activeTestGroupsUtmValue()),onClick:Fo(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ue("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 Vo=function(){var e=(0,o.useRef)(null),t=k((function(e){return e.removeAllModals}));return(0,Ht.jsx)(To,{heading:(0,Mt.__)("Settings","extendify"),isOpen:!0,ref:e,children:(0,Ht.jsxs)("div",{className:"flex justify-center flex-col divide-y",children:[(0,Ht.jsx)(Do,{}),(0,Ht.jsx)($o,{initialFocus:e,actionCallback:t})]})})};function Wo(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.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 s(e){Wo(i,r,o,s,a,"next",e)}function a(e){Wo(i,r,o,s,a,"throw",e)}s(void 0)}))}}var Ho=function(){var e=k((function(e){return e.pushModal})),t=(0,o.useRef)(null);return(0,Ht.jsxs)(Hn,{isOpen:!0,ref:t,leftContainerBgColor:"bg-white",children:[(0,Ht.jsxs)("div",{children:[(0,Ht.jsx)("div",{className:"mb-5 flex items-center space-x-2 text-extendify-black",children:hn}),(0,Ht.jsx)("h3",{className:"mt-0 text-xl",children:(0,Mt.__)("You're out of imports","extendify")}),(0,Ht.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,Ht.jsxs)("div",{children:[(0,Ht.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(H.getState().activeTestGroupsUtmValue()),onClick:qo(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ue("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,Ht.jsx)(Lt.Icon,{icon:gn,size:24,className:"-mr-1"})]}),(0,Ht.jsxs)("p",{className:"mb-0 text-left text-sm text-extendify-gray",children:[(0,Mt.__)("Have an account?","extendify"),(0,Ht.jsx)(Lt.Button,{onClick:function(){return e((0,Ht.jsx)(Vo,{}))},className:"pl-2 text-sm text-extendify-gray underline hover:no-underline",children:(0,Mt.__)("Sign in","extendify")})]})]})]}),(0,Ht.jsxs)("div",{className:"flex h-full flex-col justify-center space-y-2 p-10 text-black",children:[(0,Ht.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,Ht.jsx)(Lt.Icon,{icon:wn,size:24}),(0,Ht.jsx)("span",{className:"text-sm leading-none",children:(0,Mt.__)("Access to 100's of Patterns","extendify")})]}),(0,Ht.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,Ht.jsx)(Lt.Icon,{icon:mn,size:24}),(0,Ht.jsx)("span",{className:"text-sm leading-none",children:(0,Mt.__)('Access to "Pro" catalog',"extendify")})]}),(0,Ht.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,Ht.jsx)(Lt.Icon,{icon:bn,size:24}),(0,Ht.jsx)("span",{className:"text-sm leading-none",children:(0,Mt.__)("Beautiful full page layouts","extendify")})]}),(0,Ht.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,Ht.jsx)(Lt.Icon,{icon:kn,size:24}),(0,Ht.jsx)("span",{className:"text-sm leading-none",children:(0,Mt.__)("Fast and friendly support","extendify")})]}),(0,Ht.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,Ht.jsx)(Lt.Icon,{icon:En,size:24}),(0,Ht.jsx)("span",{className:"text-sm leading-none",children:(0,Mt.__)("14-Day guarantee","extendify")})]})]})]})};function Yo(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function Go(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){Yo(i,r,o,s,a,"next",e)}function a(e){Yo(i,r,o,s,a,"throw",e)}s(void 0)}))}}var Jo=function(){var e=(0,o.useRef)(null);return(0,Ht.jsxs)(Hn,{isOpen:!0,invertedButtonColor:!0,ref:e,children:[(0,Ht.jsxs)("div",{children:[(0,Ht.jsx)("div",{className:"mb-5 flex items-center space-x-2 text-extendify-black",children:hn}),(0,Ht.jsx)("h3",{className:"mt-0 text-xl",children:(0,Mt.__)("Get unlimited access to all our Pro patterns & layouts","extendify")}),(0,Ht.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,Ht.jsx)("div",{children:(0,Ht.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(H.getState().activeTestGroupsUtmValue()),onClick:Go(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ue("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,Ht.jsx)(Lt.Icon,{icon:gn,size:24,className:"-mr-1"})]})})]}),(0,Ht.jsx)("div",{className:"justify-endrounded-tr-sm flex w-full rounded-br-sm bg-black",children:(0,Ht.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 Ko(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xo(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}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=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);s=!0);}catch(e){a=!0,o=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Qo(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 Qo(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 Qo(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 ei=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{hasRequiredPlugins:uo,hasPluginsActivated:no,stack:[],check:function(t){var n=this;return ho(s().mark((function r(){var o,i,a,l;return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:o=co(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: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 ti(e){var t,n,i,a,l,u,c=e.template,f=e.maxHeight,d=(0,o.useRef)(null),p=H((function(e){return e.hasAvailableImports})),h=H((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=Zo((0,o.useState)(0),2),g=v[0],b=v[1],w=Array.isArray(null==c||null===(t=c.fields)||void 0===t?void 0:t.type)?c.fields.type[0]:null==c||null===(n=c.fields)||void 0===n?void 0:n.type,j=(0,o.useMemo)((function(){return(0,r.rawHandler)({HTML:ni(c.fields.code)})}),[c.fields.code]),E=(0,o.useMemo)((function(){return(0,r.rawHandler)({HTML:c.fields.code})}),[c.fields.code]),_=Ar(),S=function(){var e,t=(e=s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ei.check(c);case 2:go(ei).then((function(){setTimeout((function(){ko(E,c).then((function(){return y()})).then((function(){return m(!1)})).then((function(){return ei.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 s(e){Xo(i,r,o,s,a,"next",e)}function a(e){Xo(i,r,o,s,a,"throw",e)}s(void 0)}))});return function(){return t.apply(this,arguments)}}(),C=function(){var e;kr(c),null==c||null===(e=c.fields)||void 0===e||!e.pro||h?p()?S():x((0,Ht.jsx)(Ho,{})):x((0,Ht.jsx)(Jo,{}))};return(0,o.useEffect)((function(){if(Number.isInteger(f)&&"layout"===w){var e=d.current,t=function(){var t=e.offsetHeight;e.style.transitionDuration=1.5*t+"ms",b(-1*Math.abs(t-f))},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)}}}),[f,w]),(0,Ht.jsxs)("div",{className:"group relative",children:[(0,Ht.jsx)("div",{role:"button",tabIndex:"0","aria-label":(0,Mt.sprintf)((0,Mt.__)("Press to import %s","extendify"),null==c||null===(i=c.fields)||void 0===i?void 0:i.type),style:{maxHeight:f},className:"button-focus relative m-0 cursor-pointer overflow-hidden bg-gray-100 ease-in-out",onClick:C,onKeyDown:function(e){["Enter","Space"," "].includes(e.key)&&(e.stopPropagation(),e.preventDefault(),C())},children:(0,Ht.jsx)("div",{ref:d,style:{top:g,transitionProperty:"all"},className:Ft()("with-light-shadow relative",(l={},Ko(l,"is-template--".concat(c.fields.status),(null==c||null===(a=c.fields)||void 0===a?void 0:a.status)&&_),Ko(l,"p-6 md:p-8",Number.isInteger(f)),l)),children:(0,Ht.jsx)(Sr.BlockPreview,{blocks:j,live:!1,viewportWidth:1400})})}),_&&(0,Ht.jsx)(Co,{template:c}),(null==c||null===(u=c.fields)||void 0===u?void 0:u.pro)&&(0,Ht.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")})]})}var ni=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 ri(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=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);s=!0);}catch(e){a=!0,o=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return oi(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 oi(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 oi(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 ii=(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=ae((function(e){return e.templates})),n=ri((0,o.useState)(0),2),r=n[0],i=n[1],s=ae((function(e){return e.appendTemplates})),l=ri((0,o.useState)(""),2),u=l[0],c=l[1],f=(0,o.useRef)(!1),d=ri((0,o.useState)(!1),2),p=d[0],h=d[1],m=ri((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,s=t.root,l=t.triggerOnce,u=t.skip,c=t.initialInView,f=t.fallbackInView,d=a.useRef(),p=a.useState({inView:!!c}),h=p[0],m=p[1],x=a.useCallback((function(e){void 0!==d.current&&(d.current(),d.current=void 0),u||e&&(d.current=ar(e,(function(e,t){m({inView:e,entry:t}),t.isIntersecting&&l&&d.current&&(d.current(),d.current=void 0)}),{root:s,rootMargin:i,threshold:n,trackVisibility:o,delay:r},f))}),[Array.isArray(n)?n.toString():n,s,i,l,u,o,f,r]);(0,a.useEffect)((function(){d.current||!h.entry||l||u||m({inView:!!c})}));var y=[x,h.inView,h.entry];return y.ref=y[0],y.inView=y[1],y.entry=y[2],y}(),g=ri(v,2),b=g[0],w=g[1],j=ae((function(e){return e.searchParams})),E=k((function(e){return e.currentType})),_=ae((function(e){return e.resetTemplates})),C=k((function(e){return e.open})),O=Z((function(e){return e.taxonomies})),A=ae((function(e){return e.updateType})),P=ae((function(e){return e.updateTaxonomies})),T=(0,o.useRef)(ae.getState().nextPage),N=(0,o.useRef)(ae.getState().searchParams),R="pattern"===N.current.type?"patternType":"layoutType",I=N.current.taxonomies[R];(0,o.useEffect)((function(){return ae.subscribe((function(e){return e.nextPage}),(function(e){return T.current=e}))}),[]),(0,o.useEffect)((function(){return ae.subscribe((function(e){return e.searchParams}),(function(e){return N.current=e}))}),[]);var L,M=(0,o.useCallback)((function(){var t,n,r;c(""),h(!1);var o=(0,Mt.__)("Unknown error occurred. Check browser console or contact support.","extendify"),a={offset:T.current},l=null!==(t=N.current.taxonomies)&&void 0!==t&&null!==(n=t.siteType)&&void 0!==n&&null!==(r=n.slug)&&void 0!==r&&r.length?N.current.taxonomies.siteType:{slug:"default"},u=(0,S.cloneDeep)(N.current);u.taxonomies.siteType=l,jr(u,a).then((function(t){var n,r,o,a;e.current&&(null!=t&&null!==(n=t.error)&&void 0!==n&&n.length?c(null==t?void 0:t.error):(null==t||null===(r=t.records)||void 0===r?void 0:r.length)<=0?h(!0):j===N.current&&null!=t&&null!==(o=t.records)&&void 0!==o&&o.length&&(ae.setState({nextPage:null!==(a=null==t?void 0:t.offset)&&void 0!==a?a:""}),s(t.records),i((function(e){return t.records.length+e})),y(!1)))})).catch((function(t){e.current&&(console.error(t),c(o))}))}),[s,e,j]);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(){!f.current&&u.length&&(f.current=!0,M())}),[u,M]),(0,o.useEffect)((function(){var e;if(C&&null!=O&&null!==(e=O.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=O.patternType.find((function(e){return e.slug===n}));r&&(P({patternType:r}),A("pattern"))}}}),[C,O,A,P]),(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(!ae.getState().skipNextFetch)return M(),function(){return _()};ae.setState({skipNextFetch:!1})}}),[M,N,_]),(0,o.useEffect)((function(){T.current&&w&&M()}),[w,M,r]),u.length&&f.current?(0,Ht.jsxs)("div",{className:"text-left",children:[(0,Ht.jsx)("h2",{className:"text-left",children:(0,Mt.__)("Server error","extendify")}),(0,Ht.jsx)("code",{className:"mb-4 block max-w-xl p-4",style:{minHeight:"10rem"},children:u}),(0,Ht.jsx)(Lt.Button,{isTertiary:!0,onClick:function(){f.current=!1,M()},children:(0,Mt.__)("Press here to reload")})]}):p?(0,Ht.jsx)("div",{className:"-mt-2 flex h-full w-full items-center justify-center sm:mt-0",children:(0,Ht.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!==(L=null==I?void 0:I.title)&&void 0!==L?L:I.slug)})}):(0,Ht.jsxs)(Ht.Fragment,{children:[x&&(0,Ht.jsx)("div",{className:"-mt-2 flex h-full w-full items-center justify-center sm:mt-0",children:(0,Ht.jsx)(Lt.Spinner,{})}),(0,Ht.jsx)(si,{type:E,templates:t,children:t.map((function(e){return(0,Ht.jsx)(ti,{maxHeight:"template"===E?520:"none",template:e},e.id)}))}),T.current&&(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsx)("div",{className:"mt-8",children:(0,Ht.jsx)(Lt.Spinner,{})}),(0,Ht.jsx)("div",{className:"relative flex flex-col items-end justify-end -top-1/4 h-4",ref:b,style:{zIndex:-1}})]})]})})),si=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,Ht.jsx)("div",{className:"grid gap-6 md:gap-8 lg:grid-cols-2 ".concat(r),children:n});return(0,Ht.jsx)(vr,{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 ai(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function li(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){ai(i,r,o,s,a,"next",e)}function a(e){ai(i,r,o,s,a,"throw",e)}s(void 0)}))}}var ui=(0,o.memo)((function(){var e=H((function(e){return e.remainingImports})),t=H((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){N().then((function(e){e=/^[1-9]\d*$/.test(e)?e:5,H.setState({allowedImports:e})})).catch((function(){return H.setState({allowedImports:5})}))}}),[t]),t?(0,Ht.jsxs)("div",{tabIndex:"0",className:"group relative mb-5",children:[(0,Ht.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:li(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ue("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(H.getState().activeTestGroupsUtmValue()),children:[(0,Ht.jsxs)("span",{className:"flex items-center space-x-2 text-xs no-underline",children:[(0,Ht.jsx)(Dt,{icon:n>0?xn:fn,size:14}),(0,Ht.jsx)("span",{children:(0,Mt.sprintf)((0,Mt._n)("%s Import","%s Imports",n,"extendify"),n)})]}),(0,Ht.jsxs)("span",{className:"outline-none flex items-center text-sm font-medium text-white no-underline",children:[(0,Mt.__)("Get more","extendify"),(0,Ht.jsx)(Dt,{icon:gn,size:24,className:"-mr-1.5"})]})]}),(0,Ht.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,Ht.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(H.getState().activeTestGroupsUtmValue()),className:"block bg-gray-900 text-white p-4 no-underline rounded bg-cover",onClick:li(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ue("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,Ht.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 ci(e){return Array.isArray?Array.isArray(e):"[object Array]"===yi(e)}function fi(e){return"string"==typeof e}function di(e){return"number"==typeof e}function pi(e){return!0===e||!1===e||function(e){return hi(e)&&null!==e}(e)&&"[object Boolean]"==yi(e)}function hi(e){return"object"==typeof e}function mi(e){return null!=e}function xi(e){return!e.trim().length}function yi(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const vi=Object.prototype.hasOwnProperty;class gi{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach((e=>{let n=bi(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 bi(e){let t=null,n=null,r=null,o=1,i=null;if(fi(e)||ci(e))r=e,t=wi(e),n=ji(e);else{if(!vi.call(e,"name"))throw new Error((e=>`Missing ${e} property in key`)("name"));const s=e.name;if(r=s,vi.call(e,"weight")&&(o=e.weight,o<=0))throw new Error((e=>`Property 'weight' in key '${e}' must be a positive integer`)(s));t=wi(s),n=ji(s),i=e.getFn}return{path:t,id:n,weight:o,src:r,getFn:i}}function wi(e){return ci(e)?e:e.split(".")}function ji(e){return ci(e)?e.join("."):e}const ki={useExtendedSearch:!1,getFn:function(e,t){let n=[],r=!1;const o=(e,t,i)=>{if(mi(e))if(t[i]){const s=e[t[i]];if(!mi(s))return;if(i===t.length-1&&(fi(s)||di(s)||pi(s)))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)}(s));else if(ci(s)){r=!0;for(let e=0,n=s.length;e<n;e+=1)o(s[e],t,i+1)}else t.length&&o(s,t,i+1)}else n.push(e)};return o(e,fi(t)?t.split("."):t,0),r?n:n[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var Ei={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,...ki};const _i=/[^ ]+/g;class Si{constructor({getFn:e=Ei.getFn,fieldNormWeight:t=Ei.fieldNormWeight}={}){this.norm=function(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(t){const o=t.match(_i).length;if(n.has(o))return n.get(o);const i=1/Math.pow(o,.5*e),s=parseFloat(Math.round(i*r)/r);return n.set(o,s),s},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,fi(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();fi(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(!mi(e)||xi(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=t.getFn?t.getFn(e):this.getFn(e,t.path);if(mi(o))if(ci(o)){let e=[];const t=[{nestedArrIndex:-1,value:o}];for(;t.length;){const{nestedArrIndex:n,value:r}=t.pop();if(mi(r))if(fi(r)&&!xi(r)){let t={v:r,i:n,n:this.norm.get(r)};e.push(t)}else ci(r)&&r.forEach(((e,n)=>{t.push({nestedArrIndex:n,value:e})}))}n.$[r]=e}else if(fi(o)&&!xi(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 Ci(e,t,{getFn:n=Ei.getFn,fieldNormWeight:r=Ei.fieldNormWeight}={}){const o=new Si({getFn:n,fieldNormWeight:r});return o.setKeys(e.map(bi)),o.setSources(t),o.create(),o}function Oi(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:o=Ei.distance,ignoreLocation:i=Ei.ignoreLocation}={}){const s=t/e.length;if(i)return s;const a=Math.abs(r-n);return o?s+a/o:a?1:s}const Ai=32;function Pi(e,t,n,{location:r=Ei.location,distance:o=Ei.distance,threshold:i=Ei.threshold,findAllMatches:s=Ei.findAllMatches,minMatchCharLength:a=Ei.minMatchCharLength,includeMatches:l=Ei.includeMatches,ignoreLocation:u=Ei.ignoreLocation}={}){if(t.length>Ai)throw new Error(`Pattern length exceeds max of ${Ai}.`);const c=t.length,f=e.length,d=Math.max(0,Math.min(r,f));let p=i,h=d;const m=a>1||l,x=m?Array(f):[];let y;for(;(y=e.indexOf(t,h))>-1;){let e=Oi(t,{currentLocation:y,expectedLocation:d,distance:o,ignoreLocation:u});if(p=Math.min(e,p),h=y+c,m){let e=0;for(;e<c;)x[y+e]=1,e+=1}}h=-1;let v=[],g=1,b=c+f;const w=1<<c-1;for(let r=0;r<c;r+=1){let i=0,a=b;for(;i<a;){Oi(t,{errors:r,currentLocation:d+a,expectedLocation:d,distance:o,ignoreLocation:u})<=p?i=a:b=a,a=Math.floor((b-i)/2+i)}b=a;let l=Math.max(1,d-a+1),y=s?f:Math.min(d+a,f)+c,j=Array(y+2);j[y+1]=(1<<r)-1;for(let i=y;i>=l;i-=1){let s=i-1,a=n[e.charAt(s)];if(m&&(x[s]=+!!a),j[i]=(j[i+1]<<1|1)&a,r&&(j[i]|=(v[i+1]|v[i])<<1|1|v[i+1]),j[i]&w&&(g=Oi(t,{errors:r,currentLocation:s,expectedLocation:d,distance:o,ignoreLocation:u}),g<=p)){if(p=g,h=s,h<=d)break;l=Math.max(1,2*d-h)}}if(Oi(t,{errors:r+1,currentLocation:d,expectedLocation:d,distance:o,ignoreLocation:u})>p)break;v=j}const j={isMatch:h>=0,score:Math.max(.001,g)};if(m){const e=function(e=[],t=Ei.minMatchCharLength){let n=[],r=-1,o=-1,i=0;for(let s=e.length;i<s;i+=1){let s=e[i];s&&-1===r?r=i:s||-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,a);e.length?l&&(j.indices=e):j.isMatch=!1}return j}function Ti(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 Ni{constructor(e,{location:t=Ei.location,threshold:n=Ei.threshold,distance:r=Ei.distance,includeMatches:o=Ei.includeMatches,findAllMatches:i=Ei.findAllMatches,minMatchCharLength:s=Ei.minMatchCharLength,isCaseSensitive:a=Ei.isCaseSensitive,ignoreLocation:l=Ei.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:r,includeMatches:o,findAllMatches:i,minMatchCharLength:s,isCaseSensitive:a,ignoreLocation:l},this.pattern=a?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const u=(e,t)=>{this.chunks.push({pattern:e,alphabet:Ti(e),startIndex:t})},c=this.pattern.length;if(c>Ai){let e=0;const t=c%Ai,n=c-t;for(;e<n;)u(this.pattern.substr(e,Ai),e),e+=Ai;if(t){const e=c-Ai;u(this.pattern.substr(e),e)}}else u(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:s,minMatchCharLength:a,ignoreLocation:l}=this.options;let u=[],c=0,f=!1;this.chunks.forEach((({pattern:t,alphabet:d,startIndex:p})=>{const{isMatch:h,score:m,indices:x}=Pi(e,t,d,{location:r+p,distance:o,threshold:i,findAllMatches:s,minMatchCharLength:a,includeMatches:n,ignoreLocation:l});h&&(f=!0),c+=m,h&&x&&(u=[...u,...x])}));let d={isMatch:f,score:f?c/this.chunks.length:1};return f&&n&&(d.indices=u),d}}class Ri{constructor(e){this.pattern=e}static isMultiMatch(e){return Ii(e,this.multiRegex)}static isSingleMatch(e){return Ii(e,this.singleRegex)}search(){}}function Ii(e,t){const n=e.match(t);return n?n[1]:null}class Li extends Ri{constructor(e,{location:t=Ei.location,threshold:n=Ei.threshold,distance:r=Ei.distance,includeMatches:o=Ei.includeMatches,findAllMatches:i=Ei.findAllMatches,minMatchCharLength:s=Ei.minMatchCharLength,isCaseSensitive:a=Ei.isCaseSensitive,ignoreLocation:l=Ei.ignoreLocation}={}){super(e),this._bitapSearch=new Ni(e,{location:t,threshold:n,distance:r,includeMatches:o,findAllMatches:i,minMatchCharLength:s,isCaseSensitive:a,ignoreLocation:l})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class Mi extends Ri{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 Di=[class extends Ri{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]}}},Mi,class extends Ri{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 Ri{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 Ri{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 Ri{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 Ri{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]}}},Li],Bi=Di.length,Fi=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/;const Ui=new Set([Li.type,Mi.type]);class zi{constructor(e,{isCaseSensitive:t=Ei.isCaseSensitive,includeMatches:n=Ei.includeMatches,minMatchCharLength:r=Ei.minMatchCharLength,ignoreLocation:o=Ei.ignoreLocation,findAllMatches:i=Ei.findAllMatches,location:s=Ei.location,threshold:a=Ei.threshold,distance:l=Ei.distance}={}){this.query=null,this.options={isCaseSensitive:t,includeMatches:n,minMatchCharLength:r,findAllMatches:i,ignoreLocation:o,location:s,threshold:a,distance:l},this.pattern=t?e:e.toLowerCase(),this.query=function(e,t={}){return e.split("|").map((e=>{let n=e.trim().split(Fi).filter((e=>e&&!!e.trim())),r=[];for(let e=0,o=n.length;e<o;e+=1){const o=n[e];let i=!1,s=-1;for(;!i&&++s<Bi;){const e=Di[s];let n=e.isMultiMatch(o);n&&(r.push(new e(n,t)),i=!0)}if(!i)for(s=-1;++s<Bi;){const e=Di[s];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=[],s=0;for(let r=0,a=t.length;r<a;r+=1){const a=t[r];i.length=0,o=0;for(let t=0,r=a.length;t<r;t+=1){const r=a[t],{isMatch:l,indices:u,score:c}=r.search(e);if(!l){s=0,o=0,i.length=0;break}if(o+=1,s+=c,n){const e=r.constructor.type;Ui.has(e)?i=[...i,...u]:i.push(u)}}if(o){let e={isMatch:!0,score:s/o};return n&&(e.indices=i),e}}return{isMatch:!1,score:1}}}const $i=[];function Vi(e,t){for(let n=0,r=$i.length;n<r;n+=1){let r=$i[n];if(r.condition(e,t))return new r(e,t)}return new Ni(e,t)}const Wi="$and",qi="$or",Hi="$path",Yi="$val",Gi=e=>!(!e[Wi]&&!e[qi]),Ji=e=>({[Wi]:Object.keys(e).map((t=>({[t]:e[t]})))});function Ki(e,t,{auto:n=!0}={}){const r=e=>{let o=Object.keys(e);const i=(e=>!!e[Hi])(e);if(!i&&o.length>1&&!Gi(e))return r(Ji(e));if((e=>!ci(e)&&hi(e)&&!Gi(e))(e)){const r=i?e[Hi]:o[0],s=i?e[Yi]:e[r];if(!fi(s))throw new Error((e=>`Invalid value for key ${e}`)(r));const a={keyId:ji(r),pattern:s};return n&&(a.searcher=Vi(s,t)),a}let s={children:[],operator:o[0]};return o.forEach((t=>{const n=e[t];ci(n)&&n.forEach((e=>{s.children.push(r(e))}))})),s};return Gi(e)||(e=Ji(e)),r(e)}function Xi(e,t){const n=e.matches;t.matches=[],mi(n)&&n.forEach((e=>{if(!mi(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 Zi(e,t){t.score=e.score}class Qi{constructor(e,t={},n){this.options={...Ei,...t},this.options.useExtendedSearch,this._keyStore=new gi(this.options.keys),this.setCollection(e,n)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof Si))throw new Error("Incorrect 'index' type");this._myIndex=t||Ci(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){mi(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:s}=this.options;let a=fi(e)?fi(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return function(e,{ignoreFieldNorm:t=Ei.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}))}(a,{ignoreFieldNorm:s}),o&&a.sort(i),di(t)&&t>-1&&(a=a.slice(0,t)),function(e,t,{includeMatches:n=Ei.includeMatches,includeScore:r=Ei.includeScore}={}){const o=[];return n&&o.push(Xi),r&&o.push(Zi),e.map((e=>{const{idx:n}=e,r={item:t[n],refIndex:n};return o.length&&o.forEach((t=>{t(e,r)})),r}))}(a,this._docs,{includeMatches:n,includeScore:r})}_searchStringList(e){const t=Vi(e,this.options),{records:n}=this._myIndex,r=[];return n.forEach((({v:e,i:n,n:o})=>{if(!mi(e))return;const{isMatch:i,score:s,indices:a}=t.searchIn(e);i&&r.push({item:e,idx:n,matches:[{score:s,value:e,norm:o,indices:a}]})})),r}_searchLogical(e){const t=Ki(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,s=e.children.length;i<s;i+=1){const s=e.children[i],a=n(s,t,r);if(a.length)o.push(...a);else if(e.operator===Wi)return[]}return o},r=this._myIndex.records,o={},i=[];return r.forEach((({$:e,i:r})=>{if(mi(e)){let s=n(t,e,r);s.length&&(o[r]||(o[r]={idx:r,item:e,matches:[]},i.push(o[r])),s.forEach((({matches:e})=>{o[r].matches.push(...e)})))}})),i}_searchObjectList(e){const t=Vi(e,this.options),{keys:n,records:r}=this._myIndex,o=[];return r.forEach((({$:e,i:r})=>{if(!mi(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(!mi(t))return[];let r=[];if(ci(t))t.forEach((({v:t,i:o,n:i})=>{if(!mi(t))return;const{isMatch:s,score:a,indices:l}=n.searchIn(t);s&&r.push({score:a,key:e,value:t,idx:o,norm:i,indices:l})}));else{const{v:o,n:i}=t,{isMatch:s,score:a,indices:l}=n.searchIn(o);s&&r.push({score:a,key:e,value:o,norm:i,indices:l})}return r}}function es(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=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);s=!0);}catch(e){a=!0,o=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ts(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 ts(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 ts(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}Qi.version="6.6.2",Qi.createIndex=Ci,Qi.parseIndex=function(e,{getFn:t=Ei.getFn,fieldNormWeight:n=Ei.fieldNormWeight}={}){const{keys:r,records:o}=e,i=new Si({getFn:t,fieldNormWeight:n});return i.setKeys(r),i.setIndexRecords(o),i},Qi.config=Ei,Qi.parseQuery=Ki,function(...e){$i.push(...e)}(zi);var ns=new Map,rs=function(e){var t,n,r=e.value,i=e.setValue,s=e.terms,a=ae((function(e){return e.searchParams})),l=es((0,o.useState)(!1),2),u=l[0],c=l[1],f=(0,o.useRef)(),d=es((0,o.useState)({}),2),p=d[0],h=d[1],m=es((0,o.useState)(""),2),x=m[0],y=m[1],v=es((0,o.useState)([]),2),g=v[0],b=v[1],w=es((0,o.useState)(!0),2),j=w[0],k=w[1],E=(0,o.useMemo)((function(){return s.sort((function(e,t){return e.slug<t.slug?-1:e.slug>t.slug?1:0}))}),[s]),_=(0,o.useMemo)((function(){return E.filter((function(e){return null==e?void 0:e.featured}))}),[E]),S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(ns.has(e))b(ns.get(e));else{var t=p.search(e);ns.set(e,null!=t&&t.length?t.map((function(e){return e.item})):_),b(ns.get(e))}};(0,o.useEffect)((function(){h(new Qi(s,{keys:["slug","title","keywords"],minMatchCharLength:1,threshold:.3}))}),[s]),(0,o.useEffect)((function(){null!=x&&x.length||b(j?_:E)}),[_,x,E,j]),(0,o.useEffect)((function(){u&&f.current.focus()}),[u]),(0,o.useEffect)((function(){r.slug||c(!0)}),[r.slug]);var C,O,A;return(0,Ht.jsxs)("div",{className:"w-full rounded bg-gray-50 border border-gray-900",children:[(0,Ht.jsx)("button",{type:"button",onClick:function(){return c((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:(O=u?(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,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsxs)("span",{className:"flex flex-col text-left",children:[(0,Ht.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,Ht.jsx)("span",{className:"text-xs font-light",children:O})]}),(0,Ht.jsxs)("span",{className:"flex items-center space-x-4",children:[!u&&!r.slug&&(0,Ht.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,Ht.jsx)("title",{children:(0,Mt.__)("Click to select a preferred site industry","extendify")}),(0,Ht.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,Ht.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,Ht.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,Ht.jsx)("svg",{className:Ft()("stroke-current text-gray-900",{"-translate-x-1 rotate-90 transform":u}),"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,Ht.jsx)("path",{d:"M1.24194 11.5952L6.24194 6.09519L1.24194 0.595215",strokeWidth:"1.5"})})]})]}))}),u&&(0,Ht.jsxs)("div",{className:"max-h-96 overflow-y-auto px-4 py-0",children:[(0,Ht.jsx)("div",{className:"sticky top-0 pt-0.5 pb-2 bg-gray-50",children:(0,Ht.jsxs)("div",{className:"relative",children:[(0,Ht.jsx)("label",{htmlFor:"site-type-search",className:"sr-only",children:(0,Mt.__)("Search","extendify")}),(0,Ht.jsx)("input",{ref:f,id:"site-type-search",value:null!=x?x:"",onChange:function(e){return t=e.target.value,y(t),void S(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,Ht.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,Ht.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,Ht.jsx)("p",{className:"text-left",children:(0,Mt.__)("Nothing found...","extendify")}),(null==g?void 0:g.length)>0&&(0,Ht.jsx)("div",{children:(C=g,(0,Ht.jsx)(Ht.Fragment,{children:(0,Ht.jsx)("ul",{className:"mt-4 mb-0",children:C.map((function(e){var t,n,r,o=null!==(t=null==e?void 0:e.title)&&void 0!==t?t:e.slug,s=(null==a||null===(n=a.taxonomies)||void 0===n||null===(r=n.siteType)||void 0===r?void 0:r.slug)===e.slug;return(0,Ht.jsx)("li",{className:"m-0 mb-1",children:(0,Ht.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":!s}),onClick:function(){c(!1),i(e)},children:o})},e.slug+(null==e?void 0:e.title))}))})}))})]}),x||!u?null:(0,Ht.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")})]})};var os=function(e){var t,n=e.active,r=e.tax,o=e.update;return(0,Ht.jsx)("li",{className:"m-0 w-full",children:(0,Ht.jsx)("button",{type:"button",className:"group m-0 p-0 flex w-full cursor-pointer text-left text-sm leading-none my-px bg-transparent",onClick:o,children:(0,Ht.jsx)("span",{className:Ft()("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)},is=function(e){var t=e.taxType,n=e.taxonomies,r=e.taxLabel,o=ae((function(e){return e.searchParams})),i=ae((function(e){return e.updateTaxonomies}));return!(null!=n&&n.length)>0?null:(0,Ht.jsx)(Lt.PanelBody,{title:$r(null!=r?r:t),className:"ext-type-control p-0",initialOpen:!0,children:(0,Ht.jsx)(Lt.PanelRow,{children:(0,Ht.jsx)("div",{className:"relative w-full overflow-hidden",children:(0,Ht.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,Ht.jsx)(os,{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)}))})})})})},ss=function(e){var t=e.className,n=ae((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,Ht.jsxs)("div",{className:t,children:[(0,Ht.jsx)("h4",{className:"sr-only",children:(0,Mt.__)("Type select","extendify")}),(0,Ht.jsxs)("div",{className:"flex justify-evenly border border-gray-900 p-0.5 rounded",children:[(0,Ht.jsx)("button",{type:"button",className:Ft()({"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,Ht.jsx)("span",{className:"",children:(0,Mt.__)("Patterns","extendify")})}),(0,Ht.jsx)("button",{type:"button",className:Ft()({"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,Ht.jsx)("span",{className:"",children:(0,Mt.__)("Templates","extendify")})})]})]})};var as=(0,o.memo)((function(){var e,t,n,r,o,i,s,a=Z((function(e){return e.taxonomies})),l=ae((function(e){return e.searchParams})),u=H((function(e){return e.updatePreferredSiteType})),c=ae((function(e){return e.updateTaxonomies})),f=H((function(e){return e.apiKey})),d="pattern"===l.type?"patternType":"layoutType",p=!(null!=l&&null!==(e=l.taxonomies[d])&&void 0!==e&&null!==(t=e.slug)&&void 0!==t&&t.length),h=k((function(e){return e.setOpen}));return(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsx)("div",{className:"-ml-1.5 hidden px-5 text-extendify-black sm:flex",children:(0,Ht.jsx)(Dt,{icon:pn,size:40})}),(0,Ht.jsx)("div",{className:"flex md:hidden items-center justify-end -mt-5 mx-1",children:(0,Ht.jsx)(Lt.Button,{onClick:function(){return h(!1)},icon:(0,Ht.jsx)(Dt,{icon:Sn,size:24}),label:(0,Mt.__)("Close library","extendify")})}),(0,Ht.jsx)("div",{className:"px-5 hidden md:block",children:(0,Ht.jsxs)("button",{onClick:function(){return c((n={slug:"",title:"Featured"},(t=d)in(e={})?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e));var e,t,n},className:Ft()("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,Ht.jsx)(Dt,{icon:vn,size:24}),(0,Ht.jsx)("span",{className:"text-sm",children:(0,Mt.__)("Featured","extendify")})]})}),(0,Ht.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==a?void 0:a.siteType)&&void 0!==n?n:{}).length>0&&(0,Ht.jsx)(rs,{value:null!==(r=null==l||null===(o=l.taxonomies)||void 0===o?void 0:o.siteType)&&void 0!==r?r:"",setValue:function(e){u(e),c({siteType:e})},terms:a.siteType})}),(0,Ht.jsx)(ss,{className:"mx-6 px-5 pt-0.5 sm:mx-0 sm:mb-8 sm:mt-0"}),(0,Ht.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,Ht.jsx)(Lt.Panel,{className:"bg-transparent",children:(0,Ht.jsx)(is,{taxType:d,taxonomies:null===(i=a[d])||void 0===i?void 0:i.filter((function(e){return!(null!=e&&e.designType)}))})}),(0,Ht.jsx)(Lt.Panel,{className:"bg-transparent",children:(0,Ht.jsx)(is,{taxLabel:(0,Mt.__)("Design","extendify"),taxType:d,taxonomies:null===(s=a[d])||void 0===s?void 0:s.filter((function(e){return Boolean(null==e?void 0:e.designType)}))})})]}),!f.length&&(0,Ht.jsx)("div",{className:"px-5",children:(0,Ht.jsx)(ui,{})})]})}));function ls(e){var t=e.children,n=k((function(e){return e.ready}));return(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.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,Ht.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,Ht.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 us=(0,o.memo)((function(e){var t=e.className,n=k((function(e){return e.setOpen})),r=k((function(e){return e.pushModal})),o=H((function(e){return e.apiKey.length}));return(0,Ht.jsx)("div",{className:t,children:(0,Ht.jsx)("div",{className:"flex h-full items-center justify-between",children:(0,Ht.jsxs)("div",{className:"flex flex-1 items-center justify-end lg:-mr-1",children:[(0,Ht.jsx)(Lt.Button,{onClick:function(){return r((0,Ht.jsx)(Vo,{}))},icon:(0,Ht.jsx)(Dt,{icon:_n,size:24}),label:(0,Mt.__)("Login and settings area","extendify"),children:o?"":(0,Mt.__)("Sign in","extendify")}),(0,Ht.jsx)(Lt.Button,{onClick:function(){return n(!1)},icon:(0,Ht.jsx)(Dt,{icon:Sn,size:24}),label:(0,Mt.__)("Close library","extendify")})]})})})})),cs=function(e){var t=e.setOpen,n=(0,o.useRef)(),r=ae((function(e){return e.searchParams}));return(0,o.useEffect)((function(){n.current&&(n.current.scrollTop=0)}),[r]),(0,Ht.jsx)("div",{className:"relative mx-auto flex h-full max-w-screen-4xl flex-col items-center",children:(0,Ht.jsxs)("div",{className:"w-full flex-grow overflow-hidden",children:[(0,Ht.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,Ht.jsx)("div",{className:"relative mx-auto h-full sm:flex",children:(0,Ht.jsxs)(ls,{children:[(0,Ht.jsx)(as,{}),(0,Ht.jsxs)("div",{className:"relative z-30 flex h-full flex-col",children:[(0,Ht.jsx)(us,{className:"hidden h-12 w-full flex-shrink-0 px-6 sm:block md:px-8",hideLibrary:function(){return t(!1)}}),(0,Ht.jsx)("div",{ref:n,className:"z-20 flex-grow overflow-y-auto px-6 md:px-8",children:(0,Ht.jsx)(ii,{})})]})]})})]})})};function fs(){var e=(0,o.useRef)(null),t=k((function(e){return e.open})),n=k((function(e){return e.setOpen})),r=function(){var e=Zn((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})),s=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:Xn},n=t[null!==(e=Object.keys(t).find((function(e){return"standalone"===e?!window.extendifyData.standalone&&!H.getState().modalNoticesDismissedAt[e]:!H.getState().modalNoticesDismissedAt[e]})))&&void 0!==e?e:null];n&&i((0,Ht.jsx)(n,{}))}else s()}),[r,i,s]),t}(),i=k((function(e){return e.ready}));return(0,Ht.jsxs)(It,{as:"div",className:"extendify",initialFocus:e,open:t,onClose:function(){return n(!1)},children:[(0,Ht.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-40 transition-opacity"}),(0,Ht.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,Ht.jsx)("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,Ht.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:[(0,Ht.jsx)(cs,{}),i?(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsx)(un,{}),r]}):null]})})})]})}const ds=wp.compose,ps=wp.hooks,hs=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 ms(e){return function(e){if(Array.isArray(e))return xs(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 xs(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 xs(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 xs(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 ys(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 vs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ys(Object(n),!0).forEach((function(t){gs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bs=(0,ds.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=hs.t.map((function(e){return e.replace(".","").replace(new RegExp("\\\\","g"),"")}));return(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsx)(e,vs({},t)),o&&(0,Ht.jsx)(Sr.InspectorAdvancedControls,{children:(0,Ht.jsx)(Lt.FormTokenField,{label:(0,Mt.__)("Extendify Utilities","extendify"),tokenizeOnSpace:!0,value:o,suggestions:i,onChange:function(e){t.setAttributes({extUtilities:e})}})})]})}}),"utilityClassEdit");function ws(e,t,n){var r,o,i,s=null!==(r=null==e?void 0:e.className)&&void 0!==r?r:[],a=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(!a||!Object.keys(a).length)return e;var u=function(e){switch(Object.prototype.toString.call(e)){case"[object String]":return e.split(" ");case"[object Array]":return e;default:return[]}},c=new Set([].concat(ms(u(l)),ms(u(s)),ms(u(a))));return Object.assign({},e,{className:ms(c).join(" ")})}function js(e){var t=e.show,n=void 0!==t&&t,r=k((function(e){return e.open})),i=k((function(e){return e.setReady})),s=k((function(e){return e.setOpen})),a=(0,o.useCallback)((function(){return s(!0)}),[s]),l=(0,o.useCallback)((function(){return s(!1)}),[s]),u=ae((function(e){return e.initTemplateData})),c=Z((function(e){return e.fetchTaxonomies})),f=H((function(e){return e._hasHydrated})),d=ae((function(e){return Object.keys(e.taxonomyDefaultState).length>0}));return(0,o.useEffect)((function(){r&&c().then((function(){ae.getState().setupDefaultTaxonomies()}))}),[r,c]),(0,o.useEffect)((function(){f&&d&&(u(),i(!0))}),[f,d,u,i]),(0,o.useEffect)((function(){var e=new URLSearchParams(window.location.search);(n||e.has("ext-open"))&&s(!0)}),[n,s]),(0,o.useEffect)((function(){le().then((function(e){k.setState({metaData:e})}))}),[]),(0,o.useEffect)((function(){return window.addEventListener("extendify::open-library",a),window.addEventListener("extendify::close-library",l),function(){window.removeEventListener("extendify::open-library",a),window.removeEventListener("extendify::close-library",l)}}),[l,a]),(0,Ht.jsx)(fs,{})}function ks(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,ps.addFilter)("blocks.registerBlockType","extendify/utilities/attributes",(function(e){return vs(vs({},e),{},{attributes:vs(vs({},e.attributes),{},{extUtilities:{type:"array",default:[]}})})})),(0,ps.addFilter)("blocks.registerBlockType","extendify/utilities/addEditProps",(function(e){var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),ws(r,e,n)},e})),(0,ps.addFilter)("editor.BlockEdit","extendify/utilities/advancedClassControls",bs),(0,ps.addFilter)("blocks.getSaveContent.extraProps","extendify/utilities/extra-props",ws);var Es,_s=(0,Wr.select)("core/blocks").getCategories();(0,r.setCategories)([{slug:"extendify",title:"Extendify",icon:null}].concat(function(e){if(Array.isArray(e))return ks(e)}(Es=_s)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(Es)||function(e,t){if(e){if("string"==typeof e)return ks(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)?ks(e,t):void 0}}(Es)||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,Ht.jsx)(Lt.Icon,{icon:dn})});const Ss=(0,o.createElement)(Wt,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)($t,{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"})),Cs=(0,o.createElement)(Wt,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)($t,{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"})),Os=(0,o.createElement)(Wt,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)($t,{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"})),As=(0,o.createElement)(Wt,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)($t,{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"})),Ps=(0,o.createElement)(Wt,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)($t,{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"})),Ts=(0,o.createElement)(Wt,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)($t,{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"})),Ns=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)(Ns,{icon:dn,category:"extendify",example:{attributes:{preview:window.extendifyData.asset_path+"/preview.png"}},variations:[{name:"gallery",icon:(0,Ht.jsx)(Dt,{icon:Ss}),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,Ht.jsx)(Dt,{icon:Cs}),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,Ht.jsx)(Dt,{icon:Os}),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,Ht.jsx)(Dt,{icon:As}),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,Ht.jsx)(Dt,{icon:Ps}),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,Ht.jsx)(Dt,{icon:Ts}),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,Wr.useDispatch)("core/block-editor").removeBlock;return(0,o.useEffect)((function(){n.preview||(n.search&&Rs(n.search),Ur("library-block","open"),r(t))}),[t,n,r]),(0,Ht.jsx)("img",{style:{display:"block",maxWidth:"100%"},src:n.preview,alt:(0,Mt.sprintf)((0,Mt.__)("%s Pattern Library","extendify"),"Extendify")})}});var Rs=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 Is=wp.editPost,Ls=wp.plugins;var Ms=function(){return Y.get("site-settings")},Ds=function(e){var t=new FormData;return t.append("data",JSON.stringify(e)),Y.post("site-settings",t,{headers:{"Content-Type":"multipart/form-data"}})};function Bs(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function Fs(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){Bs(i,r,o,s,a,"next",e)}function a(e){Bs(i,r,o,s,a,"throw",e)}s(void 0)}))}}var Us={getItem:function(){var e=Fs(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ms();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=Fs(s().mark((function e(t,n){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ds(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(){}},zs=f(b((function(){return{enabled:!0}}),{name:"extendify-sitesettings",getStorage:function(){return Us}}));function $s(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function Vs(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){$s(i,r,o,s,a,"next",e)}function a(e){$s(i,r,o,s,a,"throw",e)}s(void 0)}))}}function Ws(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=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);s=!0);}catch(e){a=!0,o=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return qs(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 qs(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 qs(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 Hs=function(){var e=(0,Wr.useSelect)((function(e){return e("core").canUser("create","users")})),t=Ws((0,o.useState)(H.getState().enabled),2),n=t[0],r=t[1],i=Ws((0,o.useState)(zs.getState().enabled),2),a=i[0],l=i[1];function u(){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 f.apply(this,arguments)}function f(){return(f=Vs(s().mark((function e(t){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,H.setState({enabled:t});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function d(e){return p.apply(this,arguments)}function p(){return(p=Vs(s().mark((function e(t){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,zs.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=Vs(s().mark((function e(t,n){return s().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)})))).apply(this,arguments)}function x(e){"global"===e?l((function(t){return h(!t,e),!t})):r((function(t){return u(!t),h(!t,e),!t}))}return(0,o.useEffect)((function(){u(!n)}),[n]),(0,Ht.jsxs)(Lt.Modal,{title:(0,Mt.__)("Extendify Settings","extendify"),onRequestClose:function(){var e=document.getElementById("extendify-util");(0,o.unmountComponentAtNode)(e)},children:[(0,Ht.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 x("user")}}),e&&(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsx)("br",{}),(0,Ht.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 x("global")}})]})]})};function Ys(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=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);s=!0);}catch(e){a=!0,o=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Gs(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 Gs(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 Gs(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 Js=function(e){var t=e.anchorRef,n=e.onPressX,r=e.onClick,o=e.onClickOutside;return t.current?(0,Ht.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,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"0.5rem"},children:[(0,Ht.jsx)("span",{style:{textTransform:"uppercase",color:"#8b8b8b"},children:(0,Mt.__)("Monthly Imports","extendify")}),(0,Ht.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,Ht.jsx)(Dt,{icon:Sn,size:12}),showTooltip:!1,label:(0,Mt.__)("Close callout","extendify")})]}),(0,Ht.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 Ks(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function Xs(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){Ks(i,r,o,s,a,"next",e)}function a(e){Ks(i,r,o,s,a,"throw",e)}s(void 0)}))}}function Zs(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=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);s=!0);}catch(e){a=!0,o=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Qs(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 Qs(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 Qs(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 ea,ta,na,ra,oa,ia,sa,aa,la,ua,ca=function(){var e=Zs((0,o.useState)(!1),2),t=e[0],n=e[1],r=(0,o.useRef)(!1),i=(0,o.useRef)(),a=H((function(e){return e.apiKey.length})),l=H((function(e){return e.imports>0})),u=k((function(e){return e.open})),c=H((function(e){return 0===e.allowedImports})),f=H((function(e){return e.uuid})),d=function(e,t,n){var r=Ys((0,o.useState)(),2),i=r[0],s=r[1],a=k((function(e){return e.ready}));return(0,o.useLayoutEffect)((function(){if(n||a&&!i||window.extendifyData._canRehydrate){var r=H.getState().testGroup(e,t);s(r)}}),[e,t,i,a,n]),i}("main-button-text2",["A","B"],!0),p=Zs((0,o.useState)(),2),h=p[0],m=p[1],x=function(){var e=Xs(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ue("mb-tooltip-closed");case 2:n(!1),H.setState({allowedImports:-1});case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,o.useEffect)((function(){if(f){m(function(){switch(d){case"A":return(0,Mt.__)("Add template","extendify");case"B":return(0,Mt.__)("Design Library","extendify")}}())}}),[d,f]),(0,o.useEffect)((function(){u&&(n(!1),r.current=!0),!a&&c&&l&&(r.current||n(!0),r.current=!0)}),[a,c,l,u]),(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsx)(fa,{buttonRef:i,text:h}),t&&(0,Ht.jsx)(Js,{anchorRef:i,onClick:Xs(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ue("mb-tooltip-pressed");case 2:Fr("main-button-tooltip");case 3:case"end":return e.stop()}}),e)}))),onPressX:x})]})},fa=function(e){var t=e.buttonRef,n=e.text;return(0,Ht.jsx)("div",{className:"extendify",children:(0,Ht.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 Fr("main-button")},id:"extendify-templates-inserter-btn",icon:(0,Ht.jsx)(Dt,{icon:pn,size:24,style:{marginRight:0}}),children:(0,Ht.jsx)("span",{className:"hidden xs:inline ml-1",children:n})})})},da=function(){return(0,Ht.jsx)(Lt.Button,{id:"extendify-cta-button",style:{margin:"1rem 1rem 0",width:"calc(100% - 2rem)",justifyContent:" center"},onClick:function(){return Fr("patterns-cta")},isSecondary:!0,children:(0,Mt.__)("Discover patterns in Extendify Library","extendify")})},pa=null===(ea=window.extendifyData)||void 0===ea||null===(ta=ea.user)||void 0===ta?void 0:ta.state,ha=function(){return null===window.extendifyData.user||(null==pa?void 0:pa.isAdmin)},ma=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)},xa=null===(na=window)||void 0===na||null===(ra=na.wp)||void 0===ra||null===(oa=ra.data)||void 0===oa?void 0:oa.subscribe((function(){requestAnimationFrame((function(){var e,t;if((ma()||ha())&&!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,Ht.jsx)(ca,{}),n),(null===window.extendifyData.user?ma():null==pa?void 0:pa.enabled)||document.getElementById("extendify-templates-inserter-btn").classList.add("hidden"),xa()}}))})),ya=null===(ia=window)||void 0===ia||null===(sa=ia.wp)||void 0===sa||null===(aa=sa.data)||void 0===aa?void 0:aa.subscribe((function(){requestAnimationFrame((function(){if((ma()||ha())&&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,Ht.jsx)(da,{}),e),ya()}}))}));try{(0,Ls.registerPlugin)("extendify-settings-enable-disable",{render:function(){return(0,Ht.jsx)(Ht.Fragment,{children:(0,Ht.jsxs)(Is.PluginSidebarMoreMenuItem,{onClick:function(){var e=document.getElementById("extendify-util");(0,o.render)((0,Ht.jsx)(Hs,{}),e)},icon:(0,Ht.jsx)(Dt,{icon:pn,size:24}),children:[" ",(0,Mt.__)("Extendify","extendify")]})})}})}catch(Qe){console.error("registerPlugin not supported? (error handled gracefully)",Qe.message)}[{register:function(){var e=(0,Wr.dispatch)("core/notices").createNotice,t=H.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(),Er(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,S.camelCase)(t.detail.type)](t.detail)}))},versionOutdated:function(e){(0,o.render)((0,Ht.jsx)(ao,{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===(la=window)||void 0===la||null===(ua=la.wp)||void 0===ua||ua.domReady((function(){var e=Object.assign(document.createElement("div"),{id:"extendify-root"});if(document.body.append(e),(0,o.render)((0,Ht.jsx)(js,{}),e),e.parentNode.insertBefore(Object.assign(document.createElement("div"),{id:"extendify-util"}),e.nextSibling),Br.getState().importOnLoad){var t=Br.getState().wantedTemplate;setTimeout((function(){ko((0,r.rawHandler)({HTML:t.fields.code}),t)}),0)}Br.setState({importOnLoad:!1,wantedTemplate:{}})}))},4782:(e,t)=>{"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,i=l(e),s=i[0],a=i[1],u=new o(function(e,t,n){return 3*(t+n)/4-n}(0,s,a)),c=0,f=a>0?s-4:s;for(n=0;n<f;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;2===a&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t);1===a&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t);return u},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],s=16383,a=0,l=r-o;a<l;a+=s)i.push(u(e,a,a+s>l?l:a+s));1===o?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===o&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=i.length;s<a;++s)n[s]=i[s],r[i.charCodeAt(s)]=s;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,r){for(var o,i,s=[],a=t;a<r;a+=3)o=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),s.push(n[(i=o)>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return s.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},816:(e,t,n)=>{"use strict";var r=n(4782),o=n(8898),i=n(5182);function s(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return u(this,e,t,n)}function u(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=d(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|h(t,n),o=(e=a(e,r)).write(t,n);o!==r&&(e=e.slice(0,o));return e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n=0|p(t.length);return 0===(e=a(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?a(e,0):d(e,t);if("Buffer"===t.type&&i(t.data))return d(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(c(t),e=a(e,t<0?0:0|p(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function d(e,t){var n=t.length<0?0:0|p(t.length);e=a(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function p(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function h(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return $(e).length;default:if(r)return z(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return O(this,t,n);case"latin1":case"binary":return A(this,t,n);case"base64":return _(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function x(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,o);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,r,o){var i,s=1,a=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,l/=2,n/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){var c=-1;for(i=n;i<a;i++)if(u(e,i)===u(t,-1===c?0:i-c)){if(-1===c&&(c=i),i-c+1===l)return c*s}else-1!==c&&(i-=i-c),c=-1}else for(n+l>a&&(n=a-l),i=n;i>=0;i--){for(var f=!0,d=0;d<l;d++)if(u(e,i+d)!==u(t,d)){f=!1;break}if(f)return i}return-1}function g(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var s=0;s<r;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function b(e,t,n,r){return V(z(t,e.length-n),e,n,r)}function w(e,t,n,r){return V(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function j(e,t,n,r){return w(e,t,n,r)}function k(e,t,n,r){return V($(t),e,n,r)}function E(e,t,n,r){return V(function(e,t){for(var n,r,o,i=[],s=0;s<e.length&&!((t-=2)<0);++s)r=(n=e.charCodeAt(s))>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function _(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function S(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,s,a,l,u=e[o],c=null,f=u>239?4:u>223?3:u>191?2:1;if(o+f<=n)switch(f){case 1:u<128&&(c=u);break;case 2:128==(192&(i=e[o+1]))&&(l=(31&u)<<6|63&i)>127&&(c=l);break;case 3:i=e[o+1],s=e[o+2],128==(192&i)&&128==(192&s)&&(l=(15&u)<<12|(63&i)<<6|63&s)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:i=e[o+1],s=e[o+2],a=e[o+3],128==(192&i)&&128==(192&s)&&128==(192&a)&&(l=(15&u)<<18|(63&i)<<12|(63&s)<<6|63&a)>65535&&l<1114112&&(c=l)}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),o+=f}return function(e){var t=e.length;if(t<=C)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=C));return n}(r)}t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==n.g.TYPED_ARRAY_SUPPORT?n.g.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=s(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return u(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return function(e,t,n,r){return c(t),t<=0?a(e,t):void 0!==n?"string"==typeof r?a(e,t).fill(n,r):a(e,t).fill(n):a(e,t)}(null,e,t,n)},l.allocUnsafe=function(e){return f(null,e)},l.allocUnsafeSlow=function(e){return f(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=l.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var s=e[n];if(!l.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(r,o),o+=s.length}return r},l.byteLength=h,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)x(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)x(this,t,t+3),x(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)x(this,t,t+7),x(this,t+1,t+6),x(this,t+2,t+5),x(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?S(this,0,e):m.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,r,o){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),a=Math.min(i,s),u=this.slice(r,o),c=e.slice(t,n),f=0;f<a;++f)if(u[f]!==c[f]){i=u[f],s=c[f];break}return i<s?-1:s<i?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return y(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return y(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return g(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return j(this,e,t,n);case"base64":return k(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var C=4096;function O(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function A(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function P(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=U(e[i]);return o}function T(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function N(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function R(e,t,n,r,o,i){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function I(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function L(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function M(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(e,t,n,r,i){return i||M(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function B(e,t,n,r,i){return i||M(e,0,n,8),o.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var o=t-e;n=new l(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},l.prototype.readUInt8=function(e,t){return t||N(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||N(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||N(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},l.prototype.readInt8=function(e,t){return t||N(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||N(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||N(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||N(e,4,this.length),o.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||N(e,4,this.length),o.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||N(e,8,this.length),o.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||N(e,8,this.length),o.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||R(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||R(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):L(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);R(this,e,t,n,o-1,-o)}var i=0,s=1,a=0;for(this[t]=255&e;++i<n&&(s*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/s>>0)-a&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);R(this,e,t,n,o-1,-o)}var i=n-1,s=1,a=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/s>>0)-a&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):L(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return D(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return D(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return B(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return B(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!l.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var s=l.isBuffer(e)?e:z(new l(e,r).toString()),a=s.length;for(i=0;i<n-t;++i)this[i+t]=s[i%a]}return this};var F=/[^+\/0-9A-Za-z-_]/g;function U(e){return e<16?"0"+e.toString(16):e.toString(16)}function z(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function $(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(F,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function V(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}},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 s=o.apply(null,n);s&&e.push(s)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var a in n)r.call(n,a)&&n[a]&&e.push(a);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)}()},6012:(e,t,n)=>{"use strict";var r=n(3185),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,s,a,l,u,c=!1;t||(t={}),n=t.debug||!1;try{if(s=r(),a=document.createRange(),l=document.getSelection(),(u=document.createElement("span")).textContent=e,u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.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(u),a.selectNodeContents(u),l.addRange(a),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");c=!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),c=!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(a):l.removeAllRanges()),u&&document.body.removeChild(u),s()}return c}},8898:(e,t)=>{t.read=function(e,t,n,r,o){var i,s,a=8*o-r-1,l=(1<<a)-1,u=l>>1,c=-7,f=n?o-1:0,d=n?-1:1,p=e[t+f];for(f+=d,i=p&(1<<-c)-1,p>>=-c,c+=a;c>0;i=256*i+e[t+f],f+=d,c-=8);for(s=i&(1<<-c)-1,i>>=-c,c+=r;c>0;s=256*s+e[t+f],f+=d,c-=8);if(0===i)i=1-u;else{if(i===l)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,r),i-=u}return(p?-1:1)*s*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var s,a,l,u=8*i-o-1,c=(1<<u)-1,f=c>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),(t+=s+f>=1?d/l:d*Math.pow(2,1-f))*l>=2&&(s++,l/=2),s+f>=c?(a=0,s=c):s+f>=1?(a=(t*l-1)*Math.pow(2,o),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;e[n+p]=255&a,p+=h,a/=256,o-=8);for(s=s<<o|a,u+=o;u>0;e[n+p]=255&s,p+=h,s/=256,u-=8);e[n+p-h]|=128*m}},5182:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},7721:()=>{},1461:()=>{},9086:()=>{},2525: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 s,a,l=o(e),u=1;u<arguments.length;u++){for(var c in s=Object(arguments[u]))n.call(s,c)&&(l[c]=s[c]);if(t){a=t(s);for(var f=0;f<a.length;f++)r.call(s,a[f])&&(l[a[f]]=s[a[f]])}}return l}},7061: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 s(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 a,l=[],u=!1,c=-1;function f(){u&&a&&(u=!1,a.length?l=a.concat(l):c=-1,l.length&&d())}function d(){if(!u){var e=s(f);u=!0;for(var t=l.length;t;){for(a=l,l=[];++c<t;)a&&a[c].run();c=-1,t=l.length}a=null,u=!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||u||s(d)},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}},4218:(e,t,n)=>{"use strict";function r(e){return r="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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var o=a(n(7363)),i=a(n(6012)),s=["text","onCopy","options","children"];function a(e){return e&&e.__esModule?e:{default:e}}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 u(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){v(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 c(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 f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(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 p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return x(e)}function x(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=function(e){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(l,e);var t,n,r,a=h(l);function l(){var e;f(this,l);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return v(x(e=a.call.apply(a,[this].concat(n))),"onClick",(function(t){var n=e.props,r=n.text,s=n.onCopy,a=n.children,l=n.options,u=o.default.Children.only(a),c=(0,i.default)(r,l);s&&s(r,c),u&&u.props&&"function"==typeof u.props.onClick&&u.props.onClick(t)})),e}return t=l,(n=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),n=c(e,s),r=o.default.Children.only(t);return o.default.cloneElement(r,u(u({},n),{},{onClick:this.onClick}))}}])&&d(t.prototype,n),r&&d(t,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(o.default.PureComponent);t.CopyToClipboard=g,v(g,"defaultProps",{onCopy:void 0,options:void 0})},4306:(e,t,n)=>{"use strict";var r=n(4218).CopyToClipboard;r.CopyToClipboard=r,e.exports=r},1426:(e,t,n)=>{"use strict";n(2525);var r=n(7363),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 s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,i={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.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:u,ref:c,props:i,_owner:s.current}}t.jsx=u,t.jsxs=u},4246:(e,t,n)=>{"use strict";e.exports=n(1426)},6248:e=>{var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",a=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 u(e,t,n,r){var o=t&&t.prototype instanceof x?t:x,i=Object.create(o.prototype),s=new O(r||[]);return i._invoke=function(e,t,n){var r=f;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return P()}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var a=_(s,n);if(a){if(a===m)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var l=c(e,t,n);if("normal"===l.type){if(r=n.done?h:d,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,s),i}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f="suspendedStart",d="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(A([])));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 E(e,t){function n(o,i,s,a){var l=c(e[o],e,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,s,a)}),(function(e){n("throw",e,s,a)})):t.resolve(f).then((function(e){u.value=e,s(u)}),(function(e){return n("throw",e,s,a)}))}a(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 _(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,_(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=c(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 S(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 C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function A(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,s=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 s.next=s}}return{next:P}}function P(){return{value:t,done:!0}}return y.prototype=v,l(j,"constructor",v),l(v,"constructor",y),y.displayName=l(v,a,"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,a,"GeneratorFunction")),e.prototype=Object.create(j),e},e.awrap=function(e){return{__await:e}},k(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var s=new E(u(t,n,r,o),i);return e.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},k(j),l(j,a,"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=A,O.prototype={constructor:O,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(C),!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 a.type="throw",a.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var s=this.tryEntries[i],a=s.completion;if("root"===s.tryLoc)return o("end");if(s.tryLoc<=this.prev){var l=r.call(s,"catchLoc"),u=r.call(s,"finallyLoc");if(l&&u){if(this.prev<s.catchLoc)return o(s.catchLoc,!0);if(this.prev<s.finallyLoc)return o(s.finallyLoc)}else if(l){if(this.prev<s.catchLoc)return o(s.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return o(s.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 s=i?i.completion:{};return s.type=e,s.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(s)},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),C(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;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:A(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)}},3185: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()}}},7363: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 s=1/0;for(c=0;c<e.length;c++){for(var[n,o,i]=e[c],a=!0,l=0;l<n.length;l++)(!1&i||s>=i)&&Object.keys(r.O).every((e=>r.O[e](n[l])))?n.splice(l--,1):(a=!1,i<s&&(s=i));if(a){e.splice(c--,1);var u=o();void 0!==u&&(t=u)}}return t}i=i||0;for(var c=e.length;c>0&&e[c-1][2]>i;c--)e[c]=e[c-1];e[c]=[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.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={76:0,885:0,394:0,786:0};r.O.j=t=>0===e[t];var t=(t,n)=>{var o,i,[s,a,l]=n,u=0;if(s.some((t=>0!==e[t]))){for(o in a)r.o(a,o)&&(r.m[o]=a[o]);if(l)var c=l(r)}for(t&&t(n);u<s.length;u++)i=s[u],r.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return r.O(c)},n=self.webpackChunk=self.webpackChunk||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),r.O(void 0,[885,394,786],(()=>r(4330))),r.O(void 0,[885,394,786],(()=>r(7721))),r.O(void 0,[885,394,786],(()=>r(1461)));var o=r.O(void 0,[885,394,786],(()=>r(9086)));o=r.O(o)})();
|
extendify-sdk/public/build/extendify.js.LICENSE.txt
CHANGED
@@ -10,6 +10,15 @@ object-assign
|
|
10 |
http://jedwatson.github.io/classnames
|
11 |
*/
|
12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
/** @license React v17.0.2
|
14 |
* react-jsx-runtime.production.min.js
|
15 |
*
|
10 |
http://jedwatson.github.io/classnames
|
11 |
*/
|
12 |
|
13 |
+
/*!
|
14 |
+
* The buffer module from node.js, for the browser.
|
15 |
+
*
|
16 |
+
* @author Feross Aboukhadijeh <http://feross.org>
|
17 |
+
* @license MIT
|
18 |
+
*/
|
19 |
+
|
20 |
+
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
21 |
+
|
22 |
/** @license React v17.0.2
|
23 |
* react-jsx-runtime.production.min.js
|
24 |
*
|
extendify-sdk/readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: extendify, richtabor, kbat82, clubkert, arturgrabo
|
|
3 |
Tags: templates, patterns, layouts, blocks, gutenberg
|
4 |
Requires at least: 5.4
|
5 |
Tested up to: 6.0
|
6 |
-
Stable tag: 0.8.
|
7 |
Requires PHP: 5.6
|
8 |
License: GPLv2
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
@@ -124,6 +124,13 @@ Nope! Extendify imports lightweight block-based content that is served directly
|
|
124 |
|
125 |
== Changelog ==
|
126 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
127 |
= 0.8.1 - 2022-05-11 =
|
128 |
- Remove forced full width on older themes
|
129 |
- Added title tooltips to site type selector
|
3 |
Tags: templates, patterns, layouts, blocks, gutenberg
|
4 |
Requires at least: 5.4
|
5 |
Tested up to: 6.0
|
6 |
+
Stable tag: 0.8.3
|
7 |
Requires PHP: 5.6
|
8 |
License: GPLv2
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
124 |
|
125 |
== Changelog ==
|
126 |
|
127 |
+
= 0.8.3 - 2022-06-09 =
|
128 |
+
- Add API language support
|
129 |
+
- Various bug fixes and updates
|
130 |
+
|
131 |
+
= 0.8.2 - 2022-05-26 =
|
132 |
+
- Various bug fixes and updates
|
133 |
+
|
134 |
= 0.8.1 - 2022-05-11 =
|
135 |
- Remove forced full width on older themes
|
136 |
- Added title tooltips to site type selector
|
extendify-sdk/routes/api.php
CHANGED
@@ -7,15 +7,18 @@ if (!defined('ABSPATH')) {
|
|
7 |
die('No direct access.');
|
8 |
}
|
9 |
|
10 |
-
use Extendify\
|
11 |
use Extendify\Library\Controllers\AuthController;
|
12 |
use Extendify\Library\Controllers\MetaController;
|
13 |
use Extendify\Library\Controllers\PingController;
|
14 |
use Extendify\Library\Controllers\UserController;
|
|
|
15 |
use Extendify\Library\Controllers\PluginController;
|
16 |
-
use Extendify\
|
17 |
use Extendify\Library\Controllers\TaxonomyController;
|
18 |
use Extendify\Library\Controllers\TemplateController;
|
|
|
|
|
19 |
|
20 |
\add_action(
|
21 |
'rest_api_init',
|
@@ -45,5 +48,22 @@ use Extendify\Library\Controllers\TemplateController;
|
|
45 |
|
46 |
ApiRouter::get('/site-settings', [SiteSettingsController::class, 'show']);
|
47 |
ApiRouter::post('/site-settings', [SiteSettingsController::class, 'store']);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
}
|
49 |
);
|
7 |
die('No direct access.');
|
8 |
}
|
9 |
|
10 |
+
use Extendify\ApiRouter;
|
11 |
use Extendify\Library\Controllers\AuthController;
|
12 |
use Extendify\Library\Controllers\MetaController;
|
13 |
use Extendify\Library\Controllers\PingController;
|
14 |
use Extendify\Library\Controllers\UserController;
|
15 |
+
use Extendify\Onboarding\Controllers\WPController;
|
16 |
use Extendify\Library\Controllers\PluginController;
|
17 |
+
use Extendify\Onboarding\Controllers\DataController;
|
18 |
use Extendify\Library\Controllers\TaxonomyController;
|
19 |
use Extendify\Library\Controllers\TemplateController;
|
20 |
+
use Extendify\Onboarding\Controllers\LibraryController;
|
21 |
+
use Extendify\Library\Controllers\SiteSettingsController;
|
22 |
|
23 |
\add_action(
|
24 |
'rest_api_init',
|
48 |
|
49 |
ApiRouter::get('/site-settings', [SiteSettingsController::class, 'show']);
|
50 |
ApiRouter::post('/site-settings', [SiteSettingsController::class, 'store']);
|
51 |
+
|
52 |
+
// Onboarding.
|
53 |
+
ApiRouter::post('/onboarding/options', [WPController::class, 'updateOption']);
|
54 |
+
ApiRouter::get('/onboarding/options', [WPController::class, 'getOption']);
|
55 |
+
ApiRouter::post('/onboarding/save-theme-json', [WPController::class, 'saveThemeJson']);
|
56 |
+
ApiRouter::post('/onboarding/parse-theme-json', [WPController::class, 'parseThemeJson']);
|
57 |
+
|
58 |
+
ApiRouter::get('/onboarding/site-types', [DataController::class, 'getSiteTypes']);
|
59 |
+
ApiRouter::get('/onboarding/styles', [DataController::class, 'getStyles']);
|
60 |
+
ApiRouter::get('/onboarding/layout-types', [DataController::class, 'getLayoutTypes']);
|
61 |
+
ApiRouter::get('/onboarding/goals', [DataController::class, 'getGoals']);
|
62 |
+
ApiRouter::get('/onboarding/suggested-plugins', [DataController::class, 'getSuggestedPlugins']);
|
63 |
+
ApiRouter::get('/onboarding/template', [DataController::class, 'getTemplate']);
|
64 |
+
ApiRouter::post('/onboarding/orders', [DataController::class, 'createOrder']);
|
65 |
+
|
66 |
+
// TODO: consider merging this route into the library.
|
67 |
+
ApiRouter::post('/library/site-type', [LibraryController::class, 'updateSiteType']);
|
68 |
}
|
69 |
);
|
extendify-sdk/src/{ExtendifyLibrary.js → Library/ExtendifyLibrary.js}
RENAMED
@@ -1,10 +1,10 @@
|
|
1 |
import { useEffect, useCallback } from '@wordpress/element'
|
2 |
-
import { General as GeneralApi } from '@
|
3 |
-
import MainWindow from '@
|
4 |
-
import { useGlobalStore } from '@
|
5 |
-
import { useTemplatesStore } from '@
|
6 |
-
import { useUserStore } from '@
|
7 |
-
import '@
|
8 |
import { useTaxonomyStore } from './state/Taxonomies'
|
9 |
|
10 |
export default function ExtendifyLibrary({ show = false }) {
|
@@ -56,6 +56,7 @@ export default function ExtendifyLibrary({ show = false }) {
|
|
56 |
}, [])
|
57 |
|
58 |
// Let the visibility to be controlled from outside the application
|
|
|
59 |
useEffect(() => {
|
60 |
window.addEventListener('extendify::open-library', showLibrary)
|
61 |
window.addEventListener('extendify::close-library', hideLibrary)
|
1 |
import { useEffect, useCallback } from '@wordpress/element'
|
2 |
+
import { General as GeneralApi } from '@library/api/General'
|
3 |
+
import MainWindow from '@library/pages/MainWindow'
|
4 |
+
import { useGlobalStore } from '@library/state/GlobalState'
|
5 |
+
import { useTemplatesStore } from '@library/state/Templates'
|
6 |
+
import { useUserStore } from '@library/state/User'
|
7 |
+
import '@library/utility-control'
|
8 |
import { useTaxonomyStore } from './state/Taxonomies'
|
9 |
|
10 |
export default function ExtendifyLibrary({ show = false }) {
|
56 |
}, [])
|
57 |
|
58 |
// Let the visibility to be controlled from outside the application
|
59 |
+
// e.g. from the main button in the toolbar.
|
60 |
useEffect(() => {
|
61 |
window.addEventListener('extendify::open-library', showLibrary)
|
62 |
window.addEventListener('extendify::close-library', hideLibrary)
|
extendify-sdk/src/{api → Library/api}/General.js
RENAMED
@@ -1,5 +1,5 @@
|
|
1 |
-
import { useTemplatesStore } from '@
|
2 |
-
import { useUserStore } from '@
|
3 |
import { Axios as api } from './axios'
|
4 |
|
5 |
export const General = {
|
1 |
+
import { useTemplatesStore } from '@library/state/Templates'
|
2 |
+
import { useUserStore } from '@library/state/User'
|
3 |
import { Axios as api } from './axios'
|
4 |
|
5 |
export const General = {
|
extendify-sdk/src/{api → Library/api}/Plugins.js
RENAMED
File without changes
|
extendify-sdk/src/{api → Library/api}/SiteSettings.js
RENAMED
File without changes
|
extendify-sdk/src/{api → Library/api}/Taxonomies.js
RENAMED
File without changes
|
extendify-sdk/src/{api → Library/api}/Templates.js
RENAMED
@@ -1,5 +1,5 @@
|
|
1 |
-
import { useTemplatesStore } from '@
|
2 |
-
import { useUserStore } from '@
|
3 |
import { Axios as api } from './axios'
|
4 |
|
5 |
let count = 0
|
1 |
+
import { useTemplatesStore } from '@library/state/Templates'
|
2 |
+
import { useUserStore } from '@library/state/User'
|
3 |
import { Axios as api } from './axios'
|
4 |
|
5 |
let count = 0
|
extendify-sdk/src/{api → Library/api}/User.js
RENAMED
File without changes
|
extendify-sdk/src/{api → Library/api}/axios.js
RENAMED
@@ -1,11 +1,12 @@
|
|
1 |
import axios from 'axios'
|
2 |
-
import { useUserStore } from '@
|
3 |
|
4 |
const Axios = axios.create({
|
5 |
baseURL: window.extendifyData.root,
|
6 |
headers: {
|
7 |
'X-WP-Nonce': window.extendifyData.nonce,
|
8 |
'X-Requested-With': 'XMLHttpRequest',
|
|
|
9 |
'X-Extendify': true,
|
10 |
},
|
11 |
})
|
@@ -64,7 +65,6 @@ Axios.interceptors.response.use(
|
|
64 |
(error) => handleErrors(error),
|
65 |
)
|
66 |
|
67 |
-
// TODO: setup a pipe function instead of this nested pattern
|
68 |
Axios.interceptors.request.use(
|
69 |
(request) => checkDevMode(addDefaults(request)),
|
70 |
(error) => error,
|
1 |
import axios from 'axios'
|
2 |
+
import { useUserStore } from '@library/state/User'
|
3 |
|
4 |
const Axios = axios.create({
|
5 |
baseURL: window.extendifyData.root,
|
6 |
headers: {
|
7 |
'X-WP-Nonce': window.extendifyData.nonce,
|
8 |
'X-Requested-With': 'XMLHttpRequest',
|
9 |
+
'X-Extendify-Library': true,
|
10 |
'X-Extendify': true,
|
11 |
},
|
12 |
})
|
65 |
(error) => handleErrors(error),
|
66 |
)
|
67 |
|
|
|
68 |
Axios.interceptors.request.use(
|
69 |
(request) => checkDevMode(addDefaults(request)),
|
70 |
(error) => error,
|
extendify-sdk/src/{app.css → Library/app.css}
RENAMED
@@ -41,7 +41,7 @@ div.extendify button.extendify-skip-to-sr-link:focus {
|
|
41 |
|
42 |
/* WP tweaks and overrides */
|
43 |
.extendify .components-panel__body > .components-panel__body-title {
|
44 |
-
/* Override WP aggressive
|
45 |
border-bottom: 1px solid #e0e0e0 !important;
|
46 |
@apply bg-transparent;
|
47 |
}
|
41 |
|
42 |
/* WP tweaks and overrides */
|
43 |
.extendify .components-panel__body > .components-panel__body-title {
|
44 |
+
/* Override WP aggressive border:none and border:0 */
|
45 |
border-bottom: 1px solid #e0e0e0 !important;
|
46 |
@apply bg-transparent;
|
47 |
}
|
extendify-sdk/src/{app.js → Library/app.js}
RENAMED
@@ -1,11 +1,11 @@
|
|
1 |
import { rawHandler } from '@wordpress/blocks'
|
2 |
import { render } from '@wordpress/element'
|
3 |
-
import ExtendifyLibrary from '@
|
4 |
-
import '@
|
5 |
-
import '@
|
6 |
-
import '@
|
7 |
-
import { useWantedTemplateStore } from '@
|
8 |
-
import { injectTemplateBlocks } from '@
|
9 |
|
10 |
window?.wp?.domReady(() => {
|
11 |
// Insert into the editor (note: Modal opens in a portal)
|
1 |
import { rawHandler } from '@wordpress/blocks'
|
2 |
import { render } from '@wordpress/element'
|
3 |
+
import ExtendifyLibrary from '@library/ExtendifyLibrary'
|
4 |
+
import '@library/blocks/blocks'
|
5 |
+
import '@library/buttons'
|
6 |
+
import '@library/listeners'
|
7 |
+
import { useWantedTemplateStore } from '@library/state/Importing'
|
8 |
+
import { injectTemplateBlocks } from '@library/util/templateInjection'
|
9 |
|
10 |
window?.wp?.domReady(() => {
|
11 |
// Insert into the editor (note: Modal opens in a portal)
|
extendify-sdk/src/{blocks → Library/blocks}/block-category.js
RENAMED
@@ -4,7 +4,7 @@
|
|
4 |
import { registerBlockCollection, setCategories } from '@wordpress/blocks'
|
5 |
import { Icon } from '@wordpress/components'
|
6 |
import { select } from '@wordpress/data'
|
7 |
-
import { brandBlockIcon } from '@
|
8 |
|
9 |
/**
|
10 |
* Register the 'Extendify' block category.
|
4 |
import { registerBlockCollection, setCategories } from '@wordpress/blocks'
|
5 |
import { Icon } from '@wordpress/components'
|
6 |
import { select } from '@wordpress/data'
|
7 |
+
import { brandBlockIcon } from '@library/components/icons'
|
8 |
|
9 |
/**
|
10 |
* Register the 'Extendify' block category.
|
extendify-sdk/src/{blocks → Library/blocks}/blocks.js
RENAMED
File without changes
|
extendify-sdk/src/{blocks → Library/blocks}/library/block.js
RENAMED
@@ -11,8 +11,8 @@ import {
|
|
11 |
cover,
|
12 |
overlayText,
|
13 |
} from '@wordpress/icons'
|
14 |
-
import { brandBlockIcon } from '@
|
15 |
-
import { setModalVisibility } from '@
|
16 |
import metadata from './block.json'
|
17 |
|
18 |
export const openModal = (source) => setModalVisibility(source, 'open')
|
11 |
cover,
|
12 |
overlayText,
|
13 |
} from '@wordpress/icons'
|
14 |
+
import { brandBlockIcon } from '@library/components/icons'
|
15 |
+
import { setModalVisibility } from '@library/util/general'
|
16 |
import metadata from './block.json'
|
17 |
|
18 |
export const openModal = (source) => setModalVisibility(source, 'open')
|
extendify-sdk/src/{blocks → Library/blocks}/library/block.json
RENAMED
File without changes
|
extendify-sdk/src/{buttons.js → Library/buttons.js}
RENAMED
@@ -3,9 +3,9 @@ import { render } from '@wordpress/element'
|
|
3 |
import { __ } from '@wordpress/i18n'
|
4 |
import { Icon } from '@wordpress/icons'
|
5 |
import { registerPlugin } from '@wordpress/plugins'
|
6 |
-
import LibraryAccessModal from '@
|
7 |
-
import { CtaButton, MainButtonWrapper } from '@
|
8 |
-
import { brandMark } from '@
|
9 |
|
10 |
const userState = window.extendifyData?.user?.state
|
11 |
const isAdmin = () => window.extendifyData.user === null || userState?.isAdmin
|
3 |
import { __ } from '@wordpress/i18n'
|
4 |
import { Icon } from '@wordpress/icons'
|
5 |
import { registerPlugin } from '@wordpress/plugins'
|
6 |
+
import LibraryAccessModal from '@library/components/LibraryAccessModal'
|
7 |
+
import { CtaButton, MainButtonWrapper } from '@library/components/MainButtons'
|
8 |
+
import { brandMark } from '@library/components/icons/'
|
9 |
|
10 |
const userState = window.extendifyData?.user?.state
|
11 |
const isAdmin = () => window.extendifyData.user === null || userState?.isAdmin
|
extendify-sdk/src/{components → Library/components}/DevHelpers.js
RENAMED
File without changes
|
extendify-sdk/src/{components → Library/components}/ImportCounter.js
RENAMED
@@ -3,9 +3,9 @@ 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 '@
|
7 |
-
import { User as UserApi } from '@
|
8 |
-
import { useUserStore } from '@
|
9 |
import { growthArrow } from './icons'
|
10 |
import { alert, download } from './icons/'
|
11 |
|
3 |
import { __, _n, sprintf } from '@wordpress/i18n'
|
4 |
import { Icon } from '@wordpress/icons'
|
5 |
import clasNames from 'classnames'
|
6 |
+
import { General } from '@library/api/General'
|
7 |
+
import { User as UserApi } from '@library/api/User'
|
8 |
+
import { useUserStore } from '@library/state/User'
|
9 |
import { growthArrow } from './icons'
|
10 |
import { alert, download } from './icons/'
|
11 |
|
extendify-sdk/src/{components → Library/components}/ImportTemplateBlock.js
RENAMED
@@ -3,12 +3,12 @@ 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 '@
|
7 |
-
import { useIsDevMode } from '@
|
8 |
-
import { AuthorizationCheck, Middleware } from '@
|
9 |
-
import { useGlobalStore } from '@
|
10 |
-
import { useUserStore } from '@
|
11 |
-
import { injectTemplateBlocks } from '@
|
12 |
import { DevButtonOverlay } from './DevHelpers'
|
13 |
import { NoImportModal } from './modals/NoImportModal'
|
14 |
import { ProModal } from './modals/ProModal'
|
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 '@library/api/Templates'
|
7 |
+
import { useIsDevMode } from '@library/hooks/helpers'
|
8 |
+
import { AuthorizationCheck, Middleware } from '@library/middleware'
|
9 |
+
import { useGlobalStore } from '@library/state/GlobalState'
|
10 |
+
import { useUserStore } from '@library/state/User'
|
11 |
+
import { injectTemplateBlocks } from '@library/util/templateInjection'
|
12 |
import { DevButtonOverlay } from './DevHelpers'
|
13 |
import { NoImportModal } from './modals/NoImportModal'
|
14 |
import { ProModal } from './modals/ProModal'
|
extendify-sdk/src/{components → Library/components}/LibraryAccessModal.js
RENAMED
@@ -3,8 +3,8 @@ import { ToggleControl } from '@wordpress/components'
|
|
3 |
import { useSelect } from '@wordpress/data'
|
4 |
import { unmountComponentAtNode, useState, useEffect } from '@wordpress/element'
|
5 |
import { __ } from '@wordpress/i18n'
|
6 |
-
import { useSiteSettingsStore } from '@
|
7 |
-
import { useUserStore } from '@
|
8 |
|
9 |
const LibraryAccessModal = () => {
|
10 |
const isAdmin = useSelect((select) =>
|
3 |
import { useSelect } from '@wordpress/data'
|
4 |
import { unmountComponentAtNode, useState, useEffect } from '@wordpress/element'
|
5 |
import { __ } from '@wordpress/i18n'
|
6 |
+
import { useSiteSettingsStore } from '@library/state/SiteSettings'
|
7 |
+
import { useUserStore } from '@library/state/User'
|
8 |
|
9 |
const LibraryAccessModal = () => {
|
10 |
const isAdmin = useSelect((select) =>
|
extendify-sdk/src/{components → Library/components}/MainButtons.js
RENAMED
@@ -2,11 +2,11 @@ import { Button } from '@wordpress/components'
|
|
2 |
import { useState, useEffect, useRef } from '@wordpress/element'
|
3 |
import { __ } from '@wordpress/i18n'
|
4 |
import { Icon } from '@wordpress/icons'
|
5 |
-
import { General } from '@
|
6 |
-
import { useTestGroup } from '@
|
7 |
-
import { useGlobalStore } from '@
|
8 |
-
import { useUserStore } from '@
|
9 |
-
import { openModal } from '@
|
10 |
import { brandMark } from './icons'
|
11 |
import { NewImportsPopover } from './popovers/NewImportsPopover'
|
12 |
|
2 |
import { useState, useEffect, useRef } from '@wordpress/element'
|
3 |
import { __ } from '@wordpress/i18n'
|
4 |
import { Icon } from '@wordpress/icons'
|
5 |
+
import { General } from '@library/api/General'
|
6 |
+
import { useTestGroup } from '@library/hooks/useTestGroup'
|
7 |
+
import { useGlobalStore } from '@library/state/GlobalState'
|
8 |
+
import { useUserStore } from '@library/state/User'
|
9 |
+
import { openModal } from '@library/util/general'
|
10 |
import { brandMark } from './icons'
|
11 |
import { NewImportsPopover } from './popovers/NewImportsPopover'
|
12 |
|
extendify-sdk/src/{components → Library/components}/SiteTypeSelector.js
RENAMED
@@ -2,7 +2,7 @@ import { useEffect, useState, useRef, useMemo } from '@wordpress/element'
|
|
2 |
import { __ } from '@wordpress/i18n'
|
3 |
import classNames from 'classnames'
|
4 |
import Fuse from 'fuse.js'
|
5 |
-
import { useTemplatesStore } from '@
|
6 |
|
7 |
const searchMemo = new Map()
|
8 |
|
2 |
import { __ } from '@wordpress/i18n'
|
3 |
import classNames from 'classnames'
|
4 |
import Fuse from 'fuse.js'
|
5 |
+
import { useTemplatesStore } from '@library/state/Templates'
|
6 |
|
7 |
const searchMemo = new Map()
|
8 |
|
extendify-sdk/src/{components → Library/components}/TaxonomySection.js
RENAMED
@@ -1,14 +1,14 @@
|
|
1 |
import { PanelBody, PanelRow } from '@wordpress/components'
|
2 |
import classNames from 'classnames'
|
3 |
-
import { useTemplatesStore } from '@
|
4 |
-
import { getTaxonomyName } from '@
|
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(
|
1 |
import { PanelBody, PanelRow } from '@wordpress/components'
|
2 |
import classNames from 'classnames'
|
3 |
+
import { useTemplatesStore } from '@library/state/Templates'
|
4 |
+
import { getTaxonomyName } from '@library/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 bg-transparent"
|
12 |
onClick={update}>
|
13 |
<span
|
14 |
className={classNames(
|
extendify-sdk/src/{components → Library/components}/TypeSelect.js
RENAMED
@@ -1,7 +1,7 @@
|
|
1 |
import { __ } from '@wordpress/i18n'
|
2 |
import classNames from 'classnames'
|
3 |
-
import { useGlobalStore } from '@
|
4 |
-
import { useTemplatesStore } from '@
|
5 |
|
6 |
export const TypeSelect = ({ className }) => {
|
7 |
const updateType = useTemplatesStore((state) => state.updateType)
|
1 |
import { __ } from '@wordpress/i18n'
|
2 |
import classNames from 'classnames'
|
3 |
+
import { useGlobalStore } from '@library/state/GlobalState'
|
4 |
+
import { useTemplatesStore } from '@library/state/Templates'
|
5 |
|
6 |
export const TypeSelect = ({ className }) => {
|
7 |
const updateType = useTemplatesStore((state) => state.updateType)
|
extendify-sdk/src/{components → Library/components}/icons/index.js
RENAMED
File without changes
|
extendify-sdk/src/{components → Library/components}/icons/library/alert.js
RENAMED
File without changes
|
extendify-sdk/src/{components → Library/components}/icons/library/brand-block-icon.js
RENAMED
File without changes
|
extendify-sdk/src/{components → Library/components}/icons/library/brand-logo.js
RENAMED
File without changes
|
extendify-sdk/src/{components → Library/components}/icons/library/brand-mark.js
RENAMED
File without changes
|
extendify-sdk/src/{components → Library/components}/icons/library/diamond.js
RENAMED
File without changes
|
extendify-sdk/src/{components → Library/components}/icons/library/download.js
RENAMED
File without changes
|
extendify-sdk/src/{components → Library/components}/icons/library/download2.js
RENAMED
File without changes
|
extendify-sdk/src/{components → Library/components}/icons/library/featured.js
RENAMED
File without changes
|
extendify-sdk/src/{components → Library/components}/icons/library/growth-arrow.js
RENAMED
File without changes
|
extendify-sdk/src/{components → Library/components}/icons/library/layouts.js
RENAMED
File without changes
|
extendify-sdk/src/{components → Library/components}/icons/library/patterns.js
RENAMED
File without changes
|
extendify-sdk/src/{components → Library/components}/icons/library/star.js
RENAMED
File without changes
|
extendify-sdk/src/{components → Library/components}/icons/library/success.js
RENAMED
File without changes
|
extendify-sdk/src/{components → Library/components}/icons/library/support.js
RENAMED
File without changes
|
extendify-sdk/src/{components → Library/components}/icons/library/user.js
RENAMED
File without changes
|
extendify-sdk/src/{components → Library/components}/modals/InstallStandaloneModal.js
RENAMED
@@ -2,11 +2,11 @@ import { Icon } from '@wordpress/components'
|
|
2 |
import { safeHTML } from '@wordpress/dom'
|
3 |
import { useState, useRef } from '@wordpress/element'
|
4 |
import { __, sprintf } from '@wordpress/i18n'
|
5 |
-
import { General } from '@
|
6 |
-
import { Plugins } from '@
|
7 |
-
import { download2, brandLogo } from '@
|
8 |
-
import { useGlobalStore } from '@
|
9 |
-
import { useUserStore } from '@
|
10 |
import { SplitModal } from './SplitModal'
|
11 |
|
12 |
export const InstallStandaloneModal = () => {
|
@@ -93,7 +93,7 @@ export const InstallStandaloneModal = () => {
|
|
93 |
<div className="flex w-full justify-end rounded-tr-sm rounded-br-sm bg-extendify-secondary">
|
94 |
<img
|
95 |
alt={__('Upgrade Now', 'extendify')}
|
96 |
-
className="
|
97 |
src={
|
98 |
window.extendifyData.asset_path +
|
99 |
'/modal-extendify-purple.png'
|
2 |
import { safeHTML } from '@wordpress/dom'
|
3 |
import { useState, useRef } from '@wordpress/element'
|
4 |
import { __, sprintf } from '@wordpress/i18n'
|
5 |
+
import { General } from '@library/api/General'
|
6 |
+
import { Plugins } from '@library/api/Plugins'
|
7 |
+
import { download2, brandLogo } from '@library/components/icons'
|
8 |
+
import { useGlobalStore } from '@library/state/GlobalState'
|
9 |
+
import { useUserStore } from '@library/state/User'
|
10 |
import { SplitModal } from './SplitModal'
|
11 |
|
12 |
export const InstallStandaloneModal = () => {
|
93 |
<div className="flex w-full justify-end rounded-tr-sm rounded-br-sm bg-extendify-secondary">
|
94 |
<img
|
95 |
alt={__('Upgrade Now', 'extendify')}
|
96 |
+
className="rounded-br-sm max-w-full rounded-tr-sm"
|
97 |
src={
|
98 |
window.extendifyData.asset_path +
|
99 |
'/modal-extendify-purple.png'
|
extendify-sdk/src/{components → Library/components}/modals/Modal.js
RENAMED
@@ -3,7 +3,7 @@ import { Fragment, useRef, forwardRef } from '@wordpress/element'
|
|
3 |
import { __ } from '@wordpress/i18n'
|
4 |
import { Icon, close } from '@wordpress/icons'
|
5 |
import { Dialog, Transition } from '@headlessui/react'
|
6 |
-
import { useGlobalStore } from '@
|
7 |
|
8 |
export const Modal = forwardRef(
|
9 |
({ isOpen, heading, onClose, children }, initialFocus) => {
|
3 |
import { __ } from '@wordpress/i18n'
|
4 |
import { Icon, close } from '@wordpress/icons'
|
5 |
import { Dialog, Transition } from '@headlessui/react'
|
6 |
+
import { useGlobalStore } from '@library/state/GlobalState'
|
7 |
|
8 |
export const Modal = forwardRef(
|
9 |
({ isOpen, heading, onClose, children }, initialFocus) => {
|
extendify-sdk/src/{components → Library/components}/modals/NoImportModal.js
RENAMED
@@ -2,9 +2,9 @@ import { Icon } from '@wordpress/components'
|
|
2 |
import { Button } from '@wordpress/components'
|
3 |
import { useRef } from '@wordpress/element'
|
4 |
import { __ } from '@wordpress/i18n'
|
5 |
-
import { General } from '@
|
6 |
-
import { useGlobalStore } from '@
|
7 |
-
import { useUserStore } from '@
|
8 |
import {
|
9 |
growthArrow,
|
10 |
patterns,
|
2 |
import { Button } from '@wordpress/components'
|
3 |
import { useRef } from '@wordpress/element'
|
4 |
import { __ } from '@wordpress/i18n'
|
5 |
+
import { General } from '@library/api/General'
|
6 |
+
import { useGlobalStore } from '@library/state/GlobalState'
|
7 |
+
import { useUserStore } from '@library/state/User'
|
8 |
import {
|
9 |
growthArrow,
|
10 |
patterns,
|
extendify-sdk/src/{components → Library/components}/modals/ProModal.js
RENAMED
@@ -1,9 +1,9 @@
|
|
1 |
import { Icon } from '@wordpress/components'
|
2 |
import { useRef } from '@wordpress/element'
|
3 |
import { __ } from '@wordpress/i18n'
|
4 |
-
import { General } from '@
|
5 |
-
import { growthArrow, brandLogo } from '@
|
6 |
-
import { useUserStore } from '@
|
7 |
import { SplitModal } from './SplitModal'
|
8 |
|
9 |
export const ProModal = () => {
|
1 |
import { Icon } from '@wordpress/components'
|
2 |
import { useRef } from '@wordpress/element'
|
3 |
import { __ } from '@wordpress/i18n'
|
4 |
+
import { General } from '@library/api/General'
|
5 |
+
import { growthArrow, brandLogo } from '@library/components/icons'
|
6 |
+
import { useUserStore } from '@library/state/User'
|
7 |
import { SplitModal } from './SplitModal'
|
8 |
|
9 |
export const ProModal = () => {
|
extendify-sdk/src/{components → Library/components}/modals/SplitModal.js
RENAMED
@@ -2,7 +2,7 @@ import { Fragment, forwardRef, useRef } from '@wordpress/element'
|
|
2 |
import { __ } from '@wordpress/i18n'
|
3 |
import { Icon, close } from '@wordpress/icons'
|
4 |
import { Dialog, Transition } from '@headlessui/react'
|
5 |
-
import { useGlobalStore } from '@
|
6 |
|
7 |
export const SplitModal = forwardRef(
|
8 |
(
|
2 |
import { __ } from '@wordpress/i18n'
|
3 |
import { Icon, close } from '@wordpress/icons'
|
4 |
import { Dialog, Transition } from '@headlessui/react'
|
5 |
+
import { useGlobalStore } from '@library/state/GlobalState'
|
6 |
|
7 |
export const SplitModal = forwardRef(
|
8 |
(
|
extendify-sdk/src/{components → Library/components}/modals/settings/DevSettings.js
RENAMED
@@ -1,10 +1,10 @@
|
|
1 |
import { Button } from '@wordpress/components'
|
2 |
import { useState } from '@wordpress/element'
|
3 |
-
import { useIsDevMode } from '@
|
4 |
-
import { useGlobalStore } from '@
|
5 |
-
import { useTaxonomyStore } from '@
|
6 |
-
import { useTemplatesStore } from '@
|
7 |
-
import { useUserStore } from '@
|
8 |
|
9 |
export const DevSettings = () => {
|
10 |
const [processing, setProcessing] = useState(false)
|
1 |
import { Button } from '@wordpress/components'
|
2 |
import { useState } from '@wordpress/element'
|
3 |
+
import { useIsDevMode } from '@library/hooks/helpers'
|
4 |
+
import { useGlobalStore } from '@library/state/GlobalState'
|
5 |
+
import { useTaxonomyStore } from '@library/state/Taxonomies'
|
6 |
+
import { useTemplatesStore } from '@library/state/Templates'
|
7 |
+
import { useUserStore } from '@library/state/User'
|
8 |
|
9 |
export const DevSettings = () => {
|
10 |
const [processing, setProcessing] = useState(false)
|
extendify-sdk/src/{components → Library/components}/modals/settings/LoginInterface.js
RENAMED
@@ -3,10 +3,10 @@ import { useState, useEffect, useRef } from '@wordpress/element'
|
|
3 |
import { __ } from '@wordpress/i18n'
|
4 |
import { Icon } from '@wordpress/icons'
|
5 |
import classNames from 'classnames'
|
6 |
-
import { General } from '@
|
7 |
-
import { User as UserApi } from '@
|
8 |
-
import { useIsDevMode } from '@
|
9 |
-
import { useUserStore } from '@
|
10 |
import { user } from '../../icons'
|
11 |
import { success as successIcon } from '../../icons'
|
12 |
|
3 |
import { __ } from '@wordpress/i18n'
|
4 |
import { Icon } from '@wordpress/icons'
|
5 |
import classNames from 'classnames'
|
6 |
+
import { General } from '@library/api/General'
|
7 |
+
import { User as UserApi } from '@library/api/User'
|
8 |
+
import { useIsDevMode } from '@library/hooks/helpers'
|
9 |
+
import { useUserStore } from '@library/state/User'
|
10 |
import { user } from '../../icons'
|
11 |
import { success as successIcon } from '../../icons'
|
12 |
|
extendify-sdk/src/{components → Library/components}/modals/settings/SettingsModal.js
RENAMED
@@ -1,6 +1,6 @@
|
|
1 |
import { useRef } from '@wordpress/element'
|
2 |
import { __ } from '@wordpress/i18n'
|
3 |
-
import { useGlobalStore } from '@
|
4 |
import { Modal } from '../Modal'
|
5 |
import { DevSettings } from './DevSettings'
|
6 |
import LoginInterface from './LoginInterface'
|
1 |
import { useRef } from '@wordpress/element'
|
2 |
import { __ } from '@wordpress/i18n'
|
3 |
+
import { useGlobalStore } from '@library/state/GlobalState'
|
4 |
import { Modal } from '../Modal'
|
5 |
import { DevSettings } from './DevSettings'
|
6 |
import LoginInterface from './LoginInterface'
|
extendify-sdk/src/{components → Library/components}/notices/FeedbackNotice.js
RENAMED
@@ -1,7 +1,7 @@
|
|
1 |
import { Button } from '@wordpress/components'
|
2 |
import { __ } from '@wordpress/i18n'
|
3 |
-
import { General } from '@
|
4 |
-
import { useUserStore } from '@
|
5 |
|
6 |
export default function FeedbackNotice() {
|
7 |
return (
|
1 |
import { Button } from '@wordpress/components'
|
2 |
import { __ } from '@wordpress/i18n'
|
3 |
+
import { General } from '@library/api/General'
|
4 |
+
import { useUserStore } from '@library/state/User'
|
5 |
|
6 |
export default function FeedbackNotice() {
|
7 |
return (
|
extendify-sdk/src/{components → Library/components}/notices/FooterNotice.js
RENAMED
@@ -2,9 +2,9 @@ import { Button } from '@wordpress/components'
|
|
2 |
import { useState, useEffect, useRef } from '@wordpress/element'
|
3 |
import { __ } from '@wordpress/i18n'
|
4 |
import { Icon, closeSmall } from '@wordpress/icons'
|
5 |
-
import { General } from '@
|
6 |
-
import { useGlobalStore } from '@
|
7 |
-
import { useUserStore } from '@
|
8 |
import FeedbackNotice from './FeedbackNotice'
|
9 |
import { InstallStandaloneNotice } from './InstallStandaloneNotice'
|
10 |
import PromotionNotice from './PromotionNotice'
|
2 |
import { useState, useEffect, useRef } from '@wordpress/element'
|
3 |
import { __ } from '@wordpress/i18n'
|
4 |
import { Icon, closeSmall } from '@wordpress/icons'
|
5 |
+
import { General } from '@library/api/General'
|
6 |
+
import { useGlobalStore } from '@library/state/GlobalState'
|
7 |
+
import { useUserStore } from '@library/state/User'
|
8 |
import FeedbackNotice from './FeedbackNotice'
|
9 |
import { InstallStandaloneNotice } from './InstallStandaloneNotice'
|
10 |
import PromotionNotice from './PromotionNotice'
|
extendify-sdk/src/{components → Library/components}/notices/InstallStandaloneNotice.js
RENAMED
@@ -2,9 +2,9 @@ import { Button } from '@wordpress/components'
|
|
2 |
import { useState } from '@wordpress/element'
|
3 |
import { __ } from '@wordpress/i18n'
|
4 |
import classNames from 'classnames'
|
5 |
-
import { General } from '@
|
6 |
-
import { Plugins } from '@
|
7 |
-
import { useUserStore } from '@
|
8 |
|
9 |
export const InstallStandaloneNotice = () => {
|
10 |
const [text, setText] = useState('')
|
2 |
import { useState } from '@wordpress/element'
|
3 |
import { __ } from '@wordpress/i18n'
|
4 |
import classNames from 'classnames'
|
5 |
+
import { General } from '@library/api/General'
|
6 |
+
import { Plugins } from '@library/api/Plugins'
|
7 |
+
import { useUserStore } from '@library/state/User'
|
8 |
|
9 |
export const InstallStandaloneNotice = () => {
|
10 |
const [text, setText] = useState('')
|
extendify-sdk/src/{components → Library/components}/notices/PromotionNotice.js
RENAMED
@@ -1,5 +1,5 @@
|
|
1 |
import { Button } from '@wordpress/components'
|
2 |
-
import { useUserStore } from '@
|
3 |
import { General } from '../../api/General'
|
4 |
|
5 |
export default function PromotionNotice({ promotionData }) {
|
1 |
import { Button } from '@wordpress/components'
|
2 |
+
import { useUserStore } from '@library/state/User'
|
3 |
import { General } from '../../api/General'
|
4 |
|
5 |
export default function PromotionNotice({ promotionData }) {
|
extendify-sdk/src/{components → Library/components}/notices/WelcomeNotice.js
RENAMED
@@ -1,8 +1,8 @@
|
|
1 |
import { Button } from '@wordpress/components'
|
2 |
import { __ } from '@wordpress/i18n'
|
3 |
-
import { General } from '@
|
4 |
-
import { useGlobalStore } from '@
|
5 |
-
import { useUserStore } from '@
|
6 |
|
7 |
export default function WelcomeNotice() {
|
8 |
const setOpen = useGlobalStore((state) => state.setOpen)
|
1 |
import { Button } from '@wordpress/components'
|
2 |
import { __ } from '@wordpress/i18n'
|
3 |
+
import { General } from '@library/api/General'
|
4 |
+
import { useGlobalStore } from '@library/state/GlobalState'
|
5 |
+
import { useUserStore } from '@library/state/User'
|
6 |
|
7 |
export default function WelcomeNotice() {
|
8 |
const setOpen = useGlobalStore((state) => state.setOpen)
|
extendify-sdk/src/{components → Library/components}/popovers/NewImportsPopover.js
RENAMED
File without changes
|
extendify-sdk/src/{hooks → Library/hooks}/helpers.js
RENAMED
File without changes
|
extendify-sdk/src/{hooks → Library/hooks}/useModal.js
RENAMED
@@ -1,7 +1,7 @@
|
|
1 |
import { useEffect, useState } from '@wordpress/element'
|
2 |
-
import { InstallStandaloneModal } from '@
|
3 |
-
import { useGlobalStore } from '@
|
4 |
-
import { useUserStore } from '@
|
5 |
|
6 |
/** Return any pending modals and check if any need to show */
|
7 |
export const useModal = () => {
|
1 |
import { useEffect, useState } from '@wordpress/element'
|
2 |
+
import { InstallStandaloneModal } from '@library/components/modals/InstallStandaloneModal'
|
3 |
+
import { useGlobalStore } from '@library/state/GlobalState'
|
4 |
+
import { useUserStore } from '@library/state/User'
|
5 |
|
6 |
/** Return any pending modals and check if any need to show */
|
7 |
export const useModal = () => {
|
extendify-sdk/src/{hooks → Library/hooks}/useTestGroup.js
RENAMED
@@ -1,6 +1,6 @@
|
|
1 |
import { useState, useLayoutEffect } from '@wordpress/element'
|
2 |
-
import { useGlobalStore } from '@
|
3 |
-
import { useUserStore as user } from '@
|
4 |
|
5 |
export const useTestGroup = (key, options, override) => {
|
6 |
const [group, setGroup] = useState()
|
1 |
import { useState, useLayoutEffect } from '@wordpress/element'
|
2 |
+
import { useGlobalStore } from '@library/state/GlobalState'
|
3 |
+
import { useUserStore as user } from '@library/state/User'
|
4 |
|
5 |
export const useTestGroup = (key, options, override) => {
|
6 |
const [group, setGroup] = useState()
|
extendify-sdk/src/{listeners → Library/listeners}/index.js
RENAMED
File without changes
|
extendify-sdk/src/{listeners → Library/listeners}/softerror-encountered.js
RENAMED
@@ -1,6 +1,6 @@
|
|
1 |
import { render } from '@wordpress/element'
|
2 |
import { camelCase } from 'lodash'
|
3 |
-
import RequiredPluginsModal from '@
|
4 |
|
5 |
// use this to trigger an error from outside the application
|
6 |
export const softErrorHandler = {
|
1 |
import { render } from '@wordpress/element'
|
2 |
import { camelCase } from 'lodash'
|
3 |
+
import RequiredPluginsModal from '@library/middleware/hasRequiredPlugins/RequiredPluginsModal'
|
4 |
|
5 |
// use this to trigger an error from outside the application
|
6 |
export const softErrorHandler = {
|
extendify-sdk/src/{listeners → Library/listeners}/template-inserted.js
RENAMED
@@ -1,7 +1,7 @@
|
|
1 |
import { dispatch } from '@wordpress/data'
|
2 |
import { __ } from '@wordpress/i18n'
|
3 |
-
import { Templates } from '@
|
4 |
-
import { useUserStore } from '@
|
5 |
|
6 |
// This fires after a template is inserted
|
7 |
export const templateHandler = {
|
1 |
import { dispatch } from '@wordpress/data'
|
2 |
import { __ } from '@wordpress/i18n'
|
3 |
+
import { Templates } from '@library/api/Templates'
|
4 |
+
import { useUserStore } from '@library/state/User'
|
5 |
|
6 |
// This fires after a template is inserted
|
7 |
export const templateHandler = {
|
extendify-sdk/src/{middleware → Library/middleware}/NeedsPermissionModal.js
RENAMED
@@ -1,9 +1,9 @@
|
|
1 |
import { Modal, Button } from '@wordpress/components'
|
2 |
import { render } from '@wordpress/element'
|
3 |
import { __, sprintf } from '@wordpress/i18n'
|
4 |
-
import ExtendifyLibrary from '@
|
5 |
-
import { useWantedTemplateStore } from '@
|
6 |
-
import { getPluginDescription } from '@
|
7 |
|
8 |
export default function NeedsPermissionModal() {
|
9 |
const wantedTemplate = useWantedTemplateStore(
|
1 |
import { Modal, Button } from '@wordpress/components'
|
2 |
import { render } from '@wordpress/element'
|
3 |
import { __, sprintf } from '@wordpress/i18n'
|
4 |
+
import ExtendifyLibrary from '@library/ExtendifyLibrary'
|
5 |
+
import { useWantedTemplateStore } from '@library/state/Importing'
|
6 |
+
import { getPluginDescription } from '@library/util/general'
|
7 |
|
8 |
export default function NeedsPermissionModal() {
|
9 |
const wantedTemplate = useWantedTemplateStore(
|
extendify-sdk/src/{middleware → Library/middleware}/ReloadRequiredModal.js
RENAMED
File without changes
|
extendify-sdk/src/{middleware → Library/middleware}/hasPluginsActivated/ActivatePluginsModal.js
RENAMED
@@ -1,10 +1,10 @@
|
|
1 |
import { Modal, Button, ButtonGroup } from '@wordpress/components'
|
2 |
import { render } from '@wordpress/element'
|
3 |
import { __, sprintf } from '@wordpress/i18n'
|
4 |
-
import ExtendifyLibrary from '@
|
5 |
-
import { useWantedTemplateStore } from '@
|
6 |
-
import { useUserStore } from '@
|
7 |
-
import { getPluginDescription } from '@
|
8 |
import NeedsPermissionModal from '../NeedsPermissionModal'
|
9 |
import ActivatingModal from './ActivatingModal'
|
10 |
|
1 |
import { Modal, Button, ButtonGroup } from '@wordpress/components'
|
2 |
import { render } from '@wordpress/element'
|
3 |
import { __, sprintf } from '@wordpress/i18n'
|
4 |
+
import ExtendifyLibrary from '@library/ExtendifyLibrary'
|
5 |
+
import { useWantedTemplateStore } from '@library/state/Importing'
|
6 |
+
import { useUserStore } from '@library/state/User'
|
7 |
+
import { getPluginDescription } from '@library/util/general'
|
8 |
import NeedsPermissionModal from '../NeedsPermissionModal'
|
9 |
import ActivatingModal from './ActivatingModal'
|
10 |
|
extendify-sdk/src/{middleware → Library/middleware}/hasPluginsActivated/ActivatingModal.js
RENAMED
@@ -1,8 +1,8 @@
|
|
1 |
import { Modal, Button } from '@wordpress/components'
|
2 |
import { useState, render } from '@wordpress/element'
|
3 |
import { __ } from '@wordpress/i18n'
|
4 |
-
import { Plugins } from '@
|
5 |
-
import { useWantedTemplateStore } from '@
|
6 |
import ReloadRequiredModal from '../ReloadRequiredModal'
|
7 |
import ErrorActivating from './ErrorActivating'
|
8 |
|
1 |
import { Modal, Button } from '@wordpress/components'
|
2 |
import { useState, render } from '@wordpress/element'
|
3 |
import { __ } from '@wordpress/i18n'
|
4 |
+
import { Plugins } from '@library/api/Plugins'
|
5 |
+
import { useWantedTemplateStore } from '@library/state/Importing'
|
6 |
import ReloadRequiredModal from '../ReloadRequiredModal'
|
7 |
import ErrorActivating from './ErrorActivating'
|
8 |
|
extendify-sdk/src/{middleware → Library/middleware}/hasPluginsActivated/ErrorActivating.js
RENAMED
File without changes
|
extendify-sdk/src/{middleware → Library/middleware}/hasPluginsActivated/index.js
RENAMED
File without changes
|
extendify-sdk/src/{middleware → Library/middleware}/hasRequiredPlugins/ErrorInstalling.js
RENAMED
File without changes
|
extendify-sdk/src/{middleware → Library/middleware}/hasRequiredPlugins/InstallingModal.js
RENAMED
@@ -1,8 +1,8 @@
|
|
1 |
import { Modal, Button } from '@wordpress/components'
|
2 |
import { useState, render } from '@wordpress/element'
|
3 |
import { __ } from '@wordpress/i18n'
|
4 |
-
import { Plugins } from '@
|
5 |
-
import { useWantedTemplateStore } from '@
|
6 |
import ReloadRequiredModal from '../ReloadRequiredModal'
|
7 |
import ErrorInstalling from './ErrorInstalling'
|
8 |
|
1 |
import { Modal, Button } from '@wordpress/components'
|
2 |
import { useState, render } from '@wordpress/element'
|
3 |
import { __ } from '@wordpress/i18n'
|
4 |
+
import { Plugins } from '@library/api/Plugins'
|
5 |
+
import { useWantedTemplateStore } from '@library/state/Importing'
|
6 |
import ReloadRequiredModal from '../ReloadRequiredModal'
|
7 |
import ErrorInstalling from './ErrorInstalling'
|
8 |
|
extendify-sdk/src/{middleware → Library/middleware}/hasRequiredPlugins/RequiredPluginsModal.js
RENAMED
@@ -1,10 +1,10 @@
|
|
1 |
import { Modal, Button, ButtonGroup } from '@wordpress/components'
|
2 |
import { render } from '@wordpress/element'
|
3 |
import { __, sprintf } from '@wordpress/i18n'
|
4 |
-
import ExtendifyLibrary from '@
|
5 |
-
import { useWantedTemplateStore } from '@
|
6 |
-
import { useUserStore } from '@
|
7 |
-
import { getPluginDescription } from '@
|
8 |
import NeedsPermissionModal from '../NeedsPermissionModal'
|
9 |
import InstallingModal from './InstallingModal'
|
10 |
|
1 |
import { Modal, Button, ButtonGroup } from '@wordpress/components'
|
2 |
import { render } from '@wordpress/element'
|
3 |
import { __, sprintf } from '@wordpress/i18n'
|
4 |
+
import ExtendifyLibrary from '@library/ExtendifyLibrary'
|
5 |
+
import { useWantedTemplateStore } from '@library/state/Importing'
|
6 |
+
import { useUserStore } from '@library/state/User'
|
7 |
+
import { getPluginDescription } from '@library/util/general'
|
8 |
import NeedsPermissionModal from '../NeedsPermissionModal'
|
9 |
import InstallingModal from './InstallingModal'
|
10 |
|
extendify-sdk/src/{middleware → Library/middleware}/hasRequiredPlugins/index.js
RENAMED
File without changes
|
extendify-sdk/src/{middleware → Library/middleware}/helpers.js
RENAMED
@@ -1,4 +1,4 @@
|
|
1 |
-
import { Plugins } from '@
|
2 |
|
3 |
let installedPlugins = []
|
4 |
let activatedPlugins = []
|
1 |
+
import { Plugins } from '@library/api/Plugins'
|
2 |
|
3 |
let installedPlugins = []
|
4 |
let activatedPlugins = []
|
extendify-sdk/src/{middleware → Library/middleware}/index.js
RENAMED
File without changes
|
extendify-sdk/src/{pages → Library/pages}/GridView.js
RENAMED
@@ -10,12 +10,12 @@ import { __, sprintf } from '@wordpress/i18n'
|
|
10 |
import { cloneDeep } from 'lodash'
|
11 |
import { useInView } from 'react-intersection-observer'
|
12 |
import Masonry from 'react-masonry-css'
|
13 |
-
import { Templates as TemplatesApi } from '@
|
14 |
-
import { ImportTemplateBlock } from '@
|
15 |
-
import { useIsMounted } from '@
|
16 |
-
import { useGlobalStore } from '@
|
17 |
-
import { useTaxonomyStore } from '@
|
18 |
-
import { useTemplatesStore } from '@
|
19 |
|
20 |
export const GridView = memo(function GridView() {
|
21 |
const isMounted = useIsMounted()
|
@@ -67,11 +67,9 @@ export const GridView = memo(function GridView() {
|
|
67 |
'extendify',
|
68 |
)
|
69 |
const args = { offset: nextPage.current }
|
70 |
-
// AB test the default or defaultAlt site type
|
71 |
const siteType = searchParams.current.taxonomies?.siteType?.slug?.length
|
72 |
? searchParams.current.taxonomies.siteType
|
73 |
: { slug: 'default' }
|
74 |
-
// End AB test - otherwise use { slug: 'default' } when empty
|
75 |
const params = cloneDeep(searchParams.current)
|
76 |
params.taxonomies.siteType = siteType
|
77 |
TemplatesApi.get(params, args)
|
10 |
import { cloneDeep } from 'lodash'
|
11 |
import { useInView } from 'react-intersection-observer'
|
12 |
import Masonry from 'react-masonry-css'
|
13 |
+
import { Templates as TemplatesApi } from '@library/api/Templates'
|
14 |
+
import { ImportTemplateBlock } from '@library/components/ImportTemplateBlock'
|
15 |
+
import { useIsMounted } from '@library/hooks/helpers'
|
16 |
+
import { useGlobalStore } from '@library/state/GlobalState'
|
17 |
+
import { useTaxonomyStore } from '@library/state/Taxonomies'
|
18 |
+
import { useTemplatesStore } from '@library/state/Templates'
|
19 |
|
20 |
export const GridView = memo(function GridView() {
|
21 |
const isMounted = useIsMounted()
|
67 |
'extendify',
|
68 |
)
|
69 |
const args = { offset: nextPage.current }
|
|
|
70 |
const siteType = searchParams.current.taxonomies?.siteType?.slug?.length
|
71 |
? searchParams.current.taxonomies.siteType
|
72 |
: { slug: 'default' }
|
|
|
73 |
const params = cloneDeep(searchParams.current)
|
74 |
params.taxonomies.siteType = siteType
|
75 |
TemplatesApi.get(params, args)
|
extendify-sdk/src/Library/pages/MainWindow.js
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { useRef } from '@wordpress/element'
|
2 |
+
import { Dialog } from '@headlessui/react'
|
3 |
+
import FooterNotice from '@library/components/notices/FooterNotice'
|
4 |
+
import { useModal } from '@library/hooks/useModal'
|
5 |
+
import { useGlobalStore } from '@library/state/GlobalState'
|
6 |
+
import { Layout } from './layout/Layout'
|
7 |
+
|
8 |
+
export default function MainWindow() {
|
9 |
+
const containerRef = useRef(null)
|
10 |
+
const open = useGlobalStore((state) => state.open)
|
11 |
+
const setOpen = useGlobalStore((state) => state.setOpen)
|
12 |
+
const modal = useModal(open)
|
13 |
+
const ready = useGlobalStore((state) => state.ready)
|
14 |
+
|
15 |
+
return (
|
16 |
+
<Dialog
|
17 |
+
as="div"
|
18 |
+
className="extendify"
|
19 |
+
initialFocus={containerRef}
|
20 |
+
open={open}
|
21 |
+
onClose={() => setOpen(false)}>
|
22 |
+
<div className="fixed inset-0 bg-black bg-opacity-40 transition-opacity" />
|
23 |
+
<div className="fixed inset-0 z-high m-auto h-screen w-screen overflow-y-auto sm:h-auto sm:w-auto">
|
24 |
+
<div className="flex min-h-screen items-end justify-center px-4 pt-4 pb-20 text-center sm:block sm:p-0">
|
25 |
+
<div
|
26 |
+
ref={containerRef}
|
27 |
+
tabIndex="0"
|
28 |
+
onClick={(e) =>
|
29 |
+
e.target === e.currentTarget && setOpen(false)
|
30 |
+
}
|
31 |
+
className="fixed inset-0 transform p-2 transition-all lg:absolute lg:overflow-hidden lg:p-16">
|
32 |
+
<Layout />
|
33 |
+
{ready ? (
|
34 |
+
<>
|
35 |
+
<FooterNotice />
|
36 |
+
{modal}
|
37 |
+
</>
|
38 |
+
) : null}
|
39 |
+
</div>
|
40 |
+
</div>
|
41 |
+
</div>
|
42 |
+
</Dialog>
|
43 |
+
)
|
44 |
+
}
|
extendify-sdk/src/{pages → Library/pages}/Sidebar.js
RENAMED
@@ -4,16 +4,16 @@ import { memo } from '@wordpress/element'
|
|
4 |
import { __ } from '@wordpress/i18n'
|
5 |
import { Icon, close } from '@wordpress/icons'
|
6 |
import classNames from 'classnames'
|
7 |
-
import { ImportCounter } from '@
|
8 |
-
import { SiteTypeSelector } from '@
|
9 |
-
import { TaxonomySection } from '@
|
10 |
-
import { TypeSelect } from '@
|
11 |
-
import { featured } from '@
|
12 |
-
import { brandMark } from '@
|
13 |
-
import { useGlobalStore } from '@
|
14 |
-
import { useTaxonomyStore } from '@
|
15 |
-
import { useTemplatesStore } from '@
|
16 |
-
import { useUserStore } from '@
|
17 |
|
18 |
export const Sidebar = memo(function Sidebar() {
|
19 |
const taxonomies = useTaxonomyStore((state) => state.taxonomies)
|
4 |
import { __ } from '@wordpress/i18n'
|
5 |
import { Icon, close } from '@wordpress/icons'
|
6 |
import classNames from 'classnames'
|
7 |
+
import { ImportCounter } from '@library/components/ImportCounter'
|
8 |
+
import { SiteTypeSelector } from '@library/components/SiteTypeSelector'
|
9 |
+
import { TaxonomySection } from '@library/components/TaxonomySection'
|
10 |
+
import { TypeSelect } from '@library/components/TypeSelect'
|
11 |
+
import { featured } from '@library/components/icons'
|
12 |
+
import { brandMark } from '@library/components/icons/'
|
13 |
+
import { useGlobalStore } from '@library/state/GlobalState'
|
14 |
+
import { useTaxonomyStore } from '@library/state/Taxonomies'
|
15 |
+
import { useTemplatesStore } from '@library/state/Templates'
|
16 |
+
import { useUserStore } from '@library/state/User'
|
17 |
|
18 |
export const Sidebar = memo(function Sidebar() {
|
19 |
const taxonomies = useTaxonomyStore((state) => state.taxonomies)
|
extendify-sdk/src/{pages → Library/pages}/layout/HasSidebar.js
RENAMED
@@ -1,4 +1,4 @@
|
|
1 |
-
import { useGlobalStore } from '@
|
2 |
|
3 |
export default function HasSidebar({ children }) {
|
4 |
const ready = useGlobalStore((state) => state.ready)
|
1 |
+
import { useGlobalStore } from '@library/state/GlobalState'
|
2 |
|
3 |
export default function HasSidebar({ children }) {
|
4 |
const ready = useGlobalStore((state) => state.ready)
|
extendify-sdk/src/{pages → Library/pages}/layout/Layout.js
RENAMED
@@ -1,8 +1,8 @@
|
|
1 |
import { useRef, useEffect } from '@wordpress/element'
|
2 |
import { __ } from '@wordpress/i18n'
|
3 |
-
import { GridView } from '@
|
4 |
-
import { Sidebar } from '@
|
5 |
-
import { useTemplatesStore } from '@
|
6 |
import HasSidebar from './HasSidebar'
|
7 |
import { Toolbar } from './Toolbar'
|
8 |
|
1 |
import { useRef, useEffect } from '@wordpress/element'
|
2 |
import { __ } from '@wordpress/i18n'
|
3 |
+
import { GridView } from '@library/pages/GridView'
|
4 |
+
import { Sidebar } from '@library/pages/Sidebar'
|
5 |
+
import { useTemplatesStore } from '@library/state/Templates'
|
6 |
import HasSidebar from './HasSidebar'
|
7 |
import { Toolbar } from './Toolbar'
|
8 |
|
extendify-sdk/src/{pages → Library/pages}/layout/Toolbar.js
RENAMED
@@ -2,10 +2,10 @@ 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 { user } from '@
|
6 |
-
import { SettingsModal } from '@
|
7 |
-
import { useGlobalStore } from '@
|
8 |
-
import { useUserStore } from '@
|
9 |
|
10 |
export const Toolbar = memo(function Toolbar({ className }) {
|
11 |
const setOpen = useGlobalStore((state) => state.setOpen)
|
2 |
import { memo } from '@wordpress/element'
|
3 |
import { __ } from '@wordpress/i18n'
|
4 |
import { Icon, close } from '@wordpress/icons'
|
5 |
+
import { user } from '@library/components/icons/'
|
6 |
+
import { SettingsModal } from '@library/components/modals/settings/SettingsModal'
|
7 |
+
import { useGlobalStore } from '@library/state/GlobalState'
|
8 |
+
import { useUserStore } from '@library/state/User'
|
9 |
|
10 |
export const Toolbar = memo(function Toolbar({ className }) {
|
11 |
const setOpen = useGlobalStore((state) => state.setOpen)
|
extendify-sdk/src/{state → Library/state}/GlobalState.js
RENAMED
File without changes
|
extendify-sdk/src/{state → Library/state}/Importing.js
RENAMED
File without changes
|
extendify-sdk/src/{state → Library/state}/SiteSettings.js
RENAMED
@@ -1,6 +1,6 @@
|
|
1 |
import create from 'zustand'
|
2 |
import { persist } from 'zustand/middleware'
|
3 |
-
import { SiteSettings } from '@
|
4 |
|
5 |
const storage = {
|
6 |
getItem: async () => await SiteSettings.getData(),
|
1 |
import create from 'zustand'
|
2 |
import { persist } from 'zustand/middleware'
|
3 |
+
import { SiteSettings } from '@library/api/SiteSettings'
|
4 |
|
5 |
const storage = {
|
6 |
getItem: async () => await SiteSettings.getData(),
|
extendify-sdk/src/{state → Library/state}/Taxonomies.js
RENAMED
@@ -1,6 +1,6 @@
|
|
1 |
import create from 'zustand'
|
2 |
import { persist } from 'zustand/middleware'
|
3 |
-
import { Taxonomies as TaxonomiesApi } from '@
|
4 |
|
5 |
export const useTaxonomyStore = create(
|
6 |
persist(
|
1 |
import create from 'zustand'
|
2 |
import { persist } from 'zustand/middleware'
|
3 |
+
import { Taxonomies as TaxonomiesApi } from '@library/api/Taxonomies'
|
4 |
|
5 |
export const useTaxonomyStore = create(
|
6 |
persist(
|
extendify-sdk/src/{state → Library/state}/Templates.js
RENAMED
File without changes
|
extendify-sdk/src/{state → Library/state}/User.js
RENAMED
@@ -1,7 +1,7 @@
|
|
1 |
import { sample } from 'lodash'
|
2 |
import create from 'zustand'
|
3 |
import { persist } from 'zustand/middleware'
|
4 |
-
import { User } from '@
|
5 |
|
6 |
const storage = {
|
7 |
getItem: async () => await User.getData(),
|
1 |
import { sample } from 'lodash'
|
2 |
import create from 'zustand'
|
3 |
import { persist } from 'zustand/middleware'
|
4 |
+
import { User } from '@library/api/User'
|
5 |
|
6 |
const storage = {
|
7 |
getItem: async () => await User.getData(),
|
extendify-sdk/src/{util → Library/util}/general.js
RENAMED
@@ -1,5 +1,6 @@
|
|
|
|
1 |
import { isString, toLower } from 'lodash'
|
2 |
-
import { useUserStore } from '@
|
3 |
|
4 |
/**
|
5 |
* Will check if the given string contains the search string
|
@@ -49,11 +50,11 @@ export function getPluginDescription(plugin) {
|
|
49 |
export function getTaxonomyName(key) {
|
50 |
switch (key) {
|
51 |
case 'siteType':
|
52 |
-
return 'Site Type'
|
53 |
case 'patternType':
|
54 |
-
return 'Content'
|
55 |
case 'layoutType':
|
56 |
-
return 'Page Types'
|
57 |
}
|
58 |
return key
|
59 |
}
|
1 |
+
import { __ } from '@wordpress/i18n'
|
2 |
import { isString, toLower } from 'lodash'
|
3 |
+
import { useUserStore } from '@library/state/User'
|
4 |
|
5 |
/**
|
6 |
* Will check if the given string contains the search string
|
50 |
export function getTaxonomyName(key) {
|
51 |
switch (key) {
|
52 |
case 'siteType':
|
53 |
+
return __('Site Type', 'extendify')
|
54 |
case 'patternType':
|
55 |
+
return __('Content', 'extendify')
|
56 |
case 'layoutType':
|
57 |
+
return __('Page Types', 'extendify')
|
58 |
}
|
59 |
return key
|
60 |
}
|
extendify-sdk/src/{util → Library/util}/templateInjection.js
RENAMED
File without changes
|
extendify-sdk/src/{utility-control → Library/utility-control}/index.js
RENAMED
@@ -3,7 +3,7 @@ import { FormTokenField } from '@wordpress/components'
|
|
3 |
import { createHigherOrderComponent } from '@wordpress/compose'
|
4 |
import { addFilter } from '@wordpress/hooks'
|
5 |
import { __ } from '@wordpress/i18n'
|
6 |
-
import suggestions from '
|
7 |
|
8 |
function addAttributes(settings) {
|
9 |
// Add new extUtilities attribute to block settings.
|
3 |
import { createHigherOrderComponent } from '@wordpress/compose'
|
4 |
import { addFilter } from '@wordpress/hooks'
|
5 |
import { __ } from '@wordpress/i18n'
|
6 |
+
import suggestions from '../../../utility-framework/suggestions.json'
|
7 |
|
8 |
function addAttributes(settings) {
|
9 |
// Add new extUtilities attribute to block settings.
|
extendify-sdk/src/Onboarding/Onboarding.js
ADDED
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { useEffect, useState } from '@wordpress/element'
|
2 |
+
import { __ } from '@wordpress/i18n'
|
3 |
+
import { SWRConfig, useSWRConfig } from 'swr'
|
4 |
+
import { RetryNotice } from '@onboarding/components/RetryNotice'
|
5 |
+
import { useDisableWelcomeGuide } from '@onboarding/hooks/useDisableWelcomeGuide'
|
6 |
+
import { useBodyScrollLock } from '@onboarding/hooks/useScrollLock'
|
7 |
+
import { CreatingSite } from '@onboarding/pages/CreatingSite'
|
8 |
+
import { Finished } from '@onboarding/pages/Finished'
|
9 |
+
import { useGlobalStore } from '@onboarding/state/Global'
|
10 |
+
import { usePagesStore } from '@onboarding/state/Pages'
|
11 |
+
import { useUserSelectionStore } from '@onboarding/state/UserSelections'
|
12 |
+
|
13 |
+
export const Onboarding = () => {
|
14 |
+
const resetState = useUserSelectionStore((state) => state.resetState)
|
15 |
+
const [retrying, setRetrying] = useState(false)
|
16 |
+
const { component: CurrentPage } = usePagesStore((state) =>
|
17 |
+
state.currentPageData(),
|
18 |
+
)
|
19 |
+
const { fetcher, fetchData } = usePagesStore((state) =>
|
20 |
+
state.nextPageData(),
|
21 |
+
)
|
22 |
+
const { mutate } = useSWRConfig()
|
23 |
+
const generating = useGlobalStore((state) => state.generating)
|
24 |
+
const generatedPages = useGlobalStore((state) => state.generatedPages)
|
25 |
+
const [show, setShow] = useState(false)
|
26 |
+
useDisableWelcomeGuide()
|
27 |
+
useBodyScrollLock()
|
28 |
+
|
29 |
+
useEffect(() => {
|
30 |
+
if (!show) return
|
31 |
+
// If the library happens to be open, try to close it.
|
32 |
+
const timeout = setTimeout(() => {
|
33 |
+
window.dispatchEvent(
|
34 |
+
new CustomEvent('extendify::close-library', { bubbles: true }),
|
35 |
+
)
|
36 |
+
}, 0)
|
37 |
+
document.title = __('Extendify Launch', 'extendify')
|
38 |
+
return () => clearTimeout(timeout)
|
39 |
+
}, [show])
|
40 |
+
|
41 |
+
useEffect(() => {
|
42 |
+
resetState()
|
43 |
+
const q = new URLSearchParams(window.location.search)
|
44 |
+
setShow(['onboarding'].includes(q.get('extendify')))
|
45 |
+
}, [resetState])
|
46 |
+
|
47 |
+
useEffect(() => {
|
48 |
+
if (fetcher) {
|
49 |
+
mutate(fetchData, fetcher)
|
50 |
+
}
|
51 |
+
}, [fetcher, mutate, fetchData])
|
52 |
+
|
53 |
+
if (!show) return null
|
54 |
+
|
55 |
+
if (Object.keys(generatedPages)?.length) {
|
56 |
+
return (
|
57 |
+
<div className="h-screen w-screen fixed z-high inset-0 overflow-y-auto md:overflow-hidden bg-white">
|
58 |
+
<Finished />
|
59 |
+
</div>
|
60 |
+
)
|
61 |
+
}
|
62 |
+
|
63 |
+
return (
|
64 |
+
<SWRConfig
|
65 |
+
value={{
|
66 |
+
errorRetryInterval: 1000,
|
67 |
+
onErrorRetry: (error, key) => {
|
68 |
+
console.error(key, error)
|
69 |
+
if (error?.data?.status === 403) {
|
70 |
+
// if they are logged out, we can't recover
|
71 |
+
window.location.reload()
|
72 |
+
return
|
73 |
+
}
|
74 |
+
if (retrying) return
|
75 |
+
setRetrying(true)
|
76 |
+
setTimeout(() => {
|
77 |
+
setRetrying(false)
|
78 |
+
}, 5000)
|
79 |
+
},
|
80 |
+
}}>
|
81 |
+
<div
|
82 |
+
style={{ zIndex: 99999 + 1 }} // 1 more than the library
|
83 |
+
className="h-screen w-screen fixed inset-0 overflow-y-auto md:overflow-hidden bg-white">
|
84 |
+
{generating ? <CreatingSite /> : <CurrentPage />}
|
85 |
+
</div>
|
86 |
+
{retrying && <RetryNotice />}
|
87 |
+
</SWRConfig>
|
88 |
+
)
|
89 |
+
}
|
extendify-sdk/src/Onboarding/api/DataApi.js
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { Axios as api } from './axios'
|
2 |
+
|
3 |
+
export const getSiteTypes = () => api.get('onboarding/site-types')
|
4 |
+
|
5 |
+
export const getStyles = (data) =>
|
6 |
+
api.get('onboarding/styles', { params: data })
|
7 |
+
|
8 |
+
export const getGoals = () => api.get('onboarding/goals')
|
9 |
+
export const getSuggestedPlugins = () => api.get('onboarding/suggested-plugins')
|
10 |
+
|
11 |
+
export const getLayoutTypes = () => api.get('onboarding/layout-types')
|
12 |
+
|
13 |
+
export const getTemplate = (data) =>
|
14 |
+
api.get('onboarding/template', { params: data })
|
15 |
+
|
16 |
+
export const createOrder = (data) => api.post('onboarding/orders', data)
|
extendify-sdk/src/Onboarding/api/LibraryApi.js
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
1 |
+
import { Axios as api } from './axios'
|
2 |
+
|
3 |
+
/* Updates the site type in the Library */
|
4 |
+
export const updateSiteType = (data) => api.post('library/site-type', data)
|
extendify-sdk/src/Onboarding/api/WPApi.js
ADDED
@@ -0,0 +1,97 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { __ } from '@wordpress/i18n'
|
2 |
+
import { Axios as api } from './axios'
|
3 |
+
|
4 |
+
export const saveThemeJson = (themeJson) =>
|
5 |
+
api.post('onboarding/save-theme-json', { themeJson })
|
6 |
+
|
7 |
+
export const parseThemeJson = (themeJson) =>
|
8 |
+
api.post('onboarding/parse-theme-json', { themeJson })
|
9 |
+
|
10 |
+
export const updateOption = (option, value) =>
|
11 |
+
api.post('onboarding/options', { option, value })
|
12 |
+
|
13 |
+
export const getOption = async (option) => {
|
14 |
+
const { data } = await api.get('onboarding/options', {
|
15 |
+
params: { option },
|
16 |
+
})
|
17 |
+
return data
|
18 |
+
}
|
19 |
+
|
20 |
+
export const createPage = async (pageData) => {
|
21 |
+
const options = {
|
22 |
+
method: 'POST',
|
23 |
+
headers: {
|
24 |
+
'Content-type': 'application/json',
|
25 |
+
'X-WP-Nonce': window.extOnbData.nonce,
|
26 |
+
},
|
27 |
+
body: JSON.stringify(pageData),
|
28 |
+
}
|
29 |
+
const url = `${window.extOnbData.wpRoot}wp/v2/pages`
|
30 |
+
const response = await fetch(url, options)
|
31 |
+
const data = await response.json()
|
32 |
+
return data
|
33 |
+
}
|
34 |
+
|
35 |
+
export const installPlugin = async (slug) => {
|
36 |
+
// Fail silently if no slug is provided
|
37 |
+
if (!slug) return
|
38 |
+
const headers = {
|
39 |
+
'Content-type': 'application/json',
|
40 |
+
'X-WP-Nonce': window.extOnbData.nonce,
|
41 |
+
}
|
42 |
+
const url = `${window.extOnbData.wpRoot}wp/v2/plugins`
|
43 |
+
const response = await fetch(url, {
|
44 |
+
method: 'POST',
|
45 |
+
headers,
|
46 |
+
body: JSON.stringify({ slug, status: 'active' }),
|
47 |
+
})
|
48 |
+
if (response.status >= 200 && response.status < 300) {
|
49 |
+
return await response.json()
|
50 |
+
}
|
51 |
+
// The above could fail if the plugin is already installed
|
52 |
+
// But we at least want to try and activate it if that's the case
|
53 |
+
return await activatePlugin(slug)
|
54 |
+
}
|
55 |
+
|
56 |
+
export const activatePlugin = async (slug) => {
|
57 |
+
const headers = {
|
58 |
+
'Content-type': 'application/json',
|
59 |
+
'X-WP-Nonce': window.extOnbData.nonce,
|
60 |
+
}
|
61 |
+
const endpoint = `${window.extOnbData.wpRoot}wp/v2/plugins`
|
62 |
+
const response = await fetch(`${endpoint}?search=${slug}`, { headers })
|
63 |
+
const plugin = (await response.json())?.[0]?.plugin
|
64 |
+
const response2 = await fetch(`${endpoint}/${plugin}`, {
|
65 |
+
method: 'POST',
|
66 |
+
headers,
|
67 |
+
body: JSON.stringify({ status: 'active' }),
|
68 |
+
})
|
69 |
+
return await response2.json()
|
70 |
+
}
|
71 |
+
|
72 |
+
export const updateTemplatePart = async (part, content) => {
|
73 |
+
const options = {
|
74 |
+
method: 'POST',
|
75 |
+
headers: {
|
76 |
+
'Content-type': 'application/json',
|
77 |
+
'X-WP-Nonce': window.extOnbData.nonce,
|
78 |
+
},
|
79 |
+
body: JSON.stringify({
|
80 |
+
slug: `${part}`,
|
81 |
+
theme: 'extendable',
|
82 |
+
type: 'wp_template_part',
|
83 |
+
status: 'publish',
|
84 |
+
description: __('Added by Extendify Launch', 'extendify'),
|
85 |
+
content,
|
86 |
+
}),
|
87 |
+
}
|
88 |
+
|
89 |
+
try {
|
90 |
+
const url = `${window.extOnbData.wpRoot}wp/v2/template-parts/${part}`
|
91 |
+
const response = await fetch(url, options)
|
92 |
+
const data = await response.json()
|
93 |
+
return data
|
94 |
+
} catch (e) {
|
95 |
+
// Fail gracefully for now
|
96 |
+
}
|
97 |
+
}
|
extendify-sdk/src/Onboarding/api/axios.js
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import axios from 'axios'
|
2 |
+
|
3 |
+
const Axios = axios.create({
|
4 |
+
baseURL: window.extOnbData.root,
|
5 |
+
headers: {
|
6 |
+
'X-WP-Nonce': window.extOnbData.nonce,
|
7 |
+
'X-Requested-With': 'XMLHttpRequest',
|
8 |
+
'X-Extendify-Onboarding': true,
|
9 |
+
'X-Extendify': true,
|
10 |
+
},
|
11 |
+
})
|
12 |
+
|
13 |
+
function findResponse(response) {
|
14 |
+
return Object.prototype.hasOwnProperty.call(response, 'data')
|
15 |
+
? response.data
|
16 |
+
: response
|
17 |
+
}
|
18 |
+
|
19 |
+
function handleErrors(error) {
|
20 |
+
if (!error.response) {
|
21 |
+
return
|
22 |
+
}
|
23 |
+
console.error(error.response)
|
24 |
+
return Promise.reject(findResponse(error.response))
|
25 |
+
}
|
26 |
+
|
27 |
+
function checkDevMode(request) {
|
28 |
+
request.headers['X-Extendify-Onboarding-Dev-Mode'] =
|
29 |
+
window.location.search.indexOf('DEVMODE') > -1
|
30 |
+
request.headers['X-Extendify-Onboarding-Local-Mode'] =
|
31 |
+
window.location.search.indexOf('LOCALMODE') > -1
|
32 |
+
return request
|
33 |
+
}
|
34 |
+
|
35 |
+
Axios.interceptors.response.use(
|
36 |
+
(response) => findResponse(response),
|
37 |
+
(error) => handleErrors(error),
|
38 |
+
)
|
39 |
+
Axios.interceptors.request.use(
|
40 |
+
(request) => checkDevMode(request),
|
41 |
+
(error) => error,
|
42 |
+
)
|
43 |
+
|
44 |
+
export { Axios }
|
extendify-sdk/src/Onboarding/app.css
ADDED
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* Adding CSS classes should be done with consideration and rarely */
|
2 |
+
@tailwind base;
|
3 |
+
@tailwind components;
|
4 |
+
@tailwind utilities;
|
5 |
+
|
6 |
+
.extendify-onboarding {
|
7 |
+
--tw-ring-inset: var(--tw-empty, /*!*/ /*!*/);
|
8 |
+
--tw-ring-offset-width: 0px;
|
9 |
+
--tw-ring-offset-color: transparent;
|
10 |
+
--tw-ring-color: var(--ext-partner-theme-primary-bg, #007cba);
|
11 |
+
}
|
12 |
+
|
13 |
+
.extendify-onboarding *,
|
14 |
+
.extendify-onboarding *:after,
|
15 |
+
.extendify-onboarding *:before {
|
16 |
+
box-sizing: border-box;
|
17 |
+
border: 0 solid #e5e7eb;
|
18 |
+
}
|
19 |
+
|
20 |
+
.extendify-onboarding {
|
21 |
+
-webkit-font-smoothing: antialiased;
|
22 |
+
}
|
23 |
+
|
24 |
+
.extendify-onboarding .search-panel .icon-search {
|
25 |
+
position: absolute;
|
26 |
+
right: 16px;
|
27 |
+
}
|
28 |
+
.extendify-onboarding .button-focus {
|
29 |
+
@apply outline-none cursor-pointer rounded-lg bg-transparent text-center text-base no-underline ring-partner-primary-bg ring-offset-2 ring-offset-white focus:shadow-none focus:ring-wp;
|
30 |
+
}
|
31 |
+
.extendify-onboarding .input-focus {
|
32 |
+
@apply outline-none rounded-lg text-base ring-partner-primary-bg ring-offset-2 ring-offset-white focus:shadow-none focus:ring-wp;
|
33 |
+
}
|
34 |
+
|
35 |
+
.extendify-onboarding .button-card {
|
36 |
+
@apply m-0 block flex-1 overflow-hidden border p-4;
|
37 |
+
}
|
38 |
+
.extendify-onboarding .preview-container .block-editor-block-preview__content {
|
39 |
+
max-height: none !important;
|
40 |
+
}
|
41 |
+
|
42 |
+
.extendify-onboarding .spin {
|
43 |
+
animation: extendify-loading-spinner 2.5s linear infinite;
|
44 |
+
}
|
45 |
+
|
46 |
+
@keyframes extendify-loading-spinner {
|
47 |
+
from {
|
48 |
+
transform: rotate(0deg);
|
49 |
+
}
|
50 |
+
to {
|
51 |
+
transform: rotate(360deg);
|
52 |
+
}
|
53 |
+
}
|
54 |
+
|
55 |
+
/* Checkbox styles for page selection step. */
|
56 |
+
.extendify-onboarding .components-checkbox-control__input[type="checkbox"] {
|
57 |
+
@apply border border-gray-900;
|
58 |
+
}
|
59 |
+
.extendify-onboarding
|
60 |
+
.components-checkbox-control__input[type="checkbox"]:focus {
|
61 |
+
@apply outline-none ring-wp ring-partner-primary-bg ring-offset-2 ring-offset-white;
|
62 |
+
}
|
63 |
+
.extendify-onboarding
|
64 |
+
.components-checkbox-control__input[type="checkbox"]:checked {
|
65 |
+
@apply bg-partner-primary-bg;
|
66 |
+
}
|
67 |
+
|
68 |
+
/* Goal checkbox */
|
69 |
+
.extendify-onboarding .goal-select .components-base-control__field {
|
70 |
+
@apply mb-0;
|
71 |
+
}
|
extendify-sdk/src/Onboarding/app.js
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import domReady from '@wordpress/dom-ready'
|
2 |
+
import { render } from '@wordpress/element'
|
3 |
+
import { Onboarding } from '@onboarding/Onboarding'
|
4 |
+
|
5 |
+
const extendify = Object.assign(document.createElement('div'), {
|
6 |
+
id: 'extendify-onboarding-root',
|
7 |
+
className: 'extendify-onboarding',
|
8 |
+
})
|
9 |
+
document.body.append(extendify)
|
10 |
+
domReady(() => {
|
11 |
+
window._wpLoadBlockEditor && render(<Onboarding />, extendify)
|
12 |
+
})
|
extendify-sdk/src/Onboarding/components/Card.js
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import classNames from 'classnames'
|
2 |
+
import { Checkmark } from '@onboarding/svg'
|
3 |
+
|
4 |
+
export const Card = ({
|
5 |
+
image,
|
6 |
+
heading,
|
7 |
+
name,
|
8 |
+
description,
|
9 |
+
selected,
|
10 |
+
onClick,
|
11 |
+
lock,
|
12 |
+
}) => {
|
13 |
+
return (
|
14 |
+
<div
|
15 |
+
role={lock ? undefined : 'button'}
|
16 |
+
tabIndex={lock ? undefined : 0}
|
17 |
+
aria-label={lock ? undefined : name}
|
18 |
+
className={classNames(
|
19 |
+
'text-base p-0 bg-transparent overflow-hidden rounded-lg border border-gray-100',
|
20 |
+
{
|
21 |
+
'button-focus': !lock,
|
22 |
+
},
|
23 |
+
)}
|
24 |
+
onKeyDown={(e) => {
|
25 |
+
if (['Enter', 'Space', ' '].includes(e.key)) {
|
26 |
+
if (!lock) onClick()
|
27 |
+
}
|
28 |
+
}}
|
29 |
+
onClick={() => {
|
30 |
+
if (!lock) onClick()
|
31 |
+
}}>
|
32 |
+
<div className="border-gray-100 border-b p-2 flex justify-between min-w-sm">
|
33 |
+
<div
|
34 |
+
className={classNames('flex items-center', {
|
35 |
+
'text-gray-700': !selected,
|
36 |
+
})}>
|
37 |
+
<span>{name}</span>
|
38 |
+
{lock && (
|
39 |
+
<span className="w-4 h-4 text-base leading-none pl-2 mr-6 dashicons dashicons-lock"></span>
|
40 |
+
)}
|
41 |
+
</div>
|
42 |
+
{(lock || selected) && (
|
43 |
+
<Checkmark className="text-partner-primary-bg w-6" />
|
44 |
+
)}
|
45 |
+
</div>
|
46 |
+
<div className="flex flex-col">
|
47 |
+
<div
|
48 |
+
style={{ backgroundImage: `url(${image})` }}
|
49 |
+
className="h-32 bg-cover"
|
50 |
+
/>
|
51 |
+
<div className="p-6 text-left">
|
52 |
+
<div className="text-base font-bold mb-2">{heading}</div>
|
53 |
+
<div className="text-sm">{description}</div>
|
54 |
+
</div>
|
55 |
+
</div>
|
56 |
+
</div>
|
57 |
+
)
|
58 |
+
}
|
extendify-sdk/src/Onboarding/components/PageControl.js
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { __ } from '@wordpress/i18n'
|
2 |
+
import { ProgressBar } from '@onboarding/components/ProgressBar'
|
3 |
+
import { useGlobalStore } from '@onboarding/state/Global'
|
4 |
+
import { usePagesStore } from '@onboarding/state/Pages'
|
5 |
+
import { useUserSelectionStore } from '@onboarding/state/UserSelections'
|
6 |
+
|
7 |
+
export const PageControl = () => {
|
8 |
+
const nextPage = usePagesStore((state) => state.nextPage)
|
9 |
+
const previousPage = usePagesStore((state) => state.previousPage)
|
10 |
+
const currentPageIndex = usePagesStore((state) => state.currentPageIndex)
|
11 |
+
const totalPages = usePagesStore((state) => state.count())
|
12 |
+
const canLaunch = useUserSelectionStore((state) => state.canLaunch())
|
13 |
+
const onLastPage = currentPageIndex === totalPages - 1
|
14 |
+
const onFirstPage = currentPageIndex === 0
|
15 |
+
|
16 |
+
return (
|
17 |
+
<div className="flex items-center justify-between space-x-2">
|
18 |
+
<div className="flex-1"></div>
|
19 |
+
<ProgressBar
|
20 |
+
currentPageIndex={currentPageIndex}
|
21 |
+
totalPages={totalPages}
|
22 |
+
/>
|
23 |
+
<div className="flex space-x-2 flex-1 justify-end">
|
24 |
+
{onFirstPage || (
|
25 |
+
<button
|
26 |
+
className="px-4 py-3 bg-transparent hover:bg-gray-200 font-medium button-focus focus:bg-gray-100"
|
27 |
+
type="button"
|
28 |
+
onClick={previousPage}>
|
29 |
+
{__('Previous', 'extendify')}
|
30 |
+
</button>
|
31 |
+
)}
|
32 |
+
{canLaunch && onLastPage ? (
|
33 |
+
<button
|
34 |
+
className="px-4 py-3 font-bold bg-partner-primary-bg text-partner-primary-text button-focus"
|
35 |
+
type="button"
|
36 |
+
onClick={() =>
|
37 |
+
useGlobalStore.setState({ generating: true })
|
38 |
+
}>
|
39 |
+
{__('Launch site', 'extendify')}
|
40 |
+
</button>
|
41 |
+
) : (
|
42 |
+
<button
|
43 |
+
className="px-4 py-3 font-bold bg-partner-primary-bg text-partner-primary-text button-focus"
|
44 |
+
type="button"
|
45 |
+
onClick={nextPage}>
|
46 |
+
{__('Next', 'extendify')}
|
47 |
+
</button>
|
48 |
+
)}
|
49 |
+
</div>
|
50 |
+
</div>
|
51 |
+
)
|
52 |
+
}
|
extendify-sdk/src/Onboarding/components/PagePreview.js
ADDED
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { __ } from '@wordpress/i18n'
|
2 |
+
import classNames from 'classnames'
|
3 |
+
import { getTemplate } from '@onboarding/api/DataApi'
|
4 |
+
import { StylePreview } from '@onboarding/components/StyledPreview'
|
5 |
+
import { useFetch } from '@onboarding/hooks/useFetch'
|
6 |
+
import { useUserSelectionStore } from '@onboarding/state/UserSelections'
|
7 |
+
import { Checkmark } from '@onboarding/svg'
|
8 |
+
import { findTheCode } from '../lib/util'
|
9 |
+
|
10 |
+
export const fetcher = (data) => getTemplate(data)
|
11 |
+
export const PagePreview = ({
|
12 |
+
page,
|
13 |
+
blockHeight,
|
14 |
+
lock = false,
|
15 |
+
displayOnly = false,
|
16 |
+
}) => {
|
17 |
+
const { siteType, style, toggle, has } = useUserSelectionStore()
|
18 |
+
const isHome = page?.slug === 'home'
|
19 |
+
const { data: pageData } = useFetch(
|
20 |
+
{
|
21 |
+
siteType: siteType.slug,
|
22 |
+
layoutType: page.slug,
|
23 |
+
baseLayout: isHome ? style?.homeBaseLayout : null,
|
24 |
+
kit: page.slug !== 'home' ? style?.kit : null,
|
25 |
+
},
|
26 |
+
fetcher,
|
27 |
+
)
|
28 |
+
if (displayOnly) {
|
29 |
+
return (
|
30 |
+
<div className="text-base p-0 bg-transparent overflow-hidden rounded-lg border border-gray-100">
|
31 |
+
<div className="border-gray-100 border-b p-2 flex justify-between min-w-sm">
|
32 |
+
{page.title}
|
33 |
+
</div>
|
34 |
+
<StylePreview
|
35 |
+
blockHeight={blockHeight}
|
36 |
+
key={style?.recordId}
|
37 |
+
style={{
|
38 |
+
...style,
|
39 |
+
code: findTheCode({ template: pageData }),
|
40 |
+
}}
|
41 |
+
/>
|
42 |
+
</div>
|
43 |
+
)
|
44 |
+
}
|
45 |
+
|
46 |
+
return (
|
47 |
+
<div>
|
48 |
+
<div
|
49 |
+
role="button"
|
50 |
+
tabIndex={0}
|
51 |
+
aria-label={__('Press to select', 'extendify')}
|
52 |
+
disabled={lock}
|
53 |
+
className="text-base p-0 bg-transparent overflow-hidden rounded-lg border border-gray-100 button-focus"
|
54 |
+
title={lock ? __('This page is required', 'extendify') : null}
|
55 |
+
onKeyDown={(e) => {
|
56 |
+
if (['Enter', 'Space', ' '].includes(e.key)) {
|
57 |
+
if (!lock) toggle('pages', page)
|
58 |
+
}
|
59 |
+
}}
|
60 |
+
onClick={() => lock || toggle('pages', page)}>
|
61 |
+
<div className="border-gray-100 border-b p-2 flex justify-between min-w-sm">
|
62 |
+
<div
|
63 |
+
className={classNames('flex items-center', {
|
64 |
+
'text-gray-700': !has('pages', page),
|
65 |
+
})}>
|
66 |
+
<span>{page.title}</span>
|
67 |
+
{lock && (
|
68 |
+
<span className="w-4 h-4 text-base leading-none pl-2 mr-6 dashicons dashicons-lock"></span>
|
69 |
+
)}
|
70 |
+
</div>
|
71 |
+
{has('pages', page) && (
|
72 |
+
<Checkmark className="text-partner-primary-bg w-6" />
|
73 |
+
)}
|
74 |
+
</div>
|
75 |
+
<StylePreview
|
76 |
+
blockHeight={blockHeight}
|
77 |
+
key={style?.recordId}
|
78 |
+
style={{
|
79 |
+
...style,
|
80 |
+
code: findTheCode({ template: pageData }),
|
81 |
+
}}
|
82 |
+
/>
|
83 |
+
</div>
|
84 |
+
</div>
|
85 |
+
)
|
86 |
+
}
|
extendify-sdk/src/Onboarding/components/ProgressBar.js
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
export const ProgressBar = ({ currentPageIndex, totalPages }) => {
|
2 |
+
const currentProgress = Math.round(
|
3 |
+
((currentPageIndex + 1) / totalPages) * 100,
|
4 |
+
)
|
5 |
+
const currentPageText = `(${currentPageIndex + 1}/${totalPages})`
|
6 |
+
|
7 |
+
return (
|
8 |
+
<div className="flex-1 hidden md:flex justify-center items-center">
|
9 |
+
<div
|
10 |
+
role="progressbar"
|
11 |
+
aria-valuenow={currentProgress}
|
12 |
+
aria-valuemin="0"
|
13 |
+
aria-valuetext={currentPageText}
|
14 |
+
aria-valuemax="100"
|
15 |
+
className="w-32 bg-gray-200 h-2 rounded-full">
|
16 |
+
<div
|
17 |
+
className="rounded-full bg-partner-primary-bg h-2"
|
18 |
+
style={{
|
19 |
+
width: `${currentProgress}%`,
|
20 |
+
}}></div>
|
21 |
+
</div>
|
22 |
+
<div className="pl-2 flex justify-center">{currentPageText}</div>
|
23 |
+
</div>
|
24 |
+
)
|
25 |
+
}
|
extendify-sdk/src/Onboarding/components/RetryNotice.js
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { Snackbar } from '@wordpress/components'
|
2 |
+
import { __ } from '@wordpress/i18n'
|
3 |
+
|
4 |
+
export const RetryNotice = () => {
|
5 |
+
return (
|
6 |
+
<div className="extendify-onboarding w-full fixed bottom-4 px-4 flex justify-end z-max">
|
7 |
+
<div className="shadow-2xl">
|
8 |
+
<Snackbar>
|
9 |
+
{__(
|
10 |
+
'Just a moment, this is taking longer than expected.',
|
11 |
+
'extendify',
|
12 |
+
)}
|
13 |
+
</Snackbar>
|
14 |
+
</div>
|
15 |
+
</div>
|
16 |
+
)
|
17 |
+
}
|
extendify-sdk/src/Onboarding/components/StyledPreview.js
ADDED
@@ -0,0 +1,214 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { BlockPreview, transformStyles } from '@wordpress/block-editor'
|
2 |
+
import { rawHandler } from '@wordpress/blocks'
|
3 |
+
import { useState, useRef, useEffect, useMemo } from '@wordpress/element'
|
4 |
+
import { __ } from '@wordpress/i18n'
|
5 |
+
import classNames from 'classnames'
|
6 |
+
import { parseThemeJson } from '@onboarding/api/WPApi'
|
7 |
+
import { useIsMounted } from '@onboarding/hooks/useIsMounted'
|
8 |
+
import { lowerImageQuality } from '@onboarding/lib/util'
|
9 |
+
import { useUserSelectionStore } from '@onboarding/state/UserSelections'
|
10 |
+
import { SpinnerIcon } from '@onboarding/svg'
|
11 |
+
|
12 |
+
export const StylePreview = ({
|
13 |
+
style,
|
14 |
+
selectStyle,
|
15 |
+
blockHeight,
|
16 |
+
onHover = null,
|
17 |
+
}) => {
|
18 |
+
const siteType = useUserSelectionStore((state) => state.siteType)
|
19 |
+
const isMounted = useIsMounted()
|
20 |
+
const [code, setCode] = useState('')
|
21 |
+
const [themeJson, setThemeJson] = useState('')
|
22 |
+
const [loaded, setLoaded] = useState(false)
|
23 |
+
const [inView, setInView] = useState(false)
|
24 |
+
const [hoverCleanup, setHoverCleanup] = useState(null)
|
25 |
+
const previewContainer = useRef(null)
|
26 |
+
const content = useRef(null)
|
27 |
+
const blockRef = useRef(null)
|
28 |
+
const observer = useRef(null)
|
29 |
+
const blocks = useMemo(
|
30 |
+
() => rawHandler({ HTML: lowerImageQuality(code) }),
|
31 |
+
[code],
|
32 |
+
)
|
33 |
+
const transformedStyles = useMemo(
|
34 |
+
() => transformStyles([{ css: themeJson }], '.editor-styles-wrapper'),
|
35 |
+
[themeJson],
|
36 |
+
)
|
37 |
+
|
38 |
+
useEffect(() => {
|
39 |
+
// If no theme provided, just load normally.
|
40 |
+
if (!style?.themeJson) {
|
41 |
+
setThemeJson('{}')
|
42 |
+
return
|
43 |
+
}
|
44 |
+
parseThemeJson(style.themeJson).then((res) => {
|
45 |
+
setThemeJson(res?.styles ?? '{}')
|
46 |
+
})
|
47 |
+
}, [style?.themeJson])
|
48 |
+
|
49 |
+
useEffect(() => {
|
50 |
+
if (!themeJson || !style?.code) return
|
51 |
+
const code = [style?.headerCode, style?.code, style?.footerCode]
|
52 |
+
.filter(Boolean)
|
53 |
+
.join('')
|
54 |
+
.replace(
|
55 |
+
/<!-- wp:navigation {(.|\n)*?(\/wp:navigation -->|} \/-->)/g,
|
56 |
+
'<!-- wp:paragraph {"className":"tmp-nav"} --><p class="tmp-nav">Home | About | Contact</p ><!-- /wp:paragraph -->',
|
57 |
+
)
|
58 |
+
setCode(code)
|
59 |
+
}, [siteType?.slug, themeJson, style])
|
60 |
+
|
61 |
+
useEffect(() => {
|
62 |
+
let raf1, raf2
|
63 |
+
if (!content.current || !loaded) return
|
64 |
+
const p = previewContainer.current
|
65 |
+
const scale = p.offsetWidth / 1400
|
66 |
+
const iframe = content.current
|
67 |
+
const body = iframe.contentDocument.body
|
68 |
+
if (body?.style) {
|
69 |
+
body.style.transitionProperty = 'all'
|
70 |
+
body.style.top = 0
|
71 |
+
}
|
72 |
+
|
73 |
+
const handleIn = () => {
|
74 |
+
if (!body.offsetHeight) return
|
75 |
+
const dynBlockHeight =
|
76 |
+
(blockRef?.current?.offsetHeight ?? blockHeight) - 32
|
77 |
+
const bodyHeight =
|
78 |
+
body.getBoundingClientRect().height - dynBlockHeight / scale
|
79 |
+
body.style.transitionDuration =
|
80 |
+
Math.max(bodyHeight * 2, 3000) + 'ms'
|
81 |
+
raf1 = window.requestAnimationFrame(() => {
|
82 |
+
body.style.top = Math.max(0, bodyHeight) * -1 + 'px'
|
83 |
+
})
|
84 |
+
}
|
85 |
+
const handleOut = () => {
|
86 |
+
if (!body.offsetHeight) return
|
87 |
+
const dynBlockHeight =
|
88 |
+
(blockRef?.current?.offsetHeight ?? blockHeight) - 32
|
89 |
+
const bodyHeight = body.offsetHeight - dynBlockHeight / scale
|
90 |
+
body.style.transitionDuration = bodyHeight + 'ms'
|
91 |
+
raf2 = window.requestAnimationFrame(() => {
|
92 |
+
body.style.top = 0
|
93 |
+
})
|
94 |
+
}
|
95 |
+
|
96 |
+
p.addEventListener('focus', handleIn)
|
97 |
+
p.addEventListener('mouseenter', handleIn)
|
98 |
+
p.addEventListener('blur', handleOut)
|
99 |
+
p.addEventListener('mouseleave', handleOut)
|
100 |
+
return () => {
|
101 |
+
window.cancelAnimationFrame(raf1)
|
102 |
+
window.cancelAnimationFrame(raf2)
|
103 |
+
p.removeEventListener('focus', handleIn)
|
104 |
+
p.removeEventListener('mouseenter', handleIn)
|
105 |
+
p.removeEventListener('blur', handleOut)
|
106 |
+
p.removeEventListener('mouseleave', handleOut)
|
107 |
+
}
|
108 |
+
}, [blockHeight, loaded])
|
109 |
+
|
110 |
+
useEffect(() => {
|
111 |
+
if (!blocks?.length || !inView) return
|
112 |
+
let iframe
|
113 |
+
|
114 |
+
// Inserts theme styles after iframe is loaded
|
115 |
+
const handle = () => {
|
116 |
+
if (!iframe.contentDocument?.getElementById('ext-tj')) {
|
117 |
+
iframe.contentDocument?.head?.insertAdjacentHTML(
|
118 |
+
'beforeend',
|
119 |
+
`<style id="ext-tj">${transformedStyles}</style>`,
|
120 |
+
)
|
121 |
+
}
|
122 |
+
content.current = iframe
|
123 |
+
setTimeout(() => {
|
124 |
+
if (isMounted.current) setLoaded(true)
|
125 |
+
}, 500)
|
126 |
+
}
|
127 |
+
// The callback will attach a load event to the iframe
|
128 |
+
const observer = new MutationObserver(() => {
|
129 |
+
iframe = previewContainer.current.querySelector('iframe[title]')
|
130 |
+
iframe.addEventListener('load', handle)
|
131 |
+
setTimeout(() => {
|
132 |
+
// In some cases, the load event doesn't fire.
|
133 |
+
handle()
|
134 |
+
}, 2000)
|
135 |
+
observer.disconnect()
|
136 |
+
})
|
137 |
+
// observe the ref for when the iframe is injected by wp
|
138 |
+
observer.observe(previewContainer.current, {
|
139 |
+
attributes: false,
|
140 |
+
childList: true,
|
141 |
+
subtree: false,
|
142 |
+
})
|
143 |
+
return () => {
|
144 |
+
observer.disconnect()
|
145 |
+
iframe?.removeEventListener('load', handle)
|
146 |
+
}
|
147 |
+
}, [blocks, transformedStyles, isMounted, inView])
|
148 |
+
|
149 |
+
useEffect(() => {
|
150 |
+
// Only trigger the mutation observer if we are in view
|
151 |
+
if (!observer.current) {
|
152 |
+
observer.current = new IntersectionObserver((entries) => {
|
153 |
+
if (entries[0].isIntersecting) {
|
154 |
+
setInView(true)
|
155 |
+
}
|
156 |
+
})
|
157 |
+
}
|
158 |
+
observer.current.observe(blockRef.current)
|
159 |
+
return () => {
|
160 |
+
observer.current.disconnect()
|
161 |
+
}
|
162 |
+
}, [])
|
163 |
+
|
164 |
+
return (
|
165 |
+
<>
|
166 |
+
{loaded && code ? null : (
|
167 |
+
<div className="m-6 absolute inset-0 bg-gray-50 flex items-center justify-center">
|
168 |
+
<SpinnerIcon className="spin w-8" />
|
169 |
+
</div>
|
170 |
+
)}
|
171 |
+
<div
|
172 |
+
ref={blockRef}
|
173 |
+
role={selectStyle ? 'button' : undefined}
|
174 |
+
tabIndex={selectStyle ? 0 : undefined}
|
175 |
+
aria-label={
|
176 |
+
selectStyle ? __('Press to select', 'extendify') : undefined
|
177 |
+
}
|
178 |
+
className={classNames(
|
179 |
+
'w-full overflow-hidden bg-transparent z-10',
|
180 |
+
{
|
181 |
+
relative: loaded,
|
182 |
+
'absolute opacity-0': !loaded,
|
183 |
+
'button-focus button-card': selectStyle,
|
184 |
+
},
|
185 |
+
)}
|
186 |
+
onKeyDown={(e) => {
|
187 |
+
if (['Enter', 'Space', ' '].includes(e.key)) {
|
188 |
+
selectStyle && selectStyle(style)
|
189 |
+
}
|
190 |
+
}}
|
191 |
+
onMouseEnter={() => {
|
192 |
+
if (!onHover) return
|
193 |
+
setHoverCleanup(onHover)
|
194 |
+
}}
|
195 |
+
onMouseLeave={() => {
|
196 |
+
if (hoverCleanup) {
|
197 |
+
hoverCleanup()
|
198 |
+
setHoverCleanup(null)
|
199 |
+
}
|
200 |
+
}}
|
201 |
+
onClick={selectStyle ? () => selectStyle(style) : () => {}}>
|
202 |
+
<div ref={previewContainer} className="relative rounded-lg">
|
203 |
+
{inView ? (
|
204 |
+
<BlockPreview
|
205 |
+
blocks={blocks}
|
206 |
+
viewportWidth={1400}
|
207 |
+
live={false}
|
208 |
+
/>
|
209 |
+
) : null}
|
210 |
+
</div>
|
211 |
+
</div>
|
212 |
+
</>
|
213 |
+
)
|
214 |
+
}
|
extendify-sdk/src/Onboarding/hooks/useAnimatedHeight.js
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { useEffect } from '@wordpress/element'
|
2 |
+
|
3 |
+
export const useAnimatedHeight = (preview, blockHeight, ready) => {
|
4 |
+
useEffect(() => {
|
5 |
+
let raf1, raf2
|
6 |
+
if (!preview.current) return
|
7 |
+
const p = preview.current
|
8 |
+
const iframe = p?.querySelector('iframe[title]')
|
9 |
+
if (!iframe) return
|
10 |
+
const content = iframe.contentWindow.document.body
|
11 |
+
const scale = preview.offsetWidth / 1400
|
12 |
+
iframe.style.maxHeight = `${blockHeight / scale}px`
|
13 |
+
|
14 |
+
const handleIn = () => {
|
15 |
+
// The live component changes over time so easier to query on demand
|
16 |
+
const height = content.offsetHeight
|
17 |
+
content.style.transitionDuration = Math.max(height * 3, 3000) + 'ms'
|
18 |
+
raf1 = window.requestAnimationFrame(() => {
|
19 |
+
content.style.top = Math.abs(height - blockHeight) * -1 + 'px'
|
20 |
+
})
|
21 |
+
}
|
22 |
+
const handleOut = () => {
|
23 |
+
const height = content.offsetHeight
|
24 |
+
content.style.transitionDuration = height / 1.5 + 'ms'
|
25 |
+
raf2 = window.requestAnimationFrame(() => {
|
26 |
+
content.style.top = 0
|
27 |
+
})
|
28 |
+
}
|
29 |
+
|
30 |
+
p.addEventListener('focus', handleIn)
|
31 |
+
p.addEventListener('mouseenter', handleIn)
|
32 |
+
p.addEventListener('blur', handleOut)
|
33 |
+
p.addEventListener('mouseleave', handleOut)
|
34 |
+
return () => {
|
35 |
+
window.cancelAnimationFrame(raf1)
|
36 |
+
window.cancelAnimationFrame(raf2)
|
37 |
+
p.removeEventListener('focus', handleIn)
|
38 |
+
p.removeEventListener('mouseenter', handleIn)
|
39 |
+
p.removeEventListener('blur', handleOut)
|
40 |
+
p.removeEventListener('mouseleave', handleOut)
|
41 |
+
}
|
42 |
+
}, [blockHeight, preview, ready])
|
43 |
+
}
|
extendify-sdk/src/Onboarding/hooks/useCache.js
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { useSWRConfig } from 'swr'
|
2 |
+
|
3 |
+
export const useCache = () => {
|
4 |
+
const { cache } = useSWRConfig()
|
5 |
+
return (keyToMatch) => cache.get(findKey(keyToMatch, cache))
|
6 |
+
}
|
7 |
+
const findKey = (partial, map) => {
|
8 |
+
for (const key of map.keys()) {
|
9 |
+
if (key.match(partial)) return key
|
10 |
+
}
|
11 |
+
}
|
extendify-sdk/src/Onboarding/hooks/useConfetti.js
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { useEffect } from '@wordpress/element'
|
2 |
+
import confetti from 'canvas-confetti'
|
3 |
+
|
4 |
+
export const useConfetti = (config = {}, time = 0) => {
|
5 |
+
useEffect(() => {
|
6 |
+
const secondsFromNow = Date.now() + time
|
7 |
+
const frame = () => {
|
8 |
+
confetti({
|
9 |
+
...config,
|
10 |
+
disableForReducedMotion: true,
|
11 |
+
zIndex: 100000,
|
12 |
+
})
|
13 |
+
if (Date.now() < secondsFromNow) {
|
14 |
+
requestAnimationFrame(frame)
|
15 |
+
}
|
16 |
+
}
|
17 |
+
frame()
|
18 |
+
}, [config, time])
|
19 |
+
}
|
extendify-sdk/src/Onboarding/hooks/useDisableWelcomeGuide.js
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { useSelect, dispatch } from '@wordpress/data'
|
2 |
+
import { useEffect } from '@wordpress/element'
|
3 |
+
|
4 |
+
export const useDisableWelcomeGuide = () => {
|
5 |
+
const isWelcomeGuide = useSelect((select) => {
|
6 |
+
return select('core/edit-post').isFeatureActive('welcomeGuide')
|
7 |
+
}, [])
|
8 |
+
|
9 |
+
useEffect(() => {
|
10 |
+
if (isWelcomeGuide) {
|
11 |
+
dispatch('core/edit-post').toggleFeature('welcomeGuide')
|
12 |
+
}
|
13 |
+
}, [isWelcomeGuide])
|
14 |
+
}
|
extendify-sdk/src/Onboarding/hooks/useFetch.js
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import useSWR from 'swr'
|
2 |
+
|
3 |
+
export const useFetch = (params, fetcher, options = {}) => {
|
4 |
+
const { data: fetchedData, error } = useSWR(params, fetcher, options)
|
5 |
+
const data = fetchedData?.data ?? fetchedData
|
6 |
+
return { data, loading: !data && !error, error }
|
7 |
+
}
|
extendify-sdk/src/Onboarding/hooks/useIsMounted.js
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { useRef, useEffect, useLayoutEffect } from '@wordpress/element'
|
2 |
+
|
3 |
+
export const useIsMounted = () => {
|
4 |
+
const isMounted = useRef(false)
|
5 |
+
|
6 |
+
useEffect(() => {
|
7 |
+
isMounted.current = true
|
8 |
+
return () => (isMounted.current = false)
|
9 |
+
})
|
10 |
+
return isMounted
|
11 |
+
}
|
12 |
+
export const useIsMountedLayout = () => {
|
13 |
+
const isMounted = useRef(false)
|
14 |
+
|
15 |
+
useLayoutEffect(() => {
|
16 |
+
isMounted.current = true
|
17 |
+
return () => (isMounted.current = false)
|
18 |
+
})
|
19 |
+
return isMounted
|
20 |
+
}
|
extendify-sdk/src/Onboarding/hooks/useScrollLock.js
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { useLayoutEffect } from '@wordpress/element'
|
2 |
+
|
3 |
+
export const useBodyScrollLock = () => {
|
4 |
+
useLayoutEffect(() => {
|
5 |
+
const originalStyle = window.getComputedStyle(document.body).overflow
|
6 |
+
document.body.style.overflow = 'hidden'
|
7 |
+
return () => (document.body.style.overflow = originalStyle)
|
8 |
+
}, [])
|
9 |
+
}
|
extendify-sdk/src/Onboarding/hooks/useWarnOnLeave.js
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { useEffect } from '@wordpress/element'
|
2 |
+
|
3 |
+
export const useWarnOnLeave = () => {
|
4 |
+
// Display warning alert if user tries to exit
|
5 |
+
useEffect(() => {
|
6 |
+
const handleUnload = (event) => {
|
7 |
+
event.preventDefault()
|
8 |
+
return (event.returnValue = '')
|
9 |
+
}
|
10 |
+
const opts = { capture: true }
|
11 |
+
window.addEventListener('beforeunload', handleUnload, opts)
|
12 |
+
return () => {
|
13 |
+
window.removeEventListener('beforeunload', handleUnload, opts)
|
14 |
+
}
|
15 |
+
}, [])
|
16 |
+
}
|
extendify-sdk/src/Onboarding/layouts/PageLayout.js
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { __ } from '@wordpress/i18n'
|
2 |
+
import { PageControl } from '@onboarding/components/PageControl'
|
3 |
+
import { Logo } from '@onboarding/svg'
|
4 |
+
|
5 |
+
export const PageLayout = ({ children, includeNav = true }) => {
|
6 |
+
return (
|
7 |
+
<div className="flex flex-col md:flex-row">
|
8 |
+
<div className="bg-partner-primary-bg text-partner-primary-text py-12 px-10 md:h-screen flex flex-col justify-between md:w-40vw md:max-w-md flex-shrink-0">
|
9 |
+
<div className="max-w-sm pr-8">
|
10 |
+
{window.extOnbData?.partnerLogo && (
|
11 |
+
<div className="pb-8">
|
12 |
+
<img
|
13 |
+
src={window.extOnbData.partnerLogo}
|
14 |
+
alt={window.extOnbData?.partnerName ?? ''}
|
15 |
+
/>
|
16 |
+
</div>
|
17 |
+
)}
|
18 |
+
{children[0]}
|
19 |
+
</div>
|
20 |
+
|
21 |
+
<div className="flex items-center space-x-3">
|
22 |
+
<span className="opacity-70 text-xs">
|
23 |
+
{__('Powered by', 'extendify')}
|
24 |
+
</span>
|
25 |
+
<span className="relative">
|
26 |
+
<Logo className="logo text-white w-28" />
|
27 |
+
<span className="absolute -bottom-2 right-3 font-semibold tracking-tight">
|
28 |
+
{__('Launch', 'extendify')}
|
29 |
+
</span>
|
30 |
+
</span>
|
31 |
+
</div>
|
32 |
+
</div>
|
33 |
+
<div className="flex-grow md:h-screen md:overflow-y-scroll">
|
34 |
+
{includeNav ? (
|
35 |
+
<div className="py-4 px-8 sticky top-0 bg-white z-50">
|
36 |
+
<PageControl />
|
37 |
+
</div>
|
38 |
+
) : null}
|
39 |
+
<div className="mt-8 p-8 lg:px-12 flex justify-center">
|
40 |
+
{children[1]}
|
41 |
+
</div>
|
42 |
+
</div>
|
43 |
+
</div>
|
44 |
+
)
|
45 |
+
}
|
extendify-sdk/src/Onboarding/lib/pages.js
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import {
|
2 |
+
Goals,
|
3 |
+
fetcher as goalsFetcher,
|
4 |
+
fetchData as goalsData,
|
5 |
+
} from '@onboarding/pages/Goals'
|
6 |
+
import { Landing } from '@onboarding/pages/Landing'
|
7 |
+
import {
|
8 |
+
SiteInformation,
|
9 |
+
fetcher as siteInfoFetcher,
|
10 |
+
fetchData as siteInfoData,
|
11 |
+
} from '@onboarding/pages/SiteInformation'
|
12 |
+
import {
|
13 |
+
SitePages,
|
14 |
+
fetcher as availablePagesFetcher,
|
15 |
+
fetchData as availablePagesData,
|
16 |
+
} from '@onboarding/pages/SitePages'
|
17 |
+
import { SiteStyle } from '@onboarding/pages/SiteStyle'
|
18 |
+
import { SiteSummary } from '@onboarding/pages/SiteSummary'
|
19 |
+
import {
|
20 |
+
SiteTypeSelect,
|
21 |
+
fetcher as siteTypeFetcher,
|
22 |
+
fetchData as siteTypeData,
|
23 |
+
} from '@onboarding/pages/SiteTypeSelect'
|
24 |
+
|
25 |
+
// import {
|
26 |
+
// SuggestedPlugins,
|
27 |
+
// fetcher as suggestedPluginsFetcher,
|
28 |
+
// fetchData as suggestedPluginsData,
|
29 |
+
// } from '@onboarding/pages/SuggestedPlugins'
|
30 |
+
|
31 |
+
export const pages = [
|
32 |
+
['landing', { component: Landing }],
|
33 |
+
[
|
34 |
+
'site-information',
|
35 |
+
{
|
36 |
+
component: SiteInformation,
|
37 |
+
fetcher: siteInfoFetcher,
|
38 |
+
fetchData: siteInfoData,
|
39 |
+
},
|
40 |
+
],
|
41 |
+
// [
|
42 |
+
// 'suggested-plugins',
|
43 |
+
// {
|
44 |
+
// component: SuggestedPlugins,
|
45 |
+
// fetcher: suggestedPluginsFetcher,
|
46 |
+
// fetchData: suggestedPluginsData,
|
47 |
+
// },
|
48 |
+
// ],
|
49 |
+
[
|
50 |
+
'site-type-select',
|
51 |
+
{
|
52 |
+
component: SiteTypeSelect,
|
53 |
+
fetcher: siteTypeFetcher,
|
54 |
+
fetchData: siteTypeData,
|
55 |
+
},
|
56 |
+
],
|
57 |
+
[
|
58 |
+
'goals',
|
59 |
+
{
|
60 |
+
component: Goals,
|
61 |
+
fetcher: goalsFetcher,
|
62 |
+
fetchData: goalsData,
|
63 |
+
},
|
64 |
+
],
|
65 |
+
['site-style-select', { component: SiteStyle }],
|
66 |
+
[
|
67 |
+
'site-pages-select',
|
68 |
+
{
|
69 |
+
component: SitePages,
|
70 |
+
fetcher: availablePagesFetcher,
|
71 |
+
fetchData: availablePagesData,
|
72 |
+
},
|
73 |
+
],
|
74 |
+
['site-summary', { component: SiteSummary }],
|
75 |
+
]
|
extendify-sdk/src/Onboarding/lib/util.js
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/** Takes each possible code section and filters out undefined */
|
2 |
+
export const findTheCode = (item) =>
|
3 |
+
[item?.template?.code, item?.template?.code2].filter(Boolean).join('')
|
4 |
+
|
5 |
+
/** Removes any hash or qs values from URL - Airtable adds timestamps */
|
6 |
+
export const stripUrlParams = (url) => url?.[0]?.url?.split(/[?#]/)?.[0]
|
7 |
+
|
8 |
+
/** Lowers the quality of images */
|
9 |
+
export const lowerImageQuality = (html) => {
|
10 |
+
return html.replace(/\w+:\/\/\S*(w=(\d*))&\w+\S*"/g, (url, w, width) =>
|
11 |
+
// Could lower the width here if needed
|
12 |
+
url.replace(w, 'w=' + Math.floor(Number(width)) + '&q=10'),
|
13 |
+
)
|
14 |
+
}
|
extendify-sdk/src/Onboarding/lib/wp.js
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { getTemplate } from '@onboarding/api/DataApi'
|
2 |
+
import {
|
3 |
+
updateOption,
|
4 |
+
saveThemeJson as saveThemeJsonWP,
|
5 |
+
createPage,
|
6 |
+
} from '@onboarding/api/WPApi'
|
7 |
+
|
8 |
+
export const createWordpressPages = async (pages, siteType, style) => {
|
9 |
+
const pageIds = {}
|
10 |
+
for (const page of pages) {
|
11 |
+
const template = await getTemplate({
|
12 |
+
siteType: siteType.slug,
|
13 |
+
layoutType: page.slug,
|
14 |
+
baseLayout: page.slug === 'home' ? style?.homeBaseLayout : null,
|
15 |
+
kit: page.slug !== 'home' ? style?.kit : null,
|
16 |
+
})
|
17 |
+
let content = ''
|
18 |
+
if (template?.data) {
|
19 |
+
content = [template?.data?.code, template?.data?.code2]
|
20 |
+
.filter(Boolean)
|
21 |
+
.join('')
|
22 |
+
}
|
23 |
+
|
24 |
+
const name = page.slug
|
25 |
+
// Get content
|
26 |
+
const result = await createPage({
|
27 |
+
title: page.title,
|
28 |
+
name,
|
29 |
+
status: 'publish',
|
30 |
+
content: content,
|
31 |
+
// template: 'blank',
|
32 |
+
})
|
33 |
+
pageIds[name] = { id: result.id, title: page.title }
|
34 |
+
}
|
35 |
+
// When we have home and blog, set reading setting
|
36 |
+
if (pageIds?.home) {
|
37 |
+
await updateOption('show_on_front', 'page')
|
38 |
+
await updateOption('page_on_front', pageIds.home.id)
|
39 |
+
if (pageIds?.blog) await updateOption('page_for_posts', pageIds.blog)
|
40 |
+
}
|
41 |
+
|
42 |
+
// If we've created pages, consider the onboarding in a completed state
|
43 |
+
await updateOption(
|
44 |
+
'extendify_onboarding_completed',
|
45 |
+
new Date().toISOString(),
|
46 |
+
)
|
47 |
+
return pageIds
|
48 |
+
}
|
49 |
+
|
50 |
+
export const saveThemeJson = ({ themeJson }) => saveThemeJsonWP(themeJson)
|
extendify-sdk/src/Onboarding/pages/CreateError.js
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { __ } from '@wordpress/i18n'
|
2 |
+
import { PageLayout } from '@onboarding/layouts/PageLayout'
|
3 |
+
|
4 |
+
export const CreateError = () => {
|
5 |
+
return (
|
6 |
+
<PageLayout includeNav={false}>
|
7 |
+
<div>
|
8 |
+
<h1 className="text-3xl text-white mb-4 mt-0">
|
9 |
+
{__('We encountered an error.', 'extendify')}
|
10 |
+
</h1>
|
11 |
+
</div>
|
12 |
+
<div className="w-full">
|
13 |
+
<p className="mt-0 mb-8 text-base">
|
14 |
+
{__(
|
15 |
+
"We encountered an error that we can't recover from. You can attempt to start over by pressing the button below.",
|
16 |
+
'extendify',
|
17 |
+
)}
|
18 |
+
</p>
|
19 |
+
<div className="flex flex-col items-start space-y-4 text-base">
|
20 |
+
<a
|
21 |
+
href={`${window.extOnbData.site}/wp-admin/post-new.php?extendify=onboarding`}>
|
22 |
+
{__('Start over')}
|
23 |
+
</a>
|
24 |
+
</div>
|
25 |
+
</div>
|
26 |
+
</PageLayout>
|
27 |
+
)
|
28 |
+
}
|
extendify-sdk/src/Onboarding/pages/CreatingSite.js
ADDED
@@ -0,0 +1,120 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { useSelect } from '@wordpress/data'
|
2 |
+
import { useEffect, useState, useCallback } from '@wordpress/element'
|
3 |
+
import { __, sprintf } from '@wordpress/i18n'
|
4 |
+
import { createOrder } from '@onboarding/api/DataApi'
|
5 |
+
import { installPlugin, updateTemplatePart } from '@onboarding/api/WPApi'
|
6 |
+
import { updateOption } from '@onboarding/api/WPApi'
|
7 |
+
import { useWarnOnLeave } from '@onboarding/hooks/useWarnOnLeave'
|
8 |
+
import { PageLayout } from '@onboarding/layouts/PageLayout'
|
9 |
+
import { createWordpressPages, saveThemeJson } from '@onboarding/lib/wp'
|
10 |
+
import { CreateError } from '@onboarding/pages/CreateError'
|
11 |
+
import { useGlobalStore } from '@onboarding/state/Global'
|
12 |
+
import { useUserSelectionStore } from '@onboarding/state/UserSelections'
|
13 |
+
import { Checkmark, SpinnerIcon } from '@onboarding/svg'
|
14 |
+
|
15 |
+
export const CreatingSite = () => {
|
16 |
+
const canLaunch = useUserSelectionStore((state) => state.canLaunch())
|
17 |
+
const { siteType, siteInformation, pages, style, goals, plugins } =
|
18 |
+
useUserSelectionStore()
|
19 |
+
const [info, setInfo] = useState([])
|
20 |
+
const theme = useSelect((select) => select('core').getCurrentTheme())
|
21 |
+
const inform = (msg) => setInfo((info) => [msg, ...info])
|
22 |
+
useWarnOnLeave()
|
23 |
+
const doEverything = useCallback(async () => {
|
24 |
+
if (!canLaunch) {
|
25 |
+
throw new Error(__('Site is not ready to launch.', 'extendify'))
|
26 |
+
}
|
27 |
+
inform(__('Preparing your website', 'extendify'))
|
28 |
+
await updateOption('blogname', siteInformation.title)
|
29 |
+
await new Promise((resolve) => setTimeout(resolve, 2000))
|
30 |
+
inform(__('Installing your theme', 'extendify'))
|
31 |
+
await saveThemeJson(style)
|
32 |
+
if (plugins?.length) {
|
33 |
+
inform(__('Installing plugins', 'extendify'))
|
34 |
+
await Promise.all([
|
35 |
+
...plugins.map((plugin) => installPlugin(plugin.wordpressSlug)),
|
36 |
+
new Promise((resolve) => setTimeout(resolve, 2000)),
|
37 |
+
])
|
38 |
+
}
|
39 |
+
await saveThemeJson(style)
|
40 |
+
await new Promise((resolve) => setTimeout(resolve, 2000))
|
41 |
+
inform(__('Inserting header area', 'extendify'))
|
42 |
+
await updateTemplatePart(
|
43 |
+
`${theme?.stylesheet}//header`,
|
44 |
+
style?.headerCode,
|
45 |
+
)
|
46 |
+
await new Promise((resolve) => setTimeout(resolve, 2000))
|
47 |
+
inform(__('Generating page content', 'extendify'))
|
48 |
+
const pageIds = await createWordpressPages(pages, siteType, style)
|
49 |
+
await new Promise((resolve) => setTimeout(resolve, 2000))
|
50 |
+
inform(__('Inserting footer area', 'extendify'))
|
51 |
+
await updateTemplatePart(
|
52 |
+
`${theme?.stylesheet}//footer`,
|
53 |
+
style?.footerCode,
|
54 |
+
)
|
55 |
+
await new Promise((resolve) => setTimeout(resolve, 2000))
|
56 |
+
inform(__('Finalizing your site', 'extendify'))
|
57 |
+
await createOrder({
|
58 |
+
siteType: [siteType.recordId],
|
59 |
+
style: [style.recordId],
|
60 |
+
pages: pages?.map((p) => p.id),
|
61 |
+
goals: goals?.map((g) => g.id),
|
62 |
+
})
|
63 |
+
return pageIds
|
64 |
+
}, [
|
65 |
+
pages,
|
66 |
+
goals,
|
67 |
+
plugins,
|
68 |
+
siteType,
|
69 |
+
style,
|
70 |
+
canLaunch,
|
71 |
+
theme?.stylesheet,
|
72 |
+
siteInformation.title,
|
73 |
+
])
|
74 |
+
|
75 |
+
useEffect(() => {
|
76 |
+
if (!theme?.stylesheet) return
|
77 |
+
doEverything().then((pageIds) => {
|
78 |
+
// This will load up the finished page
|
79 |
+
useGlobalStore.setState({ generatedPages: pageIds })
|
80 |
+
})
|
81 |
+
}, [doEverything, theme?.stylesheet])
|
82 |
+
|
83 |
+
if (!canLaunch) return <CreateError />
|
84 |
+
return (
|
85 |
+
<PageLayout includeNav={false}>
|
86 |
+
<div>
|
87 |
+
<h1 className="text-3xl text-white mb-4 mt-0">
|
88 |
+
{__('Building your site now!', 'extendify')}
|
89 |
+
</h1>
|
90 |
+
<p className="text-base">
|
91 |
+
{__("Please don't close the window.", 'extendify')}
|
92 |
+
</p>
|
93 |
+
</div>
|
94 |
+
<div className="w-full">
|
95 |
+
<div className="flex flex-col items-start space-y-4">
|
96 |
+
{info.map((step, index) => {
|
97 |
+
if (!index) {
|
98 |
+
return (
|
99 |
+
<div
|
100 |
+
className="text-4xl flex space-x-4 items-center"
|
101 |
+
key={step}>
|
102 |
+
<SpinnerIcon className="spin w-10 mr-2" />
|
103 |
+
{sprintf(step, '...')}
|
104 |
+
</div>
|
105 |
+
)
|
106 |
+
}
|
107 |
+
return (
|
108 |
+
<div
|
109 |
+
className="ml-12 text-base text-gray-500 flex"
|
110 |
+
key={step}>
|
111 |
+
<Checkmark className="text-green-500 w-6 mr-1" />
|
112 |
+
{sprintf(step, '...')}
|
113 |
+
</div>
|
114 |
+
)
|
115 |
+
})}
|
116 |
+
</div>
|
117 |
+
</div>
|
118 |
+
</PageLayout>
|
119 |
+
)
|
120 |
+
}
|
extendify-sdk/src/Onboarding/pages/Finished.js
ADDED
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { __, sprintf } from '@wordpress/i18n'
|
2 |
+
import { addQueryArgs } from '@wordpress/url'
|
3 |
+
import { useConfetti } from '@onboarding/hooks/useConfetti'
|
4 |
+
import { PageLayout } from '@onboarding/layouts/PageLayout'
|
5 |
+
import { useGlobalStore } from '@onboarding/state/Global'
|
6 |
+
import { useUserSelectionStore } from '@onboarding/state/UserSelections'
|
7 |
+
import { Checkmark } from '@onboarding/svg'
|
8 |
+
|
9 |
+
export const Finished = () => {
|
10 |
+
const generatedPages = useGlobalStore((state) => state.generatedPages)
|
11 |
+
const siteType = useUserSelectionStore((state) => state.siteType)
|
12 |
+
// const pages = useUserSelectionStore((state) => state.pages)
|
13 |
+
// const style = useUserSelectionStore((state) => state.style)
|
14 |
+
useConfetti(
|
15 |
+
{
|
16 |
+
particleCount: 2,
|
17 |
+
angle: 60,
|
18 |
+
spread: 55,
|
19 |
+
origin: { x: 0, y: 0.7 },
|
20 |
+
colors: ['var(--ext-partner-theme-primary-text, #ffffff)'],
|
21 |
+
},
|
22 |
+
3000,
|
23 |
+
)
|
24 |
+
return (
|
25 |
+
<PageLayout includeNav={false}>
|
26 |
+
<div>
|
27 |
+
<h1 className="text-3xl text-white mb-4 mt-0">
|
28 |
+
{sprintf(
|
29 |
+
__(
|
30 |
+
'Your site has been successfully created. Enjoy!',
|
31 |
+
'extendify',
|
32 |
+
),
|
33 |
+
siteType?.label?.toLowerCase(),
|
34 |
+
)}
|
35 |
+
</h1>
|
36 |
+
</div>
|
37 |
+
<div className="w-full">
|
38 |
+
<p className="mt-0 mb-8 text-base text-center">
|
39 |
+
{__(
|
40 |
+
'Your site is ready! You can now go to your site and start editing content.',
|
41 |
+
'extendify',
|
42 |
+
)}
|
43 |
+
</p>
|
44 |
+
<div className="text-center w-360 flex flex-col justify-center items-center -mt-150">
|
45 |
+
<Checkmark className="w-16 bg-partner-primary-bg text-partner-primary-text rounded-full" />
|
46 |
+
<h3 className="mb-8">{__('All Done', 'extendify')}</h3>
|
47 |
+
<div className="flex space-x-4">
|
48 |
+
<a
|
49 |
+
className="px-4 py-3 rounded-md bg-gray-200 text-black no-underline hover:bg-partner-primary-bg hover:text-partner-primary-text font-medium"
|
50 |
+
target="_blank"
|
51 |
+
rel="noreferrer"
|
52 |
+
href={window.extOnbData.home}>
|
53 |
+
{__('View Site', 'extendify')}
|
54 |
+
</a>
|
55 |
+
</div>
|
56 |
+
<div className="text-left self-start px-10 py-4 w-full">
|
57 |
+
<h4 className="">{__('New Pages:', 'extendify')}</h4>
|
58 |
+
<div className="">
|
59 |
+
{Object.values(generatedPages)?.map((page) => (
|
60 |
+
<div
|
61 |
+
key={page.id}
|
62 |
+
className="flex items-center mb-2">
|
63 |
+
<Checkmark className="w-6 text-green-500" />
|
64 |
+
<a
|
65 |
+
target="_blank"
|
66 |
+
href={addQueryArgs('post.php', {
|
67 |
+
post: page.id,
|
68 |
+
action: 'edit',
|
69 |
+
})}
|
70 |
+
className="text-primary no-underline hover:underline ml-2 text-base"
|
71 |
+
rel="noreferrer">
|
72 |
+
{page.title}
|
73 |
+
</a>
|
74 |
+
</div>
|
75 |
+
))}
|
76 |
+
</div>
|
77 |
+
</div>
|
78 |
+
</div>
|
79 |
+
</div>
|
80 |
+
</PageLayout>
|
81 |
+
)
|
82 |
+
}
|
extendify-sdk/src/Onboarding/pages/Goals.js
ADDED
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { CheckboxControl } from '@wordpress/components'
|
2 |
+
import { useEffect, useRef } from '@wordpress/element'
|
3 |
+
import { __ } from '@wordpress/i18n'
|
4 |
+
import { getGoals } from '@onboarding/api/DataApi'
|
5 |
+
import { useFetch } from '@onboarding/hooks/useFetch'
|
6 |
+
import { PageLayout } from '@onboarding/layouts/PageLayout'
|
7 |
+
import { usePagesStore } from '@onboarding/state/Pages'
|
8 |
+
import { useUserSelectionStore } from '@onboarding/state/UserSelections'
|
9 |
+
|
10 |
+
export const fetcher = () => getGoals()
|
11 |
+
export const fetchData = () => ({ key: 'goals' })
|
12 |
+
export const Goals = () => {
|
13 |
+
const { data: goals, loading } = useFetch(fetchData, fetcher)
|
14 |
+
const { toggle, has } = useUserSelectionStore()
|
15 |
+
const nextPage = usePagesStore((state) => state.nextPage)
|
16 |
+
const initialFocus = useRef()
|
17 |
+
|
18 |
+
useEffect(() => {
|
19 |
+
if (!initialFocus.current) return
|
20 |
+
const raf = requestAnimationFrame(() =>
|
21 |
+
initialFocus.current.querySelector('input').focus(),
|
22 |
+
)
|
23 |
+
return () => cancelAnimationFrame(raf)
|
24 |
+
}, [initialFocus])
|
25 |
+
|
26 |
+
return (
|
27 |
+
<PageLayout>
|
28 |
+
<div>
|
29 |
+
<h1 className="text-3xl text-white mb-4 mt-0">
|
30 |
+
{__(
|
31 |
+
'What do you want to accomplish with this new site?',
|
32 |
+
'extendify',
|
33 |
+
)}
|
34 |
+
</h1>
|
35 |
+
<p className="text-base opacity-70">
|
36 |
+
{__('You can change these later.', 'extendify')}
|
37 |
+
</p>
|
38 |
+
</div>
|
39 |
+
<div className="w-full">
|
40 |
+
<p className="mt-0 mb-8 text-base">
|
41 |
+
{__('Select the goals relevant to your site:', 'extendify')}
|
42 |
+
</p>
|
43 |
+
{loading ? (
|
44 |
+
<p>{__('Loading...', 'extendify')}</p>
|
45 |
+
) : (
|
46 |
+
<form
|
47 |
+
onSubmit={(e) => {
|
48 |
+
e.preventDefault()
|
49 |
+
nextPage()
|
50 |
+
}}
|
51 |
+
className="w-full max-w-2xl grid lg:grid-cols-2 gap-4 goal-select">
|
52 |
+
{/* Added so forms can be submitted by pressing Enter */}
|
53 |
+
<input type="submit" className="hidden" />
|
54 |
+
{goals &&
|
55 |
+
goals?.map((goal, index) => (
|
56 |
+
<div
|
57 |
+
key={goal.id}
|
58 |
+
className="border p-4"
|
59 |
+
ref={
|
60 |
+
index === 0 ? initialFocus : undefined
|
61 |
+
}>
|
62 |
+
<CheckboxControl
|
63 |
+
label={goal.title}
|
64 |
+
checked={has('goals', goal)}
|
65 |
+
onChange={() => toggle('goals', goal)}
|
66 |
+
/>
|
67 |
+
</div>
|
68 |
+
))}
|
69 |
+
</form>
|
70 |
+
)}
|
71 |
+
</div>
|
72 |
+
</PageLayout>
|
73 |
+
)
|
74 |
+
}
|
extendify-sdk/src/Onboarding/pages/Landing.js
ADDED
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { useEffect, useRef } from '@wordpress/element'
|
2 |
+
import { __ } from '@wordpress/i18n'
|
3 |
+
import { updateOption } from '@onboarding/api/WPApi'
|
4 |
+
import { PageLayout } from '@onboarding/layouts/PageLayout'
|
5 |
+
import { usePagesStore } from '@onboarding/state/Pages'
|
6 |
+
|
7 |
+
export const Landing = () => {
|
8 |
+
const nextPage = usePagesStore((state) => state.nextPage)
|
9 |
+
const continueButton = useRef(null)
|
10 |
+
|
11 |
+
useEffect(() => {
|
12 |
+
const raf = requestAnimationFrame(() => continueButton.current.focus())
|
13 |
+
return () => cancelAnimationFrame(raf)
|
14 |
+
}, [continueButton])
|
15 |
+
|
16 |
+
const handleSkipLaunch = async (e) => {
|
17 |
+
e.preventDefault()
|
18 |
+
|
19 |
+
// Store when Launch is skipped.
|
20 |
+
await updateOption(
|
21 |
+
'extendify_onboarding_skipped',
|
22 |
+
new Date().toISOString(),
|
23 |
+
)
|
24 |
+
|
25 |
+
location.href = window.extOnbData.adminUrl
|
26 |
+
}
|
27 |
+
|
28 |
+
return (
|
29 |
+
<PageLayout>
|
30 |
+
<div>
|
31 |
+
<h1 className="text-3xl text-white mb-4 mt-0">
|
32 |
+
{__('Welcome to Your WordPress Site', 'extendify')}
|
33 |
+
</h1>
|
34 |
+
<p className="text-base opacity-70">
|
35 |
+
{__(
|
36 |
+
"Design and launch your site with our guided experience, or jump right to the WordPress dashboard if you already know what you're doing.",
|
37 |
+
'extendify',
|
38 |
+
)}
|
39 |
+
</p>
|
40 |
+
</div>
|
41 |
+
<div className="">
|
42 |
+
<p className="mt-0 mb-8 text-base">
|
43 |
+
{__('Pick one:', 'extendify')}
|
44 |
+
</p>
|
45 |
+
<div className="lg:flex lg:space-x-8">
|
46 |
+
<button
|
47 |
+
onClick={nextPage}
|
48 |
+
ref={continueButton}
|
49 |
+
type="button"
|
50 |
+
aria-label={__('Press to continue', 'extendify')}
|
51 |
+
className="button-card max-w-sm button-focus">
|
52 |
+
<div
|
53 |
+
className="bg-gray-100 w-full h-64 bg-cover border border-gray-200"
|
54 |
+
style={{
|
55 |
+
backgroundImage: `url(${window.extOnbData.pluginUrl}/public/assets/extendify-preview.png)`,
|
56 |
+
}}
|
57 |
+
/>
|
58 |
+
<p className="font-bold text-lg text-gray-900">
|
59 |
+
{__('Extendify Launch', 'extendify')}
|
60 |
+
</p>
|
61 |
+
<p className="text-base text-gray-900">
|
62 |
+
{__(
|
63 |
+
'Create a super-fast, beautiful, and fully customized site in minutes. Simply answer a few questions and pick a design to get started. Then, everything can be fully customized in the core WordPress editor.',
|
64 |
+
'extendify',
|
65 |
+
)}
|
66 |
+
</p>
|
67 |
+
</button>
|
68 |
+
<a
|
69 |
+
onClick={(e) => handleSkipLaunch(e)}
|
70 |
+
className="button-card max-w-sm button-focus">
|
71 |
+
<div
|
72 |
+
className="bg-gray-100 w-full h-64 bg-cover border border-gray-200"
|
73 |
+
style={{
|
74 |
+
backgroundImage: `url(${window.extOnbData.pluginUrl}/public/assets/wp-admin.png)`,
|
75 |
+
}}
|
76 |
+
/>
|
77 |
+
<p className="font-bold text-lg text-gray-900">
|
78 |
+
{__('WordPress Dashboard', 'extendify')}
|
79 |
+
</p>
|
80 |
+
<p className="text-base text-gray-900">
|
81 |
+
{__(
|
82 |
+
'Are you a WordPress developer and want to go straight to the admin dashboard?',
|
83 |
+
'extendify',
|
84 |
+
)}
|
85 |
+
</p>
|
86 |
+
</a>
|
87 |
+
</div>
|
88 |
+
</div>
|
89 |
+
</PageLayout>
|
90 |
+
)
|
91 |
+
}
|
extendify-sdk/src/Onboarding/pages/SiteInformation.js
ADDED
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { useEffect, useRef } from '@wordpress/element'
|
2 |
+
import { __ } from '@wordpress/i18n'
|
3 |
+
import { getOption } from '@onboarding/api/WPApi'
|
4 |
+
import { useFetch } from '@onboarding/hooks/useFetch'
|
5 |
+
import { PageLayout } from '@onboarding/layouts/PageLayout'
|
6 |
+
import { usePagesStore } from '@onboarding/state/Pages'
|
7 |
+
import { useUserSelectionStore } from '@onboarding/state/UserSelections'
|
8 |
+
|
9 |
+
export const fetcher = async () => {
|
10 |
+
const title = await getOption('blogname')
|
11 |
+
return { title }
|
12 |
+
}
|
13 |
+
export const fetchData = () => ({ key: 'site-info' })
|
14 |
+
export const SiteInformation = () => {
|
15 |
+
const { siteInformation, setSiteInformation } = useUserSelectionStore()
|
16 |
+
const initialFocus = useRef(null)
|
17 |
+
const nextPage = usePagesStore((state) => state.nextPage)
|
18 |
+
const { data: existingSiteInfo } = useFetch(fetchData, fetcher)
|
19 |
+
|
20 |
+
useEffect(() => {
|
21 |
+
const raf = requestAnimationFrame(() => initialFocus.current.focus())
|
22 |
+
return () => cancelAnimationFrame(raf)
|
23 |
+
}, [initialFocus])
|
24 |
+
|
25 |
+
useEffect(() => {
|
26 |
+
if (existingSiteInfo?.title) {
|
27 |
+
setSiteInformation('title', existingSiteInfo.title)
|
28 |
+
}
|
29 |
+
}, [existingSiteInfo, setSiteInformation])
|
30 |
+
|
31 |
+
return (
|
32 |
+
<PageLayout>
|
33 |
+
<div>
|
34 |
+
<h1 className="text-3xl text-white mb-4 mt-0">
|
35 |
+
{__("What's the name of your new site?", 'extendify')}
|
36 |
+
</h1>
|
37 |
+
<p className="text-base opacity-70">
|
38 |
+
{__('You can change this later.', 'extendify')}
|
39 |
+
</p>
|
40 |
+
</div>
|
41 |
+
<div className="w-full">
|
42 |
+
<form
|
43 |
+
onSubmit={(e) => {
|
44 |
+
e.preventDefault()
|
45 |
+
nextPage()
|
46 |
+
}}>
|
47 |
+
<label
|
48 |
+
htmlFor="extendify-site-title-input"
|
49 |
+
className="block mt-0 mb-8 text-base">
|
50 |
+
{__("What's the name of your site?", 'extendify')}
|
51 |
+
</label>
|
52 |
+
<div className="mb-8">
|
53 |
+
<input
|
54 |
+
autoComplete="off"
|
55 |
+
ref={initialFocus}
|
56 |
+
type="text"
|
57 |
+
name="site-title-input"
|
58 |
+
id="extendify-site-title-input"
|
59 |
+
className="w-96 max-w-full border h-12 input-focus"
|
60 |
+
value={siteInformation?.title ?? ''}
|
61 |
+
onChange={(e) =>
|
62 |
+
setSiteInformation('title', e.target.value)
|
63 |
+
}
|
64 |
+
placeholder={__(
|
65 |
+
'Enter your preferred site title...',
|
66 |
+
'extendify',
|
67 |
+
)}
|
68 |
+
/>
|
69 |
+
</div>
|
70 |
+
</form>
|
71 |
+
</div>
|
72 |
+
</PageLayout>
|
73 |
+
)
|
74 |
+
}
|
extendify-sdk/src/Onboarding/pages/SitePages.js
ADDED
@@ -0,0 +1,97 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { CheckboxControl } from '@wordpress/components'
|
2 |
+
import { useState, useEffect } from '@wordpress/element'
|
3 |
+
import { __ } from '@wordpress/i18n'
|
4 |
+
import { getLayoutTypes } from '@onboarding/api/DataApi'
|
5 |
+
import { PagePreview } from '@onboarding/components/PagePreview'
|
6 |
+
import { useFetch } from '@onboarding/hooks/useFetch'
|
7 |
+
import { PageLayout } from '@onboarding/layouts/PageLayout'
|
8 |
+
import { useUserSelectionStore } from '@onboarding/state/UserSelections'
|
9 |
+
|
10 |
+
export const fetcher = async () => {
|
11 |
+
// TODO: these transforms should be moved to the server eventually
|
12 |
+
const layoutTypes = await getLayoutTypes()
|
13 |
+
const pageRecords = layoutTypes?.data?.map((record) => ({
|
14 |
+
id: record.id,
|
15 |
+
slug: record.slug,
|
16 |
+
title: record.title,
|
17 |
+
}))
|
18 |
+
if (!pageRecords?.length) throw new Error('Error fetching pages')
|
19 |
+
|
20 |
+
// Home first and sort the other pages
|
21 |
+
const homePage = pageRecords[0]
|
22 |
+
const otherPages = pageRecords
|
23 |
+
.slice(1)
|
24 |
+
?.sort((a, b) => (a.title > b.title ? 1 : -1))
|
25 |
+
return [homePage, ...(otherPages ?? [])]
|
26 |
+
}
|
27 |
+
export const fetchData = () => {
|
28 |
+
return { key: 'layout-types' }
|
29 |
+
}
|
30 |
+
export const SitePages = () => {
|
31 |
+
const { data: availablePages } = useFetch(fetchData, fetcher)
|
32 |
+
const [toggleAllPages, setToggleAllPages] = useState(false)
|
33 |
+
const { pages: pagesSelected, add, remove } = useUserSelectionStore()
|
34 |
+
|
35 |
+
// Toggle all pages on/off (except home)
|
36 |
+
const updateToggleStatus = () => {
|
37 |
+
availablePages?.map((page) => {
|
38 |
+
if (page.slug === 'home') return
|
39 |
+
toggleAllPages ? remove('pages', page) : add('pages', page)
|
40 |
+
})
|
41 |
+
}
|
42 |
+
|
43 |
+
// Every time the number of selected pages changes, update the checkbox value
|
44 |
+
useEffect(() => {
|
45 |
+
setToggleAllPages(pagesSelected?.length === availablePages?.length)
|
46 |
+
}, [pagesSelected, availablePages])
|
47 |
+
|
48 |
+
// Select all pages by default
|
49 |
+
useEffect(() => {
|
50 |
+
availablePages?.map((page) => add('pages', page))
|
51 |
+
}, [availablePages, add])
|
52 |
+
|
53 |
+
return (
|
54 |
+
<PageLayout>
|
55 |
+
<div>
|
56 |
+
<h1 className="text-3xl text-white mb-4 mt-0">
|
57 |
+
{__('What pages do you want on this site?', 'extendify')}
|
58 |
+
</h1>
|
59 |
+
<p className="text-base opacity-70">
|
60 |
+
{__('You may add more later', 'extendify')}
|
61 |
+
</p>
|
62 |
+
</div>
|
63 |
+
<div className="w-full">
|
64 |
+
<div className="flex justify-between">
|
65 |
+
<p className="mt-0 mb-8 text-base">
|
66 |
+
{__(
|
67 |
+
"Pick the pages you'd like to add to your site",
|
68 |
+
'extendify',
|
69 |
+
)}
|
70 |
+
</p>
|
71 |
+
|
72 |
+
<CheckboxControl
|
73 |
+
label={__('Include all pages', 'extendify')}
|
74 |
+
checked={toggleAllPages}
|
75 |
+
onChange={updateToggleStatus}
|
76 |
+
/>
|
77 |
+
</div>
|
78 |
+
<div className="lg:flex space-y-6 -m-8 lg:space-y-0 flex-wrap">
|
79 |
+
{availablePages?.map((page) => {
|
80 |
+
return (
|
81 |
+
<div
|
82 |
+
className="p-8 relative"
|
83 |
+
style={{ height: 442.5, width: 318.75 }}
|
84 |
+
key={page.id}>
|
85 |
+
<PagePreview
|
86 |
+
lock={page?.slug === 'home'}
|
87 |
+
page={page}
|
88 |
+
blockHeight={442.5}
|
89 |
+
/>
|
90 |
+
</div>
|
91 |
+
)
|
92 |
+
})}
|
93 |
+
</div>
|
94 |
+
</div>
|
95 |
+
</PageLayout>
|
96 |
+
)
|
97 |
+
}
|
extendify-sdk/src/Onboarding/pages/SiteStyle.js
ADDED
@@ -0,0 +1,124 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { useCallback, useEffect, useState } from '@wordpress/element'
|
2 |
+
import { __, sprintf } from '@wordpress/i18n'
|
3 |
+
import { getStyles } from '@onboarding/api/DataApi'
|
4 |
+
import { StylePreview } from '@onboarding/components/StyledPreview'
|
5 |
+
import { useFetch } from '@onboarding/hooks/useFetch'
|
6 |
+
import { useIsMountedLayout } from '@onboarding/hooks/useIsMounted'
|
7 |
+
import { PageLayout } from '@onboarding/layouts/PageLayout'
|
8 |
+
import { findTheCode } from '@onboarding/lib/util'
|
9 |
+
import { usePagesStore } from '@onboarding/state/Pages'
|
10 |
+
import { useUserSelectionStore } from '@onboarding/state/UserSelections'
|
11 |
+
import { SpinnerIcon } from '@onboarding/svg'
|
12 |
+
|
13 |
+
export const fetcher = async (params) => {
|
14 |
+
const res = await getStyles(params)
|
15 |
+
// TODO: these transforms should be moved to the server eventually
|
16 |
+
return res?.data
|
17 |
+
?.map((style) => {
|
18 |
+
return {
|
19 |
+
label: style.title,
|
20 |
+
slug: style.slug,
|
21 |
+
recordId: style.id,
|
22 |
+
themeJson: style?.themeJson,
|
23 |
+
homeBaseLayout: style?.homeBaseLayout,
|
24 |
+
header: style?.header,
|
25 |
+
footer: style?.footer,
|
26 |
+
kit: style?.kit,
|
27 |
+
headerCode: style?.headerCode,
|
28 |
+
footerCode: style?.footerCode,
|
29 |
+
code: findTheCode(style),
|
30 |
+
}
|
31 |
+
})
|
32 |
+
?.filter((style) => style.code)
|
33 |
+
}
|
34 |
+
export const fetchData = (siteType) => {
|
35 |
+
siteType = siteType ?? useUserSelectionStore?.getState().siteType
|
36 |
+
return {
|
37 |
+
key: 'site-style',
|
38 |
+
siteType: siteType?.slug ?? 'default',
|
39 |
+
}
|
40 |
+
}
|
41 |
+
export const SiteStyle = () => {
|
42 |
+
const siteType = useUserSelectionStore((state) => state.siteType)
|
43 |
+
const nextPage = usePagesStore((state) => state.nextPage)
|
44 |
+
const { data, loading } = useFetch(fetchData, fetcher)
|
45 |
+
const isMounted = useIsMountedLayout()
|
46 |
+
const selectStyle = useCallback(
|
47 |
+
(style) => {
|
48 |
+
useUserSelectionStore.getState().setStyle(style)
|
49 |
+
nextPage()
|
50 |
+
},
|
51 |
+
[nextPage],
|
52 |
+
)
|
53 |
+
const [styles, setStyles] = useState([])
|
54 |
+
|
55 |
+
useEffect(() => {
|
56 |
+
if (!data?.length) return
|
57 |
+
;(async () => {
|
58 |
+
for (const style of data) {
|
59 |
+
if (!isMounted.current) return
|
60 |
+
setStyles((styles) => [...styles, style])
|
61 |
+
await new Promise((resolve) => setTimeout(resolve, 1000))
|
62 |
+
}
|
63 |
+
})()
|
64 |
+
}, [data, isMounted])
|
65 |
+
|
66 |
+
useEffect(() => {
|
67 |
+
if (styles?.length && !useUserSelectionStore.getState().style) {
|
68 |
+
useUserSelectionStore.getState().setStyle(styles[0])
|
69 |
+
}
|
70 |
+
}, [styles])
|
71 |
+
|
72 |
+
return (
|
73 |
+
<PageLayout>
|
74 |
+
<div>
|
75 |
+
<h1 className="text-3xl text-white mb-4 mt-0">
|
76 |
+
{sprintf(
|
77 |
+
__(
|
78 |
+
'Now pick a design for your new %s site.',
|
79 |
+
'extendify',
|
80 |
+
),
|
81 |
+
siteType?.label?.toLowerCase(),
|
82 |
+
)}
|
83 |
+
</h1>
|
84 |
+
<p className="text-base opacity-70">
|
85 |
+
{__('You can personalize this later.', 'extendify')}
|
86 |
+
</p>
|
87 |
+
</div>
|
88 |
+
<div className="w-full">
|
89 |
+
<p className="mt-0 mb-8 text-base">
|
90 |
+
{loading
|
91 |
+
? __(
|
92 |
+
'Please wait a moment while we generate style previews...',
|
93 |
+
'extendify',
|
94 |
+
)
|
95 |
+
: __('Pick your style', 'extendify')}
|
96 |
+
</p>
|
97 |
+
<div className="lg:flex space-y-6 -m-6 lg:space-y-0 flex-wrap">
|
98 |
+
{styles?.map((style) => (
|
99 |
+
<div
|
100 |
+
className="p-6 relative"
|
101 |
+
style={{ height: 590, width: 425 }}
|
102 |
+
key={style.recordId}>
|
103 |
+
<StylePreview
|
104 |
+
style={style}
|
105 |
+
selectStyle={selectStyle}
|
106 |
+
blockHeight={590}
|
107 |
+
/>
|
108 |
+
</div>
|
109 |
+
))}
|
110 |
+
{data?.slice(styles?.length).map((data) => (
|
111 |
+
<div
|
112 |
+
key={data.slug}
|
113 |
+
style={{ height: 590, width: 425 }}
|
114 |
+
className="p-6 relative">
|
115 |
+
<div className="bg-gray-50 h-full w-full flex items-center justify-center">
|
116 |
+
<SpinnerIcon className="spin w-8" />
|
117 |
+
</div>
|
118 |
+
</div>
|
119 |
+
))}
|
120 |
+
</div>
|
121 |
+
</div>
|
122 |
+
</PageLayout>
|
123 |
+
)
|
124 |
+
}
|
extendify-sdk/src/Onboarding/pages/SiteSummary.js
ADDED
@@ -0,0 +1,154 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { __ } from '@wordpress/i18n'
|
2 |
+
import { Card } from '@onboarding/components/Card'
|
3 |
+
import { PagePreview } from '@onboarding/components/PagePreview'
|
4 |
+
import { StylePreview } from '@onboarding/components/StyledPreview'
|
5 |
+
import { PageLayout } from '@onboarding/layouts/PageLayout'
|
6 |
+
import { stripUrlParams } from '@onboarding/lib/util'
|
7 |
+
import { usePagesStore } from '@onboarding/state/Pages'
|
8 |
+
import { useUserSelectionStore } from '@onboarding/state/UserSelections'
|
9 |
+
|
10 |
+
export const SiteSummary = () => {
|
11 |
+
const { siteType, style, pages, plugins } = useUserSelectionStore()
|
12 |
+
const setPage = usePagesStore((state) => state.setPage)
|
13 |
+
|
14 |
+
return (
|
15 |
+
<PageLayout>
|
16 |
+
<div>
|
17 |
+
<h1 className="text-3xl text-white mb-4 mt-0">
|
18 |
+
{__("Let's launch your site!", 'extendify')}
|
19 |
+
</h1>
|
20 |
+
<p className="text-base">
|
21 |
+
{__('Review your site configuration.', 'extendify')}
|
22 |
+
</p>
|
23 |
+
</div>
|
24 |
+
<div className="w-full">
|
25 |
+
<p className="mt-0 mb-8 text-base">
|
26 |
+
{__('Site settings', 'extendify')}
|
27 |
+
</p>
|
28 |
+
<div className="flex flex-col space-y-8">
|
29 |
+
<div className="flex items-center">
|
30 |
+
<div className="w-20 flex-shrink-0 text-base">
|
31 |
+
{__('Industry:', 'extendify')}
|
32 |
+
</div>
|
33 |
+
{siteType?.label ? (
|
34 |
+
<div
|
35 |
+
className="p-4 py-2 rounded-lg text-base flex bg-transparent border border-gray-600 cursor-pointer"
|
36 |
+
onClick={() => setPage('site-type-select')}
|
37 |
+
title={__(
|
38 |
+
'Press to change the site type',
|
39 |
+
'extendify',
|
40 |
+
)}>
|
41 |
+
{siteType.label}
|
42 |
+
</div>
|
43 |
+
) : (
|
44 |
+
<button
|
45 |
+
onClick={() => setPage('site-type-select')}
|
46 |
+
className="bg-transparent text-partner-primary underline text-base">
|
47 |
+
{__('Press to set a site type', 'extendify')}
|
48 |
+
</button>
|
49 |
+
)}
|
50 |
+
</div>
|
51 |
+
<div className="flex items-start">
|
52 |
+
<div className="w-20 flex-shrink-0 text-base">
|
53 |
+
{__('Style:', 'extendify')}
|
54 |
+
</div>
|
55 |
+
{style?.label ? (
|
56 |
+
<div
|
57 |
+
className="cursor-pointer overflow-hidden border rounded-lg"
|
58 |
+
onClick={() => setPage('site-style-select')}
|
59 |
+
title={__(
|
60 |
+
'Press to change the site style',
|
61 |
+
'extendify',
|
62 |
+
)}>
|
63 |
+
<div
|
64 |
+
className="p-2 relative"
|
65 |
+
style={{ height: 354, width: 255 }}
|
66 |
+
key={style.recordId}>
|
67 |
+
<StylePreview
|
68 |
+
style={style}
|
69 |
+
blockHeight={354}
|
70 |
+
/>
|
71 |
+
</div>
|
72 |
+
</div>
|
73 |
+
) : (
|
74 |
+
<button
|
75 |
+
onClick={() => setPage('site-style-select')}
|
76 |
+
className="bg-transparent text-partner-primary underline text-base">
|
77 |
+
{__('Press to set a style type', 'extendify')}
|
78 |
+
</button>
|
79 |
+
)}
|
80 |
+
</div>
|
81 |
+
<div className="flex items-start">
|
82 |
+
<div className="w-20 flex-shrink-0 text-base">
|
83 |
+
{__('Pages:', 'extendify')}
|
84 |
+
</div>
|
85 |
+
{pages.length > 0 ? (
|
86 |
+
<div
|
87 |
+
className="flex items-start space-x-2 cursor-pointer w-full"
|
88 |
+
onClick={() => setPage('site-pages-select')}
|
89 |
+
title={__(
|
90 |
+
'Press to change the selected pages',
|
91 |
+
'extendify',
|
92 |
+
)}>
|
93 |
+
<div className="lg:flex space-y-6 -m-8 lg:space-y-0 flex-wrap">
|
94 |
+
{pages?.map((page) => {
|
95 |
+
return (
|
96 |
+
<div
|
97 |
+
className="p-8 relative"
|
98 |
+
style={{
|
99 |
+
height: 354,
|
100 |
+
width: 255,
|
101 |
+
}}
|
102 |
+
key={page.id}>
|
103 |
+
<PagePreview
|
104 |
+
displayOnly={true}
|
105 |
+
page={page}
|
106 |
+
blockHeight={175}
|
107 |
+
/>
|
108 |
+
</div>
|
109 |
+
)
|
110 |
+
})}
|
111 |
+
</div>
|
112 |
+
</div>
|
113 |
+
) : (
|
114 |
+
<button
|
115 |
+
onClick={() => setPage('site-pages-select')}
|
116 |
+
className="bg-transparent text-partner-primary underline text-base">
|
117 |
+
{__('Press to set your pages', 'extendify')}
|
118 |
+
</button>
|
119 |
+
)}
|
120 |
+
</div>
|
121 |
+
{plugins.length > 0 ? (
|
122 |
+
<div className="flex items-start">
|
123 |
+
<div className="w-20 flex-shrink-0 text-base">
|
124 |
+
{__('Plugins:', 'extendify')}
|
125 |
+
</div>
|
126 |
+
<div
|
127 |
+
className="flex items-start space-x-2 cursor-pointer w-full"
|
128 |
+
onClick={() => setPage('suggested-plugins')}
|
129 |
+
title={__(
|
130 |
+
'Press to change the selected plugins',
|
131 |
+
'extendify',
|
132 |
+
)}>
|
133 |
+
<div className="grid w-full grid-cols-3 gap-4">
|
134 |
+
{plugins.map((plugin) => (
|
135 |
+
<Card
|
136 |
+
key={plugin.id}
|
137 |
+
lock={true}
|
138 |
+
image={stripUrlParams(
|
139 |
+
plugin.previewImage,
|
140 |
+
)}
|
141 |
+
name={plugin.name}
|
142 |
+
heading={plugin.heading}
|
143 |
+
description={plugin.description}
|
144 |
+
/>
|
145 |
+
))}
|
146 |
+
</div>
|
147 |
+
</div>
|
148 |
+
</div>
|
149 |
+
) : null}
|
150 |
+
</div>
|
151 |
+
</div>
|
152 |
+
</PageLayout>
|
153 |
+
)
|
154 |
+
}
|
extendify-sdk/src/Onboarding/pages/SiteTypeSelect.js
ADDED
@@ -0,0 +1,187 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { useEffect, useState, useRef } from '@wordpress/element'
|
2 |
+
import { __ } from '@wordpress/i18n'
|
3 |
+
import { mutate } from 'swr'
|
4 |
+
import { getSiteTypes } from '@onboarding/api/DataApi'
|
5 |
+
import { updateSiteType } from '@onboarding/api/LibraryApi'
|
6 |
+
import { useFetch } from '@onboarding/hooks/useFetch'
|
7 |
+
import { PageLayout } from '@onboarding/layouts/PageLayout'
|
8 |
+
import { usePagesStore } from '@onboarding/state/Pages'
|
9 |
+
import { useUserSelectionStore } from '@onboarding/state/UserSelections'
|
10 |
+
import { SearchIcon, LeftArrowIcon } from '@onboarding/svg'
|
11 |
+
import {
|
12 |
+
fetcher as styleFetcher,
|
13 |
+
fetchData as styleFetchData,
|
14 |
+
} from './SiteStyle'
|
15 |
+
|
16 |
+
export const fetcher = () => getSiteTypes()
|
17 |
+
export const fetchData = () => ({ key: 'site-types' })
|
18 |
+
export const SiteTypeSelect = () => {
|
19 |
+
const siteType = useUserSelectionStore((state) => state.siteType)
|
20 |
+
const nextPage = usePagesStore((state) => state.nextPage)
|
21 |
+
const [visibleSiteTypes, setVisibleSiteTypes] = useState([])
|
22 |
+
const [search, setSearch] = useState('')
|
23 |
+
const [showExamples, setShowExamples] = useState(true)
|
24 |
+
const searchRef = useRef(null)
|
25 |
+
const { data: siteTypes, loading } = useFetch(fetchData, fetcher)
|
26 |
+
|
27 |
+
useEffect(() => {
|
28 |
+
const raf = requestAnimationFrame(() => searchRef.current.focus())
|
29 |
+
return () => cancelAnimationFrame(raf)
|
30 |
+
}, [searchRef])
|
31 |
+
|
32 |
+
useEffect(() => {
|
33 |
+
if (loading) return
|
34 |
+
if (siteType?.slug) return
|
35 |
+
const defaultSiteType = siteTypes?.find(
|
36 |
+
(record) => record.slug === 'default',
|
37 |
+
)
|
38 |
+
if (defaultSiteType) {
|
39 |
+
useUserSelectionStore.getState().setSiteType({
|
40 |
+
label: defaultSiteType.title,
|
41 |
+
recordId: defaultSiteType.id,
|
42 |
+
slug: defaultSiteType.slug,
|
43 |
+
})
|
44 |
+
}
|
45 |
+
}, [loading, siteType?.slug, siteTypes])
|
46 |
+
|
47 |
+
useEffect(() => {
|
48 |
+
if (loading) return
|
49 |
+
if (search?.length > 0) {
|
50 |
+
setVisibleSiteTypes(
|
51 |
+
siteTypes?.filter((option) => {
|
52 |
+
const { title, keywords } = option
|
53 |
+
const s = search?.toLowerCase()
|
54 |
+
if (!s) return true
|
55 |
+
if (title.toLowerCase().indexOf(s) > -1) return true
|
56 |
+
if (!keywords?.length) return false
|
57 |
+
return keywords.find(
|
58 |
+
(value) => value.toLowerCase().indexOf(s) > -1,
|
59 |
+
)
|
60 |
+
}),
|
61 |
+
)
|
62 |
+
return
|
63 |
+
}
|
64 |
+
// If search = '' then show the examples
|
65 |
+
setVisibleSiteTypes(siteTypes?.filter((i) => i.featured))
|
66 |
+
setShowExamples(true)
|
67 |
+
}, [siteTypes, search, loading])
|
68 |
+
|
69 |
+
useEffect(() => {
|
70 |
+
if (loading) return
|
71 |
+
setVisibleSiteTypes(
|
72 |
+
showExamples ? siteTypes.filter((i) => i.featured) : siteTypes,
|
73 |
+
)
|
74 |
+
}, [siteTypes, showExamples, loading])
|
75 |
+
|
76 |
+
const selectSiteType = async (optionValue) => {
|
77 |
+
useUserSelectionStore.getState().setSiteType({
|
78 |
+
label: optionValue.title,
|
79 |
+
recordId: optionValue.id,
|
80 |
+
slug: optionValue.slug,
|
81 |
+
})
|
82 |
+
|
83 |
+
// Update the site type in the library
|
84 |
+
window.localStorage.removeItem('extendify-global-state')
|
85 |
+
await updateSiteType({
|
86 |
+
siteType: {
|
87 |
+
title: optionValue.title,
|
88 |
+
slug: optionValue.slug,
|
89 |
+
},
|
90 |
+
})
|
91 |
+
nextPage()
|
92 |
+
}
|
93 |
+
|
94 |
+
return (
|
95 |
+
<PageLayout>
|
96 |
+
<div>
|
97 |
+
<h1 className="text-3xl text-white mb-4 mt-0">
|
98 |
+
{__('What is your site about?', 'extendify')}
|
99 |
+
</h1>
|
100 |
+
<p className="text-base opacity-70">
|
101 |
+
{__(
|
102 |
+
'Search for the industry that best suits your site.',
|
103 |
+
'extendify',
|
104 |
+
)}
|
105 |
+
</p>
|
106 |
+
</div>
|
107 |
+
<div className="w-80">
|
108 |
+
<p className="mt-0 mb-8 text-base">
|
109 |
+
{__('Choose a site industry:', 'extendify')}
|
110 |
+
</p>
|
111 |
+
<div className="search-panel flex items-center justify-center relative mb-8">
|
112 |
+
<input
|
113 |
+
ref={searchRef}
|
114 |
+
type="text"
|
115 |
+
className="w-full border h-12 input-focus"
|
116 |
+
value={search}
|
117 |
+
onChange={(e) => setSearch(e.target.value)}
|
118 |
+
placeholder={__('Search...', 'extendify')}
|
119 |
+
/>
|
120 |
+
<SearchIcon className="icon-search" />
|
121 |
+
</div>
|
122 |
+
{loading && <p>{__('Loading...', 'extendify')}</p>}
|
123 |
+
{visibleSiteTypes?.length > 0 && (
|
124 |
+
<div>
|
125 |
+
<div className="flex justify-between mb-3">
|
126 |
+
<p className="text-left uppercase text-xss m-0">
|
127 |
+
{__('Industries', 'extendify')}
|
128 |
+
</p>
|
129 |
+
{search?.length > 0 ? null : (
|
130 |
+
<button
|
131 |
+
type="button"
|
132 |
+
className="bg-transparent hover:text-partner-primary-bg p-0 text-partner-primary-bg text-xs underline"
|
133 |
+
onClick={() => {
|
134 |
+
setShowExamples((show) => !show)
|
135 |
+
searchRef.current.focus()
|
136 |
+
}}>
|
137 |
+
{showExamples
|
138 |
+
? __('Show all', 'extendify')
|
139 |
+
: __('Show less', 'extendify')}
|
140 |
+
</button>
|
141 |
+
)}
|
142 |
+
</div>
|
143 |
+
<div
|
144 |
+
className="overflow-y-auto p-2 -m-2"
|
145 |
+
style={{
|
146 |
+
maxHeight: '360px',
|
147 |
+
}}>
|
148 |
+
{visibleSiteTypes.map((option) => (
|
149 |
+
<SelectButton
|
150 |
+
key={option.id}
|
151 |
+
selectSiteType={selectSiteType}
|
152 |
+
option={option}
|
153 |
+
/>
|
154 |
+
))}
|
155 |
+
</div>
|
156 |
+
</div>
|
157 |
+
)}
|
158 |
+
</div>
|
159 |
+
</PageLayout>
|
160 |
+
)
|
161 |
+
}
|
162 |
+
|
163 |
+
const SelectButton = ({ option, selectSiteType }) => {
|
164 |
+
const hoveringTimeout = useRef(0)
|
165 |
+
return (
|
166 |
+
<button
|
167 |
+
onClick={() => selectSiteType(option)}
|
168 |
+
onMouseEnter={() => {
|
169 |
+
// Prefetch style templates when hovering over site type
|
170 |
+
window.clearTimeout(hoveringTimeout.current)
|
171 |
+
hoveringTimeout.current = window.setTimeout(() => {
|
172 |
+
const data = () => styleFetchData(option)
|
173 |
+
mutate(data, (cache) => {
|
174 |
+
if (cache?.length) return cache
|
175 |
+
return styleFetcher(data())
|
176 |
+
})
|
177 |
+
}, 100)
|
178 |
+
}}
|
179 |
+
onMouseLeave={() => {
|
180 |
+
window.clearTimeout(hoveringTimeout.current)
|
181 |
+
}}
|
182 |
+
className="flex bg-gray-100 hover:bg-gray-200 items-center justify-between mb-2 p-4 py-3 relative w-full button-focus">
|
183 |
+
<span>{option.title}</span>
|
184 |
+
<LeftArrowIcon />
|
185 |
+
</button>
|
186 |
+
)
|
187 |
+
}
|
extendify-sdk/src/Onboarding/pages/SuggestedPlugins.js
ADDED
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { CheckboxControl } from '@wordpress/components'
|
2 |
+
import { useCallback, useEffect, useMemo } from '@wordpress/element'
|
3 |
+
import { __ } from '@wordpress/i18n'
|
4 |
+
import { getSuggestedPlugins } from '@onboarding/api/DataApi'
|
5 |
+
import { Card } from '@onboarding/components/Card'
|
6 |
+
import { useFetch } from '@onboarding/hooks/useFetch'
|
7 |
+
import { PageLayout } from '@onboarding/layouts/PageLayout'
|
8 |
+
import { stripUrlParams } from '@onboarding/lib/util'
|
9 |
+
import { useUserSelectionStore } from '@onboarding/state/UserSelections'
|
10 |
+
|
11 |
+
export const fetcher = () => getSuggestedPlugins()
|
12 |
+
export const fetchData = () => ({ key: 'suggested-plugins' })
|
13 |
+
export const SuggestedPlugins = () => {
|
14 |
+
// Airtable will tag the image url with a timestamp thus forcing a re-render on every fetch
|
15 |
+
// This will slow down revalidation to only occur if they are idle for 10 minutes
|
16 |
+
const { data: suggestedPlugins } = useFetch(fetchData, fetcher, {
|
17 |
+
dedupingInterval: 60_000,
|
18 |
+
refreshInterval: 0,
|
19 |
+
})
|
20 |
+
const { plugins, goals, toggle, has, add, remove } = useUserSelectionStore()
|
21 |
+
|
22 |
+
const nothingToRecommend = useMemo(() => {
|
23 |
+
if (!goals?.length) return true
|
24 |
+
// If no suggested plugins match any of the goals, return false
|
25 |
+
return !goals?.find((goal) => {
|
26 |
+
return suggestedPlugins?.some((plugin) =>
|
27 |
+
plugin?.goals?.includes(goal?.slug),
|
28 |
+
)
|
29 |
+
})
|
30 |
+
}, [goals, suggestedPlugins])
|
31 |
+
|
32 |
+
const hasGoal = useCallback(
|
33 |
+
(plugin) => {
|
34 |
+
// True if we have no recommendations
|
35 |
+
if (nothingToRecommend) return true
|
36 |
+
// Otherwise check the goal/suggestion overlap
|
37 |
+
const goalSlugs = goals.map((goal) => goal.slug)
|
38 |
+
return plugin?.goals.find((goalSlug) =>
|
39 |
+
goalSlugs.includes(goalSlug),
|
40 |
+
)
|
41 |
+
},
|
42 |
+
[goals, nothingToRecommend],
|
43 |
+
)
|
44 |
+
|
45 |
+
const allSelected =
|
46 |
+
suggestedPlugins?.filter(hasGoal)?.length === plugins?.length
|
47 |
+
|
48 |
+
const toggleAll = () => {
|
49 |
+
suggestedPlugins?.filter(hasGoal)?.forEach((plugin) => {
|
50 |
+
allSelected ? remove('plugins', plugin) : add('plugins', plugin)
|
51 |
+
})
|
52 |
+
}
|
53 |
+
|
54 |
+
useEffect(() => {
|
55 |
+
// Select all plugins that match goals on mount
|
56 |
+
suggestedPlugins
|
57 |
+
?.filter(hasGoal)
|
58 |
+
?.forEach((plugin) => add('plugins', plugin))
|
59 |
+
}, [suggestedPlugins, add, nothingToRecommend, hasGoal])
|
60 |
+
|
61 |
+
return (
|
62 |
+
<PageLayout>
|
63 |
+
<div>
|
64 |
+
<h1 className="text-3xl text-white mb-4 mt-0">
|
65 |
+
{__('Choose from these recommended plugins', 'extendify')}
|
66 |
+
</h1>
|
67 |
+
<p className="text-base opacity-70">
|
68 |
+
{__('You may add more later', 'extendify')}
|
69 |
+
</p>
|
70 |
+
</div>
|
71 |
+
<div className="w-full">
|
72 |
+
<div className="flex justify-between">
|
73 |
+
<p className="mt-0 mb-8 text-base">
|
74 |
+
{__('Install recommended plugins:', 'extendify')}
|
75 |
+
</p>
|
76 |
+
<CheckboxControl
|
77 |
+
label={__('Include all plugins', 'extendify')}
|
78 |
+
checked={allSelected}
|
79 |
+
onChange={toggleAll}
|
80 |
+
/>
|
81 |
+
</div>
|
82 |
+
<div className="grid w-full md:grid-cols-3 gap-8">
|
83 |
+
{suggestedPlugins?.filter(hasGoal)?.map((plugin) => (
|
84 |
+
<Card
|
85 |
+
key={plugin.id}
|
86 |
+
image={stripUrlParams(plugin.previewImage)}
|
87 |
+
selected={has('plugins', plugin)}
|
88 |
+
onClick={() => toggle('plugins', plugin)}
|
89 |
+
name={plugin.name}
|
90 |
+
heading={plugin.heading}
|
91 |
+
description={plugin.description}
|
92 |
+
/>
|
93 |
+
))}
|
94 |
+
</div>
|
95 |
+
</div>
|
96 |
+
</PageLayout>
|
97 |
+
)
|
98 |
+
}
|
extendify-sdk/src/Onboarding/state/Global.js
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import create from 'zustand'
|
2 |
+
import { devtools } from 'zustand/middleware'
|
3 |
+
|
4 |
+
const store = () => ({
|
5 |
+
generating: false,
|
6 |
+
generatedPages: {},
|
7 |
+
})
|
8 |
+
export const useGlobalStore = create(devtools(store))
|
extendify-sdk/src/Onboarding/state/Pages.js
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import create from 'zustand'
|
2 |
+
import { devtools } from 'zustand/middleware'
|
3 |
+
import { pages } from '@onboarding/lib/pages'
|
4 |
+
|
5 |
+
const store = (set, get) => ({
|
6 |
+
pages: new Map(pages),
|
7 |
+
currentPageIndex: 0,
|
8 |
+
count() {
|
9 |
+
return get().pages.size
|
10 |
+
},
|
11 |
+
pageOrder() {
|
12 |
+
return Array.from(get().pages.keys())
|
13 |
+
},
|
14 |
+
currentPageData() {
|
15 |
+
return get().pages.get(get().pageOrder()[get().currentPageIndex])
|
16 |
+
},
|
17 |
+
nextPageData() {
|
18 |
+
const nextIndex = get().currentPageIndex + 1
|
19 |
+
if (nextIndex > get().pageOrder().length - 1) return {}
|
20 |
+
return get().pages.get(get().pageOrder()[nextIndex])
|
21 |
+
},
|
22 |
+
setPage(page) {
|
23 |
+
// If page is a string, get the index
|
24 |
+
if (typeof page === 'string') {
|
25 |
+
page = get().pageOrder().indexOf(page)
|
26 |
+
}
|
27 |
+
if (page > get().pageOrder().length - 1) return
|
28 |
+
if (page < 0) return
|
29 |
+
set({ currentPageIndex: page })
|
30 |
+
},
|
31 |
+
nextPage() {
|
32 |
+
get().setPage(get().currentPageIndex + 1)
|
33 |
+
},
|
34 |
+
previousPage() {
|
35 |
+
get().setPage(get().currentPageIndex - 1)
|
36 |
+
},
|
37 |
+
})
|
38 |
+
export const usePagesStore = create(devtools(store))
|
extendify-sdk/src/Onboarding/state/UserSelections.js
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import create from 'zustand'
|
2 |
+
import { persist, devtools } from 'zustand/middleware'
|
3 |
+
|
4 |
+
const initialState = {
|
5 |
+
siteType: {},
|
6 |
+
siteInformation: {
|
7 |
+
title: '',
|
8 |
+
},
|
9 |
+
style: null,
|
10 |
+
pages: [],
|
11 |
+
plugins: [],
|
12 |
+
goals: [],
|
13 |
+
}
|
14 |
+
const store = (set, get) => ({
|
15 |
+
...initialState,
|
16 |
+
setSiteType(siteType) {
|
17 |
+
set({ siteType })
|
18 |
+
},
|
19 |
+
setSiteInformation(name, value) {
|
20 |
+
const siteInformation = { ...get().siteInformation, [name]: value }
|
21 |
+
set({ siteInformation })
|
22 |
+
},
|
23 |
+
has(type, item) {
|
24 |
+
if (!item?.id) return false
|
25 |
+
return get()[type].some((t) => t.id === item.id)
|
26 |
+
},
|
27 |
+
add(type, item) {
|
28 |
+
if (get().has(type, item)) return
|
29 |
+
set({ [type]: [...get()[type], item] })
|
30 |
+
},
|
31 |
+
remove(type, item) {
|
32 |
+
set({ [type]: get()[type].filter((t) => t.id !== item.id) })
|
33 |
+
},
|
34 |
+
toggle(type, item) {
|
35 |
+
if (get().has(type, item)) {
|
36 |
+
get().remove(type, item)
|
37 |
+
return
|
38 |
+
}
|
39 |
+
get().add(type, item)
|
40 |
+
},
|
41 |
+
setStyle(style) {
|
42 |
+
set({ style })
|
43 |
+
},
|
44 |
+
canLaunch() {
|
45 |
+
// The user can launch if they have a complete selection
|
46 |
+
return (
|
47 |
+
Object.keys(get()?.siteType ?? {})?.length > 0 &&
|
48 |
+
Object.keys(get()?.style ?? {})?.length > 0 &&
|
49 |
+
get()?.pages?.length > 0
|
50 |
+
)
|
51 |
+
},
|
52 |
+
resetState() {
|
53 |
+
set(initialState)
|
54 |
+
},
|
55 |
+
})
|
56 |
+
export const useUserSelectionStore = create(
|
57 |
+
persist(devtools(store), {
|
58 |
+
name: 'extendify',
|
59 |
+
getStorage: () => sessionStorage,
|
60 |
+
}),
|
61 |
+
)
|
extendify-sdk/src/Onboarding/svg/Checkmark.jsx
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { memo } from '@wordpress/element'
|
2 |
+
|
3 |
+
const Checkmark = (props) => {
|
4 |
+
const { className, ...otherProps } = props
|
5 |
+
|
6 |
+
return (
|
7 |
+
<svg
|
8 |
+
className={className}
|
9 |
+
viewBox="0 0 22 22"
|
10 |
+
fill="none"
|
11 |
+
xmlns="http://www.w3.org/2000/svg"
|
12 |
+
{...otherProps}>
|
13 |
+
<path
|
14 |
+
d="M8.72912 13.7449L5.77536 10.7911L4.76953 11.7899L8.72912 15.7495L17.2291 7.24948L16.2304 6.25073L8.72912 13.7449Z"
|
15 |
+
fill="currentColor"
|
16 |
+
/>
|
17 |
+
</svg>
|
18 |
+
)
|
19 |
+
}
|
20 |
+
|
21 |
+
export default memo(Checkmark)
|
extendify-sdk/src/Onboarding/svg/LeftArrowIcon.jsx
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { memo } from '@wordpress/element'
|
2 |
+
|
3 |
+
const LeftArrowIcon = (props) => {
|
4 |
+
const { className, ...otherProps } = props
|
5 |
+
|
6 |
+
return (
|
7 |
+
<svg
|
8 |
+
className={`icon ${className}`}
|
9 |
+
width="24"
|
10 |
+
height="24"
|
11 |
+
viewBox="0 0 24 24"
|
12 |
+
fill="none"
|
13 |
+
xmlns="http://www.w3.org/2000/svg"
|
14 |
+
{...otherProps}>
|
15 |
+
<path
|
16 |
+
d="M10 17.5L15 12L10 6.5"
|
17 |
+
stroke="#1f1f1f"
|
18 |
+
strokeWidth="1.75"
|
19 |
+
/>
|
20 |
+
</svg>
|
21 |
+
)
|
22 |
+
}
|
23 |
+
|
24 |
+
export default memo(LeftArrowIcon)
|
extendify-sdk/src/Onboarding/svg/Logo.jsx
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { memo } from '@wordpress/element'
|
2 |
+
|
3 |
+
const Logo = (props) => {
|
4 |
+
const { className, ...otherProps } = props
|
5 |
+
|
6 |
+
return (
|
7 |
+
<svg
|
8 |
+
className={className}
|
9 |
+
viewBox="0 0 2524 492"
|
10 |
+
xmlns="http://www.w3.org/2000/svg"
|
11 |
+
{...otherProps}>
|
12 |
+
<path
|
13 |
+
d="M609.404 378.5C585.07 378.5 563.404 373 544.404 362C525.737 350.667 511.07 335.333 500.404 316C489.737 296.333 484.404 273.833 484.404 248.5C484.404 222.833 489.57 200.167 499.904 180.5C510.237 160.833 524.737 145.5 543.404 134.5C562.07 123.167 583.404 117.5 607.404 117.5C632.404 117.5 653.904 122.833 671.904 133.5C689.904 143.833 703.737 158.333 713.404 177C723.404 195.667 728.404 218 728.404 244V262.5L516.404 263L517.404 224H667.904C667.904 207 662.404 193.333 651.404 183C640.737 172.667 626.237 167.5 607.904 167.5C593.57 167.5 581.404 170.5 571.404 176.5C561.737 182.5 554.404 191.5 549.404 203.5C544.404 215.5 541.904 230.167 541.904 247.5C541.904 274.167 547.57 294.333 558.904 308C570.57 321.667 587.737 328.5 610.404 328.5C627.07 328.5 640.737 325.333 651.404 319C662.404 312.667 669.57 303.667 672.904 292H729.404C724.07 319 710.737 340.167 689.404 355.5C668.404 370.833 641.737 378.5 609.404 378.5Z"
|
14 |
+
fill="currentColor"
|
15 |
+
/>
|
16 |
+
<path
|
17 |
+
d="M797.529 372H728.029L813.029 251L728.029 125H799.029L853.529 209L906.029 125H974.529L890.529 250.5L972.029 372H902.029L849.029 290.5L797.529 372Z"
|
18 |
+
fill="currentColor"
|
19 |
+
/>
|
20 |
+
<path
|
21 |
+
d="M994.142 125H1150.14V176H994.142V125ZM1102.64 372H1041.64V48H1102.64V372Z"
|
22 |
+
fill="currentColor"
|
23 |
+
/>
|
24 |
+
<path
|
25 |
+
d="M1278.62 378.5C1254.29 378.5 1232.62 373 1213.62 362C1194.96 350.667 1180.29 335.333 1169.62 316C1158.96 296.333 1153.62 273.833 1153.62 248.5C1153.62 222.833 1158.79 200.167 1169.12 180.5C1179.46 160.833 1193.96 145.5 1212.62 134.5C1231.29 123.167 1252.62 117.5 1276.62 117.5C1301.62 117.5 1323.12 122.833 1341.12 133.5C1359.12 143.833 1372.96 158.333 1382.62 177C1392.62 195.667 1397.62 218 1397.62 244V262.5L1185.62 263L1186.62 224H1337.12C1337.12 207 1331.62 193.333 1320.62 183C1309.96 172.667 1295.46 167.5 1277.12 167.5C1262.79 167.5 1250.62 170.5 1240.62 176.5C1230.96 182.5 1223.62 191.5 1218.62 203.5C1213.62 215.5 1211.12 230.167 1211.12 247.5C1211.12 274.167 1216.79 294.333 1228.12 308C1239.79 321.667 1256.96 328.5 1279.62 328.5C1296.29 328.5 1309.96 325.333 1320.62 319C1331.62 312.667 1338.79 303.667 1342.12 292H1398.62C1393.29 319 1379.96 340.167 1358.62 355.5C1337.62 370.833 1310.96 378.5 1278.62 378.5Z"
|
26 |
+
fill="currentColor"
|
27 |
+
/>
|
28 |
+
<path
|
29 |
+
d="M1484.44 372H1423.44V125H1479.94L1484.94 157C1492.61 144.667 1503.44 135 1517.44 128C1531.78 121 1547.28 117.5 1563.94 117.5C1594.94 117.5 1618.28 126.667 1633.94 145C1649.94 163.333 1657.94 188.333 1657.94 220V372H1596.94V234.5C1596.94 213.833 1592.28 198.5 1582.94 188.5C1573.61 178.167 1560.94 173 1544.94 173C1525.94 173 1511.11 179 1500.44 191C1489.78 203 1484.44 219 1484.44 239V372Z"
|
30 |
+
fill="currentColor"
|
31 |
+
/>
|
32 |
+
<path
|
33 |
+
d="M1798.38 378.5C1774.38 378.5 1753.71 373.167 1736.38 362.5C1719.38 351.5 1706.04 336.333 1696.38 317C1687.04 297.667 1682.38 275.167 1682.38 249.5C1682.38 223.833 1687.04 201.167 1696.38 181.5C1706.04 161.5 1719.88 145.833 1737.88 134.5C1755.88 123.167 1777.21 117.5 1801.88 117.5C1819.21 117.5 1835.04 121 1849.38 128C1863.71 134.667 1874.71 144.167 1882.38 156.5V0H1942.88V372H1886.88L1882.88 333.5C1875.54 347.5 1864.21 358.5 1848.88 366.5C1833.88 374.5 1817.04 378.5 1798.38 378.5ZM1811.88 322.5C1826.21 322.5 1838.54 319.5 1848.88 313.5C1859.21 307.167 1867.21 298.333 1872.88 287C1878.88 275.333 1881.88 262.167 1881.88 247.5C1881.88 232.5 1878.88 219.5 1872.88 208.5C1867.21 197.167 1859.21 188.333 1848.88 182C1838.54 175.333 1826.21 172 1811.88 172C1797.88 172 1785.71 175.333 1775.38 182C1765.04 188.333 1757.04 197.167 1751.38 208.5C1746.04 219.833 1743.38 232.833 1743.38 247.5C1743.38 262.167 1746.04 275.167 1751.38 286.5C1757.04 297.833 1765.04 306.667 1775.38 313C1785.71 319.333 1797.88 322.5 1811.88 322.5Z"
|
34 |
+
fill="currentColor"
|
35 |
+
/>
|
36 |
+
<path
|
37 |
+
d="M1996.45 372V125H2057.45V372H1996.45ZM2026.45 75.5C2016.11 75.5 2007.28 72 1999.95 65C1992.95 57.6667 1989.45 48.8333 1989.45 38.5C1989.45 28.1667 1992.95 19.5 1999.95 12.5C2007.28 5.50001 2016.11 2.00002 2026.45 2.00002C2036.78 2.00002 2045.45 5.50001 2052.45 12.5C2059.78 19.5 2063.45 28.1667 2063.45 38.5C2063.45 48.8333 2059.78 57.6667 2052.45 65C2045.45 72 2036.78 75.5 2026.45 75.5Z"
|
38 |
+
fill="currentColor"
|
39 |
+
/>
|
40 |
+
<path
|
41 |
+
d="M2085.97 125H2240.97V176H2085.97V125ZM2241.47 2.5V54.5C2238.14 54.5 2234.64 54.5 2230.97 54.5C2227.64 54.5 2224.14 54.5 2220.47 54.5C2205.14 54.5 2194.8 58.1667 2189.47 65.5C2184.47 72.8333 2181.97 82.6667 2181.97 95V372H2121.47V95C2121.47 72.3333 2125.14 54.1667 2132.47 40.5C2139.8 26.5 2150.14 16.3333 2163.47 10C2176.8 3.33334 2192.3 0 2209.97 0C2214.97 0 2220.14 0.166671 2225.47 0.5C2231.14 0.833329 2236.47 1.49999 2241.47 2.5Z"
|
42 |
+
fill="currentColor"
|
43 |
+
/>
|
44 |
+
<path
|
45 |
+
d="M2330.4 125L2410.9 353L2377.9 415.5L2265.9 125H2330.4ZM2272.4 486.5V436H2308.9C2316.9 436 2323.9 435 2329.9 433C2335.9 431.333 2341.24 428 2345.9 423C2350.9 418 2355.07 410.667 2358.4 401L2460.9 125H2523.9L2402.9 427C2393.9 449.667 2382.57 466.167 2368.9 476.5C2355.24 486.833 2338.24 492 2317.9 492C2309.24 492 2301.07 491.5 2293.4 490.5C2286.07 489.833 2279.07 488.5 2272.4 486.5Z"
|
46 |
+
fill="currentColor"
|
47 |
+
/>
|
48 |
+
<path
|
49 |
+
fillRule="evenodd"
|
50 |
+
clipRule="evenodd"
|
51 |
+
d="M226.926 25.1299H310.197C333.783 25.1299 342.32 27.5938 350.948 32.1932C359.576 36.8108 366.326 43.5822 370.941 52.1969C375.556 60.8298 378 69.3715 378 92.9707V176.289C378 199.888 375.537 208.43 370.941 217.063C366.326 225.696 359.558 232.449 350.948 237.066C347.091 239.131 343.244 240.83 338.064 242.047V308.355C338.064 344.802 334.261 357.994 327.162 371.327C320.034 384.66 309.583 395.09 296.285 402.221C282.96 409.353 269.775 413.13 233.349 413.13H104.744C68.3172 413.13 55.1327 409.325 41.8073 402.221C28.4819 395.09 18.0583 384.632 10.9308 371.327C3.80323 358.023 0 344.802 0 308.355V179.706C0 143.259 3.80323 130.067 10.9026 116.734C18.0301 103.401 28.4819 92.9431 41.8073 85.8116C55.1045 78.7082 68.3172 74.9028 104.744 74.9028H159.808C160.841 64.0747 162.996 58.1666 166.165 52.2151C170.78 43.5822 177.547 36.8108 186.175 32.1932C194.785 27.5938 203.34 25.1299 226.926 25.1299ZM184.128 78.1641C184.128 62.7001 196.658 50.1641 212.114 50.1641H324.991C340.448 50.1641 352.978 62.7001 352.978 78.1641V191.096C352.978 206.56 340.448 219.096 324.991 219.096H212.114C196.658 219.096 184.128 206.56 184.128 191.096V78.1641Z"
|
52 |
+
fill="currentColor"
|
53 |
+
/>
|
54 |
+
</svg>
|
55 |
+
)
|
56 |
+
}
|
57 |
+
|
58 |
+
export default memo(Logo)
|
extendify-sdk/src/Onboarding/svg/RefreshIcon.jsx
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { memo } from '@wordpress/element'
|
2 |
+
|
3 |
+
const RefreshIcon = (props) => {
|
4 |
+
const { className, ...otherProps } = props
|
5 |
+
|
6 |
+
return (
|
7 |
+
<svg
|
8 |
+
className={className}
|
9 |
+
width="24"
|
10 |
+
height="24"
|
11 |
+
viewBox="0 0 24 24"
|
12 |
+
fill="none"
|
13 |
+
xmlns="http://www.w3.org/2000/svg"
|
14 |
+
{...otherProps}>
|
15 |
+
<path
|
16 |
+
fill="currentColor"
|
17 |
+
d="M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z"
|
18 |
+
/>
|
19 |
+
</svg>
|
20 |
+
)
|
21 |
+
}
|
22 |
+
|
23 |
+
export default memo(RefreshIcon)
|
extendify-sdk/src/Onboarding/svg/SearchIcon.jsx
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { memo } from '@wordpress/element'
|
2 |
+
|
3 |
+
const SearchIcon = (props) => {
|
4 |
+
const { className, ...otherProps } = props
|
5 |
+
|
6 |
+
return (
|
7 |
+
<svg
|
8 |
+
className={className}
|
9 |
+
width="24"
|
10 |
+
height="24"
|
11 |
+
viewBox="0 0 24 24"
|
12 |
+
fill="none"
|
13 |
+
xmlns="http://www.w3.org/2000/svg"
|
14 |
+
{...otherProps}>
|
15 |
+
<path
|
16 |
+
d="M8 18.5504L12 14.8899"
|
17 |
+
stroke="#1E1E1E"
|
18 |
+
strokeWidth="1.5"
|
19 |
+
/>
|
20 |
+
<path
|
21 |
+
d="M20.25 11.7523C20.25 14.547 18.092 16.7546 15.5 16.7546C12.908 16.7546 10.75 14.547 10.75 11.7523C10.75 8.95754 12.908 6.75 15.5 6.75C18.092 6.75 20.25 8.95754 20.25 11.7523Z"
|
22 |
+
stroke="#1E1E1E"
|
23 |
+
strokeWidth="1.5"
|
24 |
+
/>
|
25 |
+
</svg>
|
26 |
+
)
|
27 |
+
}
|
28 |
+
|
29 |
+
export default memo(SearchIcon)
|
extendify-sdk/src/Onboarding/svg/SpinnerIcon.jsx
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { memo } from '@wordpress/element'
|
2 |
+
|
3 |
+
const SpinnerIcon = (props) => {
|
4 |
+
const { className, ...otherProps } = props
|
5 |
+
|
6 |
+
return (
|
7 |
+
<svg
|
8 |
+
className={className}
|
9 |
+
width="100"
|
10 |
+
height="100"
|
11 |
+
viewBox="0 0 100 100"
|
12 |
+
fill="none"
|
13 |
+
xmlns="http://www.w3.org/2000/svg"
|
14 |
+
{...otherProps}>
|
15 |
+
<path d="M87.5 48.8281H75V51.1719H87.5V48.8281Z" fill="black" />
|
16 |
+
<path d="M25 48.8281H12.5V51.1719H25V48.8281Z" fill="black" />
|
17 |
+
<path d="M51.1719 75H48.8281V87.5H51.1719V75Z" fill="black" />
|
18 |
+
<path d="M51.1719 12.5H48.8281V25H51.1719V12.5Z" fill="black" />
|
19 |
+
<path
|
20 |
+
d="M77.3433 75.6868L69.4082 67.7517L67.7511 69.4088L75.6862 77.344L77.3433 75.6868Z"
|
21 |
+
fill="black"
|
22 |
+
/>
|
23 |
+
<path
|
24 |
+
d="M32.2457 30.5897L24.3105 22.6545L22.6534 24.3117L30.5885 32.2468L32.2457 30.5897Z"
|
25 |
+
fill="black"
|
26 |
+
/>
|
27 |
+
<path
|
28 |
+
d="M77.3407 24.3131L75.6836 22.656L67.7485 30.5911L69.4056 32.2483L77.3407 24.3131Z"
|
29 |
+
fill="black"
|
30 |
+
/>
|
31 |
+
<path
|
32 |
+
d="M32.2431 69.4074L30.5859 67.7502L22.6508 75.6854L24.3079 77.3425L32.2431 69.4074Z"
|
33 |
+
fill="black"
|
34 |
+
/>
|
35 |
+
</svg>
|
36 |
+
)
|
37 |
+
}
|
38 |
+
|
39 |
+
export default memo(SpinnerIcon)
|
extendify-sdk/src/Onboarding/svg/index.js
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import Checkmark from './Checkmark'
|
2 |
+
import LeftArrowIcon from './LeftArrowIcon'
|
3 |
+
import Logo from './Logo'
|
4 |
+
import RefreshIcon from './RefreshIcon'
|
5 |
+
import SearchIcon from './SearchIcon'
|
6 |
+
import SpinnerIcon from './SpinnerIcon'
|
7 |
+
|
8 |
+
export { Logo, LeftArrowIcon, Checkmark, SearchIcon, SpinnerIcon, RefreshIcon }
|
extendify-sdk/src/pages/MainWindow.js
DELETED
@@ -1,59 +0,0 @@
|
|
1 |
-
import { Fragment, useRef } from '@wordpress/element'
|
2 |
-
import { Dialog, Transition } from '@headlessui/react'
|
3 |
-
import FooterNotice from '@extendify/components/notices/FooterNotice'
|
4 |
-
import { useModal } from '@extendify/hooks/useModal'
|
5 |
-
import { useGlobalStore } from '@extendify/state/GlobalState'
|
6 |
-
import { Layout } from './layout/Layout'
|
7 |
-
|
8 |
-
export default function MainWindow() {
|
9 |
-
const containerRef = useRef(null)
|
10 |
-
const open = useGlobalStore((state) => state.open)
|
11 |
-
const setOpen = useGlobalStore((state) => state.setOpen)
|
12 |
-
const modal = useModal(open)
|
13 |
-
const ready = useGlobalStore((state) => state.ready)
|
14 |
-
|
15 |
-
return (
|
16 |
-
<Transition appear show={open} as={Fragment}>
|
17 |
-
<Dialog
|
18 |
-
as="div"
|
19 |
-
static
|
20 |
-
className="extendify"
|
21 |
-
initialFocus={containerRef}
|
22 |
-
onClose={() => setOpen(false)}>
|
23 |
-
<div className="fixed inset-0 z-high m-auto h-screen w-screen overflow-y-auto sm:h-auto sm:w-auto">
|
24 |
-
<div className="flex min-h-screen items-end justify-center px-4 pt-4 pb-20 text-center sm:block sm:p-0">
|
25 |
-
<Transition.Child
|
26 |
-
as={Fragment}
|
27 |
-
enter="ease-out duration-300"
|
28 |
-
enterFrom="opacity-0"
|
29 |
-
enterTo="opacity-100">
|
30 |
-
<Dialog.Overlay className="fixed inset-0 bg-black bg-opacity-40 transition-opacity" />
|
31 |
-
</Transition.Child>
|
32 |
-
<Transition.Child
|
33 |
-
as={Fragment}
|
34 |
-
enter="ease-out duration-300"
|
35 |
-
enterFrom="opacity-0 translate-y-4 sm:translate-y-5"
|
36 |
-
enterTo="opacity-100 translate-y-0">
|
37 |
-
<div
|
38 |
-
ref={containerRef}
|
39 |
-
tabIndex="0"
|
40 |
-
onClick={(e) =>
|
41 |
-
e.target === e.currentTarget &&
|
42 |
-
setOpen(false)
|
43 |
-
}
|
44 |
-
className="fixed inset-0 transform p-2 transition-all lg:absolute lg:overflow-hidden lg:p-16">
|
45 |
-
<Layout />
|
46 |
-
{ready ? (
|
47 |
-
<>
|
48 |
-
<FooterNotice />
|
49 |
-
{modal}
|
50 |
-
</>
|
51 |
-
) : null}
|
52 |
-
</div>
|
53 |
-
</Transition.Child>
|
54 |
-
</div>
|
55 |
-
</div>
|
56 |
-
</Dialog>
|
57 |
-
</Transition>
|
58 |
-
)
|
59 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
extendify-sdk/vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInitca3a0e826f8d4d56f78ebacbdecfa86d::getLoader();
|
extendify-sdk/vendor/composer/autoload_psr4.php
CHANGED
@@ -6,5 +6,5 @@ $vendorDir = dirname(dirname(__FILE__));
|
|
6 |
$baseDir = dirname($vendorDir);
|
7 |
|
8 |
return array(
|
9 |
-
'Extendify\\
|
10 |
);
|
6 |
$baseDir = dirname($vendorDir);
|
7 |
|
8 |
return array(
|
9 |
+
'Extendify\\' => array($baseDir . '/app'),
|
10 |
);
|
extendify-sdk/vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -22,15 +22,15 @@ class ComposerAutoloaderInitf5f1e403bd08dcb33f36d3f54d6a9659
|
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
-
spl_autoload_register(array('
|
26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
27 |
-
spl_autoload_unregister(array('
|
28 |
|
29 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
30 |
if ($useStaticLoader) {
|
31 |
require_once __DIR__ . '/autoload_static.php';
|
32 |
|
33 |
-
call_user_func(\Composer\Autoload\
|
34 |
} else {
|
35 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
36 |
foreach ($map as $namespace => $path) {
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInitca3a0e826f8d4d56f78ebacbdecfa86d
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
+
spl_autoload_register(array('ComposerAutoloaderInitca3a0e826f8d4d56f78ebacbdecfa86d', 'loadClassLoader'), true, true);
|
26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
27 |
+
spl_autoload_unregister(array('ComposerAutoloaderInitca3a0e826f8d4d56f78ebacbdecfa86d', 'loadClassLoader'));
|
28 |
|
29 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
30 |
if ($useStaticLoader) {
|
31 |
require_once __DIR__ . '/autoload_static.php';
|
32 |
|
33 |
+
call_user_func(\Composer\Autoload\ComposerStaticInitca3a0e826f8d4d56f78ebacbdecfa86d::getInitializer($loader));
|
34 |
} else {
|
35 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
36 |
foreach ($map as $namespace => $path) {
|
extendify-sdk/vendor/composer/autoload_static.php
CHANGED
@@ -4,17 +4,17 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'E' =>
|
11 |
array (
|
12 |
-
'Extendify\\
|
13 |
),
|
14 |
);
|
15 |
|
16 |
public static $prefixDirsPsr4 = array (
|
17 |
-
'Extendify\\
|
18 |
array (
|
19 |
0 => __DIR__ . '/../..' . '/app',
|
20 |
),
|
@@ -23,8 +23,8 @@ class ComposerStaticInitf5f1e403bd08dcb33f36d3f54d6a9659
|
|
23 |
public static function getInitializer(ClassLoader $loader)
|
24 |
{
|
25 |
return \Closure::bind(function () use ($loader) {
|
26 |
-
$loader->prefixLengthsPsr4 =
|
27 |
-
$loader->prefixDirsPsr4 =
|
28 |
|
29 |
}, null, ClassLoader::class);
|
30 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInitca3a0e826f8d4d56f78ebacbdecfa86d
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'E' =>
|
11 |
array (
|
12 |
+
'Extendify\\' => 10,
|
13 |
),
|
14 |
);
|
15 |
|
16 |
public static $prefixDirsPsr4 = array (
|
17 |
+
'Extendify\\' =>
|
18 |
array (
|
19 |
0 => __DIR__ . '/../..' . '/app',
|
20 |
),
|
23 |
public static function getInitializer(ClassLoader $loader)
|
24 |
{
|
25 |
return \Closure::bind(function () use ($loader) {
|
26 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInitca3a0e826f8d4d56f78ebacbdecfa86d::$prefixLengthsPsr4;
|
27 |
+
$loader->prefixDirsPsr4 = ComposerStaticInitca3a0e826f8d4d56f78ebacbdecfa86d::$prefixDirsPsr4;
|
28 |
|
29 |
}, null, ClassLoader::class);
|
30 |
}
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: patterns, templates, blocks, gutenberg, library, editor, page builder
|
|
4 |
Requires at least: 4.0
|
5 |
Requires PHP: 7.1
|
6 |
Tested up to: 6.0
|
7 |
-
Stable tag: 4.3.
|
8 |
License: GPL-3.0+
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.txt
|
10 |
|
@@ -106,6 +106,15 @@ If you want, you can use the [Gutenberg](https://wordpress.org/plugins/gutenberg
|
|
106 |
|
107 |
== Changelog ==
|
108 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
109 |
= 4.3.14 =
|
110 |
* New: `typography` field supports individual unit types for subfields that support them (font-size, line-height, etc.) See: [https://devs.redux.io/core-fields/typography.html](https://devs.redux.io/core-fields/typography.html)
|
111 |
* Fixed: Redux installed via TGMPA failing with "This plugin does not have a valid header."
|
4 |
Requires at least: 4.0
|
5 |
Requires PHP: 7.1
|
6 |
Tested up to: 6.0
|
7 |
+
Stable tag: 4.3.15
|
8 |
License: GPL-3.0+
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.txt
|
10 |
|
106 |
|
107 |
== Changelog ==
|
108 |
|
109 |
+
= 4.3.15 =
|
110 |
+
* Added: Multi Media extension. [https://devs.redux.io/core-extensions/multi-media.html](https://devs.redux.io/core-extensions/multi-media.html)
|
111 |
+
* Added: DateTime extension. [https://devs.redux.io/core-extensions/date-time-picker.html](https://devs.redux.io/core-extensions/date-time-picker.html)
|
112 |
+
* Fixed: Deprecation error surrounding `add_menu_page` in WordPress 6.0.
|
113 |
+
* Fixed: `undefined` unit entry in `letter-spacing` subfield of the `typography` field.
|
114 |
+
* Modified: Deprecation notices for outdated API.
|
115 |
+
* Updated: Extendify Library.
|
116 |
+
* Release date: June 21, 2022
|
117 |
+
|
118 |
= 4.3.14 =
|
119 |
* New: `typography` field supports individual unit types for subfields that support them (font-size, line-height, etc.) See: [https://devs.redux.io/core-fields/typography.html](https://devs.redux.io/core-fields/typography.html)
|
120 |
* Fixed: Redux installed via TGMPA failing with "This plugin does not have a valid header."
|
redux-core/assets/css/redux-fields.min.css
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
.redux-container-ace_editor .ace-wrapper{position:static}.redux-container-ace_editor .ace_editor{height:200px;border-radius:3px}.redux-container-ace_editor .ace_gutter{z-index:1 !important}.redux-main .redux-container-background .redux-background-position,.redux-main .redux-container-background .redux-background-position select,.redux-main .redux-container-background .redux-background-attachment,.redux-main .redux-container-background .redux-background-attachment select,.redux-main .redux-container-background .redux-background-clip,.redux-main .redux-container-background .redux-background-clip select,.redux-main .redux-container-background .redux-background-origin,.redux-main .redux-container-background .redux-background-origin select,.redux-main .redux-container-background .redux-background-size,.redux-main .redux-container-background .redux-background-size select,.redux-main .redux-container-background .redux-background-repeat,.redux-main .redux-container-background .redux-background-repeat select{width:200px !important;margin-right:10px;margin-bottom:7px}.redux-main .redux-container-background .background-preview{display:block;width:100%;margin:5px 0 10px;border:1px dotted #d3d3d3}.redux-main .redux-container-background .select2-container{margin-right:10px;margin-bottom:10px}.redux-main .redux-container-background .wp-picker-container{margin-bottom:10px}.redux-main .redux-container-background .upload{width:100%;margin-bottom:8px}.redux-main .redux-container-select li.ui-state-highlight{height:20px;margin-top:2px;margin-left:5px;width:64px;margin-bottom:0}.wp-customizer .redux-container-background .redux-background-position,.wp-customizer .redux-container-background .redux-background-position select,.wp-customizer .redux-container-background .redux-background-attachment,.wp-customizer .redux-container-background .redux-background-attachment select,.wp-customizer .redux-container-background .redux-background-clip,.wp-customizer .redux-container-background .redux-background-clip select,.wp-customizer .redux-container-background .redux-background-origin,.wp-customizer .redux-container-background .redux-background-origin select,.wp-customizer .redux-container-background .redux-background-size,.wp-customizer .redux-container-background .redux-background-size select,.wp-customizer .redux-container-background .redux-background-repeat,.wp-customizer .redux-container-background .redux-background-repeat select{width:100% !important}.redux-main .redux-container-box_shadow .box-shadow-inset{margin:0 auto}.redux-main .redux-container-box_shadow .box-shadow-inset #shadow-result{padding:20px;margin-bottom:20px;margin-top:20px;min-height:180px;border:0px solid #ddd;background:#f1f1f1;-webkit-transition:all 0.2s ease;transition:all 0.2s ease}.redux-main .redux-container-box_shadow .box-shadow-inset .row-content:after,.redux-main .redux-container-box_shadow .box-shadow-inset .row:after{clear:both;content:" ";display:block;height:0;visibility:hidden}.redux-main .redux-container-box_shadow .box-shadow-inset .row .col-2{width:50%;float:left;-webkit-box-sizing:border-box;box-sizing:border-box}.redux-main .redux-container-box_shadow .box-shadow-inset .row .col-2.disabled label strong{color:#cccccc}.redux-main .redux-container-box_shadow .box-shadow-inset .row .col-2 label{color:#999999}.redux-main .redux-container-box_shadow .box-shadow-inset .row .col-2 .wp-picker-container.disabled{pointer-events:none;opacity:0.4;z-index:200;background:0;padding:0 !important}.redux-main .redux-container-box_shadow .box-shadow-inset .row .col-2 .wp-picker-container.disabled button{background-color:#888}.redux-main .redux-container-box_shadow .box-shadow-inset .row .col-2 .wp-picker-container.disabled a{z-index:-1}.redux-main .redux-container-box_shadow .box-shadow-inset .row .col-2 ul li{padding-bottom:10px}.redux-main .redux-container-box_shadow .box-shadow-inset .row .col-2:first-child{padding-right:20px}.redux-main .redux-container-box_shadow .box-shadow-inset .row .col-2:last-child{padding-left:20px}.redux-container-border .select2-container{float:left;display:block;margin-right:10px}.redux-container-border .select_wrapper{float:left;width:inherit}.redux-container-border .select_wrapper select{width:80px;float:left}.redux-container-border .field-border-input{margin-right:10px;margin-bottom:7px}@media screen and (max-width: 782px){.redux-container-border .field-border-input input{display:inline-block !important;width:100px !important}.redux-container-border .field-border-input .add-on{padding:7px 4px;font-size:16px;line-height:1.5}.redux-container-border .select_wrapper{margin-top:6px}}.redux-container-checkbox label{vertical-align:top;width:100%}.redux-container-checkbox label .field-desc{margin-top:0;float:left;width:93%;clear:none}.redux-container-color_gradient .redux-gradient-preview{height:150px;margin-top:10px;border-radius:4px}.redux-container-color_gradient .colorGradient,.redux-container-color_gradient .redux-gradient-type{display:inline-block;margin-right:20px}.redux-container-color_gradient .colorGradient strong,.redux-container-color_gradient .redux-gradient-type strong{display:table;margin-bottom:5px;margin-left:3px;font-size:12px;color:#999}@media screen and (max-width: 660px){.redux-container-color_gradient .colorGradient{display:block;text-align:center !important}}.redux-main .redux-container-color_palette label{position:relative;display:inline-block;padding:0;margin:0}.redux-main .redux-container-color_palette .colors-wrapper{max-height:300px;overflow-y:auto;padding:10px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.redux-main .redux-container-color_palette .colors-wrapper .color-palette-color{color:transparent;display:block;width:100%;height:100%;overflow:hidden;border:1px solid rgba(0,0,0,0.2)}.redux-main .redux-container-color_palette .colors-wrapper.round label{padding:3px}.redux-main .redux-container-color_palette .colors-wrapper.round .color-palette-color{border-radius:50%}.redux-main .redux-container-color_palette .colors-wrapper.box-shadow .color-palette-color{-webkit-box-shadow:inset 3px 3px 13px 2px rgba(0,0,0,0.22);box-shadow:inset 3px 3px 13px 2px rgba(0,0,0,0.22)}.redux-main .redux-container-color_palette .colors-wrapper input{display:none}.redux-main .redux-container-color_palette .colors-wrapper input:checked+label .color-palette-color{border:0;width:130%;height:130%;position:relative;left:-15%;top:-15%;z-index:99;-webkit-box-shadow:1px 1px 6px 1px #333333;box-shadow:1px 1px 6px 1px #333333;border:1px solid rgba(0,0,0,0.3)}.redux-main .redux-container-color_palette .colors-wrapper.with-margin label{margin:3px !important}.sp-container{color:#555;border-color:#ccc;background:#f7f7f7;-webkit-box-shadow:inset 0 1px 0 #fff,0 1px 0 rgba(0,0,0,0.08);box-shadow:inset 0 1px 0 #fff,0 1px 0 rgba(0,0,0,0.08);vertical-align:top}.sp-replacer{color:#555;border-color:#ccc;background:#f7f7f7;-webkit-box-shadow:inset 0 1px 0 #fff,0 1px 0 rgba(0,0,0,0.08);box-shadow:inset 0 1px 0 #fff,0 1px 0 rgba(0,0,0,0.08);vertical-align:top}.sp-replacer:focus,.sp-replacer:hover,.sp-replacer.focus,.sp-replacer.hover{background:#fafafa;border-color:#999;color:#222}.sp-replacer:focus,.sp-replacer.focus{-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,0.8);box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,0.8)}.sp-replacer.active:focus{-webkit-box-shadow:inset 0 2px 5px -3px rgba(0,0,0,0.5),0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,0.8);box-shadow:inset 0 2px 5px -3px rgba(0,0,0,0.5),0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,0.8)}.sp-replacer.active,.sp-replacer.active:hover,.sp-replacer:active{background:#eee;border-color:#999;color:#333;-webkit-box-shadow:inset 0 2px 5px -3px rgba(0,0,0,0.5);box-shadow:inset 0 2px 5px -3px rgba(0,0,0,0.5)}#ui-datepicker-div{z-index:15 !important}.ui-datepicker-header{background-color:#00abef}.redux-dimensions-container select,.redux-dimensions-container .select_wrapper{width:80px !important;float:left}.redux-dimensions-container .field-dimensions-input{margin-right:10px;margin-bottom:7px}@media screen and (max-width: 782px){.redux-dimensions-container .field-dimensions-input input{display:inline-block !important;width:100px !important}.redux-dimensions-container .field-dimensions-input .add-on{padding:7px 4px;font-size:16px;line-height:1.5}.redux-dimensions-container .select_wrapper{margin-top:6px}}.redux-main .divide{height:20px;line-height:20px;float:none;border-color:#e7e7e7;display:block;width:100%;height:35px !important;line-height:35px !important;position:relative;margin:15px 0 10px 0}.redux-main .divide .inner{width:42% !important;left:40% !important;margin-left:-6%;background-color:#fcfcfc;border-color:#e7e7e7;position:absolute;height:1px;top:50%;width:100%;margin-top:-1px;border-top-width:1px;border-top-style:solid}.redux-main .divide .inner span{background-color:#fcfcfc;border-color:#e7e7e7;height:5px;width:5px;border-width:2px;border-style:solid;display:block;position:absolute;left:50%;margin-left:-5px;margin-top:-5px}.wp-customizer .redux-container-divide .divide .inner{width:82% !important;left:18% !important;margin-left:-8%}.redux-container-editor .mceLayout td{border-width:1px;margin:0;padding:1px}.redux-container-editor input,.redux-container-editor textarea{margin:inherit}.redux-container-editor textarea{border-style:none;border:0;border-width:0}.redux-container-editor .wp-editor-container{border-radius:3px}.redux-container-editor .wp-editor-container textarea{border-radius:0;border-style:inherit}.redux-container-editor .quicktags-toolbar input{margin:2px 1px 4px;display:inline-block;min-width:26px;padding:2px 4px;font:12px/18px Arial, Helvetica, sans-serif normal;color:#464646;border:1px solid #c3c3c3;border-radius:3px;background:#eee;background-image:-webkit-gradient(linear, left bottom, left top, from(#e3e3e3), to(#fff));background-image:-webkit-linear-gradient(bottom, #e3e3e3, #fff);background-image:linear-gradient(to top, #e3e3e3, #fff)}.redux-container-image_select .redux-table-container{display:table;table-layout:fixed;width:100%}.redux-container-image_select .redux-image-select{margin:0 !important}.redux-container-image_select .redux-image-select .tiles{display:block;background-color:#fff;background-repeat:repeat;width:40px;height:40px}.redux-container-image_select .redux-image-select img,.redux-container-image_select .redux-image-select .tiles{border-color:#d9d9d9}.redux-container-image_select .redux-image-select li:last-child{margin-bottom:0}.redux-container-image_select .redux-image-select input[type="radio"]{display:none}.redux-container-image_select .redux-image-select-presets img{width:100%}.redux-container-image_select ul.redux-image-select li{margin:0 10px 3px 10px;display:inline-block;padding:2px 2px;padding-left:0}.redux-container-image_select .redux-image-select-selected{background-color:#f9f9f9}.redux-container-image_select .redux-image-select img,.redux-container-image_select .redux-image-select-selected img,.redux-container-image_select .redux-image-select .tiles,.redux-container-image_select .redux-image-select-selected .tiles{border-width:4px;border-style:solid}.redux-container-image_select .redux-image-select-selected .tiles,.redux-container-image_select .redux-image-select-selected .tiles{border-color:#7a7a7a}.redux-info-field{min-height:20px;padding:8px 19px;margin:10px 0;border:1px solid;border-radius:4px;border:1px solid;position:relative}.redux-info-field h1,.redux-info-field h2,.redux-info-field h3,.redux-info-field h4,.redux-info-field h5,.redux-info-field h6{border-bottom:0 !important}.redux-info-field h3{color:#777}.redux-info-field .redux-info-icon{display:inline-block;margin-right:15px}.redux-info-field .redux-info-icon i{font-size:2em}.redux-info-field .redux-info-desc{display:inline-block;vertical-align:top}.redux-info-field.redux-normal{background-color:#eee;border-color:#ccc;color:#666}.redux-info-field.redux-normal i{color:#c5c5c5}.redux-info-field.redux-warning{background-color:#fbeba4;border-color:#d7c281;color:#958234}.redux-info-field.redux-warning i{color:#dcca81}.redux-info-field.redux-success{background-color:#c4ee91;border-color:#71af5d;color:#4d7615}.redux-info-field.redux-success i{color:#a0ca6c}.redux-info-field.redux-critical{background-color:#fba1a3;border-color:#b84f5b;color:#981225}.redux-info-field.redux-critical i{color:#dd767d}.redux-info-field.redux-info{background-color:#d3e4f4;border-color:#a9b6c2;color:#5c80a1}.redux-info-field.redux-info i{color:#afc6da}.redux-notice-field{margin:15px 0 0;background-color:#fff;border:0;border-left:4px solid #f3f3f3;-webkit-box-shadow:0 1px 1px 0 rgba(0,0,0,0.1);box-shadow:0 1px 1px 0 rgba(0,0,0,0.1);padding:1px 12px}.redux-notice-field h1,.redux-notice-field h2,.redux-notice-field h3,.redux-notice-field h4,.redux-notice-field h5,.redux-notice-field h6{border-bottom:0 !important}.redux-notice-field p{margin:0.5em 0;padding:2px}.redux-notice-field .redux-info-icon{display:inline-block;margin-right:15px}.redux-notice-field .redux-info-icon i{font-size:2em}.redux-notice-field .redux-info-desc{display:inline-block;vertical-align:top}.redux-notice-field.redux-info{border-left:4px solid #0099d5}.redux-notice-field.redux-success{border-left:4px solid #7ad03a}.redux-notice-field.redux-warning{border-left:4px solid #fbeba4}.redux-notice-field.redux-critical{border-left:4px solid #dd3d36}.redux-main .redux-field-container.redux-container-info{padding:0}.wp-customizer .hasIcon.redux-notice-field .redux-info-desc,.wp-customizer .hasIcon.redux-info-field .redux-info-desc{display:block;margin-left:43px}.wp-customizer .hasIcon.redux-notice-field .redux-info-icon,.wp-customizer .hasIcon.redux-info-field .redux-info-icon{float:left}.wp-customizer .redux-main .customize-control.customize-control-redux-info{border-bottom:0}.redux-container-link_color .linkColor{display:inline-block;padding-right:10px;padding-bottom:7px}.redux-container-link_color .linkColor strong{display:table;margin-bottom:5px;margin-left:3px;font-size:12px;font-weight:normal;color:#999}.redux-main .redux-media-slider{width:40%;display:inline-block;margin-left:30px}.redux-main .redux-media-filter-container{padding-top:20px}.redux-main .redux-media-filter-container .container-label{margin-bottom:20px;padding-bottom:1px;border-bottom:1px solid #e7e7e7;font-weight:600;font-size:12px;color:#999}.redux-main .redux-media-filter-container .media-filter{display:inline-block;width:47%;margin-bottom:5px}.redux-main .redux-media-filter-container .media-filter label{display:inline-block;width:130px;color:#999}.redux-main .redux-media-filter-container .media-filter label.disabled .filter-value{color:#ccc}.redux-container-multi_text ul.redux-multi-text{margin:0;padding:0}.redux-container-multi_text .redux-multi-text-add{clear:both;margin:5px 0}.redux-container-multi_text a.redux-multi-text-remove.deletion{color:#f00;padding:2px 4px;margin-left:5px}.redux-container-multi_text a.redux-multi-text-remove.deletion:hover{background:#ff0;color:#fff;text-decoration:none}@media screen and (max-width: 782px){.redux-container-multi_text input{clear:both}.redux-container-multi_text .redux-multi-text-remove{margin:0;float:right}}.wp-customizer .redux-container-multi_text .button{float:right}.wp-customizer .redux-container-multi_text .redux-multi-text-remove{float:right;margin-bottom:5px}.wp-customizer .redux-container-multi_text ul.redux-multi-text input{width:100% !important}.redux-container-palette label{border:3px solid transparent;border-color:transparent !important;border-radius:0;width:100% !important;display:block}.redux-container-palette label.ui-button.ui-widget{width:95%;background:none;padding:0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.redux-container-palette label.ui-button.ui-widget .ui-checkboxradio-icon,.redux-container-palette label.ui-button.ui-widget .ui-checkboxradio-icon-space{display:none}.redux-container-palette label.ui-button.ui-widget span{padding:10px;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;font-size:0;line-height:10px;color:rgba(0,0,0,0);-webkit-transition:all 200ms ease-in-out;transition:all 200ms ease-in-out;text-shadow:0}.redux-container-palette label.ui-button.ui-widget span:hover{-webkit-box-flex:3;-webkit-flex-grow:3;-ms-flex-positive:3;flex-grow:3;font-weight:bold;min-width:60px;font-size:12px;line-height:10px;color:#333;text-shadow:0 0 8px #fff, 0 0 8px #fff}.redux-container-palette label.ui-state-active{border:3px solid #333 !important}.wp-customizer .redux-main .redux-container-palette label{margin-bottom:3px}.redux-main .form-table-section-indented{width:95%;margin-left:5% !important}.redux-main .form-table-section tr:first-of-type th:first-of-type{padding:0px !important}.redux-main h3{margin-top:10px}.redux-main .form-table-section-indented>tbody>tr:first-child{display:none}.redux-main .form-table-section-indented>tbody>tr:nth-last-child(2){border-bottom:0}.redux-container-select li.ui-state-highlight{height:20px;margin-top:2px;margin-left:5px;width:64px;margin-bottom:0}.select2-search__field{width:none !important}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove,.select2-container--classic .select2-selection--single .select2-selection__clear{font-size:1.2em}.redux-container-select_image{margin-top:2px;margin-left:5px;width:100%;margin-bottom:0}.redux-preview-image{max-height:250px;max-width:250px;padding:5px;margin-top:10px;border:1px solid #e3e3e3;background:#f7f7f7;border-radius:3px}.redux-container-slides .redux-slides-list .select2-container{margin-bottom:10px;width:100%}.redux-container-slides .ui-accordion-header{margin-bottom:0}.redux-container-slides .full-text,.redux-container-slides .large-text{width:100%}.redux-container-slides .redux-slides-accordion-group{border:1px solid #dfdfdf !important;border-radius:3px !important;margin-top:0px !important;margin-bottom:10px;background:#f9f9f9;padding:5px}.redux-container-slides .redux-slides-accordion-group h3{border:1px solid #dfdfdf;cursor:move !important;font-weight:bold;padding:0 10px !important;height:40px;line-height:40px !important;background-color:#f1f1f1;background-image:-webkit-gradient(linear, left top, left bottom, from(#f9f9f9), to(#ececec));background-image:-webkit-linear-gradient(top, #f9f9f9, #ececec);background-image:linear-gradient(to bottom, #f9f9f9, #ececec);overflow:hidden;border-radius:3px;-webkit-box-shadow:inset 0 1px 0 #fff;box-shadow:inset 0 1px 0 #fff;text-align:center}.redux-container-slides #redux-slides-accordion .redux-slides-image{height:250px;padding:5px;margin-top:10px;margin-bottom:10px;border:1px solid #e3e3e3;background:#f7f7f7;border-radius:3px}.redux-container-slides .redux-slides-add{float:right;margin-right:10%;display:block;margin-bottom:10px}.redux-container-slides .redux-slides-remove{color:#ef521d !important;float:right;margin-top:5px}.redux-container-slides .redux-slides-header{font-weight:bold}.redux-container-slides .redux_slides_add_remove{margin-bottom:10px}.redux-container-slides input{width:100% !important}.wp-customizer .redux-container-slides .ui-accordion .ui-accordion-content{padding:10px}.redux-container-slider .redux-slider-container{margin-left:25px;margin-right:25px;width:200px;display:inline-block;vertical-align:middle}.redux-container-slider .redux-slider-input,.redux-container-slider .redux-slider-select-one,.redux-container-slider .redux-slider-select-two{width:100px !important;text-align:center}.redux-container-slider .redux-slider-label{position:absolute;margin-left:-5px}.redux-container-slider .redux-slider-label-one{position:absolute;margin-left:-22px}.redux-container-slider .redux-slider-label-two{position:absolute;margin-top:-21px;margin-left:245px}@media screen and (max-width: 782px){.redux-container-slider input{display:inline-block !important}}@media screen and (max-width: 570px){.redux-container-slider{text-align:center}.redux-container-slider input,.redux-container-slider select,.redux-container-slider .redux-slider-label,.redux-container-slider .select2-container{display:block !important;position:inherit;margin:10px auto}.redux-container-slider .redux-slider-container{margin-top:3px;width:80%}}.wp-customizer .redux-container-slider .redux-slider-label{float:left;position:inherit;width:25%;text-align:center;margin-left:0}.wp-customizer .redux-container-slider .redux-slider-input,.wp-customizer .redux-container-slider .redux-slider-select-one,.wp-customizer .redux-container-slider .redux-slider-select-two{width:25% !important}.wp-customizer .redux-container-slider .redux-slider-container{width:70%;margin-right:0;margin-left:5%}.redux-container-sortable i.el,.redux-container-sortable i.dashicons-menu{cursor:move;padding-top:5px}.redux-container-sortable label{margin-right:10px}.redux-container-sortable label.bugger{margin-bottom:0px !important;font-size:12px !important;color:#999}.redux-container-sortable input{margin-right:10px}.redux-container-sortable .checkbox-container{width:100%}.redux-container-sortable .checkbox-container label{margin-bottom:2px !important;cursor:inherit}.redux-container-sortable .checkbox-container .drag{float:right;margin-left:10px}.redux-container-sortable ul.checkbox li{padding:5px 10px;border:1px solid #333;background:#fff;margin-bottom:5px !important}.redux-container-sortable ul.checkbox li .dashicons.visibility{padding-top:4px;margin-right:10px;cursor:pointer}.redux-container-sortable ul.checkbox li.invisible{color:#aaa;border:1px dashed #aaa}.redux-container-sortable ul.checkbox li.invisible .dashicons.visibility{color:#aaa}.redux-container-sortable ul.labeled li{line-height:1.4em !important}.redux-container-sortable li{line-height:30px !important}.redux-container-sortable li.ui-state-highlight{height:30px;width:364px;margin-bottom:13px}.redux-container-sortable li.placeholder{height:30px;margin:10px 0}.wp-customizer .redux-sortable input[type="text"]{width:92%}.wp-customizer .redux-sortable i.el{margin-left:5px}.wp-customizer .redux-container-sortable .checkbox-container{width:inherit}.wp-customizer .redux-container-sortable .ui-draggable-handle{margin-left:3%}.redux-container-sorter{margin-right:-20px}.redux-container-sorter ul{background:#f9f9f9;border:1px solid #e3e3e3;min-height:40px;padding:10px 10px 0;width:145px;float:left;margin:0 15px 0 0}.redux-container-sorter ul.filled{opacity:0.7;filter:alpha(opacity=70);background:#efecec}.redux-container-sorter ul li{border:1px solid #dfdfdf;cursor:move;font-weight:bold;margin-bottom:10px !important;padding:0 10px;height:40px;line-height:40px !important;background-color:#f1f1f1;background-image:-webkit-gradient(linear, left top, left bottom, from(#f9f9f9), to(#ececec));background-image:-webkit-linear-gradient(top, #f9f9f9, #ececec);background-image:linear-gradient(to bottom, #f9f9f9, #ececec);overflow:hidden;border-radius:3px;-webkit-box-shadow:inset 0 1px 0 #fff;box-shadow:inset 0 1px 0 #fff;text-align:center}.redux-container-sorter ul li h3{margin:0 0 10px;text-align:center;color:#777;text-transform:capitalize;word-wrap:break-word}.redux-container-sorter ul li.placeholder{height:40px}.wp-customizer .redux-container-sorter ul{width:85%;margin:0 0 5px 0}.redux-container-spacing select,.redux-container-spacing .select_wrapper{width:80px !important;float:left}.redux-container-spacing .field-spacing-input{margin-right:10px;margin-bottom:7px}@media screen and (max-width: 782px){.redux-container-spacing .field-spacing-input input{display:inline-block !important;width:70px !important}.redux-container-spacing .field-spacing-input .add-on{padding:7px 4px;font-size:16px;line-height:1.5}.redux-container-spacing .select_wrapper{margin-top:6px}}.redux-container-spinner .spinner-wrpr{position:relative;display:block;height:30px;overflow:hidden}.redux-container-spinner .spinner-wrpr .spinner-input{position:relative !important;z-index:1;width:75px !important;height:30px !important;background:#eee !important;border:1px solid #bfbfbf !important;border-right:0 !important;border-left:0 !important;border-radius:0 !important}.redux-container-spinner .ui-spinner{position:static;display:inline}.redux-container-spinner .ui-spinner-buttons{position:absolute;padding:0}.redux-container-spinner .ui-widget .ui-spinner-button{color:#fff;position:absolute;top:0;padding:0 0 30px;overflow:hidden;cursor:pointer;background:-webkit-gradient(linear, left top, left bottom, from(#fff), to(#f3f3f3));background:-webkit-linear-gradient(#fff, #f3f3f3);background:linear-gradient(#fff, #f3f3f3);background-color:#fff;border:none;-webkit-box-shadow:none;box-shadow:none}.redux-container-spinner .ui-spinner-button:hover,.redux-container-spinner .ui-state-hover{background:-webkit-gradient(linear, left top, left bottom, from(#f3f3f3), to(#fff));background:-webkit-linear-gradient(#f3f3f3, #fff);background:linear-gradient(#f3f3f3, #fff);background-color:#f3f3f3}.redux-container-spinner .ui-corner-tr,.redux-container-spinner .ui-spinner-button .ui-icon-triangle-1-n{border-radius:0 3px 3px 0}.redux-container-spinner .ui-corner-br,.redux-container-spinner .ui-spinner-button .ui-icon-triangle-1-s{border-radius:3px 0 0 3px}.redux-container-spinner .ui-spinner-button .ui-icon{top:0;display:block;width:28px;height:28px;margin:0;border:1px solid #b7b7b7;background-image:initial;text-indent:0;text-align:center;font-size:18px;line-height:26px}.dp-numberPicker,.dp-numberPicker-add,.dp-numberPicker-sub,.dp-numberPicker-input{display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;-moz-box-sizing:border-box;text-align:center;vertical-align:top;height:30px}.dp-numberPicker{border-radius:3px}.redux-container .redux-container-spinner .dp-numberPicker-add,.redux-container .redux-container-spinner .dp-numberPicker-sub{width:30px;font-size:21px;cursor:pointer;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none;background-color:#33b5e5;color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);height:29px !important}.redux-container .redux-container-spinner .dp-numberPicker-add.disabled,.redux-container .redux-container-spinner .dp-numberPicker-sub.disabled{background-color:#2c6a81}.dp-numberPicker-add{border-top-right-radius:3px;border-bottom-right-radius:3px}.dp-numberPicker-sub{border-top-left-radius:3px;border-bottom-left-radius:3px}.dp-numberPicker-input{width:70px;background-color:#eee;border:0;margin:0 !important;-webkit-box-shadow:inset 0px 1px 1px rgba(255,255,255,0.5),inset 0px -1px 1px rgba(0,0,0,0.5);box-shadow:inset 0px 1px 1px rgba(255,255,255,0.5),inset 0px -1px 1px rgba(0,0,0,0.5)}.dp-numberPicker-input:disabled{background-color:#eee}.redux-container-switch .switch-options{min-height:30px;margin-right:10px}.redux-container-switch .switch-options label{cursor:pointer}.redux-container-switch .switch-options input{display:none}.redux-container-switch .cb-enable,.redux-container-switch .cb-disable{padding:0 10px;border-width:1px;border-style:solid;-webkit-appearance:none;white-space:nowrap;-webkit-box-sizing:border-box;box-sizing:border-box}.redux-container-switch .cb-enable span,.redux-container-switch .cb-disable span{line-height:30px;display:block;font-weight:700;-webkit-user-select:none;-moz-user-select:none;-o-user-select:none;-ms-user-select:none;user-select:none}.redux-container-switch .cb-enable,.redux-container-switch .cb-disable,.redux-container-switch .cb-enable span,.redux-container-switch .cb-disable span{display:block;float:left}.redux-container-switch .cb-enable{border-right:0;border-radius:3px 0px 0px 3px;-moz-border-radius:3px 0px 0px 3px;-webkit-border-radius:3px 0px 0px 3px}.redux-container-switch .cb-enable.selected{color:#fff}.redux-container-switch .cb-disable{border-left:0;border-radius:0px 3px 3px 0px;-moz-border-radius:0px 3px 3px 0px;-webkit-border-radius:0px 3px 3px 0px}.redux-container-switch .cb-disable.selected{color:#fff}.redux-container-text label{display:block;position:relative;font-size:12px !important;text-align:left;color:#999;margin:4px 0 2px 0 !important;cursor:default;top:5px;width:100px}.redux-container-text input{clear:left}.redux-container-text .input_wrapper{display:block;position:relative;padding:0;width:23%;max-width:23%;min-width:70px;float:left;clear:left;height:57px;-webkit-box-sizing:border-box;-o-box-sizing:border-box;box-sizing:border-box;vertical-align:baseline}.wp-customizer .redux-container-text .input_wrapper{width:100%;max-width:100%;height:auto}.redux-main .redux-typography-container{display:block;position:relative;margin:0;padding:0;width:100%;max-width:660px}.redux-main .redux-typography-container .redux-typography-slider{margin-top:11px;width:auto}.redux-main .redux-typography-container .clearfix{clear:both}.redux-main .redux-typography-container .clearfix::after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.redux-main .redux-typography-container input.wp-picker-default,.redux-main .redux-typography-container .redux-typography-color{-webkit-box-sizing:border-box;-o-box-sizing:border-box;box-sizing:border-box;height:24px;padding:0 14px !important;margin-top:0;margin-bottom:0;font-size:12px !important}.redux-main .redux-typography-container .select_wrapper{display:block;position:relative;float:left;clear:none;margin:0 10px 0 0;width:48% !important;min-width:210px !important;max-width:324px !important;height:57px;-webkit-box-sizing:border-box;-o-box-sizing:border-box;box-sizing:border-box}.redux-main .redux-typography-container .select_wrapper:nth-child(odd){margin-right:10px !important}.redux-main .redux-typography-container .select_wrapper:nth-child(even){margin-right:10px !important}.redux-main .redux-typography-container .select_wrapper.typography-family .select2-container{width:100%}.redux-main .redux-typography-container .select_wrapper .redux-typography{font-size:14px !important;display:block;float:left;height:28px !important;line-height:50px !important;padding:0 !important;width:100% !important;-webkit-box-sizing:border-box;-o-box-sizing:border-box;box-sizing:border-box}.redux-main .redux-typography-container .wp-picker-container{float:left;clear:left;margin-bottom:12px;padding:3px;border-radius:3px}.redux-main .redux-typography-container .input_wrapper{display:block;position:relative;margin:0 4px 0 5px;padding:0;width:23%;max-width:23%;min-width:70px;float:left;clear:none;height:57px;-webkit-box-sizing:border-box;-o-box-sizing:border-box;box-sizing:border-box;vertical-align:baseline}.redux-main .redux-typography-container .input_wrapper.margin-top,.redux-main .redux-typography-container .input_wrapper.margin-bottom{margin-left:0px}.redux-main .redux-typography-container .input_wrapper.font-size{margin-left:0}.redux-main .redux-typography-container .input_wrapper input.mini{-webkit-box-sizing:border-box;-o-box-sizing:border-box;box-sizing:border-box;width:78%;text-align:center;margin:0;height:28px;top:3px;padding:0 2px 0 5px;text-decoration:none;border-radius:4px}.redux-main .redux-typography-container .picker-wrapper{display:block;position:relative;margin:0;padding:0;width:100%;min-width:100%;clear:none;height:57px;-webkit-box-sizing:border-box;-o-box-sizing:border-box;box-sizing:border-box;vertical-align:baseline}.redux-main .redux-typography-container label{position:relative;font-size:12px !important;text-align:left;color:#999;width:100%;cursor:default}.redux-main .redux-typography-container .typography-preview{display:none;width:100%;border:1px dotted #d3d3d3;max-width:850px;padding:10px;font-size:10pt;height:auto;margin:5px 0 10px;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden}.redux-main .redux-typography-container .typography-color{border:0 none;margin:0}.redux-main .redux-typography-container ::-webkit-input-placeholder{line-height:19px}@media screen and (max-width: 540px){.redux-main .redux-main .redux-typography-container{max-width:230px;margin:0 auto}.redux-main .redux-main .redux-typography-container .select_wrapper{max-width:210px;min-width:210px;width:210px;margin-left:0 !important;margin-right:0 !important}.redux-main .redux-main .redux-typography-container .input_wrapper{max-width:101px;min-width:101px;width:101px;margin-left:0 !important;margin-right:5px !important}.redux-main .redux-main .redux-typography-container .input_wrapper input.mini{width:73%}.redux-main .redux-main .redux-typography-container .input-append .add-on{width:30%;padding:5px !important}.redux-main .redux-main .redux-main .wp-picker-container .wp-picker-input-wrap{margin-top:7px}}@media screen and (max-width: 360px){.redux-main .redux-typography-container .iris-picker .iris-square{margin-right:3%}}.wp-customizer .redux-typography-container .input_wrapper{width:40%;max-width:40%;min-width:20%}.wp-customizer .redux-typography-container .input_wrapper input.mini{width:70%}.wp-customizer .redux-typography-container .select_wrapper{width:100% !important}.wp-customizer .redux-container{overflow:visible}.wp-customizer .redux-container .redux-main input{margin:0 !important}.wp-customizer .redux-container .redux-main input.spinner-input{margin-right:30px !important;margin-left:30px !important;margin-top:0px !important}.wp-customizer .redux-container .redux-main .redux-container-editor .wp-editor-area{color:#000000}.wp-customizer .redux-section.open .redux-group-tab{display:block !important}.wp-customizer .redux-section p.customize-section-description{margin-top:22px;word-break:break-word}.wp-customizer .redux-section p.customize-section-description.legacy{margin-top:7px}.wp-customizer .control-section-themes .accordion-section-title{margin:0}.wp-customizer #customize-controls .description{display:block}.wp-customizer #customize-controls .customize-info{margin-bottom:0}.wp-customizer #customize-controls .redux-section .accordion-section-content{background:#fcfcfc}.wp-customizer .redux-section .accordion-section-title i,.wp-customizer .redux-field .accordion-field-title i,.wp-customizer .redux-panel .accordion-section-title i{margin-right:5px}.wp-customizer .accordion-section.redux-main{background:inherit;margin-left:inherit;border-left:inherit;-moz-box-shadow:inherit;-webkit-box-shadow:inherit;padding:inherit;box-shadow:inherit}.wp-customizer .redux_field_th{padding:13px 0px 0px 0px}.wp-customizer .redux-main .redux-field-container{padding:10px 0}.wp-customizer .redux-main .select_wrapper{float:none;width:100%;display:inline-block}.wp-customizer .redux-main .select2-container{margin-right:0 !important;margin-bottom:5px !important;width:100% !important}.wp-customizer .redux-main .select_wrapper:nth-child(odd){margin-right:0}.wp-customizer .redux-main .redux-option-image{max-width:42% !important;margin-right:3%}.wp-customizer .redux-main .customize-control{border-bottom:1px solid #ddd;padding-bottom:4px}.wp-customizer .redux-main .customize-control:last-child{border-bottom:0;padding-bottom:0}.wp-customizer .redux-main .upload{width:100% !important}.wp-customizer .redux-main h3{margin-top:inherit}.wp-customizer .redux-main .redux-container-raw{margin-top:22px;word-break:break-word;padding:0 !important}.wp-customizer .redux-main .redux-container-password input{width:100%}.wp-customizer .select2-drop,.wp-customizer .select2-container{z-index:999999}.wp-customizer .customize-control-redux-raw{list-style:none}.redux_field_th{padding-bottom:0px !important}.redux-group-tab{margin-bottom:0 !important}.block-editor-page .postbox.closed .el:before{content:"" !important}.block-editor-page .postbox .el:before{content:""}.postbox .redux-container{-webkit-filter:none;filter:none;border:none;border-radius:0;-webkit-box-shadow:none;box-shadow:none}.postbox .redux-container .redux-group-menu .active a{background:#FFF}.postbox .redux-container .redux-section-title{padding-left:0 !important;margin-bottom:15px !important}.postbox .redux-container .redux-section-desc{margin-bottom:20px}.postbox .redux-container .redux_main{border-left:1px solid #D8D8D8;moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none}.postbox .redux-container .redux_main input[type=text]{width:95%}.postbox .redux-container.redux-no-sections{margin:0;background:none}.postbox .redux-container.redux-no-sections .redux-main{background:none;margin-left:inherit;padding:inherit;border-left:none !important;min-height:0 !important}.postbox .redux-container.redux-no-sections .redux-main tr:last-child{border-bottom:none}.postbox .redux-container.redux-no-sections .redux-main tr:last-child th,.postbox .redux-container.redux-no-sections .redux-main tr:last-child td{padding-bottom:0}.postbox .redux-container.redux-no-sections .redux-main tr td{padding-top:10px !important;width:100%}.postbox .redux-container.redux-no-sections .redux-main .form-table:first-child tr:first-child td{padding-top:0 !important}.postbox .redux-container.redux-no-sections .redux-main .redux-field{margin-bottom:10px !important}.postbox .redux-container.redux-no-sections .redux-main .redux-field:last-child{margin-bottom:0 !important}.postbox .redux-container.redux-has-sections .redux-main{background:#fff}.postbox .redux-container.redux-has-sections .redux-main span.description{padding-bottom:20px}.postbox .redux-main h3{cursor:text !important;-webkit-user-select:inherit !important;-moz-user-select:inherit !important;-ms-user-select:inherit !important;user-select:inherit !important;padding-left:0 !important}.redux-box-side .redux-main .redux-field-container{padding:0;padding-top:5px}.redux-box-side .redux-main .redux-field-container .select2-container,.redux-box-side .redux-main .redux-field-container select{width:100% !important}.redux-box-side .form-table tr td{padding:15px 0 !important}.redux-box-side .form-table tr:last-child td{padding-bottom:0 !important}.redux-box-side .form-table tr:first-child td{padding-top:5px !important}#poststuff .redux-metabox h3.hndle,.metabox-holder .redux-metabox h3.hndle{cursor:pointer;border-bottom:0}.display-group{display:inherit !important}@media (min-width: 1125px) and (max-width: 1405px){.postbox table.form-table,.postbox .form-table>thead,.postbox .form-table>tbody,.postbox .form-table>tbody>tr>th,.postbox .form-table>tbody>tr>td,.postbox .form-table>tbody>tr{display:block !important;width:100% !important;padding:0px !important}.postbox table.form-table.hide,.postbox .form-table>thead.hide,.postbox .form-table>tbody.hide,.postbox .form-table>tbody>tr>th.hide,.postbox .form-table>tbody>tr>td.hide,.postbox .form-table>tbody>tr.hide{display:none !important}.postbox .form-table>tbody>tr>th,.postbox .form-table>tbody>tr>td{padding:10px !important}.postbox .form-table>tbody>tr>th{width:35%}}.redux-metabox .form-table th,.redux-metabox .form-table td{margin:0;padding:0}.redux-box-side .redux-main .redux-field-container .select2-container,.redux-box-side .redux-main .redux-field-container select{width:96% !important}@media (max-width: 1405px){.redux-box-side .redux-main .redux-field-container .select2-container,.redux-box-side .redux-main .redux-field-container select{width:92% !important}}@media (max-width: 1125px){.redux-box-side .redux-main .redux-field-container .select2-container,.redux-box-side .redux-main .redux-field-container select{width:100% !important}}@media (max-width: 1405px){.redux-main .form-table>tbody>tr>td{padding-top:0 !important;padding-bottom:0 !important}.redux-main .redux-field-container{padding:0 0 20px 0 !important;padding-bottom:10px !important}.postbox .form-table>tbody>tr>th{padding-bottom:0 !important}.redux_field_th{padding-top:0 !important;padding-bottom:10px !important}}.redux-no-sections .redux-group-tab{display:block !important}.admin-color-fresh #poststuff .redux-metabox h3.hndle,.admin-color-fresh .metabox-holder .redux-metabox h3.hndle{background:#222;color:#fff}.admin-color-light #poststuff .redux-metabox h3.hndle,.admin-color-light .metabox-holder .redux-metabox h3.hndle{background:#888;color:#fff}.admin-color-blue #poststuff .redux-metabox h3.hndle,.admin-color-blue .metabox-holder .redux-metabox h3.hndle{background:#096484;color:#fff}.admin-color-coffee #poststuff .redux-metabox h3.hndle,.admin-color-coffee .metabox-holder .redux-metabox h3.hndle{background:#46403c;color:#fff}.admin-color-ectoplasm #poststuff .redux-metabox h3.hndle,.admin-color-ectoplasm .metabox-holder .redux-metabox h3.hndle{background:#413256;color:#fff}.admin-color-midnight #poststuff .redux-metabox h3.hndle,.admin-color-midnight .metabox-holder .redux-metabox h3.hndle{background:#363b3f;color:#fff}.admin-color-ocean #poststuff .redux-metabox h3.hndle,.admin-color-ocean .metabox-holder .redux-metabox h3.hndle{background:#627c83;color:#fff}.admin-color-sunrise #poststuff .redux-metabox h3.hndle,.admin-color-sunrise .metabox-holder .redux-metabox h3.hndle{background:#b43c38;color:#fff}.redux-notices{margin-bottom:0;border:0}.redux-metabox .redux-container{margin-top:0}.redux-metabox .inside{margin:0 !important;padding:0 !important}.redux-metabox .redux-no-sections .redux-main{padding:6px 15px 15px 15px !important}.redux-metabox .redux-no-sections .redux-main .default_br{display:none}.redux-metabox .redux-no-sections .redux-main .redux-field-container{padding:10px 0 20px !important}.redux-metabox .redux-no-sections .redux-main .redux_field_th{padding-top:5px !important}.redux-metabox .redux-no-sections.redux-box-side .redux-main{padding:6px 8px 8px 8px !important}.redux-metabox .redux-no-sections.redux-box-side .redux-main input[type=text]{width:100% !important}.wp-color-result{margin:0 6px 0 0px !important}.redux-container .ui-button-text-only .ui-button-text{padding:0}.wpseotab tr{display:table-row !important}.redux_field_search{position:absolute;width:250px !important;right:20px;padding:4px 7px;top:6px}.redux-has-sections .redux_field_search{right:10px}.redux-main.redux-search .redux-section-field,.redux-main.redux-search .redux-info-field,.redux-main.redux-search .redux-notice-field,.redux-main.redux-search .redux-container-group,.redux-main.redux-search .redux-container-raw,.redux-main.redux-search .redux-section-desc,.redux-main.redux-search .redux-group-tab h3,.redux-main.redux-search .hr,.redux-main.redux-search .redux-field-info,.redux-main.redux-search tr{display:none}.redux-main.redux-search #import_export_default_section_group,.redux-main.redux-search #dev_mode_default_section_group{display:none !important}.redux-main.redux-search .redux-group-tab{margin-bottom:0}.redux-main.redux-search .redux-group-tab .form-table-section-indented{margin-left:0 !important;width:100%}.redux-main.redux-search .redux-group-tab .form-table-section-indented .redux-group-tab .form-table-section tr:first-of-type th:first-of-type{padding:inherit !important}.redux-main.redux-search .redux-group-tab .form-table-section-indented .redux-group-tab h3{margin-top:inherit !important}.redux-metabox .redux-has-sections .redux_field_search{top:8px}.redux-container-import_export #redux-import-link-wrapper,.redux-container-import_export #redux-import-code-wrapper{display:none}.redux-container-import_export #redux-export-code,.redux-container-import_export #redux-export-link-value,.redux-container-import_export #redux-import-upload-file{display:none}.redux-container-import_export #redux-import-action span{color:#b94a48}.redux-container-import_export #redux-import-upload span{font-weight:bold}#redux-object-browser{overflow:auto;word-wrap:break-word;max-height:600px;max-width:100%}.redux-container-repeater{padding:15px 20px;margin-bottom:7px;padding-top:0}.redux-container-repeater h4{margin:5px 0px 0px 0px}.redux-container-repeater h4:first-child{margin-top:0px}.redux-container-repeater .description{margin:5px 0 5px 0px}.redux-container-repeater .redux-repeater-accordion{width:100%}.redux-container-repeater .redux-repeater-accordion .ui-state-focus{outline:none}.redux-container-repeater .redux-repeater-accordion-repeater{margin-bottom:10px}.redux-container-repeater .redux-repeater-accordion-repeater>div{border:1px solid #dfdfdf !important;border-radius:0 !important;margin-top:0px !important;padding:10px}.redux-container-repeater .redux-repeater-accordion-repeater h3.ui-accordion-header{border:1px solid #dfdfdf;cursor:move;font-weight:bold;padding:0 10px;height:40px;line-height:40px;background-color:#f1f1f1;background-image:-webkit-gradient(linear, left top, left bottom, from(#f9f9f9), to(#ececec));background-image:-webkit-linear-gradient(top, #f9f9f9, #ececec);background-image:linear-gradient(to bottom, #f9f9f9, #ececec);overflow:hidden;border-radius:3px;-webkit-box-shadow:inset 0 1px 0 #fff;box-shadow:inset 0 1px 0 #fff;text-align:center;margin-bottom:0}.redux-container-repeater .redux-repeaters-add{float:right}.redux-container-repeater .redux-repeaters-add:after{clear:both}.redux-container-repeater .redux-repeaters-remove{color:#ef521d !important;float:right}.redux-container-repeater .redux-repeaters-remove:after{clear:both}.redux-container-repeater .redux-repeater-header{font-weight:bold}.redux-container-repeater .redux_repeaters_add_remove{margin-bottom:10px}.redux-container-repeater .redux-field-container{padding:0 0 10px 0}.redux-container-repeater .redux-field-container:last-child{padding-bottom:0}.redux-container-repeater .ui-accordion .ui-accordion-content{padding:1em}.redux-container-repeater .redux-container-sorter{margin-right:0 !important}#poststuff .redux-container-repeater h3{padding:0;cursor:move !important;line-height:40px}
|
1 |
+
.redux-container-ace_editor .ace-wrapper{position:static}.redux-container-ace_editor .ace_editor{height:200px;border-radius:3px}.redux-container-ace_editor .ace_gutter{z-index:1 !important}.redux-container-border .select2-container{float:left;display:block;margin-right:10px}.redux-container-border .select_wrapper{float:left;width:inherit}.redux-container-border .select_wrapper select{width:80px;float:left}.redux-container-border .field-border-input{margin-right:10px;margin-bottom:7px}@media screen and (max-width: 782px){.redux-container-border .field-border-input input{display:inline-block !important;width:100px !important}.redux-container-border .field-border-input .add-on{padding:7px 4px;font-size:16px;line-height:1.5}.redux-container-border .select_wrapper{margin-top:6px}}.redux-main .redux-container-background .redux-background-position,.redux-main .redux-container-background .redux-background-position select,.redux-main .redux-container-background .redux-background-attachment,.redux-main .redux-container-background .redux-background-attachment select,.redux-main .redux-container-background .redux-background-clip,.redux-main .redux-container-background .redux-background-clip select,.redux-main .redux-container-background .redux-background-origin,.redux-main .redux-container-background .redux-background-origin select,.redux-main .redux-container-background .redux-background-size,.redux-main .redux-container-background .redux-background-size select,.redux-main .redux-container-background .redux-background-repeat,.redux-main .redux-container-background .redux-background-repeat select{width:200px !important;margin-right:10px;margin-bottom:7px}.redux-main .redux-container-background .background-preview{display:block;width:100%;margin:5px 0 10px;border:1px dotted #d3d3d3}.redux-main .redux-container-background .select2-container{margin-right:10px;margin-bottom:10px}.redux-main .redux-container-background .wp-picker-container{margin-bottom:10px}.redux-main .redux-container-background .upload{width:100%;margin-bottom:8px}.redux-main .redux-container-select li.ui-state-highlight{height:20px;margin-top:2px;margin-left:5px;width:64px;margin-bottom:0}.wp-customizer .redux-container-background .redux-background-position,.wp-customizer .redux-container-background .redux-background-position select,.wp-customizer .redux-container-background .redux-background-attachment,.wp-customizer .redux-container-background .redux-background-attachment select,.wp-customizer .redux-container-background .redux-background-clip,.wp-customizer .redux-container-background .redux-background-clip select,.wp-customizer .redux-container-background .redux-background-origin,.wp-customizer .redux-container-background .redux-background-origin select,.wp-customizer .redux-container-background .redux-background-size,.wp-customizer .redux-container-background .redux-background-size select,.wp-customizer .redux-container-background .redux-background-repeat,.wp-customizer .redux-container-background .redux-background-repeat select{width:100% !important}.redux-container-checkbox label{vertical-align:top;width:100%}.redux-container-checkbox label .field-desc{margin-top:0;float:left;width:93%;clear:none}.redux-main .redux-container-box_shadow .box-shadow-inset{margin:0 auto}.redux-main .redux-container-box_shadow .box-shadow-inset #shadow-result{padding:20px;margin-bottom:20px;margin-top:20px;min-height:180px;border:0px solid #ddd;background:#f1f1f1;-webkit-transition:all 0.2s ease;transition:all 0.2s ease}.redux-main .redux-container-box_shadow .box-shadow-inset .row-content:after,.redux-main .redux-container-box_shadow .box-shadow-inset .row:after{clear:both;content:" ";display:block;height:0;visibility:hidden}.redux-main .redux-container-box_shadow .box-shadow-inset .row .col-2{width:50%;float:left;-webkit-box-sizing:border-box;box-sizing:border-box}.redux-main .redux-container-box_shadow .box-shadow-inset .row .col-2.disabled label strong{color:#cccccc}.redux-main .redux-container-box_shadow .box-shadow-inset .row .col-2 label{color:#999999}.redux-main .redux-container-box_shadow .box-shadow-inset .row .col-2 .wp-picker-container.disabled{pointer-events:none;opacity:0.4;z-index:200;background:0;padding:0 !important}.redux-main .redux-container-box_shadow .box-shadow-inset .row .col-2 .wp-picker-container.disabled button{background-color:#888}.redux-main .redux-container-box_shadow .box-shadow-inset .row .col-2 .wp-picker-container.disabled a{z-index:-1}.redux-main .redux-container-box_shadow .box-shadow-inset .row .col-2 ul li{padding-bottom:10px}.redux-main .redux-container-box_shadow .box-shadow-inset .row .col-2:first-child{padding-right:20px}.redux-main .redux-container-box_shadow .box-shadow-inset .row .col-2:last-child{padding-left:20px}.redux-container-color_gradient .redux-gradient-preview{height:150px;margin-top:10px;border-radius:4px}.redux-container-color_gradient .colorGradient,.redux-container-color_gradient .redux-gradient-type{display:inline-block;margin-right:20px}.redux-container-color_gradient .colorGradient strong,.redux-container-color_gradient .redux-gradient-type strong{display:table;margin-bottom:5px;margin-left:3px;font-size:12px;color:#999}@media screen and (max-width: 660px){.redux-container-color_gradient .colorGradient{display:block;text-align:center !important}}.sp-container{color:#555;border-color:#ccc;background:#f7f7f7;-webkit-box-shadow:inset 0 1px 0 #fff,0 1px 0 rgba(0,0,0,0.08);box-shadow:inset 0 1px 0 #fff,0 1px 0 rgba(0,0,0,0.08);vertical-align:top}.sp-replacer{color:#555;border-color:#ccc;background:#f7f7f7;-webkit-box-shadow:inset 0 1px 0 #fff,0 1px 0 rgba(0,0,0,0.08);box-shadow:inset 0 1px 0 #fff,0 1px 0 rgba(0,0,0,0.08);vertical-align:top}.sp-replacer:focus,.sp-replacer:hover,.sp-replacer.focus,.sp-replacer.hover{background:#fafafa;border-color:#999;color:#222}.sp-replacer:focus,.sp-replacer.focus{-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,0.8);box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,0.8)}.sp-replacer.active:focus{-webkit-box-shadow:inset 0 2px 5px -3px rgba(0,0,0,0.5),0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,0.8);box-shadow:inset 0 2px 5px -3px rgba(0,0,0,0.5),0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,0.8)}.sp-replacer.active,.sp-replacer.active:hover,.sp-replacer:active{background:#eee;border-color:#999;color:#333;-webkit-box-shadow:inset 0 2px 5px -3px rgba(0,0,0,0.5);box-shadow:inset 0 2px 5px -3px rgba(0,0,0,0.5)}.redux-main .redux-container-color_palette label{position:relative;display:inline-block;padding:0;margin:0}.redux-main .redux-container-color_palette .colors-wrapper{max-height:300px;overflow-y:auto;padding:10px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.redux-main .redux-container-color_palette .colors-wrapper .color-palette-color{color:transparent;display:block;width:100%;height:100%;overflow:hidden;border:1px solid rgba(0,0,0,0.2)}.redux-main .redux-container-color_palette .colors-wrapper.round label{padding:3px}.redux-main .redux-container-color_palette .colors-wrapper.round .color-palette-color{border-radius:50%}.redux-main .redux-container-color_palette .colors-wrapper.box-shadow .color-palette-color{-webkit-box-shadow:inset 3px 3px 13px 2px rgba(0,0,0,0.22);box-shadow:inset 3px 3px 13px 2px rgba(0,0,0,0.22)}.redux-main .redux-container-color_palette .colors-wrapper input{display:none}.redux-main .redux-container-color_palette .colors-wrapper input:checked+label .color-palette-color{border:0;width:130%;height:130%;position:relative;left:-15%;top:-15%;z-index:99;-webkit-box-shadow:1px 1px 6px 1px #333333;box-shadow:1px 1px 6px 1px #333333;border:1px solid rgba(0,0,0,0.3)}.redux-main .redux-container-color_palette .colors-wrapper.with-margin label{margin:3px !important}#ui-datepicker-div{z-index:15 !important}.ui-datepicker-header{background-color:#00abef}.redux-dimensions-container select,.redux-dimensions-container .select_wrapper{width:80px !important;float:left}.redux-dimensions-container .field-dimensions-input{margin-right:10px;margin-bottom:7px}@media screen and (max-width: 782px){.redux-dimensions-container .field-dimensions-input input{display:inline-block !important;width:100px !important}.redux-dimensions-container .field-dimensions-input .add-on{padding:7px 4px;font-size:16px;line-height:1.5}.redux-dimensions-container .select_wrapper{margin-top:6px}}.redux-main .divide{height:20px;line-height:20px;float:none;border-color:#e7e7e7;display:block;width:100%;height:35px !important;line-height:35px !important;position:relative;margin:15px 0 10px 0}.redux-main .divide .inner{width:42% !important;left:40% !important;margin-left:-6%;background-color:#fcfcfc;border-color:#e7e7e7;position:absolute;height:1px;top:50%;width:100%;margin-top:-1px;border-top-width:1px;border-top-style:solid}.redux-main .divide .inner span{background-color:#fcfcfc;border-color:#e7e7e7;height:5px;width:5px;border-width:2px;border-style:solid;display:block;position:absolute;left:50%;margin-left:-5px;margin-top:-5px}.wp-customizer .redux-container-divide .divide .inner{width:82% !important;left:18% !important;margin-left:-8%}.redux-container-editor .mceLayout td{border-width:1px;margin:0;padding:1px}.redux-container-editor input,.redux-container-editor textarea{margin:inherit}.redux-container-editor textarea{border-style:none;border:0;border-width:0}.redux-container-editor .wp-editor-container{border-radius:3px}.redux-container-editor .wp-editor-container textarea{border-radius:0;border-style:inherit}.redux-container-editor .quicktags-toolbar input{margin:2px 1px 4px;display:inline-block;min-width:26px;padding:2px 4px;font:12px/18px Arial, Helvetica, sans-serif normal;color:#464646;border:1px solid #c3c3c3;border-radius:3px;background:#eee;background-image:-webkit-gradient(linear, left bottom, left top, from(#e3e3e3), to(#fff));background-image:-webkit-linear-gradient(bottom, #e3e3e3, #fff);background-image:linear-gradient(to top, #e3e3e3, #fff)}.redux-container-image_select .redux-table-container{display:table;table-layout:fixed;width:100%}.redux-container-image_select .redux-image-select{margin:0 !important}.redux-container-image_select .redux-image-select .tiles{display:block;background-color:#fff;background-repeat:repeat;width:40px;height:40px}.redux-container-image_select .redux-image-select img,.redux-container-image_select .redux-image-select .tiles{border-color:#d9d9d9}.redux-container-image_select .redux-image-select li:last-child{margin-bottom:0}.redux-container-image_select .redux-image-select input[type="radio"]{display:none}.redux-container-image_select .redux-image-select-presets img{width:100%}.redux-container-image_select ul.redux-image-select li{margin:0 10px 3px 10px;display:inline-block;padding:2px 2px;padding-left:0}.redux-container-image_select .redux-image-select-selected{background-color:#f9f9f9}.redux-container-image_select .redux-image-select img,.redux-container-image_select .redux-image-select-selected img,.redux-container-image_select .redux-image-select .tiles,.redux-container-image_select .redux-image-select-selected .tiles{border-width:4px;border-style:solid}.redux-container-image_select .redux-image-select-selected .tiles,.redux-container-image_select .redux-image-select-selected .tiles{border-color:#7a7a7a}.redux-container-link_color .linkColor{display:inline-block;padding-right:10px;padding-bottom:7px}.redux-container-link_color .linkColor strong{display:table;margin-bottom:5px;margin-left:3px;font-size:12px;font-weight:normal;color:#999}.redux-info-field{min-height:20px;padding:8px 19px;margin:10px 0;border:1px solid;border-radius:4px;border:1px solid;position:relative}.redux-info-field h1,.redux-info-field h2,.redux-info-field h3,.redux-info-field h4,.redux-info-field h5,.redux-info-field h6{border-bottom:0 !important}.redux-info-field h3{color:#777}.redux-info-field .redux-info-icon{display:inline-block;margin-right:15px}.redux-info-field .redux-info-icon i{font-size:2em}.redux-info-field .redux-info-desc{display:inline-block;vertical-align:top}.redux-info-field.redux-normal{background-color:#eee;border-color:#ccc;color:#666}.redux-info-field.redux-normal i{color:#c5c5c5}.redux-info-field.redux-warning{background-color:#fbeba4;border-color:#d7c281;color:#958234}.redux-info-field.redux-warning i{color:#dcca81}.redux-info-field.redux-success{background-color:#c4ee91;border-color:#71af5d;color:#4d7615}.redux-info-field.redux-success i{color:#a0ca6c}.redux-info-field.redux-critical{background-color:#fba1a3;border-color:#b84f5b;color:#981225}.redux-info-field.redux-critical i{color:#dd767d}.redux-info-field.redux-info{background-color:#d3e4f4;border-color:#a9b6c2;color:#5c80a1}.redux-info-field.redux-info i{color:#afc6da}.redux-notice-field{margin:15px 0 0;background-color:#fff;border:0;border-left:4px solid #f3f3f3;-webkit-box-shadow:0 1px 1px 0 rgba(0,0,0,0.1);box-shadow:0 1px 1px 0 rgba(0,0,0,0.1);padding:1px 12px}.redux-notice-field h1,.redux-notice-field h2,.redux-notice-field h3,.redux-notice-field h4,.redux-notice-field h5,.redux-notice-field h6{border-bottom:0 !important}.redux-notice-field p{margin:0.5em 0;padding:2px}.redux-notice-field .redux-info-icon{display:inline-block;margin-right:15px}.redux-notice-field .redux-info-icon i{font-size:2em}.redux-notice-field .redux-info-desc{display:inline-block;vertical-align:top}.redux-notice-field.redux-info{border-left:4px solid #0099d5}.redux-notice-field.redux-success{border-left:4px solid #7ad03a}.redux-notice-field.redux-warning{border-left:4px solid #fbeba4}.redux-notice-field.redux-critical{border-left:4px solid #dd3d36}.redux-main .redux-field-container.redux-container-info{padding:0}.wp-customizer .hasIcon.redux-notice-field .redux-info-desc,.wp-customizer .hasIcon.redux-info-field .redux-info-desc{display:block;margin-left:43px}.wp-customizer .hasIcon.redux-notice-field .redux-info-icon,.wp-customizer .hasIcon.redux-info-field .redux-info-icon{float:left}.wp-customizer .redux-main .customize-control.customize-control-redux-info{border-bottom:0}.redux-container-multi_text ul.redux-multi-text{margin:0;padding:0}.redux-container-multi_text .redux-multi-text-add{clear:both;margin:5px 0}.redux-container-multi_text a.redux-multi-text-remove.deletion{color:#f00;padding:2px 4px;margin-left:5px}.redux-container-multi_text a.redux-multi-text-remove.deletion:hover{background:#ff0;color:#fff;text-decoration:none}@media screen and (max-width: 782px){.redux-container-multi_text input{clear:both}.redux-container-multi_text .redux-multi-text-remove{margin:0;float:right}}.wp-customizer .redux-container-multi_text .button{float:right}.wp-customizer .redux-container-multi_text .redux-multi-text-remove{float:right;margin-bottom:5px}.wp-customizer .redux-container-multi_text ul.redux-multi-text input{width:100% !important}.redux-main .redux-media-slider{width:40%;display:inline-block;margin-left:30px}.redux-main .redux-media-filter-container{padding-top:20px}.redux-main .redux-media-filter-container .container-label{margin-bottom:20px;padding-bottom:1px;border-bottom:1px solid #e7e7e7;font-weight:600;font-size:12px;color:#999}.redux-main .redux-media-filter-container .media-filter{display:inline-block;width:47%;margin-bottom:5px}.redux-main .redux-media-filter-container .media-filter label{display:inline-block;width:130px;color:#999}.redux-main .redux-media-filter-container .media-filter label.disabled .filter-value{color:#ccc}.redux-container-palette label{border:3px solid transparent;border-color:transparent !important;border-radius:0;width:100% !important;display:block}.redux-container-palette label.ui-button.ui-widget{width:95%;background:none;padding:0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.redux-container-palette label.ui-button.ui-widget .ui-checkboxradio-icon,.redux-container-palette label.ui-button.ui-widget .ui-checkboxradio-icon-space{display:none}.redux-container-palette label.ui-button.ui-widget span{padding:10px;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;font-size:0;line-height:10px;color:rgba(0,0,0,0);-webkit-transition:all 200ms ease-in-out;transition:all 200ms ease-in-out;text-shadow:0}.redux-container-palette label.ui-button.ui-widget span:hover{-webkit-box-flex:3;-webkit-flex-grow:3;-ms-flex-positive:3;flex-grow:3;font-weight:bold;min-width:60px;font-size:12px;line-height:10px;color:#333;text-shadow:0 0 8px #fff, 0 0 8px #fff}.redux-container-palette label.ui-state-active{border:3px solid #333 !important}.wp-customizer .redux-main .redux-container-palette label{margin-bottom:3px}.redux-container-select li.ui-state-highlight{height:20px;margin-top:2px;margin-left:5px;width:64px;margin-bottom:0}.select2-search__field{width:none !important}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove,.select2-container--classic .select2-selection--single .select2-selection__clear{font-size:1.2em}.redux-container-select_image{margin-top:2px;margin-left:5px;width:100%;margin-bottom:0}.redux-preview-image{max-height:250px;max-width:250px;padding:5px;margin-top:10px;border:1px solid #e3e3e3;background:#f7f7f7;border-radius:3px}.redux-main .form-table-section-indented{width:95%;margin-left:5% !important}.redux-main .form-table-section tr:first-of-type th:first-of-type{padding:0px !important}.redux-main h3{margin-top:10px}.redux-main .form-table-section-indented>tbody>tr:first-child{display:none}.redux-main .form-table-section-indented>tbody>tr:nth-last-child(2){border-bottom:0}.redux-container-slider .redux-slider-container{margin-left:25px;margin-right:25px;width:200px;display:inline-block;vertical-align:middle}.redux-container-slider .redux-slider-input,.redux-container-slider .redux-slider-select-one,.redux-container-slider .redux-slider-select-two{width:100px !important;text-align:center}.redux-container-slider .redux-slider-label{position:absolute;margin-left:-5px}.redux-container-slider .redux-slider-label-one{position:absolute;margin-left:-22px}.redux-container-slider .redux-slider-label-two{position:absolute;margin-top:-21px;margin-left:245px}@media screen and (max-width: 782px){.redux-container-slider input{display:inline-block !important}}@media screen and (max-width: 570px){.redux-container-slider{text-align:center}.redux-container-slider input,.redux-container-slider select,.redux-container-slider .redux-slider-label,.redux-container-slider .select2-container{display:block !important;position:inherit;margin:10px auto}.redux-container-slider .redux-slider-container{margin-top:3px;width:80%}}.wp-customizer .redux-container-slider .redux-slider-label{float:left;position:inherit;width:25%;text-align:center;margin-left:0}.wp-customizer .redux-container-slider .redux-slider-input,.wp-customizer .redux-container-slider .redux-slider-select-one,.wp-customizer .redux-container-slider .redux-slider-select-two{width:25% !important}.wp-customizer .redux-container-slider .redux-slider-container{width:70%;margin-right:0;margin-left:5%}.redux-container-slides .redux-slides-list .select2-container{margin-bottom:10px;width:100%}.redux-container-slides .ui-accordion-header{margin-bottom:0}.redux-container-slides .full-text,.redux-container-slides .large-text{width:100%}.redux-container-slides .redux-slides-accordion-group{border:1px solid #dfdfdf !important;border-radius:3px !important;margin-top:0px !important;margin-bottom:10px;background:#f9f9f9;padding:5px}.redux-container-slides .redux-slides-accordion-group h3{border:1px solid #dfdfdf;cursor:move !important;font-weight:bold;padding:0 10px !important;height:40px;line-height:40px !important;background-color:#f1f1f1;background-image:-webkit-gradient(linear, left top, left bottom, from(#f9f9f9), to(#ececec));background-image:-webkit-linear-gradient(top, #f9f9f9, #ececec);background-image:linear-gradient(to bottom, #f9f9f9, #ececec);overflow:hidden;border-radius:3px;-webkit-box-shadow:inset 0 1px 0 #fff;box-shadow:inset 0 1px 0 #fff;text-align:center}.redux-container-slides #redux-slides-accordion .redux-slides-image{height:250px;padding:5px;margin-top:10px;margin-bottom:10px;border:1px solid #e3e3e3;background:#f7f7f7;border-radius:3px}.redux-container-slides .redux-slides-add{float:right;margin-right:10%;display:block;margin-bottom:10px}.redux-container-slides .redux-slides-remove{color:#ef521d !important;float:right;margin-top:5px}.redux-container-slides .redux-slides-header{font-weight:bold}.redux-container-slides .redux_slides_add_remove{margin-bottom:10px}.redux-container-slides input{width:100% !important}.wp-customizer .redux-container-slides .ui-accordion .ui-accordion-content{padding:10px}.redux-container-sortable i.el,.redux-container-sortable i.dashicons-menu{cursor:move;padding-top:5px}.redux-container-sortable label{margin-right:10px}.redux-container-sortable label.bugger{margin-bottom:0px !important;font-size:12px !important;color:#999}.redux-container-sortable input{margin-right:10px}.redux-container-sortable .checkbox-container{width:100%}.redux-container-sortable .checkbox-container label{margin-bottom:2px !important;cursor:inherit}.redux-container-sortable .checkbox-container .drag{float:right;margin-left:10px}.redux-container-sortable ul.checkbox li{padding:5px 10px;border:1px solid #333;background:#fff;margin-bottom:5px !important}.redux-container-sortable ul.checkbox li .dashicons.visibility{padding-top:4px;margin-right:10px;cursor:pointer}.redux-container-sortable ul.checkbox li.invisible{color:#aaa;border:1px dashed #aaa}.redux-container-sortable ul.checkbox li.invisible .dashicons.visibility{color:#aaa}.redux-container-sortable ul.labeled li{line-height:1.4em !important}.redux-container-sortable li{line-height:30px !important}.redux-container-sortable li.ui-state-highlight{height:30px;width:364px;margin-bottom:13px}.redux-container-sortable li.placeholder{height:30px;margin:10px 0}.wp-customizer .redux-sortable input[type="text"]{width:92%}.wp-customizer .redux-sortable i.el{margin-left:5px}.wp-customizer .redux-container-sortable .checkbox-container{width:inherit}.wp-customizer .redux-container-sortable .ui-draggable-handle{margin-left:3%}.redux-container-sorter{margin-right:-20px}.redux-container-sorter ul{background:#f9f9f9;border:1px solid #e3e3e3;min-height:40px;padding:10px 10px 0;width:145px;float:left;margin:0 15px 0 0}.redux-container-sorter ul.filled{opacity:0.7;filter:alpha(opacity=70);background:#efecec}.redux-container-sorter ul li{border:1px solid #dfdfdf;cursor:move;font-weight:bold;margin-bottom:10px !important;padding:0 10px;height:40px;line-height:40px !important;background-color:#f1f1f1;background-image:-webkit-gradient(linear, left top, left bottom, from(#f9f9f9), to(#ececec));background-image:-webkit-linear-gradient(top, #f9f9f9, #ececec);background-image:linear-gradient(to bottom, #f9f9f9, #ececec);overflow:hidden;border-radius:3px;-webkit-box-shadow:inset 0 1px 0 #fff;box-shadow:inset 0 1px 0 #fff;text-align:center}.redux-container-sorter ul li h3{margin:0 0 10px;text-align:center;color:#777;text-transform:capitalize;word-wrap:break-word}.redux-container-sorter ul li.placeholder{height:40px}.wp-customizer .redux-container-sorter ul{width:85%;margin:0 0 5px 0}.redux-container-spacing select,.redux-container-spacing .select_wrapper{width:80px !important;float:left}.redux-container-spacing .field-spacing-input{margin-right:10px;margin-bottom:7px}@media screen and (max-width: 782px){.redux-container-spacing .field-spacing-input input{display:inline-block !important;width:70px !important}.redux-container-spacing .field-spacing-input .add-on{padding:7px 4px;font-size:16px;line-height:1.5}.redux-container-spacing .select_wrapper{margin-top:6px}}.redux-container-switch .switch-options{min-height:30px;margin-right:10px}.redux-container-switch .switch-options label{cursor:pointer}.redux-container-switch .switch-options input{display:none}.redux-container-switch .cb-enable,.redux-container-switch .cb-disable{padding:0 10px;border-width:1px;border-style:solid;-webkit-appearance:none;white-space:nowrap;-webkit-box-sizing:border-box;box-sizing:border-box}.redux-container-switch .cb-enable span,.redux-container-switch .cb-disable span{line-height:30px;display:block;font-weight:700;-webkit-user-select:none;-moz-user-select:none;-o-user-select:none;-ms-user-select:none;user-select:none}.redux-container-switch .cb-enable,.redux-container-switch .cb-disable,.redux-container-switch .cb-enable span,.redux-container-switch .cb-disable span{display:block;float:left}.redux-container-switch .cb-enable{border-right:0;border-radius:3px 0px 0px 3px;-moz-border-radius:3px 0px 0px 3px;-webkit-border-radius:3px 0px 0px 3px}.redux-container-switch .cb-enable.selected{color:#fff}.redux-container-switch .cb-disable{border-left:0;border-radius:0px 3px 3px 0px;-moz-border-radius:0px 3px 3px 0px;-webkit-border-radius:0px 3px 3px 0px}.redux-container-switch .cb-disable.selected{color:#fff}.redux-container-text label{display:block;position:relative;font-size:12px !important;text-align:left;color:#999;margin:4px 0 2px 0 !important;cursor:default;top:5px;width:100px}.redux-container-text input{clear:left}.redux-container-text .input_wrapper{display:block;position:relative;padding:0;width:23%;max-width:23%;min-width:70px;float:left;clear:left;height:57px;-webkit-box-sizing:border-box;-o-box-sizing:border-box;box-sizing:border-box;vertical-align:baseline}.wp-customizer .redux-container-text .input_wrapper{width:100%;max-width:100%;height:auto}.redux-container-spinner .spinner-wrpr{position:relative;display:block;height:30px;overflow:hidden}.redux-container-spinner .spinner-wrpr .spinner-input{position:relative !important;z-index:1;width:75px !important;height:30px !important;background:#eee !important;border:1px solid #bfbfbf !important;border-right:0 !important;border-left:0 !important;border-radius:0 !important}.redux-container-spinner .ui-spinner{position:static;display:inline}.redux-container-spinner .ui-spinner-buttons{position:absolute;padding:0}.redux-container-spinner .ui-widget .ui-spinner-button{color:#fff;position:absolute;top:0;padding:0 0 30px;overflow:hidden;cursor:pointer;background:-webkit-gradient(linear, left top, left bottom, from(#fff), to(#f3f3f3));background:-webkit-linear-gradient(#fff, #f3f3f3);background:linear-gradient(#fff, #f3f3f3);background-color:#fff;border:none;-webkit-box-shadow:none;box-shadow:none}.redux-container-spinner .ui-spinner-button:hover,.redux-container-spinner .ui-state-hover{background:-webkit-gradient(linear, left top, left bottom, from(#f3f3f3), to(#fff));background:-webkit-linear-gradient(#f3f3f3, #fff);background:linear-gradient(#f3f3f3, #fff);background-color:#f3f3f3}.redux-container-spinner .ui-corner-tr,.redux-container-spinner .ui-spinner-button .ui-icon-triangle-1-n{border-radius:0 3px 3px 0}.redux-container-spinner .ui-corner-br,.redux-container-spinner .ui-spinner-button .ui-icon-triangle-1-s{border-radius:3px 0 0 3px}.redux-container-spinner .ui-spinner-button .ui-icon{top:0;display:block;width:28px;height:28px;margin:0;border:1px solid #b7b7b7;background-image:initial;text-indent:0;text-align:center;font-size:18px;line-height:26px}.dp-numberPicker,.dp-numberPicker-add,.dp-numberPicker-sub,.dp-numberPicker-input{display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;-moz-box-sizing:border-box;text-align:center;vertical-align:top;height:30px}.dp-numberPicker{border-radius:3px}.redux-container .redux-container-spinner .dp-numberPicker-add,.redux-container .redux-container-spinner .dp-numberPicker-sub{width:30px;font-size:21px;cursor:pointer;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none;background-color:#33b5e5;color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);height:29px !important}.redux-container .redux-container-spinner .dp-numberPicker-add.disabled,.redux-container .redux-container-spinner .dp-numberPicker-sub.disabled{background-color:#2c6a81}.dp-numberPicker-add{border-top-right-radius:3px;border-bottom-right-radius:3px}.dp-numberPicker-sub{border-top-left-radius:3px;border-bottom-left-radius:3px}.dp-numberPicker-input{width:70px;background-color:#eee;border:0;margin:0 !important;-webkit-box-shadow:inset 0px 1px 1px rgba(255,255,255,0.5),inset 0px -1px 1px rgba(0,0,0,0.5);box-shadow:inset 0px 1px 1px rgba(255,255,255,0.5),inset 0px -1px 1px rgba(0,0,0,0.5)}.dp-numberPicker-input:disabled{background-color:#eee}.redux-main .redux-typography-container{display:block;position:relative;margin:0;padding:0;width:100%;max-width:660px}.redux-main .redux-typography-container .redux-typography-slider{margin-top:11px;width:auto}.redux-main .redux-typography-container .clearfix{clear:both}.redux-main .redux-typography-container .clearfix::after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.redux-main .redux-typography-container input.wp-picker-default,.redux-main .redux-typography-container .redux-typography-color{-webkit-box-sizing:border-box;-o-box-sizing:border-box;box-sizing:border-box;height:24px;padding:0 14px !important;margin-top:0;margin-bottom:0;font-size:12px !important}.redux-main .redux-typography-container .select_wrapper{display:block;position:relative;float:left;clear:none;margin:0 10px 0 0;width:48% !important;min-width:210px !important;max-width:324px !important;height:57px;-webkit-box-sizing:border-box;-o-box-sizing:border-box;box-sizing:border-box}.redux-main .redux-typography-container .select_wrapper:nth-child(odd){margin-right:10px !important}.redux-main .redux-typography-container .select_wrapper:nth-child(even){margin-right:10px !important}.redux-main .redux-typography-container .select_wrapper.typography-family .select2-container{width:100%}.redux-main .redux-typography-container .select_wrapper .redux-typography{font-size:14px !important;display:block;float:left;height:28px !important;line-height:50px !important;padding:0 !important;width:100% !important;-webkit-box-sizing:border-box;-o-box-sizing:border-box;box-sizing:border-box}.redux-main .redux-typography-container .wp-picker-container{float:left;clear:left;margin-bottom:12px;padding:3px;border-radius:3px}.redux-main .redux-typography-container .input_wrapper{display:block;position:relative;margin:0 4px 0 5px;padding:0;width:23%;max-width:23%;min-width:70px;float:left;clear:none;height:57px;-webkit-box-sizing:border-box;-o-box-sizing:border-box;box-sizing:border-box;vertical-align:baseline}.redux-main .redux-typography-container .input_wrapper.margin-top,.redux-main .redux-typography-container .input_wrapper.margin-bottom{margin-left:0px}.redux-main .redux-typography-container .input_wrapper.font-size{margin-left:0}.redux-main .redux-typography-container .input_wrapper input.mini{-webkit-box-sizing:border-box;-o-box-sizing:border-box;box-sizing:border-box;width:78%;text-align:center;margin:0;height:28px;top:3px;padding:0 2px 0 5px;text-decoration:none;border-radius:4px}.redux-main .redux-typography-container .picker-wrapper{display:block;position:relative;margin:0;padding:0;width:100%;min-width:100%;clear:none;height:57px;-webkit-box-sizing:border-box;-o-box-sizing:border-box;box-sizing:border-box;vertical-align:baseline}.redux-main .redux-typography-container label{position:relative;font-size:12px !important;text-align:left;color:#999;width:100%;cursor:default}.redux-main .redux-typography-container .typography-preview{display:none;width:100%;border:1px dotted #d3d3d3;max-width:850px;padding:10px;font-size:10pt;height:auto;margin:5px 0 10px;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden}.redux-main .redux-typography-container .typography-color{border:0 none;margin:0}.redux-main .redux-typography-container ::-webkit-input-placeholder{line-height:19px}@media screen and (max-width: 540px){.redux-main .redux-main .redux-typography-container{max-width:230px;margin:0 auto}.redux-main .redux-main .redux-typography-container .select_wrapper{max-width:210px;min-width:210px;width:210px;margin-left:0 !important;margin-right:0 !important}.redux-main .redux-main .redux-typography-container .input_wrapper{max-width:101px;min-width:101px;width:101px;margin-left:0 !important;margin-right:5px !important}.redux-main .redux-main .redux-typography-container .input_wrapper input.mini{width:73%}.redux-main .redux-main .redux-typography-container .input-append .add-on{width:30%;padding:5px !important}.redux-main .redux-main .redux-main .wp-picker-container .wp-picker-input-wrap{margin-top:7px}}@media screen and (max-width: 360px){.redux-main .redux-typography-container .iris-picker .iris-square{margin-right:3%}}.wp-customizer .redux-typography-container .input_wrapper{width:40%;max-width:40%;min-width:20%}.wp-customizer .redux-typography-container .input_wrapper input.mini{width:70%}.wp-customizer .redux-typography-container .select_wrapper{width:100% !important}.wp-customizer .redux-container{overflow:visible}.wp-customizer .redux-container .redux-main input{margin:0 !important}.wp-customizer .redux-container .redux-main input.spinner-input{margin-right:30px !important;margin-left:30px !important;margin-top:0px !important}.wp-customizer .redux-container .redux-main .redux-container-editor .wp-editor-area{color:#000000}.wp-customizer .redux-section.open .redux-group-tab{display:block !important}.wp-customizer .redux-section p.customize-section-description{margin-top:22px;word-break:break-word}.wp-customizer .redux-section p.customize-section-description.legacy{margin-top:7px}.wp-customizer .control-section-themes .accordion-section-title{margin:0}.wp-customizer #customize-controls .description{display:block}.wp-customizer #customize-controls .customize-info{margin-bottom:0}.wp-customizer #customize-controls .redux-section .accordion-section-content{background:#fcfcfc}.wp-customizer .redux-section .accordion-section-title i,.wp-customizer .redux-field .accordion-field-title i,.wp-customizer .redux-panel .accordion-section-title i{margin-right:5px}.wp-customizer .accordion-section.redux-main{background:inherit;margin-left:inherit;border-left:inherit;-moz-box-shadow:inherit;-webkit-box-shadow:inherit;padding:inherit;box-shadow:inherit}.wp-customizer .redux_field_th{padding:13px 0px 0px 0px}.wp-customizer .redux-main .redux-field-container{padding:10px 0}.wp-customizer .redux-main .select_wrapper{float:none;width:100%;display:inline-block}.wp-customizer .redux-main .select2-container{margin-right:0 !important;margin-bottom:5px !important;width:100% !important}.wp-customizer .redux-main .select_wrapper:nth-child(odd){margin-right:0}.wp-customizer .redux-main .redux-option-image{max-width:42% !important;margin-right:3%}.wp-customizer .redux-main .customize-control{border-bottom:1px solid #ddd;padding-bottom:4px}.wp-customizer .redux-main .customize-control:last-child{border-bottom:0;padding-bottom:0}.wp-customizer .redux-main .upload{width:100% !important}.wp-customizer .redux-main h3{margin-top:inherit}.wp-customizer .redux-main .redux-container-raw{margin-top:22px;word-break:break-word;padding:0 !important}.wp-customizer .redux-main .redux-container-password input{width:100%}.wp-customizer .select2-drop,.wp-customizer .select2-container{z-index:999999}.wp-customizer .customize-control-redux-raw{list-style:none}.redux_field_th{padding-bottom:0px !important}.redux-group-tab{margin-bottom:0 !important}.block-editor-page .postbox.closed .el:before{content:"" !important}.block-editor-page .postbox .el:before{content:""}.postbox .redux-container{-webkit-filter:none;filter:none;border:none;border-radius:0;-webkit-box-shadow:none;box-shadow:none}.postbox .redux-container .redux-group-menu .active a{background:#FFF}.postbox .redux-container .redux-section-title{padding-left:0 !important;margin-bottom:15px !important}.postbox .redux-container .redux-section-desc{margin-bottom:20px}.postbox .redux-container .redux_main{border-left:1px solid #D8D8D8;moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none}.postbox .redux-container .redux_main input[type=text]{width:95%}.postbox .redux-container.redux-no-sections{margin:0;background:none}.postbox .redux-container.redux-no-sections .redux-main{background:none;margin-left:inherit;padding:inherit;border-left:none !important;min-height:0 !important}.postbox .redux-container.redux-no-sections .redux-main tr:last-child{border-bottom:none}.postbox .redux-container.redux-no-sections .redux-main tr:last-child th,.postbox .redux-container.redux-no-sections .redux-main tr:last-child td{padding-bottom:0}.postbox .redux-container.redux-no-sections .redux-main tr td{padding-top:10px !important;width:100%}.postbox .redux-container.redux-no-sections .redux-main .form-table:first-child tr:first-child td{padding-top:0 !important}.postbox .redux-container.redux-no-sections .redux-main .redux-field{margin-bottom:10px !important}.postbox .redux-container.redux-no-sections .redux-main .redux-field:last-child{margin-bottom:0 !important}.postbox .redux-container.redux-has-sections .redux-main{background:#fff}.postbox .redux-container.redux-has-sections .redux-main span.description{padding-bottom:20px}.postbox .redux-main h3{cursor:text !important;-webkit-user-select:inherit !important;-moz-user-select:inherit !important;-ms-user-select:inherit !important;user-select:inherit !important;padding-left:0 !important}.redux-box-side .redux-main .redux-field-container{padding:0;padding-top:5px}.redux-box-side .redux-main .redux-field-container .select2-container,.redux-box-side .redux-main .redux-field-container select{width:100% !important}.redux-box-side .form-table tr td{padding:15px 0 !important}.redux-box-side .form-table tr:last-child td{padding-bottom:0 !important}.redux-box-side .form-table tr:first-child td{padding-top:5px !important}#poststuff .redux-metabox h3.hndle,.metabox-holder .redux-metabox h3.hndle{cursor:pointer;border-bottom:0}.display-group{display:inherit !important}@media (min-width: 1125px) and (max-width: 1405px){.postbox table.form-table,.postbox .form-table>thead,.postbox .form-table>tbody,.postbox .form-table>tbody>tr>th,.postbox .form-table>tbody>tr>td,.postbox .form-table>tbody>tr{display:block !important;width:100% !important;padding:0px !important}.postbox table.form-table.hide,.postbox .form-table>thead.hide,.postbox .form-table>tbody.hide,.postbox .form-table>tbody>tr>th.hide,.postbox .form-table>tbody>tr>td.hide,.postbox .form-table>tbody>tr.hide{display:none !important}.postbox .form-table>tbody>tr>th,.postbox .form-table>tbody>tr>td{padding:10px !important}.postbox .form-table>tbody>tr>th{width:35%}}.redux-metabox .form-table th,.redux-metabox .form-table td{margin:0;padding:0}.redux-box-side .redux-main .redux-field-container .select2-container,.redux-box-side .redux-main .redux-field-container select{width:96% !important}@media (max-width: 1405px){.redux-box-side .redux-main .redux-field-container .select2-container,.redux-box-side .redux-main .redux-field-container select{width:92% !important}}@media (max-width: 1125px){.redux-box-side .redux-main .redux-field-container .select2-container,.redux-box-side .redux-main .redux-field-container select{width:100% !important}}@media (max-width: 1405px){.redux-main .form-table>tbody>tr>td{padding-top:0 !important;padding-bottom:0 !important}.redux-main .redux-field-container{padding:0 0 20px 0 !important;padding-bottom:10px !important}.postbox .form-table>tbody>tr>th{padding-bottom:0 !important}.redux_field_th{padding-top:0 !important;padding-bottom:10px !important}}.redux-no-sections .redux-group-tab{display:block !important}.admin-color-fresh #poststuff .redux-metabox h3.hndle,.admin-color-fresh .metabox-holder .redux-metabox h3.hndle{background:#222;color:#fff}.admin-color-light #poststuff .redux-metabox h3.hndle,.admin-color-light .metabox-holder .redux-metabox h3.hndle{background:#888;color:#fff}.admin-color-blue #poststuff .redux-metabox h3.hndle,.admin-color-blue .metabox-holder .redux-metabox h3.hndle{background:#096484;color:#fff}.admin-color-coffee #poststuff .redux-metabox h3.hndle,.admin-color-coffee .metabox-holder .redux-metabox h3.hndle{background:#46403c;color:#fff}.admin-color-ectoplasm #poststuff .redux-metabox h3.hndle,.admin-color-ectoplasm .metabox-holder .redux-metabox h3.hndle{background:#413256;color:#fff}.admin-color-midnight #poststuff .redux-metabox h3.hndle,.admin-color-midnight .metabox-holder .redux-metabox h3.hndle{background:#363b3f;color:#fff}.admin-color-ocean #poststuff .redux-metabox h3.hndle,.admin-color-ocean .metabox-holder .redux-metabox h3.hndle{background:#627c83;color:#fff}.admin-color-sunrise #poststuff .redux-metabox h3.hndle,.admin-color-sunrise .metabox-holder .redux-metabox h3.hndle{background:#b43c38;color:#fff}.redux-notices{margin-bottom:0;border:0}.redux-metabox .redux-container{margin-top:0}.redux-metabox .inside{margin:0 !important;padding:0 !important}.redux-metabox .redux-no-sections .redux-main{padding:6px 15px 15px 15px !important}.redux-metabox .redux-no-sections .redux-main .default_br{display:none}.redux-metabox .redux-no-sections .redux-main .redux-field-container{padding:10px 0 20px !important}.redux-metabox .redux-no-sections .redux-main .redux_field_th{padding-top:5px !important}.redux-metabox .redux-no-sections.redux-box-side .redux-main{padding:6px 8px 8px 8px !important}.redux-metabox .redux-no-sections.redux-box-side .redux-main input[type=text]{width:100% !important}.wp-color-result{margin:0 6px 0 0px !important}.redux-container .ui-button-text-only .ui-button-text{padding:0}.wpseotab tr{display:table-row !important}.redux_field_search{position:absolute;width:250px !important;right:20px;padding:4px 7px;top:6px}.redux-has-sections .redux_field_search{right:10px}.redux-main.redux-search .redux-section-field,.redux-main.redux-search .redux-info-field,.redux-main.redux-search .redux-notice-field,.redux-main.redux-search .redux-container-group,.redux-main.redux-search .redux-container-raw,.redux-main.redux-search .redux-section-desc,.redux-main.redux-search .redux-group-tab h3,.redux-main.redux-search .hr,.redux-main.redux-search .redux-field-info,.redux-main.redux-search tr{display:none}.redux-main.redux-search #import_export_default_section_group,.redux-main.redux-search #dev_mode_default_section_group{display:none !important}.redux-main.redux-search .redux-group-tab{margin-bottom:0}.redux-main.redux-search .redux-group-tab .form-table-section-indented{margin-left:0 !important;width:100%}.redux-main.redux-search .redux-group-tab .form-table-section-indented .redux-group-tab .form-table-section tr:first-of-type th:first-of-type{padding:inherit !important}.redux-main.redux-search .redux-group-tab .form-table-section-indented .redux-group-tab h3{margin-top:inherit !important}.redux-metabox .redux-has-sections .redux_field_search{top:8px}.redux-container-datetime .redux-datetime-container .input_wrapper,.redux-container-datetime .redux-datetime-container .single_wrapper{display:block;position:relative;margin:0 4px 0 5px;padding:0;width:25%;max-width:25%;min-width:70px;float:left;clear:none;height:57px;-webkit-box-sizing:border-box;-o-box-sizing:border-box;box-sizing:border-box;vertical-align:baseline}.redux-container-datetime .redux-datetime-container .single_wrapper{width:50% !important;max-width:50% !important}.redux-container-datetime .redux-datetime-container label{display:block;position:relative;font-size:12px !important;text-align:left;color:#999999;margin:4px 0 2px 0 !important;cursor:default}.redux-container-datetime .redux-datetime-container .redux-date-picker{width:100%}.redux-container-d
|