text: !function(){var e=blockUtils,t=e.getNamespace,n=e.getNamespaceObj,l=wp.components,a=l.Panel,c=l.PanelBody,o=l.TextControl,r=l.SelectControl,s=wp.data,m=(s.select,s.withSelect),i=wp.blockEditor,u=i.InspectorControls,p=i.InnerBlocks,b=i.PlainText,w=wp.element.Fragment,d=wp.blocks.registerBlockType,g=t(!0),v=g+"contact-form",E=n(t()),f=E.blocks[v].attr,h=E.blocks[v].default;d(v,{title:"Contact Form",category:"theme-blocks",icon:"email",attributes:f,edit:m((function(e,t){var n=t.clientId,l={clientID:n};return t.attributes.hasOwnProperty("id")||(t.attributes.id=n),l}))((function(e){var t=e.attributes,n=e.setAttributes,l=(e.clientID,t.id,t.email),s=void 0===l?h.email:l,m=t.subject,i=void 0===m?h.subject:m,d=t.submit_text,v=void 0===d?h.submit_text:d,f=t.success_message,C=void 0===f?h.success_message:f,k=t.gap,_=void 0===k?h.gap:k,x="";return E.gap_options.length&&(x=wp.element.createElement("div",null,wp.element.createElement(r,{label:"Fields Gap",value:_,options:E.gap_options,onChange:function(e){return n({gap:e})}}))),[wp.element.createElement(w,null,wp.element.createElement(u,null,wp.element.createElement(c,{title:"Form Options"},wp.element.createElement(o,{label:"To Email",value:s,onChange:function(e){return n({email:e})}}),wp.element.createElement(o,{label:"Subject",value:i,onChange:function(e){return n({subject:e})}}),wp.element.createElement(o,{label:"Submit Text",value:v,onChange:function(e){return n({submit_text:e})}}),x))),wp.element.createElement(a,{className:"o-form"},wp.element.createElement(c,{title:"Fields"},wp.element.createElement("div",{className:"l-section"},wp.element.createElement(p,{allowedBlocks:[g+"contact-form-field",g+"contact-form-group"]})),wp.element.createElement("div",{className:"l-section"},wp.element.createElement("div",null,wp.element.createElement(b,{value:C,onChange:function(e){return n({success_message:e})},placeholder:"Success message..."})))))]})),save:function(){return wp.element.createElement(p.Content,null)}})}();