!function(){"use strict";var e=window.wp.blocks,n=window.wp.element,t=window.wp.i18n,l=window.wp.blockEditor,o=window.wp.components,r=JSON.parse('{"u2":"wcvendors-pro/store-total-sales"}');(0,e.registerBlockType)(r.u2,{edit:function(e){var r=e.attributes,a=e.setAttributes,c=r.title,i=r.numberBeforeLabel,u=r.label,b=r.showLabel,s=b?u:"";return(0,n.createElement)("div",(0,l.useBlockProps)(),(0,n.createElement)(o.TextControl,{label:(0,t.__)("Title"),value:c,onChange:function(e){return a({title:e})}}),(0,n.createElement)(o.TextControl,{label:(0,t.__)("Label"),value:u,onChange:function(e){return a({label:e})}}),(0,n.createElement)(o.CheckboxControl,{label:(0,t.__)("Show label"),checked:b,onChange:function(e){return a({showLabel:e})}}),(0,n.createElement)(o.CheckboxControl,{label:(0,t.__)("Display number before label"),checked:i,onChange:function(e){return a({numberBeforeLabel:e})},disabled:!b}),(0,n.createElement)("div",null,i?"0 ".concat(s):"".concat(s," 0")))},save:function(){return null}})}();