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