(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{103:function(t,e,n){"use strict";n.r(e);var c=n(0),o=n(2);function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],c=!0,o=!1,a=void 0;try{for(var i,r=t[Symbol.iterator]();!(c=(i=r.next()).done)&&(n.push(i.value),!e||n.length!==e);c=!0);}catch(t){o=!0,a=t}finally{try{c||null==r.return||r.return()}finally{if(o)throw a}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var i=function(t){var e=t.initialStatus,n=t.url,i=t.pluginUrl,r=t.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(e)},[]),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(t){var e=t.success,n=t.data;e&&(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(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e