!function(){var t={942(t,e){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 t="",e=0;e<arguments.length;e++){var n=arguments[e];n&&(t=i(t,s(n)))}return t}function s(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return r.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var n in t)o.call(t,n)&&t[n]&&(e=i(e,n));return e}function i(t,e){return e?t?t+" "+e:t+e:t}t.exports?(r.default=r,t.exports=r):void 0===(n=function(){return r}.apply(e,[]))||(t.exports=n)}()}},e={};function n(o){var r=e[o];if(void 0!==r)return r.exports;var s=e[o]={exports:{}};return t[o](s,s.exports,n),s.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},function(){"use strict";var t=window.wp.element,e=window.wp.hooks,o=(window.ctEvents,window.blocksyOptions),r=n(942),s=n.n(r),i=window.wp.i18n;var a=function({setExtsStatus:e,extension:n,onExtsSync:r}){const[a,c]=(0,t.useState)(null);return(0,t.createElement)("div",{className:s()("ct-extension-options ct-product-reviews-options")},(0,t.createElement)("h4",null,(0,i.__)("Product Reviews Settings","blocksy-companion")),(0,t.createElement)("p",{className:"ct-modal-description"},(0,i.__)("Configure the slugs for single and category pages of the product review custom post type.","blocksy-companion")),(0,t.createElement)("form",null,(0,t.createElement)(o.OptionsPanel,{onChange:function(t,e){return c(function(n){return{...n,[t]:e}})},options:{single_slug:{type:"text",value:"",label:(0,i.__)("Single Slug","blocksy-companion")},category_slug:{type:"text",value:"",label:(0,i.__)("Category Slug","blocksy-companion")}},value:{...n.data.settings,...a||{}},hasRevertButton:!1}),(0,t.createElement)("button",{className:"ct-button-primary",disabled:!a,onClick:function(t){if(t.preventDefault(),!a)return;const o={...n.data.settings,...a};e(function(t){return{...t,[n.name]:{...t[n.name],data:{...t[n.name].data,settings:o}}}}),r({extAction:{type:"persist",settings:o}}),c(null)}},(0,i.__)("Save Settings","blocksy-companion"))))};(0,e.addFilter)("blocksy.extensions.current_extension_content","blocksy",function(e,{extension:n,onExtsSync:o,setExtsStatus:r}){return"product-reviews"!==n.name?e:{...e,content:(0,t.createElement)(a,{setExtsStatus:r,extension:n,onExtsSync:o})}})}()}();