(()=>{"use strict";var e={984(){const e=window.wp.i18n,o=window.wp.blocks,r=window.wp.blockEditor,s=window.wp.data,n=window.wp.components,t=JSON.parse('{"UU":"pronamic/form-submission-notification"}'),i=window.ReactJSXRuntime,c=[];(0,o.registerBlockType)(t.UU,{icon:(0,i.jsx)(n.Icon,{icon:"megaphone"}),edit:({attributes:e,clientId:o,context:n,isSelected:t})=>{const l=(0,r.useBlockProps)(),a=n["pronamic-forms/submissionResult"],m=""===a||e.type===a||(0,s.useSelect)(e=>{const{hasSelectedInnerBlock:r}=e("core/block-editor");return t||r(o,!0)},[o,t]);return(0,i.jsx)("div",{...l,children:m&&(0,i.jsx)(r.InnerBlocks,{template:c})})},save:()=>{const e=r.useBlockProps.save({});return(0,i.jsx)("div",{...e,children:(0,i.jsx)(r.InnerBlocks.Content,{})})},variations:[{name:"pronamic-form-submission-success",title:(0,e.__)("Form submission success","pronamic-pay-doneren-met-mollie"),description:(0,e.__)("Success message for form submissions.","pronamic-pay-doneren-met-mollie"),attributes:{type:"success",style:{color:{text:"#345C00"},elements:{link:{color:{text:"#345C00"}}}}},isDefault:!0,innerBlocks:[["core/paragraph",{content:(0,e.__)("Your form has been submitted successfully.","pronamic-pay-doneren-met-mollie")}]],scope:["inserter","transform"],isActive:e=>!e?.type||"success"===e?.type},{name:"pronamic-form-submission-error",title:(0,e.__)("Form submission error","pronamic-pay-doneren-met-mollie"),description:(0,e.__)("Error/failure message for form submissions.","pronamic-pay-doneren-met-mollie"),attributes:{type:"error",style:{color:{text:"#CF2E2E"},elements:{link:{color:{text:"#CF2E2E"}}}}},isDefault:!1,innerBlocks:[["core/paragraph",{content:(0,e.__)("There was an error submitting your form.","pronamic-pay-doneren-met-mollie")}]],scope:["inserter","transform"],isActive:e=>!e?.type||"error"===e?.type}]})}};const o={};function r(s){const n=o[s];if(void 0!==n)return n.exports;const t=o[s]={exports:{}};return e[s](t,t.exports,r),t.exports}r.m=e,(()=>{const e=[];r.O=(o,s,n,t)=>{if(s){t=t||0;for(var i=e.length;i>0&&e[i-1][2]>t;i--)e[i]=e[i-1];return void(e[i]=[s,n,t])}let c=1/0;for(i=0;i<e.length;i++){let[s,n,t]=e[i],a=!0;for(var l=0;l<s.length;l++)(!1&t||c>=t)&&Object.keys(r.O).every(e=>r.O[e](s[l]))?s.splice(l--,1):(a=!1,t<c&&(c=t));if(a){e.splice(i--,1);const r=n();void 0!==r&&(o=r)}}return o}})(),r.o=(e,o)=>Object.hasOwn(e,o),(()=>{const e={587:0,171:0};r.O.j=o=>0===e[o];const o=(o,s)=>{let[n,t,i]=s;var c,l,a=0;if(n.some(o=>0!==e[o])){for(c in t)r.o(t,c)&&(r.m[c]=t[c]);if(i)var m=i(r)}for(o&&o(s);a<n.length;a++)l=n[a],r.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return r.O(m)},s=globalThis.webpackChunk_pronamic_pronamic_pay_doneren_met_mollie||=[];s.forEach(o.bind(null,0)),s.push=o.bind(null,s.push.bind(s))})();let s=r.O(void 0,[171],()=>r(984));s=r.O(s)})();