PageSourceSearch

https://velaflow.com/_next/static/chunks/pages/jobs/[id]/edit-0c69c66ba158b274.js

js velaflow.com collected 2026-10-01 16:25:19 UTC 30,897 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[597],{1164:(e,r,t)=>{"use strict";t.d(r,{A:()=>s});var l=t(51935);let a={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};a.node;let s=(0,l.A)(a)},11976:(e,r,t)=>{"use strict";t.d(r,{A:()=>s});var l=t(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 s=(0,l.A)(a)},12121:(e,r,t)=>{"use strict";t.d(r,{A:()=>s});var l=t(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 s=(0,l.A)(a)},16353:(e,r,t)=>{"use strict";t.d(r,{A:()=>_});var l=t(37876),a=t(48230),s=t.n(a),i=t(14e3),n=t(23167),d=t(18820),o=t(62822),c=t(64310),p=t(34468),m=t(80196),x=t(93846),h=t(11976),u=t(25561),y=t(12121),b=t(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:p.A}],j=[{label:"Packages",href:"/jobs/plan",icon:m.A},{label:"Payment History",href:"/jobs/payment-history",icon:x.A}],f=[{label:"Packages",href:"/membership",icon:m.A},{label:"Billing History",href:"/billing-history",icon:x.A}],N=[{label:"Profile",href:"/settings",icon:h.A},{label:"Company Profile",href:"/company/profile",icon:u.A}];function w(e){let{href:r,icon:t,label:a,active:i}=e;return(0,l.jsxs)(s(),{href:r,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,l.jsx)(t,{size:17,className:i?"text-primary":"text-grey"}),a]})}function _(){let e=(0,i.usePathname)();return(0,l.jsxs)("div",{className:"flex flex-col h-full py-4 px-3 gap-1",children:[(0,l.jsx)("div",{className:"space-y-0.5 mb-4",children:g.map(r=>(0,l.jsx)(w,{...r,active:e===r.href},r.href))}),(0,l.jsx)("p",{className:"text-[10px] font-bold text-grey uppercase tracking-widest px-3 mb-1",children:"Company"}),(0,l.jsx)("div",{className:"space-y-0.5 mb-4",children:N.map(r=>(0,l.jsx)(w,{...r,active:e===r.href},r.href))}),(0,l.jsx)("p",{className:"text-[10px] font-bold text-grey uppercase tracking-widest px-3 mb-1",children:"Manage"}),(0,l.jsx)("div",{className:"space-y-0.5 mb-4",children:v.map(r=>(0,l.jsx)(w,{...r,active:e===r.href},r.href))}),(0,l.jsx)("p",{className:"text-[10px] font-bold text-grey uppercase tracking-widest px-3 mb-1",children:"Job Billing"}),(0,l.jsx)("div",{className:"space-y-0.5 mb-4",children:j.map(r=>(0,l.jsx)(w,{...r,active:e===r.href},r.href))}),(0,l.jsx)("p",{className:"text-[10px] font-bold text-grey uppercase tracking-widest px-3 mb-1",children:"Membership Billing"}),(0,l.jsx)("div",{className:"space-y-0.5 mb-4",children:f.map(r=>(0,l.jsx)(w,{...r,active:e===r.href},r.href))}),(0,l.jsxs)("div",{className:"mt-auto mx-1 rounded-2xl bg-greyLight border border-dividerGrey p-4",children:[(0,l.jsx)(y.A,{size:18,className:"text-yellow-400 mb-2"}),(0,l.jsx)("p",{className:"text-sm font-bold text-secondary leading-snug",children:"Need to post more jobs?"}),(0,l.jsx)("p",{className:"text-xs text-grey mt-1 mb-3 leading-relaxed",children:"Upgrade to a package and post unlimited jobs easily."}),(0,l.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,r,t)=>{"use strict";t.d(r,{A:()=>s});var l=t(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 s=(0,l.A)(a)},23167:(e,r,t)=>{"use strict";t.d(r,{A:()=>s});
1var l=t(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 s=(0,l.A)(a)},25561:(e,r,t)=>{"use strict";t.d(r,{A:()=>s});var l=t(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 s=(0,l.A)(a)},34468:(e,r,t)=>{"use strict";t.d(r,{A:()=>s});var l=t(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 s=(0,l.A)(a)},42793:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>_});var l=t(37876),a=t(14232),s=t(47716),i=t(46115),n=t(1164),d=t(97224),o=t(94502),c=t(16353),p=t(74577),m=t(43588),x=t(48230),h=t.n(x),u=t(81220),y=t(97685),b=t(14e3),g=t(78028),v=t(54587),j=t.n(v);function f(e){let{label:r,required:t,error:a,children:s,hint:i}=e;return(0,l.jsxs)("div",{children:[(0,l.jsxs)("label",{className:"block text-14 font-medium text-secondary mb-1.5",children:[r," ",t&&(0,l.jsx)("span",{className:"text-red",children:"*"}),i&&(0,l.jsxs)("span",{className:"text-grey font-normal ml-1",children:["(",i,")"]})]}),s,a&&(0,l.jsx)("p",{className:"text-12 text-red mt-1",children:a})]})}let N="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",w=(0,m.cn)(N,"appearance-none cursor-pointer");function _(){let e=(0,b.useParams)().id||"",[r,t]=(0,a.useState)([]),[x,v]=(0,a.useState)([]),[_,k]=(0,a.useState)(!1),[A,S]=(0,a.useState)(""),[q,C]=(0,a.useState)(!1),[L,M]=(0,a.useState)({}),[z,D]=(0,a.useState)([]),[G,E]=(0,a.useState)([]),[P,U]=(0,a.useState)([]),[B,J]=(0,a.useState)([]),[R,T]=(0,a.useState)([]),[H,O]=(0,a.useState)(!1),[V,I]=(0,a.useState)({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:"https://example.com"}),F=(e,r)=>{I(t=>({...t,[e]:r}))},W=A.trim()?z.filter(e=>e.name.toLowerCase().includes(A.trim().toLowerCase())&&!r.some(r=>r.id===e.id)):[],X=async()=>{let e=A.trim();e&&(t([...r,(await (0,u.dZ)({skill:e})).content.skill]),S(""))},Z=async e=>{e.preventDefault();let t=function(e,r,t){let l={};return e.job_title.trim()||(l.job_title="Job title is required"),e.job_type||(l.job_type="Job type is required"),e.location.trim()||(l.location="City is required"),e.country.trim()||(l.country="Country is required"),e.work_mode||(l.work_mode="Work mode is required"),e.exp_level||(l.exp_level="Experience level is required"),e.industry_id||(l.industry_id="Industry is required"),e.min_salary||(l.min_salary="Minimum salary is required"),e.max_salary||(l.max_salary="Maximum salary is required"),e.salary_period||(l.salary_period="Salary Type is required"),e.description.trim()||(l.description="Description is required"),e.requirements.trim()||(l.requirements="Requirements are required"),r&&0!==r.length||(l.skills="Select at least one skill"),t&&0!==t.length||(l.benefits="Select at least one benefit"),e.application_deadline?e.application_deadline<new Date().toISOString().split("T")[0]&&(l.application_deadline="Deadline cannot be in the past"):l.application_deadline="Application deadline is required",l}(V,r,x);if(Object.keys(t).length>0)return void M(t);M({}),C(!0);try{console.log("Submit:",{...V,skills:r.map(e=>
1null==e?void 0:e.id),benefits:x});let e=await (0,u.bR)(R,{...V,skills:r.map(e=>null==e?void 0:e.id),benefits:x});console.log(e),C(!1),e.error||(J([]),y.Ay.success("Job updated successfully"))}catch(e){var l,a;C(!1),g.A.isAxiosError(e)&&(null==(a=e.response)||null==(l=a.data)?void 0:l.errors)&&J(Object.values(e.response.data.errors).flat()),M({})}};return(0,a.useEffect)(()=>{(async()=>{var r,l,a,s,i,n,d,o,c,p,m;let[x,h,y,b]=await Promise.all([(0,u.pC)(),(0,u.Bd)(),(0,u.fj)(),(0,u.xH)(e)]);D((null==x||null==(r=x.content)?void 0:r.skills)||[]),E((null==h||null==(l=h.content)?void 0:l.benefits)||[]),U((null==y||null==(a=y.content)?void 0:a.industries)||[]);let g=null==b||null==(s=b.content)?void 0:s.post;g&&(T(g.id),I({job_title:g.job_title||"",job_type:g.job_type||"",location:(null==(i=g.location)?void 0:i.address)||"",country:(null==(n=g.location)?void 0:n.country)||"",work_mode:g.work_mode||"",exp_level:g.exp_level||"",industry_id:String(g.industry_id||""),min_salary:(null==(d=g.salary)?void 0:d.min_salary)||"",max_salary:(null==(o=g.salary)?void 0:o.max_salary)||"",currency:g.currency||"USD",description:g.description||"",requirements:g.requirements||"",application_deadline:g.application_deadline?g.application_deadline.split("T")[0]:"",easyApply:g.easyApply||!1,visaSponsorship:g.visaSponsorship||!1,apply_method:g.apply_method||!1,external_apply_url:g.external_apply_url||"",salary_period:null==(c=g.salary)?void 0:c.salary_period}),t((null==(p=g.skills)?void 0:p.map(e=>e.skill))||[]),v((null==(m=g.benefits)?void 0:m.map(e=>e.benefits_perks_id))||[]))})()},[e]),(0,l.jsxs)("div",{className:"min-h-screen bg-offWHite flex",children:[H&&(0,l.jsx)("div",{className:"fixed inset-0 z-40 bg-black/40 md:hidden",onClick:()=>O(!1)}),(0,l.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(H?"translate-x-0":"-translate-x-full","\n      "),children:[(0,l.jsxs)("div",{className:"flex items-center justify-between p-3 border-b border-dividerGrey",children:[(0,l.jsx)(h(),{href:"/",children:(0,l.jsx)(j(),{width:300,height:300,src:"/images/headerLogo.jpg",alt:"
1Velaflow",className:"h-8 w-auto"})}),(0,l.jsx)("button",{onClick:()=>O(!1),className:"p-1.5 rounded-lg hover:bg-greyLight text-greyDark transition-colors","aria-label":"Close menu",children:(0,l.jsx)(s.A,{className:"w-5 h-5"})})]}),(0,l.jsx)(c.A,{})]}),(0,l.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,l.jsx)(c.A,{})}),(0,l.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,l.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,l.jsx)("button",{onClick:()=>O(!0),className:"p-1.5 rounded-lg hover:bg-greyLight text-greyDark transition-colors","aria-label":"Open menu",children:(0,l.jsx)(i.A,{className:"w-5 h-5"})}),(0,l.jsx)(h(),{href:"/",children:(0,l.jsx)(j(),{width:300,height:300,src:"/images/headerLogo.jpg",alt:"Velaflow",className:"h-8 w-auto"})}),(0,l.jsx)("div",{className:"w-8"})," "]}),(0,l.jsxs)("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 pt-20 md:pt-8 pb-8",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between mb-8",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("h1",{className:"text-secondary font-bold text-2xl",children:"Edit Job Post"}),(0,l.jsx)("p",{className:"text-grey text-14 mt-1",children:"Update details for job post"})]})," "]}),(0,l.jsxs)("form",{onSubmit:Z,className:"space-y-6",children:[(0,l.jsxs)("div",{className:"bg-white border border-dividerGrey rounded-2xl p-6",children:[(0,l.jsxs)("h2",{className:"text-secondary font-semibold mb-5 flex items-center gap-2",children:[(0,l.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,l.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-5",children:[(0,l.jsx)(f,{label:"Job Title",required:!0,error:L.job_title,children:(0,l.jsx)("input",{value:V.job_title,onChange:e=>F("job_title",e.target.value),placeholder:"e.g. Senior Laravel Developer",className:(0,m.cn)(N,L.job_title?"border-red focus:ring-red":"")}
1)}),(0,l.jsx)(f,{label:"Job Type",required:!0,error:L.job_type,children:(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsxs)("select",{value:V.job_type,onChange:e=>F("job_type",e.target.value),className:(0,m.cn)(w,L.job_type&&"border-red"),children:[(0,l.jsx)("option",{value:"",children:"Select type"}),p.MA.map(e=>(0,l.jsx)("option",{value:e.value,children:e.label},e.value))]}),(0,l.jsx)(n.A,{className:"absolute right-3 top-1/2 -translate-y-1/2 w-4 h-4 text-grey pointer-events-none"})]})}),(0,l.jsx)(f,{label:"Location",required:!0,error:L.location,hint:"city",children:(0,l.jsx)("input",{value:V.location,onChange:e=>F("location",e.target.value),placeholder:"e.g. New York, USA or Remote",className:(0,m.cn)(N,L.city&&"border-red")})}),(0,l.jsx)(f,{label:"Country",required:!0,error:L.country,children:(0,l.jsx)("input",{value:V.country,onChange:e=>F("country",e.target.value),placeholder:"e.g. USA",className:N})}),(0,l.jsx)(f,{label:"Work Mode",required:!0,error:L.work_mode,children:(0,l.jsx)("div",{className:"flex gap-2",children:p.tv.map(e=>(0,l.jsxs)("label",{className:"flex-1",children:[(0,l.jsx)("input",{type:"radio",name:"work_mode",value:e.value,checked:V.work_mode===e.value,onChange:e=>F("work_mode",e.target.value),className:"sr-only"}),(0,l.jsx)("div",{className:(0,m.cn)("border rounded-xl py-2 text-center text-14 cursor-pointer transition-all",V.work_mode===e.value?"bg-primary text-white border-primary":"border-dividerGrey text-greyDark hover:border-primary"),children:e.label})]},e.value))})}),(0,l.jsx)(f,{label:"Experience Level",required:!0,error:L.exp_level,children:(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsxs)("select",{value:V.exp_level,onChange:e=>F("exp_level",e.target.value),className:w,children:[(0,l.jsx)("option",{value:"",children:"Select level"}),p.bp.map(e=>(0,l.jsx)("option",{value:e.value,children:e.label},e.value))]}),(0,l.jsx)(n.A,{className:"absolute right-3 top-1/2 -translate-y-1/2 w-4 h-4 text-grey pointer-events-none"})]})}),(0,l.jsx)(f,{label:"Industry",required:!0,error:L.industry_id,children:(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsxs)("select",{value:V.industry_id,onChange:e=>F("industry_id",e.target.value),className:w,children:[(0,l.jsx)("option",{value:"",children:"Select industry"}),P.map(e=>(0,l.jsx)("option",{value:null==e?void 0:e.id,children:null==e?void 0:e.name},e.id))]}),(0,l.jsx)(n.A,{className:"absolute right-3 top-1/2 -translate-y-1/2 w-4 h-4 text-grey pointer-events-none"})]})})]})]}),(0,l.jsxs)("div",{className:"bg-white border border-dividerGrey rounded-2xl p-6",children:[(0,l.jsxs)("h2",{className:"text-secondary font-semibold mb-5 flex items-center gap-2",children:[(0,l.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,l.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,l.jsx)(f,{label:"Type",required:!0,error:L.salary_period,children:(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsxs)("select",{value:V.salary_period,onChange:e=>F("salary_period",e.target.value),className:(0,m.cn)(w,L.salary_type&&"border-red"),children:[(0,l.jsx)("option",{value:"",children:"Select type"}),p.Zq.map(e=>(0,l.jsx)("option",{value:e.value,children:e.label},e.value))]}),(0,l.jsx)(n.A,{className:"absolute right-3 top-1/2 -translate-y-1/2 w-4 h-4 text-grey pointer-events-none"})]})}),(0,l.jsx)(f,{label:"Minimum",required:!0,error:L.min_salary,children:(0,l.jsx)("input",{type:"number",value:V.min_salary,onChange:e=>F("min_salary",""===e.target.value?"":Number(e.target.value)),placeholder:"e.g. 50000",className:(0,m.cn)(N,L.min_salary&&"border-red")})}),(0,l.jsx)(f,{label:"Maximum",required:!0,error:L.max_salary,children:(0,l.jsx)("input",{type:"number",value:V.max_salary,onChange:e=>F("max_salary",""===e.target.value?"":Number(e.target.value)),placeholder:"e.g. 80000",className:(0,m.cn)(N,L.max_salary&&"border-red")})}),(0,l.jsx)(f,{label:"Currency",children:(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsxs)("select",{value:V.currency,onChange:e=>F("currency",e.target.value),className:w,children:[(0,l.jsx)("option",{value:"USD",children:"USD"}),(0,l.jsx)("option",{value:"EUR",children:"EUR"}),(0,l.jsx)("option",{value:"GBP",children:"GBP"}),(0,l.jsx)("option",{value:"INR",children:"INR"}),(0,l.jsx)("option",{value:"AED",children:"AED"})]}),(0,l.jsx)(n.A,{className:"absolute right-3 top-1/2 -translate-y-1/2 w-4 h-4 text-grey pointer-events-none"})]})})]})]}),(0,l.jsxs)("div",{className:"bg-white border border-dividerGrey rounded-2xl p-6",children:[(0,l.jsxs)("h2",{className:"text-secondary font-semibold mb-5 flex items-center gap-2",children:[(0,l.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,l.jsxs)("div",{className:"space-y-5",children:[(0,l.jsx)(f,{label:"Job Description",required:!0,error:L.description,children:(0,l.jsx)("textarea",{rows:6,value:V.description,onChange:e=>F("description",e.target.value),placeholder:"Describe the role, responsibilities and other details...",className:(0,m.cn)(N,"resize-y min-h-32",L.description&&"border-red")})}),(0,l.jsx)(f,{label:"Requirements",required:!0,error:L.requirements,children:(0,l.jsx)("textarea",{rows:4,value:V.requirements,onChange:e=>F("requirements",e.target.value),placeholder:"List the skills, experience and qualifications required...",className:(0,m.cn)(N,"resize-y min-h-24",L.requirements&&"border-red")})})]})]}),(0,l.jsxs)("div",{className:"bg-white border border-dividerGrey rounded-2xl p-6",children:[(0,l.jsxs)("h2",{className:"text-secondary font-semibold mb-5 flex items-center gap-2",children:[(0,l.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,l.jsxs)("div",{className:"relative flex gap-2 mb-3",children:[(0,l.jsx)("input",{type:"text",value:A,onChange:e=>{S(e.target.value),k(!0)},onFocus:()=>k(!0),onBlur:()=>setTimeout(()=>k(!1),150),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),X())},placeholder:"Search a skill...",className:(0,m.cn)(N,"flex-1",L.skills&&"border-red focus:ring-red")}),_&&W.length>0&&(0,l.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:W.map(e=>(0,l.jsx)("button",{type:"button",onMouseDown:e=>e.preventDefault(),onClick:()=>{t(r=>r.some(r=>r.id===e.id)?r:[...r,e]),S(""),k(!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))}),_&&A.trim()&&0===W.length&&(0,l.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."})]}),r.length>0&&(0,l.jsx)("div",{className:"flex flex-wrap gap-2 mb-3",children:r.map(e=>(0,l.jsx)(o.AC,{skill:e,removable:!0,active:!0,onRemove:()=>t(r.filter(r=>r.id!==e.id))},e.id))}),L.skills&&(0,l.jsx)("p",{className:"text-12 text-red mt-1",children:L.skills})]}),(0,l.jsxs)("div",{className:"bg-white border border-dividerGrey rounded-2xl p-6",children:[(0,l.jsxs)("h2",{className:"text-secondary font-semibold mb-5 flex items-center gap-2",children:[(0,l.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,l.jsx)("div",{className:"flex flex-wrap gap-2",children:G.map(e=>(0,l.jsxs)("button",{type:"button",onClick:()=>{let r;return r=e.id,v(e=>e.includes(r)?e.filter(e=>e!==r):[...e,r])},className:(0,m.cn)("px-3 py-1.5 rounded-xl text-14 border transition-all",x.includes(e.id)?"bg-primary/10 text-primary border-primary/30 font-medium":"border-dividerGrey text-greyDark hover:border-primary/50"),children:[x.includes(e.id)&&"✓ ",e.name]},e.id))}
1),L.benefits&&(0,l.jsx)("p",{className:"text-12 text-red mt-1",children:L.benefits})]}),(0,l.jsxs)("div",{className:"bg-white border border-dividerGrey rounded-2xl p-6",children:[(0,l.jsxs)("h2",{className:"text-secondary font-semibold mb-5 flex items-center gap-2",children:[(0,l.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,l.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-5",children:[(0,l.jsx)(f,{label:"Application Deadline",required:!0,error:L.application_deadline,children:(0,l.jsx)("input",{min:new Date().toISOString().split("T")[0],type:"date",value:V.application_deadline,onChange:e=>F("application_deadline",e.target.value),className:(0,m.cn)(N,L.application_deadline&&"border-red focus:ring-red")})}),(0,l.jsx)("div",{className:"space-y-4 pt-1"})]}),(0,l.jsxs)("div",{className:"mt-6 border-t pt-6",children:[(0,l.jsx)(f,{label:"Application Method",children:(0,l.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,l.jsxs)("label",{className:"flex items-center gap-2 cursor-pointer",children:[(0,l.jsx)("input",{type:"radio",name:"apply_method",value:"velaflow",checked:"velaflow"===V.apply_method,onChange:e=>F("apply_method",e.target.value)}),(0,l.jsx)("span",{children:"Apply at Velaflow"})]}),(0,l.jsxs)("label",{className:"flex items-center gap-2 cursor-pointer",children:[(0,l.jsx)("input",{type:"radio",name:"apply_method",value:"external",checked:"external"===V.apply_method,onChange:e=>F("apply_method",e.target.value)}),(0,l.jsx)("span",{children:"External Apply"})]})]})}),"external"===V.apply_method&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(f,{label:"External Application URL",error:L.external_apply_url,children:(0,l.jsx)("input",{type:"url",placeholder:"https://company.com/careers/job-123",value:V.external_apply_url,onChange:e=>F("external_apply_url",e.target.value),className:(0,m.cn)(N,L.external_apply_url?"border-red focus:ring-red":"")}
1)})})]})]}),(null==B?void 0:B.length)>0?(0,l.jsx)("div",{className:"text-red text-12 mt-1",children:null==B?void 0:B.map((e,r)=>(0,l.jsx)("p",{children:e},"x-".concat(r)))}):null,(0,l.jsx)("div",{className:"flex items-center justify-end gap-3 pb-8",children:(0,l.jsxs)("button",{type:"submit",disabled:q,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,l.jsx)(d.A,{className:"w-4 h-4"}),q?"Updating...":"Update Job"]})})]})]})]})]})}},43588:(e,r,t)=>{"use strict";function l(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return r.filter(Boolean).join(" ")}t.d(r,{cn:()=>l})},46115:(e,r,t)=>{"use strict";t.d(r,{A:()=>s});var l=t(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 s=(0,l.A)(a)},47716:(e,r,t)=>{"use strict";t.d(r,{A:()=>s});var l=t(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 s=(0,l.A)(a)},62822:(e,r,t)=>{"use strict";t.d(r,{A:()=>s});var l=t(51935);let a={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};a.node;let s=(0,l.A)(a)},64310:(e,r,t)=>{"use strict";t.d(r,{A:()=>s});var l=t(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 s=(0,l.A)(a)},74577:(e,r,t)=>{"use strict";t.d(r,{MA:()=>l,Zq:()=>a,bp:()=>i,qO:()=>n,tv:()=>s});let l=[{value:"full_time",label:"Full-time"},{value:"part_time",label:"Part-time"},{value:"contract",label:"Contract"},{value:"internship",label:"Internship"},{value:"freelance",label:"Freelance"}],a=[{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"}]},78558:(e,r,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/jobs/[id]/edit",function(){return t(42793)}])},80196:(e,r,t)=>{"use strict";t.d(r,{A:()=>s});var l=t(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 s=(0,l.A)(a)},88634:(e,r,t)=>{"use strict";t.d(r,{A:()=>s});var l=t(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 s=(0,l.A)(a)},94502:(e,r,t)=>{"use strict";t.d(r,{AC:()=>p,Wh:()=>c,X3:()=>u,ff:()=>x,pp:()=>m,q5:()=>h});var l=t(37876),a=t(43588),s=t(18820),i=t(25561),n=t(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",interview_scheduled:"Interview Scheduled"};function c(e){let{status:r,size:t="md"}
1=e,s=d[r.toLowerCase()]||"bg-grey/10 text-greyDark",i=o[r]||r.charAt(0).toUpperCase()+r.slice(1);return(0,l.jsx)("span",{className:(0,a.cn)("inline-flex items-center font-medium rounded-full capitalize","sm"===t?"px-2 py-0.5 text-12":"px-3 py-1 text-14",s),children:i})}function p(e){let{skill:r,removable:t,onRemove:s,onClick:i,active:n}=e;return(0,l.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==r?void 0:r.name,t&&(0,l.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:r="jobs",title:t,description:a,action:d}=e,o="jobs"===r?s.A:"company"===r?i.A:n.A;return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center py-16 px-6 text-center",children:[(0,l.jsx)("div",{className:"w-16 h-16 rounded-2xl bg-bgSkyBlue flex items-center justify-center mb-4",children:"string"==typeof r?(0,l.jsx)(o,{className:"w-8 h-8 text-primary"}):r}),(0,l.jsx)("h3",{className:"text-secondary font-semibold text-lg mb-2",children:t}),a&&(0,l.jsx)("p",{className:"text-grey text-14 max-w-sm mb-6",children:a}),d&&(0,l.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 x(){return(0,l.jsxs)("div",{className:"bg-white border border-dividerGrey rounded-2xl p-5 animate-pulse",children:[(0,l.jsxs)("div",{className:"flex items-start gap-3 mb-4",children:[(0,l.jsx)("div",{className:"w-12 h-12 bg-greyLight rounded-xl flex-shrink-0"}),(0,l.jsxs)("div",{className:"flex-1",children:[(0,l.jsx)("div",{className:"h-4 bg-greyLight rounded w-3/4 mb-2"}),(0,l.jsx)("div",{className:"h-3 bg-greyLight rounded w-1/2"})]})]}),(0,l.jsxs)("div",{className:"flex gap-2 mb-3",children:[(0,l.jsx)("div",{className:"h-6 bg-greyLight rounded-lg w-16"}),(0,l.jsx)("div",{className:"h-6 bg-greyLight rounded-lg w-20"}),(0,l.jsx)("div",{className:"h-6 bg-greyLight rounded-lg w-14"})]}),(0,l.jsxs)("div",{className:"flex gap-2 mb-4",children:[(0,l.jsx)("div",{className:"h-6 bg-greyLight rounded-full w-12"}),(0,l.jsx)("div",{className:"h-6 bg-greyLight rounded-full w-16"}),(0,l.jsx)("div",{className:"h-6 bg-greyLight rounded-full w-14"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between pt-3 border-t border-dividerGrey",children:[(0,l.jsx)("div",{className:"h-3 bg-greyLight rounded w-20"}),(0,l.jsx)("div",{className:"h-3 bg-greyLight rounded w-16"})]})]})}function h(e){let{name:r="Unknown User",size:t="md",className:s}=e,i=(null==r?void 0:r.split(" ").map(e=>e[0]).join("").slice(0,2).toUpperCase())||"NA";return(0,l.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"}[t],s),children:i})}function u(e){let{title:r,subtitle:t,action:a}=e;return(0,l.jsxs)("div",{className:"flex items-start justify-between mb-6",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("h2",{className:"text-secondary font-semibold text-lg",children:r}),t&&(0,l.jsx)("p",{className:"text-grey text-14 mt-0.5",children:t})]}),a&&(0,l.jsx)("div",{children:a})]})}},97224:(e,r,t)=>{"use strict";t.d(r,{A:()=>s});var l=t(51935);let a={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"}]]};a.node;let s=(0,l.A)(a)}},e=>{e.O(0,[377,636,6593,8792],()=>e(e.s=78558)),_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.