PageSourceSearch

https://jobindo.com/build/assets/page-VBy8pQgV.js

js jobindo.com collected 2026-10-04 20:17:22 UTC 12,555 bytes, 6 lines download raw bytes

1import{j as e,L as d,r as u,b as R}from"./app-DE9VL7gH.js";import{a as q}from"./applicant-status-tag-BQ-a4j4W.js";import{J as A}from"./job-status-tag-C54jC3y7.js";import{J as I}from"./job-actions-menu-I2nYVxQ0.js";import{T as m}from"./tag-lg8DQxQn.js";import{u as f}from"./use-translation-CKlnERS6.js";import{c as J,b as _,B as k}from"./logo-C8ZCs8fP.js";import{E as P}from"./eye-ChxhqmIH.js";import{L as B}from"./list-checks-B0yWTLw8.js";import{Y as z}from"./use-mobile-navigation-7CJTI-Fj.js";import{S as O}from"./sparkles-E1KTu92Z.js";import{E as D}from"./empty-state-DfOg2UhT.js";import{u as F,C as U,L as Y}from"./use-load-more-list-CX91Lv4Q.js";import{S as G}from"./section-card-ztA4LS1L.js";import{I as K}from"./input-CxcwDP1d.js";import{E as V}from"./employer-layout-BLthzrp0.js";import{E as H,j as $}from"./employer-job-status-C3UDwP5K.js";import{P as Q}from"./plus-FqeopK8L.js";import{S as W}from"./search-CH7Avakq.js";import{B as X}from"./briefcase-business-CpzDbSJt.js";import"./card-menu-BxWoVM5Z.js";import"./ellipsis-NFBkx73K.js";import"./alert-dialog-C2-3zh77.js";import"./index-AIumpMIl.js";import"./pencil-CZ_hWPv9.js";import"./lock-CL-FZiWV.js";import"./users-round-Dktj8YgL.js";import"./square-arrow-out-up-right-DDorGDLX.js";import"./power-BgMrT40n.js";import"./trash-2-n4Th3M0K.js";import"./skeleton-DDpNsJDh.js";import"./circle-alert-DyctXcQf.js";import"./container-ch_ggvfN.js";import"./front-layout-BCJhQTvc.js";import"./check-BUqOyC2B.js";import"./chevron-down-Bxw3aS9e.js";import"./file-text-BhRiSut9.js";/**
2 * @license lucide-react v0.475.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const Z=[["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M17.5 17.5 16 16.3V14",key:"akvzfd"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]],ee=J("CalendarClock",Z),se=7,te={applied:"bg-muted text-muted-foreground",under_review:"bg-info-tint text-info-deep",shortlisted:"bg-lavender-tint text-lavender-deep",interview:"bg-primary-tint text-primary",hired:"bg-success-tint text-success-deep",rejected:"bg-error-tint text-error-deep"},x="block min-w-0 lg:table-cell lg:px-4 lg:py-4 lg:align-top lg:first:pl-5";function re({jobs:s}){const{__:t}=f();return e.jsx("div",{className:"lg:overflow-hidden lg:rounded-2xl lg:border lg:border-border lg:bg-surface",children:e.jsxs("table",{"aria-label":t("employer.jobs_title"),className:"flex w-full flex-col gap-3 lg:table lg:table-fixed lg:border-collapse",children:[e.jsx("thead",{className:"hidden lg:table-header-group",children:e.jsxs("tr",{className:"border-b border-border bg-muted/40 text-left text-xs font-medium text-muted-foreground",children:[e.jsx("th",{scope:"col",className:"w-[34%] px-4 py-3 pl-5 font-medium",children:t("employer.jobs_column_vacancy")}),e.jsx("th",{scope:"col",className:"w-[20%] px-4 py-3 font-medium",children:t("employer.jobs_column_requirements")}),e.jsx("th",{scope:"col",className:"w-[20%] px-4 py-3 font-medium",children:t("employer.jobs_column_screening")}),e.jsx("th",{scope:"col",className:"px-4 py-3 font-medium",children:t("employer.jobs_attention")}),e.jsx("th",{scope:"col",className:"w-16 px-4 py-3 pr-5 font-medium",children:e.jsx("span",{className:"sr-only",children:t("employer.jobs_column_actions")})})]})}),s.map(a=>e.jsx(le,{job:a},a.id))]})})}function le({job:s}){const{__:t}=f(),a={...s,can_delete:s.total_count===0},r=s.closes_at?Math.ceil((s.closes_at*1e3-Date.now())/864e5):null,n=[s.pending_count>0?t("employer.jobs_attention_undecided",{count:s.pending_count}):null,s.question_count===0?t("employer.jobs_attention_no_questions"):null,r!==null&&r>=0&&r<=se?t("employer.jobs_attention_closing",{count:r}):null,s.status_key==="draft"?t("employer.jobs_attention_draft"):null].filter(Boolean),p=[s.education_label,s.experience_label,s.salary_label].filter(Boolean);return e.jsxs("tbody",{className:"relative block rounded-2xl border border-border bg-surface p-4 sm:p-5 lg:table-row-group lg:rounded-none lg:border-0 lg:border-t lg:bg-transparent lg:p-0",children:[e.jsxs("tr",{className:"grid gap-3 lg:table-row",children:[e.jsxs("td",{className:_(x,"pr-12 lg:pr-4"),children:[e.jsxs("div",{className:"flex min-w-0 flex-wrap items-center gap-1.5",children:[e.jsx(A,{status:s.status_key}),s.is_featured&&e.jsx(m,{variant:"highlight",children:t("employer.job_featured")})]}),e.jsx("h2",{className:"mt-1.5 text-base font-semibold tracking-tight wrap-break-word text-foreground",children:e.jsx(d,{href:route("employer.edit-job-ads",s.id),className:"outline-none hover:text-primary focus-visible:ring-[3px] focus-visible:ring-ring/50",children:s.title})}),e.jsxs("p",{className:"mt-1 flex min-w-0 flex-wrap items-center gap-x-2 gap-y-0.5 text-xs text-muted-foreground",children:[s.location_label&&e.jsx("span",{className:"min-w-0 
6wrap-break-word",children:s.location_label}),s.job_type_label&&e.jsx("span",{className:"min-w-0 wrap-break-word",children:s.job_type_label}),e.jsx("span",{className:"tabular-nums",children:t("employer.jobs_vacancy_id",{id:s.id})})]}),e.jsxs("p",{className:"mt-1 flex min-w-0 flex-wrap items-center gap-x-3 gap-y-1 text-sm text-muted-foreground",children:[e.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[e.jsx(ee,{"aria-hidden":!0,className:"size-4 shrink-0"}),s.closes_at_label?t("employer.jobs_closes_on",{date:s.closes_at_label}):t("employer.jobs_no_expiry")]}),s.posted_at_label&&e.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[e.jsx(P,{"aria-hidden":!0,className:"size-4 shrink-0"}),s.posted_at_label]}),s.question_count>0&&e.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[e.jsx(B,{"aria-hidden":!0,className:"size-4 shrink-0"}),t("employer.questions_count",{count:s.question_count})]})]})]}),e.jsxs("td",{className:x,children:[e.jsx(g,{children:t("employer.jobs_column_requirements")}),p.length>0?e.jsx("ul",{className:"flex min-w-0 flex-wrap gap-1.5",children:p.map(l=>e.jsx("li",{className:"min-w-0",children:e.jsx(m,{wrap:!0,variant:"neutral",children:l})},l))}):e.jsx(S,{})]}),e.jsxs("td",{className:x,children:[e.jsx(g,{children:t("employer.jobs_column_screening")}),s.top_match_score===null&&s.screening_passed_count===0&&s.screening_failed_count===0?e.jsx("p",{className:"text-sm wrap-break-word text-muted-foreground",children:t("employer.jobs_not_scored")}):e.jsxs("ul",{className:"flex min-w-0 flex-wrap gap-1.5",children:[s.top_match_score!==null&&e.jsx("li",{children:e.jsx(m,{variant:"brand",children:t("employer.jobs_top_match",{percent:s.top_match_score})})}),s.screening_passed_count>0&&e.jsx("li",{children:e.jsx(m,{variant:"success",children:t("employer.jobs_screening_passed",{count:s.screening_passed_count})})}),s.screening_failed_count>0&&e.jsx("li",{children:e.jsx(m,{variant:"error",children:t("employer.jobs_screening_failed",{count:s.screening_failed_count})})})]})]}),e.jsxs("td",{className:x,children:[e.jsx(g,{children:t("employer.jobs_attention")}),n.length>0?e.jsx("ul",{className:"flex min-w-0 flex-col gap-1",children:n.map(l=>e.jsxs("li",{className:"flex min-w-0 items-start gap-1.5 text-xs wrap-break-word text-warning-deep",children:[e.jsx(z,{"aria-hidden":!0,className:"mt-0.5 size-3.5 shrink-0"}),e.jsx("span",{className:"min-w-0",children:l})]},l))}):e.jsx(S,{})]}),e.jsx("td",{className:"absolute top-3 right-3 sm:top-4 sm:right-4 lg:static lg:table-cell lg:py-3 lg:pr-5 lg:pl-0 lg:align-top",children:e.jsx(I,{job:a})})]}),e.jsx("tr",{className:"mt-3 block border-t border-border pt-3 lg:mt-0 lg:table-row lg:border-0 lg:pt-0",children:e.jsx("td",{colSpan:5,className:"block lg:table-cell lg:px-5 lg:pb-4",children:e.jsxs("div",{className:"flex flex-col gap-2 lg:flex-row lg:flex-wrap lg:items-center lg:gap-x-3",children:[e.jsx("p",{className:"text-xs text-muted-foreground",children:t("employer.jobs_column_applicants")}),e.jsx("ul",{className:"-m-1 flex max-w-full min-w-0 gap-2 overflow-x-auto overscroll-x-contain p-1",children:q.map(l=>{var c;return e.jsx("li",{className:"shrink-0",children:e.jsx(ae,{jobId:s.id,status:l,label:t(`employer.applicant_status_${l}`),value:((c=s.stage_counts)==null?void 0:c[l])??0,tone:te[l]})},l)})}),s.top_match_score!==null&&e.jsxs(d,{href:route("employer.applicants",{job:s.id,sort:"match"}),className:"inline-flex min-h-11 w-fit items-center gap-1.5 rounded-xl px-2 text-sm font-semibold text-primary outline-none hover:bg-primary-tint focus-visible:ring-[3px] focus-visible:ring-ring/50 lg:ml-auto",children:[e.jsx(O,{"aria-hidden":!0,className:"size-4 shrink-0"}),t("employer.jobs_see_best_match",{percent:s.top_match_score})]})]})})})]})}function ae({jobId:s,status:t,label:a,value:r,tone:n}){return e.jsxs(d,{href:route("employer.applicants",{job:s,status:t}),className:_("inline-flex min-h-11 items-center rounded-full px-3.5 text-sm font-medium whitespace-nowrap transition-colors duration-150 outline-none hover:brightness-95 focus-visible:ring-[3px] focus-visible:ring-ring/50",r>0?n:"bg-muted text-muted-foreground"),children:[a," ",e.jsxs("span",{className:"font-bold tabular-nums",children:["(",r,")"]})]})}function g({children:s}){return e.jsx("p",{className:"pb-1 text-xs text-muted-foreground lg:hidden",children:s})}function S(){return e.jsx("p",{className:"text-sm text-muted-foreground",children:e.jsx("span",{"aria-hidden":!0,
6children:"—"})})}function Ue({jobs:s,status_counts:t,filters:a}){const{__:r}=f(),[n,p]=u.useState(a.search),[l,c]=u.useState(!1),b=u.useRef(!0),{items:j,onLoadMoreClick:L,loadMore:C,isLoadingMore:E,hasError:T,nextPageUrl:M}=F({page:s,only:["jobs"],rememberKey:"employer-jobs:list"}),y=o=>{const i={},w=o.search??n,v=o.status??a.status;w.trim()!==""&&(i.search=w.trim()),v!=="all"&&(i.status=v),c(!0),R.get(route("employer.jobs"),i,{preserveState:!0,preserveScroll:!0,replace:!0,only:["jobs","status_counts","filters"],onFinish:()=>c(!1)})};u.useEffect(()=>{if(b.current){b.current=!1;return}const o=setTimeout(()=>y({search:n}),400);return()=>clearTimeout(o)},[n]);const N=j.length>0,h=a.status!=="all"||a.search.trim()!=="";return e.jsx(V,{meta:{title:r("employer.jobs_title"),robots:"noindex,nofollow"},children:e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsxs(G,{className:"flex flex-col gap-4 p-5 sm:p-6",children:[e.jsxs("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("h1",{className:"text-2xl font-bold tracking-tight text-foreground sm:text-3xl",children:r("employer.jobs_title")}),e.jsx("p",{className:"mt-1 text-sm text-pretty text-muted-foreground sm:text-base",children:r("employer.jobs_subtitle")})]}),e.jsx(k,{asChild:!0,className:"h-11 w-full shrink-0 px-5 font-semibold sm:w-auto",children:e.jsxs(d,{href:route("employer.create-job-ads"),children:[e.jsx(Q,{"aria-hidden":!0}),r("employer.jobs_create")]})})]}),e.jsxs("div",{className:"relative",children:[e.jsx(W,{"aria-hidden":!0,className:"pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground"}),e.jsx(K,{type:"search",value:n,onChange:o=>p(o.target.value),"aria-label":r("employer.jobs_search_label"),placeholder:r("employer.jobs_search_placeholder"),className:"h-11 bg-surface pl-9"})]}),e.jsx("div",{className:"-mx-1 flex snap-x gap-2 overflow-x-auto px-1 pb-1",children:H.map(o=>{const i=a.status===o;return e.jsxs("button",{type:"button","aria-pressed":i,onClick:()=>y({status:i?"all":o}),className:_("flex min-h-11 shrink-0 snap-start items-center gap-2 rounded-full border px-4 text-sm font-medium whitespace-nowrap transition-colors duration-150 outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50",i?"border-primary bg-primary-tint font-semibold text-primary":"border-border text-muted-foreground hover:bg-muted"),children:[r($(o).labelKey),e.jsx("span",{className:"tabular-nums opacity-70",children:t[o]??0})]},o)})})]}),l?e.jsx(U,{}):N?e.jsxs(e.Fragment,{children:[e.jsx(re,{jobs:j}),e.jsx(Y,{nextPageUrl:M,isLoading:E,hasError:T,onClick:L,onRetry:C,hasItems:N})]}):e.jsx(D,{icon:X,title:r(h?"employer.jobs_no_results_title":"employer.jobs_empty_title"),description:r(h?"employer.jobs_no_results_desc":"employer.jobs_empty_desc"),action:h?void 0:e.jsx(k,{asChild:!0,className:"h-11 px-5 font-semibold",children:e.jsx(d,{href:route("employer.create-job-ads"),children:r("employer.jobs_create")})})})]})})}export{Ue as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.