import{j as e,L as t,dz as c,cp as r,dA as n,dq as d,dB as m,C as o,c3 as x}from"./vendor-rThclpOQ.js";import{T as p}from"./table-filter-YjsfaEUk.js";import{T as h}from"./table-footer-CXgex4hi.js";import{B as u}from"./badge-DJgeeB6N.js";import{B as f}from"./button-ZcsoqUQn.js";import{C as g,b as N}from"./card-HXna_7vU.js";import"./use-lang-BK6P2WMc.js";import"./debounce-CWHP_ANh.js";import"./route-B4ZMN77y.js";import"./utils-8KAaAB9H.js";import"./dropdown-menu-Cm0H42C1.js";import"./scroll-area-BCwyUKIK.js";import"./table-page-size-FBmivxVb.js";import"./index-DquVdLUg.js";const D=({jobCirculars:a})=>{const i=s=>{const l={draft:"outline",active:"default",paused:"secondary",closed:"destructive",expired:"destructive"};return e.jsx(u,{variant:l[s]||"outline",children:s})};return e.jsx("div",{className:"container my-20",children:e.jsxs(g,{className:"!shadow-none",children:[e.jsx(p,{data:a,title:"Job Circulars",globalSearch:!0,tablePageSizes:[10,15,20,25],routeName:"inner.page",routeParams:{slug:"careers"}}),e.jsx(N,{children:a.data.length>0?e.jsx("div",{className:"space-y-4",children:a.data.map(s=>e.jsx("div",{className:"hover:bg-muted/50 rounded-lg border p-4 transition-colors",children:e.jsxs("div",{className:"flex flex-col items-start justify-between gap-7 md:flex-row md:gap-4",children:[e.jsxs("div",{className:"flex-1 space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-2 hover:underline",children:[e.jsx(t,{href:route("job-circulars.show",s.id),children:e.jsx("h3",{className:"text-lg font-semibold",children:s.title})}),i(s.status)]}),e.jsxs("div",{className:"text-muted-foreground flex flex-wrap items-center gap-4 text-sm",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(c,{className:"h-4 w-4"}),s.location]}),e.jsxs("div",{className:"flex items-center gap-1 capitalize",children:[e.jsx(r,{className:"h-4 w-4"}),s.job_type]}),e.jsxs("div",{className:"flex items-center gap-1 capitalize",children:[e.jsx(n,{className:"h-4 w-4"}),s.work_type]}),e.jsxs("div",{className:"flex items-center gap-1 capitalize",children:[e.jsx(d,{className:"h-4 w-4"}),s.experience_level]}),e.jsxs("div",{className:"flex items-center gap-1 capitalize",children:[e.jsx(m,{className:"h-4 w-4"}),s.positions_available," Position",s.positions_available!==1?"s":""]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(o,{className:"h-4 w-4"}),new Date(s.application_deadline).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})]})]})]}),e.jsx(f,{variant:"secondary",size:"icon",asChild:!0,children:e.jsx(t,{href:route("job-circulars.show",s.id),children:e.jsx(x,{className:"h-4 w-4"})})})]})},s.id))}):e.jsxs("div",{className:"py-12 text-center",children:[e.jsx(r,{className:"text-muted-foreground mx-auto h-12 w-12"}),e.jsx("h3",{className:"mt-4 text-lg font-semibold",children:"No job circulars found"}),e.jsx("p",{className:"text-muted-foreground mt-2",children:"Get started by creating your first job circular"})]})}),e.jsx(h,{className:"p-5 sm:p-7",routeName:"inner.page",routeParams:{slug:"careers"},paginationInfo:a})]})})};export{D as default};
