(()=>{"use strict";var e={735(){const e=window.wp.blocks,o=window.wp.components,n=window.wp.blockEditor,r=window.wp.i18n,t=window.ReactJSXRuntime,l=JSON.parse('{"UU":"pronamic/form-checkbox-field"}'),i=[["pronamic/form-checkbox-option"]];(0,e.registerBlockType)(l.UU,{icon:((e,n=24,r=24,l="0 0 24 24")=>(0,t.jsxs)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:n,height:r,viewBox:l,children:[(0,t.jsx)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z",className:"icon-filler"}),e]}))((0,t.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:a,required:s}=e,c=(0,n.useBlockProps)();return(0,t.jsxs)("div",{...c,children:[(0,t.jsxs)(n.InspectorControls,{children:[(0,t.jsx)(o.PanelBody,{title:(0,r.__)("Settings","pronamic-pay-doneren-met-mollie"),children:(0,t.jsx)(o.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,r.__)("Required","pronamic-pay-doneren-met-mollie"),help:(0,r.__)("Select this option to make the input required.","pronamic-pay-doneren-met-mollie"),checked:s,onChange:e=>{l({required:e})}})}),(0,t.jsxs)(n.InspectorControls,{group:"advanced",children:[(0,t.jsx)(o.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,autoComplete:"off",label:(0,r.__)("Name","pronamic-pay-doneren-met-mollie"),value:e.name,onChange:e=>{l({name:e})}}),(0,t.jsx)(o.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,autoComplete:"off",label:(0,r.__)("Reference","pronamic-pay-doneren-met-mollie"),value:e.reference,onChange:e=>{l({reference:e})}})]})]}),(0,t.jsx)("div",{className:"wp-block-pronamic-form-label",children:(0,t.jsx)(n.RichText,{tagName:"span",value:e.label,onChange:e=>l({label:e}),placeholder:(0,r.__)("Enter label…","pronamic-pay-doneren-met-mollie")})}),(0,t.jsx)(n.InnerBlocks,{template:i})]})},save({attributes:e}){const o=n.useBlockProps.save({className:"wp-block-pronamic-form-field"});return(0,t.jsxs)("div",{...o,children:[(0,t.jsx)("div",{className:"wp-block-pronamic-form-label",children:(0,t.jsx)(n.RichText.Content,{tagName:"span",value:e.label})}),(0,t.jsx)("div",{className:"wp-block-pronamic-form-radio-field__inner-blocks",children:(0,t.jsx)(n.InnerBlocks.Content,{})})]})},transforms:{to:[{type:"block",blocks:["pronamic/form-field"],transform:o=>(0,e.createBlock)("pronamic/form-field",o)}]}})}};const o={};function n(r){const t=o[r];if(void 0!==t)return t.exports;const l=o[r]={exports:{}};return e[r](l,l.exports,n),l.exports}n.m=e,(()=>{const e=[];n.O=(o,r,t,l)=>{if(r){l=l||0;for(var i=e.length;i>0&&e[i-1][2]>l;i--)e[i]=e[i-1];return void(e[i]=[r,t,l])}let a=1/0;for(i=0;i<e.length;i++){let[r,t,l]=e[i],c=!0;for(var s=0;s<r.length;s++)(!1&l||a>=l)&&Object.keys(n.O).every(e=>n.O[e](r[s]))?r.splice(s--,1):(c=!1,l<a&&(a=l));if(c){e.splice(i--,1);const n=t();void 0!==n&&(o=n)}}return o}})(),n.o=(e,o)=>Object.hasOwn(e,o),(()=>{const e={531:0,419:0};n.O.j=o=>0===e[o];const o=(o,r)=>{let[t,l,i]=r;var a,s,c=0;if(t.some(o=>0!==e[o])){for(a in l)n.o(l,a)&&(n.m[a]=l[a]);if(i)var m=i(n)}for(o&&o(r);c<t.length;c++)s=t[c],n.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return n.O(m)},r=globalThis.webpackChunk_pronamic_pronamic_pay_doneren_met_mollie||=[];r.forEach(o.bind(null,0)),r.push=o.bind(null,r.push.bind(r))})();let r=n.O(void 0,[419],()=>n(735));r=n.O(r)})();