(window.blocksyJsonP=window.blocksyJsonP||[]).push([[1],{113:function(t,e,n){"use strict";n.r(e);var c=n(0),o=n(1),a=n(20),r=n.n(a);function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(!(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)))return;var n=[],c=!0,o=!1,a=void 0;try{for(var r,i=t[Symbol.iterator]();!(c=(r=i.next()).done)&&(n.push(r.value),!e||n.length!==e);c=!0);}catch(t){o=!0,a=t}finally{try{c||null==i.return||i.return()}finally{if(o)throw a}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var l=function(t){var e=t.initialStatus,n=t.url,a=t.pluginUrl,l=t.pluginLink,s=i(Object(c.useState)("installed"),2),u=s[0],b=s[1],y=i(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")),r.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:l,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(){})),r.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