PageSourceSearch

https://avua.com/assets/ContractJobPost-CSxhZOq3.js

js avua.com collected 2026-09-24 12:53:34 UTC 142,559 bytes, 64 lines download raw bytes

1import{h as W,j as e,i as U,c as a,b as te,a3 as re,e as be,B as ke,A as Se,f as Ee,y as ue,a4 as Fe,a5 as pe,a6 as De,a7 as Ie,a8 as Te,a9 as Me,aa as ne,ab as ie,ac as je,ad as Re,ae as X,af as Ae,ag as Pe,u as ye,ah as ve,w as Le,ai as Be,aj as Oe,ak as Ue,al as Ve,am as we,an as Ne,ao as Ge,ap as me,aq as le,ar as He,as as Ye,a2 as qe,at as $e}from"./index-B9q78oLf.js";import{g as Je,a as ze,b as Ke}from"./employerDashboard-D_amyCIH.js";import{C as Ze}from"./CustomToast-kSgW13EZ.js";import{T as We}from"./ThumbsReviewModal-DhC0Faps.js";import"./currency-symbol-map-CjPMGLKU.js";import{c as Ce}from"./currencyList-DWEaTfGZ.js";import{R as he}from"./react-country-flag.esm-CBTvU6qH.js";import{u as Xe}from"./useViewportZoom-CAZJvmVH.js";import"./index-Cq9UrQZH.js";import"./___vite-browser-external_commonjs-proxy-CeLqxiRG.js";const Qe=["basicDetails","jobDetails","paymentContractDetails","reviewPublishDetails"],et=({activePage:n})=>{const[t,o]=W.useState([]),j=h=>t.includes(h),u=h=>{const w=Qe,C=w.indexOf(h),E=w.slice(0,C+1);o(E)};return W.useEffect(()=>{u(n)},[n]),e.jsxs("div",{className:"w-full relative flex flex-col items-start gap-[26px] text-left text-[14px] text-darkslateblue font-poppins",children:[e.jsx("img",{className:"w-[76.5px] h-[18px] shrink-0",src:U.CommonHeader.avua_header_logo,alt:""}),e.jsxs("div",{className:" flex flex-col items-start pt-[23px] px-0 pb-0 box-border gap-8 shrink-0",children:[e.jsxs("div",{className:"relative leading-[140%] font-semibold inline-block",children:["Define the Role.  ",e.jsx("br",{}),"Discover the Right Talent."]}),e.jsxs("div",{className:"flex flex-col items-start",children:[e.jsxs("div",{className:"flex items-start gap-[12.4px]",children:[e.jsxs("div",{className:"flex flex-col items-center relative isolate",children:[e.jsx("div",{className:"text-[14px] absolute top-[8px] font-semibold inline-block z-[4]",children:"1"}),e.jsx("img",{className:"w-[38px] h-[38px] relative rounded-[4.11px] z-[3]",src:U.Employer.star1}),t.includes("jobDetails")?e.jsxs(e.Fragment,{children:[e.jsx("img",{className:"w-[38px] h-[38px] absolute rounded-[4.11px] z-[5]",src:U.commonIcons.tickPurpleBg}),e.jsx("img",{className:"h-[42.4px] z-[0] mt-[-1.2px]",alt:"",src:U.commonIcons.linePurpleGradient})]}):e.jsx("div",{className:"relative  h-[41.0px] border-[#00000026] border-dashed border-r-[1.2px] box-border"})]}),e.jsx("div",{className:"flex flex-col items-start justify-center px-0 pt-[11px] pb-[3.5px] text-[12px]",children:e.jsx("div",{className:`relative leading-[140%] font-semibold  shrink-0 ${j("basicDetails")?"":"text-gray-100"}`,children:"Describe the Role"})})]}),e.jsxs("div",{className:"flex items-start gap-[12.4px]",children:[e.jsxs("div",{className:"flex flex-col items-center relative isolate",children:[e.jsx("div",{className:"text-[14px] absolute top-[8px] font-semibold inline-block z-[4]",children:"2"}),e.jsx("img",{className:"w-[38px] h-[38px] rounded-[4.11px] z-[1]",alt:"",src:U.Employer.star1}),t.includes("reviewPublishDetails")?e.jsxs(e.Fragment,{children:[e.jsx("img",{className:"w-[38px] h-[38px] absolute rounded-[4.11px] z-[5]",src:U.commonIcons.tickPurpleBg}),e.jsx("img",{className:"h-[42.4px] z-[0] mt-[-1.2px]",alt:"",src:U.commonIcons.linePurpleGradient})]}):e.jsx("div",{className:"relative  h-[41.0px] border-[#00000026] border-dashed border-r-[1.2px] box-border"})]}),e.jsx("div",{className:"h-[31.8px] flex flex-col items-start justify-center pt-[11px] px-num-0 pb-[3.5px] box-border gap-[3.5px] text-[12px]",children:e.jsx("div",{className:`relative leading-[140%] font-semibold  shrink-0 ${j("paymentContractDetails")?"":"text-gray-100"}`,children:"Payment & Scope"})})]}),e.jsxs("div",{className:"flex items-start gap-[12.4px]",children:[e.jsxs("div",{className:"flex flex-col items-center relative isolate",children:[e.jsx("div",{className:"text-[14px] absolute top-[8px] font-semibold inline-block z-[4]",children:"3"}),e.jsx("img",{className:"w-[38px] h-[38px] relative rounded-[4.11px] z-[1]",alt:"",src:U.Employer.star1}),e.jsx("div",{className:"w-num-0_6 h-[42.4px] flex items-center py-num-0 pl-num-0 pr-[0.6px] box-border z-[0] mt-[-1.2px] relative"})]}),e.jsx("div",{className:"h-[31.8px] flex flex-col items-start justify-center pt-[11px] px-num-0 pb-[3.5px] box-border gap-[3.5px] text-[12px]",children:e.jsx("div",{className:`relative leading-[140%] font-semibold  shrink-0 ${j("reviewPublishDetails")?"":"text-gray-100"}`,children:"Review & Publish"})})]})]})]})]})},xe=({onNext:n,onBack:t,showBack:o=!0,nextLabel:j="Continue",disabled:u=!1})=>e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"h-[113px]"}),e.jsx("div",{className:"fixed bottom-0 right-0 left-[240px] px-10 pb-5 pt-5 border-t border-[#00000014] bg-white z-10",children:e.jsxs("div",{className:"flex justify-between text-[12px] font-semibold ",children:[e.jsx("div",{className:"flex gap-3",children:o?e.jsx("button",{onClick:t,className:"border border-[#00000014] rounded-xl px-[23px] py-[16px] bg-gradient-to-r from-[#6B3BAB] to-[#2b1845] bg-clip-text text-transparent font-semibold transition-all",children:"Back"}):e.jsx("div",{})}),e.jsxs("div",{className:"flex items-center space-x-5",children:[e.jsx("p",{className:"text-lightslategray font-medium",children:"Please complete all the mandatory fields"}),e.jsx("div",{className:"rounded-[12px] p-[1.5px] bg-purple-brand active:scale-95 transition-all duration-300",children:e.jsx("button",{type:"submit",onClick:n,disabled:u,className:`w-full flex justify-center items-center rounded-[10px] font-poppins font-[500] leading-[19.2px] px-[23px] py-[16px] bg-white transition-all duration-300
2                            ${u?"opacity-40 cursor-not-allowed":""}
3                            `,children:e.jsx("span",{className:"bg-gradient-to-r from-[#6B3BAB] to-[#2B1845] text-transparent bg-clip-text font-medium",children:j})})})]})]})})]}),de=a.forwardRef(({label:n,name:t,value:o,onChange:j,error:u,placeholder:h,handleItemSelect:w,mandatory:C=!1,fetchDataApi:E,onKeyDown:k=()=>{},extraParams:N={},isDisabled:T=!1},y)=>
3{const[S,r]=a.useState([]),[f,R]=a.useState(!1),[g,x]=a.useState(!1),d=a.useRef(null),F=async b=>{if(b){R(!0);try{const M=(await E(b,N)).data;M?(r(M),x(!0)):(r([]),x(!1))}catch(D){console.error("Error fetching job titles:",D)}finally{R(!1)}}},m=b=>{const D=b.target.value;if(j(D),d.current&&clearTimeout(d.current),D===""){x(!1);return}d.current=setTimeout(()=>{F(D)},600)},p=b=>{x(!1),r([]),w(b)};return e.jsxs("div",{className:"w-full relative text-[14px]",children:[e.jsxs("label",{className:`block leading-[100%] text-[#121826] font-poppins font-[500] px-1 absolute ${T?"":"bg-white"} rounded-md left-3 -top-1 z-10`,children:[n,C&&e.jsx("span",{className:"text-red ml-1",children:"*"})]}),e.jsx("input",{ref:y,className:`outline-purple px-4 py-3 w-full shadow-[0px_2px_2px_rgba(0,_0,_0,_0.05)] rounded-lg bg-white border-borderLightGray border-solid border-[1px] box-border ${u?"border-red":""} disabled:bg-[#d9d9d9] disabled:text-gray-200 disabled:cursor-not-allowed  disabled:opacity-60`,type:"text",name:t,placeholder:h,value:o||"",onChange:m,onKeyDown:k,autoComplete:"off",disabled:T}),f&&e.jsx("div",{className:"absolute right-3 top-3",children:e.jsx("div",{className:"animate-spin h-4 w-4 border-2 border-purple border-t-transparent rounded-full"})}),g&&S.length>0&&e.jsx("div",{className:"absolute z-50 left-0 mt-1 w-full bg-white border border-[#00000014] shadow-2xl rounded-lg max-h-60 overflow-y-auto",children:S.map(b=>e.jsx("div",{className:"px-4 py-3 cursor-pointer hover:bg-ghostwhite transition-colors border-b border-[#00000014] last:border-none text-darkslateblue",onClick:()=>p(b),children:n==="Job Title"?b.title:n==="Country"?b.name:n==="City"?[b.city,b.state,b.country].filter(Boolean).join(", "):n==="Currency"?`${b.label}( ${b.value})`:e.jsx(e.Fragment,{})},b.id))}),u&&e.jsx("p",{className:"text-red text-[13px] mt-1 ml-1 font-medium",children:u})]})}),tt=a.forwardRef(({label:n,value:t,onChange:o,onClear:j,jobTitle:u,placeholder:h,error:w,touched:C,mandatory:E=!1,aiIcon:k,showAiButton:N=!1,onJDParsed:T,fetchSuggestedSkillApi:y=()=>{},isDisabled:S=!1},r)=>{const[f,R]=a.useState(null),g=a.useRef(null),[x,d]=a.useState(!1),[F,m]=a.useState(!1),[p,b]=a.useState(0),[D,M]=a.useState(""),[P,_]=a.useState(!1),[v,$]=a.useState({isVisible:!1,message:"",type:"success"}),K=te(L=>L.auth.token),se={toolbar:[["bold","italic","underline"],[{list:"bullet"}]]},J=(L,i="success")=>{$({isVisible:!0,message:L,type:i})},H=L=>{let i="";switch(L){case"uploading":i="Error uploading JD. Please try again.";break;case"parsing":i="Error parsing JD. Please ensure it's a valid job description.";break;case"title":i="Job title is missing in the uploaded JD.";break;case"scanned":i="Unable to fetch the JD content. Is it a scanned document?";break;default:i="Something went wrong during JD processing.";break}M(i),J(i,"error")},Q=()=>{if(!u)return;y(u),_(!0),m(!0),o("");let L="";const i=new URLSearchParams({title:u}),I=new EventSource(`https://api.avua.com/autofill/external/v1/roles-responsiblities-stream?${i.toString()+t}`);I.onmessage=B=>{const O=JSON.parse(B.data),Y=O.choices[0]?.delta?.content;if(Y&&(L+=Y.replace(/\n/g,"<br />"),o(L)),O.choices[0]?.finish_reason==="stop"){const z=L.replace(/-\s\*\*(.+?)\*\*/g,"**$1**").replace(/\*\*(.+?)\*\*/g,"<strong>$1</strong>").replace(/(\<br\s*\/?\>)\s*-\s/g,"$1 • ");o(z),I.close(),m(!1)}},I.onerror=B=>{console.error("EventSource failed:",B),I.close(),m(!1)}},Z=async L=>{if(!L)return;d(!0),_(!0),M(""),b(0);let i;if(L){const I=ke(L.name);console.log("FILE tYPE",L.type);try{const O=await Se(I,"ml_jd",K);console.log("Presigned URL : ",O.data),i=O.data.data}catch(O){console.log("ERROR getting presigned URL : ",O),H("something"),d(!1);return}try{await Ee.put(i.url,L,{headers:{"Content-Type":L.type},onUploadProgress:O=>{const Y=Math.round(O.loaded*100/O.total);b(Y)}})}catch{H("uploading"),d(!1);return}const B=i.path;try{const O=await Je(B,!1,K);O?.data?.msg==="success"&&(T(O.data?.data),J("JD uploaded and parsed successfully!","success"))}catch(O){if(O?.response?.status===400){const Y=O?.response?.data?.msg?.error;try{const z=JSON.parse(Y);z?.detail?.error==="Not a valid Job Description."?H("parsing"):z?.detail?.error==="job title is missing, start a fresh search with another query"?H("title"):z?.detail?.error==="Unable to fetch the JD content."?H("scanned"):H("parsing")}catch{H("parsing")}}else H("something")}finally{d(!1),g.current&&(g.current.value="")}}};return W.useEffect(()=>{f&&(Z(f),R(null))},[f]),e.jsxs("div",{className:"flex flex-col justify-center items-start w-full",children:[e.jsx(Ze,{isVisible:v.isVisible,message:v.message,type:v.type,onClose:()=>$({...v,isVisible:!1})}),e.jsxs("div",{className:" w-full relative flex",children:[e.jsx("div",{className:"relative z-10",children:e.jsxs("label",{className:"block whitespace-nowrap text-[14px] leading-[100%] text-[#121826] font-poppins font-[500] px-1 absolute bg-white left-3 -top-1",children:[n,E&&e.jsx("span",{className:"text-tomato ml-1",children:"*"})]})}),e.jsx("div",{className:"",children:e.jsx("button",{className:"absolute right-4 top-6 text-[13px] leading-6 text-tomato text-center",type:"button",onClick:j,children:" Clear All"})}),N&&e.jsxs("div",{className:"absolute -right-[160px] top-0 ",children:[e.jsxs("button",{type:"button",className:`group relative shadow-[0px_2.019009828567505px_79.7px_rgba(91,_15,_255,_0.14)] rounded-[100px] bg-purple-brand-light border-blueviolet border-solid border-[1px] box-border w-full flex items-center py-2.5 pl-3.5 pr-5 gap-2 text-left text-[10px] text-white font-poppins mb-2
4            ${!u||F||S?"cursor-not-allowed opacity-60":""}
5            `,onClick:()=>{!u||F||S||Q()}
5,children:[!u&&e.jsx("div",{className:"absolute bottom-[120%] left-1/2 -translate-x-1/2 z-10 hidden group-hover:block w-max px-4 py-2 bg-white text-[#3A3A3A] text-[14px] rounded-lg border border-borderLightGray shadow-sm",children:"Please enter a job title first."}),e.jsx("img",{className:`w-[25.7px] ${F?"animate-spin":""}`,alt:"",src:U.commonIcons.icon_star_ai_white}),e.jsx("div",{className:"relative leading-[150%] font-semibold",children:e.jsx("div",{type:"button",className:"flex w-[85px]",children:F?e.jsx(e.Fragment,{children:"Generating..."}):e.jsxs(e.Fragment,{children:[k&&e.jsx("img",{src:k,alt:"AI"}),"Generate with AI"]})})})]}),e.jsx("button",{type:"button",disabled:x||S,className:`w-full relative shadow-[0px_2.019009828567505px_79.7px_rgba(91,_15,_255,_0.14)] rounded-[100px] [border:1px_solid_transparent] flex items-center justify-center py-2.5 pl-3.5 pr-5 gap-2 text-left text-[10px] font-poppins ${x||S?"cursor-not-allowed opacity-60":"cursor-pointer"}`,onClick:()=>{g.current.click()},children:x?e.jsxs(e.Fragment,{children:[e.jsx(re,{color:"#604289",height:15,width:15,strokeWidth:5}),e.jsx("div",{className:"relative leading-[150%] font-semibold text-purple-brand",children:"Parsing JD..."})]}):e.jsxs(e.Fragment,{children:[e.jsx("img",{className:"w-[20px] relative max-h-full rotate-90",alt:"",src:U.commonIcons.icon_left_arrow_bg_gradient}),e.jsx("div",{className:"relative leading-[150%] font-semibold text-transparent !bg-clip-text bg-purple-brand",children:"Upload a JD"})]})}),e.jsx("input",{type:"file",onChange:L=>R(L.target.files[0]),accept:".docx,.doc,.pdf",hidden:!0,ref:g})," "]})]}),e.jsxs("div",{className:"w-full relative",children:[P&&e.jsx("div",{className:"bg-[#f9f1e2] text-[#a8690d] text-[10px] text-center font-semibold p-[2px_12px] absolute right-0 left-0 top-[62px]",children:"⚠ Contains some AI-generated content. Kindly verify."}),e.jsx(be,{ref:r,theme:"snow",className:`custom-quill2 w-full ${S?"bg-[#d9d9d9] rounded-t-lg":""}`,placeholder:h,value:t,onChange:o,modules:se,readOnly:S}),x&&e.jsx("div",{className:"absolute top-[70px] bg-white w-[97%] mx-[10px] h-[192px] over",children:e.jsxs("div",{className:"max-w-[423px] p-5 ",children:[e.jsxs("div",{className:"flex gap-2.5 mb-5",children:[e.jsx("div",{className:"animate-star-pulse origin-center flex-shrink-0",children:e.jsx("img",{src:U.commonIcons.icon_three_ai_star,className:"h-[30px] w-[30px] object-contain",alt:"star"})}),e.jsxs("div",{className:"text-[14px] leading-[150%]",children:[e.jsx("h2",{className:" font-semibold text-darkslateblue",children:"Preparing your job description"}),e.jsx("p",{className:"text-lightslategray  mt-1",children:"Note: This is a beta feature. Please verify the information for accuracy and completeness."})]})]}),e.jsxs("div",{className:"space-y-2 animate-pulse ",children:[e.jsx("div",{className:"h-[15px] w-[70%] bg-purple-brand-dim rounded-[4px]"}),e.jsx("div",{className:"h-[15px] w-[55%]  bg-purple-brand-dim  rounded-[4px]"}),e.jsx("div",{className:"h-[15px] w-[30%]  bg-purple-brand-dim  rounded-[4px]"})]})]})})]}),w&&e.jsx("p",{className:"text-[13px] text-red mt-2",children:w})]})}),st=({headingLabel:n,options:t=[],value:o,onChange:j})=>e.jsxs("div",{className:"w-fit",children:[n&&e.jsx("h1",{className:"font-semibold text-[14px] leading-[140%] text-darkslateblue mb-4",children:n}),e.jsx("div",{className:"space-x-5 flex bg-white border border-[#D2D5DA] p-1.5 rounded-xl text-[13px]",children:t.map(u=>{const h=o===u.value;return e.jsx("div",{onClick:()=>j(u.value),className:"cursor-pointer transition-all duration-300",children:e.jsx("div",{className:`p-[1px] rounded-lg transition-all duration-300 ${h?"bg-purple-brand-light":"bg-transparent"}`,children:e.jsx("div",{className:`rounded-lg px-6 py-[10px] text-black ${h?"bg-white ":" bg-transparent"}`,children:e.jsx("div",{className:"flex items-start gap-3",children:e.jsx("h2",{children:u.label})})})})},u.value)})})]}),nt=a.memo(st),at=({label:n="Label Name",value:t=[],placeholder:o,onChange:j,error:u,maxItems:h=10,loading:w,setSkillInputFocus:C=()=>{},handleRemoveSkillItem:E=()=>{},isDisabled:k=!1})=>{const N=te(_=>_.auth.token),[T,y]=a.useState(""),[S,r]=a.useState([]),[f,R]=a.use
5State(0),[g,x]=a.useState(!1),[d,F]=a.useState([]),m=(_,v)=>{f!==0&&clearTimeout(f);const $=setTimeout(()=>p(_),600);R($)},p=async _=>{await Fe(_,N).then(v=>{const K=v.data.data;r(K)}).catch(v=>{console.error("Error fetching skill suggestions:",v)})},b=_=>{if(console.log(_),t.length<h&&!t.find(v=>v.name===_.name)){const v=[...t,_];j(v),y(""),r([])}},D=_=>{const v=d.filter($=>$.id!==_.id);F(v)},M=_=>{const{value:v}=_.target;_.key==="Enter"&&v.trim()!==""?b({id:Date.now(),name:v.trim()}):(y(v),v?m(v):r([]))},P=()=>S?.length===0||T===""?null:e.jsx("div",{className:"rounded-lg absolute z-40 left-0 w-full bg-white border border-[#00000014] shadow-xl  overflow-scroll max-h-[240px]",children:S?.map(_=>e.jsx("div",{className:"px-4 py-[10px] cursor-pointer hover:bg-[#F8F9FE] border-b border-[#00000014]",onClick:()=>b(_),children:_.name},_.id))});return e.jsxs("div",{className:"relative w-full text-[14px]",children:[e.jsxs("h2",{className:" text-[14px] leading-[140%] text-darkslateblue font-poppins font-[500] pb-1 ",children:["  Add Skills         ",e.jsx("span",{className:"text-red",children:"*"})]}),e.jsx("p",{className:" text-[14px] leading-[140%] text-lightslategray font-poppins font-[500] pb-4 ",children:"Specify the core skills required for this contract."}),u&&e.jsx("p",{className:"text-red text-[13px] font-medium pb-2",children:u}),e.jsxs("div",{className:"flex gap-2.5 flex-wrap text-[13px] pb-4",children:[t.map((_,v)=>e.jsx("div",{className:"bg-purple-brand-light p-[1px] flex items-center rounded-full text-white",children:e.jsx("div",{className:"bg-white px-[10px] py-[6px] rounded-full",children:e.jsxs("span",{className:"font-poppins bg-purple-brand text-transparent bg-clip-text flex items-center",children:[_?.name,!k&&e.jsx(ue,{className:"w-3 h-3 ml-1 cursor-pointer",color:"#2b1845",onClick:()=>E(_)})]})})},v)),!g&&e.jsx("div",{className:`${k?"bg-[#d9d9d9] cursor-not-allowed":"bg-[#f8f9fe] cursor-pointer"} border border-[#0000000F] rounded-full `,children:e.jsx("div",{className:"bg-purple-brand text-transparent bg-clip-text  flex items-center px-[10px] py-[6px] rounded-full font-medium ",onClick:()=>!k&&x(!0),children:e.jsx("span",{className:"font-poppins  flex items-center",children:"+ Add skill"})})})]}),g&&e.jsx("div",{className:"w-full text-[13px]",children:e.jsx("div",{className:"flex gap-2.5",children:e.jsxs("div",{className:`relative border rounded-lg px-4 py-[13.5px] flex flex-wrap items-center gap-[10px] 
6                    outline-purple w-full shadow-[0px_2px_2px_rgba(0,_0,_0,_0.05)] 
7                    bg-white border-borderLightGray box-border cursor-pointer`,children:[d.map((_,v)=>e.jsx("div",{className:"bg-purple-brand-light flex items-center px-[10px] py-[6px] rounded-full text-white",children:e.jsxs("span",{className:"font-poppins text-sm flex items-center",children:[_?.name,e.jsx(ue,{className:"w-3 h-3 ml-1 cursor-pointer",onClick:()=>D(_)})]})},v)),e.jsx("input",{type:"text",className:"bg-[#F9F9FC] py-[10px] px-[12px] outline-none flex-1 min-w-[150px] rounded-[8px]",value:T,onChange:M,onKeyDown:_=>_.key==="Enter"&&M(_),placeholder:o})]})})}),P()]})},ae=a.forwardRef(({label:n,name:t,type:o="text",value:j,onChange:u,error:h,placeholder:w,mandatory:C=!1},E)=>{const k=N=>{u(N.target.value)};return e.jsxs("div",{className:"w-full relative text-[14px]",children:[e.jsxs("label",{className:"block leading-[100%] text-[#121826] font-poppins font-[500] px-1 absolute bg-white left-3 -top-1 z-10",children:[n,C&&e.jsx("span",{className:"text-red ml-1",children:"*"})]}),e.jsx("input",{ref:E,className:`outline-purple px-4 py-3 w-full shadow-[0px_2px_2px_rgba(0,_0,_0,_0.05)] rounded-lg bg-white border-borderLightGray border-solid border-[1px] box-border ${h?"border-red":""}`,type:o,name:t,placeholder:w,value:j,onChange:k,autoComplete:"off",onWheel:N=>N.currentTarget.blur()}),h&&e.jsx("p",{className:"text-red text-[13px] mt-1 ml-1 font-medium",children:h})]})});var it={AD:"EUR",AE:"AED",AF:"AFN",AG:"XCD",AI:"XCD",AL:"ALL",AM:"AMD",AN:"ANG",AO:"AOA",AQ:"USD",AR:"ARS",AS:"USD",AT:"EUR",AU:"AUD",AW:"AWG",AX:"EUR",AZ:"AZN",BA:"BAM",BB:"BBD",BD:"BDT",BE:"EUR",BF:"XOF",BG:"EUR",BH:"BHD",BI:"BIF",BJ:"XOF",BL:"EUR",BM:"BMD",BN:"BND",BO:"BOB",BQ:"USD",BR:"BRL",BS:"BSD",BT:"BTN",BV:"NOK",BW:"BWP",BY:"BYN",BZ:"BZD",CA:"CAD",CC:"AUD",CD:"CDF",CF:"XAF",CG:"XAF",CH:"CHF",CI:"XOF",CK:"NZD",CL:"CLP",CM:"XAF",CN:"CNY",CO:"COP",CR:"CRC",CU:"CUP",CV:"CVE",CW:"ANG",CX:"AUD",CY
7:"EUR",CZ:"CZK",DE:"EUR",DJ:"DJF",DK:"DKK",DM:"XCD",DO:"DOP",DZ:"DZD",EC:"USD",EE:"EUR",EG:"EGP",EH:"MAD",ER:"ERN",ES:"EUR",ET:"ETB",FI:"EUR",FJ:"FJD",FK:"FKP",FM:"USD",FO:"DKK",FR:"EUR",GA:"XAF",GB:"GBP",GD:"XCD",GE:"GEL",GF:"EUR",GG:"GBP",GH:"GHS",GI:"GIP",GL:"DKK",GM:"GMD",GN:"GNF",GP:"EUR",GQ:"XAF",GR:"EUR",GS:"FKP",GT:"GTQ",GU:"USD",GW:"XOF",GY:"GYD",HK:"HKD",HM:"AUD",HN:"HNL",HR:"EUR",HT:"HTG",HU:"HUF",ID:"IDR",IE:"EUR",IL:"ILS",IM:"GBP",IN:"INR",IO:"USD",IQ:"IQD",IR:"IRR",IS:"ISK",IT:"EUR",JE:"GBP",JM:"JMD",JO:"JOD",JP:"JPY",KE:"KES",KG:"KGS",KH:"KHR",KI:"AUD",KM:"KMF",KN:"XCD",KP:"KPW",KR:"KRW",KW:"KWD",KY:"KYD",KZ:"KZT",LA:"LAK",LB:"LBP",LC:"XCD",LI:"CHF",LK:"LKR",LR:"LRD",LS:"LSL",LT:"EUR",LU:"EUR",LV:"EUR",LY:"LYD",MA:"MAD",MC:"EUR",MD:"MDL",ME:"EUR",MF:"EUR",MG:"MGA",MH:"USD",MK:"MKD",ML:"XOF",MM:"MMK",MN:"MNT",MO:"MOP",MP:"USD",MQ:"EUR",MR:"MRU",MS:"XCD",MT:"EUR",MU:"MUR",MV:"MVR",MW:"MWK",MX:"MXN",MY:"MYR",MZ:"MZN",NA:"NAD",NC:"XPF",NE:"XOF",NF:"AUD",NG:"NGN",NI:"NIO",NL:"EUR",NO:"NOK",NP:"NPR",NR:"AUD",NU:"NZD",NZ:"NZD",OM:"OMR",PA:"PAB",PE:"PEN",PF:"XPF",PG:"PGK",PH:"PHP",PK:"PKR",PL:"PLN",PM:"EUR",PN:"NZD",PR:"USD",PS:"ILS",PT:"EUR",PW:"USD",PY:"PYG",QA:"QAR",RE:"EUR",RO:"RON",RS:"RSD",RU:"RUB",RW:"RWF",SA:"SAR",SB:"SBD",SC:"SCR",SD:"SDG",SE:"SEK",SG:"SGD",SH:"SHP",SI:"EUR",SJ:"NOK",SK:"EUR",SL:"SLE",SM:"EUR",SN:"XOF",SO:"SOS",SR:"SRD",SS:"SSP",ST:"STN",SV:"USD",SX:"ANG",SY:"SYP",SZ:"SZL",TC:"USD",TD:"XAF",TF:"EUR",TG:"XOF",TH:"THB",TJ:"TJS",TK:"NZD",TL:"USD",TM:"TMT",TN:"TND",TO:"TOP",TR:"TRY",TT:"TTD",TV:"AUD",TW:"TWD",TZ:"TZS",UA:"UAH",UG:"UGX",UM:"USD",US:"USD",UY:"UYU",UZ:"UZS",VA:"EUR",VC:"XCD",VE:"VED",VG:"USD",VI:"USD",VN:"VND",VU:"VUV",WF:"XPF",WS:"WST",XK:"EUR",YE:"YER",YT:"EUR",ZA:"ZAR",ZM:"ZMW",ZW:"ZWG"};const lt=[{id:1,value:"On-site",label:"Onsite"},{id:2,value:"Hybrid",label:"Hybrid"},{id:3,value:"Remote",label:"Remote"}],rt=ne().shape({job_title:ne().shape({title:X().required("Job title is required").min(2,"Job title must be at least 2 characters").max(99,"Job title cannot exceed 99 characters")}),description:X().test("is-empty","Responsibilities are required",n=>n?n.replace(/<[^>]*>?/gm,"").trim().length>0:!1).required("Responsibilities are required"),skills:Ae().min(1,"At least one skill is required"),country:ne().shape({id:X().required("Please select a country from the dropdown")}),job_location:ne().shape({id:X().test("is-city-provided","Please select a city from the dropdown",function(n){return(this.from&&this.from.length>1?this.from[1].value:{})?.work_mode?.[0]==="Remote"?!0:n!=null&&n!==""})}),allowGlobalApplicant:Re().required("Please select an option"),experience:ne().shape({min:ie().required("Minimum experience is required").min(0,"Minimum experience cannot be less than 0").test("max-check","Minimum experience cannot exceed maximum experience",function(n){const{max:t}=this.parent;return t==null||t===""?!0:n<=t}),max:ie().nullable().transform((n,t)=>t===""?null:n).min(je("min"),"Maximum experience cannot be less than minimum experience").max(50,"Maximum experience cannot exceed 50")})}),ot=({setActivePage:n,formData:t,setFormData:o,isSaving:j})=>{const u=a.useRef(null),h=a.useRef(null),w=a.useRef(null),C=a.useRef(null),E=a.useRef(null),k=a.useRef(null),N=a.useRef(null),[T,y]=a.useState(""),[S,r]=a.useState([]),[f,R]=a.useState([]),[g,x]=a.useState(!1),[d,F]=a.useState([]),[m,p]=a.useState(!1),b=te(c=>c.auth.token),D=pe({initialValues:t,validationSchema:rt,enableReinitialize:!0,onSubmit:c=>{o({...t,...c}),n("paymentContractDetails")}}),{values:M,errors:P,touched:_,setFieldValue:v,handleSubmit:$,setFieldError:K,setFieldTouched:se,submitCount:J}=D,H=a.useRef(0),Q=async c=>{if(c){p(!0);try{const s=await Pe(c,b);
7if(s?.data?.msg==="success"){const l=s?.data?.data?.skills?.map(A=>({id:A.id||"",name:A.name||"",isSuggestedSkill:!0}))||[];F(l)}}catch(s){console.error("Error fetching suggested skills:",s)}finally{p(!1)}}},Z=c=>{h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{Q(c)},100)},L=c=>{typeof c=="string"?D.setFieldValue("job_title",{id:"",title:c},!1):(D.setFieldValue("job_title",{id:c.id,title:c.title,user_generated:!1}),Z(c.title))},i=c=>{M.skills.find(s=>s.name===c.name)||(v("skills",[...M.skills,c]),F(d.filter(s=>s.name!==c.name)))},I=c=>{const s=M.skills.filter(l=>l.id!==c.id);v("skills",s),c.isSuggestedSkill&&F([...d,c])},B=c=>{typeof c=="string"?v("job_location",{id:"",city:c}):v("job_location",{id:c.id,city:c.city,state:c.state,country:c.country})},O=(c="US")=>{const s=it[c];v("currency",{code:s})},Y=c=>{typeof c=="string"?v("country",{id:"",name:c}):(v("country",{id:c.id,name:c.name,code:c.code}),O(c.code))},z=async()=>{try{const c=await ze(b);r(c.data.job_spaces),R(c.data.job_spaces)}catch(c){console.log("Error getting JOB SPACES : ",c)}};a.useEffect(()=>{z()},[]);const oe=c=>!c||typeof c!="string"?"":c.replace(/\n/g,"<br>").replace(/-\s\*\*(.+?)\*\*/g,"**$1**").replace(/\*\*(.+?)\*\*/g,"<strong>$1</strong>").replace(/(\<br\s*\/?\>)\s*-\s/g,"$1 • "),ce=c=>{c&&c.job_description&&v("description",c.job_description)};return a.useEffect(()=>{J>H.current&&(H.current=J,Object.keys(P).length>0&&(P.job_title?.title?(w.current?.focus?.(),w.current?.scrollIntoView({behavior:"smooth",block:"center"})):P.description?(C.current?.focus?.(),C.current?.scrollIntoView({behavior:"smooth",block:"center"})):P.skills?(E.current?.focus?.(),E.current?.scrollIntoView({behavior:"smooth",block:"center"})):P.experience?.min||P.experience?.max?(k.current?.focus?.(),k.current?.scrollIntoView({behavior:"smooth",block:"center"})):(P.country?.id||P.job_location?.id)&&(N.current?.focus?.(),N.current?.scrollIntoView({behavior:"smooth",block:"center"}))))},[J,P]),a.useEffect(()=>{const c=u.current?.parentElement;c?c.scrollTop=0:window.scrollTo(0,0)},[n]),e.jsxs("div",{className:"h-full",ref:u,children:[e.jsxs("div",{className:"m-auto max-w-[662px] w-full flex flex-col space-y-12",children:[e.jsxs("div",{className:"flex justify-center items-center text-center flex-col mt-[40px]",children:[e.jsxs("div",{className:"flex items-center mb-3 gap-3",children:[e.jsx("svg",{width:"91",height:"6",viewBox:"0 0 91 6",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M84.8333 2.6665C84.8333 4.13926 86.0272 5.33317 87.5 5.33317C88.9728 5.33317 90.1667 4.13926 90.1667 2.6665C90.1667 1.19374 88.9728 -0.00016284 87.5 -0.00016284C86.0272 -0.00016284 84.8333 1.19374 84.8333 2.6665ZM0 2.6665V3.1665H87.5V2.6665V2.1665H0V2.6665Z",fill:"black",fillOpacity:"0.12"})}),e.jsx("h2",{className:"text-[26px] font-semibold text-darkslateblue",children:"Job Details"}),e.jsx("svg",{width:"91",height:"6",viewBox:"0 0 91 6",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M2.02656e-05 2.6665C2.02656e-05 4.13926 1.19393 5.33317 2.66669 5.33317C4.13945 5.33317 5.33335 4.13926 5.33335 2.6665C5.33335 1.19374 4.13945 -0.00016284 2.66669 -0.00016284C1.19393 -0.00016284 2.02656e-05 1.19374 2.02656e-05 2.6665ZM2.66669 2.6665V3.1665H90.1667V2.6665V2.1665H2.66669V2.6665Z",fill:"black",fillOpacity:"0.12"})})]}),e.jsx("p",{className:"text-[14px] font-medium text-lightslategray",children:"Add the essentials and let AI find candidates who truly fit."})]}),e.jsxs("div",{className:"flex flex-col gap-6",children:[e.jsx("div",{className:"relative",ref:w,children:e.jsx(de,{label:"Job Title",placeholder:"Enter Job Title",value:M.job_title.title,error:_.job_title?.title&&P.job_title?.title,onChange:L,handleItemSelect:L,mandatory:!0,fetchDataApi:De,isDisabled:j})}),e.jsx("div",{ref:C,children:e.jsx(tt,{label:"Job Summary / Description",value:oe(M.description),onChange:c=>v("description",c),onClear:()=>{v("description","")},error:_.description&&P.description,placeholder:"Enter the job details and we’ll generate a complete job specification.",mandatory:!0,showAiButton:!0,jobTitle:M.job_title.title,onJDParsed:ce,fetchSuggestedSkillApi:Z,isDisabled:j})}),e.jsx("div",{children:e.jsx(We,{headings:"How useful is this job description?",source:"employer_job_post_ai_jd"})}),e.jsxs("div",{ref:E,children:[e.jsx(at,{label:"Required Skills",placeholder:"Enter skills",value:M.skills,onChange:c=>v("skills",c),error:_?.skills&&P?.skills,handleRemoveSkillItem:I,isDisabled:j}),(d.length>0||m)&&e.jsxs("div",{className:"mt-2",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx("h4",{className:"text-[14px] font-medium text-lightslategray text-poppins",children:"Suggested Skills"}),m&&e.jsx(Ie,{strokeColor:"#6B3BAB",strokeWidth:"5",animationDuration:"0.75",width:"16",visible:!0})]}),e.jsx("div",{className:"flex flex-wrap gap-2",children:d.map((c,s)=>e.jsx(e.Fragment,{children:e.jsx("button",{type:"button",onClick:()=>i(c),className:"rounded-full border border-[#0000000F] bg-[#f8f9fe] transition-all duration-200",children:e.jsx("div",{className:"flex items-center px-[14px] leading-[100%] py-[10px] rounded-full font-medium text-[13px] bg-purple-brand text-transparent bg-clip-text",children:e.jsxs("span",{className:"flex items-center",children:["+ ",c.name]})})},s)}))})]})]})]}),e.jsx("div",{children:e.jsxs("div",{className:" w-full flex flex-col space-y-12",children:[e.jsxs("div",{className:"flex justify-center items-center text-center flex-col",children:[e.jsxs("div",{className:"flex items-center mb-3 gap-3",children:[e.jsx("svg",{width:"91",height:"6",viewBox:"0 0 91 6",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M84.8333 2.6665C84.8333 4.13926 86.0272 5.33317 87.5 5.33317C88.9728 5.33317 90.1667 4.13926 90.1667 2.6665C90.1667 1.19374 88.9728 -0.00016284 87.5 -0.00016284C86.0272 -0.00016284 84.8333 1.19374 84.8333 2.6665ZM0 2.6665V3.1665H87.5V2.6665V2.1665H0V2.6665Z",fill:"black",fillOpacity:"0.12"})}),e.jsx("h2",{className:"text-[26px] font-semibold text-darkslateblue",children:"Contract Details"}),e.jsx("svg",{width:"91",height:"6",viewBox:"0 0 91 6",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M2.02
7656e-05 2.6665C2.02656e-05 4.13926 1.19393 5.33317 2.66669 5.33317C4.13945 5.33317 5.33335 4.13926 5.33335 2.6665C5.33335 1.19374 4.13945 -0.00016284 2.66669 -0.00016284C1.19393 -0.00016284 2.02656e-05 1.19374 2.02656e-05 2.6665ZM2.66669 2.6665V3.1665H90.1667V2.6665V2.1665H2.66669V2.6665Z",fill:"black",fillOpacity:"0.12"})})]}),e.jsx("p",{className:"text-[14px] font-medium leading-[150%] text-lightslategray",children:"Set clear role parameters, including required experience and type of engagement."})]}),e.jsxs("div",{ref:k,children:[e.jsx("h1",{className:"font-semibold text-[14px] leading-[140%] text-darkslateblue mb-4",children:"Experience Required"}),e.jsxs("div",{className:"grid grid-cols-2 gap-6",children:[e.jsx(ae,{label:"Minimum Experience (Years)",type:"number",name:"Minimum Experience (Years)",placeholder:"Enter Minimum Experience",value:M.experience.min,mandatory:!0,onChange:c=>v("experience",{...M.experience,min:c}),error:P.experience?.min}),e.jsx(ae,{label:"Maximum Experience (Years)",type:"number",name:"Maximum Experience (Years)",placeholder:"Enter Maximum Experience",value:M.experience.max,onChange:c=>v("experience",{...M.experience,max:c}),error:P.experience?.max})]})]}),e.jsx("div",{children:e.jsx(nt,{headingLabel:"Employment Type",options:lt,value:M.work_mode[0],onChange:c=>v("work_mode",[c]),error:_.work_mode&&P.work_mode})}),e.jsxs("div",{ref:N,children:[e.jsx("h1",{className:"font-semibold text-[14px] leading-[140%] text-darkslateblue mb-4",children:"Location"}),e.jsxs("div",{className:"flex gap-4",children:[e.jsx(de,{label:"Country",placeholder:"e.g. United States",value:[M?.country?.name],onChange:Y,handleItemSelect:Y,error:_.country?.id&&P.country?.id,fetchDataApi:Te,mandatory:!0}),e.jsx(de,{label:"City",placeholder:"e.g. California",value:[M.job_location.city,M.job_location.state,M.job_location.country].filter(Boolean).join(", "),onChange:B,handleItemSelect:B,error:_.job_location?.id&&P.job_location?.id,fetchDataApi:Me,mandatory:M?.work_mode?.[0]!=="Remote",extraParams:M?.country?.code})]})]}),e.jsx("div",{})]})}),e.jsx("div",{})]}),e.jsx(xe,{disabled:!1,nextLabel:"Continue",onNext:$,showBack:!1})]})},fe=n=>n?n.replace(/<strong>(.*?)<\/strong>/g,"**$1**").replace(/<li>(.*?)<\/li>/g,`• $1
8`).replace(/<\/p>/g,`
9
10`).replace(/<br\s*\/?>/g,`
11`).replace(/<[^>]+>/g,"").replace(/\n\s*\n/g,`
12
13`).trim():"",ct=n=>{const t=n.contract_type==="milestone";return{company:n?.companyId,job_title:n.job_title?.title||"",job_space_id:n.job_space?.id||null,country_id:n.country?.id||null,currency_id:n.currency?.id||null,location_id:n.job_location?.id||null,is_contract_job:!0,is_basic_job:!1,is_draft:!1,roles:fe(n.description)||"",skills:n.skills?n.skills.map(o=>typeof o=="string"?o:o.name):[],ai_evaluation_level:"intermediate",required_exp:{min:Number(n.experience?.min||0),max:Number(n.experience?.max||0)},employment_mode:n.work_mode||[],is_international:n.allowGlobalApplicant??!0,weightage:{technical:Number(n.technicalPercentage??0),behavioral:100-Number(n.technicalPercentage??0)},interview_language_id:n.interview_language_id||"325f5f22-29fe-46b3-a186-8b86ece7778b",cultural_fit:null,contract_job_payment_details:{contract_type:"pay_as_you_go_time_based",currency:n.currency?.code||"USD",contract_length:n.contract_length||null,start_date:(()=>{if(n.contract_start_date){const o=new Date(n.contract_start_date);if(!isNaN(o.getTime()))return o.toISOString()}return n.contract_start_date||""})(),scope_of_work:fe(n.description)||"",payment_scale:n.paymentFrequency?.toLowerCase()||"monthly",minimum_amount:Number(n.minimum_amount||0),maximum_amount:Number(n.maximum_amount||0),milestones:t?n.milestoneItems.map(o=>({name:o.name||"",amount:Number(o.amount||0),description:o.description||""})):[]},expected_salary:{min:Number(n.minimum_amount||0),max:Number(n.maximum_amount||0)},salary_type:n.paymentFrequency?.toLowerCase()||"monthly",is_eor:n?.is_eor??null,is_private:!1}},dt=()=>e.jsxs("div",{className:"space-y-10 text-left",children:[e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsx("p",{className:"text-[24px] font-poppins font-[500] text-[#202124]",children:"1. INTRODUCTION"}),e.jsxs("div",{className:"space-y-4 font-poppins text-[#2E2E2E] leading-[170%]",children:[e.jsxs("p",{children:['1.1 These Terms & Conditions for Employers ("',e.jsx("b",{children:"Terms"}),'") govern the access to and use of the avua platform by employers, recruiters, hiring managers, and other business users ("',e.jsx("b",{children:"Client"}),' ") for the purpose of posting jobs, sourcing candidates, screening applicants, conducting interviews, and related hiring activities.']}),e.jsx("p",{children:"1.2 avua is an AI-driven hiring platform that helps employers source, evaluate, and hire candidates through an integrated system. Its services may include, without limitation:"}),e.jsxs("ul",{className:"list-none space-y-2 pl-4",children:[e.jsx("li",{children:"(a) job posting and application management (including avua Hire);"}),e.jsx("li",{children:"(b) AI-based CV screening with adjustable str
13ictness levels;"}),e.jsx("li",{children:"(c) AI-powered interview systems (including SmartHire) with automated evaluation and proctoring features;"}),e.jsx("li",{children:"(d) access to a searchable vetted candidate database (including avua Pool);"}),e.jsx("li",{children:"(e) AI-assisted job description generation, CV parsing, skill matching, interview question generation, and evaluation workflows."})]}),e.jsx("p",{children:"1.3 avua also provides candidate-side tools (which may indirectly interact with employer-side hiring workflows), including AI CV analysis, CV building tools, mock AI interviews, salary insights, and curated course recommendations."}),e.jsx("p",{children:"1.4 By creating an employer account, posting a job, accessing candidate information, or otherwise using the avua platform, the Client agrees to be bound by these Terms."}),e.jsx("p",{children:"1.5 If the Client is using the platform on behalf of a company or other legal entity, the individual accepting these Terms represents and warrants that they are authorised to bind that entity."}),e.jsx("p",{children:"1.6 These Terms are intended for online display and govern all employer use of the avua platform unless superseded by a separate written agreement expressly signed by avua and the Client."})]})]}),e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsx("p",{className:"text-[24px] font-poppins font-[500] text-[#202124]",children:"2. DEFINITIONS AND INTERPRETATION"}),e.jsxs("div",{className:"space-y-4 font-poppins text-[#2E2E2E] leading-[170%]",children:[e.jsx("p",{children:"2.1 In these Terms, unless the context otherwise requires:"}),e.jsxs("ul",{className:"list-none space-y-2 pl-4",children:[e.jsxs("li",{children:['(a)  "',e.jsx("b",{children:"avua"}),'" means the platform operator providing the services described in these Terms.']}),e.jsxs("li",{children:['(b)  "',e.jsx("b",{children:"Affiliate"}),'" means, in relation to a party, any entity that directly or indirectly controls, is controlled by, or is under common control with that party.']}),e.jsxs("li",{children:['(c)  "',e.jsx("b",{children:"Agreement"}),'" means these Terms together with any applicable order form, plan, pricing page, proposal, or other written terms expressly incorporated by reference.']}),e.jsxs("li",{children:['(d)  "',e.jsx("b",{children:"Candidate"}),'" means any job seeker, applicant, contractor, consultant, or worker profile made available through or introduced via the Platform.']}),e.jsxs("li",{children:['(e)  "',e.jsx("b",{children:"Contractor"}),'" means any independent contractor, consultant, freelancer, or other non-employee worker introduced, identified, screened, or engaged through the Platform.']}),e.jsxs("li",{children:['(f)  "',e.jsx("b",{children:"Client"}),'" means the employer, company, or organisation using the Platform for hiring, recruiting, or workforce engagement purposes.']}),e.jsxs("li",{children:['(g)  "',e.jsx("b",{children:"Confidential Information"}),'" means all non-public information disclosed by one party to the other, whether oral, written, electronic, or otherwise, including business, commercial, technical, pricing, candidate, product, platform, and operational information.']}),e.jsxs("li",{children:['(h)  "',e.jsx("b",{children:"Direct Hire Fee"}),'" has the meaning given in clause 6.3.']}),e.jsxs("li",{children:['(i)  "',e.jsx("b",{children:"Engagement"}),'" means any employment, contract, consultancy, assignment, freelance arrangement, internship, or other business relationship between the Client (or its Affiliate) and a Candidate or Contractor.']}),e.jsxs("li",{children:['(j)  "',e.jsx("b",{children:"Introduction"}),'" / " ',e.jsx("b",{children:"Introduced "}),'" means any Candidate or Contractor profile, details, application, communication, interview access, recommendation, shortlist, or contact information made available to the Client through the Platform or by avua, whether directly or indirectly.']}),e.jsxs("li",{children:['(k)  "',e.jsx("b",{children:"Platform"}),'" means avua’s website, portals, dashboards, APIs, AI tools, interview systems, and associated services made available to the Client.']}),e.jsxs("li",{children:['(l)  "',e.jsx("b",{children:"Service Fees"}),'" means all fees, charges, subscriptions, credits, and other amounts payable by the Client to avua under the Agreement.']}),e.jsxs("li",{children:['(m)  "',e.jsx("b",{children:"Back-Office Partner"}),'" means any third-party service provider used by avua for payroll, compliance, onboarding, verification, technology infrastru
13cture, or related operational support.']})]}),e.jsx("p",{children:'2.2 References to "including" or similar words shall be construed without limitation.'}),e.jsx("p",{children:"2.3 Clause headings are for convenience only and do not affect interpretation."})]})]}),e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsx("p",{className:"text-[24px] font-poppins font-[500] text-[#202124]",children:"3. ELIGIBILITY, ACCOUNT REGISTRATION, AND VERIFICATION"}),e.jsxs("div",{className:"space-y-4 font-poppins text-[#2E2E2E] leading-[170%]",children:[e.jsx("p",{children:"3.1 The Client must provide accurate, complete, and current information when creating and maintaining an employer account."}),e.jsx("p",{children:"3.2 avua may require business verification, identity checks, or additional documentation before enabling full access to posting, candidate contact, interview, or hiring features. The Client agrees to cooperate promptly with such requests."}),e.jsx("p",{children:"3.3 avua reserves the right to approve, reject, suspend, or terminate employer accounts at its discretion where it reasonably believes:"}),e.jsxs("ul",{className:"list-none space-y-2 pl-4",children:[e.jsx("li",{children:"(a) the Client has provided false or misleading information;"}),e.jsx("li",{children:"(b) the Client is acting unlawfully, fraudulently, or in bad faith;"}),e.jsx("li",{children:"(c) the Client’s use of the Platform may create legal, compliance, reputational, or safety risks;"}),e.jsx("li",{children:"(d) the Client has breached these Terms."})]}),e.jsx("p",{children:"3.4 The Client is responsible for all activity conducted through its account, including access by its employees, recruiters, and representatives."}),e.jsx("p",{children:"3.5 The Client shall ensure login credentials are kept secure and shall notify avua immediately of any unauthorised access or suspected account compromise."})]})]}),e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsx("p",{className:"text-[24px] font-poppins font-[500] text-[#202124]",children:"4. JOB POSTING RULES AND EMPLOYER OBLIGATIONS"}),e.jsxs("div",{className:"space-y-4 font-poppins text-[#2E2E2E] leading-[170%]",children:[e.jsx("p",{children:"4.1 The Client may use the Platform to post genuine job opportunities and manage hiring workflows in accordance with these Terms and applicable law."}),e.jsx("p",{children:"4.2 The Client shall ensure all job postings, screening criteria, interview requests, and hiring activities:"}),e.jsxs("ul",{className:"list-none space-y-2 pl-4",children:[e.jsx("li",{children:"(a) are lawful, fair, and non-discriminatory;"}),e.jsx("li",{children:"(b) accurately describe the role, responsibilities, requirements, and compensation (where applicable);"}),e.jsx("li",{children:"(c) do not contain false, misleading, defamatory, obscene, or infringing content;"}),e.jsx("li",{children:"(d) do not request unlawful payments, deposits, or financial information from Candidates;"}),e.jsx("li",{children:"(e) do not violate employment, labour, data protection, anti-discrimination, advertising, or consumer protection laws."})]}),e.jsx("p",{children:"4.3 The Client shall not post jobs that are:"}),e.jsxs("ul",{className:"list-none space-y-2 pl-4",children:[e.jsx("li",{children:"(a) fake, speculative, or intended only to collect Candidate data;"}),e.jsx("li",{children:"(b) misleading as to company identity, seniority, salary, location, or employment type;"}),e.jsx("li",{children:"(c) for unlawful, fraudulent, or unethical activities;"}),e.jsx("li",{children:"(d) duplicative, spam-like, or excessive in volume in a way that degrades Platform quality."})]}),e.jsx("p",{children:"4.4 avua may remove, edit, suspend, or reject any job posting or related content that avua reasonably believes violates these Terms, applicable law, or platform standards."}),e.jsx("p",{children:"4.5 The Client is solely responsible for:"}),e.jsxs("ul",{className:"list-none space-y-2 pl-4",children:[e.jsx("li",{children:"(a) the content of its job postings;"}),e.jsx("li",{children:" (b) any screening criteria or hiring decisions it applies;"}),e.jsx("li",{children:" (c) its communications with Candidates;"}),e.jsx("li",{children:" (d) compliance with all legal obligations arising from recruitment and hiring activities."})]})]})]}),e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsx("p",{className:"text-[24px] font-poppins font-[500] text-[#202124]",children:"5. PLATFORM SERVICES, AI TOOLS, AND HIRING WORKFLOWS"}),e.jsxs("div",{className:"space-y-4 font-poppins text-[#2E2E2E] leading-[170%]",children:[e.jsx("p",{children:"5.
131 avua may provide AI-assisted features including, without limitation, CV parsing, skill matching, job description generation, screening recommendations, interview question generation, interview scoring, proctoring support, and candidate evaluation summaries."}),e.jsx("p",{children:"5.2 The Client acknowledges and agrees that:"}),e.jsxs("ul",{className:"list-none space-y-2 pl-4",children:[e.jsx("li",{children:"(a) AI outputs are generated probabilistically and may contain inaccuracies, omissions, bias, or limitations;"}),e.jsx("li",{children:"AI outputs are decision-support tools only and should not be treated as legal, HR, tax, or compliance advice;"}),e.jsx("li",{children:"(c) the Client remains solely responsible for reviewing AI outputs and making all hiring, interview, employment, and engagement decisions."})]}),e.jsx("p",{children:"5.3 avua does not guarantee: "}),e.jsxs("ul",{className:"list-none space-y-2 pl-4",children:[e.jsx("li",{children:"(a) the suitability, performance, qualifications, availability, or conduct of any Candidate or Contractor;  "}),e.jsx("li",{children:"(b) hiring outcomes, time-to-hire, or fill rates;"}),e.jsx("li",{children:"(c) uninterrupted availability of the Platform or any specific feature."})]}),e.jsx("p",{children:"5.4 avua may update, modify, add, suspend, or discontinue Platform features (including AI models or integrations) from time to time."}),e.jsx("p",{children:"5.5 Where the Platform provides Candidate database access, contact controls, or interview gating mechanisms, the Client shall use such features strictly in accordance with these Terms and any applicable plan limits."})]})]}),e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsx("p",{className:"text-[24px] font-poppins font-[500] text-[#202124]",children:"6. NON-CIRCUMVENTION AND NON-SOLICITATION"}),e.jsxs("div",{className:"space-y-4 font-poppins text-[#2E2E2E] leading-[170%]",children:[e.jsx("p",{children:"6.1 The Client undertakes that neither it nor any of its Affiliates shall, without avua’s prior written consent, whether directly or indirectly:"}),e.jsxs("ul",{className:"list-none space-y-2 pl-4",children:[e.jsx("li",{children:"(a) enter into any Engagement with a Contractor Introduced outside the Platform or avua’s payroll;"}),e.jsx("li",{children:"(b) solicit or engage any such Contractor;"}),e.jsx("li",{children:"(c) refer any such Contractor to any third party;"}),e.jsx("li",{children:"(d) circumvent, avoid or attempt to circumvent avua’s role in the introduction, engagement or payroll process"}),e.jsxs("li",{children:["(each a ",e.jsx("b",{children:'"Prohibited Circumvention"'})," )."]})]}),e.jsx("p",{children:"6.2 The restrictions in clause 6.1 apply for the period commencing on the date of the relevant Introduction and ending 12 months after the earlier of:"}),e.jsxs("ul",{children:[e.jsx("li",{children:"(a) termination of the relevant Engagement; or"}),e.jsx("li",{children:"(b) the date the Contractor was last Introduced to the Client."})]}),e.jsx("p",{children:"6.3 If the Client (or any Affiliate) wishes to hire an Introduced Contractor on a full-time basis (directly or indirectly, bypassing the Platform), the Client must pay avua the Direct Hire Fee equal to 35% of the Contractor’s gross annualised remuneration (or anticipated annualised value if not yet commenced) under the proposed direct hire arrangement. The Direct Hire Fee is payable immediately upon agreement or commencement of such hire and is a condition precedent to avua’s consent."}),e.jsx("p",{children:"6.4 The Client acknowledges that damages alone may be inadequate and that avua shall be entitled to seek injunctive relief (without proof of special damage) in addition to any other remedy for any Prohibited Circumvention or non-payment of the Direct Hire Fee."}),e.jsx("p",{className:"font-semibold text-[#202124]",children:"6.5 AUDIT RIGHTS"}),e.jsx("p",{children:"  The Client agrees that avua (or its appointed auditor) may, upon reasonable notice and during normal business hours, inspect the Client’s employment records, contractor invoices, payroll records, and related documentation to verify compliance with clause 6.1."}),e.jsx("p",{children:"The Client shall provide such records and information as avua may reasonably require to confirm no Prohibited Circumvention has occurred. Such records shall be retained for a period of at least 3 years from the date of the relevant Introduction."}),e.jsx("p",{children:"If an audit reveals a Prohibited Circumvention or non-payment of any Direct Hire Fee, the Client shall reimburse avua for the reasonable costs of the audit in addition to any Direct Hire Fee, liquidated damages, or other amounts payable under this Agreement."}),e.jsx("p",{className:"font-semibold text-[#202124]",children:"6.6 PAYMENT SECURITY FOR DIRECT HIRE"}),e.jsx("p",{children:"If the Client wishes to make a Direct Hire of an Introduced Contractor and obtain avua’s consent under clause 6.3, the Direct Hire Fee must be paid in cleared funds IN ADVANCE before the hire commences or before avua’s consent is deemed given."}),e.jsx("p",{children:"Alternatively, the Client may provide a bank guarantee, parent company guarantee, letter of credit, or other security acceptable to avua (in its sole discretion) to secure payment of the Direct Hire Fee."}),e.jsx("p",{children:"No Direct Hire may proceed without either: (a) payment of the Direct Hire Fee in cleared funds; or (b) provision of security acceptable to avua. Any Direct Hire that proceeds without such payment or security shall constitute a material breach of this Agreement and a Prohibited Circumvention."}),e.jsx("p",{className:"font-semibold text-[#202124]",children:"6.7 LIQUIDATED DAMAGES"}),e.jsx("p",{children:"If the Client (or any Affiliate) engages in any Prohibited Circumvention and fails to pay the Direct Hire Fee within 14 days of written demand from avua, the Client shall pay avua liquidated damages equal to the greater of: (a) £10,000; or (b) 50% of the applicable Direct Hire Fee."}),e.jsx("p",{children:"The parties agree that this sum represents a genuine pre-estimate of avua’s loss and is not a penalty, reflecting lost revenue, damage to business relationships, reputational harm, and the costs of investigating and enforcing compliance with this Agreement."}),e.jsx("p",{children:"Payment of liquidated damages under this clause is without prejudice to avua’s right to seek the full Direct Hire Fee, injunctive relief, specific performance, audit cost reimbursement, or any other remedy available under this Agreement or at law or in equity."}),e.jsx("p",{className:"font-semibold text-[#202124]",children:"6.8 INTRODUCER PRESUMPTION"}),e.jsx("p",{children:"If the Client (or any Affiliate) engages, employs, contracts with, or otherwise enters into any business relationship with any Contractor within 12 months of the date that Contractor’s profile, CV, application, contact details, or any other information was made available to the Client through the Platform, there shall be a rebuttable presumption that the Contractor was Introduced by avua and is subject to the restrictions in clause 6.1."}),e.jsx("p",{children:"The burden of proof shall be on the Client to demonstrate, by clear and convincing contemporaneous documentary evidence, that the Contractor was sourced independently through the Client’s own recruitment efforts and that no Introduction by avua occurred."}),e.jsx("p",{children:"The restrictions in clause 6.1 apply globally and are not limited to the jurisdiction, geography, company entity, business unit, or legal structure through which the Introduction occurred. Any Engagement with an Introduced Contractor anywhere in the world, by the Client or any Affiliate, is subject to these Terms."})]})]}),e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsx("p",{className:"text-[24px] font-poppins font-[500] text-[#202124]",children:"7. FEES, BILLING, AND PAYMENT (IF APPLICABLE)"}),e.jsxs("div",{className:"space-y-4 font-poppins text-[#2E2E2E] leading-[170%]",children:[e.jsx("p",{children:"7.1 The Client agrees to pay all applicable Service Fees in accordance with the selected plan, proposal, pricing page, invoice terms, or separate order form."}),e.jsx("p",{children:"7.2 Unless otherwise agreed in writing:"}),e.jsxs("ul",{children:[e.jsx("li",{children:"(a) fees are non-refundable;"}),e.jsx("li",{children:"(b) fees are exclusive of applicable taxes, duties, and levies;"}),e.jsx("li",{children:"(c) the Client is responsible for all taxes payable in connection with its use of the Platform (
13other than taxes on avua’s net income)."})]}),e.jsx("p",{children:"7.3 avua may suspend or restrict access to some or all Platform features if any amount remains overdue."}),e.jsx("p",{children:"7.4 avua may revise pricing, plans, or billing structures on prior notice, and continued use after the effective date constitutes acceptance of the revised pricing."}),e.jsx("p",{className:"font-semibold text-[#202124]",children:"7.5 CONTRACT EXTENSIONS AND RENEWALS"}),e.jsx("p",{children:"If the Client extends, renews, continues, or otherwise prolongs an Engagement with an Introduced Contractor beyond the initial contract term (whether directly or indirectly, through the Platform or otherwise), the Client shall continue to pay Service Fees to avua at the agreed rate for the extended, renewed, or continued period."}),e.jsx("p",{children:"Any extension, renewal, continuation, or re-engagement of an Introduced Contractor outside the Platform, avua’s payroll system, or without avua’s express prior written consent shall be treated as a Prohibited Circumvention subject to clause 6 and shall give rise to liability for the Direct Hire Fee, liquidated damages, and any other remedies available under this Agreement."}),e.jsx("p",{children:"For the avoidance of doubt, a “new” contract or Engagement with an Introduced Contractor (regardless of job title, project, location, entity, or time gap since the previous Engagement) shall be treated as an extension or renewal if it occurs within the 12-month period specified in clause 6.2."})]})]}),e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsx("p",{className:"text-[24px] font-poppins font-[500] text-[#202124]",children:"8. CLIENT COMPLIANCE RESPONSIBILITIES"}),e.jsxs("div",{className:"space-y-4 font-poppins text-[#2E2E2E] leading-[170%]",children:[e.jsx("p",{children:"8.1 The Client shall comply with all applicable laws, regulations, and industry requirements in connection with its use of the Platform and any Candidate or Contractor Engagement, including those relating to:"}),e.jsxs("ul",{children:[e.jsx("li",{children:"(a) employment and labour;"}),e.jsx("li",{children:"(b) anti-discrimination and equal opportunity;"}),e.jsx("li",{children:"(c) immigration and right-to-work checks;"}
13),e.jsx("li",{children:"(d) tax and social security obligations;"}),e.jsx("li",{children:"(e) workplace health and safety;"}),e.jsx("li",{children:"(f) data protection and privacy;"}),e.jsx("li",{children:"(g) consumer or advertising rules (where relevant)."})]}),e.jsx("p",{children:"8.2 The Client is solely responsible for determining:"}),e.jsxs("ul",{className:"list-none space-y-2 pl-4",children:[e.jsx("li",{children:"(a) job role requirements;"}),e.jsx("li",{children:"(b) suitability and selection criteria;"}),e.jsx("li",{children:"(c) interview and hiring decisions;"}),e.jsx("li",{children:"(d) compensation and benefits;"}),e.jsx("li",{children:"(e) classification of workers (employee vs contractor or otherwise);"}),e.jsx("li",{children:"(f) onboarding, supervision, direction, and workplace conditions."})]}),e.jsx("p",{children:"8.3 avua may provide tools, templates, or automated outputs to assist hiring workflows, but the Client remains solely responsible for legal compliance and final decisions."})]})]}),e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsx("p",{className:"text-[24px] font-poppins font-[500] text-[#202124]",children:"9. ACCEPTABLE USE AND PLATFORM RESTRICTIONS"}),e.jsxs("div",{className:"space-y-4 font-poppins text-[#2E2E2E] leading-[170%]",children:[e.jsx("p",{children:"9.1 The Client shall not, and shall not permit any third party to:"}),e.jsxs("ul",{children:[e.jsx("li",{children:"(a) scrape, harvest, copy, or systematically extract Candidate data or Platform content except as expressly permitted by the Platform;"}),e.jsx("li",{children:"(b) use bots, scripts, or automation to access the Platform in an unauthorised manner;"}),e.jsx("li",{children:"(c) reverse engineer, decompile, or attempt to derive source code from the Platform (except where prohibited by law from restricting such rights);"}),e.jsx("li",{children:"(d) interfere with or disrupt Platform security, availability, or performance;"}),e.jsx("li",{children:"(e) upload malicious code, viruses, or harmful material;"}),e.jsx("li",{children:"(f) use the Platform to compete unfairly with avua or build a competing database or service using Platform-derived data;"}),e.jsx("li",{children:"(g) share Candidate information outside the hiring purpose for which it was provided."})]}),e.jsx("p",{children:"9.2 avua may monitor usage for security, fraud prevention, quality assurance, and compliance purposes, subject to applicable law and its privacy policy."})]})]}),e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsx("p",{className:"text-[24px] font-poppins font-[500] text-[#202124]",children:"10. INTELLECTUAL PROPERTY"}),e.jsxs("div",{className:"space-y-4 font-poppins text-[#2E2E2E] leading-[170%]",children:[e.jsx("p",{children:"10.1 avua and its licensors retain all right, title, and interest in and to the Platform, including all software, AI workflows, designs, content, trademarks, logos, databases, and related intellectual property rights."}),e.jsx("p",{children:"10.2 Subject to these Terms and payment of applicable fees, avua grants the Client a limited, non-exclusive, non-transferable, revocable right to access and use the Platform for internal hiring and recruitment purposes."}),e.jsx("p",{children:"10.3 The Client retains ownership of content it submits to the Platform (including job descriptions and company information), but grants avua a worldwide, non-exclusive, royalty-free licence to host, display, process, reproduce, and use such content as necessary to operate, improve, and provide the Platform services."}),e.jsx("p",{children:"10.4 The Client warrants that it has all rights and permissions necessary to submit content to the Platform and that such content does not infringe any third-party rights."})]})]}),e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsx("p",{className:"text-[24px] font-poppins font-[500] text-[#202124]",children:"11. INDEMNITY"}),e.jsxs("div",{className:"space-y-4 font-poppins text-[#2E2E2E] leading-[170%]",children:[e.jsx("p",{children:"11.1 The Client shall indemnify and keep indemnified avua and its Affiliates, officers, employees and agents against all losses, liabilities, damages, costs (including reasonable legal costs) and expenses arising out of or in connection with:"}),e.jsxs("ul",{className:"list-none space-y-2 pl-4",children:[e.jsx("li",{children:"(a) any claim by a Contractor relating to classification, employment status, wages, holiday pay, discrimination, termination or any other employment or contractor-related matter;"}),e.jsx("li",{children:"(b) any breach by the Client of applicable laws, regulations or tax obligations;"}),e.jsx("li",{children:"(c) any act or omission of the Client in relation to the supervision, direction or work environment of the Contractor;"}),e.jsx("li",{children:"(d) any Prohibited Circumvention or non-payment of the Direct Hire Fee;"}),e.jsx("li",{children:"(e) any claim arising from information supplied or representations made by the Client to avua or any Back-Office Partner;"}),e.jsx("li",{children:"(f) any regulatory fines, early termination claims or worker misclassification risks."})]}),e.jsx("p",{children:"11.2 avua may rely entirely on information provided by the Client and has no obligation to independently verify it."})]})]}),e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsx("p",{className:"text-[24px] font-poppins font-[500] text-[#202124]",children:"12. LIMITATION OF LIABILITY"}),e.jsxs("div",{className:"space-y-4 font-poppins text-[#2E2E2E] leading-[170%]",children:[e.jsx("p",{children:"12.1 Neither party excludes or limits liability for death, personal injury caused by negligence, fraud or fraudulent misrepresentation."}),e.jsx("p",{children:"12.2 Subject to clause 12.1, avua’s total aggregate liability under or in connection with this Agreement shall not exceed the total Service Fees paid by the Client to avua in the 12 months preceding the date the claim arose."}),e.jsx("p",{children:"12.3 avua shall not be liable for any:"}),e.jsxs("ul",{className:"list-none space-y-2 pl-4",children:[e.jsx("li",{children:"(a) loss of profits, revenue, business, anticipated savings, contracts, data, goodwill or similar losses;"}),e.jsx("li",{children:"(b) indirect or consequential loss;"}),e.jsx("li",{children:"(c) failure or delay caused by any Back-Office Partner;"}),e.jsx("li",{children:"(d) performance, quality or suitability of any Contractor."})]}),e.jsx("p",{children:"12.4 The Client acknowledges that the Platform is a technology-enabled hiring service and that avua does not act as the employer of Candidates or Contractors unless expressly agreed in writing under a separate arrangement."})]})]}),e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsx("p",{className:"text-[24px] font-poppins font-[500] text-[#202124]",children:"13. CONFIDENTIALITY AND DATA PROTECTION"}),e.jsxs("div",{className:"space-y-4 font-poppins text-[#2E2E2E] leading-[170%]",children:[e.jsx("p",{children:"13.1 Each party shall keep confidential and n
13ot disclose any Confidential Information of the other party except as necessary to perform its obligations under this Agreement or as required by law."}),e.jsx("p",{children:"13.2 The obligations in clause 13.1 survive termination for 3 years."}),e.jsx("p",{children:"13.3 The parties shall comply with all applicable data protection legislation including the UK GDPR and Data Protection Act 2018. avua processes personal data in accordance with its privacy policy."}),e.jsx("p",{children:"13.4 Confidential Information includes third-party Back-Office Partner information, and the Client shall protect it accordingly."}),e.jsx("p",{children:"13.5 The Client shall only access, use, store, and process Candidate personal data for legitimate recruitment and hiring purposes and in accordance with applicable data protection laws."}),e.jsx("p",{children:"13.6 The Client shall implement appropriate technical and organisational security measures to protect Candidate personal data against unauthorised access, disclosure, alteration, or loss."}),e.jsx("p",{children:"13.7 The Client shall promptly notify avua where required by law or contract if it becomes aware of any personal data breach affecting Candidate data obtained through the Platform."})]})]}),e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsx("p",{className:"text-[24px] font-poppins font-[500] text-[#202124]",children:"14. TERM, SUSPENSION, AND TERMINATION"}),e.jsxs("div",{className:"space-y-4 font-poppins text-[#2E2E2E] leading-[170%]",children:[e.jsx("p",{children:"14.1 These Terms take effect when the Client first accesses or uses the Platform and continue until terminated in accordance with this clause."}),e.jsx("p",{children:"14.2 avua may suspend or terminate the Client’s access (in whole or in part), immediately or on notice, if:"}),e.jsxs("ul",{className:"list-none space-y-2 pl-4",children:[e.jsx("li",{children:"(a) the Client breaches these Terms;"}),e.jsx("li",{children:"(b) any fees remain unpaid when due;"}),e.jsx("li",{children:"(c) avua reasonably suspects fraud, unlawful activity, or security risk;"}),e.jsx("li",{children:"(d) required by law, regulator, court order, or competent authority."})]}),e.jsx("p",{children:"14.3 The Client may stop using the Platform at any time, subject to any minimum term, billing commitment, or payment obligations already incurred."}),e.jsx("p",{children:"14.4 Termination or suspension shall not affect:"}),e.jsxs("ul",{className:"list-none space-y-2 pl-4",children:[e.jsx("li",{children:"(a) accrued rights or liabilities;"}),e.jsx("li",{children:"(b) payment obligations due before termination;"}),e.jsx("li",{children:"(c) clauses intended to survive termination, including clauses relating to confidentiality, non-circumvention, indemnity, limitation of liability, and governing law."})]})]})]}),e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsx("p",{className:"text-[24px] font-poppins font-[500] text-[#202124]",children:"15. COMMUNICATIONS AND NOTICES"}),e.jsxs("div",{className:"space-y-4 font-poppins text-[#2E2E2E] leading-[170%]",children:[e.jsx("p",{children:"15.1 avua may send notices, operational updates, billing notices, and legal communications to the email address associated with the Client’s account or through the Platform dashboard."}),e.jsx("p",{children:"15.2 The Client is responsible for keeping its contact details current."}),e.jsx("p",{children:"15.3 Notices sent electronically shall be deemed received on the date of transmission unless proven otherwise."})]})]}),e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsx("p",{className:"text-[24px] font-poppins font-[500] text-[#202124]",children:"16. CHANGES TO THESE TERMS"}),e.jsxs("div",{className:"space-y-4 font-poppins text-[#2E2E2E] leading-[170%]",children:[e.jsx("p",{children:"16.1 avua may update or amend these Terms from time to time, including to reflect legal, regulatory, service, or operational changes."}),e.jsx("p",{children:"16.2 Updated Terms may be posted on the Platform and/or notified to the Client by email or dashboard notice."}),e.jsx("p",{children:"16.3 Continued use of the Platform after the effective date of updated Terms constitutes acceptance of the revised Terms."})]})]}),e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsx("p",{className:"text-[24px] font-poppins font-[500] text-[#202124]",children:"17. GENERAL"}),e.jsxs("div",{className:"space-y-4 font-poppins text-[#2E2E2E] leading-[170%]",children:[e.jsx("p",{children:"17.1 Nothing in these Terms creates a partnership, joint venture, agency, fiduciary, or employment relationship between avua and the Client."}),e.jsx("p",{children:"17.2 If any provision of these Terms is held invali
13d or unenforceable, the remaining provisions shall remain in full force and effect."}),e.jsx("p",{children:"17.3 avua’s failure or delay to enforce any right or remedy shall not constitute a waiver of that right or remedy."}),e.jsx("p",{children:"17.4 The Client may not assign, transfer, or subcontract its rights or obligations under these Terms without avua’s prior written consent."}),e.jsx("p",{children:"17.5 avua may assign or transfer its rights and obligations under these Terms as part of a corporate restructuring, merger, acquisition, or sale of business."}),e.jsx("p",{children:"17.6 These Terms constitute the entire agreement between the parties in relation to the subject matter, unless supplemented by a separate written agreement expressly signed by both parties."})]})]}),e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsx("p",{className:"text-[24px] font-poppins font-[500] text-[#202124]",children:"18. GOVERNING LAW AND JURISDICTION"}),e.jsxs("div",{className:"space-y-4 font-poppins text-[#2E2E2E] leading-[170%]",children:[e.jsxs("p",{children:["18.1 These Terms and any dispute or claim (including non-contractual disputes or claims) arising out of or in connection with them shall be governed by the laws of ",e.jsx("b",{children:"UK"}),"."]}),e.jsxs("p",{children:["18.2 The courts of ",e.jsx("b",{children:"UK"})," shall have exclusive jurisdiction to settle any dispute or claim arising out of or in connection with these Terms, unless otherwise required by applicable law."]})]})]})]}),pt=({setActivePage:n,formData:t,setIsSaving:o})=>{const j=a.useRef(null),u=te(r=>r.auth.token),h=te(r=>r.employerProfileData),w=ye(),[C,E]=a.useState(!1),[k,N]=a.useState(!1),{showToast:T}=ve(),y=pe({initialValues:{terms_and_conditions:!0},validate:r=>{const f={};return r.terms_and_conditions||(f.terms_and_conditions="You must accept the terms and conditions"),f},onSubmit:r=>{console.log("Form submitted with values:",r)}}),S=async()=>{E(!0);try{const r={...t,...h},f=ct(r),R={Authorization:`Bearer ${u}`},g=!!t.job_post_id;let x;g?x=await Be(R,f,t.job_post_id):x=await Oe(R,f),x.status===201||x.status===200?(T(g?"Job post updated successfully!":"Job posted successfully!","success"),setTimeout(()=>{w("/employer/dashboard")},2e3)):T(x?.data?.msg||"Failed to submit job","error")}catch(r){console.error("Error submitting job:",r);let f=r?.response?.data?.msg||"Something went wrong while submitting the job";T(f,"error")}finally{E(!1)}};return a.useEffect(()=>{const r=j.current?.parentElement;r?r.scrollTop=0:window.scrollTo(0,0)},[n]),e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"px-6",ref:j,children:[e.jsxs("div",{className:"m-auto max-w-[500px] w-full",children:[e.jsxs("div",{className:"flex justify-center items-center text-center flex-col mb-[48px] mt-[40px]",children:[e.jsx("h2",{className:"text-[24px] font-semibold leading-[140%] text-darkslateblue mb-3",children:"Review & Publish"}),e.jsx("p",{className:"text-[14px] font-medium leading-[150%] text-lightslategray",children:"Everything’s set. Review once and start connecting with talent."})]}),e.jsx("div",{})]}),e.jsxs("div",{className:"w-full  flex items-start justify-center gap-12 text-left text-[14px] text-darkslateblue font-poppins z-0 lg:flex-row flex-col",children:[e.jsxs("div",{className:"w-[330px] flex flex-col items-start",children:[e.jsxs("div",{className:"self-stretch shadow-[0px_3px_15.51px_rgba(0,_0,_0,_0.08)] rounded-xl bg-white border-[#0000000F] border-solid border-[1px] flex flex-col items-start pt-[10px] px-0 pb-6 gap-4",children:[e.jsx("div",{className:"self-stretch flex flex-col items-start py-0 px-[10px]",children:e.jsx("div",{className:"self-stretch rounded-[10px] bg-ghostwhite flex items-center justify-center py-[16px] px-[10px]",children:e.jsx("div",{className:"flex-1 flex items-center gap-2.5 max-w-full",children:e.jsxs("div",{className:"flex flex-col items-start justify-center gap-1.5",children:[e.jsx("div",{className:"relative leading-[12.8px] font-semibold",children:h?.company||"Default Company Name"}),e.jsx("div",{className:"relative text-[12px] leading-[18px] font-medium text-dimgray",children:[t?.job_location?.city,t?.job_location?.state,t?.job_location?.country].filter(
13Boolean).join(", ")||t?.country?.name||"NA"})]})})})}),e.jsxs("div",{className:"self-stretch flex flex-col items-start gap-5 text-[20px] text-dimgray",children:[e.jsx("div",{className:"self-stretch flex flex-col items-start py-0 px-5 text-slateblue",children:e.jsxs("div",{className:"self-stretch flex flex-col items-start gap-6",children:[e.jsxs("div",{className:"self-stretch flex flex-col items-start gap-2",children:[e.jsx("div",{className:"self-stretch relative font-semibold",children:t?.job_title?.title}),e.jsx("div",{className:"flex flex-col items-start gap-2.5 text-center text-[12px] text-dimgray",children:e.jsx("div",{className:"flex items-center gap-2 flex-wrap",children:t?.skills?.map((r,f)=>e.jsx("div",{className:"rounded-lg bg-ghostwhite flex items-center justify-center py-2 px-3",children:e.jsx("div",{className:"relative leading-[12.8px] font-medium",children:r?.name})},f))})})]}),e.jsxs("div",{className:"flex flex-col items-start gap-4 text-center text-[12px] text-dimgray",children:[e.jsxs("div",{className:"flex items-center gap-8",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("img",{className:"h-[34px] w-[34px] rounded-lg",alt:"",src:U.commonIcons.icon_file_corner_cut_review}),e.jsxs("div",{className:"flex flex-col items-start justify-center gap-1.5",children:[e.jsx("div",{className:"relative leading-[12.8px] font-medium",children:"Experience"}),e.jsx("div",{className:"relative leading-[12.8px] font-semibold text-darkslateblue",children:t?.experience?.max?`${t?.experience?.min??0} - ${t?.experience?.max} years`:`${t?.experience?.min??0} ${(t?.experience?.min??0)==1?"year":"years"}`})]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("img",{className:"h-[34px] w-[34px] rounded-lg",alt:"",src:U.commonIcons.icon_file_with_pencil}),e.jsxs("div",{className:"flex flex-col items-start justify-center gap-1.5",children:[e.jsx("div",{className:"relative leading-[12.8px] font-medium",children:"Work Mode"}),e.jsx("div",{className:"relative leading-[12.8px] font-semibold text-darkslateblue",children:t?.work_mode[0]})]})]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("img",{className:"h-[34px] w-[34px] rounded-lg",alt:"",src:U.commonIcons.icons_payment_dollar_review}),e.jsxs("div",{className:"flex flex-col items-start justify-center gap-1.5",children:[e.jsx("div",{className:"relative leading-[12.8px] font-medium",children:"Payment Model"}),e.jsx("div",{className:"relative leading-[12.8px] font-semibold text-darkslateblue",children:t.contract_type==="pay_as_you_go_time_based"?"Fixed rate":"Milestone based"})]})]})]})]})}),e.jsx("div",{className:"self-stretch h-px relative border-[#0000000F] border-solid border-t-[1px] box-border"}),e.jsx("div",{className:"self-stretch flex flex-col items-start justify-center py-0 px-5 text-[16px] ",children:e.jsxs("div",{className:"self-stretch flex items-center gap-2.5",children:[e.jsxs("div",{className:"relative font-semibold shrink-0 text-dimgray",children:[t?.currency?.code," "," ",t?.minimum_amount?Number(t.minimum_amount).toLocaleString("en-US"):"",t?.maximum_amount?" - "+Number(t.maximum_amount).toLocaleString("en-US"):"",t?.paymentFrequency&&` ${t.paymentFrequency}`]}),e.jsx("div",{className:"h-2 w-2 relative rounded-[50%] bg-lightsteelblue opacity-[0] shrink-0"}),e.jsx("div",{className:"relative text-[12px] leading-[12.8px] font-medium text-center opacity-[0] shrink-0",children:"48 days left to apply"})]})}),e.jsx("div",{className:"flex flex-col items-start py-0 px-5 gap-4",children:e.jsx("div",{className:"flex items-center justify-start text-left text-[12px]",children:e.jsxs("div",{className:"relative leading-[12.8px] font-medium text-dimgray",children:["Posting Today ",new Date().toLocaleDateString("en-GB",{day:"numeric",month:"short",year:"numeric"})]})})})]})]}),e.jsxs("div",{className:"mt-8 rounded-[10px] border border-[#00000014] p-4 text-[14px] leading-[150%] flex gap-4",children:[e.jsx("div",{children:e.jsx("img",{className:"w-[25px]",alt:"",src:U.commonIcons.count_down_purple})}),e.jsxs("div",{children:[e.jsx("h2",{className:"font-medium text-darkslateblue",children:"Job validity"}),e.jsxs("p",{className:"self-stretch  text-lightslategray",children:["Your job will be visible to candidates for ",e.jsx("span",{className:"text-darkslateblue",children:"60 days"})," after you publish it."]})]})]})]}),e.jsxs("div",{className:"flex-1 w-full relative flex flex-col items-start gap-12 text-left text-[16px] text-darkslateblue font-poppins ",children:[e.jsx("div",{className:"self-stretch flex flex-col items-start",children:e.jsx("div",{className:"self-stretch flex flex-col items-start",children:e.jsxs("div",{className:"self-stretch flex flex-col items-start justify-center gap-3",children:[e.jsxs("div",{className:"self-stretch flex items-end gap-2.5",children:[e.jsx("div",{className:"flex-1 relative leading-[140%] font-semibold",children:"Basic Details"}),e.jsx("button",{type:"button",onClick:()=>
13{n("basicDetails")},className:"cursor-pointer hover:bg-[#F5F3FF] rounded-lg transition-all duration-200 ease-out hover:-translate-y-[1px]",children:e.jsxs("div",{className:"  py-2 px-4 flex items-center gap-[5.4px] text-center",children:[e.jsx("div",{className:"relative text-[14px] leading-[10.41px] font-semibold text-transparent !bg-clip-text [background:linear-gradient(90deg,_#864eff,_#502f99)] ",children:"Edit"}),e.jsx("img",{className:"w-4 relative max-h-full",alt:"",src:U.commonIcons.icon_edit_pencil_gradient})]})})]}),e.jsx("div",{className:"self-stretch flex items-start text-[13px] text-lightslategray",children:e.jsxs("div",{className:"flex-1 flex flex-col items-start p-1 gap-2.5",children:[e.jsxs("div",{className:"self-stretch rounded-lg bg-ghostwhite flex items-center py-[10px] px-4 gap-2.5",children:[e.jsx("div",{className:"w-[230px] relative leading-[150%] font-semibold inline-block shrink-0",children:"Job Title"}),e.jsx("div",{className:"flex-1 relative leading-[150%] font-medium text-darkslateblue",children:t?.job_title?.title})]}),e.jsxs("div",{className:"self-stretch rounded-lg bg-ghostwhite flex items-start pt-[10px] px-4 pb-5 gap-2.5",children:[e.jsx("div",{className:"w-[230px] relative leading-[150%] font-semibold inline-block shrink-0",children:"Job Summary / Description"}),e.jsx("div",{children:e.jsx(be,{readOnly:!0,id:"roles_responsibilities",name:"roles_responsibilities",theme:"bubble",rows:"7",placeholder:"Roles & Responsibilities",className:" text-darkslateblue custom-quill-font-sm",value:t?.description,disabled:!0,style:{height:"250px",resize:"none"}})})]}),e.jsxs("div",{className:"self-stretch rounded-lg bg-ghostwhite flex items-center py-[10px] px-4 gap-2.5 text-white",children:[e.jsx("div",{className:"w-[230px] relative leading-[150%] font-semibold text-lightslategray inline-block shrink-0",children:"Required Skills"}),e.jsx("div",{className:"flex flex-wrap gap-2.5",children:t?.skills?.map((r,f)=>e.jsx(e.Fragment,{children:e.jsx("div",{className:" rounded-full bg-purple-brand-light flex items-center justify-center p-[1px]",children:e.jsx("div",{className:"relative font-medium whitespace-nowrap  py-[6px] px-4 bg-white rounded-full",children:e.jsxs("span",{className:"text-transparent !bg-clip-text bg-purple-brand-light",children:[" ",r?.name," "]})})},f)}))})]})]})})]})})}),e.jsx("div",{className:"self-stretch flex flex-col items-start",children:e.jsx("div",{className:"self-stretch flex flex-col items-start",children:e.jsxs("div",{className:"self-stretch flex flex-col items-start justify-center gap-3",children:[e.jsxs("div",{className:"self-stretch flex items-end gap-2.5",children:[e.jsx("div",{className:"flex-1 relative leading-[140%] font-semibold",children:"Job Details"}),e.jsx("button",{type:"button",onClick:()=>{n("basicDetails")},className:`cursor-pointer hover:bg-[#F5F3FF]  rounded-lg transition-all duration-200 ease-out
14  hover:-translate-y-[1px]`,children:e.jsxs("div",{className:"  py-2 px-4 flex items-center gap-[5.4px] text-center",children:[e.jsx("div",{className:"relative text-[14px] leading-[10.41px] font-semibold text-transparent !bg-clip-text [background:linear-gradient(90deg,_#864eff,_#502f99)] ",children:"Edit"}),e.jsx("img",{className:"w-4 relative max-h-full",alt:"",src:U.commonIcons.icon_edit_pencil_gradient})]})})]}),e.jsx("div",{className:"self-stretch flex items-start text-[13px] text-lightslategray",children:e.jsxs("div",{className:"flex-1 flex flex-col items-start p-1 gap-2.5",children:[e.jsxs("div",{className:"self-stretch rounded-lg bg-ghostwhite flex items-center py-[10px] px-4 gap-2.5",children:[e.jsx("div",{className:"w-[230px] relative leading-[150%] font-semibold inline-block shrink-0",children:"Experience Required"}),e.jsxs("div",{className:"flex-1 relative leading-[150%] font-medium text-darkslateblue",children:[t?.experience?.max?`${t?.experience?.min??0} - ${t?.experience?.max} years`:`${t?.experience?.min??0} ${(t?.experience?.min??0)==1?"year":"years"}`," of Experience"]})]}),e.jsxs("div",{className:"self-stretch rounded-lg bg-ghostwhite flex items-center py-[10px] px-4 gap-2.5",children:[e.jsx("div",{className:"w-[230px] relative leading-[150%] font-semibold inline-block shrink-0",children:"Employment Type"}),e.jsx("div",{className:"flex-1 relative leading-[150%] font-medium text-darkslateblue",children:t?.
14work_mode[0]})]}),e.jsxs("div",{className:"self-stretch rounded-lg bg-ghostwhite flex items-center py-[10px] px-4 gap-2.5",children:[e.jsx("div",{className:"w-[230px] relative leading-[150%] font-semibold inline-block shrink-0",children:"Country"}),e.jsx("div",{className:"flex-1 relative leading-[150%] font-medium text-darkslateblue",children:t?.country?.name})]}),e.jsxs("div",{className:"self-stretch rounded-lg bg-ghostwhite flex items-center py-[10px] px-4 gap-2.5",children:[e.jsx("div",{className:"w-[230px] relative leading-[150%] font-semibold inline-block shrink-0",children:"City"}),e.jsx("div",{className:"flex-1 relative leading-[150%] font-medium text-darkslateblue",children:[t?.job_location?.city,t?.job_location?.state,t?.job_location?.country].filter(Boolean).join(", ")||"-"})]})]})})]})})}),e.jsx("div",{className:"self-stretch flex flex-col items-start",children:e.jsx("div",{className:"self-stretch flex flex-col items-start",children:e.jsxs("div",{className:"self-stretch flex flex-col items-start justify-center gap-3",children:[e.jsxs("div",{className:"self-stretch flex items-end gap-2.5",children:[e.jsx("div",{className:"flex-1 relative leading-[140%] font-semibold",children:"Payment & Contract Details"}),e.jsx("button",{type:"button",onClick:()=>{n("paymentContractDetails")},className:"cursor-pointer hover:bg-[#F5F3FF] rounded-lg transition-all duration-200 ease-out hover:-translate-y-[1px]",children:e.jsxs("div",{className:"  py-2 px-4 flex items-center gap-[5.4px] text-center",children:[e.jsx("div",{className:"relative text-[14px] leading-[10.41px] font-semibold text-transparent !bg-clip-text [background:linear-gradient(90deg,_#864eff,_#502f99)] ",children:"Edit"}),e.jsx("img",{className:"w-4 relative max-h-full",alt:"",src:U.commonIcons.icon_edit_pencil_gradient})]})})]}),e.jsx("div",{className:"self-stretch flex items-start text-[13px] text-lightslategray",children:e.jsxs("div",{className:"flex-1 flex flex-col items-start p-1 gap-2.5",children:[e.jsxs("div",{className:"self-stretch rounded-lg bg-ghostwhite flex items-start py-[10px] px-4 gap-2.5",children:[e.jsx("div",{className:"w-[230px] relative leading-[150%] font-semibold inline-block shrink-0",children:"Payment Model"}),e.jsx("div",{className:"flex-1 rounded-lg bg-white flex items-start py-[10px] px-4 text-darkslateblue",children:e.jsxs("div",{className:"flex flex-col items-start justify-center gap-1",children:[e.jsx("div",{className:"relative leading-[150%] font-medium",children:t.contract_type==="pay_as_you_go_time_based"?"Fixed rate":"Milestone based"}),e.jsxs("div",{className:"relative text-num-12 leading-[150%] font-medium text-lightslategray",children:[" ",t.contract_type==="pay_as_you_go_time_based"?`Pay the contractor a consistent amount based on time worked — ${t?.paymentFrequency}.`:"Release payments in stages as specific project milestones or deliverables are completed."]})]})})]}),e.jsxs("div",{className:"self-stretch rounded-lg bg-ghostwhite flex items-center py-[10px] px-4 gap-2.5",children:[e.jsx("div",{className:"w-[230px] relative leading-[150%] font-semibold inline-block shrink-0",children:"Employment modal"}),e.jsx("div",{className:"flex-1 relative leading-[150%] font-medium text-darkslateblue",children:t?.is_eor===!0?"Employer of Record (EOR)":t?.is_eor===!1?"Independent contractor (IC)":"Decide later"})]}),e.jsxs("div",{className:"self-stretch rounded-lg bg-ghostwhite flex items-center py-[10px] px-4 gap-2.5",children:[e.jsx("div",{className:"w-[230px] relative leading-[150%] font-semibold inline-block shrink-0",children:"Currency"}),e.jsx("div",{className:"flex-1 relative leading-[150%] font-medium text-darkslateblue",children:t?.currency?.code})]}),e.jsxs("div",{className:"self-stretch rounded-lg bg-ghostwhite flex items-center py-[10px] px-4 gap-2.5",children:[e.jsx("div",{className:"w-[230px] relative leading-[150%] font-semibold inline-block shrink-0",children:"Amount"}),e.jsxs("div",{className:"flex-1 relative leading-[150%] font-medium text-darkslateblue",children:[t?.currency?.code," ",t?.minimum_amount," ","-"," ",t?.maximum_amount]})]}),e.jsxs("div",{className:"self-stretch rounded-lg bg-ghostwhite flex items-center py-[10px] px-4 gap-2.5 text-white",children:[e.jsx("div",{className:"w-[230px] relative leading-[150%] font-semibold text-lightslategray inline-block shrink-0",children:"Contract Length"}),e.jsx("div",{className:"flex-1 relative leading-[150%] font-medium text-darkslateblue",children:t?.contract_length+" months"})]}),e.jsxs("div",{className:"self-stretch rounded-lg bg-ghostwhite flex items-center py-[10px] px-4 gap-2.5",children:[e.jsx("div",{className:"w-[230px] relative leading-[150%] font-semibold inline-block shrink-0",children:"Contract Start & End Date"}),e.jsxs("div",{className:"flex-1 relative leading-[150%] font-medium text-darkslateblue",children:[" ",e.jsxs("div",{className:"text-[#312B3A] text-[13px] py-3 rounded-lg",children:[t.contract_start_date&&new Date(t.contract_start_date).toLocaleDateString("en-GB"),t.contract_length&&t.contract_start_date&&" to "+new Date(new Date(t.contract_start_date).setMonth(new Date(t.contract_start_date).getMonth()+parseInt(t.contract_length))).toLocaleDateString("en-GB"),"."]})]})]})]})}),e.jsxs("div",{children:[e.jsxs("div",{className:"mt-8 mb-4",children:[e.jsx("div",{className:"flex items-start gap-3",children:e.jsxs("label",{htmlFor:"terms_and_conditions",className:"text-[16px] leading-[150%] font-poppins cursor-pointer text-[#575B65]",children:["By publishing this job, you acknowledge that you have read and agree to Avua’s Candidate Engagement & Non-Circumvention  ",e.jsx("span",{onClick:r=>{r.preventDefault(),N(!0)},className:"bg-purple-brand text-transparent bg-clip-text font-medium",children:" Terms & Conditions"})]})}),y.touched.terms_and_conditions&&y.errors.terms_and_conditions&&e.jsx("p",{className:"text-red text-[13px] mt-2 ml-8 font-medium",children:y.errors.terms_and_conditions})]}),k&&Le.createPortal(e.jsxs("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center p-4 sm:p-6",children:[e.jsx("div",{className:"fixed inset-0 bg-black/60 backdrop-blur-sm",onClick:()=>N(!1)}),e.jsxs("div",{className:"relative w-full max-w-4xl bg-white rounded-3xl shadow-2xl flex flex-col max-h-[90vh] overflow-hidden",children:[e.jsxs("div",{className:"flex-shrink-0 px-6 py-5 border-b border-[#0000000F] flex justify-between items-center bg-white",children:[e.jsx("h2",{className:"text-[20px] font-semibold text-darkslateblue font-poppins",children:"Terms & Conditions"}),e.jsx("button",{onClick:()=>N(!1),className:"w-10 h-10 rounded-full bg-ghostwhite flex items-center justify-center hover:bg-[#
14EDE7FE] transition-colors group",children:e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M18 6L6 18M6 6L18 18",stroke:"#2B1845",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),e.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto font-poppins text-[15px] leading-[170%] text-[#424242] scrollbar-hide",children:e.jsx("div",{className:"px-8 pt-8 pb-12",children:e.jsx(dt,{})})}),e.jsx("div",{className:"flex-shrink-0 px-8 py-5 border-t border-[#0000000F] flex justify-end bg-white",children:e.jsx("button",{onClick:()=>N(!1),className:"bg-white text-purple-brand border border-purple-brand px-8 py-3 rounded-full text-[15px] font-semibold hover:bg-purple-brand/5 transition-all active:scale-[0.98]",children:"I Understand"})})]})]}),document.body)]})]})})})]})]})]}),e.jsx(xe,{disabled:C||!y.values.terms_and_conditions,nextLabel:C?t.job_post_id?"Updating...":"Publishing...":t.job_post_id?"Update Job":"Publish",onNext:S,onBack:()=>{n("paymentContractDetails")}})]})},xt=({headingLabel:n,options:t=[],value:o,onChange:j})=>e.jsxs("div",{children:[n&&e.jsx("h1",{className:"font-semibold text-[14px] leading-[140%] text-darkslateblue mb-4",children:n}),e.jsx("div",{className:"grid grid-cols-2 gap-5 ",children:t.map(u=>{const h=o===u.value;return e.jsx("div",{onClick:()=>j(u.value),className:`rounded-lg p-[1px] cursor-pointer transition
15                ${h?"bg-purple-brand-light":""}
16              `,children:e.jsx("div",{className:"rounded-lg bg-ghostwhite p-4 h-full",children:e.jsxs("div",{className:"flex flex-col gap-1 h-full justify-between ",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-6 h-6 rounded-full flex items-center justify-center bg-white",children:h?e.jsx(Ue,{color:"#1364A4"}):e.jsx(Ve,{color:"#196B0E"})}),e.jsx("div",{className:"font-semibold leading-[150%] text-darkslateblue text-[14px]",children:u.label})]}),e.jsx("p",{className:"text-lightslategray text-[12px]",children:u.description})]})})},u.value)})})]}),ut=a.memo(xt),mt=["Su","Mo","Tu","We","Th","Fr","Sa"],ht=["January","February","March","April","May","June","July","August","September","October","November","December"],ft=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],gt=a.forwardRef(({label:n,name:t,value:o,onChange:j,error:u,placeholder:h,mandatory:w=!1,minDate:C,maxDate:E},k)=>{const[N,T]=a.useState(!1),[y,S]=a.useState(()=>o?new Date(o):new Date),[r,f]=a.useState("days"),[R,g]=a.useState(null),[x,d]=a.useState(()=>(o?new Date(o).getFullYear():new Date().getFullYear())-4),F=a.useRef(null),m=a.useMemo(()=>C?new Date(C):null,[C]),p=a.useMemo(()=>E?new Date(E):null,[E]);a.useEffect(()=>{const s=l=>{F.current&&!F.current.contains(l.target)&&(T(!1),f("days"))};return N&&document.addEventListener("mousedown",s),()=>document.removeEventListener("mousedown",s)},[N]),a.useEffect(()=>{if(o){const s=new Date(o);S(s),d(s.getFullYear()-4)}},[o]);const b=a.useMemo(()=>{if(!o)return"";const s=new Date(o);if(isNaN(s.getTime()))return"";const l=String(s.getDate()).padStart(2,"0"),A=String(s.getMonth()+1).padStart(2,"0"),V=s.getFullYear();return`${l} / ${A} / ${V}`},[o]),D=a.useMemo(()=>{const s=y.getFullYear(),l=y.getMonth(),A=new Date(s,l,1).getDay(),V=new Date(s,l+1,0).getDate(),G=new Date(s,l,0).getDate(),ee=[];for(let q=A-1;q>=0;q--)ee.push({day:G-q,currentMonth:!1,date:new Date(s,l-1,G-q)});for(let q=1;q<=V;q++)ee.push({day:q,currentMonth:!0,date:new Date(s,l,q)});const _e=42-ee.length;for(let q=1;q<=_e;q++)ee.push({day:q,currentMonth:!1,date:new Date(s,l+1,q)});return ee},[y]),M=a.useMemo(()=>{const s=[];for(let l=0;l<12;l++)s.push(x+l);return s},[x]),P=s=>{const l=new Date;return s.getDate()===l.getDate()&&s.getMonth()===l.getMonth()&&s.getFullYear()===l.getFullYear()},_=s=>{if(!o)return!1;const l=new Date(o);return s.getDate()===l.getDate()&&s.getMonth()===l.getMonth()&&s.getFullYear()===l.getFullYear()},v=s=>{if(m){const l=new Date(m);if(l.setHours(0,0,0,0),s<l)return!0}if(p){const l=new Date(p);if(l.setHours(23,59,59,999),s>l)return!0}return!1},$=(s,l)=>{if(!m&&!p)return!1;const A=new Date(l,s+1,0),V=new Date(l,s,1);if(m){const G=new Date(m);if(G.setHours(0,0,0,0),A<G)return!0}if(p){const G=new Date(p);if(G.setHours(23,59,59,999),V>G)return!0}return!1},K=s=>{if(!m&&!p)return!1;const l=new Date(s,11,31),A=new Date(s,0,1);if(m){const V=new Date(m);if(V.setHours(0,0,0,0),l<V)return!0}if(p){const V=new Date(p);if(V.setHours(23,59,59,999),A>V)return!0}return!1},se=a.useMemo(()=>
16{if(!m)return!1;const s=new Date(m);return s.setHours(0,0,0,0),r==="days"?new Date(y.getFullYear(),y.getMonth(),0)<s:r==="months"?new Date(y.getFullYear()-1,11,31)<s:r==="years"?new Date(x-1,11,31)<s:!1},[m,r,y,x]),J=a.useMemo(()=>{if(!p)return!1;const s=new Date(p);return s.setHours(23,59,59,999),r==="days"?new Date(y.getFullYear(),y.getMonth()+1,1)>s:r==="months"?new Date(y.getFullYear()+1,0,1)>s:r==="years"?new Date(x+12,0,1)>s:!1},[p,r,y,x]),H=s=>{if(!s.currentMonth||v(s.date))return;const l=s.date,A=l.getFullYear(),V=String(l.getMonth()+1).padStart(2,"0"),G=String(l.getDate()).padStart(2,"0");j(`${A}-${V}-${G}`),T(!1),f("days")},Q=s=>{g("left"),setTimeout(()=>g(null),250),S(l=>{const A=new Date(l);return A.setMonth(s),A}),f("days")},Z=s=>{g("left"),setTimeout(()=>g(null),250),S(l=>{const A=new Date(l);return A.setFullYear(s),A}),f("months")},L=s=>{g(s>0?"left":"right"),setTimeout(()=>g(null),250),S(l=>{const A=new Date(l);return A.setMonth(A.getMonth()+s),A})},i=s=>{g(s>0?"left":"right"),setTimeout(()=>g(null),250),d(l=>l+s*12)},I=()=>{const s=new Date;S(s),d(s.getFullYear()-4),f("days")},B=()=>{r==="days"?L(-1):r==="months"?(g("right"),setTimeout(()=>g(null),250),S(s=>{const l=new Date(s);return l.setFullYear(l.getFullYear()-1),l})):r==="years"&&i(-1)},O=()=>{r==="days"?L(1):r==="months"?(g("left"),setTimeout(()=>g(null),250),S(s=>{const l=new Date(s);return l.setFullYear(l.getFullYear()+1),l})):r==="years"&&i(1)},Y=()=>r==="years"?`${x} — ${x+11}`:r==="months"?y.getFullYear():null,z=s=>{const l=new Date;return s===l.getMonth()&&y.getFullYear()===l.getFullYear()},oe=s=>s===y.getMonth(),ce=s=>s===new Date().getFullYear(),c=s=>s===y.getFullYear();return e.jsxs("div",{className:"w-full relative text-[14px]",ref:F,children:[e.jsxs("label",{className:"block leading-[100%] text-[#121826] font-poppins font-[500] px-1 absolute bg-white left-3 -top-1 z-10",children:[n,w&&e.jsx("span",{className:"text-red ml-1",children:"*"})]}),e.jsxs("div",{ref:k,tabIndex:0,onClick:()=>{T(s=>!s),N||f("days")},onKeyDown:s=>{(s.key==="Enter"||s.key===" ")&&(s.preventDefault(),T(l=>!l),N||f("days"))},className:`outline-purple px-4 py-3 w-full shadow-[0px_2px_2px_rgba(0,_0,_0,_0.05)] rounded-lg bg-white border-borderLightGray border-solid border-[1px] box-border cursor-pointer flex items-center justify-between select-none transition-all duration-200 ${u?"border-red":""} ${N?"border-purple ring-1 ring-purple/20":"hover:border-[#b0b5bd]"}`,role:"button","aria-label":n,"aria-expanded":N,children:[e.jsx("span",{className:`font-poppins text-[14px] ${b?"text-[#121826]":"text-[#9CA3AF]"}`,children:b||h||"DD / MM / YYYY"}),e.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`transition-colors duration-200 flex-shrink-0 ${N?"text-purple":"text-[#9CA3AF]"}`,children:[e.jsx("path",{d:"M6.66667 1.66666V4.16666M13.3333 1.66666V4.16666M2.91667 7.57499H17.0833M17.5 7.08332V14.1667C17.5 16.6667 16.25 18.3333 13.3333 18.3333H6.66667C3.75 18.3333 2.5 16.6667 2.5 14.1667V7.08332C2.5 4.58332 3.75 2.91666 6.66667 2.91666H13.3333C16.25 2.91666 17.5 4.58332 17.5 7.08332Z",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M13.0791 11.4167H13.0866M13.0791 13.9167H13.0866M9.99581 11.4167H10.0041M9.99581 13.9167H10.0041M6.91162 11.4167H6.91995M6.91162 13.9167H6.91995",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})]}),N&&e.jsxs("div",{className:"absolute top-full left-0 mt-2 w-[320px] bg-white rounded-xl shadow-[0_8px_30px_rgba(0,0,0,0.08)] border border-[#E9EBF0] z-50 overflow-hidden",style:{animation:"calendarFadeIn 0.2s ease-out"},children:[e.jsxs("div",{className:" bg-[#F7F3FF] flex items-center justify-between px-4 py-3",children:[e.jsx("button",{type:"button",onClick:B,disabled:se,className:`w-8 h-8 rounded-full flex items-center justify-center transition-all duration-200 ${se?"text-[#D1D5DB] cursor-not-allowed":"text-[#6B7280] hover:text-[#6F3EB2] hover:bg-[#F7F3FF]"}`,"aria-label":"Previous",children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M10 12L6 8L10 4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),r==="days"?e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("button",{type:"button",onClick:()=>f("months"),className:"text-[#2B1845] font-poppins font-semibold text-[15px] leading-tight hover:bg-[#F7F3FF] hover:text-[#6F3EB2] px-2 py-1 rounded-md transition-all duration-200",children:ht[y.getMonth()]}),e.jsx("button",{type:"button",onClick:()=>{d(y.getFullYear()-4),f("years")},className:"text-[#6B7280] font-poppins font-medium text-[15px] leading-tight hover:bg-[#F7F3FF] hover:text-[#6F3EB2] px-2 py-1 rounded-md transition-all duration-200",children:y.getFullYear()})]}):e.jsx("button",{type:"button",onClick:()=>{r==="months"&&(d(y.getFullYear()-4),f("years"))},className:`text-[#2B1845] font-poppins font-semibold text-[15px] leading-tight ${r==="months"?"hover:bg-[#F7F3FF] hover:text-[#6F3EB2] px-2 py-1 rounded-md cursor-pointer":"cursor-default"} transition-all duration-200`,children:Y()}),e.jsx("button",{type:"button",onClick:O,disabled:J,className:`w-8 h-8 rounded-full flex items-center justify-center transition-all duration-200 ${J?"text-[#D1D5DB] cursor-not-allowed":"text-[#6B7280] hover:text-[#6F3EB2] hover:bg-[#F7F3FF]"}`,"aria-label":"Next",children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M6 12L10 8L6 4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),r==="days"&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"grid grid-cols-7 px-3 pt-3 pb-1",children:mt.map(s=>e.jsx("div",{className:"text-center text-[11px] font-poppins font-semibold text-[#9CA3AF] uppercase tracking-wide py-1",children:s},s))}),e.jsx("div",{className:`grid grid-cols-7 px-3 pb-2 ${R==="left"?"calendar-slide-left":R==="right"?"calendar-slide-right":""}`,children:D.map((s,l)=>{const A=_(s.date),V=P(s.date),G=v(s.date),ee=!s.currentMonth;return e.jsxs("button",{type:"button",onClick:()=>H(s),disabled:G||ee,className:`
17                        relative w-full aspect-square flex items-center justify-center
18                        text-[13px] font-poppins font-medium rounded-lg
19                        transition-all duration-150 m-[1px]
20                        ${ee?"text-[#E5E7EB] cursor-default":G?"text-[#D1D5DB] cursor-not-allowed":A?"calendar-gradient-border text-[#6F3EB2] font-semibold scale-105":V?"text-[#6F3EB2] font-bold bg-[#F7F3FF] ring-1 ring-[#6F3EB2]/20":"text-[#374151] hover:bg-[#F7F3FF] hover:text-[#6F3EB2] cursor-pointer"}
21                      `,children:[s.day,V&&!A&&e.jsx("span",{className:"absolute bottom-[3px] left-1/2 -translate-x-1/2 w-[4px] h-[4px] rounded-full bg-[#6F3EB2]"})]},l)})})]}),r==="months"&&e.jsx("div",{className:`grid grid-cols-3 gap-2 px-4 py-4 ${R==="left"?"calendar-slide-left":R==="right"?"calendar-slide-right":""}`,style:{animation:"calendarFadeIn 0.18s ease-out"},children:ft.map((s,l)=>{const A=z(l),V=oe(l),G=$(l,y.getFullYear());return e.jsx("button",{type:"button",onClick:()=>!G&&Q(l),disabled:G,className:`
22                      py-3 rounded-lg text-[13px] font-poppins font-medium
23                      transition-all duration-150
24                      ${G?"text-[#D1D5DB] cursor-not-allowed":V?"calendar-gradient-border text-[#6F3EB2] font-semibold":A?"text-[#6F3EB2] font-semibold bg-[#F7F3FF] ring-1 ring-[#6F3EB2]/20":"text-[#374151] hover:bg-[#F7F3FF] hover:text-[#6F3EB2] cursor-pointer"}
25                    `,children:s},s)})}),r==="years"&&e.jsx("div",{className:`grid grid-cols-3 gap-2 px-4 py-4 ${R==="left"?"calendar-slide-left":R==="right"?"calendar-slide-right":""}`,style:{animation:"calendarFadeIn 0.18s ease-out"},children:M.map(s=>{const l=ce(s),A=c(s),V=K(s);return e.jsx("button",{type:"button",onClick:()=>!V&&Z(s),disabled:V,className:`
26                      py-3 rounded-lg text-[13px] font-poppins font-medium
27                      transition-all duration-150
28                      ${V?"text-[#D1D5DB] cursor-not-allowed":A?"calendar-gradient-border text-[#6F3EB2] font-semibold":l?"text-[#6F3EB2] font-semibold bg-[#F7F3FF] ring-1 ring-[#6F3EB2]/20":"text-[#374151] hover:bg-[#F7F3FF] hover:text-[#6F3EB2] cursor-pointer"}
29                    `,children:s},s)})}),e.jsxs("div",{className:"flex items-center justify-between px-4 py-2.5 border-t border-[#E9EBF0] bg-[#FAFBFC]",children:[e.jsx("button",{type:"button",onClick:I,className:"text-[12px] font-poppins font-medium text-[#6F3EB2] hover:text-[#2B1845] transition-colors duration-200 hover:underline",children:"Today"}),e.jsxs("div",{className:"flex items-center gap-3",children:[r!=="days"&&e.jsx("button",{type:"button",onClick:()=>f(r==="years"?"months":"days"),className:"text-[12px] font-poppins font-medium text-[#6F3EB2] hover:text-[#2B1845] transition-colors duration-200 hover:underline",children:"Back"}),o&&e.jsx("button",{type:"button",onClick:()=>{j(""),T(!1),f("days")},className:"text-[12px] font-poppins font-medium text-[#9CA3AF] hover:text-red transition-colors duration-200",children:"Clear"})]})]})]}),u&&e.jsx("p",{className:"text-red text-[13px] mt-1 ml-1 font-medium",children:u})]})}),bt=a.forwardRef(({label:n,name:t,value:o,error:j,placeholder:u,handleItemSelect:h,mandatory:w=!1,dropdownMenuItem:C=[]},E)=>{const[k,N]=a.useState([]),[T,y]=a.useState(!1),[S,r]=a.useState(!1),f=g=>{r(!1),h(g)},R=()=>{r(!0)};return e.jsxs("div",{className:"w-full relative text-[14px] cursor-pointer",children:[e.jsxs("label",{className:"block text-[14px] leading-[100%] text-[#121826] font-poppins font-[500] px-1 absolute bg-white left-3 -top-1 z-10",children:[n,w&&e.jsx("span",{className:"text-red ml-1",children:"*"})]}),e.jsx(we,{className:`absolute top-[12px] right-2.5 transition-transform duration-300 ${S?"rotate-180":""}`,color:"#838691",size:20,onClick:()=>r(g=>!g)}),e.jsx("input",{ref:E,className:`outline-purple px-4 py-3 w-full shadow-[0px_2px_2px_rgba(0,_0,_0,_0.05)] rounded-lg bg-white border-borderLightGray border-solid border-[1px] box-border ${j?"border-red":""}`,type:"text",name:t,placeholder:u,value:o||"",autoComplete:"off",onClick:R,readOnly:!0}),T&&e.jsx("div",{className:"absolute right-3 top-3",children:e.jsx("div",{className:"animate-spin h-4 w-4 border-2 border-purple border-t-transparent rounded-full"})}),S&&C.length>0&&e.jsx("div",{className:"absolute z-50 left-0 mt-1 w-full bg-white border border-[#00000014] shadow-2xl rounded-lg max-h-60 overflow-y-auto",children:C.map(g=>e.jsx("div",{className:"px-4 py-3 cursor-pointer hover:bg-ghostwhite transition-colors border-b border-[#00000014] last:border-none text-darkslateblue",onClick:()=>f(g),children:g.label},g.id))}),j&&e.jsx("p",{className:"text-red text-[13px] mt-1 ml-1 font-medium",children:j})]})}),jt=({isOpen:n,onClose:t,milestone:o,onSave:j,onDelete:u,index:h})=>{const[w,C]=a.useState({name:"",description:"",amount:""});a.useEffect(()=>{C({name:o?.name||"",description:o?.description||"",amount:o?.amount||""})},[o]);const E=()=>{j(w,h),t()};return n?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"fixed inset-0 bg-black/50 z-50 transition-opacity duration-300 ease-out",onClick:t}),e.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 pointer-events-none",children:e.jsxs("div",{className:`p-10 space-y-10 bg-white rounded-2xl shadow-2xl w-full max-w-[516px] pointer-events-auto
30                     transform transition-all duration-300 ease-out
31                     animate-[modalSlideIn_0.3s_ease-out]`,onClick:k=>k.stopPropagation(),children:[e.jsxs("div",{className:"flex items-center relative",children:[e.jsx("div",{className:"absolute bg-[#F0ECF6] h-[65px] w-[65p
31x] rounded-full flex items-center justify-center",children:e.jsx("div",{className:"bg-white h-[40px] w-[40px] rounded-full flex items-center justify-center relative z-10",children:e.jsx("img",{src:U.commonIcons.icon_ellipse_path,alt:""})})}),e.jsx("div",{className:"bg-[#F0ECF6] h-fit rounded-full pl-[20px] pr-4 py-3 relative left-[40px] z-0",children:e.jsx("h2",{className:"text-[14px] font-medium text-darkslateblue",children:o?"Edit a Milestone":"Add a Milestone"})}),e.jsx("button",{onClick:t,className:" p-2 rounded-full border border-[#0000000F] hover:bg-[#f8f9fe]  transition-colors absolute -right-[30px] -top-[30px]",children:e.jsx(Ne,{})})]}),e.jsxs("div",{className:"space-y-6 ",children:[e.jsx(ae,{label:"Milestone Name",type:"text",name:"milestoneName",placeholder:"Enter milestone name",value:w.name,mandatory:!0,onChange:k=>C({...w,name:k})}),e.jsxs("div",{className:"w-full relative text-[13px]",children:[e.jsx("label",{className:"block text-[12px] leading-[100%] text-[#121826] font-poppins font-[500] px-1 absolute bg-white left-3 -top-1 z-10",children:"Description"}),e.jsx("textarea",{className:"outline-purple px-4 py-3 w-full shadow-[0px_2px_2px_rgba(0,_0,_0,_0.05)] rounded-lg bg-white border-borderLightGray border-solid border-[1px] box-border min-h-[120px] resize-none",placeholder:"Add milestone description (optional)",value:w.description,onChange:k=>C({...w,description:k.target.value})})]}),e.jsx(ae,{label:"Amount",type:"number",name:"milestoneAmount",placeholder:"Enter amount",value:w.amount,mandatory:!0,onChange:k=>C({...w,amount:k})})]}),e.jsx("div",{className:"flex items-center justify-between",children:e.jsx("button",{onClick:E,className:"w-full px-6 py-3 bg-purple-brand text-white font-semibold text-[14px] rounded-lg hover:bg-purple-brand/90 transition-colors shadow-lg",children:o?"Edit Milestone":"Add Milestone"})})]})}),e.jsx("style",{jsx:!0,children:`
32        @keyframes modalSlideIn {
33          from {
34            opacity: 0;
35            transform: scale(0.95) translateY(-10px);
36          }
37          to {
38            opacity: 1;
39            transform: scale(1) translateY(0);
40          }
41        }
42      `})]}):null},yt=a.forwardRef(({label:n,name:t,value:o,onChange:j,error:u,placeholder:h,handleItemSelect:w,mandatory:C=!1,fetchDataApi:E,onKeyDown:k=()=>{},extraParams:N={}},T)=>{const[y,S]=a.useState([]),[r,f]=a.useState(!1),[R,g]=a.useState(!1),x=a.useRef(null),d=async p=>{f(!0);try{const D=(await E(p,N)).data;D?(S(D),g(!0)):(S([]),g(!1))}catch(b){console.error("Error fetching job titles:",b)}finally{f(!1)}},F=p=>{const b=p.target.value;j(b),x.current&&clearTimeout(x.current),x.current=setTimeout(()=>{d(b)},600)},m=p=>{g(!1),S([]),w(p)};return e.jsxs("div",{className:"w-full relative text-[14px]",children:[e.jsxs("label",{className:"block leading-[100%] text-[#121826] font-poppins font-[500] px-1 absolute bg-white left-3 -top-1 z-10",children:[n,C&&e.jsx("span",{className:"text-red ml-1",children:"*"})]}),e.jsx("input",{ref:T,className:`outline-purple px-4 py-3 w-full shadow-[0px_2px_2px_rgba(0,_0,_0,_0.05)] rounded-lg bg-white border-borderLightGray border-solid border-[1px] box-border ${u?"border-red":""}`,type:"text",name:t,placeholder:h,value:o||"",onChange:F,onKeyDown:k,autoComplete:"off"}),r&&e.jsx("div",{className:"absolute right-3 top-3",children:e.jsx("div",{className:"animate-spin h-4 w-4 border-2 border-purple border-t-transparent rounded-full"})}),R&&y.length>0&&e.jsx("div",{className:"absolute z-50 left-0 mt-1 w-full bg-white border border-[#00000014] shadow-2xl rounded-lg max-h-60 overflow-y-auto",children:y.map(p=>e.jsx("div",{className:"px-4 py-3 cursor-pointer hover:bg-ghostwhite transition-colors border-b border-[#00000014] last:border-none text-darkslateblue",onClick:()=>m(p),children:n==="Job Title"?p.title:n==="Country"?p.name:n==="City"?[p.city,p.state,p.country].filter(Boolean).join(", "):n==="Currency"?`${p.label}(${p.value})`:e.jsx(e.Fragment,{})},p.id))}),u&&e.jsx("p",{className:"text-red text-[13px] mt-1 ml-1 font-medium",children:u})]})}),ge=[{code:"en",name:"English",countryCode:"GB",id:null},{code:"fi",name:"Finnish",countryCode:"FI",id:null},{code:"fr",name:"French",countryCode:"FR",id:null},{code:"de",name:"German",countryCode:"DE",id:null},{code:"it",name:"Italian",countryCode:"IT",id:null},{code:"pl",name:"Polish",countryCode:"PL",id:null},{code:"pt",name:"Portuguese",countryCode:"BR",id:null},{code:"ro",name:"Romanian",countryCode:"RO",id:null},{code:"es",name:"Spanish",countryCode:"ES",id:null},{code:"sv",name:"Swedish",countryCode:"SE",id:null}],vt=a.forwardRef(({label:n,value:t,error:o,onChange:j,onIdChange:u,mandatory:h=!1},w)=>{const C=te(x=>x.auth.token),[E,k]=a.useState(!1),[N,T]=a.useState(ge),[y,S]=a.useState(!1),r=a.useRef(null),{showToast:f}=ve();a.useEffect(()=>{C&&(async()=>{try{const F=(await me("",C))?.data?.data||[],m=ge.map(p=>{const b=F.find(D=>D.name.toLowerCase()===p.name.toLowerCase());return{...p,id:b?b.id:null,hasBackendSupport:!!b}});T(m)}catch(d){console.error("Error fetching language IDs:",d)}})()},[C]),a.useEffect(()=>{const x=d=>{r.current&&!r.current.contains(d.target)&&k(!1)};return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[]);const R=async x=>{if(x.id&&x.hasBackendSupport){j(x.name),u&&u(x.id),k(!1);return}S(!0);try{const m=((await me(x.name,C))?.data?.data||[]).find(p=>p.name.toLowerCase()===x.name.toLowerCase());m&&m.id?(j(x.name),u&&u(m.id),T(p=>p.map(b=>b.name===x.name?{...b,id:m.id,hasBackendSupport:!0}:b)),k(!1)):f("Language not supported","error")}catch(d){console.error(`Error fetching language ID for "${x.name}":`,d),f("Language not supported","error")}finally{S(!1)}},g=()=>N.find(x=>x.name===t)||N[0];return e.jsxs("div",{className:"w-full relative text-[14px] curs
42or-pointer",ref:r,children:[e.jsxs("div",{ref:w,onClick:()=>!y&&k(!E),className:`outline-purple h-[46px] px-4 py-3 w-full shadow-[0px_2px_2px_rgba(0,_0,_0,_0.05)] rounded-lg bg-white border-borderLightGray border-solid border-[1px] box-border flex items-center justify-between ${o?"border-red":""} ${y?"cursor-wait opacity-60":"cursor-pointer"}`,children:[e.jsxs("div",{className:"flex gap-[15px] items-center",children:[e.jsx(he,{countryCode:g().countryCode,svg:!0,style:{width:"24px",height:"24px",borderRadius:"4px"}}),e.jsx("span",{className:"font-poppins font-normal text-[14px] leading-[1.5] text-[#121826]",children:y?"Checking language support...":t||g().name})]}),E?e.jsx(Ge,{className:"text-[20px] text-[#838691] transition-transform duration-300"}):e.jsx(we,{className:"text-[20px] text-[#838691] transition-transform duration-300"})]}),E&&e.jsx("div",{className:"absolute z-50 left-0 mt-1 w-full bg-white border border-[#00000014] shadow-2xl rounded-lg max-h-60 overflow-y-auto",children:N.map(x=>e.jsxs("div",{onClick:()=>R(x),className:"px-4 py-3 hover:bg-ghostwhite cursor-pointer flex items-center gap-[15px] border-b border-[#00000014] last:border-none",children:[e.jsx(he,{countryCode:x.countryCode,svg:!0,style:{width:"24px",height:"24px",borderRadius:"4px"}}),e.jsx("span",{className:"font-poppins text-[14px] text-darkslateblue",children:x.name})]},x.code))}),o&&e.jsx("p",{className:"text-red text-[13px] mt-1 ml-1 font-medium",children:o})]})}),wt=({headingLabel:n,subHeadings:t="",options:o=[],value:j,onChange:u})=>e.jsxs("div",{children:[n&&e.jsx("h1",{className:"font-semibold text-[14px] leading-[140%] text-darkslateblue mb-3",children:n}),t&&e.jsx("p",{className:"text-[14px] leading-[140%] text-lightslategray mb-4",children:t}),e.jsx("div",{className:"grid grid-cols-3 gap-5 ",children:o.map(h=>{const w=j===h.value;return e.jsx("div",{onClick:()=>u(h.value),className:`rounded-lg p-[1px] cursor-pointer transition
43                ${w?"bg-purple-brand-light":""}
44              `,children:e.jsx("div",{className:"rounded-lg bg-ghostwhite p-4 h-full",children:e.jsxs("div",{className:"flex flex-col gap-1 h-full ",children:[e.jsxs("div",{className:"flex flex-col gap-2 ",children:[e.jsx("div",{className:"h-9 w-9 bg-white items-center flex justify-center rounded-full border border-[#0000000F]",children:e.jsx("img",{src:h.icon,alt:""})}),e.jsxs("div",{className:"font-semibold leading-[150%] text-darkslateblue text-[14px] flex w-full",onClick:C=>C.stopPropagation(),children:[e.jsx("p",{className:"",children:h.label}),e.jsxs("div",{className:"relative group h-4 w-4 flex flex-shrink-0 ml-1 mt-[2px]",children:[e.jsx("img",{src:U.commonIcons.icon_info_circle,alt:"",className:""}),h.infoText&&e.jsxs("div",{className:`absolute z-20 hidden group-hover:flex flex-col gap-1 
45                                bottom-[170%] left-1/2 -translate-x-1/2 w-[240px] 
46                                bg-white border border-[#E5E7EB] 
47                                text-[#1A1230] text-[12px] leading-[140%] 
48                                rounded-xl px-3 py-2 shadow-xl`,children:[e.jsx("div",{className:`absolute top-full left-1/2 -translate-x-1/2 w-3 h-3 
49                                bg-white border-l border-b border-[#E5E7EB] rotate-[-45deg]`}),h.infoText.split(`
50`).map((C,E)=>{const[k,N]=C.split(":");return e.jsxs("p",{className:"mb-1 text-lightslategray font-normal text-[12px] last:mb-0",children:[e.jsxs("span",{className:" font-medium text-[12px] text-darkslateblue",children:[k,":"]}),N]},E)})]})]})]})]}),e.jsx("p",{className:"text-lightslategray text-[12px]",children:h.description})]})})},h.value)})})]}),Nt=a.memo(wt),Ct=[{id:1,value:"pay_as_you_go_time_based",label:"Fixed rate",description:"Pay the contractor a consistent amount based on time worked — hourly, daily or monthly."}],_t=[{id:1,icon:U.commonIcons.icon_add_user,value:!1,label:"Independent contractor (IC)",description:"avua facilitates the contract between your organization and the contractor (or their Limited Company).",infoTitle:"Individual Contractor (IC)",infoText:`Management: You oversee the project deliverables and the professional relationship. 
51 Compliance: The contractor is responsible for their own tax and s
51ocial contributions. This model is ideal for engaging Limited Companies or Private Self-Employed individuals. 
52 Best For: Engaging specialized talent operating via a Limited Company or those with a registered self-employed status in their local jurisdiction.`},{id:2,icon:U.commonIcons.Icon_document_new,value:!0,label:"Employer of Record (EOR)",description:"avua serves as the legal employer of the contractor on your behalf, managing all administrative and legal obligations.",infoTitle:"Employer of Record (EOR)",infoText:`Administration: avua handles localized payroll, tax withholdings, social contributions, and statutory benefits. 
53 Compliance: We ensure the engagement adheres strictly to the labor laws of the contractor's specific country or region. 
54 Best For: Hiring international talent or engaging workers in regions where you do not have a local legal entity.`},{id:3,icon:U.commonIcons.icon_paper_negative,value:null,label:"Undecided",description:"Initiate the talent search now and finalize the engagement framework prior to contract issuance.",infoTitle:"Decide later",infoText:`Process: Post the opportunity immediately to begin sourcing and reviewing candidates. 
55 Advisory: avua provides guidance on the most suitable model once the candidate’s location and legal status are confirmed.`}],kt=[{id:"hourly",label:"Hourly"},{id:"daily",label:"Daily"},{id:"monthly",label:"Monthly"}],St=ne().shape({currency:ne().shape({code:X().required("Currency is required").test("is-valid-currency","Please select a valid currency from the list",n=>n&&Ce.some(t=>t.value===n.toUpperCase()))}),contract_type:X().required("Contract type is required"),paymentFrequency:X().required("Payment frequency is required"),minimum_amount:ie().required("Min amount is required").min(1,"Min amount must be greater than 0"),maximum_amount:ie().required("Max amount is required").min(je("minimum_amount"),"Max amount must be greater than min amount"),contract_length:ie().required("Contract length is required").min(3,"Contract length must be at least 3 months"),contract_start_date:X().required("Start date is required"),interviewLanguage:X().required("Interview language is required")}),Et=({setActivePage:n,formData:t,setFormData:o})=>{const j=a.useRef(null),[u,h]=a.useState({technical:["How would you handle missing data in a dataset?","Explain the difference between supervised and unsupervised learning."],behavioral:["Describe a challenging data project you worked on and how you overcame obstacles.","How do you prioritize tasks when working on multiple data projects?"]}),[w,C]=a.useState(null),[E,k]=a.useState(!1),N=a.useRef(null),T=a.useRef(null),y=a.useRef(null),S=a.useRef(null),[r,f]=a.useState(!1),[R,g]=a.useState({name:"",description:"",amount:""}),[x,d]=a.useState(null),F=pe({initialValues:{...t,interviewLanguage:t.interviewLanguage||"English",interview_language_id:t.interview_language_id||null},validationSchema:St,enableReinitialize:!0,onSubmit:i=>{o({...t,...i}),n("reviewPublishDetails")}}),{values:m,errors:p,touched:b,setFieldValue:D,handleSubmit:M,submitCount:P}=F,_=a.useRef(0),v=i=>{typeof i=="string"?D("currency",{id:"",country_id:"",code:i.toUpperCase()}):D("currency",{id:"",country_id:"",code:i.value})},$=i=>{D("paymentFrequency",i.label)},K=i=>{const I=Ce;if(!i)return{data:I};const B=i.toLowerCase();return{data:I.filter(Y=>Y.value.toLowerCase().includes(B)||Y.label.toLowerCase().includes(B))}},se=(i,I)=>{const B=[...m.milestoneItems];I!=null?B[I]=i:B.push(i),D("milestoneItems",B),g(null)},J=(i,I)=>{i.stopPropagation();const B=m.milestoneItems.filter((O,Y)=>Y!==I);D("milestoneItems",B),g(null),d(null),f(!1)},H=i=>{const I=Math.min(100,Math.max(0,parseInt(i)||0));D("technicalPercentage",I)},Q=i=>i?Number(i).toLocaleString("en-US"):"",Z=i=>i.replace(/,/g,""),L=async()=>{const i=t?.job_title?.title||"Golang developer";if(w===i)return;const I={title:i};k(!0);try{const B=await He(I);if(B.msg==="success"&&B.data){const O={technical:B.data.technical||[],behavioral:B.data.behavioral||[]};h(O),C(i)}else throw new Error("Failed to fetch from API")}catch(B){console.log(B),h({technical:["How would you handle missing data in a dataset?","Explain the difference between supervised and unsupervised learning."],behavioral:["Describe a challenging data project you worked on and how you overcame obstacles.","How do you prioritize tasks when working on multiple data projects?"]}),C(i)}finally{k(!1)}};return a.useEffect(()=>
55{const i=t?.job_title?.title;i&&w!==i&&L()},[t?.job_title?.title,w]),a.useEffect(()=>{P>_.current&&(_.current=P,Object.keys(p).length>0&&(p.currency?.code?(N.current?.focus?.(),N.current?.scrollIntoView({behavior:"smooth",block:"center"})):p.paymentFrequency?(T.current?.focus?.(),T.current?.scrollIntoView({behavior:"smooth",block:"center"})):p.minimum_amount||p.maximum_amount?(y.current?.focus?.(),y.current?.scrollIntoView({behavior:"smooth",block:"center"})):(p.contract_length||p.contract_start_date)&&(S.current?.focus?.(),S.current?.scrollIntoView({behavior:"smooth",block:"center"}))))},[P,p]),a.useEffect(()=>{const i=j.current?.parentElement;i?i.scrollTop=0:window.scrollTo(0,0)},[n]),e.jsxs("div",{className:"h-full",ref:j,children:[e.jsxs("div",{className:"m-auto max-w-[662px] w-full flex flex-col ",children:[e.jsx("div",{className:"flex justify-center items-center text-center flex-col mt-[40px] mb-8",children:e.jsxs("div",{className:"flex items-center mb-3 gap-3",children:[e.jsx("svg",{width:"91",height:"6",viewBox:"0 0 91 6",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M84.8333 2.6665C84.8333 4.13926 86.0272 5.33317 87.5 5.33317C88.9728 5.33317 90.1667 4.13926 90.1667 2.6665C90.1667 1.19374 88.9728 -0.00016284 87.5 -0.00016284C86.0272 -0.00016284 84.8333 1.19374 84.8333 2.6665ZM0 2.6665V3.1665H87.5V2.6665V2.1665H0V2.6665Z",fill:"black",fillOpacity:"0.12"})}),e.jsx("h2",{className:"text-[26px] font-semibold text-darkslateblue",children:"Payment Details"}),e.jsx("svg",{width:"91",height:"6",viewBox:"0 0 91 6",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M2.02656e-05 2.6665C2.02656e-05 4.13926 1.19393 5.33317 2.66669 5.33317C4.13945 5.33317 5.33335 4.13926 5.33335 2.6665C5.33335 1.19374 4.13945 -0.00016284 2.66669 -0.00016284C1.19393 -0.00016284 2.02656e-05 1.19374 2.02656e-05 2.6665ZM2.66669 2.6665V3.1665H90.1667V2.6665V2.1665H2.66669V2.6665Z",fill:"black",fillOpacity:"0.12"})})]})}),e.jsxs("div",{className:"space-y-6",children:[e.jsx(ut,{headingLabel:"Contract Type",options:Ct,value:m.contract_type,onChange:i=>D("contract_type",i)}),e.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[e.jsx("div",{ref:N,children:e.jsx(yt,{label:"Currency",placeholder:"Select Currency",value:m?.currency?.code,error:b.currency?.code&&p.currency?.code,onChange:i=>v(i),handleItemSelect:i=>v(i),mandatory:!0,fetchDataApi:K})}),e.jsx("div",{className:"col-span-2",ref:T,children:e.jsx(bt,{ref:null,label:"Payment frequency",placeholder:"Select payment frequency",value:m.paymentFrequency,error:p.paymentFrequency,handleItemSelect:i=>$(i),mandatory:!0,dropdownMenuItem:kt})})]}),e.jsxs("div",{className:"flex text-[14px] flex-col gap-6",children:[e.jsx("div",{className:" w-[50%] rounded-full px-1.5 py-1 border text-center border-[#0000000F] bg-[#F6F8FE]",children:e.jsx("h2",{className:"text-transparent bg-clip-text bg-purple-brand",children:"Estimated budget for this role"})}),e.jsxs("div",{className:"flex gap-4",ref:y,children:[e.jsx(ae,{label:"Minimum salary",type:"text",placeholder:"Enter minimum salary",value:Q(m.minimum_amount),error:b.minimum_amount&&p.minimum_amount,onChange:i=>{const I=Z(i);/^\d*$/.test(I)&&D("minimum_amount",I)},mandatory:!0}),e.jsx(ae,{label:"Maximum salary",type:"text",placeholder:"Enter maximum salary",value:Q(m.maximum_amount),error:b.maximum_amount&&p.maximum_amount,onChange:i=>{const I=Z(i);/^\d*$/.test(I)&&D("maximum_amount",I)},mandatory:!0})]})]})]}),e.jsxs("div",{className:"flex flex-col gap-6",children:[e.jsxs("div",{className:"flex justify-center items-center text-center flex-col mt-[40px]",children:[e.jsxs("div",{className:"flex items-center mb-3 gap-3",children:[e.jsx("svg",{width:"91",height:"6",viewBox:"0 0 91 6",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M84.8333 2.6665C84.8333 4.13926 86.0272 5.33317 87.5 5.33317C88.9728 5.33317 90.1667 4.13926 90.1667 2.6665C90.1667 1.19374 88.9728 -0.00016284 87.5 -0.00016284C86.0272 -0.00016284 84.8333 1.19374 84.8333 2.6665ZM0 2.6665V3.1665H87.5V2.6665V2.1665H0V2.6665Z",fill:"black",fillOpacity:"0.12"})}),e.jsx("h2",{className:"text-[26px] font-semibold text-darkslateblue",children:"Scope of Work"}),e.jsx("svg",{width:"91",height:"6",viewBox:"0 0 91 6",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M2.02
55656e-05 2.6665C2.02656e-05 4.13926 1.19393 5.33317 2.66669 5.33317C4.13945 5.33317 5.33335 4.13926 5.33335 2.6665C5.33335 1.19374 4.13945 -0.00016284 2.66669 -0.00016284C1.19393 -0.00016284 2.02656e-05 1.19374 2.02656e-05 2.6665ZM2.66669 2.6665V3.1665H90.1667V2.6665V2.1665H2.66669V2.6665Z",fill:"black",fillOpacity:"0.12"})})]}),e.jsx("p",{className:"text-[14px] font-medium leading-[150%] text-lightslategray",children:"Outline the requirements, and contract timeline to secure the right fit."})]}),e.jsx(Nt,{headingLabel:"Contractor’s engagement model",subHeadings:"Choose how the contractor will be engaged. This determines compliance responsibilities and how the contract is structured.",options:_t,value:m.is_eor,onChange:i=>D("is_eor",i)}),e.jsxs("div",{className:"flex gap-[10px]",ref:S,children:[e.jsxs("div",{className:"w-full relative text-[14px]",children:[e.jsxs("label",{className:"block leading-[100%] text-[#121826] font-poppins font-[500] px-1 absolute bg-white left-3 -top-1 z-10",children:["Contract Length"," ",e.jsx("span",{className:"text-red ml-1",children:"*"})]}),e.jsxs("div",{className:"relative",children:[e.jsx("input",{className:`outline-purple px-4 py-3 w-full shadow-[0px_2px_2px_rgba(0,_0,_0,_0.05)] rounded-lg bg-white border-borderLightGray border-solid border-[1px] box-border ${p.contract_length&&b.contract_length?"border-red":""}`,type:"number",placeholder:"Enter Contract Length",value:m.contract_length,onChange:i=>D("contract_length",i.target.value),autoComplete:"off",onWheel:i=>i.currentTarget.blur()}),e.jsx("span",{className:"absolute right-4 top-1/2 transform -translate-y-1/2 text-lightslategray",children:"months"})]}),p.contract_length&&b.contract_length&&e.jsx("p",{className:"text-red text-[13px] mt-1 ml-1 font-medium",children:p.contract_length})]}),e.jsx(gt,{label:"Contract Start Date ",placeholder:"DD / MM / YYYY",value:m.contract_start_date,error:b.contract_start_date&&p.contract_start_date,onChange:i=>D("contract_start_date",i),mandatory:!0,minDate:new Date})]}),e.jsxs("div",{className:"relative px-4 py-3 rounded-lg overflow-hidden ",children:[e.jsx("img",{src:le.dashboard.bg_img_form,alt:"",className:"absolute inset-0 w-full h-full object-cover "}),e.jsxs("div",{className:"relative z-10 flex items-center gap-x-2.5",children:[e.jsx("img",{src:U.commonIcons.icon_star_ai,alt:""}),e.jsxs("div",{className:"text-[#312B3A] text-[13px] py-3 rounded-lg",children:["Based on a ",e.jsx("i",{children:m.contract_length}),"-month contract, your contract will start on ",e.jsx("i",{children:m.contract_start_date&&new Date(m.contract_start_date).toLocaleDateString("en-GB")})," and end on"," ",e.jsx("i",{children:m.contract_length&&m.contract_start_date&&new Date(new Date(m.contract_start_date).setMonth(new Date(m.contract_start_date).getMonth()+parseInt(m.contract_length))).toLocaleDateString("en-GB")}),"."]})]})]})]}),e.jsxs("div",{className:"flex flex-col gap-6",children:[e.jsxs("div",{className:"flex justify-center items-center text-center flex-col mt-[40px]",children:[e.jsxs("div",{className:"flex items-center mb-3 gap-3",children:[e.jsx("svg",{width:"91",height:"6",viewBox:"0 0 91 6",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M84.8333 2.6665C84.8333 4.13926 86.0272 5.33317 87.5 5.33317C88.9728 5.33317 90.1667 4.13926 90.1667 2.6665C90.1667 1.19374 88.9728 -0.00016284 87.5 -0.00016284C86.0272 -0.00016284 84.8333 1.19374 84.8333 2.6665ZM0 2.6665V3.1665H87.5V2.6665V2.1665H0V2.6665Z",fill:"black",fillOpacity:"0.12"})}),e.jsx("h2",{className:"text-[26px] font-semibold text-darkslateblue",children:"AI Interview Configuration"}),e.jsx("svg",{width:"91",height:"6",viewBox:"0 0 91 6",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M2.02656e-05 2.6665C2.02656e-05 4.13926 1.19393 5.33317 2.66669 5.33317C4.13945 5.33317 5.33335 4.13926 5.33335 2.6665C5.33335 1.19374 4.13945 -0.00016284 2.66669 -0.00016284C1.19393 -0.00016284 2.02656e-05 1.19374 2.02656e-05 2.6665ZM2.66669 2.6665V3.1665H90.1667V2.6665V2.1665H2.66669V2.6665Z",fill:"black",fillOpacity:"0.12"})})]}),e.jsx("p",{className:"text-[14px] font-medium leading-[150%] text-lightslategray",children:"Define the parameters for the automated screening process to ensure the assessment aligns with your role requirements."})]}),e.jsxs("div",{className:"w-full",children:[e.jsx("div",{className:"flex flex-col gap-[8px] items-start w-full mb-4",children:e.jsx("h1",{className:"font-poppins font-semibold text-[14px] leading-[1.2] text-[#1b1b1b]",children:"Language Selection"})}),e.jsx(vt,{label:"Interview Language",value:m.interviewLanguage,error:b.interviewLanguage&&p.interviewLanguage,onChange:i=>D("interviewLanguage",i),onIdChange:i=>D("interview_language_id",i),mandatory:!0}),e.jsx("p",{className:"font-poppins font-normal text-[14px] leading-[1.5] text-lightslategray w-full mt-2",children:"The AI asse
55ssment will be conducted exclusively in the selected language.           "})]}),e.jsxs("div",{className:"bg-white flex flex-col gap-4 items-start rounded-[12px]",children:[e.jsx("div",{className:"flex flex-col gap-[8px] items-start w-full",children:e.jsx("p",{className:"font-poppins font-semibold text-[14px] leading-[1.2] text-[#1b1b1b]",children:"Interview Composition"})}),e.jsxs("div",{className:"w-full relative",children:[e.jsxs("div",{className:"hidden xl:flex flex-col gap-4 absolute left-[-240px] top-0 w-[230px]",children:[e.jsx("h3",{className:"font-poppins text-[14px] font-semibold text-lightslategray",children:"Example Technical Questions"}),e.jsx("div",{className:"bg-[#F6F8FE] rounded-[16px] p-5 flex flex-col gap-6",children:E?e.jsx("div",{className:"flex justify-center items-center py-10",children:e.jsx(re,{color:"#864eff",height:30,width:30})}):u.technical?.map((i,I)=>e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsxs("h4",{className:"font-poppins text-[12px] font-semibold text-[#864eff]",children:["Question ",I+1]}),e.jsx("p",{className:"font-poppins text-[12px] font-normal leading-[1.5] text-[#091315B2]",children:i})]},I))})]}),e.jsxs("div",{className:"hidden xl:flex flex-col gap-4 absolute right-[-240px] top-0 w-[230px]",children:[e.jsx("h3",{className:"font-poppins text-[14px] font-semibold text-lightslategray",children:"Example Behavioural Questions"}),e.jsx("div",{className:"bg-[#F6F8FE] rounded-[16px] p-5 flex flex-col gap-6",children:E?e.jsx("div",{className:"flex justify-center items-center py-10",children:e.jsx(re,{color:"#864eff",height:30,width:30})}):u.behavioral?.map((i,I)=>e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsxs("h4",{className:"font-poppins text-[12px] font-semibold text-[#864eff]",children:["Question ",I+1]}),e.jsx("p",{className:"font-poppins text-[12px] font-normal leading-[1.5] text-[#091315B2]",children:i})]},I))})]}),e.jsx("div",{className:"bg-white border border-[#d9d9d9] rounded-[10px] p-[20px] w-full",children:e.jsxs("div",{className:"flex flex-col gap-[10px] items-start w-full",children:[e.jsxs("div",{className:"flex flex-col gap-[4px] items-start w-full",children:[e.jsx("p",{className:"text-[14px] font-poppins font-semibold leading-[1.5] text-[#424242]",children:"Interview Ratio (Technical vs. Behavioral)"}),e.jsx("p",{className:"font-poppins font-normal text-[14px] leading-[1.5] text-[#7b7b7b] w-full",children:"Adjust how much of the interview focuses on each section."})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-4 mb-6",children:[e.jsxs("div",{className:"bg-[#f4eeff] p-4 rounded-lg relative overflow-hidden ",children:[e.jsx("img",{src:le.dashboard.bg_img_form,alt:"",className:"absolute inset-0 w-full h-full object-cover z-0"}),e.jsxs("div",{className:"relative z-10",children:[e.jsx("h2",{className:"text-[14px] font-poppins font-semibold leading-[1.5] text-[#424242]",children:"Technical Questions:"}),e.jsx("p",{className:"ont-poppins font-normal text-[12px] leading-[1.5] text-[#7b7b7b]",children:"Focuses on role-specific knowledge, tools, and hard skills."})]})]}),e.jsxs("div",{className:"bg-[#f4eeff] p-4 rounded-lg relative overflow-hidden",children:[e.jsx("img",{src:le.dashboard.bg_img_form,alt:"",className:"absolute inset-0 w-full h-full object-cover z-0"}),e.jsxs("div",{className:"relative z-10",children:[e.jsx("h2",{className:"text-[14px] font-poppins font-semibold leading-[1.5] text-[#424242]",children:" Behavioral & Competency: "}),e.jsx("p",{className:"font-poppins text-[12px] font-normal leading-[1.5] text-[#7b7b7b]",children:"Focuses on situational judgment, cultural alignment, and interpersonal skills."})]})]})]}),e.jsxs("div",{className:"flex flex-col gap-[4px] items-start w-full",children:[e.jsxs("div",{className:"h-[40px] relative w-full",children:[e.jsxs("div",{className:"absolute flex flex-col items-center top-[-20px] z-10",style:{left:`calc(${m?.technicalPercentage}% - 60px)`},children:[e.jsx("p",{className:"font-poppins font-medium text-[10px] text-[rgba(66,66,66,0.6)] whitespace-nowrap",children:"Technical questions"}),e.jsxs("p",{className:"font-poppins font-semibold text-[14px] leading-[1.2] text-[#864eff] text-center",children:[m?.technicalPercentage,"%"]})]}),e.jsxs("div",{className:"absolute bg-[#f6f8fe] border border-[rgba(0,0,0,0.08)] h-[10px] rounded-[5px] w-full top-[21px]",children:[e.jsx("div",{className:"bg-gradient-to-r from-[#864eff] to-[#502f99] h-[10px] rounded-[5px]",style:{width:`${m?.technicalPercentage}%`}}),e.jsx("div",{className:"absolute flex items-start rounded-[12px] top-[-8px]",style:{left:`calc(${m?.technicalPercentage}% - 12px)`},children:e.jsx("div",{className:"relative size-[24px]",children:e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("circle",{cx:"12",cy:"12",r:"10",fill:"url(#paint0_linear)",stroke:"white",strokeWidth:"2"}),e.jsx("defs",{children:e.jsxs("linearGradient",{id:"paint0_linear",x1:"2",y1:"12",x2:"22",y2:"12",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#864EFF"}),e.jsx("stop",{offset:"1",stopColor:"#502F99"})]})})]})})})]}),e.jsx("input",{type:"range",min:"0",max:"100",value:m?.technicalPercentage,onChange:i=>H(i.target.value),className:"absolute w-full h-[40px] opacity-0 cursor-pointer top-[10px]"})]}),e.jsxs("p",{className:"font-poppins font-normal text-[12px] leading-[1.5] text-[#7b7b7b] w-full mb-4",children:["We recommend a",e.jsxs("span",{className:"font-semibold text-transparent bg-clip-text bg-purple-brand-light",children:[" ","70% / 30%"," "]}),"split for most technical roles to ensure a robust evaluation of core skills while still capturing essential behavioral traits."]})]}),e.jsx("p",{className:"font-poppins font-semibold text-[16px] leading-[1.5] bg-gradient-to-r from-[#864eff] to-[#502f99] bg-clip-text",style:{WebkitTextFillColor:"transparent"},children:"Fine-tune values"}),e.jsxs("div",{className:"flex items-center justify-between w-[300px]",children:[e.jsx("div",{className:"bg-[#f4eeff] flex items-center justify-center p-[8px] rounded-[12px] w-[133px]",children:e.jsxs("div",{className:"flex flex-col gap-[2px] items-start justify-center w-full",children:[e.jsxs("div",{className:"bg-white border border-[#d9d9d9] rounded-[12px] px-[16px] py-[12px] flex items-center justify-between w-full",children:[e.jsx("input",{type:"number",min:"0",max:"100",value:m?.technicalPercentage,onChange:i=>H(i.target.value),className:"font-poppins font-semibold text-[20px] leading-[1.5] text-[#7c7c7c] w-[50px] outline-none bg-transparent"}),e.jsx("p",{className:"font-poppins font-normal text-[16px] leading-[1.5] text-[#5a5a5a]",children:"%"})]}),e.jsx("p",{className:"font-poppins font-medium text-[10px] text-[rgba(66,66,66,0.6)]",children:"Technical"})]})}),e.jsx("div",{className:"bg-[#7b7b7b] h-px rounded-[1px] w-[8px]"}),e.jsx("div",{className:"bg-[#f4eeff] flex items-center justify-center p-[8px] rounded-[12px]",children:e.jsxs("div",{className:"flex flex-col gap-[2px] items-start justify-center",children:[e.jsxs("div",{className:"bg-white border border-[#d9d9d9] rounded-[12px] px-[16px] py-[12px] flex items-center justify-between w-full",children:[e.jsx("p",{className:"font-poppins font-semibold text-[20px] leading-[1.5] text-[#7c7c7c]",children:100-m?.technicalPercentage}),e.jsx("p",{className:"font-poppins font-normal text-[16px] leading-[1.5] text-[#5a5a5a]",children:"%"})]}),e.jsx("p",{className:"font-poppins font-medium text-[10px] text-[rgba(66,66,66,0.6)]",children:"Behavioral & Competency"})]})})]}),e.jsx("p",{className:"font-poppins font-normal text-[14px] leading-[1.5] text-[#7b7b7b] w-full",children:"Values auto-sync to always total 100%."})]})})]})]})]}),e.jsx("div",{})]}),e.jsx(xe,{disabled:!1,nextLabel:"Review",onNext:M,onBack:()=>
55{n("basicDetails")}}),e.jsx(jt,{isOpen:r,onClose:()=>{g(null),d(null),f(!1)},milestone:R,index:x,onSave:se,onDelete:J})]})},Ft=({isOpen:n,onClose:t,onConfirm:o})=>n?e.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/40",children:e.jsxs("div",{className:"bg-white rounded-[16px] p-8 w-[520px] shadow-xl relative animate-in fade-in zoom-in duration-200",children:[e.jsx("button",{onClick:t,className:"absolute top-6 right-6 p-2 z-30 rounded-full border border-[#0000000F] bg-[#f8f9fe]  transition-colors ",children:e.jsx(Ne,{})}),e.jsxs("div",{className:"flex items-center relative mb-8",children:[e.jsx("div",{className:"absolute bg-[#FFE8D4] h-[65px] w-[65px] rounded-full flex items-center justify-center",children:e.jsx("div",{className:"bg-white h-[40px] w-[40px] rounded-full flex items-center justify-center relative z-10",children:e.jsx(Ye,{className:"text-[#F39C12]",size:20})})}),e.jsx("div",{className:"bg-[#FFE8D4] h-fit rounded-full pl-[20px] pr-4 py-3 relative left-[40px] z-0",children:e.jsx("h2",{className:"text-[14px] font-medium text-darkslateblue",children:"Go Back"})})]}),e.jsx("h2",{className:"text-[24px] font-bold text-[#1b1b1b] mb-3 font-poppins",children:"Are You Sure You Want to Leave?"}),e.jsx("p",{className:"text-[15px] text-[#6b7280] leading-[1.6] font-poppins mb-10 w-[95%]",children:"All the information you’ve entered will be lost. You’ll need to restart the process and re-enter everything from the beginning."}),e.jsxs("div",{className:"flex items-center justify-center gap-4 w-full",children:[e.jsx("button",{onClick:t,className:`flex-1 py-3 rounded-xl text-[14px] font-semibold 
56            text-purpleDark border border-borderLightGray 
57            hover:shadow-md hover:text-gray-200 
58            transition-all duration-200 ease-out
59            active:scale-[0.98]`,children:"Stay & Continue"}),e.jsx("button",{onClick:o,className:`flex-1 py-3 rounded-xl text-[14px] font-semibold 
60            text-[#D82D21] border border-[#D82D21] 
61            hover:bg-[#D82D21]/5 hover:border-[#b91c1c] hover:text-[#b91c1c]
62            transition-all duration-200 ease-out
63            active:scale-[0.98] hover:shadow-md`,children:"Exit Without Saving"})]})]})}):null,Dt=[{id:1,label:"Basic Details"},{id:2,label:"Job Details"},{id:3,label:"Payment & Contract"},{id:4,label:"Review & Publish"}],It={job_post_id:null,job_space:{id:"",title:""},job_title:{id:"",title:"",user_generated:!1},description:"",skills:[],evaluation_level:"Strict",experience:{min:0,max:null},work_mode:["On-site"],country:{id:"",name:"",code:""},job_location:{id:"",city:"",state:"",country:"",code:""},allowGlobalApplicant:!0,contract_type:"pay_as_you_go_time_based",currency:{id:"147d3656-bdb9-4d9a-9ec5-e5888be55e64",country_id:"d797732d-1ca2-4e60-8ea3-a4f835bd10c1",code:"USD"},salaryField:"exact_amount",exact_amount:0,minimum_amount:0,maximum_amount:0,milestoneItems:[],completion_criteria:"",contract_length:"",contract_start_date:"",paymentFrequency:"",terms_and_conditions:!0,technicalPercentage:70,is_eor:!0},Gt=()=>{const n=ye(),t=qe(),o=Xe(),j=te(g=>g.auth.token),u=te(g=>g.employerProfileData),[h,w]=W.useState("basicDetails"),[C,E]=W.useState(!1),[k,N]=W.useState(!1),[T,y]=W.useState(!1),{jobId:S}=t.state||{},[r,f]=W.useState({...It,employerProfileData:u});W.useEffect(()=>{S&&j&&(async()=>{N(!0);try{const x=await Ke(S,j);if(x.msg==="success"&&x.data){y(!0);const d=x.data,F=d.contract_job_payment_details||{};f(m=>({...m,job_post_id:d.id,job_space:{id:d.job_space?.id||"",title:d.job_space?.title||""},job_title:{id:d.job_title?.id||"",title:d.job_title?.title||"",user_generated:d.job_title?.user_generated||!1},description:F.scope_of_work||d.roles||"",skills:Array.isArray(d.skills)?d.skills:[],evaluation_level:d.ai_evaluation_level||"Strict",experience:{min:d.required_exp?.min||0,max:d.required_exp?.max||null},work_mode:Array.isArray(d.employment_mode)?d.employment_mode:["On-site"],country:{id:d.country_details?.id||"",name:d.country_details?.name||"",code:d.country_details?.code||""},job_location:{id:d.job_location?.id||"",city:d.job_location?.name||"",state:d.job_location?.state||"",country:d.job_location?.country||"",code:d.job_location?.code||""},allowGlobalApplicant:d.is_international??!0,contract_type:F.contract_type||"pay_as_you_go_time_based",currency:{id:d.currency?.id||"",code:d.currency?.code||"USD",country_id:d.country_details?.id||""},exact_amount:F.company_budget_for_candidate||d.expected_salary?.min||0,minimum_amount:F.minimum_amount||0,maximum_amount:F.maximum_amount||0,milestoneItems:F.milestones?F.milestones.map(p=>({name:p.name||"",description:p.description||"",amount:p.amount||0})):[],contract_length:F.contract_length||"",contract_start_date:F.start_date?F.start_date.split("T")[0]:"",paymentFrequency:F.payment_scale?F.payment_scale.charAt(0).toUpperCase()+F.payment_scale.slice(1):"",technicalPercentage:70,is_eor:d.is_eor??!0,companyId:d.company?.id||"",employerProfileData:u}))}}catch(x){console.error("Error fetching job post:",x)}finally{N(!1)}})()},[S,j]);const R=()=>
63{switch(h){case"basicDetails":return e.jsx(ot,{setActivePage:w,formData:r,setFormData:f,isSaving:T});case"paymentContractDetails":return e.jsx(Et,{setActivePage:w,formData:r,setFormData:f,isSaving:T});case"reviewPublishDetails":return e.jsx(pt,{setActivePage:w,formData:r,setFormData:f,isSaving:T});default:return null}};return e.jsx("div",{className:"flex overflow-hidden bg-no-repeat bg-cover bg-left",style:{backgroundImage:`url(${le.Employer.ContractBg})`,zoom:o,height:`${100/o}vh`},children:k?e.jsx("div",{className:"flex items-center justify-center w-full",children:e.jsxs("div",{className:"flex flex-col items-center gap-4",children:[e.jsx(re,{height:50,width:50,color:"#864EFF",ariaLabel:"loading"}),e.jsx("p",{className:"text-[#838691] text-sm",children:"Loading job post..."})]})}):e.jsxs(e.Fragment,{children:[e.jsx("aside",{className:"w-[240px] py-6 pl-[29px] pr-[19px]",children:e.jsx(et,{steps:Dt,activePage:h})}),e.jsxs("main",{className:"flex-1 flex flex-col overflow-hidden",children:[e.jsx("nav",{children:e.jsx("div",{className:"w-full relative flex items-center justify-between text-left text-sm font-poppins pl-[14px] pt-[27px] pr-[20px] pb-[20px] text-lightslategray",children:e.jsx("div",{className:"flex items-center justify-center",children:e.jsxs("div",{className:"flex items-center justify-center gap-2.5 cursor-pointer",onClick:()=>E(!0),children:[e.jsx("div",{className:"h-[20px] w-[20px] rounded-[21.56px] object-contain bg-[#ffffff] grid place-items-center",children:e.jsx($e,{color:"#2b1845"})}),e.jsx("div",{className:"relative text-[14px] leading-[150%] font-medium",children:"Back"})]})})})}),e.jsx("div",{className:"bg-[#FFFFFF] rounded-tl-2xl flex-1 overflow-y-auto",children:R()})]}),e.jsx(Ft,{isOpen:C,onClose:()=>E(!1),onConfirm:()=>n(-1)})]})})};export{Gt as default};
64//# sourceMappingURL=ContractJobPost-CSxhZOq3.js.map

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.