(()=>{"use strict";var e,o={633(){const e=window.wp.blocks,o=window.wp.components,r=window.wp.blockEditor,n=window.wp.i18n,a=window.ReactJSXRuntime,t=JSON.parse('{"UU":"pronamic/form-checkbox-field"}'),l=[["pronamic/form-checkbox-option"]];(0,e.registerBlockType)(t.UU,{icon:((e,r=24,n=24,t="0 0 24 24")=>(0,a.jsxs)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:r,height:n,viewBox:t,children:[(0,a.jsx)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z",className:"icon-filler"}),e]}))((0,a.jsx)(o.Path,{d:"M7.0812 10.1419L10.6001 5.45005L9.40006 4.55005L6.91891 7.85824L5.53039 6.46972L4.46973 7.53038L7.0812 10.1419ZM12 8.5H20V7H12V8.5ZM12 17H20V15.5H12V17ZM8.5 14.5H5.5V17.5H8.5V14.5ZM5.5 13H8.5C9.32843 13 10 13.6716 10 14.5V17.5C10 18.3284 9.32843 19 8.5 19H5.5C4.67157 19 4 18.3284 4 17.5V14.5C4 13.6716 4.67157 13 5.5 13Z"})),edit:({attributes:e,setAttributes:t})=>{const{label:i,required:s}=e,c=(0,r.useBlockProps)();return(0,a.jsxs)("div",{...c,children:[(0,a.jsxs)(r.InspectorControls,{children:[(0,a.jsx)(o.PanelBody,{title:(0,n.__)("Settings","pronamic-forms"),children:(0,a.jsx)(o.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,n.__)("Required","pronamic-forms"),help:(0,n.__)("Select this option to make the input required.","pronamic-forms"),checked:s,onChange:e=>{t({required:e})}})}),(0,a.jsxs)(r.InspectorControls,{group:"advanced",children:[(0,a.jsx)(o.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,autoComplete:"off",label:(0,n.__)("Name","pronamic-forms"),value:e.name,onChange:e=>{t({name:e})}}),(0,a.jsx)(o.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,autoComplete:"off",label:(0,n.__)("Reference","pronamic-forms"),value:e.reference,onChange:e=>{t({reference:e})}})]})]}),(0,a.jsx)("div",{className:"wp-block-pronamic-form-label",children:(0,a.jsx)(r.RichText,{tagName:"span",value:e.label,onChange:e=>t({label:e}),placeholder:(0,n.__)("Enter label…","pronamic-forms")})}),(0,a.jsx)(r.InnerBlocks,{template:l})]})},save({attributes:e}){const o=r.useBlockProps.save({className:"wp-block-pronamic-form-field"});return(0,a.jsxs)("div",{...o,children:[(0,a.jsx)("div",{className:"wp-block-pronamic-form-label",children:(0,a.jsx)(r.RichText.Content,{tagName:"span",value:e.label})}),(0,a.jsx)("div",{className:"wp-block-pronamic-form-radio-field__inner-blocks",children:(0,a.jsx)(r.InnerBlocks.Content,{})})]})},transforms:{to:[{type:"block",blocks:["pronamic/form-field"],transform:o=>(0,e.createBlock)("pronamic/form-field",o)}]}})}},r={};function n(e){var a=r[e];if(void 0!==a)return a.exports;var t=r[e]={exports:{}};return o[e](t,t.exports,n),t.exports}n.m=o,e=[],n.O=(o,r,a,t)=>{if(!r){var l=1/0;for(p=0;p<e.length;p++){for(var[r,a,t]=e[p],i=!0,s=0;s<r.length;s++)(!1&t||l>=t)&&Object.keys(n.O).every(e=>n.O[e](r[s]))?r.splice(s--,1):(i=!1,t<l&&(l=t));if(i){e.splice(p--,1);var c=a();void 0!==c&&(o=c)}}return o}t=t||0;for(var p=e.length;p>0&&e[p-1][2]>t;p--)e[p]=e[p-1];e[p]=[r,a,t]},n.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={531:0,419:0};n.O.j=o=>0===e[o];var o=(o,r)=>{var a,t,[l,i,s]=r,c=0;if(l.some(o=>0!==e[o])){for(a in i)n.o(i,a)&&(n.m[a]=i[a]);if(s)var p=s(n)}for(o&&o(r);c<l.length;c++)t=l[c],n.o(e,t)&&e[t]&&e[t][0](),e[t]=0;return n.O(p)},r=globalThis.webpackChunkpronamic_pay=globalThis.webpackChunkpronamic_pay||[];r.forEach(o.bind(null,0)),r.push=o.bind(null,r.push.bind(r))})();var a=n.O(void 0,[419],()=>n(633));a=n.O(a)})();