!function(){var e={942(e,t){var n;
/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=c(e,a(n)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return r.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)o.call(e,n)&&e[n]&&(t=c(t,n));return t}function c(e,t){return t?e?e+" "+t:e+t:e}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var a=t[o]={exports:{}};return e[o](a,a.exports,n),a.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=window.wp.element,t=window.wp.i18n,o=(window.jQuery,n(942)),r=n.n(o);var a=function({className:n,mismatched_version_descriptor:o={}}){o={productName:"Blocksy theme",slug:"blocksy",...o};const[a,c]=(0,e.useState)(!1);return(0,e.createElement)("div",{className:r()("ct-theme-required",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,t.sprintf)((0,t.__)("Action required - please update %s to the latest version!","blocksy-companion"),o.productName)),(0,e.createElement)("p",{dangerouslySetInnerHTML:{__html:(0,t.sprintf)((0,t.__)("We detected that you are using an outdated version of %s.","blocksy-companion"),o.productName)}}),(0,e.createElement)("p",{dangerouslySetInnerHTML:{__html:(0,t.__)("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"),__html:(0,t.sprintf)((0,t.__)("In order to take full advantage of all features the core has to offer - please install and activate the latest version of %s.","blocksy-companion"),o.productName)}}),(0,e.createElement)("button",{className:"button button-primary",onClick:function(e){e.preventDefault(),c(!0);const t={success:function(...e){setTimeout(function(){location.reload()},1e3)},error:function(...e){setTimeout(function(){location.reload()},1e3)}};"blocksy"===o.slug?t.slug="blocksy":(t.plugin=o.slug,t.slug=o.slug.split("/")[0]),function(e,t){var n={};t.success&&(n.success=t.success,delete t.success),t.error&&(n.error=t.error,delete t.error),n.data={...t},n.data=_.extend(t,{action:e,_ajax_nonce:ctDashboardLocalizations.updatesNonce}),wp.ajax.send(n)}("blocksy"===o.slug?"update-theme":"update-plugin",t)}},a?(0,t.__)("Loading...","blocksy-companion"):(0,t.sprintf)((0,t.__)("Update %s Now","blocksy-companion"),o.productName.split(" ").map(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}).join(" "))))};document.addEventListener("DOMContentLoaded",function(){!function(t){if(t.querySelector(".notice-blocksy-theme-version-mismatch")){const n=t.querySelector(".notice-blocksy-theme-version-mismatch");(0,e.createRoot)(t.querySelector(".notice-blocksy-theme-version-mismatch")).render((0,e.createElement)(a,{mismatched_version_descriptor:{productName:n.dataset.productName,slug:n.dataset.slug}}))}}(document.body)})}()}();