HEX
Server: nginx/1.18.0
System: Linux iZj6c1ieg2jrpk1z5tzi19Z 6.3.9-1.el7.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jun 21 22:18:40 EDT 2023 x86_64
User: www (1001)
PHP: 8.2.4
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/www.cytocare.cn/wp-content/plugins/blocksy-companion-pro/static/bundle/dashboard.js
!function(){var e={487:function(e){var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}};e.exports=t},184:function(e,t){var n;
/*!
  Copyright (c) 2017 Jed Watson.
  Licensed under the MIT License (MIT), see
  http://jedwatson.github.io/classnames
*/!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 c=o.apply(null,n);c&&e.push(c)}else if("object"===a)for(var i in n)r.call(n,i)&&n[i]&&e.push(i)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},12:function(e){var t,n;t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=n.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var n=[],r=0;r<e.length;r+=3)for(var o=e[r]<<16|e[r+1]<<8|e[r+2],a=0;a<4;a++)8*r+6*a<=8*e.length?n.push(t.charAt(o>>>6*(3-a)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],r=0,o=0;r<e.length;o=++r%4)0!=o&&n.push((t.indexOf(e.charAt(r-1))&Math.pow(2,-2*o+8)-1)<<2*o|t.indexOf(e.charAt(r))>>>6-2*o);return n}},e.exports=n},162:function(e,t,n){var r,o,a;o=[],void 0===(a="function"==typeof(r=function(){"use strict";function t(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}function r(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 o(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function a(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var c="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=c.saveAs||("object"!=typeof window||window!==c?function(){}:"download"in HTMLAnchorElement.prototype?function(e,t,n){var i=c.URL||c.webkitURL,s=document.createElement("a");t=t||e.name||"download",s.download=t,s.rel="noopener","string"==typeof e?(s.href=e,s.origin===location.origin?a(s):o(s.href)?r(e,t,n):a(s,s.target="_blank")):(s.href=i.createObjectURL(e),setTimeout((function(){i.revokeObjectURL(s.href)}),4e4),setTimeout((function(){a(s)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,n,c){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(t(e,c),n);else if(o(e))r(e,n,c);else{var i=document.createElement("a");i.href=e,i.target="_blank",setTimeout((function(){a(i)}))}}:function(e,t,n,o){if((o=o||open("","_blank"))&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof e)return r(e,t,n);var a="application/octet-stream"===e.type,i=/constructor/i.test(c.HTMLElement)||c.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||a&&i)&&"object"==typeof FileReader){var l=new FileReader;l.onloadend=function(){var e=l.result;e=s?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=e:location=e,o=null},l.readAsDataURL(e)}else{var u=c.URL||c.webkitURL,p=u.createObjectURL(e);o?o.location=p:location.href=p,o=null,setTimeout((function(){u.revokeObjectURL(p)}),4e4)}});c.saveAs=i.saveAs=i,e.exports=i})?r.apply(t,o):r)||(e.exports=a)},172:function(e,t,n){var r,o,a=n(760),c=n(529),i=(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,l=c({returnFocusOnDeactivate:!0,escapeDeactivates:!0},t),u={firstTabbableNode:null,lastTabbableNode:null,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1},p={activate:function(e){if(u.active)return;E(),u.active=!0,u.paused=!1,u.nodeFocusedBeforeActivation=n.activeElement;var t=e&&e.onActivate?e.onActivate:l.onActivate;t&&t();return f(),p},deactivate:m,pause:function(){if(u.paused||!u.active)return;u.paused=!0,d()},unpause:function(){if(!u.paused||!u.active)return;u.paused=!1,E(),f()}};return p;function m(e){if(u.active){clearTimeout(r),d(),u.active=!1,u.paused=!1,i.deactivateTrap(p);var t=e&&void 0!==e.onDeactivate?e.onDeactivate:l.onDeactivate;return t&&t(),(e&&void 0!==e.returnFocus?e.returnFocus:l.returnFocusOnDeactivate)&&s((function(){var e;w((e=u.nodeFocusedBeforeActivation,h("setReturnFocus")||e))})),p}}function f(){if(u.active)return i.activateTrap(p),r=s((function(){w(b())})),n.addEventListener("focusin",y,!0),n.addEventListener("mousedown",g,{capture:!0,passive:!1}),n.addEventListener("touchstart",g,{capture:!0,passive:!1}),n.addEventListener("click",_,{capture:!0,passive:!1}),n.addEventListener("keydown",v,{capture:!0,passive:!1}),p}function d(){if(u.active)return n.removeEventListener("focusin",y,!0),n.removeEventListener("mousedown",g,!0),n.removeEventListener("touchstart",g,!0),n.removeEventListener("click",_,!0),n.removeEventListener("keydown",v,!0),p}function h(e){var t=l[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!==h("initialFocus")?h("initialFocus"):o.contains(n.activeElement)?n.activeElement:u.firstTabbableNode||h("fallbackFocus")))throw new Error("Your focus-trap needs to have at least one focusable element");return e}function g(e){o.contains(e.target)||(l.clickOutsideDeactivates?m({returnFocus:!a.isFocusable(e.target)}):l.allowOutsideClick&&l.allowOutsideClick(e)||e.preventDefault())}function y(e){o.contains(e.target)||e.target instanceof Document||(e.stopImmediatePropagation(),w(u.mostRecentlyFocusedNode||b()))}function v(e){if(!1!==l.escapeDeactivates&&function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e))return e.preventDefault(),void m();(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);if(!e.shiftKey&&e.target===u.lastTabbableNode)e.preventDefault(),w(u.firstTabbableNode)}(e)}function _(e){l.clickOutsideDeactivates||o.contains(e.target)||l.allowOutsideClick&&l.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()))}}},738:function(e){function t(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}
/*!
 * Determine if an object is a Buffer
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */
e.exports=function(e){return null!=e&&(t(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&t(e.slice(0,0))}(e)||!!e._isBuffer)}},568:function(e,t,n){var r,o,a,c,i;r=n(12),o=n(487).utf8,a=n(738),c=n(487).bin,(i=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?c.stringToBytes(e):o.stringToBytes(e):a(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var n=r.bytesToWords(e),s=8*e.length,l=1732584193,u=-271733879,p=-1732584194,m=271733878,f=0;f<n.length;f++)n[f]=16711935&(n[f]<<8|n[f]>>>24)|4278255360&(n[f]<<24|n[f]>>>8);n[s>>>5]|=128<<s%32,n[14+(s+64>>>9<<4)]=s;var d=i._ff,h=i._gg,b=i._hh,g=i._ii;for(f=0;f<n.length;f+=16){var y=l,v=u,_=p,E=m;l=d(l,u,p,m,n[f+0],7,-680876936),m=d(m,l,u,p,n[f+1],12,-389564586),p=d(p,m,l,u,n[f+2],17,606105819),u=d(u,p,m,l,n[f+3],22,-1044525330),l=d(l,u,p,m,n[f+4],7,-176418897),m=d(m,l,u,p,n[f+5],12,1200080426),p=d(p,m,l,u,n[f+6],17,-1473231341),u=d(u,p,m,l,n[f+7],22,-45705983),l=d(l,u,p,m,n[f+8],7,1770035416),m=d(m,l,u,p,n[f+9],12,-1958414417),p=d(p,m,l,u,n[f+10],17,-42063),u=d(u,p,m,l,n[f+11],22,-1990404162),l=d(l,u,p,m,n[f+12],7,1804603682),m=d(m,l,u,p,n[f+13],12,-40341101),p=d(p,m,l,u,n[f+14],17,-1502002290),l=h(l,u=d(u,p,m,l,n[f+15],22,1236535329),p,m,n[f+1],5,-165796510),m=h(m,l,u,p,n[f+6],9,-1069501632),p=h(p,m,l,u,n[f+11],14,643717713),u=h(u,p,m,l,n[f+0],20,-373897302),l=h(l,u,p,m,n[f+5],5,-701558691),m=h(m,l,u,p,n[f+10],9,38016083),p=h(p,m,l,u,n[f+15],14,-660478335),u=h(u,p,m,l,n[f+4],20,-405537848),l=h(l,u,p,m,n[f+9],5,568446438),m=h(m,l,u,p,n[f+14],9,-1019803690),p=h(p,m,l,u,n[f+3],14,-187363961),u=h(u,p,m,l,n[f+8],20,1163531501),l=h(l,u,p,m,n[f+13],5,-1444681467),m=h(m,l,u,p,n[f+2],9,-51403784),p=h(p,m,l,u,n[f+7],14,1735328473),l=b(l,u=h(u,p,m,l,n[f+12],20,-1926607734),p,m,n[f+5],4,-378558),m=b(m,l,u,p,n[f+8],11,-2022574463),p=b(p,m,l,u,n[f+11],16,1839030562),u=b(u,p,m,l,n[f+14],23,-35309556),l=b(l,u,p,m,n[f+1],4,-1530992060),m=b(m,l,u,p,n[f+4],11,1272893353),p=b(p,m,l,u,n[f+7],16,-155497632),u=b(u,p,m,l,n[f+10],23,-1094730640),l=b(l,u,p,m,n[f+13],4,681279174),m=b(m,l,u,p,n[f+0],11,-358537222),p=b(p,m,l,u,n[f+3],16,-722521979),u=b(u,p,m,l,n[f+6],23,76029189),l=b(l,u,p,m,n[f+9],4,-640364487),m=b(m,l,u,p,n[f+12],11,-421815835),p=b(p,m,l,u,n[f+15],16,530742520),l=g(l,u=b(u,p,m,l,n[f+2],23,-995338651),p,m,n[f+0],6,-198630844),m=g(m,l,u,p,n[f+7],10,1126891415),p=g(p,m,l,u,n[f+14],15,-1416354905),u=g(u,p,m,l,n[f+5],21,-57434055),l=g(l,u,p,m,n[f+12],6,1700485571),m=g(m,l,u,p,n[f+3],10,-1894986606),p=g(p,m,l,u,n[f+10],15,-1051523),u=g(u,p,m,l,n[f+1],21,-2054922799),l=g(l,u,p,m,n[f+8],6,1873313359),m=g(m,l,u,p,n[f+15],10,-30611744),p=g(p,m,l,u,n[f+6],15,-1560198380),u=g(u,p,m,l,n[f+13],21,1309151649),l=g(l,u,p,m,n[f+4],6,-145523070),m=g(m,l,u,p,n[f+11],10,-1120210379),p=g(p,m,l,u,n[f+2],15,718787259),u=g(u,p,m,l,n[f+9],21,-343485551),l=l+y>>>0,u=u+v>>>0,p=p+_>>>0,m=m+E>>>0}return r.endian([l,u,p,m])})._ff=function(e,t,n,r,o,a,c){var i=e+(t&n|~t&r)+(o>>>0)+c;return(i<<a|i>>>32-a)+t},i._gg=function(e,t,n,r,o,a,c){var i=e+(t&r|n&~r)+(o>>>0)+c;return(i<<a|i>>>32-a)+t},i._hh=function(e,t,n,r,o,a,c){var i=e+(t^n^r)+(o>>>0)+c;return(i<<a|i>>>32-a)+t},i._ii=function(e,t,n,r,o,a,c){var i=e+(n^(t|~r))+(o>>>0)+c;return(i<<a|i>>>32-a)+t},i._blocksize=16,i._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var n=r.wordsToBytes(i(e,t));return t&&t.asBytes?n:t&&t.asString?c.bytesToString(n):r.bytesToHex(n)}},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,c){if(c!==r){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes: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,c,i,u=[],p=[],m=e.querySelectorAll(n);for(t.includeContainer&&r.call(e,n)&&(m=Array.prototype.slice.apply(m)).unshift(e),o=0;o<m.length;o++)a(c=m[o])&&(0===(i=s(c))?u.push(c):p.push({documentOrder:o,tabIndex:i,node:c}));return p.sort(l).map((function(e){return e.node})).concat(u)}function a(e){return!(!c(e)||function(e){return function(e){return u(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t=e.ownerDocument.querySelectorAll('input[type="radio"][name="'+e.name+'"]'),n=function(e){for(var t=0;t<e.length;t++)if(e[t].checked)return e[t]}(t);return!n||n===e}(e)}(e)||s(e)<0)}function c(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,i)&&c(e)};var i=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 l(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},61:function(e,t,n){var r=n(698).default;function o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=o=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var t,n={},a=Object.prototype,c=a.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},l=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",p=s.toStringTag||"@@toStringTag";function m(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{m({},"")}catch(t){m=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var o=t&&t.prototype instanceof _?t:_,a=Object.create(o.prototype),c=new L(r||[]);return i(a,"_invoke",{value:P(e,n,c)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=f;var h="suspendedStart",b="suspendedYield",g="executing",y="completed",v={};function _(){}function E(){}function w(){}var k={};m(k,l,(function(){return this}));var O=Object.getPrototypeOf,x=O&&O(O(z([])));x&&x!==a&&c.call(x,l)&&(k=x);var j=w.prototype=_.prototype=Object.create(k);function C(e){["next","throw","return"].forEach((function(t){m(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(o,a,i,s){var l=d(e[o],e,a);if("throw"!==l.type){var u=l.arg,p=u.value;return p&&"object"==r(p)&&c.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,i,s)}),(function(e){n("throw",e,i,s)})):t.resolve(p).then((function(e){u.value=e,i(u)}),(function(e){return n("throw",e,i,s)}))}s(l.arg)}var o;i(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(a,a):a()}})}function P(e,n,r){var o=h;return function(a,c){if(o===g)throw Error("Generator is already running");if(o===y){if("throw"===a)throw c;return{value:t,done:!0}}for(r.method=a,r.arg=c;;){var i=r.delegate;if(i){var s=D(i,r);if(s){if(s===v)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=g;var l=d(e,n,r);if("normal"===l.type){if(o=r.done?y:b,l.arg===v)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=y,r.method="throw",r.arg=l.arg)}}}function D(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,D(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var a=d(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,v;var c=a.arg;return c?c.done?(n[e.resultName]=c.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):c:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function z(e){if(e||""===e){var n=e[l];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(c.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(r(e)+" is not iterable")}return E.prototype=w,i(j,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:E,configurable:!0}),E.displayName=m(w,p,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,m(e,p,"GeneratorFunction")),e.prototype=Object.create(j),e},n.awrap=function(e){return{__await:e}},C(S.prototype),m(S.prototype,u,(function(){return this})),n.AsyncIterator=S,n.async=function(e,t,r,o,a){void 0===a&&(a=Promise);var c=new S(f(e,t,r,o),a);return n.isGeneratorFunction(t)?c:c.next().then((function(e){return e.done?e.value:c.next()}))},C(j),m(j,p,"Generator"),m(j,l,(function(){return this})),m(j,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=z,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(M),!e)for(var n in this)"t"===n.charAt(0)&&c.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,o){return i.type="throw",i.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=c.call(a,"catchLoc"),l=c.call(a,"finallyLoc");if(s&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&c.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),M(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;M(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:z(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},n}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},698:function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},687:function(e,t,n){var r=n(61)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}},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";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(t){var n=function(t,n){if("object"!=e(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,n||"default");if("object"!=e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==e(n)?n:n+""}function r(e,n,r){return(n=t(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var o=window.wp.element,a=window.ctEvents,c=n.n(a),i=window.wp.i18n,s=window.blocksyOptions;function l(e,t,n,r,o,a,c){try{var i=e[a](c),s=i.value}catch(e){return void n(e)}i.done?t(s):Promise.resolve(s).then(r,o)}function u(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function c(e){l(a,r,o,c,i,"next",e)}function i(e){l(a,r,o,c,i,"throw",e)}c(void 0)}))}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function m(e,t){if(e){if("string"==typeof e)return p(e,t);var n={}.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}}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,c,i=[],s=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(i.push(r.value),i.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=n.return&&(c=n.return(),Object(c)!==c))return}finally{if(l)throw o}}return i}}(e,t)||m(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var d=n(687),h=n.n(d),b=function(){var e=u(h().mark((function e(){var t,n;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("".concat(wp.ajax.settings.url,"?action=blocksy_flush_permalinks&nonce=").concat(ctDashboardLocalizations.dashboard_actions_nonce),{method:"POST"});case 2:if(200===(t=e.sent).status){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,t.json();case 7:if(n=e.sent,n.success){e.next=11;break}return e.abrupt("return");case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();function g(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||m(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function v(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,t(o.key),o)}}var _=function(){var e={};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e},E=n(568),w=n.n(E);function k(t){if(Array.isArray(t))return"[".concat(t.map((function(e){return k(e)})).join(","),"]");if("object"===e(t)&&null!==t){var n="",r=Object.keys(t).sort();n+="{".concat(JSON.stringify(r));for(var o=0;o<r.length;o++)n+="".concat(k(t[r[o]]),",");return"".concat(n,"}")}return"".concat(JSON.stringify(t))}var O=function(e){return w()(k(e))};function x(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 j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var C=0,S=1,P=2,D={cacheKey:{state:C,response:null,payoad:{}}},N={},M=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return function(e,t,n){t&&v(e.prototype,t),n&&v(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(e,[{key:"parseOptions",value:function(e){var t=e.fetcherName;return{args:{fetcherName:void 0===t?null:t},inputFetchOptions:y(e,["fetcherName"])}}},{key:"fetch",value:function(e,t,n){var r=this.parseOptions(n).args,o=O(j(j({},t),{},{url:e}));if(D[o]||(D[o]={state:C,response:null,payload:{waitingForResponse:[]}},r.fetcherName&&N[r.fetcherName]&&(N[r.fetcherName].forEach((function(e){e.abort()})),N[r.fetcherName]=[])),D[o].state===P){var a=_();return a.resolve(D[o].response.clone()),a.promise}if(D[o].state===S)return this.fetchLoadingState(o,e,t,n);if(D[o].state===C)return this.fetchEmptyState(o,e,t,n);throw new Error("Invalid state",{cacheEntry:D[o]})}},{key:"fetchLoadingState",value:function(e,t,n,r){var o=_();return D[e].payload.waitingForResponse.push(o),o.promise}},{key:"fetchEmptyState",value:function(e,t,n,r){var o=this.parseOptions(r),a=o.args,c=o.inputFetchOptions;D[e].state=S;var i=new AbortController;a.fetcherName&&(N[a.fetcherName]||(N[a.fetcherName]=[]),N[a.fetcherName].push(i));var s=_(),l=j({method:"POST",headers:{"Content-Type":"application/json"},signal:i.signal},c);return"POST"===l.method&&(l.body=JSON.stringify(n)),fetch(t,l).then((function(t){D[e].response=t.clone(),[s].concat(g(D[e].payload.waitingForResponse)).forEach((function(t){t.resolve(D[e].response.clone())})),D[e].payload={waitingForResponse:[]},D[e].state=P,a.fetcherName&&(N[a.fetcherName]=[])})).catch((function(t){[s].concat(g(D[e].payload.waitingForResponse)).forEach((function(t){t.reject(D[e].response)})),D[e].payload={waitingForResponse:[]},D[e].state=C})),s.promise}}]),e}(),L=new M,z=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return L.fetch(e,t,n)},B=function(){var e=new URL("https://startersites.io?route=v2/demo/get_all");return Object.keys(ctDashboardLocalizations.plugin_data.retrieve_demos_data).forEach((function(t){e.searchParams.append(t,ctDashboardLocalizations.plugin_data.retrieve_demos_data[t])})),ctDashboardLocalizations.plugin_data.is_pro&&e.searchParams.append("is_pro","true"),e.searchParams.append("companion_version",ctDashboardLocalizations.plugin_data.plugin_version),z(e.toString(),{},{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"}})};function T(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 F(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var A=null,I=!1,R=function(){var e=f((0,o.useState)(!A),2),t=e[0],n=e[1],r=f((0,o.useState)(A||[]),2),a=r[0],i=r[1],s=f((0,o.useState)(I),2),l=s[0],p=s[1],m=f((0,o.useState)({controller:null}),2),d=m[0].controller,g=m[1],y=function(){var e=u(h().mark((function e(){var t,r,o,a,c,s,l,u,m,f=arguments;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=F({verbose:!1,extension:null,extAction:null},f.length>0&&void 0!==f[0]?f[0]:{}),r=t.verbose,o=t.extension,a=t.extAction,r&&n(!0),d&&d.abort(),e.prev=4,e.next=7,B();case 7:(c=e.sent).status&&511===c.status&&(I=!0,p(!0)),e.next=13;break;case 11:e.prev=11,e.t0=e.catch(4);case 13:return"AbortController"in window&&(d=new AbortController,g({controller:d})),e.next=16,fetch("".concat(wp.ajax.settings.url,"?action=blocksy_extensions_status&nonce=").concat(ctDashboardLocalizations.dashboard_actions_nonce),F({method:"POST",signal:d.signal},o&&a?{body:JSON.stringify({extension:o,extAction:a})}:{}));case 16:if(200===(s=e.sent).status){e.next=19;break}return e.abrupt("return");case 19:return e.next=21,s.json();case 21:if(l=e.sent,u=l.success,m=l.data,u){e.next=26;break}return e.abrupt("return");case 26:if(null!=a&&a.require_refresh&&b(),i(m),A=m,n(!1),!o){e.next=32;break}return e.abrupt("return",m[o]);case 32:return e.abrupt("return",m);case 33:case"end":return e.stop()}}),e,null,[[4,11]])})));return function(){return e.apply(this,arguments)}}();return(0,o.useEffect)((function(){A||y({verbose:!0});var e=function(){y()};return c().on("blocksy_exts_sync_exts",e),function(){c().off("blocksy_exts_sync_exts",e)}}),[]),{syncExts:y,isLoading:t,exts_status:a,forceEmptyExts:l,setExtsStatus:function(e){var t=e(a);A=t,i(e)}}},V=function(){return(0,o.createElement)("div",{class:"ct-demo-notification"},(0,o.createElement)("b",null,"Yikes! Something went wrong"),(0,o.createElement)("p",null,"Unfortunately something went wrong during initialization, please ",(0,o.createElement)("a",{href:"https://creativethemes.com/blocksy/support/",target:"_blank"},"contact us from here")," and we will assist you."))},H=function(e){var t=e.navigate,n=R(),r=n.forceEmptyExts,a=n.exts_status;return(0,o.useEffect)((function(){r||Object.keys(a).length>0&&t("/extensions/".concat(Object.keys(a)[0]))}),[a,r]),r?(0,o.createElement)(V,null):(0,o.createElement)("div",{className:"ct-extensions-container"},(0,o.createElement)(s.Transition,{items:!0,from:{opacity:0},enter:[{opacity:1}],leave:[{opacity:0}],initial:null,config:function(e,t){return"leave"===t?{duration:300}:{delay:300,duration:300}}},(function(e,t){return t?(0,o.createElement)(s.animated.p,{style:e,className:"ct-loading-text"},(0,o.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 100 100"},(0,o.createElement)("g",{transform:"translate(50,50)"},(0,o.createElement)("g",{transform:"scale(1)"},(0,o.createElement)("circle",{cx:"0",cy:"0",r:"50",fill:"currentColor"}),(0,o.createElement)("circle",{cx:"0",cy:"-26",r:"12",fill:"#ffffff",transform:"rotate(161.634)"},(0,o.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,i.__)("Loading Extensions Status...","blocksy-companion")):null})))},G=n(184),U=n.n(G);function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function W(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Z=function(e){var t=e.navigate,n=e.currentExtension,r=e.exts_status,a=(0,o.useMemo)((function(){return Object.values(r).map((function(e,t){return W(W({},e),{},{name:Object.keys(r)[t]})})).find((function(e){return e.config.pro}))}),[r]),c=(0,o.useMemo)((function(){return Object.values(r).map((function(e,t){return W(W({},e),{},{name:Object.keys(r)[t]})})).filter((function(e){return!e.config.pro}))}),[r]),s=(0,o.useMemo)((function(){return Object.values(r).map((function(e,t){return W(W({},e),{},{name:Object.keys(r)[t]})})).filter((function(e){return e.config.pro})).filter((function(e){return"white-label"!==e.name||!e.data||!e.data.locked}))}),[r]);return(0,o.createElement)("div",{className:"ct-extensions-menu"},[{label:(0,i.__)("Free Extensions","blocksy-companion"),exts:c,order:[]}].concat(g(a?[{label:(0,i.__)("Pro Extensions","blocksy-companion"),exts:s,order:["woocommerce-extra","post-types-extra","local-google-fonts","custom-fonts","adobe-typekit"]}]:[])).map((function(e){var r=e.label,a=e.exts,c=e.order,s=[].concat(g(c.map((function(e){return a.find((function(t){return t.name===e}))}))),g(a.filter((function(e){var t=e.name;return!c.includes(t)})).sort((function(e,t){return e.config.name.localeCompare(t.config.name)})))).filter((function(e){return!!e}));return(0,o.createElement)(o.Fragment,{key:r},(0,o.createElement)("h4",null,r),(0,o.createElement)("ul",null,s.map((function(e){var r=e.name,a=e.config,c=(e.status,e.__object);return(0,o.createElement)("li",{key:r,className:U()({selected:n&&n.name===r,active:!!c}),onClick:function(){t("/extensions/".concat(r))}},a.name,(0,o.createElement)("span",{"data-tooltip-reveal":"top"},(0,o.createElement)("i",{className:"ct-tooltip"},(0,i.__)("Active","blocksy-companion"))))}))))})))},J=(window.ctDashboardLocalizations||{}).DashboardContext,K=((J||{}).Provider,(J||{}).Consumer,J);function Y(){return Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Y.apply(null,arguments)}var X=window.React,$=n.n(X);n(697);function Q(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var ee=function(e){e.initialState,e.getInitialState,e.refs,e.getRefs,e.didMount,e.didUpdate,e.willUnmount,e.getSnapshotBeforeUpdate,e.shouldUpdate,e.render;return function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["initialState","getInitialState","refs","getRefs","didMount","didUpdate","willUnmount","getSnapshotBeforeUpdate","shouldUpdate","render"])},te=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),c=0;c<o;c++)a[c]=arguments[c];return n=r=Q(this,e.call.apply(e,[this].concat(a))),ne.call(r),Q(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:ee(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:ee(e),nextState:t})},t.prototype.componentWillUnmount=function(){this.props.willUnmount&&this.props.willUnmount({state:this.state,props:ee(this.props),refs:this._refs})},t.prototype.componentDidUpdate=function(e,t,n){this.props.didUpdate&&this.props.didUpdate(Object.assign(this.getArgs(),{prevProps:ee(e),prevState:t}),n)},t.prototype.getSnapshotBeforeUpdate=function(e,t){return this.props.getSnapshotBeforeUpdate?this.props.getSnapshotBeforeUpdate(Object.assign(this.getArgs(),{prevProps:ee(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}($().Component);te.defaultProps={getInitialState:function(){},getRefs:function(){return{}}};var ne=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)}},re=te,oe=function(e){var t=e.children,n=e.container,r=void 0===n?document.body:n,a=e.type,c=void 0===a?"reach-portal":a;return(0,o.createElement)(re,{getRefs:function(){return{node:null}},didMount:function(e){var t=e.refs,n=e.forceUpdate,o=r.hasOwnProperty("current")?r.current:r;t.node=document.createElement(c),o.appendChild(t.node),n()},willUnmount:function(e){var t=e.refs.node,n=r.hasOwnProperty("current")?r.current:r;n&&n.removeChild(t)},render:function(e){var n=e.refs.node;return n?(0,o.createPortal)(t,n):null}})};var ae=function(e,t){return function(n){if(e&&e(n),!n.defaultPrevented)return t(n)}},ce=n(172),ie=n.n(ce),se=function(){},le=function(){},ue=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=ie()(e.overlayNode,{initialFocus:t?function(){return t.current}:void 0,fallbackFocus:e.contentNode,escapeDeactivates:!1,clickOutsideDeactivates:!1})},pe=function(e){var t=e.refs;t.trap.deactivate(),t.disposeAriaHider()},me=React.createContext(),fe=React.forwardRef((function(e,t){var n=e.container,r=e.isOpen,a=void 0===r||r,c=e.onDismiss,i=void 0===c?se:c,s=e.initialFocusRef,l=e.onClick,u=e.onKeyDown,p=y(e,["container","isOpen","onDismiss","initialFocusRef","onClick","onKeyDown"]);return(0,o.createElement)(re,{didMount:le},a?(0,o.createElement)(oe,{container:n,"data-reach-dialog-wrapper":!0},(0,o.createElement)(re,{refs:{overlayNode:null,contentNode:null},didMount:function(e){var t=e.refs;ue(t,s)},willUnmount:pe},(function(e){var n=e.refs;return(0,o.createElement)(me.Provider,{value:function(e){return n.contentNode=e}},(0,o.createElement)("div",Y({"data-reach-dialog-overlay":!0,onClick:ae(l,(function(e){e.stopPropagation(),i()})),onKeyDown:ae(u,(function(e){"Escape"===e.key&&(e.stopPropagation(),i())})),ref:function(e){n.overlayNode=e,t&&t(e)}},p)))}))):null)}));fe.propTypes={initialFocusRef:function(){}};var de=function(e){return e.stopPropagation()},he=React.forwardRef((function(e,t){var n=e.onClick,r=(e.onKeyDown,y(e,["onClick","onKeyDown"]));return(0,o.createElement)(me.Consumer,null,(function(e){return(0,o.createElement)("div",Y({"aria-modal":"true","data-reach-dialog-content":!0,tabIndex:"-1",onClick:ae(n,de),ref:function(n){e(n),t&&t(n)}},r))}))})),be=(0,s.animated)(fe),ge=(0,s.animated)(he),ye=function(e){return!!e},ve=function(e){var t=e.items,n=e.isVisible,r=void 0===n?ye:n,a=e.render,c=e.className,i=e.onDismiss;return(0,o.createElement)(s.Transition,{items:t,onStart:function(){return document.body.classList[r(t)?"add":"remove"]("ct-dashboard-overlay-open")},config:{duration:200},from:{opacity:0,y:-10},enter:{opacity:1,y:0},leave:{opacity:0,y:10}},(function(e,t){return r(t)&&(0,o.createElement)(be,{style:{opacity:e.opacity},container:document.querySelector("#wpbody"),onDismiss:function(){return i()}},(0,o.createElement)(ge,{className:U()("ct-admin-modal",c),style:{transform:e.y.to((function(e){return"translate3d(0px, ".concat(e,"px, 0px)")}))}},(0,o.createElement)("button",{className:"close-button",onClick:function(){return i()}},"×"),a(t,e)))}))},_e=((0,i.__)("Free","blocksy-companion"),(0,i.__)("Personal","blocksy-companion"),(0,i.__)("Business","blocksy-companion"),(0,i.__)("Agency","blocksy-companion"),(0,i.__)("Personal","blocksy-companion"),(0,i.__)("Business","blocksy-companion"),(0,i.__)("Agency","blocksy-companion"),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(e.currentPlan,e.requiredPlan),n=void 0===t?"personal":t,r=e.personal,a=void 0===r?{title:(0,i.__)("This is a Pro feature","blocksy-companion"),description:(0,i.__)("Upgrade to any pro plan and get instant access to this and many other feature.","blocksy-companion")}:r,c=e.professional,s=void 0===c?{description:(0,i.__)("Upgrade to the business or agency plan and get instant access to this and many other features.","blocksy-companion")}:c,l=e.agency,u=void 0===l?{description:(0,i.__)("Upgrade to the agency plan and get instant access to this and many other features.","blocksy-companion")}:l,p=f((0,o.useState)(!1),2),m=p[0],d=p[1];return{showNotice:function(e){d(e||!0)},content:(0,o.createElement)(ve,{items:m,className:"ct-onboarding-modal",onDismiss:function(){return d(!1)},render:function(){return(0,o.createElement)("div",{className:"ct-modal-content"},(0,o.createElement)("svg",{width:"55",height:"55",viewBox:"0 0 40.5 48.3"},(0,o.createElement)("path",{fill:"#2d82c8",d:"M33.4 29.4l7.1 12.3-7.4.6-4 6-7.3-12.9"}),(0,o.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,o.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,o.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"})),"personal"===n&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)("h2",{className:"ct-modal-title"},a.title),(0,o.createElement)("p",null,a.description)),"professional"===n&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)("span",null,"Required plan"),(0,o.createElement)("h2",{className:"ct-modal-title"},(0,i.__)("Business or Agency","blocksy-companion")),(0,o.createElement)("p",null,s.description)),"agency"===n&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)("span",null,"Required plan"),(0,o.createElement)("h2",{className:"ct-modal-title"},(0,i.__)("Agency","blocksy-companion")),(0,o.createElement)("p",null,u.description)),(0,o.createElement)("div",{className:"ct-modal-actions has-divider","data-buttons":"2"},(0,o.createElement)("a",{href:ctDashboardLocalizations.plugin_data?ctDashboardLocalizations.plugin_data.modal_links["compare-plans"]:"https://creativethemes.com/blocksy/pricing/#comparison-free-vs-pro",target:"_blank",className:"button"},(0,i.__)("Compare Plans","blocksy-companion")),(0,o.createElement)("a",{href:ctDashboardLocalizations.plugin_data.modal_links?ctDashboardLocalizations.plugin_data.modal_links.pricing:"https://creativethemes.com/blocksy/pricing/",target:"_blank",className:"button button-primary"},(0,i.__)("Upgrade Now","blocksy-companion"))))}})}});function Ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function we(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ee(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ke=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=we({strategy:"pro-ext",modalTitle:(0,i.__)("This is a Pro extension","blocksy-companion")},t);var n=f((0,o.useState)(!1),2),r=(n[0],n[1],ctDashboardLocalizations.plugin_data.is_pro),a=((0,o.useContext)(K).history,!r&&e.config.pro),c=ctDashboardLocalizations.plugin_data.current_plan,s="personal";e.config.plans&&(e.config.plans.includes("agency_v2")&&(s="agency"),e.config.plans.includes("professional_v2")&&(s="professional"));var l=_e(we({currentPlan:c,requiredPlan:s},t)),u=l.content,p=l.showNotice;return{isPro:r,isProInFree:!r&&e.config.pro||e.config.plans&&e.config.plans.length&&!e.config.plans.includes(c),showNotice:p,content:"pro-ext"===t.strategy&&a||"pro"===t.strategy&&!r||e.config.plans&&e.config.plans.length&&!e.config.plans.includes(c)?u:null}},Oe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=f((0,o.useState)(!1),2),r=n[0],a=n[1],c=ke(e),i=c.isProInFree,s=c.showNotice,l=c.content,p=function(){var n=u(h().mark((function n(){var r,o,c,l=arguments;return h().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=l.length>0&&void 0!==l[0]?l[0]:function(){},o=!(l.length>1&&void 0!==l[1])||l[1],!i){n.next=8;break}if(!o||!e.config.features){n.next=6;break}return r(),n.abrupt("return");case 6:return s(),n.abrupt("return");case 8:if(r(),!o){n.next=25;break}return(c=new FormData).append("ext",e.name),c.append("action",e.__object?"blocksy_extension_deactivate":"blocksy_extension_activate"),c.append("nonce",ctDashboardLocalizations.dashboard_actions_nonce),a(!0),n.prev=15,n.next=18,fetch(ctDashboardLocalizations.ajax_url,{method:"POST",body:c});case 18:e.config.require_refresh&&b(),t(),n.next=24;break;case 22:n.prev=22,n.t0=n.catch(15);case 24:a(!1);case 25:case"end":return n.stop()}}),n,null,[[15,22]])})));return function(){return n.apply(this,arguments)}}();return[r,p,l]},xe=window.wp.hooks;function je(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?je(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):je(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Se=function(e){var t=e.navigate,n=e.currentExtension,a=e.onExtsSync,c=e.setExtsStatus,s=f((0,o.useState)(!1),2),l=s[0],u=s[1],p=f(Oe(n),3),m=(p[0],p[1]),d=p[2],h={content:null,showExtension:!0,activationStrategy:"default"},b=n?(0,xe.applyFilters)("blocksy.extensions.current_extension_content",h,{extension:n,onExtsSync:a,setExtsStatus:c,navigate:t}):h,y=!!n&&n.__object;"from-custom-content"===b.activationStrategy&&(y=l);var v=[].concat(g(n&&n.config.documentation&&!ctDashboardLocalizations.plugin_data.hide_docs_section?[(0,o.createElement)("a",{target:"_blank",href:n.config.documentation},(0,o.createElement)("svg",{width:"15px",height:"15px",viewBox:"0 0 24 24",fill:"currentColor"},(0,o.createElement)("path",{d:"M22.9,1.1h-6.5C14.6,1.1,13,2,12,3.3C11,2,9.4,1.1,7.6,1.1H1.1C0.5,1.1,0,1.6,0,2.2v16.4c0,0.6,0.5,1.1,1.1,1.1h7.6c1.2,0,2.2,1,2.2,2.2c0,0.6,0.5,1.1,1.1,1.1c0.6,0,1.1-0.5,1.1-1.1c0-1.2,1-2.2,2.2-2.2h7.6c0.6,0,1.1-0.5,1.1-1.1V2.2C24,1.6,23.5,1.1,22.9,1.1z M10.9,18c-0.6-0.4-1.4-0.6-2.2-0.6H2.2V3.3h5.5c1.8,0,3.3,1.5,3.3,3.3V18z M21.8,17.5h-6.5c-0.8,0-1.5,0.2-2.2,0.6V6.5c0-1.8,1.5-3.3,3.3-3.3h5.5V17.5z"})),(0,i.__)("Documentation","blocksy-companion"))]:[]),g(n&&n.config.video&&!ctDashboardLocalizations.plugin_data.hide_video_section?[(0,o.createElement)("a",{target:"_blank",href:n.config.video},(0,o.createElement)("svg",{width:"15px",height:"15px",viewBox:"0 0 24 24",fill:"currentColor"},(0,o.createElement)("path",{d:"M12,0C5.4,0,0,5.4,0,12s5.4,12,12,12s12-5.4,12-12S18.6,0,12,0z M12,21.8c-5.4,0-9.8-4.4-9.8-9.8c0-5.4,4.4-9.8,9.8-9.8c5.4,0,9.8,4.4,9.8,9.8C21.8,17.4,17.4,21.8,12,21.8z M16.1,11.3c0.2,0.2,0.4,0.4,0.4,0.7c0,0.3-0.1,0.6-0.4,0.7L11,16.1c-0.1,0.1-0.3,0.1-0.5,0.1c-0.1,0-0.3,0-0.4-0.1c-0.3-0.1-0.5-0.4-0.5-0.8V8.6c0-0.3,0.2-0.6,0.5-0.8c0.3-0.1,0.6-0.1,0.9,0L16.1,11.3z"})),(0,i.__)("Video Tutorial","blocksy-companion"))]:[]),g(n&&n.config.customize&&y?[(0,o.createElement)("a",{href:n.config.customize,target:"_blank",className:"ct-button"},(0,o.createElement)("svg",{width:"15px",height:"15px",viewBox:"0 0 24 24",fill:"currentColor"},(0,o.createElement)("path",{d:"M4 11c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v7c0 .6.4 1 1 1zM12 11c-.6 0-1 .4-1 1v9c0 .6.4 1 1 1s1-.4 1-1v-9c0-.6-.4-1-1-1zM20 13c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v9c0 .6.4 1 1 1zM7 13H1c-.6 0-1 .4-1 1s.4 1 1 1h2v6c0 .6.4 1 1 1s1-.4 1-1v-6h2c.6 0 1-.4 1-1s-.4-1-1-1zM15 7h-2V3c0-.6-.4-1-1-1s-1 .4-1 1v4H9c-.6 0-1 .4-1 1s.4 1 1 1h6c.6 0 1-.4 1-1s-.4-1-1-1zM23 15h-6c-.6 0-1 .4-1 1s.4 1 1 1h2v4c0 .6.4 1 1 1s1-.4 1-1v-4h2c.6 0 1-.4 1-1s-.4-1-1-1z"})),(0,i.__)("Customize","blocksy-companion"))]:[]));return(0,o.useEffect)((function(){n&&b.showExtension||t("/extensions")}),[]),n?(0,o.createElement)("div",{className:"ct-extension-container"},(0,o.createElement)("div",{className:"ct-extension-info"},(0,o.createElement)("h4",null,(0,o.createElement)("span",{className:"ct-extension-icon",dangerouslySetInnerHTML:{__html:n&&n.config.icon||'<svg width="16" height="16" viewBox="0 0 24 24">\n\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\tfillRule="evenodd"\n\t\t\t\t\t\t\t\td="M22.3,10.7H24V7.6l-1.5-6.2h-21L0,7.6v3.1h1.7v11.7h20.7V10.7z M20.3,10.7H3.7v9.7h5.7v-7h5.3v7h5.7V10.7zM13,3.4h2.8l0.6,4.3l0,1H13V3.4z M8.2,3.4H11v5.3H7.6l0-1L8.2,3.4z M18.4,7.5l-0.6-4.1h3.1L22,7.8v0.9h-3.6L18.4,7.5z M6.2,3.4H3.1L2,7.8v0.9h3.6l0-1.2L6.2,3.4z"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</svg>'}}),n&&n.config.name,n&&(!n.config.requirement||n.config.requirement&&n.config.requirement.check)&&(0,o.createElement)("div",{className:U()("ct-option-switch",{"ct-active":y}),onClick:function(){"from-custom-content"!==b.activationStrategy?m((function(){c((function(e){return Ce(Ce({},e),{},r({},n.name,Ce(Ce({},e[n.name]),{},{__object:e[n.name].__object?null:{}})))}))})):u(!l)}},(0,o.createElement)("span",null))),n&&n.config.description&&(0,o.createElement)("p",null,n.config.description),v.length>0&&(0,o.createElement)("div",{className:"ct-extension-actions"},v.map((function(e,t){return(0,o.createElement)(o.Fragment,{key:t},e)})))),y&&n.config.features&&(!n.config.requirement||n.config.requirement&&n.config.requirement.check)&&(0,o.createElement)("div",{className:"ct-extension-modules"},n.config.features.map((function(e){return(0,o.createElement)("div",{className:"ct-extension-module",key:e.id},(0,o.createElement)("h5",null,e.title,(0,o.createElement)("div",{className:U()("ct-option-switch",{"ct-active":n.data&&n.data.settings.features[e.id]}),onClick:function(){m((function(){a({extAction:{type:"update-features",require_refresh:!(null==e||!e.require_refresh),settings:{features:Ce(Ce({},n.data.settings.features),{},r({},e.id,!n.data.settings.features[e.id]))}}}),c((function(t){return Ce(Ce({},t),{},r({},n.name,Ce(Ce({},t[n.name]),{},{data:Ce(Ce({},t[n.name].data),{},{settings:Ce(Ce({},t[n.name].data.settings),{},{features:Ce(Ce({},t[n.name].data.settings.features),{},r({},e.id,!t[n.name].data.settings.features[e.id]))})})})))}))}),!1)}},(0,o.createElement)("span",null))),(0,o.createElement)("p",null,e.description),e.documentation&&!ctDashboardLocalizations.plugin_data.hide_docs_section||(e.customize||e.manage)&&n.data&&n.data.settings.features[e.id]?(0,o.createElement)("div",{className:"ct-extension-module-actions"},e.documentation&&!ctDashboardLocalizations.plugin_data.hide_docs_section&&(0,o.createElement)("a",{href:e.documentation,target:"_blank"},(0,o.createElement)("svg",{width:"14px",height:"14px",viewBox:"0 0 24 24",fill:"currentColor"},(0,o.createElement)("path",{d:"M23 2.1h-6.6c-1.8 0-3.4.9-4.4 2.3C11 3 9.4 2.1 7.6 2.1H1c-.6 0-1 .4-1 1v16.5c0 .6.4 1 1 1h7.7c1.3 0 2.3 1 2.3 2.3 0 .6.4 1 1 1s1-.4 1-1c0-1.3 1-2.3 2.3-2.3H23c.6 0 1-.4 1-1V3.1c0-.6-.4-1-1-1zM11 19.3c-.7-.4-1.5-.7-2.3-.7H2V4.1h5.6c1.9 0 3.4 1.5 3.4 3.4v11.8zm11-.7h-6.7c-.8 0-1.6.2-2.3.7V7.5c0-1.9 1.5-3.4 3.4-3.4H22v14.5z"})),(0,i.__)("Documentation","blocksy-companion")),(e.customize||e.manage)&&n.data&&n.data.settings.features[e.id]&&(0,o.createElement)("a",{href:e.customize||e.manage,target:"_blank"},(0,o.createElement)("svg",{width:"14px",height:"14px",viewBox:"0 0 24 24",fill:"currentColor"},(0,o.createElement)("path",{d:"M4 11c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v7c0 .6.4 1 1 1zM12 11c-.6 0-1 .4-1 1v9c0 .6.4 1 1 1s1-.4 1-1v-9c0-.6-.4-1-1-1zM20 13c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v9c0 .6.4 1 1 1zM7 13H1c-.6 0-1 .4-1 1s.4 1 1 1h2v6c0 .6.4 1 1 1s1-.4 1-1v-6h2c.6 0 1-.4 1-1s-.4-1-1-1zM15 7h-2V3c0-.6-.4-1-1-1s-1 .4-1 1v4H9c-.6 0-1 .4-1 1s.4 1 1 1h6c.6 0 1-.4 1-1s-.4-1-1-1zM23 15h-6c-.6 0-1 .4-1 1s.4 1 1 1h2v4c0 .6.4 1 1 1s1-.4 1-1v-4h2c.6 0 1-.4 1-1s-.4-1-1-1z"})),e.customize?(0,i.__)("Customize","blocksy-companion"):(0,i.__)("Manage","blocksy-companion"))):null)}))),n&&n.config.requirement&&!n.config.requirement.check&&n.config.requirement.message&&(0,o.createElement)("div",{className:"ct-extension-options ct-newsletter-subscribe-options"},(0,o.createElement)("div",{className:"ct-extension-requirement"},(0,o.createElement)("span",null,(0,o.createElement)("svg",{width:"16",height:"16",fill:"#ffffff",viewBox:"0 0 24 24"},(0,o.createElement)("path",{d:"M12,23.6c-1.4,0-2.6-1-2.8-2.3L8.9,20h6.2l-0.3,1.3C14.6,22.6,13.4,23.6,12,23.6z M24,17.8H0l3.1-2c0.5-0.3,0.9-0.7,1.1-1.3c0.5-1,0.5-2.2,0.5-3.2V7.6c0-4.1,3.2-7.3,7.3-7.3s7.3,3.2,7.3,7.3v3.6c0,1.1,0.1,2.3,0.5,3.2c0.3,0.5,0.6,1,1.1,1.3L24,17.8zM6.1,15.6h11.8c0,0-0.1-0.1-0.1-0.2c-0.7-1.3-0.7-2.9-0.7-4.2V7.6c0-2.8-2.2-5.1-5.1-5.1c-2.8,0-5.1,2.2-5.1,5.1v3.6c0,1.3-0.1,2.9-0.7,4.2C6.1,15.5,6.1,15.6,6.1,15.6z"}))),n.config.requirement.message)),y&&b.content,d):null},Pe=function(){return ctDashboardLocalizations.plugin_data.hide_support_section?null:(0,o.createElement)("div",{className:"ct-support-container"},(0,o.createElement)("h2",null,(0,i.__)("Need help or advice?","blocksy-companion")),(0,o.createElement)("p",null,(0,i.__)("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,o.createElement)("div",{className:"ct-support-buttons"},(0,o.createElement)("a",{href:ctDashboardLocalizations.support_url,className:"ct-button","data-hover":"blue",target:"_blank"},(0,i.__)("Submit a Support Ticket","blocksy-companion")),(0,o.createElement)("a",{href:"https://www.facebook.com/groups/blocksy.community",className:"ct-button","data-hover":"blue",target:"_blank"},(0,i.__)("Join Facebook Community","blocksy-companion"))))};function De(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?De(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):De(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Me=function(e){(0,o.useContext)(K).history;var t=e.navigate,n=R(),r=n.forceEmptyExts,a=n.exts_status,c=n.syncExts,l=n.isLoading,u=n.setExtsStatus,p=null;return a[e.extension]&&(p=Ne(Ne({},a[e.extension]),{},{name:e.extension})),r?(0,o.createElement)(V,null):(0,o.createElement)("div",{className:"ct-extensions-container"},(0,o.createElement)(s.Transition,{items:l,from:{opacity:0},enter:[{opacity:1}],leave:[{opacity:0}],initial:null,config:function(e,t){return"leave"===t?{duration:300}:{delay:300,duration:300}}},(function(e,n){return n?(0,o.createElement)(s.animated.p,{style:e,className:"ct-loading-text"},(0,o.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 100 100"},(0,o.createElement)("g",{transform:"translate(50,50)"},(0,o.createElement)("g",{transform:"scale(1)"},(0,o.createElement)("circle",{cx:"0",cy:"0",r:"50",fill:"currentColor"}),(0,o.createElement)("circle",{cx:"0",cy:"-26",r:"12",fill:"#ffffff",transform:"rotate(161.634)"},(0,o.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,i.__)("Loading Extensions Status...","blocksy-companion")):(0,o.createElement)(s.animated.div,{style:e},(0,o.createElement)("section",{className:"ct-extensions-list"},(0,o.createElement)(Z,{currentExtension:p,exts_status:a,navigate:t}),(0,o.createElement)(Se,{navigate:t,currentExtension:p,setExtsStatus:u,onExtsSync:function(){return c(Ne(Ne({},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),{},{extension:p.name}))}})),(0,o.createElement)(o.Fragment,null,(0,o.createElement)(Pe,null)))})))},Le=function(e){var t=e.children,n=e.activated,r=e.checked,a=e.onChange,c=e.className,i=e.position,s=void 0===i?"end":i,l=[].concat(g("start"===s?[t]:[]),[(0,o.createElement)("span",{className:U()("ct-checkbox",{active:r}),key:"icon"},(0,o.createElement)("svg",{width:"10",height:"8",viewBox:"0 0 11.2 9.1"},(0,o.createElement)("polyline",{className:"check",points:"1.2,4.8 4.4,7.9 9.9,1.2 "})))],g("end"===s?[t]:[]));return(0,o.createElement)("div",{onClick:function(){return a()},className:U()("ct-checkbox-container",c,{activated:n})},l)};function ze(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?ze(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Te=function(e){return({gutenberg:"Gutenberg","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","advanced-custom-fields":"Advanced Custom Fields (ACF)","greenshift-animation-and-page-builder-blocks":"Greenshift – Gutenberg Blocks",fluentform:"Fluent Forms","translatepress-multilingual":"TranslatePress","fluent-booking":"Fluent Booking"}[e]||e).replace(/\b\w/,(function(e){return e.toUpperCase()}))},Fe=function(e){var t=e.demoConfiguration,n=e.setDemoConfiguration,r=e.style,a=(0,o.useContext)(Ft),c=a.currentDemo,l=a.demos_list,u=a.pluginsStatus,p=(a.setCurrentDemo,f((c||"").split(":"),2)),m=p[0];p[1],l.filter((function(e){return e.name===m||""}));return(0,o.createElement)(s.animated.div,{style:r},(0,o.createElement)("div",{className:"ct-demo-plugins"},(0,o.createElement)("i",{className:"ct-demo-icon"},(0,o.createElement)("svg",{width:"40",height:"40",viewBox:"0 0 40 40"},(0,o.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,o.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,o.createElement)("h2",null,(0,i.__)("Install & Activate Plugins","blocksy-companion")),(0,o.createElement)("p",null,(0,i.__)("The following plugins are required for this starter site in order to work properly.","blocksy-companion")),(0,o.createElement)("div",{className:"ct-checkboxes-container","data-type":"reversed"},t.plugins.map((function(e){var r=e.plugin,a=e.enabled;return(0,o.createElement)(o.Fragment,{key:r},!u[r]&&(0,o.createElement)(Le,{key:r,checked:a,onChange:function(){return n(Be(Be({},t),{},{plugins:t.plugins.map((function(e){return e.plugin===r?Be(Be({},e),{},{enabled:!a}):e}))}))}},Te(r)),u[r]&&(0,o.createElement)(Le,{activated:!0,checked:!0,onChange:function(){}},Te(r)))})))))};function Ae(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 Ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ae(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Re=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"conjunction";return new Intl.ListFormat("en-GB",{style:"long",type:t}).format(e)},Ve=function(e){var t=e.demo,n=(0,o.useContext)(Ft),r=n.currentlyInstalledDemo,a=n.demos_list,c=n.setCurrentDemo,s=n.setInstallerBlockingReleased,l=ke({config:Ie({pro:!!t.is_pro},t.plans?{plans:t.plans}:{})},{strategy:"pro",personal:{title:(0,i.__)("This is a Pro starter site","blocksy-companion"),description:(0,i.__)("Upgrade to any pro plan and get instant access to this starter site and many other features.","blocksy-companion")},professional:{description:(0,i.__)("Upgrade to the business or agency plan and get instant access to this starter site and many other features.","blocksy-companion")},agency:{description:(0,i.__)("Upgrade to the agency plan and get instant access to this starter site and many other features.","blocksy-companion")}}),u=l.isProInFree,p=l.showNotice,m=l.content;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)("li",{className:U()("ct-single-demo",{"ct-is-pro":t.is_pro})},(0,o.createElement)("figure",null,(0,o.createElement)("img",{src:t.screenshot}),(0,o.createElement)("section",null,t.is_pro&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)("h3",null,(0,i.__)("Required plan","blocksy-companion")),(0,o.createElement)("span",{className:"ct-required-plans"},Re((t.plans?t.plans:["personal_v2","professional_v2","agency_v2"]).filter((function(e){return e.indexOf("v2")>-1})).map((function(e){return{personal_v2:(0,i.__)("Personal","blocksy-companion"),professional_v2:(0,i.__)("Business","blocksy-companion"),agency_v2:(0,i.__)("Agency","blocksy-companion")}[e]})),"disjunction"))),(0,o.createElement)("h3",null,(0,i.__)("Available for","blocksy-companion")),(0,o.createElement)("span",{className:"ct-available-builders"},Re(a.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(e){var t=e.builder;return Te(t)||"Gutenberg"}))))),t.is_pro&&(0,o.createElement)("span",{className:"ct-pro-badge"},"PRO")),(0,o.createElement)("div",{className:"ct-demo-actions"},(0,o.createElement)("h4",null,t.name),(0,o.createElement)("div",null,(0,o.createElement)("a",{className:"ct-button",target:"_blank",href:t.url},(0,i.__)("Preview","blocksy-companion")),(0,o.createElement)("button",{className:"ct-button-primary",onClick:function(){u?p():(s(!1),c(t.name))}},r&&r.demo.indexOf(t.name)>-1?(0,i.__)("Modify","blocksy-companion"):(0,i.__)("Import","blocksy-companion"))))),m)},He=function(){var e=(0,o.useContext)(Ft).demos_list;return(0,o.createElement)("ul",null,e.filter((function(t,n){return e.map((function(e){return e.name})).indexOf(t.name)===n})).map((function(e){return(0,o.createElement)(Ve,{key:e.name,demo:e})})))},Ge=function(e){var t=e.currentDemoWithVariation;e.demoContent.content;return[{title:(0,i.__)("Import content","blocksy-companion"),params:{action:"blocksy_demo_install_content",demo_name:t}}]};function Ue(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return qe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qe(e,t)}(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o,a=!0,c=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw o}}}}function qe(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 We(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?We(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):We(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Je=function(e){var t=new URLSearchParams(Ze({nonce:ctDashboardLocalizations.dashboard_actions_nonce,wp_customize:"on"},e));return"".concat(ctDashboardLocalizations.ajax_url,"?").concat(t.toString())},Ke=(0,i.__)("Unfortunately, your hosting configuration doesn't meet the minimum requirements for importing a starter site.","blocksy-companion"),Ye=function(e){e.preventDefault(),e.returnValue=""},Xe=function(e){var t=e.demoConfiguration,n=e.pluginsStatus,r=e.is_child_theme,o=e.includeMetaSteps,a=void 0!==o&&o,c=[];return a&&c.push("register_current_demo"),t.child_theme&&(r||c.push("child_theme")),t.plugins.filter((function(e){var t=e.enabled,r=e.plugin;return!!t&&!n[r]})).length>0&&c.push("plugins"),t.content.erase_content&&c.push("erase_content"),t.content.options&&c.push("options"),t.content.widgets&&c.push("widgets"),t.content.content&&c.push("content"),a&&c.push("install_finish"),c},$e=function(e){var t=e.currentDemoWithVariation,n=e.demoConfiguration,r=e.pluginsStatus,o=(e.demoContent,n.plugins.filter((function(e){var t=e.enabled,n=e.plugin;return t&&!r[n]})).map((function(e){return e.plugin})));return{register_current_demo:{requests:[{title:(0,i.__)("Preparing data...","blocksy-companion"),params:{action:"blocksy_demo_register_current_demo",demo_name:t}}]},child_theme:{requests:[{title:(0,i.__)("Child theme","blocksy-companion"),params:{action:"blocksy_demo_install_child_theme"}}]},plugins:{requests:o.map((function(e){return{title:(0,i.sprintf)((0,i.__)("Installing %s","blocksy-companion"),Te(e)),params:{action:"blocksy_demo_activate_plugins",plugins:e}}}))},erase_content:{requests:[{title:(0,i.__)("Erase content","blocksy-companion"),params:{action:"blocksy_demo_erase_content"}}]},options:{requests:[{title:(0,i.__)("Import options","blocksy-companion"),params:{action:"blocksy_demo_install_options",demo_name:t}}]},widgets:{requests:[{title:(0,i.__)("Import widgets","blocksy-companion"),params:{action:"blocksy_demo_install_widgets",demo_name:t}}]},content:{requests:Ge(e)},install_finish:{requests:[{title:(0,i.__)("Final touches","blocksy-companion"),params:{action:"blocksy_demo_install_finish"}}]}}};function Qe(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 et(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qe(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tt(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return nt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nt(e,t)}(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o,a=!0,c=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw o}}}}function nt(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 rt=function(e){var t=e.style,n=e.nextStep,a=((0,o.useContext)(K).is_child_theme,(0,o.useContext)(Ft)),c=a.setCurrentlyInstalledDemo,l=a.setCurrentDemo,p=a.currentDemo,m=a.demos_list,d=a.pluginsStatus,b=a.setPluginsStatus,g=f((0,o.useState)("idle"),2),y=g[0],v=g[1],_=f((p||"").split(":"),2),E=_[0],w=(_[1],m.filter((function(e){return e.name===E}))),k=function(){var e=u(h().mark((function e(){var t,n,o,a,c,s,l,u;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t={erase_content:{requests:[{title:(0,i.__)("Erase content","blocksy-companion"),params:{action:"blocksy_demo_erase_content",wp_customize:"on"}}]},deactivate_demo_plugins:{requests:[{title:(0,i.__)("Deactivate demo plugins","blocksy-companion"),params:{action:"blocksy_demo_deactivate_plugins",plugins:w[0].plugins.join(":")}}]},deregister_current_demo:{requests:[{title:(0,i.__)("Erase content","blocksy-companion"),params:{action:"blocksy_demo_deregister_current_demo"}}]}},n=0,o=["erase_content","deactivate_demo_plugins","deregister_current_demo"];case 3:if(!(n<o.length)){e.next=33;break}if(a=o[n],(c=t[a])&&0!==c.requests.length){e.next=8;break}return e.abrupt("continue",30);case 8:s=tt(c.requests),e.prev=9,s.s();case 11:if((l=s.n()).done){e.next=22;break}return u=l.value,e.next=15,fetch(Je(u.params),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(et({},u.body||{}))});case 15:if(200===e.sent.status){e.next=19;break}return v("done"),e.abrupt("break",22);case 19:"deactivate_demo_plugins"===a&&b(et(et({},d),w[0].plugins.reduce((function(e,t){return et(et({},e),{},r({},t,!1))}),{})));case 20:e.next=11;break;case 22:e.next=27;break;case 24:e.prev=24,e.t0=e.catch(9),s.e(e.t0);case 27:return e.prev=27,s.f(),e.finish(27);case 30:n++,e.next=3;break;case 33:v("done");case 34:case"end":return e.stop()}}),e,null,[[9,24,27,30]])})));return function(){return e.apply(this,arguments)}}();return(0,o.createElement)(s.animated.div,{className:"ct-modify-demo",style:t},(0,o.createElement)("i",{className:"ct-demo-icon"},(0,o.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 40 40"},(0,o.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,o.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"===y&&(0,o.createElement)("h2",null,(0,i.__)("This starter site is already installed","blocksy-companion")),"loading"===y&&(0,o.createElement)("h2",null,"Removing starter site..."),"done"===y&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)("h2",null,(0,i.__)("Starter Site Removed","blocksy-companion")),(0,o.createElement)("div",{className:"ct-modify-actions"},(0,o.createElement)("button",{className:"ct-demo-btn ct-dismiss",onClick:function(e){e.preventDefault(),l("".concat(E,":hide"))}},(0,i.__)("Dismiss","blocksy-companion")))),"idle"===y&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)("p",null,(0,i.__)("What steps do you want to perform next?","blocksy-companion")),(0,o.createElement)("div",{className:"ct-modify-actions"},(0,o.createElement)("button",{className:"ct-demo-btn demo-remove",onClick:function(e){v("loading"),k(),e.preventDefault(),c()}},(0,i.__)("Remove","blocksy-companion")),(0,o.createElement)("button",{className:"ct-demo-btn",onClick:function(e){e.preventDefault(),n()}},(0,i.__)("Reinstall","blocksy-companion")))))};function ot(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 at(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ot(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ot(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ct=function(e){var t=e.demoConfiguration,n=e.setDemoConfiguration,r=e.style,a=(0,o.useContext)(K),c=a.is_child_theme,l=a.child_theme_exists;return(0,o.createElement)(s.animated.div,{className:"ct-demo-child",style:r},(0,o.createElement)("i",{className:"ct-demo-icon"},(0,o.createElement)("svg",{width:"40",height:"40",viewBox:"0 0 43 41.1"},(0,o.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,o.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,o.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,o.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,o.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,o.createElement)("rect",{x:"11.2",y:"11",fill:"#44ACDF",width:"16.8",height:"17.9"}),(0,o.createElement)("rect",{x:"31.5",y:"11",fill:"#44ACDF",width:"7.9",height:"17.9"}))),l?(0,o.createElement)("h2",null,(0,i.__)("Activate Child Theme","blocksy-companion")):(0,o.createElement)("h2",null,(0,i.__)("Install Child Theme","blocksy-companion")),!c&&(0,o.createElement)(o.Fragment,null,l?(0,o.createElement)("p",null,(0,i.__)("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,o.createElement)("p",null,(0,i.__)("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,o.createElement)("div",{className:"ct-checkboxes-container","data-type":"bordered:reversed"},(0,o.createElement)(Le,{checked:t.child_theme,position:"end",onChange:function(){return n(at(at({},t),{},{child_theme:!t.child_theme}))}},l?(0,i.__)("Activate Child Theme","blocksy-companion"):(0,i.__)("Install Child Theme","blocksy-companion")))),c&&(0,i.__)("You already have a child theme properly installed and activated. Move on.","blocksy-companion"),(0,o.createElement)("a",{href:"https://developer.wordpress.org/themes/advanced-topics/child-themes/",target:"_blank"},(0,i.__)("Learn more about child themes","blocksy-companion")))};function it(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 st(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?it(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):it(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var lt=function(e){var t=e.demoConfiguration,n=e.setDemoConfiguration,r=e.style,a=(0,o.useContext)(Ft),c=a.currentDemo,l=a.demos_list,u=(a.pluginsStatus,a.setCurrentDemo,f((c||"").split(":"),2)),p=u[0],m=(u[1],l.filter((function(e){return e.name===p||""})));return(0,o.createElement)(s.animated.div,{style:r},m.length>1&&(0,o.createElement)("div",{className:"ct-demo-builder"},(0,o.createElement)("i",{className:"ct-demo-icon"},(0,o.createElement)("svg",{width:"52",height:"40",viewBox:"0 0 52 40"},(0,o.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,o.createElement)("path",{fill:"#CFDBE4",d:"M13.8,14.6v18.8h22.6V14.6H13.8zM34.8,31.9H15.4V16.1h19.4V31.9z"}),(0,o.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,o.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,o.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,o.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,o.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,o.createElement)("h2",null,(0,i.__)("Choose Page Builder","blocksy-companion")),(0,o.createElement)("p",null,(0,i.__)("This starter site can be imported and used with one of these page builders. Please select one in order to continue.","blocksy-companion")),(0,o.createElement)("ul",{"data-count":m.length},m.sort((function(e,t){return e.builder<t.builder?-1:e.builder>t.builder?1:0})).map((function(e){var r=e.builder,a=e.plugins;return(0,o.createElement)("li",{className:U()({active:r===(null===t.builder?m[0].builder:t.builder)}),onClick:function(){n(st(st({},t),{},{builder:r,plugins:a.map((function(e){return{plugin:e,enabled:!0}}))}))}},(0,o.createElement)("figure",null,(0,o.createElement)("span",{className:U()("ct-checkbox",{active:r===(null===t.builder?m[0].builder:t.builder)})},(0,o.createElement)("svg",{width:"10",height:"8",viewBox:"0 0 11.2 9.1"},(0,o.createElement)("polyline",{className:"check",points:"1.2,4.8 4.4,7.9 9.9,1.2 "}))),""===r&&(0,o.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 150 100"},(0,o.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"===r&&(0,o.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 150 100"},(0,o.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,o.createElement)("path",{fill:"#a7b2dd",d:"M14.6 63.2l10.8-6.5L75 86.8l49.9-30 10.5 6.4L75 100z"})),"elementor"===r&&(0,o.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 150 100"},(0,o.createElement)("path",{d:"M32.5 7.6h17v84.9h-17V7.6zm34 84.9h51v-17h-51v17zm0-34h51v-17h-51v17zm0-51v17h51v-17h-51z"}))),(0,o.createElement)("div",{className:"builder-name"},Te(r)||"Gutenberg"))})))))};function ut(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 pt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ut(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ut(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var mt=function(e){var t=e.demoConfiguration,n=e.setDemoConfiguration,a=(e.currentDemo,e.style);return(0,o.createElement)(s.animated.div,{style:a},(0,o.createElement)("div",{className:"ct-demo-content"},(0,o.createElement)("i",{className:"ct-demo-icon"},(0,o.createElement)("svg",{width:"40",height:"40",viewBox:"0 0 40 40"},(0,o.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,o.createElement)("rect",{x:"2.5",y:"14",width:"35",height:"3",rx:"1.5",fill:"#0c7ab3"}),(0,o.createElement)("rect",{x:"5",y:"7",width:"30",height:"3",rx:"1.5",fill:"#3497d3"}),(0,o.createElement)("rect",{x:"7.5",width:"25",height:"3",rx:"1.5",fill:"#44acdf"}))),(0,o.createElement)("h2",null,(0,i.__)("Import Content","blocksy-companion")),(0,o.createElement)("p",null,(0,i.__)("This will import posts, pages, comments, navigation menus, custom fields, terms and custom posts.","blocksy-companion")),(0,o.createElement)("div",{className:"ct-checkboxes-container","data-type":"reversed"},["options","widgets","content"].map((function(e){return(0,o.createElement)(Le,{checked:t.content[e],onChange:function(){return n(pt(pt({},t),{},{content:pt(pt({},t.content),{},r({},e,!t.content[e]))}))},key:e},e.split("_").map((function(e){return e.replace(/^\w/,(function(e){return e.toUpperCase()}))})).join(" "))})),(0,o.createElement)(Le,{checked:t.content.erase_content,className:"ct-demo-erase",onChange:function(){return n(pt(pt({},t),{},{content:pt(pt({},t.content),{},{erase_content:!t.content.erase_content})}))}},(0,o.createElement)("div",null,(0,i.__)("Clean Install","blocksy-companion"),(0,o.createElement)("i",null,(0,i.__)("This option will remove the previous imported content and will perform a fresh and clean install.","blocksy-companion")))))))},ft=function(){var e=(0,o.useContext)(K),t=e.home_url,n=e.customizer_url;return(0,o.createElement)("div",{className:"ct-install-success"},(0,o.createElement)("h2",null,(0,i.__)("Starter Site Imported Successfully","blocksy-companion")),(0,o.createElement)("p",null,(0,i.__)("Now you can view your website or start customizing it","blocksy-companion")),(0,o.createElement)("div",null,(0,o.createElement)("a",{href:n,className:"ct-button"},(0,i.__)("Customize","blocksy-companion")),(0,o.createElement)("a",{href:t,target:"_blank",className:"ct-button-primary"},(0,i.__)("View site","blocksy-companion"))))},dt=function(e){var t=e.lastMessage,n=e.progress;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)("i",{className:"ct-demo-icon"},(0,o.createElement)("svg",{width:"40",height:"40",viewBox:"0 0 50 50"},(0,o.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,o.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,o.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,o.createElement)("h2",null,(0,i.__)("Installing","blocksy-companion"),"..."),(0,o.createElement)("p",null,(0,i.__)("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,o.createElement)("div",{className:"ct-progress-info"},t,(0,o.createElement)("span",null,Math.round(n),"%")),(0,o.createElement)("div",{style:{"--progress":"".concat(n,"%")},className:"ct-installer-progress"},(0,o.createElement)("div",null)))},ht=function(e){var t=e.isError;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)("i",{className:"ct-demo-icon"},(0,o.createElement)("svg",{width:"37",height:"37",viewBox:"0 0 40 40"},(0,o.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,o.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,o.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,o.createElement)("h2",null,(0,i.__)("Can't Import Starter Site","blocksy-companion")),(0,o.createElement)("p",null,t),(0,o.createElement)("a",{href:"https://creativethemes.com/blocksy/docs/troubleshooting/starter-site-import-stuck-at-xx/",className:"ct-demo-btn",target:"_blank"},"More Information"))},bt=function(e){var t=e.demoConfiguration,n=e.style,r=function(e){var t=(0,o.useContext)(Ft),n=t.demos_list,r=t.currentDemo,a=t.setInstallerBlockingReleased,c=t.setCurrentlyInstalledDemo,s=t.pluginsStatus,l=(0,o.useContext)(K).is_child_theme,p=f((0,o.useState)(!1),2),m=p[0],d=p[1],b=f((0,o.useState)(null),2),g=b[0],y=b[1],v=f((0,o.useState)(!1),2),_=v[0],E=v[1],w=f((0,o.useState)(0),2),k=w[0],O=w[1],x=(0,o.useMemo)((function(){var t=f((r||"").split(":"),2),o=t[0],a=(t[1],n.filter((function(e){return e.name===o})).sort((function(e,t){return e.builder<t.builder?-1:e.builder>t.builder?1:0})));return"".concat(r,":").concat(null===e.builder?a[0].builder:e.builder)}),[r,e,n]),j=(0,o.useMemo)((function(){return Xe({demoConfiguration:e,pluginsStatus:s,is_child_theme:l,includeMetaSteps:!0})}),[e,s,l]),C=(0,o.useCallback)(function(){var t=u(h().mark((function t(n){var r,o,c,i,l,u,p,m,f,b,g,v,_;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=$e({currentDemoWithVariation:x,demoConfiguration:e,pluginsStatus:s,demoContent:n}),o=j.reduce((function(e,t){return e+r[t].requests.length}),0),c=0,i={},l=Ue(j),t.prev=5,l.s();case 7:if((u=l.n()).done){t.next=49;break}if(p=u.value,(m=r[p])&&0!==m.requests.length){t.next=12;break}return t.abrupt("continue",47);case 12:f=Ue(m.requests),t.prev=13,f.s();case 15:if((b=f.n()).done){t.next=39;break}return g=b.value,y(g.title),t.next=20,fetch(Je(g.params),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Ze({requestsPayload:i},g.body||{}))});case 20:if(200===(v=t.sent).status){t.next=24;break}return E(Ke),t.abrupt("break",39);case 24:return t.next=26,v.json();case 26:if(_=t.sent){t.next=30;break}return E(Ke),t.abrupt("break",39);case 30:if(_.success){t.next=33;break}return E(_.data&&_.data.message?_.data.message:Ke),t.abrupt("break",39);case 33:_.data&&null!=_.data&&"Object"===_.data.constructor.name&&(i=Ze(Ze({},i),_.data)),c++,O(c/o*100),o===c&&(console.timeEnd("Blocksy:Dashboard:DemoInstall"),d(!0),a(!0),window.removeEventListener("beforeunload",Ye));case 37:t.next=15;break;case 39:t.next=44;break;case 41:t.prev=41,t.t0=t.catch(13),f.e(t.t0);case 44:return t.prev=44,f.f(),t.finish(44);case 47:t.next=7;break;case 49:t.next=54;break;case 51:t.prev=51,t.t1=t.catch(5),l.e(t.t1);case 54:return t.prev=54,l.f(),t.finish(54);case 57:case"end":return t.stop()}}),t,null,[[5,51,54,57],[13,41,44,47]])})));return function(e){return t.apply(this,arguments)}}(),[j,O]),S=(0,o.useCallback)(u(h().mark((function t(){var n,o;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return window.addEventListener("beforeunload",Ye),console.time("Blocksy:Dashboard:DemoInstall"),c({demo:"".concat(r,":").concat(e.builder)}),y((0,i.__)("Preparing data...","blocksy-companion")),t.next=6,fetch(Je({action:"blocksy_demo_get_content_preliminary_data",demo_name:x}));case 6:if(200!==(n=t.sent).status){t.next=15;break}return t.next=10,n.json();case 10:if((o=t.sent).success){t.next=14;break}return E(o.data.message||Ke),t.abrupt("return");case 14:C(o.data);case 15:case"end":return t.stop()}}),t)}))),[C,x]);return(0,o.useEffect)((function(){S()}),[]),{isCompleted:m,isError:_,lastMessage:g,progress:k}}(t),a=r.isCompleted,c=r.isError,l=r.lastMessage,p=r.progress,m=a?"complete":c?"error":"progress";return(0,o.createElement)(s.animated.div,{className:"ct-demo-install",style:n},(0,o.createElement)(s.Transition,{initial:!0,items:m,from:{opacity:0},enter:[{opacity:1}],leave:[{opacity:0}],config:function(e,t){return"leave"===t?{duration:300}:{delay:300,duration:300}}},(function(e,t){return(0,o.createElement)(s.animated.div,{style:e},"complete"===t&&(0,o.createElement)(ft,null),"error"===t&&(0,o.createElement)(ht,{isError:c}),"progress"===t&&(0,o.createElement)(dt,{lastMessage:l,progress:p}))})))},gt=function(e){e.location,e.navigate;var t=f((0,o.useState)(!0),2),n=(t[0],t[1],(0,o.useContext)(Ft)),r=n.installerBlockingReleased,a=n.demos_list,c=n.currentDemo,l=n.pluginsStatus,u=n.currentlyInstalledDemo,p=n.setCurrentDemo,m=n.filters,d=(0,o.useContext)(K).is_child_theme,h=f((0,o.useState)(u),2),b=h[0],y=h[1],v=f((0,o.useState)({builder:"",child_theme:!1,plugins:[],content:{options:!0,widgets:!0,content:!0,erase_content:!0}}),2),_=v[0],E=v[1],w=f((0,o.useState)(0),2),k=w[0],O=w[1],x=f((c||"").split(":"),2),j=x[0],C=(x[1],["modify_demo","child_theme","builder","plugins","content","installer"].filter((function(e){if(!c)return!1;if("modify_demo"===e){if(!b)return!1;if(-1===b.demo.indexOf(j))return!1}if("child_theme"===e&&d)return!1;var t=a.filter((function(e){return e.name===j})).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(g(e),g(t.plugins||[]))}),[]).filter((function(e){return!l[e]})).length)&&("builder"!==e||t.length>1)}))),S=C[k];return(0,o.useEffect)((function(){if(j&&!(c.indexOf(":hide")>-1)){var e=a.filter((function(e){return e.name===j})).sort((function(e,t){return e.builder<t.builder?-1:e.builder>t.builder?1:0}));O(0),y(u);var t=e[0];if("all"!==m.builder){var n=e.find((function(e){return e.builder===m.builder}));n&&(t=n)}E({builder:t.builder,child_theme:!1,plugins:t.plugins.map((function(e){return{plugin:e,enabled:!0}})),content:{options:!0,widgets:!0,content:!0,erase_content:!0}})}}),[c]),(0,o.createElement)(ve,{items:c,isVisible:function(e){return e&&-1===e.indexOf(":hide")},className:U()("ct-demo-modal",{"ct-demo-installer":"installer"===S||"modify_demo"===S}),onDismiss:function(){("installer"!==S||r)&&p("".concat(j,":hide"))},render:function(){return(0,o.createElement)("div",{className:"ct-modal-content ct-demo-step-container"},(0,o.createElement)("div",{className:"ct-current-step"},(0,o.createElement)(s.Transition,{items:S,from:{opacity:0},enter:{opacity:1},leave:{opacity:0},initial:!1,config:function(e,t){return"leave"===t?{duration:150}:{delay:150,duration:150}}},(function(e,t){return(0,o.createElement)(o.Fragment,null,"modify_demo"===t&&(0,o.createElement)(rt,{demoConfiguration:_,nextStep:function(){O(Math.min(k+1,C.length-1))},style:e}),"child_theme"===t&&(0,o.createElement)(ct,{style:e,demoConfiguration:_,setDemoConfiguration:E}),"plugins"===t&&(0,o.createElement)(Fe,{demoConfiguration:_,style:e,setDemoConfiguration:E}),"builder"===t&&(0,o.createElement)(lt,{style:e,demoConfiguration:_,setDemoConfiguration:E}),"content"===t&&(0,o.createElement)(mt,{style:e,demoConfiguration:_,setDemoConfiguration:E}),"installer"===t&&(0,o.createElement)(bt,{style:e,demoConfiguration:_}))}))),"installer"!==S&&"modify_demo"!==S&&(0,o.createElement)("div",{className:"ct-demo-step-controls"},k>0&&(0,o.createElement)("button",{className:"ct-demo-btn demo-back-btn",onClick:function(){O(Math.max(k-1,0))}},(0,i.__)("Back","blocksy-companion")),C.length>2&&(0,o.createElement)("ul",{className:"ct-steps-pills"},C.map((function(e,t){return t===C.length-1?null:(0,o.createElement)("li",{className:U()({active:e===S}),key:e},t+1)}))),(0,o.createElement)("button",{className:"ct-demo-btn demo-main-btn",disabled:"content"===S&&0===Xe({demoConfiguration:_,pluginsStatus:l,is_child_theme:d}).length,onClick:function(){O(Math.min(k+1,C.length-1))}},"content"===S?(0,i.__)("Install","blocksy-companion"):(0,i.__)("Next","blocksy-companion"))))}})},yt=window.wp.components;function vt(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=vt(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}var _t=function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=vt(e))&&(r&&(r+=" "),r+=t);return r};const Et=(0,o.forwardRef)((({className:e,isPressed:t,...n},r)=>{const a={...n,className:_t(e,{"is-pressed":t})||void 0,"aria-hidden":!0,focusable:!1};return(0,o.createElement)("svg",{...a,ref:r})}));Et.displayName="SVG";var wt=(0,X.createElement)(Et,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,X.createElement)((e=>(0,o.createElement)("path",e)),{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})),kt=n(162),Ot=n.n(kt);function xt(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 jt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xt(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ct=function(e){e.allPlans,e.allCategories;var t=f((0,o.useState)(!1),2),n=t[0],r=t[1],a=f((0,o.useState)(!1),2),c=a[0],s=a[1],l=f((0,o.useState)([]),2),p=l[0],m=l[1],d=f((0,o.useState)(null),2),b=d[0],y=d[1],v=f((0,o.useState)(""),2),_=v[0],E=v[1],w=f((0,o.useState)([]),2),k=w[0],O=w[1];(0,o.useEffect)((function(){var e=function(){var e=u(h().mark((function e(){var t,n,r,o,a,c;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).append("action","blocksy_demo_get_export_data"),t.append("nonce",ctDashboardLocalizations.dashboard_actions_nonce),e.prev=3,e.next=6,fetch(ctDashboardLocalizations.ajax_url,{method:"POST",body:t});case 6:if(200!==(n=e.sent).status){e.next=14;break}return e.next=10,n.json();case 10:r=e.sent,o=r.success,a=r.data,o&&((c=a.data)&&c.builder&&E(c.builder),c&&c.plugins&&O(c.plugins),c&&c.demoId&&y(parseFloat(c.demoId)));case 14:e.next=18;break;case 16:e.prev=16,e.t0=e.catch(3);case 18:case"end":return e.stop()}}),e,null,[[3,16]])})));return function(){return e.apply(this,arguments)}}(),t=function(){var e=u(h().mark((function e(){var t,n;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("https://creativethemes.com/blocksy/wp-json/ct/v1/starter-sites",{method:"GET"});case 3:if(200!==(t=e.sent).status){e.next=9;break}return e.next=7,t.json();case 7:n=e.sent,m(n);case 9:e.next=13;break;case 11:e.prev=11,e.t0=e.catch(0);case 13:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(){return e.apply(this,arguments)}}();e(),t()}),[]);var x=function(){var e=u(h().mark((function e(){var t,n,o,a,c,i,s,l;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r(!0),(t=new FormData).append("action","blocksy_demo_export"),t.append("nonce",ctDashboardLocalizations.dashboard_actions_nonce),t.append("demoId",b),t.append("builder",_),t.append("plugins",k.join(",")),t.append("wp_customize","on"),e.prev=8,e.next=11,fetch(ctDashboardLocalizations.ajax_url,{method:"POST",body:t});case 11:if(200!==(n=e.sent).status){e.next=19;break}return e.next=15,n.json();case 15:o=e.sent,a=o.success,c=o.data,a&&(i=p.find((function(e){return e.id===b})),"elementor"===(s=jt(jt({name:i.title,url:i.demo_live_link,is_pro:"Pro"===i.is_pro,categories:i.categories,keywords:i.keywords},"Pro"===i.is_pro&&i.plans?{plans:["personal","professional","agency"].concat(g(i.plans.map((function(e){return"".concat(e,"_v2")}))))}:{}),c.demo)).builder.toLowerCase()&&(s.elementor_experiment_container=!0),console.log("Blocksy:Dashboard:DemoInstall:exported",{remoteDemo:i,finalDemo:s}),l=new Blob([JSON.stringify(s)],{type:"text/plain;charset=utf-8"}),Ot().saveAs(l,"".concat(i.title,".json")));case 19:e.next=23;break;case 21:e.prev=21,e.t0=e.catch(8);case 23:r(!1);case 24:case"end":return e.stop()}}),e,null,[[8,21]])})));return function(){return e.apply(this,arguments)}}();return(0,o.createElement)("div",{className:"ct-filter-trigger-export"},(0,o.createElement)("button",{type:"button",className:"components-button has-icon has-text",onClick:function(e){s(!0)}},(0,o.createElement)("svg",{"aria-hidden":"true",width:"24",height:"24",viewBox:"0 0 24 24",fillRule:"evenodd",fill:"currentColor"},(0,o.createElement)("path",{d:"M20 15v5H4v-5h1.5v3.5h6V6.8l-4 4-1-1.1L12.2 4l6.3 5.7-1 1.1L13 6.7v11.8h5.5V15H20z"})),(0,i.__)("Export Site")),(0,o.createElement)(ve,{items:c,className:"ct-site-export-modal",onDismiss:function(){return s(!1)},render:function(){return(0,o.createElement)("div",{className:"ct-modal-content"},(0,o.createElement)("h2",null,"Export Settings"),(0,o.createElement)("div",{className:"ct-site-export-settings ct-modal-scroll"},(0,o.createElement)("section",{className:"general-section has-divider"},(0,o.createElement)("label",null,(0,o.createElement)("span",{className:"ct-label"},(0,i.__)("Starter site","blocksy-companion")),(0,o.createElement)("select",{value:b,onChange:function(e){var t=e.target.value;return y(parseFloat(t))}},(0,o.createElement)("option",{value:""},(0,i.__)("Select a starter site","blocksy-companion")),p.sort((function(e,t){var n=e.title.toLowerCase(),r=t.title.toLowerCase();return n<r?-1:n>r?1:0})).map((function(e){return(0,o.createElement)("option",{value:e.id,key:e.id},e.title)})))),(0,o.createElement)("label",null,(0,o.createElement)("span",{className:"ct-label"},(0,i.__)("Builder","blocksy-companion")),(0,o.createElement)("input",{type:"text",placeholder:(0,i.__)("Builder","blocksy-companion"),value:_,onChange:function(e){var t=e.target.value;return E(t)}}))),(0,o.createElement)("section",{className:"plugins-section"},(0,o.createElement)("h4",null,"Required plugins"),(0,o.createElement)("div",{className:"ct-bundled-plugins-list grid-labels"},Object.keys({gutenberg:"Gutenberg","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","advanced-custom-fields":"Advanced Custom Fields (ACF)","greenshift-animation-and-page-builder-blocks":"Greenshift – Gutenberg Blocks",fluentform:"Fluent Forms","translatepress-multilingual":"TranslatePress","fluent-booking":"Fluent Booking"}).filter((function(e){return"gutenberg"!==e})).map((function(e){return(0,o.createElement)("label",{tabindex:"0",onClick:function(t){t.preventDefault(),O((function(t){return t.includes(e)?t.filter((function(t){return t!==e})):[].concat(g(t),[e])}))}},(0,o.createElement)("input",{type:"checkbox",checked:k.indexOf(e)>-1,onChange:function(e){e.target.checked}}),(0,o.createElement)("span",null,{gutenberg:"Gutenberg","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","advanced-custom-fields":"Advanced Custom Fields (ACF)","greenshift-animation-and-page-builder-blocks":"Greenshift – Gutenberg Blocks",fluentform:"Fluent Forms","translatepress-multilingual":"TranslatePress","fluent-booking":"Fluent Booking"}[e]))}))))),(0,o.createElement)("div",{className:"ct-modal-actions has-divider"},(0,o.createElement)("button",{className:"button button-primary",disabled:n,onClick:function(){return x()}},n?(0,i.__)("Loading...","blocksy-companion"):(0,i.__)("Export site","blocksy-companion"))))}}))};function St(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 Pt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?St(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):St(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Dt={all:(0,i.__)("All Plans","blocksy-companion"),free:(0,i.__)("Free","blocksy-companion"),pro:(0,i.__)("Pro","blocksy-companion")},Nt=function(){var e=(0,o.useContext)(Ft),t=e.unfiltered_demos_list,n=e.filters,r=e.setFilters,a=e.allPlans,c=e.allCategories,s=t.reduce((function(e,t){var n="gutenberg";return t.builder&&(n=t.builder),e.includes(n)||e.push(n),e}),[]);return(0,o.createElement)("div",{className:"ct-demo-filters"},(0,o.createElement)(yt.DropdownMenu,{className:"ct-filter-trigger-categories",menuProps:{className:"ct-filter-dropdown-categories"},icon:(0,o.createElement)("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fillRule:"evenodd",fill:"currentColor"},(0,o.createElement)("path",{d:"M18 5.5h-3c-.3 0-.5.2-.5.5v3c0 .3.2.5.5.5h3c.3 0 .5-.2.5-.5V6c0-.3-.2-.5-.5-.5zm2 .5c0-1.1-.9-2-2-2h-3c-1.1 0-2 .9-2 2v3c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2V6zM9 14.5H6c-.3 0-.5.2-.5.5v3c0 .3.2.5.5.5h3c.3 0 .5-.2.5-.5v-3c0-.3-.2-.5-.5-.5zm2 .5c0-1.1-.9-2-2-2H6c-1.1 0-2 .9-2 2v3c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3zm4-.5h3c.3 0 .5.2.5.5v3c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5v-3c0-.3.2-.5.5-.5zm3-1.5c1.1 0 2 .9 2 2v3c0 1.1-.9 2-2 2h-3c-1.1 0-2-.9-2-2v-3c0-1.1.9-2 2-2h3zM9 5.5H6c-.3 0-.5.2-.5.5v3c0 .3.2.5.5.5h3c.3 0 .5-.2.5-.5V6c0-.3-.2-.5-.5-.5zm2 .5c0-1.1-.9-2-2-2H6c-1.1 0-2 .9-2 2v3c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2V6z"})),label:"all"===n.category?(0,i.__)("All Categories","blocksy-companion"):n.category,text:"all"===n.category?(0,i.__)("All Categories","blocksy-companion"):n.category},(function(){return["all"].concat(g(c)).map((function(e){var t=n.category===e;return(0,o.createElement)(yt.MenuItem,{key:e,icon:t?(0,o.cloneElement)(wt,{width:24,height:24}):null,isSelected:t,onClick:function(){r(Pt(Pt({},n),{},{category:e}))}},"all"===e?(0,i.__)("All Categories","blocksy-companion"):e)}))})),(0,o.createElement)(yt.DropdownMenu,{className:"ct-filter-trigger-plans",menuProps:{className:"ct-filter-dropdown-plans"},icon:(0,o.createElement)("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fillRule:"evenodd",fill:"currentColor"},(0,o.createElement)("path",{d:"m17.3 19.8-5.2-2.7h-.2l-5.2 2.7 1-5.8c0-.1 0-.2-.1-.2l-4.2-4L9.2 9c.1 0 .2-.1.2-.1L12 3.6l2.6 5.2c0 .1.1.1.2.1l5.8.8-4.2 4.1c-.1.1-.1.1-.1.2l1 5.8zM12 15.6c.3 0 .6.1.8.2l2.5 1.3-.5-2.8c-.1-.6.1-1.1.5-1.5l2-2-2.8-.4c-.6-.1-1.1-.4-1.3-1L12 6.9l-1.2 2.5c-.3.5-.7.9-1.3 1l-2.8.4 2 2c.4.4.6 1 .5 1.5l-.5 2.8 2.5-1.3c.2-.1.5-.2.8-.2z"})),label:Dt[n.plan],text:Dt[n.plan]},(function(){return["all","free","pro"].map((function(e){var t=n.plan===e;return(0,o.createElement)(yt.MenuItem,{key:e,icon:t?(0,o.cloneElement)(wt,{width:24,height:24}):null,isSelected:t,onClick:function(){r(Pt(Pt({},n),{},{plan:e}))}},Dt[e])}))})),(0,o.createElement)(yt.DropdownMenu,{className:"ct-filter-trigger-builders",menuProps:{className:"ct-filter-dropdown-builders"},icon:(0,o.createElement)("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fillRule:"evenodd",fill:"currentColor"},(0,o.createElement)("path",{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM6 5.5h12c.3 0 .5.2.5.5v3h-13V6c0-.3.2-.5.5-.5zM5.5 18v-7.5h3v8H6c-.3 0-.5-.2-.5-.5zm12.5.5h-8v-8h8.5V18c0 .3-.2.5-.5.5z"})),label:"all"===n.builder?(0,i.__)("All Builders","blocksy-companion"):{gutenberg:"Gutenberg","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","advanced-custom-fields":"Advanced Custom Fields (ACF)","greenshift-animation-and-page-builder-blocks":"Greenshift – Gutenberg Blocks",fluentform:"Fluent Forms","translatepress-multilingual":"TranslatePress","fluent-booking":"Fluent Booking"}[n.builder],text:"all"===n.builder?(0,i.__)("All Builders","blocksy-companion"):{gutenberg:"Gutenberg","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","advanced-custom-fields":"Advanced Custom Fields (ACF)","greenshift-animation-and-page-builder-blocks":"Greenshift – Gutenberg Blocks",fluentform:"Fluent Forms","translatepress-multilingual":"TranslatePress","fluent-booking":"Fluent Booking"}[n.builder]},(function(){return["all"].concat(g(s)).map((function(e){var t=n.builder===e;return(0,o.createElement)(yt.MenuItem,{key:e,icon:t?(0,o.cloneElement)(wt,{width:24,height:24}):null,isSelected:t,onClick:function(){r(Pt(Pt({},n),{},{builder:e}))}},"all"===e?(0,i.__)("All Builders","blocksy-companion"):{gutenberg:"Gutenberg","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","advanced-custom-fields":"Advanced Custom Fields (ACF)","greenshift-animation-and-page-builder-blocks":"Greenshift – Gutenberg Blocks",fluentform:"Fluent Forms","translatepress-multilingual":"TranslatePress","fluent-booking":"Fluent Booking"}[e])}))})),ct_localizations.is_dev_mode&&(0,o.createElement)(Ct,{allPlans:a,allCategories:c}),(0,o.createElement)("div",{className:"ct-filter-search"},(0,o.createElement)("svg",{"aria-hidden":"true",width:"13",height:"13",viewBox:"0 0 15 15",fill:"currentColor"},(0,o.createElement)("path",{d:"M14.8,13.7L12,11c0.9-1.2,1.5-2.6,1.5-4.2c0-3.7-3-6.8-6.8-6.8S0,3,0,6.8s3,6.8,6.8,6.8c1.6,0,3.1-0.6,4.2-1.5l2.8,2.8c0.1,0.1,0.3,0.2,0.5,0.2s0.4-0.1,0.5-0.2C15.1,14.5,15.1,14,14.8,13.7z M1.5,6.8c0-2.9,2.4-5.2,5.2-5.2S12,3.9,12,6.8S9.6,12,6.8,12S1.5,9.6,1.5,6.8z"})),(0,o.createElement)("input",{type:"text",placeholder:(0,i.__)("Search for a starter site...","blocksy-companion"),value:n.search,onChange:function(e){r(Pt(Pt({},n),{},{search:e.target.value}))}})))},Mt=[{id:"personal",title:"Personal"},{id:"professional",title:"Professional"},{id:"agency",title:"Agency"},{id:"personal_v2",title:"Personal v2"},{id:"professional_v2",title:"Professional v2"},{id:"agency_v2",title:"Agency v2"}],Lt=["Blog","Business","Ecommerce","News","Nonprofit","Personal","Portfolio","Travel"];function zt(e,t){var n=t.length,r=e.length;if(r>n)return!1;if(r===n)return e===t;e:for(var o=0,a=0;o<r;o++){for(var c=e.charCodeAt(o);a<n;)if(t.charCodeAt(a++)===c)continue e;return!1}return!0}var Bt=function(e,t){var n=e;return"all"!==t.plan&&(n=n.filter((function(e){return!("free"===t.plan&&e.is_pro||"pro"===t.plan&&!e.is_pro)}))),"all"!==t.category&&(n=n.filter((function(e){return!!e.categories&&e.categories.includes(t.category)}))),t.search&&(n=n.filter((function(e){return!(!e.keywords||!e.keywords.split(",").some((function(e){return zt(t.search.toLowerCase(),e.trim().toLowerCase())})))||zt(t.search.toLowerCase(),e.name.toLowerCase())}))),"all"!==t.builder&&(n=n.filter((function(n){return!!e.find((function(e){return e.name===n.name&&(e.builder||"gutenberg")===t.builder}))}))),n},Tt=function(e){var t=e.demos_list,n=f((0,o.useState)({search:"",category:"all",builder:"all",plan:"all"}),2),r=n[0];return{filters:r,setFilters:n[1],unfiltered_demos_list:t,demos_list:Bt(t.filter((function(e){return!e.dev_v2||ct_localizations.is_dev_mode})),r),allPlans:Mt,allCategories:Lt,display:function(){return(0,o.createElement)(Nt,null)}}},Ft=(0,o.createContext)({demos:[]}),At=null,It=function(e){e.children,e.path,e.location;var t=f((0,o.useState)(!At),2),n=t[0],r=t[1],a=f((0,o.useState)(At||[]),2),c=a[0],l=a[1],p=f((0,o.useState)(ctDashboardLocalizations.plugin_data.active_plugins),2),m=p[0],d=p[1],b=f((0,o.useState)(null),2),g=b[0],y=b[1],v=f((0,o.useState)(ctDashboardLocalizations.plugin_data.current_installed_demo),2),_=v[0],E=v[1],w=Tt({demos_list:c}),k=f((0,o.useState)(!1),2),O=k[0],x=k[1],j=f((0,o.useState)({isError:!1,message:"",reason:"generic"}),2),C=j[0],S=j[1],P=f((0,o.useState)({builder:""}),2),D=(P[0],P[1],f((0,o.useState)(!1),2)),N=D[0],M=D[1],L=function(){var e=u(h().mark((function e(){var t,n,o=arguments;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o.length>0&&void 0!==o[0]&&o[0]&&r(!0),e.prev=2,e.next=5,B();case 5:if(!(t=e.sent).status||511!==t.status){e.next=9;break}return x(!0),e.abrupt("return");case 9:return e.next=11,t.json();case 11:n=e.sent,l(n),At=n,e.next=19;break;case 16:e.prev=16,e.t0=e.catch(2),console.error("Blocksy:Dashboard:DemoInstall:demos_list",{response:e.t0,reason:"frontend_starter_sites_fetch_failed"});case 19:r(!1);case 20:case"end":return e.stop()}}),e,null,[[2,16]])})));return function(){return e.apply(this,arguments)}}();return(0,o.useEffect)((function(){ctDashboardLocalizations.plugin_data.demo_install_error?(r(!1),S({isError:!0,message:ctDashboardLocalizations.plugin_data.demo_install_error,reason:"generic"})):L(!At)}),[]),O?(0,o.createElement)(V,null):(0,o.createElement)("div",{className:"ct-demos-list-container"},(0,o.createElement)(s.Transition,{items:n,from:{opacity:0},enter:[{opacity:1}],leave:[{opacity:0}],config:function(e,t){return"leave"===t?{duration:300}:{delay:300,duration:300}}},(function(e,t){return t?(0,o.createElement)(s.animated.p,{style:e,className:"ct-loading-text"},(0,o.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 100 100"},(0,o.createElement)("g",{transform:"translate(50,50)"},(0,o.createElement)("g",{transform:"scale(1)"},(0,o.createElement)("circle",{cx:"0",cy:"0",r:"50",fill:"currentColor"}),(0,o.createElement)("circle",{cx:"0",cy:"-26",r:"12",fill:"#ffffff",transform:"rotate(161.634)"},(0,o.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,i.__)("Loading Starter Sites...","blocksy-companion")):C.isError?(0,o.createElement)(s.animated.div,{style:e},"ajax_request_failed"===C.reason&&(0,o.createElement)("div",{className:"ct-demo-notification",dangerouslySetInnerHTML:{__html:sprintf((0,i.__)("Your site is misconfigured and AJAX requests are not reaching your backend. Please click %shere%s to find the common causes and possible solutions to this.<br> Error code - %s","blocksy-companion"),'<a href="https://creativethemes.com/blocksy/docs/troubleshooting/starter-site-common-issues-possible-solutions/" target="_blank">',"</a>",C.message)}}),"remote_fetch_failed"===C.reason&&(0,o.createElement)("div",{className:"ct-demo-notification",dangerouslySetInnerHTML:{__html:sprintf((0,i.__)("Failed to retrieve starter sites list.<br> Error code - %s","blocksy-companion"),C.message)}}),"generic"===C.reason&&(0,o.createElement)("div",{className:"ct-demo-notification",dangerouslySetInnerHTML:{__html:C.message}}),(0,o.createElement)(Pe,null)):(0,o.createElement)(s.animated.div,{style:e},(0,o.createElement)(o.Fragment,null,(0,o.createElement)(Ft.Provider,{value:{currentDemo:g,pluginsStatus:m,setPluginsStatus:d,installerBlockingReleased:N,setInstallerBlockingReleased:M,setCurrentDemo:y,currentlyInstalledDemo:_,setCurrentlyInstalledDemo:E,unfiltered_demos_list:w.unfiltered_demos_list,demos_list:w.demos_list,filters:w.filters,setFilters:w.setFilters,allPlans:w.allPlans,allCategories:w.allCategories}},w.display(),(0,o.createElement)(He,null),(0,o.createElement)(gt,null)),(0,o.createElement)(Pe,null)))})))};function Rt(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}B().then((function(e){511===e.status&&fetch("".concat(ctDashboardLocalizations.ajax_url,"?action=blocksy_dashboard_handle_incorrect_license"),{method:"POST",body:JSON.stringify({}),headers:{Accept:"application/json","Content-Type":"application/json"}}).then((function(e){e.success,e.data}))})).catch((function(e){console.error("Error:",e)})),c().on("ct:dashboard:routes",(function(e){e.push({Component:function(e){return(0,o.createElement)(H,e)},path:"/extensions"}),e.push({Component:function(e){return(0,o.createElement)(Me,e)},path:"/extensions/:extension"}),"yes"===ctDashboardLocalizations.plugin_data.has_demo_install&&e.push({Component:function(e){return(0,o.createElement)(It,e)},path:"/demos"})})),c().on("ct:dashboard:navigation-links",(function(e){"yes"===ctDashboardLocalizations.plugin_data.has_demo_install&&e.push({text:(0,i.__)("Starter Sites","blocksy-companion"),path:"demos",getProps:function(e){var t=e.isPartiallyCurrent;e.isCurrent;return t?{"aria-current":"page"}:{}}}),e.push({text:(0,i.__)("Extensions","blocksy-companion"),path:"/extensions",onClick:function(e){location.hash.indexOf("extensions")>-1&&e.preventDefault()},getProps:function(e){var t=e.isPartiallyCurrent,n=e.isCurrent;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rt(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t||n?{"aria-current":"page"}:{})}})})),c().on("ct:dashboard:heading:after",(function(e){ctDashboardLocalizations.plugin_data.is_pro&&(e.content=(0,o.createElement)("span",null,"PRO"))}))}()}();