(()=>{"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,l=JSON.parse('{"UU":"pronamic/form-checkbox-field"}'),t=[["pronamic/form-checkbox-option"]];(0,e.registerBlockType)(l.UU,{icon:((e,r=24,n=24,l="0 0 24 24")=>(0,a.jsxs)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:r,height:n,viewBox:l,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:l})=>{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-ideal"),children:(0,a.jsx)(o.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,n.__)("Required","pronamic-ideal"),help:(0,n.__)("Select this option to make the input required.","pronamic-ideal"),checked:s,onChange:e=>{l({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-ideal"),value:e.name,onChange:e=>{l({name:e})}}),(0,a.jsx)(o.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,autoComplete:"off",label:(0,n.__)("Reference","pronamic-ideal"),value:e.reference,onChange:e=>{l({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=>l({label:e}),placeholder:(0,n.__)("Enter label…","pronamic-ideal")})}),(0,a.jsx)(r.InnerBlocks,{template:t})]})},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 l=r[e]={exports:{}};return o[e](l,l.exports,n),l.exports}n.m=o,e=[],n.O=(o,r,a,l)=>{if(!r){var t=1/0;for(p=0;p<e.length;p++){for(var[r,a,l]=e[p],i=!0,s=0;s<r.length;s++)(!1&l||t>=l)&&Object.keys(n.O).every(e=>n.O[e](r[s]))?r.splice(s--,1):(i=!1,l<t&&(t=l));if(i){e.splice(p--,1);var c=a();void 0!==c&&(o=c)}}return o}l=l||0;for(var p=e.length;p>0&&e[p-1][2]>l;p--)e[p]=e[p-1];e[p]=[r,a,l]},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,l,[t,i,s]=r,c=0;if(t.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<t.length;c++)l=t[c],n.o(e,l)&&e[l]&&e[l][0](),e[l]=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)})();