!function(){"use strict";var e=window.wp.blocks,o=window.wp.element,t=window.wp.i18n,n=window.wp.blockEditor,c=window.wp.components,r=JSON.parse('{"u2":"wcvendors-pro/store-contact"}');(0,e.registerBlockType)(r.u2,{edit:function(e){var r=e.attributes,a=e.setAttributes,l=r.title,u=r.showPhone,i=r.showShopName,h=r.showShopUrl,s=r.showEmailAddress,d=r.showContactText,C=r.showQuickContactForm,m=r.showOpeningHours,b=r.showOpeningHoursAfter,k=r.contactText,w=r.ccAdmin,_=r.requiredQuickContactFormSubject,f=r.requiredQuickContactFormEmailAddress,g=r.requiredQuickContactFormMessage;return(0,o.createElement)("div",(0,n.useBlockProps)(),(0,o.createElement)(c.TextControl,{label:(0,t.__)("Title"),value:l,onChange:function(e){return a({title:e})}}),(0,o.createElement)(c.CheckboxControl,{label:(0,t.__)("Show contact us text"),checked:d,onChange:function(e){return a({showContactText:e})}}),d&&(0,o.createElement)(c.TextControl,{label:(0,t.__)("Contact us text"),value:k,onChange:function(e){return a({contactText:e})}}),(0,o.createElement)(c.CheckboxControl,{label:(0,t.__)("Show shop name"),checked:i,onChange:function(e){return a({showShopName:e})}}),(0,o.createElement)(c.CheckboxControl,{label:(0,t.__)("Show shop URL"),checked:h,onChange:function(e){return a({showShopUrl:e})}}),(0,o.createElement)(c.CheckboxControl,{label:(0,t.__)("Show phone number"),checked:u,onChange:function(e){return a({showPhone:e})}}),(0,o.createElement)(c.CheckboxControl,{label:(0,t.__)("Show email address"),checked:s,onChange:function(e){return a({showEmailAddress:e})}}),(0,o.createElement)(c.CheckboxControl,{label:(0,t.__)("Show quick contact form"),checked:C,onChange:function(e){return a({showQuickContactForm:e})}}),(0,o.createElement)(c.CheckboxControl,{label:(0,t.__)("Show opening hours"),checked:m,onChange:function(e){return a({showOpeningHours:e})}}),m&&(0,o.createElement)(c.SelectControl,{label:(0,t.__)("Show hours after"),value:b,onChange:function(e){return a({showOpeningHoursAfter:e})},options:[{label:(0,t.__)("Contact us text"),value:"text"},{label:(0,t.__)("Contact info"),value:"info"},{label:(0,t.__)("Quick contact form"),value:"form"}]}),C&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)(c.CheckboxControl,{label:(0,t.__)("Send copy of quick contact form to admin"),checked:w,onChange:function(e){return a({ccAdmin:e})},disabled:!C}),(0,o.createElement)(c.CheckboxControl,{label:(0,t.__)("Required quick contact form subject"),checked:_,onChange:function(e){return a({requiredQuickContactFormSubject:e})},disabled:!C}),(0,o.createElement)(c.CheckboxControl,{label:(0,t.__)("Required quick contact form email address"),checked:f,onChange:function(e){return a({requiredQuickContactFormEmailAddress:e})},disabled:!C}),(0,o.createElement)(c.CheckboxControl,{label:(0,t.__)("Required quick contact form message"),checked:g,onChange:function(e){return a({requiredQuickContactFormMessage:e})},disabled:!C})))},save:function(){return null}})}();