(()=>{"use strict";var e={n:l=>{var o=l&&l.__esModule?()=>l.default:()=>l;return e.d(o,{a:o}),o},d:(l,o)=>{for(var a in o)e.o(o,a)&&!e.o(l,a)&&Object.defineProperty(l,a,{enumerable:!0,get:o[a]})},o:(e,l)=>Object.prototype.hasOwnProperty.call(e,l)};const l=window.wp.blocks,o=window.wp.blockEditor,a=window.wp.serverSideRender;var t=e.n(a);const s=window.wp.components,n=JSON.parse('{"UU":"ggmc/address-form"}'),r=window.ReactJSXRuntime,d=[{label:"H1",value:"h1"},{label:"H2",value:"h2"},{label:"H3",value:"h3"},{label:"H4",value:"h4"},{label:"H5",value:"h5"},{label:"H6",value:"h6"},{label:"div",value:"div"},{label:"span",value:"span"},{label:"p",value:"p"}];(0,l.registerBlockType)(n.UU,{edit:({attributes:e,setAttributes:l})=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.InspectorControls,{children:(0,r.jsxs)(s.PanelBody,{title:"Content",children:[(0,r.jsx)(s.TextControl,{label:"Form Title",value:e.formTitle,onChange:e=>l({formTitle:e})}),(0,r.jsx)(s.SelectControl,{label:"Title HTML Tag",value:e.titleTag,options:d,onChange:e=>l({titleTag:e})}),(0,r.jsx)(s.ToggleControl,{label:"Show Address Label Field",checked:"yes"===e.showAddressLabel,onChange:e=>l({showAddressLabel:e?"yes":""})}),(0,r.jsx)(s.ToggleControl,{label:"Show Company Field",checked:"yes"===e.showCompany,onChange:e=>l({showCompany:e?"yes":""})})]})}),(0,r.jsx)(t(),{block:n.UU,attributes:e})]}),save:()=>null})})();