(window.blocksyJsonP=window.blocksyJsonP||[]).push([[1],{121:function(t,e,n){"use strict";n.r(e);var c=n(0),o=n(1),a=n(20),i=n.n(a);function l(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,l=t[Symbol.iterator]();!(c=(i=l.next()).done)&&(n.push(i.value),!e||n.length!==e);c=!0);}catch(t){o=!0,a=t}finally{try{c||null==l.return||l.return()}finally{if(o)throw a}}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,a=t.pluginUrl,r=t.pluginLink,s=l(Object(c.useState)("installed"),2),u=s[0],b=s[1],y=l(Object(c.useState)(!1),2),m=y[0],d=y[1],p=Object(c.useRef)(null);return Object(c.useEffect)(function(){b(e)},[]),Object(c.createElement)("div",{className:"ct-blocksy-plugin-inner",ref:p},Object(c.createElement)("button",{onClick:function(){p.current.closest(".notice-blocksy-plugin").parentNode.removeChild(p.current.closest(".notice-blocksy-plugin")),i.a.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"===u&&Object(c.createElement)("a",{className:"button button-primary",href:r,target:"_blank"},Object(o.__)("Download Blocksy Companion","blocksy")),"uninstalled"!==u&&Object(c.createElement)("button",{className:"button button-primary",disabled:m||"active"===u,onClick:function(){d(!0),setTimeout(function(){}),i.a.ajax(ajaxurl,{type:"POST",data:{action:"blocksy_notice_button_click"}}).then(function(t){var e=t.success,n=t.data;e&&(b(n.status),"active"===n.status&&location.assign(a)),d(!1)})}},m?Object(o.__)("Activating...","blocksy"):"uninstalled"===u?Object(o.__)("Install Blocksy Companion","blocksy"):"installed"===u?Object(o.__)("Activate Blocksy Companion","blocksy"):Object(o.__)("Blocksy Companion active!","blocksy"),m&&Object(c.createElement)("i",{className:"dashicons dashicons-update"})),Object(c.createElement)("a",{className:"button",href:n},Object(o.__)("Theme Dashboard","blocksy")))))};function s(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e