Version Description
Download this release
Release Info
Developer | creativethemeshq |
Plugin | Blocksy Companion |
Version | 1.8.60 |
Comparing to | |
See all releases |
Code changes from version 1.8.59 to 1.8.60
- blocksy-companion.php +1 -1
- framework/dashboard.php +12 -0
- framework/extensions/cookies-consent/helpers.php +1 -16
- framework/extensions/cookies-consent/static/bundle/main.min.css +1 -1
- framework/extensions/cookies-consent/static/bundle/sync.js +1 -1
- framework/extensions/cookies-consent/static/js/sync.js +11 -33
- framework/extensions/cookies-consent/static/js/sync/helpers.js +0 -126
- framework/extensions/newsletter-subscribe/admin-static/bundle/sync.js +1 -1
- framework/extensions/newsletter-subscribe/admin-static/js/sync.js +14 -18
- framework/extensions/newsletter-subscribe/customizer.php +4 -2
- framework/extensions/newsletter-subscribe/helpers.php +2 -24
- framework/extensions/newsletter-subscribe/static/bundle/main.min.css +1 -1
- framework/extensions/product-reviews/static/bundle/dashboard.js +1 -1
- framework/extensions/product-reviews/static/bundle/main-admin.min.css +1 -1
- framework/extensions/product-reviews/static/bundle/main.min.css +1 -1
- framework/extensions/trending/static/bundle/main.min.css +1 -1
- framework/extensions/widgets/static/bundle/main.min.css +1 -1
- languages/blocksy-companion.pot +122 -122
- readme.txt +5 -1
- static/bundle/account-lazy.min.css +1 -1
- static/bundle/dashboard.js +1 -1
- static/bundle/dashboard.min.css +2 -2
- static/bundle/options.min.css +1 -1
- static/bundle/sticky.js +1 -1
- static/js/DashboardContext.js +4 -3
- static/js/frontend/sticky.js +13 -8
- static/js/frontend/sticky/shrink-utils.js +34 -1
- static/sass/{freemius/opt-in-screen.scss → activation-actions/activation-license.scss} +24 -0
- static/sass/activation-actions/main.scss +2 -1
- static/sass/dashboard.scss +1 -4
- static/sass/freemius/main.scss +0 -2
- static/sass/freemius/opt-in-message.scss +0 -73
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.8.
|
7 |
Author: CreativeThemes
|
8 |
Author URI: https://creativethemes.com
|
9 |
Text Domain: blocksy-companion
|
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.8.60
|
7 |
Author: CreativeThemes
|
8 |
Author URI: https://creativethemes.com
|
9 |
Text Domain: blocksy-companion
|
framework/dashboard.php
CHANGED
@@ -195,6 +195,10 @@ class Dashboard {
|
|
195 |
return;
|
196 |
}
|
197 |
|
|
|
|
|
|
|
|
|
198 |
if (intval(get_option('blc_activation_redirect', false)) === wp_get_current_user()->ID) {
|
199 |
delete_option('blc_activation_redirect');
|
200 |
exit(wp_redirect(admin_url('admin.php?page=ct-dashboard')));
|
@@ -296,6 +300,14 @@ class Dashboard {
|
|
296 |
public function is_dashboard_page() {
|
297 |
global $pagenow;
|
298 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
299 |
$is_ct_settings =
|
300 |
// 'themes.php' === $pagenow &&
|
301 |
isset( $_GET['page'] ) && 'ct-dashboard' === $_GET['page'];
|
195 |
return;
|
196 |
}
|
197 |
|
198 |
+
if (is_network_admin()) {
|
199 |
+
return;
|
200 |
+
}
|
201 |
+
|
202 |
if (intval(get_option('blc_activation_redirect', false)) === wp_get_current_user()->ID) {
|
203 |
delete_option('blc_activation_redirect');
|
204 |
exit(wp_redirect(admin_url('admin.php?page=ct-dashboard')));
|
300 |
public function is_dashboard_page() {
|
301 |
global $pagenow;
|
302 |
|
303 |
+
if (is_network_admin()) {
|
304 |
+
$is_ct_settings =
|
305 |
+
// 'themes.php' === $pagenow &&
|
306 |
+
isset( $_GET['page'] ) && 'blocksy-companion' === $_GET['page'];
|
307 |
+
|
308 |
+
return $is_ct_settings;
|
309 |
+
}
|
310 |
+
|
311 |
$is_ct_settings =
|
312 |
// 'themes.php' === $pagenow &&
|
313 |
isset( $_GET['page'] ) && 'ct-dashboard' === $_GET['page'];
|
framework/extensions/cookies-consent/helpers.php
CHANGED
@@ -1,22 +1,7 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
function blc_ext_cookies_consent_cache() {
|
4 |
-
if (! is_customize_preview()) return;
|
5 |
-
|
6 |
-
blocksy_add_customizer_preview_cache(
|
7 |
-
blocksy_html_tag(
|
8 |
-
'div',
|
9 |
-
[ 'data-id' => 'blocksy-cookies-consent-section' ],
|
10 |
-
blocksy_ext_cookies_consent_output(true)
|
11 |
-
)
|
12 |
-
);
|
13 |
-
}
|
14 |
-
|
15 |
-
function blocksy_ext_cookies_consent_output($forced = false) {
|
16 |
-
if (! $forced) {
|
17 |
-
blc_ext_cookies_consent_cache();
|
18 |
-
}
|
19 |
|
|
|
20 |
/*
|
21 |
if (! BlocksyExtensionCookiesConsent::should_display_notification()) {
|
22 |
if (! $forced) {
|
1 |
<?php
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
+
function blocksy_ext_cookies_consent_output() {
|
5 |
/*
|
6 |
if (! BlocksyExtensionCookiesConsent::should_display_notification()) {
|
7 |
if (! $forced) {
|
framework/extensions/cookies-consent/static/bundle/main.min.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/**
|
2 |
-
* - v1.8.
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|
1 |
/**
|
2 |
+
* - v1.8.60
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|
framework/extensions/cookies-consent/static/bundle/sync.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(){"use strict";var
|
1 |
+
!function(){"use strict";var t={n:function(o){var e=o&&o.__esModule?function(){return o.default}:function(){return o};return t.d(e,{a:e}),e},d:function(o,e){for(var n in e)t.o(e,n)&&!t.o(o,n)&&Object.defineProperty(o,n,{enumerable:!0,get:e[n]})},o:function(t,o){return Object.prototype.hasOwnProperty.call(t,o)}},o=window.ctEvents;function e(t,o){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);o&&(n=n.filter((function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),e.push.apply(e,n)}return e}function n(t){for(var o=1;o<arguments.length;o++){var n=null!=arguments[o]?arguments[o]:{};o%2?e(Object(n),!0).forEach((function(o){r(t,o,n[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):e(Object(n)).forEach((function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))}))}return t}function r(t,o,e){return o in t?Object.defineProperty(t,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[o]=e,t}function c(t,o){(null==o||o>t.length)&&(o=t.length);for(var e=0,n=new Array(o);e<o;e++)n[e]=t[e];return n}t.n(o)().on("ct:customizer:sync:collect-variable-descriptors",(function(t){t.result=n(n({},t.result),{},{cookieContentColor:[{selector:".cookie-notification",variable:"color",type:"color:default"},{selector:".cookie-notification",variable:"colorHover",type:"color:hover"}],cookieBackground:{selector:".cookie-notification",variable:"backgroundColor",type:"color"},cookieButtonText:[{selector:".cookie-notification .ct-cookies-accept-button",variable:"buttonTextInitialColor",type:"color:default"},{selector:".cookie-notification .ct-cookies-accept-button",variable:"buttonTextHoverColor",type:"color:hover"}],cookieButtonBackground:[{selector:".cookie-notification .ct-cookies-accept-button",variable:"buttonInitialColor",type:"color:default"},{selector:".cookie-notification .ct-cookies-accept-button",variable:"buttonHoverColor",type:"color:hover"}],cookieDeclineButtonText:[{selector:".cookie-notification .ct-cookies-decline-button",variable:"buttonTextInitialColor",type:"color:default"},{selector:".cookie-notification .ct-cookies-decline-button",variable:"buttonTextHoverColor",type:"color:hover"}],cookieDeclineButtonBackground:[{selector:".cookie-notification .ct-cookies-decline-button",variable:"buttonInitialColor",type:"color:default"},{selector:".cookie-notification .ct-cookies-decline-button",variable:"buttonHoverColor",type:"color:hover"}],cookieMaxWidth:{selector:".cookie-notification",variable:"maxWidth",unit:"px"}})}));var i=function(){var t=document.querySelector(".cookie-notification");if(t){t.querySelector(".ct-cookies-content")&&(t.querySelector(".ct-cookies-content").innerHTML=wp.customize("cookie_consent_content")()),t.querySelector("button.ct-cookies-accept-button").innerHTML=wp.customize("cookie_consent_button_text")();var o=wp.customize("cookie_consent_type")();t.dataset.type=o,t.firstElementChild.classList.remove("ct-container","container"),t.firstElementChild.classList.add("type-1"===o?"container":"ct-container")}};wp.customize("cookie_consent_content",(function(t){return t.bind((function(t){i()}))})),wp.customize("cookie_consent_button_text",(function(t){return t.bind((function(t){return i()}))})),wp.customize("cookie_consent_type",(function(t){return t.bind((function(t){return i()}))})),wp.customize("forms_cookie_consent_content",(function(t){return t.bind((function(t){return(o=document.querySelectorAll(".gdpr-confirm-policy label"),function(t){if(Array.isArray(t))return c(t)}(o)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(o)||function(t,o){if(t){if("string"==typeof t)return c(t,o);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?c(t,o):void 0}}(o)||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.")}()).map((function(o){return o.innerHTML=t}));var o}))}))}();
|
framework/extensions/cookies-consent/static/js/sync.js
CHANGED
@@ -1,23 +1,7 @@
|
|
1 |
import './variables'
|
2 |
import ctEvents from 'ct-events'
|
3 |
|
4 |
-
import { renderWithStrategy } from './sync/helpers'
|
5 |
-
|
6 |
-
const maybeAnimateCookiesConsent = cb => {
|
7 |
-
if (document.querySelector('.cookie-notification')) return
|
8 |
-
|
9 |
-
renderWithStrategy({
|
10 |
-
fragment_id: 'blocksy-cookies-consent-section',
|
11 |
-
selector: '.cookie-notification',
|
12 |
-
parent_selector: '#main-container'
|
13 |
-
})
|
14 |
-
|
15 |
-
return true
|
16 |
-
}
|
17 |
-
|
18 |
const render = () => {
|
19 |
-
const didInsert = maybeAnimateCookiesConsent()
|
20 |
-
|
21 |
const notification = document.querySelector('.cookie-notification')
|
22 |
|
23 |
if (!notification) {
|
@@ -25,14 +9,12 @@ const render = () => {
|
|
25 |
}
|
26 |
|
27 |
if (notification.querySelector('.ct-cookies-content')) {
|
28 |
-
notification.querySelector(
|
29 |
-
|
30 |
-
).innerHTML = wp.customize('cookie_consent_content')()
|
31 |
}
|
32 |
|
33 |
-
notification.querySelector('button.ct-cookies-accept-button').innerHTML =
|
34 |
-
'cookie_consent_button_text'
|
35 |
-
)()
|
36 |
|
37 |
const type = wp.customize('cookie_consent_type')()
|
38 |
|
@@ -42,24 +24,20 @@ const render = () => {
|
|
42 |
notification.firstElementChild.classList.add(
|
43 |
type === 'type-1' ? 'container' : 'ct-container'
|
44 |
)
|
45 |
-
|
46 |
-
if (didInsert) {
|
47 |
-
setTimeout(() => ctEvents.trigger('blocksy:cookies:init'))
|
48 |
-
}
|
49 |
}
|
50 |
|
51 |
-
wp.customize('cookie_consent_content', val =>
|
52 |
-
val.bind(to => {
|
53 |
render()
|
54 |
})
|
55 |
)
|
56 |
-
wp.customize('cookie_consent_button_text', val => val.bind(to => render()))
|
57 |
-
wp.customize('cookie_consent_type', val => val.bind(to => render()))
|
58 |
|
59 |
-
wp.customize('forms_cookie_consent_content', val =>
|
60 |
-
val.bind(to =>
|
61 |
[...document.querySelectorAll('.gdpr-confirm-policy label')].map(
|
62 |
-
el => (el.innerHTML = to)
|
63 |
)
|
64 |
)
|
65 |
)
|
1 |
import './variables'
|
2 |
import ctEvents from 'ct-events'
|
3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
const render = () => {
|
|
|
|
|
5 |
const notification = document.querySelector('.cookie-notification')
|
6 |
|
7 |
if (!notification) {
|
9 |
}
|
10 |
|
11 |
if (notification.querySelector('.ct-cookies-content')) {
|
12 |
+
notification.querySelector('.ct-cookies-content').innerHTML =
|
13 |
+
wp.customize('cookie_consent_content')()
|
|
|
14 |
}
|
15 |
|
16 |
+
notification.querySelector('button.ct-cookies-accept-button').innerHTML =
|
17 |
+
wp.customize('cookie_consent_button_text')()
|
|
|
18 |
|
19 |
const type = wp.customize('cookie_consent_type')()
|
20 |
|
24 |
notification.firstElementChild.classList.add(
|
25 |
type === 'type-1' ? 'container' : 'ct-container'
|
26 |
)
|
|
|
|
|
|
|
|
|
27 |
}
|
28 |
|
29 |
+
wp.customize('cookie_consent_content', (val) =>
|
30 |
+
val.bind((to) => {
|
31 |
render()
|
32 |
})
|
33 |
)
|
34 |
+
wp.customize('cookie_consent_button_text', (val) => val.bind((to) => render()))
|
35 |
+
wp.customize('cookie_consent_type', (val) => val.bind((to) => render()))
|
36 |
|
37 |
+
wp.customize('forms_cookie_consent_content', (val) =>
|
38 |
+
val.bind((to) =>
|
39 |
[...document.querySelectorAll('.gdpr-confirm-policy label')].map(
|
40 |
+
(el) => (el.innerHTML = to)
|
41 |
)
|
42 |
)
|
43 |
)
|
framework/extensions/cookies-consent/static/js/sync/helpers.js
CHANGED
@@ -1,129 +1,3 @@
|
|
1 |
-
export const getCache = () => {
|
2 |
-
const div = document.createElement('div')
|
3 |
-
|
4 |
-
div.innerHTML = document.querySelector(
|
5 |
-
'.ct-customizer-preview-cache-container'
|
6 |
-
).value
|
7 |
-
|
8 |
-
return div
|
9 |
-
}
|
10 |
-
|
11 |
-
export const getFreshHtmlFor = (id, cache = null, attr = 'id') => {
|
12 |
-
if (!cache) {
|
13 |
-
cache = getCache()
|
14 |
-
}
|
15 |
-
|
16 |
-
if (
|
17 |
-
!cache.querySelector(
|
18 |
-
`.ct-customizer-preview-cache [data-${attr}="${id}"]`
|
19 |
-
)
|
20 |
-
) {
|
21 |
-
return
|
22 |
-
}
|
23 |
-
|
24 |
-
const newHtml = cache.querySelector(
|
25 |
-
`.ct-customizer-preview-cache [data-${attr}="${id}"]`
|
26 |
-
).innerHTML
|
27 |
-
|
28 |
-
const e = document.createElement('div')
|
29 |
-
e.innerHTML = newHtml
|
30 |
-
|
31 |
-
return e
|
32 |
-
}
|
33 |
-
|
34 |
-
export const renderWithStrategy = (args = {}) => {
|
35 |
-
args = {
|
36 |
-
fragment_id: null,
|
37 |
-
|
38 |
-
selector: null,
|
39 |
-
parent_selector: null,
|
40 |
-
|
41 |
-
// append | firstChild | maybeBefore:selector
|
42 |
-
strategy: 'append',
|
43 |
-
whenInserted: () => {},
|
44 |
-
beforeInsert: (el) => {},
|
45 |
-
|
46 |
-
should_insert: true,
|
47 |
-
|
48 |
-
...args,
|
49 |
-
}
|
50 |
-
|
51 |
-
const parent = document.querySelector(args.parent_selector)
|
52 |
-
;[
|
53 |
-
...document.querySelectorAll(
|
54 |
-
`${args.parent_selector} ${args.selector}`
|
55 |
-
),
|
56 |
-
].map((el) => el.parentNode.removeChild(el))
|
57 |
-
|
58 |
-
if (!args.should_insert) return
|
59 |
-
|
60 |
-
const el = getFreshHtmlFor(args.fragment_id)
|
61 |
-
|
62 |
-
if (!el) {
|
63 |
-
return
|
64 |
-
}
|
65 |
-
|
66 |
-
while (el.firstElementChild) {
|
67 |
-
args.beforeInsert(el.firstElementChild)
|
68 |
-
|
69 |
-
if (args.strategy === 'append') {
|
70 |
-
parent.appendChild(el.firstElementChild)
|
71 |
-
}
|
72 |
-
|
73 |
-
if (args.strategy === 'firstChild') {
|
74 |
-
parent.insertBefore(el.firstElementChild, parent.firstElementChild)
|
75 |
-
}
|
76 |
-
|
77 |
-
if (args.strategy.indexOf('maybeBefore') > -1) {
|
78 |
-
const [_, selector] = args.strategy.split(':')
|
79 |
-
|
80 |
-
if (parent.querySelector(selector)) {
|
81 |
-
parent.insertBefore(
|
82 |
-
el.firstElementChild,
|
83 |
-
parent.querySelector(selector)
|
84 |
-
)
|
85 |
-
} else {
|
86 |
-
parent.appendChild(el.firstElementChild)
|
87 |
-
}
|
88 |
-
}
|
89 |
-
}
|
90 |
-
|
91 |
-
args.whenInserted()
|
92 |
-
}
|
93 |
-
|
94 |
-
export const checkAndReplace = (args = {}) => {
|
95 |
-
args = {
|
96 |
-
id: null,
|
97 |
-
|
98 |
-
fragment_id: null,
|
99 |
-
|
100 |
-
selector: null,
|
101 |
-
parent_selector: null,
|
102 |
-
|
103 |
-
// append | firstChild | maybeBefore:selector
|
104 |
-
strategy: 'append',
|
105 |
-
whenInserted: () => {},
|
106 |
-
beforeInsert: (el) => {},
|
107 |
-
watch: [],
|
108 |
-
|
109 |
-
...args,
|
110 |
-
}
|
111 |
-
|
112 |
-
const render = () => {
|
113 |
-
const to = wp.customize(args.id)()
|
114 |
-
|
115 |
-
renderWithStrategy({
|
116 |
-
...args,
|
117 |
-
should_insert: to === 'yes',
|
118 |
-
})
|
119 |
-
}
|
120 |
-
|
121 |
-
wp.customize(args.id, (val) => val.bind((to) => render()))
|
122 |
-
args.watch.map((opt) =>
|
123 |
-
wp.customize(opt, (val) => val.bind(() => render()))
|
124 |
-
)
|
125 |
-
}
|
126 |
-
|
127 |
export const responsiveClassesFor = (id, el) => {
|
128 |
el.classList.remove('ct-hidden-sm', 'ct-hidden-md', 'ct-hidden-lg')
|
129 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
export const responsiveClassesFor = (id, el) => {
|
2 |
el.classList.remove('ct-hidden-sm', 'ct-hidden-md', 'ct-hidden-lg')
|
3 |
|
framework/extensions/newsletter-subscribe/admin-static/bundle/sync.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(){"use strict";var e={n:function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,{a:r}),r},d:function(t,r){for(var s in r)e.o(r,s)&&!e.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:r[s]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},t=window.blocksyCustomizerSync,r=window.ctEvents;function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,s)}return r}function
|
1 |
+
!function(){"use strict";var e={n:function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,{a:r}),r},d:function(t,r){for(var s in r)e.o(r,s)&&!e.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:r[s]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},t=window.blocksyCustomizerSync,r=window.ctEvents;function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,s)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}e.n(r)().on("ct:customizer:sync:collect-variable-descriptors",(function(e){e.result=o(o(o({},e.result),{},{newsletter_subscribe_title_color:{selector:".ct-newsletter-subscribe-block",variable:"heading-color",type:"color:default",responsive:!0},newsletter_subscribe_content:[{selector:".ct-newsletter-subscribe-block",variable:"color",type:"color:default"},{selector:".ct-newsletter-subscribe-block",variable:"linkHoverColor",type:"color:hover"}],newsletter_subscribe_button:[{selector:".ct-newsletter-subscribe-block",variable:"buttonInitialColor",type:"color:default"},{selector:".ct-newsletter-subscribe-block",variable:"buttonHoverColor",type:"color:hover"}],newsletter_subscribe_input_font_color:[{selector:".ct-newsletter-subscribe-block",variable:"form-text-initial-color",type:"color:default"},{selector:".ct-newsletter-subscribe-block",variable:"form-text-focus-color",type:"color:focus"}],newsletter_subscribe_border_color:[{selector:".ct-newsletter-subscribe-block",variable:"form-field-border-initial-color",type:"color:default"},{selector:".ct-newsletter-subscribe-block",variable:"form-field-border-focus-color",type:"color:focus"}],newsletter_subscribe_input_background:[{selector:".ct-newsletter-subscribe-block",variable:"form-field-initial-background",type:"color:default"},{selector:".ct-newsletter-subscribe-block",variable:"form-field-focus-background",type:"color:focus"}]},(0,t.handleBackgroundOptionFor)({id:"newsletter_subscribe_container_background",selector:".ct-newsletter-subscribe-block",responsive:!0})),{},{newsletter_subscribe_container_border:{selector:".ct-newsletter-subscribe-block",variable:"newsletter-container-border",type:"border",responsive:!0,skip_none:!0},newsletter_subscribe_shadow:{selector:".ct-newsletter-subscribe-block",type:"box-shadow",variable:"box-shadow",responsive:!0},newsletter_subscribe_container_spacing:{selector:".ct-newsletter-subscribe-block",type:"spacing",variable:"padding",responsive:!0},newsletter_subscribe_container_border_radius:{selector:".ct-newsletter-subscribe-block",type:"spacing",variable:"border-radius",responsive:!0}})})),wp.customize("newsletter_subscribe_subscribe_visibility",(function(e){return e.bind((function(e){var r=document.querySelector(".ct-newsletter-subscribe-block");(0,t.responsiveClassesFor)("newsletter_subscribe_subscribe_visibility",r)}))})),(document.body.classList.contains("single")||document.body.classList.contains("page"))&&(0,t.watchOptionsWithPrefix)({getPrefix:function(){return""},getOptionsForPrefix:function(){return["newsletter_subscribe_button_text","newsletter_subscribe_title","newsletter_subscribe_text","newsletter_subscribe_name_label","newsletter_subscribe_mail_label"]},render:function(){if(document.body.classList.contains("single")||document.body.classList.contains("page")){var e=document.querySelector(".ct-newsletter-subscribe-block");e&&((0,t.responsiveClassesFor)("newsletter_subscribe_subscribe_visibility",e),e.querySelector('[name="FNAME"]')&&e.querySelector('[name="FNAME"]').setAttribute("placeholder","".concat(wp.customize("newsletter_subscribe_name_label")())),e.querySelector('[name="EMAIL"]').setAttribute("placeholder","".concat(wp.customize("newsletter_subscribe_mail_label")()," *")),e.querySelector("button").innerHTML=wp.customize("newsletter_subscribe_button_text")(),e.querySelector("h3").innerHTML=wp.customize("newsletter_subscribe_title")(),e.querySelector(".ct-newsletter-subscribe-description").innerHTML=wp.customize("newsletter_subscribe_text")())}}})}();
|
framework/extensions/newsletter-subscribe/admin-static/js/sync.js
CHANGED
@@ -1,4 +1,7 @@
|
|
1 |
-
import {
|
|
|
|
|
|
|
2 |
|
3 |
import './variables'
|
4 |
|
@@ -13,16 +16,9 @@ if (
|
|
13 |
document.body.classList.contains('single') ||
|
14 |
document.body.classList.contains('page')
|
15 |
) {
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
parent_selector: '.site-main article',
|
21 |
-
selector: '.ct-newsletter-subscribe-block',
|
22 |
-
fragment_id: 'blocksy-mailchimp-subscribe',
|
23 |
-
|
24 |
-
watch: [
|
25 |
-
'has_newsletter_subscribe_name',
|
26 |
'newsletter_subscribe_button_text',
|
27 |
'newsletter_subscribe_title',
|
28 |
'newsletter_subscribe_text',
|
@@ -30,28 +26,28 @@ if (
|
|
30 |
'newsletter_subscribe_mail_label',
|
31 |
],
|
32 |
|
33 |
-
|
34 |
if (
|
35 |
!document.body.classList.contains('single') &&
|
36 |
!document.body.classList.contains('page')
|
37 |
) {
|
38 |
return
|
39 |
}
|
|
|
40 |
const block = document.querySelector(
|
41 |
'.ct-newsletter-subscribe-block'
|
42 |
)
|
43 |
|
|
|
|
|
|
|
|
|
44 |
responsiveClassesFor(
|
45 |
'newsletter_subscribe_subscribe_visibility',
|
46 |
block
|
47 |
)
|
48 |
|
49 |
-
if (
|
50 |
-
block.querySelector('[data-fields]').dataset.fields = 1
|
51 |
-
block.querySelector('[name="FNAME"]').remove()
|
52 |
-
} else {
|
53 |
-
block.querySelector('[data-fields]').dataset.fields = 2
|
54 |
-
|
55 |
block
|
56 |
.querySelector('[name="FNAME"]')
|
57 |
.setAttribute(
|
1 |
+
import {
|
2 |
+
responsiveClassesFor,
|
3 |
+
watchOptionsWithPrefix,
|
4 |
+
} from 'blocksy-customizer-sync'
|
5 |
|
6 |
import './variables'
|
7 |
|
16 |
document.body.classList.contains('single') ||
|
17 |
document.body.classList.contains('page')
|
18 |
) {
|
19 |
+
watchOptionsWithPrefix({
|
20 |
+
getPrefix: () => '',
|
21 |
+
getOptionsForPrefix: () => [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
'newsletter_subscribe_button_text',
|
23 |
'newsletter_subscribe_title',
|
24 |
'newsletter_subscribe_text',
|
26 |
'newsletter_subscribe_mail_label',
|
27 |
],
|
28 |
|
29 |
+
render: () => {
|
30 |
if (
|
31 |
!document.body.classList.contains('single') &&
|
32 |
!document.body.classList.contains('page')
|
33 |
) {
|
34 |
return
|
35 |
}
|
36 |
+
|
37 |
const block = document.querySelector(
|
38 |
'.ct-newsletter-subscribe-block'
|
39 |
)
|
40 |
|
41 |
+
if (!block) {
|
42 |
+
return
|
43 |
+
}
|
44 |
+
|
45 |
responsiveClassesFor(
|
46 |
'newsletter_subscribe_subscribe_visibility',
|
47 |
block
|
48 |
)
|
49 |
|
50 |
+
if (block.querySelector('[name="FNAME"]')) {
|
|
|
|
|
|
|
|
|
|
|
51 |
block
|
52 |
.querySelector('[name="FNAME"]')
|
53 |
.setAttribute(
|
framework/extensions/newsletter-subscribe/customizer.php
CHANGED
@@ -5,7 +5,7 @@ $options = [
|
|
5 |
'type' => 'ct-panel',
|
6 |
'switch' => true,
|
7 |
'value' => 'yes',
|
8 |
-
'
|
9 |
'inner-options' => [
|
10 |
|
11 |
blocksy_rand_md5() => [
|
@@ -80,7 +80,9 @@ $options = [
|
|
80 |
'label' => __( 'Name Field', 'blocksy-companion' ),
|
81 |
'value' => 'no',
|
82 |
'disableRevertButton' => true,
|
83 |
-
'
|
|
|
|
|
84 |
],
|
85 |
|
86 |
blocksy_rand_md5() => [
|
5 |
'type' => 'ct-panel',
|
6 |
'switch' => true,
|
7 |
'value' => 'yes',
|
8 |
+
'sync' => blocksy_sync_single_post_container(),
|
9 |
'inner-options' => [
|
10 |
|
11 |
blocksy_rand_md5() => [
|
80 |
'label' => __( 'Name Field', 'blocksy-companion' ),
|
81 |
'value' => 'no',
|
82 |
'disableRevertButton' => true,
|
83 |
+
'sync' => blocksy_sync_single_post_container([
|
84 |
+
'loader_selector' => '.ct-newsletter-subscribe-block'
|
85 |
+
]),
|
86 |
],
|
87 |
|
88 |
blocksy_rand_md5() => [
|
framework/extensions/newsletter-subscribe/helpers.php
CHANGED
@@ -1,26 +1,8 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
function
|
4 |
-
if (! is_customize_preview()) return;
|
5 |
-
|
6 |
-
blocksy_add_customizer_preview_cache(
|
7 |
-
blocksy_html_tag(
|
8 |
-
'div',
|
9 |
-
[ 'data-id' => 'blocksy-mailchimp-subscribe' ],
|
10 |
-
blc_ext_newsletter_subscribe_form(true)
|
11 |
-
)
|
12 |
-
);
|
13 |
-
}
|
14 |
-
|
15 |
-
function blc_ext_newsletter_subscribe_form($forced = false) {
|
16 |
-
if (! $forced) {
|
17 |
-
blc_output_newsletter_subscribe_form_cache();
|
18 |
-
}
|
19 |
-
|
20 |
if (get_theme_mod('newsletter_subscribe_single_post_enabled', 'yes') !== 'yes') {
|
21 |
-
|
22 |
-
return '';
|
23 |
-
}
|
24 |
}
|
25 |
|
26 |
if (
|
@@ -62,10 +44,6 @@ function blc_ext_newsletter_subscribe_form($forced = false) {
|
|
62 |
)
|
63 |
];
|
64 |
|
65 |
-
if ($forced) {
|
66 |
-
$args['has_name'] = 'yes';
|
67 |
-
}
|
68 |
-
|
69 |
$list_id = null;
|
70 |
|
71 |
if (get_theme_mod(
|
1 |
<?php
|
2 |
|
3 |
+
function blc_ext_newsletter_subscribe_form() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
if (get_theme_mod('newsletter_subscribe_single_post_enabled', 'yes') !== 'yes') {
|
5 |
+
return '';
|
|
|
|
|
6 |
}
|
7 |
|
8 |
if (
|
44 |
)
|
45 |
];
|
46 |
|
|
|
|
|
|
|
|
|
47 |
$list_id = null;
|
48 |
|
49 |
if (get_theme_mod(
|
framework/extensions/newsletter-subscribe/static/bundle/main.min.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/**
|
2 |
-
* - v1.8.
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|
1 |
/**
|
2 |
+
* - v1.8.60
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|
framework/extensions/product-reviews/static/bundle/dashboard.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
/*! For license information please see dashboard.js.LICENSE.txt */
|
2 |
-
!function(){var e={184:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)&&n.length){var i=o.apply(null,n);i&&e.push(i)}else if("object"===a)for(var c in n)r.call(n,c)&&n[c]&&e.push(c)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},172:function(e,t,n){var r,o,a=n(760),i=n(529),c=(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 s(e){return setTimeout(e,0)}e.exports=function(e,t){var n=document,o="string"==typeof e?n.querySelector(e):e,u=i({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){E(),l.active=!0,l.paused=!1,l.nodeFocusedBeforeActivation=n.activeElement;var t=e&&e.onActivate?e.onActivate:u.onActivate;return t&&t(),d(),f}},deactivate:p,pause:function(){!l.paused&&l.active&&(l.paused=!0,m())},unpause:function(){l.paused&&l.active&&(l.paused=!1,E(),d())}};return f;function p(e){if(l.active){clearTimeout(r),m(),l.active=!1,l.paused=!1,c.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)&&s((function(){var e;O((e=l.nodeFocusedBeforeActivation,v("setReturnFocus")||e))})),f}}function d(){if(l.active)return c.activateTrap(f),r=s((function(){O(y())})),n.addEventListener("focusin",b,!0),n.addEventListener("mousedown",h,{capture:!0,passive:!1}),n.addEventListener("touchstart",h,{capture:!0,passive:!1}),n.addEventListener("click",w,{capture:!0,passive:!1}),n.addEventListener("keydown",g,{capture:!0,passive:!1}),f}function m(){if(l.active)return n.removeEventListener("focusin",b,!0),n.removeEventListener("mousedown",h,!0),n.removeEventListener("touchstart",h,!0),n.removeEventListener("click",w,!0),n.removeEventListener("keydown",g,!0),f}function v(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 y(){var e;if(!(e=null!==v("initialFocus")?v("initialFocus"):o.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 h(e){o.contains(e.target)||(u.clickOutsideDeactivates?p({returnFocus:!a.isFocusable(e.target)}):u.allowOutsideClick&&u.allowOutsideClick(e)||e.preventDefault())}function b(e){o.contains(e.target)||e.target instanceof Document||(e.stopImmediatePropagation(),O(l.mostRecentlyFocusedNode||y()))}function g(e){if(!1!==u.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(E(),e.shiftKey&&e.target===l.firstTabbableNode)return e.preventDefault(),void O(l.lastTabbableNode);e.shiftKey||e.target!==l.lastTabbableNode||(e.preventDefault(),O(l.firstTabbableNode))}(e)}function w(e){u.clickOutsideDeactivates||o.contains(e.target)||u.allowOutsideClick&&u.allowOutsideClick(e)||(e.preventDefault(),e.stopImmediatePropagation())}function E(){var e=a(o);l.firstTabbableNode=e[0]||y(),l.lastTabbableNode=e[e.length-1]||y()}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(y()))}}},703:function(e,t,n){"use strict";var r=n(414);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var c=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 c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},697:function(e,t,n){e.exports=n(703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},760:function(e){var t=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],n=t.join(","),r="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;function o(e,t){t=t||{};var o,i,c,l=[],f=[],p=e.querySelectorAll(n);for(t.includeContainer&&r.call(e,n)&&(p=Array.prototype.slice.apply(p)).unshift(e),o=0;o<p.length;o++)a(i=p[o])&&(0===(c=s(i))?l.push(i):f.push({documentOrder:o,tabIndex:c,node:i}));return f.sort(u).map((function(e){return e.node})).concat(l)}function a(e){return!(!i(e)||function(e){return function(e){return l(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 l(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!==r.call(e,n)&&a(e)},o.isFocusable=function(e){if(!e)throw new Error("No node provided");return!1!==r.call(e,c)&&i(e)};var c=t.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 u(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex}function l(e){return"INPUT"===e.tagName}e.exports=o},529:function(e){e.exports=function(){for(var e={},n=0;n<arguments.length;n++){var r=arguments[n];for(var o in r)t.call(r,o)&&(e[o]=r[o])}return e};var t=Object.prototype.hasOwnProperty}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=window.wp.element,t=window.wp.i18n,r=n(184),o=n.n(r),a=window.ctEvents,i=n.n(a),c=window.blocksyOptions,s=window.React,u=n.n(s);function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(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}n(697);var p=function(e){return e.initialState,e.getInitialState,e.refs,e.getRefs,e.didMount,e.didUpdate,e.willUnmount,e.getSnapshotBeforeUpdate,e.shouldUpdate,e.render,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"])},d=function(e){function t(){var n,r;l(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=f(this,e.call.apply(e,[this].concat(a))),m.call(r),f(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:p(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:p(e),nextState:t})},t.prototype.componentWillUnmount=function(){this.props.willUnmount&&this.props.willUnmount({state:this.state,props:p(this.props),refs:this._refs})},t.prototype.componentDidUpdate=function(e,t,n){this.props.didUpdate&&this.props.didUpdate(Object.assign(this.getArgs(),{prevProps:p(e),prevState:t}),n)},t.prototype.getSnapshotBeforeUpdate=function(e,t){return this.props.getSnapshotBeforeUpdate?this.props.getSnapshotBeforeUpdate(Object.assign(this.getArgs(),{prevProps:p(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}(u().Component);d.defaultProps={getInitialState:function(){},getRefs:function(){return{}}};var m=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)}},v=d,y=function(t){var n=t.children,r=t.container,o=void 0===r?document.body:r,a=t.type,i=void 0===a?"reach-portal":a;return(0,e.createElement)(v,{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(i),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(t){var r=t.refs.node;return r?(0,e.createPortal)(n,r):null}})},h=function(e,t){return function(n){if(e&&e(n),!n.defaultPrevented)return t(n)}},b=n(172),g=n.n(b);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},w.apply(this,arguments)}function E(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var O=function(){},S=function(){},x=function(e){var t=e.refs;t.trap.deactivate(),t.disposeAriaHider()},_=React.createContext(),k=React.forwardRef((function(t,n){var r=t.container,o=t.isOpen,a=void 0===o||o,i=t.onDismiss,c=void 0===i?O:i,s=t.initialFocusRef,u=t.onClick,l=t.onKeyDown,f=E(t,["container","isOpen","onDismiss","initialFocusRef","onClick","onKeyDown"]);return(0,e.createElement)(v,{didMount:S},a?(0,e.createElement)(y,{container:r,"data-reach-dialog-wrapper":!0},(0,e.createElement)(v,{refs:{overlayNode:null,contentNode:null},didMount:function(e){!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=g()(e.overlayNode,{initialFocus:t?function(){return t.current}:void 0,fallbackFocus:e.contentNode,escapeDeactivates:!1,clickOutsideDeactivates:!1})}(e.refs,s)},willUnmount:x},(function(t){var r=t.refs;return(0,e.createElement)(_.Provider,{value:function(e){return r.contentNode=e}},(0,e.createElement)("div",w({"data-reach-dialog-overlay":!0,onClick:h(u,(function(e){e.stopPropagation(),c()})),onKeyDown:h(l,(function(e){"Escape"===e.key&&(e.stopPropagation(),c())})),ref:function(e){r.overlayNode=e,n&&n(e)}},f)))}))):null)}));k.propTypes={initialFocusRef:function(){}};var j=function(e){return e.stopPropagation()},C=React.forwardRef((function(t,n){var r=t.onClick,o=(t.onKeyDown,E(t,["onClick","onKeyDown"]));return(0,e.createElement)(_.Consumer,null,(function(t){return(0,e.createElement)("div",w({"aria-modal":"true","data-reach-dialog-content":!0,tabIndex:"-1",onClick:h(r,j),ref:function(e){t(e),n&&n(e)}},o))}))})),A=function(e){return!!e},N=function(t){var n=t.items,r=t.isVisible,a=void 0===r?A:r,i=t.render,s=t.className,u=t.onDismiss;return(0,e.createElement)(c.Transition,{items:n,onStart:function(){return document.body.classList[a(n)?"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(t){return a(t)&&function(n){return(0,e.createElement)(k,{style:{opacity:n.opacity},container:document.querySelector("#wpbody"),onDismiss:function(){return u()}},(0,e.createElement)(C,{className:o()("ct-admin-modal",s),style:{transform:"translate3d(0px, ".concat(n.y,"px, 0px)")}},(0,e.createElement)("button",{className:"close-button",onClick:function(){return u()}},"×"),i(t,n)))}}))};function P(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 D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){T(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}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)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return I(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)?I(e,t):void 0}}(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 I(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 R=function(n){var r=n.extsSyncLoading,a=n.extensionData,i=n.onExtsSync,s=U((0,e.useState)(!1),2),u=s[0],l=s[1],f=U((0,e.useState)(null),2),p=f[0],d=f[1];return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("button",{className:"ct-button ct-config-btn","data-button":"white",onClick:function(){l(!0),d(a.settings)}},(0,t.__)("Configure","blocksy-companion")),(0,e.createElement)(N,{items:u,onDismiss:function(){return l(!1)},className:"ct-product-reviews-settings-modal",render:function(){return(0,e.createElement)("div",{className:o()("ct-modal-content")},(0,e.createElement)("h2",null,(0,t.__)("Product Reviews Settings","blocksy-companion")),(0,e.createElement)("p",{className:"ct-modal-description"},(0,t.__)("Configure the slugs for single and category pages of the product review custom post type.","blocksy-companion")),(0,e.createElement)("div",{className:"ct-controls-group"},(0,e.createElement)("section",{"data-columns":"medium:2"},(0,e.createElement)(c.OptionsPanel,{onChange:function(e,t){return d((function(n){return D(D({},n),{},T({},e,t))}))},options:{single_slug:{type:"text",value:"",label:(0,t.__)("Single Slug","blocksy-companion")},category_slug:{type:"text",value:"",label:(0,t.__)("Category Slug","blocksy-companion")}},value:p||{},hasRevertButton:!1}))),(0,e.createElement)("div",{className:"ct-modal-actions has-divider"},(0,e.createElement)("button",{className:"button-primary",disabled:r||!p,onClick:function(e){e.preventDefault(),p&&(i({extAction:{type:"persist",settings:p}}),l(!1))}},r?(0,e.createElement)("svg",{width:"15",height:"15",viewBox:"0 0 100 100"},(0,e.createElement)("g",{transform:"translate(50,50)"},(0,e.createElement)("g",{transform:"scale(1)"},(0,e.createElement)("circle",{cx:"0",cy:"0",r:"50",fill:"#687c93"}),(0,e.createElement)("circle",{cx:"0",cy:"-26",r:"12",fill:"#ffffff",transform:"rotate(161.634)"},(0,e.createElement)("animateTransform",{attributeName:"transform",type:"rotate",calcMode:"linear",values:"0 0 0;360 0 0",keyTimes:"0;1",dur:"1s",begin:"0s",repeatCount:"indefinite"}))))):(0,t.__)("Save","blocksy-companion"))))}}))};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 M=function(t){var n,r,o=(n=(0,e.useState)(!1),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}}(n,r)||function(e,t){if(e){if("string"==typeof e)return F(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)?F(e,t):void 0}}(n,r)||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.")}()),a=o[0],i=o[1];return[function(){return i(!0)},(0,e.createElement)(N,{items:a,onDismiss:function(){return i(!1)},render:function(){return(0,e.createElement)("div",{className:"ct-modal-content",dangerouslySetInnerHTML:{__html:t.readme}})}})]},L=window.ctDashboardLocalizations.DashboardContext,B=(L.Provider,L.Consumer,L);function z(e,t,n,r,o,a,i){try{var c=e[a](i),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}function q(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){z(a,r,o,i,c,"next",e)}function c(e){z(a,r,o,i,c,"throw",e)}i(void 0)}))}}function K(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return H(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)?H(e,t):void 0}}(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 H(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function W(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return $(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)?$(e,t):void 0}}(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 V=function(n){var r=n.extsSyncLoading,a=n.extension,i=n.onExtsSync,c=W(function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},o=K((0,e.useState)(!1),2),a=o[0],i=o[1],c=K((0,e.useState)(!1),2),s=c[0],u=c[1],l=(0,e.useContext)(B),f=(l.Link,l.history),p=ctDashboardLocalizations.plugin_data.is_pro,d=function(){var e=q(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(p||!n.config.pro){e.next=3;break}return u(!0),e.abrupt("return");case 3:return(t=new FormData).append("ext",n.name),t.append("action",n.__object?"blocksy_extension_deactivate":"blocksy_extension_activate"),i(!0),e.prev=7,e.next=10,fetch(ctDashboardLocalizations.ajax_url,{method:"POST",body:t});case 10:n.config.require_refresh&&location.reload(),r(),e.next=16;break;case 14:e.prev=14,e.t0=e.catch(7);case 16:i(!1);case 17:case"end":return e.stop()}}),e,null,[[7,14]])})));return function(){return e.apply(this,arguments)}}();return[a,d,!p&&n.config.pro?(0,e.createElement)(N,{items:s,className:"ct-onboarding-modal",onDismiss:function(){return u(!1)},render:function(){return(0,e.createElement)("div",{className:"ct-modal-content"},(0,e.createElement)("svg",{width:"55",height:"55",viewBox:"0 0 40.5 48.3"},(0,e.createElement)("path",{fill:"#2d82c8",d:"M33.4 29.4l7.1 12.3-7.4.6-4 6-7.3-12.9"}),(0,e.createElement)("path",{d:"M33.5 29.6L26 42.7l-4.2-7.3 11.6-6 .1.2zM0 41.7l7.5.6 3.9 6 7.2-12.4-11-7.3L0 41.7z",fill:"#2271b1"}),(0,e.createElement)("path",{d:"M39.5 18.7c0 1.6-2.4 2.8-2.7 4.3-.4 1.5 1 3.8.2 5.1-.8 1.3-3.4 1.2-4.5 2.3-1.1 1.1-1 3.7-2.3 4.5-1.3.8-3.6-.6-5.1-.2-1.5.4-2.7 2.7-4.3 2.7S18 35 16.5 34.7c-1.5-.4-3.8 1-5.1.2s-1.2-3.4-2.3-4.5-3.7-1-4.5-2.3.6-3.6.2-5.1-2.7-2.7-2.7-4.3 2.4-2.8 2.7-4.3c.4-1.5-1-3.8-.2-5.1C5.4 8 8.1 8.1 9.1 7c1.1-1.1 1-3.7 2.3-4.5s3.6.6 5.1.2C18 2.4 19.2 0 20.8 0c1.6 0 2.8 2.4 4.3 2.7 1.5.4 3.8-1 5.1-.2 1.3.8 1.2 3.4 2.3 4.5 1.1 1.1 3.7 1 4.5 2.3s-.6 3.6-.2 5.1c.3 1.5 2.7 2.7 2.7 4.3z",fill:"#599fd9"}),(0,e.createElement)("path",{d:"M23.6 7c-6.4-1.5-12.9 2.5-14.4 8.9-.7 3.1-.2 6.3 1.5 9.1 1.7 2.7 4.3 4.6 7.4 5.4.9.2 1.9.3 2.8.3 2.2 0 4.4-.6 6.3-1.8 2.7-1.7 4.6-4.3 5.4-7.5C34 15 30 8.5 23.6 7zm7 14c-.6 2.6-2.2 4.8-4.5 6.2-2.3 1.4-5 1.8-7.6 1.2-2.6-.6-4.8-2.2-6.2-4.5-1.4-2.3-1.8-5-1.2-7.6.6-2.6 2.2-4.8 4.5-6.2 1.6-1 3.4-1.5 5.2-1.5.8 0 1.5.1 2.3.3 5.4 1.3 8.7 6.7 7.5 12.1zm-8.2-4.5l3.7.5-2.7 2.7.7 3.7-3.4-1.8-3.3 1.8.6-3.7-2.7-2.7 3.8-.5 1.6-3.4 1.7 3.4z",fill:"#fff"})),(0,e.createElement)("h2",{className:"ct-modal-title"},"This is a Pro extension"),(0,e.createElement)("p",null,(0,t.__)("Upgrade to the Pro version and get instant access to all premium extensions, features and future updates.","blocksy-companion")),(0,e.createElement)("div",{className:"ct-modal-actions has-divider","data-buttons":"2"},(0,e.createElement)("a",{onClick:function(e){e.preventDefault(),u(!1),setTimeout((function(){f.navigate("/pro")}),300)},className:"button"},(0,t.__)("Free vs Pro","blocksy")),(0,e.createElement)("a",{href:"https://creativethemes.com/blocksy/pricing/",target:"_blank",className:"button button-primary"},(0,t.__)("Upgrade Now","blocksy-companion"))))}}):null]}(a,(function(){return i()})),2),s=c[0],u=c[1],l=W(M(a),2),f=l[0],p=l[1];return(0,e.createElement)("li",{className:o()({active:!!a.__object})},(0,e.createElement)("h4",{className:"ct-extension-title"},a.config.name,s&&(0,e.createElement)("svg",{width:"15",height:"15",viewBox:"0 0 100 100"},(0,e.createElement)("g",{transform:"translate(50,50)"},(0,e.createElement)("g",{transform:"scale(1)"},(0,e.createElement)("circle",{cx:"0",cy:"0",r:"50",fill:"#687c93"}),(0,e.createElement)("circle",{cx:"0",cy:"-26",r:"12",fill:"#ffffff",transform:"rotate(161.634)"},(0,e.createElement)("animateTransform",{attributeName:"transform",type:"rotate",calcMode:"linear",values:"0 0 0;360 0 0",keyTimes:"0;1",dur:"1s",begin:"0s",repeatCount:"indefinite"})))))),a.config.description&&(0,e.createElement)("div",{className:"ct-extension-description"},a.config.description),(0,e.createElement)("div",{className:"ct-extension-actions"},(0,e.createElement)("button",{className:o()(a.__object?"ct-button":"ct-button-primary"),"data-button":"white",disabled:s,onClick:function(){u()}},a.__object?(0,t.__)("Deactivate","blocksy-companion"):(0,t.__)("Activate","blocksy-companion")),a.__object&&(0,e.createElement)(R,{extsSyncLoading:r,extensionData:a.data,onExtsSync:i}),a.readme&&(0,e.createElement)("button",{onClick:function(){return f()},"data-button":"white",className:"ct-minimal-button ct-instruction"},(0,e.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 24 24"},(0,e.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().on("ct:extensions:card",(function(e){var t=e.CustomComponent;"product-reviews"===e.extension.name&&(t.extension=V)}))}()}();
|
1 |
/*! For license information please see dashboard.js.LICENSE.txt */
|
2 |
+
!function(){var e={184:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)&&n.length){var i=o.apply(null,n);i&&e.push(i)}else if("object"===a)for(var c in n)r.call(n,c)&&n[c]&&e.push(c)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},172:function(e,t,n){var r,o,a=n(760),i=n(529),c=(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 s(e){return setTimeout(e,0)}e.exports=function(e,t){var n=document,o="string"==typeof e?n.querySelector(e):e,u=i({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){E(),l.active=!0,l.paused=!1,l.nodeFocusedBeforeActivation=n.activeElement;var t=e&&e.onActivate?e.onActivate:u.onActivate;return t&&t(),d(),f}},deactivate:p,pause:function(){!l.paused&&l.active&&(l.paused=!0,m())},unpause:function(){l.paused&&l.active&&(l.paused=!1,E(),d())}};return f;function p(e){if(l.active){clearTimeout(r),m(),l.active=!1,l.paused=!1,c.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)&&s((function(){var e;O((e=l.nodeFocusedBeforeActivation,v("setReturnFocus")||e))})),f}}function d(){if(l.active)return c.activateTrap(f),r=s((function(){O(y())})),n.addEventListener("focusin",b,!0),n.addEventListener("mousedown",h,{capture:!0,passive:!1}),n.addEventListener("touchstart",h,{capture:!0,passive:!1}),n.addEventListener("click",w,{capture:!0,passive:!1}),n.addEventListener("keydown",g,{capture:!0,passive:!1}),f}function m(){if(l.active)return n.removeEventListener("focusin",b,!0),n.removeEventListener("mousedown",h,!0),n.removeEventListener("touchstart",h,!0),n.removeEventListener("click",w,!0),n.removeEventListener("keydown",g,!0),f}function v(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 y(){var e;if(!(e=null!==v("initialFocus")?v("initialFocus"):o.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 h(e){o.contains(e.target)||(u.clickOutsideDeactivates?p({returnFocus:!a.isFocusable(e.target)}):u.allowOutsideClick&&u.allowOutsideClick(e)||e.preventDefault())}function b(e){o.contains(e.target)||e.target instanceof Document||(e.stopImmediatePropagation(),O(l.mostRecentlyFocusedNode||y()))}function g(e){if(!1!==u.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(E(),e.shiftKey&&e.target===l.firstTabbableNode)return e.preventDefault(),void O(l.lastTabbableNode);e.shiftKey||e.target!==l.lastTabbableNode||(e.preventDefault(),O(l.firstTabbableNode))}(e)}function w(e){u.clickOutsideDeactivates||o.contains(e.target)||u.allowOutsideClick&&u.allowOutsideClick(e)||(e.preventDefault(),e.stopImmediatePropagation())}function E(){var e=a(o);l.firstTabbableNode=e[0]||y(),l.lastTabbableNode=e[e.length-1]||y()}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(y()))}}},703:function(e,t,n){"use strict";var r=n(414);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var c=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 c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},697:function(e,t,n){e.exports=n(703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},760:function(e){var t=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],n=t.join(","),r="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;function o(e,t){t=t||{};var o,i,c,l=[],f=[],p=e.querySelectorAll(n);for(t.includeContainer&&r.call(e,n)&&(p=Array.prototype.slice.apply(p)).unshift(e),o=0;o<p.length;o++)a(i=p[o])&&(0===(c=s(i))?l.push(i):f.push({documentOrder:o,tabIndex:c,node:i}));return f.sort(u).map((function(e){return e.node})).concat(l)}function a(e){return!(!i(e)||function(e){return function(e){return l(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 l(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!==r.call(e,n)&&a(e)},o.isFocusable=function(e){if(!e)throw new Error("No node provided");return!1!==r.call(e,c)&&i(e)};var c=t.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 u(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex}function l(e){return"INPUT"===e.tagName}e.exports=o},529:function(e){e.exports=function(){for(var e={},n=0;n<arguments.length;n++){var r=arguments[n];for(var o in r)t.call(r,o)&&(e[o]=r[o])}return e};var t=Object.prototype.hasOwnProperty}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=window.wp.element,t=window.wp.i18n,r=n(184),o=n.n(r),a=window.ctEvents,i=n.n(a),c=window.blocksyOptions,s=window.React,u=n.n(s);function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(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}n(697);var p=function(e){return e.initialState,e.getInitialState,e.refs,e.getRefs,e.didMount,e.didUpdate,e.willUnmount,e.getSnapshotBeforeUpdate,e.shouldUpdate,e.render,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"])},d=function(e){function t(){var n,r;l(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=f(this,e.call.apply(e,[this].concat(a))),m.call(r),f(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:p(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:p(e),nextState:t})},t.prototype.componentWillUnmount=function(){this.props.willUnmount&&this.props.willUnmount({state:this.state,props:p(this.props),refs:this._refs})},t.prototype.componentDidUpdate=function(e,t,n){this.props.didUpdate&&this.props.didUpdate(Object.assign(this.getArgs(),{prevProps:p(e),prevState:t}),n)},t.prototype.getSnapshotBeforeUpdate=function(e,t){return this.props.getSnapshotBeforeUpdate?this.props.getSnapshotBeforeUpdate(Object.assign(this.getArgs(),{prevProps:p(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}(u().Component);d.defaultProps={getInitialState:function(){},getRefs:function(){return{}}};var m=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)}},v=d,y=function(t){var n=t.children,r=t.container,o=void 0===r?document.body:r,a=t.type,i=void 0===a?"reach-portal":a;return(0,e.createElement)(v,{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(i),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(t){var r=t.refs.node;return r?(0,e.createPortal)(n,r):null}})},h=function(e,t){return function(n){if(e&&e(n),!n.defaultPrevented)return t(n)}},b=n(172),g=n.n(b);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},w.apply(this,arguments)}function E(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var O=function(){},S=function(){},x=function(e){var t=e.refs;t.trap.deactivate(),t.disposeAriaHider()},_=React.createContext(),k=React.forwardRef((function(t,n){var r=t.container,o=t.isOpen,a=void 0===o||o,i=t.onDismiss,c=void 0===i?O:i,s=t.initialFocusRef,u=t.onClick,l=t.onKeyDown,f=E(t,["container","isOpen","onDismiss","initialFocusRef","onClick","onKeyDown"]);return(0,e.createElement)(v,{didMount:S},a?(0,e.createElement)(y,{container:r,"data-reach-dialog-wrapper":!0},(0,e.createElement)(v,{refs:{overlayNode:null,contentNode:null},didMount:function(e){!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=g()(e.overlayNode,{initialFocus:t?function(){return t.current}:void 0,fallbackFocus:e.contentNode,escapeDeactivates:!1,clickOutsideDeactivates:!1})}(e.refs,s)},willUnmount:x},(function(t){var r=t.refs;return(0,e.createElement)(_.Provider,{value:function(e){return r.contentNode=e}},(0,e.createElement)("div",w({"data-reach-dialog-overlay":!0,onClick:h(u,(function(e){e.stopPropagation(),c()})),onKeyDown:h(l,(function(e){"Escape"===e.key&&(e.stopPropagation(),c())})),ref:function(e){r.overlayNode=e,n&&n(e)}},f)))}))):null)}));k.propTypes={initialFocusRef:function(){}};var j=function(e){return e.stopPropagation()},C=React.forwardRef((function(t,n){var r=t.onClick,o=(t.onKeyDown,E(t,["onClick","onKeyDown"]));return(0,e.createElement)(_.Consumer,null,(function(t){return(0,e.createElement)("div",w({"aria-modal":"true","data-reach-dialog-content":!0,tabIndex:"-1",onClick:h(r,j),ref:function(e){t(e),n&&n(e)}},o))}))})),A=function(e){return!!e},N=function(t){var n=t.items,r=t.isVisible,a=void 0===r?A:r,i=t.render,s=t.className,u=t.onDismiss;return(0,e.createElement)(c.Transition,{items:n,onStart:function(){return document.body.classList[a(n)?"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(t){return a(t)&&function(n){return(0,e.createElement)(k,{style:{opacity:n.opacity},container:document.querySelector("#wpbody"),onDismiss:function(){return u()}},(0,e.createElement)(C,{className:o()("ct-admin-modal",s),style:{transform:"translate3d(0px, ".concat(n.y,"px, 0px)")}},(0,e.createElement)("button",{className:"close-button",onClick:function(){return u()}},"×"),i(t,n)))}}))};function P(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 D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){T(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}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)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return I(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)?I(e,t):void 0}}(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 I(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 R=function(n){var r=n.extsSyncLoading,a=n.extensionData,i=n.onExtsSync,s=U((0,e.useState)(!1),2),u=s[0],l=s[1],f=U((0,e.useState)(null),2),p=f[0],d=f[1];return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("button",{className:"ct-button ct-config-btn","data-button":"white",onClick:function(){l(!0),d(a.settings)}},(0,t.__)("Configure","blocksy-companion")),(0,e.createElement)(N,{items:u,onDismiss:function(){return l(!1)},className:"ct-product-reviews-settings-modal",render:function(){return(0,e.createElement)("div",{className:o()("ct-modal-content")},(0,e.createElement)("h2",null,(0,t.__)("Product Reviews Settings","blocksy-companion")),(0,e.createElement)("p",{className:"ct-modal-description"},(0,t.__)("Configure the slugs for single and category pages of the product review custom post type.","blocksy-companion")),(0,e.createElement)("div",{className:"ct-controls-group"},(0,e.createElement)("section",{"data-columns":"medium:2"},(0,e.createElement)(c.OptionsPanel,{onChange:function(e,t){return d((function(n){return D(D({},n),{},T({},e,t))}))},options:{single_slug:{type:"text",value:"",label:(0,t.__)("Single Slug","blocksy-companion")},category_slug:{type:"text",value:"",label:(0,t.__)("Category Slug","blocksy-companion")}},value:p||{},hasRevertButton:!1}))),(0,e.createElement)("div",{className:"ct-modal-actions has-divider"},(0,e.createElement)("button",{className:"button-primary",disabled:r||!p,onClick:function(e){e.preventDefault(),p&&(i({extAction:{type:"persist",settings:p}}),l(!1))}},r?(0,e.createElement)("svg",{width:"15",height:"15",viewBox:"0 0 100 100"},(0,e.createElement)("g",{transform:"translate(50,50)"},(0,e.createElement)("g",{transform:"scale(1)"},(0,e.createElement)("circle",{cx:"0",cy:"0",r:"50",fill:"#687c93"}),(0,e.createElement)("circle",{cx:"0",cy:"-26",r:"12",fill:"#ffffff",transform:"rotate(161.634)"},(0,e.createElement)("animateTransform",{attributeName:"transform",type:"rotate",calcMode:"linear",values:"0 0 0;360 0 0",keyTimes:"0;1",dur:"1s",begin:"0s",repeatCount:"indefinite"}))))):(0,t.__)("Save","blocksy-companion"))))}}))};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 M=function(t){var n,r,o=(n=(0,e.useState)(!1),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}}(n,r)||function(e,t){if(e){if("string"==typeof e)return F(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)?F(e,t):void 0}}(n,r)||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.")}()),a=o[0],i=o[1];return[function(){return i(!0)},(0,e.createElement)(N,{items:a,onDismiss:function(){return i(!1)},render:function(){return(0,e.createElement)("div",{className:"ct-modal-content",dangerouslySetInnerHTML:{__html:t.readme}})}})]},L=(window.ctDashboardLocalizations||{}).DashboardContext,B=((L||{}).Provider,(L||{}).Consumer,L);function z(e,t,n,r,o,a,i){try{var c=e[a](i),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}function q(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){z(a,r,o,i,c,"next",e)}function c(e){z(a,r,o,i,c,"throw",e)}i(void 0)}))}}function K(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return H(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)?H(e,t):void 0}}(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 H(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function W(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return $(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)?$(e,t):void 0}}(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 V=function(n){var r=n.extsSyncLoading,a=n.extension,i=n.onExtsSync,c=W(function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},o=K((0,e.useState)(!1),2),a=o[0],i=o[1],c=K((0,e.useState)(!1),2),s=c[0],u=c[1],l=(0,e.useContext)(B),f=(l.Link,l.history),p=ctDashboardLocalizations.plugin_data.is_pro,d=function(){var e=q(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(p||!n.config.pro){e.next=3;break}return u(!0),e.abrupt("return");case 3:return(t=new FormData).append("ext",n.name),t.append("action",n.__object?"blocksy_extension_deactivate":"blocksy_extension_activate"),i(!0),e.prev=7,e.next=10,fetch(ctDashboardLocalizations.ajax_url,{method:"POST",body:t});case 10:n.config.require_refresh&&location.reload(),r(),e.next=16;break;case 14:e.prev=14,e.t0=e.catch(7);case 16:i(!1);case 17:case"end":return e.stop()}}),e,null,[[7,14]])})));return function(){return e.apply(this,arguments)}}();return[a,d,!p&&n.config.pro?(0,e.createElement)(N,{items:s,className:"ct-onboarding-modal",onDismiss:function(){return u(!1)},render:function(){return(0,e.createElement)("div",{className:"ct-modal-content"},(0,e.createElement)("svg",{width:"55",height:"55",viewBox:"0 0 40.5 48.3"},(0,e.createElement)("path",{fill:"#2d82c8",d:"M33.4 29.4l7.1 12.3-7.4.6-4 6-7.3-12.9"}),(0,e.createElement)("path",{d:"M33.5 29.6L26 42.7l-4.2-7.3 11.6-6 .1.2zM0 41.7l7.5.6 3.9 6 7.2-12.4-11-7.3L0 41.7z",fill:"#2271b1"}),(0,e.createElement)("path",{d:"M39.5 18.7c0 1.6-2.4 2.8-2.7 4.3-.4 1.5 1 3.8.2 5.1-.8 1.3-3.4 1.2-4.5 2.3-1.1 1.1-1 3.7-2.3 4.5-1.3.8-3.6-.6-5.1-.2-1.5.4-2.7 2.7-4.3 2.7S18 35 16.5 34.7c-1.5-.4-3.8 1-5.1.2s-1.2-3.4-2.3-4.5-3.7-1-4.5-2.3.6-3.6.2-5.1-2.7-2.7-2.7-4.3 2.4-2.8 2.7-4.3c.4-1.5-1-3.8-.2-5.1C5.4 8 8.1 8.1 9.1 7c1.1-1.1 1-3.7 2.3-4.5s3.6.6 5.1.2C18 2.4 19.2 0 20.8 0c1.6 0 2.8 2.4 4.3 2.7 1.5.4 3.8-1 5.1-.2 1.3.8 1.2 3.4 2.3 4.5 1.1 1.1 3.7 1 4.5 2.3s-.6 3.6-.2 5.1c.3 1.5 2.7 2.7 2.7 4.3z",fill:"#599fd9"}),(0,e.createElement)("path",{d:"M23.6 7c-6.4-1.5-12.9 2.5-14.4 8.9-.7 3.1-.2 6.3 1.5 9.1 1.7 2.7 4.3 4.6 7.4 5.4.9.2 1.9.3 2.8.3 2.2 0 4.4-.6 6.3-1.8 2.7-1.7 4.6-4.3 5.4-7.5C34 15 30 8.5 23.6 7zm7 14c-.6 2.6-2.2 4.8-4.5 6.2-2.3 1.4-5 1.8-7.6 1.2-2.6-.6-4.8-2.2-6.2-4.5-1.4-2.3-1.8-5-1.2-7.6.6-2.6 2.2-4.8 4.5-6.2 1.6-1 3.4-1.5 5.2-1.5.8 0 1.5.1 2.3.3 5.4 1.3 8.7 6.7 7.5 12.1zm-8.2-4.5l3.7.5-2.7 2.7.7 3.7-3.4-1.8-3.3 1.8.6-3.7-2.7-2.7 3.8-.5 1.6-3.4 1.7 3.4z",fill:"#fff"})),(0,e.createElement)("h2",{className:"ct-modal-title"},"This is a Pro extension"),(0,e.createElement)("p",null,(0,t.__)("Upgrade to the Pro version and get instant access to all premium extensions, features and future updates.","blocksy-companion")),(0,e.createElement)("div",{className:"ct-modal-actions has-divider","data-buttons":"2"},(0,e.createElement)("a",{onClick:function(e){e.preventDefault(),u(!1),setTimeout((function(){f.navigate("/pro")}),300)},className:"button"},(0,t.__)("Free vs Pro","blocksy")),(0,e.createElement)("a",{href:"https://creativethemes.com/blocksy/pricing/",target:"_blank",className:"button button-primary"},(0,t.__)("Upgrade Now","blocksy-companion"))))}}):null]}(a,(function(){return i()})),2),s=c[0],u=c[1],l=W(M(a),2),f=l[0],p=l[1];return(0,e.createElement)("li",{className:o()({active:!!a.__object})},(0,e.createElement)("h4",{className:"ct-extension-title"},a.config.name,s&&(0,e.createElement)("svg",{width:"15",height:"15",viewBox:"0 0 100 100"},(0,e.createElement)("g",{transform:"translate(50,50)"},(0,e.createElement)("g",{transform:"scale(1)"},(0,e.createElement)("circle",{cx:"0",cy:"0",r:"50",fill:"#687c93"}),(0,e.createElement)("circle",{cx:"0",cy:"-26",r:"12",fill:"#ffffff",transform:"rotate(161.634)"},(0,e.createElement)("animateTransform",{attributeName:"transform",type:"rotate",calcMode:"linear",values:"0 0 0;360 0 0",keyTimes:"0;1",dur:"1s",begin:"0s",repeatCount:"indefinite"})))))),a.config.description&&(0,e.createElement)("div",{className:"ct-extension-description"},a.config.description),(0,e.createElement)("div",{className:"ct-extension-actions"},(0,e.createElement)("button",{className:o()(a.__object?"ct-button":"ct-button-primary"),"data-button":"white",disabled:s,onClick:function(){u()}},a.__object?(0,t.__)("Deactivate","blocksy-companion"):(0,t.__)("Activate","blocksy-companion")),a.__object&&(0,e.createElement)(R,{extsSyncLoading:r,extensionData:a.data,onExtsSync:i}),a.readme&&(0,e.createElement)("button",{onClick:function(){return f()},"data-button":"white",className:"ct-minimal-button ct-instruction"},(0,e.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 24 24"},(0,e.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().on("ct:extensions:card",(function(e){var t=e.CustomComponent;"product-reviews"===e.extension.name&&(t.extension=V)}))}()}();
|
framework/extensions/product-reviews/static/bundle/main-admin.min.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/**
|
2 |
-
* - v1.8.
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|
1 |
/**
|
2 |
+
* - v1.8.60
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|
framework/extensions/product-reviews/static/bundle/main.min.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/**
|
2 |
-
* - v1.8.
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|
1 |
/**
|
2 |
+
* - v1.8.60
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|
framework/extensions/trending/static/bundle/main.min.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/**
|
2 |
-
* - v1.8.
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|
1 |
/**
|
2 |
+
* - v1.8.60
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|
framework/extensions/widgets/static/bundle/main.min.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/**
|
2 |
-
* - v1.8.
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|
1 |
/**
|
2 |
+
* - v1.8.60
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|
languages/blocksy-companion.pot
CHANGED
@@ -34,12 +34,12 @@ msgid ""
|
|
34 |
"version, the plugin is currently NOT RUNNING."
|
35 |
msgstr ""
|
36 |
|
37 |
-
#: framework/dashboard.php:
|
38 |
#: framework/extensions/product-reviews/extension.php:619
|
39 |
msgid "Blocksy"
|
40 |
msgstr ""
|
41 |
|
42 |
-
#: framework/dashboard.php:
|
43 |
msgid "You do not have sufficient permissions to access this page."
|
44 |
msgstr ""
|
45 |
|
@@ -76,7 +76,7 @@ msgid ""
|
|
76 |
msgstr ""
|
77 |
|
78 |
#: framework/extensions-manager.php:281,
|
79 |
-
#: framework/premium/extensions/local-google-fonts/extension.php:
|
80 |
msgid "Local Google Fonts"
|
81 |
msgstr ""
|
82 |
|
@@ -566,7 +566,7 @@ msgstr ""
|
|
566 |
#: framework/extensions/product-reviews/metabox.php:6,
|
567 |
#: framework/extensions/trending/customizer.php:110,
|
568 |
#: framework/premium/extensions/mega-menu/options.php:6,
|
569 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
570 |
#: framework/premium/extensions/woocommerce-extra/floating-cart.php:11,
|
571 |
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:164,
|
572 |
#: framework/features/header/items/account/options.php:70,
|
@@ -584,7 +584,7 @@ msgid "General"
|
|
584 |
msgstr ""
|
585 |
|
586 |
#: framework/extensions/cookies-consent/customizer.php:28,
|
587 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
588 |
#: framework/premium/extensions/woocommerce-extra/extension.php:81,
|
589 |
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:186,
|
590 |
#: framework/features/header/items/account/options.php:225,
|
@@ -596,7 +596,7 @@ msgid "Type 1"
|
|
596 |
msgstr ""
|
597 |
|
598 |
#: framework/extensions/cookies-consent/customizer.php:33,
|
599 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
600 |
#: framework/premium/extensions/woocommerce-extra/extension.php:86,
|
601 |
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:191,
|
602 |
#: framework/features/header/items/account/options.php:230,
|
@@ -666,7 +666,7 @@ msgid "Content"
|
|
666 |
msgstr ""
|
667 |
|
668 |
#: framework/extensions/cookies-consent/customizer.php:64,
|
669 |
-
#: framework/extensions/cookies-consent/helpers.php:
|
670 |
msgid ""
|
671 |
"We use cookies to ensure that we give you the best experience on our website."
|
672 |
msgstr ""
|
@@ -676,7 +676,7 @@ msgid "Accept Button text"
|
|
676 |
msgstr ""
|
677 |
|
678 |
#: framework/extensions/cookies-consent/customizer.php:80,
|
679 |
-
#: framework/extensions/cookies-consent/helpers.php:
|
680 |
msgid "Accept"
|
681 |
msgstr ""
|
682 |
|
@@ -685,7 +685,7 @@ msgid "Decline Button text"
|
|
685 |
msgstr ""
|
686 |
|
687 |
#: framework/extensions/cookies-consent/customizer.php:88,
|
688 |
-
#: framework/extensions/cookies-consent/helpers.php:
|
689 |
msgid "Decline"
|
690 |
msgstr ""
|
691 |
|
@@ -702,11 +702,11 @@ msgid "This text will appear under each comment form and subscribe form."
|
|
702 |
msgstr ""
|
703 |
|
704 |
#: framework/extensions/cookies-consent/customizer.php:142,
|
705 |
-
#: framework/extensions/newsletter-subscribe/customizer.php:
|
706 |
#: framework/extensions/product-reviews/extension.php:422,
|
707 |
#: framework/extensions/trending/customizer.php:333,
|
708 |
#: framework/premium/extensions/mega-menu/options.php:526,
|
709 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
710 |
#: framework/premium/extensions/woocommerce-extra/floating-cart.php:81,
|
711 |
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:31,
|
712 |
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:279,
|
@@ -734,18 +734,18 @@ msgstr ""
|
|
734 |
#: framework/extensions/cookies-consent/customizer.php:251,
|
735 |
#: framework/extensions/cookies-consent/customizer.php:287,
|
736 |
#: framework/extensions/cookies-consent/customizer.php:316,
|
737 |
-
#: framework/extensions/newsletter-subscribe/customizer.php:
|
738 |
-
#: framework/extensions/newsletter-subscribe/customizer.php:
|
739 |
-
#: framework/extensions/newsletter-subscribe/customizer.php:
|
740 |
-
#: framework/extensions/newsletter-subscribe/customizer.php:
|
741 |
-
#: framework/extensions/newsletter-subscribe/customizer.php:
|
742 |
-
#: framework/extensions/newsletter-subscribe/customizer.php:
|
743 |
#: framework/extensions/trending/customizer.php:366,
|
744 |
#: framework/premium/extensions/mega-menu/options.php:782,
|
745 |
#: framework/premium/extensions/mega-menu/options.php:829,
|
746 |
#: framework/premium/extensions/mega-menu/options.php:848,
|
747 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
748 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
749 |
#: framework/premium/extensions/woocommerce-extra/floating-cart.php:99,
|
750 |
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:73,
|
751 |
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:369,
|
@@ -814,12 +814,12 @@ msgstr ""
|
|
814 |
#: framework/extensions/cookies-consent/customizer.php:257,
|
815 |
#: framework/extensions/cookies-consent/customizer.php:292,
|
816 |
#: framework/extensions/cookies-consent/customizer.php:321,
|
817 |
-
#: framework/extensions/newsletter-subscribe/customizer.php:
|
818 |
-
#: framework/extensions/newsletter-subscribe/customizer.php:
|
819 |
#: framework/extensions/trending/customizer.php:372,
|
820 |
#: framework/premium/extensions/mega-menu/options.php:787,
|
821 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
822 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
823 |
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:374,
|
824 |
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:409,
|
825 |
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:448,
|
@@ -869,7 +869,7 @@ msgstr ""
|
|
869 |
#: framework/extensions/cookies-consent/customizer.php:270,
|
870 |
#: framework/extensions/trending/customizer.php:348,
|
871 |
#: framework/premium/extensions/mega-menu/options.php:816,
|
872 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
873 |
#: framework/premium/extensions/woocommerce-extra/floating-cart.php:86,
|
874 |
#: framework/features/header/items/account/options.php:991,
|
875 |
#: framework/premium/extensions/post-types-extra/includes/filtering/customizer.php:184,
|
@@ -888,7 +888,7 @@ msgstr ""
|
|
888 |
msgid "Font Color"
|
889 |
msgstr ""
|
890 |
|
891 |
-
#: framework/extensions/cookies-consent/helpers.php:
|
892 |
msgid "I accept the %sPrivacy Policy%s"
|
893 |
msgstr ""
|
894 |
|
@@ -960,8 +960,8 @@ msgid "Title"
|
|
960 |
msgstr ""
|
961 |
|
962 |
#: framework/extensions/newsletter-subscribe/customizer.php:21,
|
963 |
-
#: framework/extensions/newsletter-subscribe/helpers.php:
|
964 |
-
#: framework/extensions/newsletter-subscribe/helpers.php:
|
965 |
msgid "Newsletter Updates"
|
966 |
msgstr ""
|
967 |
|
@@ -971,8 +971,8 @@ msgid "Description"
|
|
971 |
msgstr ""
|
972 |
|
973 |
#: framework/extensions/newsletter-subscribe/customizer.php:29,
|
974 |
-
#: framework/extensions/newsletter-subscribe/helpers.php:
|
975 |
-
#: framework/extensions/newsletter-subscribe/helpers.php:
|
976 |
#: framework/extensions/newsletter-subscribe/ct-newsletter-subscribe/options.php:33,
|
977 |
#: framework/extensions/newsletter-subscribe/ct-newsletter-subscribe/view.php:16
|
978 |
msgid "Enter your email address below to subscribe to our newsletter"
|
@@ -1014,58 +1014,58 @@ msgstr ""
|
|
1014 |
msgid "Name Field"
|
1015 |
msgstr ""
|
1016 |
|
1017 |
-
#: framework/extensions/newsletter-subscribe/customizer.php:
|
1018 |
#: framework/extensions/newsletter-subscribe/ct-newsletter-subscribe/options.php:88
|
1019 |
msgid "Name Label"
|
1020 |
msgstr ""
|
1021 |
|
1022 |
-
#: framework/extensions/newsletter-subscribe/customizer.php:
|
1023 |
#: framework/extensions/newsletter-subscribe/extension.php:180,
|
1024 |
-
#: framework/extensions/newsletter-subscribe/helpers.php:
|
1025 |
-
#: framework/extensions/newsletter-subscribe/helpers.php:
|
1026 |
#: framework/extensions/newsletter-subscribe/ct-newsletter-subscribe/options.php:90,
|
1027 |
#: framework/extensions/newsletter-subscribe/ct-newsletter-subscribe/view.php:69
|
1028 |
msgid "Your name"
|
1029 |
msgstr ""
|
1030 |
|
1031 |
-
#: framework/extensions/newsletter-subscribe/customizer.php:
|
1032 |
#: framework/extensions/newsletter-subscribe/ct-newsletter-subscribe/options.php:99
|
1033 |
msgid "Mail Label"
|
1034 |
msgstr ""
|
1035 |
|
1036 |
-
#: framework/extensions/newsletter-subscribe/customizer.php:
|
1037 |
#: framework/extensions/newsletter-subscribe/extension.php:181,
|
1038 |
-
#: framework/extensions/newsletter-subscribe/helpers.php:
|
1039 |
-
#: framework/extensions/newsletter-subscribe/helpers.php:
|
1040 |
#: framework/extensions/newsletter-subscribe/ct-newsletter-subscribe/options.php:101,
|
1041 |
#: framework/extensions/newsletter-subscribe/ct-newsletter-subscribe/view.php:70
|
1042 |
msgid "Your email"
|
1043 |
msgstr ""
|
1044 |
|
1045 |
-
#: framework/extensions/newsletter-subscribe/customizer.php:
|
1046 |
#: framework/extensions/newsletter-subscribe/ct-newsletter-subscribe/options.php:107
|
1047 |
msgid "Button Label"
|
1048 |
msgstr ""
|
1049 |
|
1050 |
-
#: framework/extensions/newsletter-subscribe/customizer.php:
|
1051 |
#: framework/extensions/newsletter-subscribe/extension.php:175,
|
1052 |
-
#: framework/extensions/newsletter-subscribe/helpers.php:
|
1053 |
-
#: framework/extensions/newsletter-subscribe/helpers.php:
|
1054 |
#: framework/extensions/newsletter-subscribe/ct-newsletter-subscribe/options.php:109,
|
1055 |
#: framework/extensions/newsletter-subscribe/ct-newsletter-subscribe/view.php:19
|
1056 |
msgid "Subscribe"
|
1057 |
msgstr ""
|
1058 |
|
1059 |
-
#: framework/extensions/newsletter-subscribe/customizer.php:
|
1060 |
#: framework/premium/extensions/shortcuts/customizer.php:45,
|
1061 |
#: framework/premium/extensions/shortcuts/customizer.php:107,
|
1062 |
#: framework/premium/extensions/shortcuts/customizer.php:169,
|
1063 |
#: framework/premium/extensions/shortcuts/customizer.php:225,
|
1064 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
1065 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
1066 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
1067 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
1068 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
1069 |
#: framework/premium/features/content-blocks/options/404.php:146,
|
1070 |
#: framework/premium/features/content-blocks/options/header.php:166,
|
1071 |
#: framework/premium/features/content-blocks/options/hook.php:343,
|
@@ -1075,7 +1075,7 @@ msgstr ""
|
|
1075 |
msgid "Visibility"
|
1076 |
msgstr ""
|
1077 |
|
1078 |
-
#: framework/extensions/newsletter-subscribe/customizer.php:
|
1079 |
#: framework/extensions/trending/customizer.php:279,
|
1080 |
#: framework/features/header/header-options.php:103,
|
1081 |
#: framework/features/header/header-options.php:185,
|
@@ -1083,12 +1083,12 @@ msgstr ""
|
|
1083 |
#: framework/premium/extensions/shortcuts/customizer.php:121,
|
1084 |
#: framework/premium/extensions/shortcuts/customizer.php:183,
|
1085 |
#: framework/premium/extensions/shortcuts/customizer.php:239,
|
1086 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
1087 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
1088 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
1089 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
1090 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
1091 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
1092 |
#: framework/premium/extensions/woocommerce-extra/extension.php:176,
|
1093 |
#: framework/premium/extensions/woocommerce-extra/extension.php:197,
|
1094 |
#: framework/premium/extensions/woocommerce-extra/floating-cart.php:47,
|
@@ -1106,18 +1106,18 @@ msgstr ""
|
|
1106 |
msgid "Desktop"
|
1107 |
msgstr ""
|
1108 |
|
1109 |
-
#: framework/extensions/newsletter-subscribe/customizer.php:
|
1110 |
#: framework/extensions/trending/customizer.php:280,
|
1111 |
#: framework/premium/extensions/shortcuts/customizer.php:60,
|
1112 |
#: framework/premium/extensions/shortcuts/customizer.php:122,
|
1113 |
#: framework/premium/extensions/shortcuts/customizer.php:184,
|
1114 |
#: framework/premium/extensions/shortcuts/customizer.php:240,
|
1115 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
1116 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
1117 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
1118 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
1119 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
1120 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
1121 |
#: framework/premium/extensions/woocommerce-extra/extension.php:177,
|
1122 |
#: framework/premium/extensions/woocommerce-extra/extension.php:198,
|
1123 |
#: framework/premium/extensions/woocommerce-extra/floating-cart.php:48,
|
@@ -1136,7 +1136,7 @@ msgstr ""
|
|
1136 |
msgid "Tablet"
|
1137 |
msgstr ""
|
1138 |
|
1139 |
-
#: framework/extensions/newsletter-subscribe/customizer.php:
|
1140 |
#: framework/extensions/trending/customizer.php:281,
|
1141 |
#: framework/features/header/header-options.php:105,
|
1142 |
#: framework/features/header/header-options.php:187,
|
@@ -1144,12 +1144,12 @@ msgstr ""
|
|
1144 |
#: framework/premium/extensions/shortcuts/customizer.php:123,
|
1145 |
#: framework/premium/extensions/shortcuts/customizer.php:185,
|
1146 |
#: framework/premium/extensions/shortcuts/customizer.php:241,
|
1147 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
1148 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
1149 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
1150 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
1151 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
1152 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
1153 |
#: framework/premium/extensions/woocommerce-extra/extension.php:178,
|
1154 |
#: framework/premium/extensions/woocommerce-extra/extension.php:199,
|
1155 |
#: framework/premium/extensions/woocommerce-extra/floating-cart.php:49,
|
@@ -1170,15 +1170,15 @@ msgstr ""
|
|
1170 |
msgid "Mobile"
|
1171 |
msgstr ""
|
1172 |
|
1173 |
-
#: framework/extensions/newsletter-subscribe/customizer.php:
|
1174 |
msgid "Title Color"
|
1175 |
msgstr ""
|
1176 |
|
1177 |
-
#: framework/extensions/newsletter-subscribe/customizer.php:
|
1178 |
msgid "Description Color"
|
1179 |
msgstr ""
|
1180 |
|
1181 |
-
#: framework/extensions/newsletter-subscribe/customizer.php:
|
1182 |
#: framework/features/header/items/account/options.php:1023,
|
1183 |
#: framework/premium/features/premium-header/items/search-input/options.php:194,
|
1184 |
#: framework/premium/features/premium-header/items/search-input/options.php:223,
|
@@ -1187,9 +1187,9 @@ msgstr ""
|
|
1187 |
msgid "Input Font Color"
|
1188 |
msgstr ""
|
1189 |
|
1190 |
-
#: framework/extensions/newsletter-subscribe/customizer.php:
|
1191 |
-
#: framework/extensions/newsletter-subscribe/customizer.php:
|
1192 |
-
#: framework/extensions/newsletter-subscribe/customizer.php:
|
1193 |
#: framework/features/header/items/account/options.php:1045,
|
1194 |
#: framework/features/header/items/account/options.php:1075,
|
1195 |
#: framework/features/header/items/account/options.php:1111,
|
@@ -1208,7 +1208,7 @@ msgstr ""
|
|
1208 |
msgid "Focus"
|
1209 |
msgstr ""
|
1210 |
|
1211 |
-
#: framework/extensions/newsletter-subscribe/customizer.php:
|
1212 |
#: framework/features/header/items/account/options.php:1053,
|
1213 |
#: framework/premium/features/premium-header/items/search-input/options.php:454,
|
1214 |
#: framework/premium/features/premium-header/items/search-input/options.php:483,
|
@@ -1217,7 +1217,7 @@ msgstr ""
|
|
1217 |
msgid "Input Border Color"
|
1218 |
msgstr ""
|
1219 |
|
1220 |
-
#: framework/extensions/newsletter-subscribe/customizer.php:
|
1221 |
#: framework/features/header/items/account/options.php:1089,
|
1222 |
#: framework/premium/features/premium-header/items/search-input/options.php:590,
|
1223 |
#: framework/premium/features/premium-header/items/search-input/options.php:618,
|
@@ -1226,28 +1226,28 @@ msgstr ""
|
|
1226 |
msgid "Input Background Color"
|
1227 |
msgstr ""
|
1228 |
|
1229 |
-
#: framework/extensions/newsletter-subscribe/customizer.php:
|
1230 |
#: framework/premium/extensions/post-types-extra/includes/filtering/customizer.php:220
|
1231 |
msgid "Button Color"
|
1232 |
msgstr ""
|
1233 |
|
1234 |
-
#: framework/extensions/newsletter-subscribe/customizer.php:
|
1235 |
#: framework/extensions/trending/customizer.php:380,
|
1236 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
1237 |
msgid "Container Background"
|
1238 |
msgstr ""
|
1239 |
|
1240 |
-
#: framework/extensions/newsletter-subscribe/customizer.php:
|
1241 |
msgid "Container Border"
|
1242 |
msgstr ""
|
1243 |
|
1244 |
-
#: framework/extensions/newsletter-subscribe/customizer.php:
|
1245 |
#: framework/extensions/trending/customizer.php:396
|
1246 |
msgid "Container Inner Spacing"
|
1247 |
msgstr ""
|
1248 |
|
1249 |
-
#: framework/extensions/newsletter-subscribe/customizer.php:
|
1250 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
1251 |
msgid "Container Border Radius"
|
1252 |
msgstr ""
|
1253 |
|
@@ -1255,11 +1255,11 @@ msgstr ""
|
|
1255 |
msgid "Disable Subscribe Form"
|
1256 |
msgstr ""
|
1257 |
|
1258 |
-
#: framework/extensions/newsletter-subscribe/helpers.php:
|
1259 |
msgid "First name"
|
1260 |
msgstr ""
|
1261 |
|
1262 |
-
#: framework/extensions/newsletter-subscribe/helpers.php:
|
1263 |
msgid "Email address"
|
1264 |
msgstr ""
|
1265 |
|
@@ -1723,7 +1723,7 @@ msgstr ""
|
|
1723 |
|
1724 |
#: framework/extensions/trending/customizer.php:312,
|
1725 |
#: framework/features/header/header-options.php:158,
|
1726 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
1727 |
#: framework/premium/features/content-blocks/options/archive.php:186,
|
1728 |
#: framework/premium/features/content-blocks/options/header.php:142,
|
1729 |
#: framework/premium/features/content-blocks/options/hook.php:236,
|
@@ -2005,7 +2005,7 @@ msgstr ""
|
|
2005 |
|
2006 |
#: framework/premium/features/premium-header.php:236,
|
2007 |
#: framework/premium/extensions/mega-menu/options.php:475,
|
2008 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
2009 |
#: framework/features/header/items/account/options.php:318,
|
2010 |
#: framework/features/header/items/account/options.php:615,
|
2011 |
#: framework/premium/extensions/woocommerce-extra/header-items/wish-list/options.php:130
|
@@ -2014,7 +2014,7 @@ msgstr ""
|
|
2014 |
|
2015 |
#: framework/premium/features/premium-header.php:237,
|
2016 |
#: framework/premium/extensions/mega-menu/options.php:476,
|
2017 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
2018 |
#: framework/features/header/items/account/options.php:319,
|
2019 |
#: framework/features/header/items/account/options.php:616,
|
2020 |
#: framework/premium/extensions/woocommerce-extra/header-items/wish-list/options.php:131
|
@@ -2028,7 +2028,7 @@ msgstr ""
|
|
2028 |
|
2029 |
#: framework/extensions/newsletter-subscribe/ct-newsletter-subscribe/options.php:30,
|
2030 |
#: framework/premium/extensions/mega-menu/options.php:503,
|
2031 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
2032 |
#: framework/extensions/widgets/widgets/ct-contact-info/options.php:24,
|
2033 |
#: framework/extensions/widgets/widgets/ct-quote/options.php:31,
|
2034 |
#: framework/features/header/items/account/options.php:336
|
@@ -2342,7 +2342,7 @@ msgid "Label Link"
|
|
2342 |
msgstr ""
|
2343 |
|
2344 |
#: framework/premium/extensions/mega-menu/options.php:441,
|
2345 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
2346 |
#: framework/features/header/items/account/options.php:258,
|
2347 |
#: framework/features/header/items/account/options.php:499,
|
2348 |
#: framework/features/header/items/account/options.php:555,
|
@@ -2361,7 +2361,7 @@ msgid "Vertical Alignment"
|
|
2361 |
msgstr ""
|
2362 |
|
2363 |
#: framework/premium/extensions/mega-menu/options.php:544,
|
2364 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
2365 |
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:346,
|
2366 |
#: framework/features/header/items/account/options.php:1182
|
2367 |
msgid "Background"
|
@@ -2403,7 +2403,7 @@ msgid "Initial Color"
|
|
2403 |
msgstr ""
|
2404 |
|
2405 |
#: framework/premium/extensions/mega-menu/options.php:644,
|
2406 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
2407 |
#: framework/premium/features/premium-header/items/language-switcher/options.php:441,
|
2408 |
#: framework/premium/features/premium-header/items/search-input/options.php:836
|
2409 |
msgid "Items Divider"
|
@@ -2528,7 +2528,7 @@ msgstr ""
|
|
2528 |
#. translators: This is a brand name. Preferably to not be translated
|
2529 |
#. translators: This is a brand name. Preferably to not be translated
|
2530 |
#: framework/premium/extensions/shortcuts/config.php:5,
|
2531 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
2532 |
msgctxt "Extension Brand Name"
|
2533 |
msgid "Shortcuts Bar"
|
2534 |
msgstr ""
|
@@ -2541,7 +2541,7 @@ msgstr ""
|
|
2541 |
|
2542 |
#: framework/premium/extensions/shortcuts/customizer.php:12,
|
2543 |
#: framework/premium/extensions/shortcuts/customizer.php:35,
|
2544 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
2545 |
#: framework/premium/extensions/shortcuts/views/bar.php:13,
|
2546 |
#: framework/premium/extensions/shortcuts/views/bar.php:43
|
2547 |
msgid "Home"
|
@@ -2549,7 +2549,7 @@ msgstr ""
|
|
2549 |
|
2550 |
#: framework/premium/extensions/shortcuts/customizer.php:68,
|
2551 |
#: framework/premium/extensions/shortcuts/customizer.php:91,
|
2552 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
2553 |
#: framework/extensions/widgets/widgets/ct-contact-info/options.php:128,
|
2554 |
#: framework/premium/extensions/shortcuts/views/bar.php:22,
|
2555 |
#: framework/premium/extensions/shortcuts/views/bar.php:44,
|
@@ -2563,33 +2563,33 @@ msgstr ""
|
|
2563 |
msgid "Scroll Top"
|
2564 |
msgstr ""
|
2565 |
|
2566 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
2567 |
#: framework/extensions/widgets/widgets/ct-advertisement/options.php:83,
|
2568 |
#: framework/extensions/widgets/widgets/ct-contact-info/options.php:539
|
2569 |
msgid "Open link in new tab"
|
2570 |
msgstr ""
|
2571 |
|
2572 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
2573 |
msgid "Set link to nofollow"
|
2574 |
msgstr ""
|
2575 |
|
2576 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
2577 |
msgid "Custom class"
|
2578 |
msgstr ""
|
2579 |
|
2580 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
2581 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
2582 |
#: framework/premium/extensions/shortcuts/views/bar.php:47
|
2583 |
msgid "Cart"
|
2584 |
msgstr ""
|
2585 |
|
2586 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
2587 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
2588 |
msgid "Shop"
|
2589 |
msgstr ""
|
2590 |
|
2591 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
2592 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
2593 |
#: framework/premium/extensions/woocommerce-extra/readme.php:70,
|
2594 |
#: framework/premium/extensions/woocommerce-extra/header-items/wish-list/config.php:4,
|
2595 |
#: framework/premium/extensions/woocommerce-extra/header-items/wish-list/options.php:141,
|
@@ -2598,30 +2598,30 @@ msgstr ""
|
|
2598 |
msgid "Wishlist"
|
2599 |
msgstr ""
|
2600 |
|
2601 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
2602 |
#: framework/premium/features/content-blocks/admin-ui.php:196
|
2603 |
msgid "Type"
|
2604 |
msgstr ""
|
2605 |
|
2606 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
2607 |
msgid "Shortcuts"
|
2608 |
msgstr ""
|
2609 |
|
2610 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
2611 |
#: framework/features/header/items/account/options.php:275,
|
2612 |
#: framework/features/header/items/account/options.php:572,
|
2613 |
#: framework/premium/extensions/woocommerce-extra/header-items/wish-list/options.php:92
|
2614 |
msgid "Label Visibility"
|
2615 |
msgstr ""
|
2616 |
|
2617 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
2618 |
#: framework/features/header/items/account/options.php:311,
|
2619 |
#: framework/features/header/items/account/options.php:608,
|
2620 |
#: framework/premium/extensions/woocommerce-extra/header-items/wish-list/options.php:123
|
2621 |
msgid "Label Position"
|
2622 |
msgstr ""
|
2623 |
|
2624 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
2625 |
#: framework/premium/extensions/woocommerce-extra/floating-cart.php:25,
|
2626 |
#: framework/premium/features/content-blocks/hooks-manager.php:445,
|
2627 |
#: framework/features/header/items/account/options.php:320,
|
@@ -2631,19 +2631,19 @@ msgstr ""
|
|
2631 |
msgid "Bottom"
|
2632 |
msgstr ""
|
2633 |
|
2634 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
2635 |
msgid "Container Height"
|
2636 |
msgstr ""
|
2637 |
|
2638 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
2639 |
msgid "Container Max Width"
|
2640 |
msgstr ""
|
2641 |
|
2642 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
2643 |
msgid "Scroll Interaction"
|
2644 |
msgstr ""
|
2645 |
|
2646 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
2647 |
#: framework/premium/features/content-blocks/admin-ui.php:225,
|
2648 |
#: framework/extensions/widgets/widgets/ct-contact-info/options.php:510,
|
2649 |
#: framework/extensions/widgets/widgets/ct-socials/options.php:113,
|
@@ -2657,19 +2657,19 @@ msgstr ""
|
|
2657 |
msgid "None"
|
2658 |
msgstr ""
|
2659 |
|
2660 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
2661 |
msgid "Hide"
|
2662 |
msgstr ""
|
2663 |
|
2664 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
2665 |
msgid "Shortcuts Bar Display Conditions"
|
2666 |
msgstr ""
|
2667 |
|
2668 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
2669 |
msgid "Add one or more conditions to display the shortcuts bar."
|
2670 |
msgstr ""
|
2671 |
|
2672 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
2673 |
#: framework/premium/extensions/post-types-extra/includes/filtering/customizer.php:173,
|
2674 |
#: framework/premium/features/premium-header/items/contacts/options.php:410,
|
2675 |
#: framework/premium/features/premium-header/items/language-switcher/options.php:192,
|
@@ -2677,7 +2677,7 @@ msgstr ""
|
|
2677 |
msgid "Font"
|
2678 |
msgstr ""
|
2679 |
|
2680 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
2681 |
#: framework/premium/features/premium-header/items/contacts/options.php:590,
|
2682 |
#: framework/premium/features/premium-header/items/contacts/options.php:619,
|
2683 |
#: framework/premium/features/premium-header/items/contacts/options.php:650,
|
@@ -2685,15 +2685,15 @@ msgstr ""
|
|
2685 |
msgid "Icons Color"
|
2686 |
msgstr ""
|
2687 |
|
2688 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
2689 |
msgid "Cart Badge Color"
|
2690 |
msgstr ""
|
2691 |
|
2692 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
2693 |
msgid "Items Divider Height"
|
2694 |
msgstr ""
|
2695 |
|
2696 |
-
#: framework/premium/extensions/shortcuts/customizer.php:
|
2697 |
#: framework/premium/extensions/woocommerce-extra/floating-cart.php:123,
|
2698 |
#: framework/premium/features/content-blocks/options/popup.php:387,
|
2699 |
#: framework/premium/features/premium-header/items/language-switcher/options.php:455
|
@@ -4450,7 +4450,7 @@ msgstr ""
|
|
4450 |
msgid "Read Time"
|
4451 |
msgstr ""
|
4452 |
|
4453 |
-
#: framework/premium/extensions/post-types-extra/includes/estimated-read-time.php:
|
4454 |
msgid "%s min"
|
4455 |
msgid_plural "%s mins"
|
4456 |
msgstr[0] ""
|
34 |
"version, the plugin is currently NOT RUNNING."
|
35 |
msgstr ""
|
36 |
|
37 |
+
#: framework/dashboard.php:276, framework/dashboard.php:277,
|
38 |
#: framework/extensions/product-reviews/extension.php:619
|
39 |
msgid "Blocksy"
|
40 |
msgstr ""
|
41 |
|
42 |
+
#: framework/dashboard.php:322
|
43 |
msgid "You do not have sufficient permissions to access this page."
|
44 |
msgstr ""
|
45 |
|
76 |
msgstr ""
|
77 |
|
78 |
#: framework/extensions-manager.php:281,
|
79 |
+
#: framework/premium/extensions/local-google-fonts/extension.php:225
|
80 |
msgid "Local Google Fonts"
|
81 |
msgstr ""
|
82 |
|
566 |
#: framework/extensions/product-reviews/metabox.php:6,
|
567 |
#: framework/extensions/trending/customizer.php:110,
|
568 |
#: framework/premium/extensions/mega-menu/options.php:6,
|
569 |
+
#: framework/premium/extensions/shortcuts/customizer.php:537,
|
570 |
#: framework/premium/extensions/woocommerce-extra/floating-cart.php:11,
|
571 |
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:164,
|
572 |
#: framework/features/header/items/account/options.php:70,
|
584 |
msgstr ""
|
585 |
|
586 |
#: framework/extensions/cookies-consent/customizer.php:28,
|
587 |
+
#: framework/premium/extensions/shortcuts/customizer.php:549,
|
588 |
#: framework/premium/extensions/woocommerce-extra/extension.php:81,
|
589 |
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:186,
|
590 |
#: framework/features/header/items/account/options.php:225,
|
596 |
msgstr ""
|
597 |
|
598 |
#: framework/extensions/cookies-consent/customizer.php:33,
|
599 |
+
#: framework/premium/extensions/shortcuts/customizer.php:554,
|
600 |
#: framework/premium/extensions/woocommerce-extra/extension.php:86,
|
601 |
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:191,
|
602 |
#: framework/features/header/items/account/options.php:230,
|
666 |
msgstr ""
|
667 |
|
668 |
#: framework/extensions/cookies-consent/customizer.php:64,
|
669 |
+
#: framework/extensions/cookies-consent/helpers.php:15
|
670 |
msgid ""
|
671 |
"We use cookies to ensure that we give you the best experience on our website."
|
672 |
msgstr ""
|
676 |
msgstr ""
|
677 |
|
678 |
#: framework/extensions/cookies-consent/customizer.php:80,
|
679 |
+
#: framework/extensions/cookies-consent/helpers.php:18
|
680 |
msgid "Accept"
|
681 |
msgstr ""
|
682 |
|
685 |
msgstr ""
|
686 |
|
687 |
#: framework/extensions/cookies-consent/customizer.php:88,
|
688 |
+
#: framework/extensions/cookies-consent/helpers.php:19
|
689 |
msgid "Decline"
|
690 |
msgstr ""
|
691 |
|
702 |
msgstr ""
|
703 |
|
704 |
#: framework/extensions/cookies-consent/customizer.php:142,
|
705 |
+
#: framework/extensions/newsletter-subscribe/customizer.php:149,
|
706 |
#: framework/extensions/product-reviews/extension.php:422,
|
707 |
#: framework/extensions/trending/customizer.php:333,
|
708 |
#: framework/premium/extensions/mega-menu/options.php:526,
|
709 |
+
#: framework/premium/extensions/shortcuts/customizer.php:781,
|
710 |
#: framework/premium/extensions/woocommerce-extra/floating-cart.php:81,
|
711 |
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:31,
|
712 |
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:279,
|
734 |
#: framework/extensions/cookies-consent/customizer.php:251,
|
735 |
#: framework/extensions/cookies-consent/customizer.php:287,
|
736 |
#: framework/extensions/cookies-consent/customizer.php:316,
|
737 |
+
#: framework/extensions/newsletter-subscribe/customizer.php:167,
|
738 |
+
#: framework/extensions/newsletter-subscribe/customizer.php:192,
|
739 |
+
#: framework/extensions/newsletter-subscribe/customizer.php:224,
|
740 |
+
#: framework/extensions/newsletter-subscribe/customizer.php:255,
|
741 |
+
#: framework/extensions/newsletter-subscribe/customizer.php:292,
|
742 |
+
#: framework/extensions/newsletter-subscribe/customizer.php:324,
|
743 |
#: framework/extensions/trending/customizer.php:366,
|
744 |
#: framework/premium/extensions/mega-menu/options.php:782,
|
745 |
#: framework/premium/extensions/mega-menu/options.php:829,
|
746 |
#: framework/premium/extensions/mega-menu/options.php:848,
|
747 |
+
#: framework/premium/extensions/shortcuts/customizer.php:815,
|
748 |
+
#: framework/premium/extensions/shortcuts/customizer.php:847,
|
749 |
#: framework/premium/extensions/woocommerce-extra/floating-cart.php:99,
|
750 |
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:73,
|
751 |
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:369,
|
814 |
#: framework/extensions/cookies-consent/customizer.php:257,
|
815 |
#: framework/extensions/cookies-consent/customizer.php:292,
|
816 |
#: framework/extensions/cookies-consent/customizer.php:321,
|
817 |
+
#: framework/extensions/newsletter-subscribe/customizer.php:198,
|
818 |
+
#: framework/extensions/newsletter-subscribe/customizer.php:329,
|
819 |
#: framework/extensions/trending/customizer.php:372,
|
820 |
#: framework/premium/extensions/mega-menu/options.php:787,
|
821 |
+
#: framework/premium/extensions/shortcuts/customizer.php:821,
|
822 |
+
#: framework/premium/extensions/shortcuts/customizer.php:853,
|
823 |
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:374,
|
824 |
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:409,
|
825 |
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:448,
|
869 |
#: framework/extensions/cookies-consent/customizer.php:270,
|
870 |
#: framework/extensions/trending/customizer.php:348,
|
871 |
#: framework/premium/extensions/mega-menu/options.php:816,
|
872 |
+
#: framework/premium/extensions/shortcuts/customizer.php:797,
|
873 |
#: framework/premium/extensions/woocommerce-extra/floating-cart.php:86,
|
874 |
#: framework/features/header/items/account/options.php:991,
|
875 |
#: framework/premium/extensions/post-types-extra/includes/filtering/customizer.php:184,
|
888 |
msgid "Font Color"
|
889 |
msgstr ""
|
890 |
|
891 |
+
#: framework/extensions/cookies-consent/helpers.php:64
|
892 |
msgid "I accept the %sPrivacy Policy%s"
|
893 |
msgstr ""
|
894 |
|
960 |
msgstr ""
|
961 |
|
962 |
#: framework/extensions/newsletter-subscribe/customizer.php:21,
|
963 |
+
#: framework/extensions/newsletter-subscribe/helpers.php:24,
|
964 |
+
#: framework/extensions/newsletter-subscribe/helpers.php:74
|
965 |
msgid "Newsletter Updates"
|
966 |
msgstr ""
|
967 |
|
971 |
msgstr ""
|
972 |
|
973 |
#: framework/extensions/newsletter-subscribe/customizer.php:29,
|
974 |
+
#: framework/extensions/newsletter-subscribe/helpers.php:27,
|
975 |
+
#: framework/extensions/newsletter-subscribe/helpers.php:75,
|
976 |
#: framework/extensions/newsletter-subscribe/ct-newsletter-subscribe/options.php:33,
|
977 |
#: framework/extensions/newsletter-subscribe/ct-newsletter-subscribe/view.php:16
|
978 |
msgid "Enter your email address below to subscribe to our newsletter"
|
1014 |
msgid "Name Field"
|
1015 |
msgstr ""
|
1016 |
|
1017 |
+
#: framework/extensions/newsletter-subscribe/customizer.php:95,
|
1018 |
#: framework/extensions/newsletter-subscribe/ct-newsletter-subscribe/options.php:88
|
1019 |
msgid "Name Label"
|
1020 |
msgstr ""
|
1021 |
|
1022 |
+
#: framework/extensions/newsletter-subscribe/customizer.php:97,
|
1023 |
#: framework/extensions/newsletter-subscribe/extension.php:180,
|
1024 |
+
#: framework/extensions/newsletter-subscribe/helpers.php:39,
|
1025 |
+
#: framework/extensions/newsletter-subscribe/helpers.php:86,
|
1026 |
#: framework/extensions/newsletter-subscribe/ct-newsletter-subscribe/options.php:90,
|
1027 |
#: framework/extensions/newsletter-subscribe/ct-newsletter-subscribe/view.php:69
|
1028 |
msgid "Your name"
|
1029 |
msgstr ""
|
1030 |
|
1031 |
+
#: framework/extensions/newsletter-subscribe/customizer.php:107,
|
1032 |
#: framework/extensions/newsletter-subscribe/ct-newsletter-subscribe/options.php:99
|
1033 |
msgid "Mail Label"
|
1034 |
msgstr ""
|
1035 |
|
1036 |
+
#: framework/extensions/newsletter-subscribe/customizer.php:109,
|
1037 |
#: framework/extensions/newsletter-subscribe/extension.php:181,
|
1038 |
+
#: framework/extensions/newsletter-subscribe/helpers.php:43,
|
1039 |
+
#: framework/extensions/newsletter-subscribe/helpers.php:87,
|
1040 |
#: framework/extensions/newsletter-subscribe/ct-newsletter-subscribe/options.php:101,
|
1041 |
#: framework/extensions/newsletter-subscribe/ct-newsletter-subscribe/view.php:70
|
1042 |
msgid "Your email"
|
1043 |
msgstr ""
|
1044 |
|
1045 |
+
#: framework/extensions/newsletter-subscribe/customizer.php:116,
|
1046 |
#: framework/extensions/newsletter-subscribe/ct-newsletter-subscribe/options.php:107
|
1047 |
msgid "Button Label"
|
1048 |
msgstr ""
|
1049 |
|
1050 |
+
#: framework/extensions/newsletter-subscribe/customizer.php:118,
|
1051 |
#: framework/extensions/newsletter-subscribe/extension.php:175,
|
1052 |
+
#: framework/extensions/newsletter-subscribe/helpers.php:34,
|
1053 |
+
#: framework/extensions/newsletter-subscribe/helpers.php:79,
|
1054 |
#: framework/extensions/newsletter-subscribe/ct-newsletter-subscribe/options.php:109,
|
1055 |
#: framework/extensions/newsletter-subscribe/ct-newsletter-subscribe/view.php:19
|
1056 |
msgid "Subscribe"
|
1057 |
msgstr ""
|
1058 |
|
1059 |
+
#: framework/extensions/newsletter-subscribe/customizer.php:128,
|
1060 |
#: framework/premium/extensions/shortcuts/customizer.php:45,
|
1061 |
#: framework/premium/extensions/shortcuts/customizer.php:107,
|
1062 |
#: framework/premium/extensions/shortcuts/customizer.php:169,
|
1063 |
#: framework/premium/extensions/shortcuts/customizer.php:225,
|
1064 |
+
#: framework/premium/extensions/shortcuts/customizer.php:315,
|
1065 |
+
#: framework/premium/extensions/shortcuts/customizer.php:374,
|
1066 |
+
#: framework/premium/extensions/shortcuts/customizer.php:430,
|
1067 |
+
#: framework/premium/extensions/shortcuts/customizer.php:486,
|
1068 |
+
#: framework/premium/extensions/shortcuts/customizer.php:745,
|
1069 |
#: framework/premium/features/content-blocks/options/404.php:146,
|
1070 |
#: framework/premium/features/content-blocks/options/header.php:166,
|
1071 |
#: framework/premium/features/content-blocks/options/hook.php:343,
|
1075 |
msgid "Visibility"
|
1076 |
msgstr ""
|
1077 |
|
1078 |
+
#: framework/extensions/newsletter-subscribe/customizer.php:139,
|
1079 |
#: framework/extensions/trending/customizer.php:279,
|
1080 |
#: framework/features/header/header-options.php:103,
|
1081 |
#: framework/features/header/header-options.php:185,
|
1083 |
#: framework/premium/extensions/shortcuts/customizer.php:121,
|
1084 |
#: framework/premium/extensions/shortcuts/customizer.php:183,
|
1085 |
#: framework/premium/extensions/shortcuts/customizer.php:239,
|
1086 |
+
#: framework/premium/extensions/shortcuts/customizer.php:330,
|
1087 |
+
#: framework/premium/extensions/shortcuts/customizer.php:388,
|
1088 |
+
#: framework/premium/extensions/shortcuts/customizer.php:444,
|
1089 |
+
#: framework/premium/extensions/shortcuts/customizer.php:500,
|
1090 |
+
#: framework/premium/extensions/shortcuts/customizer.php:637,
|
1091 |
+
#: framework/premium/extensions/shortcuts/customizer.php:759,
|
1092 |
#: framework/premium/extensions/woocommerce-extra/extension.php:176,
|
1093 |
#: framework/premium/extensions/woocommerce-extra/extension.php:197,
|
1094 |
#: framework/premium/extensions/woocommerce-extra/floating-cart.php:47,
|
1106 |
msgid "Desktop"
|
1107 |
msgstr ""
|
1108 |
|
1109 |
+
#: framework/extensions/newsletter-subscribe/customizer.php:140,
|
1110 |
#: framework/extensions/trending/customizer.php:280,
|
1111 |
#: framework/premium/extensions/shortcuts/customizer.php:60,
|
1112 |
#: framework/premium/extensions/shortcuts/customizer.php:122,
|
1113 |
#: framework/premium/extensions/shortcuts/customizer.php:184,
|
1114 |
#: framework/premium/extensions/shortcuts/customizer.php:240,
|
1115 |
+
#: framework/premium/extensions/shortcuts/customizer.php:331,
|
1116 |
+
#: framework/premium/extensions/shortcuts/customizer.php:389,
|
1117 |
+
#: framework/premium/extensions/shortcuts/customizer.php:445,
|
1118 |
+
#: framework/premium/extensions/shortcuts/customizer.php:501,
|
1119 |
+
#: framework/premium/extensions/shortcuts/customizer.php:638,
|
1120 |
+
#: framework/premium/extensions/shortcuts/customizer.php:760,
|
1121 |
#: framework/premium/extensions/woocommerce-extra/extension.php:177,
|
1122 |
#: framework/premium/extensions/woocommerce-extra/extension.php:198,
|
1123 |
#: framework/premium/extensions/woocommerce-extra/floating-cart.php:48,
|
1136 |
msgid "Tablet"
|
1137 |
msgstr ""
|
1138 |
|
1139 |
+
#: framework/extensions/newsletter-subscribe/customizer.php:141,
|
1140 |
#: framework/extensions/trending/customizer.php:281,
|
1141 |
#: framework/features/header/header-options.php:105,
|
1142 |
#: framework/features/header/header-options.php:187,
|
1144 |
#: framework/premium/extensions/shortcuts/customizer.php:123,
|
1145 |
#: framework/premium/extensions/shortcuts/customizer.php:185,
|
1146 |
#: framework/premium/extensions/shortcuts/customizer.php:241,
|
1147 |
+
#: framework/premium/extensions/shortcuts/customizer.php:332,
|
1148 |
+
#: framework/premium/extensions/shortcuts/customizer.php:390,
|
1149 |
+
#: framework/premium/extensions/shortcuts/customizer.php:446,
|
1150 |
+
#: framework/premium/extensions/shortcuts/customizer.php:502,
|
1151 |
+
#: framework/premium/extensions/shortcuts/customizer.php:639,
|
1152 |
+
#: framework/premium/extensions/shortcuts/customizer.php:761,
|
1153 |
#: framework/premium/extensions/woocommerce-extra/extension.php:178,
|
1154 |
#: framework/premium/extensions/woocommerce-extra/extension.php:199,
|
1155 |
#: framework/premium/extensions/woocommerce-extra/floating-cart.php:49,
|
1170 |
msgid "Mobile"
|
1171 |
msgstr ""
|
1172 |
|
1173 |
+
#: framework/extensions/newsletter-subscribe/customizer.php:154
|
1174 |
msgid "Title Color"
|
1175 |
msgstr ""
|
1176 |
|
1177 |
+
#: framework/extensions/newsletter-subscribe/customizer.php:175
|
1178 |
msgid "Description Color"
|
1179 |
msgstr ""
|
1180 |
|
1181 |
+
#: framework/extensions/newsletter-subscribe/customizer.php:206,
|
1182 |
#: framework/features/header/items/account/options.php:1023,
|
1183 |
#: framework/premium/features/premium-header/items/search-input/options.php:194,
|
1184 |
#: framework/premium/features/premium-header/items/search-input/options.php:223,
|
1187 |
msgid "Input Font Color"
|
1188 |
msgstr ""
|
1189 |
|
1190 |
+
#: framework/extensions/newsletter-subscribe/customizer.php:230,
|
1191 |
+
#: framework/extensions/newsletter-subscribe/customizer.php:261,
|
1192 |
+
#: framework/extensions/newsletter-subscribe/customizer.php:297,
|
1193 |
#: framework/features/header/items/account/options.php:1045,
|
1194 |
#: framework/features/header/items/account/options.php:1075,
|
1195 |
#: framework/features/header/items/account/options.php:1111,
|
1208 |
msgid "Focus"
|
1209 |
msgstr ""
|
1210 |
|
1211 |
+
#: framework/extensions/newsletter-subscribe/customizer.php:238,
|
1212 |
#: framework/features/header/items/account/options.php:1053,
|
1213 |
#: framework/premium/features/premium-header/items/search-input/options.php:454,
|
1214 |
#: framework/premium/features/premium-header/items/search-input/options.php:483,
|
1217 |
msgid "Input Border Color"
|
1218 |
msgstr ""
|
1219 |
|
1220 |
+
#: framework/extensions/newsletter-subscribe/customizer.php:275,
|
1221 |
#: framework/features/header/items/account/options.php:1089,
|
1222 |
#: framework/premium/features/premium-header/items/search-input/options.php:590,
|
1223 |
#: framework/premium/features/premium-header/items/search-input/options.php:618,
|
1226 |
msgid "Input Background Color"
|
1227 |
msgstr ""
|
1228 |
|
1229 |
+
#: framework/extensions/newsletter-subscribe/customizer.php:307,
|
1230 |
#: framework/premium/extensions/post-types-extra/includes/filtering/customizer.php:220
|
1231 |
msgid "Button Color"
|
1232 |
msgstr ""
|
1233 |
|
1234 |
+
#: framework/extensions/newsletter-subscribe/customizer.php:336,
|
1235 |
#: framework/extensions/trending/customizer.php:380,
|
1236 |
+
#: framework/premium/extensions/shortcuts/customizer.php:956
|
1237 |
msgid "Container Background"
|
1238 |
msgstr ""
|
1239 |
|
1240 |
+
#: framework/extensions/newsletter-subscribe/customizer.php:352
|
1241 |
msgid "Container Border"
|
1242 |
msgstr ""
|
1243 |
|
1244 |
+
#: framework/extensions/newsletter-subscribe/customizer.php:387,
|
1245 |
#: framework/extensions/trending/customizer.php:396
|
1246 |
msgid "Container Inner Spacing"
|
1247 |
msgstr ""
|
1248 |
|
1249 |
+
#: framework/extensions/newsletter-subscribe/customizer.php:402,
|
1250 |
+
#: framework/premium/extensions/shortcuts/customizer.php:977
|
1251 |
msgid "Container Border Radius"
|
1252 |
msgstr ""
|
1253 |
|
1255 |
msgid "Disable Subscribe Form"
|
1256 |
msgstr ""
|
1257 |
|
1258 |
+
#: framework/extensions/newsletter-subscribe/helpers.php:143
|
1259 |
msgid "First name"
|
1260 |
msgstr ""
|
1261 |
|
1262 |
+
#: framework/extensions/newsletter-subscribe/helpers.php:146
|
1263 |
msgid "Email address"
|
1264 |
msgstr ""
|
1265 |
|
1723 |
|
1724 |
#: framework/extensions/trending/customizer.php:312,
|
1725 |
#: framework/features/header/header-options.php:158,
|
1726 |
+
#: framework/premium/extensions/shortcuts/customizer.php:766,
|
1727 |
#: framework/premium/features/content-blocks/options/archive.php:186,
|
1728 |
#: framework/premium/features/content-blocks/options/header.php:142,
|
1729 |
#: framework/premium/features/content-blocks/options/hook.php:236,
|
2005 |
|
2006 |
#: framework/premium/features/premium-header.php:236,
|
2007 |
#: framework/premium/extensions/mega-menu/options.php:475,
|
2008 |
+
#: framework/premium/extensions/shortcuts/customizer.php:662,
|
2009 |
#: framework/features/header/items/account/options.php:318,
|
2010 |
#: framework/features/header/items/account/options.php:615,
|
2011 |
#: framework/premium/extensions/woocommerce-extra/header-items/wish-list/options.php:130
|
2014 |
|
2015 |
#: framework/premium/features/premium-header.php:237,
|
2016 |
#: framework/premium/extensions/mega-menu/options.php:476,
|
2017 |
+
#: framework/premium/extensions/shortcuts/customizer.php:663,
|
2018 |
#: framework/features/header/items/account/options.php:319,
|
2019 |
#: framework/features/header/items/account/options.php:616,
|
2020 |
#: framework/premium/extensions/woocommerce-extra/header-items/wish-list/options.php:131
|
2028 |
|
2029 |
#: framework/extensions/newsletter-subscribe/ct-newsletter-subscribe/options.php:30,
|
2030 |
#: framework/premium/extensions/mega-menu/options.php:503,
|
2031 |
+
#: framework/premium/extensions/shortcuts/customizer.php:892,
|
2032 |
#: framework/extensions/widgets/widgets/ct-contact-info/options.php:24,
|
2033 |
#: framework/extensions/widgets/widgets/ct-quote/options.php:31,
|
2034 |
#: framework/features/header/items/account/options.php:336
|
2342 |
msgstr ""
|
2343 |
|
2344 |
#: framework/premium/extensions/mega-menu/options.php:441,
|
2345 |
+
#: framework/premium/extensions/shortcuts/customizer.php:675,
|
2346 |
#: framework/features/header/items/account/options.php:258,
|
2347 |
#: framework/features/header/items/account/options.php:499,
|
2348 |
#: framework/features/header/items/account/options.php:555,
|
2361 |
msgstr ""
|
2362 |
|
2363 |
#: framework/premium/extensions/mega-menu/options.php:544,
|
2364 |
+
#: framework/premium/extensions/shortcuts/customizer.php:886,
|
2365 |
#: framework/premium/extensions/woocommerce-extra/offcanvas-filter.php:346,
|
2366 |
#: framework/features/header/items/account/options.php:1182
|
2367 |
msgid "Background"
|
2403 |
msgstr ""
|
2404 |
|
2405 |
#: framework/premium/extensions/mega-menu/options.php:644,
|
2406 |
+
#: framework/premium/extensions/shortcuts/customizer.php:903,
|
2407 |
#: framework/premium/features/premium-header/items/language-switcher/options.php:441,
|
2408 |
#: framework/premium/features/premium-header/items/search-input/options.php:836
|
2409 |
msgid "Items Divider"
|
2528 |
#. translators: This is a brand name. Preferably to not be translated
|
2529 |
#. translators: This is a brand name. Preferably to not be translated
|
2530 |
#: framework/premium/extensions/shortcuts/config.php:5,
|
2531 |
+
#: framework/premium/extensions/shortcuts/customizer.php:527
|
2532 |
msgctxt "Extension Brand Name"
|
2533 |
msgid "Shortcuts Bar"
|
2534 |
msgstr ""
|
2541 |
|
2542 |
#: framework/premium/extensions/shortcuts/customizer.php:12,
|
2543 |
#: framework/premium/extensions/shortcuts/customizer.php:35,
|
2544 |
+
#: framework/premium/extensions/shortcuts/customizer.php:566,
|
2545 |
#: framework/premium/extensions/shortcuts/views/bar.php:13,
|
2546 |
#: framework/premium/extensions/shortcuts/views/bar.php:43
|
2547 |
msgid "Home"
|
2549 |
|
2550 |
#: framework/premium/extensions/shortcuts/customizer.php:68,
|
2551 |
#: framework/premium/extensions/shortcuts/customizer.php:91,
|
2552 |
+
#: framework/premium/extensions/shortcuts/customizer.php:575,
|
2553 |
#: framework/extensions/widgets/widgets/ct-contact-info/options.php:128,
|
2554 |
#: framework/premium/extensions/shortcuts/views/bar.php:22,
|
2555 |
#: framework/premium/extensions/shortcuts/views/bar.php:44,
|
2563 |
msgid "Scroll Top"
|
2564 |
msgstr ""
|
2565 |
|
2566 |
+
#: framework/premium/extensions/shortcuts/customizer.php:296,
|
2567 |
#: framework/extensions/widgets/widgets/ct-advertisement/options.php:83,
|
2568 |
#: framework/extensions/widgets/widgets/ct-contact-info/options.php:539
|
2569 |
msgid "Open link in new tab"
|
2570 |
msgstr ""
|
2571 |
|
2572 |
+
#: framework/premium/extensions/shortcuts/customizer.php:303
|
2573 |
msgid "Set link to nofollow"
|
2574 |
msgstr ""
|
2575 |
|
2576 |
+
#: framework/premium/extensions/shortcuts/customizer.php:309
|
2577 |
msgid "Custom class"
|
2578 |
msgstr ""
|
2579 |
|
2580 |
+
#: framework/premium/extensions/shortcuts/customizer.php:341,
|
2581 |
+
#: framework/premium/extensions/shortcuts/customizer.php:364,
|
2582 |
#: framework/premium/extensions/shortcuts/views/bar.php:47
|
2583 |
msgid "Cart"
|
2584 |
msgstr ""
|
2585 |
|
2586 |
+
#: framework/premium/extensions/shortcuts/customizer.php:397,
|
2587 |
+
#: framework/premium/extensions/shortcuts/customizer.php:420
|
2588 |
msgid "Shop"
|
2589 |
msgstr ""
|
2590 |
|
2591 |
+
#: framework/premium/extensions/shortcuts/customizer.php:453,
|
2592 |
+
#: framework/premium/extensions/shortcuts/customizer.php:476,
|
2593 |
#: framework/premium/extensions/woocommerce-extra/readme.php:70,
|
2594 |
#: framework/premium/extensions/woocommerce-extra/header-items/wish-list/config.php:4,
|
2595 |
#: framework/premium/extensions/woocommerce-extra/header-items/wish-list/options.php:141,
|
2598 |
msgid "Wishlist"
|
2599 |
msgstr ""
|
2600 |
|
2601 |
+
#: framework/premium/extensions/shortcuts/customizer.php:541,
|
2602 |
#: framework/premium/features/content-blocks/admin-ui.php:196
|
2603 |
msgid "Type"
|
2604 |
msgstr ""
|
2605 |
|
2606 |
+
#: framework/premium/extensions/shortcuts/customizer.php:560
|
2607 |
msgid "Shortcuts"
|
2608 |
msgstr ""
|
2609 |
|
2610 |
+
#: framework/premium/extensions/shortcuts/customizer.php:615,
|
2611 |
#: framework/features/header/items/account/options.php:275,
|
2612 |
#: framework/features/header/items/account/options.php:572,
|
2613 |
#: framework/premium/extensions/woocommerce-extra/header-items/wish-list/options.php:92
|
2614 |
msgid "Label Visibility"
|
2615 |
msgstr ""
|
2616 |
|
2617 |
+
#: framework/premium/extensions/shortcuts/customizer.php:655,
|
2618 |
#: framework/features/header/items/account/options.php:311,
|
2619 |
#: framework/features/header/items/account/options.php:608,
|
2620 |
#: framework/premium/extensions/woocommerce-extra/header-items/wish-list/options.php:123
|
2621 |
msgid "Label Position"
|
2622 |
msgstr ""
|
2623 |
|
2624 |
+
#: framework/premium/extensions/shortcuts/customizer.php:664,
|
2625 |
#: framework/premium/extensions/woocommerce-extra/floating-cart.php:25,
|
2626 |
#: framework/premium/features/content-blocks/hooks-manager.php:445,
|
2627 |
#: framework/features/header/items/account/options.php:320,
|
2631 |
msgid "Bottom"
|
2632 |
msgstr ""
|
2633 |
|
2634 |
+
#: framework/premium/extensions/shortcuts/customizer.php:685
|
2635 |
msgid "Container Height"
|
2636 |
msgstr ""
|
2637 |
|
2638 |
+
#: framework/premium/extensions/shortcuts/customizer.php:700
|
2639 |
msgid "Container Max Width"
|
2640 |
msgstr ""
|
2641 |
|
2642 |
+
#: framework/premium/extensions/shortcuts/customizer.php:724
|
2643 |
msgid "Scroll Interaction"
|
2644 |
msgstr ""
|
2645 |
|
2646 |
+
#: framework/premium/extensions/shortcuts/customizer.php:729,
|
2647 |
#: framework/premium/features/content-blocks/admin-ui.php:225,
|
2648 |
#: framework/extensions/widgets/widgets/ct-contact-info/options.php:510,
|
2649 |
#: framework/extensions/widgets/widgets/ct-socials/options.php:113,
|
2657 |
msgid "None"
|
2658 |
msgstr ""
|
2659 |
|
2660 |
+
#: framework/premium/extensions/shortcuts/customizer.php:730
|
2661 |
msgid "Hide"
|
2662 |
msgstr ""
|
2663 |
|
2664 |
+
#: framework/premium/extensions/shortcuts/customizer.php:772
|
2665 |
msgid "Shortcuts Bar Display Conditions"
|
2666 |
msgstr ""
|
2667 |
|
2668 |
+
#: framework/premium/extensions/shortcuts/customizer.php:773
|
2669 |
msgid "Add one or more conditions to display the shortcuts bar."
|
2670 |
msgstr ""
|
2671 |
|
2672 |
+
#: framework/premium/extensions/shortcuts/customizer.php:787,
|
2673 |
#: framework/premium/extensions/post-types-extra/includes/filtering/customizer.php:173,
|
2674 |
#: framework/premium/features/premium-header/items/contacts/options.php:410,
|
2675 |
#: framework/premium/features/premium-header/items/language-switcher/options.php:192,
|
2677 |
msgid "Font"
|
2678 |
msgstr ""
|
2679 |
|
2680 |
+
#: framework/premium/extensions/shortcuts/customizer.php:829,
|
2681 |
#: framework/premium/features/premium-header/items/contacts/options.php:590,
|
2682 |
#: framework/premium/features/premium-header/items/contacts/options.php:619,
|
2683 |
#: framework/premium/features/premium-header/items/contacts/options.php:650,
|
2685 |
msgid "Icons Color"
|
2686 |
msgstr ""
|
2687 |
|
2688 |
+
#: framework/premium/extensions/shortcuts/customizer.php:868
|
2689 |
msgid "Cart Badge Color"
|
2690 |
msgstr ""
|
2691 |
|
2692 |
+
#: framework/premium/extensions/shortcuts/customizer.php:923
|
2693 |
msgid "Items Divider Height"
|
2694 |
msgstr ""
|
2695 |
|
2696 |
+
#: framework/premium/extensions/shortcuts/customizer.php:937,
|
2697 |
#: framework/premium/extensions/woocommerce-extra/floating-cart.php:123,
|
2698 |
#: framework/premium/features/content-blocks/options/popup.php:387,
|
2699 |
#: framework/premium/features/premium-header/items/language-switcher/options.php:455
|
4450 |
msgid "Read Time"
|
4451 |
msgstr ""
|
4452 |
|
4453 |
+
#: framework/premium/extensions/post-types-extra/includes/estimated-read-time.php:130
|
4454 |
msgid "%s min"
|
4455 |
msgid_plural "%s mins"
|
4456 |
msgstr[0] ""
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Requires PHP: 7.0
|
|
5 |
Tested up to: 6.1
|
6 |
License: GPLv2 or later
|
7 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
8 |
-
Stable tag: 1.8.
|
9 |
|
10 |
== Description ==
|
11 |
|
@@ -23,6 +23,10 @@ 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.8.59: 2022-11-24
|
27 |
- Improvement: Better handle the integration with Nextend Social plugin and account modal
|
28 |
|
5 |
Tested up to: 6.1
|
6 |
License: GPLv2 or later
|
7 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
8 |
+
Stable tag: 1.8.60
|
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.8.60: 2022-12-08
|
27 |
+
- Improvement: Correctly output sticky row background image on responsive devices
|
28 |
+
- Improvement: Better calculation for sticky shrink on responsive devices
|
29 |
+
|
30 |
1.8.59: 2022-11-24
|
31 |
- Improvement: Better handle the integration with Nextend Social plugin and account modal
|
32 |
|
static/bundle/account-lazy.min.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/**
|
2 |
-
* - v1.8.
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|
1 |
/**
|
2 |
+
* - v1.8.60
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|
static/bundle/dashboard.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
/*! For license information please see dashboard.js.LICENSE.txt */
|
2 |
-
!function(){var e={184:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)&&n.length){var i=o.apply(null,n);i&&e.push(i)}else if("object"===a)for(var c in n)r.call(n,c)&&n[c]&&e.push(c)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},162:function(e,t,n){var r;void 0===(r=function(){"use strict";function t(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 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 a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n.g&&n.g.global===n.g?n.g:void 0,i=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype?function(e,n,i){var c=a.URL||a.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,i):o(l,l.target="_blank")):(l.href=c.createObjectURL(e),setTimeout((function(){c.revokeObjectURL(l.href)}),4e4),setTimeout((function(){o(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,n,a){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,a),n);else if(r(e))t(e,n,a);else{var i=document.createElement("a");i.href=e,i.target="_blank",setTimeout((function(){o(i)}))}}: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 i="application/octet-stream"===e.type,c=/constructor/i.test(a.HTMLElement)||a.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||i&&c)&&"object"==typeof FileReader){var s=new FileReader;s.onloadend=function(){var e=s.result;e=l?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=e:location=e,o=null},s.readAsDataURL(e)}else{var u=a.URL||a.webkitURL,m=u.createObjectURL(e);o?o.location=m:location.href=m,o=null,setTimeout((function(){u.revokeObjectURL(m)}),4e4)}});a.saveAs=i.saveAs=i,e.exports=i}.apply(t,[]))||(e.exports=r)},172:function(e,t,n){var r,o,a=n(760),i=n(529),c=(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 l(e){return setTimeout(e,0)}e.exports=function(e,t){var n=document,o="string"==typeof e?n.querySelector(e):e,s=i({returnFocusOnDeactivate:!0,escapeDeactivates:!0},t),u={firstTabbableNode:null,lastTabbableNode:null,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1},m={activate:function(e){if(!u.active){E(),u.active=!0,u.paused=!1,u.nodeFocusedBeforeActivation=n.activeElement;var t=e&&e.onActivate?e.onActivate:s.onActivate;return t&&t(),d(),m}},deactivate:p,pause:function(){!u.paused&&u.active&&(u.paused=!0,f())},unpause:function(){u.paused&&u.active&&(u.paused=!1,E(),d())}};return m;function p(e){if(u.active){clearTimeout(r),f(),u.active=!1,u.paused=!1,c.deactivateTrap(m);var t=e&&void 0!==e.onDeactivate?e.onDeactivate:s.onDeactivate;return t&&t(),(e&&void 0!==e.returnFocus?e.returnFocus:s.returnFocusOnDeactivate)&&l((function(){var e;w((e=u.nodeFocusedBeforeActivation,y("setReturnFocus")||e))})),m}}function d(){if(u.active)return c.activateTrap(m),r=l((function(){w(b())})),n.addEventListener("focusin",v,!0),n.addEventListener("mousedown",h,{capture:!0,passive:!1}),n.addEventListener("touchstart",h,{capture:!0,passive:!1}),n.addEventListener("click",_,{capture:!0,passive:!1}),n.addEventListener("keydown",g,{capture:!0,passive:!1}),m}function f(){if(u.active)return n.removeEventListener("focusin",v,!0),n.removeEventListener("mousedown",h,!0),n.removeEventListener("touchstart",h,!0),n.removeEventListener("click",_,!0),n.removeEventListener("keydown",g,!0),m}function y(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!==y("initialFocus")?y("initialFocus"):o.contains(n.activeElement)?n.activeElement:u.firstTabbableNode||y("fallbackFocus")))throw new Error("Your focus-trap needs to have at least one focusable element");return e}function h(e){o.contains(e.target)||(s.clickOutsideDeactivates?p({returnFocus:!a.isFocusable(e.target)}):s.allowOutsideClick&&s.allowOutsideClick(e)||e.preventDefault())}function v(e){o.contains(e.target)||e.target instanceof Document||(e.stopImmediatePropagation(),w(u.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(E(),e.shiftKey&&e.target===u.firstTabbableNode)return e.preventDefault(),void w(u.lastTabbableNode);e.shiftKey||e.target!==u.lastTabbableNode||(e.preventDefault(),w(u.firstTabbableNode))}(e)}function _(e){s.clickOutsideDeactivates||o.contains(e.target)||s.allowOutsideClick&&s.allowOutsideClick(e)||(e.preventDefault(),e.stopImmediatePropagation())}function E(){var e=a(o);u.firstTabbableNode=e[0]||b(),u.lastTabbableNode=e[e.length-1]||b()}function w(e){e!==n.activeElement&&(e&&e.focus?(e.focus(),u.mostRecentlyFocusedNode=e,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(e)&&e.select()):w(b()))}}},703:function(e,t,n){"use strict";var r=n(414);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var c=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 c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},697:function(e,t,n){e.exports=n(703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},760:function(e){var t=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],n=t.join(","),r="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;function o(e,t){t=t||{};var o,i,c,u=[],m=[],p=e.querySelectorAll(n);for(t.includeContainer&&r.call(e,n)&&(p=Array.prototype.slice.apply(p)).unshift(e),o=0;o<p.length;o++)a(i=p[o])&&(0===(c=l(i))?u.push(i):m.push({documentOrder:o,tabIndex:c,node:i}));return m.sort(s).map((function(e){return e.node})).concat(u)}function a(e){return!(!i(e)||function(e){return function(e){return u(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)||l(e)<0)}function i(e){return!(e.disabled||function(e){return u(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!==r.call(e,n)&&a(e)},o.isFocusable=function(e){if(!e)throw new Error("No node provided");return!1!==r.call(e,c)&&i(e)};var c=t.concat("iframe").join(",");function l(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 u(e){return"INPUT"===e.tagName}e.exports=o},529:function(e){e.exports=function(){for(var e={},n=0;n<arguments.length;n++){var r=arguments[n];for(var o in r)t.call(r,o)&&(e[o]=r[o])}return e};var t=Object.prototype.hasOwnProperty}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=window.wp.element,t=window.ctEvents,r=n.n(t),o=window.wp.i18n,a=n(184),i=n.n(a),c=window.React,l=n.n(c);function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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}n(697);var m=function(e){return e.initialState,e.getInitialState,e.refs,e.getRefs,e.didMount,e.didUpdate,e.willUnmount,e.getSnapshotBeforeUpdate,e.shouldUpdate,e.render,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"])},p=function(e){function t(){var n,r;s(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=u(this,e.call.apply(e,[this].concat(a))),d.call(r),u(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().Component);p.defaultProps={getInitialState:function(){},getRefs:function(){return{}}};var d=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)}},f=p,y=function(t){var n=t.children,r=t.container,o=void 0===r?document.body:r,a=t.type,i=void 0===a?"reach-portal":a;return(0,e.createElement)(f,{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(i),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(t){var r=t.refs.node;return r?(0,e.createPortal)(n,r):null}})},b=function(e,t){return function(n){if(e&&e(n),!n.defaultPrevented)return t(n)}},h=n(172),v=n.n(h);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},g.apply(this,arguments)}function _(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var E=function(){},w=function(){},k=function(e){var t=e.refs;t.trap.deactivate(),t.disposeAriaHider()},O=React.createContext(),x=React.forwardRef((function(t,n){var r=t.container,o=t.isOpen,a=void 0===o||o,i=t.onDismiss,c=void 0===i?E:i,l=t.initialFocusRef,s=t.onClick,u=t.onKeyDown,m=_(t,["container","isOpen","onDismiss","initialFocusRef","onClick","onKeyDown"]);return(0,e.createElement)(f,{didMount:w},a?(0,e.createElement)(y,{container:r,"data-reach-dialog-wrapper":!0},(0,e.createElement)(f,{refs:{overlayNode:null,contentNode:null},didMount:function(e){!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=v()(e.overlayNode,{initialFocus:t?function(){return t.current}:void 0,fallbackFocus:e.contentNode,escapeDeactivates:!1,clickOutsideDeactivates:!1})}(e.refs,l)},willUnmount:k},(function(t){var r=t.refs;return(0,e.createElement)(O.Provider,{value:function(e){return r.contentNode=e}},(0,e.createElement)("div",g({"data-reach-dialog-overlay":!0,onClick:b(s,(function(e){e.stopPropagation(),c()})),onKeyDown:b(u,(function(e){"Escape"===e.key&&(e.stopPropagation(),c())})),ref:function(e){r.overlayNode=e,n&&n(e)}},m)))}))):null)}));x.propTypes={initialFocusRef:function(){}};var S=function(e){return e.stopPropagation()},C=React.forwardRef((function(t,n){var r=t.onClick,o=(t.onKeyDown,_(t,["onClick","onKeyDown"]));return(0,e.createElement)(O.Consumer,null,(function(t){return(0,e.createElement)("div",g({"aria-modal":"true","data-reach-dialog-content":!0,tabIndex:"-1",onClick:b(r,S),ref:function(e){t(e),n&&n(e)}},o))}))})),j=window.blocksyOptions,D=function(e){return!!e},A=function(t){var n=t.items,r=t.isVisible,o=void 0===r?D:r,a=t.render,c=t.className,l=t.onDismiss;return(0,e.createElement)(j.Transition,{items:n,onStart:function(){return document.body.classList[o(n)?"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(t){return o(t)&&function(n){return(0,e.createElement)(x,{style:{opacity:n.opacity},container:document.querySelector("#wpbody"),onDismiss:function(){return l()}},(0,e.createElement)(C,{className:i()("ct-admin-modal",c),style:{transform:"translate3d(0px, ".concat(n.y,"px, 0px)")}},(0,e.createElement)("button",{className:"close-button",onClick:function(){return l()}},"×"),a(t,n)))}}))};function P(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 M=function(t){var n,r,o=(n=(0,e.useState)(!1),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}}(n,r)||function(e,t){if(e){if("string"==typeof e)return P(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)?P(e,t):void 0}}(n,r)||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.")}()),a=o[0],i=o[1];return[function(){return i(!0)},(0,e.createElement)(A,{items:a,onDismiss:function(){return i(!1)},render:function(){return(0,e.createElement)("div",{className:"ct-modal-content",dangerouslySetInnerHTML:{__html:t.readme}})}})]},N=window.ctDashboardLocalizations.DashboardContext,L=(N.Provider,N.Consumer,N);function z(e,t,n,r,o,a,i){try{var c=e[a](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,o)}function T(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){z(a,r,o,i,c,"next",e)}function c(e){z(a,r,o,i,c,"throw",e)}i(void 0)}))}}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)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return B(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)?B(e,t):void 0}}(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 R=function(){return ctDashboardLocalizations.plugin_data.hide_support_section?null:(0,e.createElement)("div",{className:"ct-support-container"},(0,e.createElement)("h2",null,(0,o.__)("Need help or advice?","blocksy-companion")),(0,e.createElement)("p",null,(0,o.__)("Got a question or need help with the theme? You can always submit a support ticket or ask for help in our friendly Facebook community.","blocksy-companion")),(0,e.createElement)("a",{href:ctDashboardLocalizations.support_url,className:"ct-button","data-hover":"blue",target:"_blank"},(0,o.__)("Submit a Support Ticket","blocksy-companion")),(0,e.createElement)("a",{href:"https://www.facebook.com/groups/blocksy.community",className:"ct-button","data-hover":"blue",target:"_blank"},(0,o.__)("Join Facebook Community","blocksy-companion")))};function F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function U(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?F(Object(n),!0).forEach((function(t){V(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function V(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H(e,t,n,r,o,a,i){try{var c=e[a](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,o)}function q(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}}(e,t)||function(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}}(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 W=null,Z=function(t){var n=t.extension,r=t.onExtsSync,a=q(M(n),2),c=a[0],l=a[1],s=q(function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},r=I((0,e.useState)(!1),2),a=r[0],i=r[1],c=I((0,e.useState)(!1),2),l=c[0],s=c[1],u=(0,e.useContext)(L),m=(u.Link,u.history),p=ctDashboardLocalizations.plugin_data.is_pro,d=function(){var e=T(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(p||!t.config.pro){e.next=3;break}return s(!0),e.abrupt("return");case 3:return(r=new FormData).append("ext",t.name),r.append("action",t.__object?"blocksy_extension_deactivate":"blocksy_extension_activate"),i(!0),e.prev=7,e.next=10,fetch(ctDashboardLocalizations.ajax_url,{method:"POST",body:r});case 10:t.config.require_refresh&&location.reload(),n(),e.next=16;break;case 14:e.prev=14,e.t0=e.catch(7);case 16:i(!1);case 17:case"end":return e.stop()}}),e,null,[[7,14]])})));return function(){return e.apply(this,arguments)}}();return[a,d,!p&&t.config.pro?(0,e.createElement)(A,{items:l,className:"ct-onboarding-modal",onDismiss:function(){return s(!1)},render:function(){return(0,e.createElement)("div",{className:"ct-modal-content"},(0,e.createElement)("svg",{width:"55",height:"55",viewBox:"0 0 40.5 48.3"},(0,e.createElement)("path",{fill:"#2d82c8",d:"M33.4 29.4l7.1 12.3-7.4.6-4 6-7.3-12.9"}),(0,e.createElement)("path",{d:"M33.5 29.6L26 42.7l-4.2-7.3 11.6-6 .1.2zM0 41.7l7.5.6 3.9 6 7.2-12.4-11-7.3L0 41.7z",fill:"#2271b1"}),(0,e.createElement)("path",{d:"M39.5 18.7c0 1.6-2.4 2.8-2.7 4.3-.4 1.5 1 3.8.2 5.1-.8 1.3-3.4 1.2-4.5 2.3-1.1 1.1-1 3.7-2.3 4.5-1.3.8-3.6-.6-5.1-.2-1.5.4-2.7 2.7-4.3 2.7S18 35 16.5 34.7c-1.5-.4-3.8 1-5.1.2s-1.2-3.4-2.3-4.5-3.7-1-4.5-2.3.6-3.6.2-5.1-2.7-2.7-2.7-4.3 2.4-2.8 2.7-4.3c.4-1.5-1-3.8-.2-5.1C5.4 8 8.1 8.1 9.1 7c1.1-1.1 1-3.7 2.3-4.5s3.6.6 5.1.2C18 2.4 19.2 0 20.8 0c1.6 0 2.8 2.4 4.3 2.7 1.5.4 3.8-1 5.1-.2 1.3.8 1.2 3.4 2.3 4.5 1.1 1.1 3.7 1 4.5 2.3s-.6 3.6-.2 5.1c.3 1.5 2.7 2.7 2.7 4.3z",fill:"#599fd9"}),(0,e.createElement)("path",{d:"M23.6 7c-6.4-1.5-12.9 2.5-14.4 8.9-.7 3.1-.2 6.3 1.5 9.1 1.7 2.7 4.3 4.6 7.4 5.4.9.2 1.9.3 2.8.3 2.2 0 4.4-.6 6.3-1.8 2.7-1.7 4.6-4.3 5.4-7.5C34 15 30 8.5 23.6 7zm7 14c-.6 2.6-2.2 4.8-4.5 6.2-2.3 1.4-5 1.8-7.6 1.2-2.6-.6-4.8-2.2-6.2-4.5-1.4-2.3-1.8-5-1.2-7.6.6-2.6 2.2-4.8 4.5-6.2 1.6-1 3.4-1.5 5.2-1.5.8 0 1.5.1 2.3.3 5.4 1.3 8.7 6.7 7.5 12.1zm-8.2-4.5l3.7.5-2.7 2.7.7 3.7-3.4-1.8-3.3 1.8.6-3.7-2.7-2.7 3.8-.5 1.6-3.4 1.7 3.4z",fill:"#fff"})),(0,e.createElement)("h2",{className:"ct-modal-title"},"This is a Pro extension"),(0,e.createElement)("p",null,(0,o.__)("Upgrade to the Pro version and get instant access to all premium extensions, features and future updates.","blocksy-companion")),(0,e.createElement)("div",{className:"ct-modal-actions has-divider","data-buttons":"2"},(0,e.createElement)("a",{onClick:function(e){e.preventDefault(),s(!1),setTimeout((function(){m.navigate("/pro")}),300)},className:"button"},(0,o.__)("Free vs Pro","blocksy")),(0,e.createElement)("a",{href:"https://creativethemes.com/blocksy/pricing/",target:"_blank",className:"button button-primary"},(0,o.__)("Upgrade Now","blocksy-companion"))))}}):null]}(n,(function(){r()})),3),u=s[0],m=s[1],p=s[2];return(0,e.createElement)("li",{className:i()({active:!!n.__object})},(0,e.createElement)("h4",{className:"ct-extension-title"},n.config.name,u&&(0,e.createElement)("svg",{width:"15",height:"15",viewBox:"0 0 100 100"},(0,e.createElement)("g",{transform:"translate(50,50)"},(0,e.createElement)("g",{transform:"scale(1)"},(0,e.createElement)("circle",{cx:"0",cy:"0",r:"50",fill:"#687c93"}),(0,e.createElement)("circle",{cx:"0",cy:"-26",r:"12",fill:"#ffffff",transform:"rotate(161.634)"},(0,e.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&&(0,e.createElement)("div",{className:"ct-extension-description"},n.config.description),(0,e.createElement)("div",{className:"ct-extension-actions"},(0,e.createElement)("button",{className:i()(n.__object?"ct-button":"ct-button-primary"),"data-hover":"white",disabled:u,onClick:function(){m()}},n.__object?(0,o.__)("Deactivate","blocksy-companion"):(0,o.__)("Activate","blocksy-companion")),n.readme&&(0,e.createElement)("button",{onClick:function(){return c()},className:"ct-minimal-button ct-instruction"},(0,e.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 24 24"},(0,e.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"}))),n.__object&&n.config&&n.config.buttons&&n.config.buttons.map((function(t,n){var r=t.text,o=t.url;return(0,e.createElement)("a",{href:o,className:"ct-button ct-config-btn",dataButton:"white"},r)}))),l,p)},$=function(){var t=q((0,e.useState)(!W),2),n=t[0],a=t[1],c=q((0,e.useState)(W||[]),2),l=c[0],s=c[1],u=q((0,e.useState)(!1),2),m=u[0],p=u[1],d=q((0,e.useState)("free"),2),f=d[0],y=d[1],b=function(){var e,t=(e=regeneratorRuntime.mark((function e(){var t,n,r,o,i,c,l,u,m,d=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=d.length>0&&void 0!==d[0]?d[0]:{},n=U({verbose:!1,extension:null,extAction:null},t),r=n.verbose,o=n.extension,i=n.extAction,r&&a(!0),p(!0),e.next=6,fetch("".concat(wp.ajax.settings.url,"?action=blocksy_extensions_status"),U({method:"POST"},o&&i?{body:JSON.stringify({extension:o,extAction:i})}:{}));case 6:if(200===(c=e.sent).status){e.next=9;break}return e.abrupt("return");case 9:return e.next=11,c.json();case 11:if(l=e.sent,u=l.success,m=l.data,u){e.next=16;break}return e.abrupt("return");case 16:if(p(!1),a(!1),s(m),W=m,!o){e.next=22;break}return e.abrupt("return",m[o]);case 22:return e.abrupt("return",m);case 23:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){H(a,r,o,i,c,"next",e)}function c(e){H(a,r,o,i,c,"throw",e)}i(void 0)}))});return function(){return t.apply(this,arguments)}}();(0,e.useEffect)((function(){b({verbose:!W});var e=function(){b()};return r().on("blocksy_exts_sync_exts",e),function(){r().off("blocksy_exts_sync_exts",e)}}),[]);var h=(0,e.useMemo)((function(){return Object.values(l).map((function(e,t){return U(U({},e),{},{name:Object.keys(l)[t]})})).find((function(e){return e.config.pro}))}),[l]),v=(0,e.useMemo)((function(){return Object.values(l).map((function(e,t){return U(U({},e),{},{name:Object.keys(l)[t]})})).filter((function(e){return!e.config.hidden})).filter((function(e){var t=e.config;return"free"===f?!t.pro:t.pro}))}),[f,l]);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"ct-extensions-container"},(0,e.createElement)(j.Transition,{items:n,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(t){return t?function(t){return(0,e.createElement)(j.animated.p,{style:t,className:"ct-loading-text"},(0,e.createElement)("span",null),(0,o.__)("Loading Extensions Status...","blocksy-companion"))}:function(t){return(0,e.createElement)(j.animated.div,{style:t},(0,e.createElement)(e.Fragment,null,h&&(0,e.createElement)("ul",{className:"ct-extensions-sourse"},["free","pro"].map((function(t){return(0,e.createElement)("li",{key:t,onClick:function(){return y(t)},className:i()({active:t===f})},{free:(0,o.__)("Free Extensions","blocksy-companion"),pro:(0,o.__)("Pro Extensions","blocksy-companion")}[t])}))),(0,e.createElement)("ul",{className:i()("ct-extensions-list",{"is-pro":"pro"===f})},v.map((function(t){var n={extension:Z};return r().trigger("ct:extensions:card",{CustomComponent:n,extension:t}),(0,e.createElement)(n.extension,{key:t.name,extension:t,extsSyncLoading:m,onExtsSync:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.extAction||(l[t.name].__object=!l[t.name].__object,s(l)),b(U(U({},e),{},{extension:t.name}))}})}))),(0,e.createElement)(R,null)))}}))))},K=function(t){var n=t.children,r=t.activated,o=t.checked,a=t.onChange;return(0,e.createElement)("div",{onClick:function(){return a()},className:i()("ct-checkbox-container",{activated:r})},n,(0,e.createElement)("span",{className:i()("ct-checkbox",{active:o})},(0,e.createElement)("svg",{width:"10",height:"8",viewBox:"0 0 11.2 9.1"},(0,e.createElement)("polyline",{class:"check",points:"1.2,4.8 4.4,7.9 9.9,1.2 "}))))};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 Y(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}function Q(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 ee=function(e){return({"stackable-ultimate-gutenberg-blocks":"Stackable - Gutenberg Blocks","wpforms-lite":"WPForms - Contact Form",woocommerce:"WooCommerce",elementor:"Elementor",brizy:"Brizy",getwid:"Getwid","simply-gallery-block":"SimpLy Gallery Block & Lightbox","recipe-card-blocks-by-wpzoom":"Recipe Card Blocks by WPZOOM","map-block-gutenberg":"Map Block for Google Maps","mb-custom-post-type":"MB Custom Post Types & Custom Taxonomies",leadin:"HubSpot","block-slider":"Block Slider","ht-slider-for-elementor":"HT Slider For Elementor","modula-best-grid-gallery":"Modula - Image Gallery"}[e]||e).replace(/\b\w/,(function(e){return e.toUpperCase()}))},te=function(t){var n,r,a=t.demoConfiguration,i=t.setDemoConfiguration,c=t.style,l=(0,e.useContext)(We),s=l.currentDemo,u=l.demos_list,m=l.pluginsStatus,p=(l.setCurrentDemo,n=(s||"").split(":"),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Q(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)?Q(e,t):void 0}}(n,r)||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.")}()),d=p[0];return p[1],u.filter((function(e){return e.name===d||""})),(0,e.createElement)("div",{style:c},(0,e.createElement)("div",{className:"ct-demo-plugins"},(0,e.createElement)("i",{className:"ct-demo-icon"},(0,e.createElement)("svg",{width:"40",height:"40",viewBox:"0 0 40 40"},(0,e.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"}),(0,e.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"}))),(0,e.createElement)("h2",null,(0,o.__)("Install & Activate Plugins","blocksy-companion")),(0,e.createElement)("p",null,(0,o.__)("The following plugins are required for this starter site in order to work properly.","blocksy-companion")),a.plugins.map((function(t){var n=t.plugin,r=t.enabled;return(0,e.createElement)(e.Fragment,{key:n},!m[n]&&(0,e.createElement)(K,{key:n,checked:r,onChange:function(){return i(Y(Y({},a),{},{plugins:a.plugins.map((function(e){return e.plugin===n?Y(Y({},e),{},{enabled:!r}):e}))}))}},ee(n)),m[n]&&(0,e.createElement)(K,{activated:!0,checked:!0,onChange:function(){}},ee(n)))}))))},ne=function(){var t=(0,e.useContext)(We),n=t.currentlyInstalledDemo,r=t.demos_list,a=t.setCurrentDemo,c=t.demo_error,l=t.setInstallerBlockingReleased;return(0,e.useContext)(L).Link,(0,e.createElement)("ul",null,r.filter((function(e,t){return r.map((function(e){return e.name})).indexOf(e.name)===t})).map((function(t){return(0,e.createElement)("li",{key:t.name,className:i()("ct-single-demo",{"ct-is-pro":t.is_pro})},(0,e.createElement)("figure",null,(0,e.createElement)("img",{src:t.screenshot}),(0,e.createElement)("section",null,(0,e.createElement)("h3",null,(0,o.__)("Available for","blocksy-companion")),(0,e.createElement)("div",null,r.filter((function(e){return e.name===t.name||""})).sort((function(e,t){return e.builder<t.builder?-1:e.builder>t.builder?1:0})).map((function(t){var n=t.builder;return(0,e.createElement)("span",{key:n},ee(n)||"Gutenberg")})))),t.is_pro&&(0,e.createElement)("a",{onClick:function(e){return e.preventDefault()},href:"#"},"PRO")),(0,e.createElement)("div",{className:"ct-demo-actions"},(0,e.createElement)("h4",null,t.name),(0,e.createElement)("div",null,(0,e.createElement)("a",{className:"ct-button",target:"_blank",href:t.url},(0,o.__)("Preview","blocksy-companion")),(0,e.createElement)("button",{className:"ct-button-primary",onClick:function(){l(!1),a(t.name)},disabled:!!c},n&&n.demo.indexOf(t.name)>-1?(0,o.__)("Modify","blocksy-companion"):(0,o.__)("Import","blocksy-companion")))))})))};function re(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return oe(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)?oe(e,t):void 0}}(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(t){var n=t.style,r=t.nextStep,a=((0,e.useContext)(L).is_child_theme,(0,e.useContext)(We)),i=a.setCurrentlyInstalledDemo,c=a.setCurrentDemo,l=a.currentDemo,s=a.demos_list,u=re((0,e.useState)(0),2),m=u[0],p=u[1],d=re((0,e.useState)("idle"),2),f=d[0],y=d[1],b=re((l||"").split(":"),2),h=b[0],v=(b[1],s.filter((function(e){return e.name===h}))),g={erase_content:{title:(0,o.__)("Erase content","blocksy-companion"),query_string:"action=blocksy_demo_erase_content&wp_customize=on"},deactivate_demo_plugins:{title:(0,o.__)("Deactivate demo plugins","blocksy-companion"),query_string:"action=blocksy_demo_deactivate_plugins&plugins=".concat(v[0].plugins.join(":"))},deregister_current_demo:{title:(0,o.__)("Erase content","blocksy-companion"),query_string:"action=blocksy_demo_deregister_current_demo"}},_=["erase_content","deactivate_demo_plugins","deregister_current_demo"],E=_[m],w=function(){var e=g[E],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(),m===_.length-1)return void y("done");p(Math.min(_.length-1,m+1))}}};return(0,e.useEffect)((function(){0!==m&&"done"!==f&&w()}),[E]),(0,e.createElement)("div",{className:"ct-modify-demo",style:n},(0,e.createElement)("i",{className:"ct-demo-icon"},(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 40 40"},(0,e.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"}),(0,e.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"===f&&(0,e.createElement)("h2",null,(0,o.__)("This starter site is already installed","blocksy-companion")),"loading"===f&&(0,e.createElement)("h2",null,"Removing starter site..."),"done"===f&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("h2",null,(0,o.__)("Starter Site Removed","blocksy-companion")),(0,e.createElement)("div",{className:"ct-modify-actions"},(0,e.createElement)("button",{className:"ct-demo-btn ct-dismiss",onClick:function(e){e.preventDefault(),c("".concat(h,":hide"))}},(0,o.__)("Dismiss","blocksy-companion")))),"idle"===f&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("p",null,(0,o.__)("What steps do you want to perform next?","blocksy-companion")),(0,e.createElement)("div",{className:"ct-modify-actions"},(0,e.createElement)("button",{className:"ct-demo-btn demo-remove",onClick:function(e){y("loading"),e.preventDefault(),w(),i()}},(0,o.__)("Remove","blocksy-companion")),(0,e.createElement)("button",{className:"ct-demo-btn",onClick:function(e){e.preventDefault(),r()}},(0,o.__)("Reinstall","blocksy-companion")))))};function ie(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 ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ie(Object(n),!0).forEach((function(t){le(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ie(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function le(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var se=function(t){var n=t.demoConfiguration,r=t.setDemoConfiguration,a=t.style,i=(0,e.useContext)(L),c=i.is_child_theme,l=i.child_theme_exists;return(0,e.createElement)("div",{className:"ct-demo-child",style:a},(0,e.createElement)("i",{className:"ct-demo-icon"},(0,e.createElement)("svg",{width:"40",height:"40",viewBox:"0 0 43 41.1"},(0,e.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"}),(0,e.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"}),(0,e.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"}),(0,e.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"}),(0,e.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"}),(0,e.createElement)("rect",{x:"11.2",y:"11",fill:"#44ACDF",width:"16.8",height:"17.9"}),(0,e.createElement)("rect",{x:"31.5",y:"11",fill:"#44ACDF",width:"7.9",height:"17.9"}))),l?(0,e.createElement)("h2",null,(0,o.__)("Activate Child Theme","blocksy-companion")):(0,e.createElement)("h2",null,(0,o.__)("Install Child Theme","blocksy-companion")),!c&&(0,e.createElement)(e.Fragment,null,l?(0,e.createElement)("p",null,(0,o.__)("We strongly recommend to activate the child theme, this way you will have freedom to make changes without breaking the parent theme.","blocksy-companion")):(0,e.createElement)("p",null,(0,o.__)("We strongly recommend to install the child theme, this way you will have freedom to make changes without breaking the parent theme.","blocksy-companion")),(0,e.createElement)(K,{checked:n.child_theme,onChange:function(){return r(ce(ce({},n),{},{child_theme:!n.child_theme}))}},l?(0,o.__)("Activate Child Theme","blocksy-companion"):(0,o.__)("Install Child Theme","blocksy-companion"))),c&&(0,o.__)("You already have a child theme properly installed and activated. Move on.","blocksy-companion"),(0,e.createElement)("a",{href:"https://developer.wordpress.org/themes/advanced-topics/child-themes/",target:"_blank"},(0,o.__)("Learn more about child themes","blocksy-companion")))};function ue(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?ue(Object(n),!0).forEach((function(t){pe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function de(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(t){var n,r,a=t.demoConfiguration,c=t.setDemoConfiguration,l=t.style,s=(0,e.useContext)(We),u=s.currentDemo,m=s.demos_list,p=(s.pluginsStatus,s.setCurrentDemo,n=(u||"").split(":"),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}}(n,r)||function(e,t){if(e){if("string"==typeof e)return de(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)?de(e,t):void 0}}(n,r)||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.")}()),d=p[0],f=(p[1],m.filter((function(e){return e.name===d||""})));return(0,e.createElement)("div",{style:l},f.length>1&&(0,e.createElement)("div",{className:"ct-demo-builder"},(0,e.createElement)("i",{className:"ct-demo-icon"},(0,e.createElement)("svg",{width:"52",height:"40",viewBox:"0 0 52 40"},(0,e.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"}),(0,e.createElement)("path",{fill:"#CFDBE4",d:"M13.8,14.6v18.8h22.6V14.6H13.8zM34.8,31.9H15.4V16.1h19.4V31.9z"}),(0,e.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"}),(0,e.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"}),(0,e.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"}),(0,e.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"}),(0,e.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"}))),(0,e.createElement)("h2",null,(0,o.__)("Choose Page Builder","blocksy-companion")),(0,e.createElement)("p",null,(0,o.__)("This starter site can be imported and used with one of these page builders. Please select your prefered one in order to continue.","blocksy-companion")),(0,e.createElement)("ul",{"data-count":f.length},f.sort((function(e,t){return e.builder<t.builder?-1:e.builder>t.builder?1:0})).map((function(t){var n=t.builder,r=t.plugins;return(0,e.createElement)("li",{className:i()({active:n===(null===a.builder?f[0].builder:a.builder)}),onClick:function(){return c(me(me({},a),{},{builder:n,plugins:r.map((function(e){return{plugin:e,enabled:!0}}))}))}},(0,e.createElement)("figure",null,(0,e.createElement)("span",{className:i()("ct-checkbox",{active:n===(null===a.builder?f[0].builder:a.builder)})},(0,e.createElement)("svg",{width:"10",height:"8",viewBox:"0 0 11.2 9.1"},(0,e.createElement)("polyline",{className:"check",points:"1.2,4.8 4.4,7.9 9.9,1.2 "}))),""===n&&(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 150 100"},(0,e.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"===n&&(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 150 100"},(0,e.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"}),(0,e.createElement)("path",{fill:"#a7b2dd",d:"M14.6 63.2l10.8-6.5L75 86.8l49.9-30 10.5 6.4L75 100z"})),"elementor"===n&&(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 150 100"},(0,e.createElement)("path",{d:"M32.5 7.6h17v84.9h-17V7.6zm34 84.9h51v-17h-51v17zm0-34h51v-17h-51v17zm0-51v17h51v-17h-51z"}))),(0,e.createElement)("div",{className:"builder-name"},ee(n)||"Gutenberg"))})))))};function ye(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 be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ye(Object(n),!0).forEach((function(t){he(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function he(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ve=function(t){var n=t.demoConfiguration,r=t.setDemoConfiguration,a=(t.currentDemo,t.style);return(0,e.createElement)("div",{style:a},(0,e.createElement)("i",{className:"ct-demo-icon"},(0,e.createElement)("svg",{width:"40",height:"40",viewBox:"0 0 40 40"},(0,e.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"}),(0,e.createElement)("rect",{x:"2.5",y:"14",width:"35",height:"3",rx:"1.5",fill:"#0c7ab3"}),(0,e.createElement)("rect",{x:"5",y:"7",width:"30",height:"3",rx:"1.5",fill:"#3497d3"}),(0,e.createElement)("rect",{x:"7.5",width:"25",height:"3",rx:"1.5",fill:"#44acdf"}))),(0,e.createElement)("h2",null,(0,o.__)("Import Content","blocksy-companion")),(0,e.createElement)("p",null,(0,o.__)("This will import posts, pages, comments, navigation menus, custom fields, terms and custom posts","blocksy-companion")),["options","widgets","content"].map((function(t){return(0,e.createElement)(K,{checked:n.content[t],onChange:function(){return r(be(be({},n),{},{content:be(be({},n.content),{},he({},t,!n.content[t]))}))},key:t},t.split("_").map((function(e){return e.replace(/^\w/,(function(e){return e.toUpperCase()}))})).join(" "))})),(0,e.createElement)("div",{className:"ct-demo-erase"},(0,e.createElement)(K,{checked:n.content.erase_content,onChange:function(){return r(be(be({},n),{},{content:be(be({},n.content),{},{erase_content:!n.content.erase_content})}))}},(0,e.createElement)("div",null,(0,o.__)("Clean Install","blocksy-companion"),(0,e.createElement)("i",null,(0,o.__)("This option will remove the previous imported content and will perform a fresh and clean install.","blocksy-companion"))))))},ge=function(){var t=(0,e.useContext)(L),n=t.home_url,r=t.customizer_url;return(0,e.createElement)("div",{className:"ct-install-success"},(0,e.createElement)("h2",null,(0,o.__)("Starter Site Imported Successfully","blocksy-companion")),(0,e.createElement)("p",null,(0,o.__)("Now you can view your website or start customizing it","blocksy-companion")),(0,e.createElement)("div",null,(0,e.createElement)("a",{href:r,className:"ct-button"},(0,o.__)("Customize","blocksy-companion")),(0,e.createElement)("a",{href:n,target:"_blank",className:"ct-button-primary"},(0,o.__)("View site","blocksy-companion"))))};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}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)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Oe(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)?Oe(e,t):void 0}}(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 xe=function(e){e.preventDefault(),e.returnValue=""},Se=function(e){var t=e.demoConfiguration,n=e.pluginsStatus,r=e.is_child_theme,o=e.includeMetaSteps,a=[];return void 0!==o&&o&&a.push("register_current_demo"),t.child_theme&&(r||a.push("child_theme")),t.plugins.filter((function(e){var t=e.enabled,r=e.plugin;return!!t&&!n[r]})).length>0&&a.push("plugins"),t.content.erase_content&&a.push("erase_content"),t.content.options&&a.push("options"),t.content.widgets&&a.push("widgets"),t.content.content&&a.push("content"),a.push("install_finish"),a},Ce=function(e,t){var n=e.action;if("complete"===n)return"";if("import_install_child"===n)return(0,o.__)("copying child theme sources","blocksy-companion");if("import_activate_child"===n)return(0,o.__)("activating child theme","blocksy-companion");if("install_plugin"===n)return(0,o.sprintf)((0,o.__)("installing plugin %s","blocksy-companion"),ee(e.name)||e.name);if("activate_plugin"===n)return(0,o.sprintf)((0,o.__)("activating plugin %s","blocksy-companion"),ee(e.name)||e.name);if("download_demo_widgets"===n)return(0,o.__)("downloading demo widgets","blocksy-companion");if("apply_demo_widgets"===n)return(0,o.__)("installing demo widgets","blocksy-companion");if("download_demo_options"===n)return(0,o.__)("downloading demo options","blocksy-companion");if("import_mods_images"===n)return(0,o.__)("importing images from customizer","blocksy-companion");if("import_customizer_options"===n)return(0,o.__)("import customizer options","blocksy-companion");if("activate_required_extensions"===n)return(0,o.__)("activating required extensions","blocksy-companion");if("erase_previous_posts"===n)return(0,o.__)("removing previously installed posts","blocksy-companion");if("erase_previous_terms"===n)return(0,o.__)("removing previously installed taxonomies","blocksy-companion");if("erase_default_pages"===n)return(0,o.__)("removing default WordPress pages","blocksy-companion");if("erase_customizer_settings"===n)return(0,o.__)("resetting customizer options","blocksy-companion");if("erase_widgets_data"===n)return(0,o.__)("resetting widgets","blocksy-companion");if("content_installer_progress"===n){if(!e.kind)return"";var r=t.content.preliminary_data["".concat(e.kind,"_count")],a=t.content["".concat(e.kind,"_count")];return"".concat(Math.min(a,r)," of ").concat(r," ").concat({users:(0,o.__)("users","blocksy-companion"),term:(0,o.__)("terms","blocksy-companion"),media:(0,o.__)("images","blocksy-companion"),post:(0,o.__)("posts","blocksy-companion"),comment:(0,o.__)("comments","blocksy-companion")}[e.kind])}return""},je=function(t){var n=t.stepName,r=t.stepsDescriptors,a=t.lastMessage,i=t.progress;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("i",{className:"ct-demo-icon"},(0,e.createElement)("svg",{width:"40",height:"40",viewBox:"0 0 50 50"},(0,e.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"}),(0,e.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"}),(0,e.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"}))),(0,e.createElement)("h2",null,(0,o.__)("Installing","blocksy-companion"),"..."),(0,e.createElement)("p",null,(0,o.__)("Please be patient and don't refresh this page, the import process may take a while, this also depends on your server.","blocksy-companion")),(0,e.createElement)("div",{className:"ct-progress-info"},r[n].title,a&&Ce(a,r)?": ".concat(Ce(a,r)):"",(0,e.createElement)("span",null,Math.round(i),"%")),(0,e.createElement)("div",{style:{"--progress":"".concat(i,"%")},className:"ct-installer-progress"},(0,e.createElement)("div",null)))},De=function(){return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("i",{className:"ct-demo-icon"},(0,e.createElement)("svg",{width:"37",height:"37",viewBox:"0 0 40 40"},(0,e.createElement)("path",{fill:"#BDC8D7",d:"M30.7,25.4L14.6,9.3c0.7-2.5,0-5.2-1.9-7.2c-2.4-2.3-6-2.7-8.8-1.3l4.5,4.5L7.9,7.9L5.3,8.4L0.8,3.9c-1.5,2.8-1,6.4,1.3,8.7c2,2,4.7,2.6,7.2,1.9l16.1,16.1c-0.7,2.5,0,5.2,1.9,7.2c2.3,2.3,5.9,2.8,8.7,1.3l-4.5-4.5L32,32l2.6-0.5l4.5,4.5c1.5-2.8,1-6.4-1.3-8.7C35.9,25.4,33.1,24.7,30.7,25.4z"}),(0,e.createElement)("polygon",{fill:"#44ACDF",points:"34.6,11.3 39.8,3.7 36.3,0.2 28.7,5.4 28.7,7.8 11.8,24.7 15.3,28.2 32.2,11.3 "}),(0,e.createElement)("path",{fill:"#0C7AB3",d:"M18.4,27.5l-5.9-5.9c-0.4-0.4-1-0.4-1.4,0s-0.4,1,0,1.4l0,0L0.7,33.5c-0.7,0.7-0.7,1.7,0,2.3l3.5,3.5c0.7,0.7,1.7,0.7,2.3,0L17,28.9l0,0c0.2,0.2,0.5,0.3,0.7,0.3s0.5-0.1,0.7-0.3C18.8,28.5,18.8,27.9,18.4,27.5z"}))),(0,e.createElement)("h2",null,(0,o.__)("Can't Import Starter Site","blocksy-companion")),(0,e.createElement)("p",null,(0,o.__)("Unfortunately, your hosting configuration doesn't meet the minimum requirements for importing a starter site.","blocksy-companion")),(0,e.createElement)("a",{href:"https://creativethemes.com/blocksy/docs/troubleshooting/starter-site-import-stuck-at-xx/",className:"ct-demo-btn",target:"_blank"},"More Information"))},Ae=function(t){var n=t.demoConfiguration,r=t.style,a=function(t){var n=(0,e.useContext)(We),r=n.demos_list,a=n.currentDemo,i=(n.setCurrentDemo,n.setInstallerBlockingReleased),c=n.setCurrentlyInstalledDemo,l=n.pluginsStatus,s=(0,e.useContext)(L),u=(s.home_url,s.customizer_url,s.is_child_theme),m=(s.Link,ke((0,e.useState)(!1),2)),p=m[0],d=m[1],f=ke((0,e.useState)(!1),2),y=f[0],b=f[1],h=ke((0,e.useState)(0),2),v=h[0],g=h[1],_=ke((a||"").split(":"),2),E=_[0],w=(_[1],r.filter((function(e){return e.name===E})).sort((function(e,t){return e.builder<t.builder?-1:e.builder>t.builder?1:0}))),k=t.plugins.filter((function(e){var t=e.enabled,n=e.plugin;return t&&!l[n]})).map((function(e){return e.plugin})),O=ke((0,e.useState)({register_current_demo:{title:(0,o.__)("Register demo","blocksy-companion"),query_string:"action=blocksy_demo_register_current_demo&wp_customize=on&demo_name=".concat(a,":").concat(null===t.builder?w[0].builder:t.builder),expected_signals:1},child_theme:{title:(0,o.__)("Child theme","blocksy-companion"),query_string:"action=blocksy_demo_install_child_theme",expected_signals:3},plugins:{title:(0,o.__)("Required plugins","blocksy-companion"),query_string:"action=blocksy_demo_activate_plugins&plugins=".concat(k.join(":")),expected_signals:2*k.length+1},fake_step:{title:(0,o.__)("Fake Required plugins","blocksy-companion"),query_string:"action=blocksy_demo_fake_step",expected_signals:6},erase_content:{title:(0,o.__)("Erase content","blocksy-companion"),query_string:"action=blocksy_demo_erase_content&wp_customize=on",expected_signals:6},install_finish:{title:(0,o.__)("Final touches","blocksy-companion"),query_string:"action=blocksy_demo_install_finish&wp_customize=on",expected_signals:1},options:{title:(0,o.__)("Import options","blocksy-companion"),query_string:"action=blocksy_demo_install_options&wp_customize=on&demo_name=".concat(a,":").concat(null===t.builder?w[0].builder:t.builder),expected_signals:5},widgets:{title:(0,o.__)("Import widgets","blocksy-companion"),query_string:"action=blocksy_demo_install_widgets&wp_customize=on&demo_name=".concat(a,":").concat(null===t.builder?w[0].builder:t.builder),expected_signals:3},content:{title:(0,o.__)("Import content","blocksy-companion"),query_string:"action=blocksy_demo_install_content&wp_customize=on&demo_name=".concat(a,":").concat(null===t.builder?w[0].builder:t.builder),expected_signals:50}}),2),x=O[0],S=O[1],C=Se({demoConfiguration:t,pluginsStatus:l,is_child_theme:u,includeMetaSteps:!0}),j=C[v],D=ke((0,e.useState)(0),2),A=D[0],P=D[1],M=ke((0,e.useState)(null),2),N=M[0],z=M[1],T=(0,e.useRef)(A),I=(0,e.useRef)(x);(0,e.useEffect)((function(){T.current=A,I.current=x}));var B=function(e){return"content"===e?1===C.length?100:50:C.indexOf("content")>-1?50/(C.length-1):100/C.length},R=C.reduce((function(e,t,n){return n>=v?e:e+B(t)}),0)+100*A/x[j].expected_signals*(B(j)/100),F=function(){var e=x[j],t=new EventSource("".concat(ctDashboardLocalizations.ajax_url,"?").concat(e.query_string));t.onerror=function(e){b(!0)},t.onmessage=function(e){var n=JSON.parse(e.data);if(P(T.current+1),"content_installer_progress"===n.action){var r=n.kind;r&&(z(n),S(Ee(Ee({},I.current),{},{content:Ee(Ee({},I.current.content),{},we({},"".concat(r,"_count"),I.current.content["".concat(r,"_count")]+1))})))}else z(n);if("get_content_preliminary_data"===n.action){var o=n.data,a=(o.comment_count,o.media_count,o.post_count,o.term_count,o.users,Ee(Ee({},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}));S(Ee(Ee({},I.current),{},{content:Ee(Ee({},I.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(),v===C.length-1)return d(!0),i(!0),void window.removeEventListener("beforeunload",xe);z(null),P(0),g(Math.min(C.length-1,v+1))}}};return(0,e.useEffect)((function(){p||(z(null),P(0),"fake_step"===j?(console.log("here we go delay before fake_step"),setTimeout((function(){F()}),2e3)):F())}),[j]),(0,e.useEffect)((function(){return window.addEventListener("beforeunload",xe),c({demo:"".concat(a,":").concat(t.builder)}),function(){window.removeEventListener("beforeunload",xe)}}),[]),{isCompleted:p,isError:y,stepName:j,stepsDescriptors:x,lastMessage:N,progress:R}}(n),i=a.isCompleted,c=a.isError,l=a.stepName,s=a.stepsDescriptors,u=a.lastMessage,m=a.progress,p=i?"complete":c?"error":"progress";return(0,e.createElement)("div",{className:"ct-demo-install",style:r},(0,e.createElement)(j.Transition,{initial:!0,items:p,from:{opacity:0},enter:[{opacity:1}],leave:[{opacity:0}],config:function(e,t){return"leave"===t?{duration:300}:{delay:300,duration:300}}},(function(t){return function(n){return(0,e.createElement)("div",{style:n},"complete"===t&&(0,e.createElement)(ge,null),"error"===t&&(0,e.createElement)(De,null),"progress"===t&&(0,e.createElement)(je,{stepName:l,stepsDescriptors:s,lastMessage:u,progress:m}))}})))};function Pe(e){return function(e){if(Array.isArray(e))return Le(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Ne(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 Me(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}}(e,t)||Ne(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 Ne(e,t){if(e){if("string"==typeof e)return Le(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)?Le(e,t):void 0}}function Le(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 ze=function(t){t.location,t.navigate;var n=Me((0,e.useState)(!0),2),r=(n[0],n[1],(0,e.useContext)(We)),a=r.installerBlockingReleased,c=r.demos_list,l=r.currentDemo,s=r.pluginsStatus,u=r.currentlyInstalledDemo,m=r.setCurrentDemo,p=(0,e.useContext)(L).is_child_theme,d=Me((0,e.useState)(u),2),f=d[0],y=d[1],b=Me((0,e.useState)({builder:"",child_theme:!1,plugins:[],content:{options:!0,widgets:!0,content:!0,erase_content:!0}}),2),h=b[0],v=b[1],g=Me((0,e.useState)(0),2),_=g[0],E=g[1],w=Me((l||"").split(":"),2),k=w[0],O=(w[1],["modify_demo","child_theme","builder","plugins","content","installer"].filter((function(e){if(!l)return!1;if("modify_demo"===e){if(!f)return!1;if(-1===f.demo.indexOf(k))return!1}if("child_theme"===e&&p)return!1;var t=c.filter((function(e){return e.name===k})).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(Pe(e),Pe(t.plugins||[]))}),[]).filter((function(e){return!s[e]})).length)&&("builder"!==e||t.length>1)}))),x=O[_];return(0,e.useEffect)((function(){if(k&&!(l.indexOf(":hide")>-1)){var e=c.filter((function(e){return e.name===k})).sort((function(e,t){return e.builder<t.builder?-1:e.builder>t.builder?1:0}));E(0),y(u),v({builder:1===e.length?e[0].builder:null,child_theme:!1,plugins:e[0].plugins.map((function(e){return{plugin:e,enabled:!0}})),content:{options:!0,widgets:!0,content:!0,erase_content:!0}})}}),[l]),(0,e.createElement)(A,{items:l,isVisible:function(e){return e&&-1===e.indexOf(":hide")},className:i()("ct-demo-modal",{"ct-demo-installer":"installer"===x||"modify_demo"===x}),onDismiss:function(){("installer"!==x||a)&&m("".concat(k,":hide"))},render:function(){return(0,e.createElement)("div",{className:"ct-modal-content ct-demo-step-container"},(0,e.createElement)("div",{className:"ct-current-step"},(0,e.createElement)(j.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(t){return function(n){return(0,e.createElement)(e.Fragment,null,"modify_demo"===t&&(0,e.createElement)(ae,{demoConfiguration:h,nextStep:function(){E(Math.min(_+1,O.length-1))},style:n}),"child_theme"===t&&(0,e.createElement)(se,{style:n,demoConfiguration:h,setDemoConfiguration:v}),"plugins"===t&&(0,e.createElement)(te,{demoConfiguration:h,style:n,setDemoConfiguration:v}),"builder"===t&&(0,e.createElement)(fe,{style:n,demoConfiguration:h,setDemoConfiguration:v}),"content"===t&&(0,e.createElement)(ve,{style:n,demoConfiguration:h,setDemoConfiguration:v}),"installer"===t&&(0,e.createElement)(Ae,{style:n,demoConfiguration:h}))}}))),"installer"!==x&&"modify_demo"!==x&&(0,e.createElement)("div",{className:"ct-demo-step-controls"},_>0&&(0,e.createElement)("button",{className:"ct-demo-btn demo-back-btn",onClick:function(){E(Math.max(_-1,0))}},(0,o.__)("Back","blocksy-companion")),O.length>2&&(0,e.createElement)("ul",{className:"ct-steps-pills"},O.map((function(t,n){return n===O.length-1?null:(0,e.createElement)("li",{className:i()({active:t===x}),key:t},n+1)}))),(0,e.createElement)("button",{className:"ct-demo-btn demo-main-btn",disabled:"content"===x&&0===Se({demoConfiguration:h,pluginsStatus:s,is_child_theme:p}).length,onClick:function(){E(Math.min(_+1,O.length-1))}},"content"===x?(0,o.__)("Install","blocksy-companion"):(0,o.__)("Next","blocksy-companion"))))}})},Te=n(162),Ie=n.n(Te);function Be(e,t,n,r,o,a,i){try{var c=e[a](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,o)}function Re(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}}(e,t)||Fe(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 Fe(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 Ve=function(){var t=Re((0,e.useState)(!1),2),n=t[0],r=t[1],a=Re((0,e.useState)(!1),2),i=a[0],c=a[1],l=Re((0,e.useState)(""),2),s=l[0],u=l[1],m=Re((0,e.useState)(""),2),p=m[0],d=m[1],f=Re((0,e.useState)([]),2),y=f[0],b=f[1],h=Re((0,e.useState)(""),2),v=h[0],g=h[1],_=Re((0,e.useState)(!1),2),E=_[0],w=_[1],k=function(){var e,t=(e=regeneratorRuntime.mark((function e(){var t,n,o,a,i,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r(!0),(t=new FormData).append("action","blocksy_demo_export"),t.append("name",s),t.append("is_pro",E),t.append("url",v),t.append("builder",p),t.append("plugins",y.join(",")),t.append("wp_customize","on"),e.prev=9,e.next=12,fetch(ctDashboardLocalizations.ajax_url,{method:"POST",body:t});case 12:if(200!==(n=e.sent).status){e.next=20;break}return e.next=16,n.json();case 16:o=e.sent,a=o.success,i=o.data,a&&(c=new Blob([JSON.stringify(i.demo)],{type:"text/plain;charset=utf-8"}),Ie().saveAs(c,"".concat(s,".json")));case 20:e.next=24;break;case 22:e.prev=22,e.t0=e.catch(9);case 24:r(!1);case 25:case"end":return e.stop()}}),e,null,[[9,22]])})),function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){Be(a,r,o,i,c,"next",e)}function c(e){Be(a,r,o,i,c,"throw",e)}i(void 0)}))});return function(){return t.apply(this,arguments)}}();return ct_localizations.is_dev_mode?(0,e.createElement)("div",{className:"ct-export"},(0,e.createElement)("button",{className:"ct-button",onClick:function(e){c(!0)}},(0,o.__)("Site export")),(0,e.createElement)(A,{items:i,className:"ct-site-export-modal",onDismiss:function(){return c(!1)},render:function(){return(0,e.createElement)("div",{className:"ct-site-export"},(0,e.createElement)("label",null,(0,o.__)("Name","blocksy-companion"),(0,e.createElement)("input",{type:"text",placeholder:(0,o.__)("Name","blocksy-companion"),value:s,onChange:function(e){var t=e.target.value;return u(t)}})),(0,e.createElement)("label",null,(0,o.__)("Preview URL","blocksy-companion"),(0,e.createElement)("input",{type:"text",placeholder:(0,o.__)("Preview URL","blocksy-companion"),value:v,onChange:function(e){var t=e.target.value;return g(t)}})),(0,e.createElement)("label",null,(0,o.__)("PRO","blocksy-companion"),(0,e.createElement)("input",{type:"checkbox",value:E,onChange:function(e){return e.target.value,w(!E)}})),(0,e.createElement)("label",null,(0,o.__)("Builder","blocksy-companion"),(0,e.createElement)("input",{type:"text",placeholder:(0,o.__)("Builder","blocksy-companion"),value:p,onChange:function(e){var t=e.target.value;return d(t)}})),(0,e.createElement)("h3",null,"Required plugins"),(0,e.createElement)("div",{className:"ct-bundled-plugins-list ct-modal-scroll"},Object.keys({"stackable-ultimate-gutenberg-blocks":"Stackable - Gutenberg Blocks","wpforms-lite":"WPForms - Contact Form",woocommerce:"WooCommerce",elementor:"Elementor",brizy:"Brizy",getwid:"Getwid","simply-gallery-block":"SimpLy Gallery Block & Lightbox","recipe-card-blocks-by-wpzoom":"Recipe Card Blocks by WPZOOM","map-block-gutenberg":"Map Block for Google Maps","mb-custom-post-type":"MB Custom Post Types & Custom Taxonomies",leadin:"HubSpot","block-slider":"Block Slider","ht-slider-for-elementor":"HT Slider For Elementor","modula-best-grid-gallery":"Modula - Image Gallery"}).map((function(t){return(0,e.createElement)("label",{tabindex:"0",onClick:function(e){e.preventDefault(),b((function(e){return e.includes(t)?e.filter((function(e){return e!==t})):[].concat(function(e){if(Array.isArray(e))return Ue(e)}(n=e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(n)||Fe(n)||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.")}(),[t]);var n}))}},(0,e.createElement)("span",null,{"stackable-ultimate-gutenberg-blocks":"Stackable - Gutenberg Blocks","wpforms-lite":"WPForms - Contact Form",woocommerce:"WooCommerce",elementor:"Elementor",brizy:"Brizy",getwid:"Getwid","simply-gallery-block":"SimpLy Gallery Block & Lightbox","recipe-card-blocks-by-wpzoom":"Recipe Card Blocks by WPZOOM","map-block-gutenberg":"Map Block for Google Maps","mb-custom-post-type":"MB Custom Post Types & Custom Taxonomies",leadin:"HubSpot","block-slider":"Block Slider","ht-slider-for-elementor":"HT Slider For Elementor","modula-best-grid-gallery":"Modula - Image Gallery"}[t]),(0,e.createElement)("input",{type:"checkbox",checked:y.indexOf(t)>-1,onChange:function(e){e.target.checked}}))}))),(0,e.createElement)("button",{className:"ct-button",disabled:n,onClick:function(){return k()}},n?(0,o.__)("Loading...","blocksy-companion"):(0,o.__)("Export site","blocksy-companion")))}})):null};function He(e,t,n,r,o,a,i){try{var c=e[a](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,o)}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)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ge(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)?Ge(e,t):void 0}}(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 We=(0,e.createContext)({demos:[]}),Ze=null,$e=null,Ke=function(t){t.children,t.path,t.location;var n=qe((0,e.useState)(!Ze),2),r=n[0],a=n[1],i=qe((0,e.useState)(Ze||[]),2),c=i[0],l=i[1],s=qe((0,e.useState)($e||{}),2),u=s[0],m=s[1],p=qe((0,e.useState)(null),2),d=p[0],f=p[1],y=qe((0,e.useState)(null),2),b=y[0],h=y[1],v=qe((0,e.useState)(!1),2),g=v[0],_=v[1],E=qe((0,e.useState)({builder:""}),2),w=(E[0],E[1],qe((0,e.useState)(!1),2)),k=w[0],O=w[1],x=function(){var e,t=(e=regeneratorRuntime.mark((function e(){var t,n,r,o,i,c=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c.length>0&&void 0!==c[0]&&c[0]&&a(!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,i=r.data,o&&(l(i.demos),m(i.active_plugins),h(i.current_installed_demo),_(i.demo_error),$e=i.active_plugins,Ze=i.demos,i.demo_error);case 15:e.next=19;break;case 17:e.prev=17,e.t0=e.catch(4);case 19:a(!1);case 20:case"end":return e.stop()}}),e,null,[[4,17]])})),function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){He(a,r,o,i,c,"next",e)}function c(e){He(a,r,o,i,c,"throw",e)}i(void 0)}))});return function(){return t.apply(this,arguments)}}();return(0,e.useEffect)((function(){x(!Ze)}),[]),(0,e.createElement)("div",{className:"ct-demos-list-container"},g&&(0,e.createElement)("div",{className:"ct-demo-notification",dangerouslySetInnerHTML:{__html:g}}),(0,e.createElement)(j.Transition,{items:r,from:{opacity:0},enter:[{opacity:1}],leave:[{opacity:0}],config:function(e,t){return"leave"===t?{duration:300}:{delay:300,duration:300}}},(function(t){return t?function(t){return(0,e.createElement)(j.animated.p,{style:t,className:"ct-loading-text"},(0,e.createElement)("span",null),(0,o.__)("Loading Starter Sites...","blocksy-companion"))}:0===c.length?function(t){return(0,e.createElement)(j.animated.div,{style:t},(0,e.createElement)("div",{className:"ct-demo-notification",dangerouslySetInnerHTML:{__html:(0,o.__)("The connection to our <b>demo.creativethemes.com</b> server didn't worked. This connection is required for importing the starter sites from our demo content server. All you have to do is to contact your hosting provider and ask them to white list our demo server address.","blocksy-companion")}}),(0,e.createElement)(R,null))}:function(t){return(0,e.createElement)(j.animated.div,{style:t},(0,e.createElement)(e.Fragment,null,(0,e.createElement)(We.Provider,{value:{demo_error:g,demos_list:c.filter((function(e){return!e.dev||ct_localizations.is_dev_mode})),currentDemo:d,pluginsStatus:u,installerBlockingReleased:k,setInstallerBlockingReleased:O,setCurrentDemo:f,currentlyInstalledDemo:b,setCurrentlyInstalledDemo:h}},(0,e.createElement)(ne,null),(0,e.createElement)(ze,null),(0,e.createElement)(Ve,null)),(0,e.createElement)(R,null)))}})))};r().on("ct:dashboard:routes",(function(t){t.push({Component:function(){return(0,e.createElement)($,null)},path:"/extensions"}),"yes"===ctDashboardLocalizations.plugin_data.has_demo_install&&t.push({Component:function(t){return(0,e.createElement)(Ke,t)},path:"/demos"})})),r().on("ct:dashboard:navigation-links",(function(e){"yes"===ctDashboardLocalizations.plugin_data.has_demo_install&&e.push({text:(0,o.__)("Starter Sites","blocksy-companion"),path:"demos",getProps:function(e){var t=e.isPartiallyCurrent;return e.isCurrent,t?{"aria-current":"page"}:{}}}),e.push({text:(0,o.__)("Extensions","blocksy-companion"),path:"/extensions"})})),r().on("ct:dashboard:heading:after",(function(t){ctDashboardLocalizations.plugin_data.is_pro&&(t.content=(0,e.createElement)("span",null,"PRO"))}))}()}();
|
1 |
/*! For license information please see dashboard.js.LICENSE.txt */
|
2 |
+
!function(){var e={184:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)&&n.length){var i=o.apply(null,n);i&&e.push(i)}else if("object"===a)for(var c in n)r.call(n,c)&&n[c]&&e.push(c)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},162:function(e,t,n){var r;void 0===(r=function(){"use strict";function t(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 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 a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n.g&&n.g.global===n.g?n.g:void 0,i=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype?function(e,n,i){var c=a.URL||a.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,i):o(l,l.target="_blank")):(l.href=c.createObjectURL(e),setTimeout((function(){c.revokeObjectURL(l.href)}),4e4),setTimeout((function(){o(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,n,a){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,a),n);else if(r(e))t(e,n,a);else{var i=document.createElement("a");i.href=e,i.target="_blank",setTimeout((function(){o(i)}))}}: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 i="application/octet-stream"===e.type,c=/constructor/i.test(a.HTMLElement)||a.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||i&&c)&&"object"==typeof FileReader){var s=new FileReader;s.onloadend=function(){var e=s.result;e=l?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=e:location=e,o=null},s.readAsDataURL(e)}else{var u=a.URL||a.webkitURL,m=u.createObjectURL(e);o?o.location=m:location.href=m,o=null,setTimeout((function(){u.revokeObjectURL(m)}),4e4)}});a.saveAs=i.saveAs=i,e.exports=i}.apply(t,[]))||(e.exports=r)},172:function(e,t,n){var r,o,a=n(760),i=n(529),c=(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 l(e){return setTimeout(e,0)}e.exports=function(e,t){var n=document,o="string"==typeof e?n.querySelector(e):e,s=i({returnFocusOnDeactivate:!0,escapeDeactivates:!0},t),u={firstTabbableNode:null,lastTabbableNode:null,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1},m={activate:function(e){if(!u.active){E(),u.active=!0,u.paused=!1,u.nodeFocusedBeforeActivation=n.activeElement;var t=e&&e.onActivate?e.onActivate:s.onActivate;return t&&t(),d(),m}},deactivate:p,pause:function(){!u.paused&&u.active&&(u.paused=!0,f())},unpause:function(){u.paused&&u.active&&(u.paused=!1,E(),d())}};return m;function p(e){if(u.active){clearTimeout(r),f(),u.active=!1,u.paused=!1,c.deactivateTrap(m);var t=e&&void 0!==e.onDeactivate?e.onDeactivate:s.onDeactivate;return t&&t(),(e&&void 0!==e.returnFocus?e.returnFocus:s.returnFocusOnDeactivate)&&l((function(){var e;w((e=u.nodeFocusedBeforeActivation,y("setReturnFocus")||e))})),m}}function d(){if(u.active)return c.activateTrap(m),r=l((function(){w(b())})),n.addEventListener("focusin",v,!0),n.addEventListener("mousedown",h,{capture:!0,passive:!1}),n.addEventListener("touchstart",h,{capture:!0,passive:!1}),n.addEventListener("click",_,{capture:!0,passive:!1}),n.addEventListener("keydown",g,{capture:!0,passive:!1}),m}function f(){if(u.active)return n.removeEventListener("focusin",v,!0),n.removeEventListener("mousedown",h,!0),n.removeEventListener("touchstart",h,!0),n.removeEventListener("click",_,!0),n.removeEventListener("keydown",g,!0),m}function y(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!==y("initialFocus")?y("initialFocus"):o.contains(n.activeElement)?n.activeElement:u.firstTabbableNode||y("fallbackFocus")))throw new Error("Your focus-trap needs to have at least one focusable element");return e}function h(e){o.contains(e.target)||(s.clickOutsideDeactivates?p({returnFocus:!a.isFocusable(e.target)}):s.allowOutsideClick&&s.allowOutsideClick(e)||e.preventDefault())}function v(e){o.contains(e.target)||e.target instanceof Document||(e.stopImmediatePropagation(),w(u.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(E(),e.shiftKey&&e.target===u.firstTabbableNode)return e.preventDefault(),void w(u.lastTabbableNode);e.shiftKey||e.target!==u.lastTabbableNode||(e.preventDefault(),w(u.firstTabbableNode))}(e)}function _(e){s.clickOutsideDeactivates||o.contains(e.target)||s.allowOutsideClick&&s.allowOutsideClick(e)||(e.preventDefault(),e.stopImmediatePropagation())}function E(){var e=a(o);u.firstTabbableNode=e[0]||b(),u.lastTabbableNode=e[e.length-1]||b()}function w(e){e!==n.activeElement&&(e&&e.focus?(e.focus(),u.mostRecentlyFocusedNode=e,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(e)&&e.select()):w(b()))}}},703:function(e,t,n){"use strict";var r=n(414);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var c=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 c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},697:function(e,t,n){e.exports=n(703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},760:function(e){var t=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],n=t.join(","),r="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;function o(e,t){t=t||{};var o,i,c,u=[],m=[],p=e.querySelectorAll(n);for(t.includeContainer&&r.call(e,n)&&(p=Array.prototype.slice.apply(p)).unshift(e),o=0;o<p.length;o++)a(i=p[o])&&(0===(c=l(i))?u.push(i):m.push({documentOrder:o,tabIndex:c,node:i}));return m.sort(s).map((function(e){return e.node})).concat(u)}function a(e){return!(!i(e)||function(e){return function(e){return u(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)||l(e)<0)}function i(e){return!(e.disabled||function(e){return u(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!==r.call(e,n)&&a(e)},o.isFocusable=function(e){if(!e)throw new Error("No node provided");return!1!==r.call(e,c)&&i(e)};var c=t.concat("iframe").join(",");function l(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 u(e){return"INPUT"===e.tagName}e.exports=o},529:function(e){e.exports=function(){for(var e={},n=0;n<arguments.length;n++){var r=arguments[n];for(var o in r)t.call(r,o)&&(e[o]=r[o])}return e};var t=Object.prototype.hasOwnProperty}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=window.wp.element,t=window.ctEvents,r=n.n(t),o=window.wp.i18n,a=n(184),i=n.n(a),c=window.React,l=n.n(c);function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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}n(697);var m=function(e){return e.initialState,e.getInitialState,e.refs,e.getRefs,e.didMount,e.didUpdate,e.willUnmount,e.getSnapshotBeforeUpdate,e.shouldUpdate,e.render,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"])},p=function(e){function t(){var n,r;s(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=u(this,e.call.apply(e,[this].concat(a))),d.call(r),u(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().Component);p.defaultProps={getInitialState:function(){},getRefs:function(){return{}}};var d=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)}},f=p,y=function(t){var n=t.children,r=t.container,o=void 0===r?document.body:r,a=t.type,i=void 0===a?"reach-portal":a;return(0,e.createElement)(f,{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(i),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(t){var r=t.refs.node;return r?(0,e.createPortal)(n,r):null}})},b=function(e,t){return function(n){if(e&&e(n),!n.defaultPrevented)return t(n)}},h=n(172),v=n.n(h);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},g.apply(this,arguments)}function _(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var E=function(){},w=function(){},k=function(e){var t=e.refs;t.trap.deactivate(),t.disposeAriaHider()},O=React.createContext(),x=React.forwardRef((function(t,n){var r=t.container,o=t.isOpen,a=void 0===o||o,i=t.onDismiss,c=void 0===i?E:i,l=t.initialFocusRef,s=t.onClick,u=t.onKeyDown,m=_(t,["container","isOpen","onDismiss","initialFocusRef","onClick","onKeyDown"]);return(0,e.createElement)(f,{didMount:w},a?(0,e.createElement)(y,{container:r,"data-reach-dialog-wrapper":!0},(0,e.createElement)(f,{refs:{overlayNode:null,contentNode:null},didMount:function(e){!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=v()(e.overlayNode,{initialFocus:t?function(){return t.current}:void 0,fallbackFocus:e.contentNode,escapeDeactivates:!1,clickOutsideDeactivates:!1})}(e.refs,l)},willUnmount:k},(function(t){var r=t.refs;return(0,e.createElement)(O.Provider,{value:function(e){return r.contentNode=e}},(0,e.createElement)("div",g({"data-reach-dialog-overlay":!0,onClick:b(s,(function(e){e.stopPropagation(),c()})),onKeyDown:b(u,(function(e){"Escape"===e.key&&(e.stopPropagation(),c())})),ref:function(e){r.overlayNode=e,n&&n(e)}},m)))}))):null)}));x.propTypes={initialFocusRef:function(){}};var S=function(e){return e.stopPropagation()},C=React.forwardRef((function(t,n){var r=t.onClick,o=(t.onKeyDown,_(t,["onClick","onKeyDown"]));return(0,e.createElement)(O.Consumer,null,(function(t){return(0,e.createElement)("div",g({"aria-modal":"true","data-reach-dialog-content":!0,tabIndex:"-1",onClick:b(r,S),ref:function(e){t(e),n&&n(e)}},o))}))})),j=window.blocksyOptions,D=function(e){return!!e},A=function(t){var n=t.items,r=t.isVisible,o=void 0===r?D:r,a=t.render,c=t.className,l=t.onDismiss;return(0,e.createElement)(j.Transition,{items:n,onStart:function(){return document.body.classList[o(n)?"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(t){return o(t)&&function(n){return(0,e.createElement)(x,{style:{opacity:n.opacity},container:document.querySelector("#wpbody"),onDismiss:function(){return l()}},(0,e.createElement)(C,{className:i()("ct-admin-modal",c),style:{transform:"translate3d(0px, ".concat(n.y,"px, 0px)")}},(0,e.createElement)("button",{className:"close-button",onClick:function(){return l()}},"×"),a(t,n)))}}))};function P(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 M=function(t){var n,r,o=(n=(0,e.useState)(!1),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}}(n,r)||function(e,t){if(e){if("string"==typeof e)return P(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)?P(e,t):void 0}}(n,r)||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.")}()),a=o[0],i=o[1];return[function(){return i(!0)},(0,e.createElement)(A,{items:a,onDismiss:function(){return i(!1)},render:function(){return(0,e.createElement)("div",{className:"ct-modal-content",dangerouslySetInnerHTML:{__html:t.readme}})}})]},N=(window.ctDashboardLocalizations||{}).DashboardContext,L=((N||{}).Provider,(N||{}).Consumer,N);function z(e,t,n,r,o,a,i){try{var c=e[a](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,o)}function T(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){z(a,r,o,i,c,"next",e)}function c(e){z(a,r,o,i,c,"throw",e)}i(void 0)}))}}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)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return B(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)?B(e,t):void 0}}(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 R=function(){return ctDashboardLocalizations.plugin_data.hide_support_section?null:(0,e.createElement)("div",{className:"ct-support-container"},(0,e.createElement)("h2",null,(0,o.__)("Need help or advice?","blocksy-companion")),(0,e.createElement)("p",null,(0,o.__)("Got a question or need help with the theme? You can always submit a support ticket or ask for help in our friendly Facebook community.","blocksy-companion")),(0,e.createElement)("a",{href:ctDashboardLocalizations.support_url,className:"ct-button","data-hover":"blue",target:"_blank"},(0,o.__)("Submit a Support Ticket","blocksy-companion")),(0,e.createElement)("a",{href:"https://www.facebook.com/groups/blocksy.community",className:"ct-button","data-hover":"blue",target:"_blank"},(0,o.__)("Join Facebook Community","blocksy-companion")))};function F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function U(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?F(Object(n),!0).forEach((function(t){V(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function V(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H(e,t,n,r,o,a,i){try{var c=e[a](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,o)}function q(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}}(e,t)||function(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}}(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 W=null,Z=function(t){var n=t.extension,r=t.onExtsSync,a=q(M(n),2),c=a[0],l=a[1],s=q(function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},r=I((0,e.useState)(!1),2),a=r[0],i=r[1],c=I((0,e.useState)(!1),2),l=c[0],s=c[1],u=(0,e.useContext)(L),m=(u.Link,u.history),p=ctDashboardLocalizations.plugin_data.is_pro,d=function(){var e=T(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(p||!t.config.pro){e.next=3;break}return s(!0),e.abrupt("return");case 3:return(r=new FormData).append("ext",t.name),r.append("action",t.__object?"blocksy_extension_deactivate":"blocksy_extension_activate"),i(!0),e.prev=7,e.next=10,fetch(ctDashboardLocalizations.ajax_url,{method:"POST",body:r});case 10:t.config.require_refresh&&location.reload(),n(),e.next=16;break;case 14:e.prev=14,e.t0=e.catch(7);case 16:i(!1);case 17:case"end":return e.stop()}}),e,null,[[7,14]])})));return function(){return e.apply(this,arguments)}}();return[a,d,!p&&t.config.pro?(0,e.createElement)(A,{items:l,className:"ct-onboarding-modal",onDismiss:function(){return s(!1)},render:function(){return(0,e.createElement)("div",{className:"ct-modal-content"},(0,e.createElement)("svg",{width:"55",height:"55",viewBox:"0 0 40.5 48.3"},(0,e.createElement)("path",{fill:"#2d82c8",d:"M33.4 29.4l7.1 12.3-7.4.6-4 6-7.3-12.9"}),(0,e.createElement)("path",{d:"M33.5 29.6L26 42.7l-4.2-7.3 11.6-6 .1.2zM0 41.7l7.5.6 3.9 6 7.2-12.4-11-7.3L0 41.7z",fill:"#2271b1"}),(0,e.createElement)("path",{d:"M39.5 18.7c0 1.6-2.4 2.8-2.7 4.3-.4 1.5 1 3.8.2 5.1-.8 1.3-3.4 1.2-4.5 2.3-1.1 1.1-1 3.7-2.3 4.5-1.3.8-3.6-.6-5.1-.2-1.5.4-2.7 2.7-4.3 2.7S18 35 16.5 34.7c-1.5-.4-3.8 1-5.1.2s-1.2-3.4-2.3-4.5-3.7-1-4.5-2.3.6-3.6.2-5.1-2.7-2.7-2.7-4.3 2.4-2.8 2.7-4.3c.4-1.5-1-3.8-.2-5.1C5.4 8 8.1 8.1 9.1 7c1.1-1.1 1-3.7 2.3-4.5s3.6.6 5.1.2C18 2.4 19.2 0 20.8 0c1.6 0 2.8 2.4 4.3 2.7 1.5.4 3.8-1 5.1-.2 1.3.8 1.2 3.4 2.3 4.5 1.1 1.1 3.7 1 4.5 2.3s-.6 3.6-.2 5.1c.3 1.5 2.7 2.7 2.7 4.3z",fill:"#599fd9"}),(0,e.createElement)("path",{d:"M23.6 7c-6.4-1.5-12.9 2.5-14.4 8.9-.7 3.1-.2 6.3 1.5 9.1 1.7 2.7 4.3 4.6 7.4 5.4.9.2 1.9.3 2.8.3 2.2 0 4.4-.6 6.3-1.8 2.7-1.7 4.6-4.3 5.4-7.5C34 15 30 8.5 23.6 7zm7 14c-.6 2.6-2.2 4.8-4.5 6.2-2.3 1.4-5 1.8-7.6 1.2-2.6-.6-4.8-2.2-6.2-4.5-1.4-2.3-1.8-5-1.2-7.6.6-2.6 2.2-4.8 4.5-6.2 1.6-1 3.4-1.5 5.2-1.5.8 0 1.5.1 2.3.3 5.4 1.3 8.7 6.7 7.5 12.1zm-8.2-4.5l3.7.5-2.7 2.7.7 3.7-3.4-1.8-3.3 1.8.6-3.7-2.7-2.7 3.8-.5 1.6-3.4 1.7 3.4z",fill:"#fff"})),(0,e.createElement)("h2",{className:"ct-modal-title"},"This is a Pro extension"),(0,e.createElement)("p",null,(0,o.__)("Upgrade to the Pro version and get instant access to all premium extensions, features and future updates.","blocksy-companion")),(0,e.createElement)("div",{className:"ct-modal-actions has-divider","data-buttons":"2"},(0,e.createElement)("a",{onClick:function(e){e.preventDefault(),s(!1),setTimeout((function(){m.navigate("/pro")}),300)},className:"button"},(0,o.__)("Free vs Pro","blocksy")),(0,e.createElement)("a",{href:"https://creativethemes.com/blocksy/pricing/",target:"_blank",className:"button button-primary"},(0,o.__)("Upgrade Now","blocksy-companion"))))}}):null]}(n,(function(){r()})),3),u=s[0],m=s[1],p=s[2];return(0,e.createElement)("li",{className:i()({active:!!n.__object})},(0,e.createElement)("h4",{className:"ct-extension-title"},n.config.name,u&&(0,e.createElement)("svg",{width:"15",height:"15",viewBox:"0 0 100 100"},(0,e.createElement)("g",{transform:"translate(50,50)"},(0,e.createElement)("g",{transform:"scale(1)"},(0,e.createElement)("circle",{cx:"0",cy:"0",r:"50",fill:"#687c93"}),(0,e.createElement)("circle",{cx:"0",cy:"-26",r:"12",fill:"#ffffff",transform:"rotate(161.634)"},(0,e.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&&(0,e.createElement)("div",{className:"ct-extension-description"},n.config.description),(0,e.createElement)("div",{className:"ct-extension-actions"},(0,e.createElement)("button",{className:i()(n.__object?"ct-button":"ct-button-primary"),"data-hover":"white",disabled:u,onClick:function(){m()}},n.__object?(0,o.__)("Deactivate","blocksy-companion"):(0,o.__)("Activate","blocksy-companion")),n.readme&&(0,e.createElement)("button",{onClick:function(){return c()},className:"ct-minimal-button ct-instruction"},(0,e.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 24 24"},(0,e.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"}))),n.__object&&n.config&&n.config.buttons&&n.config.buttons.map((function(t,n){var r=t.text,o=t.url;return(0,e.createElement)("a",{href:o,className:"ct-button ct-config-btn",dataButton:"white"},r)}))),l,p)},$=function(){var t=q((0,e.useState)(!W),2),n=t[0],a=t[1],c=q((0,e.useState)(W||[]),2),l=c[0],s=c[1],u=q((0,e.useState)(!1),2),m=u[0],p=u[1],d=q((0,e.useState)("free"),2),f=d[0],y=d[1],b=function(){var e,t=(e=regeneratorRuntime.mark((function e(){var t,n,r,o,i,c,l,u,m,d=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=d.length>0&&void 0!==d[0]?d[0]:{},n=U({verbose:!1,extension:null,extAction:null},t),r=n.verbose,o=n.extension,i=n.extAction,r&&a(!0),p(!0),e.next=6,fetch("".concat(wp.ajax.settings.url,"?action=blocksy_extensions_status"),U({method:"POST"},o&&i?{body:JSON.stringify({extension:o,extAction:i})}:{}));case 6:if(200===(c=e.sent).status){e.next=9;break}return e.abrupt("return");case 9:return e.next=11,c.json();case 11:if(l=e.sent,u=l.success,m=l.data,u){e.next=16;break}return e.abrupt("return");case 16:if(p(!1),a(!1),s(m),W=m,!o){e.next=22;break}return e.abrupt("return",m[o]);case 22:return e.abrupt("return",m);case 23:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){H(a,r,o,i,c,"next",e)}function c(e){H(a,r,o,i,c,"throw",e)}i(void 0)}))});return function(){return t.apply(this,arguments)}}();(0,e.useEffect)((function(){b({verbose:!W});var e=function(){b()};return r().on("blocksy_exts_sync_exts",e),function(){r().off("blocksy_exts_sync_exts",e)}}),[]);var h=(0,e.useMemo)((function(){return Object.values(l).map((function(e,t){return U(U({},e),{},{name:Object.keys(l)[t]})})).find((function(e){return e.config.pro}))}),[l]),v=(0,e.useMemo)((function(){return Object.values(l).map((function(e,t){return U(U({},e),{},{name:Object.keys(l)[t]})})).filter((function(e){return!e.config.hidden})).filter((function(e){var t=e.config;return"free"===f?!t.pro:t.pro}))}),[f,l]);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"ct-extensions-container"},(0,e.createElement)(j.Transition,{items:n,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(t){return t?function(t){return(0,e.createElement)(j.animated.p,{style:t,className:"ct-loading-text"},(0,e.createElement)("span",null),(0,o.__)("Loading Extensions Status...","blocksy-companion"))}:function(t){return(0,e.createElement)(j.animated.div,{style:t},(0,e.createElement)(e.Fragment,null,h&&(0,e.createElement)("ul",{className:"ct-extensions-sourse"},["free","pro"].map((function(t){return(0,e.createElement)("li",{key:t,onClick:function(){return y(t)},className:i()({active:t===f})},{free:(0,o.__)("Free Extensions","blocksy-companion"),pro:(0,o.__)("Pro Extensions","blocksy-companion")}[t])}))),(0,e.createElement)("ul",{className:i()("ct-extensions-list",{"is-pro":"pro"===f})},v.map((function(t){var n={extension:Z};return r().trigger("ct:extensions:card",{CustomComponent:n,extension:t}),(0,e.createElement)(n.extension,{key:t.name,extension:t,extsSyncLoading:m,onExtsSync:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.extAction||(l[t.name].__object=!l[t.name].__object,s(l)),b(U(U({},e),{},{extension:t.name}))}})}))),(0,e.createElement)(R,null)))}}))))},K=function(t){var n=t.children,r=t.activated,o=t.checked,a=t.onChange;return(0,e.createElement)("div",{onClick:function(){return a()},className:i()("ct-checkbox-container",{activated:r})},n,(0,e.createElement)("span",{className:i()("ct-checkbox",{active:o})},(0,e.createElement)("svg",{width:"10",height:"8",viewBox:"0 0 11.2 9.1"},(0,e.createElement)("polyline",{class:"check",points:"1.2,4.8 4.4,7.9 9.9,1.2 "}))))};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 Y(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}function Q(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 ee=function(e){return({"stackable-ultimate-gutenberg-blocks":"Stackable - Gutenberg Blocks","wpforms-lite":"WPForms - Contact Form",woocommerce:"WooCommerce",elementor:"Elementor",brizy:"Brizy",getwid:"Getwid","simply-gallery-block":"SimpLy Gallery Block & Lightbox","recipe-card-blocks-by-wpzoom":"Recipe Card Blocks by WPZOOM","map-block-gutenberg":"Map Block for Google Maps","mb-custom-post-type":"MB Custom Post Types & Custom Taxonomies",leadin:"HubSpot","block-slider":"Block Slider","ht-slider-for-elementor":"HT Slider For Elementor","modula-best-grid-gallery":"Modula - Image Gallery"}[e]||e).replace(/\b\w/,(function(e){return e.toUpperCase()}))},te=function(t){var n,r,a=t.demoConfiguration,i=t.setDemoConfiguration,c=t.style,l=(0,e.useContext)(We),s=l.currentDemo,u=l.demos_list,m=l.pluginsStatus,p=(l.setCurrentDemo,n=(s||"").split(":"),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Q(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)?Q(e,t):void 0}}(n,r)||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.")}()),d=p[0];return p[1],u.filter((function(e){return e.name===d||""})),(0,e.createElement)("div",{style:c},(0,e.createElement)("div",{className:"ct-demo-plugins"},(0,e.createElement)("i",{className:"ct-demo-icon"},(0,e.createElement)("svg",{width:"40",height:"40",viewBox:"0 0 40 40"},(0,e.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"}),(0,e.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"}))),(0,e.createElement)("h2",null,(0,o.__)("Install & Activate Plugins","blocksy-companion")),(0,e.createElement)("p",null,(0,o.__)("The following plugins are required for this starter site in order to work properly.","blocksy-companion")),a.plugins.map((function(t){var n=t.plugin,r=t.enabled;return(0,e.createElement)(e.Fragment,{key:n},!m[n]&&(0,e.createElement)(K,{key:n,checked:r,onChange:function(){return i(Y(Y({},a),{},{plugins:a.plugins.map((function(e){return e.plugin===n?Y(Y({},e),{},{enabled:!r}):e}))}))}},ee(n)),m[n]&&(0,e.createElement)(K,{activated:!0,checked:!0,onChange:function(){}},ee(n)))}))))},ne=function(){var t=(0,e.useContext)(We),n=t.currentlyInstalledDemo,r=t.demos_list,a=t.setCurrentDemo,c=t.demo_error,l=t.setInstallerBlockingReleased;return(0,e.useContext)(L).Link,(0,e.createElement)("ul",null,r.filter((function(e,t){return r.map((function(e){return e.name})).indexOf(e.name)===t})).map((function(t){return(0,e.createElement)("li",{key:t.name,className:i()("ct-single-demo",{"ct-is-pro":t.is_pro})},(0,e.createElement)("figure",null,(0,e.createElement)("img",{src:t.screenshot}),(0,e.createElement)("section",null,(0,e.createElement)("h3",null,(0,o.__)("Available for","blocksy-companion")),(0,e.createElement)("div",null,r.filter((function(e){return e.name===t.name||""})).sort((function(e,t){return e.builder<t.builder?-1:e.builder>t.builder?1:0})).map((function(t){var n=t.builder;return(0,e.createElement)("span",{key:n},ee(n)||"Gutenberg")})))),t.is_pro&&(0,e.createElement)("a",{onClick:function(e){return e.preventDefault()},href:"#"},"PRO")),(0,e.createElement)("div",{className:"ct-demo-actions"},(0,e.createElement)("h4",null,t.name),(0,e.createElement)("div",null,(0,e.createElement)("a",{className:"ct-button",target:"_blank",href:t.url},(0,o.__)("Preview","blocksy-companion")),(0,e.createElement)("button",{className:"ct-button-primary",onClick:function(){l(!1),a(t.name)},disabled:!!c},n&&n.demo.indexOf(t.name)>-1?(0,o.__)("Modify","blocksy-companion"):(0,o.__)("Import","blocksy-companion")))))})))};function re(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return oe(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)?oe(e,t):void 0}}(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(t){var n=t.style,r=t.nextStep,a=((0,e.useContext)(L).is_child_theme,(0,e.useContext)(We)),i=a.setCurrentlyInstalledDemo,c=a.setCurrentDemo,l=a.currentDemo,s=a.demos_list,u=re((0,e.useState)(0),2),m=u[0],p=u[1],d=re((0,e.useState)("idle"),2),f=d[0],y=d[1],b=re((l||"").split(":"),2),h=b[0],v=(b[1],s.filter((function(e){return e.name===h}))),g={erase_content:{title:(0,o.__)("Erase content","blocksy-companion"),query_string:"action=blocksy_demo_erase_content&wp_customize=on"},deactivate_demo_plugins:{title:(0,o.__)("Deactivate demo plugins","blocksy-companion"),query_string:"action=blocksy_demo_deactivate_plugins&plugins=".concat(v[0].plugins.join(":"))},deregister_current_demo:{title:(0,o.__)("Erase content","blocksy-companion"),query_string:"action=blocksy_demo_deregister_current_demo"}},_=["erase_content","deactivate_demo_plugins","deregister_current_demo"],E=_[m],w=function(){var e=g[E],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(),m===_.length-1)return void y("done");p(Math.min(_.length-1,m+1))}}};return(0,e.useEffect)((function(){0!==m&&"done"!==f&&w()}),[E]),(0,e.createElement)("div",{className:"ct-modify-demo",style:n},(0,e.createElement)("i",{className:"ct-demo-icon"},(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 40 40"},(0,e.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"}),(0,e.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"===f&&(0,e.createElement)("h2",null,(0,o.__)("This starter site is already installed","blocksy-companion")),"loading"===f&&(0,e.createElement)("h2",null,"Removing starter site..."),"done"===f&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("h2",null,(0,o.__)("Starter Site Removed","blocksy-companion")),(0,e.createElement)("div",{className:"ct-modify-actions"},(0,e.createElement)("button",{className:"ct-demo-btn ct-dismiss",onClick:function(e){e.preventDefault(),c("".concat(h,":hide"))}},(0,o.__)("Dismiss","blocksy-companion")))),"idle"===f&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("p",null,(0,o.__)("What steps do you want to perform next?","blocksy-companion")),(0,e.createElement)("div",{className:"ct-modify-actions"},(0,e.createElement)("button",{className:"ct-demo-btn demo-remove",onClick:function(e){y("loading"),e.preventDefault(),w(),i()}},(0,o.__)("Remove","blocksy-companion")),(0,e.createElement)("button",{className:"ct-demo-btn",onClick:function(e){e.preventDefault(),r()}},(0,o.__)("Reinstall","blocksy-companion")))))};function ie(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 ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ie(Object(n),!0).forEach((function(t){le(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ie(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function le(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var se=function(t){var n=t.demoConfiguration,r=t.setDemoConfiguration,a=t.style,i=(0,e.useContext)(L),c=i.is_child_theme,l=i.child_theme_exists;return(0,e.createElement)("div",{className:"ct-demo-child",style:a},(0,e.createElement)("i",{className:"ct-demo-icon"},(0,e.createElement)("svg",{width:"40",height:"40",viewBox:"0 0 43 41.1"},(0,e.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"}),(0,e.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"}),(0,e.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"}),(0,e.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"}),(0,e.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"}),(0,e.createElement)("rect",{x:"11.2",y:"11",fill:"#44ACDF",width:"16.8",height:"17.9"}),(0,e.createElement)("rect",{x:"31.5",y:"11",fill:"#44ACDF",width:"7.9",height:"17.9"}))),l?(0,e.createElement)("h2",null,(0,o.__)("Activate Child Theme","blocksy-companion")):(0,e.createElement)("h2",null,(0,o.__)("Install Child Theme","blocksy-companion")),!c&&(0,e.createElement)(e.Fragment,null,l?(0,e.createElement)("p",null,(0,o.__)("We strongly recommend to activate the child theme, this way you will have freedom to make changes without breaking the parent theme.","blocksy-companion")):(0,e.createElement)("p",null,(0,o.__)("We strongly recommend to install the child theme, this way you will have freedom to make changes without breaking the parent theme.","blocksy-companion")),(0,e.createElement)(K,{checked:n.child_theme,onChange:function(){return r(ce(ce({},n),{},{child_theme:!n.child_theme}))}},l?(0,o.__)("Activate Child Theme","blocksy-companion"):(0,o.__)("Install Child Theme","blocksy-companion"))),c&&(0,o.__)("You already have a child theme properly installed and activated. Move on.","blocksy-companion"),(0,e.createElement)("a",{href:"https://developer.wordpress.org/themes/advanced-topics/child-themes/",target:"_blank"},(0,o.__)("Learn more about child themes","blocksy-companion")))};function ue(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?ue(Object(n),!0).forEach((function(t){pe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function de(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(t){var n,r,a=t.demoConfiguration,c=t.setDemoConfiguration,l=t.style,s=(0,e.useContext)(We),u=s.currentDemo,m=s.demos_list,p=(s.pluginsStatus,s.setCurrentDemo,n=(u||"").split(":"),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}}(n,r)||function(e,t){if(e){if("string"==typeof e)return de(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)?de(e,t):void 0}}(n,r)||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.")}()),d=p[0],f=(p[1],m.filter((function(e){return e.name===d||""})));return(0,e.createElement)("div",{style:l},f.length>1&&(0,e.createElement)("div",{className:"ct-demo-builder"},(0,e.createElement)("i",{className:"ct-demo-icon"},(0,e.createElement)("svg",{width:"52",height:"40",viewBox:"0 0 52 40"},(0,e.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"}),(0,e.createElement)("path",{fill:"#CFDBE4",d:"M13.8,14.6v18.8h22.6V14.6H13.8zM34.8,31.9H15.4V16.1h19.4V31.9z"}),(0,e.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"}),(0,e.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"}),(0,e.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"}),(0,e.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"}),(0,e.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"}))),(0,e.createElement)("h2",null,(0,o.__)("Choose Page Builder","blocksy-companion")),(0,e.createElement)("p",null,(0,o.__)("This starter site can be imported and used with one of these page builders. Please select your prefered one in order to continue.","blocksy-companion")),(0,e.createElement)("ul",{"data-count":f.length},f.sort((function(e,t){return e.builder<t.builder?-1:e.builder>t.builder?1:0})).map((function(t){var n=t.builder,r=t.plugins;return(0,e.createElement)("li",{className:i()({active:n===(null===a.builder?f[0].builder:a.builder)}),onClick:function(){return c(me(me({},a),{},{builder:n,plugins:r.map((function(e){return{plugin:e,enabled:!0}}))}))}},(0,e.createElement)("figure",null,(0,e.createElement)("span",{className:i()("ct-checkbox",{active:n===(null===a.builder?f[0].builder:a.builder)})},(0,e.createElement)("svg",{width:"10",height:"8",viewBox:"0 0 11.2 9.1"},(0,e.createElement)("polyline",{className:"check",points:"1.2,4.8 4.4,7.9 9.9,1.2 "}))),""===n&&(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 150 100"},(0,e.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"===n&&(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 150 100"},(0,e.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"}),(0,e.createElement)("path",{fill:"#a7b2dd",d:"M14.6 63.2l10.8-6.5L75 86.8l49.9-30 10.5 6.4L75 100z"})),"elementor"===n&&(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 150 100"},(0,e.createElement)("path",{d:"M32.5 7.6h17v84.9h-17V7.6zm34 84.9h51v-17h-51v17zm0-34h51v-17h-51v17zm0-51v17h51v-17h-51z"}))),(0,e.createElement)("div",{className:"builder-name"},ee(n)||"Gutenberg"))})))))};function ye(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 be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ye(Object(n),!0).forEach((function(t){he(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function he(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ve=function(t){var n=t.demoConfiguration,r=t.setDemoConfiguration,a=(t.currentDemo,t.style);return(0,e.createElement)("div",{style:a},(0,e.createElement)("i",{className:"ct-demo-icon"},(0,e.createElement)("svg",{width:"40",height:"40",viewBox:"0 0 40 40"},(0,e.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"}),(0,e.createElement)("rect",{x:"2.5",y:"14",width:"35",height:"3",rx:"1.5",fill:"#0c7ab3"}),(0,e.createElement)("rect",{x:"5",y:"7",width:"30",height:"3",rx:"1.5",fill:"#3497d3"}),(0,e.createElement)("rect",{x:"7.5",width:"25",height:"3",rx:"1.5",fill:"#44acdf"}))),(0,e.createElement)("h2",null,(0,o.__)("Import Content","blocksy-companion")),(0,e.createElement)("p",null,(0,o.__)("This will import posts, pages, comments, navigation menus, custom fields, terms and custom posts","blocksy-companion")),["options","widgets","content"].map((function(t){return(0,e.createElement)(K,{checked:n.content[t],onChange:function(){return r(be(be({},n),{},{content:be(be({},n.content),{},he({},t,!n.content[t]))}))},key:t},t.split("_").map((function(e){return e.replace(/^\w/,(function(e){return e.toUpperCase()}))})).join(" "))})),(0,e.createElement)("div",{className:"ct-demo-erase"},(0,e.createElement)(K,{checked:n.content.erase_content,onChange:function(){return r(be(be({},n),{},{content:be(be({},n.content),{},{erase_content:!n.content.erase_content})}))}},(0,e.createElement)("div",null,(0,o.__)("Clean Install","blocksy-companion"),(0,e.createElement)("i",null,(0,o.__)("This option will remove the previous imported content and will perform a fresh and clean install.","blocksy-companion"))))))},ge=function(){var t=(0,e.useContext)(L),n=t.home_url,r=t.customizer_url;return(0,e.createElement)("div",{className:"ct-install-success"},(0,e.createElement)("h2",null,(0,o.__)("Starter Site Imported Successfully","blocksy-companion")),(0,e.createElement)("p",null,(0,o.__)("Now you can view your website or start customizing it","blocksy-companion")),(0,e.createElement)("div",null,(0,e.createElement)("a",{href:r,className:"ct-button"},(0,o.__)("Customize","blocksy-companion")),(0,e.createElement)("a",{href:n,target:"_blank",className:"ct-button-primary"},(0,o.__)("View site","blocksy-companion"))))};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}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)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Oe(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)?Oe(e,t):void 0}}(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 xe=function(e){e.preventDefault(),e.returnValue=""},Se=function(e){var t=e.demoConfiguration,n=e.pluginsStatus,r=e.is_child_theme,o=e.includeMetaSteps,a=[];return void 0!==o&&o&&a.push("register_current_demo"),t.child_theme&&(r||a.push("child_theme")),t.plugins.filter((function(e){var t=e.enabled,r=e.plugin;return!!t&&!n[r]})).length>0&&a.push("plugins"),t.content.erase_content&&a.push("erase_content"),t.content.options&&a.push("options"),t.content.widgets&&a.push("widgets"),t.content.content&&a.push("content"),a.push("install_finish"),a},Ce=function(e,t){var n=e.action;if("complete"===n)return"";if("import_install_child"===n)return(0,o.__)("copying child theme sources","blocksy-companion");if("import_activate_child"===n)return(0,o.__)("activating child theme","blocksy-companion");if("install_plugin"===n)return(0,o.sprintf)((0,o.__)("installing plugin %s","blocksy-companion"),ee(e.name)||e.name);if("activate_plugin"===n)return(0,o.sprintf)((0,o.__)("activating plugin %s","blocksy-companion"),ee(e.name)||e.name);if("download_demo_widgets"===n)return(0,o.__)("downloading demo widgets","blocksy-companion");if("apply_demo_widgets"===n)return(0,o.__)("installing demo widgets","blocksy-companion");if("download_demo_options"===n)return(0,o.__)("downloading demo options","blocksy-companion");if("import_mods_images"===n)return(0,o.__)("importing images from customizer","blocksy-companion");if("import_customizer_options"===n)return(0,o.__)("import customizer options","blocksy-companion");if("activate_required_extensions"===n)return(0,o.__)("activating required extensions","blocksy-companion");if("erase_previous_posts"===n)return(0,o.__)("removing previously installed posts","blocksy-companion");if("erase_previous_terms"===n)return(0,o.__)("removing previously installed taxonomies","blocksy-companion");if("erase_default_pages"===n)return(0,o.__)("removing default WordPress pages","blocksy-companion");if("erase_customizer_settings"===n)return(0,o.__)("resetting customizer options","blocksy-companion");if("erase_widgets_data"===n)return(0,o.__)("resetting widgets","blocksy-companion");if("content_installer_progress"===n){if(!e.kind)return"";var r=t.content.preliminary_data["".concat(e.kind,"_count")],a=t.content["".concat(e.kind,"_count")];return"".concat(Math.min(a,r)," of ").concat(r," ").concat({users:(0,o.__)("users","blocksy-companion"),term:(0,o.__)("terms","blocksy-companion"),media:(0,o.__)("images","blocksy-companion"),post:(0,o.__)("posts","blocksy-companion"),comment:(0,o.__)("comments","blocksy-companion")}[e.kind])}return""},je=function(t){var n=t.stepName,r=t.stepsDescriptors,a=t.lastMessage,i=t.progress;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("i",{className:"ct-demo-icon"},(0,e.createElement)("svg",{width:"40",height:"40",viewBox:"0 0 50 50"},(0,e.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"}),(0,e.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"}),(0,e.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"}))),(0,e.createElement)("h2",null,(0,o.__)("Installing","blocksy-companion"),"..."),(0,e.createElement)("p",null,(0,o.__)("Please be patient and don't refresh this page, the import process may take a while, this also depends on your server.","blocksy-companion")),(0,e.createElement)("div",{className:"ct-progress-info"},r[n].title,a&&Ce(a,r)?": ".concat(Ce(a,r)):"",(0,e.createElement)("span",null,Math.round(i),"%")),(0,e.createElement)("div",{style:{"--progress":"".concat(i,"%")},className:"ct-installer-progress"},(0,e.createElement)("div",null)))},De=function(){return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("i",{className:"ct-demo-icon"},(0,e.createElement)("svg",{width:"37",height:"37",viewBox:"0 0 40 40"},(0,e.createElement)("path",{fill:"#BDC8D7",d:"M30.7,25.4L14.6,9.3c0.7-2.5,0-5.2-1.9-7.2c-2.4-2.3-6-2.7-8.8-1.3l4.5,4.5L7.9,7.9L5.3,8.4L0.8,3.9c-1.5,2.8-1,6.4,1.3,8.7c2,2,4.7,2.6,7.2,1.9l16.1,16.1c-0.7,2.5,0,5.2,1.9,7.2c2.3,2.3,5.9,2.8,8.7,1.3l-4.5-4.5L32,32l2.6-0.5l4.5,4.5c1.5-2.8,1-6.4-1.3-8.7C35.9,25.4,33.1,24.7,30.7,25.4z"}),(0,e.createElement)("polygon",{fill:"#44ACDF",points:"34.6,11.3 39.8,3.7 36.3,0.2 28.7,5.4 28.7,7.8 11.8,24.7 15.3,28.2 32.2,11.3 "}),(0,e.createElement)("path",{fill:"#0C7AB3",d:"M18.4,27.5l-5.9-5.9c-0.4-0.4-1-0.4-1.4,0s-0.4,1,0,1.4l0,0L0.7,33.5c-0.7,0.7-0.7,1.7,0,2.3l3.5,3.5c0.7,0.7,1.7,0.7,2.3,0L17,28.9l0,0c0.2,0.2,0.5,0.3,0.7,0.3s0.5-0.1,0.7-0.3C18.8,28.5,18.8,27.9,18.4,27.5z"}))),(0,e.createElement)("h2",null,(0,o.__)("Can't Import Starter Site","blocksy-companion")),(0,e.createElement)("p",null,(0,o.__)("Unfortunately, your hosting configuration doesn't meet the minimum requirements for importing a starter site.","blocksy-companion")),(0,e.createElement)("a",{href:"https://creativethemes.com/blocksy/docs/troubleshooting/starter-site-import-stuck-at-xx/",className:"ct-demo-btn",target:"_blank"},"More Information"))},Ae=function(t){var n=t.demoConfiguration,r=t.style,a=function(t){var n=(0,e.useContext)(We),r=n.demos_list,a=n.currentDemo,i=(n.setCurrentDemo,n.setInstallerBlockingReleased),c=n.setCurrentlyInstalledDemo,l=n.pluginsStatus,s=(0,e.useContext)(L),u=(s.home_url,s.customizer_url,s.is_child_theme),m=(s.Link,ke((0,e.useState)(!1),2)),p=m[0],d=m[1],f=ke((0,e.useState)(!1),2),y=f[0],b=f[1],h=ke((0,e.useState)(0),2),v=h[0],g=h[1],_=ke((a||"").split(":"),2),E=_[0],w=(_[1],r.filter((function(e){return e.name===E})).sort((function(e,t){return e.builder<t.builder?-1:e.builder>t.builder?1:0}))),k=t.plugins.filter((function(e){var t=e.enabled,n=e.plugin;return t&&!l[n]})).map((function(e){return e.plugin})),O=ke((0,e.useState)({register_current_demo:{title:(0,o.__)("Register demo","blocksy-companion"),query_string:"action=blocksy_demo_register_current_demo&wp_customize=on&demo_name=".concat(a,":").concat(null===t.builder?w[0].builder:t.builder),expected_signals:1},child_theme:{title:(0,o.__)("Child theme","blocksy-companion"),query_string:"action=blocksy_demo_install_child_theme",expected_signals:3},plugins:{title:(0,o.__)("Required plugins","blocksy-companion"),query_string:"action=blocksy_demo_activate_plugins&plugins=".concat(k.join(":")),expected_signals:2*k.length+1},fake_step:{title:(0,o.__)("Fake Required plugins","blocksy-companion"),query_string:"action=blocksy_demo_fake_step",expected_signals:6},erase_content:{title:(0,o.__)("Erase content","blocksy-companion"),query_string:"action=blocksy_demo_erase_content&wp_customize=on",expected_signals:6},install_finish:{title:(0,o.__)("Final touches","blocksy-companion"),query_string:"action=blocksy_demo_install_finish&wp_customize=on",expected_signals:1},options:{title:(0,o.__)("Import options","blocksy-companion"),query_string:"action=blocksy_demo_install_options&wp_customize=on&demo_name=".concat(a,":").concat(null===t.builder?w[0].builder:t.builder),expected_signals:5},widgets:{title:(0,o.__)("Import widgets","blocksy-companion"),query_string:"action=blocksy_demo_install_widgets&wp_customize=on&demo_name=".concat(a,":").concat(null===t.builder?w[0].builder:t.builder),expected_signals:3},content:{title:(0,o.__)("Import content","blocksy-companion"),query_string:"action=blocksy_demo_install_content&wp_customize=on&demo_name=".concat(a,":").concat(null===t.builder?w[0].builder:t.builder),expected_signals:50}}),2),x=O[0],S=O[1],C=Se({demoConfiguration:t,pluginsStatus:l,is_child_theme:u,includeMetaSteps:!0}),j=C[v],D=ke((0,e.useState)(0),2),A=D[0],P=D[1],M=ke((0,e.useState)(null),2),N=M[0],z=M[1],T=(0,e.useRef)(A),I=(0,e.useRef)(x);(0,e.useEffect)((function(){T.current=A,I.current=x}));var B=function(e){return"content"===e?1===C.length?100:50:C.indexOf("content")>-1?50/(C.length-1):100/C.length},R=C.reduce((function(e,t,n){return n>=v?e:e+B(t)}),0)+100*A/x[j].expected_signals*(B(j)/100),F=function(){var e=x[j],t=new EventSource("".concat(ctDashboardLocalizations.ajax_url,"?").concat(e.query_string));t.onerror=function(e){b(!0)},t.onmessage=function(e){var n=JSON.parse(e.data);if(P(T.current+1),"content_installer_progress"===n.action){var r=n.kind;r&&(z(n),S(Ee(Ee({},I.current),{},{content:Ee(Ee({},I.current.content),{},we({},"".concat(r,"_count"),I.current.content["".concat(r,"_count")]+1))})))}else z(n);if("get_content_preliminary_data"===n.action){var o=n.data,a=(o.comment_count,o.media_count,o.post_count,o.term_count,o.users,Ee(Ee({},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}));S(Ee(Ee({},I.current),{},{content:Ee(Ee({},I.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(),v===C.length-1)return d(!0),i(!0),void window.removeEventListener("beforeunload",xe);z(null),P(0),g(Math.min(C.length-1,v+1))}}};return(0,e.useEffect)((function(){p||(z(null),P(0),"fake_step"===j?(console.log("here we go delay before fake_step"),setTimeout((function(){F()}),2e3)):F())}),[j]),(0,e.useEffect)((function(){return window.addEventListener("beforeunload",xe),c({demo:"".concat(a,":").concat(t.builder)}),function(){window.removeEventListener("beforeunload",xe)}}),[]),{isCompleted:p,isError:y,stepName:j,stepsDescriptors:x,lastMessage:N,progress:R}}(n),i=a.isCompleted,c=a.isError,l=a.stepName,s=a.stepsDescriptors,u=a.lastMessage,m=a.progress,p=i?"complete":c?"error":"progress";return(0,e.createElement)("div",{className:"ct-demo-install",style:r},(0,e.createElement)(j.Transition,{initial:!0,items:p,from:{opacity:0},enter:[{opacity:1}],leave:[{opacity:0}],config:function(e,t){return"leave"===t?{duration:300}:{delay:300,duration:300}}},(function(t){return function(n){return(0,e.createElement)("div",{style:n},"complete"===t&&(0,e.createElement)(ge,null),"error"===t&&(0,e.createElement)(De,null),"progress"===t&&(0,e.createElement)(je,{stepName:l,stepsDescriptors:s,lastMessage:u,progress:m}))}})))};function Pe(e){return function(e){if(Array.isArray(e))return Le(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Ne(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 Me(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}}(e,t)||Ne(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 Ne(e,t){if(e){if("string"==typeof e)return Le(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)?Le(e,t):void 0}}function Le(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 ze=function(t){t.location,t.navigate;var n=Me((0,e.useState)(!0),2),r=(n[0],n[1],(0,e.useContext)(We)),a=r.installerBlockingReleased,c=r.demos_list,l=r.currentDemo,s=r.pluginsStatus,u=r.currentlyInstalledDemo,m=r.setCurrentDemo,p=(0,e.useContext)(L).is_child_theme,d=Me((0,e.useState)(u),2),f=d[0],y=d[1],b=Me((0,e.useState)({builder:"",child_theme:!1,plugins:[],content:{options:!0,widgets:!0,content:!0,erase_content:!0}}),2),h=b[0],v=b[1],g=Me((0,e.useState)(0),2),_=g[0],E=g[1],w=Me((l||"").split(":"),2),k=w[0],O=(w[1],["modify_demo","child_theme","builder","plugins","content","installer"].filter((function(e){if(!l)return!1;if("modify_demo"===e){if(!f)return!1;if(-1===f.demo.indexOf(k))return!1}if("child_theme"===e&&p)return!1;var t=c.filter((function(e){return e.name===k})).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(Pe(e),Pe(t.plugins||[]))}),[]).filter((function(e){return!s[e]})).length)&&("builder"!==e||t.length>1)}))),x=O[_];return(0,e.useEffect)((function(){if(k&&!(l.indexOf(":hide")>-1)){var e=c.filter((function(e){return e.name===k})).sort((function(e,t){return e.builder<t.builder?-1:e.builder>t.builder?1:0}));E(0),y(u),v({builder:1===e.length?e[0].builder:null,child_theme:!1,plugins:e[0].plugins.map((function(e){return{plugin:e,enabled:!0}})),content:{options:!0,widgets:!0,content:!0,erase_content:!0}})}}),[l]),(0,e.createElement)(A,{items:l,isVisible:function(e){return e&&-1===e.indexOf(":hide")},className:i()("ct-demo-modal",{"ct-demo-installer":"installer"===x||"modify_demo"===x}),onDismiss:function(){("installer"!==x||a)&&m("".concat(k,":hide"))},render:function(){return(0,e.createElement)("div",{className:"ct-modal-content ct-demo-step-container"},(0,e.createElement)("div",{className:"ct-current-step"},(0,e.createElement)(j.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(t){return function(n){return(0,e.createElement)(e.Fragment,null,"modify_demo"===t&&(0,e.createElement)(ae,{demoConfiguration:h,nextStep:function(){E(Math.min(_+1,O.length-1))},style:n}),"child_theme"===t&&(0,e.createElement)(se,{style:n,demoConfiguration:h,setDemoConfiguration:v}),"plugins"===t&&(0,e.createElement)(te,{demoConfiguration:h,style:n,setDemoConfiguration:v}),"builder"===t&&(0,e.createElement)(fe,{style:n,demoConfiguration:h,setDemoConfiguration:v}),"content"===t&&(0,e.createElement)(ve,{style:n,demoConfiguration:h,setDemoConfiguration:v}),"installer"===t&&(0,e.createElement)(Ae,{style:n,demoConfiguration:h}))}}))),"installer"!==x&&"modify_demo"!==x&&(0,e.createElement)("div",{className:"ct-demo-step-controls"},_>0&&(0,e.createElement)("button",{className:"ct-demo-btn demo-back-btn",onClick:function(){E(Math.max(_-1,0))}},(0,o.__)("Back","blocksy-companion")),O.length>2&&(0,e.createElement)("ul",{className:"ct-steps-pills"},O.map((function(t,n){return n===O.length-1?null:(0,e.createElement)("li",{className:i()({active:t===x}),key:t},n+1)}))),(0,e.createElement)("button",{className:"ct-demo-btn demo-main-btn",disabled:"content"===x&&0===Se({demoConfiguration:h,pluginsStatus:s,is_child_theme:p}).length,onClick:function(){E(Math.min(_+1,O.length-1))}},"content"===x?(0,o.__)("Install","blocksy-companion"):(0,o.__)("Next","blocksy-companion"))))}})},Te=n(162),Ie=n.n(Te);function Be(e,t,n,r,o,a,i){try{var c=e[a](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,o)}function Re(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}}(e,t)||Fe(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 Fe(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 Ve=function(){var t=Re((0,e.useState)(!1),2),n=t[0],r=t[1],a=Re((0,e.useState)(!1),2),i=a[0],c=a[1],l=Re((0,e.useState)(""),2),s=l[0],u=l[1],m=Re((0,e.useState)(""),2),p=m[0],d=m[1],f=Re((0,e.useState)([]),2),y=f[0],b=f[1],h=Re((0,e.useState)(""),2),v=h[0],g=h[1],_=Re((0,e.useState)(!1),2),E=_[0],w=_[1],k=function(){var e,t=(e=regeneratorRuntime.mark((function e(){var t,n,o,a,i,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r(!0),(t=new FormData).append("action","blocksy_demo_export"),t.append("name",s),t.append("is_pro",E),t.append("url",v),t.append("builder",p),t.append("plugins",y.join(",")),t.append("wp_customize","on"),e.prev=9,e.next=12,fetch(ctDashboardLocalizations.ajax_url,{method:"POST",body:t});case 12:if(200!==(n=e.sent).status){e.next=20;break}return e.next=16,n.json();case 16:o=e.sent,a=o.success,i=o.data,a&&(c=new Blob([JSON.stringify(i.demo)],{type:"text/plain;charset=utf-8"}),Ie().saveAs(c,"".concat(s,".json")));case 20:e.next=24;break;case 22:e.prev=22,e.t0=e.catch(9);case 24:r(!1);case 25:case"end":return e.stop()}}),e,null,[[9,22]])})),function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){Be(a,r,o,i,c,"next",e)}function c(e){Be(a,r,o,i,c,"throw",e)}i(void 0)}))});return function(){return t.apply(this,arguments)}}();return ct_localizations.is_dev_mode?(0,e.createElement)("div",{className:"ct-export"},(0,e.createElement)("button",{className:"ct-button",onClick:function(e){c(!0)}},(0,o.__)("Site export")),(0,e.createElement)(A,{items:i,className:"ct-site-export-modal",onDismiss:function(){return c(!1)},render:function(){return(0,e.createElement)("div",{className:"ct-site-export"},(0,e.createElement)("label",null,(0,o.__)("Name","blocksy-companion"),(0,e.createElement)("input",{type:"text",placeholder:(0,o.__)("Name","blocksy-companion"),value:s,onChange:function(e){var t=e.target.value;return u(t)}})),(0,e.createElement)("label",null,(0,o.__)("Preview URL","blocksy-companion"),(0,e.createElement)("input",{type:"text",placeholder:(0,o.__)("Preview URL","blocksy-companion"),value:v,onChange:function(e){var t=e.target.value;return g(t)}})),(0,e.createElement)("label",null,(0,o.__)("PRO","blocksy-companion"),(0,e.createElement)("input",{type:"checkbox",value:E,onChange:function(e){return e.target.value,w(!E)}})),(0,e.createElement)("label",null,(0,o.__)("Builder","blocksy-companion"),(0,e.createElement)("input",{type:"text",placeholder:(0,o.__)("Builder","blocksy-companion"),value:p,onChange:function(e){var t=e.target.value;return d(t)}})),(0,e.createElement)("h3",null,"Required plugins"),(0,e.createElement)("div",{className:"ct-bundled-plugins-list ct-modal-scroll"},Object.keys({"stackable-ultimate-gutenberg-blocks":"Stackable - Gutenberg Blocks","wpforms-lite":"WPForms - Contact Form",woocommerce:"WooCommerce",elementor:"Elementor",brizy:"Brizy",getwid:"Getwid","simply-gallery-block":"SimpLy Gallery Block & Lightbox","recipe-card-blocks-by-wpzoom":"Recipe Card Blocks by WPZOOM","map-block-gutenberg":"Map Block for Google Maps","mb-custom-post-type":"MB Custom Post Types & Custom Taxonomies",leadin:"HubSpot","block-slider":"Block Slider","ht-slider-for-elementor":"HT Slider For Elementor","modula-best-grid-gallery":"Modula - Image Gallery"}).map((function(t){return(0,e.createElement)("label",{tabindex:"0",onClick:function(e){e.preventDefault(),b((function(e){return e.includes(t)?e.filter((function(e){return e!==t})):[].concat(function(e){if(Array.isArray(e))return Ue(e)}(n=e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(n)||Fe(n)||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.")}(),[t]);var n}))}},(0,e.createElement)("span",null,{"stackable-ultimate-gutenberg-blocks":"Stackable - Gutenberg Blocks","wpforms-lite":"WPForms - Contact Form",woocommerce:"WooCommerce",elementor:"Elementor",brizy:"Brizy",getwid:"Getwid","simply-gallery-block":"SimpLy Gallery Block & Lightbox","recipe-card-blocks-by-wpzoom":"Recipe Card Blocks by WPZOOM","map-block-gutenberg":"Map Block for Google Maps","mb-custom-post-type":"MB Custom Post Types & Custom Taxonomies",leadin:"HubSpot","block-slider":"Block Slider","ht-slider-for-elementor":"HT Slider For Elementor","modula-best-grid-gallery":"Modula - Image Gallery"}[t]),(0,e.createElement)("input",{type:"checkbox",checked:y.indexOf(t)>-1,onChange:function(e){e.target.checked}}))}))),(0,e.createElement)("button",{className:"ct-button",disabled:n,onClick:function(){return k()}},n?(0,o.__)("Loading...","blocksy-companion"):(0,o.__)("Export site","blocksy-companion")))}})):null};function He(e,t,n,r,o,a,i){try{var c=e[a](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,o)}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)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ge(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)?Ge(e,t):void 0}}(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 We=(0,e.createContext)({demos:[]}),Ze=null,$e=null,Ke=function(t){t.children,t.path,t.location;var n=qe((0,e.useState)(!Ze),2),r=n[0],a=n[1],i=qe((0,e.useState)(Ze||[]),2),c=i[0],l=i[1],s=qe((0,e.useState)($e||{}),2),u=s[0],m=s[1],p=qe((0,e.useState)(null),2),d=p[0],f=p[1],y=qe((0,e.useState)(null),2),b=y[0],h=y[1],v=qe((0,e.useState)(!1),2),g=v[0],_=v[1],E=qe((0,e.useState)({builder:""}),2),w=(E[0],E[1],qe((0,e.useState)(!1),2)),k=w[0],O=w[1],x=function(){var e,t=(e=regeneratorRuntime.mark((function e(){var t,n,r,o,i,c=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c.length>0&&void 0!==c[0]&&c[0]&&a(!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,i=r.data,o&&(l(i.demos),m(i.active_plugins),h(i.current_installed_demo),_(i.demo_error),$e=i.active_plugins,Ze=i.demos,i.demo_error);case 15:e.next=19;break;case 17:e.prev=17,e.t0=e.catch(4);case 19:a(!1);case 20:case"end":return e.stop()}}),e,null,[[4,17]])})),function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){He(a,r,o,i,c,"next",e)}function c(e){He(a,r,o,i,c,"throw",e)}i(void 0)}))});return function(){return t.apply(this,arguments)}}();return(0,e.useEffect)((function(){x(!Ze)}),[]),(0,e.createElement)("div",{className:"ct-demos-list-container"},g&&(0,e.createElement)("div",{className:"ct-demo-notification",dangerouslySetInnerHTML:{__html:g}}),(0,e.createElement)(j.Transition,{items:r,from:{opacity:0},enter:[{opacity:1}],leave:[{opacity:0}],config:function(e,t){return"leave"===t?{duration:300}:{delay:300,duration:300}}},(function(t){return t?function(t){return(0,e.createElement)(j.animated.p,{style:t,className:"ct-loading-text"},(0,e.createElement)("span",null),(0,o.__)("Loading Starter Sites...","blocksy-companion"))}:0===c.length?function(t){return(0,e.createElement)(j.animated.div,{style:t},(0,e.createElement)("div",{className:"ct-demo-notification",dangerouslySetInnerHTML:{__html:(0,o.__)("The connection to our <b>demo.creativethemes.com</b> server didn't worked. This connection is required for importing the starter sites from our demo content server. All you have to do is to contact your hosting provider and ask them to white list our demo server address.","blocksy-companion")}}),(0,e.createElement)(R,null))}:function(t){return(0,e.createElement)(j.animated.div,{style:t},(0,e.createElement)(e.Fragment,null,(0,e.createElement)(We.Provider,{value:{demo_error:g,demos_list:c.filter((function(e){return!e.dev||ct_localizations.is_dev_mode})),currentDemo:d,pluginsStatus:u,installerBlockingReleased:k,setInstallerBlockingReleased:O,setCurrentDemo:f,currentlyInstalledDemo:b,setCurrentlyInstalledDemo:h}},(0,e.createElement)(ne,null),(0,e.createElement)(ze,null),(0,e.createElement)(Ve,null)),(0,e.createElement)(R,null)))}})))};r().on("ct:dashboard:routes",(function(t){t.push({Component:function(){return(0,e.createElement)($,null)},path:"/extensions"}),"yes"===ctDashboardLocalizations.plugin_data.has_demo_install&&t.push({Component:function(t){return(0,e.createElement)(Ke,t)},path:"/demos"})})),r().on("ct:dashboard:navigation-links",(function(e){"yes"===ctDashboardLocalizations.plugin_data.has_demo_install&&e.push({text:(0,o.__)("Starter Sites","blocksy-companion"),path:"demos",getProps:function(e){var t=e.isPartiallyCurrent;return e.isCurrent,t?{"aria-current":"page"}:{}}}),e.push({text:(0,o.__)("Extensions","blocksy-companion"),path:"/extensions"})})),r().on("ct:dashboard:heading:after",(function(t){ctDashboardLocalizations.plugin_data.is_pro&&(t.content=(0,e.createElement)("span",null,"PRO"))}))}()}();
|
static/bundle/dashboard.min.css
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
/**
|
2 |
-
* - v1.8.
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|
6 |
*/
|
7 |
|
8 |
-
.ct-mailchimp-modal{--modal-min-height: 300px}.ct-newsletter-select-provider{padding-top:1.5em;border-top:1px dashed #eee}.ct-newsletter-select-provider p{margin-top:1em;font-style:italic}.mailchimp-credentials{display:grid;grid-template-columns:1fr 1fr 1fr;grid-column-gap:10px;margin-top:1.5em;padding-top:1.5em;border-top:1px dashed #eee}.mailchimp-credentials section{display:flex;flex-direction:column;min-width:0}.mailchimp-credentials label{display:block;font-size:12px;margin-bottom:3px;opacity:.7}.mailchimp-credentials input{--input-height: 35px}.ct-extensions-sourse{display:flex;justify-content:center;margin:0 0 40px 0}.ct-extensions-sourse li{display:flex;align-items:center;height:38px;font-weight:500;padding:0 30px;margin:0;cursor:pointer;border:1px solid rgba(226,230,235,.7)}.ct-extensions-sourse li.active{color:#fff;background:var(--accentColor);border-color:var(--accentColor)}.ct-extensions-sourse li:hover:not(.active){color:var(--accentColor)}.ct-extensions-sourse li:first-child{border-inline-end:0;border-radius:4px 0 0 4px}.ct-extensions-sourse li:last-child{border-inline-start:0;border-radius:0 4px 4px 0}.ct-config-btn{margin-inline-end:auto;margin-inline-start:10px}.ct-config-btn:before{font-family:dashicons;content:"";font-size:14px;margin-right:5px;opacity:.9}.ct-minimal-button{display:flex;align-items:center;justify-content:center;width:32px;height:32px;-webkit-appearance:none;appearance:none;border:none;padding:0;color:inherit;cursor:pointer;color:#c9cfd6;background:rgba(0,0,0,0);transition:color .2s ease}.ct-minimal-button:hover{color:#9ca9b9}.ct-minimal-button:focus{outline:none}.ct-minimal-button svg{fill:currentColor}.ct-option-info{display:flex;align-items:center;justify-content:center;font-style:normal;line-height:normal;margin-left:auto}.ct-option-info:before{font-family:dashicons;content:"";font-size:16px;line-height:16px}.ct-demos-list-container ul{display:grid;grid-column-gap:30px;grid-row-gap:30px;margin:0;padding:0;list-style:none}@media(min-width: 783px){.ct-demos-list-container ul{grid-template-columns:repeat(3, 1fr)}}.ct-demos-list-container ul li{display:flex;flex-direction:column;margin:0;box-sizing:border-box;box-shadow:0 2px 5px rgba(143,163,184,.12)}.ct-demos-list-container ul li figure{position:relative;aspect-ratio:4/3;margin:0;overflow:hidden;border-radius:3px 3px 0 0}.ct-demos-list-container ul li figure img{max-width:100%;aspect-ratio:inherit}.ct-demos-list-container ul li figure section{position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;top:0;left:0;right:0;bottom:0;opacity:0;background:rgba(36,41,45,.9);transition:opacity .2s ease}.ct-demos-list-container ul li figure section h3{font-size:15px;color:#fff !important;margin:0 0 25px 0}.ct-demos-list-container ul li figure section div{display:flex}.ct-demos-list-container ul li figure section span{padding:8px 12px;display:block;font-size:17px;font-weight:500;color:#fff;border-radius:3px;border:2px solid rgba(255,255,255,.5);background:rgba(36,41,45,.4)}.ct-demos-list-container ul li figure section span:not(:last-child){margin-right:15px}.ct-demos-list-container ul li:hover figure>section{opacity:1}.ct-demos-list-container ul li.ct-is-pro figure{position:relative}.ct-demos-list-container ul li.ct-is-pro figure a{position:absolute;z-index:1;content:"PRO";top:0;right:0;font-size:13px;font-weight:700;letter-spacing:.03em;color:#a1680d;text-decoration:none;padding:5px 15px;margin:25px;background:#ffc568;border-radius:3px;box-shadow:0 5px 8px 0 rgba(234,157,33,.3)}.ct-demo-actions{flex:1;display:flex;align-items:center;padding:20px;border-radius:0 0 3px 3px;border:1px solid rgba(226,230,235,.7);background:rgba(235,237,241,.2)}@media(max-width: 549px){.ct-demo-actions{flex-direction:column}}@media(min-width: 550px){.ct-demo-actions{justify-content:space-between}}.ct-demo-actions h4{margin:0}@media(max-width: 549px){.ct-demo-actions h4{margin-bottom:20px}}.ct-demo-actions>div{display:flex;gap:15px}.ct-demo-actions button[disabled]{opacity:.3;-webkit-user-select:none;user-select:none;pointer-events:none}.ct-demo-modal{--modal-width: 500px;height:100%;transition:max-height .2s ease}.ct-demo-modal:not(.ct-demo-installer){--modal-max-height: 620px}.ct-demo-modal.ct-demo-installer{--modal-max-height: 380px}.ct-demo-step-container{height:100%;display:flex;flex-direction:column;color:#687c93;text-align:center}.ct-demo-step-container>*:first-child{flex:1;position:relative}.ct-demo-step-container>*:first-child>*{position:absolute;top:0;left:0;right:0;bottom:0}.ct-demo-step-container .ct-demo-icon{display:flex;align-items:center;justify-content:center;width:85px;height:85px;margin:10px auto 20px auto;background:#f3f6f8;border-radius:100%}.ct-demo-step-container h2{text-align:center;font-size:17px;font-weight:600;color:#3e5667;margin-top:0}.ct-demo-step-controls{position:relative;width:100%;height:40px}.ct-demo-step-controls button{position:absolute;z-index:2;top:0}.ct-demo-step-controls button.demo-back-btn{left:0}.ct-demo-step-controls button.demo-main-btn{right:0}.ct-steps-pills{display:flex;align-items:center;justify-content:center;position:absolute;z-index:1;top:0;left:0;right:0;bottom:0;width:200px;margin:0;padding:0;list-style:none;margin:0 auto}.ct-steps-pills li{display:flex;align-items:center;justify-content:center;width:30px;height:30px;margin:0;font-size:0}.ct-steps-pills li:before{content:"";width:12px;height:12px;border-radius:100%;box-shadow:inset 0 0 0 2px rgba(104,124,147,.8);transition:box-shadow .2s ease,transform .2s ease}.ct-steps-pills li:not(.active):before{transform:scale3d(0.5, 0.5, 1);box-shadow:inset 0 0 0 10px rgba(104,124,147,.8)}.ct-demo-child .ct-checkbox-container{max-width:250px;margin:25px auto 0 auto;padding-left:15px;padding-right:15px;border-radius:4px;border:1px solid rgba(179,189,201,.3)}.ct-demo-child a{display:block;color:#687c93;font-weight:500;text-decoration:none;margin-top:25px}.ct-demo-child a:hover{color:#0073aa}.ct-demo-builder .ct-demo-icon svg{margin-left:10px}.ct-demo-builder ul{display:grid;margin:0;padding:0;list-style:none;margin:40px auto 0 auto}.ct-demo-builder ul[data-count="2"]{max-width:70%;grid-template-columns:repeat(2, 1fr);grid-column-gap:30px}.ct-demo-builder ul[data-count="3"]{grid-template-columns:repeat(3, 1fr);grid-column-gap:20px}.ct-demo-builder ul li{margin-bottom:0;cursor:pointer}.ct-demo-builder ul li figure{position:relative;display:flex;align-items:center;justify-content:center;min-height:100px;border:2px solid #e9ecee;border-radius:5px;margin:0;font-weight:500;transition:border-color .12s cubic-bezier(0.455, 0.03, 0.515, 0.955),box-shadow .12s cubic-bezier(0.455, 0.03, 0.515, 0.955)}.ct-demo-builder ul li figure>svg{width:47%}.ct-demo-builder ul li .builder-name{font-weight:500;color:#3e5667;margin-top:15px}.ct-demo-builder ul li:hover figure{border-color:var(--accentColor)}.ct-demo-builder ul li.active figure{border-color:var(--accentColor);box-shadow:0 0 0 1px var(--accentColor)}.ct-demo-builder ul li .ct-checkbox{--checkMarkColor: #fff;--background: rgba(179, 189, 201, 0.8);--backgroundActive: var(--accentColor);position:absolute;top:0px;right:0px}.ct-demo-builder ul li .ct-checkbox:before{width:22px !important;height:22px !important;border-radius:0px 3px 0px 5px}.ct-demo-builder ul li .ct-checkbox:not(.active):before{opacity:0}.ct-demo-plugins label{margin:0 auto}.ct-active-plugin{display:flex;align-items:center;position:relative;text-align:left;padding:10px 0}.ct-active-plugin span{display:flex;align-items:center;justify-content:center;position:absolute;right:-2px;width:22px;height:22px;border-radius:100%;box-sizing:border-box;background:rgba(179,189,201,.3)}.ct-active-plugin span:before,.ct-active-plugin span:after{position:absolute;content:"";width:2px;border-radius:2px;background:rgba(104,124,147,.6)}.ct-active-plugin span:before{top:10px;left:10px;height:5px;transform:rotate(-45deg);transform-origin:bottom center}.ct-active-plugin span:after{height:9px;left:9px;transform:rotate(40deg);transform-origin:bottom center}.ct-demo-erase{margin-top:10px;padding-top:10px;padding-bottom:20px;text-align:left;font-weight:600;border-top:1px dashed rgba(179,189,201,.5);border-bottom:1px dashed rgba(179,189,201,.5)}.ct-demo-erase .ct-checkbox-container{align-items:flex-start;padding-bottom:0}.ct-demo-erase i{display:block;width:90%;font-size:13px;margin-top:8px;opacity:.8;font-weight:400;font-style:normal}.ct-export{text-align:center;margin-top:50px}.ct-site-export{display:flex;flex-direction:column;max-height:calc(var(--modal-max-height) - var(--modal-padding)*2)}.ct-site-export label{display:flex;justify-content:space-between;padding:10px 0}.ct-site-export input[type=checkbox]{margin:0}.ct-site-export textarea,.ct-site-export input[type=text]{width:60%}.ct-site-export textarea{min-height:80px}.ct-site-export button{margin-top:20px}.ct-bundled-plugins-list{display:grid;grid-template-columns:repeat(2, 1fr);gap:15px}.ct-bundled-plugins-list label{gap:10px;padding:10px;border-radius:3px;background:rgba(0,0,0,.02)}.ct-demo-installer .close-button{opacity:0 !important}.ct-demo-install{position:relative}.ct-demo-install>*{position:absolute;top:0;left:0;right:0;bottom:0}.ct-demo-install svg path{transform-origin:50% 50%;transform-box:fill-box;animation-name:spin;animation-iteration-count:infinite;animation-timing-function:linear}.ct-demo-install .g1{fill:#44acdf;animation-duration:5.5s;animation-direction:reverse}.ct-demo-install .g2{fill:#3497d3;animation-duration:4.5s}.ct-demo-install .g3{fill:#0c7ab3;animation-duration:4s}.ct-installer-progress{width:100%;border-radius:5px;background:#f3f6f8;box-sizing:border-box}.ct-installer-progress div{width:var(--progress);height:4px;border-radius:inherit;background:var(--accentColor);transition:width .3s ease}.ct-progress-info{display:flex;justify-content:space-between;margin-top:30px;margin-bottom:15px;font-size:13px;opacity:.8}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.ct-install-success{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%}.ct-install-success div{margin-top:10px}.ct-install-success a:first-child{margin-right:15px}.ct-modify-actions{margin-top:50px}.ct-modify-actions>*:not(:last-child){margin-right:15px}.ct-modify-actions .demo-remove{--ct-buttonHoverColor: #e04f4f}#ct-dashboard .ct-demo-notification{position:relative;padding:15px 20px 15px 55px;margin-bottom:40px;color:#0072aa;line-height:1.5;border:2px solid rgba(0,114,170,.3);background:rgba(0,114,170,.1);border-radius:5px}#ct-dashboard .ct-demo-notification:before{font-family:dashicons;content:"";font-size:20px;position:absolute;top:13px;left:20px;color:rgba(0,114,170,.8)}#ct-dashboard .ct-demo-notification b{font-weight:700}.ct-demos-list{display:flex;flex-direction:column}.ct-demos-list .ct-single-demo img{max-width:100px}.ct-demo-btn{display:inline-flex;align-items:center;font-size:15px;font-weight:600;letter-spacing:.03em;color:#687c93;height:40px;border:none;cursor:pointer;padding:0 18px;text-decoration:none;border-radius:4px;background:#f3f6f8;transition:background .2s ease color .2s ease}.ct-demo-btn:focus{outline:none}.ct-demo-btn:hover{color:#fff;background:var(--ct-buttonHoverColor, var(--accentColor))}.ct-onboarding-modal{--modal-width: 500px;--modal-min-height: 360px;text-align:center}.ct-onboarding-modal .close-button{display:none}.ct-onboarding-modal svg{width:55px;height:55px;margin:0 auto 25px auto}.ct-onboarding-modal h2{color:#3e5667}.ct-onboarding-modal button{--buttonHeight: 42px;--buttonPadding: 20px;--buttonFontSize: 14px}.ct-theme-required{display:flex;flex-direction:column;align-items:flex-start;background:#fff;padding:40px;margin-top:20px;margin-inline-end:20px}.ct-theme-required h2{display:flex;align-items:center;gap:10px;margin:0 0 10px 0;font-size:18px;font-weight:500}.ct-theme-required span{display:flex;align-items:center;justify-content:center;width:30px;height:30px;background:#1e1e1e;border-radius:2px}.ct-theme-required span svg{width:15px;fill:#fff}.ct-theme-required p{font-size:14px;margin:7px 0 0 0}.ct-theme-required .button{margin-top:20px}.ct-beta-consent{margin-top:60px;border-radius:3px;text-align:center;color:#fff}@media(max-width: 782px){.ct-beta-consent{padding:10%}}@media(min-width: 783px){.ct-beta-consent{padding:50px}}.ct-beta-consent h2{display:flex;align-items:center;justify-content:center;color:#fff !important;margin-top:0;cursor:pointer}.ct-beta-consent h2 span{display:flex;font-size:15px;font-weight:500;cursor:pointer}.ct-beta-consent h2 .ct-option-switch{margin-inline-start:15px}.ct-beta-consent h2 .ct-option-switch:not(.ct-active){border-color:#fff}.ct-beta-consent h2 .ct-option-switch:not(.ct-active)>span{background:#fff}.ct-beta-consent h2 .ct-option-switch:not(.ct-active):after{border-color:#fff}.ct-beta-consent+.ct-support-container{margin-top:50px !important}.ct-beta-consent{background-color:#32373c;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 304 304' width='304' height='304'%3E%3Cpath fill='%234f5660' fill-opacity='0.2' d='M44.1 224a5 5 0 1 1 0 2H0v-2h44.1zm160 48a5 5 0 1 1 0 2H82v-2h122.1zm57.8-46a5 5 0 1 1 0-2H304v2h-42.1zm0 16a5 5 0 1 1 0-2H304v2h-42.1zm6.2-114a5 5 0 1 1 0 2h-86.2a5 5 0 1 1 0-2h86.2zm-256-48a5 5 0 1 1 0 2H0v-2h12.1zm185.8 34a5 5 0 1 1 0-2h86.2a5 5 0 1 1 0 2h-86.2zM258 12.1a5 5 0 1 1-2 0V0h2v12.1zm-64 208a5 5 0 1 1-2 0v-54.2a5 5 0 1 1 2 0v54.2zm48-198.2V80h62v2h-64V21.9a5 5 0 1 1 2 0zm16 16V64h46v2h-48V37.9a5 5 0 1 1 2 0zm-128 96V208h16v12.1a5 5 0 1 1-2 0V210h-16v-76.1a5 5 0 1 1 2 0zm-5.9-21.9a5 5 0 1 1 0 2H114v48H85.9a5 5 0 1 1 0-2H112v-48h12.1zm-6.2 130a5 5 0 1 1 0-2H176v-74.1a5 5 0 1 1 2 0V242h-60.1zm-16-64a5 5 0 1 1 0-2H114v48h10.1a5 5 0 1 1 0 2H112v-48h-10.1zM66 284.1a5 5 0 1 1-2 0V274H50v30h-2v-32h18v12.1zM236.1 176a5 5 0 1 1 0 2H226v94h48v32h-2v-30h-48v-98h12.1zm25.8-30a5 5 0 1 1 0-2H274v44.1a5 5 0 1 1-2 0V146h-10.1zm-64 96a5 5 0 1 1 0-2H208v-80h16v-14h-42.1a5 5 0 1 1 0-2H226v18h-16v80h-12.1zm86.2-210a5 5 0 1 1 0 2H272V0h2v32h10.1zM98 101.9V146H53.9a5 5 0 1 1 0-2H96v-42.1a5 5 0 1 1 2 0zM53.9 34a5 5 0 1 1 0-2H80V0h2v34H53.9zm60.1 3.9V66H82v64H69.9a5 5 0 1 1 0-2H80V64h32V37.9a5 5 0 1 1 2 0zM101.9 82a5 5 0 1 1 0-2H128V37.9a5 5 0 1 1 2 0V82h-28.1zm16-64a5 5 0 1 1 0-2H146v44.1a5 5 0 1 1-2 0V18h-26.1zm102.2 270a5 5 0 1 1 0 2H98v14h-2v-16h124.1zM242 149.9V160h16v34h-16v62h48v48h-2v-46h-48v-66h16v-30h-16v-12.1a5 5 0 1 1 2 0zM53.9 18a5 5 0 1 1 0-2H64V2H48V0h18v18H53.9zm112 32a5 5 0 1 1 0-2H192V0h50v2h-48v48h-28.1zm-48-48a5 5 0 0 1-9.8-2h2.07a3 3 0 1 0 5.66 0H178v34h-18V21.9a5 5 0 1 1 2 0V32h14V2h-58.1zm0 96a5 5 0 1 1 0-2H137l32-32h39V21.9a5 5 0 1 1 2 0V66h-40.17l-32 32H117.9zm28.1 90.1a5 5 0 1 1-2 0v-76.51L175.59 80H224V21.9a5 5 0 1 1 2 0V82h-49.59L146 112.41v75.69zm16 32a5 5 0 1 1-2 0v-99.51L184.59 96H300.1a5 5 0 0 1 3.9-3.9v2.07a3 3 0 0 0 0 5.66v2.07a5 5 0 0 1-3.9-3.9H185.41L162 121.41v98.69zm-144-64a5 5 0 1 1-2 0v-3.51l48-48V48h32V0h2v50H66v55.41l-48 48v2.69zM50 53.9v43.51l-48 48V208h26.1a5 5 0 1 1 0 2H0v-65.41l48-48V53.9a5 5 0 1 1 2 0zm-16 16V89.41l-34 34v-2.82l32-32V69.9a5 5 0 1 1 2 0zM12.1 32a5 5 0 1 1 0 2H9.41L0 43.41V40.6L8.59 32h3.51zm265.8 18a5 5 0 1 1 0-2h18.69l7.41-7.41v2.82L297.41 50H277.9zm-16 160a5 5 0 1 1 0-2H288v-71.41l16-16v2.82l-14 14V210h-28.1zm-208 32a5 5 0 1 1 0-2H64v-22.59L40.59 194H21.9a5 5 0 1 1 0-2H41.41L66 216.59V242H53.9zm150.2 14a5 5 0 1 1 0 2H96v-56.6L56.6 162H37.9a5 5 0 1 1 0-2h19.5L98 200.6V256h106.1zm-150.2 2a5 5 0 1 1 0-2H80v-46.59L48.59 178H21.9a5 5 0 1 1 0-2H49.41L82 208.59V258H53.9zM34 39.8v1.61L9.41 66H0v-2h8.59L32 40.59V0h2v39.8zM2 300.1a5 5 0 0 1 3.9 3.9H3.83A3 3 0 0 0 0 302.17V256h18v48h-2v-46H2v42.1zM34 241v63h-2v-62H0v-2h34v1zM17 18H0v-2h16V0h2v18h-1zm273-2h14v2h-16V0h2v16zm-32 273v15h-2v-14h-14v14h-2v-16h18v1zM0 92.1A5.02 5.02 0 0 1 6 97a5 5 0 0 1-6 4.9v-2.07a3 3 0 1 0 0-5.66V92.1zM80 272h2v32h-2v-32zm37.9 32h-2.07a3 3 0 0 0-5.66 0h-2.07a5 5 0 0 1 9.8 0zM5.9 0A5.02 5.02 0 0 1 0 5.9V3.83A3 3 0 0 0 3.83 0H5.9zm294.2 0h2.07A3 3 0 0 0 304 3.83V5.9a5 5 0 0 1-3.9-5.9zm3.9 300.1v2.07a3 3 0 0 0-1.83 1.83h-2.07a5 5 0 0 1 3.9-3.9zM97 100a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-48 32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 48a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-64a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 96a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-144a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-96 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm96 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-64a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-32 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM49 36a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-32 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM33 68a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-48a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 240a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-64a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm80-176a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 48a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm112 176a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM17 180a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM17 84a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 64a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6z'%3E%3C/path%3E%3C/svg%3E");background-size:250px;background-position:0 5px}.ct-beta-updates-consent{--modal-width: 450px;--modal-min-height: 330px;--modal-padding: 45px;text-align:center}.ct-beta-updates-consent .ct-modal-content p{margin-bottom:1.2em}.ct-freemius-optin-message{position:relative;text-align:center;border-radius:3px;background:#f5f7f9}@media(max-width: 782px){.ct-freemius-optin-message{padding:50px 10% 10% 10%}}@media(min-width: 783px){.ct-freemius-optin-message{padding:60px 50px 50px 50px}}.ct-freemius-optin-message h2{margin-top:0}.ct-freemius-optin-message i{display:flex;align-items:center;justify-content:center;position:absolute;top:-25px;left:0;right:0;margin:0 auto;width:50px;height:50px;background:#fff;border-radius:100%;color:#0591c9;border:2px solid #deecf3}.ct-freemius-optin-message i svg{animation:ring-shake 5s ease-in-out infinite;transform-origin:50% 0%}.ct-freemius-optin-message p{max-width:600px;margin:0 auto 20px auto !important}.ct-freemius-optin-message .ct-button-primary{--buttonHeight: 42px;--buttonPadding: 20px;--buttonFontSize: 14px}.ct-freemius-optin-message+.ct-first-steps-container{margin-top:55px;padding-top:50px;border-top:1px solid rgba(143,163,184,.15)}@keyframes ring-shake{0%{transform:rotate(-15deg)}2%{transform:rotate(15deg)}4%{transform:rotate(-18deg)}6%{transform:rotate(18deg)}8%{transform:rotate(-22deg)}10%{transform:rotate(22deg)}12%{transform:rotate(-18deg)}14%{transform:rotate(18deg)}16%{transform:rotate(-12deg)}18%{transform:rotate(12deg)}20%{transform:rotate(0deg)}100%{transform:rotate(0deg)}}.blocksy-fs-optin-dashboard #wpbody-content{height:100vh;padding-bottom:0}.blocksy-fs-optin-dashboard.admin-bar #wpbody-content{height:calc(100vh - 32px)}.blocksy-fs-optin-dashboard .toplevel_page_ct-dashboard.current:after{border-right-color:#eed59c !important}.blocksy-fs-optin-wrapper{display:grid;grid-template-columns:repeat(2, 1fr);height:100%}.blocksy-fs-optin-wrapper>*{display:flex;flex-direction:column;justify-content:center;padding:9%;box-sizing:border-box}.blocksy-fs-optin-wrapper .ct-optin-svg{background:rgba(242,207,136,.9)}.blocksy-fs-optin-wrapper .ct-optin-svg svg{width:clamp(300px,27vw,550px);margin:0 auto}.blocksy-fs-optin-wrapper #fs_connect{width:100%;max-width:900px;margin:0 auto}.blocksy-fs-optin-wrapper #fs_connect .fs-header{height:initial;line-height:initial;margin-bottom:15px}.blocksy-fs-optin-wrapper #fs_connect .fs-header .fs-plugin-icon{position:initial;margin-left:initial;width:50px;height:50px}.blocksy-fs-optin-wrapper #fs_connect .fs-header .fs-plugin-icon img{width:inherit;height:inherit}.blocksy-fs-optin-wrapper #fs_connect .fs-box-container{overflow:initial;box-shadow:none;padding-top:0;background:rgba(0,0,0,0)}.blocksy-fs-optin-wrapper #fs_connect .fs-box-container .fs-content,.blocksy-fs-optin-wrapper #fs_connect .fs-box-container .fs-actions,.blocksy-fs-optin-wrapper #fs_connect .fs-box-container .fs-permissions{padding-left:0;padding-right:0}.blocksy-fs-optin-wrapper #fs_connect .fs-box-container .fs-content{display:flex;flex-direction:column;padding:0}.blocksy-fs-optin-wrapper #fs_connect .fs-box-container .fs-content .fs-license-key-container{width:100%;margin:30px 0 0 0}.blocksy-fs-optin-wrapper #fs_connect .fs-box-container .fs-content .fs-license-key-container input[type=text]{min-height:49px;padding:0 17px;margin:0;line-height:initial}.blocksy-fs-optin-wrapper #fs_connect .fs-box-container .fs-content .fs-license-key-container input[type=text]:not(:focus){border-color:#ddd}.blocksy-fs-optin-wrapper #fs_connect .fs-box-container .fs-content .fs-license-key-container .dashicons{top:18px;right:17px;font-size:14px;height:14px;width:14px}.blocksy-fs-optin-wrapper #fs_connect .fs-box-container .fs-content .fs-license-key-container .show-license-resend-modal{display:none}.blocksy-fs-optin-wrapper #fs_connect .fs-box-container .fs-content .fs-error{order:10;box-shadow:none;margin:10px 0 0 0;border:none;padding:0;color:#d63638;font-size:13px;text-align:initial;background:rgba(0,0,0,0)}.blocksy-fs-optin-wrapper #fs_connect .fs-box-container .fs-actions{padding-top:15px;padding-bottom:30px;border-bottom:1px dashed #ddd}.blocksy-fs-optin-wrapper #fs_connect .fs-box-container .fs-actions .button{height:49px;line-height:49px}.blocksy-fs-optin-wrapper #fs_connect .fs-box-container .fs-actions .button:after{display:none}.blocksy-fs-optin-wrapper #fs_connect .fs-box-container .fs-actions #license_issues_link{display:none}.blocksy-fs-optin-wrapper #fs_connect .fs-box-container .fs-permissions{padding-top:25px}.blocksy-fs-optin-wrapper #fs_connect .fs-box-container .fs-permissions>.fs-trigger{font-size:13px;text-align:initial}.blocksy-fs-optin-wrapper #fs_connect .fs-box-container .fs-permissions>.fs-trigger:focus{box-shadow:none}.blocksy-fs-optin-wrapper #fs_connect .fs-box-container .fs-permissions>.fs-trigger:hover{color:#135e96 !important}.blocksy-fs-optin-wrapper #fs_connect .fs-box-container .fs-permissions>.fs-trigger .fs-arrow{margin-inline-start:.5em}.blocksy-fs-optin-wrapper #fs_connect .fs-box-container .fs-permissions.fs-open ul{margin-bottom:0}.blocksy-fs-optin-wrapper #fs_connect .fs-box-container .fs-permissions.fs-open ul li:last-child{padding-bottom:0}.blocksy-fs-optin-wrapper #fs_connect .fs-box-container .fs-permissions .fs-switch{width:40px;height:22px;padding:0;box-shadow:none;box-sizing:border-box;border:2px solid #3c434a;transition:all .1s ease}.blocksy-fs-optin-wrapper #fs_connect .fs-box-container .fs-permissions .fs-switch .fs-toggle{top:2px;width:14px;height:14px;border:none;box-shadow:none;box-sizing:border-box;transition:all .1s ease}.blocksy-fs-optin-wrapper #fs_connect .fs-box-container .fs-permissions .fs-switch.fs-off{background:rgba(0,0,0,0)}.blocksy-fs-optin-wrapper #fs_connect .fs-box-container .fs-permissions .fs-switch.fs-off .fs-toggle{left:2px;background:#3c434a}.blocksy-fs-optin-wrapper #fs_connect .fs-box-container .fs-permissions .fs-switch.fs-on{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.blocksy-fs-optin-wrapper #fs_connect .fs-box-container .fs-permissions .fs-switch.fs-on .fs-toggle{left:20px}.blocksy-fs-optin-wrapper #fs_connect .fs-box-container .fs-permissions .fs-tooltip{font-weight:normal;padding:15px 18px;line-height:1.5em;background:rgba(0,0,0,.85)}.blocksy-fs-optin-wrapper #fs_connect .fs-box-container .fs-permissions .fs-tooltip:after{border-color:rgba(0,0,0,.85) rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0)}.blocksy-fs-optin-wrapper #fs_connect .fs-box-container .fs-freemium-licensing{display:none}.blocksy-fs-optin-wrapper #fs_connect .fs-terms{display:none}
|
1 |
/**
|
2 |
+
* - v1.8.60
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|
6 |
*/
|
7 |
|
8 |
+
.ct-mailchimp-modal{--modal-min-height: 300px}.ct-newsletter-select-provider{padding-top:1.5em;border-top:1px dashed #eee}.ct-newsletter-select-provider p{margin-top:1em;font-style:italic}.mailchimp-credentials{display:grid;grid-template-columns:1fr 1fr 1fr;grid-column-gap:10px;margin-top:1.5em;padding-top:1.5em;border-top:1px dashed #eee}.mailchimp-credentials section{display:flex;flex-direction:column;min-width:0}.mailchimp-credentials label{display:block;font-size:12px;margin-bottom:3px;opacity:.7}.mailchimp-credentials input{--input-height: 35px}.ct-extensions-sourse{display:flex;justify-content:center;margin:0 0 40px 0}.ct-extensions-sourse li{display:flex;align-items:center;height:38px;font-weight:500;padding:0 30px;margin:0;cursor:pointer;border:1px solid rgba(226,230,235,.7)}.ct-extensions-sourse li.active{color:#fff;background:var(--accentColor);border-color:var(--accentColor)}.ct-extensions-sourse li:hover:not(.active){color:var(--accentColor)}.ct-extensions-sourse li:first-child{border-inline-end:0;border-radius:4px 0 0 4px}.ct-extensions-sourse li:last-child{border-inline-start:0;border-radius:0 4px 4px 0}.ct-config-btn{margin-inline-end:auto;margin-inline-start:10px}.ct-config-btn:before{font-family:dashicons;content:"";font-size:14px;margin-right:5px;opacity:.9}.ct-minimal-button{display:flex;align-items:center;justify-content:center;width:32px;height:32px;-webkit-appearance:none;appearance:none;border:none;padding:0;color:inherit;cursor:pointer;color:#c9cfd6;background:rgba(0,0,0,0);transition:color .2s ease}.ct-minimal-button:hover{color:#9ca9b9}.ct-minimal-button:focus{outline:none}.ct-minimal-button svg{fill:currentColor}.ct-option-info{display:flex;align-items:center;justify-content:center;font-style:normal;line-height:normal;margin-left:auto}.ct-option-info:before{font-family:dashicons;content:"";font-size:16px;line-height:16px}.ct-demos-list-container ul{display:grid;grid-column-gap:30px;grid-row-gap:30px;margin:0;padding:0;list-style:none}@media(min-width: 783px){.ct-demos-list-container ul{grid-template-columns:repeat(3, 1fr)}}.ct-demos-list-container ul li{display:flex;flex-direction:column;margin:0;box-sizing:border-box;box-shadow:0 2px 5px rgba(143,163,184,.12)}.ct-demos-list-container ul li figure{position:relative;aspect-ratio:4/3;margin:0;overflow:hidden;border-radius:3px 3px 0 0}.ct-demos-list-container ul li figure img{max-width:100%;aspect-ratio:inherit}.ct-demos-list-container ul li figure section{position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;top:0;left:0;right:0;bottom:0;opacity:0;background:rgba(36,41,45,.9);transition:opacity .2s ease}.ct-demos-list-container ul li figure section h3{font-size:15px;color:#fff !important;margin:0 0 25px 0}.ct-demos-list-container ul li figure section div{display:flex}.ct-demos-list-container ul li figure section span{padding:8px 12px;display:block;font-size:17px;font-weight:500;color:#fff;border-radius:3px;border:2px solid rgba(255,255,255,.5);background:rgba(36,41,45,.4)}.ct-demos-list-container ul li figure section span:not(:last-child){margin-right:15px}.ct-demos-list-container ul li:hover figure>section{opacity:1}.ct-demos-list-container ul li.ct-is-pro figure{position:relative}.ct-demos-list-container ul li.ct-is-pro figure a{position:absolute;z-index:1;content:"PRO";top:0;right:0;font-size:13px;font-weight:700;letter-spacing:.03em;color:#a1680d;text-decoration:none;padding:5px 15px;margin:25px;background:#ffc568;border-radius:3px;box-shadow:0 5px 8px 0 rgba(234,157,33,.3)}.ct-demo-actions{flex:1;display:flex;align-items:center;padding:20px;border-radius:0 0 3px 3px;border:1px solid rgba(226,230,235,.7);background:rgba(235,237,241,.2)}@media(max-width: 549px){.ct-demo-actions{flex-direction:column}}@media(min-width: 550px){.ct-demo-actions{justify-content:space-between}}.ct-demo-actions h4{margin:0}@media(max-width: 549px){.ct-demo-actions h4{margin-bottom:20px}}.ct-demo-actions>div{display:flex;gap:15px}.ct-demo-actions button[disabled]{opacity:.3;-webkit-user-select:none;user-select:none;pointer-events:none}.ct-demo-modal{--modal-width: 500px;height:100%;transition:max-height .2s ease}.ct-demo-modal:not(.ct-demo-installer){--modal-max-height: 620px}.ct-demo-modal.ct-demo-installer{--modal-max-height: 380px}.ct-demo-step-container{height:100%;display:flex;flex-direction:column;color:#687c93;text-align:center}.ct-demo-step-container>*:first-child{flex:1;position:relative}.ct-demo-step-container>*:first-child>*{position:absolute;top:0;left:0;right:0;bottom:0}.ct-demo-step-container .ct-demo-icon{display:flex;align-items:center;justify-content:center;width:85px;height:85px;margin:10px auto 20px auto;background:#f3f6f8;border-radius:100%}.ct-demo-step-container h2{text-align:center;font-size:17px;font-weight:600;color:#3e5667;margin-top:0}.ct-demo-step-controls{position:relative;width:100%;height:40px}.ct-demo-step-controls button{position:absolute;z-index:2;top:0}.ct-demo-step-controls button.demo-back-btn{left:0}.ct-demo-step-controls button.demo-main-btn{right:0}.ct-steps-pills{display:flex;align-items:center;justify-content:center;position:absolute;z-index:1;top:0;left:0;right:0;bottom:0;width:200px;margin:0;padding:0;list-style:none;margin:0 auto}.ct-steps-pills li{display:flex;align-items:center;justify-content:center;width:30px;height:30px;margin:0;font-size:0}.ct-steps-pills li:before{content:"";width:12px;height:12px;border-radius:100%;box-shadow:inset 0 0 0 2px rgba(104,124,147,.8);transition:box-shadow .2s ease,transform .2s ease}.ct-steps-pills li:not(.active):before{transform:scale3d(0.5, 0.5, 1);box-shadow:inset 0 0 0 10px rgba(104,124,147,.8)}.ct-demo-child .ct-checkbox-container{max-width:250px;margin:25px auto 0 auto;padding-left:15px;padding-right:15px;border-radius:4px;border:1px solid rgba(179,189,201,.3)}.ct-demo-child a{display:block;color:#687c93;font-weight:500;text-decoration:none;margin-top:25px}.ct-demo-child a:hover{color:#0073aa}.ct-demo-builder .ct-demo-icon svg{margin-left:10px}.ct-demo-builder ul{display:grid;margin:0;padding:0;list-style:none;margin:40px auto 0 auto}.ct-demo-builder ul[data-count="2"]{max-width:70%;grid-template-columns:repeat(2, 1fr);grid-column-gap:30px}.ct-demo-builder ul[data-count="3"]{grid-template-columns:repeat(3, 1fr);grid-column-gap:20px}.ct-demo-builder ul li{margin-bottom:0;cursor:pointer}.ct-demo-builder ul li figure{position:relative;display:flex;align-items:center;justify-content:center;min-height:100px;border:2px solid #e9ecee;border-radius:5px;margin:0;font-weight:500;transition:border-color .12s cubic-bezier(0.455, 0.03, 0.515, 0.955),box-shadow .12s cubic-bezier(0.455, 0.03, 0.515, 0.955)}.ct-demo-builder ul li figure>svg{width:47%}.ct-demo-builder ul li .builder-name{font-weight:500;color:#3e5667;margin-top:15px}.ct-demo-builder ul li:hover figure{border-color:var(--accentColor)}.ct-demo-builder ul li.active figure{border-color:var(--accentColor);box-shadow:0 0 0 1px var(--accentColor)}.ct-demo-builder ul li .ct-checkbox{--checkMarkColor: #fff;--background: rgba(179, 189, 201, 0.8);--backgroundActive: var(--accentColor);position:absolute;top:0px;right:0px}.ct-demo-builder ul li .ct-checkbox:before{width:22px !important;height:22px !important;border-radius:0px 3px 0px 5px}.ct-demo-builder ul li .ct-checkbox:not(.active):before{opacity:0}.ct-demo-plugins label{margin:0 auto}.ct-active-plugin{display:flex;align-items:center;position:relative;text-align:left;padding:10px 0}.ct-active-plugin span{display:flex;align-items:center;justify-content:center;position:absolute;right:-2px;width:22px;height:22px;border-radius:100%;box-sizing:border-box;background:rgba(179,189,201,.3)}.ct-active-plugin span:before,.ct-active-plugin span:after{position:absolute;content:"";width:2px;border-radius:2px;background:rgba(104,124,147,.6)}.ct-active-plugin span:before{top:10px;left:10px;height:5px;transform:rotate(-45deg);transform-origin:bottom center}.ct-active-plugin span:after{height:9px;left:9px;transform:rotate(40deg);transform-origin:bottom center}.ct-demo-erase{margin-top:10px;padding-top:10px;padding-bottom:20px;text-align:left;font-weight:600;border-top:1px dashed rgba(179,189,201,.5);border-bottom:1px dashed rgba(179,189,201,.5)}.ct-demo-erase .ct-checkbox-container{align-items:flex-start;padding-bottom:0}.ct-demo-erase i{display:block;width:90%;font-size:13px;margin-top:8px;opacity:.8;font-weight:400;font-style:normal}.ct-export{text-align:center;margin-top:50px}.ct-site-export{display:flex;flex-direction:column;max-height:calc(var(--modal-max-height) - var(--modal-padding)*2)}.ct-site-export label{display:flex;justify-content:space-between;padding:10px 0}.ct-site-export input[type=checkbox]{margin:0}.ct-site-export textarea,.ct-site-export input[type=text]{width:60%}.ct-site-export textarea{min-height:80px}.ct-site-export button{margin-top:20px}.ct-bundled-plugins-list{display:grid;grid-template-columns:repeat(2, 1fr);gap:15px}.ct-bundled-plugins-list label{gap:10px;padding:10px;border-radius:3px;background:rgba(0,0,0,.02)}.ct-demo-installer .close-button{opacity:0 !important}.ct-demo-install{position:relative}.ct-demo-install>*{position:absolute;top:0;left:0;right:0;bottom:0}.ct-demo-install svg path{transform-origin:50% 50%;transform-box:fill-box;animation-name:spin;animation-iteration-count:infinite;animation-timing-function:linear}.ct-demo-install .g1{fill:#44acdf;animation-duration:5.5s;animation-direction:reverse}.ct-demo-install .g2{fill:#3497d3;animation-duration:4.5s}.ct-demo-install .g3{fill:#0c7ab3;animation-duration:4s}.ct-installer-progress{width:100%;border-radius:5px;background:#f3f6f8;box-sizing:border-box}.ct-installer-progress div{width:var(--progress);height:4px;border-radius:inherit;background:var(--accentColor);transition:width .3s ease}.ct-progress-info{display:flex;justify-content:space-between;margin-top:30px;margin-bottom:15px;font-size:13px;opacity:.8}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.ct-install-success{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%}.ct-install-success div{margin-top:10px}.ct-install-success a:first-child{margin-right:15px}.ct-modify-actions{margin-top:50px}.ct-modify-actions>*:not(:last-child){margin-right:15px}.ct-modify-actions .demo-remove{--ct-buttonHoverColor: #e04f4f}#ct-dashboard .ct-demo-notification{position:relative;padding:15px 20px 15px 55px;margin-bottom:40px;color:#0072aa;line-height:1.5;border:2px solid rgba(0,114,170,.3);background:rgba(0,114,170,.1);border-radius:5px}#ct-dashboard .ct-demo-notification:before{font-family:dashicons;content:"";font-size:20px;position:absolute;top:13px;left:20px;color:rgba(0,114,170,.8)}#ct-dashboard .ct-demo-notification b{font-weight:700}.ct-demos-list{display:flex;flex-direction:column}.ct-demos-list .ct-single-demo img{max-width:100px}.ct-demo-btn{display:inline-flex;align-items:center;font-size:15px;font-weight:600;letter-spacing:.03em;color:#687c93;height:40px;border:none;cursor:pointer;padding:0 18px;text-decoration:none;border-radius:4px;background:#f3f6f8;transition:background .2s ease color .2s ease}.ct-demo-btn:focus{outline:none}.ct-demo-btn:hover{color:#fff;background:var(--ct-buttonHoverColor, var(--accentColor))}.ct-onboarding-modal{--modal-width: 500px;--modal-min-height: 360px;text-align:center}.ct-onboarding-modal .close-button{display:none}.ct-onboarding-modal svg{width:55px;height:55px;margin:0 auto 25px auto}.ct-onboarding-modal h2{color:#3e5667}.ct-onboarding-modal button{--buttonHeight: 42px;--buttonPadding: 20px;--buttonFontSize: 14px}.ct-theme-required{display:flex;flex-direction:column;align-items:flex-start;background:#fff;padding:40px;margin-top:20px;margin-inline-end:20px}.ct-theme-required h2{display:flex;align-items:center;gap:10px;margin:0 0 10px 0;font-size:18px;font-weight:500}.ct-theme-required span{display:flex;align-items:center;justify-content:center;width:30px;height:30px;background:#1e1e1e;border-radius:2px}.ct-theme-required span svg{width:15px;fill:#fff}.ct-theme-required p{font-size:14px;margin:7px 0 0 0}.ct-theme-required .button{margin-top:20px}.blocksy-fs-optin-dashboard{background:#fff}.blocksy-fs-optin-dashboard #wpcontent{padding-inline-start:0}.blocksy-fs-optin-dashboard #wpbody-content{height:100vh;padding-bottom:0}.blocksy-fs-optin-dashboard.admin-bar #wpbody-content{height:calc(100vh - 32px)}.blocksy-fs-optin-dashboard .toplevel_page_ct-dashboard.current:after{border-right-color:#eed59c !important}.blocksy-fs-optin-wrapper{display:grid;grid-template-columns:repeat(2, 1fr);height:100%}.blocksy-fs-optin-wrapper>*{display:flex;flex-direction:column;justify-content:center;padding:9%;box-sizing:border-box}.blocksy-fs-optin-wrapper .ct-optin-svg{background:rgba(242,207,136,.9)}.blocksy-fs-optin-wrapper .ct-optin-svg svg{width:clamp(300px,27vw,550px);margin:0 auto}.blocksy-fs-optin-wrapper #fs_connect{width:100%;max-width:900px;margin:0 auto}.blocksy-fs-optin-wrapper #fs_connect .fs-header{height:initial;line-height:initial;margin-bottom:15px}.blocksy-fs-optin-wrapper #fs_connect .fs-header .fs-plugin-icon{position:initial;margin-left:initial;width:50px;height:50px}.blocksy-fs-optin-wrapper #fs_connect .fs-header .fs-plugin-icon img{width:inherit;height:inherit}.blocksy-fs-optin-wrapper #fs_connect .fs-box-container{overflow:initial;box-shadow:none;padding-top:0;background:rgba(0,0,0,0)}.blocksy-fs-optin-wrapper #fs_connect .fs-box-container .fs-content,.blocksy-fs-optin-wrapper #fs_connect .fs-box-container .fs-actions,.blocksy-fs-optin-wrapper #fs_connect .fs-box-container .fs-permissions{padding-left:0;padding-right:0}.blocksy-fs-optin-wrapper #fs_connect .fs-box-container .fs-content{display:flex;flex-direction:column;padding:0}.blocksy-fs-optin-wrapper #fs_connect .fs-box-container .fs-content .fs-license-key-container{width:100%;margin:30px 0 0 0}.blocksy-fs-optin-wrapper #fs_connect .fs-box-container .fs-content .fs-license-key-container input[type=text]{min-height:49px;padding:0 17px;margin:0;line-height:initial}.blocksy-fs-optin-wrapper #fs_connect .fs-box-container .fs-content .fs-license-key-container input[type=text]:not(:focus){border-color:#ddd}.blocksy-fs-optin-wrapper #fs_connect .fs-box-container .fs-content .fs-license-key-container .dashicons{top:18px;right:17px;font-size:14px;height:14px;width:14px}.blocksy-fs-optin-wrapper #fs_connect .fs-box-container .fs-content .fs-license-key-container .show-license-resend-modal{display:none}.blocksy-fs-optin-wrapper #fs_connect .fs-box-container .fs-content .fs-error{order:10;box-shadow:none;margin:10px 0 0 0;border:none;padding:0;color:#d63638;font-size:13px;text-align:initial;background:rgba(0,0,0,0)}.blocksy-fs-optin-wrapper #fs_connect .fs-box-container .fs-actions{padding-top:15px;padding-bottom:30px;border-bottom:1px dashed #ddd}.blocksy-fs-optin-wrapper #fs_connect .fs-box-container .fs-actions .button{height:49px;line-height:49px}.blocksy-fs-optin-wrapper #fs_connect .fs-box-cont |