!function(){"use strict";var e=window.wp.blocks,n=window.wp.element,o=window.wp.i18n,r=window.wp.blockEditor,t=window.wp.components,l=JSON.parse('{"u2":"wcvendors-pro/store-recent-products"}');(0,e.registerBlockType)(l.u2,{edit:function(e){var l=e.attributes,a=e.setAttributes,c=l.title,u=l.numberOfProducts,i=l.showRating,s=l.showImage,w=l.imageSize,p=l.showExcerpt,d=l.excerptLength;return console.log(l),(0,n.createElement)("div",(0,r.useBlockProps)(),(0,n.createElement)(t.TextControl,{label:(0,o.__)("Title","wcvendors-pro"),value:c,onChange:function(e){return a({title:e})}}),(0,n.createElement)(t.TextControl,{label:(0,o.__)("Number of products","wcvendors-pro"),type:"number",min:1,max:100,maxlength:"3",value:u,onChange:function(e){return a({numberOfProducts:parseInt(e)})}}),(0,n.createElement)(t.CheckboxControl,{label:(0,o.__)("Show rating","wcvendors-pro"),checked:i,onChange:function(e){return a({showRating:e})}}),(0,n.createElement)(t.CheckboxControl,{label:(0,o.__)("Show image","wcvendors-pro"),checked:s,onChange:function(e){return a({showImage:e})}}),s&&(0,n.createElement)(t.SelectControl,{label:(0,o.__)("Image szie","wcvendors-pro"),value:w,options:[{label:(0,o.__)("Thumbnail","wcvendors-pro"),value:"thumbnail"},{label:(0,o.__)("Medium","wcvendors-pro"),value:"medium"},{label:(0,o.__)("Medium large","wcvendors-pro"),value:"medium-large"},{label:(0,o.__)("Large","wcvendors-pro"),value:"large"},{label:(0,o.__)("Full","wcvendors-pro"),value:"full"}],onChange:function(e){return a({imageSize:e})}}),(0,n.createElement)(t.CheckboxControl,{label:(0,o.__)("Show excerpt","wcvendors-pro"),checked:p,onChange:function(e){return a({showExcerpt:e})}}),p&&(0,n.createElement)(t.TextControl,{label:(0,o.__)("Excerpt length","wcvendors-pro"),value:d,onChange:function(e){return a({excerptLength:e})}}))}})}();