(()=>{"use strict";var e,n={298(){const e=window.wp.blocks,n=window.wp.components,o=window.wp.blockEditor,t=window.wp.i18n,a=window.ReactJSXRuntime,r=JSON.parse('{"UU":"pronamic/form-checkbox-option"}');(0,e.registerBlockType)(r.UU,{icon:((e,o=24,t=24,r="0 0 24 24")=>(0,a.jsxs)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",width:o,height:t,viewBox:r,children:[(0,a.jsx)(n.Path,{fill:"none",d:"M0 0h24v24H0V0z",className:"icon-filler"}),e]}))((0,a.jsx)(n.Path,{d:"M5.5 10.5H8.5V13.5H5.5V10.5ZM8.5 9H5.5C4.67157 9 4 9.67157 4 10.5V13.5C4 14.3284 4.67157 15 5.5 15H8.5C9.32843 15 10 14.3284 10 13.5V10.5C10 9.67157 9.32843 9 8.5 9ZM12 12.75H20V11.25H12V12.75Z"})),edit:({attributes:e,setAttributes:r})=>{const l=(0,o.useBlockProps)();return(0,a.jsxs)("div",{...l,children:[(0,a.jsx)(o.InspectorControls,{children:(0,a.jsxs)(n.PanelBody,{title:(0,t.__)("Settings","pronamic-ideal"),children:[(0,a.jsx)(n.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,autoComplete:"off",label:(0,t.__)("Value"),value:e.value,onChange:e=>{r({value:e})}}),(0,a.jsx)(n.__experimentalNumberControl,{label:(0,t.__)("Payment amount","pronamic-ideal"),onChange:e=>r({paymentAmount:e}),value:e.paymentAmount,spinControls:"none",prefix:(0,a.jsx)(n.__experimentalInputControlPrefixWrapper,{children:"€ "})})]})}),(0,a.jsx)("input",{className:"wp-block-pronamic-form-control__element",type:"checkbox",tabIndex:"-1",checked:e.checked}),(0,a.jsx)(o.RichText,{identifier:"label",tagName:"label",value:e.label,onChange:e=>r({label:e}),placeholder:(0,t.__)("Enter label…","pronamic-ideal")})]})},save({attributes:e}){const n=o.useBlockProps.save();return(0,a.jsxs)("div",{...n,children:[(0,a.jsx)("input",{className:"wp-block-pronamic-form-control__element",checked:e.checked,name:e.name,value:e.value,type:"checkbox"}),(0,a.jsx)(o.RichText.Content,{tagName:"label",value:e.label})]})}})}},o={};function t(e){var a=o[e];if(void 0!==a)return a.exports;var r=o[e]={exports:{}};return n[e](r,r.exports,t),r.exports}t.m=n,e=[],t.O=(n,o,a,r)=>{if(!o){var l=1/0;for(p=0;p<e.length;p++){for(var[o,a,r]=e[p],i=!0,s=0;s<o.length;s++)(!1&r||l>=r)&&Object.keys(t.O).every(e=>t.O[e](o[s]))?o.splice(s--,1):(i=!1,r<l&&(l=r));if(i){e.splice(p--,1);var c=a();void 0!==c&&(n=c)}}return n}r=r||0;for(var p=e.length;p>0&&e[p-1][2]>r;p--)e[p]=e[p-1];e[p]=[o,a,r]},t.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={724:0,748:0};t.O.j=n=>0===e[n];var n=(n,o)=>{var a,r,[l,i,s]=o,c=0;if(l.some(n=>0!==e[n])){for(a in i)t.o(i,a)&&(t.m[a]=i[a]);if(s)var p=s(t)}for(n&&n(o);c<l.length;c++)r=l[c],t.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return t.O(p)},o=globalThis.webpackChunkpronamic_pay=globalThis.webpackChunkpronamic_pay||[];o.forEach(n.bind(null,0)),o.push=n.bind(null,o.push.bind(o))})();var a=t.O(void 0,[748],()=>t(298));a=t.O(a)})();