(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{132:function(e,t,n){"use strict";n.r(t);var c=n(0),o=n(2);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],c=!0,o=!1,a=void 0;try{for(var i,r=e[Symbol.iterator]();!(c=(i=r.next()).done)&&(n.push(i.value),!t||n.length!==t);c=!0);}catch(e){o=!0,a=e}finally{try{c||null==r.return||r.return()}finally{if(o)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var i=function(e){var t=e.initialStatus,n=e.url,i=e.pluginUrl,r=e.pluginLink,l=a(Object(c.useState)("installed"),2),s=l[0],u=l[1],b=a(Object(c.useState)(!1),2),y=b[0],m=b[1],d=Object(c.useRef)(null);return Object(c.useEffect)(function(){u(t)},[]),Object(c.createElement)("div",{className:"ct-blocksy-plugin-inner",ref:d},Object(c.createElement)("button",{onClick:function(){d.current.closest(".notice-blocksy-plugin").parentNode.removeChild(d.current.closest(".notice-blocksy-plugin")),$.ajax(ajaxurl,{type:"POST",data:{action:"blocksy_dismissed_notice_handler"}})},type:"button",className:"notice-dismiss"},Object(c.createElement)("span",{className:"screen-reader-text"},Object(o.__)("Dismiss this notice.","blocksy"))),Object(c.createElement)("span",{className:"ct-notification-icon"},Object(c.createElement)("svg",{width:"70",viewBox:"0 0 20 17"},Object(c.createElement)("rect",{x:"3",width:"5",height:"5.15",rx:"1.5",fill:"#1D8FCA",opacity:"0.6"}),Object(c.createElement)("rect",{x:"12",width:"5",height:"5.15",rx:"1.5",fill:"#1D8FCA",opacity:"0.6"}),Object(c.createElement)("rect",{y:"2.58",width:"20",height:"14.42",rx:"2.5",fill:"#1D8FCA"}))),Object(c.createElement)("div",{className:"ct-notification-content"},Object(c.createElement)("h2",null,Object(o.__)("Thanks for installing Blocksy, you rock!","blocksy")),Object(c.createElement)("p",{dangerouslySetInnerHTML:{__html:Object(o.__)("We strongly recommend you to activate the Blocksy Companion plugin.
This way you will have access to custom extensions, demo templates and many other awesome features.","blocksy")}}),Object(c.createElement)("div",{className:"notice-actions"},"uninstalled"===s&&Object(c.createElement)("a",{className:"button button-primary",href:r,target:"_blank"},Object(o.__)("Download Blocksy Companion","blocksy")),"uninstalled"!==s&&Object(c.createElement)("button",{className:"button button-primary",disabled:y||"active"===s,onClick:function(){m(!0),setTimeout(function(){}),$.ajax(ajaxurl,{type:"POST",data:{action:"blocksy_notice_button_click"}}).then(function(e){var t=e.success,n=e.data;t&&(u(n.status),"active"===n.status&&location.assign(i)),m(!1)})}},y?Object(o.__)("Activating...","blocksy"):"uninstalled"===s?Object(o.__)("Install Blocksy Companion","blocksy"):"installed"===s?Object(o.__)("Activate Blocksy Companion","blocksy"):Object(o.__)("Blocksy Companion active!","blocksy"),y&&Object(c.createElement)("i",{className:"dashicons dashicons-update"})),Object(c.createElement)("a",{className:"button",href:n},Object(o.__)("Theme Dashboard","blocksy")))))};function r(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t