(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{133:function(t,e,n){"use strict";n.r(e);var o=n(0),a=n(2);function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],o=!0,a=!1,c=void 0;try{for(var r,l=t[Symbol.iterator]();!(o=(r=l.next()).done)&&(n.push(r.value),!e||n.length!==e);o=!0);}catch(t){a=!0,c=t}finally{try{o||null==l.return||l.return()}finally{if(a)throw c}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var r=function(t){var e=t.initialStatus,n=t.url,r=t.pluginUrl,l=t.pluginLink,i=c(Object(o.useState)("installed"),2),s=i[0],u=i[1],b=c(Object(o.useState)(!1),2),y=b[0],d=b[1],m=Object(o.useRef)(null);return Object(o.useEffect)(function(){u(e)},[]),Object(o.createElement)("div",{ref:m},Object(o.createElement)("button",{onClick:function(){m.current.closest(".notice-blocksy-plugin").parentNode.removeChild(m.current.closest(".notice-blocksy-plugin")),$.ajax(ajaxurl,{type:"POST",data:{action:"blocksy_dismissed_notice_handler"}})},type:"button",className:"notice-dismiss"},Object(o.createElement)("span",{className:"screen-reader-text"},Object(a.__)("Dismiss this notice.","blocksy"))),Object(o.createElement)("h1",null,Object(a.__)("Congratulations!","blocksy")),Object(o.createElement)("p",{className:"about-description"},Object(a.__)("Blocksy theme is now active and ready to use.","blocksy")),Object(o.createElement)("p",{dangerouslySetInnerHTML:{__html:Object(a.__)("To get full advantage of it, we strongly recommend to activate the Blocksy Companion Plugin. This way you will have access to custom extensions, demo templates and many other awesome features.","blocksy")}}),Object(o.createElement)("div",{className:"notice-actions"},"uninstalled"===s&&Object(o.createElement)("a",{className:"button button-primary",href:l,target:"_blank"},Object(a.__)("Download Blocksy Companion","blocksy")),"uninstalled"!==s&&Object(o.createElement)("button",{disabled:y||"active"===s,onClick:function(){d(!0),setTimeout(function(){}),$.ajax(ajaxurl,{type:"POST",data:{action:"blocksy_notice_button_click"}}).then(function(t){var e=t.success,n=t.data;e&&(u(n.status),"active"===n.status&&location.assign(r)),d(!1)})},className:"button button-primary"},y&&Object(o.createElement)("i",{className:"dashicons dashicons-update"}),y?Object(a.__)("Activating...","blocksy"):"uninstalled"===s?Object(a.__)("Install Blocksy Companion","blocksy"):"installed"===s?Object(a.__)("Activate Blocksy Companion","blocksy"):Object(a.__)("Blocksy Companion active!","blocksy")),Object(o.createElement)("a",{href:n,className:"button"},Object(a.__)("Theme Dashboard","blocksy"))))};function l(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e