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