1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8842],{475:e=>{e.exports={style:{fontFamily:"'Poppins', 'Poppins Fallback'",fontStyle:"normal"},className:"__className_6bee3b",variable:"__variable_6bee3b"}},7771:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});var r=s(51935);let a={name:"eye",size:24,node:[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]};a.node;let l=(0,r.A)(a)},9406:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});var r=s(51935);let a={name:"trash",size:24,node:[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],aliases:["trash-2"]};a.node;let l=(0,r.A)(a)},11976:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});var r=s(51935);let a={name:"circle-user",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]],aliases:["user-circle"]};a.node;let l=(0,r.A)(a)},12121:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});var r=s(51935);let a={name:"crown",size:24,node:[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]]};a.node;let l=(0,r.A)(a)},16353:(e,t,s)=>{"use strict";s.d(t,{A:()=>k});var r=s(37876),a=s(48230),l=s.n(a),i=s(14e3),n=s(23167),d=s(18820),c=s(62822),o=s(64310),x=s(34468),h=s(80196),m=s(93846),u=s(11976),p=s(25561),y=s(12121),b=s(43588);let g=[{label:"Jobs Overview",href:"/dashboard/jobs",icon:n.A},{label:"My Jobs",href:"/jobs/manage",icon:d.A},{label:"Post a Job",href:"/jobs/post",icon:c.A}],f=[{label:"My Applications",href:"/jobs/my-applications",icon:o.A},{label:"Saved Jobs",href:"/jobs/saved",icon:x.A}],v=[{label:"Packages",href:"/jobs/plan",icon:h.A},{label:"Payment History",href:"/jobs/payment-history",icon:m.A}],j=[{label:"Packages",href:"/membership",icon:h.A},{label:"Billing History",href:"/billing-history",icon:m.A}],N=[{label:"Profile",href:"/settings",icon:u.A},{label:"Company Profile",href:"/company/profile",icon:p.A}];function w(e){let{href:t,icon:s,label:a,active:i}=e;return(0,r.jsxs)(l(),{href:t,className:(0,b.cn)("flex items-center gap-3 px-3 py-2.5 rounded-xl text-sm font-medium transition-colors",i?"bg-primary/10 text-primary font-semibold":"text-greyDark hover:bg-greyLight hover:text-secondary"),children:[(0,r.jsx)(s,{size:17,className:i?"text-primary":"text-grey"}),a]})}function k(){let e=(0,i.usePathname)();return(0,r.jsxs)("div",{className:"flex flex-col h-full py-4 px-3 gap-1",children:[(0,r.jsx)("div",{className:"space-y-0.5 mb-4",children:g.map(t=>(0,r.jsx)(w,{...t,active:e===t.href},t.href))}),(0,r.jsx)("p",{className:"text-[10px] font-bold text-grey uppercase tracking-widest px-3 mb-1",children:"Company"}),(0,r.jsx)("div",{className:"space-y-0.5 mb-4",children:N.map(t=>(0,r.jsx)(w,{...t,active:e===t.href},t.href))}),(0,r.jsx)("p",{className:"text-[10px] font-bold text-grey uppercase tracking-widest px-3 mb-1",children:"Manage"}),(0,r.jsx)("div",{className:"space-y-0.5 mb-4",children:f.map(t=>(0,r.jsx)(w,{...t,active:e===t.href},t.href))}),(0,r.jsx)("p",{className:"text-[10px] font-bold text-grey uppercase tracking-widest px-3 mb-1",children:"Job Billing"}),(0,r.jsx)("div",{className:"space-y-0.5 mb-4",children:v.map(t=>(0,r.jsx)(w,{...t,active:e===t.href},t.href))}),(0,r.jsx)("p",{className:"text-[10px] font-bold text-grey uppercase tracking-widest px-3 mb-1",children:"Membership Billing"}),(0,r.jsx)("div",{className:"space-y-0.5 mb-4",children:j.map(t=>(0,r.jsx)(w,{...t,active:e===t.href},t.href))}),(0,r.jsxs)("div",{className:"mt-auto mx-1 rounded-2xl bg-greyLight border border-dividerGrey p-4",children:[(0,r.jsx)(y.A,{size:18,className:"text-yellow-400 mb-2"}),(0,r.jsx)("p",{className:"text-sm font-bold text-secondary leading-snug",children:"Need to post more jobs?"}),(0,r.jsx)("p",{className:"text-xs text-grey mt-1 mb-3 leading-relaxed",children:"Upgrade to a package and post unlimited jobs easily."}),(0,r.jsx)(l(),{href:"/jobs/plan",className:"block w-full py-2 rounded-xl bg-primary text-white text-xs font-semibold text-center hover:bg-primary/90 transition-colors",children:"View Packages"})]})]})}},18820:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});var r=s(51935);let a={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"}]]};a.node;let l=(0,r.A)(a)},20368:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>V});var r=s(37876),a=s(475),l=s.n(a),i=s(14232),n=s(98477),d=s(48230),c=s.n(d),o=s(7771),x=s(51935);let h={name:"pen",size:24,node:[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],aliases:["edit-2"]};h.node;let m=(0,x.A)(h);var u=s(28107),p=s(88327),y=s(47716),b=s(46115),g=s(62822),f=s(88634),v=s(9406),j=s(63925),N=s(49506),w=s(94502),k=s(16353),A=s(54587),M=s.n(A),L=s(14e3),z=s(43588),C=s(81220),S=s(97685);let _=[{label:"All",value:"all"},{label:"Active",value:"active"},{label:"Draft",value:"draft"},{label:"Closed",value:"closed"}];function D(e){return new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}function P(e){let{open:t,onClose:s,onConfirm:a,title:l,description:i,confirmLabel:n,confirmClassName:d,icon:c}=e;return t?(0,r.jsxs)("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center",children:[(0,r.jsx)("div",{className:"absolute inset-0 bg-black/30 backdrop-blur-sm",onClick:s}),(0,r.jsxs)("div",{className:"relative bg-white rounded-2xl shadow-xl p-6 w-full max-w-sm mx-4 z-10",children:[(0,r.jsx)("div",{className:"flex items-center justify-center w-12 h-12 rounded-full bg-greyLight mx-auto mb-4",children:c}),(0,r.jsx)("h3",{className:"text-16 font-semibold text-secondary text-center mb-1",children:l}),(0,r.jsx)("p",{className:"text-14 text-grey text-center mb-6",children:i}),(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)("button",{onClick:s,className:"flex-1 px-4 py-2.5 rounded-xl border border-dividerGrey text-14 font-medium text-greyDark hover:bg-greyLight transition-all",children:"Cancel"}),(0,r.jsx)("button",{onClick:()=>{a(),s()},className:(0,z.cn)("flex-1 px-4 py-2.5 rounded-xl text-14 font-medium transition-all",null!=d?d:"bg-primary text-white hover:opacity-90"),children:n})]})]})]}):null}function B(e){var t,s;let{job:a,openMenuId:l,onOpenMenu:i}=e,n=l===Number(a.id);return(0,r.jsxs)("tr",{className:"border-b border-dividerGrey hover:bg-greyLight transition-colors group",children:[(0,r.jsx)("td",{className:"px-4 py-3.5",children:(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"text-14 font-medium text-secondary group-hover:text-primary transition-colors",children:a.job_title}),(0,r.jsxs)("div",{className:"text-12 text-grey mt-0.5",children:[null==a||null==(t=a.company)?void 0:t.company_name," \xb7 ",a.work_mode_label]})]})}),(0,r.jsx)("td",{className:"px-4 py-3.5 text-center",children:(0,r.jsx)("span",{className:"text-14 font-semibold text-secondary",children:null!=(s=null==a?void 0:a.applications_count)?s:0})}),(0,r.jsx)("td",{className:"px-4 py-3.5",children:(0,r.jsx)(w.Wh,{status:a.status,size:"sm"})}),(0,r.jsx)("td",{className:"px-4 py-3.5 text-14 text-greyDark whitespace-nowrap",children:D(a.created_at)}),(0,r.jsx)("td",{className:"px-4 py-3.5",children:(0,r.jsxs)("div",{className:"flex items-center gap-1",children:[(0,r.jsx)(c(),{href:"/jobs/".concat(a.slug),className:"w-7 h-7 rounded-lg flex items-center justify-center text-grey hover:bg-bgSkyBlue hover:text-primary transition-all",title:"View",children:(0,r.jsx)(o.A,{className:"w-3.5 h-3.5"})}),(0,r.jsx)(c(),{href:"/jobs/".concat(a.slug,"/edit"),className:"w-7 h-7 rounded-lg flex items-center justify-center text-grey hover:bg-bgSkyBlue hover:text-primary transition-all",title:"Edit",children:(0,r.jsx)(m,{className:"w-3.5 h-3.5"})}),(0,r.jsx)(c(),{href:"/jobs/".concat(a.slug,"/applications"),className:"w-7 h-7 rounded-lg flex items-center justify-center text-grey hover:bg-bgSkyBlue hover:text-primary transition-all",title:"Analytics",children:(0,r.jsx)(u.A,{className:"w-3.5 h-3.5"})}),(0,r.jsx)("button",{onClick:e=>{let t=e.currentTarget.getBoundingClientRect();i(Number(a.id),t)},className:(0,z.cn)("w-7 h-7 rounded-lg flex items-center justify-center transition-all",n?"bg-bgSkyBlue text-primary":"text-grey hover:bg-bgSkyBlue hover:text-primary"),children:(0,r.jsx)(p.A,{className:"w-3.5 h-3.5"})})]})})]})}function G(e){var t,s;let{job:a,openMenuId:l,onOpenMenu:i}=e,n=l===Number(a.id);return(0,r.jsxs)("div",{className:"bg-white border border-dividerGrey rounded-2xl p-4",children:[(0,r.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)("div",{className:"text-14 font-medium text-secondary truncate",children:a.job_title}),(0,r.jsxs)("div",{className:"text-12 text-grey mt-0.5",children:[null==a||null==(t=a.company)?void 0:t.company_name," \xb7 ",a.work_mode]})]}),(0,r.jsx)(w.Wh,{status:a.status,size:"sm"})]}),(0,r.jsxs)("div",{className:"flex items-center gap-4 mt-3",children:[(0,r.jsxs)("div",{className:"text-12 text-grey",children:["Applications"," ",(0,r.jsx)("span",{className:"text-14 font-semibold text-secondary ml-1",children:null!=(s=null==a?void 0:a.applications_count)?s:0})]}),(0,r.jsxs)("div",{className:"text-12 text-grey",children:["Posted"," ",(0,r.jsx)("span",{className:"text-14 text-greyDark ml-1",children:D(a.created_at)})]})]}),(0,r.jsxs)("div",{className:"flex items-center gap-1 mt-3 pt-3 border-t border-dividerGrey",children:[(0,r.jsx)(c(),{href:"/jobs/".concat(a.slug),className:"w-7 h-7 rounded-lg flex items-center justify-center text-grey hover:bg-bgSkyBlue hover:text-primary transition-all",title:"View",children:(0,r.jsx)(o.A,{className:"w-3.5 h-3.5"})}),(0,r.jsx)(c(),{href:"/jobs/".concat(a.slug,"/edit"),className:"w-7 h-7 rounded-lg flex items-center justify-center text-grey hover:bg-bgSkyBlue hover:text-primary transition-all",title:"Edit",children:(0,r.jsx)(m,{className:"w-3.5 h-3.5"})}),(0,r.jsx)(c(),{href:"/jobs/".concat(a.slug,"/applications"),className:"w-7 h-7 rounded-lg flex items-center justify-center text-grey hover:bg-bgSkyBlue hover:text-primary transition-all",title:"Analytics",children:(0,r.jsx)(u.A,{className:"w-3.5 h-3.5"})}),(0,r.jsx)("button",{onClick:e=>{let t=e.currentTarget.getBoundingClientRect();i(Number(a.id),t)},className:(0,z.cn)("w-7 h-7 rounded-lg flex items-center justify-center ml-auto transition-all",n?"bg-bgSkyBlue text-primary":"text-grey hover:bg-bgSkyBlue hover:text-primary"),children:(0,r.jsx)(p.A,{className:"w-3.5 h-3.5"})})]})]})}function V(){let[e,t]=(0,i.useState)("all"),[s,a]=(0,i.useState)(""),[d,o]=(0,i.useState)(1),[x,h]=(0,i.useState)([]),[m,u]=(0,i.useState)(null),[p,A]=(0,i.useState)({all:0,active:0,draft:0,closed:0,expired:0}),[D,V]=(0,i.useState)(!1),[J,T]=(0,i.useState)(null),[H,E]=(0,i.useState)({top:0,left:0}),[O,F]=(0,i.useState)(!1),U=(0,L.useRouter)(),I=(e,t)=>{if(J===e)return void T(null);E({top:t.bottom+4,left:t.right-144}),T(e)},[R,q]=(0,i.useState)(null),[W,X]=(0,i.useState)(null),[Y,Q]=(0,i.useState)(null),[K,Z]=(0,i.useState)(null),$=(0,i.useRef)(null);(0,i.useEffect)(()=>{let e=new IntersectionObserver(e=>{m&&e[0].isIntersecting&&(null==m?void 0:m.current_page)<(null==m?void 0:m.last_page)&&!D&&(console.log("loading page",d+1),o(e=>e+1))},{threshold:1});return $.current&&e.observe($.current),()=>e.disconnect()},[m,D]),(0,i.useEffect)(()=>{ee(),console.log("change tab",d),1==d?et():o(1)},[e]),(0,i.useEffect)(()=>{et()},[d,s]);let ee=async()=>{h([]),u(null)},et=async()=>{var t,r,a,l,i,n;V(!0);let c=await (0,C.tU)(d,s,e),o=null==c||null==(t=c.content)?void 0:t.posts;h(e=>1===d?(null==o?void 0:o.data)||[]:[...e,...(null==o?void 0:o.data)||[]]),u(o),console.log(null==c?void 0:c.current,"postsposts"),A({all:null==c||null==(r=c.content)?void 0:r.total_count,active:null==c||null==(a=c.content)?void 0:a.active_count,draft:null==c||null==(l=c.content)?void 0:l.draft_count,closed:null==c||null==(i=c.content)?void 0:i.closed_count,expired:null==c||null==(n=c.content)?void 0:n.expire_count}),V(!1)},es=async e=>{try{await (0,C.Rx)(e),h(t=>t.filter(t=>Number(t.id)!=e)),(0,S.Ay)("Job deleted")}catch(e){console.log(e)}},er=async e=>{try{await (0,C.vl)(e),(0,S.Ay)("Job Duplicated"),o(1)}catch(e){console.log(e)}},ea=async(e,t)=>{try{await (0,C.XQ)({id:e,status:t}),(0,S.Ay)("Job Status changed"),et()}catch(e){X(1)}};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"min-h-screen bg-offWHite flex",children:[O&&(0,r.jsx)("div",{className:"fixed inset-0 z-40 bg-black/40 md:hidden",onClick:()=>F(!1)}),(0,r.jsxs)("aside",{className:"\n fixed top-0 bottom-[55px] left-0 z-50 w-64 bg-white border-r border-b border-dividerGrey\n flex flex-col overflow-y-auto\n transform transition-transform duration-300 ease-in-out\n md:hidden\n ".concat(O?"translate-x-0":"-translate-x-full","\n "),children:[(0,r.jsxs)("div",{className:"flex items-center justify-between p-3 border-b border-dividerGrey",children:[(0,r.jsx)(c(),{href:"/",children:(0,r.jsx)(M(),{width:300,height:300,src:"/images/headerLogo.jpg",alt:"
1Velaflow",className:"h-8 w-auto"})}),(0,r.jsx)("button",{onClick:()=>F(!1),className:"p-1.5 rounded-lg hover:bg-greyLight text-greyDark transition-colors","aria-label":"Close menu",children:(0,r.jsx)(y.A,{className:"w-5 h-5"})})]}),(0,r.jsx)(k.A,{})]}),(0,r.jsx)("aside",{className:"hidden md:flex flex-col w-64 bg-white border-r border-dividerGrey min-h-screen sticky top-0 h-screen overflow-y-auto",children:(0,r.jsx)(k.A,{})}),(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,r.jsxs)("div",{className:"fixed top-0 left-0 w-full h-[61px] bg-white shadow-md z-30 px-4 flex items-center justify-between md:hidden",children:[(0,r.jsx)("button",{onClick:()=>F(!0),className:"p-1.5 rounded-lg hover:bg-greyLight text-greyDark transition-colors","aria-label":"Open menu",children:(0,r.jsx)(b.A,{className:"w-5 h-5"})}),(0,r.jsx)(c(),{href:"/",children:(0,r.jsx)(M(),{width:300,height:300,src:"/images/headerLogo.jpg",alt:"Velaflow",className:"h-8 w-auto"})}),(0,r.jsx)("div",{className:"w-8"})," "]}),(0,r.jsxs)("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 pt-20 md:pt-8 pb-24 md:pb-8",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-6 max-[480px]:flex-col max-[480px]:gap-3",children:[(0,r.jsxs)("div",{className:"max-[480px]:text-center",children:[(0,r.jsx)("h1",{className:"text-secondary font-bold text-2xl",children:"My Job Listings"}),(0,r.jsx)("p",{className:"text-grey text-14 mt-0.5",children:"Manage and track all your job postings."})]}),(0,r.jsxs)(c(),{href:"/jobs/post",className:"flex items-center gap-2 bg-primary text-white px-4 py-2.5 rounded-xl text-14 font-medium hover:opacity-90 transition-all shadow-sm",children:[(0,r.jsx)(g.A,{className:"w-4 h-4"}),"Post New Job"]})]}),(0,r.jsxs)("div",{className:"bg-white border border-dividerGrey rounded-2xl overflow-hidden",children:[(0,r.jsx)("div",{className:"flex items-center gap-0 border-b border-dividerGrey px-4 overflow-x-auto",children:_.map(s=>(0,r.jsxs)("button",{onClick:()=>t(s.value),className:(0,z.cn)("flex items-center gap-2 px-4 py-4 text-14 font-medium border-b-2 transition-all whitespace-nowrap",e===s.value?"border-primary text-primary":"border-transparent text-grey hover:text-secondary"),children:[s.label,(0,r.jsx)("span",{className:(0,z.cn)("text-12 px-1.5 py-0.5 rounded-full",e===s.value?"bg-primary/10 text-primary":"bg-greyLight text-grey"),children:p[s.value]})]},s.value))}),(0,r.jsxs)("div",{className:"flex items-center gap-3 p-4 border-b border-dividerGrey",children:[(0,r.jsxs)("div",{className:"relative flex-1",children:[(0,r.jsx)(f.A,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-grey"}),(0,r.jsx)("input",{type:"text",value:s,onChange:e=>a(e.target.value),placeholder:"Search job listings...",className:"w-full border border-dividerGrey rounded-xl pl-9 pr-4 py-2.5 text-14 focus:outline-none focus:ring-2 focus:ring-primary focus:border-primary"})]}),(0,r.jsx)("div",{className:"flex border border-dividerGrey rounded-xl overflow-hidden"})]}),D&&1==d?(0,r.jsx)("div",{className:"p-8 text-center",children:"Loading jobs..."}):0===x.length?(0,r.jsx)(w.pp,{title:"No jobs found",description:s?"Try different search terms.":"Post your first job to get started.",action:{label:"Post a Job",onClick:()=>{}}}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"hidden md:block overflow-x-auto",children:(0,r.jsxs)("table",{className:"w-full",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{className:"border-b border-dividerGrey bg-greyLight",children:[(0,r.jsx)("th",{className:"text-left px-4 py-3 text-12 font-semibold text-grey uppercase tracking-wide",children:"Job Title"}),(0,r.jsx)("th",{className:"text-center px-4 py-3 text-12 font-semibold text-grey uppercase tracking-wide",children:"Applications"}),(0,r.jsx)("th",{className:"text-left px-4 py-3 text-12 font-semibold text-grey uppercase tracking-wide",children:"Status"}),(0,r.jsx)("th",{className:"text-left px-4 py-3 text-12 font-semibold text-grey uppercase tracking-wide",children:"Posted On"}),(0,r.jsx)("th",{className:"text-left px-4 py-3 text-12 font-semibold text-grey uppercase tracking-wide",children:"Actions"})]})}),(0,r.jsx)("tbody",{children:x.map(e=>(0,r.jsx)(B,{job:e,isLast:x.indexOf(e)>=x.length-1,openMenuId:J,onOpenMenu:I},null==e?void 0:e.id))})]})}),(0,r.jsx)("div",{className:"md:hidden p-3 space-y-3",children:x.map(e=>(0,r.jsx)(G,{job:e,openMenuId:J,onOpenMenu:I},null==e?void 0:e.id))}),(0,r.jsx)("div",{ref:$,className:"h-10 flex items-center justify-center",children:D&&"Loading more..."})]})]})]})]})]}),(0,r.jsx)(P,{open:null!==R,onClose:()=>q(null),onConfirm:()=>null!==R&&es(R),title:"Delete Job",description:"This job will be permanently deleted and cannot be recovered. Are you sure?",confirmLabel:"Delete",confirmClassName:"bg-red text-white hover:opacity-90",icon:(0,r.jsx)(v.A,{className:"w-5 h-5 text-red"})}),(0,r.jsx)(P,{open:null!==Y,onClose:()=>Q(null),onConfirm:()=>null!==Y&&er(Y),title:"Duplicate Job",description:"A copy of this job listing will be created as a draft. You can edit it before publishing.",confirmLabel:"Duplicate",icon:(0,r.jsx)(j.A,{className:"w-5 h-5 text-primary"})}),(0,r.jsx)(P,{open:null!==K,onClose:()=>Z(null),onConfirm:()=>null!==K&&ea(K.id,"draft"===K.currentStatus?"active":"draft"),title:(null==K?void 0:K.currentStatus)==="draft"?"Make Active":"Make Draft",description:(null==K?void 0:K.currentStatus)==="draft"?"This job will be published and visible to applicants.":"This job will be hidden from applicants and saved as a draft.",confirmLabel:(null==K?void 0:K.currentStatus)==="draft"?"Make Active":"Make Draft",icon:(0,r.jsx)(N.A,{className:"w-5 h-5 text-primary"})}),null!==J&&(0,n.createPortal)((0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"fixed inset-0 z-[998]",onClick:()=>T(null)}
1),(0,r.jsxs)("div",{style:{top:H.top,left:H.left},className:"fixed z-[999] bg-white border border-dividerGrey rounded-xl shadow-md py-1 w-36 ".concat(l().variable," font-sans"),children:[(0,r.jsxs)("button",{onClick:()=>{Q(J),T(null)},className:"flex items-center gap-2 w-full px-3 py-2 text-14 text-secondary hover:bg-greyLight transition-colors",children:[(0,r.jsx)(j.A,{className:"w-3.5 h-3.5"})," Duplicate"]}),(0,r.jsxs)("button",{onClick:()=>{q(J),T(null)},className:"flex items-center gap-2 w-full px-3 py-2 text-14 text-red hover:bg-red/5 transition-colors",children:[(0,r.jsx)(v.A,{className:"w-3.5 h-3.5"})," Delete"]}),(()=>{let e=x.find(e=>Number(e.id)===J);return e&&"closed"!==e.status&&"expired"!==e.status?(0,r.jsxs)("button",{onClick:()=>{Z({id:J,currentStatus:e.status}),T(null)},className:"flex items-center gap-2 w-full px-3 py-2 text-14 text-secondary hover:bg-greyLight transition-colors",children:[(0,r.jsx)(N.A,{className:"w-3.5 h-3.5"}),"draft"===e.status?"Make Active":"Make Draft"]}):null})()]})]}),document.body),(0,r.jsx)(P,{open:null!==W,onClose:()=>X(null),onConfirm:()=>void U.push("/jobs/plan"),title:"No Active job Plan",description:"You need an active job plan to publish jobs and reach the right candidates.",confirmLabel:"Proceed To Plan",icon:(0,r.jsx)(j.A,{className:"w-5 h-5 text-primary"})})]})}},23167:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});var r=s(51935);let a={name:"layout-dashboard",size:24,node:[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]};a.node;let l=(0,r.A)(a)},24348:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/jobs/manage",function(){return s(20368)}])},25561:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});var r=s(51935);let a={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"]};a.node;let l=(0,r.A)(a)},28107:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});var r=s(51935);let a={name:"chart-no-axes-column",size:24,node:[["path",{d:"M5 21v-6",key:"1hz6c0"}],["path",{d:"M12 21V3",key:"1lcnhd"}],["path",{d:"M19 21V9",key:"unv183"}]],aliases:["bar-chart-2"]};a.node;let l=(0,r.A)(a)},34468:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});var r=s(51935);let a={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"}]]};a.node;let l=(0,r.A)(a)},43588:(e,t,s)=>{"use strict";function r(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];return t.filter(Boolean).join(" ")}s.d(t,{cn:()=>r})},46115:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});var r=s(51935);let a={name:"menu",size:24,node:[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]};a.node;let l=(0,r.A)(a)},47716:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});var r=s(51935);let a={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};a.node;let l=(0,r.A)(a)},49506:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});var r=s(51935);let a={name:"refresh-cw",size:24,node:[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]};a.node;let l=(0,r.A)(a)},62822:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});var r=s(51935);let a={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};a.node;let l=(0,r.A)(a)},63925:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});var r=s(51935);let a={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};a.node;let l=(0,r.A)(a)},64310:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});var r=s(51935);let a={name:"file-text",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]};a.node;let l=(0,r.A)(a)},80196:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});var r=s(51935);let a={name:"package",size:24,node:[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]};a.node;let l=(0,r.A)(a)},88327:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});var r=s(51935);let a={name:"ellipsis",size:24,node:[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],aliases:["more-horizontal"]};a.node;let l=(0,r.A)(a)},88634:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});var r=s(51935);let a={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};a.node;let l=(0,r.A)(a)},94502:(e,t,s)=>{"use strict";s.d(t,{AC:()=>x,Wh:()=>o,X3:()=>p,ff:()=>m,pp:()=>h,q5:()=>u});var r=s(37876),a=s(43588),l=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"},c={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 o(e){let{status:t,size:s="md"}=e,l=d[t.toLowerCase()]||"bg-grey/10 text-greyDark",i=c[t]||t.charAt(0).toUpperCase()+t.slice(1);return(0,r.jsx)("span",{className:(0,a.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",l),children:i})}function x(e){let{skill:t,removable:s,onRemove:l,onClick:i,active:n}=e;return(0,r.jsxs)("span",{onClick:i,className:(0,a.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==t?void 0:t.name,s&&(0,r.jsx)("button",{onClick:e=>{e.stopPropagation(),null==l||l()},className:"ml-0.5 hover:text-red transition-colors",type:"button",children:"\xd7"})]})}function h(e){let{icon:t="jobs",title:s,description:a,action:d}=e,c="jobs"===t?l.A:"company"===t?i.A:n.A;return(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center py-16 px-6 text-center",children:[(0,r.jsx)("div",{className:"w-16 h-16 rounded-2xl bg-bgSkyBlue flex items-center justify-center mb-4",children:"string"==typeof t?(0,r.jsx)(c,{className:"w-8 h-8 text-primary"}):t}),(0,r.jsx)("h3",{className:"text-secondary font-semibold text-lg mb-2",children:s}),a&&(0,r.jsx)("p",{className:"text-grey text-14 max-w-sm mb-6",children:a}),d&&(0,r.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 m(){return(0,r.jsxs)("div",{className:"bg-white border border-dividerGrey rounded-2xl p-5 animate-pulse",children:[(0,r.jsxs)("div",{className:"flex items-start gap-3 mb-4",children:[(0,r.jsx)("div",{className:"w-12 h-12 bg-greyLight rounded-xl flex-shrink-0"}),(0,r.jsxs)("div",{className:"flex-1",children:[(0,r.jsx)("div",{className:"h-4 bg-greyLight rounded w-3/4 mb-2"}),(0,r.jsx)("div",{className:"h-3 bg-greyLight rounded w-1/2"})]})]}),(0,r.jsxs)("div",{className:"flex gap-2 mb-3",children:[(0,r.jsx)("div",{className:"h-6 bg-greyLight rounded-lg w-16"}),(0,r.jsx)("div",{className:"h-6 bg-greyLight rounded-lg w-20"}),(0,r.jsx)("div",{className:"h-6 bg-greyLight rounded-lg w-14"})]}),(0,r.jsxs)("div",{className:"flex gap-2 mb-4",children:[(0,r.jsx)("div",{className:"h-6 bg-greyLight rounded-full w-12"}),(0,r.jsx)("div",{className:"h-6 bg-greyLight rounded-full w-16"}),(0,r.jsx)("div",{className:"h-6 bg-greyLight rounded-full w-14"})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between pt-3 border-t border-dividerGrey",children:[(0,r.jsx)("div",{className:"h-3 bg-greyLight rounded w-20"}),(0,r.jsx)("div",{className:"h-3 bg-greyLight rounded w-16"})]})]})}function u(e){let{name:t="Unknown User",size:s="md",className:l}=e,i=(null==t?void 0:t.split(" ").map(e=>e[0]).join("").slice(0,2).toUpperCase())||"NA";return(0,r.jsx)("div",{className:(0,a.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],l),children:i})}function p(e){let{title:t,subtitle:s,action:a}=e;return(0,r.jsxs)("div",{className:"flex items-start justify-between mb-6",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h2",{className:"text-secondary font-semibold text-lg",children:t}),s&&(0,r.jsx)("p",{className:"text-grey text-14 mt-0.5",children:s})]}),a&&(0,r.jsx)("div",{children:a})]})}}},e=>{e.O(0,[377,636,6593,8792],()=>e(e.s=24348)),_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.