import{r as e}from"./norm-CeclA1Tu.js";var t=t=>{let n=e(t).toLowerCase();if(n===`jobseeker`||n===`recruiter`)return n},n=n=>{let r=n,i=e(r?.accessToken||r?.token),a=e(r?.expiresAt||r?.accessExpiresAt),o=e(r?.refreshToken),s=e(r?.refreshExpiresAt),c=r?.user&&typeof r.user==`object`?r.user:null,l=e(c?.id),u=e(c?.email),d=e(c?.phone),f=t(c?.identityRole);if(!i||!a||!l)return null;let p={token:i,accessToken:i,expiresAt:a,accessExpiresAt:a,user:{id:l,email:u||void 0,phone:d||void 0,identityRole:f||void 0}};return o&&(p.refreshToken=o),s&&(p.refreshExpiresAt=s),p};export{n as t};