!function(){var t={942:function(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 r={}.hasOwnProperty;function o(){for(var t="",e=0;e<arguments.length;e++){var n=arguments[e];n&&(t=c(t,i(n)))}return t}function i(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return o.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)r.call(t,n)&&t[n]&&(e=c(e,n));return e}function c(t,e){return e?t?t+" "+e:t+e:t}t.exports?(o.default=o,t.exports=o):void 0===(n=function(){return o}.apply(e,[]))||(t.exports=n)}()}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.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 r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},function(){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(e){var n=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==t(n)?n:n+""}function r(t,n,r){return(n=e(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}var o=window.wp.element,i=window.wp.hooks,c=(window.ctEvents,window.blocksyOptions),u=n(942),s=n.n(u),a=window.wp.i18n;function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach(function(e){r(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var f=function({setExtsStatus:t,extension:e,onExtsSync:n}){const[r,i]=(0,o.useState)(null);return(0,o.createElement)("div",{className:s()("ct-extension-options ct-product-reviews-options")},(0,o.createElement)("h4",null,(0,a.__)("Product Reviews Settings","blocksy-companion")),(0,o.createElement)("p",{className:"ct-modal-description"},(0,a.__)("Configure the slugs for single and category pages of the product review custom post type.","blocksy-companion")),(0,o.createElement)("form",null,(0,o.createElement)(c.OptionsPanel,{onChange:function(t,e){return i(function(n){return p(p({},n),{},{[t]:e})})},options:{single_slug:{type:"text",value:"",label:(0,a.__)("Single Slug","blocksy-companion")},category_slug:{type:"text",value:"",label:(0,a.__)("Category Slug","blocksy-companion")}},value:p(p({},e.data.settings),r||{}),hasRevertButton:!1}),(0,o.createElement)("button",{className:"ct-button-primary",disabled:!r,onClick:function(o){if(o.preventDefault(),!r)return;const c=p(p({},e.data.settings),r);t(function(t){return p(p({},t),{},{[e.name]:p(p({},t[e.name]),{},{data:p(p({},t[e.name].data),{},{settings:c})})})}),n({extAction:{type:"persist",settings:c}}),i(null)}},(0,a.__)("Save Settings","blocksy-companion"))))};function y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function b(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?y(Object(n),!0).forEach(function(e){r(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}(0,i.addFilter)("blocksy.extensions.current_extension_content","blocksy",function(t,{extension:e,onExtsSync:n,setExtsStatus:r}){return"product-reviews"!==e.name?t:b(b({},t),{},{content:(0,o.createElement)(f,{setExtsStatus:r,extension:e,onExtsSync:n})})})}()}();