!function(){"use strict";var e=window.wp.blocks,o=window.wp.element,n=window.wp.i18n,t=window.wp.blockEditor,r=window.wp.components,c=JSON.parse('{"u2":"wcvendors-pro/store-ratings"}');(0,e.registerBlockType)(c.u2,{edit:function(e){var c=e.attributes,l=e.setAttributes,a=c.title,w=c.number,s=c.showRatingTitle,u=c.showCustomer,h=c.showDate,i=c.showComment,m=c.showProduct;return(0,o.createElement)("div",(0,t.useBlockProps)(),(0,o.createElement)(r.TextControl,{label:(0,n.__)("Title","wcvendors-pro"),value:a,onChange:function(e){return l({title:e})}}),(0,o.createElement)(r.TextControl,{type:"number",min:1,max:100,maxlength:"3",label:(0,n.__)("Number of ratings to show","wcvendors-pro"),value:w,onChange:function(e){return l({number:parseInt(e)})}}),(0,o.createElement)(r.CheckboxControl,{label:(0,n.__)("Show rating title","wcvendors-pro"),checked:s,onChange:function(e){return l({showRatingTitle:e})}}),(0,o.createElement)(r.CheckboxControl,{label:(0,n.__)("Show customer name","wcvendors-pro"),checked:u,onChange:function(e){return l({showCustomer:e})}}),(0,o.createElement)(r.CheckboxControl,{label:(0,n.__)("Show date","wcvendors-pro"),checked:h,onChange:function(e){return l({showDate:e})}}),(0,o.createElement)(r.CheckboxControl,{label:(0,n.__)("Show comment","wcvendors-pro"),checked:i,onChange:function(e){return l({showComment:e})}}),(0,o.createElement)(r.CheckboxControl,{label:(0,n.__)("Show product","wcvendors-pro"),checked:m,onChange:function(e){return l({showProduct:e})}}))}})}();