import{t as e}from"./jsx-runtime-B-hcVAMW.js";import{E as t,g as n,s as r,t as i,z as a}from"./index-DyQEyT-0.js";import{t as o}from"./ErrorState-BkSpMSl3.js";import{r as s}from"./useSeo-DbuZMu5f.js";import{n as c,r as l}from"./SitePageShell-E027wLbc.js";var u=e();function d(){let{data:e,isPending:d,error:f,refetch:p}=n();return s({title:`Destination Countries`,description:`The countries we recruit for, and the employers we place workers with.`,canonicalPath:`/countries`}),d?(0,u.jsx)(t,{label:`Loading countries`}):f?(0,u.jsx)(`div`,{className:`mx-auto max-w-4xl p-8`,children:(0,u.jsx)(o,{error:f,onRetry:()=>p()})}):(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(c,{eyebrow:`Destination network`,title:`Where we place workers`,body:`Real destination markets, documented requirements and current role availability in one place.`,image:i.src}),(0,u.jsx)(l,{className:`grid gap-5 sm:grid-cols-2 lg:grid-cols-3`,children:e.map(e=>(0,u.jsxs)(`article`,{className:`group overflow-hidden rounded-lg bg-white shadow-[var(--shadow-card)] ring-1 ring-slate-200/80 transition duration-300 hover:-translate-y-1 hover:shadow-[var(--shadow-lifted)]`,children:[(0,u.jsxs)(`div`,{className:`relative aspect-[4/3] overflow-hidden bg-brand-950`,children:[r(e.code)&&(0,u.jsx)(`img`,{src:r(e.code).src,alt:r(e.code).alt,loading:`lazy`,decoding:`async`,className:`absolute inset-0 h-full w-full object-cover transition duration-500 group-hover:scale-105`}),(0,u.jsx)(`div`,{className:`absolute inset-0 bg-gradient-to-t from-brand-950/80 via-brand-950/10 to-transparent`}),(0,u.jsxs)(`h2`,{className:`absolute bottom-4 left-4 right-4 flex items-center gap-2 text-2xl font-bold text-white`,children:[e.flag&&(0,u.jsx)(`span`,{"aria-hidden":`true`,children:e.flag}),e.name]})]}),(0,u.jsxs)(`div`,{className:`p-5`,children:[e.summary&&(0,u.jsx)(`p`,{className:`text-sm leading-relaxed text-slate-600`,children:e.summary}),(0,u.jsxs)(a,{to:`/jobs?country=${e.code}`,className:`mt-5 inline-flex min-h-11 items-center rounded-md bg-brand-50 px-4 text-sm font-semibold text-brand-700 transition hover:bg-brand-100`,children:[`See jobs in `,e.name]})]})]},e.slug))})]})}export{d as default};