(()=>{"use strict";var e,o={984:()=>{const e=window.wp.i18n,o=window.wp.blocks,r=window.wp.blockEditor,n=window.wp.data,s=window.wp.components,t=JSON.parse('{"UU":"pronamic/form-submission-notification"}'),i=window.ReactJSXRuntime,c=[];(0,o.registerBlockType)(t.UU,{icon:(0,i.jsx)(s.Icon,{icon:"megaphone"}),edit:({attributes:e,clientId:o,context:s,isSelected:t})=>{const a=(0,r.useBlockProps)(),l=s["pronamic-forms/submissionResult"],m=""===l||e.type===l||(0,n.useSelect)(e=>{const{hasSelectedInnerBlock:r}=e("core/block-editor");return t||r(o,!0)},[o,t]);return(0,i.jsx)("div",{...a,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}]})}},r={};function n(e){var s=r[e];if(void 0!==s)return s.exports;var t=r[e]={exports:{}};return o[e](t,t.exports,n),t.exports}n.m=o,e=[],n.O=(o,r,s,t)=>{if(!r){var i=1/0;for(m=0;m<e.length;m++){for(var[r,s,t]=e[m],c=!0,a=0;a<r.length;a++)(!1&t||i>=t)&&Object.keys(n.O).every(e=>n.O[e](r[a]))?r.splice(a--,1):(c=!1,t<i&&(i=t));if(c){e.splice(m--,1);var l=s();void 0!==l&&(o=l)}}return o}t=t||0;for(var m=e.length;m>0&&e[m-1][2]>t;m--)e[m]=e[m-1];e[m]=[r,s,t]},n.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={587:0,171:0};n.O.j=o=>0===e[o];var o=(o,r)=>{var s,t,[i,c,a]=r,l=0;if(i.some(o=>0!==e[o])){for(s in c)n.o(c,s)&&(n.m[s]=c[s]);if(a)var m=a(n)}for(o&&o(r);l<i.length;l++)t=i[l],n.o(e,t)&&e[t]&&e[t][0](),e[t]=0;return n.O(m)},r=globalThis.webpackChunk_pronamic_pronamic_pay_doneren_met_mollie=globalThis.webpackChunk_pronamic_pronamic_pay_doneren_met_mollie||[];r.forEach(o.bind(null,0)),r.push=o.bind(null,r.push.bind(r))})();var s=n.O(void 0,[171],()=>n(984));s=n.O(s)})();