!function(b){function a(d){if(c[d])return c[d].exports;var e=c[d]={i:d,l:!1,exports:{}};return b[d].call(e.exports,e,e.exports,a),e.l=!0,e.exports}var c={};a.m=b,a.c=c,a.d=function(b,c,d){a.o(b,c)||Object.defineProperty(b,c,{configurable:!1,enumerable:!0,get:d})},a.n=function(c){var b=c&&c.__esModule?function(){return c.default}:function(){return c};return a.d(b,"a",b),b},a.o=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},a.p="",a(a.s=0)}([function(a,c,b){a.exports=b(1)},function(e,f){var b=wp.i18n.__,c=wp.blocks.registerBlockType,a=wp.components,g=a.SelectControl,h=a.CheckboxControl,i=a.PanelBody,j=wp.serverSideRender,k=a.Disabled,l=wp.editor.InspectorControls,d=bpfwp_blocks,m=d.locationOptions;c("business-profile/contact-card",{title:b("Contact Card","business-profile"),category:"bpfwp-blocks",icon:"location",attributes:{location:{type:"number",default:0},show_name:{type:"boolean",default:!0},show_address:{type:"boolean",default:!0},show_get_directions:{type:"boolean",default:!0},show_phone:{type:"boolean",default:!0},show_cell_phone:{type:"boolean",default:!0},show_whatsapp:{type:"boolean",default:!0},show_fax:{type:"boolean",default:!0},show_contact:{type:"boolean",default:!0},show_opening_hours:{type:"boolean",default:!0},show_opening_hours_brief:{type:"boolean",default:!1},show_map:{type:"boolean",default:!0},show_booking_link:{type:"boolean",default:!1}},supports:{html:!1},edit:function(c){var a=c.attributes,d=c.setAttributes;return wp.element.createElement("div",null,wp.element.createElement(l,null,wp.element.createElement(i,null,m.length?wp.element.createElement(g,{label:b("Select a Location","business-profile"),value:a.location,onChange:function(a){return d({location:parseInt(a,10)})},options:m}):"",wp.element.createElement(h,{label:b("Show Name","business-profile"),checked:a.show_name,onChange:function(a){d({show_name:a})}}),wp.element.createElement(h,{label:b("Show Address","business-profile"),checked:a.show_address,onChange:function(a){d({show_address:a})}}),wp.element.createElement(h,{label:b("Show link to get directions on Google Maps","business-profile"),checked:a.show_get_directions,onChange:function(a){d({show_get_directions:a})}}),wp.element.createElement(h,{label:b("Show Phone number","business-profile"),checked:a.show_phone,onChange:function(a){d({show_phone:a})}}),wp.element.createElement(h,{label:b("Show Cell phone number","business-profile"),checked:a.show_cell_phone,onChange:function(a){d({show_cell_phone:a})}}),wp.element.createElement(h,{label:b("Show Whatsapp","business-profile"),checked:a.show_whatsapp,onChange:function(a){d({show_whatsapp:a})}}),wp.element.createElement(h,{label:b("Show Fax number","business-profile"),checked:a.show_fax,onChange:function(a){d({show_fax:a})}}),wp.element.createElement(h,{label:b("Show contact details","business-profile"),checked:a.show_contact,onChange:function(a){d({show_contact:a})}}),wp.element.createElement(h,{label:b("Show Opening Hours","business-profile"),checked:a.show_opening_hours,onChange:function(a){d({show_opening_hours:a})}}),wp.element.createElement(h,{label:b("Show brief opening hours on one line","business-profile"),checked:a.show_opening_hours_brief,onChange:function(a){d({show_opening_hours_brief:a})}}),wp.element.createElement(h,{label:b("Show Google Map","business-profile"),checked:a.show_map,onChange:function(a){d({show_map:a})}}),wp.element.createElement(h,{label:b("Show book a table link","business-profile"),checked:a.show_booking_link,onChange:function(a){d({show_booking_link:a})}}))),wp.element.createElement(k,null,wp.element.createElement(j,{block:"business-profile/contact-card",attributes:a})))},save:function(){return null}})}])