jQuery,Craft.RecoveryCodeForm=Garnish.Base.extend({init:function(e,t,o){var r=e.querySelector("input.auth-recovery-code"),a=e.querySelector("button.submit");this.addListener(e,"submit",(function(e){e.preventDefault(),a.classList.contains("loading")||(a.classList.add("loading"),Craft.sendActionRequest("POST","auth/verify-recovery-code",{data:{code:r.value}}).then((function(){t()})).catch((function(e){var t;o(null==e||null===(t=e.response)||void 0===t||null===(t=t.data)||void 0===t?void 0:t.message)})).finally((function(){a.classList.remove("loading")})))}))}},{METHOD:"craft\\auth\\methods\\RecoveryCodes"}),Craft.registerAuthFormHandler(Craft.RecoveryCodeForm.METHOD,Craft.RecoveryCodeForm);
//# sourceMappingURL=recoverycodes.js.map