(()=>{"use strict";var e,r={576(){const e=window.wp.blocks,r=window.wp.components,a=window.wp.blockEditor,n=window.wp.i18n,i=window.ReactJSXRuntime,o=JSON.parse('{"UU":"pronamic/form-radio-option"}');(0,e.registerBlockType)(o.UU,{icon:((e,a=24,n=24,o="0 0 24 24")=>(0,i.jsxs)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",width:a,height:n,viewBox:o,children:[(0,i.jsx)(r.Path,{fill:"none",d:"M0 0h24v24H0V0z",className:"icon-filler"}),e]}))((0,i.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:o})=>{const t=(0,a.useBlockProps)();return(0,i.jsxs)("div",{...t,children:[(0,i.jsx)(a.InspectorControls,{children:(0,i.jsxs)(r.PanelBody,{title:(0,n.__)("Settings","pronamic-ideal"),children:[(0,i.jsx)(r.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,autoComplete:"off",label:(0,n.__)("Value","pronamic-ideal"),value:e.value,onChange:e=>{o({value:e})}}),(0,i.jsx)(r.__experimentalNumberControl,{label:(0,n.__)("Payment amount","pronamic-ideal"),onChange:e=>o({paymentAmount:e}),value:e.paymentAmount,spinControls:"none",prefix:(0,i.jsx)(r.__experimentalInputControlPrefixWrapper,{children:"€ "})})]})}),(0,i.jsx)(a.InspectorControls,{group:"advanced",children:(0,i.jsx)(r.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,autoComplete:"off",label:(0,n.__)("Reference","pronamic-ideal"),value:e.reference,onChange:e=>{o({reference:e})}})}),(0,i.jsx)("input",{className:"wp-block-pronamic-form-control__element",type:"radio",tabIndex:"-1",checked:e.checked}),(0,i.jsx)(a.RichText,{identifier:"label",tagName:"label",value:e.label,onChange:e=>o({label:e}),placeholder:(0,n.__)("Enter label…","pronamic-ideal")})]})},save({attributes:e}){const r=a.useBlockProps.save();return(0,i.jsxs)("div",{...r,children:[(0,i.jsx)("input",{className:"wp-block-pronamic-form-control__element",checked:e.checked,name:e.name,value:e.value,type:"radio"})," ",(0,i.jsx)(a.RichText.Content,{tagName:"label",value:e.label})]})},variations:[{name:"pronamic-form-radio-option-subscription-frequency-once",title:(0,n.__)("One-time payment","pronamic-ideal"),keywords:[(0,n.__)("frequency","pronamic-ideal"),(0,n.__)("interval","pronamic-ideal"),(0,n.__)("recurrence","pronamic-ideal"),(0,n.__)("subscription","pronamic-ideal"),(0,n.__)("Once","pronamic-ideal")],attributes:{reference:"pronamic_pay_subscription_frequency",value:"once"},example:{attributes:{label:(0,n.__)("Once","pronamic-ideal")}},scope:["block","inserter","transform"],isActive:["reference","value"]},{name:"pronamic-form-radio-option-subscription-frequency-monthly",title:(0,n.__)("Monthly payment","pronamic-ideal"),keywords:[(0,n.__)("frequency","pronamic-ideal"),(0,n.__)("interval","pronamic-ideal"),(0,n.__)("recurrence","pronamic-ideal"),(0,n.__)("subscription","pronamic-ideal"),(0,n.__)("Monthly","pronamic-ideal")],attributes:{reference:"pronamic_pay_subscription_frequency",value:"monthly"},example:{attributes:{label:(0,n.__)("Monthly","pronamic-ideal")}},scope:["block","inserter","transform"],isActive:["reference","value"]},{name:"pronamic-form-radio-option-subscription-frequency-yearly",title:(0,n.__)("Yearly payment","pronamic-ideal"),keywords:[(0,n.__)("frequency","pronamic-ideal"),(0,n.__)("interval","pronamic-ideal"),(0,n.__)("recurrence","pronamic-ideal"),(0,n.__)("subscription","pronamic-ideal"),(0,n.__)("Yearly","pronamic-ideal"),(0,n.__)("Annual","pronamic-ideal")],attributes:{reference:"pronamic_pay_subscription_frequency",value:"yearly"},example:{attributes:{label:(0,n.__)("Yearly","pronamic-ideal")}},scope:["block","inserter","transform"],isActive:["reference","value"]}]})}},a={};function n(e){var i=a[e];if(void 0!==i)return i.exports;var o=a[e]={exports:{}};return r[e](o,o.exports,n),o.exports}n.m=r,e=[],n.O=(r,a,i,o)=>{if(!a){var t=1/0;for(s=0;s<e.length;s++){for(var[a,i,o]=e[s],l=!0,c=0;c<a.length;c++)(!1&o||t>=o)&&Object.keys(n.O).every(e=>n.O[e](a[c]))?a.splice(c--,1):(l=!1,o<t&&(t=o));if(l){e.splice(s--,1);var p=i();void 0!==p&&(r=p)}}return r}o=o||0;for(var s=e.length;s>0&&e[s-1][2]>o;s--)e[s]=e[s-1];e[s]=[a,i,o]},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,a)=>{var i,o,[t,l,c]=a,p=0;if(t.some(r=>0!==e[r])){for(i in l)n.o(l,i)&&(n.m[i]=l[i]);if(c)var s=c(n)}for(r&&r(a);p<t.length;p++)o=t[p],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return n.O(s)},a=globalThis.webpackChunkpronamic_pay=globalThis.webpackChunkpronamic_pay||[];a.forEach(r.bind(null,0)),a.push=r.bind(null,a.push.bind(a))})();var i=n.O(void 0,[462],()=>n(576));i=n.O(i)})();