(()=>{"use strict";var e,o={298(){const e=window.wp.blocks,o=window.wp.components,n=window.wp.blockEditor,t=window.wp.i18n,r=window.ReactJSXRuntime,a=JSON.parse('{"UU":"pronamic/form-checkbox-option"}');(0,e.registerBlockType)(a.UU,{icon:((e,n=24,t=24,a="0 0 24 24")=>(0,r.jsxs)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:n,height:t,viewBox:a,children:[(0,r.jsx)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z",className:"icon-filler"}),e]}))((0,r.jsx)(o.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:a})=>{const l=(0,n.useBlockProps)();return(0,r.jsxs)("div",{...l,children:[(0,r.jsx)(n.InspectorControls,{children:(0,r.jsxs)(o.PanelBody,{title:(0,t.__)("Settings","pronamic-forms"),children:[(0,r.jsx)(o.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,autoComplete:"off",label:(0,t.__)("Value"),value:e.value,onChange:e=>{a({value:e})}}),(0,r.jsx)(o.__experimentalNumberControl,{label:(0,t.__)("Payment amount","pronamic-forms"),onChange:e=>a({paymentAmount:e}),value:e.paymentAmount,spinControls:"none",prefix:(0,r.jsx)(o.__experimentalInputControlPrefixWrapper,{children:"€ "})})]})}),(0,r.jsx)("input",{className:"wp-block-pronamic-form-control__element",type:"checkbox",tabIndex:"-1",checked:e.checked}),(0,r.jsx)(n.RichText,{identifier:"label",tagName:"label",value:e.label,onChange:e=>a({label:e}),placeholder:(0,t.__)("Enter label…","pronamic-forms")})]})},save({attributes:e}){const o=n.useBlockProps.save();return(0,r.jsxs)("div",{...o,children:[(0,r.jsx)("input",{className:"wp-block-pronamic-form-control__element",checked:e.checked,name:e.name,value:e.value,type:"checkbox"}),(0,r.jsx)(n.RichText.Content,{tagName:"label",value:e.label})]})}})}},n={};function t(e){var r=n[e];if(void 0!==r)return r.exports;var a=n[e]={exports:{}};return o[e](a,a.exports,t),a.exports}t.m=o,e=[],t.O=(o,n,r,a)=>{if(!n){var l=1/0;for(p=0;p<e.length;p++){for(var[n,r,a]=e[p],i=!0,s=0;s<n.length;s++)(!1&a||l>=a)&&Object.keys(t.O).every(e=>t.O[e](n[s]))?n.splice(s--,1):(i=!1,a<l&&(l=a));if(i){e.splice(p--,1);var c=r();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,r,a]},t.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={724:0,748:0};t.O.j=o=>0===e[o];var o=(o,n)=>{var r,a,[l,i,s]=n,c=0;if(l.some(o=>0!==e[o])){for(r in i)t.o(i,r)&&(t.m[r]=i[r]);if(s)var p=s(t)}for(o&&o(n);c<l.length;c++)a=l[c],t.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return t.O(p)},n=globalThis.webpackChunkpronamic_pay=globalThis.webpackChunkpronamic_pay||[];n.forEach(o.bind(null,0)),n.push=o.bind(null,n.push.bind(n))})();var r=t.O(void 0,[748],()=>t(298));r=t.O(r)})();