1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5232],{1164:(e,l,s)=>{"use strict";s.d(l,{A:()=>a});var t=s(51935);let r={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};r.node;let a=(0,t.A)(r)},6974:(e,l,s)=>{"use strict";s.d(l,{A:()=>a});var t=s(51935);let r={name:"badge-check",size:24,node:[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],aliases:["verified"]};r.node;let a=(0,t.A)(r)},18820:(e,l,s)=>{"use strict";s.d(l,{A:()=>a});var t=s(51935);let r={name:"briefcase",size:24,node:[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]};r.node;let a=(0,t.A)(r)},25561:(e,l,s)=>{"use strict";s.d(l,{A:()=>a});var t=s(51935);let r={name:"building-complex",size:24,node:[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]],aliases:["building-2"]};r.node;let a=(0,t.A)(r)},27278:(e,l,s)=>{"use strict";s.d(l,{A:()=>a});var t=s(51935);let r={name:"bookmark",size:24,node:[["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}]]};r.node;let a=(0,t.A)(r)},38852:(e,l,s)=>{"use strict";s.d(l,{A:()=>a});var t=s(51935);let r={name:"map-pin",size:24,node:[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]};r.node;let a=(0,t.A)(r)},43588:(e,l,s)=>{"use strict";function t(){for(var e=arguments.length,l=Array(e),s=0;s<e;s++)l[s]=arguments[s];return l.filter(Boolean).join(" ")}s.d(l,{cn:()=>t})},47716:(e,l,s)=>{"use strict";s.d(l,{A:()=>a});var t=s(51935);let r={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};r.node;let a=(0,t.A)(r)},49610:(e,l,s)=>{"use strict";s.d(l,{A:()=>a});var t=s(51935);let r={name:"list",size:24,node:[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]]};r.node;let a=(0,t.A)(r)},62822:(e,l,s)=>{"use strict";s.d(l,{A:()=>a});var t=s(51935);let r={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};r.node;let a=(0,t.A)(r)},74577:(e,l,s)=>{"use strict";s.d(l,{MA:()=>t,Zq:()=>r,bp:()=>i,qO:()=>n,tv:()=>a});let t=[{value:"full_time",label:"Full-time"},{value:"part_time",label:"Part-time"},{value:"contract",label:"Contract"},{value:"internship",label:"Internship"},{value:"freelance",label:"Freelance"}],r=[{value:"yearly",label:"Yearly"},{value:"monthly",label:"Monthly"},{value:"weekly",label:"Weekly"}],a=[{value:"remote",label:"Remote"},{value:"hybrid",label:"Hybrid"},{value:"onsite",label:"Onsite"}],i=[{value:"entry",label:"Entry Level"},{value:"mid",label:"Mid Level"},{value:"senior",label:"Senior Level"},{value:"lead",label:"Lead"},{value:"executive",label:"Executive"}],n=[{value:"24h",label:"Last 24 hours"},{value:"3d",label:"Last 3 days"},{value:"7d",label:"Last 7 days"},{value:"30d",label:"Last 30 days"}]},81953:(e,l,s)=>{"use strict";s.r(l),s.d(l,{default:()=>U});var t=s(37876),r=s(14232),a=s(88634),i=s(38852),n=s(18820),d=s(62822),o=s(51935);let c={name:"sliders-horizontal",size:24,node:[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]]};c.node;let x=(0,o.A)(c);var m=s(47716);let u={name:"grid-3x3",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]],aliases:["grid","grid-3-x-3"]};u.node;let h=(0,o.A)(u);var p=s(49610),y=s(6974);let g={name:"bookmark-check",size:24,node:[["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}],["path",{d:"m9 10 2 2 4-4",key:"1gnqz4"}]]};g.node;let v=(0,o.A)(g);var b=s(27278),f=s(93846),j=s(91640),w=s(94502),N=s(43588),k=s(14e3),A=s(54587),_=s.n(A),M=s(86089),C=s(10553);function L(e){let l=Math.floor((Date.now()-new Date(e).getTime())/864e5);return 0===l?"Today":1===l?"1d ago":l<7?"".concat(l,"d ago"):l<30?"".concat(Math.floor(l/7),"w ago"):"".concat(Math.floor(l/30),"mo ago")}function S(e){var l,s,a,n,d,o,c,x,m,u,h,p,g,A,S,z,G,D,q,W,E,O,F,T;let{job:B,onSave:P,onView:R,layout:H="grid",isSelected:U}=e,[V,I]=(0,r.useState)(B.is_saved||!1),$=(0,k.useRouter)(),{data:J}=(0,C.useSession)(),X=e=>{e.stopPropagation(),null==P||P(B.id,V),I(!V)},K=()=>{(null==B?void 0:B.apply_method)=="external"?window.open(null==B?void 0:B.external_apply_url,"_blank"):$.push("/jobs/".concat(B.slug,"/apply"))};return"list"===H?(0,t.jsxs)("div",{onClick:()=>null==R?void 0:R(B),className:(0,N.cn)("bg-white border rounded-2xl p-4 sm:p-5 cursor-pointer group transition-all duration-200","hover:shadow-md hover:border-primary/30",U?"border-primary shadow-md ring-1 ring-primary/20":"border-dividerGrey","flex gap-4 items-start"),children:[(0,t.jsx)("div",{className:"flex-shrink-0 mt-0.5",children:B.company.logo_url?(0,t.jsx)(_(),{width:300,height:300,src:B.company.logo_url,alt:null==B||null==(S=B.company)?void 0:S.company_name,className:"w-11 h-11 rounded-xl object-cover border border-dividerGrey"}):(0,t.jsx)(w.q5,{name:null==B||null==(z=B.company)?void 0:z.company_name,size:"lg"})}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3 mb-1.5",children:[(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("h3",{className:"font-semibold text-secondary text-14 leading-tight group-hover:text-primary transition-colors truncate",children:B.job_title}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5 mt-0.5",children:[(0,t.jsx)("span",{className:"text-12 text-greyDark",children:null==B||null==(G=B.company)?void 0:G.company_name}),1===Number(null==B||null==(D=B.company)?void 0:D.is_verified)&&(0,t.jsx)(y.A,{className:"w-3.5 h-3.5 text-primary flex-shrink-0"})]})]}),(0,t.jsx)("button",{onClick:X,className:(0,N.cn)("flex-shrink-0 w-8 h-8 rounded-lg flex items-center justify-center transition-all duration-200",V?"bg-primary/10 text-primary":"bg-greyLight text-grey hover:bg-primary/10 hover:text-primary"),title:V?"Unsave":"Save job",children:V?(0,t.jsx)(v,{className:"w-4 h-4"}):(0,t.jsx)(b.A,{className:"w-4 h-4"})})]}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1.5 mb-2",children:[B.location.city&&(0,t.jsxs)("span",{className:"flex items-center gap-1 text-12 text-grey",children:[(0,t.jsx)(i.A,{className:"w-3 h-3 flex-shrink-0"}),"remote"==B.work_mode?"Remote":"".concat(null==B||null==(q=B.location)?void 0:q.address)]}),(0,t.jsx)(w.Wh,{status:B.work_mode,size:"sm"}),(0,t.jsx)(w.Wh,{status:B.job_type,size:"sm"}),(0,t.jsxs)("span",{className:"flex items-center gap-1 text-13 font-semibold text-secondary",children:[(null==B?void 0:B.salary)?(0,t.jsx)(M.A,{min:Math.round(Number(null==B||null==(W=B.salary)?void 0:W.min_salary)),max:Math.round(Number(null==B||null==(E=B.salary)?void 0:E.max_salary))}):"Salary not specified",(null==B?void 0:B.salary)&&(0,t.jsx)("span",{className:"text-12 text-grey font-normal",children:"/ yr"})]})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-1.5 mb-3",children:[B.skills.slice(0,5).map(e=>(0,t.jsx)(w.AC,{skill:e.skill},null==e?void 0:e.id)),B.skills.length>5&&(0,t.jsxs)("span",{className:"text-12 text-grey self-center",children:["+",B.skills.length-5]})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("div",{className:"flex items-center gap-2",children:(0,t.jsxs)("span",{className:"flex items-center gap-1 text-12 text-grey",children:[(0,t.jsx)(f.A,{className:"w-3 h-3"}),L(B.created_at)]})}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)("button",{onClick:e=>{e.stopPropagation()},className:"w-7 h-7 rounded-lg bg-greyLight text-grey hover:bg-bgSkyBlue hover:text-primary flex items-center justify-center transition-all",children:(0,t.jsx)(j.A,{className:"w-3.5 h-3.5"})}),B.user_id!==(null==J||null==(F=J.user)||null==(O=F.userData)?void 0:O.id)&&!B.is_applied&&(0,t.jsx)("button",{onClick:K,className:(0,N.cn)("px-3 py-1.5 rounded-lg text-12 font-medium transition-all duration-200",B.is_applied?"bg-greyLight text-grey curs
1or-default":"bg-primary text-white hover:opacity-90"),children:B.is_applied?"Applied":(null==B||null==(T=B.settings)?void 0:T.allow_easy_apply)?"Easy Apply":"Apply"})]})]})]})]}):(0,t.jsxs)("div",{onClick:()=>null==R?void 0:R(B),className:(0,N.cn)("bg-white border rounded-2xl p-5 cursor-pointer group transition-all duration-200","hover:shadow-md hover:border-primary/30",U?"border-primary shadow-md ring-1 ring-primary/20":"border-dividerGrey"),children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3 mb-3",children:[(0,t.jsxs)("div",{className:"flex items-start gap-3 min-w-0",children:[(0,t.jsx)("div",{className:"flex-shrink-0",children:(null==(l=B.company)?void 0:l.logo_url)?(0,t.jsx)(_(),{width:300,height:300,src:null==(s=B.company)?void 0:s.logo_url,alt:null==B||null==(a=B.company)?void 0:a.company_name,className:"w-12 h-12 rounded-xl object-cover border border-dividerGrey"}):(0,t.jsx)(w.q5,{name:null==B||null==(n=B.company)?void 0:n.company_name,size:"lg"})}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("h3",{className:"font-semibold text-secondary text-14 leading-tight group-hover:text-primary transition-colors line-clamp-1",children:B.job_title}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5 mt-0.5",children:[(0,t.jsx)("span",{className:"text-12 text-greyDark truncate",children:null==B||null==(d=B.company)?void 0:d.company_name}),1===Number(null==B||null==(o=B.company)?void 0:o.is_verified)&&(0,t.jsx)(y.A,{className:"w-3.5 h-3.5 text-primary flex-shrink-0"})]})]})]}),(0,t.jsx)("button",{onClick:X,className:(0,N.cn)("flex-shrink-0 w-8 h-8 rounded-lg flex items-center justify-center transition-all duration-200",V?"bg-primary/10 text-primary":"bg-greyLight text-grey hover:bg-primary/10 hover:text-primary"),title:V?"Unsave":"Save job",children:V?(0,t.jsx)(v,{className:"w-4 h-4"}):(0,t.jsx)(b.A,{className:"w-4 h-4"})})]}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2 mb-3",children:[(null==B||null==(c=B.location)?void 0:c.city)&&(0,t.jsxs)("span",{className:"flex items-center gap-1 text-12 text-grey",children:[(0,t.jsx)(i.A,{className:"w-3 h-3"}),(null==B?void 0:B.work_mode)=="remote"?"Remote":"".concat(null==(x=B.location)?void 0:x.city,", ").concat(null==(m=B.location)?void 0:m.country)]}),(0,t.jsx)("span",{className:"w-1 h-1 bg-dividerGrey rounded-full"}),(0,t.jsx)(w.Wh,{status:B.work_mode,size:"sm"}),(0,t.jsx)(w.Wh,{status:B.job_type,size:"sm"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5 mb-3",children:[(0,t.jsx)("span",{className:"text-14 font-semibold text-secondary",children:(null==B?void 0:B.salary)?(0,t.jsx)(M.A,{min:Math.round(Number(null==B||null==(u=B.salary)?void 0:u.min_salary)),max:Math.round(Number(null==B||null==(h=B.salary)?void 0:h.max_salary))}):"Salary not specified"}),(null==B?void 0:B.salary)&&(0,t.jsx)("span",{className:"text-12 text-grey",children:"/ yr"})," "]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-1.5 mb-4",children:[B.skills.slice(0,4).map(e=>(0,t.jsx)(w.AC,{skill:e.skill},e.id)),B.skills.length>4&&(0,t.jsxs)("span",{className:"text-12 text-grey self-center",children:["+",B.skills.length-4]})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between pt-3 border-t border-dividerGrey",children:[(0,t.jsx)("div",{className:"flex items-center gap-2",children:(0,t.jsxs)("span",{className:"flex items-center gap-1 text-12 text-grey",children:[(0,t.jsx)(f.A,{className:"w-3 h-3"}),L(B.created_at)]})}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)("button",{onClick:e=>{e.stopPropagation()},className:"w-7 h-7 rounded-lg bg-greyLight text-grey hover:bg-bgSkyBlue hover:text-primary flex items-center justify-center transition-all",children:(0,t.jsx)(j.A,{className:"w-3.5 h-3.5"})}),B.user_id!==(null==J||null==(g=J.user)||null==(p=g.userData)?void 0:p.id)&&!B.is_applied&&(0,t.jsx)("button",{onClick:K,className:(0,N.cn)("px-3 py-1.5 rounded-lg text-12 font-medium transition-all duration-200",B.is_applied?"bg-greyLight text-grey cursor-default":"bg-primary text-white hover:opacity-90"),children:B.is_applied?"Applied":(null==B||null==(A=B.settings)?void 0:A.allow_easy_apply)?"Easy Apply":"Apply"})]})]})]})}let z={name:"chevron-up",size:24,node:[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]};z.node;let G=(0,o.A)(z);var D=s(1164),q=s(74577);let W={jobType:[],workMode:[],experienceLevel:[],skills:[],industry:[],benefits:[],salaryMin:0,salaryMax:3e5,postedWithin:null,verifiedOnly:!1,easyApplyOnl
1y:!1,visaSponsorship:!1,keyword:"",location:""};function E(e){let{title:l,children:s,defaultOpen:a=!0}=e,[i,n]=(0,r.useState)(a);return(0,t.jsxs)("div",{className:"border-b border-dividerGrey pb-4 mb-4 last:border-0 last:mb-0 last:pb-0",children:[(0,t.jsxs)("button",{onClick:()=>n(!i),className:"flex items-center justify-between w-full text-left mb-3",children:[(0,t.jsx)("span",{className:"text-14 font-semibold text-secondary",children:l}),i?(0,t.jsx)(G,{className:"w-4 h-4 text-grey"}):(0,t.jsx)(D.A,{className:"w-4 h-4 text-grey"})]}),i&&(0,t.jsx)("div",{children:s})]})}function O(e){let{options:l,selected:s,onChange:r}=e,a=e=>{r(s.includes(e)?s.filter(l=>l!==e):[...s,e])};return(0,t.jsx)("div",{className:"space-y-2",children:l.map(e=>(0,t.jsxs)("label",{className:"flex items-center gap-2.5 cursor-pointer group",children:[(0,t.jsx)("div",{className:(0,N.cn)("w-4 h-4 rounded border-2 flex items-center justify-center transition-all flex-shrink-0",s.includes(e.value)?"bg-primary border-primary":"border-dividerGrey group-hover:border-primary"),onClick:()=>a(e.value),children:s.includes(e.value)&&(0,t.jsx)("svg",{className:"w-2.5 h-2.5 text-white",fill:"none",viewBox:"0 0 12 12",children:(0,t.jsx)("path",{d:"M2 6l3 3 5-5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,t.jsx)("span",{onClick:()=>a(e.value),className:"text-14 text-greyDark group-hover:text-secondary transition-colors cursor-pointer",children:e.label})]},e.value))})}function F(e){let{onChange:l,skills:s,benefits:a,industries:i}=e,[n,d]=(0,r.useState)(""),[o,c]=(0,r.useState)(W),u=(e,s)=>{c(t=>{let r={...t,[e]:s};return null==l||l(r),r})},h=o.jobType.length>0||o.workMode.length>0||o.experienceLevel.length>0||o.skills.length>0||o.verifiedOnly||o.easyApplyOnly||o.visaSponsorship,p=s.filter(e=>e.name.toLowerCase().includes(n.toLowerCase())&&!o.skills.some(l=>l.id===e.id));return(0,t.jsx)("aside",{className:"w-72 flex-shrink-0",children:(0,t.jsxs)("div",{className:"bg-white border border-dividerGrey rounded-2xl p-5 sticky top-24",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(x,{className:"w-4 h-4 text-primary"}),(0,t.jsx)("span",{className:"font-semibold text-secondary",children:"Filters"})]}),h&&(0,t.jsxs)("button",{onClick:()=>c(W),className:"text-12 text-primary hover:underline flex items-center gap-1",children:[(0,t.jsx)(m.A,{className:"w-3 h-3"})," Clear all"]})]}),(0,t.jsxs)("div",{className:"max-h-[calc(100vh-180px)] overflow-y-auto pr-1 space-y-0",children:[(0,t.jsx)(E,{title:"Job Type",children:(0,t.jsx)(O,{options:q.MA,selected:o.jobType,onChange:e=>u("jobType",e)})}),(0,t.jsx)(E,{title:"Work Mode",children:(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:q.tv.map(e=>(0,t.jsx)("button",{onClick:()=>{let l=o.workMode;u("workMode",l.includes(e.value)?l.filter(l=>l!==e.value):[...l,e.value])},className:(0,N.cn)("px-3 py-1.5 rounded-xl text-12 font-medium border transition-all",o.workMode.includes(e.value)?"bg-primary text-white border-primary":"border-dividerGrey text-greyDark hover:border-primary hover:text-primary"),children:e.label},e.value))})}),(0,t.jsx)(E,{title:"Experience Level",children:(0,t.jsx)(O,{options:q.bp,selected:o.experienceLevel,onChange:e=>u("experienceLevel",e)})}),(0,t.jsx)(E,{title:"Salary Range",children:(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,t.jsx)("span",{className:"text-12 font-medium text-greyDark",children:o.salaryMin>=1e3?"$".concat((o.salaryMin/1e3).toFixed(0),"k"):"$".concat(o.salaryMin)}),(0,t.jsx)("span",{className:"text-12 font-medium text-greyDark",children:o.salaryMax>=1e3?"$".concat((o.salaryMax/1e3).toFixed(0),"k"):"$".concat(o.salaryMax)})]}),(0,t.jsx)("input",{type:"range",min:0,max:3e5,step:5e3,value:o.salary
1Min,onChange:e=>u("salaryMin",Number(e.target.value)),className:"w-full accent-primary h-1.5 rounded-full mb-2"}),(0,t.jsx)("input",{type:"range",min:0,max:3e5,step:5e3,value:o.salaryMax,onChange:e=>u("salaryMax",Number(e.target.value)),className:"w-full accent-primary h-1.5 rounded-full"})]})}),(0,t.jsx)(E,{title:"Date Posted",children:(0,t.jsx)("div",{className:"space-y-2",children:q.qO.map(e=>(0,t.jsxs)("label",{className:"flex items-center gap-2.5 cursor-pointer group",children:[(0,t.jsx)("div",{className:(0,N.cn)("w-4 h-4 rounded-full border-2 flex items-center justify-center transition-all flex-shrink-0",o.postedWithin===e.value?"border-primary":"border-dividerGrey group-hover:border-primary"),onClick:()=>u("postedWithin",o.postedWithin===e.value?null:e.value),children:o.postedWithin===e.value&&(0,t.jsx)("div",{className:"w-2 h-2 bg-primary rounded-full"})}),(0,t.jsx)("span",{onClick:()=>u("postedWithin",o.postedWithin===e.value?null:e.value),className:"text-14 text-greyDark group-hover:text-secondary cursor-pointer",children:e.label})]},e.value))})}),(0,t.jsx)(E,{title:"Industry",defaultOpen:!1,children:(0,t.jsx)("div",{className:"space-y-2 max-h-44 overflow-y-auto",children:i.map(e=>(0,t.jsxs)("label",{className:"flex items-center gap-2.5 cursor-pointer group",children:[(0,t.jsx)("div",{className:(0,N.cn)("w-4 h-4 rounded border-2 flex items-center justify-center transition-all flex-shrink-0",o.industry.includes(null==e?void 0:e.id)?"bg-primary border-primary":"border-dividerGrey group-hover:border-primary"),onClick:()=>{let l=o.industry;u("industry",l.includes(e.id)?l.filter(l=>l!==e.id):[...l,e.id])},children:o.industry.includes(null==e?void 0:e.id)&&(0,t.jsx)("svg",{className:"w-2.5 h-2.5 text-white",fill:"none",viewBox:"0 0 12 12",children:(0,t.jsx)("path",{d:"M2 6l3 3 5-5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,t.jsx)("span",{onClick:()=>{let l=o.industry;u("industry",l.includes(e.id)?l.filter(l=>l!==e.id):[...l,e.id])},className:"text-14 text-greyDark cursor-pointer group-hover:text-secondary",children:e.name})]},null==e?void 0:e.id))})}),(0,t.jsxs)(E,{title:"Skills",defaultOpen:!1,children:[(0,t.jsx)("input",{type:"text",value:n,onChange:e=>d(e.target.value),placeholder:"Search skills...",className:"w-full border border-dividerGrey rounded-xl px-3 py-2 text-12 mb-3 focus:outline-none focus:ring-2 focus:ring-primary focus:border-primary"}),o.skills.length>0&&(0,t.jsx)("div",{className:"flex flex-wrap gap-1.5 mb-2",children:o.skills.map(e=>(0,t.jsx)(w.AC,{skill:e,removable:!0,active:!0,onRemove:()=>u("skills",o.skills.filter(l=>l!==e))},e.id))}),(0,t.jsx)("div",{className:"flex flex-wrap gap-1.5",children:p.slice(0,10).map(e=>(0,t.jsx)(w.AC,{skill:e,onClick:()=>u("skills",[...o.skills,e])},e.id))})]}),(0,t.jsx)(E,{title:"Benefits",defaultOpen:!1,children:(0,t.jsx)("div",{className:"flex flex-wrap gap-1.5",children:a.map(e=>(0,t.jsx)("button",{onClick:()=>{let l=o.benefits;u("benefits",l.includes(e.id)?l.filter(l=>l!==e.id):[...l,e.id])},className:(0,N.cn)("px-2.5 py-1 rounded-lg text-12 border transition-all",o.benefits.includes(e.id)?"bg-primary/10 text-primary border-primary/30":"border-dividerGrey text-greyDark hover:border-primary/50"),children:e.name},e.id))})})]})]})})}var T=s(48230),B=s.n(T),P=s(89099),R=s(81220),H=s(97685);function U(){var e;let[l,s]=(0,r.useState)([]),[o,c]=(0,r.useState)([]),[u,y]=(0,r.useState)([]),[g,v]=(0,r.useState)([]),[b,f]=(0,r.useState)(!0),[j,k]=(0,r.useState)(""),[A,M]=(0,r.useState)(""),[C,L]=(0,r.useState)("grid"),[z,G]=(0,r.useState)(!1),[D,q]=(0,r.useState)(null),[W,E]=(0,r.useState)(1),[O,T]=(0,r.useState)(null),U=(0,r.useRef)(null),[V,I]=(0,r.useState)(null),$=(0,P.useRouter)(),J=async e=>{T(e);let l=e.slug;$.push("/jobs/".concat(l))};(0,r.useEffect)(()=>{let e=new IntersectionObserver(e=>{V&&e[0].isIntersecting&&(null==V?void 0:V.current_page)<(null==V?void 0:V.last_page)&&!b&&(console.log("loading page",W+1),E(e=>e+1))},{threshold:1});return U.current&&e.observe(U.current),()=>e.disconnect()},[V,b]),(0,r.useEffect)(()=>{Y(),X()},[W,D]),(0,r.useEffect)(()=>{X(),K(),Z()},[]);let X=async()=>{var e;let l=await (0,R.pC)(),s=null==l||null==(e=l.content)?void 0:e.skills;console.log(s,"skills"),c(s)},K=async()=>{var e;let l=await (0,R.Bd)();console.log(l),y((null==l||null==(e=l.content)?void 0:e.benefits)||[])},Z=async()=>{var e;let l=await (0,R.fj)();console.log(l),v((null==l||null==(e=l.content)?void 0:e.industries)||[])},Y=async()=>{var e;let l=await (0,R.S$)(W,D),t=null==l||null==(e=l.content)?void 0:e.jobs;console.log(t,"posts"),s(e=>1===W?(null==t?void 0:t.data)||[]:[...e,...(null==t?void 0:t.data)||[]]),I(t),f(!1)},Q=()=>{q(e=>({...e,keyword:j,location:A})),E(1)},ee=async(e,l)=>{l?(await (0,R._h)({job_post_id:e}),H.Ay.success("Job unsaved")):(await (0,R.vr)({job_post_id:e}),H.Ay.success("Job saved"))},el=async e=>{console.log("filter data",e),E(1),q(e)};return(0,t.jsxs)("div",{className:"min-h-screen bg-offWHite",children:[(0,t.jsx)("div",{className:"fixed top-0 left-0 w-full h-[61px] bg-white shadow-md z-50 py-3 flex justify-center md:hidden",children:(0,t.jsx)(B(),{href:"/",children:(0,t.jsx)(_(),{width:300,height:300,src:"/images/headerLogo.jpg",alt:"
1Velaflow",className:"h-8 w-auto"})})}),(0,t.jsxs)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 pt-20 md:pt-6 pb-24 md:pb-8",children:[(0,t.jsxs)("div",{className:"bg-white border border-dividerGrey rounded-2xl p-4 shadow-sm mb-6",children:[(0,t.jsxs)("div",{className:"flex gap-3 flex-wrap md:flex-nowrap",children:[(0,t.jsxs)("div",{className:"relative flex-1 min-w-0",children:[(0,t.jsx)(a.A,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-grey"}),(0,t.jsx)("input",{type:"text",value:j,onChange:e=>k(e.target.value),onKeyDown:e=>"Enter"===e.key&&Q(),placeholder:"Search jobs, skills, companies...",className:"w-full pl-9 pr-4 py-2.5 border border-dividerGrey rounded-xl text-14 focus:outline-none focus:ring-2 focus:ring-primary focus:border-primary bg-white"})]}),(0,t.jsxs)("div",{className:"relative w-full md:w-52 flex-shrink-0",children:[(0,t.jsx)(i.A,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-grey"}),(0,t.jsx)("input",{type:"text",value:A,onChange:e=>M(e.target.value),placeholder:"City, state or remote",className:"w-full pl-9 pr-4 py-2.5 border border-dividerGrey rounded-xl text-14 focus:outline-none focus:ring-2 focus:ring-primary focus:border-primary bg-white"})]}),(0,t.jsx)("button",{onClick:Q,className:"bg-primary text-white px-6 py-2.5 rounded-xl text-14 font-medium hover:opacity-90 transition-all flex-shrink-0 shadow-sm w-full md:w-auto",children:"Search"})]}),(0,t.jsx)("div",{className:"flex items-center gap-2 mt-3 flex-wrap"})]}),(0,t.jsxs)("div",{className:"relative bg-primary/5 border border-dividerGrey rounded-2xl p-4 sm:p-6 mb-6 overflow-hidden",children:[(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsx)("div",{className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center flex-shrink-0",children:(0,t.jsx)(n.A,{className:"w-5 h-5 text-primary"})}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsx)("p",{className:"font-semibold text-secondary text-14 sm:text-base",children:"Looking to hire?"}),(0,t.jsx)("p",{className:"text-12 sm:text-14 text-grey mt-0.5",children:"Post your job to reach qualified candidates."})]})]}),(0,t.jsxs)(B(),{href:"/jobs/post",className:"mt-4 sm:mt-0 sm:absolute sm:right-40 sm:top-1/2 sm:-translate-y-1/2 inline-flex items-center justify-center gap-1.5 border border-primary text-primary px-4 py-2 rounded-xl text-14 font-medium hover:bg-primary hover:text-white transition-all w-full sm:w-auto",children:[(0,t.jsx)(d.A,{className:"w-4 h-4"}),"Post a Job"]})]}),(0,t.jsxs)("div",{className:"flex gap-6",children:[z&&(0,t.jsx)("div",{className:"fixed inset-0 bg-black/40 z-40 lg:hidden",onClick:()=>G(!1)}),(0,t.jsxs)("aside",{className:(0,N.cn)("hidden lg:block w-[288px] flex-shrink-0 self-start sticky top-6",z?"!fixed !flex !flex-col inset-y-0 left-0 z-50 w-[320px] max-w-[100vw] bg-white shadow-2xl overflow-hidden lg:!relative lg:!shadow-none lg:!w-[288px] lg:!flex-none":""),children:[(0,t.jsxs)("div",{className:"flex items-center justify-between p-4 border-b border-dividerGrey lg:hidden",children:[(0,t.jsxs)("span",{className:"font-semibold text-secondary text-14 flex items-center gap-2",children:[(0,t.jsx)(x,{className:"w-4 h-4"}),"Filters"]}),(0,t.jsx)("button",{onClick:()=>G(!1),className:"p-1.5 rounded-lg hover:bg-greyLight text-greyDark transition-colors","aria-label":"Close filters",children:(0,t.jsx)(m.A,{className:"w-5 h-5"})})]}),(0,t.jsx)("div",{className:"flex-1 overflow-y-auto p-4 lg:p-0",children:(0,t.jsx)(F,{skills:o,benefits:u,industries:g,onChange:el})}),(0,t.jsx)("div",{className:"p-4 border-t border-dividerGrey lg:hidden",children:(0,t.jsx)("button",{onClick:()=>G(!1),className:"w-full py-2.5 bg-primary text-white rounded-xl text-14 font-medium hover:opacity-90 transition-all",children:"Apply Filters"})})]}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsxs)("button",{onClick:()=>G(!0),className:"lg:hidden flex items-center gap-2 border border-dividerGrey bg-white px-3 py-2 rounded-xl text-14 text-secondary hover:bg-greyLight transition-all",children:[(0,t.jsx)(x,{className:"w-4 h-4"}),"Filters"]}),(0,t.jsx)("span",{className:"text-14 text-grey",children:b?"Loading...":"".concat(null!=(e=null==V?void 0:V.total)?e:0," jobs found")})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("button",{onClick:()=>L("grid"),className:(0,N.cn)("w-8 h-8 rounded-lg flex items-center justify-center transition-all","grid"===C?"bg-primary text-white":"bg-white border border-dividerGrey text-grey hover:border-primary"),children:(0,t.jsx)(h,{className:"w-4 h-4"})}),(0,t.jsx)("button",{onClick:()=>L("list"),className:(0,N.cn)("w-8 h-8 rounded-lg flex items-center justify-center transition-all","list"===C?"bg-primary text-white":"bg-white border border-dividerGrey text-grey hover:border-primary"),children:(0,t.jsx)(p.A,{className:"w-4 h-4"})})]})]}),b?(0,t.jsx)("div",{className:(0,N.cn)("grid gap-4","grid"===C?"grid-cols-1 sm:grid-cols-2 lg:grid-cols-2 2xl:grid-cols-3":"grid-cols-1"),children:Array.from({length:6}).map((e,l)=>(0,t.jsx)(w.ff,{},l))}):0===l.length?(0,t.jsx)(w.pp,{title:"No jobs found",description:"Try adjusting your filters or search terms",icon:"search"}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:(0,N.cn)("grid gap-4","grid"===C?"grid-cols-1 sm:grid-cols-2 lg:grid-cols-2 2xl:grid-cols-3":"grid-cols-1"),children:l.map(e=>(0,t.jsx)(S,{job:e,layout:C,onSave:(e,l)=>ee(Number(e),l),isSelected:(null==O?void 0:O.id)===e.id,onView:e=>J(e)},e.id))}),(0,t.jsx)("div",{ref:U,className:"h-10 flex items-center justify-center",children:b&&"Loading more..."})]})]})]})]})]})}},86089:(e,l,s)=>{"use strict";s.d(l,{A:()=>a});var t=s(37876);s(14232);let r=e=>{if(e>=1e3){let l=e/1e3;return"".concat(l%1==0?l:l.toFixed(1),"K")}return"".concat(e)},a=e=>{let{min:l,max:s,currency:a="$",period:i="year",size:n="md"}=e,d="";if(null!=l&&null!=s)d="".concat(a).concat(r(l)," â ").concat(a).concat(r(s));else if(null!=l)d="From ".concat(a).concat(r(l));else{if(null==s)return null;d="Up to ".concat(a).concat(r(s))}return(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 bg-green-50 text-green-font-semibold rounded-full ".concat("sm"===n?"text-xs px-2 py-0.5":"text-sm px-3 py-1"),children:[(0,t.jsx)("span",{className:"font-semibold text-green",children:d}),(0,t.jsxs)("span",{className:"text-grey text-xs",children:["/ ",i]})]})}},88634:(e,l,s)=>{"use strict";s.d(l,{A:()=>a});var t=s(51935);let r={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};r.node;let a=(0,t.A)(r)},91640:(e,l,s)=>{"use strict";s.d(l,{A:()=>a});var t=s(51935);let r={name:"share-2",size:24,node:[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]};r.node;let a=(0,t.A)(r)},94502:(e,l,s)=>{"use strict";s.d(l,{AC:()=>x,Wh:()=>c,X3:()=>p,ff:()=>u,pp:()=>m,q5:()=>h});var t=s(37876),r=s(43588),a=s(18820),i=s(25561),n=s(88634);let d={active:"bg-green/10 text-green",draft:"bg-bgSkyBlue text-secondary",closed:"bg-grey/20 text-grey",applied:"bg-bgSkyBlue text-secondary",offer:"bg-green/10 text-green",rejected:"bg-red/10 text-red",withdrawn:"bg-grey/20 text-grey",new:"bg-bgSkyBlue text-secondary",viewed:"bg-grey/10 text-greyDark",paused:"bg-greyLight text-greyDark",
1interview:"bg-bgSkyBlue text-secondary",shortlisted:"bg-secondary/10 text-secondary"},o={full_time:"Full Time",part_time:"Part Time",contract:"Contract",internship:"Internship",freelance:"Freelance",temporary:"Temporary",remote:"Remote",hybrid:"Hybrid",onsite:"On-site",interview_scheduled:"Interview Scheduled"};function c(e){let{status:l,size:s="md"}=e,a=d[l.toLowerCase()]||"bg-grey/10 text-greyDark",i=o[l]||l.charAt(0).toUpperCase()+l.slice(1);return(0,t.jsx)("span",{className:(0,r.cn)("inline-flex items-center font-medium rounded-full capitalize","sm"===s?"px-2 py-0.5 text-12":"px-3 py-1 text-14",a),children:i})}function x(e){let{skill:l,removable:s,onRemove:a,onClick:i,active:n}=e;return(0,t.jsxs)("span",{onClick:i,className:(0,r.cn)("inline-flex items-center gap-1 px-2.5 py-1 rounded-lg text-12 font-medium border transition-all duration-200 cursor-default",n?"bg-primary text-white border-primary":"bg-greyLight text-greyDark border-dividerGrey hover:border-primary hover:text-primary",i&&"cursor-pointer"),children:[null==l?void 0:l.name,s&&(0,t.jsx)("button",{onClick:e=>{e.stopPropagation(),null==a||a()},className:"ml-0.5 hover:text-red transition-colors",type:"button",children:"\xd7"})]})}function m(e){let{icon:l="jobs",title:s,description:r,action:d}=e,o="jobs"===l?a.A:"company"===l?i.A:n.A;return(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center py-16 px-6 text-center",children:[(0,t.jsx)("div",{className:"w-16 h-16 rounded-2xl bg-bgSkyBlue flex items-center justify-center mb-4",children:"string"==typeof l?(0,t.jsx)(o,{className:"w-8 h-8 text-primary"}):l}),(0,t.jsx)("h3",{className:"text-secondary font-semibold text-lg mb-2",children:s}),r&&(0,t.jsx)("p",{className:"text-grey text-14 max-w-sm mb-6",children:r}),d&&(0,t.jsx)("button",{onClick:d.onClick,className:"bg-primary text-white px-5 py-2.5 rounded-xl text-14 font-medium hover:opacity-90 transition-all duration-200",children:d.label})]})}function u(){return(0,t.jsxs)("div",{className:"bg-white border border-dividerGrey rounded-2xl p-5 animate-pulse",children:[(0,t.jsxs)("div",{className:"flex items-start gap-3 mb-4",children:[(0,t.jsx)("div",{className:"w-12 h-12 bg-greyLight rounded-xl flex-shrink-0"}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("div",{className:"h-4 bg-greyLight rounded w-3/4 mb-2"}),(0,t.jsx)("div",{className:"h-3 bg-greyLight rounded w-1/2"})]})]}),(0,t.jsxs)("div",{className:"flex gap-2 mb-3",children:[(0,t.jsx)("div",{className:"h-6 bg-greyLight rounded-lg w-16"}),(0,t.jsx)("div",{className:"h-6 bg-greyLight rounded-lg w-20"}),(0,t.jsx)("div",{className:"h-6 bg-greyLight rounded-lg w-14"})]}),(0,t.jsxs)("div",{className:"flex gap-2 mb-4",children:[(0,t.jsx)("div",{className:"h-6 bg-greyLight rounded-full w-12"}),(0,t.jsx)("div",{className:"h-6 bg-greyLight rounded-full w-16"}),(0,t.jsx)("div",{className:"h-6 bg-greyLight rounded-full w-14"})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between pt-3 border-t border-dividerGrey",children:[(0,t.jsx)("div",{className:"h-3 bg-greyLight rounded w-20"}),(0,t.jsx)("div",{className:"h-3 bg-greyLight rounded w-16"})]})]})}function h(e){let{name:l="Unknown User",size:s="md",className:a}=e,i=(null==l?void 0:l.split(" ").map(e=>e[0]).join("").slice(0,2).toUpperCase())||"NA";return(0,t.jsx)("div",{className:(0,r.cn)("rounded-xl bg-primary/10 text-primary font-semibold flex items-center justify-center flex-shrink-0",{sm:"w-8 h-8 text-12",md:"w-10 h-10 text-14",lg:"w-14 h-14 text-lg"}[s],a),children:i})}function p(e){let{title:l,subtitle:s,action:r}=e;return(0,t.jsxs)("div",{className:"flex items-start justify-between mb-6",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-secondary font-semibold text-lg",children:l}),s&&(0,t.jsx)("p",{className:"text-grey text-14 mt-0.5",children:s})]}),r&&(0,t.jsx)("div",{children:r})]})}},96199:(e,l,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/jobs",function(){return s(81953)}])}},e=>{e.O(0,[377,636,6593,8792],()=>e(e.s=96199)),_N_E=e.O()}]);
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.