!function(){"use strict";var e=window.wp.blocks,o=window.wp.element,n=window.wp.i18n,r=window.wp.blockEditor,t=window.wp.components,c=JSON.parse('{"u2":"wcvendors-pro/store-categories"}');(0,e.registerBlockType)(c.u2,{edit:function(e){var c=e.attributes,l=e.setAttributes,a=c.title,h=c.orderBy,w=c.showAsDropdown,i=c.showCount,d=c.hideEmpty,s=c.showChildrenOnly,u=c.showOnStore,p=c.showHierarchical;return(0,o.createElement)("div",(0,r.useBlockProps)(),(0,o.createElement)(t.TextControl,{label:(0,n.__)("Title","wcvendors-pro"),value:a,onChange:function(e){return l({title:e})}}),(0,o.createElement)(t.SelectControl,{label:(0,n.__)("Order by","wcvendors-pro"),value:h,onChange:function(e){return l({orderBy:e})},options:[{label:(0,n.__)("Name","wcvendors-pro"),value:"name"},{label:(0,n.__)("Category order","wcvendors-pro"),value:"order"}]}),(0,o.createElement)(t.CheckboxControl,{label:(0,n.__)("Show as dropdown","wcvendors-pro"),checked:w,onChange:function(e){return l({showAsDropdown:e})}}),(0,o.createElement)(t.CheckboxControl,{label:(0,n.__)("Show count","wcvendors-pro"),checked:i,onChange:function(e){return l({showCount:e})}}),(0,o.createElement)(t.CheckboxControl,{label:(0,n.__)("Hide empty","wcvendors-pro"),checked:d,onChange:function(e){return l({hideEmpty:e})}}),(0,o.createElement)(t.CheckboxControl,{label:(0,n.__)("Show children only","wcvendors-pro"),checked:s,onChange:function(e){return l({showChildrenOnly:e})}}),(0,o.createElement)(t.CheckboxControl,{label:(0,n.__)("Show on store","wcvendors-pro"),checked:u,onChange:function(e){return l({showOnStore:e})}}),(0,o.createElement)(t.CheckboxControl,{label:(0,n.__)("Show hierarchical","wcvendors-pro"),checked:p,onChange:function(e){return l({showHierarchical:e})}}))},save:function(){return null}})}();