Version Description
Download this release
Release Info
| Developer | creativethemeshq |
| Plugin | |
| Version | 1.7.50 |
| Comparing to | |
| See all releases | |
Code changes from version 1.7.47 to 1.7.50
- blocksy-companion.php +1 -1
- framework/extensions/affiliate-marketing/config.php +0 -10
- framework/extensions/cookies-consent/extension.php +4 -52
- framework/extensions/cookies-consent/helpers.php +2 -0
- framework/extensions/cookies-consent/static/bundle/main.css +1 -1
- framework/extensions/cookies-consent/static/bundle/main.js +2 -2
- framework/extensions/cookies-consent/static/js/main.js +5 -0
- framework/extensions/mailchimp/admin-static/bundle/main.js +1 -1
- framework/extensions/mailchimp/admin-static/js/public-path.js +1 -1
- framework/extensions/mailchimp/config.php +2 -2
- framework/extensions/mailchimp/ct-mailchimp/widget.php +2 -2
- framework/extensions/mailchimp/dashboard-static/bundle/main.js +2 -2
- framework/extensions/mailchimp/dashboard-static/js/EditCredentials.js +29 -9
- framework/extensions/mailchimp/dashboard-static/js/ListPicker.js +11 -11
- framework/extensions/mailchimp/dashboard-static/js/Mailchimp.js +1 -1
- framework/extensions/mailchimp/dashboard-static/js/main.js +1 -1
- framework/extensions/mailchimp/extension.php +12 -12
- framework/extensions/mailchimp/pre-boot.php +1 -1
- framework/extensions/mailchimp/static/bundle/main.css +1 -1
- framework/extensions/mailchimp/static/js/main.js +3 -3
- framework/extensions/product-reviews/config.php +12 -0
- framework/extensions/{affiliate-marketing → product-reviews}/extension.php +74 -39
- framework/extensions/{affiliate-marketing → product-reviews}/helpers.php +2 -2
- framework/extensions/{affiliate-marketing → product-reviews}/metabox.php +0 -0
- framework/extensions/product-reviews/pre-boot.php +65 -0
- framework/extensions/product-reviews/static/bundle/dashboard.js +6 -0
- framework/extensions/product-reviews/static/bundle/main-admin.css +8 -0
- framework/extensions/{affiliate-marketing → product-reviews}/static/bundle/main.css +1 -1
- framework/extensions/product-reviews/static/js/EditSettings.js +141 -0
- framework/extensions/product-reviews/static/js/ProductReviews.js +100 -0
- framework/extensions/product-reviews/static/js/dashboard.js +10 -0
- framework/extensions/{affiliate-marketing → product-reviews}/static/sass/actions.scss +0 -0
- framework/extensions/{affiliate-marketing → product-reviews}/static/sass/description.scss +0 -0
- framework/extensions/product-reviews/static/sass/main-admin.scss +8 -0
- framework/extensions/{affiliate-marketing → product-reviews}/static/sass/main.scss +0 -0
- framework/extensions/{affiliate-marketing → product-reviews}/static/sass/quick-info.scss +0 -0
- framework/extensions/{affiliate-marketing → product-reviews}/static/sass/scores.scss +0 -0
- framework/extensions/{affiliate-marketing → product-reviews}/static/sass/slider.scss +0 -0
- framework/extensions/{affiliate-marketing → product-reviews}/static/sass/title.scss +0 -0
- framework/extensions/{affiliate-marketing → product-reviews}/views/single-top.php +2 -2
- framework/extensions/trending/extension.php +0 -7
- framework/extensions/trending/static/bundle/main.css +0 -7
- framework/extensions/trending/static/sass/main.scss +0 -0
- framework/extensions/widgets/static/bundle/main.css +1 -1
- framework/extensions/widgets/widgets/ct-posts/view.php +2 -3
- framework/features/demo-install/options-import.php +10 -7
- framework/features/demo-install/widgets-import.php +1 -1
- framework/features/demo-install/wp-importer.php +3 -1
- framework/features/header.php +25 -3
- framework/features/header/account-modal.php +13 -7
- framework/features/header/items/account/config.php +17 -2
- framework/features/header/items/account/dynamic-styles.php +101 -6
- framework/features/header/items/account/options.php +489 -182
- framework/features/header/items/account/sync.js +65 -20
- framework/features/header/items/account/view.php +153 -60
- framework/theme-integration.php +28 -4
- framework/views/blocksy-posts.php +44 -0
- languages/blocksy-companion.pot +1668 -618
- readme.txt +26 -1
- static/bundle/dashboard.css +1 -1
- static/bundle/dashboard.js +1 -1
- static/bundle/main.js +1 -1
- static/bundle/options.css +2 -2
- static/bundle/options.js +1 -1
- static/bundle/sync.js +1 -1
- static/js/frontend/account.js +203 -3
- static/js/frontend/sticky.js +21 -14
- static/js/helpers/useActivationAction.js +7 -3
- static/js/options/CustomizerOptionsManager.js +13 -5
- static/js/options/file-saver.js +202 -0
- static/sass/options/display-conditions.scss +61 -29
blocksy-companion.php
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
/*
|
| 4 |
Plugin Name: Blocksy Companion
|
| 5 |
Description: This plugin is the companion for the Blocksy theme, it runs and adds its enhacements only if the Blocksy theme is installed and active.
|
| 6 |
-
Version: 1.7.
|
| 7 |
Author: CreativeThemes
|
| 8 |
Author URI: https://creativethemes.com
|
| 9 |
Text Domain: blc
|
| 3 |
/*
|
| 4 |
Plugin Name: Blocksy Companion
|
| 5 |
Description: This plugin is the companion for the Blocksy theme, it runs and adds its enhacements only if the Blocksy theme is installed and active.
|
| 6 |
+
Version: 1.7.50
|
| 7 |
Author: CreativeThemes
|
| 8 |
Author URI: https://creativethemes.com
|
| 9 |
Text Domain: blc
|
framework/extensions/affiliate-marketing/config.php
DELETED
|
@@ -1,10 +0,0 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
|
| 3 |
-
$config = [
|
| 4 |
-
'name' => __('Affiliate Marketing', 'blc'),
|
| 5 |
-
'description' => __('Create affiliate marketing posts', 'blc')
|
| 6 |
-
// 'hidden' => true
|
| 7 |
-
];
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
framework/extensions/cookies-consent/extension.php
CHANGED
|
@@ -3,56 +3,14 @@
|
|
| 3 |
require_once dirname(__FILE__) . '/helpers.php';
|
| 4 |
|
| 5 |
class BlocksyExtensionCookiesConsent {
|
| 6 |
-
public static function onActivation() {
|
| 7 |
-
do_action('wpsc_add_cookie', 'blocksy_cookies_consent_accepted');
|
| 8 |
-
|
| 9 |
-
if (function_exists('flush_rocket_htaccess')) {
|
| 10 |
-
add_filter('rocket_cache_dynamic_cookies', function ($cookies) {
|
| 11 |
-
$cookies[] = 'blocksy_cookies_consent_accepted';
|
| 12 |
-
return $cookies;
|
| 13 |
-
});
|
| 14 |
-
|
| 15 |
-
// Update the WP Rocket rules on the .htaccess file.
|
| 16 |
-
flush_rocket_htaccess();
|
| 17 |
-
// Regenerate the config file.
|
| 18 |
-
rocket_generate_config_file();
|
| 19 |
-
// Clear WP Rocket cache.
|
| 20 |
-
rocket_clean_domain();
|
| 21 |
-
}
|
| 22 |
-
}
|
| 23 |
-
|
| 24 |
-
public static function onDeactivation() {
|
| 25 |
-
do_action('wpsc_delete_cookie', 'blocksy_cookies_consent_accepted');
|
| 26 |
-
|
| 27 |
-
if (function_exists('flush_rocket_htaccess')) {
|
| 28 |
-
add_filter('rocket_cache_dynamic_cookies', function ($cookies) {
|
| 29 |
-
return array_diff(
|
| 30 |
-
$cookies,
|
| 31 |
-
[ 'blocksy_cookies_consent_accepted' ]
|
| 32 |
-
);
|
| 33 |
-
}, 200);
|
| 34 |
-
|
| 35 |
-
// Update the WP Rocket rules on the .htaccess file.
|
| 36 |
-
flush_rocket_htaccess();
|
| 37 |
-
// Regenerate the config file.
|
| 38 |
-
rocket_generate_config_file();
|
| 39 |
-
// Clear WP Rocket cache.
|
| 40 |
-
rocket_clean_domain();
|
| 41 |
-
}
|
| 42 |
-
}
|
| 43 |
-
|
| 44 |
public static function should_display_notification() {
|
| 45 |
return !isset($_COOKIE['blocksy_cookies_consent_accepted']);
|
| 46 |
}
|
| 47 |
|
| 48 |
public function __construct() {
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
add_filter('rocket_cache_dynamic_cookies', function ($cookies) {
|
| 54 |
-
$cookies[] = 'blocksy_cookies_consent_accepted';
|
| 55 |
-
return $cookies;
|
| 56 |
});
|
| 57 |
|
| 58 |
add_filter('blocksy-async-scripts-handles', function ($d) {
|
|
@@ -95,12 +53,6 @@ class BlocksyExtensionCookiesConsent {
|
|
| 95 |
return;
|
| 96 |
}
|
| 97 |
|
| 98 |
-
if (! BlocksyExtensionCookiesConsent::should_display_notification()) {
|
| 99 |
-
if (! is_customize_preview()) {
|
| 100 |
-
return;
|
| 101 |
-
}
|
| 102 |
-
}
|
| 103 |
-
|
| 104 |
wp_enqueue_style(
|
| 105 |
'blocksy-ext-cookies-consent-styles',
|
| 106 |
BLOCKSY_URL . 'framework/extensions/cookies-consent/static/bundle/main.css',
|
|
@@ -131,7 +83,7 @@ class BlocksyExtensionCookiesConsent {
|
|
| 131 |
'fn' => 'blocksy_get_options',
|
| 132 |
'default' => 'array'
|
| 133 |
],
|
| 134 |
-
dirname(
|
| 135 |
[], false
|
| 136 |
);
|
| 137 |
|
| 3 |
require_once dirname(__FILE__) . '/helpers.php';
|
| 4 |
|
| 5 |
class BlocksyExtensionCookiesConsent {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
public static function should_display_notification() {
|
| 7 |
return !isset($_COOKIE['blocksy_cookies_consent_accepted']);
|
| 8 |
}
|
| 9 |
|
| 10 |
public function __construct() {
|
| 11 |
+
add_filter('blocksy:footer:offcanvas-drawer', function ($els) {
|
| 12 |
+
$els[] = blocksy_ext_cookies_consent_output();
|
| 13 |
+
return $els;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
});
|
| 15 |
|
| 16 |
add_filter('blocksy-async-scripts-handles', function ($d) {
|
| 53 |
return;
|
| 54 |
}
|
| 55 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
wp_enqueue_style(
|
| 57 |
'blocksy-ext-cookies-consent-styles',
|
| 58 |
BLOCKSY_URL . 'framework/extensions/cookies-consent/static/bundle/main.css',
|
| 83 |
'fn' => 'blocksy_get_options',
|
| 84 |
'default' => 'array'
|
| 85 |
],
|
| 86 |
+
dirname(__FILE__) . '/customizer.php',
|
| 87 |
[], false
|
| 88 |
);
|
| 89 |
|
framework/extensions/cookies-consent/helpers.php
CHANGED
|
@@ -17,11 +17,13 @@ function blocksy_ext_cookies_consent_output($forced = false) {
|
|
| 17 |
blc_ext_cookies_consent_cache();
|
| 18 |
}
|
| 19 |
|
|
|
|
| 20 |
if (! BlocksyExtensionCookiesConsent::should_display_notification()) {
|
| 21 |
if (! $forced) {
|
| 22 |
return;
|
| 23 |
}
|
| 24 |
}
|
|
|
|
| 25 |
|
| 26 |
$content = get_theme_mod(
|
| 27 |
'cookie_consent_content',
|
| 17 |
blc_ext_cookies_consent_cache();
|
| 18 |
}
|
| 19 |
|
| 20 |
+
/*
|
| 21 |
if (! BlocksyExtensionCookiesConsent::should_display_notification()) {
|
| 22 |
if (! $forced) {
|
| 23 |
return;
|
| 24 |
}
|
| 25 |
}
|
| 26 |
+
*/
|
| 27 |
|
| 28 |
$content = get_theme_mod(
|
| 29 |
'cookie_consent_content',
|
framework/extensions/cookies-consent/static/bundle/main.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
/**
|
| 2 |
-
* - v1.7.
|
| 3 |
*
|
| 4 |
* Copyright (c) 2021
|
| 5 |
* Licensed GPLv2+
|
| 1 |
/**
|
| 2 |
+
* - v1.7.50
|
| 3 |
*
|
| 4 |
* Copyright (c) 2021
|
| 5 |
* Licensed GPLv2+
|
framework/extensions/cookies-consent/static/bundle/main.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
-
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e,t
|
| 2 |
/*!
|
| 3 |
* JavaScript Cookie v2.2.1
|
| 4 |
* https://github.com/js-cookie/js-cookie
|
| 5 |
*
|
| 6 |
* Copyright 2006, 2015 Klaus Hartl & Fagner Brack
|
| 7 |
* Released under the MIT license
|
| 8 |
-
*/!function(i){if(void 0===(o="function"==typeof(r=i)?r.call(t,n,t,e):r)||(e.exports=o),!0,e.exports=i(),!!0){var c=window.Cookies,a=window.Cookies=i();a.noConflict=function(){return window.Cookies=c,a}}}((function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(r){function o(){}function i(t,n,i){if("undefined"!=typeof document){"number"==typeof(i=e({path:"/"},o.defaults,i)).expires&&(i.expires=new Date(1*new Date+864e5*i.expires)),i.expires=i.expires?i.expires.toUTCString():"";try{var c=JSON.stringify(n);/^[\{\[]/.test(c)&&(n=c)}catch(e){}n=r.write?r.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var a="";for(var u in i)i[u]&&(a+="; "+u,!0!==i[u]&&(a+="="+i[u].split(";")[0]));return document.cookie=t+"="+n+a}}function c(e,n){if("undefined"!=typeof document){for(var o={},i=document.cookie?document.cookie.split("; "):[],c=0;c<i.length;c++){var a=i[c].split("="),u=a.slice(1).join("=");n||'"'!==u.charAt(0)||(u=u.slice(1,-1));try{var f=t(a[0]);if(u=(r.read||r)(u,f)||t(u),n)try{u=JSON.parse(u)}catch(e){}if(o[f]=u,e===f)break}catch(e){}}return e?o[e]:o}}return o.set=i,o.get=function(e){return c(e,!1)},o.getJSON=function(e){return c(e,!0)},o.remove=function(t,n){i(t,"",e(n,{expires:-1}))},o.defaults={},o.withConverter=n,o}((function(){}))}))},function(e,t,n){"use strict";n.r(t);var r=n(
|
| 1 |
+
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e,t,n){var r,o;
|
| 2 |
/*!
|
| 3 |
* JavaScript Cookie v2.2.1
|
| 4 |
* https://github.com/js-cookie/js-cookie
|
| 5 |
*
|
| 6 |
* Copyright 2006, 2015 Klaus Hartl & Fagner Brack
|
| 7 |
* Released under the MIT license
|
| 8 |
+
*/!function(i){if(void 0===(o="function"==typeof(r=i)?r.call(t,n,t,e):r)||(e.exports=o),!0,e.exports=i(),!!0){var c=window.Cookies,a=window.Cookies=i();a.noConflict=function(){return window.Cookies=c,a}}}((function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(r){function o(){}function i(t,n,i){if("undefined"!=typeof document){"number"==typeof(i=e({path:"/"},o.defaults,i)).expires&&(i.expires=new Date(1*new Date+864e5*i.expires)),i.expires=i.expires?i.expires.toUTCString():"";try{var c=JSON.stringify(n);/^[\{\[]/.test(c)&&(n=c)}catch(e){}n=r.write?r.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var a="";for(var u in i)i[u]&&(a+="; "+u,!0!==i[u]&&(a+="="+i[u].split(";")[0]));return document.cookie=t+"="+n+a}}function c(e,n){if("undefined"!=typeof document){for(var o={},i=document.cookie?document.cookie.split("; "):[],c=0;c<i.length;c++){var a=i[c].split("="),u=a.slice(1).join("=");n||'"'!==u.charAt(0)||(u=u.slice(1,-1));try{var f=t(a[0]);if(u=(r.read||r)(u,f)||t(u),n)try{u=JSON.parse(u)}catch(e){}if(o[f]=u,e===f)break}catch(e){}}return e?o[e]:o}}return o.set=i,o.get=function(e){return c(e,!1)},o.getJSON=function(e){return c(e,!0)},o.remove=function(t,n){i(t,"",e(n,{expires:-1}))},o.defaults={},o.withConverter=n,o}((function(){}))}))},function(e,t){e.exports=ctEvents},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n.n(r),i=n(0),c=n.n(i);function a(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return u(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 u(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 u(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 f,s=function(){var e=document.querySelector(".cookie-notification");e&&(c.a.get("blocksy_cookies_consent_accepted")?e.remove():(requestAnimationFrame((function(){e.classList.remove("ct-fade-in-start"),e.classList.add("ct-fade-in-end"),d(e,(function(){e.classList.remove("ct-fade-in-end")}))})),a(e.querySelectorAll("button")).map((function(t){t.addEventListener("click",(function(n){if(n.preventDefault(),t.classList.contains("ct-accept")){c.a.set("blocksy_cookies_consent_accepted","true",{expires:new Date(1*new Date+{onehour:36e5,oneday:864e5,oneweek:6048e5,onemonth:26784e5,threemonths:80352e5,sixmonths:160704e5,oneyear:31536e6,forever:864e9}[t.closest("[data-period]").dataset.period])})}e.classList.add("ct-fade-start"),requestAnimationFrame((function(){e.classList.remove("ct-fade-start"),e.classList.add("ct-fade-end"),d(e,(function(){e.parentNode.removeChild(e)}))}))}))}))))};function d(e,t){setTimeout((function(){t()}),300)}f=function(){s(),o.a.on("blocksy:cookies:init",(function(){s()}))},/comp|inter|loaded/.test(document.readyState)?f():document.addEventListener("DOMContentLoaded",f,!1)}]);
|
framework/extensions/cookies-consent/static/js/main.js
CHANGED
|
@@ -7,6 +7,11 @@ const initCookies = () => {
|
|
| 7 |
|
| 8 |
if (!notification) return
|
| 9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
requestAnimationFrame(() => {
|
| 11 |
notification.classList.remove('ct-fade-in-start')
|
| 12 |
notification.classList.add('ct-fade-in-end')
|
| 7 |
|
| 8 |
if (!notification) return
|
| 9 |
|
| 10 |
+
if (cookie.get('blocksy_cookies_consent_accepted')) {
|
| 11 |
+
notification.remove()
|
| 12 |
+
return
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
requestAnimationFrame(() => {
|
| 16 |
notification.classList.remove('ct-fade-in-start')
|
| 17 |
notification.classList.add('ct-fade-in-end')
|
framework/extensions/mailchimp/admin-static/bundle/main.js
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
!function(e){function t(t){for(var n,o,c=t[0],i=t[1],u=0,
|
| 1 |
+
!function(e){function t(t){for(var n,o,c=t[0],i=t[1],u=0,a=[];u<c.length;u++)o=c[u],Object.prototype.hasOwnProperty.call(r,o)&&r[o]&&a.push(r[o][0]),r[o]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(l&&l(t);a.length;)a.shift()()}var n={},r={0:0};function o(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.e=function(e){var t=[],n=r[e];if(0!==n)if(n)t.push(n[2]);else{var c=new Promise((function(t,o){n=r[e]=[t,o]}));t.push(n[2]=c);var i,u=document.createElement("script");u.charset="utf-8",u.timeout=120,o.nc&&u.setAttribute("nonce",o.nc),u.src=function(e){return o.p+""+e+"."+{1:"2c9ebf0a36c6c732fee6",2:"976c8f43abfe584b1a9d"}[e]+".js"}(e);var l=new Error;i=function(t){u.onerror=u.onload=null,clearTimeout(a);var n=r[e];if(0!==n){if(n){var o=t&&("load"===t.type?"missing":t.type),c=t&&t.target&&t.target.src;l.message="Loading chunk "+e+" failed.\n("+o+": "+c+")",l.name="ChunkLoadError",l.type=o,l.request=c,n[1](l)}r[e]=void 0}};var a=setTimeout((function(){i({type:"timeout",target:u})}),12e4);u.onerror=u.onload=i,document.head.appendChild(u)}return Promise.all(t)},o.m=e,o.c=n,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o.oe=function(e){throw console.error(e),e};var c=window.blocksyMailchimpExtJsonp=window.blocksyMailchimpExtJsonp||[],i=c.push.bind(c);c.push=t,c=c.slice();for(var u=0;u<c.length;u++)t(c[u]);var l=i;o(o.s=5)}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.React},function(e,t){e.exports=window.wp.i18n},function(e,t){e.exports=ctEvents},function(e,t,n){n.p=blocksy_ext_newsletter_subscribe_localization.public_url},function(e,t,n){"use strict";n.r(t);n(4);var r=n(0),o=n(2),c=n(1),i=Object(c.lazy)((function(){return Promise.all([n.e(1),n.e(2)]).then(n.bind(null,13))})),u=function(e){return Object(r.createElement)("div",null,Object(r.createElement)(c.Suspense,{fallback:Object(r.createElement)("div",{className:"ct-select-input"},Object(r.createElement)("input",{disabled:!0,placeholder:Object(o.__)("Loading...","blc")}))},Object(r.createElement)(i,e)))},l=n(3),a=n.n(l);document.addEventListener("DOMContentLoaded",(function(){return a.a.on("blocksy:options:register",(function(e){e["blocksy-mailchimp"]=u}))}))}]);
|
framework/extensions/mailchimp/admin-static/js/public-path.js
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
__webpack_public_path__ =
|
| 1 |
+
__webpack_public_path__ = blocksy_ext_newsletter_subscribe_localization.public_url
|
framework/extensions/mailchimp/config.php
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?php
|
| 2 |
|
| 3 |
$config = [
|
| 4 |
-
'name' => __('Mailchimp', 'blc'),
|
| 5 |
-
'description' => __('Display a
|
| 6 |
];
|
| 7 |
|
| 1 |
<?php
|
| 2 |
|
| 3 |
$config = [
|
| 4 |
+
'name' => __('Mailchimp Subscribe', 'blc'),
|
| 5 |
+
'description' => __('Display a subscribe form with the help of a widget or a block.', 'blc')
|
| 6 |
];
|
| 7 |
|
framework/extensions/mailchimp/ct-mailchimp/widget.php
CHANGED
|
@@ -10,8 +10,8 @@
|
|
| 10 |
class Blocksy_Widget_Ct_Mailchimp extends BlocksyWidgetFactory {
|
| 11 |
protected function get_config() {
|
| 12 |
return [
|
| 13 |
-
'name' => __('
|
| 14 |
-
'description' => __('
|
| 15 |
];
|
| 16 |
}
|
| 17 |
|
| 10 |
class Blocksy_Widget_Ct_Mailchimp extends BlocksyWidgetFactory {
|
| 11 |
protected function get_config() {
|
| 12 |
return [
|
| 13 |
+
'name' => __('Newsletter Subscribe', 'blc'),
|
| 14 |
+
'description' => __('Newsletter subscribe form', 'blc'),
|
| 15 |
];
|
| 16 |
}
|
| 17 |
|
framework/extensions/mailchimp/dashboard-static/bundle/main.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
Copyright (c) 2017 Jed Watson.
|
| 4 |
Licensed under the MIT License (MIT), see
|
| 5 |
http://jedwatson.github.io/classnames
|
| 6 |
-
*/!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)&&r.length){var a=o.apply(null,r);a&&e.push(a)}else if("object"===i)for(var u in r)n.call(r,u)&&r[u]&&e.push(u)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){"use strict";e.exports=n(13)},function(e,t){e.exports=ctEvents},function(e,t,n){var r,o,i=n(11),a=n(12),u=(o=[],{activateTrap:function(e){if(o.length>0){var t=o[o.length-1];t!==e&&t.pause()}var n=o.indexOf(e);-1===n||o.splice(n,1),o.push(e)},deactivateTrap:function(e){var t=o.indexOf(e);-1!==t&&o.splice(t,1),o.length>0&&o[o.length-1].unpause()}});function c(e){return setTimeout(e,0)}e.exports=function(e,t){var n=document,o="string"==typeof e?n.querySelector(e):e,s=a({returnFocusOnDeactivate:!0,escapeDeactivates:!0},t),l={firstTabbableNode:null,lastTabbableNode:null,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1},d={activate:function(e){if(l.active)return;w(),l.active=!0,l.paused=!1,l.nodeFocusedBeforeActivation=n.activeElement;var t=e&&e.onActivate?e.onActivate:s.onActivate;t&&t();return f(),d},deactivate:p,pause:function(){if(l.paused||!l.active)return;l.paused=!0,h()},unpause:function(){if(!l.paused||!l.active)return;l.paused=!1,w(),f()}};return d;function p(e){if(l.active){clearTimeout(r),h(),l.active=!1,l.paused=!1,u.deactivateTrap(d);var t=e&&void 0!==e.onDeactivate?e.onDeactivate:s.onDeactivate;return t&&t(),(e&&void 0!==e.returnFocus?e.returnFocus:s.returnFocusOnDeactivate)&&c((function(){var e;O((e=l.nodeFocusedBeforeActivation,m("setReturnFocus")||e))})),d}}function f(){if(l.active)return u.activateTrap(d),r=c((function(){O(v())})),n.addEventListener("focusin",y,!0),n.addEventListener("mousedown",g,{capture:!0,passive:!1}),n.addEventListener("touchstart",g,{capture:!0,passive:!1}),n.addEventListener("click",I,{capture:!0,passive:!1}),n.addEventListener("keydown",b,{capture:!0,passive:!1}),d}function h(){if(l.active)return n.removeEventListener("focusin",y,!0),n.removeEventListener("mousedown",g,!0),n.removeEventListener("touchstart",g,!0),n.removeEventListener("click",I,!0),n.removeEventListener("keydown",b,!0),d}function m(e){var t=s[e],r=t;if(!t)return null;if("string"==typeof t&&!(r=n.querySelector(t)))throw new Error("`"+e+"` refers to no known node");if("function"==typeof t&&!(r=t()))throw new Error("`"+e+"` did not return a node");return r}function v(){var e;if(!(e=null!==m("initialFocus")?m("initialFocus"):o.contains(n.activeElement)?n.activeElement:l.firstTabbableNode||m("fallbackFocus")))throw new Error("Your focus-trap needs to have at least one focusable element");return e}function g(e){o.contains(e.target)||(s.clickOutsideDeactivates?p({returnFocus:!i.isFocusable(e.target)}):s.allowOutsideClick&&s.allowOutsideClick(e)||e.preventDefault())}function y(e){o.contains(e.target)||e.target instanceof Document||(e.stopImmediatePropagation(),O(l.mostRecentlyFocusedNode||v()))}function b(e){if(!1!==s.escapeDeactivates&&function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e))return e.preventDefault(),void p();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){if(w(),e.shiftKey&&e.target===l.firstTabbableNode)return e.preventDefault(),void O(l.lastTabbableNode);if(!e.shiftKey&&e.target===l.lastTabbableNode)e.preventDefault(),O(l.firstTabbableNode)}(e)}function I(e){s.clickOutsideDeactivates||o.contains(e.target)||s.allowOutsideClick&&s.allowOutsideClick(e)||(e.preventDefault(),e.stopImmediatePropagation())}function w(){var e=i(o);l.firstTabbableNode=e[0]||v(),l.lastTabbableNode=e[e.length-1]||v()}function O(e){e!==n.activeElement&&(e&&e.focus?(e.focus(),l.mostRecentlyFocusedNode=e,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(e)&&e.select()):O(v()))}}},function(e,t
|
| 7 |
/** @license React v16.13.1
|
| 8 |
* react-is.production.min.js
|
| 9 |
*
|
|
@@ -11,4 +11,4 @@
|
|
| 11 |
*
|
| 12 |
* This source code is licensed under the MIT license found in the
|
| 13 |
* LICENSE file in the root directory of this source tree.
|
| 14 |
-
*/var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,u=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,s=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,I=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function O(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case d:case p:case a:case c:case u:case h:return e;default:switch(e=e&&e.$$typeof){case l:case f:case g:case v:case s:return e;default:return t}}case i:return t}}}function S(e){return O(e)===p}t.AsyncMode=d,t.ConcurrentMode=p,t.ContextConsumer=l,t.ContextProvider=s,t.Element=o,t.ForwardRef=f,t.Fragment=a,t.Lazy=g,t.Memo=v,t.Portal=i,t.Profiler=c,t.StrictMode=u,t.Suspense=h,t.isAsyncMode=function(e){return S(e)||O(e)===d},t.isConcurrentMode=S,t.isContextConsumer=function(e){return O(e)===l},t.isContextProvider=function(e){return O(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return O(e)===f},t.isFragment=function(e){return O(e)===a},t.isLazy=function(e){return O(e)===g},t.isMemo=function(e){return O(e)===v},t.isPortal=function(e){return O(e)===i},t.isProfiler=function(e){return O(e)===c},t.isStrictMode=function(e){return O(e)===u},t.isSuspense=function(e){return O(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===p||e===c||e===u||e===h||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===v||e.$$typeof===s||e.$$typeof===l||e.$$typeof===f||e.$$typeof===b||e.$$typeof===I||e.$$typeof===w||e.$$typeof===y)},t.typeOf=O},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(6),i=n.n(o),a=n(3),u=n(4),c=n.n(u),s=n(2),l=n.n(s),d=n(1),p=n.n(d);function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var m=function(e){e.initialState,e.getInitialState,e.refs,e.getRefs,e.didMount,e.didUpdate,e.willUnmount,e.getSnapshotBeforeUpdate,e.shouldUpdate,e.render;return function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["initialState","getInitialState","refs","getRefs","didMount","didUpdate","willUnmount","getSnapshotBeforeUpdate","shouldUpdate","render"])},v=function(e){function t(){var n,r;f(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=h(this,e.call.apply(e,[this].concat(i))),g.call(r),h(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getArgs=function(){var e=this.state,t=this.props,n=this._setState,r=this._forceUpdate,o=this._refs;return{state:e,props:m(t),refs:o,setState:n,forceUpdate:r}},t.prototype.componentDidMount=function(){this.props.didMount&&this.props.didMount(this.getArgs())},t.prototype.shouldComponentUpdate=function(e,t){return!this.props.shouldUpdate||this.props.shouldUpdate({props:this.props,state:this.state,nextProps:m(e),nextState:t})},t.prototype.componentWillUnmount=function(){this.props.willUnmount&&this.props.willUnmount({state:this.state,props:m(this.props),refs:this._refs})},t.prototype.componentDidUpdate=function(e,t,n){this.props.didUpdate&&this.props.didUpdate(Object.assign(this.getArgs(),{prevProps:m(e),prevState:t}),n)},t.prototype.getSnapshotBeforeUpdate=function(e,t){return this.props.getSnapshotBeforeUpdate?this.props.getSnapshotBeforeUpdate(Object.assign(this.getArgs(),{prevProps:m(e),prevState:t})):null},t.prototype.render=function(){var e=this.props,t=e.children,n=e.render;return n?n(this.getArgs()):"function"==typeof t?t(this.getArgs()):t||null},t}(l.a.Component);v.defaultProps={getInitialState:function(){},getRefs:function(){return{}}};var g=function(){var e=this;this.state=this.props.initialState||this.props.getInitialState(this.props),this._refs=this.props.refs||this.props.getRefs(this.getArgs()),this._setState=function(){return e.setState.apply(e,arguments)},this._forceUpdate=function(){return e.forceUpdate.apply(e,arguments)}},y=v,b=function(e){var t=e.children,n=e.container,o=void 0===n?document.body:n,i=e.type,a=void 0===i?"reach-portal":i;return Object(r.createElement)(y,{getRefs:function(){return{node:null}},didMount:function(e){var t=e.refs,n=e.forceUpdate,r=o.hasOwnProperty("current")?o.current:o;t.node=document.createElement(a),r.appendChild(t.node),n()},willUnmount:function(e){var t=e.refs.node,n=o.hasOwnProperty("current")?o.current:o;n&&n.removeChild(t)},render:function(e){var n=e.refs.node;return n?Object(r.createPortal)(t,n):null}})};var I=function(e,t){return function(n){if(e&&e(n),!n.defaultPrevented)return t(n)}},w=n(7),O=n.n(w);function S(){return(S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function x(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}var E=function(){},j=function(){},C=function(e,t){var n,r,o;e.disposeAriaHider=(n=e.overlayNode,r=[],o=[],Array.prototype.forEach.call(document.querySelectorAll("body > *"),(function(e){if(e!==n.parentNode){var t=e.getAttribute("aria-hidden");null!==t&&"false"!==t||(r.push(t),o.push(e),e.setAttribute("aria-hidden","true"))}})),function(){o.forEach((function(e,t){var n=r[t];null===n?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",n)}))}),e.trap=O()(e.overlayNode,{initialFocus:t?function(){return t.current}:void 0,fallbackFocus:e.contentNode,escapeDeactivates:!1,clickOutsideDeactivates:!1})},_=function(e){var t=e.refs;t.trap.deactivate(),t.disposeAriaHider()},P=React.createContext(),k=React.forwardRef((function(e,t){var n=e.container,o=e.isOpen,i=void 0===o||o,a=e.onDismiss,u=void 0===a?E:a,c=e.initialFocusRef,s=e.onClick,l=e.onKeyDown,d=x(e,["container","isOpen","onDismiss","initialFocusRef","onClick","onKeyDown"]);return Object(r.createElement)(y,{didMount:j},i?Object(r.createElement)(b,{container:n,"data-reach-dialog-wrapper":!0},Object(r.createElement)(y,{refs:{overlayNode:null,contentNode:null},didMount:function(e){var t=e.refs;C(t,c)},willUnmount:_},(function(e){var n=e.refs;return Object(r.createElement)(P.Provider,{value:function(e){return n.contentNode=e}},Object(r.createElement)("div",S({"data-reach-dialog-overlay":!0,onClick:I(s,(function(e){e.stopPropagation(),u()})),onKeyDown:I(l,(function(e){"Escape"===e.key&&(e.stopPropagation(),u())})),ref:function(e){n.overlayNode=e,t&&t(e)}},d)))}))):null)}));k.propTypes={initialFocusRef:function(){}};var A=function(e){return e.stopPropagation()},D=React.forwardRef((function(e,t){var n=e.onClick,o=(e.onKeyDown,x(e,["onClick","onKeyDown"]));return Object(r.createElement)(P.Consumer,null,(function(e){return Object(r.createElement)("div",S({"aria-modal":"true","data-reach-dialog-content":!0,tabIndex:"-1",onClick:I(n,A),ref:function(n){e(n),t&&t(n)}},o))}))})),M=n(8),T=function(e){return!!e},H=function(e){var t=e.items,n=e.isVisible,o=void 0===n?T:n,i=e.render,a=e.className,u=e.onDismiss;return Object(r.createElement)(M.Transition,{items:t,onStart:function(){return document.body.classList[o(t)?"add":"remove"]("ct-dashboard-overlay-open")},config:{duration:200},from:{opacity:0,y:-10},enter:{opacity:1,y:0},leave:{opacity:0,y:10}},(function(e){return o(e)&&function(t){return Object(r.createElement)(k,{style:{opacity:t.opacity},container:document.querySelector("#wpbody"),onDismiss:function(){return u()}},Object(r.createElement)(D,{className:c()("ct-admin-modal",a),style:{transform:"translate3d(0px, ".concat(t.y,"px, 0px)")}},Object(r.createElement)("button",{className:"close-button",onClick:function(){return u()}},"×"),i(e,t)))}}))};function R(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return N(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 N(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 N(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 L=function(e){var t=R(Object(r.useState)(!1),2),n=t[0],o=t[1];return[function(){return o(!0)},Object(r.createElement)(H,{items:n,onDismiss:function(){return o(!1)},render:function(){return Object(r.createElement)("div",{className:"ct-modal-content",dangerouslySetInnerHTML:{__html:e.readme}})}})]};function U(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 K(){return(K=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function F(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n(5);function V(e){return null!=e&&"object"==typeof e&&1===e.nodeType}function B(e,t){return(!t||"hidden"!==e)&&("visible"!==e&&"clip"!==e)}function $(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return B(n.overflowY,t)||B(n.overflowX,t)||function(e){var t=function(e){return e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView.frameElement:null}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function W(e,t,n,r,o,i,a,u){return i<e&&a>t||i>e&&a<t?0:i<=e&&u<=n||a>=t&&u>=n?i-e-r:a>t&&u<n||i<e&&u>n?a-t+o:0}var z=0;function q(e){return"function"==typeof e?e:Y}function Y(){}function X(e,t){null!==e&&function(e,t){var n=t.scrollMode,r=t.block,o=t.inline,i=t.boundary,a=t.skipOverflowHiddenElements,u="function"==typeof i?i:function(e){return e!==i};if(!V(e))throw new TypeError("Invalid target");for(var c=document.scrollingElement||document.documentElement,s=[],l=e;V(l)&&u(l);){if((l=l.parentNode)===c){s.push(l);break}l===document.body&&$(l)&&!$(document.documentElement)||$(l,a)&&s.push(l)}for(var d=window.visualViewport?visualViewport.width:innerWidth,p=window.visualViewport?visualViewport.height:innerHeight,f=window.scrollX||pageXOffset,h=window.scrollY||pageYOffset,m=e.getBoundingClientRect(),v=m.height,g=m.width,y=m.top,b=m.right,I=m.bottom,w=m.left,O="start"===r||"nearest"===r?y:"end"===r?I:y+v/2,S="center"===o?w+g/2:"end"===o?b:w,x=[],E=0;E<s.length;E++){var j=s[E],C=j.getBoundingClientRect(),_=C.height,P=C.width,k=C.top,A=C.right,D=C.bottom,M=C.left;if("if-needed"===n&&y>=0&&w>=0&&I<=p&&b<=d&&y>=k&&I<=D&&w>=M&&b<=A)return x;var T=getComputedStyle(j),H=parseInt(T.borderLeftWidth,10),R=parseInt(T.borderTopWidth,10),N=parseInt(T.borderRightWidth,10),L=parseInt(T.borderBottomWidth,10),U=0,K=0,F="offsetWidth"in j?j.offsetWidth-j.clientWidth-H-N:0,B="offsetHeight"in j?j.offsetHeight-j.clientHeight-R-L:0;if(c===j)U="start"===r?O:"end"===r?O-p:"nearest"===r?W(h,h+p,p,R,L,h+O,h+O+v,v):O-p/2,K="start"===o?S:"center"===o?S-d/2:"end"===o?S-d:W(f,f+d,d,H,N,f+S,f+S+g,g),U=Math.max(0,U+h),K=Math.max(0,K+f);else{U="start"===r?O-k-R:"end"===r?O-D+L+B:"nearest"===r?W(k,D,_,R,L+B,O,O+v,v):O-(k+_/2)+B/2,K="start"===o?S-M-H:"center"===o?S-(M+P/2)+F/2:"end"===o?S-A+N+F:W(M,A,P,H,N+F,S,S+g,g);var z=j.scrollLeft,q=j.scrollTop;O+=q-(U=Math.max(0,Math.min(q+U,j.scrollHeight-_+B))),S+=z-(K=Math.max(0,Math.min(z+K,j.scrollWidth-P+F)))}x.push({el:j,top:U,left:K})}return x}(e,{boundary:t,block:"nearest",scrollMode:"if-needed"}).forEach((function(e){var t=e.el,n=e.top,r=e.left;t.scrollTop=n,t.scrollLeft=r}))}function G(e,t){return e===t||e.contains&&e.contains(t)}function J(e,t){var n;function r(){n&&clearTimeout(n)}function o(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];r(),n=setTimeout((function(){n=null,e.apply(void 0,i)}),t)}return o.cancel=r,o}function Q(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some((function(t){return t&&t.apply(void 0,[e].concat(r)),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault}))}}function Z(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){"function"==typeof t?t(e):t&&(t.current=e)}))}}function ee(e){var t=e.isOpen,n=e.selectedItem,r=e.resultCount,o=e.previousResultCount,i=e.itemToString;return t?r?r!==o?r+" result"+(1===r?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":n?i(n):""}function te(e,t){return!(e=Array.isArray(e)?e[0]:e)&&t?t:e}function ne(e){return"string"==typeof e.type}function re(e){return e.props}var oe=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function ie(e){void 0===e&&(e={});var t={};return oe.forEach((function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}function ae(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}function ue(e,t,n){var r=n-1;("number"!=typeof t||t<0||t>=n)&&(t=e>0?-1:r+1);var o=t+e;return o<0?o=r:o>r&&(o=0),o}var ce=J((function(){le().textContent=""}),500);function se(e,t){var n=le(t);e&&(n.textContent=e,ce())}function le(e){void 0===e&&(e=document);var t=e.getElementById("a11y-status-message");return t||((t=e.createElement("div")).setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var de=Object.freeze({__proto__:null,unknown:0,mouseUp:1,itemMouseEnter:2,keyDownArrowUp:3,keyDownArrowDown:4,keyDownEscape:5,keyDownEnter:6,keyDownHome:7,keyDownEnd:8,clickItem:9,blurInput:10,changeInput:11,keyDownSpaceButton:12,clickButton:13,blurButton:14,controlledPropUpdatedSelectedItem:15,touchEnd:16}),pe=function(){var e=function(e){var t,n;function r(t){var n=e.call(this,t)||this;n.id=n.props.id||"downshift-"+String(z++),n.menuId=n.props.menuId||n.id+"-menu",n.labelId=n.props.labelId||n.id+"-label",n.inputId=n.props.inputId||n.id+"-input",n.getItemId=n.props.getItemId||function(e){return n.id+"-item-"+e},n.input=null,n.items=[],n.itemCount=null,n.previousResultCount=0,n.timeoutIds=[],n.internalSetTimeout=function(e,t){var r=setTimeout((function(){n.timeoutIds=n.timeoutIds.filter((function(e){return e!==r})),e()}),t);n.timeoutIds.push(r)},n.setItemCount=function(e){n.itemCount=e},n.unsetItemCount=function(){n.itemCount=null},n.setHighlightedIndex=function(e,t){void 0===e&&(e=n.props.defaultHighlightedIndex),void 0===t&&(t={}),t=ie(t),n.internalSetState(K({highlightedIndex:e},t))},n.clearSelection=function(e){n.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:n.props.defaultHighlightedIndex,isOpen:n.props.defaultIsOpen},e)},n.selectItem=function(e,t,r){t=ie(t),n.internalSetState(K({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,selectedItem:e,inputValue:n.props.itemToString(e)},t),r)},n.selectItemAtIndex=function(e,t,r){var o=n.items[e];null!=o&&n.selectItem(o,t,r)},n.selectHighlightedItem=function(e,t){return n.selectItemAtIndex(n.getState().highlightedIndex,e,t)},n.internalSetState=function(e,t){var r,o,i={},a="function"==typeof e;return!a&&e.hasOwnProperty("inputValue")&&n.props.onInputValueChange(e.inputValue,K({},n.getStateAndHelpers(),{},e)),n.setState((function(t){t=n.getState(t);var u=a?e(t):e;u=n.props.stateReducer(t,u),r=u.hasOwnProperty("selectedItem");var c={},s={};return r&&u.selectedItem!==t.selectedItem&&(o=u.selectedItem),u.type=u.type||0,Object.keys(u).forEach((function(e){t[e]!==u[e]&&(i[e]=u[e]),"type"!==e&&(s[e]=u[e],n.isControlledProp(e)||(c[e]=u[e]))})),a&&u.hasOwnProperty("inputValue")&&n.props.onInputValueChange(u.inputValue,K({},n.getStateAndHelpers(),{},u)),c}),(function(){q(t)(),Object.keys(i).length>1&&n.props.onStateChange(i,n.getStateAndHelpers()),r&&n.props.onSelect(e.selectedItem,n.getStateAndHelpers()),void 0!==o&&n.props.onChange(o,n.getStateAndHelpers()),n.props.onUserAction(i,n.getStateAndHelpers())}))},n.rootRef=function(e){return n._rootNode=e},n.getRootProps=function(e,t){var r,o=void 0===e?{}:e,i=o.refKey,a=void 0===i?"ref":i,u=o.ref,c=U(o,["refKey","ref"]),s=(void 0===t?{}:t).suppressRefError,l=void 0!==s&&s;n.getRootProps.called=!0,n.getRootProps.refKey=a,n.getRootProps.suppressRefError=l;var d=n.getState().isOpen;return K(((r={})[a]=Z(u,n.rootRef),r.role="combobox",r["aria-expanded"]=d,r["aria-haspopup"]="listbox",r["aria-owns"]=d?n.menuId:null,r["aria-labelledby"]=n.labelId,r),c)},n.keyDownHandlers={ArrowDown:function(e){var t=this;if(e.preventDefault(),this.getState().isOpen){var n=e.shiftKey?5:1;this.moveHighlightedIndex(n,{type:4})}else this.internalSetState({isOpen:!0,type:4},(function(){var e=t.getItemCount();e>0&&t.setHighlightedIndex(ue(1,t.getState().highlightedIndex,e),{type:4})}))},ArrowUp:function(e){var t=this;if(e.preventDefault(),this.getState().isOpen){var n=e.shiftKey?-5:-1;this.moveHighlightedIndex(n,{type:3})}else this.internalSetState({isOpen:!0,type:3},(function(){var e=t.getItemCount();e>0&&t.setHighlightedIndex(ue(-1,t.getState().highlightedIndex,e),{type:4})}))},Enter:function(e){var t=this.getState(),n=t.isOpen,r=t.highlightedIndex;if(n&&null!=r){e.preventDefault();var o=this.items[r],i=this.getItemNodeFromIndex(r);if(null==o||i&&i.hasAttribute("disabled"))return;this.selectHighlightedItem({type:6})}},Escape:function(e){e.preventDefault(),this.reset({type:5,selectedItem:null,inputValue:""})}},n.buttonKeyDownHandlers=K({},n.keyDownHandlers,{" ":function(e){e.preventDefault(),this.toggleMenu({type:12})}}),n.inputKeyDownHandlers=K({},n.keyDownHandlers,{Home:function(e){this.highlightFirstOrLastIndex(e,!0,{type:7})},End:function(e){this.highlightFirstOrLastIndex(e,!1,{type:8})}}),n.getToggleButtonProps=function(e){var t=void 0===e?{}:e,r=t.onClick,o=(t.onPress,t.onKeyDown),i=t.onKeyUp,a=t.onBlur,u=U(t,["onClick","onPress","onKeyDown","onKeyUp","onBlur"]),c=n.getState().isOpen,s={onClick:Q(r,n.buttonHandleClick),onKeyDown:Q(o,n.buttonHandleKeyDown),onKeyUp:Q(i,n.buttonHandleKeyUp),onBlur:Q(a,n.buttonHandleBlur)};return K({type:"button",role:"button","aria-label":c?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},u.disabled?{}:s,{},u)},n.buttonHandleKeyUp=function(e){e.preventDefault()},n.buttonHandleKeyDown=function(e){var t=ae(e);n.buttonKeyDownHandlers[t]&&n.buttonKeyDownHandlers[t].call(F(n),e)},n.buttonHandleClick=function(e){e.preventDefault(),n.props.environment.document.activeElement===n.props.environment.document.body&&e.target.focus(),n.internalSetTimeout((function(){return n.toggleMenu({type:13})}))},n.buttonHandleBlur=function(e){var t=e.target;n.internalSetTimeout((function(){n.isMouseDown||null!=n.props.environment.document.activeElement&&n.props.environment.document.activeElement.id===n.inputId||n.props.environment.document.activeElement===t||n.reset({type:14})}))},n.getLabelProps=function(e){return K({htmlFor:n.inputId,id:n.labelId},e)},n.getInputProps=function(e){var t=void 0===e?{}:e,r=t.onKeyDown,o=t.onBlur,i=t.onChange,a=t.onInput,u=(t.onChangeText,U(t,["onKeyDown","onBlur","onChange","onInput","onChangeText"])),c={};var s,l=n.getState(),d=l.inputValue,p=l.isOpen,f=l.highlightedIndex;u.disabled||((s={}).onChange=Q(i,a,n.inputHandleChange),s.onKeyDown=Q(r,n.inputHandleKeyDown),s.onBlur=Q(o,n.inputHandleBlur),c=s);return K({"aria-autocomplete":"list","aria-activedescendant":p&&"number"==typeof f&&f>=0?n.getItemId(f):null,"aria-controls":p?n.menuId:null,"aria-labelledby":n.labelId,autoComplete:"off",value:d,id:n.inputId},c,{},u)},n.inputHandleKeyDown=function(e){var t=ae(e);t&&n.inputKeyDownHandlers[t]&&n.inputKeyDownHandlers[t].call(F(n),e)},n.inputHandleChange=function(e){n.internalSetState({type:11,isOpen:!0,inputValue:e.target.value,highlightedIndex:n.props.defaultHighlightedIndex})},n.inputHandleBlur=function(){n.internalSetTimeout((function(){var e=n.props.environment.document&&!!n.props.environment.document.activeElement&&!!n.props.environment.document.activeElement.dataset&&n.props.environment.document.activeElement.dataset.toggle&&n._rootNode&&n._rootNode.contains(n.props.environment.document.activeElement);n.isMouseDown||e||n.reset({type:10})}))},n.menuRef=function(e){n._menuNode=e},n.getMenuProps=function(e,t){var r,o=void 0===e?{}:e,i=o.refKey,a=void 0===i?"ref":i,u=o.ref,c=U(o,["refKey","ref"]),s=(void 0===t?{}:t).suppressRefError,l=void 0!==s&&s;return n.getMenuProps.called=!0,n.getMenuProps.refKey=a,n.getMenuProps.suppressRefError=l,K(((r={})[a]=Z(u,n.menuRef),r.role="listbox",r["aria-labelledby"]=c&&c["aria-label"]?null:n.labelId,r.id=n.menuId,r),c)},n.getItemProps=function(e){var t,r=void 0===e?{}:e,o=r.onMouseMove,i=r.onMouseDown,a=r.onClick,u=(r.onPress,r.index),c=r.item,s=void 0===c?void 0:c,l=U(r,["onMouseMove","onMouseDown","onClick","onPress","index","item"]);void 0===u?(n.items.push(s),u=n.items.indexOf(s)):n.items[u]=s;var d=a,p=((t={onMouseMove:Q(o,(function(){u!==n.getState().highlightedIndex&&(n.setHighlightedIndex(u,{type:2}),n.avoidScrolling=!0,n.internalSetTimeout((function(){return n.avoidScrolling=!1}),250))})),onMouseDown:Q(i,(function(e){e.preventDefault()}))}).onClick=Q(d,(function(){n.selectItemAtIndex(u,{type:9})})),t),f=l.disabled?{onMouseDown:p.onMouseDown}:p;return K({id:n.getItemId(u),role:"option","aria-selected":n.getState().highlightedIndex===u},f,{},l)},n.clearItems=function(){n.items=[]},n.reset=function(e,t){void 0===e&&(e={}),e=ie(e),n.internalSetState((function(t){var r=t.selectedItem;return K({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,inputValue:n.props.itemToString(r)},e)}),t)},n.toggleMenu=function(e,t){void 0===e&&(e={}),e=ie(e),n.internalSetState((function(t){var r=t.isOpen;return K({isOpen:!r},r&&{highlightedIndex:n.props.defaultHighlightedIndex},{},e)}),(function(){var r=n.getState(),o=r.isOpen,i=r.highlightedIndex;o&&n.getItemCount()>0&&"number"==typeof i&&n.setHighlightedIndex(i,e),q(t)()}))},n.openMenu=function(e){n.internalSetState({isOpen:!0},e)},n.closeMenu=function(e){n.internalSetState({isOpen:!1},e)},n.updateStatus=J((function(){var e=n.getState(),t=n.items[e.highlightedIndex],r=n.getItemCount(),o=n.props.getA11yStatusMessage(K({itemToString:n.props.itemToString,previousResultCount:n.previousResultCount,resultCount:r,highlightedItem:t},e));n.previousResultCount=r,se(o,n.props.environment.document)}),200);var r=n.props,o=r.defaultHighlightedIndex,i=r.initialHighlightedIndex,a=void 0===i?o:i,u=r.defaultIsOpen,c=r.initialIsOpen,s=void 0===c?u:c,l=r.initialInputValue,d=void 0===l?"":l,p=r.initialSelectedItem,f=void 0===p?null:p,h=n.getState({highlightedIndex:a,isOpen:s,inputValue:d,selectedItem:f});return null!=h.selectedItem&&void 0===n.props.initialInputValue&&(h.inputValue=n.props.itemToString(h.selectedItem)),n.state=h,n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.internalClearTimeouts=function(){this.timeoutIds.forEach((function(e){clearTimeout(e)})),this.timeoutIds=[]},o.getState=function(e){var t=this;return void 0===e&&(e=this.state),Object.keys(e).reduce((function(n,r){return n[r]=t.isControlledProp(r)?t.props[r]:e[r],n}),{})},o.isControlledProp=function(e){return void 0!==this.props[e]},o.getItemCount=function(){var e=this.items.length;return null!=this.itemCount?e=this.itemCount:void 0!==this.props.itemCount&&(e=this.props.itemCount),e},o.getItemNodeFromIndex=function(e){return this.props.environment.document.getElementById(this.getItemId(e))},o.scrollHighlightedItemIntoView=function(){var e=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(e,this._menuNode)},o.moveHighlightedIndex=function(e,t){var n=this.getItemCount();if(n>0){var r=ue(e,this.getState().highlightedIndex,n);this.setHighlightedIndex(r,t)}},o.highlightFirstOrLastIndex=function(e,t,n){var r=this.getItemCount()-1;r<0||!this.getState().isOpen||(e.preventDefault(),this.setHighlightedIndex(t?0:r,n))},o.getStateAndHelpers=function(){var e=this.getState(),t=e.highlightedIndex,n=e.inputValue,r=e.selectedItem,o=e.isOpen,i=this.props.itemToString,a=this.id,u=this.getRootProps,c=this.getToggleButtonProps,s=this.getLabelProps,l=this.getMenuProps,d=this.getInputProps,p=this.getItemProps,f=this.openMenu,h=this.closeMenu,m=this.toggleMenu,v=this.selectItem,g=this.selectItemAtIndex,y=this.selectHighlightedItem,b=this.setHighlightedIndex,I=this.clearSelection,w=this.clearItems;return{getRootProps:u,getToggleButtonProps:c,getLabelProps:s,getMenuProps:l,getInputProps:d,getItemProps:p,reset:this.reset,openMenu:f,closeMenu:h,toggleMenu:m,selectItem:v,selectItemAtIndex:g,selectHighlightedItem:y,setHighlightedIndex:b,clearSelection:I,clearItems:w,setItemCount:this.setItemCount,unsetItemCount:this.unsetItemCount,setState:this.internalSetState,itemToString:i,id:a,highlightedIndex:t,inputValue:n,isOpen:o,selectedItem:r}},o.componentDidMount=function(){var e=this;var t=function(t,n){void 0===n&&(n=!0);var r=e.props.environment.document;return[e._rootNode,e._menuNode].some((function(e){return e&&(G(e,t)||n&&G(e,r.activeElement))}))},n=function(){e.isMouseDown=!0},r=function(n){e.isMouseDown=!1,!t(n.target)&&e.getState().isOpen&&e.reset({type:1},(function(){return e.props.onOuterClick(e.getStateAndHelpers())}))},o=function(){e.isTouchMove=!1},i=function(){e.isTouchMove=!0},a=function(n){var r=t(n.target,!1);e.isTouchMove||r||!e.getState().isOpen||e.reset({type:16},(function(){return e.props.onOuterClick(e.getStateAndHelpers())}))},u=this.props.environment;u.addEventListener("mousedown",n),u.addEventListener("mouseup",r),u.addEventListener("touchstart",o),u.addEventListener("touchmove",i),u.addEventListener("touchend",a),this.cleanup=function(){e.internalClearTimeouts(),e.updateStatus.cancel(),u.removeEventListener("mousedown",n),u.removeEventListener("mouseup",r),u.removeEventListener("touchstart",o),u.removeEventListener("touchmove",i),u.removeEventListener("touchend",a)}},o.shouldScroll=function(e,t){var n=(void 0===this.props.highlightedIndex?this.getState():this.props).highlightedIndex,r=(void 0===t.highlightedIndex?e:t).highlightedIndex;return n&&this.getState().isOpen&&!e.isOpen||n!==r},o.componentDidUpdate=function(e,t){this.isControlledProp("selectedItem")&&this.props.selectedItemChanged(e.selectedItem,this.props.selectedItem)&&this.internalSetState({type:15,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(t,e)&&this.scrollHighlightedItemIntoView(),this.updateStatus()},o.componentWillUnmount=function(){this.cleanup()},o.render=function(){var e=te(this.props.children,Y);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;var t=te(e(this.getStateAndHelpers()));return t?this.getRootProps.called||this.props.suppressRefError?t:ne(t)?Object(s.cloneElement)(t,this.getRootProps(re(t))):void 0:null},r}(s.Component);return e.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:ee,itemToString:function(e){return null==e?"":String(e)},onStateChange:Y,onInputValueChange:Y,onUserAction:Y,onChange:Y,onSelect:Y,onOuterClick:Y,selectedItemChanged:function(e,t){return e!==t},environment:"undefined"==typeof window?{}:window,stateReducer:function(e,t){return t},suppressRefError:!1,scrollIntoView:X},e.stateChangeTypes=de,e}();p.a.array.isRequired,p.a.func,p.a.func,p.a.func,p.a.bool,p.a.number,p.a.number,p.a.number,p.a.bool,p.a.bool,p.a.bool,p.a.any,p.a.any,p.a.any,p.a.string,p.a.string,p.a.string,p.a.func,p.a.string,p.a.func,p.a.func,p.a.func,p.a.func,p.a.func,p.a.shape({addEventListener:p.a.func,removeEventListener:p.a.func,document:p.a.shape({getElementById:p.a.func,activeElement:p.a.any,body:p.a.any})});"undefined"==typeof window||window;var fe=pe;function he(){return(he=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function me(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,o)}function ve(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ge(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 ge(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 ge(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 ye=function(e){var t=e.listId,n=e.apiKey,o=e.onChange,i=ve(Object(r.useState)([]),2),u=i[0],s=i[1],l=ve(Object(r.useState)(!1),2),d=l[0],p=l[1],f=ve(Object(r.useState)({controller:null}),2),h=f[0].controller,m=f[1],v=function(){var e,t=(e=regeneratorRuntime.mark((function e(){var t,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return h&&h.abort(),p(!0),"AbortController"in window&&(h=new AbortController,m({controller:h})),(t=new FormData).append("api_key",n),t.append("action","blocksy_ext_mailchimp_maybe_get_lists"),e.prev=6,e.next=9,fetch(ctDashboardLocalizations.ajax_url,{method:"POST",signal:h.signal,body:t});case 9:if(200!==(r=e.sent).status){e.next=19;break}return e.next=13,r.json();case 13:if(!(o=e.sent).success){e.next=19;break}if("api_key_invalid"===o.data.result){e.next=19;break}return p(!1),s(o.data.result),e.abrupt("return");case 19:e.next=23;break;case 21:e.prev=21,e.t0=e.catch(6);case 23:s([]),p(!1);case 25:case"end":return e.stop()}}),e,null,[[6,21]])})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){me(i,r,o,a,u,"next",e)}function u(e){me(i,r,o,a,u,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();return Object(r.useEffect)((function(){n&&-1!==n.indexOf("-")?v():s([])}),[n]),0===u.length?Object(r.createElement)("div",{className:"ct-select-input"},Object(r.createElement)("input",{disabled:!0,placeholder:d?Object(a.__)("Loading","blc"):Object(a.__)("Invalid API Key...","blc")})):Object(r.createElement)(fe,{selectedItem:t||"",onChange:function(e){return o(e)},itemToString:function(e){return e?(u.find((function(t){return t.id===e}))||{}).name:""}},(function(e){var t=e.getInputProps,n=e.getItemProps,o=(e.getLabelProps,e.getMenuProps),i=e.isOpen,s=(e.inputValue,e.highlightedIndex),l=e.selectedItem,d=e.openMenu;return Object(r.createElement)("div",{className:"ct-select-input"},Object(r.createElement)("input",he({},t({onFocus:function(){return d()},onClick:function(){return d()}}),{placeholder:Object(a.__)("Select list...","blc"),readOnly:!0})),i&&Object(r.createElement)("div",o({className:"ct-select-dropdown"}),u.map((function(e,t){return Object(r.createElement)("div",n({key:e.id,index:t,item:e.id,className:c()("ct-select-dropdown-item",{active:s===t,selected:l===e.id})}),e.name)}))))}))};function be(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,o)}function Ie(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return we(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 we(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 we(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 Oe=function(e){var t=e.extension,n=e.isEditingCredentials,o=e.setIsEditingCredentials,i=e.onCredentialsValidated,u=Ie(Object(r.useState)(t.data.api_key),2),s=u[0],l=u[1],d=Ie(Object(r.useState)(t.data.list_id),2),p=d[0],f=d[1],h=Ie(Object(r.useState)(!1),2),m=h[0],v=h[1],g=Ie(Object(r.useState)(!1),2),y=g[0],b=g[1],I=function(){var e,t=(e=regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).append("api_key",s),t.append("list_id",p),t.append("action","blocksy_ext_mailchimp_maybe_save_credentials"),v(!0),e.prev=5,e.next=8,fetch(ctDashboardLocalizations.ajax_url,{method:"POST",body:t});case 8:if(200!==(n=e.sent).status){e.next=14;break}return e.next=12,n.json();case 12:(r=e.sent).success&&"api_key_invalid"!==r.data.result&&(i(),b(!1));case 14:b(!0),e.next=20;break;case 17:e.prev=17,e.t0=e.catch(5),b(!0);case 20:return e.next=22,new Promise((function(e){return setTimeout((function(){return e()}),1e3)}));case 22:v(!1);case 23:case"end":return e.stop()}}),e,null,[[5,17]])})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){be(i,r,o,a,u,"next",e)}function u(e){be(i,r,o,a,u,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();return Object(r.createElement)(H,{items:n,onDismiss:function(){return o(!1)},className:"ct-mailchimp-modal",render:function(){return Object(r.createElement)("div",{className:c()("ct-modal-content",{"ct-key-invalid":y})},Object(r.createElement)("h2",null,Object(a.__)("MailChimp Credentials","blc")),Object(r.createElement)("p",{dangerouslySetInnerHTML:{__html:Object(a.sprintf)(Object(a.__)("Enter your MailChimp credentials in the form below. More info on how to generate an API key can be found %shere%s.","blc"),'<a target="_blank" href="https://mailchimp.com/help/about-api-keys/">',"</a>")}}),Object(r.createElement)("div",{className:"mailchimp-credentials"},Object(r.createElement)("section",null,Object(r.createElement)("label",null,Object(a.__)("API Key","blc")),Object(r.createElement)("div",{className:"ct-option-input"},Object(r.createElement)("input",{type:"text",onChange:function(e){var t=e.target.value;return l(t)},value:s||""}))),Object(r.createElement)("section",null,Object(r.createElement)("label",null,Object(a.__)("List ID","blc")),Object(r.createElement)(ye,{listId:p,onChange:function(e){return f(e)},apiKey:s})),Object(r.createElement)("section",null,Object(r.createElement)("label",null," "),Object(r.createElement)("button",{className:"ct-button","data-button":"blue",disabled:!s||!p||m,onClick:function(){return I()}},m?Object(a.__)("Loading...","blc"):t.__object?Object(a.__)("Save Settings","blc"):Object(a.__)("Activate","blc")))))}})};function Se(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,o)}function xe(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Se(i,r,o,a,u,"next",e)}function u(e){Se(i,r,o,a,u,"throw",e)}a(void 0)}))}}function Ee(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return je(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 je(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 je(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 Ce=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=Object(r.useState)(!1),o=Ee(n,2),i=o[0],u=o[1],c=Object(r.useState)(!1),s=Ee(c,2),l=s[0],d=s[1],p=function(){var n=xe(regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return(r=new FormData).append("ext",e.name),r.append("action",e.__object?"blocksy_extension_deactivate":"blocksy_extension_activate"),u(!0),n.prev=4,n.next=7,fetch(ctDashboardLocalizations.ajax_url,{method:"POST",body:r});case 7:t(),n.next=12;break;case 10:n.prev=10,n.t0=n.catch(4);case 12:u(!1);case 13:case"end":return n.stop()}}),n,null,[[4,10]])})));return function(){return n.apply(this,arguments)}}(),f=function(){e.__object||e.data.api_key?p():d(!0)};return[i,f,Object(r.createElement)(r.Fragment,null,e.__object&&e.data.api_key&&Object(r.createElement)("button",{className:"ct-button ct-config-btn","data-button":"white",title:"Edit Credentials",onClick:function(){return d(!0)}},Object(a.__)("Configure","blc")),Object(r.createElement)(Oe,{isEditingCredentials:l,setIsEditingCredentials:d,extension:e,onCredentialsValidated:function(){e.__object||p(),d(!1)}}))]};function _e(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Pe(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 Pe(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 Pe(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 ke=function(e){var t=e.extension,n=e.onExtsSync,o=_e(Ce(t,(function(){n()})),3),i=o[0],u=o[1],s=o[2],l=_e(L(t),2),d=l[0],p=l[1];return Object(r.createElement)("li",{className:c()({active:!!t.__object})},Object(r.createElement)("h4",{className:"ct-extension-title"},t.config.name,i&&Object(r.createElement)("svg",{width:"15",height:"15",viewBox:"0 0 100 100"},Object(r.createElement)("g",{transform:"translate(50,50)"},Object(r.createElement)("g",{transform:"scale(1)"},Object(r.createElement)("circle",{cx:"0",cy:"0",r:"50",fill:"#687c93"}),Object(r.createElement)("circle",{cx:"0",cy:"-26",r:"12",fill:"#ffffff",transform:"rotate(161.634)"},Object(r.createElement)("animateTransform",{attributeName:"transform",type:"rotate",calcMode:"linear",values:"0 0 0;360 0 0",keyTimes:"0;1",dur:"1s",begin:"0s",repeatCount:"indefinite"})))))),t.config.description&&Object(r.createElement)("div",{className:"ct-extension-description"},t.config.description),Object(r.createElement)("div",{className:"ct-extension-actions"},Object(r.createElement)("button",{className:c()(t.__object?"ct-button":"ct-button-primary"),"data-button":"white",disabled:i,onClick:function(){return u()}},t.__object?Object(a.__)("Deactivate","blc"):Object(a.__)("Activate","blc")),s,t.readme&&Object(r.createElement)("button",{onClick:function(){return d()},"data-button":"white",className:"ct-minimal-button ct-instruction"},Object(r.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 24 24"},Object(r.createElement)("path",{d:"M12,2C6.477,2,2,6.477,2,12s4.477,10,10,10s10-4.477,10-10S17.523,2,12,2z M12,17L12,17c-0.552,0-1-0.448-1-1v-4 c0-0.552,0.448-1,1-1h0c0.552,0,1,0.448,1,1v4C13,16.552,12.552,17,12,17z M12.5,9h-1C11.224,9,11,8.776,11,8.5v-1 C11,7.224,11.224,7,11.5,7h1C12.776,7,13,7.224,13,7.5v1C13,8.776,12.776,9,12.5,9z"})))),p)};i.a.on("ct:extensions:card",(function(e){var t=e.CustomComponent;"mailchimp"===e.extension.name&&(t.extension=ke)}))}]);
|
| 3 |
Copyright (c) 2017 Jed Watson.
|
| 4 |
Licensed under the MIT License (MIT), see
|
| 5 |
http://jedwatson.github.io/classnames
|
| 6 |
+
*/!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)&&r.length){var a=o.apply(null,r);a&&e.push(a)}else if("object"===i)for(var u in r)n.call(r,u)&&r[u]&&e.push(u)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t){e.exports=window.blocksyOptions},function(e,t,n){"use strict";e.exports=n(13)},function(e,t){e.exports=ctEvents},function(e,t,n){var r,o,i=n(11),a=n(12),u=(o=[],{activateTrap:function(e){if(o.length>0){var t=o[o.length-1];t!==e&&t.pause()}var n=o.indexOf(e);-1===n||o.splice(n,1),o.push(e)},deactivateTrap:function(e){var t=o.indexOf(e);-1!==t&&o.splice(t,1),o.length>0&&o[o.length-1].unpause()}});function c(e){return setTimeout(e,0)}e.exports=function(e,t){var n=document,o="string"==typeof e?n.querySelector(e):e,s=a({returnFocusOnDeactivate:!0,escapeDeactivates:!0},t),l={firstTabbableNode:null,lastTabbableNode:null,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1},d={activate:function(e){if(l.active)return;w(),l.active=!0,l.paused=!1,l.nodeFocusedBeforeActivation=n.activeElement;var t=e&&e.onActivate?e.onActivate:s.onActivate;t&&t();return f(),d},deactivate:p,pause:function(){if(l.paused||!l.active)return;l.paused=!0,h()},unpause:function(){if(!l.paused||!l.active)return;l.paused=!1,w(),f()}};return d;function p(e){if(l.active){clearTimeout(r),h(),l.active=!1,l.paused=!1,u.deactivateTrap(d);var t=e&&void 0!==e.onDeactivate?e.onDeactivate:s.onDeactivate;return t&&t(),(e&&void 0!==e.returnFocus?e.returnFocus:s.returnFocusOnDeactivate)&&c((function(){var e;O((e=l.nodeFocusedBeforeActivation,m("setReturnFocus")||e))})),d}}function f(){if(l.active)return u.activateTrap(d),r=c((function(){O(v())})),n.addEventListener("focusin",y,!0),n.addEventListener("mousedown",g,{capture:!0,passive:!1}),n.addEventListener("touchstart",g,{capture:!0,passive:!1}),n.addEventListener("click",I,{capture:!0,passive:!1}),n.addEventListener("keydown",b,{capture:!0,passive:!1}),d}function h(){if(l.active)return n.removeEventListener("focusin",y,!0),n.removeEventListener("mousedown",g,!0),n.removeEventListener("touchstart",g,!0),n.removeEventListener("click",I,!0),n.removeEventListener("keydown",b,!0),d}function m(e){var t=s[e],r=t;if(!t)return null;if("string"==typeof t&&!(r=n.querySelector(t)))throw new Error("`"+e+"` refers to no known node");if("function"==typeof t&&!(r=t()))throw new Error("`"+e+"` did not return a node");return r}function v(){var e;if(!(e=null!==m("initialFocus")?m("initialFocus"):o.contains(n.activeElement)?n.activeElement:l.firstTabbableNode||m("fallbackFocus")))throw new Error("Your focus-trap needs to have at least one focusable element");return e}function g(e){o.contains(e.target)||(s.clickOutsideDeactivates?p({returnFocus:!i.isFocusable(e.target)}):s.allowOutsideClick&&s.allowOutsideClick(e)||e.preventDefault())}function y(e){o.contains(e.target)||e.target instanceof Document||(e.stopImmediatePropagation(),O(l.mostRecentlyFocusedNode||v()))}function b(e){if(!1!==s.escapeDeactivates&&function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e))return e.preventDefault(),void p();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){if(w(),e.shiftKey&&e.target===l.firstTabbableNode)return e.preventDefault(),void O(l.lastTabbableNode);if(!e.shiftKey&&e.target===l.lastTabbableNode)e.preventDefault(),O(l.firstTabbableNode)}(e)}function I(e){s.clickOutsideDeactivates||o.contains(e.target)||s.allowOutsideClick&&s.allowOutsideClick(e)||(e.preventDefault(),e.stopImmediatePropagation())}function w(){var e=i(o);l.firstTabbableNode=e[0]||v(),l.lastTabbableNode=e[e.length-1]||v()}function O(e){e!==n.activeElement&&(e&&e.focus?(e.focus(),l.mostRecentlyFocusedNode=e,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(e)&&e.select()):O(v()))}}},function(e,t,n){"use strict";var r=n(10);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){var n=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],r=n.join(","),o="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;function i(e,t){t=t||{};var n,i,u,c=[],d=[],p=e.querySelectorAll(r);for(t.includeContainer&&o.call(e,r)&&(p=Array.prototype.slice.apply(p)).unshift(e),n=0;n<p.length;n++)a(i=p[n])&&(0===(u=s(i))?c.push(i):d.push({documentOrder:n,tabIndex:u,node:i}));return d.sort(l).map((function(e){return e.node})).concat(c)}function a(e){return!(!u(e)||function(e){return function(e){return d(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t=function(e){for(var t=0;t<e.length;t++)if(e[t].checked)return e[t]}(e.ownerDocument.querySelectorAll('input[type="radio"][name="'+e.name+'"]'));return!t||t===e}(e)}(e)||s(e)<0)}function u(e){return!(e.disabled||function(e){return d(e)&&"hidden"===e.type}(e)||function(e){return null===e.offsetParent||"hidden"===getComputedStyle(e).visibility}(e))}i.isTabbable=function(e){if(!e)throw new Error("No node provided");return!1!==o.call(e,r)&&a(e)},i.isFocusable=function(e){if(!e)throw new Error("No node provided");return!1!==o.call(e,c)&&u(e)};var c=n.concat("iframe").join(",");function s(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?function(e){return"true"===e.contentEditable}(e)?0:e.tabIndex:t}function l(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex}function d(e){return"INPUT"===e.tagName}e.exports=i},function(e,t){e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var o in r)n.call(r,o)&&(e[o]=r[o])}return e};var n=Object.prototype.hasOwnProperty},function(e,t,n){"use strict";
|
| 7 |
/** @license React v16.13.1
|
| 8 |
* react-is.production.min.js
|
| 9 |
*
|
| 11 |
*
|
| 12 |
* This source code is licensed under the MIT license found in the
|
| 13 |
* LICENSE file in the root directory of this source tree.
|
| 14 |
+
*/var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,u=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,s=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,I=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function O(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case d:case p:case a:case c:case u:case h:return e;default:switch(e=e&&e.$$typeof){case l:case f:case g:case v:case s:return e;default:return t}}case i:return t}}}function S(e){return O(e)===p}t.AsyncMode=d,t.ConcurrentMode=p,t.ContextConsumer=l,t.ContextProvider=s,t.Element=o,t.ForwardRef=f,t.Fragment=a,t.Lazy=g,t.Memo=v,t.Portal=i,t.Profiler=c,t.StrictMode=u,t.Suspense=h,t.isAsyncMode=function(e){return S(e)||O(e)===d},t.isConcurrentMode=S,t.isContextConsumer=function(e){return O(e)===l},t.isContextProvider=function(e){return O(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return O(e)===f},t.isFragment=function(e){return O(e)===a},t.isLazy=function(e){return O(e)===g},t.isMemo=function(e){return O(e)===v},t.isPortal=function(e){return O(e)===i},t.isProfiler=function(e){return O(e)===c},t.isStrictMode=function(e){return O(e)===u},t.isSuspense=function(e){return O(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===p||e===c||e===u||e===h||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===v||e.$$typeof===s||e.$$typeof===l||e.$$typeof===f||e.$$typeof===b||e.$$typeof===I||e.$$typeof===w||e.$$typeof===y)},t.typeOf=O},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(7),i=n.n(o),a=n(3),u=n(4),c=n.n(u),s=n(2),l=n.n(s),d=n(1),p=n.n(d);function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var m=function(e){e.initialState,e.getInitialState,e.refs,e.getRefs,e.didMount,e.didUpdate,e.willUnmount,e.getSnapshotBeforeUpdate,e.shouldUpdate,e.render;return function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["initialState","getInitialState","refs","getRefs","didMount","didUpdate","willUnmount","getSnapshotBeforeUpdate","shouldUpdate","render"])},v=function(e){function t(){var n,r;f(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=h(this,e.call.apply(e,[this].concat(i))),g.call(r),h(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getArgs=function(){var e=this.state,t=this.props,n=this._setState,r=this._forceUpdate,o=this._refs;return{state:e,props:m(t),refs:o,setState:n,forceUpdate:r}},t.prototype.componentDidMount=function(){this.props.didMount&&this.props.didMount(this.getArgs())},t.prototype.shouldComponentUpdate=function(e,t){return!this.props.shouldUpdate||this.props.shouldUpdate({props:this.props,state:this.state,nextProps:m(e),nextState:t})},t.prototype.componentWillUnmount=function(){this.props.willUnmount&&this.props.willUnmount({state:this.state,props:m(this.props),refs:this._refs})},t.prototype.componentDidUpdate=function(e,t,n){this.props.didUpdate&&this.props.didUpdate(Object.assign(this.getArgs(),{prevProps:m(e),prevState:t}),n)},t.prototype.getSnapshotBeforeUpdate=function(e,t){return this.props.getSnapshotBeforeUpdate?this.props.getSnapshotBeforeUpdate(Object.assign(this.getArgs(),{prevProps:m(e),prevState:t})):null},t.prototype.render=function(){var e=this.props,t=e.children,n=e.render;return n?n(this.getArgs()):"function"==typeof t?t(this.getArgs()):t||null},t}(l.a.Component);v.defaultProps={getInitialState:function(){},getRefs:function(){return{}}};var g=function(){var e=this;this.state=this.props.initialState||this.props.getInitialState(this.props),this._refs=this.props.refs||this.props.getRefs(this.getArgs()),this._setState=function(){return e.setState.apply(e,arguments)},this._forceUpdate=function(){return e.forceUpdate.apply(e,arguments)}},y=v,b=function(e){var t=e.children,n=e.container,o=void 0===n?document.body:n,i=e.type,a=void 0===i?"reach-portal":i;return Object(r.createElement)(y,{getRefs:function(){return{node:null}},didMount:function(e){var t=e.refs,n=e.forceUpdate,r=o.hasOwnProperty("current")?o.current:o;t.node=document.createElement(a),r.appendChild(t.node),n()},willUnmount:function(e){var t=e.refs.node,n=o.hasOwnProperty("current")?o.current:o;n&&n.removeChild(t)},render:function(e){var n=e.refs.node;return n?Object(r.createPortal)(t,n):null}})};var I=function(e,t){return function(n){if(e&&e(n),!n.defaultPrevented)return t(n)}},w=n(8),O=n.n(w);function S(){return(S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function x(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}var E=function(){},j=function(){},C=function(e,t){var n,r,o;e.disposeAriaHider=(n=e.overlayNode,r=[],o=[],Array.prototype.forEach.call(document.querySelectorAll("body > *"),(function(e){if(e!==n.parentNode){var t=e.getAttribute("aria-hidden");null!==t&&"false"!==t||(r.push(t),o.push(e),e.setAttribute("aria-hidden","true"))}})),function(){o.forEach((function(e,t){var n=r[t];null===n?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",n)}))}),e.trap=O()(e.overlayNode,{initialFocus:t?function(){return t.current}:void 0,fallbackFocus:e.contentNode,escapeDeactivates:!1,clickOutsideDeactivates:!1})},_=function(e){var t=e.refs;t.trap.deactivate(),t.disposeAriaHider()},P=React.createContext(),A=React.forwardRef((function(e,t){var n=e.container,o=e.isOpen,i=void 0===o||o,a=e.onDismiss,u=void 0===a?E:a,c=e.initialFocusRef,s=e.onClick,l=e.onKeyDown,d=x(e,["container","isOpen","onDismiss","initialFocusRef","onClick","onKeyDown"]);return Object(r.createElement)(y,{didMount:j},i?Object(r.createElement)(b,{container:n,"data-reach-dialog-wrapper":!0},Object(r.createElement)(y,{refs:{overlayNode:null,contentNode:null},didMount:function(e){var t=e.refs;C(t,c)},willUnmount:_},(function(e){var n=e.refs;return Object(r.createElement)(P.Provider,{value:function(e){return n.contentNode=e}},Object(r.createElement)("div",S({"data-reach-dialog-overlay":!0,onClick:I(s,(function(e){e.stopPropagation(),u()})),onKeyDown:I(l,(function(e){"Escape"===e.key&&(e.stopPropagation(),u())})),ref:function(e){n.overlayNode=e,t&&t(e)}},d)))}))):null)}));A.propTypes={initialFocusRef:function(){}};var k=function(e){return e.stopPropagation()},D=React.forwardRef((function(e,t){var n=e.onClick,o=(e.onKeyDown,x(e,["onClick","onKeyDown"]));return Object(r.createElement)(P.Consumer,null,(function(e){return Object(r.createElement)("div",S({"aria-modal":"true","data-reach-dialog-content":!0,tabIndex:"-1",onClick:I(n,k),ref:function(n){e(n),t&&t(n)}},o))}))})),M=n(5),T=function(e){return!!e},H=function(e){var t=e.items,n=e.isVisible,o=void 0===n?T:n,i=e.render,a=e.className,u=e.onDismiss;return Object(r.createElement)(M.Transition,{items:t,onStart:function(){return document.body.classList[o(t)?"add":"remove"]("ct-dashboard-overlay-open")},config:{duration:200},from:{opacity:0,y:-10},enter:{opacity:1,y:0},leave:{opacity:0,y:10}},(function(e){return o(e)&&function(t){return Object(r.createElement)(A,{style:{opacity:t.opacity},container:document.querySelector("#wpbody"),onDismiss:function(){return u()}},Object(r.createElement)(D,{className:c()("ct-admin-modal",a),style:{transform:"translate3d(0px, ".concat(t.y,"px, 0px)")}},Object(r.createElement)("button",{className:"close-button",onClick:function(){return u()}},"×"),i(e,t)))}}))};function R(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return N(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 N(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 N(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 L=function(e){var t=R(Object(r.useState)(!1),2),n=t[0],o=t[1];return[function(){return o(!0)},Object(r.createElement)(H,{items:n,onDismiss:function(){return o(!1)},render:function(){return Object(r.createElement)("div",{className:"ct-modal-content",dangerouslySetInnerHTML:{__html:e.readme}})}})]};function U(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 K(){return(K=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function F(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n(6);function V(e){return null!=e&&"object"==typeof e&&1===e.nodeType}function B(e,t){return(!t||"hidden"!==e)&&("visible"!==e&&"clip"!==e)}function $(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return B(n.overflowY,t)||B(n.overflowX,t)||function(e){var t=function(e){return e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView.frameElement:null}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function W(e,t,n,r,o,i,a,u){return i<e&&a>t||i>e&&a<t?0:i<=e&&u<=n||a>=t&&u>=n?i-e-r:a>t&&u<n||i<e&&u>n?a-t+o:0}var z=0;function q(e){return"function"==typeof e?e:Y}function Y(){}function X(e,t){null!==e&&function(e,t){var n=t.scrollMode,r=t.block,o=t.inline,i=t.boundary,a=t.skipOverflowHiddenElements,u="function"==typeof i?i:function(e){return e!==i};if(!V(e))throw new TypeError("Invalid target");for(var c=document.scrollingElement||document.documentElement,s=[],l=e;V(l)&&u(l);){if((l=l.parentNode)===c){s.push(l);break}l===document.body&&$(l)&&!$(document.documentElement)||$(l,a)&&s.push(l)}for(var d=window.visualViewport?visualViewport.width:innerWidth,p=window.visualViewport?visualViewport.height:innerHeight,f=window.scrollX||pageXOffset,h=window.scrollY||pageYOffset,m=e.getBoundingClientRect(),v=m.height,g=m.width,y=m.top,b=m.right,I=m.bottom,w=m.left,O="start"===r||"nearest"===r?y:"end"===r?I:y+v/2,S="center"===o?w+g/2:"end"===o?b:w,x=[],E=0;E<s.length;E++){var j=s[E],C=j.getBoundingClientRect(),_=C.height,P=C.width,A=C.top,k=C.right,D=C.bottom,M=C.left;if("if-needed"===n&&y>=0&&w>=0&&I<=p&&b<=d&&y>=A&&I<=D&&w>=M&&b<=k)return x;var T=getComputedStyle(j),H=parseInt(T.borderLeftWidth,10),R=parseInt(T.borderTopWidth,10),N=parseInt(T.borderRightWidth,10),L=parseInt(T.borderBottomWidth,10),U=0,K=0,F="offsetWidth"in j?j.offsetWidth-j.clientWidth-H-N:0,B="offsetHeight"in j?j.offsetHeight-j.clientHeight-R-L:0;if(c===j)U="start"===r?O:"end"===r?O-p:"nearest"===r?W(h,h+p,p,R,L,h+O,h+O+v,v):O-p/2,K="start"===o?S:"center"===o?S-d/2:"end"===o?S-d:W(f,f+d,d,H,N,f+S,f+S+g,g),U=Math.max(0,U+h),K=Math.max(0,K+f);else{U="start"===r?O-A-R:"end"===r?O-D+L+B:"nearest"===r?W(A,D,_,R,L+B,O,O+v,v):O-(A+_/2)+B/2,K="start"===o?S-M-H:"center"===o?S-(M+P/2)+F/2:"end"===o?S-k+N+F:W(M,k,P,H,N+F,S,S+g,g);var z=j.scrollLeft,q=j.scrollTop;O+=q-(U=Math.max(0,Math.min(q+U,j.scrollHeight-_+B))),S+=z-(K=Math.max(0,Math.min(z+K,j.scrollWidth-P+F)))}x.push({el:j,top:U,left:K})}return x}(e,{boundary:t,block:"nearest",scrollMode:"if-needed"}).forEach((function(e){var t=e.el,n=e.top,r=e.left;t.scrollTop=n,t.scrollLeft=r}))}function G(e,t){return e===t||e.contains&&e.contains(t)}function J(e,t){var n;function r(){n&&clearTimeout(n)}function o(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];r(),n=setTimeout((function(){n=null,e.apply(void 0,i)}),t)}return o.cancel=r,o}function Q(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some((function(t){return t&&t.apply(void 0,[e].concat(r)),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault}))}}function Z(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){"function"==typeof t?t(e):t&&(t.current=e)}))}}function ee(e){var t=e.isOpen,n=e.selectedItem,r=e.resultCount,o=e.previousResultCount,i=e.itemToString;return t?r?r!==o?r+" result"+(1===r?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":n?i(n):""}function te(e,t){return!(e=Array.isArray(e)?e[0]:e)&&t?t:e}function ne(e){return"string"==typeof e.type}function re(e){return e.props}var oe=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function ie(e){void 0===e&&(e={});var t={};return oe.forEach((function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}function ae(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}function ue(e,t,n){var r=n-1;("number"!=typeof t||t<0||t>=n)&&(t=e>0?-1:r+1);var o=t+e;return o<0?o=r:o>r&&(o=0),o}var ce=J((function(){le().textContent=""}),500);function se(e,t){var n=le(t);e&&(n.textContent=e,ce())}function le(e){void 0===e&&(e=document);var t=e.getElementById("a11y-status-message");return t||((t=e.createElement("div")).setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var de=Object.freeze({__proto__:null,unknown:0,mouseUp:1,itemMouseEnter:2,keyDownArrowUp:3,keyDownArrowDown:4,keyDownEscape:5,keyDownEnter:6,keyDownHome:7,keyDownEnd:8,clickItem:9,blurInput:10,changeInput:11,keyDownSpaceButton:12,clickButton:13,blurButton:14,controlledPropUpdatedSelectedItem:15,touchEnd:16}),pe=function(){var e=function(e){var t,n;function r(t){var n=e.call(this,t)||this;n.id=n.props.id||"downshift-"+String(z++),n.menuId=n.props.menuId||n.id+"-menu",n.labelId=n.props.labelId||n.id+"-label",n.inputId=n.props.inputId||n.id+"-input",n.getItemId=n.props.getItemId||function(e){return n.id+"-item-"+e},n.input=null,n.items=[],n.itemCount=null,n.previousResultCount=0,n.timeoutIds=[],n.internalSetTimeout=function(e,t){var r=setTimeout((function(){n.timeoutIds=n.timeoutIds.filter((function(e){return e!==r})),e()}),t);n.timeoutIds.push(r)},n.setItemCount=function(e){n.itemCount=e},n.unsetItemCount=function(){n.itemCount=null},n.setHighlightedIndex=function(e,t){void 0===e&&(e=n.props.defaultHighlightedIndex),void 0===t&&(t={}),t=ie(t),n.internalSetState(K({highlightedIndex:e},t))},n.clearSelection=function(e){n.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:n.props.defaultHighlightedIndex,isOpen:n.props.defaultIsOpen},e)},n.selectItem=function(e,t,r){t=ie(t),n.internalSetState(K({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,selectedItem:e,inputValue:n.props.itemToString(e)},t),r)},n.selectItemAtIndex=function(e,t,r){var o=n.items[e];null!=o&&n.selectItem(o,t,r)},n.selectHighlightedItem=function(e,t){return n.selectItemAtIndex(n.getState().highlightedIndex,e,t)},n.internalSetState=function(e,t){var r,o,i={},a="function"==typeof e;return!a&&e.hasOwnProperty("inputValue")&&n.props.onInputValueChange(e.inputValue,K({},n.getStateAndHelpers(),{},e)),n.setState((function(t){t=n.getState(t);var u=a?e(t):e;u=n.props.stateReducer(t,u),r=u.hasOwnProperty("selectedItem");var c={},s={};return r&&u.selectedItem!==t.selectedItem&&(o=u.selectedItem),u.type=u.type||0,Object.keys(u).forEach((function(e){t[e]!==u[e]&&(i[e]=u[e]),"type"!==e&&(s[e]=u[e],n.isControlledProp(e)||(c[e]=u[e]))})),a&&u.hasOwnProperty("inputValue")&&n.props.onInputValueChange(u.inputValue,K({},n.getStateAndHelpers(),{},u)),c}),(function(){q(t)(),Object.keys(i).length>1&&n.props.onStateChange(i,n.getStateAndHelpers()),r&&n.props.onSelect(e.selectedItem,n.getStateAndHelpers()),void 0!==o&&n.props.onChange(o,n.getStateAndHelpers()),n.props.onUserAction(i,n.getStateAndHelpers())}))},n.rootRef=function(e){return n._rootNode=e},n.getRootProps=function(e,t){var r,o=void 0===e?{}:e,i=o.refKey,a=void 0===i?"ref":i,u=o.ref,c=U(o,["refKey","ref"]),s=(void 0===t?{}:t).suppressRefError,l=void 0!==s&&s;n.getRootProps.called=!0,n.getRootProps.refKey=a,n.getRootProps.suppressRefError=l;var d=n.getState().isOpen;return K(((r={})[a]=Z(u,n.rootRef),r.role="combobox",r["aria-expanded"]=d,r["aria-haspopup"]="listbox",r["aria-owns"]=d?n.menuId:null,r["aria-labelledby"]=n.labelId,r),c)},n.keyDownHandlers={ArrowDown:function(e){var t=this;if(e.preventDefault(),this.getState().isOpen){var n=e.shiftKey?5:1;this.moveHighlightedIndex(n,{type:4})}else this.internalSetState({isOpen:!0,type:4},(function(){var e=t.getItemCount();e>0&&t.setHighlightedIndex(ue(1,t.getState().highlightedIndex,e),{type:4})}))},ArrowUp:function(e){var t=this;if(e.preventDefault(),this.getState().isOpen){var n=e.shiftKey?-5:-1;this.moveHighlightedIndex(n,{type:3})}else this.internalSetState({isOpen:!0,type:3},(function(){var e=t.getItemCount();e>0&&t.setHighlightedIndex(ue(-1,t.getState().highlightedIndex,e),{type:4})}))},Enter:function(e){var t=this.getState(),n=t.isOpen,r=t.highlightedIndex;if(n&&null!=r){e.preventDefault();var o=this.items[r],i=this.getItemNodeFromIndex(r);if(null==o||i&&i.hasAttribute("disabled"))return;this.selectHighlightedItem({type:6})}},Escape:function(e){e.preventDefault(),this.reset({type:5,selectedItem:null,inputValue:""})}},n.buttonKeyDownHandlers=K({},n.keyDownHandlers,{" ":function(e){e.preventDefault(),this.toggleMenu({type:12})}}),n.inputKeyDownHandlers=K({},n.keyDownHandlers,{Home:function(e){this.highlightFirstOrLastIndex(e,!0,{type:7})},End:function(e){this.highlightFirstOrLastIndex(e,!1,{type:8})}}),n.getToggleButtonProps=function(e){var t=void 0===e?{}:e,r=t.onClick,o=(t.onPress,t.onKeyDown),i=t.onKeyUp,a=t.onBlur,u=U(t,["onClick","onPress","onKeyDown","onKeyUp","onBlur"]),c=n.getState().isOpen,s={onClick:Q(r,n.buttonHandleClick),onKeyDown:Q(o,n.buttonHandleKeyDown),onKeyUp:Q(i,n.buttonHandleKeyUp),onBlur:Q(a,n.buttonHandleBlur)};return K({type:"button",role:"button","aria-label":c?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},u.disabled?{}:s,{},u)},n.buttonHandleKeyUp=function(e){e.preventDefault()},n.buttonHandleKeyDown=function(e){var t=ae(e);n.buttonKeyDownHandlers[t]&&n.buttonKeyDownHandlers[t].call(F(n),e)},n.buttonHandleClick=function(e){e.preventDefault(),n.props.environment.document.activeElement===n.props.environment.document.body&&e.target.focus(),n.internalSetTimeout((function(){return n.toggleMenu({type:13})}))},n.buttonHandleBlur=function(e){var t=e.target;n.internalSetTimeout((function(){n.isMouseDown||null!=n.props.environment.document.activeElement&&n.props.environment.document.activeElement.id===n.inputId||n.props.environment.document.activeElement===t||n.reset({type:14})}))},n.getLabelProps=function(e){return K({htmlFor:n.inputId,id:n.labelId},e)},n.getInputProps=function(e){var t=void 0===e?{}:e,r=t.onKeyDown,o=t.onBlur,i=t.onChange,a=t.onInput,u=(t.onChangeText,U(t,["onKeyDown","onBlur","onChange","onInput","onChangeText"])),c={};var s,l=n.getState(),d=l.inputValue,p=l.isOpen,f=l.highlightedIndex;u.disabled||((s={}).onChange=Q(i,a,n.inputHandleChange),s.onKeyDown=Q(r,n.inputHandleKeyDown),s.onBlur=Q(o,n.inputHandleBlur),c=s);return K({"aria-autocomplete":"list","aria-activedescendant":p&&"number"==typeof f&&f>=0?n.getItemId(f):null,"aria-controls":p?n.menuId:null,"aria-labelledby":n.labelId,autoComplete:"off",value:d,id:n.inputId},c,{},u)},n.inputHandleKeyDown=function(e){var t=ae(e);t&&n.inputKeyDownHandlers[t]&&n.inputKeyDownHandlers[t].call(F(n),e)},n.inputHandleChange=function(e){n.internalSetState({type:11,isOpen:!0,inputValue:e.target.value,highlightedIndex:n.props.defaultHighlightedIndex})},n.inputHandleBlur=function(){n.internalSetTimeout((function(){var e=n.props.environment.document&&!!n.props.environment.document.activeElement&&!!n.props.environment.document.activeElement.dataset&&n.props.environment.document.activeElement.dataset.toggle&&n._rootNode&&n._rootNode.contains(n.props.environment.document.activeElement);n.isMouseDown||e||n.reset({type:10})}))},n.menuRef=function(e){n._menuNode=e},n.getMenuProps=function(e,t){var r,o=void 0===e?{}:e,i=o.refKey,a=void 0===i?"ref":i,u=o.ref,c=U(o,["refKey","ref"]),s=(void 0===t?{}:t).suppressRefError,l=void 0!==s&&s;return n.getMenuProps.called=!0,n.getMenuProps.refKey=a,n.getMenuProps.suppressRefError=l,K(((r={})[a]=Z(u,n.menuRef),r.role="listbox",r["aria-labelledby"]=c&&c["aria-label"]?null:n.labelId,r.id=n.menuId,r),c)},n.getItemProps=function(e){var t,r=void 0===e?{}:e,o=r.onMouseMove,i=r.onMouseDown,a=r.onClick,u=(r.onPress,r.index),c=r.item,s=void 0===c?void 0:c,l=U(r,["onMouseMove","onMouseDown","onClick","onPress","index","item"]);void 0===u?(n.items.push(s),u=n.items.indexOf(s)):n.items[u]=s;var d=a,p=((t={onMouseMove:Q(o,(function(){u!==n.getState().highlightedIndex&&(n.setHighlightedIndex(u,{type:2}),n.avoidScrolling=!0,n.internalSetTimeout((function(){return n.avoidScrolling=!1}),250))})),onMouseDown:Q(i,(function(e){e.preventDefault()}))}).onClick=Q(d,(function(){n.selectItemAtIndex(u,{type:9})})),t),f=l.disabled?{onMouseDown:p.onMouseDown}:p;return K({id:n.getItemId(u),role:"option","aria-selected":n.getState().highlightedIndex===u},f,{},l)},n.clearItems=function(){n.items=[]},n.reset=function(e,t){void 0===e&&(e={}),e=ie(e),n.internalSetState((function(t){var r=t.selectedItem;return K({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,inputValue:n.props.itemToString(r)},e)}),t)},n.toggleMenu=function(e,t){void 0===e&&(e={}),e=ie(e),n.internalSetState((function(t){var r=t.isOpen;return K({isOpen:!r},r&&{highlightedIndex:n.props.defaultHighlightedIndex},{},e)}),(function(){var r=n.getState(),o=r.isOpen,i=r.highlightedIndex;o&&n.getItemCount()>0&&"number"==typeof i&&n.setHighlightedIndex(i,e),q(t)()}))},n.openMenu=function(e){n.internalSetState({isOpen:!0},e)},n.closeMenu=function(e){n.internalSetState({isOpen:!1},e)},n.updateStatus=J((function(){var e=n.getState(),t=n.items[e.highlightedIndex],r=n.getItemCount(),o=n.props.getA11yStatusMessage(K({itemToString:n.props.itemToString,previousResultCount:n.previousResultCount,resultCount:r,highlightedItem:t},e));n.previousResultCount=r,se(o,n.props.environment.document)}),200);var r=n.props,o=r.defaultHighlightedIndex,i=r.initialHighlightedIndex,a=void 0===i?o:i,u=r.defaultIsOpen,c=r.initialIsOpen,s=void 0===c?u:c,l=r.initialInputValue,d=void 0===l?"":l,p=r.initialSelectedItem,f=void 0===p?null:p,h=n.getState({highlightedIndex:a,isOpen:s,inputValue:d,selectedItem:f});return null!=h.selectedItem&&void 0===n.props.initialInputValue&&(h.inputValue=n.props.itemToString(h.selectedItem)),n.state=h,n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.internalClearTimeouts=function(){this.timeoutIds.forEach((function(e){clearTimeout(e)})),this.timeoutIds=[]},o.getState=function(e){var t=this;return void 0===e&&(e=this.state),Object.keys(e).reduce((function(n,r){return n[r]=t.isControlledProp(r)?t.props[r]:e[r],n}),{})},o.isControlledProp=function(e){return void 0!==this.props[e]},o.getItemCount=function(){var e=this.items.length;return null!=this.itemCount?e=this.itemCount:void 0!==this.props.itemCount&&(e=this.props.itemCount),e},o.getItemNodeFromIndex=function(e){return this.props.environment.document.getElementById(this.getItemId(e))},o.scrollHighlightedItemIntoView=function(){var e=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(e,this._menuNode)},o.moveHighlightedIndex=function(e,t){var n=this.getItemCount();if(n>0){var r=ue(e,this.getState().highlightedIndex,n);this.setHighlightedIndex(r,t)}},o.highlightFirstOrLastIndex=function(e,t,n){var r=this.getItemCount()-1;r<0||!this.getState().isOpen||(e.preventDefault(),this.setHighlightedIndex(t?0:r,n))},o.getStateAndHelpers=function(){var e=this.getState(),t=e.highlightedIndex,n=e.inputValue,r=e.selectedItem,o=e.isOpen,i=this.props.itemToString,a=this.id,u=this.getRootProps,c=this.getToggleButtonProps,s=this.getLabelProps,l=this.getMenuProps,d=this.getInputProps,p=this.getItemProps,f=this.openMenu,h=this.closeMenu,m=this.toggleMenu,v=this.selectItem,g=this.selectItemAtIndex,y=this.selectHighlightedItem,b=this.setHighlightedIndex,I=this.clearSelection,w=this.clearItems;return{getRootProps:u,getToggleButtonProps:c,getLabelProps:s,getMenuProps:l,getInputProps:d,getItemProps:p,reset:this.reset,openMenu:f,closeMenu:h,toggleMenu:m,selectItem:v,selectItemAtIndex:g,selectHighlightedItem:y,setHighlightedIndex:b,clearSelection:I,clearItems:w,setItemCount:this.setItemCount,unsetItemCount:this.unsetItemCount,setState:this.internalSetState,itemToString:i,id:a,highlightedIndex:t,inputValue:n,isOpen:o,selectedItem:r}},o.componentDidMount=function(){var e=this;var t=function(t,n){void 0===n&&(n=!0);var r=e.props.environment.document;return[e._rootNode,e._menuNode].some((function(e){return e&&(G(e,t)||n&&G(e,r.activeElement))}))},n=function(){e.isMouseDown=!0},r=function(n){e.isMouseDown=!1,!t(n.target)&&e.getState().isOpen&&e.reset({type:1},(function(){return e.props.onOuterClick(e.getStateAndHelpers())}))},o=function(){e.isTouchMove=!1},i=function(){e.isTouchMove=!0},a=function(n){var r=t(n.target,!1);e.isTouchMove||r||!e.getState().isOpen||e.reset({type:16},(function(){return e.props.onOuterClick(e.getStateAndHelpers())}))},u=this.props.environment;u.addEventListener("mousedown",n),u.addEventListener("mouseup",r),u.addEventListener("touchstart",o),u.addEventListener("touchmove",i),u.addEventListener("touchend",a),this.cleanup=function(){e.internalClearTimeouts(),e.updateStatus.cancel(),u.removeEventListener("mousedown",n),u.removeEventListener("mouseup",r),u.removeEventListener("touchstart",o),u.removeEventListener("touchmove",i),u.removeEventListener("touchend",a)}},o.shouldScroll=function(e,t){var n=(void 0===this.props.highlightedIndex?this.getState():this.props).highlightedIndex,r=(void 0===t.highlightedIndex?e:t).highlightedIndex;return n&&this.getState().isOpen&&!e.isOpen||n!==r},o.componentDidUpdate=function(e,t){this.isControlledProp("selectedItem")&&this.props.selectedItemChanged(e.selectedItem,this.props.selectedItem)&&this.internalSetState({type:15,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(t,e)&&this.scrollHighlightedItemIntoView(),this.updateStatus()},o.componentWillUnmount=function(){this.cleanup()},o.render=function(){var e=te(this.props.children,Y);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;var t=te(e(this.getStateAndHelpers()));return t?this.getRootProps.called||this.props.suppressRefError?t:ne(t)?Object(s.cloneElement)(t,this.getRootProps(re(t))):void 0:null},r}(s.Component);return e.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:ee,itemToString:function(e){return null==e?"":String(e)},onStateChange:Y,onInputValueChange:Y,onUserAction:Y,onChange:Y,onSelect:Y,onOuterClick:Y,selectedItemChanged:function(e,t){return e!==t},environment:"undefined"==typeof window?{}:window,stateReducer:function(e,t){return t},suppressRefError:!1,scrollIntoView:X},e.stateChangeTypes=de,e}();p.a.array.isRequired,p.a.func,p.a.func,p.a.func,p.a.bool,p.a.number,p.a.number,p.a.number,p.a.bool,p.a.bool,p.a.bool,p.a.any,p.a.any,p.a.any,p.a.string,p.a.string,p.a.string,p.a.func,p.a.string,p.a.func,p.a.func,p.a.func,p.a.func,p.a.func,p.a.shape({addEventListener:p.a.func,removeEventListener:p.a.func,document:p.a.shape({getElementById:p.a.func,activeElement:p.a.any,body:p.a.any})});"undefined"==typeof window||window;var fe=pe;function he(){return(he=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function me(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,o)}function ve(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ge(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 ge(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 ge(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 ye=function(e){var t=e.listId,n=e.apiKey,o=e.onChange,i=ve(Object(r.useState)([]),2),u=i[0],s=i[1],l=ve(Object(r.useState)(!1),2),d=l[0],p=l[1],f=ve(Object(r.useState)({controller:null}),2),h=f[0].controller,m=f[1],v=function(){var e,t=(e=regeneratorRuntime.mark((function e(){var t,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return h&&h.abort(),p(!0),"AbortController"in window&&(h=new AbortController,m({controller:h})),(t=new FormData).append("api_key",n),t.append("action","blocksy_ext_mailchimp_maybe_get_lists"),e.prev=6,e.next=9,fetch(ctDashboardLocalizations.ajax_url,{method:"POST",signal:h.signal,body:t});case 9:if(200!==(r=e.sent).status){e.next=19;break}return e.next=13,r.json();case 13:if(!(o=e.sent).success){e.next=19;break}if("api_key_invalid"===o.data.result){e.next=19;break}return p(!1),s(o.data.result),e.abrupt("return");case 19:e.next=23;break;case 21:e.prev=21,e.t0=e.catch(6);case 23:s([]),p(!1);case 25:case"end":return e.stop()}}),e,null,[[6,21]])})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){me(i,r,o,a,u,"next",e)}function u(e){me(i,r,o,a,u,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();return Object(r.useEffect)((function(){n&&-1!==n.indexOf("-")?v():s([])}),[n]),0===u.length?Object(r.createElement)("div",{className:"ct-select-input"},Object(r.createElement)("input",{disabled:!0,placeholder:d?Object(a.__)("Loading","blc"):Object(a.__)("Invalid API Key...","blc")})):Object(r.createElement)(fe,{selectedItem:t||"",onChange:function(e){return o(e)},itemToString:function(e){return e?(u.find((function(t){return t.id===e}))||{}).name:""}},(function(e){var t=e.getInputProps,n=e.getItemProps,o=(e.getLabelProps,e.getMenuProps),i=e.isOpen,s=(e.inputValue,e.highlightedIndex),l=e.selectedItem,d=e.openMenu;return Object(r.createElement)("div",{className:"ct-select-input"},Object(r.createElement)("input",he({},t({onFocus:function(){return d()},onClick:function(){return d()}}),{placeholder:Object(a.__)("Select list...","blc"),readOnly:!0})),i&&Object(r.createElement)("div",o({className:"ct-select-dropdown"}),u.map((function(e,t){return Object(r.createElement)("div",n({key:e.id,index:t,item:e.id,className:c()("ct-select-dropdown-item",{active:s===t,selected:l===e.id})}),e.name)}))))}))};function be(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,o)}function Ie(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return we(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 we(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 we(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 Oe=function(e){var t=e.extension,n=e.isEditingCredentials,o=e.setIsEditingCredentials,i=e.onCredentialsValidated,u=Ie(Object(r.useState)(t.data.api_key),2),s=u[0],l=u[1],d=Ie(Object(r.useState)(t.data.list_id),2),p=d[0],f=d[1],h=Ie(Object(r.useState)(!1),2),m=h[0],v=h[1],g=Ie(Object(r.useState)(!1),2),y=g[0],b=g[1],I=function(){var e,t=(e=regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).append("api_key",s),t.append("list_id",p),t.append("action","blocksy_ext_mailchimp_maybe_save_credentials"),v(!0),e.prev=5,e.next=8,fetch(ctDashboardLocalizations.ajax_url,{method:"POST",body:t});case 8:if(200!==(n=e.sent).status){e.next=14;break}return e.next=12,n.json();case 12:(r=e.sent).success&&"api_key_invalid"!==r.data.result&&(i(),b(!1));case 14:b(!0),e.next=20;break;case 17:e.prev=17,e.t0=e.catch(5),b(!0);case 20:return e.next=22,new Promise((function(e){return setTimeout((function(){return e()}),1e3)}));case 22:v(!1);case 23:case"end":return e.stop()}}),e,null,[[5,17]])})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){be(i,r,o,a,u,"next",e)}function u(e){be(i,r,o,a,u,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();return Object(r.createElement)(H,{items:n,onDismiss:function(){return o(!1)},className:"ct-mailchimp-modal",render:function(){return Object(r.createElement)("div",{className:c()("ct-modal-content",{"ct-key-invalid":y})},Object(r.createElement)("h2",null,Object(a.__)("API Credentials","blc")),Object(r.createElement)("p",{dangerouslySetInnerHTML:{__html:Object(a.sprintf)(Object(a.__)("Enter your Mailchimp API credentials in the form below. More info on how to generate an API key can be found %shere%s.","blc"),'<a target="_blank" href="https://mailchimp.com/help/about-api-keys/">',"</a>")}}),null,Object(r.createElement)("div",{className:"mailchimp-credentials"},Object(r.createElement)("section",null,Object(r.createElement)("label",null,Object(a.__)("API Key","blc")),Object(r.createElement)("div",{className:"ct-option-input"},Object(r.createElement)("input",{type:"text",onChange:function(e){var t=e.target.value;return l(t)},value:s||""}))),Object(r.createElement)("section",null,Object(r.createElement)("label",null,Object(a.__)("List ID","blc")),Object(r.createElement)(ye,{listId:p,onChange:function(e){return f(e)},apiKey:s})),Object(r.createElement)("section",null,Object(r.createElement)("label",null," "),Object(r.createElement)("button",{className:"ct-button","data-button":"blue",disabled:!s||!p||m,onClick:function(){return I()}},m?Object(a.__)("Loading...","blc"):t.__object?Object(a.__)("Save Settings","blc"):Object(a.__)("Activate","blc")))))}})};function Se(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,o)}function xe(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Se(i,r,o,a,u,"next",e)}function u(e){Se(i,r,o,a,u,"throw",e)}a(void 0)}))}}function Ee(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return je(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 je(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 je(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 Ce=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=Object(r.useState)(!1),o=Ee(n,2),i=o[0],u=o[1],c=Object(r.useState)(!1),s=Ee(c,2),l=s[0],d=s[1],p=function(){var n=xe(regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return(r=new FormData).append("ext",e.name),r.append("action",e.__object?"blocksy_extension_deactivate":"blocksy_extension_activate"),u(!0),n.prev=4,n.next=7,fetch(ctDashboardLocalizations.ajax_url,{method:"POST",body:r});case 7:t(),n.next=12;break;case 10:n.prev=10,n.t0=n.catch(4);case 12:u(!1);case 13:case"end":return n.stop()}}),n,null,[[4,10]])})));return function(){return n.apply(this,arguments)}}(),f=function(){e.__object||e.data.api_key?p():d(!0)};return[i,f,Object(r.createElement)(r.Fragment,null,e.__object&&e.data.api_key&&Object(r.createElement)("button",{className:"ct-button ct-config-btn","data-button":"white",title:"Edit Credentials",onClick:function(){return d(!0)}},Object(a.__)("Configure","blc")),Object(r.createElement)(Oe,{isEditingCredentials:l,setIsEditingCredentials:d,extension:e,onCredentialsValidated:function(){e.__object||p(),d(!1)}}))]};function _e(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Pe(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 Pe(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 Pe(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 Ae=function(e){var t=e.extension,n=e.onExtsSync,o=_e(Ce(t,(function(){n()})),3),i=o[0],u=o[1],s=o[2],l=_e(L(t),2),d=l[0],p=l[1];return Object(r.createElement)("li",{className:c()({active:!!t.__object})},Object(r.createElement)("h4",{className:"ct-extension-title"},t.config.name,i&&Object(r.createElement)("svg",{width:"15",height:"15",viewBox:"0 0 100 100"},Object(r.createElement)("g",{transform:"translate(50,50)"},Object(r.createElement)("g",{transform:"scale(1)"},Object(r.createElement)("circle",{cx:"0",cy:"0",r:"50",fill:"#687c93"}),Object(r.createElement)("circle",{cx:"0",cy:"-26",r:"12",fill:"#ffffff",transform:"rotate(161.634)"},Object(r.createElement)("animateTransform",{attributeName:"transform",type:"rotate",calcMode:"linear",values:"0 0 0;360 0 0",keyTimes:"0;1",dur:"1s",begin:"0s",repeatCount:"indefinite"})))))),t.config.description&&Object(r.createElement)("div",{className:"ct-extension-description"},t.config.description),Object(r.createElement)("div",{className:"ct-extension-actions"},Object(r.createElement)("button",{className:c()(t.__object?"ct-button":"ct-button-primary"),"data-button":"white",disabled:i,onClick:function(){return u()}},t.__object?Object(a.__)("Deactivate","blc"):Object(a.__)("Activate","blc")),s,t.readme&&Object(r.createElement)("button",{onClick:function(){return d()},"data-button":"white",className:"ct-minimal-button ct-instruction"},Object(r.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 24 24"},Object(r.createElement)("path",{d:"M12,2C6.477,2,2,6.477,2,12s4.477,10,10,10s10-4.477,10-10S17.523,2,12,2z M12,17L12,17c-0.552,0-1-0.448-1-1v-4 c0-0.552,0.448-1,1-1h0c0.552,0,1,0.448,1,1v4C13,16.552,12.552,17,12,17z M12.5,9h-1C11.224,9,11,8.776,11,8.5v-1 C11,7.224,11.224,7,11.5,7h1C12.776,7,13,7.224,13,7.5v1C13,8.776,12.776,9,12.5,9z"})))),p)};i.a.on("ct:extensions:card",(function(e){var t=e.CustomComponent;"mailchimp"===e.extension.name&&(t.extension=Ae)}))}]);
|
framework/extensions/mailchimp/dashboard-static/js/EditCredentials.js
CHANGED
|
@@ -10,6 +10,7 @@ import classnames from 'classnames'
|
|
| 10 |
import { __, sprintf } from 'ct-i18n'
|
| 11 |
import ListPicker from './ListPicker'
|
| 12 |
import Overlay from '../../../../../static/js/helpers/Overlay'
|
|
|
|
| 13 |
|
| 14 |
const EditCredentials = ({
|
| 15 |
extension,
|
|
@@ -66,20 +67,16 @@ const EditCredentials = ({
|
|
| 66 |
className={'ct-mailchimp-modal'}
|
| 67 |
render={() => (
|
| 68 |
<div
|
| 69 |
-
className={classnames(
|
| 70 |
-
'ct-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
}
|
| 74 |
-
)}>
|
| 75 |
-
|
| 76 |
-
<h2>{__('MailChimp Credentials', 'blc')}</h2>
|
| 77 |
|
| 78 |
<p
|
| 79 |
dangerouslySetInnerHTML={{
|
| 80 |
__html: sprintf(
|
| 81 |
__(
|
| 82 |
-
'Enter your
|
| 83 |
'blc'
|
| 84 |
),
|
| 85 |
'<a target="_blank" href="https://mailchimp.com/help/about-api-keys/">',
|
|
@@ -88,6 +85,29 @@ const EditCredentials = ({
|
|
| 88 |
}}
|
| 89 |
/>
|
| 90 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 91 |
<div className="mailchimp-credentials">
|
| 92 |
<section>
|
| 93 |
<label>{__('API Key', 'blc')}</label>
|
| 10 |
import { __, sprintf } from 'ct-i18n'
|
| 11 |
import ListPicker from './ListPicker'
|
| 12 |
import Overlay from '../../../../../static/js/helpers/Overlay'
|
| 13 |
+
import { Select } from 'blocksy-options'
|
| 14 |
|
| 15 |
const EditCredentials = ({
|
| 16 |
extension,
|
| 67 |
className={'ct-mailchimp-modal'}
|
| 68 |
render={() => (
|
| 69 |
<div
|
| 70 |
+
className={classnames('ct-modal-content', {
|
| 71 |
+
'ct-key-invalid': isApiKeyInvalid,
|
| 72 |
+
})}>
|
| 73 |
+
<h2>{__('API Credentials', 'blc')}</h2>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 74 |
|
| 75 |
<p
|
| 76 |
dangerouslySetInnerHTML={{
|
| 77 |
__html: sprintf(
|
| 78 |
__(
|
| 79 |
+
'Enter your Mailchimp API credentials in the form below. More info on how to generate an API key can be found %shere%s.',
|
| 80 |
'blc'
|
| 81 |
),
|
| 82 |
'<a target="_blank" href="https://mailchimp.com/help/about-api-keys/">',
|
| 85 |
}}
|
| 86 |
/>
|
| 87 |
|
| 88 |
+
{null && (
|
| 89 |
+
<Fragment>
|
| 90 |
+
<h4>{__('Pick service', 'blc')}</h4>
|
| 91 |
+
|
| 92 |
+
<Select
|
| 93 |
+
onChange={(copy) => {}}
|
| 94 |
+
option={{
|
| 95 |
+
placeholder: __(
|
| 96 |
+
'Pick Mailing Service',
|
| 97 |
+
'blocksy'
|
| 98 |
+
),
|
| 99 |
+
choices: [
|
| 100 |
+
{
|
| 101 |
+
key: 'mailchimp',
|
| 102 |
+
value: 'Mailchimp',
|
| 103 |
+
},
|
| 104 |
+
],
|
| 105 |
+
}}
|
| 106 |
+
value={'mailchimp'}
|
| 107 |
+
/>
|
| 108 |
+
</Fragment>
|
| 109 |
+
)}
|
| 110 |
+
|
| 111 |
<div className="mailchimp-credentials">
|
| 112 |
<section>
|
| 113 |
<label>{__('API Key', 'blc')}</label>
|
framework/extensions/mailchimp/dashboard-static/js/ListPicker.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
| 3 |
Component,
|
| 4 |
useEffect,
|
| 5 |
useState,
|
| 6 |
-
Fragment
|
| 7 |
} from '@wordpress/element'
|
| 8 |
import Downshift from 'downshift'
|
| 9 |
import { __ } from 'ct-i18n'
|
|
@@ -14,7 +14,7 @@ const ListPicker = ({ listId, apiKey, onChange }) => {
|
|
| 14 |
const [isLoadingLists, setListsLoading] = useState(false)
|
| 15 |
|
| 16 |
let [{ controller }, setAbortState] = useState({
|
| 17 |
-
controller: null
|
| 18 |
})
|
| 19 |
|
| 20 |
const maybeFetchLists = async () => {
|
|
@@ -28,7 +28,7 @@ const ListPicker = ({ listId, apiKey, onChange }) => {
|
|
| 28 |
controller = new AbortController()
|
| 29 |
|
| 30 |
setAbortState({
|
| 31 |
-
controller
|
| 32 |
})
|
| 33 |
}
|
| 34 |
|
|
@@ -41,7 +41,7 @@ const ListPicker = ({ listId, apiKey, onChange }) => {
|
|
| 41 |
const response = await fetch(ctDashboardLocalizations.ajax_url, {
|
| 42 |
method: 'POST',
|
| 43 |
signal: controller.signal,
|
| 44 |
-
body
|
| 45 |
})
|
| 46 |
if (response.status === 200) {
|
| 47 |
const body = await response.json()
|
|
@@ -89,8 +89,8 @@ const ListPicker = ({ listId, apiKey, onChange }) => {
|
|
| 89 |
) : (
|
| 90 |
<Downshift
|
| 91 |
selectedItem={listId || ''}
|
| 92 |
-
onChange={selection => onChange(selection)}
|
| 93 |
-
itemToString={item =>
|
| 94 |
item ? (lists.find(({ id }) => id === item) || {}).name : ''
|
| 95 |
}>
|
| 96 |
{({
|
|
@@ -102,13 +102,13 @@ const ListPicker = ({ listId, apiKey, onChange }) => {
|
|
| 102 |
inputValue,
|
| 103 |
highlightedIndex,
|
| 104 |
selectedItem,
|
| 105 |
-
openMenu
|
| 106 |
}) => (
|
| 107 |
<div className="ct-select-input">
|
| 108 |
<input
|
| 109 |
{...getInputProps({
|
| 110 |
onFocus: () => openMenu(),
|
| 111 |
-
onClick: () => openMenu()
|
| 112 |
})}
|
| 113 |
placeholder={__('Select list...', 'blc')}
|
| 114 |
readOnly
|
|
@@ -117,7 +117,7 @@ const ListPicker = ({ listId, apiKey, onChange }) => {
|
|
| 117 |
{isOpen && (
|
| 118 |
<div
|
| 119 |
{...getMenuProps({
|
| 120 |
-
className: 'ct-select-dropdown'
|
| 121 |
})}>
|
| 122 |
{lists.map((item, index) => (
|
| 123 |
<div
|
|
@@ -131,9 +131,9 @@ const ListPicker = ({ listId, apiKey, onChange }) => {
|
|
| 131 |
active:
|
| 132 |
highlightedIndex === index,
|
| 133 |
selected:
|
| 134 |
-
selectedItem === item.id
|
| 135 |
}
|
| 136 |
-
)
|
| 137 |
})}>
|
| 138 |
{item.name}
|
| 139 |
</div>
|
| 3 |
Component,
|
| 4 |
useEffect,
|
| 5 |
useState,
|
| 6 |
+
Fragment,
|
| 7 |
} from '@wordpress/element'
|
| 8 |
import Downshift from 'downshift'
|
| 9 |
import { __ } from 'ct-i18n'
|
| 14 |
const [isLoadingLists, setListsLoading] = useState(false)
|
| 15 |
|
| 16 |
let [{ controller }, setAbortState] = useState({
|
| 17 |
+
controller: null,
|
| 18 |
})
|
| 19 |
|
| 20 |
const maybeFetchLists = async () => {
|
| 28 |
controller = new AbortController()
|
| 29 |
|
| 30 |
setAbortState({
|
| 31 |
+
controller,
|
| 32 |
})
|
| 33 |
}
|
| 34 |
|
| 41 |
const response = await fetch(ctDashboardLocalizations.ajax_url, {
|
| 42 |
method: 'POST',
|
| 43 |
signal: controller.signal,
|
| 44 |
+
body,
|
| 45 |
})
|
| 46 |
if (response.status === 200) {
|
| 47 |
const body = await response.json()
|
| 89 |
) : (
|
| 90 |
<Downshift
|
| 91 |
selectedItem={listId || ''}
|
| 92 |
+
onChange={(selection) => onChange(selection)}
|
| 93 |
+
itemToString={(item) =>
|
| 94 |
item ? (lists.find(({ id }) => id === item) || {}).name : ''
|
| 95 |
}>
|
| 96 |
{({
|
| 102 |
inputValue,
|
| 103 |
highlightedIndex,
|
| 104 |
selectedItem,
|
| 105 |
+
openMenu,
|
| 106 |
}) => (
|
| 107 |
<div className="ct-select-input">
|
| 108 |
<input
|
| 109 |
{...getInputProps({
|
| 110 |
onFocus: () => openMenu(),
|
| 111 |
+
onClick: () => openMenu(),
|
| 112 |
})}
|
| 113 |
placeholder={__('Select list...', 'blc')}
|
| 114 |
readOnly
|
| 117 |
{isOpen && (
|
| 118 |
<div
|
| 119 |
{...getMenuProps({
|
| 120 |
+
className: 'ct-select-dropdown',
|
| 121 |
})}>
|
| 122 |
{lists.map((item, index) => (
|
| 123 |
<div
|
| 131 |
active:
|
| 132 |
highlightedIndex === index,
|
| 133 |
selected:
|
| 134 |
+
selectedItem === item.id,
|
| 135 |
}
|
| 136 |
+
),
|
| 137 |
})}>
|
| 138 |
{item.name}
|
| 139 |
</div>
|
framework/extensions/mailchimp/dashboard-static/js/Mailchimp.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
| 3 |
Component,
|
| 4 |
useEffect,
|
| 5 |
useState,
|
| 6 |
-
Fragment
|
| 7 |
} from '@wordpress/element'
|
| 8 |
import { __ } from 'ct-i18n'
|
| 9 |
import classnames from 'classnames'
|
| 3 |
Component,
|
| 4 |
useEffect,
|
| 5 |
useState,
|
| 6 |
+
Fragment,
|
| 7 |
} from '@wordpress/element'
|
| 8 |
import { __ } from 'ct-i18n'
|
| 9 |
import classnames from 'classnames'
|
framework/extensions/mailchimp/dashboard-static/js/main.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
| 3 |
Component,
|
| 4 |
useEffect,
|
| 5 |
useState,
|
| 6 |
-
Fragment
|
| 7 |
} from '@wordpress/element'
|
| 8 |
import ctEvents from 'ct-events'
|
| 9 |
|
| 3 |
Component,
|
| 4 |
useEffect,
|
| 5 |
useState,
|
| 6 |
+
Fragment,
|
| 7 |
} from '@wordpress/element'
|
| 8 |
import ctEvents from 'ct-events'
|
| 9 |
|
framework/extensions/mailchimp/extension.php
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?php
|
| 2 |
|
| 3 |
-
require_once dirname(
|
| 4 |
-
require_once dirname(
|
| 5 |
|
| 6 |
class BlocksyExtensionMailchimp {
|
| 7 |
public function __construct() {
|
|
@@ -13,7 +13,7 @@ class BlocksyExtensionMailchimp {
|
|
| 13 |
}, 10, 3);
|
| 14 |
|
| 15 |
add_filter('blocksy-options-scripts-dependencies', function ($d) {
|
| 16 |
-
$d[] = 'blocksy-ext-
|
| 17 |
return $d;
|
| 18 |
});
|
| 19 |
|
|
@@ -25,7 +25,7 @@ class BlocksyExtensionMailchimp {
|
|
| 25 |
$data = get_plugin_data(BLOCKSY__FILE__);
|
| 26 |
|
| 27 |
wp_register_script(
|
| 28 |
-
'blocksy-ext-
|
| 29 |
BLOCKSY_URL . 'framework/extensions/mailchimp/admin-static/bundle/main.js',
|
| 30 |
[],
|
| 31 |
$data['Version'],
|
|
@@ -33,8 +33,8 @@ class BlocksyExtensionMailchimp {
|
|
| 33 |
);
|
| 34 |
|
| 35 |
wp_localize_script(
|
| 36 |
-
'blocksy-ext-
|
| 37 |
-
'
|
| 38 |
[
|
| 39 |
'public_url' => BLOCKSY_URL . 'framework/extensions/mailchimp/admin-static/bundle/',
|
| 40 |
]
|
|
@@ -49,7 +49,7 @@ class BlocksyExtensionMailchimp {
|
|
| 49 |
$data = get_plugin_data(BLOCKSY__FILE__);
|
| 50 |
|
| 51 |
wp_register_script(
|
| 52 |
-
'blocksy-ext-
|
| 53 |
BLOCKSY_URL . 'framework/extensions/mailchimp/admin-static/bundle/main.js',
|
| 54 |
[],
|
| 55 |
$data['Version'],
|
|
@@ -57,8 +57,8 @@ class BlocksyExtensionMailchimp {
|
|
| 57 |
);
|
| 58 |
|
| 59 |
wp_localize_script(
|
| 60 |
-
'blocksy-ext-
|
| 61 |
-
'
|
| 62 |
[
|
| 63 |
'public_url' => BLOCKSY_URL . 'framework/extensions/mailchimp/admin-static/bundle/',
|
| 64 |
]
|
|
@@ -77,14 +77,14 @@ class BlocksyExtensionMailchimp {
|
|
| 77 |
}
|
| 78 |
|
| 79 |
wp_enqueue_style(
|
| 80 |
-
'blocksy-ext-
|
| 81 |
BLOCKSY_URL . 'framework/extensions/mailchimp/static/bundle/main.css',
|
| 82 |
['ct-main-styles'],
|
| 83 |
$data['Version']
|
| 84 |
);
|
| 85 |
|
| 86 |
wp_enqueue_script(
|
| 87 |
-
'blocksy-ext-
|
| 88 |
BLOCKSY_URL . 'framework/extensions/mailchimp/static/bundle/main.js',
|
| 89 |
[],
|
| 90 |
$data['Version'],
|
|
@@ -130,7 +130,7 @@ class BlocksyExtensionMailchimp {
|
|
| 130 |
$data = get_plugin_data(BLOCKSY__FILE__);
|
| 131 |
|
| 132 |
wp_enqueue_script(
|
| 133 |
-
'blocksy-
|
| 134 |
BLOCKSY_URL . 'framework/extensions/mailchimp/admin-static/bundle/sync.js',
|
| 135 |
[ 'customize-preview', 'ct-events' ],
|
| 136 |
$data['Version'],
|
| 1 |
<?php
|
| 2 |
|
| 3 |
+
require_once dirname(__FILE__) . '/helpers.php';
|
| 4 |
+
require_once dirname(__FILE__) . '/mailchimp-manager.php';
|
| 5 |
|
| 6 |
class BlocksyExtensionMailchimp {
|
| 7 |
public function __construct() {
|
| 13 |
}, 10, 3);
|
| 14 |
|
| 15 |
add_filter('blocksy-options-scripts-dependencies', function ($d) {
|
| 16 |
+
$d[] = 'blocksy-ext-newsletter-subscribe-admin-scripts';
|
| 17 |
return $d;
|
| 18 |
});
|
| 19 |
|
| 25 |
$data = get_plugin_data(BLOCKSY__FILE__);
|
| 26 |
|
| 27 |
wp_register_script(
|
| 28 |
+
'blocksy-ext-newsletter-subscribe-admin-scripts',
|
| 29 |
BLOCKSY_URL . 'framework/extensions/mailchimp/admin-static/bundle/main.js',
|
| 30 |
[],
|
| 31 |
$data['Version'],
|
| 33 |
);
|
| 34 |
|
| 35 |
wp_localize_script(
|
| 36 |
+
'blocksy-ext-newsletter-subscribe-admin-scripts',
|
| 37 |
+
'blocksy_ext_newsletter_subscribe_localization',
|
| 38 |
[
|
| 39 |
'public_url' => BLOCKSY_URL . 'framework/extensions/mailchimp/admin-static/bundle/',
|
| 40 |
]
|
| 49 |
$data = get_plugin_data(BLOCKSY__FILE__);
|
| 50 |
|
| 51 |
wp_register_script(
|
| 52 |
+
'blocksy-ext-newsletter-subscribe-admin-scripts',
|
| 53 |
BLOCKSY_URL . 'framework/extensions/mailchimp/admin-static/bundle/main.js',
|
| 54 |
[],
|
| 55 |
$data['Version'],
|
| 57 |
);
|
| 58 |
|
| 59 |
wp_localize_script(
|
| 60 |
+
'blocksy-ext-newsletter-subscribe-admin-scripts',
|
| 61 |
+
'blocksy_ext_newsletter_subscribe_localization',
|
| 62 |
[
|
| 63 |
'public_url' => BLOCKSY_URL . 'framework/extensions/mailchimp/admin-static/bundle/',
|
| 64 |
]
|
| 77 |
}
|
| 78 |
|
| 79 |
wp_enqueue_style(
|
| 80 |
+
'blocksy-ext-newsletter-subscribe-styles',
|
| 81 |
BLOCKSY_URL . 'framework/extensions/mailchimp/static/bundle/main.css',
|
| 82 |
['ct-main-styles'],
|
| 83 |
$data['Version']
|
| 84 |
);
|
| 85 |
|
| 86 |
wp_enqueue_script(
|
| 87 |
+
'blocksy-ext-newsletter-subscribe-scripts',
|
| 88 |
BLOCKSY_URL . 'framework/extensions/mailchimp/static/bundle/main.js',
|
| 89 |
[],
|
| 90 |
$data['Version'],
|
| 130 |
$data = get_plugin_data(BLOCKSY__FILE__);
|
| 131 |
|
| 132 |
wp_enqueue_script(
|
| 133 |
+
'blocksy-newsletter-subscribe-customizer-sync',
|
| 134 |
BLOCKSY_URL . 'framework/extensions/mailchimp/admin-static/bundle/sync.js',
|
| 135 |
[ 'customize-preview', 'ct-events' ],
|
| 136 |
$data['Version'],
|
framework/extensions/mailchimp/pre-boot.php
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
<?php
|
| 2 |
|
| 3 |
-
require_once dirname(
|
| 4 |
|
| 5 |
class BlocksyExtensionMailchimpPreBoot {
|
| 6 |
public function __construct() {
|
| 1 |
<?php
|
| 2 |
|
| 3 |
+
require_once dirname(__FILE__) . '/mailchimp-manager.php';
|
| 4 |
|
| 5 |
class BlocksyExtensionMailchimpPreBoot {
|
| 6 |
public function __construct() {
|
framework/extensions/mailchimp/static/bundle/main.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
/**
|
| 2 |
-
* - v1.7.
|
| 3 |
*
|
| 4 |
* Copyright (c) 2021
|
| 5 |
* Licensed GPLv2+
|
| 1 |
/**
|
| 2 |
+
* - v1.7.50
|
| 3 |
*
|
| 4 |
* Copyright (c) 2021
|
| 5 |
* Licensed GPLv2+
|
framework/extensions/mailchimp/static/js/main.js
CHANGED
|
@@ -4,13 +4,13 @@ onDocumentLoaded(() => {
|
|
| 4 |
;[
|
| 5 |
...document.querySelectorAll(
|
| 6 |
'.ct-mailchimp-widget-form, .ct-mailchimp-block-form'
|
| 7 |
-
)
|
| 8 |
-
].map(el => {
|
| 9 |
if (el.matches('[data-skip-submit]')) {
|
| 10 |
return
|
| 11 |
}
|
| 12 |
|
| 13 |
-
el.addEventListener('submit', e => {
|
| 14 |
e.preventDefault()
|
| 15 |
const form = e.target
|
| 16 |
|
| 4 |
;[
|
| 5 |
...document.querySelectorAll(
|
| 6 |
'.ct-mailchimp-widget-form, .ct-mailchimp-block-form'
|
| 7 |
+
),
|
| 8 |
+
].map((el) => {
|
| 9 |
if (el.matches('[data-skip-submit]')) {
|
| 10 |
return
|
| 11 |
}
|
| 12 |
|
| 13 |
+
el.addEventListener('submit', (e) => {
|
| 14 |
e.preventDefault()
|
| 15 |
const form = e.target
|
| 16 |
|
framework/extensions/product-reviews/config.php
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
$config = [
|
| 4 |
+
'name' => __('Product Reviews', 'blc'),
|
| 5 |
+
'description' => __('A custom post type specially designed for creating product reviews.', 'blc'),
|
| 6 |
+
'require_refresh' => true
|
| 7 |
+
|
| 8 |
+
// 'hidden' => true
|
| 9 |
+
];
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
|
framework/extensions/{affiliate-marketing → product-reviews}/extension.php
RENAMED
|
@@ -2,12 +2,12 @@
|
|
| 2 |
|
| 3 |
require_once dirname(__FILE__) . '/helpers.php';
|
| 4 |
|
| 5 |
-
class
|
| 6 |
public function __construct() {
|
| 7 |
add_filter(
|
| 8 |
'blocksy:options:cpt:page-title-args',
|
| 9 |
function ($args, $cpt) {
|
| 10 |
-
if ($cpt === 'blc-
|
| 11 |
$args['has_hero_type'] = false;
|
| 12 |
}
|
| 13 |
|
|
@@ -16,15 +16,13 @@ class BlocksyExtensionAffiliateMarketing {
|
|
| 16 |
10, 2
|
| 17 |
);
|
| 18 |
|
| 19 |
-
add_action(
|
| 20 |
-
'init', [$this, 'declare_cpt']
|
| 21 |
-
);
|
| 22 |
|
| 23 |
add_action('load-post.php', [$this, 'init_metabox']);
|
| 24 |
add_action('load-post-new.php', [$this, 'init_metabox']);
|
| 25 |
|
| 26 |
add_filter('blocksy:single:has-default-hero', function ($def) {
|
| 27 |
-
if (! is_singular('blc-
|
| 28 |
return $def;
|
| 29 |
}
|
| 30 |
|
|
@@ -34,7 +32,7 @@ class BlocksyExtensionAffiliateMarketing {
|
|
| 34 |
add_filter(
|
| 35 |
'blocksy:hero:type-1:default-alignment',
|
| 36 |
function ($default, $prefix) {
|
| 37 |
-
if ($prefix === 'blc-
|
| 38 |
return 'center';
|
| 39 |
}
|
| 40 |
|
|
@@ -44,17 +42,17 @@ class BlocksyExtensionAffiliateMarketing {
|
|
| 44 |
);
|
| 45 |
|
| 46 |
add_filter('blocksy:archive:render-card-layers', function ($layers, $prefix) {
|
| 47 |
-
if ($prefix !== 'blc-
|
| 48 |
return $layers;
|
| 49 |
}
|
| 50 |
|
| 51 |
-
$layers['overall_score'] =
|
| 52 |
|
| 53 |
return $layers;
|
| 54 |
}, 10, 2);
|
| 55 |
|
| 56 |
add_filter('blocksy:posts-listing:archive-order:default', function ($default, $prefix) {
|
| 57 |
-
if ($prefix !== 'blc-
|
| 58 |
return $default;
|
| 59 |
}
|
| 60 |
|
|
@@ -67,7 +65,7 @@ class BlocksyExtensionAffiliateMarketing {
|
|
| 67 |
}, 10, 2);
|
| 68 |
|
| 69 |
add_filter('blocksy:options:posts-listing-archive-order', function ($option, $prefix) {
|
| 70 |
-
if ($prefix !== 'blc-
|
| 71 |
return $option;
|
| 72 |
}
|
| 73 |
|
|
@@ -98,7 +96,7 @@ class BlocksyExtensionAffiliateMarketing {
|
|
| 98 |
add_action(
|
| 99 |
'blocksy:content:top',
|
| 100 |
function () {
|
| 101 |
-
if (! is_singular('blc-
|
| 102 |
return;
|
| 103 |
}
|
| 104 |
|
|
@@ -122,8 +120,8 @@ class BlocksyExtensionAffiliateMarketing {
|
|
| 122 |
}
|
| 123 |
|
| 124 |
wp_enqueue_style(
|
| 125 |
-
'blocksy-ext-
|
| 126 |
-
BLOCKSY_URL . 'framework/extensions/
|
| 127 |
['ct-main-styles'],
|
| 128 |
$data['Version']
|
| 129 |
);
|
|
@@ -136,22 +134,24 @@ class BlocksyExtensionAffiliateMarketing {
|
|
| 136 |
}
|
| 137 |
|
| 138 |
public function declare_cpt() {
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
'
|
|
|
|
|
|
|
| 143 |
'labels' => [
|
| 144 |
-
'name' => __('
|
| 145 |
-
'singular_name' => __('
|
| 146 |
-
'menu_name' => __('
|
| 147 |
-
'parent_item_colon' => __('Parent
|
| 148 |
-
'all_items' => __('All
|
| 149 |
-
'view_item' => __('View
|
| 150 |
-
'add_new_item' => __('Add New
|
| 151 |
-
'add_new' => __('Add New', 'blc'),
|
| 152 |
-
'edit_item' => __('Edit
|
| 153 |
-
'update_item' => __('Update
|
| 154 |
-
'search_items' => __('Search
|
| 155 |
'not_found' => __('Not Found', 'blc'),
|
| 156 |
'not_found_in_trash' => __('Not found in Trash', 'blc')
|
| 157 |
],
|
|
@@ -173,13 +173,16 @@ class BlocksyExtensionAffiliateMarketing {
|
|
| 173 |
'exclude_from_search' => false,
|
| 174 |
// 'taxonomies' => array('post_tag'),
|
| 175 |
'publicly_queryable' => true,
|
| 176 |
-
'capability_type' => 'page'
|
|
|
|
|
|
|
|
|
|
| 177 |
]);
|
| 178 |
|
| 179 |
register_taxonomy(
|
| 180 |
-
'blc-
|
| 181 |
[
|
| 182 |
-
'blc-
|
| 183 |
],
|
| 184 |
[
|
| 185 |
'hierarchical' => true,
|
|
@@ -199,7 +202,10 @@ class BlocksyExtensionAffiliateMarketing {
|
|
| 199 |
'show_ui' => true,
|
| 200 |
'show_admin_column' => true,
|
| 201 |
'query_var' => true,
|
| 202 |
-
|
|
|
|
|
|
|
|
|
|
| 203 |
]
|
| 204 |
);
|
| 205 |
}
|
|
@@ -213,7 +219,7 @@ class BlocksyExtensionAffiliateMarketing {
|
|
| 213 |
__( 'Blocksy', 'blocksy' )
|
| 214 |
),
|
| 215 |
function ($post) {
|
| 216 |
-
$values = get_post_meta($post->ID, '
|
| 217 |
|
| 218 |
if (empty($values)) {
|
| 219 |
$values = [[]];
|
|
@@ -235,7 +241,7 @@ class BlocksyExtensionAffiliateMarketing {
|
|
| 235 |
'options' => $options,
|
| 236 |
'values' => $values[0],
|
| 237 |
'id_prefix' => 'ct-post-meta-options',
|
| 238 |
-
'name_prefix' => '
|
| 239 |
'attr' => [
|
| 240 |
'class' => 'ct-meta-box',
|
| 241 |
'data-disable-reverse-button' => 'yes'
|
|
@@ -245,7 +251,7 @@ class BlocksyExtensionAffiliateMarketing {
|
|
| 245 |
|
| 246 |
wp_nonce_field(basename(__FILE__), 'blocksy_settings_meta_box');
|
| 247 |
},
|
| 248 |
-
'blc-
|
| 249 |
);
|
| 250 |
}
|
| 251 |
|
|
@@ -265,17 +271,46 @@ class BlocksyExtensionAffiliateMarketing {
|
|
| 265 |
|
| 266 |
$values = [];
|
| 267 |
|
| 268 |
-
if (isset($_POST['
|
| 269 |
$values = json_decode(
|
| 270 |
-
wp_unslash($_POST['
|
| 271 |
true
|
| 272 |
);
|
| 273 |
}
|
| 274 |
|
| 275 |
update_post_meta(
|
| 276 |
$post_id,
|
| 277 |
-
'
|
| 278 |
$values
|
| 279 |
);
|
| 280 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 281 |
}
|
| 2 |
|
| 3 |
require_once dirname(__FILE__) . '/helpers.php';
|
| 4 |
|
| 5 |
+
class BlocksyExtensionProductReviews {
|
| 6 |
public function __construct() {
|
| 7 |
add_filter(
|
| 8 |
'blocksy:options:cpt:page-title-args',
|
| 9 |
function ($args, $cpt) {
|
| 10 |
+
if ($cpt === 'blc-product-review') {
|
| 11 |
$args['has_hero_type'] = false;
|
| 12 |
}
|
| 13 |
|
| 16 |
10, 2
|
| 17 |
);
|
| 18 |
|
| 19 |
+
add_action('init', [$this, 'declare_cpt']);
|
|
|
|
|
|
|
| 20 |
|
| 21 |
add_action('load-post.php', [$this, 'init_metabox']);
|
| 22 |
add_action('load-post-new.php', [$this, 'init_metabox']);
|
| 23 |
|
| 24 |
add_filter('blocksy:single:has-default-hero', function ($def) {
|
| 25 |
+
if (! is_singular('blc-product-review')) {
|
| 26 |
return $def;
|
| 27 |
}
|
| 28 |
|
| 32 |
add_filter(
|
| 33 |
'blocksy:hero:type-1:default-alignment',
|
| 34 |
function ($default, $prefix) {
|
| 35 |
+
if ($prefix === 'blc-product-review_single') {
|
| 36 |
return 'center';
|
| 37 |
}
|
| 38 |
|
| 42 |
);
|
| 43 |
|
| 44 |
add_filter('blocksy:archive:render-card-layers', function ($layers, $prefix) {
|
| 45 |
+
if ($prefix !== 'blc-product-review_archive') {
|
| 46 |
return $layers;
|
| 47 |
}
|
| 48 |
|
| 49 |
+
$layers['overall_score'] = blocksy_get_product_review_overall_score();
|
| 50 |
|
| 51 |
return $layers;
|
| 52 |
}, 10, 2);
|
| 53 |
|
| 54 |
add_filter('blocksy:posts-listing:archive-order:default', function ($default, $prefix) {
|
| 55 |
+
if ($prefix !== 'blc-product-review_archive') {
|
| 56 |
return $default;
|
| 57 |
}
|
| 58 |
|
| 65 |
}, 10, 2);
|
| 66 |
|
| 67 |
add_filter('blocksy:options:posts-listing-archive-order', function ($option, $prefix) {
|
| 68 |
+
if ($prefix !== 'blc-product-review_archive') {
|
| 69 |
return $option;
|
| 70 |
}
|
| 71 |
|
| 96 |
add_action(
|
| 97 |
'blocksy:content:top',
|
| 98 |
function () {
|
| 99 |
+
if (! is_singular('blc-product-review')) {
|
| 100 |
return;
|
| 101 |
}
|
| 102 |
|
| 120 |
}
|
| 121 |
|
| 122 |
wp_enqueue_style(
|
| 123 |
+
'blocksy-ext-product-reviews-styles',
|
| 124 |
+
BLOCKSY_URL . 'framework/extensions/product-reviews/static/bundle/main.css',
|
| 125 |
['ct-main-styles'],
|
| 126 |
$data['Version']
|
| 127 |
);
|
| 134 |
}
|
| 135 |
|
| 136 |
public function declare_cpt() {
|
| 137 |
+
$settings = $this->get_settings();
|
| 138 |
+
|
| 139 |
+
register_post_type('blc-product-review', [
|
| 140 |
+
'label' => __('Product Reviews', 'blc'),
|
| 141 |
+
'description' => __( 'Product Reviews', 'blc'),
|
| 142 |
+
'menu_icon' => 'dashicons-star-filled',
|
| 143 |
'labels' => [
|
| 144 |
+
'name' => __('Product Reviews', 'blc'),
|
| 145 |
+
'singular_name' => __('Product Review', 'blc'),
|
| 146 |
+
'menu_name' => __('Product Reviews', 'blc'),
|
| 147 |
+
'parent_item_colon' => __('Parent Product Review', 'blc'),
|
| 148 |
+
'all_items' => __('All Reviews', 'blc'),
|
| 149 |
+
'view_item' => __('View Product Review', 'blc'),
|
| 150 |
+
'add_new_item' => __('Add New Product Review', 'blc'),
|
| 151 |
+
'add_new' => __('Add New Review', 'blc'),
|
| 152 |
+
'edit_item' => __('Edit Product Review', 'blc'),
|
| 153 |
+
'update_item' => __('Update Product Review', 'blc'),
|
| 154 |
+
'search_items' => __('Search Product Review', 'blc'),
|
| 155 |
'not_found' => __('Not Found', 'blc'),
|
| 156 |
'not_found_in_trash' => __('Not found in Trash', 'blc')
|
| 157 |
],
|
| 173 |
'exclude_from_search' => false,
|
| 174 |
// 'taxonomies' => array('post_tag'),
|
| 175 |
'publicly_queryable' => true,
|
| 176 |
+
'capability_type' => 'page',
|
| 177 |
+
'rewrite' => [
|
| 178 |
+
'slug' => $settings['single_slug']
|
| 179 |
+
],
|
| 180 |
]);
|
| 181 |
|
| 182 |
register_taxonomy(
|
| 183 |
+
'blc-product-review-categories',
|
| 184 |
[
|
| 185 |
+
'blc-product-review'
|
| 186 |
],
|
| 187 |
[
|
| 188 |
'hierarchical' => true,
|
| 202 |
'show_ui' => true,
|
| 203 |
'show_admin_column' => true,
|
| 204 |
'query_var' => true,
|
| 205 |
+
'show_in_rest' => true,
|
| 206 |
+
'rewrite' => [
|
| 207 |
+
'slug' => $settings['category_slug']
|
| 208 |
+
],
|
| 209 |
]
|
| 210 |
);
|
| 211 |
}
|
| 219 |
__( 'Blocksy', 'blocksy' )
|
| 220 |
),
|
| 221 |
function ($post) {
|
| 222 |
+
$values = get_post_meta($post->ID, 'blocksy_product_review_options');
|
| 223 |
|
| 224 |
if (empty($values)) {
|
| 225 |
$values = [[]];
|
| 241 |
'options' => $options,
|
| 242 |
'values' => $values[0],
|
| 243 |
'id_prefix' => 'ct-post-meta-options',
|
| 244 |
+
'name_prefix' => 'blocksy_product_review_options',
|
| 245 |
'attr' => [
|
| 246 |
'class' => 'ct-meta-box',
|
| 247 |
'data-disable-reverse-button' => 'yes'
|
| 251 |
|
| 252 |
wp_nonce_field(basename(__FILE__), 'blocksy_settings_meta_box');
|
| 253 |
},
|
| 254 |
+
'blc-product-review', 'normal', 'default'
|
| 255 |
);
|
| 256 |
}
|
| 257 |
|
| 271 |
|
| 272 |
$values = [];
|
| 273 |
|
| 274 |
+
if (isset($_POST['blocksy_product_review_options'][blocksy_post_name()])) {
|
| 275 |
$values = json_decode(
|
| 276 |
+
wp_unslash($_POST['blocksy_product_review_options'][blocksy_post_name()]),
|
| 277 |
true
|
| 278 |
);
|
| 279 |
}
|
| 280 |
|
| 281 |
update_post_meta(
|
| 282 |
$post_id,
|
| 283 |
+
'blocksy_product_review_options',
|
| 284 |
$values
|
| 285 |
);
|
| 286 |
}
|
| 287 |
+
|
| 288 |
+
public function get_settings() {
|
| 289 |
+
if (wp_doing_ajax()) {
|
| 290 |
+
$maybe_input = json_decode(file_get_contents('php://input'), true);
|
| 291 |
+
|
| 292 |
+
if (
|
| 293 |
+
$maybe_input
|
| 294 |
+
&&
|
| 295 |
+
isset($maybe_input['extension'])
|
| 296 |
+
&&
|
| 297 |
+
$maybe_input['extension'] === 'product-reviews'
|
| 298 |
+
&&
|
| 299 |
+
isset($maybe_input['extAction'])
|
| 300 |
+
&&
|
| 301 |
+
$maybe_input['extAction']['type'] === 'persist'
|
| 302 |
+
) {
|
| 303 |
+
return $maybe_input['extAction']['settings'];
|
| 304 |
+
}
|
| 305 |
+
}
|
| 306 |
+
|
| 307 |
+
return get_option('blocksy_ext_product_reviews_settings', [
|
| 308 |
+
'single_slug' => 'product-review',
|
| 309 |
+
'category_slug' => 'product-review-category',
|
| 310 |
+
]);
|
| 311 |
+
}
|
| 312 |
+
|
| 313 |
+
public function set_settings($value) {
|
| 314 |
+
update_option('blocksy_ext_product_reviews_settings', $value);
|
| 315 |
+
}
|
| 316 |
}
|
framework/extensions/{affiliate-marketing → product-reviews}/helpers.php
RENAMED
|
@@ -1,13 +1,13 @@
|
|
| 1 |
<?php
|
| 2 |
|
| 3 |
-
function
|
| 4 |
if (! $post_id) {
|
| 5 |
global $post;
|
| 6 |
$post_id = $post->ID;
|
| 7 |
}
|
| 8 |
|
| 9 |
$atts = blocksy_get_post_options($post_id, [
|
| 10 |
-
'meta_id' => '
|
| 11 |
]);
|
| 12 |
|
| 13 |
$scores = blocksy_akg('scores', $atts, []);
|
| 1 |
<?php
|
| 2 |
|
| 3 |
+
function blocksy_get_product_review_overall_score($post_id = null) {
|
| 4 |
if (! $post_id) {
|
| 5 |
global $post;
|
| 6 |
$post_id = $post->ID;
|
| 7 |
}
|
| 8 |
|
| 9 |
$atts = blocksy_get_post_options($post_id, [
|
| 10 |
+
'meta_id' => 'blocksy_product_review_options'
|
| 11 |
]);
|
| 12 |
|
| 13 |
$scores = blocksy_akg('scores', $atts, []);
|
framework/extensions/{affiliate-marketing → product-reviews}/metabox.php
RENAMED
|
File without changes
|
framework/extensions/product-reviews/pre-boot.php
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
class BlocksyExtensionProductReviewsPreBoot {
|
| 4 |
+
public function __construct() {
|
| 5 |
+
add_action('admin_enqueue_scripts', function () {
|
| 6 |
+
if (! function_exists('get_plugin_data')) {
|
| 7 |
+
require_once(ABSPATH . 'wp-admin/includes/plugin.php');
|
| 8 |
+
}
|
| 9 |
+
|
| 10 |
+
$data = get_plugin_data(BLOCKSY__FILE__);
|
| 11 |
+
|
| 12 |
+
if (! function_exists('blocksy_is_dashboard_page')) return;
|
| 13 |
+
if (! blocksy_is_dashboard_page()) return;
|
| 14 |
+
|
| 15 |
+
wp_enqueue_script(
|
| 16 |
+
'blocksy-ext-product-reviews-admin-dashboard-scripts',
|
| 17 |
+
BLOCKSY_URL . 'framework/extensions/product-reviews/static/bundle/dashboard.js',
|
| 18 |
+
['ct-options-scripts'],
|
| 19 |
+
$data['Version']
|
| 20 |
+
);
|
| 21 |
+
|
| 22 |
+
wp_enqueue_style(
|
| 23 |
+
'blocksy-ext-product-reviews-admin-dashboard-styles',
|
| 24 |
+
BLOCKSY_URL . 'framework/extensions/product-reviews/static/bundle/main-admin.css',
|
| 25 |
+
[],
|
| 26 |
+
$data['Version']
|
| 27 |
+
);
|
| 28 |
+
});
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
public function ext_action($payload) {
|
| 32 |
+
$ext = \Blocksy\Plugin::instance()->extensions->get('product-reviews');
|
| 33 |
+
|
| 34 |
+
if (
|
| 35 |
+
! isset($payload['type'])
|
| 36 |
+
||
|
| 37 |
+
! isset($payload['settings'])
|
| 38 |
+
||
|
| 39 |
+
$payload['type'] !== 'persist'
|
| 40 |
+
||
|
| 41 |
+
! $ext
|
| 42 |
+
) {
|
| 43 |
+
return;
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
$ext->set_settings($payload['settings']);
|
| 47 |
+
|
| 48 |
+
global $wp_rewrite;
|
| 49 |
+
$wp_rewrite->flush_rules();
|
| 50 |
+
|
| 51 |
+
return $this->ext_data([
|
| 52 |
+
'settings' => $payload['settings']
|
| 53 |
+
]);
|
| 54 |
+
}
|
| 55 |
+
|
| 56 |
+
public function ext_data($args = []) {
|
| 57 |
+
return wp_parse_args($args, [
|
| 58 |
+
'settings' => get_option('blocksy_ext_product_reviews_settings', [
|
| 59 |
+
'single_slug' => 'product-review',
|
| 60 |
+
'category_slug' => 'product-review-category',
|
| 61 |
+
])
|
| 62 |
+
]);
|
| 63 |
+
}
|
| 64 |
+
}
|
| 65 |
+
|
framework/extensions/product-reviews/static/bundle/dashboard.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=12)}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.wp.i18n},function(e,t,n){var r;
|
| 2 |
+
/*!
|
| 3 |
+
Copyright (c) 2017 Jed Watson.
|
| 4 |
+
Licensed under the MIT License (MIT), see
|
| 5 |
+
http://jedwatson.github.io/classnames
|
| 6 |
+
*/!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)&&r.length){var c=a.apply(null,r);c&&e.push(c)}else if("object"===o)for(var i in r)n.call(r,i)&&r[i]&&e.push(i)}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()},function(e,t){e.exports=window.blocksyOptions},function(e,t){e.exports=ctEvents},function(e,t){e.exports=window.React},function(e,t,n){var r,a,o=n(10),c=n(11),i=(a=[],{activateTrap:function(e){if(a.length>0){var t=a[a.length-1];t!==e&&t.pause()}var n=a.indexOf(e);-1===n||a.splice(n,1),a.push(e)},deactivateTrap:function(e){var t=a.indexOf(e);-1!==t&&a.splice(t,1),a.length>0&&a[a.length-1].unpause()}});function u(e){return setTimeout(e,0)}e.exports=function(e,t){var n=document,a="string"==typeof e?n.querySelector(e):e,s=c({returnFocusOnDeactivate:!0,escapeDeactivates:!0},t),l={firstTabbableNode:null,lastTabbableNode:null,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1},f={activate:function(e){if(l.active)return;j(),l.active=!0,l.paused=!1,l.nodeFocusedBeforeActivation=n.activeElement;var t=e&&e.onActivate?e.onActivate:s.onActivate;t&&t();return d(),f},deactivate:p,pause:function(){if(l.paused||!l.active)return;l.paused=!0,m()},unpause:function(){if(!l.paused||!l.active)return;l.paused=!1,j(),d()}};return f;function p(e){if(l.active){clearTimeout(r),m(),l.active=!1,l.paused=!1,i.deactivateTrap(f);var t=e&&void 0!==e.onDeactivate?e.onDeactivate:s.onDeactivate;return t&&t(),(e&&void 0!==e.returnFocus?e.returnFocus:s.returnFocusOnDeactivate)&&u((function(){var e;w((e=l.nodeFocusedBeforeActivation,v("setReturnFocus")||e))})),f}}function d(){if(l.active)return i.activateTrap(f),r=u((function(){w(b())})),n.addEventListener("focusin",h,!0),n.addEventListener("mousedown",y,{capture:!0,passive:!1}),n.addEventListener("touchstart",y,{capture:!0,passive:!1}),n.addEventListener("click",O,{capture:!0,passive:!1}),n.addEventListener("keydown",g,{capture:!0,passive:!1}),f}function m(){if(l.active)return n.removeEventListener("focusin",h,!0),n.removeEventListener("mousedown",y,!0),n.removeEventListener("touchstart",y,!0),n.removeEventListener("click",O,!0),n.removeEventListener("keydown",g,!0),f}function v(e){var t=s[e],r=t;if(!t)return null;if("string"==typeof t&&!(r=n.querySelector(t)))throw new Error("`"+e+"` refers to no known node");if("function"==typeof t&&!(r=t()))throw new Error("`"+e+"` did not return a node");return r}function b(){var e;if(!(e=null!==v("initialFocus")?v("initialFocus"):a.contains(n.activeElement)?n.activeElement:l.firstTabbableNode||v("fallbackFocus")))throw new Error("Your focus-trap needs to have at least one focusable element");return e}function y(e){a.contains(e.target)||(s.clickOutsideDeactivates?p({returnFocus:!o.isFocusable(e.target)}):s.allowOutsideClick&&s.allowOutsideClick(e)||e.preventDefault())}function h(e){a.contains(e.target)||e.target instanceof Document||(e.stopImmediatePropagation(),w(l.mostRecentlyFocusedNode||b()))}function g(e){if(!1!==s.escapeDeactivates&&function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e))return e.preventDefault(),void p();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){if(j(),e.shiftKey&&e.target===l.firstTabbableNode)return e.preventDefault(),void w(l.lastTabbableNode);if(!e.shiftKey&&e.target===l.lastTabbableNode)e.preventDefault(),w(l.firstTabbableNode)}(e)}function O(e){s.clickOutsideDeactivates||a.contains(e.target)||s.allowOutsideClick&&s.allowOutsideClick(e)||(e.preventDefault(),e.stopImmediatePropagation())}function j(){var e=o(a);l.firstTabbableNode=e[0]||b(),l.lastTabbableNode=e[e.length-1]||b()}function w(e){e!==n.activeElement&&(e&&e.focus?(e.focus(),l.mostRecentlyFocusedNode=e,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(e)&&e.select()):w(b()))}}},function(e,t,n){e.exports=n(8)()},function(e,t,n){"use strict";var r=n(9);function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,o,c){if(c!==r){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:a};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){var n=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],r=n.join(","),a="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;function o(e,t){t=t||{};var n,o,i,u=[],f=[],p=e.querySelectorAll(r);for(t.includeContainer&&a.call(e,r)&&(p=Array.prototype.slice.apply(p)).unshift(e),n=0;n<p.length;n++)c(o=p[n])&&(0===(i=s(o))?u.push(o):f.push({documentOrder:n,tabIndex:i,node:o}));return f.sort(l).map((function(e){return e.node})).concat(u)}function c(e){return!(!i(e)||function(e){return function(e){return f(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t=function(e){for(var t=0;t<e.length;t++)if(e[t].checked)return e[t]}(e.ownerDocument.querySelectorAll('input[type="radio"][name="'+e.name+'"]'));return!t||t===e}(e)}(e)||s(e)<0)}function i(e){return!(e.disabled||function(e){return f(e)&&"hidden"===e.type}(e)||function(e){return null===e.offsetParent||"hidden"===getComputedStyle(e).visibility}(e))}o.isTabbable=function(e){if(!e)throw new Error("No node provided");return!1!==a.call(e,r)&&c(e)},o.isFocusable=function(e){if(!e)throw new Error("No node provided");return!1!==a.call(e,u)&&i(e)};var u=n.concat("iframe").join(",");function s(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?function(e){return"true"===e.contentEditable}(e)?0:e.tabIndex:t}function l(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex}function f(e){return"INPUT"===e.tagName}e.exports=o},function(e,t){e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var a in r)n.call(r,a)&&(e[a]=r[a])}return e};var n=Object.prototype.hasOwnProperty},function(e,t,n){"use strict";n.r(t);var r=n(0),a=n(1),o=n(2),c=n.n(o),i=n(4),u=n.n(i),s=n(3),l=n(5),f=n.n(l);n(7);function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var m=function(e){e.initialState,e.getInitialState,e.refs,e.getRefs,e.didMount,e.didUpdate,e.willUnmount,e.getSnapshotBeforeUpdate,e.shouldUpdate,e.render;return function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["initialState","getInitialState","refs","getRefs","didMount","didUpdate","willUnmount","getSnapshotBeforeUpdate","shouldUpdate","render"])},v=function(e){function t(){var n,r;p(this,t);for(var a=arguments.length,o=Array(a),c=0;c<a;c++)o[c]=arguments[c];return n=r=d(this,e.call.apply(e,[this].concat(o))),b.call(r),d(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getArgs=function(){var e=this.state,t=this.props,n=this._setState,r=this._forceUpdate,a=this._refs;return{state:e,props:m(t),refs:a,setState:n,forceUpdate:r}},t.prototype.componentDidMount=function(){this.props.didMount&&this.props.didMount(this.getArgs())},t.prototype.shouldComponentUpdate=function(e,t){return!this.props.shouldUpdate||this.props.shouldUpdate({props:this.props,state:this.state,nextProps:m(e),nextState:t})},t.prototype.componentWillUnmount=function(){this.props.willUnmount&&this.props.willUnmount({state:this.state,props:m(this.props),refs:this._refs})},t.prototype.componentDidUpdate=function(e,t,n){this.props.didUpdate&&this.props.didUpdate(Object.assign(this.getArgs(),{prevProps:m(e),prevState:t}),n)},t.prototype.getSnapshotBeforeUpdate=function(e,t){return this.props.getSnapshotBeforeUpdate?this.props.getSnapshotBeforeUpdate(Object.assign(this.getArgs(),{prevProps:m(e),prevState:t})):null},t.prototype.render=function(){var e=this.props,t=e.children,n=e.render;return n?n(this.getArgs()):"function"==typeof t?t(this.getArgs()):t||null},t}(f.a.Component);v.defaultProps={getInitialState:function(){},getRefs:function(){return{}}};var b=function(){var e=this;this.state=this.props.initialState||this.props.getInitialState(this.props),this._refs=this.props.refs||this.props.getRefs(this.getArgs()),this._setState=function(){return e.setState.apply(e,arguments)},this._forceUpdate=function(){return e.forceUpdate.apply(e,arguments)}},y=v,h=function(e){var t=e.children,n=e.container,a=void 0===n?document.body:n,o=e.type,c=void 0===o?"reach-portal":o;return Object(r.createElement)(y,{getRefs:function(){return{node:null}},didMount:function(e){var t=e.refs,n=e.forceUpdate,r=a.hasOwnProperty("current")?a.current:a;t.node=document.createElement(c),r.appendChild(t.node),n()},willUnmount:function(e){var t=e.refs.node,n=a.hasOwnProperty("current")?a.current:a;n&&n.removeChild(t)},render:function(e){var n=e.refs.node;return n?Object(r.createPortal)(t,n):null}})};var g=function(e,t){return function(n){if(e&&e(n),!n.defaultPrevented)return t(n)}},O=n(6),j=n.n(O);function w(){return(w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function E(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var S=function(){},x=function(){},_=function(e,t){var n,r,a;e.disposeAriaHider=(n=e.overlayNode,r=[],a=[],Array.prototype.forEach.call(document.querySelectorAll("body > *"),(function(e){if(e!==n.parentNode){var t=e.getAttribute("aria-hidden");null!==t&&"false"!==t||(r.push(t),a.push(e),e.setAttribute("aria-hidden","true"))}})),function(){a.forEach((function(e,t){var n=r[t];null===n?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",n)}))}),e.trap=j()(e.overlayNode,{initialFocus:t?function(){return t.current}:void 0,fallbackFocus:e.contentNode,escapeDeactivates:!1,clickOutsideDeactivates:!1})},A=function(e){var t=e.refs;t.trap.deactivate(),t.disposeAriaHider()},z=React.createContext(),C=React.forwardRef((function(e,t){var n=e.container,a=e.isOpen,o=void 0===a||a,c=e.onDismiss,i=void 0===c?S:c,u=e.initialFocusRef,s=e.onClick,l=e.onKeyDown,f=E(e,["container","isOpen","onDismiss","initialFocusRef","onClick","onKeyDown"]);return Object(r.createElement)(y,{didMount:x},o?Object(r.createElement)(h,{container:n,"data-reach-dialog-wrapper":!0},Object(r.createElement)(y,{refs:{overlayNode:null,contentNode:null},didMount:function(e){var t=e.refs;_(t,u)},willUnmount:A},(function(e){var n=e.refs;return Object(r.createElement)(z.Provider,{value:function(e){return n.contentNode=e}},Object(r.createElement)("div",w({"data-reach-dialog-overlay":!0,onClick:g(s,(function(e){e.stopPropagation(),i()})),onKeyDown:g(l,(function(e){"Escape"===e.key&&(e.stopPropagation(),i())})),ref:function(e){n.overlayNode=e,t&&t(e)}},f)))}))):null)}));C.propTypes={initialFocusRef:function(){}};var N=function(e){return e.stopPropagation()},P=React.forwardRef((function(e,t){var n=e.onClick,a=(e.onKeyDown,E(e,["onClick","onKeyDown"]));return Object(r.createElement)(z.Consumer,null,(function(e){return Object(r.createElement)("div",w({"aria-modal":"true","data-reach-dialog-content":!0,tabIndex:"-1",onClick:g(n,N),ref:function(n){e(n),t&&t(n)}},a))}))})),k=function(e){return!!e},D=function(e){var t=e.items,n=e.isVisible,a=void 0===n?k:n,o=e.render,i=e.className,u=e.onDismiss;return Object(r.createElement)(s.Transition,{items:t,onStart:function(){return document.body.classList[a(t)?"add":"remove"]("ct-dashboard-overlay-open")},config:{duration:200},from:{opacity:0,y:-10},enter:{opacity:1,y:0},leave:{opacity:0,y:10}},(function(e){return a(e)&&function(t){return Object(r.createElement)(C,{style:{opacity:t.opacity},container:document.querySelector("#wpbody"),onDismiss:function(){return u()}},Object(r.createElement)(P,{className:c()("ct-admin-modal",i),style:{transform:"translate3d(0px, ".concat(t.y,"px, 0px)")}},Object(r.createElement)("button",{className:"close-button",onClick:function(){return u()}},"×"),o(e,t)))}}))};function M(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 T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach((function(t){U(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function U(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var c,i=e[Symbol.iterator]();!(r=(c=i.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(a)throw o}}return n}(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}var F=function(e){var t=e.extsSyncLoading,n=e.extensionData,o=e.onExtsSync,i=I(Object(r.useState)(!1),2),u=i[0],l=i[1],f=I(Object(r.useState)(null),2),p=f[0],d=f[1];return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("button",{className:"ct-button ct-config-btn","data-button":"white",onClick:function(){l(!0),d(n.settings)}},Object(a.__)("Configure","blc")),Object(r.createElement)(D,{items:u,onDismiss:function(){return l(!1)},className:"ct-product-reviews-settings-modal",render:function(){return Object(r.createElement)("div",{className:c()("ct-modal-content")},Object(r.createElement)("h2",null,Object(a.__)("Product Reviews Settings","blc")),Object(r.createElement)("p",{className:"ct-modal-description"},Object(a.__)("Configure the slugs for single and category pages of the product review custom post type.","blc")),Object(r.createElement)("div",{className:"ct-controls-group"},Object(r.createElement)("section",{"data-columns":"medium:2"},Object(r.createElement)(s.OptionsPanel,{onChange:function(e,t){return d((function(n){return T(T({},n),{},U({},e,t))}))},options:{single_slug:{type:"text",value:"",label:Object(a.__)("Single Slug","blc")},category_slug:{type:"text",value:"",label:Object(a.__)("Category Slug","blc")}},value:p||{},hasRevertButton:!1}))),Object(r.createElement)("div",{className:"ct-modal-actions has-divider"},Object(r.createElement)("button",{className:"button-primary",disabled:t||!p,onClick:function(e){e.preventDefault(),p&&(o({extAction:{type:"persist",settings:p}}),l(!1))}},t?Object(r.createElement)("svg",{width:"15",height:"15",viewBox:"0 0 100 100"},Object(r.createElement)("g",{transform:"translate(50,50)"},Object(r.createElement)("g",{transform:"scale(1)"},Object(r.createElement)("circle",{cx:"0",cy:"0",r:"50",fill:"#687c93"}),Object(r.createElement)("circle",{cx:"0",cy:"-26",r:"12",fill:"#ffffff",transform:"rotate(161.634)"},Object(r.createElement)("animateTransform",{attributeName:"transform",type:"rotate",calcMode:"linear",values:"0 0 0;360 0 0",keyTimes:"0;1",dur:"1s",begin:"0s",repeatCount:"indefinite"}))))):Object(a.__)("Save","blc"))))}}))};function L(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var c,i=e[Symbol.iterator]();!(r=(c=i.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(a)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return B(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return B(e,t)}(e,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 B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var q=function(e){var t=L(Object(r.useState)(!1),2),n=t[0],a=t[1];return[function(){return a(!0)},Object(r.createElement)(D,{items:n,onDismiss:function(){return a(!1)},render:function(){return Object(r.createElement)("div",{className:"ct-modal-content",dangerouslySetInnerHTML:{__html:e.readme}})}})]};function K(e,t,n,r,a,o,c){try{var i=e[o](c),u=i.value}catch(e){return void n(e)}i.done?t(u):Promise.resolve(u).then(r,a)}function V(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function c(e){K(o,r,a,c,i,"next",e)}function i(e){K(o,r,a,c,i,"throw",e)}c(void 0)}))}}function H(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var c,i=e[Symbol.iterator]();!(r=(c=i.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(a)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return W(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 W(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 W(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 $=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=Object(r.useState)(!1),o=H(n,2),c=o[0],i=o[1],u=Object(r.useState)(!1),s=H(u,2),l=s[0],f=s[1],p=ctDashboardLocalizations.plugin_data.is_pro,d=function(){var n=V(regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(p||!e.config.pro){n.next=3;break}return f(!0),n.abrupt("return");case 3:return(r=new FormData).append("ext",e.name),r.append("action",e.__object?"blocksy_extension_deactivate":"blocksy_extension_activate"),i(!0),n.prev=7,n.next=10,fetch(ctDashboardLocalizations.ajax_url,{method:"POST",body:r});case 10:e.config.require_refresh&&location.reload(),t(),n.next=16;break;case 14:n.prev=14,n.t0=n.catch(7);case 16:i(!1);case 17:case"end":return n.stop()}}),n,null,[[7,14]])})));return function(){return n.apply(this,arguments)}}();return[c,d,!p&&e.config.pro?Object(r.createElement)(D,{items:l,onDismiss:function(){return f(!1)},render:function(){return Object(r.createElement)("div",{className:"ct-activation-action-modal"},Object(r.createElement)("svg",{viewBox:"0 0 59.99 60"},Object(r.createElement)("path",{d:"M14.41 43.65c0 .13.08.27.11.41a5.91 5.91 0 010 2.37c-1.78 1.14-3.2 1.19-4.34.68-2.83-1.27-3.81-6-3.81-6s.38-.08 1-.15a6.08 6.08 0 012.64.91 4.17 4.17 0 01-.22-1 6.47 6.47 0 013.2 1 8.14 8.14 0 01.35-5 12.74 12.74 0 01.65-1.62s8.51 4.32 3 9.27a5.81 5.81 0 01-2.34-.68 2 2 0 01-.24-.19zM7.17 15.93q.2.22.42.45a5.74 5.74 0 002.68-.74 5.51 5.51 0 00-.28 2.76 6.79 6.79 0 001.47.81c5 1.94 6.91-5.79 6.91-5.79a13.35 13.35 0 00-4.5-.26 5.64 5.64 0 00-2.15.72 4.42 4.42 0 00.23-.81c.51-2.62-.94-5.82-.94-5.82a13.76 13.76 0 00-2.44 1.51c-2 1.51-4 4-1.53 7a.65.65 0 00.13.17zm.93 16.56a6.7 6.7 0 00.84.76c7.28-1.28 2.36-9.46 2.36-9.46a14.28 14.28 0 00-2.18 1.69 7.39 7.39 0 00-2.13 3.35v-1.19a5.49 5.49 0 00-1.27-1.71 12.75 12.75 0 00-3.94-2.44 13.32 13.32 0 00-.39 1.37c-.49 2-.91 5.69 1.85 7a4.83 4.83 0 001.75.46 8.25 8.25 0 00.86 0 6.45 6.45 0 001.14-1.76 4.41 4.41 0 001.11 1.93zM18.79 9.27c6 1.85 8.82-7.61 8.82-7.61a17.44 17.44 0 00-6.1-.58c-2.92.35-5.71 1.92-5.33 6.76a8.42 8.42 0 002.61 1.43zM49.6 40.93a6.08 6.08 0 00-2.64.91 4.21 4.21 0 00.22-1 11.57 11.57 0 00-1.19-5.59 13.88 13.88 0 00-2.36 1.58c-1.87 1.58-3.82 4.16-1.33 7 .06.08.13.15.2.23s.29.3.46.45a5.69 5.69 0 002.65-.86 5.82 5.82 0 00-.14 2.78 6.75 6.75 0 001.34.68c5.16 1.94 6.81-6 6.81-6a13.28 13.28 0 00-4.02-.18zm-6.49-27.77a10.69 10.69 0 00-1.5.26s1.15 4.53 3.91 5.79c1.18.54 2.66.47 4.47-.81a5.88 5.88 0 00-.16-2.47 1.42 1.42 0 00-.1-.29l.23.13a6 6 0 002.45.61c5.24-5.19-3.42-9.13-3.42-9.13a13.57 13.57 0 00-.54 1.51 8.37 8.37 0 00-.17 5.12 6.62 6.62 0 00-3.29-.81 12.09 12.09 0 00-1.88.09zm15.13 10.33a13.53 13.53 0 00-2.61 1.37 7.1 7.1 0 00-2.64 2.78v1.18a6.69 6.69 0 00-1.73-2.89 13.85 13.85 0 00-2.62-2.14 13.17 13.17 0 00-.82 1.69c-.83 2-1.65 5.4 1 7a6.4 6.4 0 002.16.76 7.35 7.35 0 001-.93 4.26 4.26 0 001-1.76 6.06 6.06 0 00.76 1.3 6.25 6.25 0 00.4.5c7.43.09 4.1-8.86 4.1-8.86zM38.19 9.27c1.55.52 3.41.27 5.61-1.43.51-6.56-4.81-7.11-8.33-6.76a19.24 19.24 0 00-3.1.58S34.25 8 38.19 9.27zM41.99 54h-3v-6a2 2 0 00-2-2h-14a2 2 0 00-2 2v6h-3a2 2 0 00-2 2v3h28v-3a2 2 0 00-2-2zM25.76 21.65l-5.77.84a1 1 0 00-.81.68 1 1 0 00.26 1l4.19 4.11a1 1 0 01.28.88l-.92 5.44-.07.4a1 1 0 00.4 1 1 1 0 001.06.07l3.55-1.88 1.6-.85a1 1 0 01.94 0l2.4 1.27 2.75 1.46a1 1 0 001.05-.07 1 1 0 00.4-1l-1-5.81a1 1 0 01.28-.88l4.19-4.11a1 1 0 00.26-1 1 1 0 00-.81-.68l-5.78-.84a1 1 0 01-.75-.55l-2.57-5.3a1 1 0 00-1.8 0l-1.17 2.39-1.41 2.88a1 1 0 01-.75.55z",fill:"#ffa800"}),Object(r.createElement)("path",{d:"M19.99 22.49l5.78-.84a1 1 0 00.75-.55l1.41-2.88 1.41 2.88a1 1 0 00.75.55l5.78.84a1 1 0 01.56 1.71l-4.19 4.11a1 1 0 00-.29.88l.92 5.4-2.4-1.27a1 1 0 00-.94 0l-1.6.85-1.6-.85a1 1 0 00-.93 0l-2.41 1.28.92-5.41a1 1 0 00-.28-.88l-4.2-4.11a1 1 0 01-.26-1 1 1 0 01.82-.71zm-13 8.07a4.41 4.41 0 001.14 1.93c2.67-1.61 1.85-5 1-7a7.39 7.39 0 00-2.14 3.34 3.49 3.49 0 000 1.7zm11.8-21.29c3.94-1.27 5.82-7.61 5.82-7.61a19.24 19.24 0 00-3.1-.58c-2.92.35-5.71 1.92-5.33 6.76a8.42 8.42 0 002.61 1.43zm-7.31 9.94c2.76-1.26 3.91-5.79 3.91-5.79a10.69 10.69 0 00-1.5-.26 12.35 12.35 0 00-1.9-.09 4.42 4.42 0 01-.23.81 3.48 3.48 0 00-1.46 1.75 5.51 5.51 0 00-.31 2.77 6.79 6.79 0 001.49.81zm37.4 13.28a4.41 4.41 0 001.11-1.93 3.57 3.57 0 000-1.72 7.31 7.31 0 00-2.17-3.34c-.83 2.02-1.61 5.38 1.06 6.99zM45.5 19.21a6.79 6.79 0 001.49-.81 5.51 5.51 0 00-.26-2.76 3.53 3.53 0 00-1.46-1.75 5.79 5.79 0 00-2.13-.72 10.69 10.69 0 00-1.5.26s1.1 4.57 3.86 5.78zm-7.31-9.94a8.42 8.42 0 002.61-1.43c.38-4.84-2.41-6.41-5.33-6.76a19.24 19.24 0 00-3.1.58S34.25 8 38.19 9.27zm8.8 32.57l-1.4 1.8a5.82 5.82 0 00-.14 2.78 6.75 6.75 0 001.34.68c2.83-1.27 3.81-6 3.81-6s-.38-.08-1-.15a6.08 6.08 0 00-2.61.89zm1.42-33.08a8.37 8.37 0 00-.17 5.12l1.46 1.75a1.42 1.42 0 01.1.29.65.65 0 00.13-.16c2.48-2.97.44-5.49-1.52-7zm-6.15 35.08a1.92 1.92 0 00.31-.18 3.55 3.55 0 001.42-1.79 8.1 8.1 0 00-.35-5c-1.92 1.54-3.87 4.13-1.38 6.97zm13.37-19a7.1 7.1 0 00-2.64 2.8v2.91a6.06 6.06 0 00.76 1.3c2.79-1.3 2.37-4.98 1.88-6.99zM11.41 43.65l-1.34-1.75a6.08 6.08 0 00-2.64-.91c-.6.07-1 .15-1 .15s1 4.77 3.81 6a6.75 6.75 0 001.34-.68 5.82 5.82 0 00-.14-2.78zM38.99 54h-3v-6a2 2 0 00-2-2h-11a2 2 0 00-2 2v6h-3a2 2 0 00-2 2v3h25v-3a2 2 0 00-2-2zm-25.6-17.17a8.14 8.14 0 00-.35 5 3.45 3.45 0 001.31 1.72h.05c0 .13.08.27.11.41.07-.08.14-.15.2-.23 2.5-2.73.55-5.32-1.32-6.9z",fill:"#fedd0a"}),Object(r.createElement)("path",{d:"M16.18 7.84C15.8 3 18.59 1.43 21.51 1.08a14.84 14.84 0 013 0C21.6 1.44 18.82 3 19.2 7.84a8.42 8.42 0 002.59 1.43 4.81 4.81 0 01-3 0 8.42 8.42 0 01-2.61-1.43zm-7.61.92c-2 1.51-4 4-1.53 7a.65.65 0 00.13.16q.2.22.42.45a5.91 5.91 0 002.4-.61c-2.45-3-.42-5.49 1.54-7a13.57 13.57 0 00-.54-1.51 13.76 13.76 0 00-2.42 1.51zM15.99 56v3h3v-3a2 2 0 012-2h-3a2 2 0 00-2 2zm7-10a2 2 0 00-2 2v6h3v-6a2 2 0 012-2zM4.35 24.86a13.53 13.53 0 00-2.61-1.37 13.32 13.32 0 00-.39 1.37c-.49 2-.91 5.69 1.85 7a4.83 4.83 0 001.79.46 8.25 8.25 0 00.86 0 5.84 5.84 0 00.4-.5c-2.81-1.27-2.39-4.95-1.9-6.96z",fill:"#fff"}),Object(r.createElement)("path",{d:"M59.18 23.14a1 1 0 00-1.29-.59 14.74 14.74 0 00-3.85 2.26 24.35 24.35 0 00-.45-3.4 23.39 23.39 0 00-1.21-4 1 1 0 00.71-.29 5.42 5.42 0 001.9-4.91c-.64-3.56-5.44-5.78-5.65-5.87a1 1 0 00-1.32.5 14.57 14.57 0 00-.85 2.6 26.55 26.55 0 00-2.37-2.12 6.66 6.66 0 00-2.23-5.7C38.99-1.31 32.36.61 32.08.7a1 1 0 00-.59.48 1 1 0 00-.08.76c.08.28 2.09 6.87 6.51 8.3a5.84 5.84 0 001.74.27 7.41 7.41 0 004.15-1.44 22.7 22.7 0 013.1 3 1.48 1.48 0 000 .21 13.38 13.38 0 00-5.58.15 1 1 0 00-.72 1.21c.06.22 1.39 5.34 4.79 6.59a4.42 4.42 0 001.55.28 6.3 6.3 0 003.59-1.31 1.2 1.2 0 00.26-.29 22.46 22.46 0 01.82 2.88 21.37 21.37 0 01.43 3.47 15 15 0 00-2.86-2.35 1 1 0 00-1.38.34c-.11.2-2.81 4.75-1.3 8a5.31 5.31 0 004.07 2.87c-.08.21-.15.42-.24.63a21.75 21.75 0 01-2.25 4 14.51 14.51 0 00-1.26-4 1 1 0 00-.58-.5 1 1 0 00-.76.06c-.2.1-4.9 2.53-5.38 6.11a5.19 5.19 0 001.7 4.37 22.47 22.47 0 01-2.46 1.34A3 3 0 0036.99 45h-6V34.73l4.15 2.2a2.1 2.1 0 00.94.23 2 2 0 002-2.33l-1-5.81 4.2-4.11a2 2 0 00-1.12-3.4l-5.78-.85-2.59-5.26a2 2 0 00-3.6 0l-2.58 5.26-5.77.85a2 2 0 00-1.11 3.4L22.92 29l-1 5.81a2 2 0 00.8 1.94 2 2 0 002.11.15l4.16-2.17V45h-6a3 3 0 00-2.37 1.18 21 21 0 01-2.46-1.35 5.16 5.16 0 001.7-4.36c-.48-3.58-5.18-6-5.38-6.11a1 1 0 00-.76-.06 1 1 0 00-.58.5 14.38 14.38 0 00-1.26 4 21.11 21.11 0 01-2.25-4c-.09-.21-.16-.42-.24-.64a5.26 5.26 0 004.07-2.86c1.51-3.29-1.19-7.84-1.3-8a1 1 0 00-1.38-.34 15 15 0 00-2.86 2.35 21.37 21.37 0 01.43-3.47 22.46 22.46 0 01.82-2.88 1.2 1.2 0 00.26.29 6.3 6.3 0 003.56 1.28 4.42 4.42 0 001.55-.28c3.4-1.25 4.73-6.37 4.79-6.59a1 1 0 00-.72-1.21 13.57 13.57 0 00-5.58-.15 1.48 1.48 0 000-.21 22.7 22.7 0 013.1-3 7.39 7.39 0 004.15 1.44 5.73 5.73 0 001.73-.27c4.43-1.43 6.44-8 6.52-8.3a1 1 0 00-.08-.76 1 1 0 00-.55-.5c-.28-.09-6.89-2-10.51.92a6.66 6.66 0 00-2.23 5.7 26.55 26.55 0 00-2.37 2.12 14.57 14.57 0 00-.8-2.6 1 1 0 00-1.32-.5c-.2.09-5 2.31-5.65 5.87a5.42 5.42 0 001.91 4.88 1 1 0 00.71.29 23.65 23.65 0 00-1.21 4 24.35 24.35 0 00-.44 3.43 14.74 14.74 0 00-3.9-2.26 1 1 0 00-1.29.59c-.08.21-1.89 5.18.19 8.14a5.37 5.37 0 004.71 2.08h.11a1 1 0 00.73-.36c.09-.1.16-.22.25-.33a24.67 24.67 0 001 2.89 23.67 23.67 0 002.4 4.32 14.22 14.22 0 00-4 .19 1 1 0 00-.77 1.18c0 .22 1.15 5.4 4.49 6.8a4.41 4.41 0 001.75.35 6.4 6.4 0 003.43-1.15 1 1 0 00.44-.64 6.59 6.59 0 00.11-1.08l.84.59a23 23 0 003.51 1.97V53h-2a3 3 0 00-3 3v3a1 1 0 001 1h28a1 1 0 001-1v-3a3 3 0 00-3-3h-2v-4.91a23 23 0 003.51-1.94c.29-.19.56-.41.84-.62a7 7 0 00.11 1.11 1 1 0 00.44.64 6.4 6.4 0 003.43 1.15 4.41 4.41 0 001.75-.35c3.34-1.4 4.45-6.58 4.49-6.8a1 1 0 00-.77-1.18 14.22 14.22 0 00-4-.19 23.67 23.67 0 002.4-4.32 24.67 24.67 0 001-2.89c.09.11.16.23.25.33a1 1 0 00.73.33h.11a5.37 5.37 0 004.71-2.08c2.08-2.96.27-7.93.19-8.14zM38.65 6a22.22 22.22 0 013.4 1.82 4.32 4.32 0 01-3.51.53c-2.55-.82-4.18-4.24-4.86-6 1.81-.38 5.57-.88 7.65.81a4.12 4.12 0 011.42 2.71 23.48 23.48 0 00-3.33-1.75 1 1 0 00-1.31.53A1 1 0 0038.65 6zm-20-2.8c2.08-1.71 5.84-1.2 7.65-.83-.68 1.72-2.31 5.14-4.86 6a4.32 4.32 0 01-3.51-.53A22.22 22.22 0 0121.33 6a1 1 0 00.54-1.31 1 1 0 00-1.31-.53 24 24 0 00-3.33 1.75 4.12 4.12 0 011.42-2.73zM5.92 30.41a5.66 5.66 0 01-.58.94 3.27 3.27 0 01-2.71-1.21c-1-1.37-.65-3.75-.26-5.28a8.32 8.32 0 013.62 3.05v.61a4.45 4.45 0 00-.15.9 4.12 4.12 0 00.08.99zm6-15.39c1.25-1.11 3.66-1 5.21-.83-.55 1.47-1.64 3.61-3.21 4.18a3.23 3.23 0 01-2.93-.54 3.27 3.27 0 01.89-2.83zm-4.93-2.45c.29-1.65 2.21-3.11 3.56-3.91a8.35 8.35 0 01.38 4.61 3.81 3.81 0 00-.32.24 4.52 4.52 0 00-1.05 1.37 3.53 3.53 0 01-.56.25h-.01a4.51 4.51 0 01-.95.22 3.26 3.26 0 01-1.05-2.78zm.91 17c.09-1.7 1.78-3.37 3.09-4.32.66 1.42 1.4 3.7.7 5.23a3.23 3.23 0 01-2.43 1.69 3.25 3.25 0 01-1.41-2.63zm5.78 16.29a3.26 3.26 0 01-2.94.41c-1.55-.65-2.55-2.84-3-4.34a8.39 8.39 0 014.58.65 2.92 2.92 0 00.17.36 4.51 4.51 0 001.1 1.32 4.53 4.53 0 01.04 1.57zm3.08-2.36a5 5 0 01-.85-.21h-.08A2.84 2.84 0 0114.16 42c-.8-1.46-.22-3.8.34-5.27 1.32.86 3.16 2.4 3.38 4.06a3.28 3.28 0 01-1.17 2.68zm7.19-8.3l1-5.8a2 2 0 00-.57-1.77l-4.19-4.11 5.77-.85a2 2 0 001.51-1.1l2.52-5.3 2.58 5.27a2 2 0 001.51 1.1l5.77.84-4.19 4.12a2 2 0 00-.57 1.76l1 5.8-5.15-2.73a2 2 0 00-1.88 0zM21.99 48a1 1 0 011-1h14a1 1 0 011 1v5h-16zm20 7a1 1 0 011 1v2h-26v-2a1 1 0 011-1h24zm3.83-13a2.84 2.84 0 01-1.62 1.28h-.07a6.37 6.37 0 01-.86.21 3.28 3.28 0 01-1.17-2.73c.22-1.66 2.06-3.2 3.38-4.06.56 1.45 1.14 3.79.34 5.3zm6.5-.05c-.48 1.5-1.48 3.69-3 4.34a3.26 3.26 0 01-2.94-.41 4.53 4.53 0 01.12-1.6 4.51 4.51 0 001.1-1.32c.07-.12.11-.24.17-.36a8.39 8.39 0 014.55-.7zM46.1 18.37c-1.57-.57-2.66-2.71-3.21-4.18 1.55-.22 4-.28 5.21.83a3.27 3.27 0 01.89 2.81 3.26 3.26 0 01-2.89.54zm4.67 13.8a3.23 3.23 0 01-2.43-1.69c-.7-1.52 0-3.8.71-5.23 1.25.95 3 2.62 3.08 4.29a3.25 3.25 0 01-1.36 2.63zm1.22-16.82a4.75 4.75 0 01-1-.22 3.87 3.87 0 01-.55-.25 4.52 4.52 0 00-1-1.37 3.81 3.81 0 00-.32-.24 8.45 8.45 0 01.38-4.61c1.35.8 3.27 2.25 3.56 3.9a3.27 3.27 0 01-1.07 2.79zm5.36 14.79a3.27 3.27 0 01-2.71 1.21 5.66 5.66 0 01-.58-.94 4.09 4.09 0 00.06-1 5.28 5.28 0 00-.15-.9v-.6a8.37 8.37 0 013.6-3.06c.42 1.54.74 3.92-.22 5.29zM33.99 50a1 1 0 01-1 1h-6a1 1 0 010-2h6a1 1 0 011 1z"})),Object(r.createElement)("h2",null,"Upgrade to Pro"),Object(r.createElement)("p",null,Object(a.__)("Upgrade to the Pro version and get instant full access to all premium extensions and features.","blc")),Object(r.createElement)("button",{className:"ct-button-primary"},Object(a.__)("Upgrade Now","blc")))}}):null]};function Y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var c,i=e[Symbol.iterator]();!(r=(c=i.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(a)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return G(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 G(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 G(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 J=function(e){var t=e.extsSyncLoading,n=e.extension,o=e.onExtsSync,i=Y($(n,(function(){return o()})),2),u=i[0],s=i[1],l=Y(q(n),2),f=l[0],p=l[1];return Object(r.createElement)("li",{className:c()({active:!!n.__object})},Object(r.createElement)("h4",{className:"ct-extension-title"},n.config.name,u&&Object(r.createElement)("svg",{width:"15",height:"15",viewBox:"0 0 100 100"},Object(r.createElement)("g",{transform:"translate(50,50)"},Object(r.createElement)("g",{transform:"scale(1)"},Object(r.createElement)("circle",{cx:"0",cy:"0",r:"50",fill:"#687c93"}),Object(r.createElement)("circle",{cx:"0",cy:"-26",r:"12",fill:"#ffffff",transform:"rotate(161.634)"},Object(r.createElement)("animateTransform",{attributeName:"transform",type:"rotate",calcMode:"linear",values:"0 0 0;360 0 0",keyTimes:"0;1",dur:"1s",begin:"0s",repeatCount:"indefinite"})))))),n.config.description&&Object(r.createElement)("div",{className:"ct-extension-description"},n.config.description),Object(r.createElement)("div",{className:"ct-extension-actions"},Object(r.createElement)("button",{className:c()(n.__object?"ct-button":"ct-button-primary"),"data-button":"white",disabled:u,onClick:function(){s()}},n.__object?Object(a.__)("Deactivate","blc"):Object(a.__)("Activate","blc")),n.__object&&Object(r.createElement)(F,{extsSyncLoading:t,extensionData:n.data,onExtsSync:o}),n.readme&&Object(r.createElement)("button",{onClick:function(){return f()},"data-button":"white",className:"ct-minimal-button ct-instruction"},Object(r.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 24 24"},Object(r.createElement)("path",{d:"M12,2C6.477,2,2,6.477,2,12s4.477,10,10,10s10-4.477,10-10S17.523,2,12,2z M12,17L12,17c-0.552,0-1-0.448-1-1v-4 c0-0.552,0.448-1,1-1h0c0.552,0,1,0.448,1,1v4C13,16.552,12.552,17,12,17z M12.5,9h-1C11.224,9,11,8.776,11,8.5v-1 C11,7.224,11.224,7,11.5,7h1C12.776,7,13,7.224,13,7.5v1C13,8.776,12.776,9,12.5,9z"})))),p)};u.a.on("ct:extensions:card",(function(e){var t=e.CustomComponent;"product-reviews"===e.extension.name&&(t.extension=J)}))}]);
|
framework/extensions/product-reviews/static/bundle/main-admin.css
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* - v1.7.50
|
| 3 |
+
*
|
| 4 |
+
* Copyright (c) 2021
|
| 5 |
+
* Licensed GPLv2+
|
| 6 |
+
*/
|
| 7 |
+
|
| 8 |
+
.ct-product-reviews-settings-modal .ct-controls-group{padding-top:30px;margin-top:5px;border-top:1px dashed #eee}
|
framework/extensions/{affiliate-marketing → product-reviews}/static/bundle/main.css
RENAMED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
/**
|
| 2 |
-
* - v1.7.
|
| 3 |
*
|
| 4 |
* Copyright (c) 2021
|
| 5 |
* Licensed GPLv2+
|
| 1 |
/**
|
| 2 |
+
* - v1.7.50
|
| 3 |
*
|
| 4 |
* Copyright (c) 2021
|
| 5 |
* Licensed GPLv2+
|
framework/extensions/product-reviews/static/js/EditSettings.js
ADDED
|
@@ -0,0 +1,141 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import {
|
| 2 |
+
createElement,
|
| 3 |
+
Component,
|
| 4 |
+
useEffect,
|
| 5 |
+
useState,
|
| 6 |
+
Fragment,
|
| 7 |
+
} from '@wordpress/element'
|
| 8 |
+
import ctEvents from 'ct-events'
|
| 9 |
+
|
| 10 |
+
import { OptionsPanel } from 'blocksy-options'
|
| 11 |
+
import nanoid from 'nanoid'
|
| 12 |
+
|
| 13 |
+
import classnames from 'classnames'
|
| 14 |
+
import { __, sprintf } from 'ct-i18n'
|
| 15 |
+
import Overlay from '../../../../../static/js/helpers/Overlay'
|
| 16 |
+
|
| 17 |
+
const EditSettings = ({ extsSyncLoading, extensionData, onExtsSync }) => {
|
| 18 |
+
const [isEditing, setIsEditing] = useState(false)
|
| 19 |
+
const [settings, setSettings] = useState(null)
|
| 20 |
+
|
| 21 |
+
return (
|
| 22 |
+
<Fragment>
|
| 23 |
+
<button
|
| 24 |
+
className="ct-button ct-config-btn"
|
| 25 |
+
data-button="white"
|
| 26 |
+
onClick={() => {
|
| 27 |
+
setIsEditing(true)
|
| 28 |
+
setSettings(extensionData.settings)
|
| 29 |
+
}}>
|
| 30 |
+
{__('Configure', 'blc')}
|
| 31 |
+
</button>
|
| 32 |
+
|
| 33 |
+
<Overlay
|
| 34 |
+
items={isEditing}
|
| 35 |
+
onDismiss={() => setIsEditing(false)}
|
| 36 |
+
className={'ct-product-reviews-settings-modal'}
|
| 37 |
+
render={() => (
|
| 38 |
+
<div className={classnames('ct-modal-content')}>
|
| 39 |
+
<h2>{__('Product Reviews Settings', 'blc')}</h2>
|
| 40 |
+
|
| 41 |
+
<p className="ct-modal-description">
|
| 42 |
+
{__(
|
| 43 |
+
'Configure the slugs for single and category pages of the product review custom post type.',
|
| 44 |
+
'blc'
|
| 45 |
+
)}
|
| 46 |
+
</p>
|
| 47 |
+
|
| 48 |
+
<div className="ct-controls-group">
|
| 49 |
+
<section data-columns="medium:2">
|
| 50 |
+
<OptionsPanel
|
| 51 |
+
onChange={(optionId, optionValue) =>
|
| 52 |
+
setSettings((settings) => ({
|
| 53 |
+
...settings,
|
| 54 |
+
[optionId]: optionValue,
|
| 55 |
+
}))
|
| 56 |
+
}
|
| 57 |
+
options={{
|
| 58 |
+
single_slug: {
|
| 59 |
+
type: 'text',
|
| 60 |
+
value: '',
|
| 61 |
+
label: __('Single Slug', 'blc'),
|
| 62 |
+
},
|
| 63 |
+
|
| 64 |
+
category_slug: {
|
| 65 |
+
type: 'text',
|
| 66 |
+
value: '',
|
| 67 |
+
label: __('Category Slug', 'blc'),
|
| 68 |
+
},
|
| 69 |
+
}}
|
| 70 |
+
value={settings || {}}
|
| 71 |
+
hasRevertButton={false}
|
| 72 |
+
/>
|
| 73 |
+
</section>
|
| 74 |
+
</div>
|
| 75 |
+
|
| 76 |
+
<div className="ct-modal-actions has-divider">
|
| 77 |
+
<button
|
| 78 |
+
className="button-primary"
|
| 79 |
+
disabled={extsSyncLoading || !settings}
|
| 80 |
+
onClick={(e) => {
|
| 81 |
+
e.preventDefault()
|
| 82 |
+
|
| 83 |
+
if (!settings) {
|
| 84 |
+
return
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
onExtsSync({
|
| 88 |
+
extAction: {
|
| 89 |
+
type: 'persist',
|
| 90 |
+
settings,
|
| 91 |
+
},
|
| 92 |
+
})
|
| 93 |
+
|
| 94 |
+
setIsEditing(false)
|
| 95 |
+
}}>
|
| 96 |
+
{extsSyncLoading ? (
|
| 97 |
+
<svg
|
| 98 |
+
width="15"
|
| 99 |
+
height="15"
|
| 100 |
+
viewBox="0 0 100 100">
|
| 101 |
+
<g transform="translate(50,50)">
|
| 102 |
+
<g transform="scale(1)">
|
| 103 |
+
<circle
|
| 104 |
+
cx="0"
|
| 105 |
+
cy="0"
|
| 106 |
+
r="50"
|
| 107 |
+
fill="#687c93"
|
| 108 |
+
/>
|
| 109 |
+
<circle
|
| 110 |
+
cx="0"
|
| 111 |
+
cy="-26"
|
| 112 |
+
r="12"
|
| 113 |
+
fill="#ffffff"
|
| 114 |
+
transform="rotate(161.634)">
|
| 115 |
+
<animateTransform
|
| 116 |
+
attributeName="transform"
|
| 117 |
+
type="rotate"
|
| 118 |
+
calcMode="linear"
|
| 119 |
+
values="0 0 0;360 0 0"
|
| 120 |
+
keyTimes="0;1"
|
| 121 |
+
dur="1s"
|
| 122 |
+
begin="0s"
|
| 123 |
+
repeatCount="indefinite"
|
| 124 |
+
/>
|
| 125 |
+
</circle>
|
| 126 |
+
</g>
|
| 127 |
+
</g>
|
| 128 |
+
</svg>
|
| 129 |
+
) : (
|
| 130 |
+
__('Save', 'blc')
|
| 131 |
+
)}
|
| 132 |
+
</button>
|
| 133 |
+
</div>
|
| 134 |
+
</div>
|
| 135 |
+
)}
|
| 136 |
+
/>
|
| 137 |
+
</Fragment>
|
| 138 |
+
)
|
| 139 |
+
}
|
| 140 |
+
|
| 141 |
+
export default EditSettings
|
framework/extensions/product-reviews/static/js/ProductReviews.js
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import {
|
| 2 |
+
createElement,
|
| 3 |
+
Component,
|
| 4 |
+
useEffect,
|
| 5 |
+
useState,
|
| 6 |
+
Fragment,
|
| 7 |
+
} from '@wordpress/element'
|
| 8 |
+
import { __ } from 'ct-i18n'
|
| 9 |
+
import classnames from 'classnames'
|
| 10 |
+
|
| 11 |
+
import EditSettings from './EditSettings'
|
| 12 |
+
import useExtensionReadme from '../../../../../static/js/helpers/useExtensionReadme'
|
| 13 |
+
import useActivationAction from '../../../../../static/js/helpers/useActivationAction'
|
| 14 |
+
|
| 15 |
+
const ProductReviews = ({ extsSyncLoading, extension, onExtsSync }) => {
|
| 16 |
+
const [isLoading, activationAction] = useActivationAction(extension, () =>
|
| 17 |
+
onExtsSync()
|
| 18 |
+
)
|
| 19 |
+
|
| 20 |
+
const [showReadme, readme] = useExtensionReadme(extension)
|
| 21 |
+
|
| 22 |
+
return (
|
| 23 |
+
<li className={classnames({ active: !!extension.__object })}>
|
| 24 |
+
<h4 className="ct-extension-title">
|
| 25 |
+
{extension.config.name}
|
| 26 |
+
|
| 27 |
+
{isLoading && (
|
| 28 |
+
<svg width="15" height="15" viewBox="0 0 100 100">
|
| 29 |
+
<g transform="translate(50,50)">
|
| 30 |
+
<g transform="scale(1)">
|
| 31 |
+
<circle cx="0" cy="0" r="50" fill="#687c93" />
|
| 32 |
+
<circle
|
| 33 |
+
cx="0"
|
| 34 |
+
cy="-26"
|
| 35 |
+
r="12"
|
| 36 |
+
fill="#ffffff"
|
| 37 |
+
transform="rotate(161.634)">
|
| 38 |
+
<animateTransform
|
| 39 |
+
attributeName="transform"
|
| 40 |
+
type="rotate"
|
| 41 |
+
calcMode="linear"
|
| 42 |
+
values="0 0 0;360 0 0"
|
| 43 |
+
keyTimes="0;1"
|
| 44 |
+
dur="1s"
|
| 45 |
+
begin="0s"
|
| 46 |
+
repeatCount="indefinite"
|
| 47 |
+
/>
|
| 48 |
+
</circle>
|
| 49 |
+
</g>
|
| 50 |
+
</g>
|
| 51 |
+
</svg>
|
| 52 |
+
)}
|
| 53 |
+
</h4>
|
| 54 |
+
|
| 55 |
+
{extension.config.description && (
|
| 56 |
+
<div className="ct-extension-description">
|
| 57 |
+
{extension.config.description}
|
| 58 |
+
</div>
|
| 59 |
+
)}
|
| 60 |
+
|
| 61 |
+
<div className="ct-extension-actions">
|
| 62 |
+
<button
|
| 63 |
+
className={classnames(
|
| 64 |
+
extension.__object ? 'ct-button' : 'ct-button-primary'
|
| 65 |
+
)}
|
| 66 |
+
data-button="white"
|
| 67 |
+
disabled={isLoading}
|
| 68 |
+
onClick={() => {
|
| 69 |
+
activationAction()
|
| 70 |
+
}}>
|
| 71 |
+
{extension.__object
|
| 72 |
+
? __('Deactivate', 'blc')
|
| 73 |
+
: __('Activate', 'blc')}
|
| 74 |
+
</button>
|
| 75 |
+
|
| 76 |
+
{extension.__object && (
|
| 77 |
+
<EditSettings
|
| 78 |
+
extsSyncLoading={extsSyncLoading}
|
| 79 |
+
extensionData={extension.data}
|
| 80 |
+
onExtsSync={onExtsSync}
|
| 81 |
+
/>
|
| 82 |
+
)}
|
| 83 |
+
|
| 84 |
+
{extension.readme && (
|
| 85 |
+
<button
|
| 86 |
+
onClick={() => showReadme()}
|
| 87 |
+
data-button="white"
|
| 88 |
+
className="ct-minimal-button ct-instruction">
|
| 89 |
+
<svg width="16" height="16" viewBox="0 0 24 24">
|
| 90 |
+
<path d="M12,2C6.477,2,2,6.477,2,12s4.477,10,10,10s10-4.477,10-10S17.523,2,12,2z M12,17L12,17c-0.552,0-1-0.448-1-1v-4 c0-0.552,0.448-1,1-1h0c0.552,0,1,0.448,1,1v4C13,16.552,12.552,17,12,17z M12.5,9h-1C11.224,9,11,8.776,11,8.5v-1 C11,7.224,11.224,7,11.5,7h1C12.776,7,13,7.224,13,7.5v1C13,8.776,12.776,9,12.5,9z" />
|
| 91 |
+
</svg>
|
| 92 |
+
</button>
|
| 93 |
+
)}
|
| 94 |
+
</div>
|
| 95 |
+
{readme}
|
| 96 |
+
</li>
|
| 97 |
+
)
|
| 98 |
+
}
|
| 99 |
+
|
| 100 |
+
export default ProductReviews
|
framework/extensions/product-reviews/static/js/dashboard.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { createElement } from '@wordpress/element'
|
| 2 |
+
|
| 3 |
+
import ProductReviews from './ProductReviews'
|
| 4 |
+
|
| 5 |
+
import ctEvents from 'ct-events'
|
| 6 |
+
|
| 7 |
+
ctEvents.on('ct:extensions:card', ({ CustomComponent, extension }) => {
|
| 8 |
+
if (extension.name !== 'product-reviews') return
|
| 9 |
+
CustomComponent.extension = ProductReviews
|
| 10 |
+
})
|
framework/extensions/{affiliate-marketing → product-reviews}/static/sass/actions.scss
RENAMED
|
File without changes
|
framework/extensions/{affiliate-marketing → product-reviews}/static/sass/description.scss
RENAMED
|
File without changes
|
framework/extensions/product-reviews/static/sass/main-admin.scss
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.ct-product-reviews-settings-modal {
|
| 2 |
+
|
| 3 |
+
.ct-controls-group {
|
| 4 |
+
padding-top: 30px;
|
| 5 |
+
margin-top: 5px;
|
| 6 |
+
border-top: 1px dashed #eee;
|
| 7 |
+
}
|
| 8 |
+
}
|
framework/extensions/{affiliate-marketing → product-reviews}/static/sass/main.scss
RENAMED
|
File without changes
|
framework/extensions/{affiliate-marketing → product-reviews}/static/sass/quick-info.scss
RENAMED
|
File without changes
|
framework/extensions/{affiliate-marketing → product-reviews}/static/sass/scores.scss
RENAMED
|
File without changes
|
framework/extensions/{affiliate-marketing → product-reviews}/static/sass/slider.scss
RENAMED
|
File without changes
|
framework/extensions/{affiliate-marketing → product-reviews}/static/sass/title.scss
RENAMED
|
File without changes
|
framework/extensions/{affiliate-marketing → product-reviews}/views/single-top.php
RENAMED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?php
|
| 2 |
|
| 3 |
$atts = blocksy_get_post_options(null, [
|
| 4 |
-
'meta_id' => '
|
| 5 |
]);
|
| 6 |
|
| 7 |
$gallery_images = array_map(function ($item) {
|
|
@@ -13,7 +13,7 @@ $thumb_id = get_post_thumbnail_id();
|
|
| 13 |
if ($thumb_id) {
|
| 14 |
array_unshift($gallery_images, intval($thumb_id));
|
| 15 |
} else {
|
| 16 |
-
$gallery_images = [
|
| 17 |
}
|
| 18 |
|
| 19 |
echo '<section class="ct-product-hero">';
|
| 1 |
<?php
|
| 2 |
|
| 3 |
$atts = blocksy_get_post_options(null, [
|
| 4 |
+
'meta_id' => 'blocksy_product_review_options'
|
| 5 |
]);
|
| 6 |
|
| 7 |
$gallery_images = array_map(function ($item) {
|
| 13 |
if ($thumb_id) {
|
| 14 |
array_unshift($gallery_images, intval($thumb_id));
|
| 15 |
} else {
|
| 16 |
+
$gallery_images = [];
|
| 17 |
}
|
| 18 |
|
| 19 |
echo '<section class="ct-product-hero">';
|
framework/extensions/trending/extension.php
CHANGED
|
@@ -15,13 +15,6 @@ class BlocksyExtensionTrending {
|
|
| 15 |
return;
|
| 16 |
}
|
| 17 |
|
| 18 |
-
wp_enqueue_style(
|
| 19 |
-
'blocksy-ext-trending-styles',
|
| 20 |
-
BLOCKSY_URL . 'framework/extensions/trending/static/bundle/main.css',
|
| 21 |
-
['ct-main-styles'],
|
| 22 |
-
$data['Version']
|
| 23 |
-
);
|
| 24 |
-
|
| 25 |
wp_enqueue_script(
|
| 26 |
'blocksy-ext-trending-scripts',
|
| 27 |
BLOCKSY_URL . 'framework/extensions/trending/static/bundle/main.js',
|
| 15 |
return;
|
| 16 |
}
|
| 17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
wp_enqueue_script(
|
| 19 |
'blocksy-ext-trending-scripts',
|
| 20 |
BLOCKSY_URL . 'framework/extensions/trending/static/bundle/main.js',
|
framework/extensions/trending/static/bundle/main.css
DELETED
|
@@ -1,7 +0,0 @@
|
|
| 1 |
-
/**
|
| 2 |
-
* - v1.7.43
|
| 3 |
-
*
|
| 4 |
-
* Copyright (c) 2020
|
| 5 |
-
* Licensed GPLv2+
|
| 6 |
-
*/
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
framework/extensions/trending/static/sass/main.scss
DELETED
|
File without changes
|
framework/extensions/widgets/static/bundle/main.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
/**
|
| 2 |
-
* - v1.7.
|
| 3 |
*
|
| 4 |
* Copyright (c) 2021
|
| 5 |
* Licensed GPLv2+
|
| 1 |
/**
|
| 2 |
+
* - v1.7.50
|
| 3 |
*
|
| 4 |
* Copyright (c) 2021
|
| 5 |
* Licensed GPLv2+
|
framework/extensions/widgets/widgets/ct-posts/view.php
CHANGED
|
@@ -136,9 +136,9 @@ echo $before_title . wp_kses_post( $title ) . $after_title;
|
|
| 136 |
|
| 137 |
?>
|
| 138 |
|
| 139 |
-
<?php if (
|
| 140 |
<ul <?php echo $type_output ?>>
|
| 141 |
-
<?php while (
|
| 142 |
<?php $query->the_post(); ?>
|
| 143 |
|
| 144 |
<li>
|
|
@@ -147,7 +147,6 @@ echo $before_title . wp_kses_post( $title ) . $after_title;
|
|
| 147 |
if ( $has_thumbnail ) {
|
| 148 |
$size = 'thumbnail';
|
| 149 |
$ratio = blocksy_default_akg('post_widget_image_ratio', $atts, '1/1');
|
| 150 |
-
|
| 151 |
|
| 152 |
if ( $posts_type === 'large-thumbs' ) {
|
| 153 |
$size = 'medium';
|
| 136 |
|
| 137 |
?>
|
| 138 |
|
| 139 |
+
<?php if ($query->have_posts()) { ?>
|
| 140 |
<ul <?php echo $type_output ?>>
|
| 141 |
+
<?php while ($query->have_posts()) { ?>
|
| 142 |
<?php $query->the_post(); ?>
|
| 143 |
|
| 144 |
<li>
|
| 147 |
if ( $has_thumbnail ) {
|
| 148 |
$size = 'thumbnail';
|
| 149 |
$ratio = blocksy_default_akg('post_widget_image_ratio', $atts, '1/1');
|
|
|
|
| 150 |
|
| 151 |
if ( $posts_type === 'large-thumbs' ) {
|
| 152 |
$size = 'medium';
|
framework/features/demo-install/options-import.php
CHANGED
|
@@ -80,7 +80,7 @@ class DemoInstallOptionsInstaller {
|
|
| 80 |
}
|
| 81 |
|
| 82 |
$options = $demo_content['options'];
|
| 83 |
-
$this->import_options($options);
|
| 84 |
|
| 85 |
if ($this->has_streaming) {
|
| 86 |
Plugin::instance()->demo->emit_sse_message([
|
|
@@ -92,7 +92,7 @@ class DemoInstallOptionsInstaller {
|
|
| 92 |
}
|
| 93 |
}
|
| 94 |
|
| 95 |
-
public function import_options($options) {
|
| 96 |
if ($this->has_streaming) {
|
| 97 |
Plugin::instance()->demo->emit_sse_message([
|
| 98 |
'action' => 'import_mods_images',
|
|
@@ -100,10 +100,12 @@ class DemoInstallOptionsInstaller {
|
|
| 100 |
]);
|
| 101 |
}
|
| 102 |
|
| 103 |
-
$
|
| 104 |
-
$
|
| 105 |
-
|
| 106 |
-
|
|
|
|
|
|
|
| 107 |
|
| 108 |
global $wp_customize;
|
| 109 |
|
|
@@ -295,9 +297,10 @@ class DemoInstallOptionsInstaller {
|
|
| 295 |
}
|
| 296 |
|
| 297 |
// Set variables for storage, fix file filename for query strings.
|
| 298 |
-
preg_match('/[^\?]+\.(jpe?g|jpe|gif|png)\b/i', $file, $matches);
|
| 299 |
|
| 300 |
$file_array = [];
|
|
|
|
| 301 |
$file_array['name'] = basename($matches[0]);
|
| 302 |
|
| 303 |
// Download file to temp location.
|
| 80 |
}
|
| 81 |
|
| 82 |
$options = $demo_content['options'];
|
| 83 |
+
$this->import_options($options, $demo_content);
|
| 84 |
|
| 85 |
if ($this->has_streaming) {
|
| 86 |
Plugin::instance()->demo->emit_sse_message([
|
| 92 |
}
|
| 93 |
}
|
| 94 |
|
| 95 |
+
public function import_options($options, $demo_content = null) {
|
| 96 |
if ($this->has_streaming) {
|
| 97 |
Plugin::instance()->demo->emit_sse_message([
|
| 98 |
'action' => 'import_mods_images',
|
| 100 |
]);
|
| 101 |
}
|
| 102 |
|
| 103 |
+
if ($demo_content) {
|
| 104 |
+
$options['mods'] = $this->import_images(
|
| 105 |
+
$demo_content,
|
| 106 |
+
$options['mods']
|
| 107 |
+
);
|
| 108 |
+
}
|
| 109 |
|
| 110 |
global $wp_customize;
|
| 111 |
|
| 297 |
}
|
| 298 |
|
| 299 |
// Set variables for storage, fix file filename for query strings.
|
| 300 |
+
preg_match('/[^\?]+\.(jpe?g|jpe|gif|png|svg)\b/i', $file, $matches);
|
| 301 |
|
| 302 |
$file_array = [];
|
| 303 |
+
|
| 304 |
$file_array['name'] = basename($matches[0]);
|
| 305 |
|
| 306 |
// Download file to temp location.
|
framework/features/demo-install/widgets-import.php
CHANGED
|
@@ -102,7 +102,7 @@ class DemoInstallWidgetsInstaller {
|
|
| 102 |
}
|
| 103 |
}
|
| 104 |
|
| 105 |
-
|
| 106 |
if (empty($data) || !is_object($data)) {
|
| 107 |
return false;
|
| 108 |
}
|
| 102 |
}
|
| 103 |
}
|
| 104 |
|
| 105 |
+
public function import_data($data) {
|
| 106 |
if (empty($data) || !is_object($data)) {
|
| 107 |
return false;
|
| 108 |
}
|
framework/features/demo-install/wp-importer.php
CHANGED
|
@@ -983,6 +983,7 @@ class Blocksy_WP_Import extends WP_Importer {
|
|
| 983 |
if ( 'draft' == $item['status'] )
|
| 984 |
return;
|
| 985 |
|
|
|
|
| 986 |
$menu_slug = false;
|
| 987 |
if ( isset($item['terms']) ) {
|
| 988 |
// loop through terms, assume first nav_menu term is correct menu
|
|
@@ -1017,7 +1018,7 @@ class Blocksy_WP_Import extends WP_Importer {
|
|
| 1017 |
$_menu_item_object_id = $this->processed_terms[intval($_menu_item_object_id)];
|
| 1018 |
} else if ( 'post_type' == $_menu_item_type && isset( $this->processed_posts[intval($_menu_item_object_id)] ) ) {
|
| 1019 |
$_menu_item_object_id = $this->processed_posts[intval($_menu_item_object_id)];
|
| 1020 |
-
} else if ( 'custom' != $_menu_item_type ) {
|
| 1021 |
// associated object is missing or not imported yet, we'll retry later
|
| 1022 |
$this->missing_menu_items[] = $item;
|
| 1023 |
return;
|
|
@@ -1051,6 +1052,7 @@ class Blocksy_WP_Import extends WP_Importer {
|
|
| 1051 |
'menu-item-status' => $item['status']
|
| 1052 |
);
|
| 1053 |
|
|
|
|
| 1054 |
$id = wp_update_nav_menu_item( $menu_id, 0, $args );
|
| 1055 |
if ( $id && ! is_wp_error( $id ) )
|
| 1056 |
$this->processed_menu_items[intval($item['post_id'])] = (int) $id;
|
| 983 |
if ( 'draft' == $item['status'] )
|
| 984 |
return;
|
| 985 |
|
| 986 |
+
|
| 987 |
$menu_slug = false;
|
| 988 |
if ( isset($item['terms']) ) {
|
| 989 |
// loop through terms, assume first nav_menu term is correct menu
|
| 1018 |
$_menu_item_object_id = $this->processed_terms[intval($_menu_item_object_id)];
|
| 1019 |
} else if ( 'post_type' == $_menu_item_type && isset( $this->processed_posts[intval($_menu_item_object_id)] ) ) {
|
| 1020 |
$_menu_item_object_id = $this->processed_posts[intval($_menu_item_object_id)];
|
| 1021 |
+
} else if ( 'custom' != $_menu_item_type && 'post_type_archive' !== $_menu_item_type) {
|
| 1022 |
// associated object is missing or not imported yet, we'll retry later
|
| 1023 |
$this->missing_menu_items[] = $item;
|
| 1024 |
return;
|
| 1052 |
'menu-item-status' => $item['status']
|
| 1053 |
);
|
| 1054 |
|
| 1055 |
+
|
| 1056 |
$id = wp_update_nav_menu_item( $menu_id, 0, $args );
|
| 1057 |
if ( $id && ! is_wp_error( $id ) )
|
| 1058 |
$this->processed_menu_items[intval($item['post_id'])] = (int) $id;
|
framework/features/header.php
CHANGED
|
@@ -22,6 +22,22 @@ class HeaderAdditions {
|
|
| 22 |
50
|
| 23 |
);
|
| 24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
add_filter('blocksy:header:device-wrapper-attr', function ($attr, $device) {
|
| 26 |
$transparent_result = $this->current_screen_has_transparent();
|
| 27 |
|
|
@@ -213,7 +229,7 @@ class HeaderAdditions {
|
|
| 213 |
return $paths;
|
| 214 |
});
|
| 215 |
|
| 216 |
-
|
| 217 |
if (! class_exists('Blocksy_Header_Builder_Render')) {
|
| 218 |
return;
|
| 219 |
}
|
|
@@ -221,13 +237,19 @@ class HeaderAdditions {
|
|
| 221 |
$render = new \Blocksy_Header_Builder_Render();
|
| 222 |
|
| 223 |
if (! $render->contains_item('account')) {
|
| 224 |
-
return;
|
| 225 |
}
|
| 226 |
|
| 227 |
-
|
|
|
|
|
|
|
| 228 |
['fn' => 'blocksy_render_view'],
|
| 229 |
dirname(__FILE__) . '/header/account-modal.php'
|
| 230 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
| 231 |
});
|
| 232 |
|
| 233 |
add_filter('blocksy:header:settings', function ($opt) {
|
| 22 |
50
|
| 23 |
);
|
| 24 |
|
| 25 |
+
add_filter('blocksy:header:selective_refresh', function ($selective_refresh) {
|
| 26 |
+
$selective_refresh[] = [
|
| 27 |
+
'id' => 'header_placements_item:account',
|
| 28 |
+
'fallback_refresh' => false,
|
| 29 |
+
'container_inclusive' => true,
|
| 30 |
+
'selector' => 'header [data-id="account"]',
|
| 31 |
+
'settings' => ['header_placements'],
|
| 32 |
+
'render_callback' => function () {
|
| 33 |
+
$header = new \Blocksy_Header_Builder_Render();
|
| 34 |
+
echo $header->render_single_item('account');
|
| 35 |
+
}
|
| 36 |
+
];
|
| 37 |
+
|
| 38 |
+
return $selective_refresh;
|
| 39 |
+
});
|
| 40 |
+
|
| 41 |
add_filter('blocksy:header:device-wrapper-attr', function ($attr, $device) {
|
| 42 |
$transparent_result = $this->current_screen_has_transparent();
|
| 43 |
|
| 229 |
return $paths;
|
| 230 |
});
|
| 231 |
|
| 232 |
+
add_filter('blocksy:footer:offcanvas-drawer', function ($els) {
|
| 233 |
if (! class_exists('Blocksy_Header_Builder_Render')) {
|
| 234 |
return;
|
| 235 |
}
|
| 237 |
$render = new \Blocksy_Header_Builder_Render();
|
| 238 |
|
| 239 |
if (! $render->contains_item('account')) {
|
| 240 |
+
return $els;
|
| 241 |
}
|
| 242 |
|
| 243 |
+
remove_filter('lostpassword_url', 'wc_lostpassword_url', 10, 1);
|
| 244 |
+
|
| 245 |
+
$els[] = blc_call_fn(
|
| 246 |
['fn' => 'blocksy_render_view'],
|
| 247 |
dirname(__FILE__) . '/header/account-modal.php'
|
| 248 |
);
|
| 249 |
+
|
| 250 |
+
add_filter('lostpassword_url', 'wc_lostpassword_url', 10, 1);
|
| 251 |
+
|
| 252 |
+
return $els;
|
| 253 |
});
|
| 254 |
|
| 255 |
add_filter('blocksy:header:settings', function ($opt) {
|
framework/features/header/account-modal.php
CHANGED
|
@@ -6,13 +6,15 @@ $users_can_register = get_option('users_can_register');
|
|
| 6 |
?>
|
| 7 |
|
| 8 |
<div id="account-modal" class="ct-panel" data-behaviour="modal">
|
| 9 |
-
<div class="
|
| 10 |
-
<
|
| 11 |
-
<span
|
| 12 |
-
|
|
|
|
|
|
|
| 13 |
</div>
|
| 14 |
|
| 15 |
-
<div class="
|
| 16 |
<div class="ct-account-form">
|
| 17 |
<?php if ($users_can_register) { ?>
|
| 18 |
<ul>
|
|
@@ -54,6 +56,8 @@ $users_can_register = get_option('users_can_register');
|
|
| 54 |
</a>
|
| 55 |
</p>
|
| 56 |
|
|
|
|
|
|
|
| 57 |
<p class="login-submit">
|
| 58 |
<button name="wp-submit" class="ct-button">
|
| 59 |
<?php echo __('Log In', 'blc') ?>
|
|
@@ -84,6 +88,8 @@ $users_can_register = get_option('users_can_register');
|
|
| 84 |
<input type="email" name="user_email" id="user_email" class="input" value="" size="25">
|
| 85 |
</p>
|
| 86 |
|
|
|
|
|
|
|
| 87 |
<p id="reg_passmail">
|
| 88 |
<?php echo __('Registration confirmation will be emailed to you', 'blc') ?>
|
| 89 |
</p>
|
|
@@ -93,7 +99,7 @@ $users_can_register = get_option('users_can_register');
|
|
| 93 |
<?php echo __('Register', 'blc') ?>
|
| 94 |
</button>
|
| 95 |
|
| 96 |
-
<input type="hidden" name="redirect_to" value="<?php echo blocksy_current_url() ?>">
|
| 97 |
</p>
|
| 98 |
|
| 99 |
<?php do_action('blocksy:account:modal:register:end'); ?>
|
|
@@ -117,7 +123,7 @@ $users_can_register = get_option('users_can_register');
|
|
| 117 |
<?php echo __('Get New Password', 'blc') ?>
|
| 118 |
</button>
|
| 119 |
|
| 120 |
-
<input type="hidden" name="redirect_to" value="<?php echo blocksy_current_url() ?>">
|
| 121 |
</p>
|
| 122 |
|
| 123 |
<?php do_action('blocksy:account:modal:lostpassword:end'); ?>
|
| 6 |
?>
|
| 7 |
|
| 8 |
<div id="account-modal" class="ct-panel" data-behaviour="modal">
|
| 9 |
+
<div class="ct-panel-actions">
|
| 10 |
+
<div class="close-button">
|
| 11 |
+
<span class="ct-trigger closed">
|
| 12 |
+
<span></span>
|
| 13 |
+
</span>
|
| 14 |
+
</div>
|
| 15 |
</div>
|
| 16 |
|
| 17 |
+
<div class="ct-panel-content">
|
| 18 |
<div class="ct-account-form">
|
| 19 |
<?php if ($users_can_register) { ?>
|
| 20 |
<ul>
|
| 56 |
</a>
|
| 57 |
</p>
|
| 58 |
|
| 59 |
+
<?php do_action('login_form') ?>
|
| 60 |
+
|
| 61 |
<p class="login-submit">
|
| 62 |
<button name="wp-submit" class="ct-button">
|
| 63 |
<?php echo __('Log In', 'blc') ?>
|
| 88 |
<input type="email" name="user_email" id="user_email" class="input" value="" size="25">
|
| 89 |
</p>
|
| 90 |
|
| 91 |
+
<?php do_action('register_form') ?>
|
| 92 |
+
|
| 93 |
<p id="reg_passmail">
|
| 94 |
<?php echo __('Registration confirmation will be emailed to you', 'blc') ?>
|
| 95 |
</p>
|
| 99 |
<?php echo __('Register', 'blc') ?>
|
| 100 |
</button>
|
| 101 |
|
| 102 |
+
<!-- <input type="hidden" name="redirect_to" value="<?php echo blocksy_current_url() ?>"> -->
|
| 103 |
</p>
|
| 104 |
|
| 105 |
<?php do_action('blocksy:account:modal:register:end'); ?>
|
| 123 |
<?php echo __('Get New Password', 'blc') ?>
|
| 124 |
</button>
|
| 125 |
|
| 126 |
+
<!-- <input type="hidden" name="redirect_to" value="<?php echo blocksy_current_url() ?>"> -->
|
| 127 |
</p>
|
| 128 |
|
| 129 |
<?php do_action('blocksy:account:modal:lostpassword:end'); ?>
|
framework/features/header/items/account/config.php
CHANGED
|
@@ -3,9 +3,22 @@
|
|
| 3 |
$config = [
|
| 4 |
'name' => __('Account', 'blocksy'),
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
| 8 |
'selective_refresh' => [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
'logo_type',
|
| 10 |
'blogname',
|
| 11 |
'custom_logo',
|
|
@@ -14,7 +27,9 @@ $config = [
|
|
| 14 |
'has_tagline',
|
| 15 |
'site_description_wrapper',
|
| 16 |
'site_title_wrapper'
|
|
|
|
| 17 |
],
|
|
|
|
| 18 |
|
| 19 |
'translation_keys' => [
|
| 20 |
['key' => 'blogname']
|
| 3 |
$config = [
|
| 4 |
'name' => __('Account', 'blocksy'),
|
| 5 |
|
| 6 |
+
'typography_keys' => ['account_label_font'],
|
| 7 |
+
|
| 8 |
'selective_refresh' => [
|
| 9 |
+
'account_state',
|
| 10 |
+
'account_link',
|
| 11 |
+
'loggedin_media',
|
| 12 |
+
'account_loggedin_icon',
|
| 13 |
+
'account_loggedin_icon_position',
|
| 14 |
+
'loggedin_text',
|
| 15 |
+
'login_account_action',
|
| 16 |
+
'loggedout_account_custom_page',
|
| 17 |
+
'login_style',
|
| 18 |
+
'accountHeaderIcon',
|
| 19 |
+
'accountHeaderIconPosition',
|
| 20 |
+
|
| 21 |
+
/*
|
| 22 |
'logo_type',
|
| 23 |
'blogname',
|
| 24 |
'custom_logo',
|
| 27 |
'has_tagline',
|
| 28 |
'site_description_wrapper',
|
| 29 |
'site_title_wrapper'
|
| 30 |
+
*/
|
| 31 |
],
|
| 32 |
+
/*
|
| 33 |
|
| 34 |
'translation_keys' => [
|
| 35 |
['key' => 'blogname']
|
framework/features/header/items/account/dynamic-styles.php
CHANGED
|
@@ -12,10 +12,32 @@ if ($accountHeaderIconSize !== 15) {
|
|
| 12 |
'css' => $css,
|
| 13 |
'tablet_css' => $tablet_css,
|
| 14 |
'mobile_css' => $mobile_css,
|
| 15 |
-
'selector' =>
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
'variableName' => 'icon-size',
|
| 20 |
'value' => $accountHeaderIconSize,
|
| 21 |
]);
|
|
@@ -39,8 +61,31 @@ if ($accountHeaderAvatarSize !== 18) {
|
|
| 39 |
]);
|
| 40 |
}
|
| 41 |
|
| 42 |
-
|
| 43 |
// Modal background
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
blocksy_output_background_css([
|
| 45 |
'selector' => blc_call_fn([
|
| 46 |
'fn' => 'blocksy_assemble_selector',
|
|
@@ -57,13 +102,40 @@ blocksy_output_background_css([
|
|
| 57 |
blocksy_background_default_value([
|
| 58 |
'backgroundColor' => [
|
| 59 |
'default' => [
|
| 60 |
-
'color' => 'rgba(18, 21, 25, 0.
|
| 61 |
],
|
| 62 |
],
|
| 63 |
])
|
| 64 |
)
|
| 65 |
]);
|
| 66 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
|
| 68 |
// Item margin
|
| 69 |
blocksy_output_spacing([
|
|
@@ -83,6 +155,29 @@ blocksy_output_spacing([
|
|
| 83 |
)
|
| 84 |
]);
|
| 85 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 86 |
// default state
|
| 87 |
blocksy_output_colors([
|
| 88 |
'value' => blocksy_akg('accountHeaderColor', $atts),
|
| 12 |
'css' => $css,
|
| 13 |
'tablet_css' => $tablet_css,
|
| 14 |
'mobile_css' => $mobile_css,
|
| 15 |
+
'selector' => blocksy_assemble_selector(
|
| 16 |
+
blocksy_mutate_selector([
|
| 17 |
+
'selector' => [$root_selector[0]],
|
| 18 |
+
'operation' => 'suffix',
|
| 19 |
+
'to_add' => '[data-state="out"]'
|
| 20 |
+
])
|
| 21 |
+
),
|
| 22 |
+
'variableName' => 'icon-size',
|
| 23 |
+
'value' => $accountHeaderIconSize,
|
| 24 |
+
]);
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
$accountHeaderIconSize = blocksy_akg( 'account_loggedin_icon_size', $atts, 15 );
|
| 28 |
+
|
| 29 |
+
if ($accountHeaderIconSize !== 15) {
|
| 30 |
+
blocksy_output_responsive([
|
| 31 |
+
'css' => $css,
|
| 32 |
+
'tablet_css' => $tablet_css,
|
| 33 |
+
'mobile_css' => $mobile_css,
|
| 34 |
+
'selector' => blocksy_assemble_selector(
|
| 35 |
+
blocksy_mutate_selector([
|
| 36 |
+
'selector' => [$root_selector[0]],
|
| 37 |
+
'operation' => 'suffix',
|
| 38 |
+
'to_add' => '[data-state="in"]'
|
| 39 |
+
])
|
| 40 |
+
),
|
| 41 |
'variableName' => 'icon-size',
|
| 42 |
'value' => $accountHeaderIconSize,
|
| 43 |
]);
|
| 61 |
]);
|
| 62 |
}
|
| 63 |
|
|
|
|
| 64 |
// Modal background
|
| 65 |
+
blocksy_output_background_css([
|
| 66 |
+
'selector' => blc_call_fn([
|
| 67 |
+
'fn' => 'blocksy_assemble_selector',
|
| 68 |
+
'default' => $root_selector
|
| 69 |
+
], blc_call_fn([
|
| 70 |
+
'fn' => 'blocksy_mutate_selector',
|
| 71 |
+
], [
|
| 72 |
+
'selector' => [$root_selector[0]],
|
| 73 |
+
'operation' => 'suffix',
|
| 74 |
+
'to_add' => '#account-modal .ct-account-form'
|
| 75 |
+
])),
|
| 76 |
+
'css' => $css,
|
| 77 |
+
'value' => blocksy_akg('accountHeaderFormBackground', $atts,
|
| 78 |
+
blocksy_background_default_value([
|
| 79 |
+
'backgroundColor' => [
|
| 80 |
+
'default' => [
|
| 81 |
+
'color' => '#ffffff'
|
| 82 |
+
],
|
| 83 |
+
],
|
| 84 |
+
])
|
| 85 |
+
)
|
| 86 |
+
]);
|
| 87 |
+
|
| 88 |
+
// Modal backdrop
|
| 89 |
blocksy_output_background_css([
|
| 90 |
'selector' => blc_call_fn([
|
| 91 |
'fn' => 'blocksy_assemble_selector',
|
| 102 |
blocksy_background_default_value([
|
| 103 |
'backgroundColor' => [
|
| 104 |
'default' => [
|
| 105 |
+
'color' => 'rgba(18, 21, 25, 0.6)'
|
| 106 |
],
|
| 107 |
],
|
| 108 |
])
|
| 109 |
)
|
| 110 |
]);
|
| 111 |
|
| 112 |
+
blocksy_output_box_shadow([
|
| 113 |
+
'css' => $css,
|
| 114 |
+
'tablet_css' => $tablet_css,
|
| 115 |
+
'mobile_css' => $mobile_css,
|
| 116 |
+
'selector' => blc_call_fn([
|
| 117 |
+
'fn' => 'blocksy_assemble_selector',
|
| 118 |
+
'default' => $root_selector
|
| 119 |
+
], blc_call_fn([
|
| 120 |
+
'fn' => 'blocksy_mutate_selector',
|
| 121 |
+
], [
|
| 122 |
+
'selector' => [$root_selector[0]],
|
| 123 |
+
'operation' => 'suffix',
|
| 124 |
+
'to_add' => '#account-modal .ct-account-form'
|
| 125 |
+
])),
|
| 126 |
+
'value' => blocksy_akg('account_form_shadow', $atts, blocksy_box_shadow_value([
|
| 127 |
+
'enable' => true,
|
| 128 |
+
'h_offset' => 0,
|
| 129 |
+
'v_offset' => 0,
|
| 130 |
+
'blur' => 70,
|
| 131 |
+
'spread' => 0,
|
| 132 |
+
'inset' => false,
|
| 133 |
+
'color' => [
|
| 134 |
+
'color' => 'rgba(0, 0, 0, 0.35)',
|
| 135 |
+
],
|
| 136 |
+
])),
|
| 137 |
+
'responsive' => true
|
| 138 |
+
]);
|
| 139 |
|
| 140 |
// Item margin
|
| 141 |
blocksy_output_spacing([
|
| 155 |
)
|
| 156 |
]);
|
| 157 |
|
| 158 |
+
blocksy_output_font_css([
|
| 159 |
+
'font_value' => blocksy_akg( 'account_label_font', $atts,
|
| 160 |
+
blocksy_typography_default_values([
|
| 161 |
+
'size' => '12px',
|
| 162 |
+
'variation' => 'n6',
|
| 163 |
+
'text-transform' => 'uppercase',
|
| 164 |
+
])
|
| 165 |
+
),
|
| 166 |
+
'css' => $css,
|
| 167 |
+
'tablet_css' => $tablet_css,
|
| 168 |
+
'mobile_css' => $mobile_css,
|
| 169 |
+
'selector' => blc_call_fn([
|
| 170 |
+
'fn' => 'blocksy_assemble_selector',
|
| 171 |
+
'default' => $root_selector
|
| 172 |
+
], blc_call_fn([
|
| 173 |
+
'fn' => 'blocksy_mutate_selector',
|
| 174 |
+
], [
|
| 175 |
+
'selector' => [$root_selector[0]],
|
| 176 |
+
'operation' => 'suffix',
|
| 177 |
+
'to_add' => '.ct-header-account .ct-label'
|
| 178 |
+
])),
|
| 179 |
+
]);
|
| 180 |
+
|
| 181 |
// default state
|
| 182 |
blocksy_output_colors([
|
| 183 |
'value' => blocksy_akg('accountHeaderColor', $atts),
|
framework/features/header/items/account/options.php
CHANGED
|
@@ -2,105 +2,247 @@
|
|
| 2 |
|
| 3 |
$options = [
|
| 4 |
blocksy_rand_md5() => [
|
| 5 |
-
'
|
| 6 |
-
'
|
| 7 |
-
|
| 8 |
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
],
|
| 13 |
|
| 14 |
-
'
|
| 15 |
-
'
|
| 16 |
-
'
|
| 17 |
-
'design' => 'block',
|
| 18 |
-
'view' => 'text',
|
| 19 |
-
'disableRevertButton' => true,
|
| 20 |
-
'setting' => [ 'transport' => 'postMessage' ],
|
| 21 |
-
'value' => [
|
| 22 |
-
'icon' => true,
|
| 23 |
-
'label' => false,
|
| 24 |
-
],
|
| 25 |
-
|
| 26 |
-
'choices' => blocksy_ordered_keys([
|
| 27 |
-
'icon' => __( 'Icon', 'blc' ),
|
| 28 |
-
'label' => __( 'Label', 'blc' ),
|
| 29 |
-
]),
|
| 30 |
],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
blocksy_rand_md5() => [
|
| 33 |
'type' => 'ct-condition',
|
| 34 |
-
'condition' => [ '
|
| 35 |
'options' => [
|
| 36 |
|
| 37 |
-
'
|
| 38 |
-
'label' => __( '
|
| 39 |
-
'type' => 'ct-
|
| 40 |
-
'
|
| 41 |
-
'
|
| 42 |
-
'
|
| 43 |
-
'
|
| 44 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
],
|
| 46 |
|
| 47 |
-
|
| 48 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
'setting' => [ 'transport' => 'postMessage' ],
|
| 61 |
-
'value' => __('Login', 'blc')
|
| 62 |
],
|
| 63 |
|
| 64 |
-
|
| 65 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
|
|
|
|
|
|
|
| 67 |
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 72 |
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
],
|
| 84 |
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
'condition' => [ 'loggedin_style/avatar' => true ],
|
| 94 |
-
'options' => [
|
| 95 |
|
| 96 |
-
|
| 97 |
-
'
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
'
|
| 102 |
-
'
|
|
|
|
|
|
|
| 103 |
'setting' => [ 'transport' => 'postMessage' ],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 104 |
],
|
| 105 |
|
| 106 |
],
|
|
@@ -108,52 +250,154 @@ $options = [
|
|
| 108 |
|
| 109 |
blocksy_rand_md5() => [
|
| 110 |
'type' => 'ct-condition',
|
| 111 |
-
'condition' => [ '
|
| 112 |
'options' => [
|
| 113 |
|
| 114 |
-
'
|
| 115 |
-
'label' => __('
|
| 116 |
-
'type' => '
|
|
|
|
|
|
|
| 117 |
'design' => 'inline',
|
| 118 |
'setting' => [ 'transport' => 'postMessage' ],
|
| 119 |
-
'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 120 |
],
|
| 121 |
|
| 122 |
-
|
| 123 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 124 |
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
'type' => 'ct-select',
|
| 128 |
-
'value' => 'profile',
|
| 129 |
-
'view' => 'text',
|
| 130 |
-
'design' => 'inline',
|
| 131 |
-
'desc' => __( 'Set the action you want to make when clicking on the element whyile you are logged in.', 'blc' ),
|
| 132 |
-
'setting' => [ 'transport' => 'postMessage' ],
|
| 133 |
-
'choices' => blocksy_ordered_keys(
|
| 134 |
-
[
|
| 135 |
-
'profile' => __( 'Profile Page', 'blc' ),
|
| 136 |
-
'dashboard' => __( 'Dashboard Page', 'blc' ),
|
| 137 |
-
'logout' => __( 'Logout', 'blc' ),
|
| 138 |
-
'custom' => __( 'Custom Page', 'blc' ),
|
| 139 |
-
]
|
| 140 |
-
),
|
| 141 |
-
],
|
| 142 |
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
'options' => [
|
| 147 |
|
| 148 |
-
'
|
| 149 |
-
'label' => __( '
|
| 150 |
-
'type' => '
|
| 151 |
-
'design' => '
|
|
|
|
| 152 |
'disableRevertButton' => true,
|
| 153 |
'setting' => [ 'transport' => 'postMessage' ],
|
| 154 |
-
'value' =>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 155 |
],
|
| 156 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 157 |
],
|
| 158 |
],
|
| 159 |
|
|
@@ -161,20 +405,23 @@ $options = [
|
|
| 161 |
'type' => 'ct-condition',
|
| 162 |
'condition' => [
|
| 163 |
'any' => [
|
| 164 |
-
'
|
| 165 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 166 |
]
|
| 167 |
],
|
| 168 |
'options' => [
|
| 169 |
-
blocksy_rand_md5() => [
|
| 170 |
-
'type' => 'ct-divider',
|
| 171 |
-
],
|
| 172 |
-
|
| 173 |
'account_label_visibility' => [
|
| 174 |
-
'label' => __( 'Label Visibility', 'blc' ),
|
| 175 |
'type' => 'ct-visibility',
|
| 176 |
'design' => 'block',
|
| 177 |
-
|
| 178 |
'setting' => [ 'transport' => 'postMessage' ],
|
| 179 |
'value' => [
|
| 180 |
'desktop' => true,
|
|
@@ -194,13 +441,24 @@ $options = [
|
|
| 194 |
],
|
| 195 |
|
| 196 |
blocksy_rand_md5() => [
|
| 197 |
-
'title' => __( 'Design', '
|
| 198 |
'type' => 'tab',
|
| 199 |
'options' => [
|
| 200 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 201 |
blocksy_rand_md5() => [
|
| 202 |
'type' => 'ct-labeled-group',
|
| 203 |
-
'label' => __( '
|
| 204 |
'responsive' => true,
|
| 205 |
'choices' => [
|
| 206 |
[
|
|
@@ -229,7 +487,7 @@ $options = [
|
|
| 229 |
'options' => [
|
| 230 |
|
| 231 |
'accountHeaderColor' => [
|
| 232 |
-
'label' => __( '
|
| 233 |
'type' => 'ct-color-picker',
|
| 234 |
'design' => 'block:right',
|
| 235 |
'responsive' => true,
|
|
@@ -260,7 +518,7 @@ $options = [
|
|
| 260 |
],
|
| 261 |
|
| 262 |
'transparentAccountHeaderColor' => [
|
| 263 |
-
'label' => __( '
|
| 264 |
'type' => 'ct-color-picker',
|
| 265 |
'design' => 'block:right',
|
| 266 |
'responsive' => true,
|
|
@@ -290,7 +548,7 @@ $options = [
|
|
| 290 |
],
|
| 291 |
|
| 292 |
'stickyAccountHeaderColor' => [
|
| 293 |
-
'label' => __( '
|
| 294 |
'type' => 'ct-color-picker',
|
| 295 |
'design' => 'block:right',
|
| 296 |
'responsive' => true,
|
|
@@ -337,87 +595,136 @@ $options = [
|
|
| 337 |
],
|
| 338 |
|
| 339 |
blocksy_rand_md5() => [
|
| 340 |
-
'type' => 'ct-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 341 |
],
|
| 342 |
|
| 343 |
-
|
| 344 |
-
'
|
| 345 |
-
'
|
| 346 |
-
'
|
| 347 |
-
'setting' => [ 'transport' => 'postMessage' ],
|
| 348 |
|
| 349 |
-
|
| 350 |
-
|
| 351 |
-
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
|
| 352 |
],
|
| 353 |
|
| 354 |
-
'
|
| 355 |
-
'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 356 |
],
|
| 357 |
-
],
|
| 358 |
|
| 359 |
-
|
| 360 |
-
|
| 361 |
-
'
|
| 362 |
-
'
|
| 363 |
-
'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 364 |
],
|
| 365 |
|
| 366 |
-
[
|
| 367 |
-
'
|
| 368 |
-
'
|
| 369 |
-
'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 370 |
],
|
| 371 |
-
],
|
| 372 |
-
],
|
| 373 |
|
| 374 |
-
|
| 375 |
-
|
| 376 |
-
|
| 377 |
-
|
| 378 |
-
|
|
|
|
| 379 |
|
| 380 |
-
|
| 381 |
-
|
| 382 |
-
|
| 383 |
-
|
| 384 |
|
| 385 |
-
|
| 386 |
-
|
| 387 |
-
|
| 388 |
-
|
| 389 |
|
| 390 |
-
|
| 391 |
-
|
| 392 |
-
|
| 393 |
-
|
| 394 |
-
|
| 395 |
-
|
| 396 |
|
| 397 |
-
|
| 398 |
-
|
| 399 |
-
|
| 400 |
-
|
|
|
|
|
|
|
| 401 |
],
|
| 402 |
-
],
|
| 403 |
-
],
|
| 404 |
|
| 405 |
-
|
| 406 |
-
|
| 407 |
-
|
| 408 |
-
|
| 409 |
-
|
| 410 |
-
|
| 411 |
-
|
| 412 |
-
|
| 413 |
-
|
| 414 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 415 |
],
|
| 416 |
],
|
| 417 |
-
|
|
|
|
| 418 |
],
|
| 419 |
|
| 420 |
],
|
| 421 |
],
|
| 422 |
];
|
| 423 |
-
|
| 2 |
|
| 3 |
$options = [
|
| 4 |
blocksy_rand_md5() => [
|
| 5 |
+
'type' => 'ct-title',
|
| 6 |
+
'label' => __( 'Customizing: Logged in State', 'blc' ),
|
| 7 |
+
],
|
| 8 |
|
| 9 |
+
'account_state' => [
|
| 10 |
+
'label' => false,
|
| 11 |
+
'type' => 'ct-image-picker',
|
| 12 |
+
'value' => 'in',
|
| 13 |
+
'attr' => [ 'data-type' => 'background' ],
|
| 14 |
+
'switchDeviceOnChange' => 'desktop',
|
| 15 |
+
'choices' => [
|
| 16 |
+
'in' => [
|
| 17 |
+
'src' => blocksy_image_picker_url( 'log-in-state.svg' ),
|
| 18 |
+
'title' => __( 'Logged In Options', 'blc' ),
|
| 19 |
],
|
| 20 |
|
| 21 |
+
'out' => [
|
| 22 |
+
'src' => blocksy_image_picker_url('log-out-state.svg'),
|
| 23 |
+
'title' => __('Logged Out Options', 'blc'),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
],
|
| 25 |
+
],
|
| 26 |
+
],
|
| 27 |
+
|
| 28 |
+
blocksy_rand_md5() => [
|
| 29 |
+
'type' => 'ct-divider',
|
| 30 |
+
],
|
| 31 |
+
|
| 32 |
+
blocksy_rand_md5() => [
|
| 33 |
+
'title' => __( 'General', 'blocksy' ),
|
| 34 |
+
'type' => 'tab',
|
| 35 |
+
'options' => [
|
| 36 |
|
| 37 |
blocksy_rand_md5() => [
|
| 38 |
'type' => 'ct-condition',
|
| 39 |
+
'condition' => [ 'account_state' => 'in' ],
|
| 40 |
'options' => [
|
| 41 |
|
| 42 |
+
'account_link' => [
|
| 43 |
+
'label' => __( 'Account Action', 'blc' ),
|
| 44 |
+
'type' => 'ct-select',
|
| 45 |
+
'value' => 'profile',
|
| 46 |
+
'view' => 'text',
|
| 47 |
+
'design' => 'inline',
|
| 48 |
+
'choices' => blocksy_ordered_keys(
|
| 49 |
+
[
|
| 50 |
+
'profile' => __( 'Profile Page', 'blc' ),
|
| 51 |
+
'dashboard' => __( 'Dashboard Page', 'blc' ),
|
| 52 |
+
// 'menu' => __( 'Menu', 'blc' ),
|
| 53 |
+
'custom' => __( 'Custom Link', 'blc' ),
|
| 54 |
+
'logout' => __( 'Logout', 'blc' ),
|
| 55 |
+
]
|
| 56 |
+
),
|
| 57 |
],
|
| 58 |
|
| 59 |
+
blocksy_rand_md5() => [
|
| 60 |
+
'type' => 'ct-condition',
|
| 61 |
+
'condition' => [ 'account_link' => 'menu' ],
|
| 62 |
+
'options' => [
|
| 63 |
+
'loggedin_account_menu' => [
|
| 64 |
+
'label' => __('Select Menu', 'blc'),
|
| 65 |
+
'type' => 'ct-select',
|
| 66 |
+
'value' => 'blocksy_location',
|
| 67 |
+
'view' => 'text',
|
| 68 |
+
'design' => 'inline',
|
| 69 |
+
'setting' => ['transport' => 'postMessage'],
|
| 70 |
+
'placeholder' => __('Select menu...', 'blc'),
|
| 71 |
+
'choices' => blocksy_ordered_keys(blocksy_get_menus_items()),
|
| 72 |
+
'desc' => sprintf(
|
| 73 |
+
// translators: placeholder here means the actual URL.
|
| 74 |
+
__( 'Manage your menu items in the %sMenus screen%s.', 'blc' ),
|
| 75 |
+
sprintf(
|
| 76 |
+
'<a href="%s" target="_blank">',
|
| 77 |
+
admin_url('/nav-menus.php')
|
| 78 |
+
),
|
| 79 |
+
'</a>'
|
| 80 |
+
),
|
| 81 |
+
],
|
| 82 |
+
],
|
| 83 |
+
],
|
| 84 |
|
| 85 |
+
blocksy_rand_md5() => [
|
| 86 |
+
'type' => 'ct-condition',
|
| 87 |
+
'condition' => [ 'account_link' => 'custom' ],
|
| 88 |
+
'options' => [
|
| 89 |
+
|
| 90 |
+
'account_custom_page' => [
|
| 91 |
+
'label' => __( 'Custom Page Link', 'blc' ),
|
| 92 |
+
'type' => 'text',
|
| 93 |
+
'design' => 'inline',
|
| 94 |
+
'disableRevertButton' => true,
|
| 95 |
+
'value' => ''
|
| 96 |
+
],
|
| 97 |
|
| 98 |
+
],
|
| 99 |
+
],
|
| 100 |
+
|
| 101 |
+
blocksy_rand_md5() => [
|
| 102 |
+
'type' => 'ct-divider',
|
| 103 |
+
],
|
| 104 |
+
|
| 105 |
+
'loggedin_media' => [
|
| 106 |
+
'label' => __( 'Media Type', 'blc' ),
|
| 107 |
+
'type' => 'ct-radio',
|
| 108 |
+
'design' => 'block',
|
| 109 |
+
'view' => 'text',
|
| 110 |
+
'value' => 'avatar',
|
| 111 |
+
'choices' => [
|
| 112 |
+
'avatar' => __( 'Avatar', 'blc' ),
|
| 113 |
+
'icon' => __( 'Icon', 'blc' ),
|
| 114 |
+
'none' => __( 'None', 'blc' ),
|
| 115 |
+
],
|
| 116 |
'setting' => [ 'transport' => 'postMessage' ],
|
|
|
|
| 117 |
],
|
| 118 |
|
| 119 |
+
blocksy_rand_md5() => [
|
| 120 |
+
'type' => 'ct-condition',
|
| 121 |
+
'condition' => [ 'loggedin_media' => 'avatar' ],
|
| 122 |
+
'options' => [
|
| 123 |
+
|
| 124 |
+
'accountHeaderAvatarSize' => [
|
| 125 |
+
'label' => __( 'Avatar Size', 'blc' ),
|
| 126 |
+
'type' => 'ct-slider',
|
| 127 |
+
'min' => 10,
|
| 128 |
+
'max' => 40,
|
| 129 |
+
'value' => 18,
|
| 130 |
+
'responsive' => true,
|
| 131 |
+
'divider' => 'top',
|
| 132 |
+
'setting' => [ 'transport' => 'postMessage' ],
|
| 133 |
+
],
|
| 134 |
|
| 135 |
+
],
|
| 136 |
+
],
|
| 137 |
|
| 138 |
+
blocksy_rand_md5() => [
|
| 139 |
+
'type' => 'ct-condition',
|
| 140 |
+
'condition' => [ 'loggedin_media' => 'icon' ],
|
| 141 |
+
'options' => [
|
| 142 |
+
|
| 143 |
+
'account_loggedin_icon' => [
|
| 144 |
+
'label' => false,
|
| 145 |
+
'type' => 'ct-image-picker',
|
| 146 |
+
'value' => 'type-1',
|
| 147 |
+
'attr' => [
|
| 148 |
+
'data-type' => 'background',
|
| 149 |
+
'data-columns' => '3',
|
| 150 |
+
],
|
| 151 |
+
'divider' => 'top',
|
| 152 |
+
'setting' => [ 'transport' => 'postMessage' ],
|
| 153 |
+
'choices' => [
|
| 154 |
+
|
| 155 |
+
'type-1' => [
|
| 156 |
+
'src' => blocksy_image_picker_file( 'account-1' ),
|
| 157 |
+
'title' => __( 'Type 1', 'blocksy' ),
|
| 158 |
+
],
|
| 159 |
+
|
| 160 |
+
'type-2' => [
|
| 161 |
+
'src' => blocksy_image_picker_file( 'account-2' ),
|
| 162 |
+
'title' => __( 'Type 2', 'blocksy' ),
|
| 163 |
+
],
|
| 164 |
+
|
| 165 |
+
'type-3' => [
|
| 166 |
+
'src' => blocksy_image_picker_file( 'account-3' ),
|
| 167 |
+
'title' => __( 'Type 3', 'blocksy' ),
|
| 168 |
+
],
|
| 169 |
+
|
| 170 |
+
'type-4' => [
|
| 171 |
+
'src' => blocksy_image_picker_file( 'account-4' ),
|
| 172 |
+
'title' => __( 'Type 4', 'blocksy' ),
|
| 173 |
+
],
|
| 174 |
+
|
| 175 |
+
'type-5' => [
|
| 176 |
+
'src' => blocksy_image_picker_file( 'account-5' ),
|
| 177 |
+
'title' => __( 'Type 5', 'blocksy' ),
|
| 178 |
+
],
|
| 179 |
+
|
| 180 |
+
'type-6' => [
|
| 181 |
+
'src' => blocksy_image_picker_file( 'account-6' ),
|
| 182 |
+
'title' => __( 'Type 6', 'blocksy' ),
|
| 183 |
+
],
|
| 184 |
+
],
|
| 185 |
+
],
|
| 186 |
|
| 187 |
+
'account_loggedin_icon_size' => [
|
| 188 |
+
'label' => __( 'Icon Size', 'blc' ),
|
| 189 |
+
'type' => 'ct-slider',
|
| 190 |
+
'min' => 5,
|
| 191 |
+
'max' => 50,
|
| 192 |
+
'value' => 15,
|
| 193 |
+
'responsive' => true,
|
| 194 |
+
'divider' => 'top',
|
| 195 |
+
'setting' => [ 'transport' => 'postMessage' ],
|
| 196 |
+
],
|
|
|
|
| 197 |
|
| 198 |
+
'account_loggedin_icon_position' => [
|
| 199 |
+
'type' => 'ct-radio',
|
| 200 |
+
'label' => __( 'Icon Alignment', 'blc' ),
|
| 201 |
+
'value' => 'left',
|
| 202 |
+
'view' => 'text',
|
| 203 |
+
'design' => 'block',
|
| 204 |
+
'choices' => [
|
| 205 |
+
'left' => __( 'Left', 'blc' ),
|
| 206 |
+
'right' => __( 'Right', 'blc' ),
|
| 207 |
+
],
|
| 208 |
+
],
|
| 209 |
|
| 210 |
+
],
|
| 211 |
+
],
|
|
|
|
|
|
|
| 212 |
|
| 213 |
+
blocksy_rand_md5() => [
|
| 214 |
+
'type' => 'ct-divider',
|
| 215 |
+
],
|
| 216 |
+
|
| 217 |
+
'loggedin_text' => [
|
| 218 |
+
'label' => __( 'Text Type', 'blc' ),
|
| 219 |
+
'type' => 'ct-radio',
|
| 220 |
+
'design' => 'block',
|
| 221 |
+
'view' => 'text',
|
| 222 |
'setting' => [ 'transport' => 'postMessage' ],
|
| 223 |
+
'value' => 'label',
|
| 224 |
+
'choices' => [
|
| 225 |
+
'label' => __( 'Label', 'blc' ),
|
| 226 |
+
'username' => __( 'Name', 'blc' ),
|
| 227 |
+
'none' => __( 'None', 'blc' ),
|
| 228 |
+
],
|
| 229 |
+
],
|
| 230 |
+
|
| 231 |
+
blocksy_rand_md5() => [
|
| 232 |
+
'type' => 'ct-condition',
|
| 233 |
+
'condition' => [ 'loggedin_text' => 'label' ],
|
| 234 |
+
'options' => [
|
| 235 |
+
|
| 236 |
+
'loggedin_label' => [
|
| 237 |
+
'label' => __( 'Custom Label', 'blc' ),
|
| 238 |
+
'type' => 'text',
|
| 239 |
+
'design' => 'inline',
|
| 240 |
+
'divider' => 'top',
|
| 241 |
+
'setting' => [ 'transport' => 'postMessage' ],
|
| 242 |
+
'value' => __('My Account', 'blc')
|
| 243 |
+
],
|
| 244 |
+
|
| 245 |
+
],
|
| 246 |
],
|
| 247 |
|
| 248 |
],
|
| 250 |
|
| 251 |
blocksy_rand_md5() => [
|
| 252 |
'type' => 'ct-condition',
|
| 253 |
+
'condition' => [ 'account_state' => 'out' ],
|
| 254 |
'options' => [
|
| 255 |
|
| 256 |
+
'login_account_action' => [
|
| 257 |
+
'label' => __( 'Account Action', 'blc' ),
|
| 258 |
+
'type' => 'ct-select',
|
| 259 |
+
'value' => 'modal',
|
| 260 |
+
'view' => 'text',
|
| 261 |
'design' => 'inline',
|
| 262 |
'setting' => [ 'transport' => 'postMessage' ],
|
| 263 |
+
'choices' => blocksy_ordered_keys(
|
| 264 |
+
[
|
| 265 |
+
'modal' => __( 'Modal', 'blc' ),
|
| 266 |
+
'custom' => __( 'Custom Link', 'blc' ),
|
| 267 |
+
]
|
| 268 |
+
),
|
| 269 |
],
|
| 270 |
|
| 271 |
+
blocksy_rand_md5() => [
|
| 272 |
+
'type' => 'ct-condition',
|
| 273 |
+
'condition' => [ 'login_account_action' => 'custom' ],
|
| 274 |
+
'options' => [
|
| 275 |
+
|
| 276 |
+
'loggedout_account_custom_page' => [
|
| 277 |
+
'label' => __( 'Custom Page Link', 'blc' ),
|
| 278 |
+
'type' => 'text',
|
| 279 |
+
'design' => 'inline',
|
| 280 |
+
'disableRevertButton' => true,
|
| 281 |
+
'setting' => [ 'transport' => 'postMessage' ],
|
| 282 |
+
'value' => ''
|
| 283 |
+
],
|
| 284 |
|
| 285 |
+
],
|
| 286 |
+
],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 287 |
|
| 288 |
+
blocksy_rand_md5() => [
|
| 289 |
+
'type' => 'ct-divider',
|
| 290 |
+
],
|
|
|
|
| 291 |
|
| 292 |
+
'login_style' => [
|
| 293 |
+
'label' => __( 'View Type', 'blc' ),
|
| 294 |
+
'type' => 'ct-checkboxes',
|
| 295 |
+
'design' => 'block',
|
| 296 |
+
'view' => 'text',
|
| 297 |
'disableRevertButton' => true,
|
| 298 |
'setting' => [ 'transport' => 'postMessage' ],
|
| 299 |
+
'value' => [
|
| 300 |
+
'icon' => true,
|
| 301 |
+
'label' => true,
|
| 302 |
+
],
|
| 303 |
+
|
| 304 |
+
'choices' => blocksy_ordered_keys([
|
| 305 |
+
'icon' => __( 'Icon', 'blc' ),
|
| 306 |
+
'label' => __( 'Label', 'blc' ),
|
| 307 |
+
]),
|
| 308 |
+
],
|
| 309 |
+
|
| 310 |
+
blocksy_rand_md5() => [
|
| 311 |
+
'type' => 'ct-condition',
|
| 312 |
+
'condition' => [ 'login_style/icon' => true ],
|
| 313 |
+
'options' => [
|
| 314 |
+
|
| 315 |
+
'accountHeaderIcon' => [
|
| 316 |
+
'label' => false,
|
| 317 |
+
'type' => 'ct-image-picker',
|
| 318 |
+
'value' => 'type-1',
|
| 319 |
+
'attr' => [
|
| 320 |
+
'data-type' => 'background',
|
| 321 |
+
'data-columns' => '3',
|
| 322 |
+
],
|
| 323 |
+
'divider' => 'top',
|
| 324 |
+
'setting' => [ 'transport' => 'postMessage' ],
|
| 325 |
+
'choices' => [
|
| 326 |
+
|
| 327 |
+
'type-1' => [
|
| 328 |
+
'src' => blocksy_image_picker_file( 'account-1' ),
|
| 329 |
+
'title' => __( 'Type 1', 'blocksy' ),
|
| 330 |
+
],
|
| 331 |
+
|
| 332 |
+
'type-2' => [
|
| 333 |
+
'src' => blocksy_image_picker_file( 'account-2' ),
|
| 334 |
+
'title' => __( 'Type 2', 'blocksy' ),
|
| 335 |
+
],
|
| 336 |
+
|
| 337 |
+
'type-3' => [
|
| 338 |
+
'src' => blocksy_image_picker_file( 'account-3' ),
|
| 339 |
+
'title' => __( 'Type 3', 'blocksy' ),
|
| 340 |
+
],
|
| 341 |
+
|
| 342 |
+
'type-4' => [
|
| 343 |
+
'src' => blocksy_image_picker_file( 'account-4' ),
|
| 344 |
+
'title' => __( 'Type 4', 'blocksy' ),
|
| 345 |
+
],
|
| 346 |
+
|
| 347 |
+
'type-5' => [
|
| 348 |
+
'src' => blocksy_image_picker_file( 'account-5' ),
|
| 349 |
+
'title' => __( 'Type 5', 'blocksy' ),
|
| 350 |
+
],
|
| 351 |
+
|
| 352 |
+
'type-6' => [
|
| 353 |
+
'src' => blocksy_image_picker_file( 'account-6' ),
|
| 354 |
+
'title' => __( 'Type 6', 'blocksy' ),
|
| 355 |
+
],
|
| 356 |
+
],
|
| 357 |
+
],
|
| 358 |
+
|
| 359 |
+
'accountHeaderIconSize' => [
|
| 360 |
+
'label' => __( 'Icon Size', 'blc' ),
|
| 361 |
+
'type' => 'ct-slider',
|
| 362 |
+
'min' => 5,
|
| 363 |
+
'max' => 50,
|
| 364 |
+
'value' => 15,
|
| 365 |
+
'responsive' => true,
|
| 366 |
+
'divider' => 'top',
|
| 367 |
+
'setting' => [ 'transport' => 'postMessage' ],
|
| 368 |
+
],
|
| 369 |
+
|
| 370 |
+
'accountHeaderIconPosition' => [
|
| 371 |
+
'type' => 'ct-radio',
|
| 372 |
+
'label' => __( 'Icon Alignment', 'blc' ),
|
| 373 |
+
'value' => 'left',
|
| 374 |
+
'view' => 'text',
|
| 375 |
+
'design' => 'block',
|
| 376 |
+
'choices' => [
|
| 377 |
+
'left' => __( 'Left', 'blc' ),
|
| 378 |
+
'right' => __( 'Right', 'blc' ),
|
| 379 |
+
],
|
| 380 |
+
],
|
| 381 |
+
|
| 382 |
+
],
|
| 383 |
],
|
| 384 |
|
| 385 |
+
blocksy_rand_md5() => [
|
| 386 |
+
'type' => 'ct-condition',
|
| 387 |
+
'condition' => [ 'login_style/label' => true ],
|
| 388 |
+
'options' => [
|
| 389 |
+
|
| 390 |
+
'login_label' => [
|
| 391 |
+
'label' => __('Label', 'blc'),
|
| 392 |
+
'type' => 'text',
|
| 393 |
+
'design' => 'inline',
|
| 394 |
+
'divider' => 'top',
|
| 395 |
+
'disableRevertButton' => true,
|
| 396 |
+
'setting' => [ 'transport' => 'postMessage' ],
|
| 397 |
+
'value' => __('Login', 'blc')
|
| 398 |
+
],
|
| 399 |
+
],
|
| 400 |
+
],
|
| 401 |
],
|
| 402 |
],
|
| 403 |
|
| 405 |
'type' => 'ct-condition',
|
| 406 |
'condition' => [
|
| 407 |
'any' => [
|
| 408 |
+
'all' => [
|
| 409 |
+
'account_state' => 'out',
|
| 410 |
+
'login_style/label' => true,
|
| 411 |
+
],
|
| 412 |
+
|
| 413 |
+
'all~' => [
|
| 414 |
+
'account_state' => 'in',
|
| 415 |
+
'loggedin_text' => '!none'
|
| 416 |
+
]
|
| 417 |
]
|
| 418 |
],
|
| 419 |
'options' => [
|
|
|
|
|
|
|
|
|
|
|
|
|
| 420 |
'account_label_visibility' => [
|
| 421 |
+
'label' => __( 'Label/Name Visibility', 'blc' ),
|
| 422 |
'type' => 'ct-visibility',
|
| 423 |
'design' => 'block',
|
| 424 |
+
'divider' => 'top',
|
| 425 |
'setting' => [ 'transport' => 'postMessage' ],
|
| 426 |
'value' => [
|
| 427 |
'desktop' => true,
|
| 441 |
],
|
| 442 |
|
| 443 |
blocksy_rand_md5() => [
|
| 444 |
+
'title' => __( 'Design', 'blocksy' ),
|
| 445 |
'type' => 'tab',
|
| 446 |
'options' => [
|
| 447 |
|
| 448 |
+
'account_label_font' => [
|
| 449 |
+
'type' => 'ct-typography',
|
| 450 |
+
'label' => __( 'Label/Name Font', 'blc' ),
|
| 451 |
+
'value' => blocksy_typography_default_values([
|
| 452 |
+
'size' => '12px',
|
| 453 |
+
'variation' => 'n6',
|
| 454 |
+
'text-transform' => 'uppercase',
|
| 455 |
+
]),
|
| 456 |
+
'setting' => [ 'transport' => 'postMessage' ],
|
| 457 |
+
],
|
| 458 |
+
|
| 459 |
blocksy_rand_md5() => [
|
| 460 |
'type' => 'ct-labeled-group',
|
| 461 |
+
'label' => __( 'Label/Name Color', 'blc' ),
|
| 462 |
'responsive' => true,
|
| 463 |
'choices' => [
|
| 464 |
[
|
| 487 |
'options' => [
|
| 488 |
|
| 489 |
'accountHeaderColor' => [
|
| 490 |
+
'label' => __( 'Label/Name Color', 'blc' ),
|
| 491 |
'type' => 'ct-color-picker',
|
| 492 |
'design' => 'block:right',
|
| 493 |
'responsive' => true,
|
| 518 |
],
|
| 519 |
|
| 520 |
'transparentAccountHeaderColor' => [
|
| 521 |
+
'label' => __( 'Label/Name Color', 'blc' ),
|
| 522 |
'type' => 'ct-color-picker',
|
| 523 |
'design' => 'block:right',
|
| 524 |
'responsive' => true,
|
| 548 |
],
|
| 549 |
|
| 550 |
'stickyAccountHeaderColor' => [
|
| 551 |
+
'label' => __( 'Label/Name Color', 'blc' ),
|
| 552 |
'type' => 'ct-color-picker',
|
| 553 |
'design' => 'block:right',
|
| 554 |
'responsive' => true,
|
| 595 |
],
|
| 596 |
|
| 597 |
blocksy_rand_md5() => [
|
| 598 |
+
'type' => 'ct-condition',
|
| 599 |
+
'condition' => [ 'account_state' => 'in' ],
|
| 600 |
+
'options' => [
|
| 601 |
+
|
| 602 |
+
],
|
| 603 |
],
|
| 604 |
|
| 605 |
+
blocksy_rand_md5() => [
|
| 606 |
+
'type' => 'ct-condition',
|
| 607 |
+
'condition' => [ 'account_state' => 'out' ],
|
| 608 |
+
'options' => [
|
|
|
|
| 609 |
|
| 610 |
+
blocksy_rand_md5() => [
|
| 611 |
+
'type' => 'ct-divider',
|
|
|
|
| 612 |
],
|
| 613 |
|
| 614 |
+
'account_form_shadow' => [
|
| 615 |
+
'label' => __( 'Form Shadow', 'blc' ),
|
| 616 |
+
'type' => 'ct-box-shadow',
|
| 617 |
+
'design' => 'block',
|
| 618 |
+
'responsive' => true,
|
| 619 |
+
'value' => blocksy_box_shadow_value([
|
| 620 |
+
'enable' => true,
|
| 621 |
+
'h_offset' => 0,
|
| 622 |
+
'v_offset' => 0,
|
| 623 |
+
'blur' => 70,
|
| 624 |
+
'spread' => 0,
|
| 625 |
+
'inset' => false,
|
| 626 |
+
'color' => [
|
| 627 |
+
'color' => 'rgba(0, 0, 0, 0.35)',
|
| 628 |
+
],
|
| 629 |
+
])
|
| 630 |
],
|
|
|
|
| 631 |
|
| 632 |
+
'accountHeaderFormBackground' => [
|
| 633 |
+
'label' => __( 'Form Background', 'blc' ),
|
| 634 |
+
'type' => 'ct-background',
|
| 635 |
+
'design' => 'inline',
|
| 636 |
+
'divider' => 'top',
|
| 637 |
+
'setting' => [ 'transport' => 'postMessage' ],
|
| 638 |
+
'value' => blocksy_background_default_value([
|
| 639 |
+
'backgroundColor' => [
|
| 640 |
+
'default' => [
|
| 641 |
+
'color' => '#ffffff'
|
| 642 |
+
],
|
| 643 |
+
],
|
| 644 |
+
])
|
| 645 |
],
|
| 646 |
|
| 647 |
+
'accountHeaderBackground' => [
|
| 648 |
+
'label' => __( 'Form Backdrop', 'blc' ),
|
| 649 |
+
'type' => 'ct-background',
|
| 650 |
+
'design' => 'inline',
|
| 651 |
+
'divider' => 'top',
|
| 652 |
+
'setting' => [ 'transport' => 'postMessage' ],
|
| 653 |
+
'value' => blocksy_background_default_value([
|
| 654 |
+
'backgroundColor' => [
|
| 655 |
+
'default' => [
|
| 656 |
+
'color' => 'rgba(18, 21, 25, 0.6)'
|
| 657 |
+
],
|
| 658 |
+
],
|
| 659 |
+
])
|
| 660 |
],
|
|
|
|
|
|
|
| 661 |
|
| 662 |
+
'account_close_button_color' => [
|
| 663 |
+
'label' => __( 'Close Icon Color', 'blc' ),
|
| 664 |
+
'type' => 'ct-color-picker',
|
| 665 |
+
'design' => 'inline',
|
| 666 |
+
'divider' => 'top',
|
| 667 |
+
'setting' => [ 'transport' => 'postMessage' ],
|
| 668 |
|
| 669 |
+
'value' => [
|
| 670 |
+
'default' => [
|
| 671 |
+
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
|
| 672 |
+
],
|
| 673 |
|
| 674 |
+
'hover' => [
|
| 675 |
+
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
|
| 676 |
+
],
|
| 677 |
+
],
|
| 678 |
|
| 679 |
+
'pickers' => [
|
| 680 |
+
[
|
| 681 |
+
'title' => __( 'Initial', 'blc' ),
|
| 682 |
+
'id' => 'default',
|
| 683 |
+
'inherit' => 'rgba(255, 255, 255, 0.7)'
|
| 684 |
+
],
|
| 685 |
|
| 686 |
+
[
|
| 687 |
+
'title' => __( 'Hover', 'blc' ),
|
| 688 |
+
'id' => 'hover',
|
| 689 |
+
'inherit' => '#ffffff'
|
| 690 |
+
],
|
| 691 |
+
],
|
| 692 |
],
|
|
|
|
|
|
|
| 693 |
|
| 694 |
+
'account_close_button_shape_color' => [
|
| 695 |
+
'label' => __( 'Close Icon Background', 'blc' ),
|
| 696 |
+
'type' => 'ct-color-picker',
|
| 697 |
+
'design' => 'inline',
|
| 698 |
+
'setting' => [ 'transport' => 'postMessage' ],
|
| 699 |
+
|
| 700 |
+
'value' => [
|
| 701 |
+
'default' => [
|
| 702 |
+
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
|
| 703 |
+
],
|
| 704 |
+
|
| 705 |
+
'hover' => [
|
| 706 |
+
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
|
| 707 |
+
],
|
| 708 |
+
],
|
| 709 |
+
|
| 710 |
+
'pickers' => [
|
| 711 |
+
[
|
| 712 |
+
'title' => __( 'Initial', 'blc' ),
|
| 713 |
+
'id' => 'default',
|
| 714 |
+
'inherit' => 'rgba(0, 0, 0, 0.5)'
|
| 715 |
+
],
|
| 716 |
+
|
| 717 |
+
[
|
| 718 |
+
'title' => __( 'Hover', 'blc' ),
|
| 719 |
+
'id' => 'hover',
|
| 720 |
+
'inherit' => 'rgba(0, 0, 0, 0.5)'
|
| 721 |
+
],
|
| 722 |
],
|
| 723 |
],
|
| 724 |
+
|
| 725 |
+
],
|
| 726 |
],
|
| 727 |
|
| 728 |
],
|
| 729 |
],
|
| 730 |
];
|
|
|
framework/features/header/items/account/sync.js
CHANGED
|
@@ -3,6 +3,7 @@ import {
|
|
| 3 |
updateAndSaveEl,
|
| 4 |
handleBackgroundOptionFor,
|
| 5 |
assembleSelector,
|
|
|
|
| 6 |
mutateSelector,
|
| 7 |
getRootSelectorFor,
|
| 8 |
responsiveClassesFor,
|
|
@@ -14,8 +15,26 @@ ctEvents.on(
|
|
| 14 |
(variableDescriptors) => {
|
| 15 |
variableDescriptors['account'] = ({ itemId }) => ({
|
| 16 |
accountHeaderIconSize: {
|
| 17 |
-
selector: assembleSelector(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
variable: 'icon-size',
|
| 20 |
responsive: true,
|
| 21 |
unit: 'px',
|
|
@@ -29,9 +48,18 @@ ctEvents.on(
|
|
| 29 |
},
|
| 30 |
|
| 31 |
...handleBackgroundOptionFor({
|
| 32 |
-
id: '
|
| 33 |
-
selector:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
|
|
|
|
|
|
|
| 35 |
selector: assembleSelector(
|
| 36 |
mutateSelector({
|
| 37 |
selector: [getRootSelectorFor({ itemId })[0]],
|
|
@@ -41,6 +69,19 @@ ctEvents.on(
|
|
| 41 |
),
|
| 42 |
}),
|
| 43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
accountHeaderMargin: {
|
| 45 |
selector: assembleSelector(getRootSelectorFor({ itemId })),
|
| 46 |
type: 'spacing',
|
|
@@ -49,6 +90,17 @@ ctEvents.on(
|
|
| 49 |
important: true,
|
| 50 |
},
|
| 51 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
// default state
|
| 53 |
accountHeaderColor: [
|
| 54 |
{
|
|
@@ -134,33 +186,26 @@ ctEvents.on(
|
|
| 134 |
({ values: { loggedin_style, loggedin_label }, optionId, optionValue }) => {
|
| 135 |
const selector = '[data-id="account"]'
|
| 136 |
|
| 137 |
-
if (optionId === '
|
| 138 |
updateAndSaveEl(selector, (el) => {
|
| 139 |
;[...el.querySelectorAll('.ct-label')].map((label) => {
|
| 140 |
-
label
|
| 141 |
-
|
| 142 |
-
if (!loggedin_style.label) {
|
| 143 |
-
label.hidden = true
|
| 144 |
-
}
|
| 145 |
-
|
| 146 |
-
label.innerHTML = loggedin_label
|
| 147 |
})
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
if (!loggedin_style.avatar) {
|
| 152 |
-
img.hidden = true
|
| 153 |
-
}
|
| 154 |
|
| 155 |
-
|
|
|
|
|
|
|
|
|
|
| 156 |
})
|
| 157 |
})
|
| 158 |
}
|
| 159 |
|
| 160 |
-
if (optionId === '
|
| 161 |
updateAndSaveEl(selector, (el) => {
|
| 162 |
;[...el.querySelectorAll('.ct-label')].map((label) => {
|
| 163 |
-
|
| 164 |
})
|
| 165 |
})
|
| 166 |
}
|
| 3 |
updateAndSaveEl,
|
| 4 |
handleBackgroundOptionFor,
|
| 5 |
assembleSelector,
|
| 6 |
+
typographyOption,
|
| 7 |
mutateSelector,
|
| 8 |
getRootSelectorFor,
|
| 9 |
responsiveClassesFor,
|
| 15 |
(variableDescriptors) => {
|
| 16 |
variableDescriptors['account'] = ({ itemId }) => ({
|
| 17 |
accountHeaderIconSize: {
|
| 18 |
+
selector: assembleSelector(
|
| 19 |
+
mutateSelector({
|
| 20 |
+
selector: [getRootSelectorFor({ itemId })[0]],
|
| 21 |
+
operation: 'suffix',
|
| 22 |
+
to_add: '[data-state="out"]',
|
| 23 |
+
})
|
| 24 |
+
),
|
| 25 |
+
variable: 'icon-size',
|
| 26 |
+
responsive: true,
|
| 27 |
+
unit: 'px',
|
| 28 |
+
},
|
| 29 |
|
| 30 |
+
account_loggedin_icon_size: {
|
| 31 |
+
selector: assembleSelector(
|
| 32 |
+
mutateSelector({
|
| 33 |
+
selector: [getRootSelectorFor({ itemId })[0]],
|
| 34 |
+
operation: 'suffix',
|
| 35 |
+
to_add: '[data-state="in"]',
|
| 36 |
+
})
|
| 37 |
+
),
|
| 38 |
variable: 'icon-size',
|
| 39 |
responsive: true,
|
| 40 |
unit: 'px',
|
| 48 |
},
|
| 49 |
|
| 50 |
...handleBackgroundOptionFor({
|
| 51 |
+
id: 'accountHeaderFormBackground',
|
| 52 |
+
selector: assembleSelector(
|
| 53 |
+
mutateSelector({
|
| 54 |
+
selector: [getRootSelectorFor({ itemId })[0]],
|
| 55 |
+
operation: 'suffix',
|
| 56 |
+
to_add: '#account-modal .ct-account-form',
|
| 57 |
+
})
|
| 58 |
+
),
|
| 59 |
+
}),
|
| 60 |
|
| 61 |
+
...handleBackgroundOptionFor({
|
| 62 |
+
id: 'accountHeaderBackground',
|
| 63 |
selector: assembleSelector(
|
| 64 |
mutateSelector({
|
| 65 |
selector: [getRootSelectorFor({ itemId })[0]],
|
| 69 |
),
|
| 70 |
}),
|
| 71 |
|
| 72 |
+
cart_panel_shadow: {
|
| 73 |
+
selector: assembleSelector(
|
| 74 |
+
mutateSelector({
|
| 75 |
+
selector: [getRootSelectorFor({ itemId })[0]],
|
| 76 |
+
operation: 'suffix',
|
| 77 |
+
to_add: '#account-modal .ct-account-form',
|
| 78 |
+
})
|
| 79 |
+
),
|
| 80 |
+
type: 'box-shadow',
|
| 81 |
+
variable: 'box-shadow',
|
| 82 |
+
responsive: true,
|
| 83 |
+
},
|
| 84 |
+
|
| 85 |
accountHeaderMargin: {
|
| 86 |
selector: assembleSelector(getRootSelectorFor({ itemId })),
|
| 87 |
type: 'spacing',
|
| 90 |
important: true,
|
| 91 |
},
|
| 92 |
|
| 93 |
+
...typographyOption({
|
| 94 |
+
id: 'account_label_font',
|
| 95 |
+
selector: assembleSelector(
|
| 96 |
+
mutateSelector({
|
| 97 |
+
selector: [getRootSelectorFor({ itemId })[0]],
|
| 98 |
+
operation: 'suffix',
|
| 99 |
+
to_add: '.ct-header-account .ct-label',
|
| 100 |
+
})
|
| 101 |
+
),
|
| 102 |
+
}),
|
| 103 |
+
|
| 104 |
// default state
|
| 105 |
accountHeaderColor: [
|
| 106 |
{
|
| 186 |
({ values: { loggedin_style, loggedin_label }, optionId, optionValue }) => {
|
| 187 |
const selector = '[data-id="account"]'
|
| 188 |
|
| 189 |
+
if (optionId === 'account_label_visibility') {
|
| 190 |
updateAndSaveEl(selector, (el) => {
|
| 191 |
;[...el.querySelectorAll('.ct-label')].map((label) => {
|
| 192 |
+
responsiveClassesFor(optionValue, label)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 193 |
})
|
| 194 |
+
})
|
| 195 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 196 |
|
| 197 |
+
if (optionId === 'loggedin_label') {
|
| 198 |
+
updateAndSaveEl(selector, (el) => {
|
| 199 |
+
;[...el.querySelectorAll('.ct-label')].map((label) => {
|
| 200 |
+
label.innerHTML = optionValue
|
| 201 |
})
|
| 202 |
})
|
| 203 |
}
|
| 204 |
|
| 205 |
+
if (optionId === 'login_label') {
|
| 206 |
updateAndSaveEl(selector, (el) => {
|
| 207 |
;[...el.querySelectorAll('.ct-label')].map((label) => {
|
| 208 |
+
label.innerHTML = optionValue
|
| 209 |
})
|
| 210 |
})
|
| 211 |
}
|
framework/features/header/items/account/view.php
CHANGED
|
@@ -2,64 +2,40 @@
|
|
| 2 |
|
| 3 |
$current_user_id = get_current_user_id();
|
| 4 |
|
| 5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
|
|
|
|
|
|
|
| 7 |
|
| 8 |
-
|
| 9 |
-
$account_link = blocksy_akg('account_link', $atts, 'profile');
|
| 10 |
|
| 11 |
-
|
| 12 |
-
$link = admin_url();
|
| 13 |
-
}
|
| 14 |
|
| 15 |
-
|
| 16 |
-
$link = wp_logout_url(blocksy_current_url());
|
| 17 |
-
}
|
| 18 |
|
| 19 |
-
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
}
|
| 22 |
|
|
|
|
| 23 |
$class = 'ct-header-account';
|
| 24 |
|
| 25 |
if ($current_user_id) {
|
| 26 |
$class .= ' ct-logged-in';
|
| 27 |
}
|
| 28 |
|
| 29 |
-
$loggedin_style = blocksy_akg('loggedin_style', $atts, [
|
| 30 |
-
'avatar' => true,
|
| 31 |
-
'label' => false
|
| 32 |
-
]);
|
| 33 |
-
|
| 34 |
-
$login_style = blocksy_akg('login_style', $atts, [
|
| 35 |
-
'icon' => true,
|
| 36 |
-
'label' => false
|
| 37 |
-
]);
|
| 38 |
-
|
| 39 |
-
$loggedin_label = blocksy_akg('loggedin_label', $atts, __('Label', 'blc'));
|
| 40 |
-
$login_label = blocksy_akg('login_label', $atts, __('Label', 'blc'));
|
| 41 |
|
| 42 |
-
if ($current_user_id) {
|
| 43 |
|
| 44 |
-
$avatar_html = blocksy_simple_image(
|
| 45 |
-
get_avatar_url(
|
| 46 |
-
$current_user_id,
|
| 47 |
-
[
|
| 48 |
-
'size' => 44
|
| 49 |
-
]
|
| 50 |
-
),
|
| 51 |
-
[
|
| 52 |
-
'html_atts' => is_customize_preview() && ! $loggedin_style['avatar'] ? [
|
| 53 |
-
'hidden' => ''
|
| 54 |
-
] : [],
|
| 55 |
-
|
| 56 |
-
'img_atts' => [
|
| 57 |
-
'width' => 22,
|
| 58 |
-
'height' => 22
|
| 59 |
-
]
|
| 60 |
-
]
|
| 61 |
-
);
|
| 62 |
-
}
|
| 63 |
|
| 64 |
$label_class = 'ct-label';
|
| 65 |
|
|
@@ -73,6 +49,90 @@ $label_class .= ' ' . blocksy_visibility_classes(blocksy_akg(
|
|
| 73 |
]
|
| 74 |
));
|
| 75 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 76 |
?>
|
| 77 |
|
| 78 |
<div
|
|
@@ -80,34 +140,67 @@ $label_class .= ' ' . blocksy_visibility_classes(blocksy_akg(
|
|
| 80 |
<?php echo blocksy_attr_to_html($attr) ?>>
|
| 81 |
|
| 82 |
<?php if ($current_user_id) { ?>
|
| 83 |
-
<a href="<?php echo $link ?>" aria-label="<?php echo
|
| 84 |
-
<?php
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
<?php echo $loggedin_label; ?>
|
| 91 |
</span>
|
| 92 |
<?php } ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 93 |
</a>
|
| 94 |
<?php } ?>
|
| 95 |
|
| 96 |
<?php if (! $current_user_id) { ?>
|
| 97 |
-
<a href="
|
| 98 |
-
<?php
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 106 |
<?php echo $login_label; ?>
|
| 107 |
</span>
|
| 108 |
<?php } ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 109 |
</a>
|
| 110 |
<?php } ?>
|
| 111 |
</div>
|
| 112 |
|
| 113 |
-
|
| 2 |
|
| 3 |
$current_user_id = get_current_user_id();
|
| 4 |
|
| 5 |
+
if (is_customize_preview()) {
|
| 6 |
+
if (blocksy_akg('account_state', $atts, 'in') === 'out') {
|
| 7 |
+
$current_user_id = null;
|
| 8 |
+
}
|
| 9 |
+
}
|
| 10 |
|
| 11 |
+
$icon = apply_filters('blocksy:header:account:icons', [
|
| 12 |
+
'type-1' => '<svg width="15" height="15" viewBox="0 0 15 15"><path d="M7.5 0C3.4 0 0 3.4 0 7.5S3.4 15 7.5 15 15 11.6 15 7.5 11.6 0 7.5 0zm0 1.5c3.3 0 6 2.7 6 6 0 1.2-.4 2.4-1 3.2l-.6-.5C10.8 9.4 8.6 9 7.5 9s-3.3.4-4.4 1.2l-.6.5c-.6-.9-1-2-1-3.2 0-3.3 2.7-6 6-6zm0 1.4C6.1 2.9 5.1 4 5.1 5.3s1.1 2.5 2.4 2.5 2.4-1.1 2.4-2.5-1-2.4-2.4-2.4zm0 1.3c.5 0 .9.4.9.9 0 .6-.5.9-.9.9s-.9-.3-.9-.8.4-1 .9-1zm0 6.3c2.4 0 3.6.9 4.1 1.4-1 1-2.5 1.6-4.1 1.6s-3.1-.6-4.1-1.6c.5-.5 1.7-1.4 4.1-1.4zm-4.4 1c0 .1.1.2.3.3-.2-.1-.3-.2-.3-.3zm8.8 0c-.1 0-.1.1-.2.3.1-.1.2-.2.2-.3z"/></svg>',
|
| 13 |
|
| 14 |
+
'type-2' => '<svg width="15" height="15" viewBox="0 0 15 15"><path d="M6.2 0C3.8 0 1.6 2 1.7 4.5v3.1c-.4.3-.7.8-.7 1.5 0 .8.4 1.4.9 1.7.3.2.3.1.5.2 1 2 2.9 3.7 5 4h.2c2.1-.3 4-2 5-4 .1 0 .2 0 .4-.1.5-.3 1-.9 1-1.8 0-.8-.4-1.4-.9-1.7-.2-.1-.2-.1-.4-.1V3.9c0-1.4-1.1-2.6-2.6-2.6h-.7S8.8 0 6.2 0zm1.6 5.2h1.6c1 0 1.9.8 1.9 1.9v1.4h.7s.1 0 .3.1c.1.1.2.1.2.5s-.1.4-.2.5c-.1.1-.3.1-.3.1h-.4l-.1.3c-.7 1.7-2.4 3.2-4.1 3.5-1.6-.2-3.3-1.7-4.1-3.5v-.2h-.4s-.1 0-.3-.1c-.2-.1-.3-.2-.3-.6 0-.4.1-.4.2-.5.1-.1.3-.1.3-.1h.7v-2h1.9c1.1 0 2-.5 2.4-1.3z"/></svg>',
|
|
|
|
| 15 |
|
| 16 |
+
'type-3' => '<svg width="15" height="15" viewBox="0 0 15 15"><path d="M14.3 12.8v1.5c0 .4-.3.7-.7.7-.4 0-.7-.3-.7-.7v-1.5c0-1.3-1-2.4-2.4-2.4h-6c-1.3 0-2.4 1-2.4 2.4v1.5c0 .4-.3.7-.7.7s-.7-.3-.7-.7v-1.5c0-2 1.6-3.7 3.7-3.7h6.1c2.1 0 3.8 1.6 3.8 3.7zM3.8 3.7C3.8 1.6 5.5 0 7.5 0s3.7 1.6 3.7 3.7-1.6 3.7-3.7 3.7-3.7-1.6-3.7-3.7zm1.4 0C5.2 5 6.2 6 7.5 6s2.4-1 2.4-2.3-1-2.4-2.4-2.4-2.3 1.1-2.3 2.4z"/></svg>',
|
|
|
|
|
|
|
| 17 |
|
| 18 |
+
'type-4' => '<svg width="15" height="15" viewBox="0 0 15 15"><path d="M7.5 0C3.4 0 0 3.4 0 7.5S3.4 15 7.5 15 15 11.6 15 7.5 11.6 0 7.5 0zm0 2.1c1.4 0 2.5 1.1 2.5 2.4S8.9 7 7.5 7 5 5.9 5 4.5s1.1-2.4 2.5-2.4zm0 11.4c-2.1 0-3.9-1-5-2.6C3.4 9.6 6 9 7.5 9s4.1.6 5 1.9c-1.1 1.6-2.9 2.6-5 2.6z"/></svg>',
|
|
|
|
|
|
|
| 19 |
|
| 20 |
+
'type-5' => '<svg width="15" height="15" viewBox="0 0 15 15"><path d="M7.5 0C3.4 0 0 3.4 0 7.5S3.4 15 7.5 15 15 11.6 15 7.5 11.6 0 7.5 0zm0 1.2c3.5 0 6.3 2.8 6.3 6.3 0 1.6-.6 3.1-1.7 4.3-.4-.8-1.7-1.4-3.1-1.7 0 0-.6-.2-.4-.8.6-.6.8-1.2.8-1.3 0 0 .6-.5.6-1.2.1-.6-.1-.7-.1-.7.2-.8.3-3.6-1.5-3.2-.3-.6-2.2-1-3 .5-.4.8-.6 1.9-.2 2.7 0 0-.1-.1-.2.3 0 .4.2 1 .4 1.2.1.1.2.2.3.2 0 0 .1.7.6 1.3.1.6-.4.9-.4.9-1.4.3-2.7.9-3.1 1.7-1-1.1-1.6-2.6-1.6-4.2C1.2 4 4 1.2 7.5 1.2z"/></svg>',
|
| 21 |
+
|
| 22 |
+
'type-6' => '<svg width="15" height="15" viewBox="0 0 15 15"><path d="M14.1 4.9L7.9.1c-.2-.1-.6-.1-.8 0L.9 4.9c-.1.1-.2.3-.2.5V13c0 1.1.9 2 2 2h9.6c1.1 0 2-.9 2-2V5.5c0-.2-.1-.4-.2-.6zm-5.2 8.7H6.1V8.2h2.8v5.4zm4.1-.7c0 .4-.3.7-.7.7h-2V7.5c0-.4-.3-.7-.7-.7H5.4c-.4 0-.7.3-.7.7v6.1h-2c-.4 0-.7-.3-.7-.7V5.8l5.6-4.2L13 5.8v7.1z"/></svg>',
|
| 23 |
+
]);
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
if (empty($type)) {
|
| 27 |
+
$type = 'type-1';
|
| 28 |
}
|
| 29 |
|
| 30 |
+
|
| 31 |
$class = 'ct-header-account';
|
| 32 |
|
| 33 |
if ($current_user_id) {
|
| 34 |
$class .= ' ct-logged-in';
|
| 35 |
}
|
| 36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
|
|
|
|
| 38 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
|
| 40 |
$label_class = 'ct-label';
|
| 41 |
|
| 49 |
]
|
| 50 |
));
|
| 51 |
|
| 52 |
+
|
| 53 |
+
// Logged in
|
| 54 |
+
$link = get_edit_profile_url();
|
| 55 |
+
$account_link = blocksy_akg('account_link', $atts, 'profile');
|
| 56 |
+
|
| 57 |
+
if ($account_link === 'dashboard') {
|
| 58 |
+
$link = admin_url();
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
if ($account_link === 'logout') {
|
| 62 |
+
$link = wp_logout_url(blocksy_current_url());
|
| 63 |
+
}
|
| 64 |
+
|
| 65 |
+
if ($account_link === 'custom') {
|
| 66 |
+
$link = blocksy_akg('account_custom_page', $atts, '');
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
$media_html = '';
|
| 70 |
+
$loggedin_label = '';
|
| 71 |
+
|
| 72 |
+
if ($current_user_id) {
|
| 73 |
+
$loggedin_media = blocksy_akg('loggedin_media', $atts, 'avatar');
|
| 74 |
+
$loggedin_text = blocksy_akg('loggedin_text', $atts, 'label');
|
| 75 |
+
|
| 76 |
+
if ($loggedin_text === 'label') {
|
| 77 |
+
$loggedin_label = blocksy_akg('loggedin_label', $atts, __('My Account', 'blc'));
|
| 78 |
+
}
|
| 79 |
+
|
| 80 |
+
if ($loggedin_text === 'username') {
|
| 81 |
+
$user = wp_get_current_user();
|
| 82 |
+
$loggedin_label = $user->user_nicename;
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
if ($loggedin_media === 'avatar') {
|
| 86 |
+
$avatar_size = intval(blocksy_akg('accountHeaderAvatarSize', $atts, 18));
|
| 87 |
+
|
| 88 |
+
$media_html = blocksy_simple_image(
|
| 89 |
+
get_avatar_url(
|
| 90 |
+
$current_user_id,
|
| 91 |
+
[
|
| 92 |
+
'size' => $avatar_size * 2
|
| 93 |
+
]
|
| 94 |
+
),
|
| 95 |
+
[
|
| 96 |
+
'img_atts' => [
|
| 97 |
+
'width' => $avatar_size,
|
| 98 |
+
'height' => $avatar_size
|
| 99 |
+
]
|
| 100 |
+
]
|
| 101 |
+
);
|
| 102 |
+
}
|
| 103 |
+
|
| 104 |
+
if ($loggedin_media === 'icon') {
|
| 105 |
+
$account_loggedin_icon = blocksy_akg('account_loggedin_icon', $atts, 'type-1');
|
| 106 |
+
$icon_position = blocksy_akg('account_loggedin_icon_position', $atts, 'left');
|
| 107 |
+
$avatar_size = intval(blocksy_akg('accountHeaderAvatarSize', $atts, 18));
|
| 108 |
+
|
| 109 |
+
$media_html = $icon[$account_loggedin_icon];
|
| 110 |
+
}
|
| 111 |
+
}
|
| 112 |
+
|
| 113 |
+
if (! $current_user_id) {
|
| 114 |
+
$link = '#account-modal';
|
| 115 |
+
|
| 116 |
+
if (blocksy_akg('login_account_action', $atts, 'modal') === 'custom') {
|
| 117 |
+
$link = blocksy_akg('loggedout_account_custom_page', $atts, '');
|
| 118 |
+
}
|
| 119 |
+
|
| 120 |
+
$login_style = blocksy_akg('login_style', $atts, [
|
| 121 |
+
'icon' => true,
|
| 122 |
+
'label' => true
|
| 123 |
+
]);
|
| 124 |
+
|
| 125 |
+
if ($login_style['icon']) {
|
| 126 |
+
$icon_type = blocksy_default_akg('accountHeaderIcon', $atts, 'type-1');
|
| 127 |
+
$media_html = $icon[$icon_type];
|
| 128 |
+
$icon_position = blocksy_akg('accountHeaderIconPosition', $atts, 'left');
|
| 129 |
+
}
|
| 130 |
+
|
| 131 |
+
$login_label = blocksy_akg('login_label', $atts, __('Label', 'blc'));
|
| 132 |
+
}
|
| 133 |
+
|
| 134 |
+
$attr['data-state'] = $current_user_id ? 'in' : 'out';
|
| 135 |
+
|
| 136 |
?>
|
| 137 |
|
| 138 |
<div
|
| 140 |
<?php echo blocksy_attr_to_html($attr) ?>>
|
| 141 |
|
| 142 |
<?php if ($current_user_id) { ?>
|
| 143 |
+
<a href="<?php echo $link ?>" aria-label="<?php echo $loggedin_label ?>">
|
| 144 |
+
<?php
|
| 145 |
+
if (
|
| 146 |
+
$loggedin_media === 'avatar'
|
| 147 |
+
||
|
| 148 |
+
(
|
| 149 |
+
$loggedin_media === 'icon'
|
| 150 |
+
&&
|
| 151 |
+
$icon_position === 'left'
|
| 152 |
+
)
|
| 153 |
+
) {
|
| 154 |
+
echo $media_html;
|
| 155 |
+
}
|
| 156 |
+
?>
|
| 157 |
+
|
| 158 |
+
<?php if (! empty($loggedin_label)) { ?>
|
| 159 |
+
<span class="<?php echo $label_class ?>">
|
| 160 |
<?php echo $loggedin_label; ?>
|
| 161 |
</span>
|
| 162 |
<?php } ?>
|
| 163 |
+
|
| 164 |
+
<?php
|
| 165 |
+
if (
|
| 166 |
+
$loggedin_media === 'icon'
|
| 167 |
+
&&
|
| 168 |
+
$icon_position === 'right'
|
| 169 |
+
) {
|
| 170 |
+
echo $media_html;
|
| 171 |
+
}
|
| 172 |
+
?>
|
| 173 |
</a>
|
| 174 |
<?php } ?>
|
| 175 |
|
| 176 |
<?php if (! $current_user_id) { ?>
|
| 177 |
+
<a href="<?php echo $link ?>">
|
| 178 |
+
<?php
|
| 179 |
+
if (
|
| 180 |
+
$login_style['icon']
|
| 181 |
+
&&
|
| 182 |
+
$icon_position === 'left'
|
| 183 |
+
) {
|
| 184 |
+
echo $media_html;
|
| 185 |
+
}
|
| 186 |
+
?>
|
| 187 |
+
|
| 188 |
+
<?php if ($login_style['label']) { ?>
|
| 189 |
+
<span class="<?php echo $label_class ?>">
|
| 190 |
<?php echo $login_label; ?>
|
| 191 |
</span>
|
| 192 |
<?php } ?>
|
| 193 |
+
|
| 194 |
+
<?php
|
| 195 |
+
if (
|
| 196 |
+
$login_style['icon']
|
| 197 |
+
&&
|
| 198 |
+
$icon_position === 'right'
|
| 199 |
+
) {
|
| 200 |
+
echo $media_html;
|
| 201 |
+
}
|
| 202 |
+
?>
|
| 203 |
</a>
|
| 204 |
<?php } ?>
|
| 205 |
</div>
|
| 206 |
|
|
|
framework/theme-integration.php
CHANGED
|
@@ -4,6 +4,32 @@ namespace Blocksy;
|
|
| 4 |
|
| 5 |
class ThemeIntegration {
|
| 6 |
public function __construct() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
add_action('wp_ajax_blocksy_conditions_get_all_taxonomies', function () {
|
| 8 |
if (! current_user_can('manage_options')) {
|
| 9 |
wp_send_json_error();
|
|
@@ -119,7 +145,6 @@ class ThemeIntegration {
|
|
| 119 |
|
| 120 |
add_filter('upload_mimes', function ($mimes) {
|
| 121 |
$mimes['svg'] = 'image/svg+xml';
|
| 122 |
-
|
| 123 |
return $mimes;
|
| 124 |
});
|
| 125 |
|
|
@@ -194,7 +219,6 @@ class ThemeIntegration {
|
|
| 194 |
}
|
| 195 |
}
|
| 196 |
|
| 197 |
-
|
| 198 |
return $changelogs;
|
| 199 |
});
|
| 200 |
|
|
@@ -281,8 +305,8 @@ class ThemeIntegration {
|
|
| 281 |
}
|
| 282 |
}
|
| 283 |
|
| 284 |
-
protected function svg_dimensions(
|
| 285 |
-
$svg = @simplexml_load_file(
|
| 286 |
$width = 0;
|
| 287 |
$height = 0;
|
| 288 |
|
| 4 |
|
| 5 |
class ThemeIntegration {
|
| 6 |
public function __construct() {
|
| 7 |
+
add_shortcode('blocksy_posts', function ($args, $content) {
|
| 8 |
+
$args = wp_parse_args(
|
| 9 |
+
$args,
|
| 10 |
+
[
|
| 11 |
+
'post_type' => 'post',
|
| 12 |
+
'limit' => 5,
|
| 13 |
+
|
| 14 |
+
// post_date | comment_count
|
| 15 |
+
'orderby' => 'post_date',
|
| 16 |
+
|
| 17 |
+
// yes | no
|
| 18 |
+
'has_pagination' => 'yes'
|
| 19 |
+
]
|
| 20 |
+
);
|
| 21 |
+
|
| 22 |
+
$file_path = dirname(__FILE__) . '/views/blocksy-posts.php';
|
| 23 |
+
|
| 24 |
+
return blc_call_fn(
|
| 25 |
+
['fn' => 'blocksy_render_view'],
|
| 26 |
+
$file_path,
|
| 27 |
+
[
|
| 28 |
+
'args' => $args
|
| 29 |
+
]
|
| 30 |
+
);
|
| 31 |
+
});
|
| 32 |
+
|
| 33 |
add_action('wp_ajax_blocksy_conditions_get_all_taxonomies', function () {
|
| 34 |
if (! current_user_can('manage_options')) {
|
| 35 |
wp_send_json_error();
|
| 145 |
|
| 146 |
add_filter('upload_mimes', function ($mimes) {
|
| 147 |
$mimes['svg'] = 'image/svg+xml';
|
|
|
|
| 148 |
return $mimes;
|
| 149 |
});
|
| 150 |
|
| 219 |
}
|
| 220 |
}
|
| 221 |
|
|
|
|
| 222 |
return $changelogs;
|
| 223 |
});
|
| 224 |
|
| 305 |
}
|
| 306 |
}
|
| 307 |
|
| 308 |
+
protected function svg_dimensions($svg) {
|
| 309 |
+
$svg = @simplexml_load_file($svg);
|
| 310 |
$width = 0;
|
| 311 |
$height = 0;
|
| 312 |
|
framework/views/blocksy-posts.php
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
if (! function_exists('blocksy_render_archive_cards')) {
|
| 4 |
+
return;
|
| 5 |
+
}
|
| 6 |
+
|
| 7 |
+
if (get_query_var('paged')) {
|
| 8 |
+
$paged = get_query_var('paged');
|
| 9 |
+
} elseif (get_query_var('page')) {
|
| 10 |
+
$paged = get_query_var('page');
|
| 11 |
+
} else {
|
| 12 |
+
$paged = 1;
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
+
$query = new WP_Query([
|
| 16 |
+
'order' => 'DESC',
|
| 17 |
+
'ignore_sticky_posts' => true,
|
| 18 |
+
'post_type' => $args['post_type'],
|
| 19 |
+
'orderby' => $args['orderby'],
|
| 20 |
+
'posts_per_page' => $args['limit'],
|
| 21 |
+
'paged' => $paged
|
| 22 |
+
]);
|
| 23 |
+
|
| 24 |
+
$prefix = 'blog';
|
| 25 |
+
|
| 26 |
+
$custom_post_types = blocksy_manager()->post_types->get_supported_post_types();
|
| 27 |
+
|
| 28 |
+
foreach ($custom_post_types as $cpt) {
|
| 29 |
+
if ($cpt === $args['post_type']) {
|
| 30 |
+
$prefix = $args['post_type'] . '_archive';
|
| 31 |
+
}
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
echo '<div class="ct-posts-shortcode" data-prefix="' . $prefix . '">';
|
| 35 |
+
|
| 36 |
+
echo blocksy_render_archive_cards([
|
| 37 |
+
'prefix' => $prefix,
|
| 38 |
+
'query' => $query,
|
| 39 |
+
'has_pagination' => $args['has_pagination'] === 'yes'
|
| 40 |
+
]);
|
| 41 |
+
|
| 42 |
+
wp_reset_postdata();
|
| 43 |
+
|
| 44 |
+
echo '</div>';
|
languages/blocksy-companion.pot
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
# Copyright (C)
|
| 2 |
# This file is distributed under the same license as the blc package.
|
| 3 |
#, fuzzy
|
| 4 |
msgid ""
|
|
@@ -19,19 +19,19 @@ msgstr ""
|
|
| 19 |
"x-generator: babel-plugin-wp-i18n\n"
|
| 20 |
|
| 21 |
#. translators: %s: PHP version
|
| 22 |
-
#: blocksy-companion.php:
|
| 23 |
msgid "Blocksy requires PHP version %s+, plugin is currently NOT RUNNING."
|
| 24 |
msgstr ""
|
| 25 |
|
| 26 |
#. translators: %s: WordPress version
|
| 27 |
-
#: blocksy-companion.php:
|
| 28 |
msgid ""
|
| 29 |
"Blocksy requires WordPress version %s+. Because you are using an earlier "
|
| 30 |
"version, the plugin is currently NOT RUNNING."
|
| 31 |
msgstr ""
|
| 32 |
|
| 33 |
#: framework/extensions-manager.php:247,
|
| 34 |
-
#: framework/premium/extensions/custom-fonts/extension.php:
|
| 35 |
msgid "Custom Fonts"
|
| 36 |
msgstr ""
|
| 37 |
|
|
@@ -55,33 +55,77 @@ msgstr ""
|
|
| 55 |
msgid "Change theme/companion branding"
|
| 56 |
msgstr ""
|
| 57 |
|
| 58 |
-
#: framework/theme-integration.php:
|
| 59 |
#: framework/extensions/widgets/widgets/ct-facebook/options.php:16,
|
| 60 |
#: framework/extensions/widgets/widgets/ct-facebook/view.php:12,
|
| 61 |
#: framework/extensions/widgets/widgets/ct-facebook/widget.php:13
|
| 62 |
msgid "Facebook"
|
| 63 |
msgstr ""
|
| 64 |
|
| 65 |
-
#: framework/theme-integration.php:
|
| 66 |
msgid "Twitter"
|
| 67 |
msgstr ""
|
| 68 |
|
| 69 |
-
#: framework/theme-integration.php:
|
| 70 |
msgid "LinkedIn"
|
| 71 |
msgstr ""
|
| 72 |
|
| 73 |
-
#: framework/theme-integration.php:
|
| 74 |
msgid "Dribbble"
|
| 75 |
msgstr ""
|
| 76 |
|
| 77 |
-
#: framework/theme-integration.php:
|
| 78 |
msgid "Instagram"
|
| 79 |
msgstr ""
|
| 80 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 81 |
#: framework/theme-integration.php:123
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
msgid "Companion"
|
| 83 |
msgstr ""
|
| 84 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 85 |
#: framework/widgets-manager.php:75
|
| 86 |
msgid "Default widget name"
|
| 87 |
msgstr ""
|
|
@@ -94,31 +138,31 @@ msgstr ""
|
|
| 94 |
msgid "Widget Title"
|
| 95 |
msgstr ""
|
| 96 |
|
| 97 |
-
#: framework/features/conditions-manager.php:
|
| 98 |
msgid "%s Single"
|
| 99 |
msgstr ""
|
| 100 |
|
| 101 |
-
#: framework/features/conditions-manager.php:
|
| 102 |
msgid "%s Archive"
|
| 103 |
msgstr ""
|
| 104 |
|
| 105 |
-
#: framework/features/conditions-manager.php:
|
| 106 |
msgid "Entire Website"
|
| 107 |
msgstr ""
|
| 108 |
|
| 109 |
-
#: framework/features/conditions-manager.php:
|
| 110 |
msgid "Basic"
|
| 111 |
msgstr ""
|
| 112 |
|
| 113 |
-
#: framework/features/conditions-manager.php:
|
| 114 |
msgid "Singulars"
|
| 115 |
msgstr ""
|
| 116 |
|
| 117 |
-
#: framework/features/conditions-manager.php:
|
| 118 |
msgid "Archives"
|
| 119 |
msgstr ""
|
| 120 |
|
| 121 |
-
#: framework/features/conditions-manager.php:
|
| 122 |
#: framework/extensions/trending/customizer.php:4,
|
| 123 |
#: framework/extensions/widgets/widgets/ct-posts/options.php:11,
|
| 124 |
#: framework/extensions/widgets/widgets/ct-posts/options.php:98,
|
|
@@ -128,91 +172,97 @@ msgstr ""
|
|
| 128 |
msgid "Posts"
|
| 129 |
msgstr ""
|
| 130 |
|
| 131 |
-
#: framework/features/conditions-manager.php:
|
|
|
|
| 132 |
msgid "Single Post"
|
| 133 |
msgstr ""
|
| 134 |
|
| 135 |
-
#: framework/features/conditions-manager.php:
|
| 136 |
msgid "All Post Archives"
|
| 137 |
msgstr ""
|
| 138 |
|
| 139 |
-
#: framework/features/conditions-manager.php:
|
| 140 |
msgid "Post Categories"
|
| 141 |
msgstr ""
|
| 142 |
|
| 143 |
-
#: framework/features/conditions-manager.php:
|
| 144 |
msgid "Post Tags"
|
| 145 |
msgstr ""
|
| 146 |
|
| 147 |
-
#: framework/features/conditions-manager.php:
|
| 148 |
#: framework/extensions/widgets/widgets/ct-posts/options.php:12,
|
| 149 |
#: framework/premium/features/premium-header/items/search-input/options.php:5
|
| 150 |
msgid "Pages"
|
| 151 |
msgstr ""
|
| 152 |
|
| 153 |
-
#: framework/features/conditions-manager.php:
|
| 154 |
msgid "Single Page"
|
| 155 |
msgstr ""
|
| 156 |
|
| 157 |
-
#: framework/features/conditions-manager.php:
|
| 158 |
msgid "Specific"
|
| 159 |
msgstr ""
|
| 160 |
|
| 161 |
-
#: framework/features/conditions-manager.php:
|
| 162 |
msgid "Post ID"
|
| 163 |
msgstr ""
|
| 164 |
|
| 165 |
-
#: framework/features/conditions-manager.php:
|
| 166 |
msgid "Page ID"
|
| 167 |
msgstr ""
|
| 168 |
|
| 169 |
-
#: framework/features/conditions-manager.php:
|
| 170 |
-
#: static/js/options/ConditionsManager.js:
|
| 171 |
msgid "Custom Post Type ID"
|
| 172 |
msgstr ""
|
| 173 |
|
| 174 |
-
#: framework/features/conditions-manager.php:
|
| 175 |
msgid "Taxonomy ID"
|
| 176 |
msgstr ""
|
| 177 |
|
| 178 |
-
#: framework/features/conditions-manager.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 179 |
msgid "Other Pages"
|
| 180 |
msgstr ""
|
| 181 |
|
| 182 |
-
#: framework/features/conditions-manager.php:
|
| 183 |
msgid "404"
|
| 184 |
msgstr ""
|
| 185 |
|
| 186 |
-
#: framework/features/conditions-manager.php:
|
| 187 |
-
#: framework/premium/features/premium-header/items/search-input/options.php:
|
|
|
|
| 188 |
msgid "Search"
|
| 189 |
msgstr ""
|
| 190 |
|
| 191 |
-
#: framework/features/conditions-manager.php:
|
| 192 |
msgid "Blog"
|
| 193 |
msgstr ""
|
| 194 |
|
| 195 |
-
#: framework/features/conditions-manager.php:
|
| 196 |
msgid "Front Page"
|
| 197 |
msgstr ""
|
| 198 |
|
| 199 |
-
#: framework/features/conditions-manager.php:
|
| 200 |
msgid "Author"
|
| 201 |
msgstr ""
|
| 202 |
|
| 203 |
-
#: framework/features/conditions-manager.php:
|
| 204 |
msgid "User Auth"
|
| 205 |
msgstr ""
|
| 206 |
|
| 207 |
-
#: framework/features/conditions-manager.php:
|
| 208 |
msgid "User Logged In"
|
| 209 |
msgstr ""
|
| 210 |
|
| 211 |
-
#: framework/features/conditions-manager.php:
|
| 212 |
msgid "User Logged Out"
|
| 213 |
msgstr ""
|
| 214 |
|
| 215 |
-
#: framework/features/conditions-manager.php:
|
| 216 |
msgid "User Roles"
|
| 217 |
msgstr ""
|
| 218 |
|
|
@@ -239,7 +289,7 @@ msgid "File"
|
|
| 239 |
msgstr ""
|
| 240 |
|
| 241 |
#: framework/features/dynamic-css.php:53,
|
| 242 |
-
#: framework/premium/features/premium-header/items/language-switcher/options.php:
|
| 243 |
msgid "Inline"
|
| 244 |
msgstr ""
|
| 245 |
|
|
@@ -319,21 +369,25 @@ msgstr ""
|
|
| 319 |
#: framework/extensions/mailchimp/customizer.php:12,
|
| 320 |
#: framework/extensions/trending/customizer.php:39,
|
| 321 |
#: framework/premium/extensions/mega-menu/options.php:6,
|
| 322 |
-
#: framework/
|
|
|
|
| 323 |
#: framework/premium/features/premium-header/items/contacts/options.php:5,
|
| 324 |
-
#: framework/premium/features/premium-header/items/
|
| 325 |
-
#: framework/premium/features/premium-header/items/language-switcher/options.php:
|
| 326 |
-
#: framework/premium/features/premium-header/items/
|
| 327 |
-
#: framework/premium/
|
| 328 |
-
#: framework/premium/extensions/white-label/dashboard-static/js/EditSettings.js:128
|
| 329 |
msgid "General"
|
| 330 |
msgstr ""
|
| 331 |
|
| 332 |
-
#: framework/extensions/cookies-consent/customizer.php:31
|
|
|
|
|
|
|
| 333 |
msgid "Type 1"
|
| 334 |
msgstr ""
|
| 335 |
|
| 336 |
-
#: framework/extensions/cookies-consent/customizer.php:36
|
|
|
|
|
|
|
| 337 |
msgid "Type 2"
|
| 338 |
msgstr ""
|
| 339 |
|
|
@@ -374,10 +428,10 @@ msgid "Forever"
|
|
| 374 |
msgstr ""
|
| 375 |
|
| 376 |
#: framework/extensions/cookies-consent/customizer.php:65,
|
| 377 |
-
#: framework/premium/features/content-blocks/hooks-manager.php:
|
| 378 |
-
#: framework/premium/features/content-blocks/hooks-manager.php:
|
| 379 |
-
#: framework/premium/features/content-blocks/hooks-manager.php:
|
| 380 |
-
#: framework/premium/features/content-blocks/hooks-manager.php:
|
| 381 |
#: framework/extensions/widgets/widgets/ct-contact-info/options.php:72,
|
| 382 |
#: framework/extensions/widgets/widgets/ct-contact-info/options.php:101,
|
| 383 |
#: framework/extensions/widgets/widgets/ct-contact-info/options.php:129,
|
|
@@ -396,7 +450,7 @@ msgid "Content"
|
|
| 396 |
msgstr ""
|
| 397 |
|
| 398 |
#: framework/extensions/cookies-consent/customizer.php:67,
|
| 399 |
-
#: framework/extensions/cookies-consent/helpers.php:
|
| 400 |
msgid ""
|
| 401 |
"We use cookies to ensure that we give you the best experience on our website."
|
| 402 |
msgstr ""
|
|
@@ -406,35 +460,36 @@ msgid "Button text"
|
|
| 406 |
msgstr ""
|
| 407 |
|
| 408 |
#: framework/extensions/cookies-consent/customizer.php:82,
|
| 409 |
-
#: framework/extensions/cookies-consent/helpers.php:
|
| 410 |
msgid "Accept"
|
| 411 |
msgstr ""
|
| 412 |
|
| 413 |
#: framework/extensions/cookies-consent/customizer.php:90,
|
| 414 |
#: framework/extensions/mailchimp/customizer.php:147,
|
| 415 |
#: framework/extensions/trending/customizer.php:138,
|
| 416 |
-
#: framework/premium/extensions/mega-menu/options.php:
|
| 417 |
-
#: framework/
|
|
|
|
| 418 |
#: framework/premium/features/premium-header/items/contacts/options.php:305,
|
| 419 |
-
#: framework/premium/features/premium-header/items/
|
| 420 |
-
#: framework/premium/features/premium-header/items/language-switcher/options.php:
|
| 421 |
-
#: framework/premium/features/premium-header/items/
|
| 422 |
-
#: framework/premium/features/premium-header/items/search-input/options.php:95
|
| 423 |
msgid "Design"
|
| 424 |
msgstr ""
|
| 425 |
|
| 426 |
#: framework/extensions/cookies-consent/customizer.php:95,
|
| 427 |
#: framework/extensions/trending/customizer.php:143,
|
| 428 |
-
#: framework/premium/extensions/mega-menu/options.php:
|
|
|
|
| 429 |
#: framework/premium/features/premium-header/items/contacts/options.php:321,
|
| 430 |
-
#: framework/premium/features/premium-header/items/contacts/options.php:
|
| 431 |
-
#: framework/premium/features/premium-header/items/contacts/options.php:
|
| 432 |
-
#: framework/premium/features/premium-header/items/contacts/options.php:
|
| 433 |
-
#: framework/premium/features/premium-header/items/language-switcher/options.php:
|
| 434 |
-
#: framework/premium/features/premium-header/items/language-switcher/options.php:
|
| 435 |
-
#: framework/premium/features/premium-header/items/language-switcher/options.php:
|
| 436 |
-
#: framework/premium/features/premium-header/items/language-switcher/options.php:
|
| 437 |
-
#: framework/premium/features/premium-header/items/language-switcher/options.php:
|
| 438 |
msgid "Font Color"
|
| 439 |
msgstr ""
|
| 440 |
|
|
@@ -445,39 +500,40 @@ msgstr ""
|
|
| 445 |
#: framework/extensions/mailchimp/customizer.php:200,
|
| 446 |
#: framework/extensions/mailchimp/customizer.php:225,
|
| 447 |
#: framework/extensions/trending/customizer.php:160,
|
| 448 |
-
#: framework/premium/extensions/mega-menu/options.php:
|
| 449 |
-
#: framework/premium/extensions/mega-menu/options.php:
|
| 450 |
-
#: framework/premium/extensions/mega-menu/options.php:
|
| 451 |
-
#: framework/
|
| 452 |
-
#: framework/
|
| 453 |
-
#: framework/
|
| 454 |
-
#: framework/
|
| 455 |
-
#: framework/features/header/items/account/options.php:
|
| 456 |
-
#: framework/
|
| 457 |
-
#: framework/
|
| 458 |
-
#: framework/
|
| 459 |
-
#: framework/
|
| 460 |
-
#: framework/premium/features/premium-header/items/contacts/options.php:
|
| 461 |
-
#: framework/premium/features/premium-header/items/contacts/options.php:
|
| 462 |
-
#: framework/premium/features/premium-header/items/
|
| 463 |
-
#: framework/premium/features/premium-header/items/
|
| 464 |
-
#: framework/premium/features/premium-header/items/
|
| 465 |
-
#: framework/premium/features/premium-header/items/
|
| 466 |
-
#: framework/premium/features/premium-header/items/language-switcher/options.php:
|
| 467 |
-
#: framework/premium/features/premium-header/items/language-switcher/options.php:
|
| 468 |
-
#: framework/premium/features/premium-header/items/language-switcher/options.php:
|
| 469 |
-
#: framework/premium/features/premium-header/items/language-switcher/options.php:
|
| 470 |
-
#: framework/premium/features/premium-header/items/
|
| 471 |
-
#: framework/premium/features/premium-header/items/search-input/options.php:
|
| 472 |
-
#: framework/premium/features/premium-header/items/search-input/options.php:
|
| 473 |
-
#: framework/premium/features/premium-header/items/search-input/options.php:
|
| 474 |
-
#: framework/premium/features/premium-header/items/search-input/options.php:304,
|
| 475 |
#: framework/premium/features/premium-header/items/search-input/options.php:334,
|
| 476 |
-
#: framework/premium/features/premium-header/items/search-input/options.php:
|
| 477 |
-
#: framework/premium/features/premium-header/items/search-input/options.php:
|
| 478 |
-
#: framework/premium/features/premium-header/items/search-input/options.php:
|
| 479 |
-
#: framework/premium/features/premium-header/items/search-input/options.php:
|
| 480 |
-
#: framework/premium/features/premium-header/items/search-input/options.php:
|
|
|
|
|
|
|
| 481 |
msgid "Initial"
|
| 482 |
msgstr ""
|
| 483 |
|
|
@@ -486,19 +542,21 @@ msgstr ""
|
|
| 486 |
#: framework/extensions/mailchimp/customizer.php:175,
|
| 487 |
#: framework/extensions/mailchimp/customizer.php:205,
|
| 488 |
#: framework/extensions/trending/customizer.php:166,
|
| 489 |
-
#: framework/
|
| 490 |
-
#: framework/
|
| 491 |
-
#: framework/features/header/items/account/options.php:
|
| 492 |
-
#: framework/features/header/items/account/options.php:
|
| 493 |
-
#: framework/features/header/items/account/options.php:
|
| 494 |
-
#: framework/
|
| 495 |
-
#: framework/
|
| 496 |
-
#: framework/premium/features/premium-header/items/contacts/options.php:
|
| 497 |
-
#: framework/premium/features/premium-header/items/contacts/options.php:
|
| 498 |
-
#: framework/premium/features/premium-header/items/contacts/options.php:
|
| 499 |
-
#: framework/premium/features/premium-header/items/contacts/options.php:
|
| 500 |
-
#: framework/premium/features/premium-header/items/
|
| 501 |
-
#: framework/premium/features/premium-header/items/
|
|
|
|
|
|
|
| 502 |
msgid "Hover"
|
| 503 |
msgstr ""
|
| 504 |
|
|
@@ -509,8 +567,8 @@ msgstr ""
|
|
| 509 |
|
| 510 |
#: framework/extensions/cookies-consent/customizer.php:154,
|
| 511 |
#: framework/extensions/mailchimp/customizer.php:212,
|
| 512 |
-
#: framework/premium/extensions/mega-menu/options.php:
|
| 513 |
-
#: framework/premium/features/premium-header/items/language-switcher/options.php:
|
| 514 |
msgid "Background Color"
|
| 515 |
msgstr ""
|
| 516 |
|
|
@@ -519,7 +577,7 @@ msgid "Maximum Width"
|
|
| 519 |
msgstr ""
|
| 520 |
|
| 521 |
#: framework/extensions/cookies-consent/customizer.php:202,
|
| 522 |
-
#: framework/extensions/cookies-consent/helpers.php:
|
| 523 |
msgid "I accept the %sPrivacy Policy%s"
|
| 524 |
msgstr ""
|
| 525 |
|
|
@@ -529,8 +587,8 @@ msgstr ""
|
|
| 529 |
|
| 530 |
#: framework/extensions/cookies-consent/readme.php:1,
|
| 531 |
#: framework/extensions/mailchimp/readme.php:1,
|
| 532 |
-
#: framework/extensions/
|
| 533 |
-
#: framework/premium/extensions/
|
| 534 |
msgid "Instructions"
|
| 535 |
msgstr ""
|
| 536 |
|
|
@@ -566,13 +624,13 @@ msgstr ""
|
|
| 566 |
msgid "this article"
|
| 567 |
msgstr ""
|
| 568 |
|
| 569 |
-
#: framework/extensions/mailchimp/config.php:4
|
| 570 |
-
|
|
|
|
| 571 |
msgstr ""
|
| 572 |
|
| 573 |
#: framework/extensions/mailchimp/config.php:5
|
| 574 |
-
msgid ""
|
| 575 |
-
"Display a Mailchimp subscribe form with the help of a widget or a block."
|
| 576 |
msgstr ""
|
| 577 |
|
| 578 |
#: framework/extensions/mailchimp/customizer.php:4
|
|
@@ -630,7 +688,7 @@ msgstr ""
|
|
| 630 |
#: framework/extensions/mailchimp/customizer.php:49,
|
| 631 |
#: framework/features/header/header-options.php:71,
|
| 632 |
#: framework/extensions/mailchimp/ct-mailchimp/options.php:38,
|
| 633 |
-
#: framework/extensions/widgets/widgets/ct-posts/options.php:
|
| 634 |
msgid "Default"
|
| 635 |
msgstr ""
|
| 636 |
|
|
@@ -642,7 +700,7 @@ msgstr ""
|
|
| 642 |
|
| 643 |
#: framework/extensions/mailchimp/customizer.php:62,
|
| 644 |
#: framework/extensions/mailchimp/ct-mailchimp/options.php:49
|
| 645 |
-
#: framework/extensions/mailchimp/dashboard-static/js/EditCredentials.js:
|
| 646 |
msgid "List ID"
|
| 647 |
msgstr ""
|
| 648 |
|
|
@@ -687,39 +745,43 @@ msgstr ""
|
|
| 687 |
msgid "Subscribe"
|
| 688 |
msgstr ""
|
| 689 |
|
| 690 |
-
#: framework/extensions/mailchimp/customizer.php:126
|
|
|
|
|
|
|
| 691 |
msgid "Visibility"
|
| 692 |
msgstr ""
|
| 693 |
|
| 694 |
#: framework/extensions/mailchimp/customizer.php:137,
|
| 695 |
#: framework/extensions/trending/customizer.php:128,
|
| 696 |
-
#: framework/features/header/header-options.php:
|
| 697 |
-
#: framework/features/header/header-options.php:
|
| 698 |
-
#: framework/premium/
|
|
|
|
|
|
|
| 699 |
msgid "Desktop"
|
| 700 |
msgstr ""
|
| 701 |
|
| 702 |
#: framework/extensions/mailchimp/customizer.php:138,
|
| 703 |
#: framework/extensions/trending/customizer.php:129,
|
| 704 |
-
#: framework/premium/
|
|
|
|
|
|
|
| 705 |
msgid "Tablet"
|
| 706 |
msgstr ""
|
| 707 |
|
| 708 |
#: framework/extensions/mailchimp/customizer.php:139,
|
| 709 |
#: framework/extensions/trending/customizer.php:130,
|
| 710 |
-
#: framework/features/header/header-options.php:
|
| 711 |
-
#: framework/features/header/header-options.php:
|
| 712 |
-
#: framework/premium/
|
|
|
|
|
|
|
| 713 |
#: framework/extensions/widgets/widgets/ct-contact-info/options.php:117,
|
| 714 |
#: framework/premium/features/premium-header/items/contacts/options.php:97
|
| 715 |
msgid "Mobile"
|
| 716 |
msgstr ""
|
| 717 |
|
| 718 |
-
#: framework/extensions/mailchimp/customizer.php:152
|
| 719 |
-
#: framework/features/header/items/account/options.php:170,
|
| 720 |
-
#: framework/features/header/items/account/options.php:197,
|
| 721 |
-
#: framework/features/header/items/account/options.php:228,
|
| 722 |
-
#: framework/features/header/items/account/options.php:258
|
| 723 |
msgid "Content Color"
|
| 724 |
msgstr ""
|
| 725 |
|
|
@@ -733,13 +795,14 @@ msgid "Disable Subscribe Form"
|
|
| 733 |
msgstr ""
|
| 734 |
|
| 735 |
#: framework/extensions/mailchimp/helpers.php:115,
|
| 736 |
-
#: framework/extensions/widgets/widgets/ct-about-me/options.php:81
|
| 737 |
-
#:
|
|
|
|
| 738 |
msgid "Name"
|
| 739 |
msgstr ""
|
| 740 |
|
| 741 |
#: framework/extensions/mailchimp/helpers.php:118,
|
| 742 |
-
#: framework/features/header/account-modal.php:
|
| 743 |
#: framework/extensions/widgets/widgets/ct-contact-info/options.php:201,
|
| 744 |
#: framework/premium/features/premium-header/items/contacts/options.php:178
|
| 745 |
msgid "Email"
|
|
@@ -775,6 +838,156 @@ msgstr ""
|
|
| 775 |
msgid "Customizer ➝ Single Posts"
|
| 776 |
msgstr ""
|
| 777 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 778 |
#: framework/extensions/trending/config.php:4
|
| 779 |
msgid "Trending Block"
|
| 780 |
msgstr ""
|
|
@@ -799,7 +1012,7 @@ msgid "Trending From"
|
|
| 799 |
msgstr ""
|
| 800 |
|
| 801 |
#: framework/extensions/trending/customizer.php:73,
|
| 802 |
-
#: framework/extensions/widgets/widgets/ct-posts/options.php:
|
| 803 |
msgid "All Time"
|
| 804 |
msgstr ""
|
| 805 |
|
|
@@ -833,103 +1046,56 @@ msgid ""
|
|
| 833 |
"Social Icons and more."
|
| 834 |
msgstr ""
|
| 835 |
|
| 836 |
-
#: framework/
|
| 837 |
-
|
| 838 |
-
msgstr ""
|
| 839 |
-
|
| 840 |
-
#: framework/extensions/woocommerce-extra/config.php:5
|
| 841 |
-
msgid "WooCommerce extra functionality."
|
| 842 |
-
msgstr ""
|
| 843 |
-
|
| 844 |
-
#: framework/extensions/woocommerce-extra/customizer.php:5
|
| 845 |
-
msgid "Quick View"
|
| 846 |
-
msgstr ""
|
| 847 |
-
|
| 848 |
-
#: framework/extensions/woocommerce-extra/helpers.php:64
|
| 849 |
-
msgid "Go to product page"
|
| 850 |
-
msgstr ""
|
| 851 |
-
|
| 852 |
-
#: framework/extensions/woocommerce-extra/helpers.php:156
|
| 853 |
-
msgid "Select options"
|
| 854 |
-
msgstr ""
|
| 855 |
-
|
| 856 |
-
#: framework/extensions/woocommerce-extra/readme.php:4
|
| 857 |
-
msgid ""
|
| 858 |
-
"After installing and activating the WooCommerce Extra extension you will "
|
| 859 |
-
"have these features:"
|
| 860 |
-
msgstr ""
|
| 861 |
-
|
| 862 |
-
#: framework/extensions/woocommerce-extra/readme.php:9
|
| 863 |
-
msgid "Product Quick View"
|
| 864 |
-
msgstr ""
|
| 865 |
-
|
| 866 |
-
#: framework/extensions/woocommerce-extra/readme.php:13,
|
| 867 |
-
#: framework/extensions/woocommerce-extra/readme.php:28
|
| 868 |
-
msgid "Navigate to %s and enable or disable it."
|
| 869 |
-
msgstr ""
|
| 870 |
-
|
| 871 |
-
#: framework/extensions/woocommerce-extra/readme.php:16
|
| 872 |
-
msgid "Customizer ➝ WooCommerce ➝ Product Archives ➝ Card Options ➝ Quick View"
|
| 873 |
-
msgstr ""
|
| 874 |
-
|
| 875 |
-
#: framework/extensions/woocommerce-extra/readme.php:24
|
| 876 |
-
msgid "Floating Cart"
|
| 877 |
-
msgstr ""
|
| 878 |
-
|
| 879 |
-
#: framework/extensions/woocommerce-extra/readme.php:31
|
| 880 |
-
msgid "Customizer ➝ WooCommerce ➝ Single Product ➝ Floating Cart"
|
| 881 |
-
msgstr ""
|
| 882 |
-
|
| 883 |
-
#: framework/features/header/account-modal.php:20,
|
| 884 |
-
#: framework/features/header/items/account/options.php:61
|
| 885 |
msgid "Login"
|
| 886 |
msgstr ""
|
| 887 |
|
| 888 |
-
#: framework/features/header/account-modal.php:
|
| 889 |
msgid "Sign Up"
|
| 890 |
msgstr ""
|
| 891 |
|
| 892 |
-
#: framework/features/header/account-modal.php:
|
| 893 |
msgid "Email Address"
|
| 894 |
msgstr ""
|
| 895 |
|
| 896 |
-
#: framework/features/header/account-modal.php:
|
| 897 |
msgid "Password"
|
| 898 |
msgstr ""
|
| 899 |
|
| 900 |
-
#: framework/features/header/account-modal.php:
|
| 901 |
msgid "Remember Me"
|
| 902 |
msgstr ""
|
| 903 |
|
| 904 |
-
#: framework/features/header/account-modal.php:
|
| 905 |
msgid "Forgot Password?"
|
| 906 |
msgstr ""
|
| 907 |
|
| 908 |
-
#: framework/features/header/account-modal.php:
|
| 909 |
msgid "Log In"
|
| 910 |
msgstr ""
|
| 911 |
|
| 912 |
-
#: framework/features/header/account-modal.php:
|
| 913 |
msgid "Username"
|
| 914 |
msgstr ""
|
| 915 |
|
| 916 |
-
#: framework/features/header/account-modal.php:
|
| 917 |
msgid "Registration confirmation will be emailed to you"
|
| 918 |
msgstr ""
|
| 919 |
|
| 920 |
-
#: framework/features/header/account-modal.php:
|
| 921 |
msgid "Register"
|
| 922 |
msgstr ""
|
| 923 |
|
| 924 |
-
#: framework/features/header/account-modal.php:
|
| 925 |
msgid "Username or Email Address"
|
| 926 |
msgstr ""
|
| 927 |
|
| 928 |
-
#: framework/features/header/account-modal.php:
|
| 929 |
msgid "Get New Password"
|
| 930 |
msgstr ""
|
| 931 |
|
| 932 |
-
#: framework/features/header/account-modal.php:
|
| 933 |
msgid "Back to login"
|
| 934 |
msgstr ""
|
| 935 |
|
|
@@ -949,92 +1115,83 @@ msgstr ""
|
|
| 949 |
msgid "Fade"
|
| 950 |
msgstr ""
|
| 951 |
|
| 952 |
-
#: framework/features/header/header-options.php:
|
| 953 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 954 |
msgid "Enable on"
|
| 955 |
msgstr ""
|
| 956 |
|
| 957 |
-
#: framework/features/header/header-options.php:
|
| 958 |
msgid "Transparent Functionality"
|
| 959 |
msgstr ""
|
| 960 |
|
| 961 |
-
#: framework/features/header/header-options.php:
|
| 962 |
-
#: framework/premium/features/content-blocks.php:268
|
| 963 |
#: framework/premium/static/js/footer/EditConditions.js:97
|
| 964 |
#: static/js/header/EditConditions.js:96
|
| 965 |
msgid "Display Conditions"
|
| 966 |
msgstr ""
|
| 967 |
|
| 968 |
-
#: framework/premium/features/content-blocks.php:
|
| 969 |
msgid "Debug Hooks"
|
| 970 |
msgstr ""
|
| 971 |
|
| 972 |
-
#: framework/premium/features/content-blocks.php:
|
| 973 |
-
msgid "Content Block Structure"
|
| 974 |
-
msgstr ""
|
| 975 |
-
|
| 976 |
-
#: framework/premium/features/content-blocks.php:215
|
| 977 |
-
msgid "Narrow Width"
|
| 978 |
-
msgstr ""
|
| 979 |
-
|
| 980 |
-
#: framework/premium/features/content-blocks.php:220
|
| 981 |
-
msgid "Normal Width"
|
| 982 |
-
msgstr ""
|
| 983 |
-
|
| 984 |
-
#: framework/premium/features/content-blocks.php:325
|
| 985 |
-
msgid "Hook Visibility"
|
| 986 |
-
msgstr ""
|
| 987 |
-
|
| 988 |
-
#: framework/premium/features/content-blocks.php:347,
|
| 989 |
#: framework/extensions/widgets/widgets/ct-about-me/options.php:23
|
| 990 |
msgid "Type"
|
| 991 |
msgstr ""
|
| 992 |
|
| 993 |
-
#: framework/premium/features/content-blocks.php:
|
| 994 |
msgid "Shortcode"
|
| 995 |
msgstr ""
|
| 996 |
|
| 997 |
-
#: framework/premium/features/content-blocks.php:
|
| 998 |
-
#: framework/premium/features/content-blocks.php:
|
| 999 |
msgid "Content Blocks"
|
| 1000 |
msgstr ""
|
| 1001 |
|
| 1002 |
-
#: framework/premium/features/content-blocks.php:
|
| 1003 |
msgid "Content Block"
|
| 1004 |
msgstr ""
|
| 1005 |
|
| 1006 |
-
#: framework/premium/features/content-blocks.php:
|
| 1007 |
msgid "Add New"
|
| 1008 |
msgstr ""
|
| 1009 |
|
| 1010 |
-
#: framework/premium/features/content-blocks.php:
|
| 1011 |
msgid "Add New Content Block"
|
| 1012 |
msgstr ""
|
| 1013 |
|
| 1014 |
-
#: framework/premium/features/content-blocks.php:
|
| 1015 |
msgid "Edit Content Block"
|
| 1016 |
msgstr ""
|
| 1017 |
|
| 1018 |
-
#: framework/premium/features/content-blocks.php:
|
| 1019 |
msgid "New Content Block"
|
| 1020 |
msgstr ""
|
| 1021 |
|
| 1022 |
-
#: framework/premium/features/content-blocks.php:
|
| 1023 |
msgid "View Content Block"
|
| 1024 |
msgstr ""
|
| 1025 |
|
| 1026 |
-
#: framework/premium/features/content-blocks.php:
|
| 1027 |
msgid "Search Content Blocks"
|
| 1028 |
msgstr ""
|
| 1029 |
|
| 1030 |
-
#: framework/premium/features/content-blocks.php:
|
| 1031 |
msgid "Nothing found"
|
| 1032 |
msgstr ""
|
| 1033 |
|
| 1034 |
-
#: framework/premium/features/content-blocks.php:
|
| 1035 |
msgid "Nothing found in Trash"
|
| 1036 |
msgstr ""
|
| 1037 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1038 |
#: framework/extensions/mailchimp/ct-mailchimp/options.php:17,
|
| 1039 |
#: framework/extensions/mailchimp/ct-mailchimp/view.php:12
|
| 1040 |
msgid "Newsletter"
|
|
@@ -1044,15 +1201,20 @@ msgstr ""
|
|
| 1044 |
msgid "Content Alignment"
|
| 1045 |
msgstr ""
|
| 1046 |
|
| 1047 |
-
#: framework/extensions/mailchimp/ct-mailchimp/widget.php:
|
| 1048 |
-
msgid "
|
| 1049 |
msgstr ""
|
| 1050 |
|
| 1051 |
-
#: framework/extensions/
|
| 1052 |
-
msgid "
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1053 |
msgstr ""
|
| 1054 |
|
| 1055 |
-
#: framework/premium/extensions/adobe-typekit/config.php:4
|
|
|
|
| 1056 |
msgid "Adobe Typekit"
|
| 1057 |
msgstr ""
|
| 1058 |
|
|
@@ -1071,7 +1233,7 @@ msgstr ""
|
|
| 1071 |
|
| 1072 |
#: framework/premium/extensions/code-snippets/config.php:5
|
| 1073 |
msgid ""
|
| 1074 |
-
"Add custom code snippets in your header and footer,
|
| 1075 |
"page individually."
|
| 1076 |
msgstr ""
|
| 1077 |
|
|
@@ -1088,7 +1250,7 @@ msgid ""
|
|
| 1088 |
msgstr ""
|
| 1089 |
|
| 1090 |
#: framework/premium/extensions/code-snippets/readme.php:9
|
| 1091 |
-
msgid "
|
| 1092 |
msgstr ""
|
| 1093 |
|
| 1094 |
#: framework/premium/extensions/code-snippets/readme.php:13
|
|
@@ -1123,6 +1285,10 @@ msgstr ""
|
|
| 1123 |
msgid "Serve Google Fonts from your own server for full GDPR compliancy."
|
| 1124 |
msgstr ""
|
| 1125 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1126 |
#: framework/premium/extensions/mega-menu/config.php:4
|
| 1127 |
msgid "Advanced Menu"
|
| 1128 |
msgstr ""
|
|
@@ -1131,16 +1297,23 @@ msgstr ""
|
|
| 1131 |
msgid "Create beautiful mega menus, assign icons to menu items"
|
| 1132 |
msgstr ""
|
| 1133 |
|
| 1134 |
-
#: framework/premium/extensions/mega-menu/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1135 |
msgid "Menu Item Settings"
|
| 1136 |
msgstr ""
|
| 1137 |
|
| 1138 |
-
#: framework/premium/extensions/mega-menu/extension.php:
|
| 1139 |
msgid "New"
|
| 1140 |
msgstr ""
|
| 1141 |
|
| 1142 |
#: framework/premium/extensions/mega-menu/options.php:16,
|
| 1143 |
-
#: framework/premium/extensions/mega-menu/options.php:
|
| 1144 |
msgid "Mega Menu Settings"
|
| 1145 |
msgstr ""
|
| 1146 |
|
|
@@ -1177,44 +1350,41 @@ msgid "Custom Text"
|
|
| 1177 |
msgstr ""
|
| 1178 |
|
| 1179 |
#: framework/premium/extensions/mega-menu/options.php:290
|
| 1180 |
-
msgid "
|
| 1181 |
-
msgstr ""
|
| 1182 |
-
|
| 1183 |
-
#: framework/premium/extensions/mega-menu/options.php:319
|
| 1184 |
-
msgid "Select Custom Template"
|
| 1185 |
msgstr ""
|
| 1186 |
|
| 1187 |
-
#: framework/premium/extensions/mega-menu/options.php:
|
| 1188 |
-
#: framework/premium/extensions/mega-menu/options.php:
|
| 1189 |
msgid "Item Label Settings"
|
| 1190 |
msgstr ""
|
| 1191 |
|
| 1192 |
-
#: framework/premium/extensions/mega-menu/options.php:
|
| 1193 |
msgid "Item Label"
|
| 1194 |
msgstr ""
|
| 1195 |
|
| 1196 |
-
#: framework/premium/extensions/mega-menu/options.php:
|
| 1197 |
msgid "Enabled"
|
| 1198 |
msgstr ""
|
| 1199 |
|
| 1200 |
-
#: framework/premium/extensions/mega-menu/options.php:
|
| 1201 |
msgid "Disabled"
|
| 1202 |
msgstr ""
|
| 1203 |
|
| 1204 |
-
#: framework/premium/extensions/mega-menu/options.php:
|
| 1205 |
msgid "Heading"
|
| 1206 |
msgstr ""
|
| 1207 |
|
| 1208 |
-
#: framework/premium/extensions/mega-menu/options.php:
|
| 1209 |
msgid "Label Link"
|
| 1210 |
msgstr ""
|
| 1211 |
|
| 1212 |
-
#: framework/premium/extensions/mega-menu/options.php:
|
| 1213 |
-
#: framework/features/header/items/account/options.php:
|
|
|
|
| 1214 |
msgid "Icon"
|
| 1215 |
msgstr ""
|
| 1216 |
|
| 1217 |
-
#: framework/premium/extensions/mega-menu/options.php:
|
| 1218 |
#: framework/extensions/widgets/widgets/ct-about-me/options.php:187,
|
| 1219 |
#: framework/extensions/widgets/widgets/ct-contact-info/options.php:258,
|
| 1220 |
#: framework/extensions/widgets/widgets/ct-socials/options.php:58,
|
|
@@ -1222,93 +1392,101 @@ msgstr ""
|
|
| 1222 |
msgid "Icons Size"
|
| 1223 |
msgstr ""
|
| 1224 |
|
| 1225 |
-
#: framework/premium/extensions/mega-menu/options.php:
|
|
|
|
|
|
|
| 1226 |
msgid "Icon Alignment"
|
| 1227 |
msgstr ""
|
| 1228 |
|
| 1229 |
-
#: framework/premium/extensions/mega-menu/options.php:
|
|
|
|
|
|
|
| 1230 |
msgid "Left"
|
| 1231 |
msgstr ""
|
| 1232 |
|
| 1233 |
-
#: framework/premium/extensions/mega-menu/options.php:
|
|
|
|
|
|
|
| 1234 |
msgid "Right"
|
| 1235 |
msgstr ""
|
| 1236 |
|
| 1237 |
-
#: framework/premium/extensions/mega-menu/options.php:
|
| 1238 |
-
#: framework/premium/extensions/mega-menu/options.php:
|
| 1239 |
msgid "Menu Badge Settings"
|
| 1240 |
msgstr ""
|
| 1241 |
|
| 1242 |
-
#: framework/premium/extensions/mega-menu/options.php:
|
| 1243 |
#: framework/extensions/widgets/widgets/ct-contact-info/options.php:23
|
| 1244 |
msgid "Text"
|
| 1245 |
msgstr ""
|
| 1246 |
|
| 1247 |
-
#: framework/premium/extensions/mega-menu/options.php:
|
|
|
|
| 1248 |
msgid "Vertical Alignment"
|
| 1249 |
msgstr ""
|
| 1250 |
|
| 1251 |
-
#: framework/premium/extensions/mega-menu/options.php:
|
| 1252 |
msgid "Background"
|
| 1253 |
msgstr ""
|
| 1254 |
|
| 1255 |
-
#: framework/premium/extensions/mega-menu/options.php:
|
| 1256 |
msgid "Link Color"
|
| 1257 |
msgstr ""
|
| 1258 |
|
| 1259 |
-
#: framework/premium/extensions/mega-menu/options.php:
|
| 1260 |
-
#: framework/premium/
|
| 1261 |
-
#: framework/premium/features/premium-header/items/contacts/options.php:
|
| 1262 |
-
#: framework/premium/features/premium-header/items/contacts/options.php:
|
|
|
|
| 1263 |
msgid "Link Initial"
|
| 1264 |
msgstr ""
|
| 1265 |
|
| 1266 |
-
#: framework/premium/extensions/mega-menu/options.php:
|
| 1267 |
msgid "Link Hover/Active"
|
| 1268 |
msgstr ""
|
| 1269 |
|
| 1270 |
-
#: framework/premium/extensions/mega-menu/options.php:
|
| 1271 |
msgid "Background Hover"
|
| 1272 |
msgstr ""
|
| 1273 |
|
| 1274 |
-
#: framework/premium/extensions/mega-menu/options.php:
|
| 1275 |
-
#: framework/premium/extensions/mega-menu/options.php:
|
| 1276 |
msgid "Heading Color"
|
| 1277 |
msgstr ""
|
| 1278 |
|
| 1279 |
-
#: framework/premium/extensions/mega-menu/options.php:
|
| 1280 |
-
#: framework/premium/extensions/mega-menu/options.php:
|
| 1281 |
-
#: framework/premium/extensions/mega-menu/options.php:
|
| 1282 |
msgid "Initial Color"
|
| 1283 |
msgstr ""
|
| 1284 |
|
| 1285 |
-
#: framework/premium/extensions/mega-menu/options.php:
|
| 1286 |
msgid "Text Color"
|
| 1287 |
msgstr ""
|
| 1288 |
|
| 1289 |
-
#: framework/premium/extensions/mega-menu/options.php:
|
| 1290 |
-
#: framework/premium/features/premium-header/items/language-switcher/options.php:
|
| 1291 |
-
#: framework/premium/features/premium-header/items/search-input/options.php:
|
| 1292 |
msgid "Items Divider"
|
| 1293 |
msgstr ""
|
| 1294 |
|
| 1295 |
-
#: framework/premium/extensions/mega-menu/options.php:
|
| 1296 |
msgid "Columns Divider"
|
| 1297 |
msgstr ""
|
| 1298 |
|
| 1299 |
-
#: framework/premium/extensions/mega-menu/options.php:
|
| 1300 |
-
#: framework/premium/features/premium-header/items/search-input/options.php:
|
| 1301 |
msgid "Dropdown Shadow"
|
| 1302 |
msgstr ""
|
| 1303 |
|
| 1304 |
-
#: framework/premium/extensions/mega-menu/options.php:
|
| 1305 |
msgid "Icon Color"
|
| 1306 |
msgstr ""
|
| 1307 |
|
| 1308 |
-
#: framework/premium/extensions/mega-menu/options.php:
|
| 1309 |
-
#: framework/premium/features/premium-header/items/language-switcher/options.php:
|
| 1310 |
-
#: framework/premium/features/premium-header/items/language-switcher/options.php:
|
| 1311 |
-
#: framework/premium/features/premium-header/items/language-switcher/options.php:
|
| 1312 |
msgid "Hover/Active"
|
| 1313 |
msgstr ""
|
| 1314 |
|
|
@@ -1322,6 +1500,10 @@ msgid ""
|
|
| 1322 |
"page or post."
|
| 1323 |
msgstr ""
|
| 1324 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1325 |
#: framework/premium/extensions/sidebars/form.php:3
|
| 1326 |
msgid "Create Sidebar/Widget Area"
|
| 1327 |
msgstr ""
|
|
@@ -1348,72 +1530,705 @@ msgstr ""
|
|
| 1348 |
msgid "Add products to wish list"
|
| 1349 |
msgstr ""
|
| 1350 |
|
| 1351 |
-
#: framework/premium/extensions/wish-list/extension.php:47,
|
| 1352 |
-
#: framework/premium/extensions/wish-list/header-items/wish-list/config.php:4
|
| 1353 |
-
msgid "Wish List"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1354 |
msgstr ""
|
| 1355 |
|
| 1356 |
-
#: framework/premium/
|
| 1357 |
-
msgid "
|
| 1358 |
msgstr ""
|
| 1359 |
|
| 1360 |
-
#: framework/premium/
|
| 1361 |
-
msgid "
|
| 1362 |
msgstr ""
|
| 1363 |
|
| 1364 |
-
#: framework/premium/features/content-blocks/hooks-manager.php:
|
| 1365 |
-
|
| 1366 |
-
#: framework/premium/features/content-blocks/hooks-manager.php:30,
|
| 1367 |
-
#: framework/premium/features/content-blocks/hooks-manager.php:39,
|
| 1368 |
-
#: framework/premium/features/content-blocks/hooks-manager.php:48
|
| 1369 |
-
msgid "In <head>"
|
| 1370 |
msgstr ""
|
| 1371 |
|
| 1372 |
-
#: framework/premium/features/content-blocks/hooks-manager.php:
|
| 1373 |
-
|
| 1374 |
-
#: framework/premium/features/content-blocks/hooks-manager.php:32
|
| 1375 |
-
msgid "Head"
|
| 1376 |
msgstr ""
|
| 1377 |
|
| 1378 |
-
#: framework/premium/features/content-blocks/hooks-manager.php:
|
| 1379 |
-
#: framework/premium/features/content-blocks/hooks-manager.php:
|
| 1380 |
-
|
|
|
|
| 1381 |
msgstr ""
|
| 1382 |
|
| 1383 |
-
#: framework/premium/features/content-blocks/hooks-manager.php:
|
| 1384 |
-
msgid "
|
| 1385 |
msgstr ""
|
| 1386 |
|
| 1387 |
-
#: framework/premium/features/content-blocks/hooks-manager.php:
|
| 1388 |
-
|
| 1389 |
-
#: framework/premium/features/content-blocks/hooks-manager.php:78
|
| 1390 |
-
msgid "Sidebar"
|
| 1391 |
msgstr ""
|
| 1392 |
|
| 1393 |
-
#: framework/premium/features/content-blocks/
|
| 1394 |
-
msgid "
|
| 1395 |
msgstr ""
|
| 1396 |
|
| 1397 |
-
#: framework/premium/features/content-blocks/
|
| 1398 |
-
msgid "
|
| 1399 |
msgstr ""
|
| 1400 |
|
| 1401 |
-
#: framework/premium/features/content-blocks/
|
| 1402 |
-
|
| 1403 |
-
#: framework/premium/features/content-blocks/hooks-manager.php:211
|
| 1404 |
-
msgid "WooCommerce"
|
| 1405 |
msgstr ""
|
| 1406 |
|
| 1407 |
-
#: framework/premium/features/content-blocks/
|
| 1408 |
-
|
| 1409 |
-
#: framework/premium/features/content-blocks/hooks-manager.php:237
|
| 1410 |
-
msgid "WordPress Footer"
|
| 1411 |
msgstr ""
|
| 1412 |
|
| 1413 |
-
#: framework/premium/features/content-blocks/
|
| 1414 |
-
|
| 1415 |
-
#: framework/premium/features/content-blocks/hooks-manager.php:238
|
| 1416 |
-
msgid "Footer"
|
| 1417 |
msgstr ""
|
| 1418 |
|
| 1419 |
#: framework/extensions/widgets/widgets/ct-about-me/options.php:18,
|
|
@@ -1432,8 +2247,8 @@ msgstr ""
|
|
| 1432 |
|
| 1433 |
#: framework/extensions/widgets/widgets/ct-about-me/options.php:37,
|
| 1434 |
#: framework/extensions/widgets/widgets/ct-advertisement/options.php:23,
|
| 1435 |
-
#: framework/extensions/widgets/widgets/ct-posts/options.php:
|
| 1436 |
-
#: framework/extensions/widgets/widgets/ct-posts/options.php:
|
| 1437 |
msgid "Source"
|
| 1438 |
msgstr ""
|
| 1439 |
|
|
@@ -1446,7 +2261,7 @@ msgid "User"
|
|
| 1446 |
msgstr ""
|
| 1447 |
|
| 1448 |
#: framework/extensions/widgets/widgets/ct-about-me/options.php:72,
|
| 1449 |
-
#: framework/features/header/items/account/options.php:
|
| 1450 |
msgid "Avatar"
|
| 1451 |
msgstr ""
|
| 1452 |
|
|
@@ -1464,7 +2279,7 @@ msgstr ""
|
|
| 1464 |
|
| 1465 |
#: framework/extensions/widgets/widgets/ct-about-me/options.php:100,
|
| 1466 |
#: framework/extensions/widgets/widgets/ct-about-me/options.php:107,
|
| 1467 |
-
#: framework/features/header/items/account/options.php:
|
| 1468 |
msgid "Avatar Size"
|
| 1469 |
msgstr ""
|
| 1470 |
|
|
@@ -1475,13 +2290,6 @@ msgstr ""
|
|
| 1475 |
msgid "Small"
|
| 1476 |
msgstr ""
|
| 1477 |
|
| 1478 |
-
#: framework/extensions/widgets/widgets/ct-about-me/options.php:114,
|
| 1479 |
-
#: framework/extensions/widgets/widgets/ct-about-me/options.php:195,
|
| 1480 |
-
#: framework/extensions/widgets/widgets/ct-contact-info/options.php:266,
|
| 1481 |
-
#: framework/extensions/widgets/widgets/ct-socials/options.php:66
|
| 1482 |
-
msgid "Medium"
|
| 1483 |
-
msgstr ""
|
| 1484 |
-
|
| 1485 |
#: framework/extensions/widgets/widgets/ct-about-me/options.php:115,
|
| 1486 |
#: framework/extensions/widgets/widgets/ct-about-me/options.php:196,
|
| 1487 |
#: framework/extensions/widgets/widgets/ct-contact-info/options.php:267,
|
|
@@ -1528,6 +2336,8 @@ msgstr ""
|
|
| 1528 |
#: framework/extensions/widgets/widgets/ct-about-me/options.php:208,
|
| 1529 |
#: framework/extensions/widgets/widgets/ct-contact-info/options.php:279,
|
| 1530 |
#: framework/extensions/widgets/widgets/ct-socials/options.php:79,
|
|
|
|
|
|
|
| 1531 |
#: framework/premium/features/premium-header/items/contacts/options.php:273
|
| 1532 |
msgid "None"
|
| 1533 |
msgstr ""
|
|
@@ -1727,10 +2537,6 @@ msgstr ""
|
|
| 1727 |
msgid "Facebook like box"
|
| 1728 |
msgstr ""
|
| 1729 |
|
| 1730 |
-
#: framework/extensions/widgets/widgets/ct-posts/options.php:37
|
| 1731 |
-
msgid "Category"
|
| 1732 |
-
msgstr ""
|
| 1733 |
-
|
| 1734 |
#: framework/extensions/widgets/widgets/ct-posts/options.php:38
|
| 1735 |
msgid "All categories"
|
| 1736 |
msgstr ""
|
|
@@ -1771,76 +2577,76 @@ msgstr ""
|
|
| 1771 |
msgid "Numbered"
|
| 1772 |
msgstr ""
|
| 1773 |
|
| 1774 |
-
#: framework/extensions/widgets/widgets/ct-posts/options.php:
|
| 1775 |
msgid "Post Type"
|
| 1776 |
msgstr ""
|
| 1777 |
|
| 1778 |
-
#: framework/extensions/widgets/widgets/ct-posts/options.php:
|
| 1779 |
msgid "Taxonomies"
|
| 1780 |
msgstr ""
|
| 1781 |
|
| 1782 |
-
#: framework/extensions/widgets/widgets/ct-posts/options.php:
|
| 1783 |
-
#: framework/extensions/widgets/widgets/ct-posts/options.php:
|
| 1784 |
msgid "Custom Query"
|
| 1785 |
msgstr ""
|
| 1786 |
|
| 1787 |
-
#: framework/extensions/widgets/widgets/ct-posts/options.php:
|
| 1788 |
msgid "Sort by"
|
| 1789 |
msgstr ""
|
| 1790 |
|
| 1791 |
-
#: framework/extensions/widgets/widgets/ct-posts/options.php:
|
| 1792 |
msgid "Recent"
|
| 1793 |
msgstr ""
|
| 1794 |
|
| 1795 |
-
#: framework/extensions/widgets/widgets/ct-posts/options.php:
|
| 1796 |
msgid "Most Commented"
|
| 1797 |
msgstr ""
|
| 1798 |
|
| 1799 |
-
#: framework/extensions/widgets/widgets/ct-posts/options.php:
|
| 1800 |
msgid "Order by"
|
| 1801 |
msgstr ""
|
| 1802 |
|
| 1803 |
-
#: framework/extensions/widgets/widgets/ct-posts/options.php:
|
| 1804 |
msgid "1 Week"
|
| 1805 |
msgstr ""
|
| 1806 |
|
| 1807 |
-
#: framework/extensions/widgets/widgets/ct-posts/options.php:
|
| 1808 |
msgid "1 Month"
|
| 1809 |
msgstr ""
|
| 1810 |
|
| 1811 |
-
#: framework/extensions/widgets/widgets/ct-posts/options.php:
|
| 1812 |
msgid "3 Months"
|
| 1813 |
msgstr ""
|
| 1814 |
|
| 1815 |
-
#: framework/extensions/widgets/widgets/ct-posts/options.php:
|
| 1816 |
msgid "6 Months"
|
| 1817 |
msgstr ""
|
| 1818 |
|
| 1819 |
-
#: framework/extensions/widgets/widgets/ct-posts/options.php:
|
| 1820 |
msgid "1 Year"
|
| 1821 |
msgstr ""
|
| 1822 |
|
| 1823 |
-
#: framework/extensions/widgets/widgets/ct-posts/options.php:
|
| 1824 |
msgid "Posts Count"
|
| 1825 |
msgstr ""
|
| 1826 |
|
| 1827 |
-
#: framework/extensions/widgets/widgets/ct-posts/options.php:
|
| 1828 |
msgid "Pages Count"
|
| 1829 |
msgstr ""
|
| 1830 |
|
| 1831 |
-
#: framework/extensions/widgets/widgets/ct-posts/options.php:
|
| 1832 |
msgid "Show Date"
|
| 1833 |
msgstr ""
|
| 1834 |
|
| 1835 |
-
#: framework/extensions/widgets/widgets/ct-posts/options.php:
|
| 1836 |
msgid "Show Comments"
|
| 1837 |
msgstr ""
|
| 1838 |
|
| 1839 |
-
#: framework/extensions/widgets/widgets/ct-posts/options.php:
|
| 1840 |
msgid "Show Excerpt"
|
| 1841 |
msgstr ""
|
| 1842 |
|
| 1843 |
-
#: framework/extensions/widgets/widgets/ct-posts/options.php:
|
| 1844 |
msgid "Excerpt Lenght"
|
| 1845 |
msgstr ""
|
| 1846 |
|
|
@@ -1882,114 +2688,165 @@ msgstr ""
|
|
| 1882 |
msgid "Social channels icons"
|
| 1883 |
msgstr ""
|
| 1884 |
|
| 1885 |
-
#: framework/features/header/items/account/options.php:
|
| 1886 |
-
msgid "
|
| 1887 |
msgstr ""
|
| 1888 |
|
| 1889 |
-
#: framework/features/header/items/account/options.php:
|
| 1890 |
-
|
| 1891 |
-
#: framework/features/header/items/account/options.php:87,
|
| 1892 |
-
#: framework/features/header/items/account/view.php:39,
|
| 1893 |
-
#: framework/features/header/items/account/view.php:40,
|
| 1894 |
-
#: framework/premium/features/premium-header/items/language-switcher/options.php:50
|
| 1895 |
-
msgid "Label"
|
| 1896 |
msgstr ""
|
| 1897 |
|
| 1898 |
-
#: framework/features/header/items/account/options.php:
|
| 1899 |
-
msgid "
|
| 1900 |
msgstr ""
|
| 1901 |
|
| 1902 |
-
#: framework/features/header/items/account/options.php:
|
| 1903 |
-
|
|
|
|
| 1904 |
msgstr ""
|
| 1905 |
|
| 1906 |
-
#: framework/features/header/items/account/options.php:
|
| 1907 |
-
msgid "
|
| 1908 |
msgstr ""
|
| 1909 |
|
| 1910 |
-
#: framework/features/header/items/account/options.php:
|
| 1911 |
-
msgid "
|
| 1912 |
msgstr ""
|
| 1913 |
|
| 1914 |
-
#: framework/features/header/items/account/options.php:
|
| 1915 |
-
msgid ""
|
| 1916 |
-
"Set the action you want to make when clicking on the element whyile you are "
|
| 1917 |
-
"logged in."
|
| 1918 |
msgstr ""
|
| 1919 |
|
| 1920 |
-
#: framework/features/header/items/account/options.php:
|
| 1921 |
-
|
|
|
|
| 1922 |
msgstr ""
|
| 1923 |
|
| 1924 |
-
#: framework/features/header/items/account/options.php:
|
| 1925 |
-
msgid "
|
| 1926 |
msgstr ""
|
| 1927 |
|
| 1928 |
-
#: framework/features/header/items/account/options.php:
|
| 1929 |
-
msgid "
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1930 |
msgstr ""
|
| 1931 |
|
| 1932 |
-
|
| 1933 |
-
|
|
|
|
| 1934 |
msgstr ""
|
| 1935 |
|
| 1936 |
-
#: framework/features/header/items/account/options.php:
|
|
|
|
| 1937 |
msgid "Custom Page Link"
|
| 1938 |
msgstr ""
|
| 1939 |
|
| 1940 |
-
#: framework/features/header/items/account/options.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1941 |
#: framework/premium/features/premium-header/items/contacts/options.php:326,
|
| 1942 |
-
#: framework/premium/features/premium-header/items/contacts/options.php:
|
| 1943 |
-
#: framework/premium/features/premium-header/items/contacts/options.php:
|
| 1944 |
-
#: framework/premium/features/premium-header/items/
|
| 1945 |
-
#: framework/premium/features/premium-header/items/
|
| 1946 |
-
#: framework/premium/features/premium-header/items/search-input/options.php:
|
| 1947 |
-
#: framework/premium/features/premium-header/items/search-input/options.php:
|
| 1948 |
-
#: framework/premium/features/premium-header/items/search-input/options.php:366
|
| 1949 |
msgid "Default State"
|
| 1950 |
msgstr ""
|
| 1951 |
|
| 1952 |
-
#: framework/features/header/items/account/options.php:
|
| 1953 |
#: framework/premium/features/premium-header/items/contacts/options.php:331,
|
| 1954 |
-
#: framework/premium/features/premium-header/items/contacts/options.php:
|
| 1955 |
-
#: framework/premium/features/premium-header/items/contacts/options.php:
|
| 1956 |
-
#: framework/premium/features/premium-header/items/
|
| 1957 |
-
#: framework/premium/features/premium-header/items/
|
| 1958 |
-
#: framework/premium/features/premium-header/items/search-input/options.php:
|
| 1959 |
-
#: framework/premium/features/premium-header/items/search-input/options.php:
|
| 1960 |
-
#: framework/premium/features/premium-header/items/search-input/options.php:371
|
| 1961 |
msgid "Transparent State"
|
| 1962 |
msgstr ""
|
| 1963 |
|
| 1964 |
-
#: framework/features/header/items/account/options.php:
|
| 1965 |
-
#: framework/premium/features/premium-header/items/contacts/options.php:
|
| 1966 |
-
#: framework/premium/features/premium-header/items/contacts/options.php:
|
| 1967 |
-
#: framework/premium/features/premium-header/items/contacts/options.php:
|
| 1968 |
-
#: framework/premium/features/premium-header/items/
|
| 1969 |
-
#: framework/premium/features/premium-header/items/
|
| 1970 |
-
#: framework/premium/features/premium-header/items/search-input/options.php:
|
| 1971 |
-
#: framework/premium/features/premium-header/items/search-input/options.php:
|
| 1972 |
-
#: framework/premium/features/premium-header/items/search-input/options.php:379
|
| 1973 |
msgid "Sticky State"
|
| 1974 |
msgstr ""
|
| 1975 |
|
| 1976 |
-
#: framework/features/header/items/account/options.php:
|
| 1977 |
msgid "Item Margin"
|
| 1978 |
msgstr ""
|
| 1979 |
|
| 1980 |
-
#: framework/features/header/items/account/options.php:
|
| 1981 |
-
msgid "
|
| 1982 |
msgstr ""
|
| 1983 |
|
| 1984 |
-
#: framework/features/header/items/account/options.php:
|
| 1985 |
-
msgid "
|
| 1986 |
msgstr ""
|
| 1987 |
|
| 1988 |
-
#: framework/features/header/items/account/options.php:
|
| 1989 |
-
msgid "
|
| 1990 |
msgstr ""
|
| 1991 |
|
| 1992 |
-
#: framework/features/header/items/account/view.php:
|
| 1993 |
msgid "Account"
|
| 1994 |
msgstr ""
|
| 1995 |
|
|
@@ -1998,37 +2855,28 @@ msgid "Contacts"
|
|
| 1998 |
msgstr ""
|
| 1999 |
|
| 2000 |
#: framework/premium/features/premium-header/items/contacts/options.php:255,
|
| 2001 |
-
#: framework/premium/features/premium-header/items/language-switcher/options.php:
|
| 2002 |
msgid "Items Spacing"
|
| 2003 |
msgstr ""
|
| 2004 |
|
| 2005 |
#: framework/premium/features/premium-header/items/contacts/options.php:311,
|
| 2006 |
-
#: framework/premium/features/premium-header/items/language-switcher/options.php:
|
|
|
|
| 2007 |
msgid "Font"
|
| 2008 |
msgstr ""
|
| 2009 |
|
| 2010 |
-
#: framework/premium/features/premium-header/items/contacts/options.php:
|
| 2011 |
-
#: framework/premium/features/premium-header/items/contacts/options.php:
|
| 2012 |
-
#: framework/premium/features/premium-header/items/contacts/options.php:
|
| 2013 |
-
|
| 2014 |
-
msgstr ""
|
| 2015 |
-
|
| 2016 |
-
#: framework/premium/features/premium-header/items/contacts/options.php:383,
|
| 2017 |
-
#: framework/premium/features/premium-header/items/contacts/options.php:424,
|
| 2018 |
-
#: framework/premium/features/premium-header/items/contacts/options.php:464
|
| 2019 |
-
msgid "Link Hover"
|
| 2020 |
-
msgstr ""
|
| 2021 |
-
|
| 2022 |
-
#: framework/premium/features/premium-header/items/contacts/options.php:488,
|
| 2023 |
-
#: framework/premium/features/premium-header/items/contacts/options.php:515,
|
| 2024 |
-
#: framework/premium/features/premium-header/items/contacts/options.php:546,
|
| 2025 |
-
#: framework/premium/features/premium-header/items/contacts/options.php:576
|
| 2026 |
msgid "Icons Color"
|
| 2027 |
msgstr ""
|
| 2028 |
|
| 2029 |
-
#: framework/premium/features/premium-header/items/contacts/options.php:
|
| 2030 |
-
#: framework/premium/features/premium-header/items/divider/options.php:
|
| 2031 |
-
#: framework/premium/features/premium-header/items/
|
|
|
|
|
|
|
| 2032 |
msgid "Margin"
|
| 2033 |
msgstr ""
|
| 2034 |
|
|
@@ -2036,66 +2884,59 @@ msgstr ""
|
|
| 2036 |
msgid "Divider"
|
| 2037 |
msgstr ""
|
| 2038 |
|
| 2039 |
-
#: framework/premium/features/premium-header/items/divider/options.php:
|
| 2040 |
-
msgid "
|
| 2041 |
-
msgstr ""
|
| 2042 |
-
|
| 2043 |
-
#: framework/premium/features/premium-header/items/divider/options.php:47,
|
| 2044 |
-
#: framework/premium/features/premium-header/items/divider/options.php:74,
|
| 2045 |
-
#: framework/premium/features/premium-header/items/divider/options.php:94,
|
| 2046 |
-
#: framework/premium/features/premium-header/items/divider/options.php:114
|
| 2047 |
-
msgid "Color"
|
| 2048 |
msgstr ""
|
| 2049 |
|
| 2050 |
#: framework/premium/features/premium-header/items/language-switcher/config.php:6
|
| 2051 |
msgid "Languages"
|
| 2052 |
msgstr ""
|
| 2053 |
|
| 2054 |
-
#: framework/premium/features/premium-header/items/language-switcher/options.php:
|
| 2055 |
msgid "Top Level Options"
|
| 2056 |
msgstr ""
|
| 2057 |
|
| 2058 |
-
#: framework/premium/features/premium-header/items/language-switcher/options.php:
|
| 2059 |
msgid "Dropdown"
|
| 2060 |
msgstr ""
|
| 2061 |
|
| 2062 |
-
#: framework/premium/features/premium-header/items/language-switcher/options.php:
|
| 2063 |
msgid "Display"
|
| 2064 |
msgstr ""
|
| 2065 |
|
| 2066 |
-
#: framework/premium/features/premium-header/items/language-switcher/options.php:
|
| 2067 |
msgid "Flag"
|
| 2068 |
msgstr ""
|
| 2069 |
|
| 2070 |
-
#: framework/premium/features/premium-header/items/language-switcher/options.php:
|
| 2071 |
msgid "Label Style"
|
| 2072 |
msgstr ""
|
| 2073 |
|
| 2074 |
-
#: framework/premium/features/premium-header/items/language-switcher/options.php:
|
| 2075 |
msgid "Long"
|
| 2076 |
msgstr ""
|
| 2077 |
|
| 2078 |
-
#: framework/premium/features/premium-header/items/language-switcher/options.php:
|
| 2079 |
msgid "Short"
|
| 2080 |
msgstr ""
|
| 2081 |
|
| 2082 |
-
#: framework/premium/features/premium-header/items/language-switcher/options.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2083 |
msgid "Dropdown Options"
|
| 2084 |
msgstr ""
|
| 2085 |
|
| 2086 |
-
#: framework/premium/features/premium-header/items/language-switcher/options.php:
|
| 2087 |
msgid "Dropdown Top Offset"
|
| 2088 |
msgstr ""
|
| 2089 |
|
| 2090 |
-
#: framework/premium/features/premium-header/items/language-switcher/options.php:
|
| 2091 |
msgid "Items Vertical Spacing"
|
| 2092 |
msgstr ""
|
| 2093 |
|
| 2094 |
-
#: framework/premium/features/premium-header/items/language-switcher/options.php:
|
| 2095 |
-
msgid "Shadow"
|
| 2096 |
-
msgstr ""
|
| 2097 |
-
|
| 2098 |
-
#: framework/premium/features/premium-header/items/language-switcher/options.php:376
|
| 2099 |
msgid "Border Radius"
|
| 2100 |
msgstr ""
|
| 2101 |
|
|
@@ -2103,68 +2944,68 @@ msgstr ""
|
|
| 2103 |
msgid "Search Box"
|
| 2104 |
msgstr ""
|
| 2105 |
|
| 2106 |
-
#: framework/premium/features/premium-header/items/search-input/options.php:
|
| 2107 |
msgid "Placeholder Text"
|
| 2108 |
msgstr ""
|
| 2109 |
|
| 2110 |
-
#: framework/premium/features/premium-header/items/search-input/options.php:
|
| 2111 |
msgid "Input Maximum Width"
|
| 2112 |
msgstr ""
|
| 2113 |
|
| 2114 |
-
#: framework/premium/features/premium-header/items/search-input/options.php:
|
| 2115 |
msgid "Input Height"
|
| 2116 |
msgstr ""
|
| 2117 |
|
| 2118 |
-
#: framework/premium/features/premium-header/items/search-input/options.php:
|
| 2119 |
msgid "Live Results"
|
| 2120 |
msgstr ""
|
| 2121 |
|
| 2122 |
-
#: framework/premium/features/premium-header/items/search-input/options.php:
|
| 2123 |
msgid "Search Through Criteria"
|
| 2124 |
msgstr ""
|
| 2125 |
|
| 2126 |
-
#: framework/premium/features/premium-header/items/search-input/options.php:
|
| 2127 |
msgid "Chose in which post types do you want to perform searches."
|
| 2128 |
msgstr ""
|
| 2129 |
|
| 2130 |
-
#: framework/premium/features/premium-header/items/search-input/options.php:
|
| 2131 |
-
#: framework/premium/features/premium-header/items/search-input/options.php:
|
| 2132 |
-
#: framework/premium/features/premium-header/items/search-input/options.php:
|
| 2133 |
-
#: framework/premium/features/premium-header/items/search-input/options.php:
|
| 2134 |
msgid "Input Font Color"
|
| 2135 |
msgstr ""
|
| 2136 |
|
| 2137 |
-
#: framework/premium/features/premium-header/items/search-input/options.php:
|
| 2138 |
-
#: framework/premium/features/premium-header/items/search-input/options.php:
|
| 2139 |
-
#: framework/premium/features/premium-header/items/search-input/options.php:
|
| 2140 |
-
#: framework/premium/features/premium-header/items/search-input/options.php:279,
|
| 2141 |
-
#: framework/premium/features/premium-header/items/search-input/options.php:309,
|
| 2142 |
#: framework/premium/features/premium-header/items/search-input/options.php:339,
|
| 2143 |
-
#: framework/premium/features/premium-header/items/search-input/options.php:
|
| 2144 |
-
#: framework/premium/features/premium-header/items/search-input/options.php:
|
| 2145 |
-
#: framework/premium/features/premium-header/items/search-input/options.php:
|
|
|
|
|
|
|
| 2146 |
msgid "Focus"
|
| 2147 |
msgstr ""
|
| 2148 |
|
| 2149 |
-
#: framework/premium/features/premium-header/items/search-input/options.php:
|
| 2150 |
-
#: framework/premium/features/premium-header/items/search-input/options.php:
|
| 2151 |
-
#: framework/premium/features/premium-header/items/search-input/options.php:
|
| 2152 |
-
#: framework/premium/features/premium-header/items/search-input/options.php:
|
| 2153 |
msgid "Input Border Color"
|
| 2154 |
msgstr ""
|
| 2155 |
|
| 2156 |
-
#: framework/premium/features/premium-header/items/search-input/options.php:
|
| 2157 |
-
#: framework/premium/features/premium-header/items/search-input/options.php:
|
| 2158 |
-
#: framework/premium/features/premium-header/items/search-input/options.php:
|
| 2159 |
-
#: framework/premium/features/premium-header/items/search-input/options.php:
|
| 2160 |
msgid "Input Background Color"
|
| 2161 |
msgstr ""
|
| 2162 |
|
| 2163 |
-
#: framework/premium/features/premium-header/items/search-input/options.php:
|
| 2164 |
msgid "Dropdown Text Color"
|
| 2165 |
msgstr ""
|
| 2166 |
|
| 2167 |
-
#: framework/premium/features/premium-header/items/search-input/options.php:
|
| 2168 |
msgid "Dropdown Background"
|
| 2169 |
msgstr ""
|
| 2170 |
|
|
@@ -2174,8 +3015,8 @@ msgstr ""
|
|
| 2174 |
|
| 2175 |
#: framework/extensions/mailchimp/admin-static/js/ListPicker.js:14
|
| 2176 |
#: framework/extensions/mailchimp/admin-static/js/ListPicker/Implementation.js:59
|
| 2177 |
-
#: framework/extensions/mailchimp/dashboard-static/js/EditCredentials.js:
|
| 2178 |
-
#: static/js/screens/SiteExport.js:
|
| 2179 |
msgid "Loading..."
|
| 2180 |
msgstr ""
|
| 2181 |
|
|
@@ -2189,35 +3030,45 @@ msgstr ""
|
|
| 2189 |
msgid "Select list..."
|
| 2190 |
msgstr ""
|
| 2191 |
|
| 2192 |
-
#: framework/extensions/mailchimp/dashboard-static/js/EditCredentials.js:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2193 |
#: framework/extensions/mailchimp/dashboard-static/js/Mailchimp.js:74
|
|
|
|
| 2194 |
#: framework/premium/extensions/adobe-typekit/static/js/AdobeTypekit.js:72
|
| 2195 |
#: framework/premium/extensions/custom-fonts/dashboard-static/js/CustomFonts.js:71
|
| 2196 |
-
#: framework/premium/extensions/local-google-fonts/dashboard-static/js/LocalGoogleFonts.js:
|
| 2197 |
#: framework/premium/extensions/white-label/dashboard-static/js/WhiteLabel.js:75
|
| 2198 |
#: static/js/screens/Extensions.js:80
|
| 2199 |
msgid "Activate"
|
| 2200 |
msgstr ""
|
| 2201 |
|
| 2202 |
-
#: framework/extensions/mailchimp/dashboard-static/js/EditCredentials.js:
|
|
|
|
| 2203 |
#: framework/premium/extensions/sidebars/static/js/SettingsManager.js:99
|
| 2204 |
-
#: framework/premium/extensions/white-label/dashboard-static/js/EditSettings.js:
|
| 2205 |
#: framework/premium/static/js/footer/EditConditions.js:143
|
| 2206 |
msgid "Save Settings"
|
| 2207 |
msgstr ""
|
| 2208 |
|
| 2209 |
-
#: framework/extensions/mailchimp/dashboard-static/js/EditCredentials.js:
|
| 2210 |
-
msgid "
|
| 2211 |
msgstr ""
|
| 2212 |
|
| 2213 |
-
#: framework/extensions/mailchimp/dashboard-static/js/EditCredentials.js:
|
| 2214 |
msgid ""
|
| 2215 |
-
"Enter your
|
| 2216 |
-
"generate an API key can be found %shere%s."
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2217 |
msgstr ""
|
| 2218 |
|
| 2219 |
#: framework/extensions/mailchimp/dashboard-static/js/EditCredentials.js:93
|
| 2220 |
-
msgid "
|
| 2221 |
msgstr ""
|
| 2222 |
|
| 2223 |
#: framework/extensions/mailchimp/dashboard-static/js/ListPicker.js:84
|
|
@@ -2225,17 +3076,35 @@ msgid "Loading"
|
|
| 2225 |
msgstr ""
|
| 2226 |
|
| 2227 |
#: framework/extensions/mailchimp/dashboard-static/js/Mailchimp.js:73
|
|
|
|
| 2228 |
#: framework/premium/extensions/adobe-typekit/static/js/AdobeTypekit.js:71
|
| 2229 |
#: framework/premium/extensions/custom-fonts/dashboard-static/js/CustomFonts.js:70
|
| 2230 |
-
#: framework/premium/extensions/local-google-fonts/dashboard-static/js/LocalGoogleFonts.js:
|
| 2231 |
#: framework/premium/extensions/white-label/dashboard-static/js/WhiteLabel.js:74
|
| 2232 |
#: static/js/screens/Extensions.js:79
|
| 2233 |
msgid "Deactivate"
|
| 2234 |
msgstr ""
|
| 2235 |
|
| 2236 |
-
#: framework/extensions/
|
| 2237 |
-
|
| 2238 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2239 |
msgstr ""
|
| 2240 |
|
| 2241 |
#: framework/premium/extensions/adobe-typekit/static/js/EditSettings.js:108
|
|
@@ -2262,7 +3131,7 @@ msgid "Please enter the valid Project ID to get the kit details"
|
|
| 2262 |
msgstr ""
|
| 2263 |
|
| 2264 |
#: framework/premium/extensions/adobe-typekit/static/js/EditSettings.js:214
|
| 2265 |
-
#: framework/premium/extensions/custom-fonts/dashboard-static/js/AllFonts.js:
|
| 2266 |
msgid "Variations"
|
| 2267 |
msgstr ""
|
| 2268 |
|
|
@@ -2275,6 +3144,16 @@ msgstr ""
|
|
| 2275 |
msgid "Add/Edit Fonts"
|
| 2276 |
msgstr ""
|
| 2277 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2278 |
#: framework/premium/extensions/custom-fonts/dashboard-static/js/AllFonts.js:23
|
| 2279 |
msgid "Custom Fonts Settings"
|
| 2280 |
msgstr ""
|
|
@@ -2285,86 +3164,101 @@ msgid ""
|
|
| 2285 |
"options across the theme."
|
| 2286 |
msgstr ""
|
| 2287 |
|
| 2288 |
-
#: framework/premium/extensions/custom-fonts/dashboard-static/js/AllFonts.js:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2289 |
msgid "Edit Font"
|
| 2290 |
msgstr ""
|
| 2291 |
|
| 2292 |
-
#: framework/premium/extensions/custom-fonts/dashboard-static/js/AllFonts.js:
|
| 2293 |
msgid "Remove Font"
|
| 2294 |
msgstr ""
|
| 2295 |
|
| 2296 |
-
#: framework/premium/extensions/custom-fonts/dashboard-static/js/AllFonts.js:
|
| 2297 |
msgid ""
|
| 2298 |
"There are no custom fonts at the moment, hit the button below and upload "
|
| 2299 |
"some."
|
| 2300 |
msgstr ""
|
| 2301 |
|
| 2302 |
-
#: framework/premium/extensions/custom-fonts/dashboard-static/js/AllFonts.js:92
|
| 2303 |
-
msgid "Upload Font"
|
| 2304 |
-
msgstr ""
|
| 2305 |
-
|
| 2306 |
#: framework/premium/extensions/custom-fonts/dashboard-static/js/EditSettings.js:79
|
| 2307 |
msgid "Settings"
|
| 2308 |
msgstr ""
|
| 2309 |
|
| 2310 |
-
#: framework/premium/extensions/custom-fonts/dashboard-static/js/Uploader.js:
|
| 2311 |
msgid "Change"
|
| 2312 |
msgstr ""
|
| 2313 |
|
| 2314 |
-
#: framework/premium/extensions/custom-fonts/dashboard-static/js/Uploader.js:
|
| 2315 |
msgid "Choose"
|
| 2316 |
msgstr ""
|
| 2317 |
|
| 2318 |
-
#: framework/premium/extensions/custom-fonts/dashboard-static/js/Uploader.js:
|
| 2319 |
-
#: static/js/options/ConditionsManager.js:
|
| 2320 |
msgid "Select variation"
|
| 2321 |
msgstr ""
|
| 2322 |
|
| 2323 |
-
#: framework/premium/extensions/custom-fonts/dashboard-static/js/Uploader.js:
|
| 2324 |
-
msgid "
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2325 |
msgstr ""
|
| 2326 |
|
| 2327 |
-
#: framework/premium/extensions/custom-fonts/dashboard-static/js/Uploader.js:
|
| 2328 |
msgid ""
|
| 2329 |
"Upload only the %s.woff2%s font file format (see browser coverage %shere%s). "
|
| 2330 |
"Use %sthis converter tool%s if you don't have this font format."
|
| 2331 |
msgstr ""
|
| 2332 |
|
| 2333 |
-
#: framework/premium/extensions/custom-fonts/dashboard-static/js/Uploader.js:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2334 |
msgid "Font Name"
|
| 2335 |
msgstr ""
|
| 2336 |
|
| 2337 |
-
#: framework/premium/extensions/custom-fonts/dashboard-static/js/Uploader.js:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2338 |
msgid "Back to All Fonts"
|
| 2339 |
msgstr ""
|
| 2340 |
|
| 2341 |
-
#: framework/premium/extensions/custom-fonts/dashboard-static/js/Uploader.js:
|
| 2342 |
msgid "Save Custom Font"
|
| 2343 |
msgstr ""
|
| 2344 |
|
| 2345 |
-
#: framework/premium/extensions/custom-fonts/dashboard-static/js/Uploader.js:
|
| 2346 |
msgid "Add Variation"
|
| 2347 |
msgstr ""
|
| 2348 |
|
| 2349 |
-
#: framework/premium/extensions/local-google-fonts/dashboard-static/js/EditSettings.js:
|
| 2350 |
msgid ""
|
| 2351 |
"By checking this option you will download and replace the existing Google "
|
| 2352 |
"Fonts with the above ones."
|
| 2353 |
msgstr ""
|
| 2354 |
|
| 2355 |
-
#: framework/premium/extensions/local-google-fonts/dashboard-static/js/EditSettings.js:
|
| 2356 |
msgid "Sync Google Fonts"
|
| 2357 |
msgstr ""
|
| 2358 |
|
| 2359 |
-
#: framework/premium/extensions/local-google-fonts/dashboard-static/js/EditSettings.js:
|
| 2360 |
msgid "Add Google Fonts"
|
| 2361 |
msgstr ""
|
| 2362 |
|
| 2363 |
-
#: framework/premium/extensions/local-google-fonts/dashboard-static/js/EditSettings.js:
|
| 2364 |
msgid "Local Google Fonts (GDPR)"
|
| 2365 |
msgstr ""
|
| 2366 |
|
| 2367 |
-
#: framework/premium/extensions/local-google-fonts/dashboard-static/js/EditSettings.js:
|
| 2368 |
msgid ""
|
| 2369 |
"Download a font and serve it directly from your server, this is handy for "
|
| 2370 |
"those who want to comply with GDPR regulations or serve the font via CDN."
|
|
@@ -2374,10 +3268,6 @@ msgstr ""
|
|
| 2374 |
msgid "Item Settings"
|
| 2375 |
msgstr ""
|
| 2376 |
|
| 2377 |
-
#: framework/premium/extensions/mega-menu/static/js/SettingsManager.js:219
|
| 2378 |
-
msgid "Save Settigns"
|
| 2379 |
-
msgstr ""
|
| 2380 |
-
|
| 2381 |
#: framework/premium/extensions/sidebars/static/js/SettingsManager.js:56
|
| 2382 |
msgid "%s - Sidebar Display Conditions"
|
| 2383 |
msgstr ""
|
|
@@ -2386,11 +3276,11 @@ msgstr ""
|
|
| 2386 |
msgid "Add one or more conditions in order to display your sidebar."
|
| 2387 |
msgstr ""
|
| 2388 |
|
| 2389 |
-
#: framework/premium/extensions/white-label/dashboard-static/js/EditSettings.js:
|
| 2390 |
msgid "White Label Settings"
|
| 2391 |
msgstr ""
|
| 2392 |
|
| 2393 |
-
#: framework/premium/extensions/white-label/dashboard-static/js/EditSettings.js:
|
| 2394 |
msgid ""
|
| 2395 |
"Remove any link that points to Blocksy website and change the dashboard "
|
| 2396 |
"identity. These options are mostly used by agencies and developers who are "
|
|
@@ -2401,69 +3291,109 @@ msgstr ""
|
|
| 2401 |
msgid "Advanced"
|
| 2402 |
msgstr ""
|
| 2403 |
|
| 2404 |
-
#: framework/premium/extensions/white-label/dashboard-static/js/EditSettings.js:
|
| 2405 |
msgid "Agency Details"
|
| 2406 |
msgstr ""
|
| 2407 |
|
| 2408 |
-
#: framework/premium/extensions/white-label/dashboard-static/js/EditSettings.js:
|
| 2409 |
msgid "Agency Name"
|
| 2410 |
msgstr ""
|
| 2411 |
|
| 2412 |
-
#: framework/premium/extensions/white-label/dashboard-static/js/EditSettings.js:
|
| 2413 |
msgid "Agency URL"
|
| 2414 |
msgstr ""
|
| 2415 |
|
| 2416 |
-
#: framework/premium/extensions/white-label/dashboard-static/js/EditSettings.js:
|
| 2417 |
msgid "Agency Support/Contact Form URL"
|
| 2418 |
msgstr ""
|
| 2419 |
|
| 2420 |
-
#: framework/premium/extensions/white-label/dashboard-static/js/EditSettings.js:
|
| 2421 |
msgid "Theme Details"
|
| 2422 |
msgstr ""
|
| 2423 |
|
| 2424 |
-
#: framework/premium/extensions/white-label/dashboard-static/js/EditSettings.js:
|
| 2425 |
msgid "Theme Name"
|
| 2426 |
msgstr ""
|
| 2427 |
|
| 2428 |
-
#: framework/premium/extensions/white-label/dashboard-static/js/EditSettings.js:
|
| 2429 |
msgid "Theme Description"
|
| 2430 |
msgstr ""
|
| 2431 |
|
| 2432 |
-
#: framework/premium/extensions/white-label/dashboard-static/js/EditSettings.js:
|
| 2433 |
msgid "Theme Screenshot URL"
|
| 2434 |
msgstr ""
|
| 2435 |
|
| 2436 |
-
#: framework/premium/extensions/white-label/dashboard-static/js/EditSettings.js:
|
| 2437 |
-
msgid "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2438 |
msgstr ""
|
| 2439 |
|
| 2440 |
-
#: framework/premium/extensions/white-label/dashboard-static/js/EditSettings.js:
|
| 2441 |
msgid ""
|
| 2442 |
"You can insert the link to a self hosted image or upload one. The "
|
| 2443 |
-
"
|
| 2444 |
msgstr ""
|
| 2445 |
|
| 2446 |
-
#: framework/premium/extensions/white-label/dashboard-static/js/EditSettings.js:
|
| 2447 |
msgid "Plugin Details"
|
| 2448 |
msgstr ""
|
| 2449 |
|
| 2450 |
-
#: framework/premium/extensions/white-label/dashboard-static/js/EditSettings.js:
|
| 2451 |
msgid "Plugin Name"
|
| 2452 |
msgstr ""
|
| 2453 |
|
| 2454 |
-
#: framework/premium/extensions/white-label/dashboard-static/js/EditSettings.js:
|
| 2455 |
msgid "Plugin Description"
|
| 2456 |
msgstr ""
|
| 2457 |
|
| 2458 |
-
#: framework/premium/extensions/white-label/dashboard-static/js/EditSettings.js:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2459 |
msgid "Hide Starter Sites Tab"
|
| 2460 |
msgstr ""
|
| 2461 |
|
| 2462 |
-
#: framework/premium/extensions/white-label/dashboard-static/js/EditSettings.js:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2463 |
msgid "Hide White Label Extension"
|
| 2464 |
msgstr ""
|
| 2465 |
|
| 2466 |
-
#: framework/premium/extensions/white-label/dashboard-static/js/EditSettings.js:
|
| 2467 |
msgid ""
|
| 2468 |
"Please note that the white label extension will be hidden if this option is "
|
| 2469 |
"enabled. In order to bring it back you have to hit the SHIFT key and click "
|
|
@@ -2471,12 +3401,12 @@ msgid ""
|
|
| 2471 |
msgstr ""
|
| 2472 |
|
| 2473 |
#: framework/premium/static/js/footer/CloneItem.js:65
|
| 2474 |
-
#: framework/premium/static/js/header/CloneItem.js:
|
| 2475 |
msgid "Clone Item"
|
| 2476 |
msgstr ""
|
| 2477 |
|
| 2478 |
#: framework/premium/static/js/footer/CloneItem.js:88
|
| 2479 |
-
#: framework/premium/static/js/header/CloneItem.js:
|
| 2480 |
msgid "Remove Item"
|
| 2481 |
msgstr ""
|
| 2482 |
|
|
@@ -2568,6 +3498,37 @@ msgstr ""
|
|
| 2568 |
msgid "Header name"
|
| 2569 |
msgstr ""
|
| 2570 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2571 |
#: framework/premium/static/js/hooks/CreateHook.js:124
|
| 2572 |
msgid "Create Template"
|
| 2573 |
msgstr ""
|
|
@@ -2606,30 +3567,49 @@ msgstr ""
|
|
| 2606 |
msgid "Template Name"
|
| 2607 |
msgstr ""
|
| 2608 |
|
| 2609 |
-
#: framework/premium/static/js/options.js:
|
| 2610 |
-
msgid "Use code editor"
|
| 2611 |
-
msgstr ""
|
| 2612 |
-
|
| 2613 |
-
#: framework/premium/static/js/options.js:80
|
| 2614 |
-
msgid "Exit code editor"
|
| 2615 |
-
msgstr ""
|
| 2616 |
-
|
| 2617 |
-
#: framework/premium/static/js/options/IconPicker.js:116
|
| 2618 |
msgid "Change Icon"
|
| 2619 |
msgstr ""
|
| 2620 |
|
| 2621 |
-
#: framework/premium/static/js/options/IconPicker.js:
|
| 2622 |
msgid "Remove Icon"
|
| 2623 |
msgstr ""
|
| 2624 |
|
| 2625 |
-
#: framework/premium/static/js/options/IconPicker.js:
|
| 2626 |
msgid "Select"
|
| 2627 |
msgstr ""
|
| 2628 |
|
| 2629 |
-
#: framework/premium/static/js/options/IconPicker/Modal.js:
|
| 2630 |
msgid "Search icon"
|
| 2631 |
msgstr ""
|
| 2632 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2633 |
#: static/js/components/BetaConsent.js:45
|
| 2634 |
msgid "Receive βeta Updates"
|
| 2635 |
msgstr ""
|
|
@@ -2662,62 +3642,140 @@ msgstr ""
|
|
| 2662 |
msgid "Remove header"
|
| 2663 |
msgstr ""
|
| 2664 |
|
| 2665 |
-
#: static/js/helpers/SubmitSupport.js:
|
| 2666 |
msgid "Support"
|
| 2667 |
msgstr ""
|
| 2668 |
|
| 2669 |
-
#: static/js/helpers/SubmitSupport.js:
|
| 2670 |
msgid ""
|
| 2671 |
"Got a question or need some help with the theme? You can always submit a "
|
| 2672 |
"support ticket, and our team will help you out."
|
| 2673 |
msgstr ""
|
| 2674 |
|
| 2675 |
-
#: static/js/helpers/SubmitSupport.js:
|
| 2676 |
msgid "Submit a Ticket"
|
| 2677 |
msgstr ""
|
| 2678 |
|
| 2679 |
-
#: static/js/helpers/useActivationAction.js:
|
| 2680 |
msgid ""
|
| 2681 |
"Upgrade to the Pro version and get instant full access to all premium "
|
| 2682 |
"extensions and features."
|
| 2683 |
msgstr ""
|
| 2684 |
|
| 2685 |
-
#: static/js/helpers/useActivationAction.js:
|
| 2686 |
msgid "Upgrade Now"
|
| 2687 |
msgstr ""
|
| 2688 |
|
| 2689 |
-
#: static/js/options/ConditionsManager.js:
|
| 2690 |
msgid "Select rule"
|
| 2691 |
msgstr ""
|
| 2692 |
|
| 2693 |
-
#: static/js/options/ConditionsManager.js:
|
| 2694 |
msgid "Select post"
|
| 2695 |
msgstr ""
|
| 2696 |
|
| 2697 |
-
#: static/js/options/ConditionsManager.js:
|
| 2698 |
msgid "Select page"
|
| 2699 |
msgstr ""
|
| 2700 |
|
| 2701 |
-
#: static/js/options/ConditionsManager.js:
|
| 2702 |
msgid "Select taxonomy"
|
| 2703 |
msgstr ""
|
| 2704 |
|
| 2705 |
-
#: static/js/options/ConditionsManager.js:
|
| 2706 |
msgid "Add Display Condition"
|
| 2707 |
msgstr ""
|
| 2708 |
|
| 2709 |
-
#: static/js/options/ConditionsManager.js:
|
| 2710 |
msgid "Add User Condition"
|
| 2711 |
msgstr ""
|
| 2712 |
|
| 2713 |
-
#: static/js/options/ConditionsManager.js:
|
| 2714 |
msgid "Include"
|
| 2715 |
msgstr ""
|
| 2716 |
|
| 2717 |
-
#: static/js/options/ConditionsManager.js:
|
| 2718 |
msgid "Exclude"
|
| 2719 |
msgstr ""
|
| 2720 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2721 |
#: static/js/options/DisplayCondition.js:50
|
| 2722 |
msgid "Transparent Header Display Conditions"
|
| 2723 |
msgstr ""
|
|
@@ -2771,23 +3829,19 @@ msgstr ""
|
|
| 2771 |
msgid "Modify"
|
| 2772 |
msgstr ""
|
| 2773 |
|
| 2774 |
-
#: static/js/screens/DemoInstall/
|
| 2775 |
-
msgid "Import"
|
| 2776 |
-
msgstr ""
|
| 2777 |
-
|
| 2778 |
-
#: static/js/screens/DemoInstall/Installer/InstallCompleted.js:23
|
| 2779 |
msgid "Starter Site Imported Successfully"
|
| 2780 |
msgstr ""
|
| 2781 |
|
| 2782 |
-
#: static/js/screens/DemoInstall/Installer/InstallCompleted.js:
|
| 2783 |
msgid "Now you can view your website or start customizing it"
|
| 2784 |
msgstr ""
|
| 2785 |
|
| 2786 |
-
#: static/js/screens/DemoInstall/Installer/InstallCompleted.js:
|
| 2787 |
msgid "Customize"
|
| 2788 |
msgstr ""
|
| 2789 |
|
| 2790 |
-
#: static/js/screens/DemoInstall/Installer/InstallCompleted.js:
|
| 2791 |
msgid "View site"
|
| 2792 |
msgstr ""
|
| 2793 |
|
|
@@ -3005,15 +4059,15 @@ msgid ""
|
|
| 3005 |
"properly."
|
| 3006 |
msgstr ""
|
| 3007 |
|
| 3008 |
-
#: static/js/screens/Extensions.js:
|
| 3009 |
msgid "Loading Extensions Status..."
|
| 3010 |
msgstr ""
|
| 3011 |
|
| 3012 |
-
#: static/js/screens/Extensions.js:
|
| 3013 |
msgid "Free Extensions"
|
| 3014 |
msgstr ""
|
| 3015 |
|
| 3016 |
-
#: static/js/screens/Extensions.js:
|
| 3017 |
msgid "Pro Extensions"
|
| 3018 |
msgstr ""
|
| 3019 |
|
|
@@ -3031,26 +4085,22 @@ msgstr ""
|
|
| 3031 |
msgid "Allow & Continue"
|
| 3032 |
msgstr ""
|
| 3033 |
|
| 3034 |
-
#: static/js/screens/SiteExport.js:
|
| 3035 |
-
msgid "PRO"
|
| 3036 |
-
msgstr ""
|
| 3037 |
-
|
| 3038 |
-
#: static/js/screens/SiteExport.js:121
|
| 3039 |
msgid "Builder"
|
| 3040 |
msgstr ""
|
| 3041 |
|
| 3042 |
-
#: static/js/screens/SiteExport.js:
|
| 3043 |
msgid "Plugins"
|
| 3044 |
msgstr ""
|
| 3045 |
|
| 3046 |
-
#: static/js/screens/SiteExport.js:
|
| 3047 |
msgid "Export site"
|
| 3048 |
msgstr ""
|
| 3049 |
|
| 3050 |
-
#: static/js/screens/SiteExport.js:
|
| 3051 |
msgid "Site export"
|
| 3052 |
msgstr ""
|
| 3053 |
|
| 3054 |
-
#: static/js/screens/SiteExport.js:
|
| 3055 |
msgid "Preview URL"
|
| 3056 |
msgstr ""
|
| 1 |
+
# Copyright (C) 2021 blc
|
| 2 |
# This file is distributed under the same license as the blc package.
|
| 3 |
#, fuzzy
|
| 4 |
msgid ""
|
| 19 |
"x-generator: babel-plugin-wp-i18n\n"
|
| 20 |
|
| 21 |
#. translators: %s: PHP version
|
| 22 |
+
#: blocksy-companion.php:137
|
| 23 |
msgid "Blocksy requires PHP version %s+, plugin is currently NOT RUNNING."
|
| 24 |
msgstr ""
|
| 25 |
|
| 26 |
#. translators: %s: WordPress version
|
| 27 |
+
#: blocksy-companion.php:148
|
| 28 |
msgid ""
|
| 29 |
"Blocksy requires WordPress version %s+. Because you are using an earlier "
|
| 30 |
"version, the plugin is currently NOT RUNNING."
|
| 31 |
msgstr ""
|
| 32 |
|
| 33 |
#: framework/extensions-manager.php:247,
|
| 34 |
+
#: framework/premium/extensions/custom-fonts/extension.php:138
|
| 35 |
msgid "Custom Fonts"
|
| 36 |
msgstr ""
|
| 37 |
|
| 55 |
msgid "Change theme/companion branding"
|
| 56 |
msgstr ""
|
| 57 |
|
| 58 |
+
#: framework/theme-integration.php:111,
|
| 59 |
#: framework/extensions/widgets/widgets/ct-facebook/options.php:16,
|
| 60 |
#: framework/extensions/widgets/widgets/ct-facebook/view.php:12,
|
| 61 |
#: framework/extensions/widgets/widgets/ct-facebook/widget.php:13
|
| 62 |
msgid "Facebook"
|
| 63 |
msgstr ""
|
| 64 |
|
| 65 |
+
#: framework/theme-integration.php:112
|
| 66 |
msgid "Twitter"
|
| 67 |
msgstr ""
|
| 68 |
|
| 69 |
+
#: framework/theme-integration.php:113
|
| 70 |
msgid "LinkedIn"
|
| 71 |
msgstr ""
|
| 72 |
|
| 73 |
+
#: framework/theme-integration.php:114
|
| 74 |
msgid "Dribbble"
|
| 75 |
msgstr ""
|
| 76 |
|
| 77 |
+
#: framework/theme-integration.php:115
|
| 78 |
msgid "Instagram"
|
| 79 |
msgstr ""
|
| 80 |
|
| 81 |
+
#: framework/theme-integration.php:116
|
| 82 |
+
msgid "Pinterest"
|
| 83 |
+
msgstr ""
|
| 84 |
+
|
| 85 |
+
#: framework/theme-integration.php:117
|
| 86 |
+
msgid "WordPress"
|
| 87 |
+
msgstr ""
|
| 88 |
+
|
| 89 |
+
#: framework/theme-integration.php:118
|
| 90 |
+
msgid "GitHub"
|
| 91 |
+
msgstr ""
|
| 92 |
+
|
| 93 |
+
#: framework/theme-integration.php:119,
|
| 94 |
+
#: framework/extensions/widgets/widgets/ct-about-me/options.php:114,
|
| 95 |
+
#: framework/extensions/widgets/widgets/ct-about-me/options.php:195,
|
| 96 |
+
#: framework/extensions/widgets/widgets/ct-contact-info/options.php:266,
|
| 97 |
+
#: framework/extensions/widgets/widgets/ct-socials/options.php:66
|
| 98 |
+
msgid "Medium"
|
| 99 |
+
msgstr ""
|
| 100 |
+
|
| 101 |
+
#: framework/theme-integration.php:120
|
| 102 |
+
msgid "YouTube"
|
| 103 |
+
msgstr ""
|
| 104 |
+
|
| 105 |
+
#: framework/theme-integration.php:121
|
| 106 |
+
msgid "Vimeo"
|
| 107 |
+
msgstr ""
|
| 108 |
+
|
| 109 |
+
#: framework/theme-integration.php:122
|
| 110 |
+
msgid "VKontakte"
|
| 111 |
+
msgstr ""
|
| 112 |
+
|
| 113 |
#: framework/theme-integration.php:123
|
| 114 |
+
msgid "Odnoklassniki"
|
| 115 |
+
msgstr ""
|
| 116 |
+
|
| 117 |
+
#: framework/theme-integration.php:124
|
| 118 |
+
msgid "TikTok"
|
| 119 |
+
msgstr ""
|
| 120 |
+
|
| 121 |
+
#: framework/theme-integration.php:196
|
| 122 |
msgid "Companion"
|
| 123 |
msgstr ""
|
| 124 |
|
| 125 |
+
#: framework/theme-integration.php:212 static/js/screens/SiteExport.js:106
|
| 126 |
+
msgid "PRO"
|
| 127 |
+
msgstr ""
|
| 128 |
+
|
| 129 |
#: framework/widgets-manager.php:75
|
| 130 |
msgid "Default widget name"
|
| 131 |
msgstr ""
|
| 138 |
msgid "Widget Title"
|
| 139 |
msgstr ""
|
| 140 |
|
| 141 |
+
#: framework/features/conditions-manager.php:288
|
| 142 |
msgid "%s Single"
|
| 143 |
msgstr ""
|
| 144 |
|
| 145 |
+
#: framework/features/conditions-manager.php:296
|
| 146 |
msgid "%s Archive"
|
| 147 |
msgstr ""
|
| 148 |
|
| 149 |
+
#: framework/features/conditions-manager.php:308
|
| 150 |
msgid "Entire Website"
|
| 151 |
msgstr ""
|
| 152 |
|
| 153 |
+
#: framework/features/conditions-manager.php:313
|
| 154 |
msgid "Basic"
|
| 155 |
msgstr ""
|
| 156 |
|
| 157 |
+
#: framework/features/conditions-manager.php:317
|
| 158 |
msgid "Singulars"
|
| 159 |
msgstr ""
|
| 160 |
|
| 161 |
+
#: framework/features/conditions-manager.php:322
|
| 162 |
msgid "Archives"
|
| 163 |
msgstr ""
|
| 164 |
|
| 165 |
+
#: framework/features/conditions-manager.php:328,
|
| 166 |
#: framework/extensions/trending/customizer.php:4,
|
| 167 |
#: framework/extensions/widgets/widgets/ct-posts/options.php:11,
|
| 168 |
#: framework/extensions/widgets/widgets/ct-posts/options.php:98,
|
| 172 |
msgid "Posts"
|
| 173 |
msgstr ""
|
| 174 |
|
| 175 |
+
#: framework/features/conditions-manager.php:332,
|
| 176 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:202
|
| 177 |
msgid "Single Post"
|
| 178 |
msgstr ""
|
| 179 |
|
| 180 |
+
#: framework/features/conditions-manager.php:337
|
| 181 |
msgid "All Post Archives"
|
| 182 |
msgstr ""
|
| 183 |
|
| 184 |
+
#: framework/features/conditions-manager.php:342
|
| 185 |
msgid "Post Categories"
|
| 186 |
msgstr ""
|
| 187 |
|
| 188 |
+
#: framework/features/conditions-manager.php:347
|
| 189 |
msgid "Post Tags"
|
| 190 |
msgstr ""
|
| 191 |
|
| 192 |
+
#: framework/features/conditions-manager.php:353,
|
| 193 |
#: framework/extensions/widgets/widgets/ct-posts/options.php:12,
|
| 194 |
#: framework/premium/features/premium-header/items/search-input/options.php:5
|
| 195 |
msgid "Pages"
|
| 196 |
msgstr ""
|
| 197 |
|
| 198 |
+
#: framework/features/conditions-manager.php:357
|
| 199 |
msgid "Single Page"
|
| 200 |
msgstr ""
|
| 201 |
|
| 202 |
+
#: framework/features/conditions-manager.php:404
|
| 203 |
msgid "Specific"
|
| 204 |
msgstr ""
|
| 205 |
|
| 206 |
+
#: framework/features/conditions-manager.php:408
|
| 207 |
msgid "Post ID"
|
| 208 |
msgstr ""
|
| 209 |
|
| 210 |
+
#: framework/features/conditions-manager.php:413
|
| 211 |
msgid "Page ID"
|
| 212 |
msgstr ""
|
| 213 |
|
| 214 |
+
#: framework/features/conditions-manager.php:418
|
| 215 |
+
#: static/js/options/ConditionsManager.js:162
|
| 216 |
msgid "Custom Post Type ID"
|
| 217 |
msgstr ""
|
| 218 |
|
| 219 |
+
#: framework/features/conditions-manager.php:423
|
| 220 |
msgid "Taxonomy ID"
|
| 221 |
msgstr ""
|
| 222 |
|
| 223 |
+
#: framework/features/conditions-manager.php:428
|
| 224 |
+
msgid "Post with Taxonomy ID"
|
| 225 |
+
msgstr ""
|
| 226 |
+
|
| 227 |
+
#: framework/features/conditions-manager.php:434
|
| 228 |
msgid "Other Pages"
|
| 229 |
msgstr ""
|
| 230 |
|
| 231 |
+
#: framework/features/conditions-manager.php:438
|
| 232 |
msgid "404"
|
| 233 |
msgstr ""
|
| 234 |
|
| 235 |
+
#: framework/features/conditions-manager.php:443,
|
| 236 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:37,
|
| 237 |
+
#: framework/premium/features/premium-header/items/search-input/view.php:44
|
| 238 |
msgid "Search"
|
| 239 |
msgstr ""
|
| 240 |
|
| 241 |
+
#: framework/features/conditions-manager.php:448
|
| 242 |
msgid "Blog"
|
| 243 |
msgstr ""
|
| 244 |
|
| 245 |
+
#: framework/features/conditions-manager.php:453
|
| 246 |
msgid "Front Page"
|
| 247 |
msgstr ""
|
| 248 |
|
| 249 |
+
#: framework/features/conditions-manager.php:465
|
| 250 |
msgid "Author"
|
| 251 |
msgstr ""
|
| 252 |
|
| 253 |
+
#: framework/features/conditions-manager.php:471
|
| 254 |
msgid "User Auth"
|
| 255 |
msgstr ""
|
| 256 |
|
| 257 |
+
#: framework/features/conditions-manager.php:475
|
| 258 |
msgid "User Logged In"
|
| 259 |
msgstr ""
|
| 260 |
|
| 261 |
+
#: framework/features/conditions-manager.php:480
|
| 262 |
msgid "User Logged Out"
|
| 263 |
msgstr ""
|
| 264 |
|
| 265 |
+
#: framework/features/conditions-manager.php:486
|
| 266 |
msgid "User Roles"
|
| 267 |
msgstr ""
|
| 268 |
|
| 289 |
msgstr ""
|
| 290 |
|
| 291 |
#: framework/features/dynamic-css.php:53,
|
| 292 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:32
|
| 293 |
msgid "Inline"
|
| 294 |
msgstr ""
|
| 295 |
|
| 369 |
#: framework/extensions/mailchimp/customizer.php:12,
|
| 370 |
#: framework/extensions/trending/customizer.php:39,
|
| 371 |
#: framework/premium/extensions/mega-menu/options.php:6,
|
| 372 |
+
#: framework/premium/extensions/woocommerce-extra/floating-cart.php:12,
|
| 373 |
+
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:139,
|
| 374 |
#: framework/premium/features/premium-header/items/contacts/options.php:5,
|
| 375 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:21,
|
| 376 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:347,
|
| 377 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:29
|
| 378 |
+
#: framework/premium/extensions/white-label/dashboard-static/js/EditSettings.js:125
|
|
|
|
| 379 |
msgid "General"
|
| 380 |
msgstr ""
|
| 381 |
|
| 382 |
+
#: framework/extensions/cookies-consent/customizer.php:31,
|
| 383 |
+
#: framework/premium/extensions/woocommerce-extra/extension.php:17,
|
| 384 |
+
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:161
|
| 385 |
msgid "Type 1"
|
| 386 |
msgstr ""
|
| 387 |
|
| 388 |
+
#: framework/extensions/cookies-consent/customizer.php:36,
|
| 389 |
+
#: framework/premium/extensions/woocommerce-extra/extension.php:22,
|
| 390 |
+
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:166
|
| 391 |
msgid "Type 2"
|
| 392 |
msgstr ""
|
| 393 |
|
| 428 |
msgstr ""
|
| 429 |
|
| 430 |
#: framework/extensions/cookies-consent/customizer.php:65,
|
| 431 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:146,
|
| 432 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:153,
|
| 433 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:160,
|
| 434 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:167,
|
| 435 |
#: framework/extensions/widgets/widgets/ct-contact-info/options.php:72,
|
| 436 |
#: framework/extensions/widgets/widgets/ct-contact-info/options.php:101,
|
| 437 |
#: framework/extensions/widgets/widgets/ct-contact-info/options.php:129,
|
| 450 |
msgstr ""
|
| 451 |
|
| 452 |
#: framework/extensions/cookies-consent/customizer.php:67,
|
| 453 |
+
#: framework/extensions/cookies-consent/helpers.php:30
|
| 454 |
msgid ""
|
| 455 |
"We use cookies to ensure that we give you the best experience on our website."
|
| 456 |
msgstr ""
|
| 460 |
msgstr ""
|
| 461 |
|
| 462 |
#: framework/extensions/cookies-consent/customizer.php:82,
|
| 463 |
+
#: framework/extensions/cookies-consent/helpers.php:33
|
| 464 |
msgid "Accept"
|
| 465 |
msgstr ""
|
| 466 |
|
| 467 |
#: framework/extensions/cookies-consent/customizer.php:90,
|
| 468 |
#: framework/extensions/mailchimp/customizer.php:147,
|
| 469 |
#: framework/extensions/trending/customizer.php:138,
|
| 470 |
+
#: framework/premium/extensions/mega-menu/options.php:460,
|
| 471 |
+
#: framework/premium/extensions/woocommerce-extra/floating-cart.php:55,
|
| 472 |
+
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:31,
|
| 473 |
#: framework/premium/features/premium-header/items/contacts/options.php:305,
|
| 474 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:186,
|
| 475 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:371,
|
| 476 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:151
|
|
|
|
| 477 |
msgid "Design"
|
| 478 |
msgstr ""
|
| 479 |
|
| 480 |
#: framework/extensions/cookies-consent/customizer.php:95,
|
| 481 |
#: framework/extensions/trending/customizer.php:143,
|
| 482 |
+
#: framework/premium/extensions/mega-menu/options.php:701,
|
| 483 |
+
#: framework/premium/extensions/woocommerce-extra/floating-cart.php:60,
|
| 484 |
#: framework/premium/features/premium-header/items/contacts/options.php:321,
|
| 485 |
+
#: framework/premium/features/premium-header/items/contacts/options.php:350,
|
| 486 |
+
#: framework/premium/features/premium-header/items/contacts/options.php:393,
|
| 487 |
+
#: framework/premium/features/premium-header/items/contacts/options.php:433,
|
| 488 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:203,
|
| 489 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:232,
|
| 490 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:262,
|
| 491 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:291,
|
| 492 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:382
|
| 493 |
msgid "Font Color"
|
| 494 |
msgstr ""
|
| 495 |
|
| 500 |
#: framework/extensions/mailchimp/customizer.php:200,
|
| 501 |
#: framework/extensions/mailchimp/customizer.php:225,
|
| 502 |
#: framework/extensions/trending/customizer.php:160,
|
| 503 |
+
#: framework/premium/extensions/mega-menu/options.php:673,
|
| 504 |
+
#: framework/premium/extensions/mega-menu/options.php:714,
|
| 505 |
+
#: framework/premium/extensions/mega-menu/options.php:733,
|
| 506 |
+
#: framework/premium/extensions/woocommerce-extra/floating-cart.php:73,
|
| 507 |
+
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:73,
|
| 508 |
+
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:327,
|
| 509 |
+
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:356,
|
| 510 |
+
#: framework/features/header/items/account/options.php:510,
|
| 511 |
+
#: framework/features/header/items/account/options.php:541,
|
| 512 |
+
#: framework/features/header/items/account/options.php:571,
|
| 513 |
+
#: framework/features/header/items/account/options.php:683,
|
| 514 |
+
#: framework/features/header/items/account/options.php:714,
|
| 515 |
+
#: framework/premium/features/premium-header/items/contacts/options.php:538,
|
| 516 |
+
#: framework/premium/features/premium-header/items/contacts/options.php:569,
|
| 517 |
+
#: framework/premium/features/premium-header/items/contacts/options.php:599,
|
| 518 |
+
#: framework/premium/features/premium-header/items/contacts/options.php:699,
|
| 519 |
+
#: framework/premium/features/premium-header/items/contacts/options.php:738,
|
| 520 |
+
#: framework/premium/features/premium-header/items/contacts/options.php:777,
|
| 521 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:249,
|
| 522 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:279,
|
| 523 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:308,
|
| 524 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:399,
|
| 525 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:425,
|
| 526 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:204,
|
| 527 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:236,
|
| 528 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:266,
|
|
|
|
| 529 |
#: framework/premium/features/premium-header/items/search-input/options.php:334,
|
| 530 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:364,
|
| 531 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:394,
|
| 532 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:467,
|
| 533 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:497,
|
| 534 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:527,
|
| 535 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:603,
|
| 536 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:631
|
| 537 |
msgid "Initial"
|
| 538 |
msgstr ""
|
| 539 |
|
| 542 |
#: framework/extensions/mailchimp/customizer.php:175,
|
| 543 |
#: framework/extensions/mailchimp/customizer.php:205,
|
| 544 |
#: framework/extensions/trending/customizer.php:166,
|
| 545 |
+
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:332,
|
| 546 |
+
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:361,
|
| 547 |
+
#: framework/features/header/items/account/options.php:515,
|
| 548 |
+
#: framework/features/header/items/account/options.php:546,
|
| 549 |
+
#: framework/features/header/items/account/options.php:576,
|
| 550 |
+
#: framework/features/header/items/account/options.php:689,
|
| 551 |
+
#: framework/features/header/items/account/options.php:720,
|
| 552 |
+
#: framework/premium/features/premium-header/items/contacts/options.php:543,
|
| 553 |
+
#: framework/premium/features/premium-header/items/contacts/options.php:574,
|
| 554 |
+
#: framework/premium/features/premium-header/items/contacts/options.php:604,
|
| 555 |
+
#: framework/premium/features/premium-header/items/contacts/options.php:704,
|
| 556 |
+
#: framework/premium/features/premium-header/items/contacts/options.php:743,
|
| 557 |
+
#: framework/premium/features/premium-header/items/contacts/options.php:782,
|
| 558 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:404,
|
| 559 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:608
|
| 560 |
msgid "Hover"
|
| 561 |
msgstr ""
|
| 562 |
|
| 567 |
|
| 568 |
#: framework/extensions/cookies-consent/customizer.php:154,
|
| 569 |
#: framework/extensions/mailchimp/customizer.php:212,
|
| 570 |
+
#: framework/premium/extensions/mega-menu/options.php:721,
|
| 571 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:412
|
| 572 |
msgid "Background Color"
|
| 573 |
msgstr ""
|
| 574 |
|
| 577 |
msgstr ""
|
| 578 |
|
| 579 |
#: framework/extensions/cookies-consent/customizer.php:202,
|
| 580 |
+
#: framework/extensions/cookies-consent/helpers.php:78
|
| 581 |
msgid "I accept the %sPrivacy Policy%s"
|
| 582 |
msgstr ""
|
| 583 |
|
| 587 |
|
| 588 |
#: framework/extensions/cookies-consent/readme.php:1,
|
| 589 |
#: framework/extensions/mailchimp/readme.php:1,
|
| 590 |
+
#: framework/premium/extensions/code-snippets/readme.php:1,
|
| 591 |
+
#: framework/premium/extensions/woocommerce-extra/readme.php:1
|
| 592 |
msgid "Instructions"
|
| 593 |
msgstr ""
|
| 594 |
|
| 624 |
msgid "this article"
|
| 625 |
msgstr ""
|
| 626 |
|
| 627 |
+
#: framework/extensions/mailchimp/config.php:4,
|
| 628 |
+
#: framework/extensions/mailchimp/ct-mailchimp/widget.php:13
|
| 629 |
+
msgid "Newsletter Subscribe"
|
| 630 |
msgstr ""
|
| 631 |
|
| 632 |
#: framework/extensions/mailchimp/config.php:5
|
| 633 |
+
msgid "Display a subscribe form with the help of a widget or a block."
|
|
|
|
| 634 |
msgstr ""
|
| 635 |
|
| 636 |
#: framework/extensions/mailchimp/customizer.php:4
|
| 688 |
#: framework/extensions/mailchimp/customizer.php:49,
|
| 689 |
#: framework/features/header/header-options.php:71,
|
| 690 |
#: framework/extensions/mailchimp/ct-mailchimp/options.php:38,
|
| 691 |
+
#: framework/extensions/widgets/widgets/ct-posts/options.php:173
|
| 692 |
msgid "Default"
|
| 693 |
msgstr ""
|
| 694 |
|
| 700 |
|
| 701 |
#: framework/extensions/mailchimp/customizer.php:62,
|
| 702 |
#: framework/extensions/mailchimp/ct-mailchimp/options.php:49
|
| 703 |
+
#: framework/extensions/mailchimp/dashboard-static/js/EditCredentials.js:120
|
| 704 |
msgid "List ID"
|
| 705 |
msgstr ""
|
| 706 |
|
| 745 |
msgid "Subscribe"
|
| 746 |
msgstr ""
|
| 747 |
|
| 748 |
+
#: framework/extensions/mailchimp/customizer.php:126,
|
| 749 |
+
#: framework/premium/extensions/woocommerce-extra/floating-cart.php:31,
|
| 750 |
+
#: framework/premium/features/content-blocks/meta-options.php:262
|
| 751 |
msgid "Visibility"
|
| 752 |
msgstr ""
|
| 753 |
|
| 754 |
#: framework/extensions/mailchimp/customizer.php:137,
|
| 755 |
#: framework/extensions/trending/customizer.php:128,
|
| 756 |
+
#: framework/features/header/header-options.php:90,
|
| 757 |
+
#: framework/features/header/header-options.php:168,
|
| 758 |
+
#: framework/premium/extensions/woocommerce-extra/floating-cart.php:45,
|
| 759 |
+
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:194,
|
| 760 |
+
#: framework/premium/features/content-blocks/meta-options.php:273
|
| 761 |
msgid "Desktop"
|
| 762 |
msgstr ""
|
| 763 |
|
| 764 |
#: framework/extensions/mailchimp/customizer.php:138,
|
| 765 |
#: framework/extensions/trending/customizer.php:129,
|
| 766 |
+
#: framework/premium/extensions/woocommerce-extra/floating-cart.php:46,
|
| 767 |
+
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:195,
|
| 768 |
+
#: framework/premium/features/content-blocks/meta-options.php:274
|
| 769 |
msgid "Tablet"
|
| 770 |
msgstr ""
|
| 771 |
|
| 772 |
#: framework/extensions/mailchimp/customizer.php:139,
|
| 773 |
#: framework/extensions/trending/customizer.php:130,
|
| 774 |
+
#: framework/features/header/header-options.php:92,
|
| 775 |
+
#: framework/features/header/header-options.php:170,
|
| 776 |
+
#: framework/premium/extensions/woocommerce-extra/floating-cart.php:47,
|
| 777 |
+
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:196,
|
| 778 |
+
#: framework/premium/features/content-blocks/meta-options.php:275,
|
| 779 |
#: framework/extensions/widgets/widgets/ct-contact-info/options.php:117,
|
| 780 |
#: framework/premium/features/premium-header/items/contacts/options.php:97
|
| 781 |
msgid "Mobile"
|
| 782 |
msgstr ""
|
| 783 |
|
| 784 |
+
#: framework/extensions/mailchimp/customizer.php:152
|
|
|
|
|
|
|
|
|
|
|
|
|
| 785 |
msgid "Content Color"
|
| 786 |
msgstr ""
|
| 787 |
|
| 795 |
msgstr ""
|
| 796 |
|
| 797 |
#: framework/extensions/mailchimp/helpers.php:115,
|
| 798 |
+
#: framework/extensions/widgets/widgets/ct-about-me/options.php:81,
|
| 799 |
+
#: framework/features/header/items/account/options.php:232
|
| 800 |
+
#: static/js/screens/SiteExport.js:85
|
| 801 |
msgid "Name"
|
| 802 |
msgstr ""
|
| 803 |
|
| 804 |
#: framework/extensions/mailchimp/helpers.php:118,
|
| 805 |
+
#: framework/features/header/account-modal.php:87,
|
| 806 |
#: framework/extensions/widgets/widgets/ct-contact-info/options.php:201,
|
| 807 |
#: framework/premium/features/premium-header/items/contacts/options.php:178
|
| 808 |
msgid "Email"
|
| 838 |
msgid "Customizer ➝ Single Posts"
|
| 839 |
msgstr ""
|
| 840 |
|
| 841 |
+
#: framework/extensions/product-reviews/config.php:4,
|
| 842 |
+
#: framework/extensions/product-reviews/extension.php:140,
|
| 843 |
+
#: framework/extensions/product-reviews/extension.php:141,
|
| 844 |
+
#: framework/extensions/product-reviews/extension.php:144,
|
| 845 |
+
#: framework/extensions/product-reviews/extension.php:146
|
| 846 |
+
msgid "Product Reviews"
|
| 847 |
+
msgstr ""
|
| 848 |
+
|
| 849 |
+
#: framework/extensions/product-reviews/config.php:5
|
| 850 |
+
msgid "A custom post type specially designed for creating product reviews."
|
| 851 |
+
msgstr ""
|
| 852 |
+
|
| 853 |
+
#: framework/extensions/product-reviews/extension.php:145
|
| 854 |
+
msgid "Product Review"
|
| 855 |
+
msgstr ""
|
| 856 |
+
|
| 857 |
+
#: framework/extensions/product-reviews/extension.php:147
|
| 858 |
+
msgid "Parent Product Review"
|
| 859 |
+
msgstr ""
|
| 860 |
+
|
| 861 |
+
#: framework/extensions/product-reviews/extension.php:148
|
| 862 |
+
msgid "All Reviews"
|
| 863 |
+
msgstr ""
|
| 864 |
+
|
| 865 |
+
#: framework/extensions/product-reviews/extension.php:149
|
| 866 |
+
msgid "View Product Review"
|
| 867 |
+
msgstr ""
|
| 868 |
+
|
| 869 |
+
#: framework/extensions/product-reviews/extension.php:150
|
| 870 |
+
msgid "Add New Product Review"
|
| 871 |
+
msgstr ""
|
| 872 |
+
|
| 873 |
+
#: framework/extensions/product-reviews/extension.php:151
|
| 874 |
+
msgid "Add New Review"
|
| 875 |
+
msgstr ""
|
| 876 |
+
|
| 877 |
+
#: framework/extensions/product-reviews/extension.php:152
|
| 878 |
+
msgid "Edit Product Review"
|
| 879 |
+
msgstr ""
|
| 880 |
+
|
| 881 |
+
#: framework/extensions/product-reviews/extension.php:153
|
| 882 |
+
msgid "Update Product Review"
|
| 883 |
+
msgstr ""
|
| 884 |
+
|
| 885 |
+
#: framework/extensions/product-reviews/extension.php:154
|
| 886 |
+
msgid "Search Product Review"
|
| 887 |
+
msgstr ""
|
| 888 |
+
|
| 889 |
+
#: framework/extensions/product-reviews/extension.php:155
|
| 890 |
+
msgid "Not Found"
|
| 891 |
+
msgstr ""
|
| 892 |
+
|
| 893 |
+
#: framework/extensions/product-reviews/extension.php:156
|
| 894 |
+
msgid "Not found in Trash"
|
| 895 |
+
msgstr ""
|
| 896 |
+
|
| 897 |
+
#: framework/extensions/product-reviews/extension.php:190,
|
| 898 |
+
#: framework/extensions/product-reviews/extension.php:200
|
| 899 |
+
msgid "Categories"
|
| 900 |
+
msgstr ""
|
| 901 |
+
|
| 902 |
+
#: framework/extensions/product-reviews/extension.php:191,
|
| 903 |
+
#: framework/extensions/widgets/widgets/ct-posts/options.php:37
|
| 904 |
+
msgid "Category"
|
| 905 |
+
msgstr ""
|
| 906 |
+
|
| 907 |
+
#: framework/extensions/product-reviews/extension.php:192
|
| 908 |
+
msgid "Search Category"
|
| 909 |
+
msgstr ""
|
| 910 |
+
|
| 911 |
+
#: framework/extensions/product-reviews/extension.php:193
|
| 912 |
+
msgid "All Categories"
|
| 913 |
+
msgstr ""
|
| 914 |
+
|
| 915 |
+
#: framework/extensions/product-reviews/extension.php:194
|
| 916 |
+
msgid "Parent Category"
|
| 917 |
+
msgstr ""
|
| 918 |
+
|
| 919 |
+
#: framework/extensions/product-reviews/extension.php:195
|
| 920 |
+
msgid "Parent Category:"
|
| 921 |
+
msgstr ""
|
| 922 |
+
|
| 923 |
+
#: framework/extensions/product-reviews/extension.php:196
|
| 924 |
+
msgid "Edit Category"
|
| 925 |
+
msgstr ""
|
| 926 |
+
|
| 927 |
+
#: framework/extensions/product-reviews/extension.php:197
|
| 928 |
+
msgid "Update Category"
|
| 929 |
+
msgstr ""
|
| 930 |
+
|
| 931 |
+
#: framework/extensions/product-reviews/extension.php:198
|
| 932 |
+
msgid "Add New Category"
|
| 933 |
+
msgstr ""
|
| 934 |
+
|
| 935 |
+
#: framework/extensions/product-reviews/extension.php:199
|
| 936 |
+
msgid "New Category Name"
|
| 937 |
+
msgstr ""
|
| 938 |
+
|
| 939 |
+
#: framework/extensions/product-reviews/helpers.php:26
|
| 940 |
+
msgid "Rating"
|
| 941 |
+
msgstr ""
|
| 942 |
+
|
| 943 |
+
#: framework/extensions/product-reviews/metabox.php:12
|
| 944 |
+
msgid "Gallery"
|
| 945 |
+
msgstr ""
|
| 946 |
+
|
| 947 |
+
#: framework/extensions/product-reviews/metabox.php:23
|
| 948 |
+
msgid "Affiliate Button Label"
|
| 949 |
+
msgstr ""
|
| 950 |
+
|
| 951 |
+
#: framework/extensions/product-reviews/metabox.php:25,
|
| 952 |
+
#: framework/extensions/product-reviews/views/single-top.php:132
|
| 953 |
+
msgid "Buy Now"
|
| 954 |
+
msgstr ""
|
| 955 |
+
|
| 956 |
+
#: framework/extensions/product-reviews/metabox.php:30
|
| 957 |
+
msgid "Affiliate Link"
|
| 958 |
+
msgstr ""
|
| 959 |
+
|
| 960 |
+
#: framework/extensions/product-reviews/metabox.php:52
|
| 961 |
+
msgid "Read More Button Label"
|
| 962 |
+
msgstr ""
|
| 963 |
+
|
| 964 |
+
#: framework/extensions/product-reviews/metabox.php:54,
|
| 965 |
+
#: framework/extensions/product-reviews/views/single-top.php:138
|
| 966 |
+
msgid "Read More"
|
| 967 |
+
msgstr ""
|
| 968 |
+
|
| 969 |
+
#: framework/extensions/product-reviews/metabox.php:74
|
| 970 |
+
msgid "Small Description"
|
| 971 |
+
msgstr ""
|
| 972 |
+
|
| 973 |
+
#: framework/extensions/product-reviews/metabox.php:89
|
| 974 |
+
msgid "Scores"
|
| 975 |
+
msgstr ""
|
| 976 |
+
|
| 977 |
+
#: framework/extensions/product-reviews/metabox.php:128
|
| 978 |
+
msgid "Product specs"
|
| 979 |
+
msgstr ""
|
| 980 |
+
|
| 981 |
+
#: framework/extensions/product-reviews/metabox.php:153,
|
| 982 |
+
#: framework/extensions/product-reviews/views/single-top.php:216
|
| 983 |
+
msgid "Pros"
|
| 984 |
+
msgstr ""
|
| 985 |
+
|
| 986 |
+
#: framework/extensions/product-reviews/metabox.php:173,
|
| 987 |
+
#: framework/extensions/product-reviews/views/single-top.php:232
|
| 988 |
+
msgid "Cons"
|
| 989 |
+
msgstr ""
|
| 990 |
+
|
| 991 |
#: framework/extensions/trending/config.php:4
|
| 992 |
msgid "Trending Block"
|
| 993 |
msgstr ""
|
| 1012 |
msgstr ""
|
| 1013 |
|
| 1014 |
#: framework/extensions/trending/customizer.php:73,
|
| 1015 |
+
#: framework/extensions/widgets/widgets/ct-posts/options.php:211
|
| 1016 |
msgid "All Time"
|
| 1017 |
msgstr ""
|
| 1018 |
|
| 1046 |
"Social Icons and more."
|
| 1047 |
msgstr ""
|
| 1048 |
|
| 1049 |
+
#: framework/features/header/account-modal.php:22,
|
| 1050 |
+
#: framework/features/header/items/account/options.php:404
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1051 |
msgid "Login"
|
| 1052 |
msgstr ""
|
| 1053 |
|
| 1054 |
+
#: framework/features/header/account-modal.php:26
|
| 1055 |
msgid "Sign Up"
|
| 1056 |
msgstr ""
|
| 1057 |
|
| 1058 |
+
#: framework/features/header/account-modal.php:39
|
| 1059 |
msgid "Email Address"
|
| 1060 |
msgstr ""
|
| 1061 |
|
| 1062 |
+
#: framework/features/header/account-modal.php:44
|
| 1063 |
msgid "Password"
|
| 1064 |
msgstr ""
|
| 1065 |
|
| 1066 |
+
#: framework/features/header/account-modal.php:51
|
| 1067 |
msgid "Remember Me"
|
| 1068 |
msgstr ""
|
| 1069 |
|
| 1070 |
+
#: framework/features/header/account-modal.php:55
|
| 1071 |
msgid "Forgot Password?"
|
| 1072 |
msgstr ""
|
| 1073 |
|
| 1074 |
+
#: framework/features/header/account-modal.php:63
|
| 1075 |
msgid "Log In"
|
| 1076 |
msgstr ""
|
| 1077 |
|
| 1078 |
+
#: framework/features/header/account-modal.php:82
|
| 1079 |
msgid "Username"
|
| 1080 |
msgstr ""
|
| 1081 |
|
| 1082 |
+
#: framework/features/header/account-modal.php:94
|
| 1083 |
msgid "Registration confirmation will be emailed to you"
|
| 1084 |
msgstr ""
|
| 1085 |
|
| 1086 |
+
#: framework/features/header/account-modal.php:99
|
| 1087 |
msgid "Register"
|
| 1088 |
msgstr ""
|
| 1089 |
|
| 1090 |
+
#: framework/features/header/account-modal.php:117
|
| 1091 |
msgid "Username or Email Address"
|
| 1092 |
msgstr ""
|
| 1093 |
|
| 1094 |
+
#: framework/features/header/account-modal.php:123
|
| 1095 |
msgid "Get New Password"
|
| 1096 |
msgstr ""
|
| 1097 |
|
| 1098 |
+
#: framework/features/header/account-modal.php:133
|
| 1099 |
msgid "Back to login"
|
| 1100 |
msgstr ""
|
| 1101 |
|
| 1115 |
msgid "Fade"
|
| 1116 |
msgstr ""
|
| 1117 |
|
| 1118 |
+
#: framework/features/header/header-options.php:74
|
| 1119 |
+
msgid "Auto Hide/Show"
|
| 1120 |
+
msgstr ""
|
| 1121 |
+
|
| 1122 |
+
#: framework/features/header/header-options.php:79,
|
| 1123 |
+
#: framework/features/header/header-options.php:157
|
| 1124 |
msgid "Enable on"
|
| 1125 |
msgstr ""
|
| 1126 |
|
| 1127 |
+
#: framework/features/header/header-options.php:103
|
| 1128 |
msgid "Transparent Functionality"
|
| 1129 |
msgstr ""
|
| 1130 |
|
| 1131 |
+
#: framework/features/header/header-options.php:141
|
|
|
|
| 1132 |
#: framework/premium/static/js/footer/EditConditions.js:97
|
| 1133 |
#: static/js/header/EditConditions.js:96
|
| 1134 |
msgid "Display Conditions"
|
| 1135 |
msgstr ""
|
| 1136 |
|
| 1137 |
+
#: framework/premium/features/content-blocks.php:33
|
| 1138 |
msgid "Debug Hooks"
|
| 1139 |
msgstr ""
|
| 1140 |
|
| 1141 |
+
#: framework/premium/features/content-blocks.php:162,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1142 |
#: framework/extensions/widgets/widgets/ct-about-me/options.php:23
|
| 1143 |
msgid "Type"
|
| 1144 |
msgstr ""
|
| 1145 |
|
| 1146 |
+
#: framework/premium/features/content-blocks.php:163
|
| 1147 |
msgid "Shortcode"
|
| 1148 |
msgstr ""
|
| 1149 |
|
| 1150 |
+
#: framework/premium/features/content-blocks.php:329,
|
| 1151 |
+
#: framework/premium/features/content-blocks.php:335
|
| 1152 |
msgid "Content Blocks"
|
| 1153 |
msgstr ""
|
| 1154 |
|
| 1155 |
+
#: framework/premium/features/content-blocks.php:330
|
| 1156 |
msgid "Content Block"
|
| 1157 |
msgstr ""
|
| 1158 |
|
| 1159 |
+
#: framework/premium/features/content-blocks.php:331
|
| 1160 |
msgid "Add New"
|
| 1161 |
msgstr ""
|
| 1162 |
|
| 1163 |
+
#: framework/premium/features/content-blocks.php:332
|
| 1164 |
msgid "Add New Content Block"
|
| 1165 |
msgstr ""
|
| 1166 |
|
| 1167 |
+
#: framework/premium/features/content-blocks.php:333
|
| 1168 |
msgid "Edit Content Block"
|
| 1169 |
msgstr ""
|
| 1170 |
|
| 1171 |
+
#: framework/premium/features/content-blocks.php:334
|
| 1172 |
msgid "New Content Block"
|
| 1173 |
msgstr ""
|
| 1174 |
|
| 1175 |
+
#: framework/premium/features/content-blocks.php:336
|
| 1176 |
msgid "View Content Block"
|
| 1177 |
msgstr ""
|
| 1178 |
|
| 1179 |
+
#: framework/premium/features/content-blocks.php:337
|
| 1180 |
msgid "Search Content Blocks"
|
| 1181 |
msgstr ""
|
| 1182 |
|
| 1183 |
+
#: framework/premium/features/content-blocks.php:338
|
| 1184 |
msgid "Nothing found"
|
| 1185 |
msgstr ""
|
| 1186 |
|
| 1187 |
+
#: framework/premium/features/content-blocks.php:339
|
| 1188 |
msgid "Nothing found in Trash"
|
| 1189 |
msgstr ""
|
| 1190 |
|
| 1191 |
+
#: framework/premium/features/premium-header.php:42
|
| 1192 |
+
msgid "Header Menu 3"
|
| 1193 |
+
msgstr ""
|
| 1194 |
+
|
| 1195 |
#: framework/extensions/mailchimp/ct-mailchimp/options.php:17,
|
| 1196 |
#: framework/extensions/mailchimp/ct-mailchimp/view.php:12
|
| 1197 |
msgid "Newsletter"
|
| 1201 |
msgid "Content Alignment"
|
| 1202 |
msgstr ""
|
| 1203 |
|
| 1204 |
+
#: framework/extensions/mailchimp/ct-mailchimp/widget.php:14
|
| 1205 |
+
msgid "Newsletter subscribe form"
|
| 1206 |
msgstr ""
|
| 1207 |
|
| 1208 |
+
#: framework/extensions/product-reviews/views/single-top.php:119
|
| 1209 |
+
msgid "Overall Score"
|
| 1210 |
+
msgstr ""
|
| 1211 |
+
|
| 1212 |
+
#: framework/extensions/product-reviews/views/single-top.php:199
|
| 1213 |
+
msgid "Specs"
|
| 1214 |
msgstr ""
|
| 1215 |
|
| 1216 |
+
#: framework/premium/extensions/adobe-typekit/config.php:4,
|
| 1217 |
+
#: framework/premium/extensions/adobe-typekit/extension.php:18
|
| 1218 |
msgid "Adobe Typekit"
|
| 1219 |
msgstr ""
|
| 1220 |
|
| 1233 |
|
| 1234 |
#: framework/premium/extensions/code-snippets/config.php:5
|
| 1235 |
msgid ""
|
| 1236 |
+
"Add custom code snippets in your header and footer, globally and per post or "
|
| 1237 |
"page individually."
|
| 1238 |
msgstr ""
|
| 1239 |
|
| 1250 |
msgstr ""
|
| 1251 |
|
| 1252 |
#: framework/premium/extensions/code-snippets/readme.php:9
|
| 1253 |
+
msgid "Globally"
|
| 1254 |
msgstr ""
|
| 1255 |
|
| 1256 |
#: framework/premium/extensions/code-snippets/readme.php:13
|
| 1285 |
msgid "Serve Google Fonts from your own server for full GDPR compliancy."
|
| 1286 |
msgstr ""
|
| 1287 |
|
| 1288 |
+
#: framework/premium/extensions/local-google-fonts/extension.php:121
|
| 1289 |
+
msgid "Local Google Fonts"
|
| 1290 |
+
msgstr ""
|
| 1291 |
+
|
| 1292 |
#: framework/premium/extensions/mega-menu/config.php:4
|
| 1293 |
msgid "Advanced Menu"
|
| 1294 |
msgstr ""
|
| 1297 |
msgid "Create beautiful mega menus, assign icons to menu items"
|
| 1298 |
msgstr ""
|
| 1299 |
|
| 1300 |
+
#: framework/premium/extensions/mega-menu/config.php:9
|
| 1301 |
+
#: framework/extensions/mailchimp/dashboard-static/js/hooks/useActivationWithRequirements.js:60
|
| 1302 |
+
#: framework/extensions/product-reviews/static/js/EditSettings.js:30
|
| 1303 |
+
#: framework/premium/extensions/white-label/dashboard-static/js/EditSettings.js:95
|
| 1304 |
+
msgid "Configure"
|
| 1305 |
+
msgstr ""
|
| 1306 |
+
|
| 1307 |
+
#: framework/premium/extensions/mega-menu/extension.php:75
|
| 1308 |
msgid "Menu Item Settings"
|
| 1309 |
msgstr ""
|
| 1310 |
|
| 1311 |
+
#: framework/premium/extensions/mega-menu/extension.php:215
|
| 1312 |
msgid "New"
|
| 1313 |
msgstr ""
|
| 1314 |
|
| 1315 |
#: framework/premium/extensions/mega-menu/options.php:16,
|
| 1316 |
+
#: framework/premium/extensions/mega-menu/options.php:474
|
| 1317 |
msgid "Mega Menu Settings"
|
| 1318 |
msgstr ""
|
| 1319 |
|
| 1350 |
msgstr ""
|
| 1351 |
|
| 1352 |
#: framework/premium/extensions/mega-menu/options.php:290
|
| 1353 |
+
msgid "Content Block/Hook"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1354 |
msgstr ""
|
| 1355 |
|
| 1356 |
+
#: framework/premium/extensions/mega-menu/options.php:349,
|
| 1357 |
+
#: framework/premium/extensions/mega-menu/options.php:626
|
| 1358 |
msgid "Item Label Settings"
|
| 1359 |
msgstr ""
|
| 1360 |
|
| 1361 |
+
#: framework/premium/extensions/mega-menu/options.php:354
|
| 1362 |
msgid "Item Label"
|
| 1363 |
msgstr ""
|
| 1364 |
|
| 1365 |
+
#: framework/premium/extensions/mega-menu/options.php:362
|
| 1366 |
msgid "Enabled"
|
| 1367 |
msgstr ""
|
| 1368 |
|
| 1369 |
+
#: framework/premium/extensions/mega-menu/options.php:363
|
| 1370 |
msgid "Disabled"
|
| 1371 |
msgstr ""
|
| 1372 |
|
| 1373 |
+
#: framework/premium/extensions/mega-menu/options.php:364
|
| 1374 |
msgid "Heading"
|
| 1375 |
msgstr ""
|
| 1376 |
|
| 1377 |
+
#: framework/premium/extensions/mega-menu/options.php:370
|
| 1378 |
msgid "Label Link"
|
| 1379 |
msgstr ""
|
| 1380 |
|
| 1381 |
+
#: framework/premium/extensions/mega-menu/options.php:377,
|
| 1382 |
+
#: framework/features/header/items/account/options.php:119,
|
| 1383 |
+
#: framework/features/header/items/account/options.php:312
|
| 1384 |
msgid "Icon"
|
| 1385 |
msgstr ""
|
| 1386 |
|
| 1387 |
+
#: framework/premium/extensions/mega-menu/options.php:391,
|
| 1388 |
#: framework/extensions/widgets/widgets/ct-about-me/options.php:187,
|
| 1389 |
#: framework/extensions/widgets/widgets/ct-contact-info/options.php:258,
|
| 1390 |
#: framework/extensions/widgets/widgets/ct-socials/options.php:58,
|
| 1392 |
msgid "Icons Size"
|
| 1393 |
msgstr ""
|
| 1394 |
|
| 1395 |
+
#: framework/premium/extensions/mega-menu/options.php:402,
|
| 1396 |
+
#: framework/features/header/items/account/options.php:206,
|
| 1397 |
+
#: framework/features/header/items/account/options.php:379
|
| 1398 |
msgid "Icon Alignment"
|
| 1399 |
msgstr ""
|
| 1400 |
|
| 1401 |
+
#: framework/premium/extensions/mega-menu/options.php:409,
|
| 1402 |
+
#: framework/features/header/items/account/options.php:211,
|
| 1403 |
+
#: framework/features/header/items/account/options.php:384
|
| 1404 |
msgid "Left"
|
| 1405 |
msgstr ""
|
| 1406 |
|
| 1407 |
+
#: framework/premium/extensions/mega-menu/options.php:410,
|
| 1408 |
+
#: framework/features/header/items/account/options.php:212,
|
| 1409 |
+
#: framework/features/header/items/account/options.php:385
|
| 1410 |
msgid "Right"
|
| 1411 |
msgstr ""
|
| 1412 |
|
| 1413 |
+
#: framework/premium/extensions/mega-menu/options.php:425,
|
| 1414 |
+
#: framework/premium/extensions/mega-menu/options.php:697
|
| 1415 |
msgid "Menu Badge Settings"
|
| 1416 |
msgstr ""
|
| 1417 |
|
| 1418 |
+
#: framework/premium/extensions/mega-menu/options.php:437,
|
| 1419 |
#: framework/extensions/widgets/widgets/ct-contact-info/options.php:23
|
| 1420 |
msgid "Text"
|
| 1421 |
msgstr ""
|
| 1422 |
|
| 1423 |
+
#: framework/premium/extensions/mega-menu/options.php:443,
|
| 1424 |
+
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:235
|
| 1425 |
msgid "Vertical Alignment"
|
| 1426 |
msgstr ""
|
| 1427 |
|
| 1428 |
+
#: framework/premium/extensions/mega-menu/options.php:478
|
| 1429 |
msgid "Background"
|
| 1430 |
msgstr ""
|
| 1431 |
|
| 1432 |
+
#: framework/premium/extensions/mega-menu/options.php:492
|
| 1433 |
msgid "Link Color"
|
| 1434 |
msgstr ""
|
| 1435 |
|
| 1436 |
+
#: framework/premium/extensions/mega-menu/options.php:512,
|
| 1437 |
+
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:119,
|
| 1438 |
+
#: framework/premium/features/premium-header/items/contacts/options.php:379,
|
| 1439 |
+
#: framework/premium/features/premium-header/items/contacts/options.php:421,
|
| 1440 |
+
#: framework/premium/features/premium-header/items/contacts/options.php:461
|
| 1441 |
msgid "Link Initial"
|
| 1442 |
msgstr ""
|
| 1443 |
|
| 1444 |
+
#: framework/premium/extensions/mega-menu/options.php:517
|
| 1445 |
msgid "Link Hover/Active"
|
| 1446 |
msgstr ""
|
| 1447 |
|
| 1448 |
+
#: framework/premium/extensions/mega-menu/options.php:522
|
| 1449 |
msgid "Background Hover"
|
| 1450 |
msgstr ""
|
| 1451 |
|
| 1452 |
+
#: framework/premium/extensions/mega-menu/options.php:529,
|
| 1453 |
+
#: framework/premium/extensions/mega-menu/options.php:635
|
| 1454 |
msgid "Heading Color"
|
| 1455 |
msgstr ""
|
| 1456 |
|
| 1457 |
+
#: framework/premium/extensions/mega-menu/options.php:541,
|
| 1458 |
+
#: framework/premium/extensions/mega-menu/options.php:560,
|
| 1459 |
+
#: framework/premium/extensions/mega-menu/options.php:647
|
| 1460 |
msgid "Initial Color"
|
| 1461 |
msgstr ""
|
| 1462 |
|
| 1463 |
+
#: framework/premium/extensions/mega-menu/options.php:548
|
| 1464 |
msgid "Text Color"
|
| 1465 |
msgstr ""
|
| 1466 |
|
| 1467 |
+
#: framework/premium/extensions/mega-menu/options.php:567,
|
| 1468 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:432,
|
| 1469 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:656
|
| 1470 |
msgid "Items Divider"
|
| 1471 |
msgstr ""
|
| 1472 |
|
| 1473 |
+
#: framework/premium/extensions/mega-menu/options.php:582
|
| 1474 |
msgid "Columns Divider"
|
| 1475 |
msgstr ""
|
| 1476 |
|
| 1477 |
+
#: framework/premium/extensions/mega-menu/options.php:597,
|
| 1478 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:638
|
| 1479 |
msgid "Dropdown Shadow"
|
| 1480 |
msgstr ""
|
| 1481 |
|
| 1482 |
+
#: framework/premium/extensions/mega-menu/options.php:657
|
| 1483 |
msgid "Icon Color"
|
| 1484 |
msgstr ""
|
| 1485 |
|
| 1486 |
+
#: framework/premium/extensions/mega-menu/options.php:678,
|
| 1487 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:254,
|
| 1488 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:284,
|
| 1489 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:313
|
| 1490 |
msgid "Hover/Active"
|
| 1491 |
msgstr ""
|
| 1492 |
|
| 1500 |
"page or post."
|
| 1501 |
msgstr ""
|
| 1502 |
|
| 1503 |
+
#: framework/premium/extensions/sidebars/config.php:9
|
| 1504 |
+
msgid "Create New Sidebar"
|
| 1505 |
+
msgstr ""
|
| 1506 |
+
|
| 1507 |
#: framework/premium/extensions/sidebars/form.php:3
|
| 1508 |
msgid "Create Sidebar/Widget Area"
|
| 1509 |
msgstr ""
|
| 1530 |
msgid "Add products to wish list"
|
| 1531 |
msgstr ""
|
| 1532 |
|
| 1533 |
+
#: framework/premium/extensions/wish-list/extension.php:47,
|
| 1534 |
+
#: framework/premium/extensions/wish-list/header-items/wish-list/config.php:4
|
| 1535 |
+
msgid "Wish List"
|
| 1536 |
+
msgstr ""
|
| 1537 |
+
|
| 1538 |
+
#: framework/premium/extensions/wish-list/helpers.php:14
|
| 1539 |
+
msgid "Add to wishlist"
|
| 1540 |
+
msgstr ""
|
| 1541 |
+
|
| 1542 |
+
#: framework/premium/extensions/wish-list/wish-list-table.php:18
|
| 1543 |
+
msgid "You don't have any products in your wish list yet."
|
| 1544 |
+
msgstr ""
|
| 1545 |
+
|
| 1546 |
+
#: framework/premium/extensions/woocommerce-extra/config.php:4
|
| 1547 |
+
msgid "WooCommerce Extra"
|
| 1548 |
+
msgstr ""
|
| 1549 |
+
|
| 1550 |
+
#: framework/premium/extensions/woocommerce-extra/config.php:5
|
| 1551 |
+
msgid "WooCommerce extra functionality."
|
| 1552 |
+
msgstr ""
|
| 1553 |
+
|
| 1554 |
+
#: framework/premium/extensions/woocommerce-extra/customizer.php:5
|
| 1555 |
+
msgid "Quick View"
|
| 1556 |
+
msgstr ""
|
| 1557 |
+
|
| 1558 |
+
#: framework/premium/extensions/woocommerce-extra/extension.php:38
|
| 1559 |
+
msgid "Number of Columns"
|
| 1560 |
+
msgstr ""
|
| 1561 |
+
|
| 1562 |
+
#: framework/premium/extensions/woocommerce-extra/extension.php:402
|
| 1563 |
+
msgid "Available Filters"
|
| 1564 |
+
msgstr ""
|
| 1565 |
+
|
| 1566 |
+
#: framework/premium/extensions/woocommerce-extra/floating-cart.php:4,
|
| 1567 |
+
#: framework/premium/extensions/woocommerce-extra/readme.php:24
|
| 1568 |
+
msgid "Floating Cart"
|
| 1569 |
+
msgstr ""
|
| 1570 |
+
|
| 1571 |
+
#: framework/premium/extensions/woocommerce-extra/floating-cart.php:18
|
| 1572 |
+
msgid "Position"
|
| 1573 |
+
msgstr ""
|
| 1574 |
+
|
| 1575 |
+
#: framework/premium/extensions/woocommerce-extra/floating-cart.php:25
|
| 1576 |
+
msgid "Top"
|
| 1577 |
+
msgstr ""
|
| 1578 |
+
|
| 1579 |
+
#: framework/premium/extensions/woocommerce-extra/floating-cart.php:26
|
| 1580 |
+
msgid "Bottom"
|
| 1581 |
+
msgstr ""
|
| 1582 |
+
|
| 1583 |
+
#: framework/premium/extensions/woocommerce-extra/floating-cart.php:97,
|
| 1584 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:446
|
| 1585 |
+
msgid "Shadow"
|
| 1586 |
+
msgstr ""
|
| 1587 |
+
|
| 1588 |
+
#: framework/premium/extensions/woocommerce-extra/helpers.php:70
|
| 1589 |
+
msgid "Go to product page"
|
| 1590 |
+
msgstr ""
|
| 1591 |
+
|
| 1592 |
+
#: framework/premium/extensions/woocommerce-extra/helpers.php:162
|
| 1593 |
+
msgid "Select options"
|
| 1594 |
+
msgstr ""
|
| 1595 |
+
|
| 1596 |
+
#: framework/premium/extensions/woocommerce-extra/helpers.php:315
|
| 1597 |
+
msgid "Filter"
|
| 1598 |
+
msgstr ""
|
| 1599 |
+
|
| 1600 |
+
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:3
|
| 1601 |
+
msgid "Off Canvas Filter"
|
| 1602 |
+
msgstr ""
|
| 1603 |
+
|
| 1604 |
+
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:14
|
| 1605 |
+
msgid "Filter Widgets"
|
| 1606 |
+
msgstr ""
|
| 1607 |
+
|
| 1608 |
+
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:18
|
| 1609 |
+
msgid "Widgets"
|
| 1610 |
+
msgstr ""
|
| 1611 |
+
|
| 1612 |
+
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:36
|
| 1613 |
+
msgid "Widgets Vertical Spacing"
|
| 1614 |
+
msgstr ""
|
| 1615 |
+
|
| 1616 |
+
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:51
|
| 1617 |
+
msgid "Widgets Title Font"
|
| 1618 |
+
msgstr ""
|
| 1619 |
+
|
| 1620 |
+
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:59
|
| 1621 |
+
msgid "Widgets Title Font Color"
|
| 1622 |
+
msgstr ""
|
| 1623 |
+
|
| 1624 |
+
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:82
|
| 1625 |
+
msgid "Widgets Font"
|
| 1626 |
+
msgstr ""
|
| 1627 |
+
|
| 1628 |
+
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:91
|
| 1629 |
+
msgid "Widgets Font Color"
|
| 1630 |
+
msgstr ""
|
| 1631 |
+
|
| 1632 |
+
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:113,
|
| 1633 |
+
#: framework/premium/features/premium-header/items/contacts/options.php:373,
|
| 1634 |
+
#: framework/premium/features/premium-header/items/contacts/options.php:416,
|
| 1635 |
+
#: framework/premium/features/premium-header/items/contacts/options.php:456
|
| 1636 |
+
msgid "Text Initial"
|
| 1637 |
+
msgstr ""
|
| 1638 |
+
|
| 1639 |
+
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:124,
|
| 1640 |
+
#: framework/premium/features/premium-header/items/contacts/options.php:385,
|
| 1641 |
+
#: framework/premium/features/premium-header/items/contacts/options.php:426,
|
| 1642 |
+
#: framework/premium/features/premium-header/items/contacts/options.php:466
|
| 1643 |
+
msgid "Link Hover"
|
| 1644 |
+
msgstr ""
|
| 1645 |
+
|
| 1646 |
+
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:135
|
| 1647 |
+
msgid "Filter Button & Panel"
|
| 1648 |
+
msgstr ""
|
| 1649 |
+
|
| 1650 |
+
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:144
|
| 1651 |
+
msgid "Filter Icon Type"
|
| 1652 |
+
msgstr ""
|
| 1653 |
+
|
| 1654 |
+
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:171,
|
| 1655 |
+
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:176
|
| 1656 |
+
msgid "Type 3"
|
| 1657 |
+
msgstr ""
|
| 1658 |
+
|
| 1659 |
+
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:182
|
| 1660 |
+
msgid "Filter Button Visibility"
|
| 1661 |
+
msgstr ""
|
| 1662 |
+
|
| 1663 |
+
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:205
|
| 1664 |
+
msgid "Panel Reveal"
|
| 1665 |
+
msgstr ""
|
| 1666 |
+
|
| 1667 |
+
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:212
|
| 1668 |
+
msgid "Left Side"
|
| 1669 |
+
msgstr ""
|
| 1670 |
+
|
| 1671 |
+
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:213
|
| 1672 |
+
msgid "Right Side"
|
| 1673 |
+
msgstr ""
|
| 1674 |
+
|
| 1675 |
+
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:218
|
| 1676 |
+
msgid "Panel Width"
|
| 1677 |
+
msgstr ""
|
| 1678 |
+
|
| 1679 |
+
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:254
|
| 1680 |
+
msgid "More"
|
| 1681 |
+
msgstr ""
|
| 1682 |
+
|
| 1683 |
+
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:259
|
| 1684 |
+
msgid "Panel Shadow"
|
| 1685 |
+
msgstr ""
|
| 1686 |
+
|
| 1687 |
+
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:277
|
| 1688 |
+
msgid "Panel Background"
|
| 1689 |
+
msgstr ""
|
| 1690 |
+
|
| 1691 |
+
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:309,
|
| 1692 |
+
#: framework/features/header/items/account/options.php:665
|
| 1693 |
+
msgid "Close Icon Color"
|
| 1694 |
+
msgstr ""
|
| 1695 |
+
|
| 1696 |
+
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:339,
|
| 1697 |
+
#: framework/features/header/items/account/options.php:697
|
| 1698 |
+
msgid "Close Icon Background"
|
| 1699 |
+
msgstr ""
|
| 1700 |
+
|
| 1701 |
+
#: framework/premium/extensions/woocommerce-extra/readme.php:4
|
| 1702 |
+
msgid ""
|
| 1703 |
+
"After installing and activating the WooCommerce Extra extension you will "
|
| 1704 |
+
"have these features:"
|
| 1705 |
+
msgstr ""
|
| 1706 |
+
|
| 1707 |
+
#: framework/premium/extensions/woocommerce-extra/readme.php:9
|
| 1708 |
+
msgid "Product Quick View"
|
| 1709 |
+
msgstr ""
|
| 1710 |
+
|
| 1711 |
+
#: framework/premium/extensions/woocommerce-extra/readme.php:13,
|
| 1712 |
+
#: framework/premium/extensions/woocommerce-extra/readme.php:28
|
| 1713 |
+
msgid "Navigate to %s and enable or disable it."
|
| 1714 |
+
msgstr ""
|
| 1715 |
+
|
| 1716 |
+
#: framework/premium/extensions/woocommerce-extra/readme.php:16
|
| 1717 |
+
msgid "Customizer ➝ WooCommerce ➝ Product Archives ➝ Card Options ➝ Quick View"
|
| 1718 |
+
msgstr ""
|
| 1719 |
+
|
| 1720 |
+
#: framework/premium/extensions/woocommerce-extra/readme.php:31
|
| 1721 |
+
msgid "Customizer ➝ WooCommerce ➝ Single Product ➝ Floating Cart"
|
| 1722 |
+
msgstr ""
|
| 1723 |
+
|
| 1724 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:11
|
| 1725 |
+
msgid "WP head"
|
| 1726 |
+
msgstr ""
|
| 1727 |
+
|
| 1728 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:13,
|
| 1729 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:22,
|
| 1730 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:32
|
| 1731 |
+
msgid "Head"
|
| 1732 |
+
msgstr ""
|
| 1733 |
+
|
| 1734 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:20
|
| 1735 |
+
msgid "WP head start"
|
| 1736 |
+
msgstr ""
|
| 1737 |
+
|
| 1738 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:30
|
| 1739 |
+
msgid "WP head end"
|
| 1740 |
+
msgstr ""
|
| 1741 |
+
|
| 1742 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:39
|
| 1743 |
+
msgid "Header before"
|
| 1744 |
+
msgstr ""
|
| 1745 |
+
|
| 1746 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:41,
|
| 1747 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:50
|
| 1748 |
+
msgid "Header"
|
| 1749 |
+
msgstr ""
|
| 1750 |
+
|
| 1751 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:48
|
| 1752 |
+
msgid "Header after"
|
| 1753 |
+
msgstr ""
|
| 1754 |
+
|
| 1755 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:57
|
| 1756 |
+
msgid "Desktop top"
|
| 1757 |
+
msgstr ""
|
| 1758 |
+
|
| 1759 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:59,
|
| 1760 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:68,
|
| 1761 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:77,
|
| 1762 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:86
|
| 1763 |
+
msgid "Header offcanvas"
|
| 1764 |
+
msgstr ""
|
| 1765 |
+
|
| 1766 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:66
|
| 1767 |
+
msgid "Desktop bottom"
|
| 1768 |
+
msgstr ""
|
| 1769 |
+
|
| 1770 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:75
|
| 1771 |
+
msgid "Mobile top"
|
| 1772 |
+
msgstr ""
|
| 1773 |
+
|
| 1774 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:84
|
| 1775 |
+
msgid "Mobile bottom"
|
| 1776 |
+
msgstr ""
|
| 1777 |
+
|
| 1778 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:93
|
| 1779 |
+
msgid "Dynamic sidebar before"
|
| 1780 |
+
msgstr ""
|
| 1781 |
+
|
| 1782 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:94,
|
| 1783 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:101,
|
| 1784 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:109
|
| 1785 |
+
msgid "Sidebar"
|
| 1786 |
+
msgstr ""
|
| 1787 |
+
|
| 1788 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:100
|
| 1789 |
+
msgid "Dynamic sidebar"
|
| 1790 |
+
msgstr ""
|
| 1791 |
+
|
| 1792 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:108
|
| 1793 |
+
msgid "Dynamic sidebar after"
|
| 1794 |
+
msgstr ""
|
| 1795 |
+
|
| 1796 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:117
|
| 1797 |
+
msgid "Before section"
|
| 1798 |
+
msgstr ""
|
| 1799 |
+
|
| 1800 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:118,
|
| 1801 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:125,
|
| 1802 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:132,
|
| 1803 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:139
|
| 1804 |
+
msgid "Page/post title"
|
| 1805 |
+
msgstr ""
|
| 1806 |
+
|
| 1807 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:124
|
| 1808 |
+
msgid "Before title"
|
| 1809 |
+
msgstr ""
|
| 1810 |
+
|
| 1811 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:131
|
| 1812 |
+
msgid "After title"
|
| 1813 |
+
msgstr ""
|
| 1814 |
+
|
| 1815 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:138
|
| 1816 |
+
msgid "After section"
|
| 1817 |
+
msgstr ""
|
| 1818 |
+
|
| 1819 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:145
|
| 1820 |
+
msgid "Before content"
|
| 1821 |
+
msgstr ""
|
| 1822 |
+
|
| 1823 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:152
|
| 1824 |
+
msgid "Top content"
|
| 1825 |
+
msgstr ""
|
| 1826 |
+
|
| 1827 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:159,
|
| 1828 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:201
|
| 1829 |
+
msgid "Bottom content"
|
| 1830 |
+
msgstr ""
|
| 1831 |
+
|
| 1832 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:166
|
| 1833 |
+
msgid "After content"
|
| 1834 |
+
msgstr ""
|
| 1835 |
+
|
| 1836 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:173
|
| 1837 |
+
msgid "Before comments"
|
| 1838 |
+
msgstr ""
|
| 1839 |
+
|
| 1840 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:174,
|
| 1841 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:181,
|
| 1842 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:188,
|
| 1843 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:195
|
| 1844 |
+
msgid "Comments"
|
| 1845 |
+
msgstr ""
|
| 1846 |
+
|
| 1847 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:180
|
| 1848 |
+
msgid "Top comments"
|
| 1849 |
+
msgstr ""
|
| 1850 |
+
|
| 1851 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:187
|
| 1852 |
+
msgid "Bottom comments"
|
| 1853 |
+
msgstr ""
|
| 1854 |
+
|
| 1855 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:194
|
| 1856 |
+
msgid "After comments"
|
| 1857 |
+
msgstr ""
|
| 1858 |
+
|
| 1859 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:208
|
| 1860 |
+
msgid "Login form start"
|
| 1861 |
+
msgstr ""
|
| 1862 |
+
|
| 1863 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:209,
|
| 1864 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:216,
|
| 1865 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:223,
|
| 1866 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:230,
|
| 1867 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:237,
|
| 1868 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:244,
|
| 1869 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:251,
|
| 1870 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:258,
|
| 1871 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:265,
|
| 1872 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:272
|
| 1873 |
+
msgid "Auth forms"
|
| 1874 |
+
msgstr ""
|
| 1875 |
+
|
| 1876 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:215
|
| 1877 |
+
msgid "Login form end"
|
| 1878 |
+
msgstr ""
|
| 1879 |
+
|
| 1880 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:222
|
| 1881 |
+
msgid "Login form modal start"
|
| 1882 |
+
msgstr ""
|
| 1883 |
+
|
| 1884 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:229
|
| 1885 |
+
msgid "Login form modal end"
|
| 1886 |
+
msgstr ""
|
| 1887 |
+
|
| 1888 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:236
|
| 1889 |
+
msgid "Register form start"
|
| 1890 |
+
msgstr ""
|
| 1891 |
+
|
| 1892 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:243
|
| 1893 |
+
msgid "Register form end"
|
| 1894 |
+
msgstr ""
|
| 1895 |
+
|
| 1896 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:250
|
| 1897 |
+
msgid "Register form modal start"
|
| 1898 |
+
msgstr ""
|
| 1899 |
+
|
| 1900 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:257
|
| 1901 |
+
msgid "Register form modal end"
|
| 1902 |
+
msgstr ""
|
| 1903 |
+
|
| 1904 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:264
|
| 1905 |
+
msgid "Lost password form modal start"
|
| 1906 |
+
msgstr ""
|
| 1907 |
+
|
| 1908 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:271
|
| 1909 |
+
msgid "Lost password form modal end"
|
| 1910 |
+
msgstr ""
|
| 1911 |
+
|
| 1912 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:279
|
| 1913 |
+
msgid "Before main content"
|
| 1914 |
+
msgstr ""
|
| 1915 |
+
|
| 1916 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:284
|
| 1917 |
+
msgid "After main content"
|
| 1918 |
+
msgstr ""
|
| 1919 |
+
|
| 1920 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:286
|
| 1921 |
+
msgid "WooCommerce Global"
|
| 1922 |
+
msgstr ""
|
| 1923 |
+
|
| 1924 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:292
|
| 1925 |
+
msgid "Archive description"
|
| 1926 |
+
msgstr ""
|
| 1927 |
+
|
| 1928 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:296
|
| 1929 |
+
msgid "Before shop loop"
|
| 1930 |
+
msgstr ""
|
| 1931 |
+
|
| 1932 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:300
|
| 1933 |
+
msgid "Before shop loop item title"
|
| 1934 |
+
msgstr ""
|
| 1935 |
+
|
| 1936 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:304
|
| 1937 |
+
msgid "After shop loop item title"
|
| 1938 |
+
msgstr ""
|
| 1939 |
+
|
| 1940 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:308
|
| 1941 |
+
msgid "After shop loop"
|
| 1942 |
+
msgstr ""
|
| 1943 |
+
|
| 1944 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:311
|
| 1945 |
+
msgid "WooCommerce Archive"
|
| 1946 |
+
msgstr ""
|
| 1947 |
+
|
| 1948 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:316
|
| 1949 |
+
msgid "Before single product"
|
| 1950 |
+
msgstr ""
|
| 1951 |
+
|
| 1952 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:320
|
| 1953 |
+
msgid "Before single product summary"
|
| 1954 |
+
msgstr ""
|
| 1955 |
+
|
| 1956 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:324
|
| 1957 |
+
msgid "Single product summary"
|
| 1958 |
+
msgstr ""
|
| 1959 |
+
|
| 1960 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:328
|
| 1961 |
+
msgid "After single product summary"
|
| 1962 |
+
msgstr ""
|
| 1963 |
+
|
| 1964 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:332
|
| 1965 |
+
msgid "Product meta start"
|
| 1966 |
+
msgstr ""
|
| 1967 |
+
|
| 1968 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:336
|
| 1969 |
+
msgid "Product meta end"
|
| 1970 |
+
msgstr ""
|
| 1971 |
+
|
| 1972 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:340
|
| 1973 |
+
msgid "Share"
|
| 1974 |
+
msgstr ""
|
| 1975 |
+
|
| 1976 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:344
|
| 1977 |
+
msgid "After single product"
|
| 1978 |
+
msgstr ""
|
| 1979 |
+
|
| 1980 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:347
|
| 1981 |
+
msgid "WooCommerce Product"
|
| 1982 |
+
msgstr ""
|
| 1983 |
+
|
| 1984 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:352
|
| 1985 |
+
msgid "Cart is empty"
|
| 1986 |
+
msgstr ""
|
| 1987 |
+
|
| 1988 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:356
|
| 1989 |
+
msgid "Before cart"
|
| 1990 |
+
msgstr ""
|
| 1991 |
+
|
| 1992 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:360
|
| 1993 |
+
msgid "Before cart table"
|
| 1994 |
+
msgstr ""
|
| 1995 |
+
|
| 1996 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:364
|
| 1997 |
+
msgid "Before cart contents"
|
| 1998 |
+
msgstr ""
|
| 1999 |
+
|
| 2000 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:368
|
| 2001 |
+
msgid "Cart contents"
|
| 2002 |
+
msgstr ""
|
| 2003 |
+
|
| 2004 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:372
|
| 2005 |
+
msgid "After cart contents"
|
| 2006 |
+
msgstr ""
|
| 2007 |
+
|
| 2008 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:376
|
| 2009 |
+
msgid "Cart coupon"
|
| 2010 |
+
msgstr ""
|
| 2011 |
+
|
| 2012 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:380
|
| 2013 |
+
msgid "Cart actions"
|
| 2014 |
+
msgstr ""
|
| 2015 |
+
|
| 2016 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:384
|
| 2017 |
+
msgid "After cart table"
|
| 2018 |
+
msgstr ""
|
| 2019 |
+
|
| 2020 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:388
|
| 2021 |
+
msgid "Cart collaterals"
|
| 2022 |
+
msgstr ""
|
| 2023 |
+
|
| 2024 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:392
|
| 2025 |
+
msgid "Before cart totals"
|
| 2026 |
+
msgstr ""
|
| 2027 |
+
|
| 2028 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:396
|
| 2029 |
+
msgid "Cart totals before order total"
|
| 2030 |
+
msgstr ""
|
| 2031 |
+
|
| 2032 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:400
|
| 2033 |
+
msgid "Cart totals after order total"
|
| 2034 |
+
msgstr ""
|
| 2035 |
+
|
| 2036 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:404
|
| 2037 |
+
msgid "Proceed to checkout"
|
| 2038 |
+
msgstr ""
|
| 2039 |
+
|
| 2040 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:408
|
| 2041 |
+
msgid "After cart totals"
|
| 2042 |
+
msgstr ""
|
| 2043 |
+
|
| 2044 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:412
|
| 2045 |
+
msgid "After cart"
|
| 2046 |
+
msgstr ""
|
| 2047 |
+
|
| 2048 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:417
|
| 2049 |
+
msgid "Before Mini Cart"
|
| 2050 |
+
msgstr ""
|
| 2051 |
+
|
| 2052 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:422
|
| 2053 |
+
msgid "Before Mini Cart Contents"
|
| 2054 |
+
msgstr ""
|
| 2055 |
+
|
| 2056 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:427
|
| 2057 |
+
msgid "Mini Cart Contents"
|
| 2058 |
+
msgstr ""
|
| 2059 |
+
|
| 2060 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:432
|
| 2061 |
+
msgid "Widget Shopping Cart Before Buttons"
|
| 2062 |
+
msgstr ""
|
| 2063 |
+
|
| 2064 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:437
|
| 2065 |
+
msgid "Widget Shopping Cart After Buttons"
|
| 2066 |
+
msgstr ""
|
| 2067 |
+
|
| 2068 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:442
|
| 2069 |
+
msgid "After Mini Cart"
|
| 2070 |
+
msgstr ""
|
| 2071 |
+
|
| 2072 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:444
|
| 2073 |
+
msgid "WooCommerce Cart"
|
| 2074 |
+
msgstr ""
|
| 2075 |
+
|
| 2076 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:450
|
| 2077 |
+
msgid "Before checkout form"
|
| 2078 |
+
msgstr ""
|
| 2079 |
+
|
| 2080 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:454
|
| 2081 |
+
msgid "Before customer details"
|
| 2082 |
+
msgstr ""
|
| 2083 |
+
|
| 2084 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:458
|
| 2085 |
+
msgid "After customer details"
|
| 2086 |
+
msgstr ""
|
| 2087 |
+
|
| 2088 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:462
|
| 2089 |
+
msgid "Checkout billing"
|
| 2090 |
+
msgstr ""
|
| 2091 |
+
|
| 2092 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:466
|
| 2093 |
+
msgid "Before checkout billing form"
|
| 2094 |
+
msgstr ""
|
| 2095 |
+
|
| 2096 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:470
|
| 2097 |
+
msgid "After checkout billing form"
|
| 2098 |
+
msgstr ""
|
| 2099 |
+
|
| 2100 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:474
|
| 2101 |
+
msgid "Before order notes"
|
| 2102 |
+
msgstr ""
|
| 2103 |
+
|
| 2104 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:478
|
| 2105 |
+
msgid "After order notes"
|
| 2106 |
+
msgstr ""
|
| 2107 |
+
|
| 2108 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:482
|
| 2109 |
+
msgid "Checkout shipping"
|
| 2110 |
+
msgstr ""
|
| 2111 |
+
|
| 2112 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:486
|
| 2113 |
+
msgid "Checkout before order review"
|
| 2114 |
+
msgstr ""
|
| 2115 |
+
|
| 2116 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:490
|
| 2117 |
+
msgid "Checkout order review"
|
| 2118 |
+
msgstr ""
|
| 2119 |
+
|
| 2120 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:494
|
| 2121 |
+
msgid "Review order before cart contents"
|
| 2122 |
+
msgstr ""
|
| 2123 |
+
|
| 2124 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:498
|
| 2125 |
+
msgid "Review order after cart contents"
|
| 2126 |
+
msgstr ""
|
| 2127 |
+
|
| 2128 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:502
|
| 2129 |
+
msgid "Review order before order total"
|
| 2130 |
+
msgstr ""
|
| 2131 |
+
|
| 2132 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:506
|
| 2133 |
+
msgid "Review order after order total"
|
| 2134 |
+
msgstr ""
|
| 2135 |
+
|
| 2136 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:510
|
| 2137 |
+
msgid "Review order before payment"
|
| 2138 |
+
msgstr ""
|
| 2139 |
+
|
| 2140 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:514
|
| 2141 |
+
msgid "Review order before submit"
|
| 2142 |
+
msgstr ""
|
| 2143 |
+
|
| 2144 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:518
|
| 2145 |
+
msgid "Review order after submit"
|
| 2146 |
+
msgstr ""
|
| 2147 |
+
|
| 2148 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:522
|
| 2149 |
+
msgid "Review order after payment"
|
| 2150 |
+
msgstr ""
|
| 2151 |
+
|
| 2152 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:526
|
| 2153 |
+
msgid "Checkout after order review"
|
| 2154 |
+
msgstr ""
|
| 2155 |
+
|
| 2156 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:530
|
| 2157 |
+
msgid "After checkout form"
|
| 2158 |
+
msgstr ""
|
| 2159 |
+
|
| 2160 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:533
|
| 2161 |
+
msgid "WooCommerce Checkout"
|
| 2162 |
+
msgstr ""
|
| 2163 |
+
|
| 2164 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:539
|
| 2165 |
+
msgid "Before my account"
|
| 2166 |
+
msgstr ""
|
| 2167 |
+
|
| 2168 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:543
|
| 2169 |
+
msgid "Before account navigation"
|
| 2170 |
+
msgstr ""
|
| 2171 |
+
|
| 2172 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:547
|
| 2173 |
+
msgid "Account navigation"
|
| 2174 |
+
msgstr ""
|
| 2175 |
+
|
| 2176 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:551
|
| 2177 |
+
msgid "After account navigation"
|
| 2178 |
+
msgstr ""
|
| 2179 |
+
|
| 2180 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:555
|
| 2181 |
+
msgid "Account content"
|
| 2182 |
msgstr ""
|
| 2183 |
|
| 2184 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:559
|
| 2185 |
+
msgid "Account dashboard"
|
| 2186 |
msgstr ""
|
| 2187 |
|
| 2188 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:563
|
| 2189 |
+
msgid "After my account"
|
| 2190 |
msgstr ""
|
| 2191 |
|
| 2192 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:566
|
| 2193 |
+
msgid "WooCommerce Account"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2194 |
msgstr ""
|
| 2195 |
|
| 2196 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:572
|
| 2197 |
+
msgid "WP footer"
|
|
|
|
|
|
|
| 2198 |
msgstr ""
|
| 2199 |
|
| 2200 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:573,
|
| 2201 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:581,
|
| 2202 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:589
|
| 2203 |
+
msgid "Footer"
|
| 2204 |
msgstr ""
|
| 2205 |
|
| 2206 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:580
|
| 2207 |
+
msgid "Footer before"
|
| 2208 |
msgstr ""
|
| 2209 |
|
| 2210 |
+
#: framework/premium/features/content-blocks/hooks-manager.php:588
|
| 2211 |
+
msgid "Footer after"
|
|
|
|
|
|
|
| 2212 |
msgstr ""
|
| 2213 |
|
| 2214 |
+
#: framework/premium/features/content-blocks/meta-options.php:25
|
| 2215 |
+
msgid "Other"
|
| 2216 |
msgstr ""
|
| 2217 |
|
| 2218 |
+
#: framework/premium/features/content-blocks/meta-options.php:39
|
| 2219 |
+
msgid "Container Structure"
|
| 2220 |
msgstr ""
|
| 2221 |
|
| 2222 |
+
#: framework/premium/features/content-blocks/meta-options.php:56
|
| 2223 |
+
msgid "Narrow Width"
|
|
|
|
|
|
|
| 2224 |
msgstr ""
|
| 2225 |
|
| 2226 |
+
#: framework/premium/features/content-blocks/meta-options.php:61
|
| 2227 |
+
msgid "Normal Width"
|
|
|
|
|
|
|
| 2228 |
msgstr ""
|
| 2229 |
|
| 2230 |
+
#: framework/premium/features/content-blocks/meta-options.php:67
|
| 2231 |
+
msgid "Content Area Style"
|
|
|
|
|
|
|
| 2232 |
msgstr ""
|
| 2233 |
|
| 2234 |
#: framework/extensions/widgets/widgets/ct-about-me/options.php:18,
|
| 2247 |
|
| 2248 |
#: framework/extensions/widgets/widgets/ct-about-me/options.php:37,
|
| 2249 |
#: framework/extensions/widgets/widgets/ct-advertisement/options.php:23,
|
| 2250 |
+
#: framework/extensions/widgets/widgets/ct-posts/options.php:149,
|
| 2251 |
+
#: framework/extensions/widgets/widgets/ct-posts/options.php:168
|
| 2252 |
msgid "Source"
|
| 2253 |
msgstr ""
|
| 2254 |
|
| 2261 |
msgstr ""
|
| 2262 |
|
| 2263 |
#: framework/extensions/widgets/widgets/ct-about-me/options.php:72,
|
| 2264 |
+
#: framework/features/header/items/account/options.php:118
|
| 2265 |
msgid "Avatar"
|
| 2266 |
msgstr ""
|
| 2267 |
|
| 2279 |
|
| 2280 |
#: framework/extensions/widgets/widgets/ct-about-me/options.php:100,
|
| 2281 |
#: framework/extensions/widgets/widgets/ct-about-me/options.php:107,
|
| 2282 |
+
#: framework/features/header/items/account/options.php:131
|
| 2283 |
msgid "Avatar Size"
|
| 2284 |
msgstr ""
|
| 2285 |
|
| 2290 |
msgid "Small"
|
| 2291 |
msgstr ""
|
| 2292 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2293 |
#: framework/extensions/widgets/widgets/ct-about-me/options.php:115,
|
| 2294 |
#: framework/extensions/widgets/widgets/ct-about-me/options.php:196,
|
| 2295 |
#: framework/extensions/widgets/widgets/ct-contact-info/options.php:267,
|
| 2336 |
#: framework/extensions/widgets/widgets/ct-about-me/options.php:208,
|
| 2337 |
#: framework/extensions/widgets/widgets/ct-contact-info/options.php:279,
|
| 2338 |
#: framework/extensions/widgets/widgets/ct-socials/options.php:79,
|
| 2339 |
+
#: framework/features/header/items/account/options.php:120,
|
| 2340 |
+
#: framework/features/header/items/account/options.php:233,
|
| 2341 |
#: framework/premium/features/premium-header/items/contacts/options.php:273
|
| 2342 |
msgid "None"
|
| 2343 |
msgstr ""
|
| 2537 |
msgid "Facebook like box"
|
| 2538 |
msgstr ""
|
| 2539 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2540 |
#: framework/extensions/widgets/widgets/ct-posts/options.php:38
|
| 2541 |
msgid "All categories"
|
| 2542 |
msgstr ""
|
| 2577 |
msgid "Numbered"
|
| 2578 |
msgstr ""
|
| 2579 |
|
| 2580 |
+
#: framework/extensions/widgets/widgets/ct-posts/options.php:137
|
| 2581 |
msgid "Post Type"
|
| 2582 |
msgstr ""
|
| 2583 |
|
| 2584 |
+
#: framework/extensions/widgets/widgets/ct-posts/options.php:154
|
| 2585 |
msgid "Taxonomies"
|
| 2586 |
msgstr ""
|
| 2587 |
|
| 2588 |
+
#: framework/extensions/widgets/widgets/ct-posts/options.php:155,
|
| 2589 |
+
#: framework/extensions/widgets/widgets/ct-posts/options.php:174
|
| 2590 |
msgid "Custom Query"
|
| 2591 |
msgstr ""
|
| 2592 |
|
| 2593 |
+
#: framework/extensions/widgets/widgets/ct-posts/options.php:193
|
| 2594 |
msgid "Sort by"
|
| 2595 |
msgstr ""
|
| 2596 |
|
| 2597 |
+
#: framework/extensions/widgets/widgets/ct-posts/options.php:198
|
| 2598 |
msgid "Recent"
|
| 2599 |
msgstr ""
|
| 2600 |
|
| 2601 |
+
#: framework/extensions/widgets/widgets/ct-posts/options.php:199
|
| 2602 |
msgid "Most Commented"
|
| 2603 |
msgstr ""
|
| 2604 |
|
| 2605 |
+
#: framework/extensions/widgets/widgets/ct-posts/options.php:206
|
| 2606 |
msgid "Order by"
|
| 2607 |
msgstr ""
|
| 2608 |
|
| 2609 |
+
#: framework/extensions/widgets/widgets/ct-posts/options.php:212
|
| 2610 |
msgid "1 Week"
|
| 2611 |
msgstr ""
|
| 2612 |
|
| 2613 |
+
#: framework/extensions/widgets/widgets/ct-posts/options.php:213
|
| 2614 |
msgid "1 Month"
|
| 2615 |
msgstr ""
|
| 2616 |
|
| 2617 |
+
#: framework/extensions/widgets/widgets/ct-posts/options.php:214
|
| 2618 |
msgid "3 Months"
|
| 2619 |
msgstr ""
|
| 2620 |
|
| 2621 |
+
#: framework/extensions/widgets/widgets/ct-posts/options.php:215
|
| 2622 |
msgid "6 Months"
|
| 2623 |
msgstr ""
|
| 2624 |
|
| 2625 |
+
#: framework/extensions/widgets/widgets/ct-posts/options.php:216
|
| 2626 |
msgid "1 Year"
|
| 2627 |
msgstr ""
|
| 2628 |
|
| 2629 |
+
#: framework/extensions/widgets/widgets/ct-posts/options.php:223
|
| 2630 |
msgid "Posts Count"
|
| 2631 |
msgstr ""
|
| 2632 |
|
| 2633 |
+
#: framework/extensions/widgets/widgets/ct-posts/options.php:285
|
| 2634 |
msgid "Pages Count"
|
| 2635 |
msgstr ""
|
| 2636 |
|
| 2637 |
+
#: framework/extensions/widgets/widgets/ct-posts/options.php:296
|
| 2638 |
msgid "Show Date"
|
| 2639 |
msgstr ""
|
| 2640 |
|
| 2641 |
+
#: framework/extensions/widgets/widgets/ct-posts/options.php:302
|
| 2642 |
msgid "Show Comments"
|
| 2643 |
msgstr ""
|
| 2644 |
|
| 2645 |
+
#: framework/extensions/widgets/widgets/ct-posts/options.php:308
|
| 2646 |
msgid "Show Excerpt"
|
| 2647 |
msgstr ""
|
| 2648 |
|
| 2649 |
+
#: framework/extensions/widgets/widgets/ct-posts/options.php:319
|
| 2650 |
msgid "Excerpt Lenght"
|
| 2651 |
msgstr ""
|
| 2652 |
|
| 2688 |
msgid "Social channels icons"
|
| 2689 |
msgstr ""
|
| 2690 |
|
| 2691 |
+
#: framework/features/header/items/account/options.php:7
|
| 2692 |
+
msgid "Customizing: Logged in State"
|
| 2693 |
msgstr ""
|
| 2694 |
|
| 2695 |
+
#: framework/features/header/items/account/options.php:21
|
| 2696 |
+
msgid "Logged In Options"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2697 |
msgstr ""
|
| 2698 |
|
| 2699 |
+
#: framework/features/header/items/account/options.php:26
|
| 2700 |
+
msgid "Logged Out Options"
|
| 2701 |
msgstr ""
|
| 2702 |
|
| 2703 |
+
#: framework/features/header/items/account/options.php:47,
|
| 2704 |
+
#: framework/features/header/items/account/options.php:264
|
| 2705 |
+
msgid "Account Action"
|
| 2706 |
msgstr ""
|
| 2707 |
|
| 2708 |
+
#: framework/features/header/items/account/options.php:55
|
| 2709 |
+
msgid "Profile Page"
|
| 2710 |
msgstr ""
|
| 2711 |
|
| 2712 |
+
#: framework/features/header/items/account/options.php:56
|
| 2713 |
+
msgid "Dashboard Page"
|
| 2714 |
msgstr ""
|
| 2715 |
|
| 2716 |
+
#: framework/features/header/items/account/options.php:57
|
| 2717 |
+
msgid "Menu"
|
|
|
|
|
|
|
| 2718 |
msgstr ""
|
| 2719 |
|
| 2720 |
+
#: framework/features/header/items/account/options.php:58,
|
| 2721 |
+
#: framework/features/header/items/account/options.php:273
|
| 2722 |
+
msgid "Custom Link"
|
| 2723 |
msgstr ""
|
| 2724 |
|
| 2725 |
+
#: framework/features/header/items/account/options.php:59
|
| 2726 |
+
msgid "Logout"
|
| 2727 |
msgstr ""
|
| 2728 |
|
| 2729 |
+
#: framework/features/header/items/account/options.php:69
|
| 2730 |
+
msgid "Select Menu"
|
| 2731 |
+
msgstr ""
|
| 2732 |
+
|
| 2733 |
+
#: framework/features/header/items/account/options.php:75
|
| 2734 |
+
msgid "Select menu..."
|
| 2735 |
msgstr ""
|
| 2736 |
|
| 2737 |
+
#. translators: placeholder here means the actual URL.
|
| 2738 |
+
#: framework/features/header/items/account/options.php:79
|
| 2739 |
+
msgid "Manage your menu items in the %sMenus screen%s."
|
| 2740 |
msgstr ""
|
| 2741 |
|
| 2742 |
+
#: framework/features/header/items/account/options.php:96,
|
| 2743 |
+
#: framework/features/header/items/account/options.php:284
|
| 2744 |
msgid "Custom Page Link"
|
| 2745 |
msgstr ""
|
| 2746 |
|
| 2747 |
+
#: framework/features/header/items/account/options.php:112
|
| 2748 |
+
msgid "Media Type"
|
| 2749 |
+
msgstr ""
|
| 2750 |
+
|
| 2751 |
+
#: framework/features/header/items/account/options.php:194,
|
| 2752 |
+
#: framework/features/header/items/account/options.php:367
|
| 2753 |
+
msgid "Icon Size"
|
| 2754 |
+
msgstr ""
|
| 2755 |
+
|
| 2756 |
+
#: framework/features/header/items/account/options.php:224
|
| 2757 |
+
msgid "Text Type"
|
| 2758 |
+
msgstr ""
|
| 2759 |
+
|
| 2760 |
+
#: framework/features/header/items/account/options.php:231,
|
| 2761 |
+
#: framework/features/header/items/account/options.php:313,
|
| 2762 |
+
#: framework/features/header/items/account/options.php:398,
|
| 2763 |
+
#: framework/features/header/items/account/view.php:58,
|
| 2764 |
+
#: framework/features/header/items/account/view.php:59,
|
| 2765 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:60
|
| 2766 |
+
msgid "Label"
|
| 2767 |
+
msgstr ""
|
| 2768 |
+
|
| 2769 |
+
#: framework/features/header/items/account/options.php:244
|
| 2770 |
+
msgid "Custom Label"
|
| 2771 |
+
msgstr ""
|
| 2772 |
+
|
| 2773 |
+
#: framework/features/header/items/account/options.php:249
|
| 2774 |
+
msgid "My Account"
|
| 2775 |
+
msgstr ""
|
| 2776 |
+
|
| 2777 |
+
#: framework/features/header/items/account/options.php:272
|
| 2778 |
+
msgid "Modal"
|
| 2779 |
+
msgstr ""
|
| 2780 |
+
|
| 2781 |
+
#: framework/features/header/items/account/options.php:300
|
| 2782 |
+
msgid "View Type"
|
| 2783 |
+
msgstr ""
|
| 2784 |
+
|
| 2785 |
+
#: framework/features/header/items/account/options.php:423
|
| 2786 |
+
msgid "Label/Name Visibility"
|
| 2787 |
+
msgstr ""
|
| 2788 |
+
|
| 2789 |
+
#: framework/features/header/items/account/options.php:452
|
| 2790 |
+
msgid "Label/Name Font"
|
| 2791 |
+
msgstr ""
|
| 2792 |
+
|
| 2793 |
+
#: framework/features/header/items/account/options.php:463,
|
| 2794 |
+
#: framework/features/header/items/account/options.php:492,
|
| 2795 |
+
#: framework/features/header/items/account/options.php:523,
|
| 2796 |
+
#: framework/features/header/items/account/options.php:553
|
| 2797 |
+
msgid "Label/Name Color"
|
| 2798 |
+
msgstr ""
|
| 2799 |
+
|
| 2800 |
+
#: framework/features/header/items/account/options.php:468,
|
| 2801 |
#: framework/premium/features/premium-header/items/contacts/options.php:326,
|
| 2802 |
+
#: framework/premium/features/premium-header/items/contacts/options.php:496,
|
| 2803 |
+
#: framework/premium/features/premium-header/items/contacts/options.php:643,
|
| 2804 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:208,
|
| 2805 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:162,
|
| 2806 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:292,
|
| 2807 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:426
|
|
|
|
| 2808 |
msgid "Default State"
|
| 2809 |
msgstr ""
|
| 2810 |
|
| 2811 |
+
#: framework/features/header/items/account/options.php:473,
|
| 2812 |
#: framework/premium/features/premium-header/items/contacts/options.php:331,
|
| 2813 |
+
#: framework/premium/features/premium-header/items/contacts/options.php:501,
|
| 2814 |
+
#: framework/premium/features/premium-header/items/contacts/options.php:651,
|
| 2815 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:213,
|
| 2816 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:167,
|
| 2817 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:297,
|
| 2818 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:431
|
|
|
|
| 2819 |
msgid "Transparent State"
|
| 2820 |
msgstr ""
|
| 2821 |
|
| 2822 |
+
#: framework/features/header/items/account/options.php:482,
|
| 2823 |
+
#: framework/premium/features/premium-header/items/contacts/options.php:340,
|
| 2824 |
+
#: framework/premium/features/premium-header/items/contacts/options.php:510,
|
| 2825 |
+
#: framework/premium/features/premium-header/items/contacts/options.php:661,
|
| 2826 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:222,
|
| 2827 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:176,
|
| 2828 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:306,
|
| 2829 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:440
|
|
|
|
| 2830 |
msgid "Sticky State"
|
| 2831 |
msgstr ""
|
| 2832 |
|
| 2833 |
+
#: framework/features/header/items/account/options.php:590
|
| 2834 |
msgid "Item Margin"
|
| 2835 |
msgstr ""
|
| 2836 |
|
| 2837 |
+
#: framework/features/header/items/account/options.php:617
|
| 2838 |
+
msgid "Form Shadow"
|
| 2839 |
msgstr ""
|
| 2840 |
|
| 2841 |
+
#: framework/features/header/items/account/options.php:635
|
| 2842 |
+
msgid "Form Background"
|
| 2843 |
msgstr ""
|
| 2844 |
|
| 2845 |
+
#: framework/features/header/items/account/options.php:650
|
| 2846 |
+
msgid "Form Backdrop"
|
| 2847 |
msgstr ""
|
| 2848 |
|
| 2849 |
+
#: framework/features/header/items/account/view.php:102
|
| 2850 |
msgid "Account"
|
| 2851 |
msgstr ""
|
| 2852 |
|
| 2855 |
msgstr ""
|
| 2856 |
|
| 2857 |
#: framework/premium/features/premium-header/items/contacts/options.php:255,
|
| 2858 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:95
|
| 2859 |
msgid "Items Spacing"
|
| 2860 |
msgstr ""
|
| 2861 |
|
| 2862 |
#: framework/premium/features/premium-header/items/contacts/options.php:311,
|
| 2863 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:192,
|
| 2864 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:376
|
| 2865 |
msgid "Font"
|
| 2866 |
msgstr ""
|
| 2867 |
|
| 2868 |
+
#: framework/premium/features/premium-header/items/contacts/options.php:491,
|
| 2869 |
+
#: framework/premium/features/premium-header/items/contacts/options.php:520,
|
| 2870 |
+
#: framework/premium/features/premium-header/items/contacts/options.php:551,
|
| 2871 |
+
#: framework/premium/features/premium-header/items/contacts/options.php:581
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2872 |
msgid "Icons Color"
|
| 2873 |
msgstr ""
|
| 2874 |
|
| 2875 |
+
#: framework/premium/features/premium-header/items/contacts/options.php:796,
|
| 2876 |
+
#: framework/premium/features/premium-header/items/divider/options.php:107,
|
| 2877 |
+
#: framework/premium/features/premium-header/items/divider/options.php:126,
|
| 2878 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:323,
|
| 2879 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:565
|
| 2880 |
msgid "Margin"
|
| 2881 |
msgstr ""
|
| 2882 |
|
| 2884 |
msgid "Divider"
|
| 2885 |
msgstr ""
|
| 2886 |
|
| 2887 |
+
#: framework/premium/features/premium-header/items/divider/options.php:6
|
| 2888 |
+
msgid "Size"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2889 |
msgstr ""
|
| 2890 |
|
| 2891 |
#: framework/premium/features/premium-header/items/language-switcher/config.php:6
|
| 2892 |
msgid "Languages"
|
| 2893 |
msgstr ""
|
| 2894 |
|
| 2895 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:17
|
| 2896 |
msgid "Top Level Options"
|
| 2897 |
msgstr ""
|
| 2898 |
|
| 2899 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:37
|
| 2900 |
msgid "Dropdown"
|
| 2901 |
msgstr ""
|
| 2902 |
|
| 2903 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:47
|
| 2904 |
msgid "Display"
|
| 2905 |
msgstr ""
|
| 2906 |
|
| 2907 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:59
|
| 2908 |
msgid "Flag"
|
| 2909 |
msgstr ""
|
| 2910 |
|
| 2911 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:73
|
| 2912 |
msgid "Label Style"
|
| 2913 |
msgstr ""
|
| 2914 |
|
| 2915 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:79
|
| 2916 |
msgid "Long"
|
| 2917 |
msgstr ""
|
| 2918 |
|
| 2919 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:80
|
| 2920 |
msgid "Short"
|
| 2921 |
msgstr ""
|
| 2922 |
|
| 2923 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:112
|
| 2924 |
+
msgid "Hide Current Language"
|
| 2925 |
+
msgstr ""
|
| 2926 |
+
|
| 2927 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:343
|
| 2928 |
msgid "Dropdown Options"
|
| 2929 |
msgstr ""
|
| 2930 |
|
| 2931 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:352
|
| 2932 |
msgid "Dropdown Top Offset"
|
| 2933 |
msgstr ""
|
| 2934 |
|
| 2935 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:360
|
| 2936 |
msgid "Items Vertical Spacing"
|
| 2937 |
msgstr ""
|
| 2938 |
|
| 2939 |
+
#: framework/premium/features/premium-header/items/language-switcher/options.php:465
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2940 |
msgid "Border Radius"
|
| 2941 |
msgstr ""
|
| 2942 |
|
| 2944 |
msgid "Search Box"
|
| 2945 |
msgstr ""
|
| 2946 |
|
| 2947 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:34
|
| 2948 |
msgid "Placeholder Text"
|
| 2949 |
msgstr ""
|
| 2950 |
|
| 2951 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:44
|
| 2952 |
msgid "Input Maximum Width"
|
| 2953 |
msgstr ""
|
| 2954 |
|
| 2955 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:55
|
| 2956 |
msgid "Input Height"
|
| 2957 |
msgstr ""
|
| 2958 |
|
| 2959 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:66
|
| 2960 |
msgid "Live Results"
|
| 2961 |
msgstr ""
|
| 2962 |
|
| 2963 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:74
|
| 2964 |
msgid "Search Through Criteria"
|
| 2965 |
msgstr ""
|
| 2966 |
|
| 2967 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:75
|
| 2968 |
msgid "Chose in which post types do you want to perform searches."
|
| 2969 |
msgstr ""
|
| 2970 |
|
| 2971 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:157,
|
| 2972 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:186,
|
| 2973 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:218,
|
| 2974 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:248
|
| 2975 |
msgid "Input Font Color"
|
| 2976 |
msgstr ""
|
| 2977 |
|
| 2978 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:210,
|
| 2979 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:241,
|
| 2980 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:271,
|
|
|
|
|
|
|
| 2981 |
#: framework/premium/features/premium-header/items/search-input/options.php:339,
|
| 2982 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:369,
|
| 2983 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:399,
|
| 2984 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:472,
|
| 2985 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:502,
|
| 2986 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:532
|
| 2987 |
msgid "Focus"
|
| 2988 |
msgstr ""
|
| 2989 |
|
| 2990 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:287,
|
| 2991 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:316,
|
| 2992 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:346,
|
| 2993 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:376
|
| 2994 |
msgid "Input Border Color"
|
| 2995 |
msgstr ""
|
| 2996 |
|
| 2997 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:421,
|
| 2998 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:449,
|
| 2999 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:479,
|
| 3000 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:509
|
| 3001 |
msgid "Input Background Color"
|
| 3002 |
msgstr ""
|
| 3003 |
|
| 3004 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:585
|
| 3005 |
msgid "Dropdown Text Color"
|
| 3006 |
msgstr ""
|
| 3007 |
|
| 3008 |
+
#: framework/premium/features/premium-header/items/search-input/options.php:616
|
| 3009 |
msgid "Dropdown Background"
|
| 3010 |
msgstr ""
|
| 3011 |
|
| 3015 |
|
| 3016 |
#: framework/extensions/mailchimp/admin-static/js/ListPicker.js:14
|
| 3017 |
#: framework/extensions/mailchimp/admin-static/js/ListPicker/Implementation.js:59
|
| 3018 |
+
#: framework/extensions/mailchimp/dashboard-static/js/EditCredentials.js:137
|
| 3019 |
+
#: static/js/screens/SiteExport.js:143
|
| 3020 |
msgid "Loading..."
|
| 3021 |
msgstr ""
|
| 3022 |
|
| 3030 |
msgid "Select list..."
|
| 3031 |
msgstr ""
|
| 3032 |
|
| 3033 |
+
#: framework/extensions/mailchimp/dashboard-static/js/EditCredentials.js:106
|
| 3034 |
+
msgid "API Key"
|
| 3035 |
+
msgstr ""
|
| 3036 |
+
|
| 3037 |
+
#: framework/extensions/mailchimp/dashboard-static/js/EditCredentials.js:139
|
| 3038 |
#: framework/extensions/mailchimp/dashboard-static/js/Mailchimp.js:74
|
| 3039 |
+
#: framework/extensions/product-reviews/static/js/ProductReviews.js:73
|
| 3040 |
#: framework/premium/extensions/adobe-typekit/static/js/AdobeTypekit.js:72
|
| 3041 |
#: framework/premium/extensions/custom-fonts/dashboard-static/js/CustomFonts.js:71
|
| 3042 |
+
#: framework/premium/extensions/local-google-fonts/dashboard-static/js/LocalGoogleFonts.js:73
|
| 3043 |
#: framework/premium/extensions/white-label/dashboard-static/js/WhiteLabel.js:75
|
| 3044 |
#: static/js/screens/Extensions.js:80
|
| 3045 |
msgid "Activate"
|
| 3046 |
msgstr ""
|
| 3047 |
|
| 3048 |
+
#: framework/extensions/mailchimp/dashboard-static/js/EditCredentials.js:140
|
| 3049 |
+
#: framework/premium/extensions/mega-menu/static/js/SettingsManager.js:219
|
| 3050 |
#: framework/premium/extensions/sidebars/static/js/SettingsManager.js:99
|
| 3051 |
+
#: framework/premium/extensions/white-label/dashboard-static/js/EditSettings.js:863
|
| 3052 |
#: framework/premium/static/js/footer/EditConditions.js:143
|
| 3053 |
msgid "Save Settings"
|
| 3054 |
msgstr ""
|
| 3055 |
|
| 3056 |
+
#: framework/extensions/mailchimp/dashboard-static/js/EditCredentials.js:73
|
| 3057 |
+
msgid "API Credentials"
|
| 3058 |
msgstr ""
|
| 3059 |
|
| 3060 |
+
#: framework/extensions/mailchimp/dashboard-static/js/EditCredentials.js:78
|
| 3061 |
msgid ""
|
| 3062 |
+
"Enter your mailing service API credentials in the form below. More info on "
|
| 3063 |
+
"how to generate an API key can be found %shere%s."
|
| 3064 |
+
msgstr ""
|
| 3065 |
+
|
| 3066 |
+
#: framework/extensions/mailchimp/dashboard-static/js/EditCredentials.js:88
|
| 3067 |
+
msgid "Pick service"
|
| 3068 |
msgstr ""
|
| 3069 |
|
| 3070 |
#: framework/extensions/mailchimp/dashboard-static/js/EditCredentials.js:93
|
| 3071 |
+
msgid "Pick Mailing Service"
|
| 3072 |
msgstr ""
|
| 3073 |
|
| 3074 |
#: framework/extensions/mailchimp/dashboard-static/js/ListPicker.js:84
|
| 3076 |
msgstr ""
|
| 3077 |
|
| 3078 |
#: framework/extensions/mailchimp/dashboard-static/js/Mailchimp.js:73
|
| 3079 |
+
#: framework/extensions/product-reviews/static/js/ProductReviews.js:72
|
| 3080 |
#: framework/premium/extensions/adobe-typekit/static/js/AdobeTypekit.js:71
|
| 3081 |
#: framework/premium/extensions/custom-fonts/dashboard-static/js/CustomFonts.js:70
|
| 3082 |
+
#: framework/premium/extensions/local-google-fonts/dashboard-static/js/LocalGoogleFonts.js:72
|
| 3083 |
#: framework/premium/extensions/white-label/dashboard-static/js/WhiteLabel.js:74
|
| 3084 |
#: static/js/screens/Extensions.js:79
|
| 3085 |
msgid "Deactivate"
|
| 3086 |
msgstr ""
|
| 3087 |
|
| 3088 |
+
#: framework/extensions/product-reviews/static/js/EditSettings.js:130
|
| 3089 |
+
msgid "Save"
|
| 3090 |
+
msgstr ""
|
| 3091 |
+
|
| 3092 |
+
#: framework/extensions/product-reviews/static/js/EditSettings.js:39
|
| 3093 |
+
msgid "Product Reviews Settings"
|
| 3094 |
+
msgstr ""
|
| 3095 |
+
|
| 3096 |
+
#: framework/extensions/product-reviews/static/js/EditSettings.js:42
|
| 3097 |
+
msgid ""
|
| 3098 |
+
"Configure the slugs for single and category pages of the product review "
|
| 3099 |
+
"custom post type."
|
| 3100 |
+
msgstr ""
|
| 3101 |
+
|
| 3102 |
+
#: framework/extensions/product-reviews/static/js/EditSettings.js:61
|
| 3103 |
+
msgid "Single Slug"
|
| 3104 |
+
msgstr ""
|
| 3105 |
+
|
| 3106 |
+
#: framework/extensions/product-reviews/static/js/EditSettings.js:67
|
| 3107 |
+
msgid "Category Slug"
|
| 3108 |
msgstr ""
|
| 3109 |
|
| 3110 |
#: framework/premium/extensions/adobe-typekit/static/js/EditSettings.js:108
|
| 3131 |
msgstr ""
|
| 3132 |
|
| 3133 |
#: framework/premium/extensions/adobe-typekit/static/js/EditSettings.js:214
|
| 3134 |
+
#: framework/premium/extensions/custom-fonts/dashboard-static/js/AllFonts.js:56
|
| 3135 |
msgid "Variations"
|
| 3136 |
msgstr ""
|
| 3137 |
|
| 3144 |
msgid "Add/Edit Fonts"
|
| 3145 |
msgstr ""
|
| 3146 |
|
| 3147 |
+
#: framework/premium/extensions/custom-fonts/dashboard-static/js/AllFonts.js:112
|
| 3148 |
+
#: framework/premium/extensions/custom-fonts/dashboard-static/js/Uploader.js:241
|
| 3149 |
+
msgid "Upload Simple Font"
|
| 3150 |
+
msgstr ""
|
| 3151 |
+
|
| 3152 |
+
#: framework/premium/extensions/custom-fonts/dashboard-static/js/AllFonts.js:120
|
| 3153 |
+
#: framework/premium/extensions/custom-fonts/dashboard-static/js/Uploader.js:263
|
| 3154 |
+
msgid "Upload Variable Font"
|
| 3155 |
+
msgstr ""
|
| 3156 |
+
|
| 3157 |
#: framework/premium/extensions/custom-fonts/dashboard-static/js/AllFonts.js:23
|
| 3158 |
msgid "Custom Fonts Settings"
|
| 3159 |
msgstr ""
|
| 3164 |
"options across the theme."
|
| 3165 |
msgstr ""
|
| 3166 |
|
| 3167 |
+
#: framework/premium/extensions/custom-fonts/dashboard-static/js/AllFonts.js:40
|
| 3168 |
+
msgid "Variable font"
|
| 3169 |
+
msgstr ""
|
| 3170 |
+
|
| 3171 |
+
#: framework/premium/extensions/custom-fonts/dashboard-static/js/AllFonts.js:72
|
| 3172 |
msgid "Edit Font"
|
| 3173 |
msgstr ""
|
| 3174 |
|
| 3175 |
+
#: framework/premium/extensions/custom-fonts/dashboard-static/js/AllFonts.js:88
|
| 3176 |
msgid "Remove Font"
|
| 3177 |
msgstr ""
|
| 3178 |
|
| 3179 |
+
#: framework/premium/extensions/custom-fonts/dashboard-static/js/AllFonts.js:99
|
| 3180 |
msgid ""
|
| 3181 |
"There are no custom fonts at the moment, hit the button below and upload "
|
| 3182 |
"some."
|
| 3183 |
msgstr ""
|
| 3184 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3185 |
#: framework/premium/extensions/custom-fonts/dashboard-static/js/EditSettings.js:79
|
| 3186 |
msgid "Settings"
|
| 3187 |
msgstr ""
|
| 3188 |
|
| 3189 |
+
#: framework/premium/extensions/custom-fonts/dashboard-static/js/Uploader.js:160
|
| 3190 |
msgid "Change"
|
| 3191 |
msgstr ""
|
| 3192 |
|
| 3193 |
+
#: framework/premium/extensions/custom-fonts/dashboard-static/js/Uploader.js:161
|
| 3194 |
msgid "Choose"
|
| 3195 |
msgstr ""
|
| 3196 |
|
| 3197 |
+
#: framework/premium/extensions/custom-fonts/dashboard-static/js/Uploader.js:172
|
| 3198 |
+
#: static/js/options/ConditionsManager.js:96
|
| 3199 |
msgid "Select variation"
|
| 3200 |
msgstr ""
|
| 3201 |
|
| 3202 |
+
#: framework/premium/extensions/custom-fonts/dashboard-static/js/Uploader.js:189
|
| 3203 |
+
msgid "Regular"
|
| 3204 |
+
msgstr ""
|
| 3205 |
+
|
| 3206 |
+
#: framework/premium/extensions/custom-fonts/dashboard-static/js/Uploader.js:196
|
| 3207 |
+
msgid "Italic"
|
| 3208 |
msgstr ""
|
| 3209 |
|
| 3210 |
+
#: framework/premium/extensions/custom-fonts/dashboard-static/js/Uploader.js:245
|
| 3211 |
msgid ""
|
| 3212 |
"Upload only the %s.woff2%s font file format (see browser coverage %shere%s). "
|
| 3213 |
"Use %sthis converter tool%s if you don't have this font format."
|
| 3214 |
msgstr ""
|
| 3215 |
|
| 3216 |
+
#: framework/premium/extensions/custom-fonts/dashboard-static/js/Uploader.js:267
|
| 3217 |
+
msgid ""
|
| 3218 |
+
"Upload only the %s.woff2%s font file format. Please don't convert non-woff "
|
| 3219 |
+
"variable fonts by yourself. Instead, just ask the font provider to hand a "
|
| 3220 |
+
"correct file otherwise the %svariable%s font will loose its capabilities."
|
| 3221 |
+
msgstr ""
|
| 3222 |
+
|
| 3223 |
+
#: framework/premium/extensions/custom-fonts/dashboard-static/js/Uploader.js:291
|
| 3224 |
msgid "Font Name"
|
| 3225 |
msgstr ""
|
| 3226 |
|
| 3227 |
+
#: framework/premium/extensions/custom-fonts/dashboard-static/js/Uploader.js:334
|
| 3228 |
+
msgid "Add/upload another font variation"
|
| 3229 |
+
msgstr ""
|
| 3230 |
+
|
| 3231 |
+
#: framework/premium/extensions/custom-fonts/dashboard-static/js/Uploader.js:352
|
| 3232 |
msgid "Back to All Fonts"
|
| 3233 |
msgstr ""
|
| 3234 |
|
| 3235 |
+
#: framework/premium/extensions/custom-fonts/dashboard-static/js/Uploader.js:377
|
| 3236 |
msgid "Save Custom Font"
|
| 3237 |
msgstr ""
|
| 3238 |
|
| 3239 |
+
#: framework/premium/extensions/custom-fonts/dashboard-static/js/Uploader.js:81
|
| 3240 |
msgid "Add Variation"
|
| 3241 |
msgstr ""
|
| 3242 |
|
| 3243 |
+
#: framework/premium/extensions/local-google-fonts/dashboard-static/js/EditSettings.js:134
|
| 3244 |
msgid ""
|
| 3245 |
"By checking this option you will download and replace the existing Google "
|
| 3246 |
"Fonts with the above ones."
|
| 3247 |
msgstr ""
|
| 3248 |
|
| 3249 |
+
#: framework/premium/extensions/local-google-fonts/dashboard-static/js/EditSettings.js:203
|
| 3250 |
msgid "Sync Google Fonts"
|
| 3251 |
msgstr ""
|
| 3252 |
|
| 3253 |
+
#: framework/premium/extensions/local-google-fonts/dashboard-static/js/EditSettings.js:51
|
| 3254 |
msgid "Add Google Fonts"
|
| 3255 |
msgstr ""
|
| 3256 |
|
| 3257 |
+
#: framework/premium/extensions/local-google-fonts/dashboard-static/js/EditSettings.js:60
|
| 3258 |
msgid "Local Google Fonts (GDPR)"
|
| 3259 |
msgstr ""
|
| 3260 |
|
| 3261 |
+
#: framework/premium/extensions/local-google-fonts/dashboard-static/js/EditSettings.js:63
|
| 3262 |
msgid ""
|
| 3263 |
"Download a font and serve it directly from your server, this is handy for "
|
| 3264 |
"those who want to comply with GDPR regulations or serve the font via CDN."
|
| 3268 |
msgid "Item Settings"
|
| 3269 |
msgstr ""
|
| 3270 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3271 |
#: framework/premium/extensions/sidebars/static/js/SettingsManager.js:56
|
| 3272 |
msgid "%s - Sidebar Display Conditions"
|
| 3273 |
msgstr ""
|
| 3276 |
msgid "Add one or more conditions in order to display your sidebar."
|
| 3277 |
msgstr ""
|
| 3278 |
|
| 3279 |
+
#: framework/premium/extensions/white-label/dashboard-static/js/EditSettings.js:104
|
| 3280 |
msgid "White Label Settings"
|
| 3281 |
msgstr ""
|
| 3282 |
|
| 3283 |
+
#: framework/premium/extensions/white-label/dashboard-static/js/EditSettings.js:107
|
| 3284 |
msgid ""
|
| 3285 |
"Remove any link that points to Blocksy website and change the dashboard "
|
| 3286 |
"identity. These options are mostly used by agencies and developers who are "
|
| 3291 |
msgid "Advanced"
|
| 3292 |
msgstr ""
|
| 3293 |
|
| 3294 |
+
#: framework/premium/extensions/white-label/dashboard-static/js/EditSettings.js:144
|
| 3295 |
msgid "Agency Details"
|
| 3296 |
msgstr ""
|
| 3297 |
|
| 3298 |
+
#: framework/premium/extensions/white-label/dashboard-static/js/EditSettings.js:152
|
| 3299 |
msgid "Agency Name"
|
| 3300 |
msgstr ""
|
| 3301 |
|
| 3302 |
+
#: framework/premium/extensions/white-label/dashboard-static/js/EditSettings.js:183
|
| 3303 |
msgid "Agency URL"
|
| 3304 |
msgstr ""
|
| 3305 |
|
| 3306 |
+
#: framework/premium/extensions/white-label/dashboard-static/js/EditSettings.js:214
|
| 3307 |
msgid "Agency Support/Contact Form URL"
|
| 3308 |
msgstr ""
|
| 3309 |
|
| 3310 |
+
#: framework/premium/extensions/white-label/dashboard-static/js/EditSettings.js:249
|
| 3311 |
msgid "Theme Details"
|
| 3312 |
msgstr ""
|
| 3313 |
|
| 3314 |
+
#: framework/premium/extensions/white-label/dashboard-static/js/EditSettings.js:257
|
| 3315 |
msgid "Theme Name"
|
| 3316 |
msgstr ""
|
| 3317 |
|
| 3318 |
+
#: framework/premium/extensions/white-label/dashboard-static/js/EditSettings.js:288
|
| 3319 |
msgid "Theme Description"
|
| 3320 |
msgstr ""
|
| 3321 |
|
| 3322 |
+
#: framework/premium/extensions/white-label/dashboard-static/js/EditSettings.js:319
|
| 3323 |
msgid "Theme Screenshot URL"
|
| 3324 |
msgstr ""
|
| 3325 |
|
| 3326 |
+
#: framework/premium/extensions/white-label/dashboard-static/js/EditSettings.js:416
|
| 3327 |
+
msgid ""
|
| 3328 |
+
"You can insert the link to a self hosted image or upload one. The "
|
| 3329 |
+
"recommended image size is 1200px wide by 900px tall."
|
| 3330 |
+
msgstr ""
|
| 3331 |
+
|
| 3332 |
+
#: framework/premium/extensions/white-label/dashboard-static/js/EditSettings.js:426
|
| 3333 |
+
msgid "Theme Icon URL"
|
| 3334 |
msgstr ""
|
| 3335 |
|
| 3336 |
+
#: framework/premium/extensions/white-label/dashboard-static/js/EditSettings.js:523
|
| 3337 |
msgid ""
|
| 3338 |
"You can insert the link to a self hosted image or upload one. The "
|
| 3339 |
+
"recommended image size is 18px wide by 18px tall."
|
| 3340 |
msgstr ""
|
| 3341 |
|
| 3342 |
+
#: framework/premium/extensions/white-label/dashboard-static/js/EditSettings.js:536
|
| 3343 |
msgid "Plugin Details"
|
| 3344 |
msgstr ""
|
| 3345 |
|
| 3346 |
+
#: framework/premium/extensions/white-label/dashboard-static/js/EditSettings.js:544
|
| 3347 |
msgid "Plugin Name"
|
| 3348 |
msgstr ""
|
| 3349 |
|
| 3350 |
+
#: framework/premium/extensions/white-label/dashboard-static/js/EditSettings.js:575
|
| 3351 |
msgid "Plugin Description"
|
| 3352 |
msgstr ""
|
| 3353 |
|
| 3354 |
+
#: framework/premium/extensions/white-label/dashboard-static/js/EditSettings.js:606
|
| 3355 |
+
msgid "Plugin Screenshot URL"
|
| 3356 |
+
msgstr ""
|
| 3357 |
+
|
| 3358 |
+
#: framework/premium/extensions/white-label/dashboard-static/js/EditSettings.js:696
|
| 3359 |
+
msgid "Choose File"
|
| 3360 |
+
msgstr ""
|
| 3361 |
+
|
| 3362 |
+
#: framework/premium/extensions/white-label/dashboard-static/js/EditSettings.js:703
|
| 3363 |
+
msgid ""
|
| 3364 |
+
"You can insert the link to a self hosted image or upload one. The "
|
| 3365 |
+
"recommended image size is 256px wide by 256px tall."
|
| 3366 |
+
msgstr ""
|
| 3367 |
+
|
| 3368 |
+
#: framework/premium/extensions/white-label/dashboard-static/js/EditSettings.js:749
|
| 3369 |
+
msgid "Hide Account Menu Item"
|
| 3370 |
+
msgstr ""
|
| 3371 |
+
|
| 3372 |
+
#: framework/premium/extensions/white-label/dashboard-static/js/EditSettings.js:757
|
| 3373 |
msgid "Hide Starter Sites Tab"
|
| 3374 |
msgstr ""
|
| 3375 |
|
| 3376 |
+
#: framework/premium/extensions/white-label/dashboard-static/js/EditSettings.js:764
|
| 3377 |
+
msgid "Hide Useful Plugins Tab"
|
| 3378 |
+
msgstr ""
|
| 3379 |
+
|
| 3380 |
+
#: framework/premium/extensions/white-label/dashboard-static/js/EditSettings.js:772
|
| 3381 |
+
msgid "Hide Changelog Tab"
|
| 3382 |
+
msgstr ""
|
| 3383 |
+
|
| 3384 |
+
#: framework/premium/extensions/white-label/dashboard-static/js/EditSettings.js:780
|
| 3385 |
+
msgid "Hide Support Section"
|
| 3386 |
+
msgstr ""
|
| 3387 |
+
|
| 3388 |
+
#: framework/premium/extensions/white-label/dashboard-static/js/EditSettings.js:788
|
| 3389 |
+
msgid "Hide Beta Updates Section"
|
| 3390 |
+
msgstr ""
|
| 3391 |
+
|
| 3392 |
+
#: framework/premium/extensions/white-label/dashboard-static/js/EditSettings.js:825
|
| 3393 |
msgid "Hide White Label Extension"
|
| 3394 |
msgstr ""
|
| 3395 |
|
| 3396 |
+
#: framework/premium/extensions/white-label/dashboard-static/js/EditSettings.js:842
|
| 3397 |
msgid ""
|
| 3398 |
"Please note that the white label extension will be hidden if this option is "
|
| 3399 |
"enabled. In order to bring it back you have to hit the SHIFT key and click "
|
| 3401 |
msgstr ""
|
| 3402 |
|
| 3403 |
#: framework/premium/static/js/footer/CloneItem.js:65
|
| 3404 |
+
#: framework/premium/static/js/header/CloneItem.js:65
|
| 3405 |
msgid "Clone Item"
|
| 3406 |
msgstr ""
|
| 3407 |
|
| 3408 |
#: framework/premium/static/js/footer/CloneItem.js:88
|
| 3409 |
+
#: framework/premium/static/js/header/CloneItem.js:88
|
| 3410 |
msgid "Remove Item"
|
| 3411 |
msgstr ""
|
| 3412 |
|
| 3498 |
msgid "Header name"
|
| 3499 |
msgstr ""
|
| 3500 |
|
| 3501 |
+
#: framework/premium/static/js/hooks/CodeEditor.js:105
|
| 3502 |
+
msgid "Yes, continue"
|
| 3503 |
+
msgstr ""
|
| 3504 |
+
|
| 3505 |
+
#: framework/premium/static/js/hooks/CodeEditor.js:24
|
| 3506 |
+
msgid "Use code editor"
|
| 3507 |
+
msgstr ""
|
| 3508 |
+
|
| 3509 |
+
#: framework/premium/static/js/hooks/CodeEditor.js:25
|
| 3510 |
+
msgid "Exit code editor"
|
| 3511 |
+
msgstr ""
|
| 3512 |
+
|
| 3513 |
+
#: framework/premium/static/js/hooks/CodeEditor.js:36
|
| 3514 |
+
msgid "Heads up!"
|
| 3515 |
+
msgstr ""
|
| 3516 |
+
|
| 3517 |
+
#: framework/premium/static/js/hooks/CodeEditor.js:38
|
| 3518 |
+
msgid ""
|
| 3519 |
+
"Enabling & disabling the code editor will erase everything from your post "
|
| 3520 |
+
"editor and this action is irreversible."
|
| 3521 |
+
msgstr ""
|
| 3522 |
+
|
| 3523 |
+
#: framework/premium/static/js/hooks/CodeEditor.js:45
|
| 3524 |
+
msgid "Are you sure you want to continue?"
|
| 3525 |
+
msgstr ""
|
| 3526 |
+
|
| 3527 |
+
#: framework/premium/static/js/hooks/CodeEditor.js:60
|
| 3528 |
+
#: static/js/options/CustomizerOptionsManager.js:330
|
| 3529 |
+
msgid "Cancel"
|
| 3530 |
+
msgstr ""
|
| 3531 |
+
|
| 3532 |
#: framework/premium/static/js/hooks/CreateHook.js:124
|
| 3533 |
msgid "Create Template"
|
| 3534 |
msgstr ""
|
| 3567 |
msgid "Template Name"
|
| 3568 |
msgstr ""
|
| 3569 |
|
| 3570 |
+
#: framework/premium/static/js/options/IconPicker.js:114
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3571 |
msgid "Change Icon"
|
| 3572 |
msgstr ""
|
| 3573 |
|
| 3574 |
+
#: framework/premium/static/js/options/IconPicker.js:131
|
| 3575 |
msgid "Remove Icon"
|
| 3576 |
msgstr ""
|
| 3577 |
|
| 3578 |
+
#: framework/premium/static/js/options/IconPicker.js:137
|
| 3579 |
msgid "Select"
|
| 3580 |
msgstr ""
|
| 3581 |
|
| 3582 |
+
#: framework/premium/static/js/options/IconPicker/Modal.js:123
|
| 3583 |
msgid "Search icon"
|
| 3584 |
msgstr ""
|
| 3585 |
|
| 3586 |
+
#: framework/premium/static/js/options/MultipleLocationsSelect.js:109
|
| 3587 |
+
msgid "Add New Location"
|
| 3588 |
+
msgstr ""
|
| 3589 |
+
|
| 3590 |
+
#: framework/premium/static/js/options/MultipleLocationsSelect.js:48
|
| 3591 |
+
msgid "Select location"
|
| 3592 |
+
msgstr ""
|
| 3593 |
+
|
| 3594 |
+
#: framework/premium/static/js/options/MultipleLocationsSelect.js:73
|
| 3595 |
+
msgid "Custom Hook"
|
| 3596 |
+
msgstr ""
|
| 3597 |
+
|
| 3598 |
+
#: framework/premium/static/js/typography/kadence.js:41
|
| 3599 |
+
#: framework/premium/static/js/typography/stackable.js:44
|
| 3600 |
+
msgid "Blocksy Local Google Fonts"
|
| 3601 |
+
msgstr ""
|
| 3602 |
+
|
| 3603 |
+
#: framework/premium/static/js/typography/kadence.js:45
|
| 3604 |
+
#: framework/premium/static/js/typography/stackable.js:48
|
| 3605 |
+
msgid "Blocksy Typekit"
|
| 3606 |
+
msgstr ""
|
| 3607 |
+
|
| 3608 |
+
#: framework/premium/static/js/typography/kadence.js:46
|
| 3609 |
+
#: framework/premium/static/js/typography/stackable.js:49
|
| 3610 |
+
msgid "Blocksy Custom Fonts"
|
| 3611 |
+
msgstr ""
|
| 3612 |
+
|
| 3613 |
#: static/js/components/BetaConsent.js:45
|
| 3614 |
msgid "Receive βeta Updates"
|
| 3615 |
msgstr ""
|
| 3642 |
msgid "Remove header"
|
| 3643 |
msgstr ""
|
| 3644 |
|
| 3645 |
+
#: static/js/helpers/SubmitSupport.js:18
|
| 3646 |
msgid "Support"
|
| 3647 |
msgstr ""
|
| 3648 |
|
| 3649 |
+
#: static/js/helpers/SubmitSupport.js:20
|
| 3650 |
msgid ""
|
| 3651 |
"Got a question or need some help with the theme? You can always submit a "
|
| 3652 |
"support ticket, and our team will help you out."
|
| 3653 |
msgstr ""
|
| 3654 |
|
| 3655 |
+
#: static/js/helpers/SubmitSupport.js:30
|
| 3656 |
msgid "Submit a Ticket"
|
| 3657 |
msgstr ""
|
| 3658 |
|
| 3659 |
+
#: static/js/helpers/useActivationAction.js:84
|
| 3660 |
msgid ""
|
| 3661 |
"Upgrade to the Pro version and get instant full access to all premium "
|
| 3662 |
"extensions and features."
|
| 3663 |
msgstr ""
|
| 3664 |
|
| 3665 |
+
#: static/js/helpers/useActivationAction.js:91
|
| 3666 |
msgid "Upgrade Now"
|
| 3667 |
msgstr ""
|
| 3668 |
|
| 3669 |
+
#: static/js/options/ConditionsManager.js:121
|
| 3670 |
msgid "Select rule"
|
| 3671 |
msgstr ""
|
| 3672 |
|
| 3673 |
+
#: static/js/options/ConditionsManager.js:159
|
| 3674 |
msgid "Select post"
|
| 3675 |
msgstr ""
|
| 3676 |
|
| 3677 |
+
#: static/js/options/ConditionsManager.js:161
|
| 3678 |
msgid "Select page"
|
| 3679 |
msgstr ""
|
| 3680 |
|
| 3681 |
+
#: static/js/options/ConditionsManager.js:201
|
| 3682 |
msgid "Select taxonomy"
|
| 3683 |
msgstr ""
|
| 3684 |
|
| 3685 |
+
#: static/js/options/ConditionsManager.js:261
|
| 3686 |
msgid "Add Display Condition"
|
| 3687 |
msgstr ""
|
| 3688 |
|
| 3689 |
+
#: static/js/options/ConditionsManager.js:280
|
| 3690 |
msgid "Add User Condition"
|
| 3691 |
msgstr ""
|
| 3692 |
|
| 3693 |
+
#: static/js/options/ConditionsManager.js:98
|
| 3694 |
msgid "Include"
|
| 3695 |
msgstr ""
|
| 3696 |
|
| 3697 |
+
#: static/js/options/ConditionsManager.js:99
|
| 3698 |
msgid "Exclude"
|
| 3699 |
msgstr ""
|
| 3700 |
|
| 3701 |
+
#: static/js/options/CustomizerOptionsManager.js:119
|
| 3702 |
+
msgid "Import Customizations"
|
| 3703 |
+
msgstr ""
|
| 3704 |
+
|
| 3705 |
+
#: static/js/options/CustomizerOptionsManager.js:128
|
| 3706 |
+
msgid "Copy Options"
|
| 3707 |
+
msgstr ""
|
| 3708 |
+
|
| 3709 |
+
#: static/js/options/CustomizerOptionsManager.js:131
|
| 3710 |
+
msgid "Copy and import your customizations from parent or child theme."
|
| 3711 |
+
msgstr ""
|
| 3712 |
+
|
| 3713 |
+
#: static/js/options/CustomizerOptionsManager.js:185
|
| 3714 |
+
msgid "Copy From Parent Theme"
|
| 3715 |
+
msgstr ""
|
| 3716 |
+
|
| 3717 |
+
#: static/js/options/CustomizerOptionsManager.js:188
|
| 3718 |
+
msgid "Copy From Child Theme"
|
| 3719 |
+
msgstr ""
|
| 3720 |
+
|
| 3721 |
+
#: static/js/options/CustomizerOptionsManager.js:192
|
| 3722 |
+
msgid ""
|
| 3723 |
+
"You are about to copy all the settings from your parent theme into the child "
|
| 3724 |
+
"theme. Are you sure you want to continue?"
|
| 3725 |
+
msgstr ""
|
| 3726 |
+
|
| 3727 |
+
#: static/js/options/CustomizerOptionsManager.js:198
|
| 3728 |
+
msgid ""
|
| 3729 |
+
"You are about to copy all the settings from your child theme into the parent "
|
| 3730 |
+
"theme. Are you sure you want to continue?"
|
| 3731 |
+
msgstr ""
|
| 3732 |
+
|
| 3733 |
+
#: static/js/options/CustomizerOptionsManager.js:23
|
| 3734 |
+
msgid ""
|
| 3735 |
+
"Click the button below to export the customization settings for this theme."
|
| 3736 |
+
msgstr ""
|
| 3737 |
+
|
| 3738 |
+
#: static/js/options/CustomizerOptionsManager.js:245
|
| 3739 |
+
msgid "Yes, I am sure"
|
| 3740 |
+
msgstr ""
|
| 3741 |
+
|
| 3742 |
+
#: static/js/options/CustomizerOptionsManager.js:259
|
| 3743 |
+
msgid "Export Settings"
|
| 3744 |
+
msgstr ""
|
| 3745 |
+
|
| 3746 |
+
#: static/js/options/CustomizerOptionsManager.js:263
|
| 3747 |
+
msgid "Choose what set of settings you want to export."
|
| 3748 |
+
msgstr ""
|
| 3749 |
+
|
| 3750 |
+
#: static/js/options/CustomizerOptionsManager.js:291
|
| 3751 |
+
msgid "Customizer settings"
|
| 3752 |
+
msgstr ""
|
| 3753 |
+
|
| 3754 |
+
#: static/js/options/CustomizerOptionsManager.js:295
|
| 3755 |
+
msgid "Widgets settings"
|
| 3756 |
+
msgstr ""
|
| 3757 |
+
|
| 3758 |
+
#: static/js/options/CustomizerOptionsManager.js:386
|
| 3759 |
+
msgid "Export"
|
| 3760 |
+
msgstr ""
|
| 3761 |
+
|
| 3762 |
+
#: static/js/options/CustomizerOptionsManager.js:40
|
| 3763 |
+
msgid "Export Customizations"
|
| 3764 |
+
msgstr ""
|
| 3765 |
+
|
| 3766 |
+
#: static/js/options/CustomizerOptionsManager.js:46
|
| 3767 |
+
#: static/js/screens/DemoInstall/DemosList.js:96
|
| 3768 |
+
msgid "Import"
|
| 3769 |
+
msgstr ""
|
| 3770 |
+
|
| 3771 |
+
#: static/js/options/CustomizerOptionsManager.js:49
|
| 3772 |
+
msgid "Upload a file to import customization settings for this theme."
|
| 3773 |
+
msgstr ""
|
| 3774 |
+
|
| 3775 |
+
#: static/js/options/CustomizerOptionsManager.js:69
|
| 3776 |
+
msgid "Click to upload a file..."
|
| 3777 |
+
msgstr ""
|
| 3778 |
+
|
| 3779 |
#: static/js/options/DisplayCondition.js:50
|
| 3780 |
msgid "Transparent Header Display Conditions"
|
| 3781 |
msgstr ""
|
| 3829 |
msgid "Modify"
|
| 3830 |
msgstr ""
|
| 3831 |
|
| 3832 |
+
#: static/js/screens/DemoInstall/Installer/InstallCompleted.js:22
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3833 |
msgid "Starter Site Imported Successfully"
|
| 3834 |
msgstr ""
|
| 3835 |
|
| 3836 |
+
#: static/js/screens/DemoInstall/Installer/InstallCompleted.js:25
|
| 3837 |
msgid "Now you can view your website or start customizing it"
|
| 3838 |
msgstr ""
|
| 3839 |
|
| 3840 |
+
#: static/js/screens/DemoInstall/Installer/InstallCompleted.js:33
|
| 3841 |
msgid "Customize"
|
| 3842 |
msgstr ""
|
| 3843 |
|
| 3844 |
+
#: static/js/screens/DemoInstall/Installer/InstallCompleted.js:40
|
| 3845 |
msgid "View site"
|
| 3846 |
msgstr ""
|
| 3847 |
|
| 4059 |
"properly."
|
| 4060 |
msgstr ""
|
| 4061 |
|
| 4062 |
+
#: static/js/screens/Extensions.js:230
|
| 4063 |
msgid "Loading Extensions Status..."
|
| 4064 |
msgstr ""
|
| 4065 |
|
| 4066 |
+
#: static/js/screens/Extensions.js:252
|
| 4067 |
msgid "Free Extensions"
|
| 4068 |
msgstr ""
|
| 4069 |
|
| 4070 |
+
#: static/js/screens/Extensions.js:256
|
| 4071 |
msgid "Pro Extensions"
|
| 4072 |
msgstr ""
|
| 4073 |
|
| 4085 |
msgid "Allow & Continue"
|
| 4086 |
msgstr ""
|
| 4087 |
|
| 4088 |
+
#: static/js/screens/SiteExport.js:120
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4089 |
msgid "Builder"
|
| 4090 |
msgstr ""
|
| 4091 |
|
| 4092 |
+
#: static/js/screens/SiteExport.js:131
|
| 4093 |
msgid "Plugins"
|
| 4094 |
msgstr ""
|
| 4095 |
|
| 4096 |
+
#: static/js/screens/SiteExport.js:144
|
| 4097 |
msgid "Export site"
|
| 4098 |
msgstr ""
|
| 4099 |
|
| 4100 |
+
#: static/js/screens/SiteExport.js:71
|
| 4101 |
msgid "Site export"
|
| 4102 |
msgstr ""
|
| 4103 |
|
| 4104 |
+
#: static/js/screens/SiteExport.js:97
|
| 4105 |
msgid "Preview URL"
|
| 4106 |
msgstr ""
|
readme.txt
CHANGED
|
@@ -5,7 +5,7 @@ Requires PHP: 7.0
|
|
| 5 |
Tested up to: 5.6
|
| 6 |
License: GPLv2 or later
|
| 7 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 8 |
-
Stable tag: 1.7.
|
| 9 |
|
| 10 |
== Description ==
|
| 11 |
|
|
@@ -23,6 +23,31 @@ It runs and adds its enhancements only if the Blocksy theme is installed and act
|
|
| 23 |
2. Activate the plugin by going to **Plugins** page in WordPress admin and clicking on **Activate** link.
|
| 24 |
|
| 25 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
1.7.47: 2021-01-05
|
| 27 |
- Improvement: Export/Import for current Elementor Kit
|
| 28 |
|
| 5 |
Tested up to: 5.6
|
| 6 |
License: GPLv2 or later
|
| 7 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 8 |
+
Stable tag: 1.7.50
|
| 9 |
|
| 10 |
== Description ==
|
| 11 |
|
| 23 |
2. Activate the plugin by going to **Plugins** page in WordPress admin and clicking on **Activate** link.
|
| 24 |
|
| 25 |
== Changelog ==
|
| 26 |
+
1.7.50: 2021-01-24
|
| 27 |
+
- Fix: Demo importer: Allow nav menu items of type post_type_archive
|
| 28 |
+
- Fix: Allow sideloading SVG images
|
| 29 |
+
|
| 30 |
+
1.7.49: 2021-01-23
|
| 31 |
+
- New: Account element: add AJAX functionality
|
| 32 |
+
- New: Account element: add support for social login plugins
|
| 33 |
+
- New: Account element: Improve logged in/out state
|
| 34 |
+
- New: Filter for `blocksy_output_companion_notice()`
|
| 35 |
+
- New: Product Reviews extension
|
| 36 |
+
- New: blocksy_posts shortcode with customizer options inherit
|
| 37 |
+
- Improvement: Search box text colors
|
| 38 |
+
- Fix: Fix sticky effect glitch (fade and slide effects)
|
| 39 |
+
- Fix: Improve auto show/hide sticky header
|
| 40 |
+
- Fix: Fix multiple file-saver instances on the same page conflict
|
| 41 |
+
- Fix: Starter sites importer fix for PHP8
|
| 42 |
+
- Fix: Resolve caching plugins problem with cookie consent
|
| 43 |
+
|
| 44 |
+
1.7.48.1: 2021-01-19
|
| 45 |
+
- New: Filter for `blocksy_output_companion_notice()`
|
| 46 |
+
- Improvement: Search box text colors
|
| 47 |
+
- Fix: Fix sticky effect glitch (fade and slide effects)
|
| 48 |
+
- Fix: Improve auto show/hide sticky header
|
| 49 |
+
- Fix: Fix multiple file-saver instances on the same page conflict
|
| 50 |
+
|
| 51 |
1.7.47: 2021-01-05
|
| 52 |
- Improvement: Export/Import for current Elementor Kit
|
| 53 |
|
static/bundle/dashboard.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
/**
|
| 2 |
-
* - v1.7.
|
| 3 |
*
|
| 4 |
* Copyright (c) 2021
|
| 5 |
* Licensed GPLv2+
|
| 1 |
/**
|
| 2 |
+
* - v1.7.50
|
| 3 |
*
|
| 4 |
* Copyright (c) 2021
|
| 5 |
* Licensed GPLv2+
|
static/bundle/dashboard.js
CHANGED
|
@@ -3,4 +3,4 @@
|
|
| 3 |
Copyright (c) 2017 Jed Watson.
|
| 4 |
Licensed under the MIT License (MIT), see
|
| 5 |
http://jedwatson.github.io/classnames
|
| 6 |
-
*/!function(){"use strict";var n={}.hasOwnProperty;function c(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)&&r.length){var a=c.apply(null,r);a&&e.push(a)}else if("object"===o)for(var i in r)n.call(r,i)&&r[i]&&e.push(i)}}return e.join(" ")}e.exports?(c.default=c,e.exports=c):void 0===(r=function(){return c}.apply(t,[]))||(e.exports=r)}()},function(e,t){e.exports=window.blocksyOptions},function(e,t){e.exports=ctEvents},function(e,t){e.exports=window.React},function(e,t,n){var r,c,o=n(11),a=n(12),i=(c=[],{activateTrap:function(e){if(c.length>0){var t=c[c.length-1];t!==e&&t.pause()}var n=c.indexOf(e);-1===n||c.splice(n,1),c.push(e)},deactivateTrap:function(e){var t=c.indexOf(e);-1!==t&&c.splice(t,1),c.length>0&&c[c.length-1].unpause()}});function l(e){return setTimeout(e,0)}e.exports=function(e,t){var n=document,c="string"==typeof e?n.querySelector(e):e,u=a({returnFocusOnDeactivate:!0,escapeDeactivates:!0},t),s={firstTabbableNode:null,lastTabbableNode:null,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1},f={activate:function(e){if(s.active)return;g(),s.active=!0,s.paused=!1,s.nodeFocusedBeforeActivation=n.activeElement;var t=e&&e.onActivate?e.onActivate:u.onActivate;t&&t();return m(),f},deactivate:d,pause:function(){if(s.paused||!s.active)return;s.paused=!0,b()},unpause:function(){if(!s.paused||!s.active)return;s.paused=!1,g(),m()}};return f;function d(e){if(s.active){clearTimeout(r),b(),s.active=!1,s.paused=!1,i.deactivateTrap(f);var t=e&&void 0!==e.onDeactivate?e.onDeactivate:u.onDeactivate;return t&&t(),(e&&void 0!==e.returnFocus?e.returnFocus:u.returnFocusOnDeactivate)&&l((function(){var e;_((e=s.nodeFocusedBeforeActivation,p("setReturnFocus")||e))})),f}}function m(){if(s.active)return i.activateTrap(f),r=l((function(){_(h())})),n.addEventListener("focusin",y,!0),n.addEventListener("mousedown",v,{capture:!0,passive:!1}),n.addEventListener("touchstart",v,{capture:!0,passive:!1}),n.addEventListener("click",j,{capture:!0,passive:!1}),n.addEventListener("keydown",O,{capture:!0,passive:!1}),f}function b(){if(s.active)return n.removeEventListener("focusin",y,!0),n.removeEventListener("mousedown",v,!0),n.removeEventListener("touchstart",v,!0),n.removeEventListener("click",j,!0),n.removeEventListener("keydown",O,!0),f}function p(e){var t=u[e],r=t;if(!t)return null;if("string"==typeof t&&!(r=n.querySelector(t)))throw new Error("`"+e+"` refers to no known node");if("function"==typeof t&&!(r=t()))throw new Error("`"+e+"` did not return a node");return r}function h(){var e;if(!(e=null!==p("initialFocus")?p("initialFocus"):c.contains(n.activeElement)?n.activeElement:s.firstTabbableNode||p("fallbackFocus")))throw new Error("Your focus-trap needs to have at least one focusable element");return e}function v(e){c.contains(e.target)||(u.clickOutsideDeactivates?d({returnFocus:!o.isFocusable(e.target)}):u.allowOutsideClick&&u.allowOutsideClick(e)||e.preventDefault())}function y(e){c.contains(e.target)||e.target instanceof Document||(e.stopImmediatePropagation(),_(s.mostRecentlyFocusedNode||h()))}function O(e){if(!1!==u.escapeDeactivates&&function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e))return e.preventDefault(),void d();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){if(g(),e.shiftKey&&e.target===s.firstTabbableNode)return e.preventDefault(),void _(s.lastTabbableNode);if(!e.shiftKey&&e.target===s.lastTabbableNode)e.preventDefault(),_(s.firstTabbableNode)}(e)}function j(e){u.clickOutsideDeactivates||c.contains(e.target)||u.allowOutsideClick&&u.allowOutsideClick(e)||(e.preventDefault(),e.stopImmediatePropagation())}function g(){var e=o(c);s.firstTabbableNode=e[0]||h(),s.lastTabbableNode=e[e.length-1]||h()}function _(e){e!==n.activeElement&&(e&&e.focus?(e.focus(),s.mostRecentlyFocusedNode=e,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(e)&&e.select()):_(h()))}}},function(e,t,n){(function(n){var r,c,o;c=[],void 0===(o="function"==typeof(r=function(){"use strict";function t(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){a(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function r(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function c(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var o="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n&&n.global===n?n:void 0,a=o.saveAs||("object"!=typeof window||window!==o?function(){}:"download"in HTMLAnchorElement.prototype?function(e,n,a){var i=o.URL||o.webkitURL,l=document.createElement("a");n=n||e.name||"download",l.download=n,l.rel="noopener","string"==typeof e?(l.href=e,l.origin===location.origin?c(l):r(l.href)?t(e,n,a):c(l,l.target="_blank")):(l.href=i.createObjectURL(e),setTimeout((function(){i.revokeObjectURL(l.href)}),4e4),setTimeout((function(){c(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,n,o){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,o),n);else if(r(e))t(e,n,o);else{var a=document.createElement("a");a.href=e,a.target="_blank",setTimeout((function(){c(a)}))}}:function(e,n,r,c){if((c=c||open("","_blank"))&&(c.document.title=c.document.body.innerText="downloading..."),"string"==typeof e)return t(e,n,r);var a="application/octet-stream"===e.type,i=/constructor/i.test(o.HTMLElement)||o.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||a&&i)&&"object"==typeof FileReader){var u=new FileReader;u.onloadend=function(){var e=u.result;e=l?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),c?c.location.href=e:location=e,c=null},u.readAsDataURL(e)}else{var s=o.URL||o.webkitURL,f=s.createObjectURL(e);c?c.location=f:location.href=f,c=null,setTimeout((function(){s.revokeObjectURL(f)}),4e4)}});o.saveAs=a.saveAs=a,e.exports=a})?r.apply(t,c):r)||(e.exports=o)}).call(this,n(13))},function(e,t,n){e.exports=n(9)()},function(e,t,n){"use strict";var r=n(10);function c(){}function o(){}o.resetWarningCache=c,e.exports=function(){function e(e,t,n,c,o,a){if(a!==r){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:c};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){var n=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],r=n.join(","),c="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;function o(e,t){t=t||{};var n,o,i,l=[],f=[],d=e.querySelectorAll(r);for(t.includeContainer&&c.call(e,r)&&(d=Array.prototype.slice.apply(d)).unshift(e),n=0;n<d.length;n++)a(o=d[n])&&(0===(i=u(o))?l.push(o):f.push({documentOrder:n,tabIndex:i,node:o}));return f.sort(s).map((function(e){return e.node})).concat(l)}function a(e){return!(!i(e)||function(e){return function(e){return f(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t=function(e){for(var t=0;t<e.length;t++)if(e[t].checked)return e[t]}(e.ownerDocument.querySelectorAll('input[type="radio"][name="'+e.name+'"]'));return!t||t===e}(e)}(e)||u(e)<0)}function i(e){return!(e.disabled||function(e){return f(e)&&"hidden"===e.type}(e)||function(e){return null===e.offsetParent||"hidden"===getComputedStyle(e).visibility}(e))}o.isTabbable=function(e){if(!e)throw new Error("No node provided");return!1!==c.call(e,r)&&a(e)},o.isFocusable=function(e){if(!e)throw new Error("No node provided");return!1!==c.call(e,l)&&i(e)};var l=n.concat("iframe").join(",");function u(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?function(e){return"true"===e.contentEditable}(e)?0:e.tabIndex:t}function s(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex}function f(e){return"INPUT"===e.tagName}e.exports=o},function(e,t){e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var c in r)n.call(r,c)&&(e[c]=r[c])}return e};var n=Object.prototype.hasOwnProperty},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";n.r(t);var r=n(0),c=n(4),o=n.n(c),a=n(1),i=n(2),l=n.n(i),u=n(5),s=n.n(u);n(8);function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var m=function(e){e.initialState,e.getInitialState,e.refs,e.getRefs,e.didMount,e.didUpdate,e.willUnmount,e.getSnapshotBeforeUpdate,e.shouldUpdate,e.render;return function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["initialState","getInitialState","refs","getRefs","didMount","didUpdate","willUnmount","getSnapshotBeforeUpdate","shouldUpdate","render"])},b=function(e){function t(){var n,r;f(this,t);for(var c=arguments.length,o=Array(c),a=0;a<c;a++)o[a]=arguments[a];return n=r=d(this,e.call.apply(e,[this].concat(o))),p.call(r),d(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getArgs=function(){var e=this.state,t=this.props,n=this._setState,r=this._forceUpdate,c=this._refs;return{state:e,props:m(t),refs:c,setState:n,forceUpdate:r}},t.prototype.componentDidMount=function(){this.props.didMount&&this.props.didMount(this.getArgs())},t.prototype.shouldComponentUpdate=function(e,t){return!this.props.shouldUpdate||this.props.shouldUpdate({props:this.props,state:this.state,nextProps:m(e),nextState:t})},t.prototype.componentWillUnmount=function(){this.props.willUnmount&&this.props.willUnmount({state:this.state,props:m(this.props),refs:this._refs})},t.prototype.componentDidUpdate=function(e,t,n){this.props.didUpdate&&this.props.didUpdate(Object.assign(this.getArgs(),{prevProps:m(e),prevState:t}),n)},t.prototype.getSnapshotBeforeUpdate=function(e,t){return this.props.getSnapshotBeforeUpdate?this.props.getSnapshotBeforeUpdate(Object.assign(this.getArgs(),{prevProps:m(e),prevState:t})):null},t.prototype.render=function(){var e=this.props,t=e.children,n=e.render;return n?n(this.getArgs()):"function"==typeof t?t(this.getArgs()):t||null},t}(s.a.Component);b.defaultProps={getInitialState:function(){},getRefs:function(){return{}}};var p=function(){var e=this;this.state=this.props.initialState||this.props.getInitialState(this.props),this._refs=this.props.refs||this.props.getRefs(this.getArgs()),this._setState=function(){return e.setState.apply(e,arguments)},this._forceUpdate=function(){return e.forceUpdate.apply(e,arguments)}},h=b,v=function(e){var t=e.children,n=e.container,c=void 0===n?document.body:n,o=e.type,a=void 0===o?"reach-portal":o;return Object(r.createElement)(h,{getRefs:function(){return{node:null}},didMount:function(e){var t=e.refs,n=e.forceUpdate,r=c.hasOwnProperty("current")?c.current:c;t.node=document.createElement(a),r.appendChild(t.node),n()},willUnmount:function(e){var t=e.refs.node,n=c.hasOwnProperty("current")?c.current:c;n&&n.removeChild(t)},render:function(e){var n=e.refs.node;return n?Object(r.createPortal)(t,n):null}})};var y=function(e,t){return function(n){if(e&&e(n),!n.defaultPrevented)return t(n)}},O=n(6),j=n.n(O);function g(){return(g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _(e,t){if(null==e)return{};var n,r,c=function(e,t){if(null==e)return{};var n,r,c={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(c[n]=e[n]);return c}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(c[n]=e[n])}return c}var E=function(){},w=function(){},x=function(e,t){var n,r,c;e.disposeAriaHider=(n=e.overlayNode,r=[],c=[],Array.prototype.forEach.call(document.querySelectorAll("body > *"),(function(e){if(e!==n.parentNode){var t=e.getAttribute("aria-hidden");null!==t&&"false"!==t||(r.push(t),c.push(e),e.setAttribute("aria-hidden","true"))}})),function(){c.forEach((function(e,t){var n=r[t];null===n?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",n)}))}),e.trap=j()(e.overlayNode,{initialFocus:t?function(){return t.current}:void 0,fallbackFocus:e.contentNode,escapeDeactivates:!1,clickOutsideDeactivates:!1})},S=function(e){var t=e.refs;t.trap.deactivate(),t.disposeAriaHider()},C=React.createContext(),k=React.forwardRef((function(e,t){var n=e.container,c=e.isOpen,o=void 0===c||c,a=e.onDismiss,i=void 0===a?E:a,l=e.initialFocusRef,u=e.onClick,s=e.onKeyDown,f=_(e,["container","isOpen","onDismiss","initialFocusRef","onClick","onKeyDown"]);return Object(r.createElement)(h,{didMount:w},o?Object(r.createElement)(v,{container:n,"data-reach-dialog-wrapper":!0},Object(r.createElement)(h,{refs:{overlayNode:null,contentNode:null},didMount:function(e){var t=e.refs;x(t,l)},willUnmount:S},(function(e){var n=e.refs;return Object(r.createElement)(C.Provider,{value:function(e){return n.contentNode=e}},Object(r.createElement)("div",g({"data-reach-dialog-overlay":!0,onClick:y(u,(function(e){e.stopPropagation(),i()})),onKeyDown:y(s,(function(e){"Escape"===e.key&&(e.stopPropagation(),i())})),ref:function(e){n.overlayNode=e,t&&t(e)}},f)))}))):null)}));k.propTypes={initialFocusRef:function(){}};var D=function(e){return e.stopPropagation()},z=React.forwardRef((function(e,t){var n=e.onClick,c=(e.onKeyDown,_(e,["onClick","onKeyDown"]));return Object(r.createElement)(C.Consumer,null,(function(e){return Object(r.createElement)("div",g({"aria-modal":"true","data-reach-dialog-content":!0,tabIndex:"-1",onClick:y(n,D),ref:function(n){e(n),t&&t(n)}},c))}))})),A=n(3),P=function(e){return!!e},M=function(e){var t=e.items,n=e.isVisible,c=void 0===n?P:n,o=e.render,a=e.className,i=e.onDismiss;return Object(r.createElement)(A.Transition,{items:t,onStart:function(){return document.body.classList[c(t)?"add":"remove"]("ct-dashboard-overlay-open")},config:{duration:200},from:{opacity:0,y:-10},enter:{opacity:1,y:0},leave:{opacity:0,y:10}},(function(e){return c(e)&&function(t){return Object(r.createElement)(k,{style:{opacity:t.opacity},container:document.querySelector("#wpbody"),onDismiss:function(){return i()}},Object(r.createElement)(z,{className:l()("ct-admin-modal",a),style:{transform:"translate3d(0px, ".concat(t.y,"px, 0px)")}},Object(r.createElement)("button",{className:"close-button",onClick:function(){return i()}},"×"),o(e,t)))}}))};function N(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,c=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){c=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(c)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return L(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 L(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 L(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 T=function(e){var t=N(Object(r.useState)(!1),2),n=t[0],c=t[1];return[function(){return c(!0)},Object(r.createElement)(M,{items:n,onDismiss:function(){return c(!1)},render:function(){return Object(r.createElement)("div",{className:"ct-modal-content",dangerouslySetInnerHTML:{__html:e.readme}})}})]};function I(e,t,n,r,c,o,a){try{var i=e[o](a),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(r,c)}function R(e){return function(){var t=this,n=arguments;return new Promise((function(r,c){var o=e.apply(t,n);function a(e){I(o,r,c,a,i,"next",e)}function i(e){I(o,r,c,a,i,"throw",e)}a(void 0)}))}}function U(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,c=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){c=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(c)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return F(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 F(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 F(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 B=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=Object(r.useState)(!1),c=U(n,2),o=c[0],i=c[1],l=Object(r.useState)(!1),u=U(l,2),s=u[0],f=u[1],d=ctDashboardLocalizations.plugin_data.is_pro,m=function(){var n=R(regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(d||!e.config.pro){n.next=3;break}return f(!0),n.abrupt("return");case 3:return(r=new FormData).append("ext",e.name),r.append("action",e.__object?"blocksy_extension_deactivate":"blocksy_extension_activate"),i(!0),n.prev=7,n.next=10,fetch(ctDashboardLocalizations.ajax_url,{method:"POST",body:r});case 10:t(),n.next=15;break;case 13:n.prev=13,n.t0=n.catch(7);case 15:i(!1);case 16:case"end":return n.stop()}}),n,null,[[7,13]])})));return function(){return n.apply(this,arguments)}}();return[o,m,!d&&e.config.pro?Object(r.createElement)(M,{items:s,onDismiss:function(){return f(!1)},render:function(){return Object(r.createElement)("div",{className:"ct-activation-action-modal"},Object(r.createElement)("svg",{viewBox:"0 0 59.99 60"},Object(r.createElement)("path",{d:"M14.41 43.65c0 .13.08.27.11.41a5.91 5.91 0 010 2.37c-1.78 1.14-3.2 1.19-4.34.68-2.83-1.27-3.81-6-3.81-6s.38-.08 1-.15a6.08 6.08 0 012.64.91 4.17 4.17 0 01-.22-1 6.47 6.47 0 013.2 1 8.14 8.14 0 01.35-5 12.74 12.74 0 01.65-1.62s8.51 4.32 3 9.27a5.81 5.81 0 01-2.34-.68 2 2 0 01-.24-.19zM7.17 15.93q.2.22.42.45a5.74 5.74 0 002.68-.74 5.51 5.51 0 00-.28 2.76 6.79 6.79 0 001.47.81c5 1.94 6.91-5.79 6.91-5.79a13.35 13.35 0 00-4.5-.26 5.64 5.64 0 00-2.15.72 4.42 4.42 0 00.23-.81c.51-2.62-.94-5.82-.94-5.82a13.76 13.76 0 00-2.44 1.51c-2 1.51-4 4-1.53 7a.65.65 0 00.13.17zm.93 16.56a6.7 6.7 0 00.84.76c7.28-1.28 2.36-9.46 2.36-9.46a14.28 14.28 0 00-2.18 1.69 7.39 7.39 0 00-2.13 3.35v-1.19a5.49 5.49 0 00-1.27-1.71 12.75 12.75 0 00-3.94-2.44 13.32 13.32 0 00-.39 1.37c-.49 2-.91 5.69 1.85 7a4.83 4.83 0 001.75.46 8.25 8.25 0 00.86 0 6.45 6.45 0 001.14-1.76 4.41 4.41 0 001.11 1.93zM18.79 9.27c6 1.85 8.82-7.61 8.82-7.61a17.44 17.44 0 00-6.1-.58c-2.92.35-5.71 1.92-5.33 6.76a8.42 8.42 0 002.61 1.43zM49.6 40.93a6.08 6.08 0 00-2.64.91 4.21 4.21 0 00.22-1 11.57 11.57 0 00-1.19-5.59 13.88 13.88 0 00-2.36 1.58c-1.87 1.58-3.82 4.16-1.33 7 .06.08.13.15.2.23s.29.3.46.45a5.69 5.69 0 002.65-.86 5.82 5.82 0 00-.14 2.78 6.75 6.75 0 001.34.68c5.16 1.94 6.81-6 6.81-6a13.28 13.28 0 00-4.02-.18zm-6.49-27.77a10.69 10.69 0 00-1.5.26s1.15 4.53 3.91 5.79c1.18.54 2.66.47 4.47-.81a5.88 5.88 0 00-.16-2.47 1.42 1.42 0 00-.1-.29l.23.13a6 6 0 002.45.61c5.24-5.19-3.42-9.13-3.42-9.13a13.57 13.57 0 00-.54 1.51 8.37 8.37 0 00-.17 5.12 6.62 6.62 0 00-3.29-.81 12.09 12.09 0 00-1.88.09zm15.13 10.33a13.53 13.53 0 00-2.61 1.37 7.1 7.1 0 00-2.64 2.78v1.18a6.69 6.69 0 00-1.73-2.89 13.85 13.85 0 00-2.62-2.14 13.17 13.17 0 00-.82 1.69c-.83 2-1.65 5.4 1 7a6.4 6.4 0 002.16.76 7.35 7.35 0 001-.93 4.26 4.26 0 001-1.76 6.06 6.06 0 00.76 1.3 6.25 6.25 0 00.4.5c7.43.09 4.1-8.86 4.1-8.86zM38.19 9.27c1.55.52 3.41.27 5.61-1.43.51-6.56-4.81-7.11-8.33-6.76a19.24 19.24 0 00-3.1.58S34.25 8 38.19 9.27zM41.99 54h-3v-6a2 2 0 00-2-2h-14a2 2 0 00-2 2v6h-3a2 2 0 00-2 2v3h28v-3a2 2 0 00-2-2zM25.76 21.65l-5.77.84a1 1 0 00-.81.68 1 1 0 00.26 1l4.19 4.11a1 1 0 01.28.88l-.92 5.44-.07.4a1 1 0 00.4 1 1 1 0 001.06.07l3.55-1.88 1.6-.85a1 1 0 01.94 0l2.4 1.27 2.75 1.46a1 1 0 001.05-.07 1 1 0 00.4-1l-1-5.81a1 1 0 01.28-.88l4.19-4.11a1 1 0 00.26-1 1 1 0 00-.81-.68l-5.78-.84a1 1 0 01-.75-.55l-2.57-5.3a1 1 0 00-1.8 0l-1.17 2.39-1.41 2.88a1 1 0 01-.75.55z",fill:"#ffa800"}),Object(r.createElement)("path",{d:"M19.99 22.49l5.78-.84a1 1 0 00.75-.55l1.41-2.88 1.41 2.88a1 1 0 00.75.55l5.78.84a1 1 0 01.56 1.71l-4.19 4.11a1 1 0 00-.29.88l.92 5.4-2.4-1.27a1 1 0 00-.94 0l-1.6.85-1.6-.85a1 1 0 00-.93 0l-2.41 1.28.92-5.41a1 1 0 00-.28-.88l-4.2-4.11a1 1 0 01-.26-1 1 1 0 01.82-.71zm-13 8.07a4.41 4.41 0 001.14 1.93c2.67-1.61 1.85-5 1-7a7.39 7.39 0 00-2.14 3.34 3.49 3.49 0 000 1.7zm11.8-21.29c3.94-1.27 5.82-7.61 5.82-7.61a19.24 19.24 0 00-3.1-.58c-2.92.35-5.71 1.92-5.33 6.76a8.42 8.42 0 002.61 1.43zm-7.31 9.94c2.76-1.26 3.91-5.79 3.91-5.79a10.69 10.69 0 00-1.5-.26 12.35 12.35 0 00-1.9-.09 4.42 4.42 0 01-.23.81 3.48 3.48 0 00-1.46 1.75 5.51 5.51 0 00-.31 2.77 6.79 6.79 0 001.49.81zm37.4 13.28a4.41 4.41 0 001.11-1.93 3.57 3.57 0 000-1.72 7.31 7.31 0 00-2.17-3.34c-.83 2.02-1.61 5.38 1.06 6.99zM45.5 19.21a6.79 6.79 0 001.49-.81 5.51 5.51 0 00-.26-2.76 3.53 3.53 0 00-1.46-1.75 5.79 5.79 0 00-2.13-.72 10.69 10.69 0 00-1.5.26s1.1 4.57 3.86 5.78zm-7.31-9.94a8.42 8.42 0 002.61-1.43c.38-4.84-2.41-6.41-5.33-6.76a19.24 19.24 0 00-3.1.58S34.25 8 38.19 9.27zm8.8 32.57l-1.4 1.8a5.82 5.82 0 00-.14 2.78 6.75 6.75 0 001.34.68c2.83-1.27 3.81-6 3.81-6s-.38-.08-1-.15a6.08 6.08 0 00-2.61.89zm1.42-33.08a8.37 8.37 0 00-.17 5.12l1.46 1.75a1.42 1.42 0 01.1.29.65.65 0 00.13-.16c2.48-2.97.44-5.49-1.52-7zm-6.15 35.08a1.92 1.92 0 00.31-.18 3.55 3.55 0 001.42-1.79 8.1 8.1 0 00-.35-5c-1.92 1.54-3.87 4.13-1.38 6.97zm13.37-19a7.1 7.1 0 00-2.64 2.8v2.91a6.06 6.06 0 00.76 1.3c2.79-1.3 2.37-4.98 1.88-6.99zM11.41 43.65l-1.34-1.75a6.08 6.08 0 00-2.64-.91c-.6.07-1 .15-1 .15s1 4.77 3.81 6a6.75 6.75 0 001.34-.68 5.82 5.82 0 00-.14-2.78zM38.99 54h-3v-6a2 2 0 00-2-2h-11a2 2 0 00-2 2v6h-3a2 2 0 00-2 2v3h25v-3a2 2 0 00-2-2zm-25.6-17.17a8.14 8.14 0 00-.35 5 3.45 3.45 0 001.31 1.72h.05c0 .13.08.27.11.41.07-.08.14-.15.2-.23 2.5-2.73.55-5.32-1.32-6.9z",fill:"#fedd0a"}),Object(r.createElement)("path",{d:"M16.18 7.84C15.8 3 18.59 1.43 21.51 1.08a14.84 14.84 0 013 0C21.6 1.44 18.82 3 19.2 7.84a8.42 8.42 0 002.59 1.43 4.81 4.81 0 01-3 0 8.42 8.42 0 01-2.61-1.43zm-7.61.92c-2 1.51-4 4-1.53 7a.65.65 0 00.13.16q.2.22.42.45a5.91 5.91 0 002.4-.61c-2.45-3-.42-5.49 1.54-7a13.57 13.57 0 00-.54-1.51 13.76 13.76 0 00-2.42 1.51zM15.99 56v3h3v-3a2 2 0 012-2h-3a2 2 0 00-2 2zm7-10a2 2 0 00-2 2v6h3v-6a2 2 0 012-2zM4.35 24.86a13.53 13.53 0 00-2.61-1.37 13.32 13.32 0 00-.39 1.37c-.49 2-.91 5.69 1.85 7a4.83 4.83 0 001.79.46 8.25 8.25 0 00.86 0 5.84 5.84 0 00.4-.5c-2.81-1.27-2.39-4.95-1.9-6.96z",fill:"#fff"}),Object(r.createElement)("path",{d:"M59.18 23.14a1 1 0 00-1.29-.59 14.74 14.74 0 00-3.85 2.26 24.35 24.35 0 00-.45-3.4 23.39 23.39 0 00-1.21-4 1 1 0 00.71-.29 5.42 5.42 0 001.9-4.91c-.64-3.56-5.44-5.78-5.65-5.87a1 1 0 00-1.32.5 14.57 14.57 0 00-.85 2.6 26.55 26.55 0 00-2.37-2.12 6.66 6.66 0 00-2.23-5.7C38.99-1.31 32.36.61 32.08.7a1 1 0 00-.59.48 1 1 0 00-.08.76c.08.28 2.09 6.87 6.51 8.3a5.84 5.84 0 001.74.27 7.41 7.41 0 004.15-1.44 22.7 22.7 0 013.1 3 1.48 1.48 0 000 .21 13.38 13.38 0 00-5.58.15 1 1 0 00-.72 1.21c.06.22 1.39 5.34 4.79 6.59a4.42 4.42 0 001.55.28 6.3 6.3 0 003.59-1.31 1.2 1.2 0 00.26-.29 22.46 22.46 0 01.82 2.88 21.37 21.37 0 01.43 3.47 15 15 0 00-2.86-2.35 1 1 0 00-1.38.34c-.11.2-2.81 4.75-1.3 8a5.31 5.31 0 004.07 2.87c-.08.21-.15.42-.24.63a21.75 21.75 0 01-2.25 4 14.51 14.51 0 00-1.26-4 1 1 0 00-.58-.5 1 1 0 00-.76.06c-.2.1-4.9 2.53-5.38 6.11a5.19 5.19 0 001.7 4.37 22.47 22.47 0 01-2.46 1.34A3 3 0 0036.99 45h-6V34.73l4.15 2.2a2.1 2.1 0 00.94.23 2 2 0 002-2.33l-1-5.81 4.2-4.11a2 2 0 00-1.12-3.4l-5.78-.85-2.59-5.26a2 2 0 00-3.6 0l-2.58 5.26-5.77.85a2 2 0 00-1.11 3.4L22.92 29l-1 5.81a2 2 0 00.8 1.94 2 2 0 002.11.15l4.16-2.17V45h-6a3 3 0 00-2.37 1.18 21 21 0 01-2.46-1.35 5.16 5.16 0 001.7-4.36c-.48-3.58-5.18-6-5.38-6.11a1 1 0 00-.76-.06 1 1 0 00-.58.5 14.38 14.38 0 00-1.26 4 21.11 21.11 0 01-2.25-4c-.09-.21-.16-.42-.24-.64a5.26 5.26 0 004.07-2.86c1.51-3.29-1.19-7.84-1.3-8a1 1 0 00-1.38-.34 15 15 0 00-2.86 2.35 21.37 21.37 0 01.43-3.47 22.46 22.46 0 01.82-2.88 1.2 1.2 0 00.26.29 6.3 6.3 0 003.56 1.28 4.42 4.42 0 001.55-.28c3.4-1.25 4.73-6.37 4.79-6.59a1 1 0 00-.72-1.21 13.57 13.57 0 00-5.58-.15 1.48 1.48 0 000-.21 22.7 22.7 0 013.1-3 7.39 7.39 0 004.15 1.44 5.73 5.73 0 001.73-.27c4.43-1.43 6.44-8 6.52-8.3a1 1 0 00-.08-.76 1 1 0 00-.55-.5c-.28-.09-6.89-2-10.51.92a6.66 6.66 0 00-2.23 5.7 26.55 26.55 0 00-2.37 2.12 14.57 14.57 0 00-.8-2.6 1 1 0 00-1.32-.5c-.2.09-5 2.31-5.65 5.87a5.42 5.42 0 001.91 4.88 1 1 0 00.71.29 23.65 23.65 0 00-1.21 4 24.35 24.35 0 00-.44 3.43 14.74 14.74 0 00-3.9-2.26 1 1 0 00-1.29.59c-.08.21-1.89 5.18.19 8.14a5.37 5.37 0 004.71 2.08h.11a1 1 0 00.73-.36c.09-.1.16-.22.25-.33a24.67 24.67 0 001 2.89 23.67 23.67 0 002.4 4.32 14.22 14.22 0 00-4 .19 1 1 0 00-.77 1.18c0 .22 1.15 5.4 4.49 6.8a4.41 4.41 0 001.75.35 6.4 6.4 0 003.43-1.15 1 1 0 00.44-.64 6.59 6.59 0 00.11-1.08l.84.59a23 23 0 003.51 1.97V53h-2a3 3 0 00-3 3v3a1 1 0 001 1h28a1 1 0 001-1v-3a3 3 0 00-3-3h-2v-4.91a23 23 0 003.51-1.94c.29-.19.56-.41.84-.62a7 7 0 00.11 1.11 1 1 0 00.44.64 6.4 6.4 0 003.43 1.15 4.41 4.41 0 001.75-.35c3.34-1.4 4.45-6.58 4.49-6.8a1 1 0 00-.77-1.18 14.22 14.22 0 00-4-.19 23.67 23.67 0 002.4-4.32 24.67 24.67 0 001-2.89c.09.11.16.23.25.33a1 1 0 00.73.33h.11a5.37 5.37 0 004.71-2.08c2.08-2.96.27-7.93.19-8.14zM38.65 6a22.22 22.22 0 013.4 1.82 4.32 4.32 0 01-3.51.53c-2.55-.82-4.18-4.24-4.86-6 1.81-.38 5.57-.88 7.65.81a4.12 4.12 0 011.42 2.71 23.48 23.48 0 00-3.33-1.75 1 1 0 00-1.31.53A1 1 0 0038.65 6zm-20-2.8c2.08-1.71 5.84-1.2 7.65-.83-.68 1.72-2.31 5.14-4.86 6a4.32 4.32 0 01-3.51-.53A22.22 22.22 0 0121.33 6a1 1 0 00.54-1.31 1 1 0 00-1.31-.53 24 24 0 00-3.33 1.75 4.12 4.12 0 011.42-2.73zM5.92 30.41a5.66 5.66 0 01-.58.94 3.27 3.27 0 01-2.71-1.21c-1-1.37-.65-3.75-.26-5.28a8.32 8.32 0 013.62 3.05v.61a4.45 4.45 0 00-.15.9 4.12 4.12 0 00.08.99zm6-15.39c1.25-1.11 3.66-1 5.21-.83-.55 1.47-1.64 3.61-3.21 4.18a3.23 3.23 0 01-2.93-.54 3.27 3.27 0 01.89-2.83zm-4.93-2.45c.29-1.65 2.21-3.11 3.56-3.91a8.35 8.35 0 01.38 4.61 3.81 3.81 0 00-.32.24 4.52 4.52 0 00-1.05 1.37 3.53 3.53 0 01-.56.25h-.01a4.51 4.51 0 01-.95.22 3.26 3.26 0 01-1.05-2.78zm.91 17c.09-1.7 1.78-3.37 3.09-4.32.66 1.42 1.4 3.7.7 5.23a3.23 3.23 0 01-2.43 1.69 3.25 3.25 0 01-1.41-2.63zm5.78 16.29a3.26 3.26 0 01-2.94.41c-1.55-.65-2.55-2.84-3-4.34a8.39 8.39 0 014.58.65 2.92 2.92 0 00.17.36 4.51 4.51 0 001.1 1.32 4.53 4.53 0 01.04 1.57zm3.08-2.36a5 5 0 01-.85-.21h-.08A2.84 2.84 0 0114.16 42c-.8-1.46-.22-3.8.34-5.27 1.32.86 3.16 2.4 3.38 4.06a3.28 3.28 0 01-1.17 2.68zm7.19-8.3l1-5.8a2 2 0 00-.57-1.77l-4.19-4.11 5.77-.85a2 2 0 001.51-1.1l2.52-5.3 2.58 5.27a2 2 0 001.51 1.1l5.77.84-4.19 4.12a2 2 0 00-.57 1.76l1 5.8-5.15-2.73a2 2 0 00-1.88 0zM21.99 48a1 1 0 011-1h14a1 1 0 011 1v5h-16zm20 7a1 1 0 011 1v2h-26v-2a1 1 0 011-1h24zm3.83-13a2.84 2.84 0 01-1.62 1.28h-.07a6.37 6.37 0 01-.86.21 3.28 3.28 0 01-1.17-2.73c.22-1.66 2.06-3.2 3.38-4.06.56 1.45 1.14 3.79.34 5.3zm6.5-.05c-.48 1.5-1.48 3.69-3 4.34a3.26 3.26 0 01-2.94-.41 4.53 4.53 0 01.12-1.6 4.51 4.51 0 001.1-1.32c.07-.12.11-.24.17-.36a8.39 8.39 0 014.55-.7zM46.1 18.37c-1.57-.57-2.66-2.71-3.21-4.18 1.55-.22 4-.28 5.21.83a3.27 3.27 0 01.89 2.81 3.26 3.26 0 01-2.89.54zm4.67 13.8a3.23 3.23 0 01-2.43-1.69c-.7-1.52 0-3.8.71-5.23 1.25.95 3 2.62 3.08 4.29a3.25 3.25 0 01-1.36 2.63zm1.22-16.82a4.75 4.75 0 01-1-.22 3.87 3.87 0 01-.55-.25 4.52 4.52 0 00-1-1.37 3.81 3.81 0 00-.32-.24 8.45 8.45 0 01.38-4.61c1.35.8 3.27 2.25 3.56 3.9a3.27 3.27 0 01-1.07 2.79zm5.36 14.79a3.27 3.27 0 01-2.71 1.21 5.66 5.66 0 01-.58-.94 4.09 4.09 0 00.06-1 5.28 5.28 0 00-.15-.9v-.6a8.37 8.37 0 013.6-3.06c.42 1.54.74 3.92-.22 5.29zM33.99 50a1 1 0 01-1 1h-6a1 1 0 010-2h6a1 1 0 011 1z"})),Object(r.createElement)("h2",null,"Upgrade to Pro"),Object(r.createElement)("p",null,Object(a.__)("Upgrade to the Pro version and get instant full access to all premium extensions and features.","blc")),Object(r.createElement)("button",{className:"ct-button-primary"},Object(a.__)("Upgrade Now","blc")))}}):null]},V=function(){return ctDashboardLocalizations.plugin_data.hide_support_section?null:Object(r.createElement)("div",{className:"ct-support-container"},Object(r.createElement)("h2",null,Object(a.__)("Support","blc")),Object(r.createElement)("p",null,Object(a.__)("Got a question or need some help with the theme? You can always submit a support ticket, and our team will help you out.","blc")),Object(r.createElement)("a",{href:ctDashboardLocalizations.support_url,className:"ct-button","data-hover":"blue",target:"_blank"},Object(a.__)("Submit a Ticket","blc")))};function H(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 q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?H(Object(n),!0).forEach((function(t){W(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function W(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $(e,t,n,r,c,o,a){try{var i=e[o](a),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(r,c)}function Z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,c=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){c=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(c)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return K(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 K(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 K(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 G=null,Y=function(e){var t=e.extension,n=e.onExtsSync,c=Z(T(t),2),o=c[0],i=c[1],u=Z(B(t,(function(){n()})),3),s=u[0],f=u[1],d=u[2];return Object(r.createElement)("li",{className:l()({active:!!t.__object})},Object(r.createElement)("h4",{className:"ct-extension-title"},t.config.name,s&&Object(r.createElement)("svg",{width:"15",height:"15",viewBox:"0 0 100 100"},Object(r.createElement)("g",{transform:"translate(50,50)"},Object(r.createElement)("g",{transform:"scale(1)"},Object(r.createElement)("circle",{cx:"0",cy:"0",r:"50",fill:"#687c93"}),Object(r.createElement)("circle",{cx:"0",cy:"-26",r:"12",fill:"#ffffff",transform:"rotate(161.634)"},Object(r.createElement)("animateTransform",{attributeName:"transform",type:"rotate",calcMode:"linear",values:"0 0 0;360 0 0",keyTimes:"0;1",dur:"1s",begin:"0s",repeatCount:"indefinite"})))))),t.config.description&&Object(r.createElement)("div",{className:"ct-extension-description"},t.config.description),Object(r.createElement)("div",{className:"ct-extension-actions"},Object(r.createElement)("button",{className:l()(t.__object?"ct-button":"ct-button-primary"),"data-hover":"white",disabled:s,onClick:function(){f()}},t.__object?Object(a.__)("Deactivate","blc"):Object(a.__)("Activate","blc")),t.readme&&Object(r.createElement)("button",{onClick:function(){return o()},className:"ct-minimal-button ct-instruction"},Object(r.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 24 24"},Object(r.createElement)("path",{d:"M12,2C6.477,2,2,6.477,2,12s4.477,10,10,10s10-4.477,10-10S17.523,2,12,2z M12,17L12,17c-0.552,0-1-0.448-1-1v-4 c0-0.552,0.448-1,1-1h0c0.552,0,1,0.448,1,1v4C13,16.552,12.552,17,12,17z M12.5,9h-1C11.224,9,11,8.776,11,8.5v-1 C11,7.224,11.224,7,11.5,7h1C12.776,7,13,7.224,13,7.5v1C13,8.776,12.776,9,12.5,9z"}))),t.__object&&t.config&&t.config.buttons&&t.config.buttons.map((function(e,t){var n=e.text,c=e.url;return Object(r.createElement)("a",{href:c,className:"ct-button ct-config-btn",dataButton:"white"},n)}))),i,d)},J=function(){var e=Z(Object(r.useState)(!G),2),t=e[0],n=e[1],c=Z(Object(r.useState)(G||[]),2),i=c[0],u=c[1],s=Z(Object(r.useState)(!1),2),f=s[0],d=s[1],m=Z(Object(r.useState)("free"),2),b=m[0],p=m[1],h=function(){var e,t=(e=regeneratorRuntime.mark((function e(){var t,r,c,o,a,i,l,s,f,m=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=m.length>0&&void 0!==m[0]?m[0]:{},r=q({verbose:!1,extension:null,extAction:null},t),c=r.verbose,o=r.extension,a=r.extAction,c&&n(!0),d(!0),e.prev=4,e.next=7,fetch("".concat(wp.ajax.settings.url,"?action=blocksy_extensions_status"),q({method:"POST"},o&&a?{body:JSON.stringify({extension:o,extAction:a})}:{}));case 7:if(200!==(i=e.sent).status){e.next=15;break}return e.next=11,i.json();case 11:l=e.sent,s=l.success,f=l.data,s&&(u(f),G=f);case 15:e.next=19;break;case 17:e.prev=17,e.t0=e.catch(4);case 19:d(!1),n(!1);case 21:case"end":return e.stop()}}),e,null,[[4,17]])})),function(){var t=this,n=arguments;return new Promise((function(r,c){var o=e.apply(t,n);function a(e){$(o,r,c,a,i,"next",e)}function i(e){$(o,r,c,a,i,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();Object(r.useEffect)((function(){h({verbose:!G});var e=function(){h()};return o.a.on("blocksy_exts_sync_exts",e),function(){o.a.off("blocksy_exts_sync_exts",e)}}),[]);var v=Object(r.useMemo)((function(){return Object.values(i).map((function(e,t){return q(q({},e),{},{name:Object.keys(i)[t]})})).find((function(e){return e.config.pro}))}),[i]),y=Object(r.useMemo)((function(){return Object.values(i).map((function(e,t){return q(q({},e),{},{name:Object.keys(i)[t]})})).filter((function(e){return!e.config.hidden})).filter((function(e){var t=e.config;return"free"===b?!t.pro:t.pro}))}),[b,i]);return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"ct-extensions-container"},Object(r.createElement)(A.Transition,{items:t,from:{opacity:0},enter:[{opacity:1}],leave:[{opacity:0}],initial:null,config:function(e,t){return"leave"===t?{duration:300}:{delay:300,duration:300}}},(function(e){return e?function(e){return Object(r.createElement)(A.animated.p,{style:e,className:"ct-loading-text"},Object(r.createElement)("span",null),Object(a.__)("Loading Extensions Status...","blc"))}:function(e){return Object(r.createElement)(A.animated.div,{style:e},Object(r.createElement)(r.Fragment,null,v&&Object(r.createElement)("ul",{className:"ct-extensions-sourse"},["free","pro"].map((function(e){return Object(r.createElement)("li",{key:e,onClick:function(){return p(e)},className:l()({active:e===b})},{free:Object(a.__)("Free Extensions","blc"),pro:Object(a.__)("Pro Extensions","blc")}[e])}))),Object(r.createElement)("ul",{className:l()("ct-extensions-list",{"is-pro":"pro"===b})},y.map((function(e){var t={extension:Y};return o.a.trigger("ct:extensions:card",{CustomComponent:t,extension:e}),Object(r.createElement)(t.extension,{key:e.name,extension:e,extsSyncLoading:f,onExtsSync:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i[e.name].__object=!i[e.name].__object,u(i),h(q(q({},t),{},{extension:e.name}))}})}))),Object(r.createElement)(V,null)))}}))))},X=window.ctDashboardLocalizations.DashboardContext,Q=(X.Provider,X.Consumer,X),ee=function(e){var t=e.children,n=e.activated,c=e.checked,o=e.onChange;return Object(r.createElement)("div",{onClick:function(){return o()},className:l()("ct-checkbox-container",{activated:n})},t,Object(r.createElement)("span",{className:l()("ct-checkbox",{active:c})},Object(r.createElement)("svg",{width:"10",height:"8",viewBox:"0 0 11.2 9.1"},Object(r.createElement)("polyline",{class:"check",points:"1.2,4.8 4.4,7.9 9.9,1.2 "}))))};function te(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 ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?te(Object(n),!0).forEach((function(t){re(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function re(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ce(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,c=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){c=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(c)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return oe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oe(e,t)}(e,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 oe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ae=function(e){return({coblocks:"CoBlocks","contact-form-7":"Contact Form 7",woocommerce:"WooCommerce",elementor:"Elementor",brizy:"Brizy",getwid:"Getwid","wpforms-lite":"WPForms - Contact Form","stackable-ultimate-gutenberg-blocks":"Stackable – Gutenberg Blocks"}[e]||e).replace(/\b\w/,(function(e){return e.toUpperCase()}))},ie=function(e){var t=e.demoConfiguration,n=e.setDemoConfiguration,c=e.style,o=Object(r.useContext)(Ye),i=o.currentDemo,l=o.demos_list,u=o.pluginsStatus,s=(o.setCurrentDemo,ce((i||"").split(":"),2)),f=s[0];s[1],l.filter((function(e){return e.name===f||""}));return Object(r.createElement)("div",{style:c},Object(r.createElement)("div",{className:"ct-demo-plugins"},Object(r.createElement)("i",{className:"ct-demo-icon"},Object(r.createElement)("svg",{width:"40",height:"40",viewBox:"0 0 40 40"},Object(r.createElement)("path",{fill:"#0C7AB3",d:"M20,0v7.6c0,0.3-0.2,0.5-0.5,0.5h-1.5c0,0,0,0,0,0c0,0,0,0-0.1,0c0,0,0,0-0.1,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c-0.5-0.7-1.3-1.1-2.1-1.1c-1.5,0-2.6,1.2-2.6,2.6c0,1.5,1.2,2.6,2.6,2.6c0.8,0,1.6-0.4,2.1-1.1c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0.1,0c0,0,0,0,0.1,0c0,0,0,0,0,0h1.5c0,0,0,0,0,0c0.3,0,0.5,0.2,0.5,0.5V20h8.1v-0.8c-0.8-0.7-1.3-1.7-1.3-2.8c0-2,1.7-3.7,3.7-3.7c2,0,3.7,1.7,3.7,3.7c0,1.1-0.5,2.1-1.3,2.8V20H40C40,9,31,0,20,0z"}),Object(r.createElement)("path",{fill:"#3497D3",d:"M20,40v-7.6c0-0.3,0.2-0.5,0.5-0.5h1.5c0,0,0,0,0,0c0,0,0,0,0.1,0c0,0,0,0,0.1,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0.5,0.7,1.3,1.1,2.1,1.1c1.5,0,2.6-1.2,2.6-2.6c0-1.5-1.2-2.6-2.6-2.6c-0.8,0-1.6,0.4-2.1,1.1c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0-0.1,0c0,0,0,0-0.1,0c0,0,0,0,0,0h-1.5c0,0,0,0,0,0c-0.3,0-0.5-0.2-0.5-0.5V20h-8.1v0.8c0.8,0.7,1.3,1.7,1.3,2.8c0,2-1.7,3.7-3.7,3.7c-2,0-3.7-1.7-3.7-3.7c0-1.1,0.5-2.1,1.3-2.8V20H0C0,31,9,40,20,40z"}))),Object(r.createElement)("h2",null,Object(a.__)("Install & Activate Plugins","blc")),Object(r.createElement)("p",null,Object(a.__)("The following plugins are required for this starter site in order to work properly.","blc")),t.plugins.map((function(e){var c=e.plugin,o=e.enabled;return Object(r.createElement)(r.Fragment,{key:c},!u[c]&&Object(r.createElement)(ee,{key:c,checked:o,onChange:function(){return n(ne(ne({},t),{},{plugins:t.plugins.map((function(e){return e.plugin===c?ne(ne({},e),{},{enabled:!o}):e}))}))}},ae(c)),u[c]&&Object(r.createElement)(ee,{activated:!0,checked:!0,onChange:function(){}},ae(c)))}))))},le=function(){var e=Object(r.useContext)(Ye),t=e.currentlyInstalledDemo,n=e.demos_list,c=e.setCurrentDemo,o=e.demo_error;Object(r.useContext)(Q).Link;return Object(r.createElement)("ul",null,n.filter((function(e,t){return n.map((function(e){return e.name})).indexOf(e.name)===t})).map((function(e){return Object(r.createElement)("li",{key:e.name,className:l()("ct-single-demo",{"ct-is-pro":e.is_pro})},Object(r.createElement)("figure",null,Object(r.createElement)("img",{src:e.screenshot}),Object(r.createElement)("section",null,Object(r.createElement)("h3",null,Object(a.__)("Available for","blc")),Object(r.createElement)("div",null,n.filter((function(t){return t.name===e.name||""})).sort((function(e,t){return e.builder<t.builder?-1:e.builder>t.builder?1:0})).map((function(e){var t=e.builder;return Object(r.createElement)("span",{key:t},ae(t)||"Gutenberg")})))),e.is_pro&&Object(r.createElement)("a",{onClick:function(e){return e.preventDefault()},href:"#"},"PRO")),Object(r.createElement)("div",{className:"ct-demo-actions"},Object(r.createElement)("h4",null,e.name),Object(r.createElement)("div",null,Object(r.createElement)("a",{className:"ct-button",target:"_blank",href:e.url},Object(a.__)("Preview","blc")),Object(r.createElement)("button",{className:"ct-button-primary",onClick:function(){return c(e.name)},disabled:!!o},t&&t.demo.indexOf(e.name)>-1?Object(a.__)("Modify","blc"):Object(a.__)("Import","blc")))))})))};function ue(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,c=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){c=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(c)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return se(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 se(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 se(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 fe=function(e){var t=e.style,n=e.nextStep,c=(Object(r.useContext)(Q).is_child_theme,Object(r.useContext)(Ye)),o=c.setCurrentlyInstalledDemo,i=c.setCurrentDemo,l=c.currentDemo,u=c.demos_list,s=ue(Object(r.useState)(0),2),f=s[0],d=s[1],m=ue(Object(r.useState)("idle"),2),b=m[0],p=m[1],h=ue((l||"").split(":"),2),v=h[0],y=(h[1],u.filter((function(e){return e.name===v}))),O={erase_content:{title:Object(a.__)("Erase content","blc"),query_string:"action=blocksy_demo_erase_content&wp_customize=on"},deactivate_demo_plugins:{title:Object(a.__)("Deactivate demo plugins","blc"),query_string:"action=blocksy_demo_deactivate_plugins&plugins=".concat(y[0].plugins.join(":"))},deregister_current_demo:{title:Object(a.__)("Erase content","blc"),query_string:"action=blocksy_demo_deregister_current_demo"}},j=["erase_content","deactivate_demo_plugins","deregister_current_demo"],g=j[f],_=function(){var e=O[g],t=new EventSource("".concat(ctDashboardLocalizations.ajax_url,"?").concat(e.query_string));t.onmessage=function(e){if("complete"===JSON.parse(e.data).action){if(t&&t.close&&t.close(),f===j.length-1)return void p("done");d(Math.min(j.length-1,f+1))}}};return Object(r.useEffect)((function(){0!==f&&"done"!==b&&_()}),[g]),Object(r.createElement)("div",{className:"ct-modify-demo",style:t},Object(r.createElement)("i",{className:"ct-demo-icon"},Object(r.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 40 40"},Object(r.createElement)("path",{d:"M5.71,40a1,1,0,0,1-1-1V21.59a1,1,0,0,1,1.91,0V39.05A1,1,0,0,1,5.71,40Zm1-31.83V1.07A1,1,0,0,0,5.71,0a1,1,0,0,0-1,1.07v7.1a1,1,0,0,0,1,1.07A1,1,0,0,0,6.67,8.17ZM21,39.05V34.29a1,1,0,1,0-1.9,0v4.76a1,1,0,1,0,1.9,0Zm0-18.14V1a1,1,0,1,0-1.9,0V20.91a1,1,0,1,0,1.9,0ZM35.24,39.05V26.35a1,1,0,0,0-1.91,0v12.7a1,1,0,0,0,1.91,0Zm0-26.25V1a1,1,0,1,0-1.91,0V12.8a1,1,0,1,0,1.91,0Z",transform:"translate(-0.71)",fill:"#dae3e8"}),Object(r.createElement)("path",{d:"M5.71,18.06a5,5,0,1,1,5-5A5,5,0,0,1,5.71,18.06ZM20,30.76a5,5,0,1,1,5-5A5,5,0,0,1,20,30.76Zm14.29-7.93a5,5,0,1,1,5-5A5,5,0,0,1,34.29,22.83Z",transform:"translate(-0.71)",fill:"#0c7ab3"}))),"idle"===b&&Object(r.createElement)("h2",null,Object(a.__)("This starter site is already installed","blc")),"loading"===b&&Object(r.createElement)("h2",null,"Removing starter site..."),"done"===b&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)("h2",null,Object(a.__)("Starter Site Removed","blc")),Object(r.createElement)("div",{className:"ct-modify-actions"},Object(r.createElement)("button",{className:"ct-demo-btn ct-dismiss",onClick:function(e){e.preventDefault(),i("".concat(v,":hide"))}},Object(a.__)("Dismiss","blc")))),"idle"===b&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)("p",null,Object(a.__)("What steps do you want to perform next?","blc")),Object(r.createElement)("div",{className:"ct-modify-actions"},Object(r.createElement)("button",{className:"ct-demo-btn demo-remove",onClick:function(e){p("loading"),e.preventDefault(),_(),o()}},Object(a.__)("Remove","blc")),Object(r.createElement)("button",{className:"ct-demo-btn",onClick:function(e){e.preventDefault(),n()}},Object(a.__)("Reinstall","blc")))))};function de(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 me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?de(Object(n),!0).forEach((function(t){be(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):de(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function be(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pe=function(e){var t=e.demoConfiguration,n=e.setDemoConfiguration,c=e.style,o=Object(r.useContext)(Q),i=o.is_child_theme,l=o.child_theme_exists;return Object(r.createElement)("div",{className:"ct-demo-child",style:c},Object(r.createElement)("i",{className:"ct-demo-icon"},Object(r.createElement)("svg",{width:"40",height:"40",viewBox:"0 0 43 41.1"},Object(r.createElement)("path",{fill:"#DBE7EE",d:"M0,39.5c0,0.9,0.7,1.6,1.5,1.6h32.3c0.9,0,1.5-0.7,1.5-1.6V14H0V39.5z"}),Object(r.createElement)("path",{fill:"#BDC8D7",d:"M18.2,41.1h15.6c0.9,0,1.5-0.7,1.5-1.6V14H7.6L8,32.4L18.2,41.1z"}),Object(r.createElement)("path",{fill:"#BDC8D7",d:"M0,15.6V9.8c0-0.9,0.7-1.6,1.5-1.6h32.3c0.9,0,1.5,0.7,1.5,1.6v5.8H0z"}),Object(r.createElement)("path",{fill:"#3497D3",d:"M7.6,31.3c0,0.9,0.7,1.6,1.5,1.6h32.4c0.9,0,1.5-0.7,1.5-1.6V5.8H7.6V31.3z"}),Object(r.createElement)("path",{fill:"#0C7AB3",d:"M7.6,7.4V1.6C7.6,0.7,8.3,0,9.1,0h32.4C42.4,0,43,0.7,43,1.6v5.8H7.6z"}),Object(r.createElement)("rect",{x:"11.2",y:"11",fill:"#44ACDF",width:"16.8",height:"17.9"}),Object(r.createElement)("rect",{x:"31.5",y:"11",fill:"#44ACDF",width:"7.9",height:"17.9"}))),l?Object(r.createElement)("h2",null,Object(a.__)("Activate Child Theme","blc")):Object(r.createElement)("h2",null,Object(a.__)("Install Child Theme","blc")),!i&&Object(r.createElement)(r.Fragment,null,l?Object(r.createElement)("p",null,Object(a.__)("We strongly recommend to activate the child theme, this way you will have freedom to make changes without breaking the parent theme.","blc")):Object(r.createElement)("p",null,Object(a.__)("We strongly recommend to install the child theme, this way you will have freedom to make changes without breaking the parent theme.","blc")),Object(r.createElement)(ee,{checked:t.child_theme,onChange:function(){return n(me(me({},t),{},{child_theme:!t.child_theme}))}},l?Object(a.__)("Activate Child Theme","blc"):Object(a.__)("Install Child Theme","blc"))),i&&Object(a.__)("You already have a child theme properly installed and activated. Move on.","blc"),Object(r.createElement)("a",{href:"https://developer.wordpress.org/themes/advanced-topics/child-themes/",target:"_blank"},Object(a.__)("Learn more about child themes","blc")))};function he(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?he(Object(n),!0).forEach((function(t){ye(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):he(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ye(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,c=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){c=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(c)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return je(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 je(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 je(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 ge=function(e){var t=e.demoConfiguration,n=e.setDemoConfiguration,c=e.style,o=Object(r.useContext)(Ye),i=o.currentDemo,u=o.demos_list,s=(o.pluginsStatus,o.setCurrentDemo,Oe((i||"").split(":"),2)),f=s[0],d=(s[1],u.filter((function(e){return e.name===f||""})));return Object(r.createElement)("div",{style:c},d.length>1&&Object(r.createElement)("div",{className:"ct-demo-builder"},Object(r.createElement)("i",{className:"ct-demo-icon"},Object(r.createElement)("svg",{width:"52",height:"40",viewBox:"0 0 52 40"},Object(r.createElement)("path",{fill:"#DBE7EE",d:"M0,38.1C0,39.1,0.9,40,1.8,40h39.3c1.1,0,1.8-0.9,1.8-1.9v-31H0V38.1z"}),Object(r.createElement)("path",{fill:"#CFDBE4",d:"M13.8,14.6v18.8h22.6V14.6H13.8zM34.8,31.9H15.4V16.1h19.4V31.9z"}),Object(r.createElement)("path",{fill:"#BDC8D7",d:"M13.1,15.3L13.1,15.3c0-0.8,0.6-1.4,1.4-1.4l0,0c0.8,0,1.4,0.6,1.4,1.4l0,0c0,0.8-0.6,1.4-1.4,1.4l0,0C13.7,16.8,13.1,16.1,13.1,15.3z M34.1,15.3L34.1,15.3c0-0.8,0.6-1.4,1.4-1.4l0,0c0.8,0,1.4,0.6,1.4,1.4l0,0c0,0.8-0.6,1.4-1.4,1.4l0,0C34.8,16.8,34.1,16.1,34.1,15.3z M13.1,32.7L13.1,32.7c0-0.8,0.6-1.4,1.4-1.4l0,0c0.8,0,1.4,0.6,1.4,1.4l0,0c0,0.8-0.6,1.4-1.4,1.4l0,0C13.7,34.1,13.1,33.5,13.1,32.7z M34.1,32.7L34.1,32.7c0-0.8,0.6-1.4,1.4-1.4l0,0c0.8,0,1.4,0.6,1.4,1.4l0,0c0,0.8-0.6,1.4-1.4,1.4l0,0C34.8,34.1,34.1,33.5,34.1,32.7z M23.3,15.3L23.3,15.3c0-0.8,0.6-1.4,1.4-1.4l0,0c0.8,0,1.4,0.6,1.4,1.4l0,0c0,0.8-0.6,1.4-1.4,1.4l0,0C24,16.8,23.3,16.1,23.3,15.3z M4.2,13.9h5.9v7.9H4.2V13.9zM4.2,23.3h5.9v2.9H4.2V23.3zM0,9V1.9C0,0.9,0.9,0,1.8,0h39.3c1.1,0,1.8,0.9,1.8,1.9V9H0z M42.9,35.4V10.9h-9.3v15.2L42.9,35.4zM7.2,27.6c-1.6,0-3,1.3-3,3c0,1.6,1.3,3,3,3s3-1.3,3-3C10.2,28.9,8.8,27.6,7.2,27.6z"}),Object(r.createElement)("path",{fill:"#0C7AB3",d:"M50,27.8H35.6c-1.1,0-2-0.9-2-2v-18c0-1.1,0.9-2,2-2H50c1.1,0,2,0.9,2,2v18C52,26.9,51.1,27.8,50,27.8z"}),Object(r.createElement)("path",{fill:"#44ACDF",d:"M49,17.5H36.8c-0.7,0-1.2-0.5-1.2-1.2V9.1c0-0.7,0.5-1.2,1.2-1.2H49c0.7,0,1.2,0.5,1.2,1.2v7.3C50.2,17,49.6,17.5,49,17.5z M50.2,20.4v-0.1c0-0.5-0.4-1-1-1H36.5c-0.5,0-1,0.4-1,1v0.1c0,0.5,0.4,1,1,1h12.7C49.7,21.4,50.2,20.9,50.2,20.4z M40.8,25.2h-4.3c-0.5,0-1-0.4-1-1v-0.1c0-0.5,0.4-1,1-1h4.3c0.5,0,1,0.4,1,1v0.1C41.7,24.8,41.3,25.2,40.8,25.2z M49.2,25.2h-4.3c-0.5,0-1-0.4-1-1v-0.1c0-0.5,0.4-1,1-1h4.3c0.5,0,1,0.4,1,1v0.1C50.2,24.8,49.7,25.2,49.2,25.2z"}),Object(r.createElement)("path",{fill:"#C8E6F4",d:"M47.4,11.2h-9.1c-0.2,0-0.5-0.2-0.5-0.4v0c0-0.2,0.2-0.4,0.5-0.4h9.1c0.2,0,0.5,0.2,0.5,0.4v0C47.8,11,47.6,11.2,47.4,11.2z M47.9,14.7L47.9,14.7c0-0.2-0.2-0.5-0.5-0.5h-9.1c-0.2,0-0.4,0.2-0.4,0.4v0c0,0.2,0.2,0.4,0.4,0.4h9.1C47.7,15.1,47.9,14.9,47.9,14.7z"}),Object(r.createElement)("path",{fill:"#FFFFFF",d:"M26.3,20.8h-2.9l-2.9,7.9H23l0.3-0.7h2.8l0.3,0.7h2.7L26.3,20.8z M23.9,25.8l0.8-2.2h0l0.8,2.2H23.9zM46.5,10.7c0,0.8-0.7,1.5-1.5,1.5s-1.5-0.7-1.5-1.5c0-0.8,0.7-1.5,1.5-1.5S46.5,9.9,46.5,10.7zM42.1,14.7c0,0.8-0.7,1.5-1.5,1.5s-1.5-0.7-1.5-1.5s0.7-1.5,1.5-1.5S42.1,13.9,42.1,14.7z"}))),Object(r.createElement)("h2",null,Object(a.__)("Choose Page Builder","blc")),Object(r.createElement)("p",null,Object(a.__)("This starter site can be imported and used with one of these page builders. Please select your prefered one in order to continue.","blc")),Object(r.createElement)("ul",{"data-count":d.length},d.sort((function(e,t){return e.builder<t.builder?-1:e.builder>t.builder?1:0})).map((function(e){var c=e.builder,o=e.plugins;return Object(r.createElement)("li",{className:l()({active:c===(null===t.builder?d[0].builder:t.builder)}),onClick:function(){return n(ve(ve({},t),{},{builder:c,plugins:o.map((function(e){return{plugin:e,enabled:!0}}))}))}},Object(r.createElement)("figure",null,Object(r.createElement)("span",{className:l()("ct-checkbox",{active:c===(null===t.builder?d[0].builder:t.builder)})},Object(r.createElement)("svg",{width:"10",height:"8",viewBox:"0 0 11.2 9.1"},Object(r.createElement)("polyline",{className:"check",points:"1.2,4.8 4.4,7.9 9.9,1.2 "}))),""===c&&Object(r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 150 100"},Object(r.createElement)("path",{d:"M122.5 35.5c-1.7-1.1-4-.7-5.1 1C110.8 46.4 96.8 47 96 47h-.3c-17.4 0-24 14.8-24.3 15.4-.8 1.9.1 4 1.9 4.8.5.2 1 .3 1.5.3 1.4 0 2.7-.8 3.4-2.2.1-.1 4.6-10.3 16.3-11v19c-.5 4.1-2.4 7.3-5.8 9.7-3.6 2.5-8.3 3.8-14.1 3.8-7 0-12.7-2.4-16.9-7.2-4.3-4.8-6.4-11.5-6.4-20.2l.1-20.9c.3-7.7 2.4-13.8 6.4-18.2 4.3-4.8 9.9-7.2 16.9-7.2 5.8 0 10.6 1.3 14.1 3.8 3.6 2.5 5.6 5.9 5.9 10.3v.5c0 2.5 2.1 4.6 4.6 4.6 2.5 0 4.6-2.1 4.6-4.6v-.5c-.7-6.6-3.7-11.9-9.1-15.8-5.4-4-12.2-5.9-20.4-5.9-9.7 0-17.6 3.2-23.5 9.6-5.6 6-8.6 13.8-8.9 23.5 0 .7-.1 1.3-.1 2l.1 18.8h-.1c0 10.7 3 19.2 9 25.5 6 6.4 13.8 9.6 23.5 9.6 8.2 0 14.9-1.9 20.4-5.9 5-3.6 7.9-8.4 8.9-14.3l.2-21c6.1-1.5 14.4-4.8 19.6-12.7 1.3-1.7.8-4-1-5.1z"})),"brizy"===c&&Object(r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 150 100"},Object(r.createElement)("path",{d:"M14.6 36.7L75 0l60.4 36.7L75 73.4 14.6 36.7zm21.7.9L75 61.2l38.8-23.6L75 14 36.3 37.6z",fill:"#181c25"}),Object(r.createElement)("path",{fill:"#a7b2dd",d:"M14.6 63.2l10.8-6.5L75 86.8l49.9-30 10.5 6.4L75 100z"})),"elementor"===c&&Object(r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 150 100"},Object(r.createElement)("path",{d:"M32.5 7.6h17v84.9h-17V7.6zm34 84.9h51v-17h-51v17zm0-34h51v-17h-51v17zm0-51v17h51v-17h-51z"}))),Object(r.createElement)("div",{className:"builder-name"},ae(c)||"Gutenberg"))})))))};function _e(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?_e(Object(n),!0).forEach((function(t){we(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_e(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function we(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xe=function(e){var t=e.demoConfiguration,n=e.setDemoConfiguration,c=(e.currentDemo,e.style);return Object(r.createElement)("div",{style:c},Object(r.createElement)("i",{className:"ct-demo-icon"},Object(r.createElement)("svg",{width:"40",height:"40",viewBox:"0 0 40 40"},Object(r.createElement)("path",{d:"M25,22.67a5,5,0,0,1-10,0H0V36a3.33,3.33,0,0,0,3.33,3.33H36.67A3.33,3.33,0,0,0,40,36V22.67Z",transform:"translate(0 -0.67)",fill:"#bdc8d7"}),Object(r.createElement)("rect",{x:"2.5",y:"14",width:"35",height:"3",rx:"1.5",fill:"#0c7ab3"}),Object(r.createElement)("rect",{x:"5",y:"7",width:"30",height:"3",rx:"1.5",fill:"#3497d3"}),Object(r.createElement)("rect",{x:"7.5",width:"25",height:"3",rx:"1.5",fill:"#44acdf"}))),Object(r.createElement)("h2",null,Object(a.__)("Import Content","blc")),Object(r.createElement)("p",null,Object(a.__)("This will import posts, pages, comments, navigation menus, custom fields, terms and custom posts","blc")),["options","widgets","content"].map((function(e){return Object(r.createElement)(ee,{checked:t.content[e],onChange:function(){return n(Ee(Ee({},t),{},{content:Ee(Ee({},t.content),{},we({},e,!t.content[e]))}))},key:e},e.split("_").map((function(e){return e.replace(/^\w/,(function(e){return e.toUpperCase()}))})).join(" "))})),Object(r.createElement)("div",{className:"ct-demo-erase"},Object(r.createElement)(ee,{checked:t.content.erase_content,onChange:function(){return n(Ee(Ee({},t),{},{content:Ee(Ee({},t.content),{},{erase_content:!t.content.erase_content})}))}},Object(r.createElement)("div",null,Object(a.__)("Clean Install","blc"),Object(r.createElement)("i",null,Object(a.__)("This option will remove the previous imported content and will perform a fresh and clean install.","blc"))))))},Se=function(){var e=Object(r.useContext)(Q),t=e.home_url,n=e.customizer_url;return Object(r.createElement)("div",{className:"ct-install-success"},Object(r.createElement)("h2",null,Object(a.__)("Starter Site Imported Successfully","blc")),Object(r.createElement)("p",null,Object(a.__)("Now you can view your website or start customizing it","blc")),Object(r.createElement)("div",null,Object(r.createElement)("a",{href:n,className:"ct-button"},Object(a.__)("Customize","blc")),Object(r.createElement)("a",{href:t,target:"_blank",className:"ct-button-primary"},Object(a.__)("View site","blc"))))},Ce=function(e,t){var n=e.action;if("complete"===n)return"";if("import_install_child"===n)return Object(a.__)("copying child theme sources","blc");if("import_activate_child"===n)return Object(a.__)("activating child theme","blc");if("install_plugin"===n)return Object(a.sprintf)(Object(a.__)("installing plugin %s","blc"),ae(e.name)||e.name);if("activate_plugin"===n)return Object(a.sprintf)(Object(a.__)("activating plugin %s","blc"),ae(e.name)||e.name);if("download_demo_widgets"===n)return Object(a.__)("downloading demo widgets","blc");if("apply_demo_widgets"===n)return Object(a.__)("installing demo widgets","blc");if("download_demo_options"===n)return Object(a.__)("downloading demo options","blc");if("import_mods_images"===n)return Object(a.__)("importing images from customizer","blc");if("import_customizer_options"===n)return Object(a.__)("import customizer options","blc");if("activate_required_extensions"===n)return Object(a.__)("activating required extensions","blc");if("erase_previous_posts"===n)return Object(a.__)("removing previously installed posts","blc");if("erase_previous_terms"===n)return Object(a.__)("removing previously installed taxonomies","blc");if("erase_default_pages"===n)return Object(a.__)("removing default WordPress pages","blc");if("erase_customizer_settings"===n)return Object(a.__)("resetting customizer options","blc");if("erase_widgets_data"===n)return Object(a.__)("resetting widgets","blc");if("content_installer_progress"===n){if(!e.kind)return"";var r=t.content.preliminary_data["".concat(e.kind,"_count")],c=t.content["".concat(e.kind,"_count")];return"".concat(Math.min(c,r)," of ").concat(r," ").concat({users:Object(a.__)("users","blc"),term:Object(a.__)("terms","blc"),media:Object(a.__)("images","blc"),post:Object(a.__)("posts","blc"),comment:Object(a.__)("comments","blc")}[e.kind])}return""};function ke(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 De(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ke(Object(n),!0).forEach((function(t){ze(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ze(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ae(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,c=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){c=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(c)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Pe(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 Pe(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 Pe(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 Me=function(e){e.preventDefault(),e.returnValue=""},Ne=function(e){var t=e.demoConfiguration,n=e.pluginsStatus,r=e.is_child_theme,c=e.includeMetaSteps,o=[];return void 0!==c&&c&&o.push("register_current_demo"),t.child_theme&&(r||o.push("child_theme")),t.plugins.filter((function(e){var t=e.enabled,r=e.plugin;return!!t&&!n[r]})).length>0&&o.push("plugins"),t.content.erase_content&&o.push("erase_content"),t.content.options&&o.push("options"),t.content.widgets&&o.push("widgets"),t.content.content&&o.push("content"),o.push("install_finish"),o},Le=function(e){var t=e.demoConfiguration,n=e.style,c=function(e){var t=Object(r.useContext)(Ye),n=t.demos_list,c=t.currentDemo,o=(t.setCurrentDemo,t.setInstallerBlockingReleased),i=t.setCurrentlyInstalledDemo,l=t.pluginsStatus,u=Object(r.useContext)(Q),s=(u.home_url,u.customizer_url,u.is_child_theme),f=(u.Link,Ae(Object(r.useState)(!1),2)),d=f[0],m=f[1],b=Ae(Object(r.useState)(0),2),p=b[0],h=b[1],v=Ae((c||"").split(":"),2),y=v[0],O=(v[1],n.filter((function(e){return e.name===y})).sort((function(e,t){return e.builder<t.builder?-1:e.builder>t.builder?1:0}))),j=e.plugins.filter((function(e){var t=e.enabled,n=e.plugin;return t&&!l[n]})).map((function(e){return e.plugin})),g=Ae(Object(r.useState)({register_current_demo:{title:Object(a.__)("Register demo","blc"),query_string:"action=blocksy_demo_register_current_demo&wp_customize=on&demo_name=".concat(c,":").concat(null===e.builder?O[0].builder:e.builder),expected_signals:1},child_theme:{title:Object(a.__)("Child theme","blc"),query_string:"action=blocksy_demo_install_child_theme",expected_signals:3},plugins:{title:Object(a.__)("Required plugins","blc"),query_string:"action=blocksy_demo_activate_plugins&plugins=".concat(j.join(":")),expected_signals:2*j.length+1},fake_step:{title:Object(a.__)("Fake Required plugins","blc"),query_string:"action=blocksy_demo_fake_step",expected_signals:6},erase_content:{title:Object(a.__)("Erase content","blc"),query_string:"action=blocksy_demo_erase_content&wp_customize=on",expected_signals:6},install_finish:{title:Object(a.__)("Final touches","blc"),query_string:"action=blocksy_demo_install_finish&wp_customize=on",expected_signals:1},options:{title:Object(a.__)("Import options","blc"),query_string:"action=blocksy_demo_install_options&wp_customize=on&demo_name=".concat(c,":").concat(null===e.builder?O[0].builder:e.builder),expected_signals:5},widgets:{title:Object(a.__)("Import widgets","blc"),query_string:"action=blocksy_demo_install_widgets&wp_customize=on&demo_name=".concat(c,":").concat(null===e.builder?O[0].builder:e.builder),expected_signals:3},content:{title:Object(a.__)("Import content","blc"),query_string:"action=blocksy_demo_install_content&wp_customize=on&demo_name=".concat(c,":").concat(null===e.builder?O[0].builder:e.builder),expected_signals:50}}),2),_=g[0],E=g[1],w=Ne({demoConfiguration:e,pluginsStatus:l,is_child_theme:s,includeMetaSteps:!0}),x=w[p],S=Ae(Object(r.useState)(0),2),C=S[0],k=S[1],D=Ae(Object(r.useState)(null),2),z=D[0],A=D[1],P=Object(r.useRef)(C),M=Object(r.useRef)(_);Object(r.useEffect)((function(){P.current=C,M.current=_}));var N=function(e){return"content"===e?1===w.length?100:50:w.indexOf("content")>-1?50/(w.length-1):100/w.length},L=w.reduce((function(e,t,n){return n>=p?e:e+N(t)}),0)+100*C/_[x].expected_signals*(N(x)/100),T=function(){var e=_[x],t=new EventSource("".concat(ctDashboardLocalizations.ajax_url,"?").concat(e.query_string));t.onmessage=function(e){var n=JSON.parse(e.data);if(k(P.current+1),"content_installer_progress"===n.action){var r=n.kind;r&&(A(n),E(De(De({},M.current),{},{content:De(De({},M.current.content),{},ze({},"".concat(r,"_count"),M.current.content["".concat(r,"_count")]+1))})))}else A(n);if("get_content_preliminary_data"===n.action){var c=n.data,a=(c.comment_count,c.media_count,c.post_count,c.term_count,c.users,De(De({},n.data),{},{term_count:n.data.terms.length,post_count:n.data.posts.filter((function(e){return"attachment"!==e.post_type})).length,media_count:n.data.posts.filter((function(e){return"attachment"===e.post_type})).length,comment_count:n.data.posts.reduce((function(e,t){return e+(t.comments||[]).length}),0),users_count:Object.keys(n.data.authors).length}));E(De(De({},M.current),{},{content:De(De({},M.current.content),{},{preliminary_data:a,comment_count:0,media_count:0,post_count:0,term_count:0,users_count:0,expected_signals:a.comment_count+a.media_count+a.post_count+a.term_count+a.users_count+3})}))}if("complete"===n.action){if(t&&t.close&&t.close(),p===w.length-1)return m(!0),o(!0),void window.removeEventListener("beforeunload",Me);A(null),k(0),h(Math.min(w.length-1,p+1))}}};return Object(r.useEffect)((function(){d||(A(null),k(0),"fake_step"===x?(console.log("here we go delay before fake_step"),setTimeout((function(){T()}),2e3)):T())}),[x]),Object(r.useEffect)((function(){return window.addEventListener("beforeunload",Me),i({demo:"".concat(c,":").concat(e.builder)}),function(){window.removeEventListener("beforeunload",Me)}}),[]),{isCompleted:d,stepName:x,stepsDescriptors:_,lastMessage:z,progress:L}}(t),o=c.isCompleted,i=c.stepName,l=c.stepsDescriptors,u=c.lastMessage,s=c.progress;return Object(r.createElement)("div",{className:"ct-demo-install",style:n},Object(r.createElement)(A.Transition,{initial:!0,items:o,from:{opacity:0},enter:[{opacity:1}],leave:[{opacity:0}],config:function(e,t){return"leave"===t?{duration:300}:{delay:300,duration:300}}},(function(e){return function(t){return Object(r.createElement)("div",{style:t},e?Object(r.createElement)(Se,null):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("i",{className:"ct-demo-icon"},Object(r.createElement)("svg",{width:"40",height:"40",viewBox:"0 0 50 50"},Object(r.createElement)("path",{class:"g1",d:"M47,38.8c0.3-1,0.5-2,0.5-3.1c0-1.1-0.2-2.1-0.5-3.1l0.2-0.1l1.8-1.7l-1.8-3.1l-2.3,0.7l-0.2,0.1c-1.4-1.5-3.3-2.7-5.4-3.1V25l-0.6-2.4h-3.5L34.5,25v0.3c-2.1,0.5-4,1.6-5.4,3.1l-0.2-0.1l-2.3-0.7l-1.8,3.1l1.7,1.7l0.2,0.1c-0.3,1-0.5,2-0.5,3.1c0,1.1,0.2,2.1,0.5,3.1l-0.2,0.1l-1.8,1.7l1.8,3.1l2.3-0.7l0.2-0.1c1.4,1.5,3.3,2.7,5.4,3.1v0.3l0.6,2.4h3.5l0.6-2.4V46c2.1-0.5,4-1.6,5.4-3.1l0.2,0.1l2.3,0.7l1.8-3.1l-1.7-1.7L47,38.8z M36.9,41.5c-3.3,0-5.9-2.6-5.9-5.9s2.6-5.9,5.9-5.9s5.9,2.6,5.9,5.9S40.1,41.5,36.9,41.5z"}),Object(r.createElement)("path",{class:"g2",d:"M21.2,32.2c0.2-0.8,0.4-1.7,0.4-2.5c0-0.9-0.1-1.7-0.4-2.5l0.3-0.2l1.7-1.7l-1.8-3.1L19.1,23l-0.3,0.2c-1.2-1.2-2.7-2.1-4.4-2.5v-0.3l-0.6-2.4h-3.5l-0.6,2.4v0.3c-1.7,0.4-3.2,1.3-4.4,2.5L5.1,23l-2.3-0.7L1,25.4L2.7,27L3,27.2c-0.2,0.8-0.4,1.7-0.4,2.5c0,0.9,0.1,1.7,0.4,2.5l-0.3,0.1L1,34.1l1.8,3.1l2.3-0.7l0.3-0.1c1.2,1.2,2.7,2.1,4.4,2.5v0.3l0.6,2.4h3.5l0.6-2.4v-0.3c1.7-0.4,3.2-1.3,4.4-2.5l0.3,0.1l2.3,0.7l1.8-3.1l-1.7-1.7L21.2,32.2z M12.1,34.4c-2.6,0-4.7-2.1-4.7-4.7S9.5,25,12.1,25s4.7,2.1,4.7,4.7S14.7,34.4,12.1,34.4z"}),Object(r.createElement)("path",{class:"g3",d:"M37.7,15.7c0.2-0.8,0.4-1.7,0.4-2.5c0-0.9-0.1-1.7-0.4-2.5l0.3-0.2l1.7-1.7l-1.8-3.1l-2.3,0.7l-0.3,0.2c-1.2-1.2-2.7-2.1-4.4-2.5V3.8l-0.6-2.4h-3.5l-0.6,2.4v0.3c-1.7,0.4-3.2,1.3-4.4,2.5l-0.3-0.2l-2.3-0.7l-1.8,3.1l1.7,1.7l0.3,0.2c-0.2,0.8-0.4,1.7-0.4,2.5c0,0.9,0.1,1.7,0.4,2.5l-0.3,0.1l-1.7,1.7l1.8,3.1l2.3-0.7l0.3-0.1c1.2,1.2,2.7,2.1,4.4,2.5v0.3l0.6,2.4h3.5l0.6-2.4v-0.3c1.7-0.4,3.2-1.3,4.4-2.5l0.3,0.1l2.3,0.7l1.8-3.1L38,15.9L37.7,15.7z M28.6,17.9c-2.6,0-4.7-2.1-4.7-4.7s2.1-4.7,4.7-4.7s4.7,2.1,4.7,4.7S31.2,17.9,28.6,17.9z"}))),Object(r.createElement)("h2",null,Object(a.__)("Installing","blc"),"..."),Object(r.createElement)("p",null,Object(a.__)("Please be patient and don't refresh this page, the import process may take a while, this also depends on your server.","blc")),Object(r.createElement)("div",{className:"ct-progress-info"},l[i].title,u&&Ce(u,l)?": ".concat(Ce(u,l)):"",Object(r.createElement)("span",null,Math.round(s),"%")),Object(r.createElement)("div",{style:{"--progress":"".concat(s,"%")},className:"ct-installer-progress"},Object(r.createElement)("div",null))))}})))};function Te(e){return function(e){if(Array.isArray(e))return Ue(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Re(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 Ie(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,c=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){c=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(c)throw o}}return n}(e,t)||Re(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 Re(e,t){if(e){if("string"==typeof e)return Ue(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)?Ue(e,t):void 0}}function Ue(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 Fe=function(e){e.location,e.navigate;var t=Ie(Object(r.useState)(!0),2),n=(t[0],t[1],Object(r.useContext)(Ye)),c=n.installerBlockingReleased,o=n.demos_list,i=n.currentDemo,u=n.pluginsStatus,s=n.currentlyInstalledDemo,f=n.setCurrentDemo,d=Object(r.useContext)(Q).is_child_theme,m=Ie(Object(r.useState)(s),2),b=m[0],p=m[1],h=Ie(Object(r.useState)({builder:"",child_theme:!1,plugins:[],content:{options:!0,widgets:!0,content:!0,erase_content:!0}}),2),v=h[0],y=h[1],O=Ie(Object(r.useState)(0),2),j=O[0],g=O[1],_=Ie((i||"").split(":"),2),E=_[0],w=(_[1],["modify_demo","child_theme","builder","plugins","content","installer"].filter((function(e){if(!i)return!1;if("modify_demo"===e){if(!b)return!1;if(-1===b.demo.indexOf(E))return!1}if("child_theme"===e&&d)return!1;var t=o.filter((function(e){return e.name===E})).sort((function(e,t){return e.builder<t.builder?-1:e.builder>t.builder?1:0}));return("plugins"!==e||0!==t.reduce((function(e,t){return[].concat(Te(e),Te(t.plugins||[]))}),[]).filter((function(e){return!u[e]})).length)&&("builder"!==e||t.length>1)}))),x=w[j];return Object(r.useEffect)((function(){if(E&&!(i.indexOf(":hide")>-1)){var e=o.filter((function(e){return e.name===E})).sort((function(e,t){return e.builder<t.builder?-1:e.builder>t.builder?1:0}));g(0),p(s),y({builder:1===e.length?e[0].builder:null,child_theme:!0,plugins:e[0].plugins.map((function(e){return{plugin:e,enabled:!0}})),content:{options:!0,widgets:!0,content:!0,erase_content:!0}})}}),[i]),Object(r.createElement)(M,{items:i,isVisible:function(e){return e&&-1===e.indexOf(":hide")},className:l()("ct-demo-modal",{"ct-demo-installer":"installer"===x||"modify_demo"===x}),onDismiss:function(){("installer"!==x||c)&&f("".concat(E,":hide"))},render:function(){return Object(r.createElement)("div",{className:"ct-modal-content ct-demo-step-container"},Object(r.createElement)("div",{className:"ct-current-step"},Object(r.createElement)(A.Transition,{items:x,from:{opacity:0},enter:{opacity:1},leave:{opacity:0},initial:!1,config:function(e,t){return"leave"===t?{duration:150}:{delay:150,duration:150}}},(function(e){return function(t){return Object(r.createElement)(r.Fragment,null,"modify_demo"===e&&Object(r.createElement)(fe,{demoConfiguration:v,nextStep:function(){g(Math.min(j+1,w.length-1))},style:t}),"child_theme"===e&&Object(r.createElement)(pe,{style:t,demoConfiguration:v,setDemoConfiguration:y}),"plugins"===e&&Object(r.createElement)(ie,{demoConfiguration:v,style:t,setDemoConfiguration:y}),"builder"===e&&Object(r.createElement)(ge,{style:t,demoConfiguration:v,setDemoConfiguration:y}),"content"===e&&Object(r.createElement)(xe,{style:t,demoConfiguration:v,setDemoConfiguration:y}),"installer"===e&&Object(r.createElement)(Le,{style:t,demoConfiguration:v}))}}))),"installer"!==x&&"modify_demo"!==x&&Object(r.createElement)("div",{className:"ct-demo-step-controls"},j>0&&Object(r.createElement)("button",{className:"ct-demo-btn demo-back-btn",onClick:function(){g(Math.max(j-1,0))}},Object(a.__)("Back","blc")),w.length>2&&Object(r.createElement)("ul",{className:"ct-steps-pills"},w.map((function(e,t){return t===w.length-1?null:Object(r.createElement)("li",{className:l()({active:e===x}),key:e},t+1)}))),Object(r.createElement)("button",{className:"ct-demo-btn demo-main-btn",disabled:"content"===x&&0===Ne({demoConfiguration:v,pluginsStatus:u,is_child_theme:d}).length,onClick:function(){g(Math.min(j+1,w.length-1))}},"content"===x?Object(a.__)("Install","blc"):Object(a.__)("Next","blc"))))}})},Be=n(7),Ve=n.n(Be);function He(e,t,n,r,c,o,a){try{var i=e[o](a),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(r,c)}function qe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,c=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){c=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(c)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return We(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 We(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 We(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 $e=function(){var e=qe(Object(r.useState)(!1),2),t=e[0],n=e[1],c=qe(Object(r.useState)(!1),2),o=c[0],i=c[1],l=qe(Object(r.useState)(""),2),u=l[0],s=l[1],f=qe(Object(r.useState)(""),2),d=f[0],m=f[1],b=qe(Object(r.useState)("coblocks,elementor,contact-form-7"),2),p=b[0],h=b[1],v=qe(Object(r.useState)(""),2),y=v[0],O=v[1],j=qe(Object(r.useState)(!1),2),g=j[0],_=j[1],E=function(){var e,t=(e=regeneratorRuntime.mark((function e(){var t,r,c,o,a,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n(!0),(t=new FormData).append("action","blocksy_demo_export"),t.append("name",u),t.append("is_pro",g),t.append("url",y),t.append("builder",d),t.append("plugins",p),t.append("wp_customize","on"),e.prev=9,e.next=12,fetch(ctDashboardLocalizations.ajax_url,{method:"POST",body:t});case 12:if(200!==(r=e.sent).status){e.next=20;break}return e.next=16,r.json();case 16:c=e.sent,o=c.success,a=c.data,o&&(i=new Blob([JSON.stringify(a.demo)],{type:"text/plain;charset=utf-8"}),Ve.a.saveAs(i,"".concat(u,".json")));case 20:e.next=24;break;case 22:e.prev=22,e.t0=e.catch(9);case 24:n(!1);case 25:case"end":return e.stop()}}),e,null,[[9,22]])})),function(){var t=this,n=arguments;return new Promise((function(r,c){var o=e.apply(t,n);function a(e){He(o,r,c,a,i,"next",e)}function i(e){He(o,r,c,a,i,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();return ct_localizations.is_dev_mode?Object(r.createElement)("div",{className:"ct-export"},Object(r.createElement)("button",{className:"ct-button",onClick:function(e){i(!0)}},Object(a.__)("Site export")),Object(r.createElement)(M,{items:o,className:"ct-site-export-modal",onDismiss:function(){return i(!1)},render:function(){return Object(r.createElement)("div",{className:"ct-site-export"},Object(r.createElement)("label",null,Object(a.__)("Name","blc"),Object(r.createElement)("input",{type:"text",placeholder:Object(a.__)("Name","blc"),value:u,onChange:function(e){var t=e.target.value;return s(t)}})),Object(r.createElement)("label",null,Object(a.__)("Preview URL","blc"),Object(r.createElement)("input",{type:"text",placeholder:Object(a.__)("Preview URL","blc"),value:y,onChange:function(e){var t=e.target.value;return O(t)}})),Object(r.createElement)("label",null,Object(a.__)("PRO","blc"),Object(r.createElement)("input",{type:"checkbox",value:g,onChange:function(e){e.target.value;return _(!g)}})),Object(r.createElement)("label",null,Object(a.__)("Builder","blc"),Object(r.createElement)("input",{type:"text",placeholder:Object(a.__)("Builder","blc"),value:d,onChange:function(e){var t=e.target.value;return m(t)}})),Object(r.createElement)("label",null,Object(a.__)("Plugins","blc"),Object(r.createElement)("textarea",{placeholder:Object(a.__)("Plugins","blc"),value:p,onChange:function(e){var t=e.target.value;return h(t)}})),Object(r.createElement)("button",{className:"ct-button",disabled:t,onClick:function(){return E()}},t?Object(a.__)("Loading...","blc"):Object(a.__)("Export site","blc")))}})):null};function Ze(e,t,n,r,c,o,a){try{var i=e[o](a),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(r,c)}function Ke(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,c=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){c=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(c)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ge(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 Ge(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 Ge(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 Ye=Object(r.createContext)({demos:[]}),Je=null,Xe=null,Qe=function(e){e.children,e.path,e.location;var t=Ke(Object(r.useState)(!Je),2),n=t[0],c=t[1],o=Ke(Object(r.useState)(Je||[]),2),i=o[0],l=o[1],u=Ke(Object(r.useState)(Xe||{}),2),s=u[0],f=u[1],d=Ke(Object(r.useState)(null),2),m=d[0],b=d[1],p=Ke(Object(r.useState)(null),2),h=p[0],v=p[1],y=Ke(Object(r.useState)(!1),2),O=y[0],j=y[1],g=Ke(Object(r.useState)({builder:""}),2),_=(g[0],g[1],Ke(Object(r.useState)(!1),2)),E=_[0],w=_[1],x=function(){var e,t=(e=regeneratorRuntime.mark((function e(){var t,n,r,o,a,i=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i.length>0&&void 0!==i[0]&&i[0]&&c(!0),(t=new FormData).append("action","blocksy_demo_list"),e.prev=4,e.next=7,fetch(ctDashboardLocalizations.ajax_url,{method:"POST",body:t});case 7:if(200!==(n=e.sent).status){e.next=15;break}return e.next=11,n.json();case 11:r=e.sent,o=r.success,a=r.data,o&&(l(a.demos),f(a.active_plugins),v(a.current_installed_demo),j(a.demo_error),Xe=a.active_plugins,Je=a.demos,a.demo_error);case 15:e.next=19;break;case 17:e.prev=17,e.t0=e.catch(4);case 19:c(!1);case 20:case"end":return e.stop()}}),e,null,[[4,17]])})),function(){var t=this,n=arguments;return new Promise((function(r,c){var o=e.apply(t,n);function a(e){Ze(o,r,c,a,i,"next",e)}function i(e){Ze(o,r,c,a,i,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();return Object(r.useEffect)((function(){x(!Je)}),[]),Object(r.createElement)("div",{className:"ct-demos-list-container"},O&&Object(r.createElement)("div",{className:"ct-demo-notification",dangerouslySetInnerHTML:{__html:O}}),Object(r.createElement)(A.Transition,{items:n,from:{opacity:0},enter:[{opacity:1}],leave:[{opacity:0}],config:function(e,t){return"leave"===t?{duration:300}:{delay:300,duration:300}}},(function(e){return e?function(e){return Object(r.createElement)(A.animated.p,{style:e,className:"ct-loading-text"},Object(r.createElement)("span",null),Object(a.__)("Loading Starter Sites...","blc"))}:0===i.length?function(e){return Object(r.createElement)(A.animated.div,{style:e},Object(r.createElement)("div",{className:"ct-demo-notification",dangerouslySetInnerHTML:{__html:Object(a.__)("Connection to <b>demo.creativethemes.com</b> server didn't worked -- this is required for downloading the starter sites. You need to contact your hosting provider to figure out why your server can't reach to our server.")}}),Object(r.createElement)(V,null))}:function(e){return Object(r.createElement)(A.animated.div,{style:e},Object(r.createElement)(r.Fragment,null,Object(r.createElement)(Ye.Provider,{value:{demo_error:O,demos_list:i.filter((function(e){return!e.dev||ct_localizations.is_dev_mode})),currentDemo:m,pluginsStatus:s,installerBlockingReleased:E,setInstallerBlockingReleased:w,setCurrentDemo:b,currentlyInstalledDemo:h,setCurrentlyInstalledDemo:v}},Object(r.createElement)(le,null),Object(r.createElement)(Fe,null),Object(r.createElement)($e,null)),Object(r.createElement)(V,null)))}})))};function et(e,t,n,r,c,o,a){try{var i=e[o](a),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(r,c)}var tt=function(){var e=function(){var e,t=(e=regeneratorRuntime.mark((function e(){var t,n,r,c,o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).append("action","blocksy_fs_connect_again"),e.prev=2,e.next=5,fetch(ctDashboardLocalizations.ajax_url,{method:"POST",body:t});case 5:if(200!==(n=e.sent).status){e.next=13;break}return e.next=9,n.json();case 9:r=e.sent,c=r.success,r.data,c&&((o=document.createElement("div")).innerHTML=ctDashboardLocalizations.plugin_data.connect_template,a=o.querySelector("form"),document.body.appendChild(a),a.submit());case 13:e.next=17;break;case 15:e.prev=15,e.t0=e.catch(2);case 17:case"end":return e.stop()}}),e,null,[[2,15]])})),function(){var t=this,n=arguments;return new Promise((function(r,c){var o=e.apply(t,n);function a(e){et(o,r,c,a,i,"next",e)}function i(e){et(o,r,c,a,i,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();return Object(r.createElement)("div",{className:"ct-freemius-optin-message"},Object(r.createElement)("i",null,Object(r.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},Object(r.createElement)("path",{d:"M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"}),Object(r.createElement)("path",{d:"M13.73 21a2 2 0 0 1-3.46 0"}))),Object(r.createElement)("h2",null,Object(a.__)("Stay Updated","blc")),Object(r.createElement)("p",null,Object(a.__)("Never miss an important update - opt in to our security & feature updates notifications, and non-sensitive diagnostic tracking.","blc")),Object(r.createElement)("button",{className:"ct-button-primary",onClick:function(t){t.preventDefault(),e()}},Object(a.__)("Allow & Continue","blc")))};function nt(e,t,n,r,c,o,a){try{var i=e[o](a),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(r,c)}function rt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,c=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){c=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(c)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ct(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 ct(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 ct(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 ot=function(){var e=rt(Object(r.useState)(ctDashboardLocalizations.plugin_data.has_beta_consent),2),t=e[0],n=e[1],c=rt(Object(r.useState)(!1),2),o=c[0],i=c[1],l=function(){var e,r=(e=regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!o){e.next=2;break}return e.abrupt("return");case 2:return n((function(e){return!e})),i(!0),(r=new FormData).append("action","blocksy_toggle_has_beta_consent"),e.next=8,fetch(ctDashboardLocalizations.ajax_url,{method:"POST",body:r});case 8:e.sent,window.ctDashboardLocalizations.plugin_data.has_beta_consent=!t,i(!1);case 11:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,c){var o=e.apply(t,n);function a(e){nt(o,r,c,a,i,"next",e)}function i(e){nt(o,r,c,a,i,"throw",e)}a(void 0)}))});return function(){return r.apply(this,arguments)}}();return Object(r.createElement)("div",{className:"ct-beta-consent"},Object(r.createElement)("h2",{onClick:function(){return l()}},Object(a.__)("Receive βeta Updates","blc"),Object(r.createElement)(A.Switch,{value:t?"yes":"no",onChange:function(){}})),Object(r.createElement)("p",null,Object(a.__)("Receive beta updates for Blocksy theme and companion and help us test the new versions. Please note that installing beta versions is not recommended on production sites.","blc")))};o.a.on("ct:dashboard:routes",(function(e){e.push({Component:function(){return Object(r.createElement)(J,null)},path:"/extensions"}),"yes"===ctDashboardLocalizations.plugin_data.has_demo_install&&e.push({Component:function(e){return Object(r.createElement)(Qe,e)},path:"/demos"})})),o.a.on("ct:dashboard:navigation-links",(function(e){"yes"===ctDashboardLocalizations.plugin_data.has_demo_install&&e.push({text:Object(a.__)("Starter Sites","blc"),path:"demos",getProps:function(e){var t=e.isPartiallyCurrent;e.isCurrent;return t?{"aria-current":"page"}:{}}}),e.push({text:Object(a.__)("Extensions","blc"),path:"/extensions"})})),o.a.on("ct:dashboard:home:before",(function(e){ctDashboardLocalizations.plugin_data.is_anonymous&&(e.content=Object(r.createElement)(tt,null))})),o.a.on("ct:dashboard:home:after",(function(e){ctDashboardLocalizations.plugin_data.hide_beta_updates||(e.content=Object(r.createElement)(ot,null))})),o.a.on("ct:dashboard:heading:after",(function(e){ctDashboardLocalizations.plugin_data.is_pro&&(e.content=Object(r.createElement)("span",null,"PRO"))}))}]);
|
| 3 |
Copyright (c) 2017 Jed Watson.
|
| 4 |
Licensed under the MIT License (MIT), see
|
| 5 |
http://jedwatson.github.io/classnames
|
| 6 |
+
*/!function(){"use strict";var n={}.hasOwnProperty;function c(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)&&r.length){var a=c.apply(null,r);a&&e.push(a)}else if("object"===o)for(var i in r)n.call(r,i)&&r[i]&&e.push(i)}}return e.join(" ")}e.exports?(c.default=c,e.exports=c):void 0===(r=function(){return c}.apply(t,[]))||(e.exports=r)}()},function(e,t){e.exports=window.blocksyOptions},function(e,t){e.exports=ctEvents},function(e,t){e.exports=window.React},function(e,t,n){var r,c,o=n(11),a=n(12),i=(c=[],{activateTrap:function(e){if(c.length>0){var t=c[c.length-1];t!==e&&t.pause()}var n=c.indexOf(e);-1===n||c.splice(n,1),c.push(e)},deactivateTrap:function(e){var t=c.indexOf(e);-1!==t&&c.splice(t,1),c.length>0&&c[c.length-1].unpause()}});function l(e){return setTimeout(e,0)}e.exports=function(e,t){var n=document,c="string"==typeof e?n.querySelector(e):e,u=a({returnFocusOnDeactivate:!0,escapeDeactivates:!0},t),s={firstTabbableNode:null,lastTabbableNode:null,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1},f={activate:function(e){if(s.active)return;g(),s.active=!0,s.paused=!1,s.nodeFocusedBeforeActivation=n.activeElement;var t=e&&e.onActivate?e.onActivate:u.onActivate;t&&t();return m(),f},deactivate:d,pause:function(){if(s.paused||!s.active)return;s.paused=!0,b()},unpause:function(){if(!s.paused||!s.active)return;s.paused=!1,g(),m()}};return f;function d(e){if(s.active){clearTimeout(r),b(),s.active=!1,s.paused=!1,i.deactivateTrap(f);var t=e&&void 0!==e.onDeactivate?e.onDeactivate:u.onDeactivate;return t&&t(),(e&&void 0!==e.returnFocus?e.returnFocus:u.returnFocusOnDeactivate)&&l((function(){var e;_((e=s.nodeFocusedBeforeActivation,p("setReturnFocus")||e))})),f}}function m(){if(s.active)return i.activateTrap(f),r=l((function(){_(h())})),n.addEventListener("focusin",y,!0),n.addEventListener("mousedown",v,{capture:!0,passive:!1}),n.addEventListener("touchstart",v,{capture:!0,passive:!1}),n.addEventListener("click",j,{capture:!0,passive:!1}),n.addEventListener("keydown",O,{capture:!0,passive:!1}),f}function b(){if(s.active)return n.removeEventListener("focusin",y,!0),n.removeEventListener("mousedown",v,!0),n.removeEventListener("touchstart",v,!0),n.removeEventListener("click",j,!0),n.removeEventListener("keydown",O,!0),f}function p(e){var t=u[e],r=t;if(!t)return null;if("string"==typeof t&&!(r=n.querySelector(t)))throw new Error("`"+e+"` refers to no known node");if("function"==typeof t&&!(r=t()))throw new Error("`"+e+"` did not return a node");return r}function h(){var e;if(!(e=null!==p("initialFocus")?p("initialFocus"):c.contains(n.activeElement)?n.activeElement:s.firstTabbableNode||p("fallbackFocus")))throw new Error("Your focus-trap needs to have at least one focusable element");return e}function v(e){c.contains(e.target)||(u.clickOutsideDeactivates?d({returnFocus:!o.isFocusable(e.target)}):u.allowOutsideClick&&u.allowOutsideClick(e)||e.preventDefault())}function y(e){c.contains(e.target)||e.target instanceof Document||(e.stopImmediatePropagation(),_(s.mostRecentlyFocusedNode||h()))}function O(e){if(!1!==u.escapeDeactivates&&function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e))return e.preventDefault(),void d();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){if(g(),e.shiftKey&&e.target===s.firstTabbableNode)return e.preventDefault(),void _(s.lastTabbableNode);if(!e.shiftKey&&e.target===s.lastTabbableNode)e.preventDefault(),_(s.firstTabbableNode)}(e)}function j(e){u.clickOutsideDeactivates||c.contains(e.target)||u.allowOutsideClick&&u.allowOutsideClick(e)||(e.preventDefault(),e.stopImmediatePropagation())}function g(){var e=o(c);s.firstTabbableNode=e[0]||h(),s.lastTabbableNode=e[e.length-1]||h()}function _(e){e!==n.activeElement&&(e&&e.focus?(e.focus(),s.mostRecentlyFocusedNode=e,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(e)&&e.select()):_(h()))}}},function(e,t,n){(function(n){var r,c,o;c=[],void 0===(o="function"==typeof(r=function(){"use strict";function t(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){a(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function r(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function c(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var o="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n&&n.global===n?n:void 0,a=o.saveAs||("object"!=typeof window||window!==o?function(){}:"download"in HTMLAnchorElement.prototype?function(e,n,a){var i=o.URL||o.webkitURL,l=document.createElement("a");n=n||e.name||"download",l.download=n,l.rel="noopener","string"==typeof e?(l.href=e,l.origin===location.origin?c(l):r(l.href)?t(e,n,a):c(l,l.target="_blank")):(l.href=i.createObjectURL(e),setTimeout((function(){i.revokeObjectURL(l.href)}),4e4),setTimeout((function(){c(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,n,o){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,o),n);else if(r(e))t(e,n,o);else{var a=document.createElement("a");a.href=e,a.target="_blank",setTimeout((function(){c(a)}))}}:function(e,n,r,c){if((c=c||open("","_blank"))&&(c.document.title=c.document.body.innerText="downloading..."),"string"==typeof e)return t(e,n,r);var a="application/octet-stream"===e.type,i=/constructor/i.test(o.HTMLElement)||o.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||a&&i)&&"object"==typeof FileReader){var u=new FileReader;u.onloadend=function(){var e=u.result;e=l?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),c?c.location.href=e:location=e,c=null},u.readAsDataURL(e)}else{var s=o.URL||o.webkitURL,f=s.createObjectURL(e);c?c.location=f:location.href=f,c=null,setTimeout((function(){s.revokeObjectURL(f)}),4e4)}});o.saveAs=a.saveAs=a,e.exports=a})?r.apply(t,c):r)||(e.exports=o)}).call(this,n(13))},function(e,t,n){e.exports=n(9)()},function(e,t,n){"use strict";var r=n(10);function c(){}function o(){}o.resetWarningCache=c,e.exports=function(){function e(e,t,n,c,o,a){if(a!==r){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:c};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){var n=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],r=n.join(","),c="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;function o(e,t){t=t||{};var n,o,i,l=[],f=[],d=e.querySelectorAll(r);for(t.includeContainer&&c.call(e,r)&&(d=Array.prototype.slice.apply(d)).unshift(e),n=0;n<d.length;n++)a(o=d[n])&&(0===(i=u(o))?l.push(o):f.push({documentOrder:n,tabIndex:i,node:o}));return f.sort(s).map((function(e){return e.node})).concat(l)}function a(e){return!(!i(e)||function(e){return function(e){return f(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t=function(e){for(var t=0;t<e.length;t++)if(e[t].checked)return e[t]}(e.ownerDocument.querySelectorAll('input[type="radio"][name="'+e.name+'"]'));return!t||t===e}(e)}(e)||u(e)<0)}function i(e){return!(e.disabled||function(e){return f(e)&&"hidden"===e.type}(e)||function(e){return null===e.offsetParent||"hidden"===getComputedStyle(e).visibility}(e))}o.isTabbable=function(e){if(!e)throw new Error("No node provided");return!1!==c.call(e,r)&&a(e)},o.isFocusable=function(e){if(!e)throw new Error("No node provided");return!1!==c.call(e,l)&&i(e)};var l=n.concat("iframe").join(",");function u(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?function(e){return"true"===e.contentEditable}(e)?0:e.tabIndex:t}function s(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex}function f(e){return"INPUT"===e.tagName}e.exports=o},function(e,t){e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var c in r)n.call(r,c)&&(e[c]=r[c])}return e};var n=Object.prototype.hasOwnProperty},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";n.r(t);var r=n(0),c=n(4),o=n.n(c),a=n(1),i=n(2),l=n.n(i),u=n(5),s=n.n(u);n(8);function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var m=function(e){e.initialState,e.getInitialState,e.refs,e.getRefs,e.didMount,e.didUpdate,e.willUnmount,e.getSnapshotBeforeUpdate,e.shouldUpdate,e.render;return function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["initialState","getInitialState","refs","getRefs","didMount","didUpdate","willUnmount","getSnapshotBeforeUpdate","shouldUpdate","render"])},b=function(e){function t(){var n,r;f(this,t);for(var c=arguments.length,o=Array(c),a=0;a<c;a++)o[a]=arguments[a];return n=r=d(this,e.call.apply(e,[this].concat(o))),p.call(r),d(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getArgs=function(){var e=this.state,t=this.props,n=this._setState,r=this._forceUpdate,c=this._refs;return{state:e,props:m(t),refs:c,setState:n,forceUpdate:r}},t.prototype.componentDidMount=function(){this.props.didMount&&this.props.didMount(this.getArgs())},t.prototype.shouldComponentUpdate=function(e,t){return!this.props.shouldUpdate||this.props.shouldUpdate({props:this.props,state:this.state,nextProps:m(e),nextState:t})},t.prototype.componentWillUnmount=function(){this.props.willUnmount&&this.props.willUnmount({state:this.state,props:m(this.props),refs:this._refs})},t.prototype.componentDidUpdate=function(e,t,n){this.props.didUpdate&&this.props.didUpdate(Object.assign(this.getArgs(),{prevProps:m(e),prevState:t}),n)},t.prototype.getSnapshotBeforeUpdate=function(e,t){return this.props.getSnapshotBeforeUpdate?this.props.getSnapshotBeforeUpdate(Object.assign(this.getArgs(),{prevProps:m(e),prevState:t})):null},t.prototype.render=function(){var e=this.props,t=e.children,n=e.render;return n?n(this.getArgs()):"function"==typeof t?t(this.getArgs()):t||null},t}(s.a.Component);b.defaultProps={getInitialState:function(){},getRefs:function(){return{}}};var p=function(){var e=this;this.state=this.props.initialState||this.props.getInitialState(this.props),this._refs=this.props.refs||this.props.getRefs(this.getArgs()),this._setState=function(){return e.setState.apply(e,arguments)},this._forceUpdate=function(){return e.forceUpdate.apply(e,arguments)}},h=b,v=function(e){var t=e.children,n=e.container,c=void 0===n?document.body:n,o=e.type,a=void 0===o?"reach-portal":o;return Object(r.createElement)(h,{getRefs:function(){return{node:null}},didMount:function(e){var t=e.refs,n=e.forceUpdate,r=c.hasOwnProperty("current")?c.current:c;t.node=document.createElement(a),r.appendChild(t.node),n()},willUnmount:function(e){var t=e.refs.node,n=c.hasOwnProperty("current")?c.current:c;n&&n.removeChild(t)},render:function(e){var n=e.refs.node;return n?Object(r.createPortal)(t,n):null}})};var y=function(e,t){return function(n){if(e&&e(n),!n.defaultPrevented)return t(n)}},O=n(6),j=n.n(O);function g(){return(g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _(e,t){if(null==e)return{};var n,r,c=function(e,t){if(null==e)return{};var n,r,c={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(c[n]=e[n]);return c}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(c[n]=e[n])}return c}var E=function(){},w=function(){},x=function(e,t){var n,r,c;e.disposeAriaHider=(n=e.overlayNode,r=[],c=[],Array.prototype.forEach.call(document.querySelectorAll("body > *"),(function(e){if(e!==n.parentNode){var t=e.getAttribute("aria-hidden");null!==t&&"false"!==t||(r.push(t),c.push(e),e.setAttribute("aria-hidden","true"))}})),function(){c.forEach((function(e,t){var n=r[t];null===n?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",n)}))}),e.trap=j()(e.overlayNode,{initialFocus:t?function(){return t.current}:void 0,fallbackFocus:e.contentNode,escapeDeactivates:!1,clickOutsideDeactivates:!1})},S=function(e){var t=e.refs;t.trap.deactivate(),t.disposeAriaHider()},C=React.createContext(),k=React.forwardRef((function(e,t){var n=e.container,c=e.isOpen,o=void 0===c||c,a=e.onDismiss,i=void 0===a?E:a,l=e.initialFocusRef,u=e.onClick,s=e.onKeyDown,f=_(e,["container","isOpen","onDismiss","initialFocusRef","onClick","onKeyDown"]);return Object(r.createElement)(h,{didMount:w},o?Object(r.createElement)(v,{container:n,"data-reach-dialog-wrapper":!0},Object(r.createElement)(h,{refs:{overlayNode:null,contentNode:null},didMount:function(e){var t=e.refs;x(t,l)},willUnmount:S},(function(e){var n=e.refs;return Object(r.createElement)(C.Provider,{value:function(e){return n.contentNode=e}},Object(r.createElement)("div",g({"data-reach-dialog-overlay":!0,onClick:y(u,(function(e){e.stopPropagation(),i()})),onKeyDown:y(s,(function(e){"Escape"===e.key&&(e.stopPropagation(),i())})),ref:function(e){n.overlayNode=e,t&&t(e)}},f)))}))):null)}));k.propTypes={initialFocusRef:function(){}};var D=function(e){return e.stopPropagation()},z=React.forwardRef((function(e,t){var n=e.onClick,c=(e.onKeyDown,_(e,["onClick","onKeyDown"]));return Object(r.createElement)(C.Consumer,null,(function(e){return Object(r.createElement)("div",g({"aria-modal":"true","data-reach-dialog-content":!0,tabIndex:"-1",onClick:y(n,D),ref:function(n){e(n),t&&t(n)}},c))}))})),A=n(3),P=function(e){return!!e},M=function(e){var t=e.items,n=e.isVisible,c=void 0===n?P:n,o=e.render,a=e.className,i=e.onDismiss;return Object(r.createElement)(A.Transition,{items:t,onStart:function(){return document.body.classList[c(t)?"add":"remove"]("ct-dashboard-overlay-open")},config:{duration:200},from:{opacity:0,y:-10},enter:{opacity:1,y:0},leave:{opacity:0,y:10}},(function(e){return c(e)&&function(t){return Object(r.createElement)(k,{style:{opacity:t.opacity},container:document.querySelector("#wpbody"),onDismiss:function(){return i()}},Object(r.createElement)(z,{className:l()("ct-admin-modal",a),style:{transform:"translate3d(0px, ".concat(t.y,"px, 0px)")}},Object(r.createElement)("button",{className:"close-button",onClick:function(){return i()}},"×"),o(e,t)))}}))};function N(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,c=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){c=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(c)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return L(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 L(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 L(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 T=function(e){var t=N(Object(r.useState)(!1),2),n=t[0],c=t[1];return[function(){return c(!0)},Object(r.createElement)(M,{items:n,onDismiss:function(){return c(!1)},render:function(){return Object(r.createElement)("div",{className:"ct-modal-content",dangerouslySetInnerHTML:{__html:e.readme}})}})]};function I(e,t,n,r,c,o,a){try{var i=e[o](a),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(r,c)}function R(e){return function(){var t=this,n=arguments;return new Promise((function(r,c){var o=e.apply(t,n);function a(e){I(o,r,c,a,i,"next",e)}function i(e){I(o,r,c,a,i,"throw",e)}a(void 0)}))}}function U(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,c=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){c=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(c)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return F(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 F(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 F(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 B=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=Object(r.useState)(!1),c=U(n,2),o=c[0],i=c[1],l=Object(r.useState)(!1),u=U(l,2),s=u[0],f=u[1],d=ctDashboardLocalizations.plugin_data.is_pro,m=function(){var n=R(regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(d||!e.config.pro){n.next=3;break}return f(!0),n.abrupt("return");case 3:return(r=new FormData).append("ext",e.name),r.append("action",e.__object?"blocksy_extension_deactivate":"blocksy_extension_activate"),i(!0),n.prev=7,n.next=10,fetch(ctDashboardLocalizations.ajax_url,{method:"POST",body:r});case 10:e.config.require_refresh&&location.reload(),t(),n.next=16;break;case 14:n.prev=14,n.t0=n.catch(7);case 16:i(!1);case 17:case"end":return n.stop()}}),n,null,[[7,14]])})));return function(){return n.apply(this,arguments)}}();return[o,m,!d&&e.config.pro?Object(r.createElement)(M,{items:s,onDismiss:function(){return f(!1)},render:function(){return Object(r.createElement)("div",{className:"ct-activation-action-modal"},Object(r.createElement)("svg",{viewBox:"0 0 59.99 60"},Object(r.createElement)("path",{d:"M14.41 43.65c0 .13.08.27.11.41a5.91 5.91 0 010 2.37c-1.78 1.14-3.2 1.19-4.34.68-2.83-1.27-3.81-6-3.81-6s.38-.08 1-.15a6.08 6.08 0 012.64.91 4.17 4.17 0 01-.22-1 6.47 6.47 0 013.2 1 8.14 8.14 0 01.35-5 12.74 12.74 0 01.65-1.62s8.51 4.32 3 9.27a5.81 5.81 0 01-2.34-.68 2 2 0 01-.24-.19zM7.17 15.93q.2.22.42.45a5.74 5.74 0 002.68-.74 5.51 5.51 0 00-.28 2.76 6.79 6.79 0 001.47.81c5 1.94 6.91-5.79 6.91-5.79a13.35 13.35 0 00-4.5-.26 5.64 5.64 0 00-2.15.72 4.42 4.42 0 00.23-.81c.51-2.62-.94-5.82-.94-5.82a13.76 13.76 0 00-2.44 1.51c-2 1.51-4 4-1.53 7a.65.65 0 00.13.17zm.93 16.56a6.7 6.7 0 00.84.76c7.28-1.28 2.36-9.46 2.36-9.46a14.28 14.28 0 00-2.18 1.69 7.39 7.39 0 00-2.13 3.35v-1.19a5.49 5.49 0 00-1.27-1.71 12.75 12.75 0 00-3.94-2.44 13.32 13.32 0 00-.39 1.37c-.49 2-.91 5.69 1.85 7a4.83 4.83 0 001.75.46 8.25 8.25 0 00.86 0 6.45 6.45 0 001.14-1.76 4.41 4.41 0 001.11 1.93zM18.79 9.27c6 1.85 8.82-7.61 8.82-7.61a17.44 17.44 0 00-6.1-.58c-2.92.35-5.71 1.92-5.33 6.76a8.42 8.42 0 002.61 1.43zM49.6 40.93a6.08 6.08 0 00-2.64.91 4.21 4.21 0 00.22-1 11.57 11.57 0 00-1.19-5.59 13.88 13.88 0 00-2.36 1.58c-1.87 1.58-3.82 4.16-1.33 7 .06.08.13.15.2.23s.29.3.46.45a5.69 5.69 0 002.65-.86 5.82 5.82 0 00-.14 2.78 6.75 6.75 0 001.34.68c5.16 1.94 6.81-6 6.81-6a13.28 13.28 0 00-4.02-.18zm-6.49-27.77a10.69 10.69 0 00-1.5.26s1.15 4.53 3.91 5.79c1.18.54 2.66.47 4.47-.81a5.88 5.88 0 00-.16-2.47 1.42 1.42 0 00-.1-.29l.23.13a6 6 0 002.45.61c5.24-5.19-3.42-9.13-3.42-9.13a13.57 13.57 0 00-.54 1.51 8.37 8.37 0 00-.17 5.12 6.62 6.62 0 00-3.29-.81 12.09 12.09 0 00-1.88.09zm15.13 10.33a13.53 13.53 0 00-2.61 1.37 7.1 7.1 0 00-2.64 2.78v1.18a6.69 6.69 0 00-1.73-2.89 13.85 13.85 0 00-2.62-2.14 13.17 13.17 0 00-.82 1.69c-.83 2-1.65 5.4 1 7a6.4 6.4 0 002.16.76 7.35 7.35 0 001-.93 4.26 4.26 0 001-1.76 6.06 6.06 0 00.76 1.3 6.25 6.25 0 00.4.5c7.43.09 4.1-8.86 4.1-8.86zM38.19 9.27c1.55.52 3.41.27 5.61-1.43.51-6.56-4.81-7.11-8.33-6.76a19.24 19.24 0 00-3.1.58S34.25 8 38.19 9.27zM41.99 54h-3v-6a2 2 0 00-2-2h-14a2 2 0 00-2 2v6h-3a2 2 0 00-2 2v3h28v-3a2 2 0 00-2-2zM25.76 21.65l-5.77.84a1 1 0 00-.81.68 1 1 0 00.26 1l4.19 4.11a1 1 0 01.28.88l-.92 5.44-.07.4a1 1 0 00.4 1 1 1 0 001.06.07l3.55-1.88 1.6-.85a1 1 0 01.94 0l2.4 1.27 2.75 1.46a1 1 0 001.05-.07 1 1 0 00.4-1l-1-5.81a1 1 0 01.28-.88l4.19-4.11a1 1 0 00.26-1 1 1 0 00-.81-.68l-5.78-.84a1 1 0 01-.75-.55l-2.57-5.3a1 1 0 00-1.8 0l-1.17 2.39-1.41 2.88a1 1 0 01-.75.55z",fill:"#ffa800"}),Object(r.createElement)("path",{d:"M19.99 22.49l5.78-.84a1 1 0 00.75-.55l1.41-2.88 1.41 2.88a1 1 0 00.75.55l5.78.84a1 1 0 01.56 1.71l-4.19 4.11a1 1 0 00-.29.88l.92 5.4-2.4-1.27a1 1 0 00-.94 0l-1.6.85-1.6-.85a1 1 0 00-.93 0l-2.41 1.28.92-5.41a1 1 0 00-.28-.88l-4.2-4.11a1 1 0 01-.26-1 1 1 0 01.82-.71zm-13 8.07a4.41 4.41 0 001.14 1.93c2.67-1.61 1.85-5 1-7a7.39 7.39 0 00-2.14 3.34 3.49 3.49 0 000 1.7zm11.8-21.29c3.94-1.27 5.82-7.61 5.82-7.61a19.24 19.24 0 00-3.1-.58c-2.92.35-5.71 1.92-5.33 6.76a8.42 8.42 0 002.61 1.43zm-7.31 9.94c2.76-1.26 3.91-5.79 3.91-5.79a10.69 10.69 0 00-1.5-.26 12.35 12.35 0 00-1.9-.09 4.42 4.42 0 01-.23.81 3.48 3.48 0 00-1.46 1.75 5.51 5.51 0 00-.31 2.77 6.79 6.79 0 001.49.81zm37.4 13.28a4.41 4.41 0 001.11-1.93 3.57 3.57 0 000-1.72 7.31 7.31 0 00-2.17-3.34c-.83 2.02-1.61 5.38 1.06 6.99zM45.5 19.21a6.79 6.79 0 001.49-.81 5.51 5.51 0 00-.26-2.76 3.53 3.53 0 00-1.46-1.75 5.79 5.79 0 00-2.13-.72 10.69 10.69 0 00-1.5.26s1.1 4.57 3.86 5.78zm-7.31-9.94a8.42 8.42 0 002.61-1.43c.38-4.84-2.41-6.41-5.33-6.76a19.24 19.24 0 00-3.1.58S34.25 8 38.19 9.27zm8.8 32.57l-1.4 1.8a5.82 5.82 0 00-.14 2.78 6.75 6.75 0 001.34.68c2.83-1.27 3.81-6 3.81-6s-.38-.08-1-.15a6.08 6.08 0 00-2.61.89zm1.42-33.08a8.37 8.37 0 00-.17 5.12l1.46 1.75a1.42 1.42 0 01.1.29.65.65 0 00.13-.16c2.48-2.97.44-5.49-1.52-7zm-6.15 35.08a1.92 1.92 0 00.31-.18 3.55 3.55 0 001.42-1.79 8.1 8.1 0 00-.35-5c-1.92 1.54-3.87 4.13-1.38 6.97zm13.37-19a7.1 7.1 0 00-2.64 2.8v2.91a6.06 6.06 0 00.76 1.3c2.79-1.3 2.37-4.98 1.88-6.99zM11.41 43.65l-1.34-1.75a6.08 6.08 0 00-2.64-.91c-.6.07-1 .15-1 .15s1 4.77 3.81 6a6.75 6.75 0 001.34-.68 5.82 5.82 0 00-.14-2.78zM38.99 54h-3v-6a2 2 0 00-2-2h-11a2 2 0 00-2 2v6h-3a2 2 0 00-2 2v3h25v-3a2 2 0 00-2-2zm-25.6-17.17a8.14 8.14 0 00-.35 5 3.45 3.45 0 001.31 1.72h.05c0 .13.08.27.11.41.07-.08.14-.15.2-.23 2.5-2.73.55-5.32-1.32-6.9z",fill:"#fedd0a"}),Object(r.createElement)("path",{d:"M16.18 7.84C15.8 3 18.59 1.43 21.51 1.08a14.84 14.84 0 013 0C21.6 1.44 18.82 3 19.2 7.84a8.42 8.42 0 002.59 1.43 4.81 4.81 0 01-3 0 8.42 8.42 0 01-2.61-1.43zm-7.61.92c-2 1.51-4 4-1.53 7a.65.65 0 00.13.16q.2.22.42.45a5.91 5.91 0 002.4-.61c-2.45-3-.42-5.49 1.54-7a13.57 13.57 0 00-.54-1.51 13.76 13.76 0 00-2.42 1.51zM15.99 56v3h3v-3a2 2 0 012-2h-3a2 2 0 00-2 2zm7-10a2 2 0 00-2 2v6h3v-6a2 2 0 012-2zM4.35 24.86a13.53 13.53 0 00-2.61-1.37 13.32 13.32 0 00-.39 1.37c-.49 2-.91 5.69 1.85 7a4.83 4.83 0 001.79.46 8.25 8.25 0 00.86 0 5.84 5.84 0 00.4-.5c-2.81-1.27-2.39-4.95-1.9-6.96z",fill:"#fff"}),Object(r.createElement)("path",{d:"M59.18 23.14a1 1 0 00-1.29-.59 14.74 14.74 0 00-3.85 2.26 24.35 24.35 0 00-.45-3.4 23.39 23.39 0 00-1.21-4 1 1 0 00.71-.29 5.42 5.42 0 001.9-4.91c-.64-3.56-5.44-5.78-5.65-5.87a1 1 0 00-1.32.5 14.57 14.57 0 00-.85 2.6 26.55 26.55 0 00-2.37-2.12 6.66 6.66 0 00-2.23-5.7C38.99-1.31 32.36.61 32.08.7a1 1 0 00-.59.48 1 1 0 00-.08.76c.08.28 2.09 6.87 6.51 8.3a5.84 5.84 0 001.74.27 7.41 7.41 0 004.15-1.44 22.7 22.7 0 013.1 3 1.48 1.48 0 000 .21 13.38 13.38 0 00-5.58.15 1 1 0 00-.72 1.21c.06.22 1.39 5.34 4.79 6.59a4.42 4.42 0 001.55.28 6.3 6.3 0 003.59-1.31 1.2 1.2 0 00.26-.29 22.46 22.46 0 01.82 2.88 21.37 21.37 0 01.43 3.47 15 15 0 00-2.86-2.35 1 1 0 00-1.38.34c-.11.2-2.81 4.75-1.3 8a5.31 5.31 0 004.07 2.87c-.08.21-.15.42-.24.63a21.75 21.75 0 01-2.25 4 14.51 14.51 0 00-1.26-4 1 1 0 00-.58-.5 1 1 0 00-.76.06c-.2.1-4.9 2.53-5.38 6.11a5.19 5.19 0 001.7 4.37 22.47 22.47 0 01-2.46 1.34A3 3 0 0036.99 45h-6V34.73l4.15 2.2a2.1 2.1 0 00.94.23 2 2 0 002-2.33l-1-5.81 4.2-4.11a2 2 0 00-1.12-3.4l-5.78-.85-2.59-5.26a2 2 0 00-3.6 0l-2.58 5.26-5.77.85a2 2 0 00-1.11 3.4L22.92 29l-1 5.81a2 2 0 00.8 1.94 2 2 0 002.11.15l4.16-2.17V45h-6a3 3 0 00-2.37 1.18 21 21 0 01-2.46-1.35 5.16 5.16 0 001.7-4.36c-.48-3.58-5.18-6-5.38-6.11a1 1 0 00-.76-.06 1 1 0 00-.58.5 14.38 14.38 0 00-1.26 4 21.11 21.11 0 01-2.25-4c-.09-.21-.16-.42-.24-.64a5.26 5.26 0 004.07-2.86c1.51-3.29-1.19-7.84-1.3-8a1 1 0 00-1.38-.34 15 15 0 00-2.86 2.35 21.37 21.37 0 01.43-3.47 22.46 22.46 0 01.82-2.88 1.2 1.2 0 00.26.29 6.3 6.3 0 003.56 1.28 4.42 4.42 0 001.55-.28c3.4-1.25 4.73-6.37 4.79-6.59a1 1 0 00-.72-1.21 13.57 13.57 0 00-5.58-.15 1.48 1.48 0 000-.21 22.7 22.7 0 013.1-3 7.39 7.39 0 004.15 1.44 5.73 5.73 0 001.73-.27c4.43-1.43 6.44-8 6.52-8.3a1 1 0 00-.08-.76 1 1 0 00-.55-.5c-.28-.09-6.89-2-10.51.92a6.66 6.66 0 00-2.23 5.7 26.55 26.55 0 00-2.37 2.12 14.57 14.57 0 00-.8-2.6 1 1 0 00-1.32-.5c-.2.09-5 2.31-5.65 5.87a5.42 5.42 0 001.91 4.88 1 1 0 00.71.29 23.65 23.65 0 00-1.21 4 24.35 24.35 0 00-.44 3.43 14.74 14.74 0 00-3.9-2.26 1 1 0 00-1.29.59c-.08.21-1.89 5.18.19 8.14a5.37 5.37 0 004.71 2.08h.11a1 1 0 00.73-.36c.09-.1.16-.22.25-.33a24.67 24.67 0 001 2.89 23.67 23.67 0 002.4 4.32 14.22 14.22 0 00-4 .19 1 1 0 00-.77 1.18c0 .22 1.15 5.4 4.49 6.8a4.41 4.41 0 001.75.35 6.4 6.4 0 003.43-1.15 1 1 0 00.44-.64 6.59 6.59 0 00.11-1.08l.84.59a23 23 0 003.51 1.97V53h-2a3 3 0 00-3 3v3a1 1 0 001 1h28a1 1 0 001-1v-3a3 3 0 00-3-3h-2v-4.91a23 23 0 003.51-1.94c.29-.19.56-.41.84-.62a7 7 0 00.11 1.11 1 1 0 00.44.64 6.4 6.4 0 003.43 1.15 4.41 4.41 0 001.75-.35c3.34-1.4 4.45-6.58 4.49-6.8a1 1 0 00-.77-1.18 14.22 14.22 0 00-4-.19 23.67 23.67 0 002.4-4.32 24.67 24.67 0 001-2.89c.09.11.16.23.25.33a1 1 0 00.73.33h.11a5.37 5.37 0 004.71-2.08c2.08-2.96.27-7.93.19-8.14zM38.65 6a22.22 22.22 0 013.4 1.82 4.32 4.32 0 01-3.51.53c-2.55-.82-4.18-4.24-4.86-6 1.81-.38 5.57-.88 7.65.81a4.12 4.12 0 011.42 2.71 23.48 23.48 0 00-3.33-1.75 1 1 0 00-1.31.53A1 1 0 0038.65 6zm-20-2.8c2.08-1.71 5.84-1.2 7.65-.83-.68 1.72-2.31 5.14-4.86 6a4.32 4.32 0 01-3.51-.53A22.22 22.22 0 0121.33 6a1 1 0 00.54-1.31 1 1 0 00-1.31-.53 24 24 0 00-3.33 1.75 4.12 4.12 0 011.42-2.73zM5.92 30.41a5.66 5.66 0 01-.58.94 3.27 3.27 0 01-2.71-1.21c-1-1.37-.65-3.75-.26-5.28a8.32 8.32 0 013.62 3.05v.61a4.45 4.45 0 00-.15.9 4.12 4.12 0 00.08.99zm6-15.39c1.25-1.11 3.66-1 5.21-.83-.55 1.47-1.64 3.61-3.21 4.18a3.23 3.23 0 01-2.93-.54 3.27 3.27 0 01.89-2.83zm-4.93-2.45c.29-1.65 2.21-3.11 3.56-3.91a8.35 8.35 0 01.38 4.61 3.81 3.81 0 00-.32.24 4.52 4.52 0 00-1.05 1.37 3.53 3.53 0 01-.56.25h-.01a4.51 4.51 0 01-.95.22 3.26 3.26 0 01-1.05-2.78zm.91 17c.09-1.7 1.78-3.37 3.09-4.32.66 1.42 1.4 3.7.7 5.23a3.23 3.23 0 01-2.43 1.69 3.25 3.25 0 01-1.41-2.63zm5.78 16.29a3.26 3.26 0 01-2.94.41c-1.55-.65-2.55-2.84-3-4.34a8.39 8.39 0 014.58.65 2.92 2.92 0 00.17.36 4.51 4.51 0 001.1 1.32 4.53 4.53 0 01.04 1.57zm3.08-2.36a5 5 0 01-.85-.21h-.08A2.84 2.84 0 0114.16 42c-.8-1.46-.22-3.8.34-5.27 1.32.86 3.16 2.4 3.38 4.06a3.28 3.28 0 01-1.17 2.68zm7.19-8.3l1-5.8a2 2 0 00-.57-1.77l-4.19-4.11 5.77-.85a2 2 0 001.51-1.1l2.52-5.3 2.58 5.27a2 2 0 001.51 1.1l5.77.84-4.19 4.12a2 2 0 00-.57 1.76l1 5.8-5.15-2.73a2 2 0 00-1.88 0zM21.99 48a1 1 0 011-1h14a1 1 0 011 1v5h-16zm20 7a1 1 0 011 1v2h-26v-2a1 1 0 011-1h24zm3.83-13a2.84 2.84 0 01-1.62 1.28h-.07a6.37 6.37 0 01-.86.21 3.28 3.28 0 01-1.17-2.73c.22-1.66 2.06-3.2 3.38-4.06.56 1.45 1.14 3.79.34 5.3zm6.5-.05c-.48 1.5-1.48 3.69-3 4.34a3.26 3.26 0 01-2.94-.41 4.53 4.53 0 01.12-1.6 4.51 4.51 0 001.1-1.32c.07-.12.11-.24.17-.36a8.39 8.39 0 014.55-.7zM46.1 18.37c-1.57-.57-2.66-2.71-3.21-4.18 1.55-.22 4-.28 5.21.83a3.27 3.27 0 01.89 2.81 3.26 3.26 0 01-2.89.54zm4.67 13.8a3.23 3.23 0 01-2.43-1.69c-.7-1.52 0-3.8.71-5.23 1.25.95 3 2.62 3.08 4.29a3.25 3.25 0 01-1.36 2.63zm1.22-16.82a4.75 4.75 0 01-1-.22 3.87 3.87 0 01-.55-.25 4.52 4.52 0 00-1-1.37 3.81 3.81 0 00-.32-.24 8.45 8.45 0 01.38-4.61c1.35.8 3.27 2.25 3.56 3.9a3.27 3.27 0 01-1.07 2.79zm5.36 14.79a3.27 3.27 0 01-2.71 1.21 5.66 5.66 0 01-.58-.94 4.09 4.09 0 00.06-1 5.28 5.28 0 00-.15-.9v-.6a8.37 8.37 0 013.6-3.06c.42 1.54.74 3.92-.22 5.29zM33.99 50a1 1 0 01-1 1h-6a1 1 0 010-2h6a1 1 0 011 1z"})),Object(r.createElement)("h2",null,"Upgrade to Pro"),Object(r.createElement)("p",null,Object(a.__)("Upgrade to the Pro version and get instant full access to all premium extensions and features.","blc")),Object(r.createElement)("button",{className:"ct-button-primary"},Object(a.__)("Upgrade Now","blc")))}}):null]},V=function(){return ctDashboardLocalizations.plugin_data.hide_support_section?null:Object(r.createElement)("div",{className:"ct-support-container"},Object(r.createElement)("h2",null,Object(a.__)("Support","blc")),Object(r.createElement)("p",null,Object(a.__)("Got a question or need some help with the theme? You can always submit a support ticket, and our team will help you out.","blc")),Object(r.createElement)("a",{href:ctDashboardLocalizations.support_url,className:"ct-button","data-hover":"blue",target:"_blank"},Object(a.__)("Submit a Ticket","blc")))};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 H(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){W(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 W(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $(e,t,n,r,c,o,a){try{var i=e[o](a),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(r,c)}function Z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,c=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){c=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(c)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return K(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 K(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 K(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 G=null,Y=function(e){var t=e.extension,n=e.onExtsSync,c=Z(T(t),2),o=c[0],i=c[1],u=Z(B(t,(function(){n()})),3),s=u[0],f=u[1],d=u[2];return Object(r.createElement)("li",{className:l()({active:!!t.__object})},Object(r.createElement)("h4",{className:"ct-extension-title"},t.config.name,s&&Object(r.createElement)("svg",{width:"15",height:"15",viewBox:"0 0 100 100"},Object(r.createElement)("g",{transform:"translate(50,50)"},Object(r.createElement)("g",{transform:"scale(1)"},Object(r.createElement)("circle",{cx:"0",cy:"0",r:"50",fill:"#687c93"}),Object(r.createElement)("circle",{cx:"0",cy:"-26",r:"12",fill:"#ffffff",transform:"rotate(161.634)"},Object(r.createElement)("animateTransform",{attributeName:"transform",type:"rotate",calcMode:"linear",values:"0 0 0;360 0 0",keyTimes:"0;1",dur:"1s",begin:"0s",repeatCount:"indefinite"})))))),t.config.description&&Object(r.createElement)("div",{className:"ct-extension-description"},t.config.description),Object(r.createElement)("div",{className:"ct-extension-actions"},Object(r.createElement)("button",{className:l()(t.__object?"ct-button":"ct-button-primary"),"data-hover":"white",disabled:s,onClick:function(){f()}},t.__object?Object(a.__)("Deactivate","blc"):Object(a.__)("Activate","blc")),t.readme&&Object(r.createElement)("button",{onClick:function(){return o()},className:"ct-minimal-button ct-instruction"},Object(r.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 24 24"},Object(r.createElement)("path",{d:"M12,2C6.477,2,2,6.477,2,12s4.477,10,10,10s10-4.477,10-10S17.523,2,12,2z M12,17L12,17c-0.552,0-1-0.448-1-1v-4 c0-0.552,0.448-1,1-1h0c0.552,0,1,0.448,1,1v4C13,16.552,12.552,17,12,17z M12.5,9h-1C11.224,9,11,8.776,11,8.5v-1 C11,7.224,11.224,7,11.5,7h1C12.776,7,13,7.224,13,7.5v1C13,8.776,12.776,9,12.5,9z"}))),t.__object&&t.config&&t.config.buttons&&t.config.buttons.map((function(e,t){var n=e.text,c=e.url;return Object(r.createElement)("a",{href:c,className:"ct-button ct-config-btn",dataButton:"white"},n)}))),i,d)},J=function(){var e=Z(Object(r.useState)(!G),2),t=e[0],n=e[1],c=Z(Object(r.useState)(G||[]),2),i=c[0],u=c[1],s=Z(Object(r.useState)(!1),2),f=s[0],d=s[1],m=Z(Object(r.useState)("free"),2),b=m[0],p=m[1],h=function(){var e,t=(e=regeneratorRuntime.mark((function e(){var t,r,c,o,a,i,l,s,f,m=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=m.length>0&&void 0!==m[0]?m[0]:{},r=H({verbose:!1,extension:null,extAction:null},t),c=r.verbose,o=r.extension,a=r.extAction,c&&n(!0),d(!0),e.prev=4,e.next=7,fetch("".concat(wp.ajax.settings.url,"?action=blocksy_extensions_status"),H({method:"POST"},o&&a?{body:JSON.stringify({extension:o,extAction:a})}:{}));case 7:if(200!==(i=e.sent).status){e.next=15;break}return e.next=11,i.json();case 11:l=e.sent,s=l.success,f=l.data,s&&(u(f),G=f);case 15:e.next=19;break;case 17:e.prev=17,e.t0=e.catch(4);case 19:d(!1),n(!1);case 21:case"end":return e.stop()}}),e,null,[[4,17]])})),function(){var t=this,n=arguments;return new Promise((function(r,c){var o=e.apply(t,n);function a(e){$(o,r,c,a,i,"next",e)}function i(e){$(o,r,c,a,i,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();Object(r.useEffect)((function(){h({verbose:!G});var e=function(){h()};return o.a.on("blocksy_exts_sync_exts",e),function(){o.a.off("blocksy_exts_sync_exts",e)}}),[]);var v=Object(r.useMemo)((function(){return Object.values(i).map((function(e,t){return H(H({},e),{},{name:Object.keys(i)[t]})})).find((function(e){return e.config.pro}))}),[i]),y=Object(r.useMemo)((function(){return Object.values(i).map((function(e,t){return H(H({},e),{},{name:Object.keys(i)[t]})})).filter((function(e){return!e.config.hidden})).filter((function(e){var t=e.config;return"free"===b?!t.pro:t.pro}))}),[b,i]);return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"ct-extensions-container"},Object(r.createElement)(A.Transition,{items:t,from:{opacity:0},enter:[{opacity:1}],leave:[{opacity:0}],initial:null,config:function(e,t){return"leave"===t?{duration:300}:{delay:300,duration:300}}},(function(e){return e?function(e){return Object(r.createElement)(A.animated.p,{style:e,className:"ct-loading-text"},Object(r.createElement)("span",null),Object(a.__)("Loading Extensions Status...","blc"))}:function(e){return Object(r.createElement)(A.animated.div,{style:e},Object(r.createElement)(r.Fragment,null,v&&Object(r.createElement)("ul",{className:"ct-extensions-sourse"},["free","pro"].map((function(e){return Object(r.createElement)("li",{key:e,onClick:function(){return p(e)},className:l()({active:e===b})},{free:Object(a.__)("Free Extensions","blc"),pro:Object(a.__)("Pro Extensions","blc")}[e])}))),Object(r.createElement)("ul",{className:l()("ct-extensions-list",{"is-pro":"pro"===b})},y.map((function(e){var t={extension:Y};return o.a.trigger("ct:extensions:card",{CustomComponent:t,extension:e}),Object(r.createElement)(t.extension,{key:e.name,extension:e,extsSyncLoading:f,onExtsSync:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i[e.name].__object=!i[e.name].__object,u(i),h(H(H({},t),{},{extension:e.name}))}})}))),Object(r.createElement)(V,null)))}}))))},X=window.ctDashboardLocalizations.DashboardContext,Q=(X.Provider,X.Consumer,X),ee=function(e){var t=e.children,n=e.activated,c=e.checked,o=e.onChange;return Object(r.createElement)("div",{onClick:function(){return o()},className:l()("ct-checkbox-container",{activated:n})},t,Object(r.createElement)("span",{className:l()("ct-checkbox",{active:c})},Object(r.createElement)("svg",{width:"10",height:"8",viewBox:"0 0 11.2 9.1"},Object(r.createElement)("polyline",{class:"check",points:"1.2,4.8 4.4,7.9 9.9,1.2 "}))))};function te(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 ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?te(Object(n),!0).forEach((function(t){re(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function re(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ce(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,c=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){c=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(c)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return oe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oe(e,t)}(e,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 oe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ae=function(e){return({coblocks:"CoBlocks","contact-form-7":"Contact Form 7",woocommerce:"WooCommerce",elementor:"Elementor",brizy:"Brizy",getwid:"Getwid","wpforms-lite":"WPForms - Contact Form","stackable-ultimate-gutenberg-blocks":"Stackable – Gutenberg Blocks"}[e]||e).replace(/\b\w/,(function(e){return e.toUpperCase()}))},ie=function(e){var t=e.demoConfiguration,n=e.setDemoConfiguration,c=e.style,o=Object(r.useContext)(Ye),i=o.currentDemo,l=o.demos_list,u=o.pluginsStatus,s=(o.setCurrentDemo,ce((i||"").split(":"),2)),f=s[0];s[1],l.filter((function(e){return e.name===f||""}));return Object(r.createElement)("div",{style:c},Object(r.createElement)("div",{className:"ct-demo-plugins"},Object(r.createElement)("i",{className:"ct-demo-icon"},Object(r.createElement)("svg",{width:"40",height:"40",viewBox:"0 0 40 40"},Object(r.createElement)("path",{fill:"#0C7AB3",d:"M20,0v7.6c0,0.3-0.2,0.5-0.5,0.5h-1.5c0,0,0,0,0,0c0,0,0,0-0.1,0c0,0,0,0-0.1,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c-0.5-0.7-1.3-1.1-2.1-1.1c-1.5,0-2.6,1.2-2.6,2.6c0,1.5,1.2,2.6,2.6,2.6c0.8,0,1.6-0.4,2.1-1.1c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0.1,0c0,0,0,0,0.1,0c0,0,0,0,0,0h1.5c0,0,0,0,0,0c0.3,0,0.5,0.2,0.5,0.5V20h8.1v-0.8c-0.8-0.7-1.3-1.7-1.3-2.8c0-2,1.7-3.7,3.7-3.7c2,0,3.7,1.7,3.7,3.7c0,1.1-0.5,2.1-1.3,2.8V20H40C40,9,31,0,20,0z"}),Object(r.createElement)("path",{fill:"#3497D3",d:"M20,40v-7.6c0-0.3,0.2-0.5,0.5-0.5h1.5c0,0,0,0,0,0c0,0,0,0,0.1,0c0,0,0,0,0.1,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0.5,0.7,1.3,1.1,2.1,1.1c1.5,0,2.6-1.2,2.6-2.6c0-1.5-1.2-2.6-2.6-2.6c-0.8,0-1.6,0.4-2.1,1.1c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0-0.1,0c0,0,0,0-0.1,0c0,0,0,0,0,0h-1.5c0,0,0,0,0,0c-0.3,0-0.5-0.2-0.5-0.5V20h-8.1v0.8c0.8,0.7,1.3,1.7,1.3,2.8c0,2-1.7,3.7-3.7,3.7c-2,0-3.7-1.7-3.7-3.7c0-1.1,0.5-2.1,1.3-2.8V20H0C0,31,9,40,20,40z"}))),Object(r.createElement)("h2",null,Object(a.__)("Install & Activate Plugins","blc")),Object(r.createElement)("p",null,Object(a.__)("The following plugins are required for this starter site in order to work properly.","blc")),t.plugins.map((function(e){var c=e.plugin,o=e.enabled;return Object(r.createElement)(r.Fragment,{key:c},!u[c]&&Object(r.createElement)(ee,{key:c,checked:o,onChange:function(){return n(ne(ne({},t),{},{plugins:t.plugins.map((function(e){return e.plugin===c?ne(ne({},e),{},{enabled:!o}):e}))}))}},ae(c)),u[c]&&Object(r.createElement)(ee,{activated:!0,checked:!0,onChange:function(){}},ae(c)))}))))},le=function(){var e=Object(r.useContext)(Ye),t=e.currentlyInstalledDemo,n=e.demos_list,c=e.setCurrentDemo,o=e.demo_error;Object(r.useContext)(Q).Link;return Object(r.createElement)("ul",null,n.filter((function(e,t){return n.map((function(e){return e.name})).indexOf(e.name)===t})).map((function(e){return Object(r.createElement)("li",{key:e.name,className:l()("ct-single-demo",{"ct-is-pro":e.is_pro})},Object(r.createElement)("figure",null,Object(r.createElement)("img",{src:e.screenshot}),Object(r.createElement)("section",null,Object(r.createElement)("h3",null,Object(a.__)("Available for","blc")),Object(r.createElement)("div",null,n.filter((function(t){return t.name===e.name||""})).sort((function(e,t){return e.builder<t.builder?-1:e.builder>t.builder?1:0})).map((function(e){var t=e.builder;return Object(r.createElement)("span",{key:t},ae(t)||"Gutenberg")})))),e.is_pro&&Object(r.createElement)("a",{onClick:function(e){return e.preventDefault()},href:"#"},"PRO")),Object(r.createElement)("div",{className:"ct-demo-actions"},Object(r.createElement)("h4",null,e.name),Object(r.createElement)("div",null,Object(r.createElement)("a",{className:"ct-button",target:"_blank",href:e.url},Object(a.__)("Preview","blc")),Object(r.createElement)("button",{className:"ct-button-primary",onClick:function(){return c(e.name)},disabled:!!o},t&&t.demo.indexOf(e.name)>-1?Object(a.__)("Modify","blc"):Object(a.__)("Import","blc")))))})))};function ue(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,c=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){c=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(c)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return se(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 se(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 se(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 fe=function(e){var t=e.style,n=e.nextStep,c=(Object(r.useContext)(Q).is_child_theme,Object(r.useContext)(Ye)),o=c.setCurrentlyInstalledDemo,i=c.setCurrentDemo,l=c.currentDemo,u=c.demos_list,s=ue(Object(r.useState)(0),2),f=s[0],d=s[1],m=ue(Object(r.useState)("idle"),2),b=m[0],p=m[1],h=ue((l||"").split(":"),2),v=h[0],y=(h[1],u.filter((function(e){return e.name===v}))),O={erase_content:{title:Object(a.__)("Erase content","blc"),query_string:"action=blocksy_demo_erase_content&wp_customize=on"},deactivate_demo_plugins:{title:Object(a.__)("Deactivate demo plugins","blc"),query_string:"action=blocksy_demo_deactivate_plugins&plugins=".concat(y[0].plugins.join(":"))},deregister_current_demo:{title:Object(a.__)("Erase content","blc"),query_string:"action=blocksy_demo_deregister_current_demo"}},j=["erase_content","deactivate_demo_plugins","deregister_current_demo"],g=j[f],_=function(){var e=O[g],t=new EventSource("".concat(ctDashboardLocalizations.ajax_url,"?").concat(e.query_string));t.onmessage=function(e){if("complete"===JSON.parse(e.data).action){if(t&&t.close&&t.close(),f===j.length-1)return void p("done");d(Math.min(j.length-1,f+1))}}};return Object(r.useEffect)((function(){0!==f&&"done"!==b&&_()}),[g]),Object(r.createElement)("div",{className:"ct-modify-demo",style:t},Object(r.createElement)("i",{className:"ct-demo-icon"},Object(r.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 40 40"},Object(r.createElement)("path",{d:"M5.71,40a1,1,0,0,1-1-1V21.59a1,1,0,0,1,1.91,0V39.05A1,1,0,0,1,5.71,40Zm1-31.83V1.07A1,1,0,0,0,5.71,0a1,1,0,0,0-1,1.07v7.1a1,1,0,0,0,1,1.07A1,1,0,0,0,6.67,8.17ZM21,39.05V34.29a1,1,0,1,0-1.9,0v4.76a1,1,0,1,0,1.9,0Zm0-18.14V1a1,1,0,1,0-1.9,0V20.91a1,1,0,1,0,1.9,0ZM35.24,39.05V26.35a1,1,0,0,0-1.91,0v12.7a1,1,0,0,0,1.91,0Zm0-26.25V1a1,1,0,1,0-1.91,0V12.8a1,1,0,1,0,1.91,0Z",transform:"translate(-0.71)",fill:"#dae3e8"}),Object(r.createElement)("path",{d:"M5.71,18.06a5,5,0,1,1,5-5A5,5,0,0,1,5.71,18.06ZM20,30.76a5,5,0,1,1,5-5A5,5,0,0,1,20,30.76Zm14.29-7.93a5,5,0,1,1,5-5A5,5,0,0,1,34.29,22.83Z",transform:"translate(-0.71)",fill:"#0c7ab3"}))),"idle"===b&&Object(r.createElement)("h2",null,Object(a.__)("This starter site is already installed","blc")),"loading"===b&&Object(r.createElement)("h2",null,"Removing starter site..."),"done"===b&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)("h2",null,Object(a.__)("Starter Site Removed","blc")),Object(r.createElement)("div",{className:"ct-modify-actions"},Object(r.createElement)("button",{className:"ct-demo-btn ct-dismiss",onClick:function(e){e.preventDefault(),i("".concat(v,":hide"))}},Object(a.__)("Dismiss","blc")))),"idle"===b&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)("p",null,Object(a.__)("What steps do you want to perform next?","blc")),Object(r.createElement)("div",{className:"ct-modify-actions"},Object(r.createElement)("button",{className:"ct-demo-btn demo-remove",onClick:function(e){p("loading"),e.preventDefault(),_(),o()}},Object(a.__)("Remove","blc")),Object(r.createElement)("button",{className:"ct-demo-btn",onClick:function(e){e.preventDefault(),n()}},Object(a.__)("Reinstall","blc")))))};function de(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 me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?de(Object(n),!0).forEach((function(t){be(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):de(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function be(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pe=function(e){var t=e.demoConfiguration,n=e.setDemoConfiguration,c=e.style,o=Object(r.useContext)(Q),i=o.is_child_theme,l=o.child_theme_exists;return Object(r.createElement)("div",{className:"ct-demo-child",style:c},Object(r.createElement)("i",{className:"ct-demo-icon"},Object(r.createElement)("svg",{width:"40",height:"40",viewBox:"0 0 43 41.1"},Object(r.createElement)("path",{fill:"#DBE7EE",d:"M0,39.5c0,0.9,0.7,1.6,1.5,1.6h32.3c0.9,0,1.5-0.7,1.5-1.6V14H0V39.5z"}),Object(r.createElement)("path",{fill:"#BDC8D7",d:"M18.2,41.1h15.6c0.9,0,1.5-0.7,1.5-1.6V14H7.6L8,32.4L18.2,41.1z"}),Object(r.createElement)("path",{fill:"#BDC8D7",d:"M0,15.6V9.8c0-0.9,0.7-1.6,1.5-1.6h32.3c0.9,0,1.5,0.7,1.5,1.6v5.8H0z"}),Object(r.createElement)("path",{fill:"#3497D3",d:"M7.6,31.3c0,0.9,0.7,1.6,1.5,1.6h32.4c0.9,0,1.5-0.7,1.5-1.6V5.8H7.6V31.3z"}),Object(r.createElement)("path",{fill:"#0C7AB3",d:"M7.6,7.4V1.6C7.6,0.7,8.3,0,9.1,0h32.4C42.4,0,43,0.7,43,1.6v5.8H7.6z"}),Object(r.createElement)("rect",{x:"11.2",y:"11",fill:"#44ACDF",width:"16.8",height:"17.9"}),Object(r.createElement)("rect",{x:"31.5",y:"11",fill:"#44ACDF",width:"7.9",height:"17.9"}))),l?Object(r.createElement)("h2",null,Object(a.__)("Activate Child Theme","blc")):Object(r.createElement)("h2",null,Object(a.__)("Install Child Theme","blc")),!i&&Object(r.createElement)(r.Fragment,null,l?Object(r.createElement)("p",null,Object(a.__)("We strongly recommend to activate the child theme, this way you will have freedom to make changes without breaking the parent theme.","blc")):Object(r.createElement)("p",null,Object(a.__)("We strongly recommend to install the child theme, this way you will have freedom to make changes without breaking the parent theme.","blc")),Object(r.createElement)(ee,{checked:t.child_theme,onChange:function(){return n(me(me({},t),{},{child_theme:!t.child_theme}))}},l?Object(a.__)("Activate Child Theme","blc"):Object(a.__)("Install Child Theme","blc"))),i&&Object(a.__)("You already have a child theme properly installed and activated. Move on.","blc"),Object(r.createElement)("a",{href:"https://developer.wordpress.org/themes/advanced-topics/child-themes/",target:"_blank"},Object(a.__)("Learn more about child themes","blc")))};function he(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?he(Object(n),!0).forEach((function(t){ye(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):he(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ye(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,c=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){c=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(c)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return je(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 je(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 je(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 ge=function(e){var t=e.demoConfiguration,n=e.setDemoConfiguration,c=e.style,o=Object(r.useContext)(Ye),i=o.currentDemo,u=o.demos_list,s=(o.pluginsStatus,o.setCurrentDemo,Oe((i||"").split(":"),2)),f=s[0],d=(s[1],u.filter((function(e){return e.name===f||""})));return Object(r.createElement)("div",{style:c},d.length>1&&Object(r.createElement)("div",{className:"ct-demo-builder"},Object(r.createElement)("i",{className:"ct-demo-icon"},Object(r.createElement)("svg",{width:"52",height:"40",viewBox:"0 0 52 40"},Object(r.createElement)("path",{fill:"#DBE7EE",d:"M0,38.1C0,39.1,0.9,40,1.8,40h39.3c1.1,0,1.8-0.9,1.8-1.9v-31H0V38.1z"}),Object(r.createElement)("path",{fill:"#CFDBE4",d:"M13.8,14.6v18.8h22.6V14.6H13.8zM34.8,31.9H15.4V16.1h19.4V31.9z"}),Object(r.createElement)("path",{fill:"#BDC8D7",d:"M13.1,15.3L13.1,15.3c0-0.8,0.6-1.4,1.4-1.4l0,0c0.8,0,1.4,0.6,1.4,1.4l0,0c0,0.8-0.6,1.4-1.4,1.4l0,0C13.7,16.8,13.1,16.1,13.1,15.3z M34.1,15.3L34.1,15.3c0-0.8,0.6-1.4,1.4-1.4l0,0c0.8,0,1.4,0.6,1.4,1.4l0,0c0,0.8-0.6,1.4-1.4,1.4l0,0C34.8,16.8,34.1,16.1,34.1,15.3z M13.1,32.7L13.1,32.7c0-0.8,0.6-1.4,1.4-1.4l0,0c0.8,0,1.4,0.6,1.4,1.4l0,0c0,0.8-0.6,1.4-1.4,1.4l0,0C13.7,34.1,13.1,33.5,13.1,32.7z M34.1,32.7L34.1,32.7c0-0.8,0.6-1.4,1.4-1.4l0,0c0.8,0,1.4,0.6,1.4,1.4l0,0c0,0.8-0.6,1.4-1.4,1.4l0,0C34.8,34.1,34.1,33.5,34.1,32.7z M23.3,15.3L23.3,15.3c0-0.8,0.6-1.4,1.4-1.4l0,0c0.8,0,1.4,0.6,1.4,1.4l0,0c0,0.8-0.6,1.4-1.4,1.4l0,0C24,16.8,23.3,16.1,23.3,15.3z M4.2,13.9h5.9v7.9H4.2V13.9zM4.2,23.3h5.9v2.9H4.2V23.3zM0,9V1.9C0,0.9,0.9,0,1.8,0h39.3c1.1,0,1.8,0.9,1.8,1.9V9H0z M42.9,35.4V10.9h-9.3v15.2L42.9,35.4zM7.2,27.6c-1.6,0-3,1.3-3,3c0,1.6,1.3,3,3,3s3-1.3,3-3C10.2,28.9,8.8,27.6,7.2,27.6z"}),Object(r.createElement)("path",{fill:"#0C7AB3",d:"M50,27.8H35.6c-1.1,0-2-0.9-2-2v-18c0-1.1,0.9-2,2-2H50c1.1,0,2,0.9,2,2v18C52,26.9,51.1,27.8,50,27.8z"}),Object(r.createElement)("path",{fill:"#44ACDF",d:"M49,17.5H36.8c-0.7,0-1.2-0.5-1.2-1.2V9.1c0-0.7,0.5-1.2,1.2-1.2H49c0.7,0,1.2,0.5,1.2,1.2v7.3C50.2,17,49.6,17.5,49,17.5z M50.2,20.4v-0.1c0-0.5-0.4-1-1-1H36.5c-0.5,0-1,0.4-1,1v0.1c0,0.5,0.4,1,1,1h12.7C49.7,21.4,50.2,20.9,50.2,20.4z M40.8,25.2h-4.3c-0.5,0-1-0.4-1-1v-0.1c0-0.5,0.4-1,1-1h4.3c0.5,0,1,0.4,1,1v0.1C41.7,24.8,41.3,25.2,40.8,25.2z M49.2,25.2h-4.3c-0.5,0-1-0.4-1-1v-0.1c0-0.5,0.4-1,1-1h4.3c0.5,0,1,0.4,1,1v0.1C50.2,24.8,49.7,25.2,49.2,25.2z"}),Object(r.createElement)("path",{fill:"#C8E6F4",d:"M47.4,11.2h-9.1c-0.2,0-0.5-0.2-0.5-0.4v0c0-0.2,0.2-0.4,0.5-0.4h9.1c0.2,0,0.5,0.2,0.5,0.4v0C47.8,11,47.6,11.2,47.4,11.2z M47.9,14.7L47.9,14.7c0-0.2-0.2-0.5-0.5-0.5h-9.1c-0.2,0-0.4,0.2-0.4,0.4v0c0,0.2,0.2,0.4,0.4,0.4h9.1C47.7,15.1,47.9,14.9,47.9,14.7z"}),Object(r.createElement)("path",{fill:"#FFFFFF",d:"M26.3,20.8h-2.9l-2.9,7.9H23l0.3-0.7h2.8l0.3,0.7h2.7L26.3,20.8z M23.9,25.8l0.8-2.2h0l0.8,2.2H23.9zM46.5,10.7c0,0.8-0.7,1.5-1.5,1.5s-1.5-0.7-1.5-1.5c0-0.8,0.7-1.5,1.5-1.5S46.5,9.9,46.5,10.7zM42.1,14.7c0,0.8-0.7,1.5-1.5,1.5s-1.5-0.7-1.5-1.5s0.7-1.5,1.5-1.5S42.1,13.9,42.1,14.7z"}))),Object(r.createElement)("h2",null,Object(a.__)("Choose Page Builder","blc")),Object(r.createElement)("p",null,Object(a.__)("This starter site can be imported and used with one of these page builders. Please select your prefered one in order to continue.","blc")),Object(r.createElement)("ul",{"data-count":d.length},d.sort((function(e,t){return e.builder<t.builder?-1:e.builder>t.builder?1:0})).map((function(e){var c=e.builder,o=e.plugins;return Object(r.createElement)("li",{className:l()({active:c===(null===t.builder?d[0].builder:t.builder)}),onClick:function(){return n(ve(ve({},t),{},{builder:c,plugins:o.map((function(e){return{plugin:e,enabled:!0}}))}))}},Object(r.createElement)("figure",null,Object(r.createElement)("span",{className:l()("ct-checkbox",{active:c===(null===t.builder?d[0].builder:t.builder)})},Object(r.createElement)("svg",{width:"10",height:"8",viewBox:"0 0 11.2 9.1"},Object(r.createElement)("polyline",{className:"check",points:"1.2,4.8 4.4,7.9 9.9,1.2 "}))),""===c&&Object(r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 150 100"},Object(r.createElement)("path",{d:"M122.5 35.5c-1.7-1.1-4-.7-5.1 1C110.8 46.4 96.8 47 96 47h-.3c-17.4 0-24 14.8-24.3 15.4-.8 1.9.1 4 1.9 4.8.5.2 1 .3 1.5.3 1.4 0 2.7-.8 3.4-2.2.1-.1 4.6-10.3 16.3-11v19c-.5 4.1-2.4 7.3-5.8 9.7-3.6 2.5-8.3 3.8-14.1 3.8-7 0-12.7-2.4-16.9-7.2-4.3-4.8-6.4-11.5-6.4-20.2l.1-20.9c.3-7.7 2.4-13.8 6.4-18.2 4.3-4.8 9.9-7.2 16.9-7.2 5.8 0 10.6 1.3 14.1 3.8 3.6 2.5 5.6 5.9 5.9 10.3v.5c0 2.5 2.1 4.6 4.6 4.6 2.5 0 4.6-2.1 4.6-4.6v-.5c-.7-6.6-3.7-11.9-9.1-15.8-5.4-4-12.2-5.9-20.4-5.9-9.7 0-17.6 3.2-23.5 9.6-5.6 6-8.6 13.8-8.9 23.5 0 .7-.1 1.3-.1 2l.1 18.8h-.1c0 10.7 3 19.2 9 25.5 6 6.4 13.8 9.6 23.5 9.6 8.2 0 14.9-1.9 20.4-5.9 5-3.6 7.9-8.4 8.9-14.3l.2-21c6.1-1.5 14.4-4.8 19.6-12.7 1.3-1.7.8-4-1-5.1z"})),"brizy"===c&&Object(r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 150 100"},Object(r.createElement)("path",{d:"M14.6 36.7L75 0l60.4 36.7L75 73.4 14.6 36.7zm21.7.9L75 61.2l38.8-23.6L75 14 36.3 37.6z",fill:"#181c25"}),Object(r.createElement)("path",{fill:"#a7b2dd",d:"M14.6 63.2l10.8-6.5L75 86.8l49.9-30 10.5 6.4L75 100z"})),"elementor"===c&&Object(r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 150 100"},Object(r.createElement)("path",{d:"M32.5 7.6h17v84.9h-17V7.6zm34 84.9h51v-17h-51v17zm0-34h51v-17h-51v17zm0-51v17h51v-17h-51z"}))),Object(r.createElement)("div",{className:"builder-name"},ae(c)||"Gutenberg"))})))))};function _e(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?_e(Object(n),!0).forEach((function(t){we(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_e(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function we(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xe=function(e){var t=e.demoConfiguration,n=e.setDemoConfiguration,c=(e.currentDemo,e.style);return Object(r.createElement)("div",{style:c},Object(r.createElement)("i",{className:"ct-demo-icon"},Object(r.createElement)("svg",{width:"40",height:"40",viewBox:"0 0 40 40"},Object(r.createElement)("path",{d:"M25,22.67a5,5,0,0,1-10,0H0V36a3.33,3.33,0,0,0,3.33,3.33H36.67A3.33,3.33,0,0,0,40,36V22.67Z",transform:"translate(0 -0.67)",fill:"#bdc8d7"}),Object(r.createElement)("rect",{x:"2.5",y:"14",width:"35",height:"3",rx:"1.5",fill:"#0c7ab3"}),Object(r.createElement)("rect",{x:"5",y:"7",width:"30",height:"3",rx:"1.5",fill:"#3497d3"}),Object(r.createElement)("rect",{x:"7.5",width:"25",height:"3",rx:"1.5",fill:"#44acdf"}))),Object(r.createElement)("h2",null,Object(a.__)("Import Content","blc")),Object(r.createElement)("p",null,Object(a.__)("This will import posts, pages, comments, navigation menus, custom fields, terms and custom posts","blc")),["options","widgets","content"].map((function(e){return Object(r.createElement)(ee,{checked:t.content[e],onChange:function(){return n(Ee(Ee({},t),{},{content:Ee(Ee({},t.content),{},we({},e,!t.content[e]))}))},key:e},e.split("_").map((function(e){return e.replace(/^\w/,(function(e){return e.toUpperCase()}))})).join(" "))})),Object(r.createElement)("div",{className:"ct-demo-erase"},Object(r.createElement)(ee,{checked:t.content.erase_content,onChange:function(){return n(Ee(Ee({},t),{},{content:Ee(Ee({},t.content),{},{erase_content:!t.content.erase_content})}))}},Object(r.createElement)("div",null,Object(a.__)("Clean Install","blc"),Object(r.createElement)("i",null,Object(a.__)("This option will remove the previous imported content and will perform a fresh and clean install.","blc"))))))},Se=function(){var e=Object(r.useContext)(Q),t=e.home_url,n=e.customizer_url;return Object(r.createElement)("div",{className:"ct-install-success"},Object(r.createElement)("h2",null,Object(a.__)("Starter Site Imported Successfully","blc")),Object(r.createElement)("p",null,Object(a.__)("Now you can view your website or start customizing it","blc")),Object(r.createElement)("div",null,Object(r.createElement)("a",{href:n,className:"ct-button"},Object(a.__)("Customize","blc")),Object(r.createElement)("a",{href:t,target:"_blank",className:"ct-button-primary"},Object(a.__)("View site","blc"))))},Ce=function(e,t){var n=e.action;if("complete"===n)return"";if("import_install_child"===n)return Object(a.__)("copying child theme sources","blc");if("import_activate_child"===n)return Object(a.__)("activating child theme","blc");if("install_plugin"===n)return Object(a.sprintf)(Object(a.__)("installing plugin %s","blc"),ae(e.name)||e.name);if("activate_plugin"===n)return Object(a.sprintf)(Object(a.__)("activating plugin %s","blc"),ae(e.name)||e.name);if("download_demo_widgets"===n)return Object(a.__)("downloading demo widgets","blc");if("apply_demo_widgets"===n)return Object(a.__)("installing demo widgets","blc");if("download_demo_options"===n)return Object(a.__)("downloading demo options","blc");if("import_mods_images"===n)return Object(a.__)("importing images from customizer","blc");if("import_customizer_options"===n)return Object(a.__)("import customizer options","blc");if("activate_required_extensions"===n)return Object(a.__)("activating required extensions","blc");if("erase_previous_posts"===n)return Object(a.__)("removing previously installed posts","blc");if("erase_previous_terms"===n)return Object(a.__)("removing previously installed taxonomies","blc");if("erase_default_pages"===n)return Object(a.__)("removing default WordPress pages","blc");if("erase_customizer_settings"===n)return Object(a.__)("resetting customizer options","blc");if("erase_widgets_data"===n)return Object(a.__)("resetting widgets","blc");if("content_installer_progress"===n){if(!e.kind)return"";var r=t.content.preliminary_data["".concat(e.kind,"_count")],c=t.content["".concat(e.kind,"_count")];return"".concat(Math.min(c,r)," of ").concat(r," ").concat({users:Object(a.__)("users","blc"),term:Object(a.__)("terms","blc"),media:Object(a.__)("images","blc"),post:Object(a.__)("posts","blc"),comment:Object(a.__)("comments","blc")}[e.kind])}return""};function ke(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 De(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ke(Object(n),!0).forEach((function(t){ze(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ze(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ae(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,c=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){c=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(c)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Pe(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 Pe(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 Pe(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 Me=function(e){e.preventDefault(),e.returnValue=""},Ne=function(e){var t=e.demoConfiguration,n=e.pluginsStatus,r=e.is_child_theme,c=e.includeMetaSteps,o=[];return void 0!==c&&c&&o.push("register_current_demo"),t.child_theme&&(r||o.push("child_theme")),t.plugins.filter((function(e){var t=e.enabled,r=e.plugin;return!!t&&!n[r]})).length>0&&o.push("plugins"),t.content.erase_content&&o.push("erase_content"),t.content.options&&o.push("options"),t.content.widgets&&o.push("widgets"),t.content.content&&o.push("content"),o.push("install_finish"),o},Le=function(e){var t=e.demoConfiguration,n=e.style,c=function(e){var t=Object(r.useContext)(Ye),n=t.demos_list,c=t.currentDemo,o=(t.setCurrentDemo,t.setInstallerBlockingReleased),i=t.setCurrentlyInstalledDemo,l=t.pluginsStatus,u=Object(r.useContext)(Q),s=(u.home_url,u.customizer_url,u.is_child_theme),f=(u.Link,Ae(Object(r.useState)(!1),2)),d=f[0],m=f[1],b=Ae(Object(r.useState)(0),2),p=b[0],h=b[1],v=Ae((c||"").split(":"),2),y=v[0],O=(v[1],n.filter((function(e){return e.name===y})).sort((function(e,t){return e.builder<t.builder?-1:e.builder>t.builder?1:0}))),j=e.plugins.filter((function(e){var t=e.enabled,n=e.plugin;return t&&!l[n]})).map((function(e){return e.plugin})),g=Ae(Object(r.useState)({register_current_demo:{title:Object(a.__)("Register demo","blc"),query_string:"action=blocksy_demo_register_current_demo&wp_customize=on&demo_name=".concat(c,":").concat(null===e.builder?O[0].builder:e.builder),expected_signals:1},child_theme:{title:Object(a.__)("Child theme","blc"),query_string:"action=blocksy_demo_install_child_theme",expected_signals:3},plugins:{title:Object(a.__)("Required plugins","blc"),query_string:"action=blocksy_demo_activate_plugins&plugins=".concat(j.join(":")),expected_signals:2*j.length+1},fake_step:{title:Object(a.__)("Fake Required plugins","blc"),query_string:"action=blocksy_demo_fake_step",expected_signals:6},erase_content:{title:Object(a.__)("Erase content","blc"),query_string:"action=blocksy_demo_erase_content&wp_customize=on",expected_signals:6},install_finish:{title:Object(a.__)("Final touches","blc"),query_string:"action=blocksy_demo_install_finish&wp_customize=on",expected_signals:1},options:{title:Object(a.__)("Import options","blc"),query_string:"action=blocksy_demo_install_options&wp_customize=on&demo_name=".concat(c,":").concat(null===e.builder?O[0].builder:e.builder),expected_signals:5},widgets:{title:Object(a.__)("Import widgets","blc"),query_string:"action=blocksy_demo_install_widgets&wp_customize=on&demo_name=".concat(c,":").concat(null===e.builder?O[0].builder:e.builder),expected_signals:3},content:{title:Object(a.__)("Import content","blc"),query_string:"action=blocksy_demo_install_content&wp_customize=on&demo_name=".concat(c,":").concat(null===e.builder?O[0].builder:e.builder),expected_signals:50}}),2),_=g[0],E=g[1],w=Ne({demoConfiguration:e,pluginsStatus:l,is_child_theme:s,includeMetaSteps:!0}),x=w[p],S=Ae(Object(r.useState)(0),2),C=S[0],k=S[1],D=Ae(Object(r.useState)(null),2),z=D[0],A=D[1],P=Object(r.useRef)(C),M=Object(r.useRef)(_);Object(r.useEffect)((function(){P.current=C,M.current=_}));var N=function(e){return"content"===e?1===w.length?100:50:w.indexOf("content")>-1?50/(w.length-1):100/w.length},L=w.reduce((function(e,t,n){return n>=p?e:e+N(t)}),0)+100*C/_[x].expected_signals*(N(x)/100),T=function(){var e=_[x],t=new EventSource("".concat(ctDashboardLocalizations.ajax_url,"?").concat(e.query_string));t.onmessage=function(e){var n=JSON.parse(e.data);if(k(P.current+1),"content_installer_progress"===n.action){var r=n.kind;r&&(A(n),E(De(De({},M.current),{},{content:De(De({},M.current.content),{},ze({},"".concat(r,"_count"),M.current.content["".concat(r,"_count")]+1))})))}else A(n);if("get_content_preliminary_data"===n.action){var c=n.data,a=(c.comment_count,c.media_count,c.post_count,c.term_count,c.users,De(De({},n.data),{},{term_count:n.data.terms.length,post_count:n.data.posts.filter((function(e){return"attachment"!==e.post_type})).length,media_count:n.data.posts.filter((function(e){return"attachment"===e.post_type})).length,comment_count:n.data.posts.reduce((function(e,t){return e+(t.comments||[]).length}),0),users_count:Object.keys(n.data.authors).length}));E(De(De({},M.current),{},{content:De(De({},M.current.content),{},{preliminary_data:a,comment_count:0,media_count:0,post_count:0,term_count:0,users_count:0,expected_signals:a.comment_count+a.media_count+a.post_count+a.term_count+a.users_count+3})}))}if("complete"===n.action){if(t&&t.close&&t.close(),p===w.length-1)return m(!0),o(!0),void window.removeEventListener("beforeunload",Me);A(null),k(0),h(Math.min(w.length-1,p+1))}}};return Object(r.useEffect)((function(){d||(A(null),k(0),"fake_step"===x?(console.log("here we go delay before fake_step"),setTimeout((function(){T()}),2e3)):T())}),[x]),Object(r.useEffect)((function(){return window.addEventListener("beforeunload",Me),i({demo:"".concat(c,":").concat(e.builder)}),function(){window.removeEventListener("beforeunload",Me)}}),[]),{isCompleted:d,stepName:x,stepsDescriptors:_,lastMessage:z,progress:L}}(t),o=c.isCompleted,i=c.stepName,l=c.stepsDescriptors,u=c.lastMessage,s=c.progress;return Object(r.createElement)("div",{className:"ct-demo-install",style:n},Object(r.createElement)(A.Transition,{initial:!0,items:o,from:{opacity:0},enter:[{opacity:1}],leave:[{opacity:0}],config:function(e,t){return"leave"===t?{duration:300}:{delay:300,duration:300}}},(function(e){return function(t){return Object(r.createElement)("div",{style:t},e?Object(r.createElement)(Se,null):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("i",{className:"ct-demo-icon"},Object(r.createElement)("svg",{width:"40",height:"40",viewBox:"0 0 50 50"},Object(r.createElement)("path",{class:"g1",d:"M47,38.8c0.3-1,0.5-2,0.5-3.1c0-1.1-0.2-2.1-0.5-3.1l0.2-0.1l1.8-1.7l-1.8-3.1l-2.3,0.7l-0.2,0.1c-1.4-1.5-3.3-2.7-5.4-3.1V25l-0.6-2.4h-3.5L34.5,25v0.3c-2.1,0.5-4,1.6-5.4,3.1l-0.2-0.1l-2.3-0.7l-1.8,3.1l1.7,1.7l0.2,0.1c-0.3,1-0.5,2-0.5,3.1c0,1.1,0.2,2.1,0.5,3.1l-0.2,0.1l-1.8,1.7l1.8,3.1l2.3-0.7l0.2-0.1c1.4,1.5,3.3,2.7,5.4,3.1v0.3l0.6,2.4h3.5l0.6-2.4V46c2.1-0.5,4-1.6,5.4-3.1l0.2,0.1l2.3,0.7l1.8-3.1l-1.7-1.7L47,38.8z M36.9,41.5c-3.3,0-5.9-2.6-5.9-5.9s2.6-5.9,5.9-5.9s5.9,2.6,5.9,5.9S40.1,41.5,36.9,41.5z"}),Object(r.createElement)("path",{class:"g2",d:"M21.2,32.2c0.2-0.8,0.4-1.7,0.4-2.5c0-0.9-0.1-1.7-0.4-2.5l0.3-0.2l1.7-1.7l-1.8-3.1L19.1,23l-0.3,0.2c-1.2-1.2-2.7-2.1-4.4-2.5v-0.3l-0.6-2.4h-3.5l-0.6,2.4v0.3c-1.7,0.4-3.2,1.3-4.4,2.5L5.1,23l-2.3-0.7L1,25.4L2.7,27L3,27.2c-0.2,0.8-0.4,1.7-0.4,2.5c0,0.9,0.1,1.7,0.4,2.5l-0.3,0.1L1,34.1l1.8,3.1l2.3-0.7l0.3-0.1c1.2,1.2,2.7,2.1,4.4,2.5v0.3l0.6,2.4h3.5l0.6-2.4v-0.3c1.7-0.4,3.2-1.3,4.4-2.5l0.3,0.1l2.3,0.7l1.8-3.1l-1.7-1.7L21.2,32.2z M12.1,34.4c-2.6,0-4.7-2.1-4.7-4.7S9.5,25,12.1,25s4.7,2.1,4.7,4.7S14.7,34.4,12.1,34.4z"}),Object(r.createElement)("path",{class:"g3",d:"M37.7,15.7c0.2-0.8,0.4-1.7,0.4-2.5c0-0.9-0.1-1.7-0.4-2.5l0.3-0.2l1.7-1.7l-1.8-3.1l-2.3,0.7l-0.3,0.2c-1.2-1.2-2.7-2.1-4.4-2.5V3.8l-0.6-2.4h-3.5l-0.6,2.4v0.3c-1.7,0.4-3.2,1.3-4.4,2.5l-0.3-0.2l-2.3-0.7l-1.8,3.1l1.7,1.7l0.3,0.2c-0.2,0.8-0.4,1.7-0.4,2.5c0,0.9,0.1,1.7,0.4,2.5l-0.3,0.1l-1.7,1.7l1.8,3.1l2.3-0.7l0.3-0.1c1.2,1.2,2.7,2.1,4.4,2.5v0.3l0.6,2.4h3.5l0.6-2.4v-0.3c1.7-0.4,3.2-1.3,4.4-2.5l0.3,0.1l2.3,0.7l1.8-3.1L38,15.9L37.7,15.7z M28.6,17.9c-2.6,0-4.7-2.1-4.7-4.7s2.1-4.7,4.7-4.7s4.7,2.1,4.7,4.7S31.2,17.9,28.6,17.9z"}))),Object(r.createElement)("h2",null,Object(a.__)("Installing","blc"),"..."),Object(r.createElement)("p",null,Object(a.__)("Please be patient and don't refresh this page, the import process may take a while, this also depends on your server.","blc")),Object(r.createElement)("div",{className:"ct-progress-info"},l[i].title,u&&Ce(u,l)?": ".concat(Ce(u,l)):"",Object(r.createElement)("span",null,Math.round(s),"%")),Object(r.createElement)("div",{style:{"--progress":"".concat(s,"%")},className:"ct-installer-progress"},Object(r.createElement)("div",null))))}})))};function Te(e){return function(e){if(Array.isArray(e))return Ue(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Re(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 Ie(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,c=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){c=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(c)throw o}}return n}(e,t)||Re(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 Re(e,t){if(e){if("string"==typeof e)return Ue(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)?Ue(e,t):void 0}}function Ue(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 Fe=function(e){e.location,e.navigate;var t=Ie(Object(r.useState)(!0),2),n=(t[0],t[1],Object(r.useContext)(Ye)),c=n.installerBlockingReleased,o=n.demos_list,i=n.currentDemo,u=n.pluginsStatus,s=n.currentlyInstalledDemo,f=n.setCurrentDemo,d=Object(r.useContext)(Q).is_child_theme,m=Ie(Object(r.useState)(s),2),b=m[0],p=m[1],h=Ie(Object(r.useState)({builder:"",child_theme:!1,plugins:[],content:{options:!0,widgets:!0,content:!0,erase_content:!0}}),2),v=h[0],y=h[1],O=Ie(Object(r.useState)(0),2),j=O[0],g=O[1],_=Ie((i||"").split(":"),2),E=_[0],w=(_[1],["modify_demo","child_theme","builder","plugins","content","installer"].filter((function(e){if(!i)return!1;if("modify_demo"===e){if(!b)return!1;if(-1===b.demo.indexOf(E))return!1}if("child_theme"===e&&d)return!1;var t=o.filter((function(e){return e.name===E})).sort((function(e,t){return e.builder<t.builder?-1:e.builder>t.builder?1:0}));return("plugins"!==e||0!==t.reduce((function(e,t){return[].concat(Te(e),Te(t.plugins||[]))}),[]).filter((function(e){return!u[e]})).length)&&("builder"!==e||t.length>1)}))),x=w[j];return Object(r.useEffect)((function(){if(E&&!(i.indexOf(":hide")>-1)){var e=o.filter((function(e){return e.name===E})).sort((function(e,t){return e.builder<t.builder?-1:e.builder>t.builder?1:0}));g(0),p(s),y({builder:1===e.length?e[0].builder:null,child_theme:!0,plugins:e[0].plugins.map((function(e){return{plugin:e,enabled:!0}})),content:{options:!0,widgets:!0,content:!0,erase_content:!0}})}}),[i]),Object(r.createElement)(M,{items:i,isVisible:function(e){return e&&-1===e.indexOf(":hide")},className:l()("ct-demo-modal",{"ct-demo-installer":"installer"===x||"modify_demo"===x}),onDismiss:function(){("installer"!==x||c)&&f("".concat(E,":hide"))},render:function(){return Object(r.createElement)("div",{className:"ct-modal-content ct-demo-step-container"},Object(r.createElement)("div",{className:"ct-current-step"},Object(r.createElement)(A.Transition,{items:x,from:{opacity:0},enter:{opacity:1},leave:{opacity:0},initial:!1,config:function(e,t){return"leave"===t?{duration:150}:{delay:150,duration:150}}},(function(e){return function(t){return Object(r.createElement)(r.Fragment,null,"modify_demo"===e&&Object(r.createElement)(fe,{demoConfiguration:v,nextStep:function(){g(Math.min(j+1,w.length-1))},style:t}),"child_theme"===e&&Object(r.createElement)(pe,{style:t,demoConfiguration:v,setDemoConfiguration:y}),"plugins"===e&&Object(r.createElement)(ie,{demoConfiguration:v,style:t,setDemoConfiguration:y}),"builder"===e&&Object(r.createElement)(ge,{style:t,demoConfiguration:v,setDemoConfiguration:y}),"content"===e&&Object(r.createElement)(xe,{style:t,demoConfiguration:v,setDemoConfiguration:y}),"installer"===e&&Object(r.createElement)(Le,{style:t,demoConfiguration:v}))}}))),"installer"!==x&&"modify_demo"!==x&&Object(r.createElement)("div",{className:"ct-demo-step-controls"},j>0&&Object(r.createElement)("button",{className:"ct-demo-btn demo-back-btn",onClick:function(){g(Math.max(j-1,0))}},Object(a.__)("Back","blc")),w.length>2&&Object(r.createElement)("ul",{className:"ct-steps-pills"},w.map((function(e,t){return t===w.length-1?null:Object(r.createElement)("li",{className:l()({active:e===x}),key:e},t+1)}))),Object(r.createElement)("button",{className:"ct-demo-btn demo-main-btn",disabled:"content"===x&&0===Ne({demoConfiguration:v,pluginsStatus:u,is_child_theme:d}).length,onClick:function(){g(Math.min(j+1,w.length-1))}},"content"===x?Object(a.__)("Install","blc"):Object(a.__)("Next","blc"))))}})},Be=n(7),Ve=n.n(Be);function qe(e,t,n,r,c,o,a){try{var i=e[o](a),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(r,c)}function He(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,c=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){c=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(c)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return We(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 We(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 We(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 $e=function(){var e=He(Object(r.useState)(!1),2),t=e[0],n=e[1],c=He(Object(r.useState)(!1),2),o=c[0],i=c[1],l=He(Object(r.useState)(""),2),u=l[0],s=l[1],f=He(Object(r.useState)(""),2),d=f[0],m=f[1],b=He(Object(r.useState)("coblocks,elementor,contact-form-7"),2),p=b[0],h=b[1],v=He(Object(r.useState)(""),2),y=v[0],O=v[1],j=He(Object(r.useState)(!1),2),g=j[0],_=j[1],E=function(){var e,t=(e=regeneratorRuntime.mark((function e(){var t,r,c,o,a,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n(!0),(t=new FormData).append("action","blocksy_demo_export"),t.append("name",u),t.append("is_pro",g),t.append("url",y),t.append("builder",d),t.append("plugins",p),t.append("wp_customize","on"),e.prev=9,e.next=12,fetch(ctDashboardLocalizations.ajax_url,{method:"POST",body:t});case 12:if(200!==(r=e.sent).status){e.next=20;break}return e.next=16,r.json();case 16:c=e.sent,o=c.success,a=c.data,o&&(i=new Blob([JSON.stringify(a.demo)],{type:"text/plain;charset=utf-8"}),Ve.a.saveAs(i,"".concat(u,".json")));case 20:e.next=24;break;case 22:e.prev=22,e.t0=e.catch(9);case 24:n(!1);case 25:case"end":return e.stop()}}),e,null,[[9,22]])})),function(){var t=this,n=arguments;return new Promise((function(r,c){var o=e.apply(t,n);function a(e){qe(o,r,c,a,i,"next",e)}function i(e){qe(o,r,c,a,i,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();return ct_localizations.is_dev_mode?Object(r.createElement)("div",{className:"ct-export"},Object(r.createElement)("button",{className:"ct-button",onClick:function(e){i(!0)}},Object(a.__)("Site export")),Object(r.createElement)(M,{items:o,className:"ct-site-export-modal",onDismiss:function(){return i(!1)},render:function(){return Object(r.createElement)("div",{className:"ct-site-export"},Object(r.createElement)("label",null,Object(a.__)("Name","blc"),Object(r.createElement)("input",{type:"text",placeholder:Object(a.__)("Name","blc"),value:u,onChange:function(e){var t=e.target.value;return s(t)}})),Object(r.createElement)("label",null,Object(a.__)("Preview URL","blc"),Object(r.createElement)("input",{type:"text",placeholder:Object(a.__)("Preview URL","blc"),value:y,onChange:function(e){var t=e.target.value;return O(t)}})),Object(r.createElement)("label",null,Object(a.__)("PRO","blc"),Object(r.createElement)("input",{type:"checkbox",value:g,onChange:function(e){e.target.value;return _(!g)}})),Object(r.createElement)("label",null,Object(a.__)("Builder","blc"),Object(r.createElement)("input",{type:"text",placeholder:Object(a.__)("Builder","blc"),value:d,onChange:function(e){var t=e.target.value;return m(t)}})),Object(r.createElement)("label",null,Object(a.__)("Plugins","blc"),Object(r.createElement)("textarea",{placeholder:Object(a.__)("Plugins","blc"),value:p,onChange:function(e){var t=e.target.value;return h(t)}})),Object(r.createElement)("button",{className:"ct-button",disabled:t,onClick:function(){return E()}},t?Object(a.__)("Loading...","blc"):Object(a.__)("Export site","blc")))}})):null};function Ze(e,t,n,r,c,o,a){try{var i=e[o](a),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(r,c)}function Ke(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,c=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){c=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(c)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ge(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 Ge(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 Ge(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 Ye=Object(r.createContext)({demos:[]}),Je=null,Xe=null,Qe=function(e){e.children,e.path,e.location;var t=Ke(Object(r.useState)(!Je),2),n=t[0],c=t[1],o=Ke(Object(r.useState)(Je||[]),2),i=o[0],l=o[1],u=Ke(Object(r.useState)(Xe||{}),2),s=u[0],f=u[1],d=Ke(Object(r.useState)(null),2),m=d[0],b=d[1],p=Ke(Object(r.useState)(null),2),h=p[0],v=p[1],y=Ke(Object(r.useState)(!1),2),O=y[0],j=y[1],g=Ke(Object(r.useState)({builder:""}),2),_=(g[0],g[1],Ke(Object(r.useState)(!1),2)),E=_[0],w=_[1],x=function(){var e,t=(e=regeneratorRuntime.mark((function e(){var t,n,r,o,a,i=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i.length>0&&void 0!==i[0]&&i[0]&&c(!0),(t=new FormData).append("action","blocksy_demo_list"),e.prev=4,e.next=7,fetch(ctDashboardLocalizations.ajax_url,{method:"POST",body:t});case 7:if(200!==(n=e.sent).status){e.next=15;break}return e.next=11,n.json();case 11:r=e.sent,o=r.success,a=r.data,o&&(l(a.demos),f(a.active_plugins),v(a.current_installed_demo),j(a.demo_error),Xe=a.active_plugins,Je=a.demos,a.demo_error);case 15:e.next=19;break;case 17:e.prev=17,e.t0=e.catch(4);case 19:c(!1);case 20:case"end":return e.stop()}}),e,null,[[4,17]])})),function(){var t=this,n=arguments;return new Promise((function(r,c){var o=e.apply(t,n);function a(e){Ze(o,r,c,a,i,"next",e)}function i(e){Ze(o,r,c,a,i,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();return Object(r.useEffect)((function(){x(!Je)}),[]),Object(r.createElement)("div",{className:"ct-demos-list-container"},O&&Object(r.createElement)("div",{className:"ct-demo-notification",dangerouslySetInnerHTML:{__html:O}}),Object(r.createElement)(A.Transition,{items:n,from:{opacity:0},enter:[{opacity:1}],leave:[{opacity:0}],config:function(e,t){return"leave"===t?{duration:300}:{delay:300,duration:300}}},(function(e){return e?function(e){return Object(r.createElement)(A.animated.p,{style:e,className:"ct-loading-text"},Object(r.createElement)("span",null),Object(a.__)("Loading Starter Sites...","blc"))}:0===i.length?function(e){return Object(r.createElement)(A.animated.div,{style:e},Object(r.createElement)("div",{className:"ct-demo-notification",dangerouslySetInnerHTML:{__html:Object(a.__)("Connection to <b>demo.creativethemes.com</b> server didn't worked -- this is required for downloading the starter sites. You need to contact your hosting provider to figure out why your server can't reach to our server.")}}),Object(r.createElement)(V,null))}:function(e){return Object(r.createElement)(A.animated.div,{style:e},Object(r.createElement)(r.Fragment,null,Object(r.createElement)(Ye.Provider,{value:{demo_error:O,demos_list:i.filter((function(e){return!e.dev||ct_localizations.is_dev_mode})),currentDemo:m,pluginsStatus:s,installerBlockingReleased:E,setInstallerBlockingReleased:w,setCurrentDemo:b,currentlyInstalledDemo:h,setCurrentlyInstalledDemo:v}},Object(r.createElement)(le,null),Object(r.createElement)(Fe,null),Object(r.createElement)($e,null)),Object(r.createElement)(V,null)))}})))};function et(e,t,n,r,c,o,a){try{var i=e[o](a),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(r,c)}var tt=function(){var e=function(){var e,t=(e=regeneratorRuntime.mark((function e(){var t,n,r,c,o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).append("action","blocksy_fs_connect_again"),e.prev=2,e.next=5,fetch(ctDashboardLocalizations.ajax_url,{method:"POST",body:t});case 5:if(200!==(n=e.sent).status){e.next=13;break}return e.next=9,n.json();case 9:r=e.sent,c=r.success,r.data,c&&((o=document.createElement("div")).innerHTML=ctDashboardLocalizations.plugin_data.connect_template,a=o.querySelector("form"),document.body.appendChild(a),a.submit());case 13:e.next=17;break;case 15:e.prev=15,e.t0=e.catch(2);case 17:case"end":return e.stop()}}),e,null,[[2,15]])})),function(){var t=this,n=arguments;return new Promise((function(r,c){var o=e.apply(t,n);function a(e){et(o,r,c,a,i,"next",e)}function i(e){et(o,r,c,a,i,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();return Object(r.createElement)("div",{className:"ct-freemius-optin-message"},Object(r.createElement)("i",null,Object(r.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},Object(r.createElement)("path",{d:"M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"}),Object(r.createElement)("path",{d:"M13.73 21a2 2 0 0 1-3.46 0"}))),Object(r.createElement)("h2",null,Object(a.__)("Stay Updated","blc")),Object(r.createElement)("p",null,Object(a.__)("Never miss an important update - opt in to our security & feature updates notifications, and non-sensitive diagnostic tracking.","blc")),Object(r.createElement)("button",{className:"ct-button-primary",onClick:function(t){t.preventDefault(),e()}},Object(a.__)("Allow & Continue","blc")))};function nt(e,t,n,r,c,o,a){try{var i=e[o](a),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(r,c)}function rt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,c=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){c=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(c)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ct(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 ct(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 ct(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 ot=function(){var e=rt(Object(r.useState)(ctDashboardLocalizations.plugin_data.has_beta_consent),2),t=e[0],n=e[1],c=rt(Object(r.useState)(!1),2),o=c[0],i=c[1],l=function(){var e,r=(e=regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!o){e.next=2;break}return e.abrupt("return");case 2:return n((function(e){return!e})),i(!0),(r=new FormData).append("action","blocksy_toggle_has_beta_consent"),e.next=8,fetch(ctDashboardLocalizations.ajax_url,{method:"POST",body:r});case 8:e.sent,window.ctDashboardLocalizations.plugin_data.has_beta_consent=!t,i(!1);case 11:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,c){var o=e.apply(t,n);function a(e){nt(o,r,c,a,i,"next",e)}function i(e){nt(o,r,c,a,i,"throw",e)}a(void 0)}))});return function(){return r.apply(this,arguments)}}();return Object(r.createElement)("div",{className:"ct-beta-consent"},Object(r.createElement)("h2",{onClick:function(){return l()}},Object(a.__)("Receive βeta Updates","blc"),Object(r.createElement)(A.Switch,{value:t?"yes":"no",onChange:function(){}})),Object(r.createElement)("p",null,Object(a.__)("Receive beta updates for Blocksy theme and companion and help us test the new versions. Please note that installing beta versions is not recommended on production sites.","blc")))};o.a.on("ct:dashboard:routes",(function(e){e.push({Component:function(){return Object(r.createElement)(J,null)},path:"/extensions"}),"yes"===ctDashboardLocalizations.plugin_data.has_demo_install&&e.push({Component:function(e){return Object(r.createElement)(Qe,e)},path:"/demos"})})),o.a.on("ct:dashboard:navigation-links",(function(e){"yes"===ctDashboardLocalizations.plugin_data.has_demo_install&&e.push({text:Object(a.__)("Starter Sites","blc"),path:"demos",getProps:function(e){var t=e.isPartiallyCurrent;e.isCurrent;return t?{"aria-current":"page"}:{}}}),e.push({text:Object(a.__)("Extensions","blc"),path:"/extensions"})})),o.a.on("ct:dashboard:home:before",(function(e){ctDashboardLocalizations.plugin_data.is_anonymous&&(e.content=Object(r.createElement)(tt,null))})),o.a.on("ct:dashboard:home:after",(function(e){ctDashboardLocalizations.plugin_data.hide_beta_updates||(e.content=Object(r.createElement)(ot,null))})),o.a.on("ct:dashboard:heading:after",(function(e){ctDashboardLocalizations.plugin_data.is_pro&&(e.content=Object(r.createElement)("span",null,"PRO"))}))}]);
|
static/bundle/main.js
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
!function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=2)}([function(t,e){t.exports=ctEvents},function(t,e){t.exports=window.ctFrontend},function(t,e,r){"use strict";r.r(e),r.d(e,"onDocumentLoaded",(function(){return g}));var n=r(0),o=r.n(n),a=function(t,e){var r=e.screen,n=void 0===r?"login":r;t.querySelector("ul")&&t.querySelector("ul .ct-".concat(n))&&(t.querySelector("ul .active").classList.remove("active"),t.querySelector("ul .ct-".concat(n)).classList.add("active")),t.querySelector('[class*="-form"].active').classList.remove("active"),t.querySelector(".ct-".concat(n,"-form")).classList.add("active")},i=function(){Array.from(document.querySelectorAll(".ct-header-account > a[href]")).map((function(t){t.hasSearchEventListener||(t.hasSearchEventListener=!0,t.addEventListener("click",(function(e){a(document.querySelector(t.hash),{screen:"login"}),o.a.trigger("ct:overlay:handle-click",{e:e,href:t.hash,options:{isModal:!0}})})),t.hash&&function(t){t&&["login","register","forgot-password"].map((function(e){Array.from(t.querySelectorAll(".ct-".concat(e))).map((function(r){r.addEventListener("click",(function(r){r.preventDefault(),a(t,{screen:e})}))}))}))}(document.querySelector(t.hash)))}))},c=r(1);function s(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return l(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(t,e)}(t)||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 l(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var u=!1,d=function(t,e,r){return Math.max(t,Math.min(e,r))},y=function(t,e,r){return e[0]+(e[1]-e[0])/(t[1]-t[0])*(r-t[0])},f=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yes";Array.from(t.querySelectorAll("[data-row][data-transparent-row]")).map((function(t){t.dataset.transparentRow=e}))},m=function(t){return parseFloat(getComputedStyle(t).getPropertyValue("--height"))},p=function(t){var e=getComputedStyle(t).getPropertyValue("--stickyShrink");return e?parseFloat(e)/100*m(t):m(t)};var h=!1,v=function(){if(document.querySelector("[data-sticky]")){var t=window.scrollY,e=function(){var e=document.querySelector('[data-device="'.concat(Object(c.getCurrentScreen)(),'"] [data-sticky]'));if(e){var r=function(t){if(-1===t.dataset.sticky.indexOf("shrink")&&-1===t.dataset.sticky.indexOf("auto-hide"))return t.parentNode.getBoundingClientRect().height+200;var e=t.closest("header").getBoundingClientRect().top+scrollY,r=t.parentNode;return 1===r.parentNode.children.length||r.parentNode.children[0].classList.contains("ct-sticky-container")?e:Array.from(r.parentNode.children).reduce((function(t,e,r){return t.indexOf(0)>-1||!e.dataset.row?[].concat(s(t),[0]):[].concat(s(t),[e.classList.contains("ct-sticky-container")?0:e.getBoundingClientRect().height])}),[]).reduce((function(t,e){return t+e}),e)}(e),n=r>0&&Math.abs(window.scrollY-r)<3||window.scrollY>r,o=e.dataset.sticky.split(":").filter((function(t){return"yes"!==t&&"no"!==t})),a=Array.from(e.querySelectorAll("[data-row]")).reduce((function(t,e){return t+parseFloat(getComputedStyle(e).getPropertyValue("--height"))}),0);if(o.indexOf("auto-hide")>-1){if(window.scrollY<r&&(t=window.scrollY),n&&window.scrollY-t==0&&document.body.style.setProperty("--headerStickyHeightAnimated","0px"),n&&window.scrollY-t<-5)-1===e.dataset.sticky.indexOf("yes")&&(e.dataset.sticky=["yes-start"].concat(s(o)).join(":"),requestAnimationFrame((function(){e.dataset.sticky=e.dataset.sticky.replace("yes-start","yes-end"),setTimeout((function(){e.dataset.sticky=e.dataset.sticky.replace("yes-end","yes")}),200)}))),f(e,"no"),document.body.removeAttribute("style"),e.parentNode.style.setProperty("--minHeight","".concat(a,"px"));else{if(!n)return e.dataset.sticky=o.join(":"),e.parentNode.removeAttribute("style"),Array.from(e.querySelectorAll("[data-row]")).map((function(t){return t.removeAttribute("style")})),f(e,"yes"),document.body.style.setProperty("--headerStickyHeightAnimated","0px"),void(t=window.scrollY);-1===e.dataset.sticky.indexOf("yes-hide")&&e.dataset.sticky.indexOf("yes:")>-1&&window.scrollY-t>5&&(e.dataset.sticky=["yes-hide-start"].concat(s(o)).join(":"),document.body.style.setProperty("--headerStickyHeightAnimated","0px"),requestAnimationFrame((function(){e.dataset.sticky=e.dataset.sticky.replace("yes-hide-start","yes-hide-end"),setTimeout((function(){e.dataset.sticky=o.join(":"),e.parentNode.removeAttribute("style"),Array.from(e.querySelectorAll("[data-row]")).map((function(t){return t.removeAttribute("style")})),f(e,"yes")}),200)})))}t=window.scrollY}if((o.indexOf("slide")>-1||o.indexOf("fade")>-1)&&(n?(-1===e.dataset.sticky.indexOf("yes")&&(e.dataset.sticky=["yes-start"].concat(s(o)).join(":"),requestAnimationFrame((function(){e.dataset.sticky=e.dataset.sticky.replace("yes-start","yes-end"),setTimeout((function(){e.dataset.sticky=e.dataset.sticky.replace("yes-end","yes")}),200)}))),f(e,"no"),e.parentNode.style.setProperty("--minHeight","".concat(a,"px"))):-1===e.dataset.sticky.indexOf("yes-hide")&&e.dataset.sticky.indexOf("yes:")>-1&&(Math.abs(window.scrollY-r)>50?(e.dataset.sticky=o.join(":"),e.parentNode.removeAttribute("style"),Array.from(e.querySelectorAll("[data-row]")).map((function(t){return t.removeAttribute("style")})),f(e,"yes")):(e.dataset.sticky=["yes-hide-start"].concat(s(o)).join(":"),requestAnimationFrame((function(){e.dataset.sticky=e.dataset.sticky.replace("yes-hide-start","yes-hide-end"),setTimeout((function(){e.dataset.sticky=o.join(":"),e.parentNode.removeAttribute("style"),Array.from(e.querySelectorAll("[data-row]")).map((function(t){return t.removeAttribute("style")})),f(e,"yes")}),200)}))))),o.indexOf("shrink")>-1){if(n){f(e,"no"),e.parentNode.style.setProperty("--minHeight","".concat(a,"px"));var i=Array.from(e.querySelectorAll("[data-row]")).reduce((function(t,e,r){return t+p(e)}),0);s(e.querySelectorAll('[data-row="middle"]')).map((function(t){if(t.querySelector('[data-id="logo"] .site-logo-container')){var e=t.querySelector('[data-id="logo"] .site-logo-container'),n=parseFloat(getComputedStyle(e).getPropertyValue("--maxHeight")||50),o=parseFloat(getComputedStyle(e).getPropertyValue("--logoStickyShrink")||1),a=n*o;if(1===o)return;var i=m(t),c=p(t);e.style.setProperty("--logo-shrink-height",y([r,r+Math.abs(i===c?n-a:i-c)],[1,o],d(r,r+Math.abs(i===c?n-a:i-c),scrollY)))}})),i!==a&&e.querySelector('[data-row="middle"]')&&[e.querySelector('[data-row="middle"]')].map((function(t){var e=m(t),n=p(t);t.style.setProperty("--shrinkHeight","".concat(y([r,r+Math.abs(e-n)],[e,n],d(r,r+Math.abs(e-n),scrollY)),"px"))}))}else e.parentNode.removeAttribute("style"),Array.from(e.querySelectorAll("[data-row]")).map((function(t){return t.removeAttribute("style")})),Array.from(e.querySelectorAll('[data-row="middle"] .site-logo-container')).map((function(t){return t.removeAttribute("style")})),f(e,"yes");var l=e.dataset.sticky.split(":").filter((function(t){return"yes"!==t&&"no"!==t}));e.dataset.sticky=(n?["yes"].concat(s(l)):l).join(":")}}};e(),h||(h=!0,window.addEventListener("scroll",(function(){u||(u=!0,requestAnimationFrame((function(){e(),u=!1})))})))}},g=function(t){/comp|inter|loaded/.test(document.readyState)?t():document.addEventListener("DOMContentLoaded",t,!1)};g((function(){i(),v()})),o.a.on("blocksy:frontend:init",(function(){i(),v()}))}]);
|
| 1 |
+
!function(e){var t={};function r(o){if(t[o])return t[o].exports;var n=t[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.m=e,r.c=t,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(o,n,function(t){return e[t]}.bind(null,n));return o},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=2)}([function(e,t){e.exports=ctEvents},function(e,t){e.exports=window.ctFrontend},function(e,t,r){"use strict";r.r(t),r.d(t,"onDocumentLoaded",(function(){return w}));var o=r(0),n=r.n(o),a=function(e,t){var r=t.screen,o=void 0===r?"login":r;e.querySelector("ul")&&e.querySelector("ul .ct-".concat(o))&&(e.querySelector("ul .active").classList.remove("active"),e.querySelector("ul .ct-".concat(o)).classList.add("active")),e.querySelector('[class*="-form"].active').classList.remove("active"),e.querySelector(".ct-".concat(o,"-form")).classList.add("active"),e.querySelector(".ct-".concat(o,"-form form"))&&e.querySelector(".ct-".concat(o,"-form form")).reset(),e.querySelector(".ct-account-form").classList.remove("ct-error");var n=e.querySelector(".ct-".concat(o,"-form")).querySelector(".ct-message");n&&n.remove();var a=e.querySelector(".ct-".concat(o,"-form")).querySelector(".ct-errors");a&&a.remove()},c=function(e,t){var r=(new DOMParser).parseFromString(t,"text/html"),o=e.querySelector(".ct-errors");o&&o.remove(),e.closest(".ct-account-form").classList.remove("ct-error");var n=r.querySelector("#login_error");return n&&(e.insertAdjacentHTML("afterbegin",'<div class="ct-errors">'.concat(n.innerHTML,"</div>")),requestAnimationFrame((function(){e.closest(".ct-account-form").classList.add("ct-error")}))),{hasError:!!n,doc:r}},i=function(e,t){var r=(new DOMParser).parseFromString(t,"text/html"),o=e.querySelector(".ct-message");o&&o.remove();var n=e.querySelector(".ct-errors");n&&n.remove();var a=r.querySelector(".message");return e.closest(".ct-account-form").classList.remove("ct-error"),a&&e.insertAdjacentHTML("afterbegin",'<div class="ct-message">'.concat(a.innerHTML,"</div>")),{doc:r}},s=function(){Array.from(document.querySelectorAll(".ct-header-account > a[href]")).map((function(e){e.hasSearchEventListener||(e.hasSearchEventListener=!0,e.addEventListener("click",(function(t){try{document.querySelector(e.hash)}catch(t){return}a(document.querySelector(e.hash),{screen:"login"}),n.a.trigger("ct:overlay:handle-click",{e:t,href:e.hash,options:{isModal:!0}})})),document.querySelector("#account-modal")&&function(e){if(e){e.addEventListener("click",(function(t){t.target.href&&t.target.href.indexOf("lostpassword")>-1&&(a(e,{screen:"forgot-password"}),t.preventDefault()),t.target.href&&t.target.href.indexOf("wp-login")>-1&&-1===t.target.href.indexOf("lostpassword")&&(a(e,{screen:"login"}),t.preventDefault())}),!0);var t=e.querySelector('[name="loginform"]'),r=e.querySelector('[name="registerform"]'),o=e.querySelector('[name="lostpasswordform"]');t&&t.addEventListener("submit",(function(e){e.preventDefault(),window.ct_customizer_localizations||fetch(t.action,{method:t.method,body:new FormData(t)}).then((function(e){return e.text()})).then((function(e){var r=c(t.closest(".ct-login-form"),e);r.doc;r.hasError||(location=t.querySelector('[name="redirect_to"]').value)}))})),r&&r.addEventListener("submit",(function(e){e.preventDefault(),window.ct_customizer_localizations||fetch(r.action,{method:r.method,body:new FormData(r)}).then((function(e){return e.text()})).then((function(e){var t=c(r.closest(".ct-register-form"),e);t.doc;t.hasError||i(r.closest(".ct-register-form"),e)}))})),o&&o.addEventListener("submit",(function(e){e.preventDefault(),window.ct_customizer_localizations||fetch(o.action,{method:o.method,body:new FormData(o)}).then((function(e){return e.text()})).then((function(e){var t=c(o.closest(".ct-forgot-password-form"),e);t.doc;t.hasError||i(o.closest(".ct-forgot-password-form"),e)}))})),["login","register","forgot-password"].map((function(t){Array.from(e.querySelectorAll(".ct-".concat(t))).map((function(r){r.addEventListener("click",(function(r){r.preventDefault(),a(e,{screen:t})}))}))}))}}(document.querySelector("#account-modal")))}))},u=r(1);function l(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return d(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 d(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 d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}var y=!1,f=function(e,t,r){return Math.max(e,Math.min(t,r))},m=function(e,t,r){return t[0]+(t[1]-t[0])/(e[1]-e[0])*(r-e[0])},p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yes";Array.from(e.querySelectorAll("[data-row][data-transparent-row]")).map((function(e){e.dataset.transparentRow=t}))},h=function(e){return parseFloat(getComputedStyle(e).getPropertyValue("--height"))},v=function(e){var t=getComputedStyle(e).getPropertyValue("--stickyShrink");return t?parseFloat(t)/100*h(e):h(e)};var g=!1,S=function(){if(document.querySelector("[data-sticky]")){var e=window.scrollY,t=function(){var t=document.querySelector('[data-device="'.concat(Object(u.getCurrentScreen)(),'"] [data-sticky]'));if(t){var r=function(e){if(-1===e.dataset.sticky.indexOf("shrink")&&-1===e.dataset.sticky.indexOf("auto-hide"))return e.parentNode.getBoundingClientRect().height+200;var t=e.closest("header").getBoundingClientRect().top+scrollY,r=e.parentNode;return 1===r.parentNode.children.length||r.parentNode.children[0].classList.contains("ct-sticky-container")?t:Array.from(r.parentNode.children).reduce((function(e,t,r){return e.indexOf(0)>-1||!t.dataset.row?[].concat(l(e),[0]):[].concat(l(e),[t.classList.contains("ct-sticky-container")?0:t.getBoundingClientRect().height])}),[]).reduce((function(e,t){return e+t}),t)}(t),o=r>0&&Math.abs(window.scrollY-r)<3||window.scrollY>r,n=t.dataset.sticky.split(":").filter((function(e){return"yes"!==e&&"no"!==e})),a=Array.from(t.querySelectorAll("[data-row]")).reduce((function(e,t){return e+parseFloat(getComputedStyle(t).getPropertyValue("--height"))}),0);if(n.indexOf("auto-hide")>-1){if(window.scrollY<r&&(e=window.scrollY),o&&window.scrollY-e==0&&document.body.style.setProperty("--headerStickyHeightAnimated","0px"),o&&window.scrollY-e<-5)-1===t.dataset.sticky.indexOf("yes")&&(t.dataset.sticky=["yes-start"].concat(l(n)).join(":"),requestAnimationFrame((function(){t.dataset.sticky=t.dataset.sticky.replace("yes-start","yes-end"),setTimeout((function(){t.dataset.sticky=t.dataset.sticky.replace("yes-end","yes")}),200)}))),p(t,"no"),document.body.removeAttribute("style"),t.parentNode.style.setProperty("--minHeight","".concat(a,"px"));else{if(!o)return t.dataset.sticky=n.filter((function(e){return"yes-end"!==e})).join(":"),t.parentNode.removeAttribute("style"),Array.from(t.querySelectorAll("[data-row]")).map((function(e){return e.removeAttribute("style")})),p(t,"yes"),document.body.style.setProperty("--headerStickyHeightAnimated","0px"),void(e=window.scrollY);-1===t.dataset.sticky.indexOf("yes-hide")&&t.dataset.sticky.indexOf("yes:")>-1&&window.scrollY-e>5&&(t.dataset.sticky=["yes-hide-start"].concat(l(n)).join(":"),document.body.style.setProperty("--headerStickyHeightAnimated","0px"),requestAnimationFrame((function(){t.dataset.sticky=t.dataset.sticky.replace("yes-hide-start","yes-hide-end"),setTimeout((function(){t.dataset.sticky=n.join(":"),t.parentNode.removeAttribute("style"),Array.from(t.querySelectorAll("[data-row]")).map((function(e){return e.removeAttribute("style")})),p(t,"yes")}),200)})))}e=window.scrollY}if((n.indexOf("slide")>-1||n.indexOf("fade")>-1)&&(o?(-1===t.dataset.sticky.indexOf("yes")&&(t.dataset.sticky=["yes-start"].concat(l(n)).join(":"),requestAnimationFrame((function(){t.dataset.sticky=t.dataset.sticky.replace("yes-start","yes-end"),setTimeout((function(){t.dataset.sticky=t.dataset.sticky.replace("yes-end","yes")}),200)}))),p(t,"no"),t.parentNode.style.setProperty("--minHeight","".concat(a,"px"))):-1===t.dataset.sticky.indexOf("yes-hide")&&t.dataset.sticky.indexOf("yes:")>-1&&(Math.abs(window.scrollY-r)>10?(t.dataset.sticky=n.join(":"),setTimeout((function(){t.parentNode.removeAttribute("style"),Array.from(t.querySelectorAll("[data-row]")).map((function(e){return e.removeAttribute("style")}))}),300),p(t,"yes")):(t.dataset.sticky=["yes-hide-start"].concat(l(n)).join(":"),requestAnimationFrame((function(){t.dataset.sticky=t.dataset.sticky.replace("yes-hide-start","yes-hide-end"),setTimeout((function(){t.dataset.sticky=n.join(":"),setTimeout((function(){t.parentNode.removeAttribute("style"),Array.from(t.querySelectorAll("[data-row]")).map((function(e){return e.removeAttribute("style")}))}),300),p(t,"yes")}),200)}))))),n.indexOf("shrink")>-1){if(o){p(t,"no"),t.parentNode.style.setProperty("--minHeight","".concat(a,"px"));var c=Array.from(t.querySelectorAll("[data-row]")).reduce((function(e,t,r){return e+v(t)}),0);l(t.querySelectorAll('[data-row="middle"]')).map((function(e){if(e.querySelector('[data-id="logo"] .site-logo-container')){var t=e.querySelector('[data-id="logo"] .site-logo-container'),o=parseFloat(getComputedStyle(t).getPropertyValue("--maxHeight")||50),n=parseFloat(getComputedStyle(t).getPropertyValue("--logoStickyShrink")||1),a=o*n;if(1===n)return;var c=h(e),i=v(e);t.style.setProperty("--logo-shrink-height",m([r,r+Math.abs(c===i?o-a:c-i)],[1,n],f(r,r+Math.abs(c===i?o-a:c-i),scrollY)))}})),c!==a&&t.querySelector('[data-row="middle"]')&&[t.querySelector('[data-row="middle"]')].map((function(e){var t=h(e),o=v(e);e.style.setProperty("--shrinkHeight","".concat(m([r,r+Math.abs(t-o)],[t,o],f(r,r+Math.abs(t-o),scrollY)),"px"))}))}else t.parentNode.removeAttribute("style"),Array.from(t.querySelectorAll("[data-row]")).map((function(e){return e.removeAttribute("style")})),Array.from(t.querySelectorAll('[data-row="middle"] .site-logo-container')).map((function(e){return e.removeAttribute("style")})),p(t,"yes");var i=t.dataset.sticky.split(":").filter((function(e){return"yes"!==e&&"no"!==e}));t.dataset.sticky=(o?["yes"].concat(l(i)):i).join(":")}}};t(),g||(g=!0,window.addEventListener("scroll",(function(){y||(y=!0,requestAnimationFrame((function(){t(),y=!1})))})))}},w=function(e){/comp|inter|loaded/.test(document.readyState)?e():document.addEventListener("DOMContentLoaded",e,!1)};w((function(){s(),S()})),n.a.on("blocksy:frontend:init",(function(){s(),S()}))}]);
|
static/bundle/options.css
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
/**
|
| 2 |
-
* - v1.7.
|
| 3 |
*
|
| 4 |
* Copyright (c) 2021
|
| 5 |
* Licensed GPLv2+
|
| 6 |
*/
|
| 7 |
|
| 8 |
-
.ct-condition-location{display:grid;grid-template-columns:1fr 100px;grid-column-gap:10px;--x-select-dropdown-width: calc(100% + 110px)}.ct-display-conditions{padding:30px 0;margin:10px 0 0 0;border-top:1px dashed rgba(0,0,0,0.1)}.ct-condition-group{display:grid;grid-template-columns:var(--grid-template-columns);grid-column-gap:10px;grid-row-gap:10px;
|
| 1 |
/**
|
| 2 |
+
* - v1.7.50
|
| 3 |
*
|
| 4 |
* Copyright (c) 2021
|
| 5 |
* Licensed GPLv2+
|
| 6 |
*/
|
| 7 |
|
| 8 |
+
.ct-condition-location{display:grid;grid-template-columns:1fr 100px;grid-column-gap:10px;padding-bottom:20px;border-bottom:1px dashed rgba(0,0,0,0.1);--x-select-dropdown-width: calc(100% + 110px)}.ct-new-condition-location{--options-vertical-spacing: 20px;padding:var(--options-horizontal-spacing, 0 14px)}.ct-new-condition-location .ct-new-location{--options-horizontal-spacing: 0}.ct-new-condition-location .ct-new-location .ct-control{padding-bottom:20px;border-bottom:1px dashed rgba(0,0,0,0.1)}.ct-new-condition-location .ct-new-location button{right:-24px;width:24px}.ct-new-condition-location .button{width:100%;margin-top:20px}.ct-display-conditions{padding:30px 0;margin:10px 0 0 0;border-top:1px dashed rgba(0,0,0,0.1)}.ct-condition-group{display:grid;grid-template-columns:var(--grid-template-columns);grid-column-gap:10px;grid-row-gap:10px;padding-bottom:20px;margin-bottom:20px;border-bottom:1px dashed rgba(0,0,0,0.1)}.ct-condition-group.ct-cols-2{--grid-template-columns: 110px 1fr}.ct-condition-group.ct-cols-2 .ct-select-input:nth-child(2):before{content:'ref-width'}.ct-condition-group.ct-cols-3{--grid-template-columns: 110px 1fr 1fr}.ct-condition-group.ct-cols-3 .ct-select-input:nth-child(2):before{content:'ref-width:right'}.ct-condition-group.ct-cols-3 .ct-select-input:nth-child(3):before{content:'ref-width:left'}.ct-condition-group .ct-select-dropdown{box-shadow:0 10px 15px rgba(0,0,0,0.08),0px 0px 0px 1px rgba(221,221,221,0.5)}.ct-condition-type span{position:absolute;top:6px;left:6px;display:flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:3px;background:#eee}.ct-condition-type span:before,.ct-condition-type span:after{position:absolute;content:'';width:6px;height:1px;background:currentColor}.ct-condition-type .ct-include:after{transform:rotate(90deg)}.ct-condition-type .ct-exclude:after{display:none}.ct-condition-type input{--padding: 0 0 0 30px}.ct-new-location,.ct-condition-group{position:relative}.ct-new-location button,.ct-condition-group button{position:absolute;top:0;right:-30px;font-size:18px;line-height:18px;width:30px;height:30px;padding:0;border:none;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;opacity:0.5;background:transparent}.ct-new-location button:focus,.ct-condition-group button:focus{outline:none}.ct-new-location button:hover,.ct-condition-group button:hover{opacity:1;color:#a00}.ct-conditions-actions{display:grid;grid-template-columns:repeat(2, 1fr);grid-column-gap:15px}.blocksy-code-editor-trigger{display:inline-flex;align-items:center;margin:0 8px}.ct-checkbox-container{--checkMarkColor: #fff;--background: rgba(179, 189, 201, 0.8);--backgroundActive: #0e8ecc;display:flex;align-items:center;justify-content:space-between;padding:10px 0;transition:color 0.15s ease}.ct-checkbox-container:not(.activated){cursor:pointer}.ct-checkbox-container:not(.activated):hover{color:#0e8ecc}.ct-checkbox-container:not(.activated):hover .ct-checkbox:not(.active){--background: var(--backgroundActive)}.ct-checkbox-container.activated{--checkMarkColor: rgba(104, 124, 147, 0.6);--backgroundActive: rgba(179, 189, 201, 0.3)}.ct-checkbox{display:inline-flex;align-items:center;justify-content:center;position:relative;width:18px;height:18px;flex:0 0 18px}.ct-checkbox:before{position:absolute;z-index:1;content:'';width:18px;height:18px;margin:auto;border-radius:100%;box-shadow:inset 0px 0px 0px 2px var(--background);transition:all 0.12s cubic-bezier(0.455, 0.03, 0.515, 0.955)}.ct-checkbox svg{position:relative;z-index:2}.ct-checkbox.active:before{width:22px;height:22px;box-shadow:inset 0px 0px 0px 12px var(--backgroundActive)}.ct-checkbox .check{fill:none;stroke:var(--checkMarkColor);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-dasharray:15;stroke-dashoffset:16;transition:stroke 0.4s cubic-bezier(0.455, 0.03, 0.515, 0.955),stroke-dashoffset 0.4s cubic-bezier(0.455, 0.03, 0.515, 0.955)}.ct-checkbox.active .check{stroke-dashoffset:0}.ct-import-export input[type="file"]{display:none}.ct-import-export .button{width:100%}.ct-import-export .button:not(:last-child){margin-bottom:20px}.toplevel_page_ct-dashboard .wp-menu-image img{max-width:18px;height:auto}.toplevel_page_ct-dashboard a[href*='ct-dashboard-pricing']{display:none !important}[data-slug="blocksy-companion"] .upgrade{display:none}.fs-field-beta_program{display:none}
|
static/bundle/options.js
CHANGED
|
@@ -3,4 +3,4 @@
|
|
| 3 |
Copyright (c) 2017 Jed Watson.
|
| 4 |
Licensed under the MIT License (MIT), see
|
| 5 |
http://jedwatson.github.io/classnames
|
| 6 |
-
*/!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var c=typeof r;if("string"===c||"number"===c)e.push(r);else if(Array.isArray(r)&&r.length){var a=o.apply(null,r);a&&e.push(a)}else if("object"===c)for(var i in r)n.call(r,i)&&r[i]&&e.push(i)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t){e.exports=window.wp.components},function(e,t){e.exports=ctEvents},function(e,t){e.exports=window.React},function(e,t,n){(function(n){var r,o,c;o=[],void 0===(c="function"==typeof(r=function(){"use strict";function t(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){a(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function r(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function o(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var c="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n&&n.global===n?n:void 0,a=c.saveAs||("object"!=typeof window||window!==c?function(){}:"download"in HTMLAnchorElement.prototype?function(e,n,a){var i=c.URL||c.webkitURL,l=document.createElement("a");n=n||e.name||"download",l.download=n,l.rel="noopener","string"==typeof e?(l.href=e,l.origin===location.origin?o(l):r(l.href)?t(e,n,a):o(l,l.target="_blank")):(l.href=i.createObjectURL(e),setTimeout((function(){i.revokeObjectURL(l.href)}),4e4),setTimeout((function(){o(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,n,c){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,c),n);else if(r(e))t(e,n,c);else{var a=document.createElement("a");a.href=e,a.target="_blank",setTimeout((function(){o(a)}))}}:function(e,n,r,o){if((o=o||open("","_blank"))&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof e)return t(e,n,r);var a="application/octet-stream"===e.type,i=/constructor/i.test(c.HTMLElement)||c.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||a&&i)&&"object"==typeof FileReader){var u=new FileReader;u.onloadend=function(){var e=u.result;e=l?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=e:location=e,o=null},u.readAsDataURL(e)}else{var s=c.URL||c.webkitURL,d=s.createObjectURL(e);o?o.location=d:location.href=d,o=null,setTimeout((function(){s.revokeObjectURL(d)}),4e4)}});c.saveAs=a.saveAs=a,e.exports=a})?r.apply(t,o):r)||(e.exports=c)}).call(this,n(12))},function(e,t){e.exports=window.wp.hooks},function(e,t,n){var r=n(13);function o(e,t,n,r,c){var a=new Error(n,r,c);return a.name="UseFetchError",a.status=e,a.statusText=t,Object.setPrototypeOf(a,Object.getPrototypeOf(this)),Error.captureStackTrace&&Error.captureStackTrace(a,o),a}o.prototype=Object.create(Error.prototype,{constructor:{value:Error,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf(o,Error),e.exports=function(e,t,n){var c=(n&&n.depends||t&&t.depends||[]).reduce((function(e,t){return e||!t}),!1);return r(!c&&function(e,t,n){return fetch(e,t).then(n&&n.formatter||t&&t.formatter||function(e){if(!e.ok)throw new o(e.status,e.statusText,"Fetch error");return e.json()})},e,t||{},n||{})}},function(e,t,n){var r=n(15);e.exports=function(){var e=function(){e.id=r(),e.subscribers.forEach((function(e){e()}))};return e.id=r(),e.subscribers=[],e.subscribe=function(t){e.subscribers.push(t)},e.unsubscribe=function(t){e.subscribers.indexOf(t)>=0&&e.subscribers.splice(e.subscribers.indexOf(t),1)},e}},function(e,t,n){var r=n(6);e.exports=function(e){var t=r.useState(e.id),n=function(){return t[1](e.id)};return r.useEffect((function(){return e.subscribe(n),function(){return e.unsubscribe(n)}}),[]),t[0]}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(6),o=n(14);e.exports=function(e){var t=Array.prototype.slice.call(arguments,[1]),n=r.useState({isLoading:!!e});return r.useEffect((function(){e&&(!n[0].isLoading&&n[1]({data:n[0].data,isLoading:!0}),e.apply(null,t).then((function(e){n[1]({data:e,isLoading:!1})})).catch((function(e){n[1]({error:e,isLoading:!1})})))}),o(t)),n[0]}},function(e,t){e.exports=function e(){for(var t=[],n=0;n<arguments.length;n++){var r=arguments[n];if(r instanceof Array)for(var o=0;o<r.length;o++)t=t.concat(e(r[o]));else if("undefined"!=typeof URL&&r instanceof URL)t=t.concat(r.toJSON());else if(r instanceof Object)for(var c=Object.keys(r),a=0;a<c.length;a++){var i=c[a];t=t.concat([i]).concat(e(r[i]))}else t=t.concat(r)}return t}},function(e,t,n){for(var r=self.crypto||self.msCrypto,o="-_",c=36;c--;)o+=c.toString(36);for(c=36;c---10;)o+=c.toString(36).toUpperCase();e.exports=function(e){var t="",n=r.getRandomValues(new Uint8Array(e||21));for(c=e||21;c--;)t+=o[63&n[c]];return t}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(4),c=n(1),a=n(2),i=n(3),l=n.n(i);function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,c=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,c=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw c}}return n}(e,t)||m(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 s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function d(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 p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(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){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||m(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 m(e,t){if(e){if("string"==typeof e)return y(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)?y(e,t):void 0}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var O=[],j=[],h=function(e){var t=e.value,n=e.onChange,o=blocksy_admin.all_condition_rules.reduce((function(e,t){var n=t.rules,r=t.title;return[].concat(f(e),f(n.map((function(e){return p(p({},e),{},{group:r})}))))}),[]).reduce((function(e,t){var n=t.title,r=t.id,o=s(t,["title","id"]);return[].concat(f(e),[p({key:r,value:n},o)])}),[]),i=u(Object(r.useState)(O),2),d=i[0],b=i[1],m=u(Object(r.useState)(j),2),y=m[0],h=m[1],v=function(e){return"post_ids"===e.rule||"page_ids"===e.rule||"custom_post_type_ids"===e.rule||"taxonomy_ids"===e.rule||"post_with_taxonomy_ids"===e.rule};return Object(r.useEffect)((function(){Promise.all(["posts","pages","ct_cpt"].map((function(e){return fetch("".concat(blocksy_admin.rest_url,"wp/v2/").concat("ct_cpt"===e?"posts":e).concat(blocksy_admin.rest_url.indexOf("?")>-1?"&":"?","_embed&per_page=100").concat("ct_cpt"===e?"&post_type=ct_cpt":"")).then((function(e){return e.json()}))}))).then((function(e){var t=e.reduce((function(e,t){return[].concat(f(e),f(t))}),[]);b(t),O=t})),fetch("".concat(wp.ajax.settings.url,"?action=blocksy_conditions_get_all_taxonomies"),{headers:{Accept:"application/json","Content-Type":"application/json"},method:"POST"}).then((function(e){return e.json()})).then((function(e){var t=e.data.taxonomies;h(t),j=t}))}),[]),Object(r.createElement)("div",{className:"ct-display-conditions"},t.map((function(e,i){return Object(r.createElement)("div",{className:l()("ct-condition-group",{"ct-cols-3":v(e),"ct-cols-2":!v(e)}),key:i},Object(r.createElement)(a.Select,{key:"first",option:{inputClassName:"ct-condition-type",selectInputStart:function(){return Object(r.createElement)("span",{className:"ct-".concat(e.type)})},placeholder:Object(c.__)("Select variation","blc"),choices:{include:Object(c.__)("Include","blc"),exclude:Object(c.__)("Exclude","blc")}},value:e.type,onChange:function(r){n(t.map((function(t,n){return p({},n===i?p(p({},e),{},{type:r}):t)})))}}),Object(r.createElement)(a.Select,{key:"second",option:{appendToBody:!0,placeholder:Object(c.__)("Select rule","blc"),choices:"user"===e.category?o.filter((function(e){return 0===e.key.indexOf("user_")})):o.filter((function(e){return-1===e.key.indexOf("user_")})),search:!0},value:e.rule,onChange:function(r){n(t.map((function(t,n){return p({},n===i?p(p({},e),{},{rule:r}):t)})))}}),("post_ids"===e.rule||"custom_post_type_ids"===e.rule||"page_ids"===e.rule)&&Object(r.createElement)(a.Select,{key:"third",option:{appendToBody:!0,defaultToFirstItem:!1,placeholder:"post_ids"===e.rule?Object(c.__)("Select post","blc"):"page_ids"===e.rule?Object(c.__)("Select page","blc"):Object(c.__)("Custom Post Type ID","blc"),choices:d.filter((function(t){var n=t.type;return"post_ids"===e.rule?"post"===n:"page_ids"===e.rule?"page"===n:"post"!==n&&"page"!==n})).map((function(e){return{key:e.id,value:e.title.rendered}})),search:!0},value:(e.payload||{}).post_id||"",onChange:function(r){n(t.map((function(t,n){return p({},n===i?p(p({},e),{},{payload:p(p({},e.payload),{},{post_id:r})}):t)})))}}),("taxonomy_ids"===e.rule||"post_with_taxonomy_ids"===e.rule)&&Object(r.createElement)(a.Select,{option:{defaultToFirstItem:!1,placeholder:Object(c.__)("Select taxonomy","blc"),choices:y.map((function(e){return p({key:e.id,value:e.name},e.group?{group:e.group}:{})})),search:!0},value:e.payload.taxonomy_id||"",onChange:function(r){n(t.map((function(t,n){return p({},n===i?p(p({},e),{},{payload:p(p({},e.payload),{},{taxonomy_id:r})}):t)})))}}),Object(r.createElement)("button",{type:"button",onClick:function(e){e.preventDefault();var r=f(t);r.splice(i,1),n(r)}},"×"))})),Object(r.createElement)("div",{className:"ct-conditions-actions"},Object(r.createElement)("button",{type:"button",className:"button add-condition",onClick:function(e){e.preventDefault(),n([].concat(f(t),[{type:"include",rule:"everywhere",payload:{}}]))}},Object(c.__)("Add Display Condition","blc")),Object(r.createElement)("button",{type:"button",className:"button add-condition",onClick:function(e){e.preventDefault(),n([].concat(f(t),[{type:"include",rule:"user_logged_in",payload:{},category:"user"}]))}},Object(c.__)("Add User Condition","blc"))))};function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,c=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,c=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw c}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return _(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 _(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 _(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 g=function(e){var t=e.option.display,n=void 0===t?"inline":t,o=e.value,i=e.onChange,l=v(Object(r.useState)(!1),2),u=l[0],s=l[1],d=v(Object(r.useState)(null),2),p=d[0],b=d[1];return"inline"===n?Object(r.createElement)(h,{value:o,onChange:i}):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("button",{className:"button-primary",style:{width:"100%"},onClick:function(e){e.preventDefault(),s(!0),b(null)}},Object(c.__)("Add/Edit Conditions","blc")),Object(r.createElement)(a.Overlay,{items:u,className:"ct-admin-modal ct-builder-conditions-modal",onDismiss:function(){s(!1),b(null)},render:function(){return Object(r.createElement)("div",{className:"ct-modal-content"},Object(r.createElement)("h2",null,Object(c.__)("Transparent Header Display Conditions","blc")),Object(r.createElement)("p",null,Object(c.__)("Add one or more conditions to display the transparent header.","blc")),Object(r.createElement)("div",{className:"ct-modal-scroll"},Object(r.createElement)(h,{value:p||o,onChange:function(e){b(e)}})),Object(r.createElement)("div",{className:"ct-modal-actions has-divider"},Object(r.createElement)("button",{className:"button-primary",disabled:!p,onClick:function(){i(p),s(!1)}},Object(c.__)("Save Conditions","blc"))))}}))},E=n(7),w=n.n(E);function x(e){return function(e){if(Array.isArray(e))return k(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||C(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 S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,c=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,c=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw c}}return n}(e,t)||C(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 C(e,t){if(e){if("string"==typeof e)return k(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)?k(e,t):void 0}}function k(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 A=function(){var e=S(Object(r.useState)(null),2),t=e[0],n=e[1],o=S(Object(r.useState)(null),2),i=o[0],u=o[1],s=S(Object(r.useState)(!1),2),d=s[0],p=s[1],b=S(Object(r.useState)(["options"]),2),f=b[0],m=b[1],y=Object(r.useRef)();return Object(r.createElement)("div",{className:"ct-import-export"},Object(r.createElement)("div",{className:"ct-title","data-type":"simple"},Object(r.createElement)("h3",null,Object(c.__)("Export","blc")),Object(r.createElement)("div",{className:"ct-option-description"},Object(c.__)("Click the button below to export the customization settings for this theme.","blc"))),Object(r.createElement)("div",{className:"ct-control","data-design":"block"},Object(r.createElement)("header",null),Object(r.createElement)("section",null,Object(r.createElement)("button",{className:"button",onClick:function(e){e.preventDefault(),p(!0)}},Object(c.__)("Export Customizations","blc")))),Object(r.createElement)("div",{className:"ct-title","data-type":"simple"},Object(r.createElement)("h3",null,Object(c.__)("Import","blc")),Object(r.createElement)("div",{className:"ct-option-description"},Object(c.__)("Upload a file to import customization settings for this theme.","blc"))),Object(r.createElement)("div",{className:"ct-control","data-design":"block"},Object(r.createElement)("header",null),Object(r.createElement)("section",null,Object(r.createElement)("div",{className:"ct-file-upload"},Object(r.createElement)("button",{type:"button",className:"button ct-upload-button",onClick:function(){y.current.click()}},t?t.name:Object(c.__)("Click to upload a file...","blc")),Object(r.createElement)("input",{ref:y,type:"file",onChange:function(e){var t=S(e.target.files,1)[0];n(t)}}),Object(r.createElement)("button",{className:"button",onClick:function(e){e.preventDefault();var n=new FileReader;n.readAsText(t,"UTF-8"),n.onload=function(e){var t=new FormData;t.append("action","blocksy_customizer_import"),t.append("wp_customize","on"),t.append("data",e.target.result);try{fetch(window.ajaxurl,{method:"POST",body:t}).then((function(e){200===e.status&&e.json().then((function(e){e.success,e.data;location.reload()}))}))}catch(e){}}}},Object(c.__)("Import Customizations","blc"))))),ct_customizer_localizations.has_child_theme&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"ct-title","data-type":"simple"},Object(r.createElement)("h3",null,Object(c.__)("Copy Options","blc")),Object(r.createElement)("div",{className:"ct-option-description"},Object(c.__)("Copy and import your customizations from parent or child theme.","blc"))),ct_customizer_localizations.is_parent_theme&&Object(r.createElement)("div",{className:"ct-control","data-design":"block"},Object(r.createElement)("header",null),Object(r.createElement)("section",null,Object(r.createElement)("button",{className:"button",onClick:function(e){e.preventDefault(),u("child")}},Object(c.__)("Copy From Child Theme","blc")))),!ct_customizer_localizations.is_parent_theme&&Object(r.createElement)("div",{className:"ct-control","data-design":"block"},Object(r.createElement)("header",null),Object(r.createElement)("section",null,Object(r.createElement)("button",{className:"button",onClick:function(e){e.preventDefault(),u("parent")}},Object(c.__)("Copy From Parent Theme","blc"))))),Object(r.createElement)(a.Overlay,{items:i,className:"ct-admin-modal ct-import-export-modal",onDismiss:function(){return u(!1)},render:function(){return Object(r.createElement)("div",{className:"ct-modal-content"},Object(r.createElement)("svg",{width:"40",height:"40",viewBox:"0 0 66 66"},Object(r.createElement)("path",{d:"M66 33.1c0 2.8-.4 5.5-1.1 8.2 0 0-1.7-.6-1.9-.6 3.4-13.1-2.2-27.4-14.5-34.5C41.3 2 33 .9 25 3.1c-3.5.9-6.7 2.4-9.5 4.4L20 12 6 15 9 1l5 5c3.1-2.2 6.6-3.9 10.5-4.9 2.7-.7 5.4-1.1 8-1.1 5.9-.1 11.7 1.4 17 4.4C60.1 10.5 66 21.7 66 33.1zm-49 6.3l2.4-3c-.3-1.2-.4-2.3-.4-3.4s.1-2.2.4-3.3l-2.4-3 2.5-4.3 3.8.5c1.6-1.6 3.6-2.7 5.8-3.3l1.4-3.6h5l1.4 3.6c2.2.6 4.2 1.8 5.8 3.3l3.8-.5 2.5 4.3-2.4 3c.3 1.1.4 2.2.4 3.3s-.1 2.2-.4 3.3l2.4 3-2.5 4.3-3.8-.5c-1.6 1.6-3.6 2.7-5.8 3.3L35.4 50h-5L29 46.4c-2.2-.6-4.2-1.8-5.8-3.3l-3.8.5-2.4-4.2zm8-6.4c0 4.4 3.6 8 8 8s8-3.6 8-8-3.6-8-8-8-8 3.6-8 8zm25.9 25.3c-3 2.1-6.3 3.7-9.9 4.7-8 2.1-16.4 1-23.5-3.1C5.2 52.8-.4 38.5 3 25.4c-.7-.1-1.3-.3-2-.5-.7 2.7-1 5.3-1 8 0 11.4 5.9 22.5 16.5 28.6 7.6 4.4 16.5 5.6 25 3.3 4-1.1 7.6-2.8 10.8-5.2l4.6 4.6 3-14-14 3 5 5.1z"})),Object(r.createElement)("h2",{className:"ct-modal-title"},!ct_customizer_localizations.is_parent_theme&&Object(c.__)("Copy From Parent Theme","blc"),ct_customizer_localizations.is_parent_theme&&Object(c.__)("Copy From Child Theme","blc")),Object(r.createElement)("p",null,!ct_customizer_localizations.is_parent_theme&&Object(c.__)("You are about to copy all the settings from your parent theme into the child theme. Are you sure you want to continue?","blc"),ct_customizer_localizations.is_parent_theme&&Object(c.__)("You are about to copy all the settings from your child theme into the parent theme. Are you sure you want to continue?","blc")),Object(r.createElement)("div",{className:"ct-modal-actions"},Object(r.createElement)("button",{onClick:function(e){e.preventDefault(),e.stopPropagation(),u(!1)},className:"ct-button"},Object(c.__)("Cancel","blc")),Object(r.createElement)("button",{className:"ct-button-primary",onClick:function(e){e.preventDefault();var t=new FormData;t.append("action","blocksy_customizer_copy_options"),t.append("wp_customize","on"),t.append("strategy",i);try{fetch(window.ajaxurl,{method:"POST",body:t}).then((function(e){200===e.status&&e.json().then((function(e){e.success,e.data;location.reload()}))}))}catch(e){}}},Object(c.__)("Yes, I am sure","blc"))))}}),Object(r.createElement)(a.Overlay,{items:d,className:"ct-admin-modal ct-export-modal",onDismiss:function(){return p(!1)},render:function(){return Object(r.createElement)("div",{className:"ct-modal-content"},Object(r.createElement)("h2",{className:"ct-modal-title"},Object(c.__)("Export Settings","blc")),Object(r.createElement)("p",null,Object(c.__)("Choose what set of settings you want to export.","blc")),Object(r.createElement)("div",{className:"ct-export-options"},["options","widgets"].map((function(e){return Object(r.createElement)("div",{className:"ct-checkbox-container",onClick:function(){1===f.length&&f[0]===e||m((function(t){return t.includes(e)?t.filter((function(t){return t!==e})):[].concat(x(t),[e])}))}},{options:Object(c.__)("Customizer settings","blc"),widgets:Object(c.__)("Widgets settings","blc")}[e],Object(r.createElement)("span",{className:l()("ct-checkbox",{active:f.includes(e)})},Object(r.createElement)("svg",{width:"10",height:"8",viewBox:"0 0 11.2 9.1"},Object(r.createElement)("polyline",{className:"check",points:"1.2,4.8 4.4,7.9 9.9,1.2 "}))))}))),Object(r.createElement)("div",{className:"ct-modal-actions has-divider","data-buttons":"2"},Object(r.createElement)("button",{onClick:function(e){e.preventDefault(),e.stopPropagation(),p(!1)},className:"button"},Object(c.__)("Cancel","blc")),Object(r.createElement)("button",{className:"button button-primary",onClick:function(e){e.preventDefault();var t=new FormData;t.append("action","blocksy_customizer_export"),t.append("strategy",f.join(":")),t.append("wp_customize","on");try{fetch(window.ajaxurl,{method:"POST",body:t}).then((function(e){200===e.status&&e.json().then((function(e){var t=e.success,n=e.data;if(t){var r=new Blob([n.data],{type:"application/octet-stream;charset=utf-8"});w.a.saveAs(r,"blocksy-export.dat"),p(!1)}}))}))}catch(e){}}},Object(c.__)("Export","blc"))))}}))},N=n(5),P=n.n(N),T=n(8),D=n(9),z=n.n(D),I=n(10),L=n.n(I),R=n(11),F=n.n(R);function U(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M(e){return function(e){if(Array.isArray(e))return G(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||V(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function B(e,t,n,r,o,c,a){try{var i=e[c](a),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(r,o)}function H(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,c=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,c=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw c}}return n}(e,t)||V(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 V(e,t){if(e){if("string"==typeof e)return G(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)?G(e,t):void 0}}function G(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 $=L()(),Y=function(e){e.forcedEdit;var t,n,o=e.headerId,i=H(Object(r.useState)(!1),2),l=i[0],u=i[1],s=H(Object(r.useState)(null),2),d=s[0],p=s[1],b=Object(r.useContext)(a.PlacementsDragDropContext),f=(b.builderValueCollection,b.builderValueDispatch,Object(r.useRef)()),m=F()($),y=z()("".concat(blocksy_admin.ajax_url,"?action=blocksy_header_get_all_conditions"),{method:"POST",formatter:(t=regeneratorRuntime.mark((function e(t){var n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.json();case 2:if(n=e.sent,r=n.success,o=n.data,r&&o.conditions){e.next=7;break}throw new Error;case 7:return e.abrupt("return",o.conditions);case 8:case"end":return e.stop()}}),e)})),n=function(){var e=this,n=arguments;return new Promise((function(r,o){var c=t.apply(e,n);function a(e){B(c,r,o,a,i,"next",e)}function i(e){B(c,r,o,a,i,"throw",e)}a(void 0)}))},function(e){return n.apply(this,arguments)}),depends:[m]}),O=y.data,j=y.isLoading;y.error;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("button",{className:"button-primary",style:{width:"100%"},onClick:function(e){j||(e.preventDefault(),e.stopPropagation(),u(!0))}},Object(c.__)("Add/Edit Conditions","blc")),Object(r.createElement)(a.Overlay,{items:l,initialFocusRef:f,className:"ct-admin-modal ct-builder-conditions-modal",onDismiss:function(){u(!1),p(null)},render:function(){var e;return Object(r.createElement)("div",{className:"ct-modal-content",ref:f},Object(r.createElement)("h2",null,sprintf(Object(c.__)("Display Conditions","blc"))),Object(r.createElement)("p",null,Object(c.__)("Add one or more conditions in order to display your header.","blc")),Object(r.createElement)("div",{className:"ct-modal-scroll"},Object(r.createElement)(a.OptionsPanel,{onChange:function(e,t){p((function(e){return[].concat(M((e||O).filter((function(e){return e.id!==o}))),[{id:o,conditions:t}])}))},options:{conditions:(e={type:"blocksy-display-condition",design:"none",value:[]},U(e,"design","none"),U(e,"label",!1),e)},value:{conditions:((d||O).find((function(e){return e.id===o}))||{conditions:[]}).conditions},hasRevertButton:!1})),Object(r.createElement)("div",{className:"ct-modal-actions has-divider"},Object(r.createElement)("button",{className:"button-primary",disabled:!d,onClick:function(){fetch("".concat(wp.ajax.settings.url,"?action=blocksy_header_update_all_conditions"),{headers:{Accept:"application/json","Content-Type":"application/json"},method:"POST",body:JSON.stringify(d)}).then((function(e){return e.json()})).then((function(){$(),u(!1)}))}},Object(c.__)("Save Conditions","blc"))))}}))};function q(){return(q=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function J(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 W(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?J(Object(n),!0).forEach((function(t){X(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function X(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var K=function(){ct_customizer_localizations.header_builder_data.secondary_items.header,ct_customizer_localizations.header_builder_data.header;var e=Object(r.useContext)(a.PlacementsDragDropContext),t=e.builderValueDispatch,n=e.builderValue,i=(e.option,e.builderValueCollection),u=e.panelsActions,s=Object(T.applyFilters)("blocksy.header.available-sections",null,i.sections)||i.sections.filter((function(e){var t=e.id;return"type-2"!==t&&"type-3"!==t&&-1===t.indexOf("ct-custom")}));return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("ul",{className:l()("ct-panels-manager")},s.map((function(e){var o=e.name,i=e.id,s=o||{"type-1":Object(c.__)("Global Header","blocksy")}[i]||i,d="builder_header_panel_".concat(i),p=ct_customizer_localizations.header_builder_data.header_data.header_options,b={label:s,"inner-options":W(W({},i.indexOf("ct-custom")>-1?{conditions_button:{label:Object(c.__)("Edit Conditions","blc"),type:"jsx",design:"block",render:function(){return Object(r.createElement)(Y,{headerId:i})}}}:{}),p)};return Object(r.createElement)(a.PanelMetaWrapper,q({id:d,key:i,option:b},u,{getActualOption:function(e){var o=e.open;return Object(r.createElement)(r.Fragment,null,i===n.id&&Object(r.createElement)(a.Panel,{id:d,getValues:function(){return W({id:i},n.settings||{})},option:b,onChangeFor:function(e,r){t({type:"BUILDER_GLOBAL_SETTING_ON_CHANGE",payload:{optionId:e,optionValue:r,values:Object(a.getValueFromInput)(p,Array.isArray(n.settings)?{}:n.settings||{})}})},view:"simple"}),Object(r.createElement)("li",{className:l()({active:i===n.id,"ct-global":"type-1"===i}),onClick:function(){i===n.id?o():t({type:"PICK_BUILDER_SECTION",payload:{id:i}})}},Object(r.createElement)("span",{className:"ct-panel-name"},s),i.indexOf("ct-custom")>-1&&i!==n.id&&Object(r.createElement)("span",{className:"ct-remove-instance",onClick:function(e){e.preventDefault(),e.stopPropagation(),t({type:"REMOVE_BUILDER_SECTION",payload:{id:i}})}},Object(r.createElement)("i",{className:"ct-tooltip-top"},Object(c.__)("Remove header","blc")),Object(r.createElement)("svg",{width:"11px",height:"11px",viewBox:"0 0 24 24"},Object(r.createElement)("path",{d:"M9.6,0l0,1.2H1.2v2.4h21.6V1.2h-8.4l0-1.2H9.6z M2.8,6l1.8,15.9C4.8,23.1,5.9,24,7.1,24h9.9c1.2,0,2.2-0.9,2.4-2.1L21.2,6H2.8z"})))))}}))}))),Object(r.createElement)(o.Slot,{name:"PlacementsBuilderPanelsManagerAfter"},(function(e){return 0===e.length?null:e})))};P.a.on("blocksy:options:before-option",(function(e){if(e.option&&"ct-header-builder"===e.option.type){var t=e.content;e.content=Object(r.createElement)(r.Fragment,null,t,Object(r.createElement)(o.Fill,{name:"PlacementsBuilderPanelsManager"},Object(r.createElement)(K,null)))}})),P.a.on("blocksy:options:register",(function(e){e["blocksy-display-condition"]=g,e["blocksy-customizer-options-manager"]=A}))}]);
|
| 3 |
Copyright (c) 2017 Jed Watson.
|
| 4 |
Licensed under the MIT License (MIT), see
|
| 5 |
http://jedwatson.github.io/classnames
|
| 6 |
+
*/!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var c=typeof r;if("string"===c||"number"===c)e.push(r);else if(Array.isArray(r)&&r.length){var a=o.apply(null,r);a&&e.push(a)}else if("object"===c)for(var i in r)n.call(r,i)&&r[i]&&e.push(i)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t){e.exports=window.wp.components},function(e,t){e.exports=ctEvents},function(e,t){e.exports=window.React},function(e,t,n){(function(t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r="object"===("undefined"==typeof window?"undefined":n(window))&&window.window===window?window:"object"===("undefined"==typeof self?"undefined":n(self))&&self.self===self?self:"object"===(void 0===t?"undefined":n(t))&&t.global===t?t:this;function o(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){i(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function c(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return t.status>=200&&t.status<=299}function a(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var i="object"!==("undefined"==typeof window?"undefined":n(window))||window!==r?function(){}:"download"in HTMLAnchorElement.prototype?function(e,t,n){var i=r.URL||r.webkitURL,l=document.createElement("a");t=t||e.name||"download",l.download=t,l.rel="noopener","string"==typeof e?(l.href=e,l.origin!==location.origin?c(l.href)?o(e,t,n):a(l,l.target="_blank"):a(l)):(l.href=i.createObjectURL(e),setTimeout((function(){i.revokeObjectURL(l.href)}),4e4),setTimeout((function(){a(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,t,r){if(t=t||e.name||"download","string"==typeof e)if(c(e))o(e,t,r);else{var i=document.createElement("a");i.href=e,i.target="_blank",setTimeout((function(){a(i)}))}else navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!==n(t)&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e}(e,r),t)}:function(e,t,c,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),"string"==typeof e)return o(e,t,c);var i="application/octet-stream"===e.type,l=/constructor/i.test(r.HTMLElement)||r.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||i&&l)&&"object"===("undefined"==typeof FileReader?"undefined":n(FileReader))){var s=new FileReader;s.onloadend=function(){var e=s.result;e=u?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=e:location=e,a=null},s.readAsDataURL(e)}else{var d=r.URL||r.webkitURL,p=d.createObjectURL(e);a?a.location=p:location.href=p,a=null,setTimeout((function(){d.revokeObjectURL(p)}),4e4)}};e.exports=i}).call(this,n(12))},function(e,t){e.exports=window.wp.hooks},function(e,t,n){var r=n(13);function o(e,t,n,r,c){var a=new Error(n,r,c);return a.name="UseFetchError",a.status=e,a.statusText=t,Object.setPrototypeOf(a,Object.getPrototypeOf(this)),Error.captureStackTrace&&Error.captureStackTrace(a,o),a}o.prototype=Object.create(Error.prototype,{constructor:{value:Error,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf(o,Error),e.exports=function(e,t,n){var c=(n&&n.depends||t&&t.depends||[]).reduce((function(e,t){return e||!t}),!1);return r(!c&&function(e,t,n){return fetch(e,t).then(n&&n.formatter||t&&t.formatter||function(e){if(!e.ok)throw new o(e.status,e.statusText,"Fetch error");return e.json()})},e,t||{},n||{})}},function(e,t,n){var r=n(15);e.exports=function(){var e=function(){e.id=r(),e.subscribers.forEach((function(e){e()}))};return e.id=r(),e.subscribers=[],e.subscribe=function(t){e.subscribers.push(t)},e.unsubscribe=function(t){e.subscribers.indexOf(t)>=0&&e.subscribers.splice(e.subscribers.indexOf(t),1)},e}},function(e,t,n){var r=n(6);e.exports=function(e){var t=r.useState(e.id),n=function(){return t[1](e.id)};return r.useEffect((function(){return e.subscribe(n),function(){return e.unsubscribe(n)}}),[]),t[0]}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(6),o=n(14);e.exports=function(e){var t=Array.prototype.slice.call(arguments,[1]),n=r.useState({isLoading:!!e});return r.useEffect((function(){e&&(!n[0].isLoading&&n[1]({data:n[0].data,isLoading:!0}),e.apply(null,t).then((function(e){n[1]({data:e,isLoading:!1})})).catch((function(e){n[1]({error:e,isLoading:!1})})))}),o(t)),n[0]}},function(e,t){e.exports=function e(){for(var t=[],n=0;n<arguments.length;n++){var r=arguments[n];if(r instanceof Array)for(var o=0;o<r.length;o++)t=t.concat(e(r[o]));else if("undefined"!=typeof URL&&r instanceof URL)t=t.concat(r.toJSON());else if(r instanceof Object)for(var c=Object.keys(r),a=0;a<c.length;a++){var i=c[a];t=t.concat([i]).concat(e(r[i]))}else t=t.concat(r)}return t}},function(e,t,n){for(var r=self.crypto||self.msCrypto,o="-_",c=36;c--;)o+=c.toString(36);for(c=36;c---10;)o+=c.toString(36).toUpperCase();e.exports=function(e){var t="",n=r.getRandomValues(new Uint8Array(e||21));for(c=e||21;c--;)t+=o[63&n[c]];return t}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(4),c=n(1),a=n(2),i=n(3),l=n.n(i);function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,c=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,c=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw c}}return n}(e,t)||m(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 s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function d(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 p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(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){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||m(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 m(e,t){if(e){if("string"==typeof e)return y(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)?y(e,t):void 0}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var O=[],j=[],h=function(e){var t=e.value,n=e.onChange,o=blocksy_admin.all_condition_rules.reduce((function(e,t){var n=t.rules,r=t.title;return[].concat(f(e),f(n.map((function(e){return p(p({},e),{},{group:r})}))))}),[]).reduce((function(e,t){var n=t.title,r=t.id,o=s(t,["title","id"]);return[].concat(f(e),[p({key:r,value:n},o)])}),[]),i=u(Object(r.useState)(O),2),d=i[0],b=i[1],m=u(Object(r.useState)(j),2),y=m[0],h=m[1],v=function(e){return"post_ids"===e.rule||"page_ids"===e.rule||"custom_post_type_ids"===e.rule||"taxonomy_ids"===e.rule||"post_with_taxonomy_ids"===e.rule};return Object(r.useEffect)((function(){Promise.all(["posts","pages","ct_cpt"].map((function(e){return fetch("".concat(blocksy_admin.rest_url,"wp/v2/").concat("ct_cpt"===e?"posts":e).concat(blocksy_admin.rest_url.indexOf("?")>-1?"&":"?","_embed&per_page=100").concat("ct_cpt"===e?"&post_type=ct_cpt":"")).then((function(e){return e.json()}))}))).then((function(e){var t=e.reduce((function(e,t){return[].concat(f(e),f(t))}),[]);b(t),O=t})),fetch("".concat(wp.ajax.settings.url,"?action=blocksy_conditions_get_all_taxonomies"),{headers:{Accept:"application/json","Content-Type":"application/json"},method:"POST"}).then((function(e){return e.json()})).then((function(e){var t=e.data.taxonomies;h(t),j=t}))}),[]),Object(r.createElement)("div",{className:"ct-display-conditions"},t.map((function(e,i){return Object(r.createElement)("div",{className:l()("ct-condition-group",{"ct-cols-3":v(e),"ct-cols-2":!v(e)}),key:i},Object(r.createElement)(a.Select,{key:"first",option:{inputClassName:"ct-condition-type",selectInputStart:function(){return Object(r.createElement)("span",{className:"ct-".concat(e.type)})},placeholder:Object(c.__)("Select variation","blc"),choices:{include:Object(c.__)("Include","blc"),exclude:Object(c.__)("Exclude","blc")}},value:e.type,onChange:function(r){n(t.map((function(t,n){return p({},n===i?p(p({},e),{},{type:r}):t)})))}}),Object(r.createElement)(a.Select,{key:"second",option:{appendToBody:!0,placeholder:Object(c.__)("Select rule","blc"),choices:"user"===e.category?o.filter((function(e){return 0===e.key.indexOf("user_")})):o.filter((function(e){return-1===e.key.indexOf("user_")})),search:!0},value:e.rule,onChange:function(r){n(t.map((function(t,n){return p({},n===i?p(p({},e),{},{rule:r}):t)})))}}),("post_ids"===e.rule||"custom_post_type_ids"===e.rule||"page_ids"===e.rule)&&Object(r.createElement)(a.Select,{key:"third",option:{appendToBody:!0,defaultToFirstItem:!1,placeholder:"post_ids"===e.rule?Object(c.__)("Select post","blc"):"page_ids"===e.rule?Object(c.__)("Select page","blc"):Object(c.__)("Custom Post Type ID","blc"),choices:d.filter((function(t){var n=t.type;return"post_ids"===e.rule?"post"===n:"page_ids"===e.rule?"page"===n:"post"!==n&&"page"!==n})).map((function(e){return{key:e.id,value:e.title.rendered}})),search:!0},value:(e.payload||{}).post_id||"",onChange:function(r){n(t.map((function(t,n){return p({},n===i?p(p({},e),{},{payload:p(p({},e.payload),{},{post_id:r})}):t)})))}}),("taxonomy_ids"===e.rule||"post_with_taxonomy_ids"===e.rule)&&Object(r.createElement)(a.Select,{option:{defaultToFirstItem:!1,placeholder:Object(c.__)("Select taxonomy","blc"),choices:y.map((function(e){return p({key:e.id,value:e.name},e.group?{group:e.group}:{})})),search:!0},value:e.payload.taxonomy_id||"",onChange:function(r){n(t.map((function(t,n){return p({},n===i?p(p({},e),{},{payload:p(p({},e.payload),{},{taxonomy_id:r})}):t)})))}}),Object(r.createElement)("button",{type:"button",onClick:function(e){e.preventDefault();var r=f(t);r.splice(i,1),n(r)}},"×"))})),Object(r.createElement)("div",{className:"ct-conditions-actions"},Object(r.createElement)("button",{type:"button",className:"button add-condition",onClick:function(e){e.preventDefault(),n([].concat(f(t),[{type:"include",rule:"everywhere",payload:{}}]))}},Object(c.__)("Add Display Condition","blc")),Object(r.createElement)("button",{type:"button",className:"button add-condition",onClick:function(e){e.preventDefault(),n([].concat(f(t),[{type:"include",rule:"user_logged_in",payload:{},category:"user"}]))}},Object(c.__)("Add User Condition","blc"))))};function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,c=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,c=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw c}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return _(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 _(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 _(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 g=function(e){var t=e.option.display,n=void 0===t?"inline":t,o=e.value,i=e.onChange,l=v(Object(r.useState)(!1),2),u=l[0],s=l[1],d=v(Object(r.useState)(null),2),p=d[0],b=d[1];return"inline"===n?Object(r.createElement)(h,{value:o,onChange:i}):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("button",{className:"button-primary",style:{width:"100%"},onClick:function(e){e.preventDefault(),s(!0),b(null)}},Object(c.__)("Add/Edit Conditions","blc")),Object(r.createElement)(a.Overlay,{items:u,className:"ct-admin-modal ct-builder-conditions-modal",onDismiss:function(){s(!1),b(null)},render:function(){return Object(r.createElement)("div",{className:"ct-modal-content"},Object(r.createElement)("h2",null,Object(c.__)("Transparent Header Display Conditions","blc")),Object(r.createElement)("p",null,Object(c.__)("Add one or more conditions to display the transparent header.","blc")),Object(r.createElement)("div",{className:"ct-modal-scroll"},Object(r.createElement)(h,{value:p||o,onChange:function(e){b(e)}})),Object(r.createElement)("div",{className:"ct-modal-actions has-divider"},Object(r.createElement)("button",{className:"button-primary",disabled:!p,onClick:function(){i(p),s(!1)}},Object(c.__)("Save Conditions","blc"))))}}))},E=n(7),w=n.n(E);function S(e){return function(e){if(Array.isArray(e))return k(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||C(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 x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,c=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,c=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw c}}return n}(e,t)||C(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 C(e,t){if(e){if("string"==typeof e)return k(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)?k(e,t):void 0}}function k(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 N=function(){var e=x(Object(r.useState)(null),2),t=e[0],n=e[1],o=x(Object(r.useState)(null),2),i=o[0],u=o[1],s=x(Object(r.useState)(!1),2),d=s[0],p=s[1],b=x(Object(r.useState)(["options"]),2),f=b[0],m=b[1],y=Object(r.useRef)();return Object(r.createElement)("div",{className:"ct-import-export"},Object(r.createElement)("div",{className:"ct-title","data-type":"simple"},Object(r.createElement)("h3",null,Object(c.__)("Export","blc")),Object(r.createElement)("div",{className:"ct-option-description"},Object(c.__)("Click the button below to export the customization settings for this theme.","blc"))),Object(r.createElement)("div",{className:"ct-control","data-design":"block"},Object(r.createElement)("header",null),Object(r.createElement)("section",null,Object(r.createElement)("button",{className:"button",onClick:function(e){e.preventDefault(),p(!0)}},Object(c.__)("Export Customizations","blc")))),Object(r.createElement)("div",{className:"ct-title","data-type":"simple"},Object(r.createElement)("h3",null,Object(c.__)("Import","blc")),Object(r.createElement)("div",{className:"ct-option-description"},Object(c.__)("Upload a file to import customization settings for this theme.","blc"))),Object(r.createElement)("div",{className:"ct-control","data-design":"block"},Object(r.createElement)("header",null),Object(r.createElement)("section",null,Object(r.createElement)("div",{className:"ct-file-upload"},Object(r.createElement)("button",{type:"button",className:"button ct-upload-button",onClick:function(){y.current.click()}},t?t.name:Object(c.__)("Click to upload a file...","blc")),Object(r.createElement)("input",{ref:y,type:"file",onChange:function(e){var t=x(e.target.files,1)[0];n(t)}}),Object(r.createElement)("button",{className:"button",onClick:function(e){e.preventDefault();var n=new FileReader;n.readAsText(t,"UTF-8"),n.onload=function(e){var t=new FormData;t.append("action","blocksy_customizer_import"),t.append("wp_customize","on"),t.append("data",e.target.result);try{fetch(window.ajaxurl,{method:"POST",body:t}).then((function(e){200===e.status&&e.json().then((function(e){e.success,e.data;location.reload()}))}))}catch(e){}}}},Object(c.__)("Import Customizations","blc"))))),ct_customizer_localizations.has_child_theme&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"ct-title","data-type":"simple"},Object(r.createElement)("h3",null,Object(c.__)("Copy Options","blc")),Object(r.createElement)("div",{className:"ct-option-description"},Object(c.__)("Copy and import your customizations from parent or child theme.","blc"))),ct_customizer_localizations.is_parent_theme&&Object(r.createElement)("div",{className:"ct-control","data-design":"block"},Object(r.createElement)("header",null),Object(r.createElement)("section",null,Object(r.createElement)("button",{className:"button",onClick:function(e){e.preventDefault(),u("child")}},Object(c.__)("Copy From Child Theme","blc")))),!ct_customizer_localizations.is_parent_theme&&Object(r.createElement)("div",{className:"ct-control","data-design":"block"},Object(r.createElement)("header",null),Object(r.createElement)("section",null,Object(r.createElement)("button",{className:"button",onClick:function(e){e.preventDefault(),u("parent")}},Object(c.__)("Copy From Parent Theme","blc"))))),Object(r.createElement)(a.Overlay,{items:i,className:"ct-admin-modal ct-import-export-modal",onDismiss:function(){return u(!1)},render:function(){return Object(r.createElement)("div",{className:"ct-modal-content"},Object(r.createElement)("svg",{width:"40",height:"40",viewBox:"0 0 66 66"},Object(r.createElement)("path",{d:"M66 33.1c0 2.8-.4 5.5-1.1 8.2 0 0-1.7-.6-1.9-.6 3.4-13.1-2.2-27.4-14.5-34.5C41.3 2 33 .9 25 3.1c-3.5.9-6.7 2.4-9.5 4.4L20 12 6 15 9 1l5 5c3.1-2.2 6.6-3.9 10.5-4.9 2.7-.7 5.4-1.1 8-1.1 5.9-.1 11.7 1.4 17 4.4C60.1 10.5 66 21.7 66 33.1zm-49 6.3l2.4-3c-.3-1.2-.4-2.3-.4-3.4s.1-2.2.4-3.3l-2.4-3 2.5-4.3 3.8.5c1.6-1.6 3.6-2.7 5.8-3.3l1.4-3.6h5l1.4 3.6c2.2.6 4.2 1.8 5.8 3.3l3.8-.5 2.5 4.3-2.4 3c.3 1.1.4 2.2.4 3.3s-.1 2.2-.4 3.3l2.4 3-2.5 4.3-3.8-.5c-1.6 1.6-3.6 2.7-5.8 3.3L35.4 50h-5L29 46.4c-2.2-.6-4.2-1.8-5.8-3.3l-3.8.5-2.4-4.2zm8-6.4c0 4.4 3.6 8 8 8s8-3.6 8-8-3.6-8-8-8-8 3.6-8 8zm25.9 25.3c-3 2.1-6.3 3.7-9.9 4.7-8 2.1-16.4 1-23.5-3.1C5.2 52.8-.4 38.5 3 25.4c-.7-.1-1.3-.3-2-.5-.7 2.7-1 5.3-1 8 0 11.4 5.9 22.5 16.5 28.6 7.6 4.4 16.5 5.6 25 3.3 4-1.1 7.6-2.8 10.8-5.2l4.6 4.6 3-14-14 3 5 5.1z"})),Object(r.createElement)("h2",{className:"ct-modal-title"},!ct_customizer_localizations.is_parent_theme&&Object(c.__)("Copy From Parent Theme","blc"),ct_customizer_localizations.is_parent_theme&&Object(c.__)("Copy From Child Theme","blc")),Object(r.createElement)("p",null,!ct_customizer_localizations.is_parent_theme&&Object(c.__)("You are about to copy all the settings from your parent theme into the child theme. Are you sure you want to continue?","blc"),ct_customizer_localizations.is_parent_theme&&Object(c.__)("You are about to copy all the settings from your child theme into the parent theme. Are you sure you want to continue?","blc")),Object(r.createElement)("div",{className:"ct-modal-actions"},Object(r.createElement)("button",{onClick:function(e){e.preventDefault(),e.stopPropagation(),u(!1)},className:"ct-button"},Object(c.__)("Cancel","blc")),Object(r.createElement)("button",{className:"ct-button-primary",onClick:function(e){e.preventDefault();var t=new FormData;t.append("action","blocksy_customizer_copy_options"),t.append("wp_customize","on"),t.append("strategy",i);try{fetch(window.ajaxurl,{method:"POST",body:t}).then((function(e){200===e.status&&e.json().then((function(e){e.success,e.data;location.reload()}))}))}catch(e){}}},Object(c.__)("Yes, I am sure","blc"))))}}),Object(r.createElement)(a.Overlay,{items:d,className:"ct-admin-modal ct-export-modal",onDismiss:function(){return p(!1)},render:function(){return Object(r.createElement)("div",{className:"ct-modal-content"},Object(r.createElement)("h2",{className:"ct-modal-title"},Object(c.__)("Export Settings","blc")),Object(r.createElement)("p",null,Object(c.__)("Choose what set of settings you want to export.","blc")),Object(r.createElement)("div",{className:"ct-export-options"},["options","widgets"].map((function(e){return Object(r.createElement)("div",{className:"ct-checkbox-container",onClick:function(){1===f.length&&f[0]===e||m((function(t){return t.includes(e)?t.filter((function(t){return t!==e})):[].concat(S(t),[e])}))}},{options:Object(c.__)("Customizer settings","blc"),widgets:Object(c.__)("Widgets settings","blc")}[e],Object(r.createElement)("span",{className:l()("ct-checkbox",{active:f.includes(e)})},Object(r.createElement)("svg",{width:"10",height:"8",viewBox:"0 0 11.2 9.1"},Object(r.createElement)("polyline",{className:"check",points:"1.2,4.8 4.4,7.9 9.9,1.2 "}))))}))),Object(r.createElement)("div",{className:"ct-modal-actions has-divider","data-buttons":"2"},Object(r.createElement)("button",{onClick:function(e){e.preventDefault(),e.stopPropagation(),p(!1)},className:"button"},Object(c.__)("Cancel","blc")),Object(r.createElement)("button",{className:"button button-primary",onClick:function(e){e.preventDefault();var t=new FormData;t.append("action","blocksy_customizer_export"),t.append("strategy",f.join(":")),t.append("wp_customize","on");try{fetch(window.ajaxurl,{method:"POST",body:t}).then((function(e){200===e.status&&e.json().then((function(e){var t=e.success,n=e.data;if(t){var r=new Blob([n.data],{type:"application/octet-stream;charset=utf-8"});w()(r,"blocksy-export.dat"),p(!1)}}))}))}catch(e){}}},Object(c.__)("Export","blc"))))}}))},A=n(5),P=n.n(A),T=n(8),D=n(9),z=n.n(D),I=n(10),L=n.n(I),R=n(11),F=n.n(R);function U(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M(e){return function(e){if(Array.isArray(e))return G(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||V(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function B(e,t,n,r,o,c,a){try{var i=e[c](a),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(r,o)}function H(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,c=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,c=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw c}}return n}(e,t)||V(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 V(e,t){if(e){if("string"==typeof e)return G(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)?G(e,t):void 0}}function G(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 $=L()(),Y=function(e){e.forcedEdit;var t,n,o=e.headerId,i=H(Object(r.useState)(!1),2),l=i[0],u=i[1],s=H(Object(r.useState)(null),2),d=s[0],p=s[1],b=Object(r.useContext)(a.PlacementsDragDropContext),f=(b.builderValueCollection,b.builderValueDispatch,Object(r.useRef)()),m=F()($),y=z()("".concat(blocksy_admin.ajax_url,"?action=blocksy_header_get_all_conditions"),{method:"POST",formatter:(t=regeneratorRuntime.mark((function e(t){var n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.json();case 2:if(n=e.sent,r=n.success,o=n.data,r&&o.conditions){e.next=7;break}throw new Error;case 7:return e.abrupt("return",o.conditions);case 8:case"end":return e.stop()}}),e)})),n=function(){var e=this,n=arguments;return new Promise((function(r,o){var c=t.apply(e,n);function a(e){B(c,r,o,a,i,"next",e)}function i(e){B(c,r,o,a,i,"throw",e)}a(void 0)}))},function(e){return n.apply(this,arguments)}),depends:[m]}),O=y.data,j=y.isLoading;y.error;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("button",{className:"button-primary",style:{width:"100%"},onClick:function(e){j||(e.preventDefault(),e.stopPropagation(),u(!0))}},Object(c.__)("Add/Edit Conditions","blc")),Object(r.createElement)(a.Overlay,{items:l,initialFocusRef:f,className:"ct-admin-modal ct-builder-conditions-modal",onDismiss:function(){u(!1),p(null)},render:function(){var e;return Object(r.createElement)("div",{className:"ct-modal-content",ref:f},Object(r.createElement)("h2",null,sprintf(Object(c.__)("Display Conditions","blc"))),Object(r.createElement)("p",null,Object(c.__)("Add one or more conditions in order to display your header.","blc")),Object(r.createElement)("div",{className:"ct-modal-scroll"},Object(r.createElement)(a.OptionsPanel,{onChange:function(e,t){p((function(e){return[].concat(M((e||O).filter((function(e){return e.id!==o}))),[{id:o,conditions:t}])}))},options:{conditions:(e={type:"blocksy-display-condition",design:"none",value:[]},U(e,"design","none"),U(e,"label",!1),e)},value:{conditions:((d||O).find((function(e){return e.id===o}))||{conditions:[]}).conditions},hasRevertButton:!1})),Object(r.createElement)("div",{className:"ct-modal-actions has-divider"},Object(r.createElement)("button",{className:"button-primary",disabled:!d,onClick:function(){fetch("".concat(wp.ajax.settings.url,"?action=blocksy_header_update_all_conditions"),{headers:{Accept:"application/json","Content-Type":"application/json"},method:"POST",body:JSON.stringify(d)}).then((function(e){return e.json()})).then((function(){$(),u(!1)}))}},Object(c.__)("Save Conditions","blc"))))}}))};function q(){return(q=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function J(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 W(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?J(Object(n),!0).forEach((function(t){X(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function X(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var K=function(){ct_customizer_localizations.header_builder_data.secondary_items.header,ct_customizer_localizations.header_builder_data.header;var e=Object(r.useContext)(a.PlacementsDragDropContext),t=e.builderValueDispatch,n=e.builderValue,i=(e.option,e.builderValueCollection),u=e.panelsActions,s=Object(T.applyFilters)("blocksy.header.available-sections",null,i.sections)||i.sections.filter((function(e){var t=e.id;return"type-2"!==t&&"type-3"!==t&&-1===t.indexOf("ct-custom")}));return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("ul",{className:l()("ct-panels-manager")},s.map((function(e){var o=e.name,i=e.id,s=o||{"type-1":Object(c.__)("Global Header","blocksy")}[i]||i,d="builder_header_panel_".concat(i),p=ct_customizer_localizations.header_builder_data.header_data.header_options,b={label:s,"inner-options":W(W({},i.indexOf("ct-custom")>-1?{conditions_button:{label:Object(c.__)("Edit Conditions","blc"),type:"jsx",design:"block",render:function(){return Object(r.createElement)(Y,{headerId:i})}}}:{}),p)};return Object(r.createElement)(a.PanelMetaWrapper,q({id:d,key:i,option:b},u,{getActualOption:function(e){var o=e.open;return Object(r.createElement)(r.Fragment,null,i===n.id&&Object(r.createElement)(a.Panel,{id:d,getValues:function(){return W({id:i},n.settings||{})},option:b,onChangeFor:function(e,r){t({type:"BUILDER_GLOBAL_SETTING_ON_CHANGE",payload:{optionId:e,optionValue:r,values:Object(a.getValueFromInput)(p,Array.isArray(n.settings)?{}:n.settings||{})}})},view:"simple"}),Object(r.createElement)("li",{className:l()({active:i===n.id,"ct-global":"type-1"===i}),onClick:function(){i===n.id?o():t({type:"PICK_BUILDER_SECTION",payload:{id:i}})}},Object(r.createElement)("span",{className:"ct-panel-name"},s),i.indexOf("ct-custom")>-1&&i!==n.id&&Object(r.createElement)("span",{className:"ct-remove-instance",onClick:function(e){e.preventDefault(),e.stopPropagation(),t({type:"REMOVE_BUILDER_SECTION",payload:{id:i}})}},Object(r.createElement)("i",{className:"ct-tooltip-top"},Object(c.__)("Remove header","blc")),Object(r.createElement)("svg",{width:"11px",height:"11px",viewBox:"0 0 24 24"},Object(r.createElement)("path",{d:"M9.6,0l0,1.2H1.2v2.4h21.6V1.2h-8.4l0-1.2H9.6z M2.8,6l1.8,15.9C4.8,23.1,5.9,24,7.1,24h9.9c1.2,0,2.2-0.9,2.4-2.1L21.2,6H2.8z"})))))}}))}))),Object(r.createElement)(o.Slot,{name:"PlacementsBuilderPanelsManagerAfter"},(function(e){return 0===e.length?null:e})))};P.a.on("blocksy:options:before-option",(function(e){if(e.option&&"ct-header-builder"===e.option.type){var t=e.content;e.content=Object(r.createElement)(r.Fragment,null,t,Object(r.createElement)(o.Fill,{name:"PlacementsBuilderPanelsManager"},Object(r.createElement)(K,null)))}})),P.a.on("blocksy:options:register",(function(e){e["blocksy-display-condition"]=g,e["blocksy-customizer-options-manager"]=N}))}]);
|
static/bundle/sync.js
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
!function(e){var t={};function r(o){if(t[o])return t[o].exports;var
|
| 1 |
+
!function(e){var t={};function r(o){if(t[o])return t[o].exports;var a=t[o]={i:o,l:!1,exports:{}};return e[o].call(a.exports,a,a.exports,r),a.l=!0,a.exports}r.m=e,r.c=t,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(o,a,function(t){return e[t]}.bind(null,a));return o},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=2)}([function(e,t){e.exports=window.blocksyCustomizerSync},function(e,t){e.exports=ctEvents},function(e,t,r){"use strict";r.r(t);var o=r(1),a=r.n(o),c=r(0);function n(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return l(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 l(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 l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}a.a.on("ct:header:sync:collect-variable-descriptors",(function(e){e.account=function(e){var t=e.itemId;return s(s(s(s({accountHeaderIconSize:{selector:Object(c.assembleSelector)(Object(c.mutateSelector)({selector:[Object(c.getRootSelectorFor)({itemId:t})[0]],operation:"suffix",to_add:'[data-state="out"]'})),variable:"icon-size",responsive:!0,unit:"px"},account_loggedin_icon_size:{selector:Object(c.assembleSelector)(Object(c.mutateSelector)({selector:[Object(c.getRootSelectorFor)({itemId:t})[0]],operation:"suffix",to_add:'[data-state="in"]'})),variable:"icon-size",responsive:!0,unit:"px"},accountHeaderAvatarSize:{selector:Object(c.assembleSelector)(Object(c.getRootSelectorFor)({itemId:t})),variable:"avatar-size",responsive:!0,unit:"px"}},Object(c.handleBackgroundOptionFor)({id:"accountHeaderFormBackground",selector:Object(c.assembleSelector)(Object(c.mutateSelector)({selector:[Object(c.getRootSelectorFor)({itemId:t})[0]],operation:"suffix",to_add:"#account-modal .ct-account-form"}))})),Object(c.handleBackgroundOptionFor)({id:"accountHeaderBackground",selector:Object(c.assembleSelector)(Object(c.mutateSelector)({selector:[Object(c.getRootSelectorFor)({itemId:t})[0]],operation:"suffix",to_add:"#account-modal"}))})),{},{cart_panel_shadow:{selector:Object(c.assembleSelector)(Object(c.mutateSelector)({selector:[Object(c.getRootSelectorFor)({itemId:t})[0]],operation:"suffix",to_add:"#account-modal .ct-account-form"})),type:"box-shadow",variable:"box-shadow",responsive:!0},accountHeaderMargin:{selector:Object(c.assembleSelector)(Object(c.getRootSelectorFor)({itemId:t})),type:"spacing",variable:"margin",responsive:!0,important:!0}},Object(c.typographyOption)({id:"account_label_font",selector:Object(c.assembleSelector)(Object(c.mutateSelector)({selector:[Object(c.getRootSelectorFor)({itemId:t})[0]],operation:"suffix",to_add:".ct-header-account .ct-label"}))})),{},{accountHeaderColor:[{selector:Object(c.assembleSelector)(Object(c.getRootSelectorFor)({itemId:t})),variable:"linkInitialColor",type:"color:default",responsive:!0},{selector:Object(c.assembleSelector)(Object(c.getRootSelectorFor)({itemId:t})),variable:"linkHoverColor",type:"color:hover",responsive:!0}],transparentAccountHeaderColor:[{selector:Object(c.assembleSelector)(Object(c.mutateSelector)({selector:Object(c.getRootSelectorFor)({itemId:t}),operation:"between",to_add:'[data-transparent-row="yes"]'})),variable:"linkInitialColor",type:"color:default",responsive:!0},{selector:Object(c.assembleSelector)(Object(c.mutateSelector)({selector:Object(c.getRootSelectorFor)({itemId:t}),operation:"between",to_add:'[data-transparent-row="yes"]'})),variable:"linkHoverColor",type:"color:hover",responsive:!0}],stickyAccountHeaderColor:[{selector:Object(c.assembleSelector)(Object(c.mutateSelector)({selector:Object(c.getRootSelectorFor)({itemId:t}),operation:"between",to_add:'[data-sticky*="yes"]'})),variable:"linkInitialColor",type:"color:default",responsive:!0},{selector:Object(c.assembleSelector)(Object(c.mutateSelector)({selector:Object(c.getRootSelectorFor)({itemId:t}),operation:"between",to_add:'[data-sticky*="yes"]'})),variable:"linkHoverColor",type:"color:hover",responsive:!0}]})}})),a.a.on("ct:header:sync:item:account",(function(e){var t=e.values,r=(t.loggedin_style,t.loggedin_label,e.optionId),o=e.optionValue,a='[data-id="account"]';"account_label_visibility"===r&&Object(c.updateAndSaveEl)(a,(function(e){n(e.querySelectorAll(".ct-label")).map((function(e){Object(c.responsiveClassesFor)(o,e)}))})),"loggedin_label"===r&&Object(c.updateAndSaveEl)(a,(function(e){n(e.querySelectorAll(".ct-label")).map((function(e){e.innerHTML=o}))})),"login_label"===r&&Object(c.updateAndSaveEl)(a,(function(e){n(e.querySelectorAll(".ct-label")).map((function(e){e.innerHTML=o}))}))})),a.a.on("ct:header:sync:collect-variable-descriptors",(function(e){})),a.a.on("ct:header:sync:item:global",(function(e){var t=e.optionId,r=e.optionValue,o=e.values;if("has_sticky_header"===t||"sticky_rows"===t||"sticky_behaviour"===t){var c=o.has_sticky_header,n=o.sticky_rows,l=o.sticky_behaviour;Array.from(document.querySelectorAll("[data-sticky]")).map((function(e){e.removeAttribute("data-sticky")})),"yes"===c&&Array.from(document.querySelectorAll("[data-row]")).map((function(e){var t=e.dataset.row;if(n[t]){var r=[];l.desktop&&r.push("desktop"),l.mobile&&r.push("mobile"),e.dataset.sticky=r.join(":")}})),a.a.trigger("blocksy:frontend:init")}if("transparent_behaviour"===t){if(!document.querySelector("[data-transparent]"))return;Array.from(document.querySelectorAll("[data-device]")).map((function(e){e.removeAttribute("data-transparent"),Array.from(e.querySelectorAll("[data-row]")).map((function(e){return e.removeAttribute("data-transparent-row")})),r[e.dataset.device]&&(e.dataset.transparent="",Array.from(e.querySelectorAll("[data-row]")).map((function(e){return e.dataset.transparentRow="yes"}))),a.a.trigger("blocksy:frontend:init")}))}}))}]);
|
static/js/frontend/account.js
CHANGED
|
@@ -14,6 +14,89 @@ const activateScreen = (
|
|
| 14 |
|
| 15 |
el.querySelector('[class*="-form"].active').classList.remove('active')
|
| 16 |
el.querySelector(`.ct-${screen}-form`).classList.add('active')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
}
|
| 18 |
|
| 19 |
const handleAccountModal = (el) => {
|
|
@@ -21,11 +104,122 @@ const handleAccountModal = (el) => {
|
|
| 21 |
return
|
| 22 |
}
|
| 23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
;['login', 'register', 'forgot-password'].map((screen) => {
|
| 25 |
Array.from(el.querySelectorAll(`.ct-${screen}`)).map((itemEl) => {
|
| 26 |
itemEl.addEventListener('click', (e) => {
|
| 27 |
e.preventDefault()
|
| 28 |
-
|
| 29 |
activateScreen(el, { screen })
|
| 30 |
})
|
| 31 |
})
|
|
@@ -42,6 +236,12 @@ export const mountAccount = () => {
|
|
| 42 |
el.hasSearchEventListener = true
|
| 43 |
|
| 44 |
el.addEventListener('click', (e) => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
activateScreen(document.querySelector(el.hash), {
|
| 46 |
screen: 'login',
|
| 47 |
})
|
|
@@ -55,8 +255,8 @@ export const mountAccount = () => {
|
|
| 55 |
})
|
| 56 |
})
|
| 57 |
|
| 58 |
-
if (
|
| 59 |
-
handleAccountModal(document.querySelector(
|
| 60 |
}
|
| 61 |
}
|
| 62 |
)
|
| 14 |
|
| 15 |
el.querySelector('[class*="-form"].active').classList.remove('active')
|
| 16 |
el.querySelector(`.ct-${screen}-form`).classList.add('active')
|
| 17 |
+
|
| 18 |
+
if (el.querySelector(`.ct-${screen}-form form`)) {
|
| 19 |
+
el.querySelector(`.ct-${screen}-form form`).reset()
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
el.querySelector('.ct-account-form').classList.remove('ct-error')
|
| 23 |
+
|
| 24 |
+
let maybeMessageContainer = el
|
| 25 |
+
.querySelector(`.ct-${screen}-form`)
|
| 26 |
+
.querySelector('.ct-message')
|
| 27 |
+
|
| 28 |
+
if (maybeMessageContainer) {
|
| 29 |
+
maybeMessageContainer.remove()
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
let maybeErrorContainer = el
|
| 33 |
+
.querySelector(`.ct-${screen}-form`)
|
| 34 |
+
.querySelector('.ct-errors')
|
| 35 |
+
|
| 36 |
+
if (maybeErrorContainer) {
|
| 37 |
+
maybeErrorContainer.remove()
|
| 38 |
+
}
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
const maybeAddErrors = (container, html) => {
|
| 42 |
+
let parser = new DOMParser()
|
| 43 |
+
let doc = parser.parseFromString(html, 'text/html')
|
| 44 |
+
|
| 45 |
+
let maybeErrorContainer = container.querySelector('.ct-errors')
|
| 46 |
+
|
| 47 |
+
if (maybeErrorContainer) {
|
| 48 |
+
maybeErrorContainer.remove()
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
container.closest('.ct-account-form').classList.remove('ct-error')
|
| 52 |
+
|
| 53 |
+
let maybeLoginError = doc.querySelector('#login_error')
|
| 54 |
+
|
| 55 |
+
if (maybeLoginError) {
|
| 56 |
+
container.insertAdjacentHTML(
|
| 57 |
+
'afterbegin',
|
| 58 |
+
`<div class="ct-errors">${maybeLoginError.innerHTML}</div>`
|
| 59 |
+
)
|
| 60 |
+
|
| 61 |
+
requestAnimationFrame(() => {
|
| 62 |
+
container.closest('.ct-account-form').classList.add('ct-error')
|
| 63 |
+
})
|
| 64 |
+
}
|
| 65 |
+
|
| 66 |
+
return {
|
| 67 |
+
hasError: !!maybeLoginError,
|
| 68 |
+
doc,
|
| 69 |
+
}
|
| 70 |
+
}
|
| 71 |
+
|
| 72 |
+
const maybeAddMessage = (container, html) => {
|
| 73 |
+
let parser = new DOMParser()
|
| 74 |
+
let doc = parser.parseFromString(html, 'text/html')
|
| 75 |
+
|
| 76 |
+
let maybeMessageContainer = container.querySelector('.ct-message')
|
| 77 |
+
|
| 78 |
+
if (maybeMessageContainer) {
|
| 79 |
+
maybeMessageContainer.remove()
|
| 80 |
+
}
|
| 81 |
+
|
| 82 |
+
let maybeErrorContainer = container.querySelector('.ct-errors')
|
| 83 |
+
|
| 84 |
+
if (maybeErrorContainer) {
|
| 85 |
+
maybeErrorContainer.remove()
|
| 86 |
+
}
|
| 87 |
+
|
| 88 |
+
let maybeMessage = doc.querySelector('.message')
|
| 89 |
+
|
| 90 |
+
container.closest('.ct-account-form').classList.remove('ct-error')
|
| 91 |
+
|
| 92 |
+
if (maybeMessage) {
|
| 93 |
+
container.insertAdjacentHTML(
|
| 94 |
+
'afterbegin',
|
| 95 |
+
`<div class="ct-message">${maybeMessage.innerHTML}</div>`
|
| 96 |
+
)
|
| 97 |
+
}
|
| 98 |
+
|
| 99 |
+
return { doc }
|
| 100 |
}
|
| 101 |
|
| 102 |
const handleAccountModal = (el) => {
|
| 104 |
return
|
| 105 |
}
|
| 106 |
|
| 107 |
+
el.addEventListener(
|
| 108 |
+
'click',
|
| 109 |
+
(e) => {
|
| 110 |
+
if (e.target.href && e.target.href.indexOf('lostpassword') > -1) {
|
| 111 |
+
activateScreen(el, { screen: 'forgot-password' })
|
| 112 |
+
e.preventDefault()
|
| 113 |
+
}
|
| 114 |
+
|
| 115 |
+
if (
|
| 116 |
+
e.target.href &&
|
| 117 |
+
e.target.href.indexOf('wp-login') > -1 &&
|
| 118 |
+
e.target.href.indexOf('lostpassword') === -1
|
| 119 |
+
) {
|
| 120 |
+
activateScreen(el, { screen: 'login' })
|
| 121 |
+
e.preventDefault()
|
| 122 |
+
}
|
| 123 |
+
},
|
| 124 |
+
true
|
| 125 |
+
)
|
| 126 |
+
|
| 127 |
+
let maybeLogin = el.querySelector('[name="loginform"]')
|
| 128 |
+
let maybeRegister = el.querySelector('[name="registerform"]')
|
| 129 |
+
let maybeLostPassword = el.querySelector('[name="lostpasswordform"]')
|
| 130 |
+
|
| 131 |
+
if (maybeLogin) {
|
| 132 |
+
maybeLogin.addEventListener('submit', (e) => {
|
| 133 |
+
e.preventDefault()
|
| 134 |
+
|
| 135 |
+
if (window.ct_customizer_localizations) {
|
| 136 |
+
return
|
| 137 |
+
}
|
| 138 |
+
|
| 139 |
+
fetch(maybeLogin.action, {
|
| 140 |
+
method: maybeLogin.method,
|
| 141 |
+
body: new FormData(maybeLogin),
|
| 142 |
+
})
|
| 143 |
+
.then((response) => response.text())
|
| 144 |
+
.then((html) => {
|
| 145 |
+
const { doc, hasError } = maybeAddErrors(
|
| 146 |
+
maybeLogin.closest('.ct-login-form'),
|
| 147 |
+
html
|
| 148 |
+
)
|
| 149 |
+
|
| 150 |
+
if (!hasError) {
|
| 151 |
+
location = maybeLogin.querySelector(
|
| 152 |
+
'[name="redirect_to"]'
|
| 153 |
+
).value
|
| 154 |
+
}
|
| 155 |
+
})
|
| 156 |
+
})
|
| 157 |
+
}
|
| 158 |
+
|
| 159 |
+
if (maybeRegister) {
|
| 160 |
+
maybeRegister.addEventListener('submit', (e) => {
|
| 161 |
+
e.preventDefault()
|
| 162 |
+
|
| 163 |
+
if (window.ct_customizer_localizations) {
|
| 164 |
+
return
|
| 165 |
+
}
|
| 166 |
+
|
| 167 |
+
fetch(maybeRegister.action, {
|
| 168 |
+
method: maybeRegister.method,
|
| 169 |
+
body: new FormData(maybeRegister),
|
| 170 |
+
})
|
| 171 |
+
.then((response) => response.text())
|
| 172 |
+
.then((html) => {
|
| 173 |
+
const { doc, hasError } = maybeAddErrors(
|
| 174 |
+
maybeRegister.closest('.ct-register-form'),
|
| 175 |
+
html
|
| 176 |
+
)
|
| 177 |
+
|
| 178 |
+
if (!hasError) {
|
| 179 |
+
maybeAddMessage(
|
| 180 |
+
maybeRegister.closest('.ct-register-form'),
|
| 181 |
+
html
|
| 182 |
+
)
|
| 183 |
+
}
|
| 184 |
+
})
|
| 185 |
+
})
|
| 186 |
+
}
|
| 187 |
+
|
| 188 |
+
if (maybeLostPassword) {
|
| 189 |
+
maybeLostPassword.addEventListener('submit', (e) => {
|
| 190 |
+
e.preventDefault()
|
| 191 |
+
|
| 192 |
+
if (window.ct_customizer_localizations) {
|
| 193 |
+
return
|
| 194 |
+
}
|
| 195 |
+
|
| 196 |
+
fetch(maybeLostPassword.action, {
|
| 197 |
+
method: maybeLostPassword.method,
|
| 198 |
+
body: new FormData(maybeLostPassword),
|
| 199 |
+
})
|
| 200 |
+
.then((response) => response.text())
|
| 201 |
+
.then((html) => {
|
| 202 |
+
const { doc, hasError } = maybeAddErrors(
|
| 203 |
+
maybeLostPassword.closest('.ct-forgot-password-form'),
|
| 204 |
+
html
|
| 205 |
+
)
|
| 206 |
+
|
| 207 |
+
if (!hasError) {
|
| 208 |
+
maybeAddMessage(
|
| 209 |
+
maybeLostPassword.closest(
|
| 210 |
+
'.ct-forgot-password-form'
|
| 211 |
+
),
|
| 212 |
+
html
|
| 213 |
+
)
|
| 214 |
+
}
|
| 215 |
+
})
|
| 216 |
+
})
|
| 217 |
+
}
|
| 218 |
+
|
| 219 |
;['login', 'register', 'forgot-password'].map((screen) => {
|
| 220 |
Array.from(el.querySelectorAll(`.ct-${screen}`)).map((itemEl) => {
|
| 221 |
itemEl.addEventListener('click', (e) => {
|
| 222 |
e.preventDefault()
|
|
|
|
| 223 |
activateScreen(el, { screen })
|
| 224 |
})
|
| 225 |
})
|
| 236 |
el.hasSearchEventListener = true
|
| 237 |
|
| 238 |
el.addEventListener('click', (e) => {
|
| 239 |
+
try {
|
| 240 |
+
document.querySelector(el.hash)
|
| 241 |
+
} catch (e) {
|
| 242 |
+
return
|
| 243 |
+
}
|
| 244 |
+
|
| 245 |
activateScreen(document.querySelector(el.hash), {
|
| 246 |
screen: 'login',
|
| 247 |
})
|
| 255 |
})
|
| 256 |
})
|
| 257 |
|
| 258 |
+
if (document.querySelector('#account-modal')) {
|
| 259 |
+
handleAccountModal(document.querySelector('#account-modal'))
|
| 260 |
}
|
| 261 |
}
|
| 262 |
)
|
static/js/frontend/sticky.js
CHANGED
|
@@ -166,7 +166,9 @@ export const mountStickyHeader = () => {
|
|
| 166 |
)
|
| 167 |
} else {
|
| 168 |
if (!isSticky) {
|
| 169 |
-
stickyContainer.dataset.sticky = stickyComponents
|
|
|
|
|
|
|
| 170 |
|
| 171 |
stickyContainer.parentNode.removeAttribute('style')
|
| 172 |
|
|
@@ -261,16 +263,18 @@ export const mountStickyHeader = () => {
|
|
| 261 |
stickyContainer.dataset.sticky.indexOf('yes-hide') === -1 &&
|
| 262 |
stickyContainer.dataset.sticky.indexOf('yes:') > -1
|
| 263 |
) {
|
| 264 |
-
if (Math.abs(window.scrollY - startPosition) >
|
| 265 |
stickyContainer.dataset.sticky = stickyComponents.join(
|
| 266 |
':'
|
| 267 |
)
|
| 268 |
|
| 269 |
-
|
|
|
|
| 270 |
|
| 271 |
-
|
| 272 |
-
|
| 273 |
-
|
|
|
|
| 274 |
|
| 275 |
setTransparencyFor(stickyContainer, 'yes')
|
| 276 |
} else {
|
|
@@ -290,15 +294,18 @@ export const mountStickyHeader = () => {
|
|
| 290 |
':'
|
| 291 |
)
|
| 292 |
|
| 293 |
-
|
| 294 |
-
|
| 295 |
-
|
| 296 |
-
|
| 297 |
-
Array.from(
|
| 298 |
-
stickyContainer.querySelectorAll(
|
| 299 |
-
'[data-row]'
|
| 300 |
)
|
| 301 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 302 |
setTransparencyFor(stickyContainer, 'yes')
|
| 303 |
}, 200)
|
| 304 |
})
|
| 166 |
)
|
| 167 |
} else {
|
| 168 |
if (!isSticky) {
|
| 169 |
+
stickyContainer.dataset.sticky = stickyComponents
|
| 170 |
+
.filter((c) => c !== 'yes-end')
|
| 171 |
+
.join(':')
|
| 172 |
|
| 173 |
stickyContainer.parentNode.removeAttribute('style')
|
| 174 |
|
| 263 |
stickyContainer.dataset.sticky.indexOf('yes-hide') === -1 &&
|
| 264 |
stickyContainer.dataset.sticky.indexOf('yes:') > -1
|
| 265 |
) {
|
| 266 |
+
if (Math.abs(window.scrollY - startPosition) > 10) {
|
| 267 |
stickyContainer.dataset.sticky = stickyComponents.join(
|
| 268 |
':'
|
| 269 |
)
|
| 270 |
|
| 271 |
+
setTimeout(() => {
|
| 272 |
+
stickyContainer.parentNode.removeAttribute('style')
|
| 273 |
|
| 274 |
+
Array.from(
|
| 275 |
+
stickyContainer.querySelectorAll('[data-row]')
|
| 276 |
+
).map((row) => row.removeAttribute('style'))
|
| 277 |
+
}, 300)
|
| 278 |
|
| 279 |
setTransparencyFor(stickyContainer, 'yes')
|
| 280 |
} else {
|
| 294 |
':'
|
| 295 |
)
|
| 296 |
|
| 297 |
+
setTimeout(() => {
|
| 298 |
+
stickyContainer.parentNode.removeAttribute(
|
| 299 |
+
'style'
|
|
|
|
|
|
|
|
|
|
|
|
|
| 300 |
)
|
| 301 |
+
|
| 302 |
+
Array.from(
|
| 303 |
+
stickyContainer.querySelectorAll(
|
| 304 |
+
'[data-row]'
|
| 305 |
+
)
|
| 306 |
+
).map((row) => row.removeAttribute('style'))
|
| 307 |
+
}, 300)
|
| 308 |
+
|
| 309 |
setTransparencyFor(stickyContainer, 'yes')
|
| 310 |
}, 200)
|
| 311 |
})
|
static/js/helpers/useActivationAction.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
| 4 |
useEffect,
|
| 5 |
useContext,
|
| 6 |
useState,
|
| 7 |
-
Fragment
|
| 8 |
} from '@wordpress/element'
|
| 9 |
import { __, sprintf } from 'ct-i18n'
|
| 10 |
import { Dialog, DialogOverlay, DialogContent } from './reach/dialog'
|
|
@@ -38,9 +38,13 @@ const useActivationAction = (extension, cb = () => {}) => {
|
|
| 38 |
try {
|
| 39 |
await fetch(ctDashboardLocalizations.ajax_url, {
|
| 40 |
method: 'POST',
|
| 41 |
-
body
|
| 42 |
})
|
| 43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
cb()
|
| 45 |
} catch (e) {}
|
| 46 |
|
|
@@ -89,7 +93,7 @@ const useActivationAction = (extension, cb = () => {}) => {
|
|
| 89 |
</div>
|
| 90 |
)}
|
| 91 |
/>
|
| 92 |
-
) : null
|
| 93 |
]
|
| 94 |
}
|
| 95 |
|
| 4 |
useEffect,
|
| 5 |
useContext,
|
| 6 |
useState,
|
| 7 |
+
Fragment,
|
| 8 |
} from '@wordpress/element'
|
| 9 |
import { __, sprintf } from 'ct-i18n'
|
| 10 |
import { Dialog, DialogOverlay, DialogContent } from './reach/dialog'
|
| 38 |
try {
|
| 39 |
await fetch(ctDashboardLocalizations.ajax_url, {
|
| 40 |
method: 'POST',
|
| 41 |
+
body,
|
| 42 |
})
|
| 43 |
|
| 44 |
+
if (extension.config.require_refresh) {
|
| 45 |
+
location.reload()
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
cb()
|
| 49 |
} catch (e) {}
|
| 50 |
|
| 93 |
</div>
|
| 94 |
)}
|
| 95 |
/>
|
| 96 |
+
) : null,
|
| 97 |
]
|
| 98 |
}
|
| 99 |
|
static/js/options/CustomizerOptionsManager.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
import { useRef, useState, createElement, Fragment } from '@wordpress/element'
|
| 2 |
import { __ } from 'ct-i18n'
|
| 3 |
-
import
|
| 4 |
import { Overlay } from 'blocksy-options'
|
| 5 |
|
| 6 |
import classnames from 'classnames'
|
|
@@ -288,8 +288,14 @@ const CustomizerOptionsManager = () => {
|
|
| 288 |
}}>
|
| 289 |
{
|
| 290 |
{
|
| 291 |
-
options: __(
|
| 292 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 293 |
}[component]
|
| 294 |
}
|
| 295 |
<span
|
|
@@ -311,7 +317,9 @@ const CustomizerOptionsManager = () => {
|
|
| 311 |
))}
|
| 312 |
</div>
|
| 313 |
|
| 314 |
-
<div
|
|
|
|
|
|
|
| 315 |
<button
|
| 316 |
onClick={(e) => {
|
| 317 |
e.preventDefault()
|
|
@@ -360,7 +368,7 @@ const CustomizerOptionsManager = () => {
|
|
| 360 |
}
|
| 361 |
)
|
| 362 |
|
| 363 |
-
|
| 364 |
blob,
|
| 365 |
`blocksy-export.dat`
|
| 366 |
)
|
| 1 |
import { useRef, useState, createElement, Fragment } from '@wordpress/element'
|
| 2 |
import { __ } from 'ct-i18n'
|
| 3 |
+
import saveAs from './file-saver'
|
| 4 |
import { Overlay } from 'blocksy-options'
|
| 5 |
|
| 6 |
import classnames from 'classnames'
|
| 288 |
}}>
|
| 289 |
{
|
| 290 |
{
|
| 291 |
+
options: __(
|
| 292 |
+
'Customizer settings',
|
| 293 |
+
'blc'
|
| 294 |
+
),
|
| 295 |
+
widgets: __(
|
| 296 |
+
'Widgets settings',
|
| 297 |
+
'blc'
|
| 298 |
+
),
|
| 299 |
}[component]
|
| 300 |
}
|
| 301 |
<span
|
| 317 |
))}
|
| 318 |
</div>
|
| 319 |
|
| 320 |
+
<div
|
| 321 |
+
className="ct-modal-actions has-divider"
|
| 322 |
+
data-buttons="2">
|
| 323 |
<button
|
| 324 |
onClick={(e) => {
|
| 325 |
e.preventDefault()
|
| 368 |
}
|
| 369 |
)
|
| 370 |
|
| 371 |
+
saveAs(
|
| 372 |
blob,
|
| 373 |
`blocksy-export.dat`
|
| 374 |
)
|
static/js/options/file-saver.js
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* FileSaver.js
|
| 3 |
+
* A saveAs() FileSaver implementation.
|
| 4 |
+
*
|
| 5 |
+
* By Eli Grey, http://eligrey.com
|
| 6 |
+
*
|
| 7 |
+
* License : https://github.com/eligrey/FileSaver.js/blob/master/LICENSE.md (MIT)
|
| 8 |
+
* source : http://purl.eligrey.com/github/FileSaver.js
|
| 9 |
+
*/
|
| 10 |
+
|
| 11 |
+
// The one and only way of getting global scope in all environments
|
| 12 |
+
// https://stackoverflow.com/q/3277182/1008999
|
| 13 |
+
var _global =
|
| 14 |
+
typeof window === 'object' && window.window === window
|
| 15 |
+
? window
|
| 16 |
+
: typeof self === 'object' && self.self === self
|
| 17 |
+
? self
|
| 18 |
+
: typeof global === 'object' && global.global === global
|
| 19 |
+
? global
|
| 20 |
+
: this
|
| 21 |
+
|
| 22 |
+
function bom(blob, opts) {
|
| 23 |
+
if (typeof opts === 'undefined') opts = { autoBom: false }
|
| 24 |
+
else if (typeof opts !== 'object') {
|
| 25 |
+
console.warn('Deprecated: Expected third argument to be a object')
|
| 26 |
+
opts = { autoBom: !opts }
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
// prepend BOM for UTF-8 XML and text/* types (including HTML)
|
| 30 |
+
// note: your browser will automatically convert UTF-16 U+FEFF to EF BB BF
|
| 31 |
+
if (
|
| 32 |
+
opts.autoBom &&
|
| 33 |
+
/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(
|
| 34 |
+
blob.type
|
| 35 |
+
)
|
| 36 |
+
) {
|
| 37 |
+
return new Blob([String.fromCharCode(0xfeff), blob], {
|
| 38 |
+
type: blob.type,
|
| 39 |
+
})
|
| 40 |
+
}
|
| 41 |
+
return blob
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
function download(url, name, opts) {
|
| 45 |
+
var xhr = new XMLHttpRequest()
|
| 46 |
+
xhr.open('GET', url)
|
| 47 |
+
xhr.responseType = 'blob'
|
| 48 |
+
xhr.onload = function () {
|
| 49 |
+
saveAs(xhr.response, name, opts)
|
| 50 |
+
}
|
| 51 |
+
xhr.onerror = function () {
|
| 52 |
+
console.error('could not download file')
|
| 53 |
+
}
|
| 54 |
+
xhr.send()
|
| 55 |
+
}
|
| 56 |
+
|
| 57 |
+
function corsEnabled(url) {
|
| 58 |
+
var xhr = new XMLHttpRequest()
|
| 59 |
+
// use sync to avoid popup blocker
|
| 60 |
+
xhr.open('HEAD', url, false)
|
| 61 |
+
try {
|
| 62 |
+
xhr.send()
|
| 63 |
+
} catch (e) {}
|
| 64 |
+
return xhr.status >= 200 && xhr.status <= 299
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
// `a.click()` doesn't work for all browsers (#465)
|
| 68 |
+
function click(node) {
|
| 69 |
+
try {
|
| 70 |
+
node.dispatchEvent(new MouseEvent('click'))
|
| 71 |
+
} catch (e) {
|
| 72 |
+
var evt = document.createEvent('MouseEvents')
|
| 73 |
+
evt.initMouseEvent(
|
| 74 |
+
'click',
|
| 75 |
+
true,
|
| 76 |
+
true,
|
| 77 |
+
window,
|
| 78 |
+
0,
|
| 79 |
+
0,
|
| 80 |
+
0,
|
| 81 |
+
80,
|
| 82 |
+
20,
|
| 83 |
+
false,
|
| 84 |
+
false,
|
| 85 |
+
false,
|
| 86 |
+
false,
|
| 87 |
+
0,
|
| 88 |
+
null
|
| 89 |
+
)
|
| 90 |
+
node.dispatchEvent(evt)
|
| 91 |
+
}
|
| 92 |
+
}
|
| 93 |
+
|
| 94 |
+
var saveAs =
|
| 95 |
+
// probably in some web worker
|
| 96 |
+
typeof window !== 'object' || window !== _global
|
| 97 |
+
? function saveAs() {
|
| 98 |
+
/* noop */
|
| 99 |
+
}
|
| 100 |
+
: // Use download attribute first if possible (#193 Lumia mobile)
|
| 101 |
+
'download' in HTMLAnchorElement.prototype
|
| 102 |
+
? function saveAs(blob, name, opts) {
|
| 103 |
+
var URL = _global.URL || _global.webkitURL
|
| 104 |
+
var a = document.createElement('a')
|
| 105 |
+
name = name || blob.name || 'download'
|
| 106 |
+
|
| 107 |
+
a.download = name
|
| 108 |
+
a.rel = 'noopener' // tabnabbing
|
| 109 |
+
|
| 110 |
+
// TODO: detect chrome extensions & packaged apps
|
| 111 |
+
// a.target = '_blank'
|
| 112 |
+
|
| 113 |
+
if (typeof blob === 'string') {
|
| 114 |
+
// Support regular links
|
| 115 |
+
a.href = blob
|
| 116 |
+
if (a.origin !== location.origin) {
|
| 117 |
+
corsEnabled(a.href)
|
| 118 |
+
? download(blob, name, opts)
|
| 119 |
+
: click(a, (a.target = '_blank'))
|
| 120 |
+
} else {
|
| 121 |
+
click(a)
|
| 122 |
+
}
|
| 123 |
+
} else {
|
| 124 |
+
// Support blobs
|
| 125 |
+
a.href = URL.createObjectURL(blob)
|
| 126 |
+
setTimeout(function () {
|
| 127 |
+
URL.revokeObjectURL(a.href)
|
| 128 |
+
}, 4e4) // 40s
|
| 129 |
+
setTimeout(function () {
|
| 130 |
+
click(a)
|
| 131 |
+
}, 0)
|
| 132 |
+
}
|
| 133 |
+
}
|
| 134 |
+
: // Use msSaveOrOpenBlob as a second approach
|
| 135 |
+
'msSaveOrOpenBlob' in navigator
|
| 136 |
+
? function saveAs(blob, name, opts) {
|
| 137 |
+
name = name || blob.name || 'download'
|
| 138 |
+
|
| 139 |
+
if (typeof blob === 'string') {
|
| 140 |
+
if (corsEnabled(blob)) {
|
| 141 |
+
download(blob, name, opts)
|
| 142 |
+
} else {
|
| 143 |
+
var a = document.createElement('a')
|
| 144 |
+
a.href = blob
|
| 145 |
+
a.target = '_blank'
|
| 146 |
+
setTimeout(function () {
|
| 147 |
+
click(a)
|
| 148 |
+
})
|
| 149 |
+
}
|
| 150 |
+
} else {
|
| 151 |
+
navigator.msSaveOrOpenBlob(bom(blob, opts), name)
|
| 152 |
+
}
|
| 153 |
+
}
|
| 154 |
+
: // Fallback to using FileReader and a popup
|
| 155 |
+
function saveAs(blob, name, opts, popup) {
|
| 156 |
+
// Open a popup immediately do go around popup blocker
|
| 157 |
+
// Mostly only available on user interaction and the fileReader is async so...
|
| 158 |
+
popup = popup || open('', '_blank')
|
| 159 |
+
if (popup) {
|
| 160 |
+
popup.document.title = popup.document.body.innerText =
|
| 161 |
+
'downloading...'
|
| 162 |
+
}
|
| 163 |
+
|
| 164 |
+
if (typeof blob === 'string') return download(blob, name, opts)
|
| 165 |
+
|
| 166 |
+
var force = blob.type === 'application/octet-stream'
|
| 167 |
+
var isSafari =
|
| 168 |
+
/constructor/i.test(_global.HTMLElement) || _global.safari
|
| 169 |
+
var isChromeIOS = /CriOS\/[\d]+/.test(navigator.userAgent)
|
| 170 |
+
|
| 171 |
+
if (
|
| 172 |
+
(isChromeIOS || (force && isSafari)) &&
|
| 173 |
+
typeof FileReader === 'object'
|
| 174 |
+
) {
|
| 175 |
+
// Safari doesn't allow downloading of blob URLs
|
| 176 |
+
var reader = new FileReader()
|
| 177 |
+
reader.onloadend = function () {
|
| 178 |
+
var url = reader.result
|
| 179 |
+
url = isChromeIOS
|
| 180 |
+
? url
|
| 181 |
+
: url.replace(
|
| 182 |
+
/^data:[^;]*;/,
|
| 183 |
+
'data:attachment/file;'
|
| 184 |
+
)
|
| 185 |
+
if (popup) popup.location.href = url
|
| 186 |
+
else location = url
|
| 187 |
+
popup = null // reverse-tabnabbing #460
|
| 188 |
+
}
|
| 189 |
+
reader.readAsDataURL(blob)
|
| 190 |
+
} else {
|
| 191 |
+
var URL = _global.URL || _global.webkitURL
|
| 192 |
+
var url = URL.createObjectURL(blob)
|
| 193 |
+
if (popup) popup.location = url
|
| 194 |
+
else location.href = url
|
| 195 |
+
popup = null // reverse-tabnabbing #460
|
| 196 |
+
setTimeout(function () {
|
| 197 |
+
URL.revokeObjectURL(url)
|
| 198 |
+
}, 4e4) // 40s
|
| 199 |
+
}
|
| 200 |
+
}
|
| 201 |
+
|
| 202 |
+
module.exports = saveAs
|
static/sass/options/display-conditions.scss
CHANGED
|
@@ -1,11 +1,40 @@
|
|
|
|
|
| 1 |
.ct-condition-location {
|
| 2 |
display: grid;
|
| 3 |
grid-template-columns: 1fr 100px;
|
| 4 |
grid-column-gap: 10px;
|
| 5 |
-
|
|
|
|
| 6 |
--x-select-dropdown-width: calc(100% + 110px);
|
| 7 |
}
|
| 8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
.ct-display-conditions {
|
| 10 |
padding: 30px 0;
|
| 11 |
margin: 10px 0 0 0;
|
|
@@ -17,7 +46,6 @@
|
|
| 17 |
grid-template-columns: var(--grid-template-columns);
|
| 18 |
grid-column-gap: 10px;
|
| 19 |
grid-row-gap: 10px;
|
| 20 |
-
position: relative;
|
| 21 |
padding-bottom: 20px;
|
| 22 |
margin-bottom: 20px;
|
| 23 |
border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
|
|
@@ -50,37 +78,10 @@
|
|
| 50 |
}
|
| 51 |
}
|
| 52 |
|
| 53 |
-
|
| 54 |
-
|
| 55 |
.ct-select-dropdown {
|
| 56 |
box-shadow: 0 10px 15px rgba(0, 0, 0, 0.08),
|
| 57 |
0px 0px 0px 1px rgba(221, 221, 221, 0.5);
|
| 58 |
}
|
| 59 |
-
|
| 60 |
-
button {
|
| 61 |
-
position: absolute;
|
| 62 |
-
top: 0;
|
| 63 |
-
right: -30px;
|
| 64 |
-
font-size: 18px;
|
| 65 |
-
line-height: 18px;
|
| 66 |
-
width: 30px;
|
| 67 |
-
height: 30px;
|
| 68 |
-
padding: 0;
|
| 69 |
-
border: none;
|
| 70 |
-
cursor: pointer;
|
| 71 |
-
appearance: none;
|
| 72 |
-
opacity: 0.5;
|
| 73 |
-
background: transparent;
|
| 74 |
-
|
| 75 |
-
&:focus {
|
| 76 |
-
outline: none;
|
| 77 |
-
}
|
| 78 |
-
|
| 79 |
-
&:hover {
|
| 80 |
-
opacity: 1;
|
| 81 |
-
color: #a00;
|
| 82 |
-
}
|
| 83 |
-
}
|
| 84 |
}
|
| 85 |
|
| 86 |
.ct-condition-type {
|
|
@@ -127,6 +128,37 @@
|
|
| 127 |
}
|
| 128 |
}
|
| 129 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 130 |
.ct-conditions-actions {
|
| 131 |
display: grid;
|
| 132 |
grid-template-columns: repeat(2, 1fr);
|
| 1 |
+
// conditions location
|
| 2 |
.ct-condition-location {
|
| 3 |
display: grid;
|
| 4 |
grid-template-columns: 1fr 100px;
|
| 5 |
grid-column-gap: 10px;
|
| 6 |
+
padding-bottom: 20px;
|
| 7 |
+
border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
|
| 8 |
--x-select-dropdown-width: calc(100% + 110px);
|
| 9 |
}
|
| 10 |
|
| 11 |
+
.ct-new-condition-location {
|
| 12 |
+
--options-vertical-spacing: 20px;
|
| 13 |
+
padding: var(--options-horizontal-spacing, 0 14px);
|
| 14 |
+
|
| 15 |
+
.ct-new-location {
|
| 16 |
+
--options-horizontal-spacing: 0;
|
| 17 |
+
|
| 18 |
+
.ct-control {
|
| 19 |
+
padding-bottom: 20px;
|
| 20 |
+
border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
button {
|
| 24 |
+
right: -24px;
|
| 25 |
+
width: 24px;
|
| 26 |
+
}
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
.button {
|
| 30 |
+
width: 100%;
|
| 31 |
+
margin-top: 20px;
|
| 32 |
+
}
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
// display conditions
|
| 38 |
.ct-display-conditions {
|
| 39 |
padding: 30px 0;
|
| 40 |
margin: 10px 0 0 0;
|
| 46 |
grid-template-columns: var(--grid-template-columns);
|
| 47 |
grid-column-gap: 10px;
|
| 48 |
grid-row-gap: 10px;
|
|
|
|
| 49 |
padding-bottom: 20px;
|
| 50 |
margin-bottom: 20px;
|
| 51 |
border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
|
| 78 |
}
|
| 79 |
}
|
| 80 |
|
|
|
|
|
|
|
| 81 |
.ct-select-dropdown {
|
| 82 |
box-shadow: 0 10px 15px rgba(0, 0, 0, 0.08),
|
| 83 |
0px 0px 0px 1px rgba(221, 221, 221, 0.5);
|
| 84 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 85 |
}
|
| 86 |
|
| 87 |
.ct-condition-type {
|
| 128 |
}
|
| 129 |
}
|
| 130 |
|
| 131 |
+
.ct-new-location,
|
| 132 |
+
.ct-condition-group {
|
| 133 |
+
position: relative;
|
| 134 |
+
|
| 135 |
+
button {
|
| 136 |
+
position: absolute;
|
| 137 |
+
top: 0;
|
| 138 |
+
right: -30px;
|
| 139 |
+
font-size: 18px;
|
| 140 |
+
line-height: 18px;
|
| 141 |
+
width: 30px;
|
| 142 |
+
height: 30px;
|
| 143 |
+
padding: 0;
|
| 144 |
+
border: none;
|
| 145 |
+
cursor: pointer;
|
| 146 |
+
appearance: none;
|
| 147 |
+
opacity: 0.5;
|
| 148 |
+
background: transparent;
|
| 149 |
+
|
| 150 |
+
&:focus {
|
| 151 |
+
outline: none;
|
| 152 |
+
}
|
| 153 |
+
|
| 154 |
+
&:hover {
|
| 155 |
+
opacity: 1;
|
| 156 |
+
color: #a00;
|
| 157 |
+
}
|
| 158 |
+
}
|
| 159 |
+
}
|
| 160 |
+
|
| 161 |
+
|
| 162 |
.ct-conditions-actions {
|
| 163 |
display: grid;
|
| 164 |
grid-template-columns: repeat(2, 1fr);
|
