(()=>{"use strict";var e={n:o=>{var t=o&&o.__esModule?()=>o.default:()=>o;return e.d(t,{a:t}),t},d:(o,t)=>{for(var n in t)e.o(t,n)&&!e.o(o,n)&&Object.defineProperty(o,n,{enumerable:!0,get:t[n]})},o:(e,o)=>Object.prototype.hasOwnProperty.call(e,o)};const o=window.wp.apiFetch;var t=e.n(o);const n=window.wp.hooks,i=4e3;(0,n.addAction)("jet.fb.render.page","jet-form-builder/verification",(function(e){const{getters:o,commit:n}=e.$store;jfbEventBus.$on("verification-verify",(()=>{n("scope-verification/actions/toggleLoading"),n("toggleDoingAction",null,{root:!0}),t()({...o["scope-verification/actions/current"].endpoint,data:{...o["scope-verification/actions/current"].payload}}).then((e=>{jfbEventBus.$CXNotice.add({message:e.message,type:"success",duration:i})})).catch((e=>{jfbEventBus.$CXNotice.add({message:e.message,type:"error",duration:i})})).finally((()=>{n("scope-verification/actions/toggleLoading"),n("toggleDoingAction",null,{root:!0}),setTimeout((()=>document.location.reload()),i)}))}))}))})();