芝麻web文件管理V1.00
编辑当前文件:/home/royashxg/public_html/wp-content/plugins/blocksy-companion/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
>>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
0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n
>>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
>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n
>>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
>>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
* @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
>>24)|4278255360&(n[f]<<24|n[f]>>>8);n[s>>>5]|=128<
>>9<<4)]=s;var d=i._ff,h=i._gg,b=i._hh,g=i._ii;for(f=0;f
>>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<
>>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<
>>32-a)+t},i._hh=function(e,t,n,r,o,a,c){var i=e+(t^n^r)+(o>>>0)+c;return(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<
>>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
=0;--r){var o=this.tryEntries[r],c=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var i=a.call(o,"catchLoc"),s=a.call(o,"finallyLoc");if(i&&s){if(this.prev
=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev
=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),x(n),f}},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;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}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(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var t=window.wp.element,r=window.ctEvents,o=n.n(r),a=window.wp.i18n,c=window.blocksyOptions;function i(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 s(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function c(e){i(a,r,o,c,s,"next",e)}function s(e){i(a,r,o,c,s,"throw",e)}c(void 0)}))}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n
2&&void 0!==arguments[2]?arguments[2]:{},r=E(k(k({},t),{},{url:e}));if(C[r]||(C[r]={state:O,response:null,waitingForResponse:[]}),C[r].state===j){var o=b();return o.resolve(C[r].response.clone()),o.promise}if(C[r].state===x){var a=b();return C[r].waitingForResponse.push(a),a.promise}if(C[r].state===O){C[r].state=x;var c=b(),i=k({method:"POST",headers:{"Content-Type":"application/json"}},n);return"POST"===i.method&&(i.body=JSON.stringify(t)),fetch(e,i).then((function(e){C[r].response=e.clone(),[c].concat(h(C[r].waitingForResponse)).forEach((function(e){e.resolve(C[r].response.clone())})),C[r].waitingForResponse=[],C[r].state=j})).catch((function(e){[c].concat(h(C[r].waitingForResponse)).forEach((function(e){e.reject(C[r].response)})),C[r].waitingForResponse=[],C[r].state=O})),c.promise}throw new Error("Invalid state",{cacheEntry:C[r]})},P=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),S(e.toString(),{},{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"}})};function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function M(t){for(var n=1;n
0&&void 0!==h[0]?h[0]:{}),n=t.verbose,o=t.extension,a=t.extAction,n&&r(!0),b&&b.abort(),e.prev=4,e.next=7,P();case 7:(c=e.sent).status&&511===c.status&&(N=!0,m(!0)),e.next=13;break;case 11:e.prev=11,e.t0=e.catch(4);case 13:return"AbortController"in window&&(b=new AbortController,g({controller:b})),e.next=16,fetch("".concat(wp.ajax.settings.url,"?action=blocksy_extensions_status&nonce=").concat(ctDashboardLocalizations.dashboard_actions_nonce),M({method:"POST",signal:b.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,p=l.data,u){e.next=26;break}return e.abrupt("return");case 26:if(null!=a&&a.require_refresh&&d(),r(!1),i(p),L=p,!o){e.next=32;break}return e.abrupt("return",p[o]);case 32:return e.abrupt("return",p);case 33:case"end":return e.stop()}}),e,null,[[4,11]])})));return function(){return e.apply(this,arguments)}}();return(0,t.useEffect)((function(){L||y({verbose:!0});var e=function(){y()};return o().on("blocksy_exts_sync_exts",e),function(){o().off("blocksy_exts_sync_exts",e)}}),[]),{syncExts:y,isLoading:n,exts_status:c,forceEmptyExts:u,setExtsStatus:function(e){var t=e(c);L=t,i(e)}}},B=function(){return(0,t.createElement)("div",{class:"ct-demo-notification"},(0,t.createElement)("b",null,"Yikes! Something went wrong"),(0,t.createElement)("p",null,"Unfortunately something went wrong during initialization, please ",(0,t.createElement)("a",{href:"https://creativethemes.com/blocksy/support/",target:"_blank"},"contact us from here")," and we will assist you."))},T=function(e){var n=e.navigate,r=z(),o=r.forceEmptyExts,i=r.exts_status;return(0,t.useEffect)((function(){o||Object.keys(i).length>0&&n("/extensions/".concat(Object.keys(i)[0]))}),[i,o]),o?(0,t.createElement)(B,null):(0,t.createElement)("div",{className:"ct-extensions-container"},(0,t.createElement)(c.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){return e?function(e){return(0,t.createElement)(c.animated.p,{style:e,className:"ct-loading-text"},(0,t.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 100 100"},(0,t.createElement)("g",{transform:"translate(50,50)"},(0,t.createElement)("g",{transform:"scale(1)"},(0,t.createElement)("circle",{cx:"0",cy:"0",r:"50",fill:"currentColor"}),(0,t.createElement)("circle",{cx:"0",cy:"-26",r:"12",fill:"#ffffff",transform:"rotate(161.634)"},(0,t.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,a.__)("Loading Extensions Status...","blocksy-companion"))}:null})))},F=n(184),A=n.n(F);function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function V(t){for(var n=1;n
=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r
=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var W=window.React,Z=n.n(W);n(697);function J(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 K=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"])},Y=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
*"),(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=ne()(e.overlayNode,{initialFocus:t?function(){return t.current}:void 0,fallbackFocus:e.contentNode,escapeDeactivates:!1,clickOutsideDeactivates:!1})},ce=function(e){var t=e.refs;t.trap.deactivate(),t.disposeAriaHider()},ie=React.createContext(),se=React.forwardRef((function(e,n){var r=e.container,o=e.isOpen,a=void 0===o||o,c=e.onDismiss,i=void 0===c?re:c,s=e.initialFocusRef,l=e.onClick,u=e.onKeyDown,p=q(e,["container","isOpen","onDismiss","initialFocusRef","onClick","onKeyDown"]);return(0,t.createElement)($,{didMount:oe},a?(0,t.createElement)(Q,{container:r,"data-reach-dialog-wrapper":!0},(0,t.createElement)($,{refs:{overlayNode:null,contentNode:null},didMount:function(e){var t=e.refs;ae(t,s)},willUnmount:ce},(function(e){var r=e.refs;return(0,t.createElement)(ie.Provider,{value:function(e){return r.contentNode=e}},(0,t.createElement)("div",U({"data-reach-dialog-overlay":!0,onClick:ee(l,(function(e){e.stopPropagation(),i()})),onKeyDown:ee(u,(function(e){"Escape"===e.key&&(e.stopPropagation(),i())})),ref:function(e){r.overlayNode=e,n&&n(e)}},p)))}))):null)}));se.propTypes={initialFocusRef:function(){}};var le=function(e){return e.stopPropagation()},ue=React.forwardRef((function(e,n){var r=e.onClick,o=(e.onKeyDown,q(e,["onClick","onKeyDown"]));return(0,t.createElement)(ie.Consumer,null,(function(e){return(0,t.createElement)("div",U({"aria-modal":"true","data-reach-dialog-content":!0,tabIndex:"-1",onClick:ee(r,le),ref:function(t){e(t),n&&n(t)}},o))}))})),pe=function(e){return!!e},me=function(e){var n=e.items,r=e.isVisible,o=void 0===r?pe:r,a=e.render,i=e.className,s=e.onDismiss;return(0,t.createElement)(c.Transition,{items:n,onStart:function(){return document.body.classList[o(n)?"add":"remove"]("ct-dashboard-overlay-open")},config:{duration:200},from:{opacity:0,y:-10},enter:{opacity:1,y:0},leave:{opacity:0,y:10}},(function(e){return o(e)&&function(n){return(0,t.createElement)(se,{style:{opacity:n.opacity},container:document.querySelector("#wpbody"),onDismiss:function(){return s()}},(0,t.createElement)(ue,{className:A()("ct-admin-modal",i),style:{transform:"translate3d(0px, ".concat(n.y,"px, 0px)")}},(0,t.createElement)("button",{className:"close-button",onClick:function(){return s()}},"×"),a(e,n)))}}))},fe=((0,a.__)("Free","blocksy-companion"),(0,a.__)("Personal","blocksy-companion"),(0,a.__)("Business","blocksy-companion"),(0,a.__)("Agency","blocksy-companion"),(0,a.__)("Personal","blocksy-companion"),(0,a.__)("Business","blocksy-companion"),(0,a.__)("Agency","blocksy-companion"),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=(e.currentPlan,e.requiredPlan),r=void 0===n?"personal":n,o=e.personal,c=void 0===o?{title:(0,a.__)("This is a Pro feature","blocksy-companion"),description:(0,a.__)("Upgrade to any pro plan and get instant access to this and many other feature.","blocksy-companion")}:o,i=e.professional,s=void 0===i?{description:(0,a.__)("Upgrade to the business or agency plan and get instant access to this and many other features.","blocksy-companion")}:i,l=e.agency,u=void 0===l?{description:(0,a.__)("Upgrade to the agency plan and get instant access to this and many other features.","blocksy-companion")}:l,m=p((0,t.useState)(!1),2),f=m[0],d=m[1];return{showNotice:function(e){d(e||!0)},content:(0,t.createElement)(me,{items:f,className:"ct-onboarding-modal",onDismiss:function(){return d(!1)},render:function(){return(0,t.createElement)("div",{className:"ct-modal-content"},(0,t.createElement)("svg",{width:"55",height:"55",viewBox:"0 0 40.5 48.3"},(0,t.createElement)("path",{fill:"#2d82c8",d:"M33.4 29.4l7.1 12.3-7.4.6-4 6-7.3-12.9"}),(0,t.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,t.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,t.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"===r&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)("h2",{className:"ct-modal-title"},c.title),(0,t.createElement)("p",null,c.description)),"professional"===r&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)("span",null,"Required plan"),(0,t.createElement)("h2",{className:"ct-modal-title"},(0,a.__)("Business or Agency","blocksy-companion")),(0,t.createElement)("p",null,s.description)),"agency"===r&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)("span",null,"Required plan"),(0,t.createElement)("h2",{className:"ct-modal-title"},(0,a.__)("Agency","blocksy-companion")),(0,t.createElement)("p",null,u.description)),(0,t.createElement)("div",{className:"ct-modal-actions has-divider","data-buttons":"2"},(0,t.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,a.__)("Compare Plans","blocksy-companion")),(0,t.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,a.__)("Upgrade Now","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 he(t){for(var n=1;n
1&&void 0!==arguments[1]?arguments[1]:{};n=he({strategy:"pro-ext",modalTitle:(0,a.__)("This is a Pro extension","blocksy-companion")},n);var r=p((0,t.useState)(!1),2),o=(r[0],r[1],ctDashboardLocalizations.plugin_data.is_pro),c=((0,t.useContext)(G).history,!o&&e.config.pro),i=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=fe(he({currentPlan:i,requiredPlan:s},n)),u=l.content,m=l.showNotice;return{isPro:o,isProInFree:!o&&e.config.pro||e.config.plans&&e.config.plans.length&&!e.config.plans.includes(i),showNotice:m,content:"pro-ext"===n.strategy&&c||"pro"===n.strategy&&!o||e.config.plans&&e.config.plans.length&&!e.config.plans.includes(i)?u:null}},ge=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},r=p((0,t.useState)(!1),2),o=r[0],a=r[1],c=be(e),i=c.isProInFree,l=c.showNotice,u=c.content,m=function(){var t=s(f().mark((function t(){var r,o,c,s=arguments;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=s.length>0&&void 0!==s[0]?s[0]:function(){},o=!(s.length>1&&void 0!==s[1])||s[1],!i){t.next=8;break}if(!o||!e.config.features){t.next=6;break}return r(),t.abrupt("return");case 6:return l(),t.abrupt("return");case 8:if(r(),!o){t.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),t.prev=15,t.next=18,fetch(ctDashboardLocalizations.ajax_url,{method:"POST",body:c});case 18:e.config.require_refresh&&d(),n(),t.next=24;break;case 22:t.prev=22,t.t0=t.catch(15);case 24:a(!1);case 25:case"end":return t.stop()}}),t,null,[[15,22]])})));return function(){return t.apply(this,arguments)}}();return[o,m,u]},ye=window.wp.hooks;function ve(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 _e(t){for(var n=1;n
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t'}}),o&&o.config.name,o&&(!o.config.requirement||o.config.requirement&&o.config.requirement.check)&&(0,t.createElement)("div",{className:A()("ct-option-switch",{"ct-active":y}),onClick:function(){"from-custom-content"!==g.activationStrategy?f((function(){i((function(t){return _e(_e({},t),{},e({},o.name,_e(_e({},t[o.name]),{},{__object:t[o.name].__object?null:{}})))}))})):u(!l)}},(0,t.createElement)("span",null))),o&&o.config.description&&(0,t.createElement)("p",null,o.config.description),v.length>0&&(0,t.createElement)("div",{className:"ct-extension-actions"},v.map((function(e,n){return(0,t.createElement)(t.Fragment,{key:n},e)})))),y&&o.config.features&&(!o.config.requirement||o.config.requirement&&o.config.requirement.check)&&(0,t.createElement)("div",{className:"ct-extension-modules"},o.config.features.map((function(n){return(0,t.createElement)("div",{className:"ct-extension-module",key:n.id},(0,t.createElement)("h5",null,n.title,(0,t.createElement)("div",{className:A()("ct-option-switch",{"ct-active":o.data&&o.data.settings.features[n.id]}),onClick:function(){f((function(){c({extAction:{type:"update-features",require_refresh:!(null==n||!n.require_refresh),settings:{features:_e(_e({},o.data.settings.features),{},e({},n.id,!o.data.settings.features[n.id]))}}}),i((function(t){return _e(_e({},t),{},e({},o.name,_e(_e({},t[o.name]),{},{data:_e(_e({},t[o.name].data),{},{settings:_e(_e({},t[o.name].data.settings),{},{features:_e(_e({},t[o.name].data.settings.features),{},e({},n.id,!t[o.name].data.settings.features[n.id]))})})})))}))}),!1)}},(0,t.createElement)("span",null))),(0,t.createElement)("p",null,n.description),n.documentation&&!ctDashboardLocalizations.plugin_data.hide_docs_section||(n.customize||n.manage)&&o.data&&o.data.settings.features[n.id]?(0,t.createElement)("div",{className:"ct-extension-module-actions"},n.documentation&&!ctDashboardLocalizations.plugin_data.hide_docs_section&&(0,t.createElement)("a",{href:n.documentation,target:"_blank"},(0,t.createElement)("svg",{width:"14px",height:"14px",viewBox:"0 0 24 24",fill:"currentColor"},(0,t.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,a.__)("Documentation","blocksy-companion")),(n.customize||n.manage)&&o.data&&o.data.settings.features[n.id]&&(0,t.createElement)("a",{href:n.customize||n.manage,target:"_blank"},(0,t.createElement)("svg",{width:"14px",height:"14px",viewBox:"0 0 24 24",fill:"currentColor"},(0,t.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"})),n.customize?(0,a.__)("Customize","blocksy-companion"):(0,a.__)("Manage","blocksy-companion"))):null)}))),o&&o.config.requirement&&!o.config.requirement.check&&o.config.requirement.message&&(0,t.createElement)("div",{className:"ct-extension-options ct-newsletter-subscribe-options"},(0,t.createElement)("div",{className:"ct-extension-requirement"},(0,t.createElement)("span",null,(0,t.createElement)("svg",{width:"16",height:"16",fill:"#ffffff",viewBox:"0 0 24 24"},(0,t.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"}))),o.config.requirement.message)),y&&g.content,d):null},we=function(){return ctDashboardLocalizations.plugin_data.hide_support_section?null:(0,t.createElement)("div",{className:"ct-support-container"},(0,t.createElement)("h2",null,(0,a.__)("Need help or advice?","blocksy-companion")),(0,t.createElement)("p",null,(0,a.__)("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,t.createElement)("div",{className:"ct-support-buttons"},(0,t.createElement)("a",{href:ctDashboardLocalizations.support_url,className:"ct-button","data-hover":"blue",target:"_blank"},(0,a.__)("Submit a Support Ticket","blocksy-companion")),(0,t.createElement)("a",{href:"https://www.facebook.com/groups/blocksy.community",className:"ct-button","data-hover":"blue",target:"_blank"},(0,a.__)("Join Facebook Community","blocksy-companion"))))};function ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Oe(t){for(var n=1;n
0&&void 0!==arguments[0]?arguments[0]:{}),{},{extension:p.name}))}})),(0,t.createElement)(t.Fragment,null,(0,t.createElement)(we,null)))}})))},je=function(e){var n=e.children,r=e.activated,o=e.checked,a=e.onChange,c=e.className,i=e.position,s=void 0===i?"end":i,l=[].concat(h("start"===s?[n]:[]),[(0,t.createElement)("span",{className:A()("ct-checkbox",{active:o}),key:"icon"},(0,t.createElement)("svg",{width:"10",height:"8",viewBox:"0 0 11.2 9.1"},(0,t.createElement)("polyline",{className:"check",points:"1.2,4.8 4.4,7.9 9.9,1.2 "})))],h("end"===s?[n]:[]));return(0,t.createElement)("div",{onClick:function(){return a()},className:A()("ct-checkbox-container",c,{activated:r})},l)};function Ce(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 Se(t){for(var n=1;n
1&&void 0!==arguments[1]?arguments[1]:"conjunction";return new Intl.ListFormat("en-GB",{style:"long",type:t}).format(e)},ze=function(e){var n=e.demo,r=(0,t.useContext)(Dt),o=r.currentlyInstalledDemo,c=r.demos_list,i=r.setCurrentDemo,s=r.setInstallerBlockingReleased,l=be({config:Le({pro:!!n.is_pro},n.plans?{plans:n.plans}:{})},{strategy:"pro",personal:{title:(0,a.__)("This is a Pro starter site","blocksy-companion"),description:(0,a.__)("Upgrade to any pro plan and get instant access to this starter site and many other features.","blocksy-companion")},professional:{description:(0,a.__)("Upgrade to the business or agency plan and get instant access to this starter site and many other features.","blocksy-companion")},agency:{description:(0,a.__)("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,t.createElement)(t.Fragment,null,(0,t.createElement)("li",{className:A()("ct-single-demo",{"ct-is-pro":n.is_pro})},(0,t.createElement)("figure",null,(0,t.createElement)("img",{src:n.screenshot}),(0,t.createElement)("section",null,n.is_pro&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)("h3",null,(0,a.__)("Required plan","blocksy-companion")),(0,t.createElement)("span",{className:"ct-required-plans"},Ne((n.plans?n.plans:["personal_v2","professional_v2","agency_v2"]).filter((function(e){return e.indexOf("v2")>-1})).map((function(e){return{personal_v2:(0,a.__)("Personal","blocksy-companion"),professional_v2:(0,a.__)("Business","blocksy-companion"),agency_v2:(0,a.__)("Agency","blocksy-companion")}[e]})),"disjunction"))),(0,t.createElement)("h3",null,(0,a.__)("Available for","blocksy-companion")),(0,t.createElement)("span",{className:"ct-available-builders"},Ne(c.filter((function(e){return e.name===n.name||""})).sort((function(e,t){return e.builder
t.builder?1:0})).map((function(e){var t=e.builder;return Pe(t)||"Gutenberg"}))))),n.is_pro&&(0,t.createElement)("span",{className:"ct-pro-badge"},"PRO")),(0,t.createElement)("div",{className:"ct-demo-actions"},(0,t.createElement)("h4",null,n.name),(0,t.createElement)("div",null,(0,t.createElement)("a",{className:"ct-button",target:"_blank",href:n.url},(0,a.__)("Preview","blocksy-companion")),(0,t.createElement)("button",{className:"ct-button-primary",onClick:function(){u?p():(s(!1),i(n.name))}},o&&o.demo.indexOf(n.name)>-1?(0,a.__)("Modify","blocksy-companion"):(0,a.__)("Import","blocksy-companion"))))),m)},Be=function(){var e=(0,t.useContext)(Dt).demos_list;return(0,t.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,t.createElement)(ze,{key:e.name,demo:e})})))},Te=function(e){var t=e.currentDemoWithVariation;e.demoContent.content;return[{title:(0,a.__)("Import content","blocksy-companion"),params:{action:"blocksy_demo_install_content",demo_name:t}}]};function Fe(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 Ae(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 Ae(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 Ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n
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},qe=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,a.__)("Preparing data...","blocksy-companion"),params:{action:"blocksy_demo_register_current_demo",demo_name:t}}]},child_theme:{requests:[{title:(0,a.__)("Child theme","blocksy-companion"),params:{action:"blocksy_demo_install_child_theme"}}]},plugins:{requests:o.map((function(e){return{title:(0,a.sprintf)((0,a.__)("Installing %s","blocksy-companion"),Pe(e)),params:{action:"blocksy_demo_activate_plugins",plugins:e}}}))},erase_content:{requests:[{title:(0,a.__)("Erase content","blocksy-companion"),params:{action:"blocksy_demo_erase_content"}}]},options:{requests:[{title:(0,a.__)("Import options","blocksy-companion"),params:{action:"blocksy_demo_install_options",demo_name:t}}]},widgets:{requests:[{title:(0,a.__)("Import widgets","blocksy-companion"),params:{action:"blocksy_demo_install_widgets",demo_name:t}}]},content:{requests:Te(e)},install_finish:{requests:[{title:(0,a.__)("Final touches","blocksy-companion"),params:{action:"blocksy_demo_install_finish"}}]}}};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(t){for(var n=1;n
=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 Ke(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n
1&&(0,t.createElement)("div",{className:"ct-demo-builder"},(0,t.createElement)("i",{className:"ct-demo-icon"},(0,t.createElement)("svg",{width:"52",height:"40",viewBox:"0 0 52 40"},(0,t.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,t.createElement)("path",{fill:"#CFDBE4",d:"M13.8,14.6v18.8h22.6V14.6H13.8zM34.8,31.9H15.4V16.1h19.4V31.9z"}),(0,t.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,t.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,t.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,t.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,t.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,t.createElement)("h2",null,(0,a.__)("Choose Page Builder","blocksy-companion")),(0,t.createElement)("p",null,(0,a.__)("This starter site can be imported and used with one of these page builders. Please select one in order to continue.","blocksy-companion")),(0,t.createElement)("ul",{"data-count":m.length},m.sort((function(e,t){return e.builder
t.builder?1:0})).map((function(e){var o=e.builder,a=e.plugins;return(0,t.createElement)("li",{className:A()({active:o===(null===n.builder?m[0].builder:n.builder)}),onClick:function(){r(tt(tt({},n),{},{builder:o,plugins:a.map((function(e){return{plugin:e,enabled:!0}}))}))}},(0,t.createElement)("figure",null,(0,t.createElement)("span",{className:A()("ct-checkbox",{active:o===(null===n.builder?m[0].builder:n.builder)})},(0,t.createElement)("svg",{width:"10",height:"8",viewBox:"0 0 11.2 9.1"},(0,t.createElement)("polyline",{className:"check",points:"1.2,4.8 4.4,7.9 9.9,1.2 "}))),""===o&&(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 150 100"},(0,t.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"===o&&(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 150 100"},(0,t.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,t.createElement)("path",{fill:"#a7b2dd",d:"M14.6 63.2l10.8-6.5L75 86.8l49.9-30 10.5 6.4L75 100z"})),"elementor"===o&&(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 150 100"},(0,t.createElement)("path",{d:"M32.5 7.6h17v84.9h-17V7.6zm34 84.9h51v-17h-51v17zm0-34h51v-17h-51v17zm0-51v17h51v-17h-51z"}))),(0,t.createElement)("div",{className:"builder-name"},Pe(o)||"Gutenberg"))})))))};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}function ot(t){for(var n=1;n
t.builder?1:0})));return"".concat(o,":").concat(null===e.builder?a[0].builder:e.builder)}),[o,e,r]),j=(0,t.useMemo)((function(){return Ue({demoConfiguration:e,pluginsStatus:l,is_child_theme:u,includeMetaSteps:!0})}),[e,l,u]),C=(0,t.useCallback)(function(){var t=s(f().mark((function t(n){var r,o,a,i,s,u,p,m,d,b,g,v,_;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=qe({currentDemoWithVariation:x,demoConfiguration:e,pluginsStatus:l,demoContent:n}),o=j.reduce((function(e,t){return e+r[t].requests.length}),0),a=0,i={},s=Fe(j),t.prev=5,s.s();case 7:if((u=s.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:d=Fe(m.requests),t.prev=13,d.s();case 15:if((b=d.n()).done){t.next=39;break}return g=b.value,y(g.title),t.next=20,fetch(Re(g.params),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Ve({requestsPayload:i},g.body||{}))});case 20:if(200===(v=t.sent).status){t.next=24;break}return E(He),t.abrupt("break",39);case 24:return t.next=26,v.json();case 26:if(_=t.sent){t.next=30;break}return E(He),t.abrupt("break",39);case 30:if(_.success){t.next=33;break}return E(_.data&&_.data.message?_.data.message:He),t.abrupt("break",39);case 33:_.data&&null!=_.data&&"Object"===_.data.constructor.name&&(i=Ve(Ve({},i),_.data)),a++,O(a/o*100),o===a&&(console.timeEnd("Blocksy:Dashboard:DemoInstall"),h(!0),c(!0),window.removeEventListener("beforeunload",Ge));case 37:t.next=15;break;case 39:t.next=44;break;case 41:t.prev=41,t.t0=t.catch(13),d.e(t.t0);case 44:return t.prev=44,d.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),s.e(t.t1);case 54:return t.prev=54,s.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,t.useCallback)(s(f().mark((function t(){var n,r;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return window.addEventListener("beforeunload",Ge),console.time("Blocksy:Dashboard:DemoInstall"),i({demo:"".concat(o,":").concat(e.builder)}),y((0,a.__)("Preparing data...","blocksy-companion")),t.next=6,fetch(Re({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((r=t.sent).success){t.next=14;break}return E(r.data.message||He),t.abrupt("return");case 14:C(r.data);case 15:case"end":return t.stop()}}),t)}))),[C,x]);return(0,t.useEffect)((function(){S()}),[]),{isCompleted:d,isError:_,lastMessage:g,progress:k}}(n),i=o.isCompleted,l=o.isError,u=o.lastMessage,m=o.progress,d=i?"complete":l?"error":"progress";return(0,t.createElement)("div",{className:"ct-demo-install",style:r},(0,t.createElement)(c.Transition,{initial:!0,items:d,from:{opacity:0},enter:[{opacity:1}],leave:[{opacity:0}],config:function(e,t){return"leave"===t?{duration:300}:{delay:300,duration:300}}},(function(e){return function(n){return(0,t.createElement)("div",{style:n},"complete"===e&&(0,t.createElement)(ct,null),"error"===e&&(0,t.createElement)(st,{isError:l}),"progress"===e&&(0,t.createElement)(it,{lastMessage:u,progress:m}))}})))},ut=function(e){e.location,e.navigate;var n=p((0,t.useState)(!0),2),r=(n[0],n[1],(0,t.useContext)(Dt)),o=r.installerBlockingReleased,i=r.demos_list,s=r.currentDemo,l=r.pluginsStatus,u=r.currentlyInstalledDemo,m=r.setCurrentDemo,f=r.filters,d=(0,t.useContext)(G).is_child_theme,b=p((0,t.useState)(u),2),g=b[0],y=b[1],v=p((0,t.useState)({builder:"",child_theme:!1,plugins:[],content:{options:!0,widgets:!0,content:!0,erase_content:!0}}),2),_=v[0],E=v[1],w=p((0,t.useState)(0),2),k=w[0],O=w[1],x=p((s||"").split(":"),2),j=x[0],C=(x[1],["modify_demo","child_theme","builder","plugins","content","installer"].filter((function(e){if(!s)return!1;if("modify_demo"===e){if(!g)return!1;if(-1===g.demo.indexOf(j))return!1}if("child_theme"===e&&d)return!1;var t=i.filter((function(e){return e.name===j})).sort((function(e,t){return e.builder
t.builder?1:0}));return("plugins"!==e||0!==t.reduce((function(e,t){return[].concat(h(e),h(t.plugins||[]))}),[]).filter((function(e){return!l[e]})).length)&&("builder"!==e||t.length>1)}))),S=C[k];return(0,t.useEffect)((function(){if(j&&!(s.indexOf(":hide")>-1)){var e=i.filter((function(e){return e.name===j})).sort((function(e,t){return e.builder
t.builder?1:0}));O(0),y(u);var t=e[0];if("all"!==f.builder){var n=e.find((function(e){return e.builder===f.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}})}}),[s]),(0,t.createElement)(me,{items:s,isVisible:function(e){return e&&-1===e.indexOf(":hide")},className:A()("ct-demo-modal",{"ct-demo-installer":"installer"===S||"modify_demo"===S}),onDismiss:function(){("installer"!==S||o)&&m("".concat(j,":hide"))},render:function(){return(0,t.createElement)("div",{className:"ct-modal-content ct-demo-step-container"},(0,t.createElement)("div",{className:"ct-current-step"},(0,t.createElement)(c.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){return function(n){return(0,t.createElement)(t.Fragment,null,"modify_demo"===e&&(0,t.createElement)(Ye,{demoConfiguration:_,nextStep:function(){O(Math.min(k+1,C.length-1))},style:n}),"child_theme"===e&&(0,t.createElement)(Qe,{style:n,demoConfiguration:_,setDemoConfiguration:E}),"plugins"===e&&(0,t.createElement)(De,{demoConfiguration:_,style:n,setDemoConfiguration:E}),"builder"===e&&(0,t.createElement)(nt,{style:n,demoConfiguration:_,setDemoConfiguration:E}),"content"===e&&(0,t.createElement)(at,{style:n,demoConfiguration:_,setDemoConfiguration:E}),"installer"===e&&(0,t.createElement)(lt,{style:n,demoConfiguration:_}))}}))),"installer"!==S&&"modify_demo"!==S&&(0,t.createElement)("div",{className:"ct-demo-step-controls"},k>0&&(0,t.createElement)("button",{className:"ct-demo-btn demo-back-btn",onClick:function(){O(Math.max(k-1,0))}},(0,a.__)("Back","blocksy-companion")),C.length>2&&(0,t.createElement)("ul",{className:"ct-steps-pills"},C.map((function(e,n){return n===C.length-1?null:(0,t.createElement)("li",{className:A()({active:e===S}),key:e},n+1)}))),(0,t.createElement)("button",{className:"ct-demo-btn demo-main-btn",disabled:"content"===S&&0===Ue({demoConfiguration:_,pluginsStatus:l,is_child_theme:d}).length,onClick:function(){O(Math.min(k+1,C.length-1))}},"content"===S?(0,a.__)("Install","blocksy-companion"):(0,a.__)("Next","blocksy-companion"))))}})},pt=window.wp.components;function mt(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
{const a={...r,className:ft(e,{"is-pressed":n})||void 0,"aria-hidden":!0,focusable:!1};return(0,t.createElement)("svg",{...a,ref:o})}));dt.displayName="SVG";var ht=(0,W.createElement)(dt,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,W.createElement)((e=>(0,t.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"})),bt=n(162),gt=n.n(bt);function yt(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 vt(t){for(var n=1;n
r?1:0})).map((function(e){return(0,t.createElement)("option",{value:e.id,key:e.id},e.title)})))),(0,t.createElement)("label",null,(0,t.createElement)("span",{className:"ct-label"},(0,a.__)("Builder","blocksy-companion")),(0,t.createElement)("input",{type:"text",placeholder:(0,a.__)("Builder","blocksy-companion"),value:_,onChange:function(e){var t=e.target.value;return E(t)}}))),(0,t.createElement)("section",{className:"plugins-section"},(0,t.createElement)("h4",null,"Required plugins"),(0,t.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,t.createElement)("label",{tabindex:"0",onClick:function(t){t.preventDefault(),O((function(t){return t.includes(e)?t.filter((function(t){return t!==e})):[].concat(h(t),[e])}))}},(0,t.createElement)("input",{type:"checkbox",checked:k.indexOf(e)>-1,onChange:function(e){e.target.checked}}),(0,t.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,t.createElement)("div",{className:"ct-modal-actions has-divider"},(0,t.createElement)("button",{className:"button button-primary",disabled:r,onClick:function(){return x()}},r?(0,a.__)("Loading...","blocksy-companion"):(0,a.__)("Export site","blocksy-companion"))))}}))};function Et(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 wt(t){for(var n=1;n
n)return!1;if(r===n)return e===t;e:for(var o=0,a=0;o
0&&void 0!==r[0]&&r[0]&&o(!0),e.prev=2,e.next=5,P();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,u(n),Mt=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:o(!1);case 20:case"end":return e.stop()}}),e,null,[[2,16]])})));return function(){return e.apply(this,arguments)}}();return(0,t.useEffect)((function(){ctDashboardLocalizations.plugin_data.demo_install_error?(o(!1),S({isError:!0,message:ctDashboardLocalizations.plugin_data.demo_install_error,reason:"generic"})):z(!Mt)}),[]),O?(0,t.createElement)(B,null):(0,t.createElement)("div",{className:"ct-demos-list-container"},(0,t.createElement)(c.Transition,{items:r,from:{opacity:0},enter:[{opacity:1}],leave:[{opacity:0}],config:function(e,t){return"leave"===t?{duration:300}:{delay:300,duration:300}}},(function(e){return e?function(e){return(0,t.createElement)(c.animated.p,{style:e,className:"ct-loading-text"},(0,t.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 100 100"},(0,t.createElement)("g",{transform:"translate(50,50)"},(0,t.createElement)("g",{transform:"scale(1)"},(0,t.createElement)("circle",{cx:"0",cy:"0",r:"50",fill:"currentColor"}),(0,t.createElement)("circle",{cx:"0",cy:"-26",r:"12",fill:"#ffffff",transform:"rotate(161.634)"},(0,t.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,a.__)("Loading Starter Sites...","blocksy-companion"))}:C.isError?function(e){return(0,t.createElement)(c.animated.div,{style:e},"ajax_request_failed"===C.reason&&(0,t.createElement)("div",{className:"ct-demo-notification",dangerouslySetInnerHTML:{__html:sprintf((0,a.__)("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.
Error code - %s","blocksy-companion"),'
',"
",C.message)}}),"remote_fetch_failed"===C.reason&&(0,t.createElement)("div",{className:"ct-demo-notification",dangerouslySetInnerHTML:{__html:sprintf((0,a.__)("Failed to retrieve starter sites list.
Error code - %s","blocksy-companion"),C.message)}}),"generic"===C.reason&&(0,t.createElement)("div",{className:"ct-demo-notification",dangerouslySetInnerHTML:{__html:C.message}}),(0,t.createElement)(we,null))}:function(e){return(0,t.createElement)(c.animated.div,{style:e},(0,t.createElement)(t.Fragment,null,(0,t.createElement)(Dt.Provider,{value:{currentDemo:g,pluginsStatus:d,setPluginsStatus:h,installerBlockingReleased:L,setInstallerBlockingReleased:N,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,t.createElement)(Be,null),(0,t.createElement)(ut,null)),(0,t.createElement)(we,null)))}})))};function Nt(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}P().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)})),o().on("ct:dashboard:routes",(function(e){e.push({Component:function(e){return(0,t.createElement)(T,e)},path:"/extensions"}),e.push({Component:function(e){return(0,t.createElement)(xe,e)},path:"/extensions/:extension"}),"yes"===ctDashboardLocalizations.plugin_data.has_demo_install&&e.push({Component:function(e){return(0,t.createElement)(Lt,e)},path:"/demos"})})),o().on("ct:dashboard:navigation-links",(function(t){"yes"===ctDashboardLocalizations.plugin_data.has_demo_install&&t.push({text:(0,a.__)("Starter Sites","blocksy-companion"),path:"demos",getProps:function(e){var t=e.isPartiallyCurrent;e.isCurrent;return t?{"aria-current":"page"}:{}}}),t.push({text:(0,a.__)("Extensions","blocksy-companion"),path:"/extensions",onClick:function(e){location.hash.indexOf("extensions")>-1&&e.preventDefault()},getProps:function(t){var n=t.isPartiallyCurrent,r=t.isCurrent;return function(t){for(var n=1;n