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