"use strict";const RESEND_COOLDOWN_SECONDS=60,secondsUntil=e=>e?Math.max(0,Math.ceil((e-Date.now())/1e3)):0,getBlockedDuplicateSeconds=e=>{var o,n;const t=((null==e?void 0:e.additional_errors)||[]).find((e=>"verification_code.email.blocked_duplicate"===(null==e?void 0:e.code))),d=parseInt(null===(n=null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.options)||void 0===n?void 0:n.seconds,10);return d>0?d:null},resendAnchorFrom=e=>{const o=null==e?60:Math.max(0,e);return Date.now()+1e3*o};exports.RESEND_COOLDOWN_SECONDS=60,exports.getBlockedDuplicateSeconds=getBlockedDuplicateSeconds,exports.resendAnchorFrom=resendAnchorFrom,exports.secondsUntil=secondsUntil;