!function(){var e={184:function(e,t){var n;
/*!
  Copyright (c) 2017 Jed Watson.
  Licensed under the MIT License (MIT), see
  http://jedwatson.github.io/classnames
*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)&&n.length){var c=o.apply(null,n);c&&e.push(c)}else if("object"===a)for(var l in n)r.call(n,l)&&n[l]&&e.push(l)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}!function(){"use strict";var e=window.wp.element;function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function r(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],c=!0,l=!1;try{for(n=n.call(e);!(c=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{c||null==n.return||n.return()}finally{if(l)throw o}}return a}}(e,n)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var o=window.wp.i18n,a=(window.jQuery,n(184),function(t){t.updatesUrl;var n=(0,e.useRef)(),a=r((0,e.useState)(!1),2),c=a[0],l=a[1];return(0,e.createElement)("div",{className:"ct-theme-required",ref:n},(0,e.createElement)("h2",null,(0,e.createElement)("span",null,(0,e.createElement)("svg",{viewBox:"0 0 24 24"},(0,e.createElement)("path",{d:"M12,23.6c-1.4,0-2.6-1-2.8-2.3L8.9,20h6.2l-0.3,1.3C14.6,22.6,13.4,23.6,12,23.6z M24,17.8H0l3.1-2c0.5-0.3,0.9-0.7,1.1-1.3c0.5-1,0.5-2.2,0.5-3.2V7.6c0-4.1,3.2-7.3,7.3-7.3s7.3,3.2,7.3,7.3v3.6c0,1.1,0.1,2.3,0.5,3.2c0.3,0.5,0.6,1,1.1,1.3L24,17.8zM6.1,15.6h11.8c0,0-0.1-0.1-0.1-0.2c-0.7-1.3-0.7-2.9-0.7-4.2V7.6c0-2.8-2.2-5.1-5.1-5.1c-2.8,0-5.1,2.2-5.1,5.1v3.6c0,1.3-0.1,2.9-0.7,4.2C6.1,15.5,6.1,15.6,6.1,15.6z"}))),(0,o.__)("Action required - please update Blocksy theme to the latest version!","blocksy-companion")),(0,e.createElement)("p",{dangerouslySetInnerHTML:{__html:(0,o.__)("We detected that you are using an outdated version of Blocksy theme.","blocksy-companion")}}),(0,e.createElement)("p",{dangerouslySetInnerHTML:{__html:(0,o.__)("In order to take full advantage of all features the core has to offer - please install and activate the latest version of Blocksy theme.","blocksy-companion")}}),(0,e.createElement)("button",{className:"button button-primary",onClick:function(e){e.preventDefault(),l(!0),wp.updates.ajax("update-theme",{success:function(){setTimeout((function(){location.reload()}),1e3)},error:function(){setTimeout((function(){location.reload()}),1e3)},slug:"blocksy"})}},c?(0,o.__)("Loading...","blocksy-companion"):(0,o.__)("Update Blocksy Theme Now","blocksy-companion")))});document.addEventListener("DOMContentLoaded",(function(){var t;(t=document.body).querySelector(".notice-blocksy-theme-version-mismatch")&&(0,e.render)((0,e.createElement)(a,{updatesUrl:t.querySelector(".notice-blocksy-theme-version-mismatch").dataset.url}),t.querySelector(".notice-blocksy-theme-version-mismatch"))}))}()}();