import{t as e}from"./jsx-runtime-B-hcVAMW.js";import{E as t}from"./index-DyQEyT-0.js";import{t as n}from"./ErrorState-BkSpMSl3.js";import{t as r}from"./hooks-C59jCzc-2.js";var i=e(),a={reference_no:`Reference number`,full_name:`Full name`,father_name:`Father's name`,mother_name:`Mother's name`,gender:`Gender`,date_of_birth:`Date of birth`,marital_status:`Marital status`,national_id:`National ID`,passport_number:`Passport number`,passport_expiry_date:`Passport expiry`,mobile:`Mobile`,whatsapp:`WhatsApp`,email:`Email`,present_address:`Present address`,permanent_address:`Permanent address`,district:`District`,emergency_contact_name:`Emergency contact`,emergency_contact_relation:`Relationship`,emergency_contact_mobile:`Emergency mobile`,occupation:`Current occupation`,desired_occupation:`Desired occupation`,experience_years:`Years of experience`,education_level:`Education`,skills:`Skills`,preferred_country:`Preferred country`};function o(){let{data:e,isPending:o,error:s,refetch:c}=r();return o?(0,i.jsx)(t,{label:`Loading your details`}):s?(0,i.jsx)(n,{error:s,onRetry:()=>c()}):(0,i.jsxs)(`div`,{className:`space-y-6`,children:[(0,i.jsxs)(`header`,{children:[(0,i.jsx)(`h1`,{className:`text-lg font-semibold text-slate-900`,children:`My details`}),(0,i.jsx)(`p`,{className:`mt-1 text-sm text-slate-600`,children:`This is what we have on file. Contact your agent or our office if anything is wrong.`})]}),(0,i.jsx)(`dl`,{className:`divide-y divide-slate-100 rounded-2xl bg-white shadow-sm ring-1 ring-slate-200`,children:Object.entries(a).map(([t,n])=>(0,i.jsxs)(`div`,{className:`flex flex-wrap justify-between gap-2 px-5 py-3`,children:[(0,i.jsx)(`dt`,{className:`text-sm text-slate-500`,children:n}),(0,i.jsx)(`dd`,{className:`text-sm text-slate-900`,children:e[t]??`—`})]},t))})]})}export{o as default};