(()=>{"use strict";var e,r={576(){const e=window.wp.blocks,r=window.wp.components,o=window.wp.blockEditor,n=window.wp.i18n,a=window.ReactJSXRuntime,t=JSON.parse('{"UU":"pronamic/form-radio-option"}');(0,e.registerBlockType)(t.UU,{icon:((e,o=24,n=24,t="0 0 24 24")=>(0,a.jsxs)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",width:o,height:n,viewBox:t,children:[(0,a.jsx)(r.Path,{fill:"none",d:"M0 0h24v24H0V0z",className:"icon-filler"}),e]}))((0,a.jsx)(r.Path,{d:"M7.5 13.5C6.67157 13.5 6 12.8284 6 12C6 11.1716 6.67157 10.5 7.5 10.5C8.32843 10.5 9 11.1716 9 12C9 12.8284 8.32843 13.5 7.5 13.5ZM4.5 12C4.5 13.6569 5.84315 15 7.5 15C9.15685 15 10.5 13.6569 10.5 12C10.5 10.3431 9.15685 9 7.5 9C5.84315 9 4.5 10.3431 4.5 12ZM12.5 12.75H20.5V11.25H12.5V12.75Z"})),edit:({attributes:e,setAttributes:t})=>{const i=(0,o.useBlockProps)();return(0,a.jsxs)("div",{...i,children:[(0,a.jsx)(o.InspectorControls,{children:(0,a.jsxs)(r.PanelBody,{title:(0,n.__)("Settings","pronamic-forms"),children:[(0,a.jsx)(r.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,autoComplete:"off",label:(0,n.__)("Value","pronamic-forms"),value:e.value,onChange:e=>{t({value:e})}}),(0,a.jsx)(r.__experimentalNumberControl,{label:(0,n.__)("Payment amount","pronamic-forms"),onChange:e=>t({paymentAmount:e}),value:e.paymentAmount,spinControls:"none",prefix:(0,a.jsx)(r.__experimentalInputControlPrefixWrapper,{children:"€ "})})]})}),(0,a.jsx)(o.InspectorControls,{group:"advanced",children:(0,a.jsx)(r.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,autoComplete:"off",label:(0,n.__)("Reference","pronamic-forms"),value:e.reference,onChange:e=>{t({reference:e})}})}),(0,a.jsx)("input",{className:"wp-block-pronamic-form-control__element",type:"radio",tabIndex:"-1",checked:e.checked}),(0,a.jsx)(o.RichText,{identifier:"label",tagName:"label",value:e.label,onChange:e=>t({label:e}),placeholder:(0,n.__)("Enter label…","pronamic-forms")})]})},save({attributes:e}){const r=o.useBlockProps.save();return(0,a.jsxs)("div",{...r,children:[(0,a.jsx)("input",{className:"wp-block-pronamic-form-control__element",checked:e.checked,name:e.name,value:e.value,type:"radio"})," ",(0,a.jsx)(o.RichText.Content,{tagName:"label",value:e.label})]})},variations:[{name:"pronamic-form-radio-option-subscription-frequency-once",title:(0,n.__)("One-time payment","pronamic-forms"),keywords:[(0,n.__)("frequency","pronamic-forms"),(0,n.__)("interval","pronamic-forms"),(0,n.__)("recurrence","pronamic-forms"),(0,n.__)("subscription","pronamic-forms"),(0,n.__)("Once","pronamic-forms")],attributes:{reference:"pronamic_pay_subscription_frequency",value:"once"},example:{attributes:{label:(0,n.__)("Once","pronamic-forms")}},scope:["block","inserter","transform"],isActive:["reference","value"]},{name:"pronamic-form-radio-option-subscription-frequency-monthly",title:(0,n.__)("Monthly payment","pronamic-forms"),keywords:[(0,n.__)("frequency","pronamic-forms"),(0,n.__)("interval","pronamic-forms"),(0,n.__)("recurrence","pronamic-forms"),(0,n.__)("subscription","pronamic-forms"),(0,n.__)("Monthly","pronamic-forms")],attributes:{reference:"pronamic_pay_subscription_frequency",value:"monthly"},example:{attributes:{label:(0,n.__)("Monthly","pronamic-forms")}},scope:["block","inserter","transform"],isActive:["reference","value"]},{name:"pronamic-form-radio-option-subscription-frequency-yearly",title:(0,n.__)("Yearly payment","pronamic-forms"),keywords:[(0,n.__)("frequency","pronamic-forms"),(0,n.__)("interval","pronamic-forms"),(0,n.__)("recurrence","pronamic-forms"),(0,n.__)("subscription","pronamic-forms"),(0,n.__)("Yearly","pronamic-forms"),(0,n.__)("Annual","pronamic-forms")],attributes:{reference:"pronamic_pay_subscription_frequency",value:"yearly"},example:{attributes:{label:(0,n.__)("Yearly","pronamic-forms")}},scope:["block","inserter","transform"],isActive:["reference","value"]}]})}},o={};function n(e){var a=o[e];if(void 0!==a)return a.exports;var t=o[e]={exports:{}};return r[e](t,t.exports,n),t.exports}n.m=r,e=[],n.O=(r,o,a,t)=>{if(!o){var i=1/0;for(m=0;m<e.length;m++){for(var[o,a,t]=e[m],s=!0,c=0;c<o.length;c++)(!1&t||i>=t)&&Object.keys(n.O).every(e=>n.O[e](o[c]))?o.splice(c--,1):(s=!1,t<i&&(i=t));if(s){e.splice(m--,1);var l=a();void 0!==l&&(r=l)}}return r}t=t||0;for(var m=e.length;m>0&&e[m-1][2]>t;m--)e[m]=e[m-1];e[m]=[o,a,t]},n.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{var e={394:0,462:0};n.O.j=r=>0===e[r];var r=(r,o)=>{var a,t,[i,s,c]=o,l=0;if(i.some(r=>0!==e[r])){for(a in s)n.o(s,a)&&(n.m[a]=s[a]);if(c)var m=c(n)}for(r&&r(o);l<i.length;l++)t=i[l],n.o(e,t)&&e[t]&&e[t][0](),e[t]=0;return n.O(m)},o=globalThis.webpackChunkpronamic_pay=globalThis.webpackChunkpronamic_pay||[];o.forEach(r.bind(null,0)),o.push=r.bind(null,o.push.bind(o))})();var a=n.O(void 0,[462],()=>n(576));a=n.O(a)})();