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