1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2429],{1164:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var a=r(51935);let l={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};l.node;let s=(0,a.A)(l)},11976:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var a=r(51935);let l={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"]};l.node;let s=(0,a.A)(l)},12121:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var a=r(51935);let l={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"}]]};l.node;let s=(0,a.A)(l)},15234:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var a=r(37876),l=r(14232),s=r(96145);function i(e){let{isOpen:t=!1,onClose:r=()=>{},children:i,header:n,headerClass:d,customWidth:o,childControlsWidth:c=!1,customWidthData:x="max-w-3xl w-full",gifModal:m=!1}=e,[p,h]=(0,l.useState)(!1);return((0,l.useEffect)(()=>{if(t){let e=window.scrollY;document.body.style.position="fixed",document.body.style.top="-".concat(e,"px"),document.body.style.width="100%"}else{let e=document.body.style.top;document.body.style.position="",document.body.style.top="",document.body.style.width="",window.scrollTo(0,-1*parseInt(e||"0"))}return()=>{document.body.style.position="",document.body.style.top="",document.body.style.width=""}},[t]),(0,l.useEffect)(()=>{let e;return t?h(!0):e=setTimeout(()=>h(!1),200),()=>clearTimeout(e)},[t]),t||p)?(0,a.jsx)("div",{onClick:e=>e.stopPropagation(),className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 transition-opacity duration-200",children:(0,a.jsxs)("div",{className:"bg-white rounded-[5px] shadow-lg p-8 relative transform transition-all duration-200\n ".concat(t?"scale-100 opacity-100":"scale-95 opacity-0","\n ").concat(c?"w-auto max-w-full":o?x:"max-w-md w-full"),children:[(0,a.jsx)(s.$n,{onClick:r,className:"absolute right-5 text-gray-500 hover:text-black text-xl ".concat(m?"top-[10px]":"top-7"),children:(0,a.jsx)(s.In,{id:"close-cross-icn",className:"inline-block text-primary"})}),n&&(0,a.jsx)(s.DZ,{type:"h2",text:n,className:d||"text-[40px]"}),(0,a.jsx)("div",{children:i})]})}):null}},16353:(e,t,r)=>{"use strict";r.d(t,{A:()=>k});var a=r(37876),l=r(48230),s=r.n(l),i=r(14e3),n=r(23167),d=r(18820),o=r(62822),c=r(64310),x=r(34468),m=r(80196),p=r(93846),h=r(11976),u=r(25561),y=r(12121),b=r(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:o.A}],v=[{label:"My Applications",href:"/jobs/my-applications",icon:c.A},{label:"Saved Jobs",href:"/jobs/saved",icon:x.A}],j=[{label:"Packages",href:"/jobs/plan",icon:m.A},{label:"Payment History",href:"/jobs/payment-history",icon:p.A}],f=[{label:"Packages",href:"/membership",icon:m.A},{label:"Billing History",href:"/billing-history",icon:p.A}],N=[{label:"Profile",href:"/settings",icon:h.A},{label:"Company Profile",href:"/company/profile",icon:u.A}];function w(e){let{href:t,icon:r,label:l,active:i}=e;return(0,a.jsxs)(s(),{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,a.jsx)(r,{size:17,className:i?"text-primary":"text-grey"}),l]})}function k(){let e=(0,i.usePathname)();return(0,a.jsxs)("div",{className:"flex flex-col h-full py-4 px-3 gap-1",children:[(0,a.jsx)("div",{className:"space-y-0.5 mb-4",children:g.map(t=>(0,a.jsx)(w,{...t,active:e===t.href},t.href))}),(0,a.jsx)("p",{className:"text-[10px] font-bold text-grey uppercase tracking-widest px-3 mb-1",children:"Company"}),(0,a.jsx)("div",{className:"space-y-0.5 mb-4",children:N.map(t=>(0,a.jsx)(w,{...t,active:e===t.href},t.href))}),(0,a.jsx)("p",{className:"text-[10px] font-bold text-grey uppercase tracking-widest px-3 mb-1",children:"Manage"}),(0,a.jsx)("div",{className:"space-y-0.5 mb-4",children:v.map(t=>(0,a.jsx)(w,{...t,active:e===t.href},t.href))}),(0,a.jsx)("p",{className:"text-[10px] font-bold text-grey uppercase tracking-widest px-3 mb-1",children:"Job Billing"}),(0,a.jsx)("div",{className:"space-y-0.5 mb-4",children:j.map(t=>(0,a.jsx)(w,{...t,active:e===t.href},t.href))}),(0,a.jsx)("p",{className:"text-[10px] font-bold text-grey uppercase tracking-widest px-3 mb-1",children:"Membership Billing"}),(0,a.jsx)("div",{className:"space-y-0.5 mb-4",children:f.map(t=>(0,a.jsx)(w,{...t,active:e===t.href},t.href))}),(0,a.jsxs)("div",{className:"mt-auto mx-1 rounded-2xl bg-greyLight border border-dividerGrey p-4",children:[(0,a.jsx)(y.A,{size:18,className:"text-yellow-400 mb-2"}),(0,a.jsx)("p",{className:"text-sm font-bold text-secondary leading-snug",children:"Need to post more jobs?"}),(0,a.jsx)("p",{className:"text-xs text-grey mt-1 mb-3 leading-relaxed",children:"Upgrade to a package and post unlimited jobs easily."}),(0,a.jsx)(s(),{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,r)=>{"use strict";r.d(t,{A:()=>s});var a=r(51935);let l={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"}]]};l.node;let s=(0,a.A)(l)},23167:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var a=r(51935);let l={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"}]]};l.node;let s=(0,a.A)(l)},25561:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var a=r(51935);let l={name:"building-complex",size:24,node:[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}
1],["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"]};l.node;let s=(0,a.A)(l)},34468:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var a=r(51935);let l={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"}]]};l.node;let s=(0,a.A)(l)},43588:(e,t,r)=>{"use strict";function a(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(Boolean).join(" ")}r.d(t,{cn:()=>a})},46115:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var a=r(51935);let l={name:"menu",size:24,node:[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]};l.node;let s=(0,a.A)(l)},47716:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var a=r(51935);let l={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};l.node;let s=(0,a.A)(l)},53260:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/jobs/post",function(){return r(85635)}])},62822:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var a=r(51935);let l={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};l.node;let s=(0,a.A)(l)},64310:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var a=r(51935);let l={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"}]]};l.node;let s=(0,a.A)(l)},74577:(e,t,r)=>{"use strict";r.d(t,{MA:()=>a,Zq:()=>l,bp:()=>i,qO:()=>n,tv:()=>s});let a=[{value:"full_time",label:"Full-time"},{value:"part_time",label:"Part-time"},{value:"contract",label:"Contract"},{value:"internship",label:"Internship"},{value:"freelance",label:"Freelance"}],l=[{value:"yearly",label:"Yearly"},{value:"monthly",label:"Monthly"},{value:"weekly",label:"Weekly"}],s=[{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"}]},80196:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var a=r(51935);let l={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"}]]};l.node;let s=(0,a.A)(l)},85635:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>L});var a=r(37876),l=r(14232),s=r(47716),i=r(46115),n=r(1164),d=r(51935);let o={name:"save",size:24,node:[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]};o.node;let c=(0,d.A)(o);var x=r(97224),m=r(18820),p=r(94502),h=r(16353),u=r(74577),y=r(43588),b=r(48230),g=r.n(b),v=r(81220),j=r(97685),f=r(78028),N=r(54587),w=r.n(N),k=r(15234),_=r(89099);function A(e){let{label:t,required:r,error:l,children:s,hint:i}=e;return(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{className:"block text-14 font-medium text-secondary mb-1.5",children:[t," ",r&&(0,a.jsx)("span",{className:"text-red",children:"*"}),i&&(0,a.jsxs)("span",{className:"text-grey font-normal ml-1",children:["(",i,")"]})]}),s,l&&(0,a.jsx)("p",{className:"text-12 text-red mt-1",children:l})]})}let C="w-full border border-dividerGrey rounded-xl bg-white px-4 py-2.5 text-14 text-secondary focus:outline-none focus:ring-2 focus:ring-primary focus:border-primary placeholder:text-grey transition-all",S=(0,y.cn)(C,"appearance-none cursor-pointer"),q={job_title:"",job_type:"",location:"",country:"",work_mode:"",exp_level:"",industry_id:"",min_salary:"",max_salary:"",salary_period:"",currency:"USD",description:"",requirements:"",application_deadline:"",easyApply:!1,visaSponsorship:!1,apply_method:"velaflow",external_apply_url:""};function L(){let e=(0,_.useRouter)(),[t,r]=(0,l.useState)([]),[d,o]=(0,l.useState)([]),[b,N]=(0,l.useState)(""),[L,M]=(0,l.useState)(!1),[z,D]=(0,l.useState)(!1),[P,G]=(0,l.useState)(!1),[E,J]=(0,l.useState)({}),[B,R]=(0,l.useState)([]),[T,U]=(0,l.useState)([]),[V,H]=(0,l.useState)([]),[O,I]=(0,l.useState)([]),[F,W]=(0,l.useState)("active"),[Y,Z]=(0,l.useState)("jobPage"),[X,K]=(0,l.useState)(!1),[$,Q]=(0,l.useState)(q),ee=(e,t)=>
1{Q(r=>({...r,[e]:t}))},et=b.trim()?B.filter(e=>e.name.toLowerCase().includes(b.trim().toLowerCase())&&!t.some(t=>t.id===e.id)):[],er=async()=>{let e=b.trim();e&&(r([...t,(await (0,v.dZ)({skill:e})).content.skill]),N(""))},ea=async(e,t)=>{t.preventDefault(),Z(e),await el(t,"draft",e)},el=async function(r){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:F,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Y;r.preventDefault();let s=function(e,t,r){let a={};return e.job_title.trim()||(a.job_title="Job title is required"),e.job_type||(a.job_type="Job type is required"),e.location.trim()||(a.location="City is required"),e.country.trim()||(a.country="Country is required"),e.work_mode||(a.work_mode="Work mode is required"),e.exp_level||(a.exp_level="Experience level is required"),e.industry_id||(a.industry_id="Industry is required"),e.min_salary||(a.min_salary="Minimum salary is required"),e.max_salary||(a.max_salary="Maximum salary is required"),e.salary_period||(a.salary_period="Salary Type is required"),e.description.trim()||(a.description="Description is required"),e.requirements.trim()||(a.requirements="Requirements are required"),"external"!==e.apply_method||e.external_apply_url||(a.external_apply_url="URL is required"),t&&0!==t.length||(a.skills="Select at least one skill"),r&&0!==r.length||(a.benefits="Select at least one benefit"),e.application_deadline?e.application_deadline<new Date().toISOString().split("T")[0]&&(a.application_deadline="Deadline cannot be in the past"):a.application_deadline="Application deadline is required",a}($,t,d);if(Object.keys(s).length>0)return void J(s);J({}),D(!0);try{console.log("Submit:",{...$,skills:t.map(e=>e.id),benefits:d});let r=await (0,v.CL)({...$,skills:t.map(e=>e.id),benefits:d,status:a});console.log(r),D(!1),r.error?j.Ay.error(null==r?void 0:r.message):(I([]),"jobPage"==l?(j.Ay.success("Job Posted successfully"),e.push("/jobs/"+r.content.slug)):e.push("/jobs/plan"))}catch(e){var i,n;G(!0),D(!1),f.A.isAxiosError(e)&&(null==(n=e.response)||null==(i=n.data)?void 0:i.errors)&&I(Object.values(e.response.data.errors).flat()),J({})}};(0,l.useEffect)(()=>{es(),ei(),en()},[]);let es=async()=>{var e,t;let r=await (0,v.pC)();console.log(null==r||null==(e=r.content)?void 0:e.skills),R((null==r||null==(t=r.content)?void 0:t.skills)||[])},ei=async()=>{var e;let t=await (0,v.Bd)();console.log(t),U((null==t||null==(e=t.content)?void 0:e.benefits)||[])},en=async()=>{var e;let t=await (0,v.fj)();console.log(t),H((null==t||null==(e=t.content)?void 0:e.industries)||[])};return(0,a.jsxs)("div",{className:"min-h-screen bg-offWHite flex",children:[X&&(0,a.jsx)("div",{className:"fixed inset-0 z-40 bg-black/40 md:hidden",onClick:()=>K(!1)}),(0,a.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(X?"translate-x-0":"-translate-x-full","\n "),children:[(0,a.jsxs)("div",{className:"flex items-center justify-between p-3 border-b border-dividerGrey",children:[(0,a.jsx)(g(),{href:"/",children:(0,a.jsx)(w(),{width:300,height:300,src:"/images/headerLogo.jpg",alt:"
1Velaflow",className:"h-8 w-auto"})}),(0,a.jsx)("button",{onClick:()=>K(!1),className:"p-1.5 rounded-lg hover:bg-greyLight text-greyDark transition-colors","aria-label":"Close menu",children:(0,a.jsx)(s.A,{className:"w-5 h-5"})})]}),(0,a.jsx)(h.A,{})]}),(0,a.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,a.jsx)(h.A,{})}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsxs)("div",{className:"fixed top-0 left-0 w-full h-[62px] bg-white shadow-md z-30 px-4 flex items-center justify-between md:hidden",children:[(0,a.jsx)("button",{onClick:()=>K(!0),className:"p-1.5 rounded-lg hover:bg-greyLight text-greyDark transition-colors","aria-label":"Open menu",children:(0,a.jsx)(i.A,{className:"w-5 h-5"})}),(0,a.jsx)(g(),{href:"/",children:(0,a.jsx)(w(),{width:300,height:300,src:"/images/headerLogo.jpg",alt:"Velaflow",className:"h-8 w-auto"})}),(0,a.jsx)("div",{className:"w-8"})," "]}),(0,a.jsxs)("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 pt-20 md:pt-8 pb-8",children:[(0,a.jsx)("div",{className:"flex items-center justify-between mb-8",children:(0,a.jsxs)("div",{children:[(0,a.jsx)("h1",{className:"text-secondary font-bold text-2xl",children:"Post a New Job"}),(0,a.jsx)("p",{className:"text-grey text-14 mt-1",children:"Fill in the details to post a new vacancy."})]})}),(0,a.jsxs)("form",{onSubmit:el,className:"space-y-6",children:[(0,a.jsxs)("div",{className:"bg-white border border-dividerGrey rounded-2xl p-6",children:[(0,a.jsxs)("h2",{className:"text-secondary font-semibold mb-5 flex items-center gap-2",children:[(0,a.jsx)("span",{className:"w-7 h-7 bg-primary text-white rounded-lg flex items-center justify-center text-12 font-bold",children:"1"}),"Basic Information",(0,a.jsx)("span",{className:"text-red ml-[-4px]",children:"*"})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-5",children:[(0,a.jsx)(A,{label:"Job Title",required:!0,error:E.job_title,children:(0,a.jsx)("input",{value:$.job_title,onChange:e=>ee("job_title",e.target.value),placeholder:"e.g. Senior Laravel Developer",className:(0,y.cn)(C,E.job_title?"border-red focus:ring-red":"")}
1)}),(0,a.jsx)(A,{label:"Job Type",required:!0,error:E.job_type,children:(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsxs)("select",{value:$.job_type,onChange:e=>ee("job_type",e.target.value),className:(0,y.cn)(S,E.job_type&&"border-red"),children:[(0,a.jsx)("option",{value:"",children:"Select type"}),u.MA.map(e=>(0,a.jsx)("option",{value:e.value,children:e.label},e.value))]}),(0,a.jsx)(n.A,{className:"absolute right-3 top-1/2 -translate-y-1/2 w-4 h-4 text-grey pointer-events-none"})]})}),(0,a.jsx)(A,{label:"Location",required:!0,error:E.location,hint:"city",children:(0,a.jsx)("input",{value:$.location,onChange:e=>ee("location",e.target.value),placeholder:"e.g. New York, USA or Remote",className:(0,y.cn)(C,E.city&&"border-red")})}),(0,a.jsx)(A,{label:"Country",required:!0,error:E.country,children:(0,a.jsx)("input",{value:$.country,onChange:e=>ee("country",e.target.value),placeholder:"e.g. USA",className:C})}),(0,a.jsx)(A,{label:"Work Mode",required:!0,error:E.work_mode,children:(0,a.jsx)("div",{className:"flex gap-2",children:u.tv.map(e=>(0,a.jsxs)("label",{className:"flex-1",children:[(0,a.jsx)("input",{type:"radio",name:"work_mode",value:e.value,checked:$.work_mode===e.value,onChange:e=>ee("work_mode",e.target.value),className:"sr-only"}),(0,a.jsx)("div",{className:(0,y.cn)("border rounded-xl py-2 text-center text-14 cursor-pointer transition-all",$.work_mode===e.value?"bg-primary text-white border-primary":"border-dividerGrey text-greyDark hover:border-primary"),children:e.label})]},e.value))})}),(0,a.jsx)(A,{label:"Experience Level",required:!0,error:E.exp_level,children:(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsxs)("select",{value:$.exp_level,onChange:e=>ee("exp_level",e.target.value),className:S,children:[(0,a.jsx)("option",{value:"",children:"Select level"}),u.bp.map(e=>(0,a.jsx)("option",{value:e.value,children:e.label},e.value))]}),(0,a.jsx)(n.A,{className:"absolute right-3 top-1/2 -translate-y-1/2 w-4 h-4 text-grey pointer-events-none"})]})}),(0,a.jsx)(A,{label:"Industry",required:!0,error:E.industry_id,children:(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsxs)("select",{value:$.industry_id,onChange:e=>ee("industry_id",e.target.value),className:S,children:[(0,a.jsx)("option",{value:"",children:"Select industry"}),V.map(e=>(0,a.jsx)("option",{value:e.id,children:e.name},e.id))]}),(0,a.jsx)(n.A,{className:"absolute right-3 top-1/2 -translate-y-1/2 w-4 h-4 text-grey pointer-events-none"})]})})]})]}),(0,a.jsxs)("div",{className:"bg-white border border-dividerGrey rounded-2xl p-6",children:[(0,a.jsxs)("h2",{className:"text-secondary font-semibold mb-5 flex items-center gap-2",children:[(0,a.jsx)("span",{className:"w-7 h-7 bg-primary text-white rounded-lg flex items-center justify-center text-12 font-bold",children:"2"}),"Salary Range",(0,a.jsx)("span",{className:"text-red ml-[-4px]",children:"*"})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,a.jsx)(A,{label:"Type",required:!0,error:E.salary_period,children:(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsxs)("select",{value:$.salary_period,onChange:e=>ee("salary_period",e.target.value),className:(0,y.cn)(S,E.salary_type&&"border-red"),children:[(0,a.jsx)("option",{value:"",children:"Select type"}),u.Zq.map(e=>(0,a.jsx)("option",{value:e.value,children:e.label},e.value))]}),(0,a.jsx)(n.A,{className:"absolute right-3 top-1/2 -translate-y-1/2 w-4 h-4 text-grey pointer-events-none"})]})}),(0,a.jsx)(A,{label:"Minimum",required:!0,error:E.min_salary,children:(0,a.jsx)("input",{type:"number",value:$.min_salary,onChange:e=>ee("min_salary",""===e.target.value?"":Number(e.target.value)),placeholder:"e.g. 50000",className:(0,y.cn)(C,E.min_salary&&"border-red")})}),(0,a.jsx)(A,{label:"Maximum",required:!0,error:E.max_salary,children:(0,a.jsx)("input",{type:"number",value:$.max_salary,onChange:e=>ee("max_salary",""===e.target.value?"":Number(e.target.value)),placeholder:"e.g. 80000",className:(0,y.cn)(C,E.max_salary&&"border-red")})}),(0,a.jsx)(A,{label:"Currency",children:(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsxs)("select",{value:$.currency,onChange:e=>ee("currency",e.target.value),className:S,children:[(0,a.jsx)("option",{value:"USD",children:"USD"}),(0,a.jsx)("option",{value:"EUR",children:"EUR"}),(0,a.jsx)("option",{value:"GBP",children:"GBP"}),(0,a.jsx)("option",{value:"INR",children:"INR"}),(0,a.jsx)("option",{value:"AED",children:"AED"})]}),(0,a.jsx)(n.A,{className:"absolute right-3 top-1/2 -translate-y-1/2 w-4 h-4 text-grey pointer-events-none"})]})})]})]}),(0,a.jsxs)("div",{className:"bg-white border border-dividerGrey rounded-2xl p-6",children:[(0,a.jsxs)("h2",{className:"text-secondary font-semibold mb-5 flex items-center gap-2",children:[(0,a.jsx)("span",{className:"w-7 h-7 bg-primary text-white rounded-lg flex items-center justify-center text-12 font-bold",children:"3"}),"Job Description",(0,a.jsx)("span",{className:"text-red ml-[-4px]",children:"*"})]}),(0,a.jsxs)("div",{className:"space-y-5",children:[(0,a.jsx)(A,{label:"Job Description",required:!0,error:E.description,children:(0,a.jsx)("textarea",{rows:6,value:$.description,onChange:e=>ee("description",e.target.value),placeholder:"Describe the role, responsibilities and other details...",className:(0,y.cn)(C,"resize-y min-h-32",E.description&&"border-red")})}),(0,a.jsx)(A,{label:"Requirements",required:!0,error:E.requirements,children:(0,a.jsx)("textarea",{rows:4,value:$.requirements,onChange:e=>ee("requirements",e.target.value),placeholder:"List the skills, experience and qualifications required...",className:(0,y.cn)(C,"resize-y min-h-24",E.requirements&&"border-red")})})]})]}),(0,a.jsxs)("div",{className:"bg-white border border-dividerGrey rounded-2xl p-6",children:[(0,a.jsxs)("h2",{className:"text-secondary font-semibold mb-5 flex items-center gap-2",children:[(0,a.jsx)("span",{className:"w-7 h-7 bg-primary text-white rounded-lg flex items-center justify-center text-12 font-bold",children:"4"}),"Required Skills",(0,a.jsx)("span",{className:"text-red ml-[-4px]",children:"*"})]}),(0,a.jsxs)("div",{className:"relative flex gap-2 mb-3",children:[(0,a.jsx)("input",{type:"text",value:b,onChange:e=>{N(e.target.value),M(!0)},onFocus:()=>M(!0),onBlur:()=>setTimeout(()=>M(!1),150),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),er())},placeholder:"Search a skill...",className:(0,y.cn)(C,"flex-1",E.skills&&"border-red focus:ring-red")}),L&&et.length>0&&(0,a.jsx)("div",{className:"absolute top-full left-0 right-14 mt-1 bg-white border border-dividerGrey rounded-xl shadow-md py-1 max-h-56 overflow-y-auto z-20",children:et.map(e=>(0,a.jsx)("button",{type:"button",onMouseDown:e=>e.preventDefault(),onClick:()=>{r(t=>t.some(t=>t.id===e.id)?t:[...t,e]),N(""),M(!1)},className:"flex items-center w-full px-3 py-2 text-14 text-secondary text-left hover:bg-greyLight transition-colors",children:e.name},e.id))}),L&&b.trim()&&0===et.length&&(0,a.jsx)("div",{className:"absolute top-full left-0 right-14 mt-1 bg-white border border-dividerGrey rounded-xl shadow-md py-2 px-3 text-14 text-grey z-20",children:"No matching skills found."})]}),t.length>0&&(0,a.jsx)("div",{className:"flex flex-wrap gap-2 mb-3",children:t.map(e=>(0,a.jsx)(p.AC,{skill:e,removable:!0,active:!0,onRemove:()=>r(t.filter(t=>t.id!==e.id))},null==e?void 0:e.id))}),E.skills&&(0,a.jsx)("p",{className:"text-12 text-red mt-1",children:E.skills}),(0,a.jsx)("div",{})]}),(0,a.jsxs)("div",{className:"bg-white border border-dividerGrey rounded-2xl p-6",children:[(0,a.jsxs)("h2",{className:"text-secondary font-semibold mb-5 flex items-center gap-2",children:[(0,a.jsx)("span",{className:"w-7 h-7 bg-primary text-white rounded-lg flex items-center justify-center text-12 font-bold",children:"5"}),"Benefits & Perks",(0,a.jsx)("span",{className:"text-red ml-[-4px]",children:"*"})]}),(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:T.map(e=>(0,a.jsxs)("button",{type:"button",onClick:()=>{let t;return t=e.id,o(e=>e.includes(t)?e.filter(e=>e!==t):[...e,t])},className:(0,y.cn)("px-3 py-1.5 rounded-xl text-14 border transition-all",d.includes(e.id)?"bg-primary/10 text-primary border-primary/30 font-medium":"border-dividerGrey text-greyDark hover:border-primary/50"),children:[d.includes(e.id)&&"â ",e.name]},e.id))}
1),E.benefits&&(0,a.jsx)("p",{className:"text-12 text-red mt-1",children:E.benefits})]}),(0,a.jsxs)("div",{className:"bg-white border border-dividerGrey rounded-2xl p-6",children:[(0,a.jsxs)("h2",{className:"text-secondary font-semibold mb-5 flex items-center gap-2",children:[(0,a.jsx)("span",{className:"w-7 h-7 bg-primary text-white rounded-lg flex items-center justify-center text-12 font-bold",children:"6"}),"Job Settings",(0,a.jsx)("span",{className:"text-red ml-[-4px]",children:"*"})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-5",children:[(0,a.jsx)(A,{label:"Application Deadline",required:!0,error:E.application_deadline,children:(0,a.jsx)("input",{min:new Date().toISOString().split("T")[0],type:"date",value:$.application_deadline,onChange:e=>ee("application_deadline",e.target.value),className:(0,y.cn)(C,E.application_deadline&&"border-red focus:ring-red")})}),(0,a.jsx)("div",{className:"space-y-4 pt-1"})]}),(0,a.jsxs)("div",{className:"mt-6 border-t pt-6",children:[(0,a.jsx)(A,{label:"Application Method",children:(0,a.jsxs)("div",{className:"flex gap-3 md:gap-5 max-[400px]:flex-col",children:[(0,a.jsxs)("label",{className:"flex items-center gap-2 cursor-pointer text-secondary",children:[(0,a.jsx)("input",{type:"radio",name:"apply_method",value:"velaflow",checked:"velaflow"===$.apply_method,onChange:e=>ee("apply_method",e.target.value)}),(0,a.jsx)("span",{children:"Apply at Velaflow"})]}),(0,a.jsxs)("label",{className:"flex items-center gap-2 cursor-pointer text-secondary",children:[(0,a.jsx)("input",{type:"radio",name:"apply_method",value:"external",checked:"external"===$.apply_method,onChange:e=>ee("apply_method",e.target.value)}),(0,a.jsx)("span",{children:"External Apply"})]})]})}),"external"===$.apply_method&&(0,a.jsx)("div",{className:"mt-4",children:(0,a.jsx)(A,{label:"External Application URL",error:E.external_apply_url,children:(0,a.jsx)("input",{type:"url",placeholder:"https://company.com/careers/job-123",value:$.external_apply_url,onChange:e=>ee("external_apply_url",e.target.value),className:(0,y.cn)(C,E.external_apply_url?"border-red focus:ring-red":"")}
1)})})]})]}),(null==O?void 0:O.length)>0?(0,a.jsx)("div",{className:"text-red text-12 mt-1",children:null==O?void 0:O.map((e,t)=>(0,a.jsx)("p",{children:e},"x-".concat(t)))}):null,(0,a.jsxs)("div",{className:"flex items-center justify-end gap-3 pb-8 max-[375px]:flex-col",children:[(0,a.jsxs)("button",{onClick:()=>W("draft"),type:"submit",className:"flex items-center gap-2 border border-dividerGrey bg-white text-secondary px-5 py-2.5 rounded-xl text-14 font-medium hover:bg-greyLight transition-all",children:[(0,a.jsx)(c,{className:"w-4 h-4"}),z&&"draft"==F?"Saving...":"Save as Draft"]}),(0,a.jsxs)("button",{type:"submit",disabled:z,onClick:()=>W("active"),className:"flex items-center gap-2 bg-primary text-white px-6 py-2.5 rounded-xl text-14 font-medium hover:opacity-90 transition-all disabled:opacity-60 shadow-sm",children:[(0,a.jsx)(x.A,{className:"w-4 h-4"}),z&&"active"==F?"Publishing...":"Publish Job"]})]})]})]}),(0,a.jsx)(k.A,{isOpen:P,onClose:()=>{G(!1)},header:"",headerClass:"",customWidth:"",children:(0,a.jsxs)("div",{className:"w-full max-w-sm mx-auto px-2 py-2",children:[(0,a.jsx)("div",{className:"flex items-center justify-center w-12 h-12 rounded-full bg-greyLight mx-auto mb-4",children:(0,a.jsx)(m.A,{className:"w-5 h-5 text-primary"})}),(0,a.jsx)("h3",{className:"text-16 font-semibold text-secondary text-center mb-1",children:"No Active Job Plan"}),(0,a.jsx)("p",{className:"text-14 text-grey text-center mb-6",children:"You need an active job plan to publish jobs and reach the right candidates."}),(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)("button",{type:"button",onClick:e=>ea("jobPage",e),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:"Save as Draft"}),(0,a.jsx)("button",{type:"button",onClick:e=>ea("planPage",e),className:"flex-1 px-4 py-2.5 rounded-xl bg-primary text-white text-14 font-medium hover:opacity-90 transition-all",children:"Proceed to Plan"})]})]})})]})]})}},88634:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var a=r(51935);let l={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};l.node;let s=(0,a.A)(l)},94502:(e,t,r)=>{"use strict";r.d(t,{AC:()=>x,Wh:()=>c,X3:()=>u,ff:()=>p,pp:()=>m,q5:()=>h});var a=r(37876),l=r(43588),s=r(18820),i=r(25561),n=r(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",interview:"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"};function c(e){let{status:t,size:r="md"}=e,s=d[t.toLowerCase()]||"bg-grey/10 text-greyDark",i=o[t]||t.charAt(0).toUpperCase()+t.slice(1);return(0,a.jsx)("span",{className:(0,l.cn)("inline-flex items-center font-medium rounded-full capitalize","sm"===r?"px-2 py-0.5 text-12":"px-3 py-1 text-14",s),children:i})}function x(e){let{skill:t,removable:r,onRemove:s,onClick:i,active:n}=e;return(0,a.jsxs)("span",{onClick:i,className:(0,l.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,r&&(0,a.jsx)("button",{onClick:e=>{e.stopPropagation(),null==s||s()},className:"ml-0.5 hover:text-red transition-colors",type:"button",children:"\xd7"})]})}function m(e){let{icon:t="jobs",title:r,description:l,action:d}=e,o="jobs"===t?s.A:"company"===t?i.A:n.A;return(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center py-16 px-6 text-center",children:[(0,a.jsx)("div",{className:"w-16 h-16 rounded-2xl bg-bgSkyBlue flex items-center justify-center mb-4",children:"string"==typeof t?(0,a.jsx)(o,{className:"w-8 h-8 text-primary"}):t}),(0,a.jsx)("h3",{className:"text-secondary font-semibold text-lg mb-2",children:r}),l&&(0,a.jsx)("p",{className:"text-grey text-14 max-w-sm mb-6",children:l}),d&&(0,a.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 p(){return(0,a.jsxs)("div",{className:"bg-white border border-dividerGrey rounded-2xl p-5 animate-pulse",children:[(0,a.jsxs)("div",{className:"flex items-start gap-3 mb-4",children:[(0,a.jsx)("div",{className:"w-12 h-12 bg-greyLight rounded-xl flex-shrink-0"}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("div",{className:"h-4 bg-greyLight rounded w-3/4 mb-2"}),(0,a.jsx)("div",{className:"h-3 bg-greyLight rounded w-1/2"})]})]}),(0,a.jsxs)("div",{className:"flex gap-2 mb-3",children:[(0,a.jsx)("div",{className:"h-6 bg-greyLight rounded-lg w-16"}),(0,a.jsx)("div",{className:"h-6 bg-greyLight rounded-lg w-20"}),(0,a.jsx)("div",{className:"h-6 bg-greyLight rounded-lg w-14"})]}),(0,a.jsxs)("div",{className:"flex gap-2 mb-4",children:[(0,a.jsx)("div",{className:"h-6 bg-greyLight rounded-full w-12"}),(0,a.jsx)("div",{className:"h-6 bg-greyLight rounded-full w-16"}),(0,a.jsx)("div",{className:"h-6 bg-greyLight rounded-full w-14"})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between pt-3 border-t border-dividerGrey",children:[(0,a.jsx)("div",{className:"h-3 bg-greyLight rounded w-20"}),(0,a.jsx)("div",{className:"h-3 bg-greyLight rounded w-16"})]})]})}function h(e){let{name:t="Unknown User",size:r="md",className:s}=e,i=(null==t?void 0:t.split(" ").map(e=>e[0]).join("").slice(0,2).toUpperCase())||"NA";return(0,a.jsx)("div",{className:(0,l.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"}[r],s),children:i})}function u(e){let{title:t,subtitle:r,action:l}=e;return(0,a.jsxs)("div",{className:"flex items-start justify-between mb-6",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"text-secondary font-semibold text-lg",children:t}),r&&(0,a.jsx)("p",{className:"text-grey text-14 mt-0.5",children:r})]}),l&&(0,a.jsx)("div",{children:l})]})}},97224:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var a=r(51935);let l={name:"send",size:24,node:[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]};l.node;let s=(0,a.A)(l)}},e=>{e.O(0,[377,636,6593,8792],()=>e(e.s=53260)),_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.