(()=>{"use strict";var e,r={958(){const e=window.wp.i18n,r=window.wp.blocks,o=window.wp.blockEditor,s=window.wp.data,i=window.wp.components,t=JSON.parse('{"UU":"pronamic/form-submission-notification"}'),n=window.ReactJSXRuntime,c=[];(0,r.registerBlockType)(t.UU,{icon:(0,n.jsx)(i.Icon,{icon:"megaphone"}),edit:({attributes:e,clientId:r,context:i,isSelected:t})=>{const a=(0,o.useBlockProps)(),l=i["pronamic-forms/submissionResult"],p=""===l||e.type===l||(0,s.useSelect)(e=>{const{hasSelectedInnerBlock:o}=e("core/block-editor");return t||o(r,!0)},[r,t]);return(0,n.jsx)("div",{...a,children:p&&(0,n.jsx)(o.InnerBlocks,{template:c})})},save:()=>{const e=o.useBlockProps.save({});return(0,n.jsx)("div",{...e,children:(0,n.jsx)(o.InnerBlocks.Content,{})})},variations:[{name:"pronamic-form-submission-success",title:(0,e.__)("Form submission success","pronamic-ideal"),description:(0,e.__)("Success message for form submissions.","pronamic-ideal"),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-ideal")}]],scope:["inserter","transform"],isActive:e=>!e?.type||"success"===e?.type},{name:"pronamic-form-submission-error",title:(0,e.__)("Form submission error","pronamic-ideal"),description:(0,e.__)("Error/failure message for form submissions.","pronamic-ideal"),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-ideal")}]],scope:["inserter","transform"],isActive:e=>!e?.type||"error"===e?.type}]})}},o={};function s(e){var i=o[e];if(void 0!==i)return i.exports;var t=o[e]={exports:{}};return r[e](t,t.exports,s),t.exports}s.m=r,e=[],s.O=(r,o,i,t)=>{if(!o){var n=1/0;for(p=0;p<e.length;p++){for(var[o,i,t]=e[p],c=!0,a=0;a<o.length;a++)(!1&t||n>=t)&&Object.keys(s.O).every(e=>s.O[e](o[a]))?o.splice(a--,1):(c=!1,t<n&&(n=t));if(c){e.splice(p--,1);var l=i();void 0!==l&&(r=l)}}return r}t=t||0;for(var p=e.length;p>0&&e[p-1][2]>t;p--)e[p]=e[p-1];e[p]=[o,i,t]},s.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{var e={587:0,171:0};s.O.j=r=>0===e[r];var r=(r,o)=>{var i,t,[n,c,a]=o,l=0;if(n.some(r=>0!==e[r])){for(i in c)s.o(c,i)&&(s.m[i]=c[i]);if(a)var p=a(s)}for(r&&r(o);l<n.length;l++)t=n[l],s.o(e,t)&&e[t]&&e[t][0](),e[t]=0;return s.O(p)},o=globalThis.webpackChunkpronamic_pay=globalThis.webpackChunkpronamic_pay||[];o.forEach(r.bind(null,0)),o.push=r.bind(null,o.push.bind(o))})();var i=s.O(void 0,[171],()=>s(958));i=s.O(i)})();