1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6914],{9034:(e,l,s)=>{"use strict";s.r(l),s.d(l,{default:()=>B});var a=s(37876),t=s(14232),r=s(48230),n=s.n(r),i=s(34468),o=s(93846),d=s(78231),c=s(51935);let m={name:"trending-up",size:24,node:[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]]};m.node;let x=(0,c.A)(m),p={name:"dollar-sign",size:24,node:[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]};p.node;let u=(0,c.A)(p),h={name:"book-open",size:24,node:[["path",{d:"M12 5v16",key:"1f6ucr"}],["path",{d:"M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z",key:"1fyvmf"}]]};h.node;let y=(0,c.A)(h);var b=s(77489),v=s(27278),j=s(38852),g=s(86904),f=s(15380),N=s(81012),k=s(86089),w=s(54587),_=s.n(w);let A=e=>{let{name:l,logo:s,industry:t,size:r,location:n,website:i,compact:o=!1}=e;console.log(s,"llllllllllll");let d=(null==l?void 0:l.split(" ").map(e=>e[0]).slice(0,2).join("").toUpperCase())||"";return(0,a.jsxs)("div",{className:"flex items-start gap-".concat(o?"3":"4"),children:[(0,a.jsx)("div",{className:"flex-shrink-0 flex items-center justify-center rounded-xl font-bold text-white bg-primary ".concat(o?"w-10 h-10 text-sm":"w-14 h-14 text-base"),children:s?(0,a.jsx)(_(),{width:300,height:300,src:s,alt:l,className:"w-full h-full rounded-xl object-cover"}):d}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("div",{className:"flex items-center gap-2 flex-wrap",children:(0,a.jsx)("span",{className:"font-semibold text-black ".concat(o?"text-sm":"text-base"),children:l})}),(0,a.jsxs)("div",{className:"flex flex-wrap gap-x-3 gap-y-1 mt-1 ".concat(o?"text-xs":"text-sm"," text-grey"),children:[t&&(0,a.jsx)("span",{children:t}),r&&(0,a.jsxs)(a.Fragment,{children:[t&&(0,a.jsx)("span",{children:"\xb7"}),(0,a.jsxs)("span",{children:[r," employees"]})]}),n&&(0,a.jsxs)(a.Fragment,{children:[(t||r)&&(0,a.jsx)("span",{children:"\xb7"}),(0,a.jsx)("span",{children:n})]})]}),i&&!o&&(0,a.jsx)("a",{href:i,target:"_blank",rel:"noreferrer",className:"text-xs text-primary hover:underline mt-1 inline-block",children:i.replace(/^https?:\/\//,"")})]})]})},D=e=>{let{backButton:l,header:s,mainContent:t,stickyCard:r,similarJobs:n,mobileCTA:i}=e;return(0,a.jsxs)("div",{className:"min-h-screen bg-offWHite pt-14 md:pt-0 pb-20 md:pb-0",children:[(0,a.jsxs)("div",{className:"max-w-7xl mx-auto px-4 py-6 md:py-10",children:[l&&(0,a.jsx)("div",{className:"mb-4",children:l}),(0,a.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[(0,a.jsxs)("div",{className:"lg:col-span-2 space-y-6",children:[s,t,n&&(0,a.jsx)("div",{children:n})]}),(0,a.jsx)("div",{className:"hidden lg:block",children:(0,a.jsx)("div",{className:"sticky top-6",children:r})})]})]}),i&&(0,a.jsx)("div",{className:"md:hidden fixed bottom-0 left-0 right-0 bg-white border-t border-dividerGrey px-4 py-3 z-50",children:i})]})};var S=s(81220),C=s(14e3),z=s(97685),G=s(10553);let M={"Health Insurance":i.A,"Flexible Hours":o.A,"Remote Work":d.A,"Career Growth":x,"Annual Bonus":u,"Learning Budget":y};function B(){var e,l,s,r,i,o,d,c,m,x,p,u,h,y,w,B,L,F,H,J,U,q,P,T,E,W,K,R,V,O;let X=(0,C.useParams)(),$=(null==X?void 0:X.id)||"",{data:I}=(0,G.useSession)();console.log(I,"sessionsession");let Q=null==I||null==(l=I.user)||null==(e=l.userData)?void 0:e.id,Y=(0,C.useRouter)(),[Z,ee]=(0,t.useState)(!1),[el,es]=(0,t.useState)(null),[ea,et]=(0,t.useState)([]);(0,t.useEffect)(()=>{let e=async()=>{var e;let l=await (0,S.XK)($),s=null==l||null==(e=l.content)?void 0:e.jobs;console.log(s,"similarjobs"),et(s)};(async()=>{var e;let l=await (0,S.xH)($),s=null==l||null==(e=l.content)?void 0:e.post;console.log(s,"job"),es(s||{}),ee(null==s?void 0:s.is_saved)})(),e()},[$]);let er=async()=>{Z?(await (0,S._h)({job_post_id:$}),ee(!1),z.Ay.success("Job unsaved")):(await (0,S.vr)({job_post_id:$}),ee(!0),z.Ay.success("Job saved"))},en=async e=>{Y.push("/company/".concat(e))},ei=(0,a.jsxs)(n(),{href:"/jobs",className:"inline-flex items-center gap-2 text-sm text-grey hover:text-primary transition-colors",children:[(0,a.jsx)(b.A,{className:"w-4 h-4"}),"Back to Jobs"]}),eo=(0,a.jsxs)("div",{className:"bg-white border border-dividerGrey rounded-2xl p-6",children:[(0,a.jsxs)("div",{className:"flex flex-col md:flex-row md:items-start gap-4",children:[(0,a.jsx)("div",{className:'flex-shrink-0 flex items-center justify-center rounded-xl font-bold text-white bg-primary w-14 h-14 text-base"\n ',children:(null==el||null==(s=el.company)?void 0:s.logo_url)?(0,a.jsx)(_(),{width:300,height:300,src:null==el||null==(r=el.company)?void 0:r.logo_url,alt:null==el||null==(i=el.company)?void 0:i.company_name,className:"w-full h-full rounded-xl object-cover"}):(0,a.jsx)("span",{children:(null==el||null==(d=el.company)||null==(o=d.company_name)?void 0:o.split(" ").map(e=>e[0]).join("").slice(0,2).toUpperCase())||"NA"})}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsxs)("div",{className:"flex items-start justify-between gap-3 flex-wrap",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h1",{className:"text-xl font-bold text-black",children:null==el?void 0:el.job_title}),(0,a.jsx)("div",{className:"flex items-center gap-2 mt-1 flex-wrap",children:(0,a.jsx)("span",{className:"text-sm font-medium text-greyDark",onClick:()=>{var e;(null==el||null==(e=el.company)?void 0:e.slug)&&en(el.company.slug)},style:{cursor:"pointer"}
1,children:null==el||null==(m=el.company)||null==(c=m.company_name)?void 0:c.split(" ").map(e=>e[0]).join("").toUpperCase()})})]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[Q!=(null==el?void 0:el.user_id)&&(0,a.jsx)("button",{onClick:()=>er(),className:"p-2.5 rounded-xl border transition-colors ".concat(Z?"border-primary bg-bgSkyBlue text-primary":"border-dividerGrey text-grey hover:border-primary hover:text-primary"),children:(0,a.jsx)(v.A,{className:"w-5 h-5",fill:Z?"currentColor":"none"})}),(0,a.jsx)(n(),{href:"/jobs/".concat(X.id,"/apply"),className:"px-6 py-2.5 bg-primary hover:opacity-90 text-white text-sm font-semibold rounded-xl transition-colors",children:"Apply Now"})]})]}),(0,a.jsxs)("div",{className:"flex flex-wrap gap-3 mt-4",children:[(0,a.jsxs)("span",{className:"flex items-center gap-1.5 text-sm text-greyDark",children:[(0,a.jsx)(j.A,{className:"w-4 h-4 text-grey"}),null==el||null==(x=el.location)?void 0:x.address]}),(null==el?void 0:el.job_type)&&(0,a.jsx)(N.A,{type:el.job_type}),(0,a.jsx)(k.A,{min:Math.round(Number(null==el||null==(p=el.salary)?void 0:p.min_salary)),max:Math.round(Number(null==el||null==(u=el.salary)?void 0:u.max_salary))}),(0,a.jsxs)("span",{className:"text-xs text-grey",children:["Posted"," ",(null==el?void 0:el.created_at)?new Date(el.created_at).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}):""]})," "]})]})]}),(0,a.jsx)("div",{className:"flex gap-6 mt-6 border-t border-dividerGrey pt-4 overflow-x-auto",children:["Job Description"].map((e,l)=>(0,a.jsx)("button",{className:"text-sm font-medium pb-1 border-b-2 whitespace-nowrap transition-colors ".concat(0===l?"border-primary text-primary":"border-transparent text-grey hover:text-greyDark"),children:e},e))})]}),ed=(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsxs)("div",{className:"bg-white border border-dividerGrey rounded-2xl p-6",children:[(0,a.jsx)("h2",{className:"text-base font-semibold text-black mb-3",children:"Job Description"}),(0,a.jsx)("p",{className:"text-sm text-greyDark leading-relaxed",children:null==el?void 0:el.description}),(0,a.jsx)("h3",{className:"text-sm font-semibold text-black mt-6 mb-3",children:"Requirements"}),(0,a.jsx)("ul",{className:"space-y-2",children:null==el||null==(h=el.requirements)?void 0:h.split("\n").filter(e=>""!==e.trim()).map((e,l)=>(0,a.jsxs)("li",{className:"flex items-start gap-2.5 text-sm text-greyDark",children:[(0,a.jsx)(g.A,{className:"w-4 h-4 text-primary mt-0.5 flex-shrink-0",strokeWidth:2.5}),e]},l))})]}),(0,a.jsxs)("div",{className:"bg-white border border-dividerGrey rounded-2xl p-6",children:[(0,a.jsx)("h2",{className:"text-base font-semibold text-black mb-4",children:"Required Skills"}),(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:null==el||null==(y=el.skills)?void 0:y.map(e=>(0,a.jsx)("span",{className:"px-3 py-1.5 bg-bgSkyBlue text-primary text-sm font-medium rounded-xl",children:e.skill.name},e.id))})]}),(0,a.jsxs)("div",{className:"bg-white border border-dividerGrey rounded-2xl p-6",children:[(0,a.jsx)("h2",{className:"text-base font-semibold text-black mb-4",children:"What We Offer"}),(0,a.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-3",children:null==el||null==(w=el.benefits)?void 0:w.map(e=>{let l=M[e.label];return(0,a.jsxs)("div",{className:"flex items-center gap-3 p-3 bg-offWHite rounded-xl",children:[l&&(0,a.jsx)(l,{className:"w-5 h-5 text-primary flex-shrink-0"}),(0,a.jsx)("span",{className:"text-sm text-greyDark font-medium",children:e.benefit.name})]},e.label)})})]}),(0,a.jsxs)("div",{className:"bg-white border border-dividerGrey rounded-2xl p-6",children:[(0,a.jsx)("h2",{className:"text-base font-semibold text-black mb-4",children:"About Company"}),(0,a.jsx)(A,{name:null!=(K=null==el||null==(B=el.company)?void 0:B.company_name)?K:"",industry:null==el||null==(L=el.company)?void 0:L.industry,size:null==el||null==(F=el.company)?void 0:F.company_size,location:null==el||null==(H=el.company)?void 0:H.location,website:null==el||null==(J=el.company)?void 0:J.website,logo:null==el||null==(U=el.company)?void 0:U.logo_url}),(0,a.jsx)("p",{className:"text-sm text-greyDark mt-4 leading-relaxed",children:null!=(R=null==el||null==(q=el.company)?void 0:q.about_company)?R:""}),(0,a.jsxs)(n(),{href:"/company/".concat(null==el||null==(P=el.company)?void 0:P.slug),className:"inline-flex items-center gap-1 text-sm text-primary font-medium mt
1-3 hover:underline",children:["View Company Profile",(0,a.jsx)(f.A,{className:"w-3.5 h-3.5"})]})]})]}),ec=(0,a.jsxs)("div",{className:"bg-white border border-dividerGrey rounded-2xl p-6 space-y-5",children:[(0,a.jsx)("div",{children:(0,a.jsx)(k.A,{min:null!=(V=null==el||null==(T=el.salary)?void 0:T.min_salary)?V:0,max:null!=(O=null==el||null==(E=el.salary)?void 0:E.max_salary)?O:0})}),(0,a.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,a.jsxs)("div",{className:"flex justify-between",children:[(0,a.jsx)("span",{className:"text-grey",children:"Job Type"}),(0,a.jsxs)("span",{className:"font-medium text-greyDark",children:[" ",(null==el?void 0:el.job_type)&&(0,a.jsx)(N.A,{type:el.job_type})]})]},"job_type"),(0,a.jsxs)("div",{className:"flex justify-between",children:[(0,a.jsx)("span",{className:"text-grey",children:"Location"}),(0,a.jsx)("span",{className:"font-medium text-greyDark",children:null==el||null==(W=el.location)?void 0:W.address})]},"location"),(0,a.jsxs)("div",{className:"flex justify-between",children:[(0,a.jsx)("span",{className:"text-grey",children:"Deadline"}),(0,a.jsx)("span",{className:"font-medium text-greyDark",children:(null==el?void 0:el.application_deadline)?new Date(el.application_deadline).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}):""})]},"application_deadline"),(0,a.jsxs)("div",{className:"flex justify-between",children:[(0,a.jsx)("span",{className:"text-grey",children:"Posted"}),(0,a.jsx)("span",{className:"font-medium text-greyDark",children:(null==el?void 0:el.created_at)?new Date(el.created_at).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}):""})]},"posted")]}),(0,a.jsx)(n(),{href:"/jobs/".concat(X.id,"/apply"),className:"block w-full py-3 bg-primary hover:opacity-90 text-white text-sm font-semibold text-center rounded-xl transition-colors",children:"Apply Now"}),Q!=(null==el?void 0:el.user_id)&&(0,a.jsx)("button",{onClick:()=>er(),className:"block w-full py-3 text-sm font-semibold text-center rounded-xl border transition-colors ".concat(Z?"bg-bgSkyBlue border-primary text-primary":"border-dividerGrey text-greyDark hover:border-primary hover:text-primary"),children:Z?"Saved":"Save Job"})]}),em=(0,a.jsxs)("div",{className:"bg-white border border-dividerGrey rounded-2xl p-6",children:[(0,a.jsx)("h2",{className:"text-base font-semibold text-black mb-4",children:"Similar Jobs"}),(0,a.jsx)("div",{className:"space-y-3",children:ea.length>0?ea.map(e=>{var l,s,t,r,i,o;return(0,a.jsxs)(n(),{href:"/jobs/".concat(btoa(e.id.toString())),className:"flex items-center gap-4 p-4 rounded-xl border border-dividerGrey hover:border-primary hover:shadow-sm transition-all",children:[(0,a.jsx)("div",{className:"w-10 h-10 rounded-xl bg-bgSkyBlue flex items-center justify-center text-primary font-bold text-xs flex-shrink-0",children:null==e||null==(s=e.company)||null==(l=s.company_name)?void 0:l.slice(0,2).toUpperCase()}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"text-sm font-semibold text-black truncate",children:e.job_title}),(0,a.jsxs)("p",{className:"text-xs text-grey truncate",children:[null==e||null==(t=e.company)?void 0:t.company_name," \xb7 ",null==e||null==(r=e.location)?void 0:r.address]})]}),(0,a.jsxs)("div",{className:"text-right flex-shrink-0",children:[(0,a.jsxs)("p",{className:"text-xs font-semibold text-green",children:["$",((null==e||null==(i=e.salary)?void 0:i.min_salary)/1e3).toFixed(0),"Kâ$",((null==e||null==(o=e.salary)?void 0:o.max_salary)/1e3).toFixed(0),"K"]}),(null==el?void 0:el.job_type)&&(0,a.jsx)(N.A,{type:el.job_type})]})]},e.id)}):"No similare jobs found"})]}),ex=(0,a.jsxs)("div",{className:"flex gap-3",children:[(0,a.jsx)("button",{onClick:()=>ee(e=>!e),className:"px-4 py-3 rounded-xl border text-sm font-semibold transition-colors ".concat(Z?"border-primary bg-bgSkyBlue text-primary":"border-dividerGrey text-greyDark"),children:Z?"Saved":"Save"}),(0,a.jsx)(n(),{onClick:()=>{(null==el?void 0:el.apply_method)=="external"?window.open(null==el?void 0:el.external_apply_url,"_blank"):(console.log("/jobs/".concat(X.id,"/apply")),Y.push("/jobs/".concat(X.id,"/apply")))},href:"#",className:"flex-1 py-3 bg-primary text-white text-sm font-semibold text-center rounded-xl hover:bg-secondary transition-colors",children:"Apply Now"})]});return(0,a.jsxs)(a.Fragment,{children:[(0,a.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,a.jsx)(n(),{href:"/",children:(0,a.jsx)(_(),{width:300,height:300,src:"/images/headerLogo.jpg",alt:"
1Velaflow",className:"h-8 w-auto"})})}),(0,a.jsx)(D,{backButton:ei,header:eo,mainContent:ed,stickyCard:ec,similarJobs:em,mobileCTA:ex})]})}},15380:(e,l,s)=>{"use strict";s.d(l,{A:()=>r});var a=s(51935);let t={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};t.node;let r=(0,a.A)(t)},15492:(e,l,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/jobs/[id]",function(){return s(9034)}])},27278:(e,l,s)=>{"use strict";s.d(l,{A:()=>r});var a=s(51935);let t={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"}]]};t.node;let r=(0,a.A)(t)},34468:(e,l,s)=>{"use strict";s.d(l,{A:()=>r});var a=s(51935);let t={name:"heart",size:24,node:[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]]};t.node;let r=(0,a.A)(t)},38852:(e,l,s)=>{"use strict";s.d(l,{A:()=>r});var a=s(51935);let t={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"}]]};t.node;let r=(0,a.A)(t)},77489:(e,l,s)=>{"use strict";s.d(l,{A:()=>r});var a=s(51935);let t={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};t.node;let r=(0,a.A)(t)},78231:(e,l,s)=>{"use strict";s.d(l,{A:()=>r});var a=s(51935);let t={name:"globe",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]};t.node;let r=(0,a.A)(t)},81012:(e,l,s)=>{"use strict";s.d(l,{A:()=>r});var a=s(37876);s(14232);let t={full_time:{label:"Full Time",className:"bg-bgSkyBlue text-primary"},part_time:{label:"Part Time",className:"bg-secondary/10 text-secondary"},contract:{label:"Contract",className:"bg-greyLight text-greyDark"},internship:{label:"Internship",className:"bg-bgSkyBlue text-secondary"},freelance:{label:"Freelance",className:"bg-green/10 text-green"},temporary:{label:"Temporary",className:"bg-orange-100 text-orange-700"}},r=e=>{var l;let{type:s,size:r="md"}=e,n=null!=(l=t[s])?l:{label:s.replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase()),className:"bg-greyLight text-greyDark"};return(0,a.jsx)("span",{className:"inline-flex items-center rounded-full font-medium ".concat(n.className," ").concat("sm"===r?"text-xs px-2 py-0.5":"text-xs px-3 py-1"),children:n.label})}},86089:(e,l,s)=>{"use strict";s.d(l,{A:()=>r});var a=s(37876);s(14232);let t=e=>{if(e>=1e3){let l=e/1e3;return"".concat(l%1==0?l:l.toFixed(1),"K")}return"".concat(e)},r=e=>{let{min:l,max:s,currency:r="$",period:n="year",size:i="md"}=e,o="";if(null!=l&&null!=s)o="".concat(r).concat(t(l)," â ").concat(r).concat(t(s));else if(null!=l)o="From ".concat(r).concat(t(l));else{if(null==s)return null;o="Up to ".concat(r).concat(t(s))}return(0,a.jsxs)("span",{className:"inline-flex items-center gap-1 bg-green-50 text-green-font-semibold rounded-full ".concat("sm"===i?"text-xs px-2 py-0.5":"text-sm px-3 py-1"),children:[(0,a.jsx)("span",{className:"font-semibold text-green",children:o}),(0,a.jsxs)("span",{className:"text-grey text-xs",children:["/ ",n]})]})}},86904:(e,l,s)=>{"use strict";s.d(l,{A:()=>r});var a=s(51935);let t={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};t.node;let r=(0,a.A)(t)}},e=>{e.O(0,[377,636,6593,8792],()=>e(e.s=15492)),_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.