1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2728],{54611:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apply-job/[requirementId]",function(){return s(39743)}])},90373:function(e,t,s){"use strict";s.d(t,{Z:function(){return o}});var a=s(85893),l=s(67294),i=s(25972),r=s(9041);s(7103);var n=e=>{let{rawContent:t,className:s=""}=e,[i]=l.useState(()=>{try{let e=JSON.parse(t);if((null==e?void 0:e.blocks)&&(null==e?void 0:e.entityMap)!==void 0)return r.EditorState.createWithContent((0,r.convertFromRaw)(e))}catch(e){}return r.EditorState.createEmpty()});return(0,a.jsxs)("div",{className:"draft-js-readonly-editor ".concat(s),children:[(0,a.jsx)("style",{children:"\n .draft-js-readonly-editor .public-DraftEditor-content {\n min-height: auto;\n }\n .draft-js-readonly-editor .DraftEditor-root {\n cursor: default;\n }\n .draft-js-readonly-editor .public-DraftEditorPlaceholder-root {\n display: none;\n }\n "}),(0,a.jsx)(r.Editor,{editorState:i,onChange:()=>{},readOnly:!0})]})},o=e=>{let{formattedJobDescription:t,jobDescription:s,className:l=""}=e,{useDraftJs:r,content:o}=(0,i.RK)(t,s);return o?r?(0,a.jsx)(n,{rawContent:o,className:l}):(0,a.jsx)("div",{className:"whitespace-pre-wrap ".concat(l),children:o}):null}},61540:function(e,t,s){"use strict";s.d(t,{LE:function(){return c},We:function(){return i},_n:function(){return a},iU:function(){return p},ns:function(){return o},rk:function(){return r},xZ:function(){return d}}),s(83454).env.ENV;let a="https://api.sourcebae.com",l="https://sourcebaeadmin.shethink.in/api",i="https://amzn-sourcebae-prod.s3.amazonaws.com/production/",r="-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAx/ldy9jwjRQkbxdzZ5LT\nX2fQi8WptsENXbpOMTg6Fg/2T7yQlK8PaNPpR1o7nO0aFYDUcFaPkjI+L2tGMacF\naMOrWVDbn8RTWX2XZBtDCtCWjoU3h/wJg95RVCpqooMwL5q4etgJHsW6Qr1NT0oa\n8/+rllPNd98ZfWVCDjLwc4+yVW31DGPJPKDZEuDX8ABBowVkW6IjxhwCQM33sSUo\nUEq8L3xE46E3Pk/uI154nUb97+apnUmJUab3rYYF0zDaTxYzgyJDvUL0BAR8i5nk\nou2ZzvPGQAXaR8JozG0ACJnFGfk51HgAEDJF0P68QePfVW79VZ2OFmVubOvzP2WJ\njQIDAQAB\n-----END PUBLIC KEY-----",n="developer",o={hireNowForm:"".concat(a,"/api/agency/hire-developers-pages/create"),hireTechnology:"".concat(a,"/api/agency/hire-developers-pages/hire-dev-template-names"),hireTechnologyId:e=>"".concat(a,"/api/agency/hire-developers-pages/get-hire-dev-template?slug=").concat(e),getCompanies:"".concat(a,"/api/agency/remote-companies/all"),getCompanies:"".concat(a,"/api/agency/remote-companies/all"),getCompanyById:e=>"".concat(a,"/api/agency/remote-companies/get-company/").concat(e),getAllBlogs:"/api/blog/getAllBlog",getMenuList:"/api/blog/menulist",getDetailsPage:"/api/blog/single",getSubDevData:"".concat(l,"/sub-developer-pages/allData"),getSubDevDataId:e=>"".concat(l,"/sub-developer-pages/").concat(e),getAllVendorsPages:(e,t)=>"".concat(l,"/sourcebae-pages/allCompanies?page=").concat(e,"&limit=").concat(t),getVendorsPageById:e=>"".concat(l,"/sourcebae-pages/").concat(e),getVendorData:(e,t,s)=>"".concat(l,"/sourcebae-pages/allCompanies?page=").concat(e,"&limit=").concat(t,"&searchKey=").concat(s),hireSapDeveloper:"".concat(a,"/api/client/clients/addSalesLeads"),getTechnologyData:"".concat(a,"/api/agency/hire-developers-pages/hire-dev-template-names"),getTechnologyWithDynamicData:"https://newadmin.sourcebae.com/api/sub-developer-pages/allData",uploadMedia:"".concat(a,"/api/admin/media/upload"),createNewsletter:"".concat(a,"/api/admin/newsletters/create"),getAllNewsletters:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"date",l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"desc";return"".concat(a,"/api/admin/newsletters/all?page=").concat(e,"&limit=").concat(t,"&sortBy=").concat(s,"&order=").concat(l)}},c={REGISTER:"/api/".concat(n,"/individual-developers/signUp"),LOGIN:"/api/".concat(n,"/individual-developers/login"),GET_FILTERS:"/api/".concat(n,"/hire-developers/getFiltersList"),APPLIED_JOBS:"api/developer/hire-developers/getAppliedJobs",CHECK_ASSESSMENT_STATUS:"/api/".concat(n,"/hire-developers/check-eligibility-apply"),FETCH_JOBS:"/api/".concat(n,"/hire-developers/getJobRequirements"),PROFILE:e=>"/api/".concat(AGENCY,"/hire-developers-pages/get-individual-dev/").concat(e),SEND_EMAILS:"/api/".concat(n,"/hire-developers/apply-send-mail"),VERIFICATION_MAIL:"/api/".concat(n,"/auths/send-email-verification"),IS_EMAIL_VERIFIED:"/api/".concat(n,"/auths/check-mail-verification"),UPDATE_PROFILE:"/api/developer/hire-developers-pages/update-individual-dev",UPLOAD_RESUME:"/api/developer/individual-developers/uploadDeveloperDoc",FETCH_DEVELOPER_PROFILE:"/api/developer/individual-developers/getDeveloperProfile",UPDATE_DEVLOPER_PROFILE:"/api/developer/individual-developers/updateProfile",FETCH_SKILLS:"/api/developer/technologies/all",FETCH_DOMAINS:"/api/admin/domains/all",FETCH_SUB_DOMAINS:e=>"/api/admin/sub-domains/all".concat(e?"?domainId=".concat(e):""),FETCH_DESIGNATIONS:(e,t)=>{let s=new URLSearchParams;e&&s.append("domainId",e),t&&s.append("subDomainId",t);let a=s.toString();return"/api/admin/designations/all".concat(a?"?".concat(a):"")},FETCH_ASSIGNMENTS:"/api/developer/assignments/my-assignments",SUBMIT_EOD:"/api/developer/eod-reports/submit",UPDATE_EOD:e=>"/api/developer/eod-reports/update/".concat(e),FETCH_EOD_HISTORY:"/api/developer/eod-reports/my-reports",FETCH_DOCUMENTS:e=>"/api/developer/projects/documents/my-documents/".concat(e),FETCH_ALL_JOBS:"/api/developer/hire-developers/all",FETCH_MY_APPLICATIONS:"/api/developer/applied-jobs/my-applications",JIBBLE_STATUS:"/api/developer/jibble/my-status",JIBBLE_SCREENSHOTS:"/api/developer/jibble/my-screenshots",JIBBLE_CLOCK_IN:"/api/developer/jibble/clock-in",JIBBLE_CLOCK_OUT:"/api/developer/jibble/clock-out",JIBBLE_ATTENDANCE:"/api/developer/jibble/my-attendance",FETCH_INTERVIEW_REPORTS:"/api/developer/individual-developers/getInterviewReports",PROFILE_TRACKING:"/api/developer/individual-developers/profileTrack",COMPLEDTED_ASSESSMENT:e=>"/api/developer/assessment-details/all/".concat(e),UPDATE_PASSWORD:"/api/developer/individual-developers/update-password",LINKEDIN_CALLBACK:"/api/developer/individual-developers/linkedinCallback",DELETE_ASSESSMENT:e=>"api/developer/assessment-details/update/".concat(e),SEND_OTP:"/api/developer/individual-developers/send-otp",VERIFY_OTP:"/api/developer/individual-developers/verify-otp",DEMO_SEND_OTP:"/assesments/sandbox_send_otp",DEMO_VERIFY_OTP:"/assesments/sandbox_verify_otp",GENERATE_REPORT_LINK:"/api/assesments/report-link/generate",ENSURE_ASSESSMENT:"/api/developer/applied-jobs/ensure-assessment",FETCH_LANGUAGES:e=>e?"/api/agency/hire-developers-pages/get-languages?searchKey=".concat(encodeURIComponent(e)):"/api/agency/hire-developers-pages/get-languages?isActive=true",DELET
1E_ACCOUNT:"/api/developer/individual-developers/delete"},d={WORK_CATEGORIES:"/api/developer/physical-ai/work-categories/all",INDUSTRIES_BY_WORK_CATEGORY:e=>"/api/developer/physical-ai/work-categories/".concat(e,"/industries"),MAIN_WORKS_BY_INDUSTRY:e=>"/api/developer/physical-ai/industries/".concat(e,"/main-works"),CREATE:"/api/developer/physical-ai/create"},p={ALL_CITIES:(e,t)=>"/api/".concat(e,"/hire-developers-pages/getCitiesByCountry/").concat(t),ALL_COUNTRIES:"/api/developer/hire-developers-pages/getCountries"}},25972:function(e,t,s){"use strict";s.d(t,{RK:function(){return a},Vy:function(){return l}}),s(85893),s(9008);let a=(e,t)=>{if(e)try{let t=JSON.parse(e);if((null==t?void 0:t.blocks)&&(null==t?void 0:t.entityMap)!==void 0)return{useDraftJs:!0,content:e}}catch(e){}return{useDraftJs:!1,content:t||null}},l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};window.gtag&&window.gtag("event",e,t)}},39743:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return F}});var a=s(85893),l=s(67294),i=s(11163),r=s(20512),n=s(16310),o=s(65303),c=s(55678),d=s(90373),p=s(97182),m=s(33453),x=s(92365),u=s(40110),h=s(17052),g=s(85533),b=s(25281),f=s(65806),v=s(82448),y=s(21112),j=s(49566),N=s(1529),w=s(96727),k=s(84677),C=s(9008),E=s.n(C),D=s(81528);let S=n.Ry().shape({firstName:n.Z_().required("First name is required"),lastName:n.Z_().required("Last name is required"),email:n.Z_().email("Invalid email").required("Email is required"),phone:n.Z_().required("Phone number is required"),experience:n.Rx().required("Experience is required"),skills:n.IX().test("min-total-skills","Please select at least 3 skills",function(e){let t=this.parent.additionalTechs||[];return((null==e?void 0:e.length)||0)+t.length>=3}).test("max-total-skills","Maximum 7 skills allowed",function(e){let t=this.parent.additionalTechs||[];return((null==e?void 0:e.length)||0)+t.length<=7}),additionalTechs:n.IX(),country:n.Z_().required("Country is required"),city:n.Z_().required("City is required")});function F(){var e,t;let s=(0,i.useRouter)(),{requirementId:n}=s.query,[C,F]=(0,l.useState)(null),[T,_]=(0,l.useState)(!0),[L,A]=(0,l.useState)(null),[B,I]=(0,l.useState)(!1),[P,R]=(0,l.useState)([]),[O,M]=(0,l.useState)(!1),[Z,U]=(0,l.useState)(""),[W,q]=(0,l.useState)(""),[V,z]=(0,l.useState)(""),[J,H]=(0,l.useState)([]),[K,G]=(0,l.useState)([]),[Y,Q]=(0,l.useState)(!1),[X,$]=(0,l.useState)(!1),[ee,et]=(0,l.useState)(null),[es,ea]=(0,l.useState)(null),[el,ei]=(0,l.useState)(null),[er,en]=(0,l.useState)(null),[eo,ec]=(0,l.useState)(!1),ed=e=>{var t;return(null==e?void 0:null===(t=e.screeningQuestions)||void 0===t?void 0:t.length)>0?e.screeningQuestions.map((e,t)=>({question:e.question,answer:"",type:e.type||"input",options:Array.isArray(e.options)?e.options:[],key:e._id||"q_".concat(t)})):[]},[ep,em]=(0,l.useState)([]),[ex,eu]=(0,l.useState)({}),[eh,eg]=(0,l.useState)(""),eb=()=>{em(ed(C)),eu({}),eg(""),ec(!1)};(0,l.useEffect)(()=>{(async()=>{try{let e=await o.ZP.get("/api/developer/technologies/all");R(e||[])}catch(e){}})()},[]);let ef=(e,t)=>{em(s=>s.map(s=>s.key===e?{...s,answer:t}:s))};(0,l.useEffect)(()=>{(async()=>{try{let e=await o.ZP.get("/api/developer/hire-developers-pages/getCountries");(e||(null==e?void 0:e.data))&&H(e||e.data)}catch(e){}})()},[]);let ev=async e=>{try{let t=await o.ZP.get("/api/developer/hire-developers-pages/getCitiesByCountry/".concat(e));(t||(null==t?void 0:t.data))&&G(t||t.data)}catch(e){}};(0,l.useEffect)(()=>{n&&(async()=>{try{let e=await o.ZP.get("/api/developer/hire-developers/all",{params:{requirementId:n,isVisible:!1}});if((null==e?void 0:e.docs)&&e.docs.length>0){let t=e.docs[0];F(t),em(ed(t))}else en("Job not found.")}catch(e){en("Unable to load job details. Please try again later.")}finally{_(!1)}})()},[n]);let ey=e=>{e.target.files&&e.target.files[0]&&A(e.target.files[0])},ej=e=>{e.preventDefault()},eN=e=>{e.preventDefault(),e.dataTransfer.files&&e.dataTransfer.files[0]&&A(e.dataTransfer.files[0])},ew=async e=>{let t=new FormData;t.append("mapper","developer/resume"),t.append("identifier","111"),t.append("file",e);let s=await o.ZP.post("/api/agency/media/upload",t,{headers:{"Content-Type":"multipart/form-data"}});if(s||(null==s?void 0:s.data))return s||s.data},ek=e=>{let t={},s=!0;
1return ep.forEach(e=>{e.answer&&""!==e.answer.trim()||(t[e.key]="This field is required",s=!1)}),e.currency?eg(""):(eg("Please select a currency"),s=!1),eu(t),s},eC=async(e,t)=>{try{I(!0),t&&"function"==typeof t.setSubmitting&&t.setSubmitting(!0)}catch(e){}if(!ep.every(e=>""!==e.answer.trim())||!e.currency){ec(!0),eo&&ek(e);try{I(!1),t&&"function"==typeof t.setSubmitting&&t.setSubmitting(!1)}catch(e){}return}if(!L){c.Am.error("Please upload your resume");try{I(!1),t&&"function"==typeof t.setSubmitting&&t.setSubmitting(!1)}catch(e){}return}let a=await ew(L),l=parseFloat(e.experience),i=Math.floor(l),r={requirementId:n,email:e.email,mobile:e.phone,countryCode:"91",firstName:e.firstName,lastName:e.lastName,totalExperience:{years:i,month:Math.round((l-i)*12)},techSkillSet:e.skills,temporarySkill:e.additionalTechs.map(eF),resume:a,city:e.city,currency:e.currency,screeningQuestionsAnswers:null==ep?void 0:ep.map(e=>({question:e.question,answer:e.answer}))};try{let e=await o.ZP.post("/api/developer/applied-jobs/job-apply",r);(e||(null==e?void 0:e.data))&&(c.Am.success("Application submitted successfully!"),s.push("/thank-you"))}catch(e){var d,p,m,x;c.Am.error((null==e?void 0:null===(p=e.response)||void 0===p?void 0:null===(d=p.data)||void 0===d?void 0:d.error)||(null==e?void 0:null===(x=e.response)||void 0===x?void 0:null===(m=x.data)||void 0===m?void 0:m.message)||"Error submitting application. Please try again.")}finally{em(ed(C)),ec(!1);try{I(!1),t&&"function"==typeof t.setSubmitting&&t.setSubmitting(!1)}catch(e){}}},eE=D.Xy,eD=e=>{let t=P.find(t=>t._id===e);return t?t.technologyName:""},eS=e=>(e||"").trim().replace(/\s+/g," "),eF=e=>eS(e).replace(/\b\w/g,e=>e.toUpperCase()),eT=(e,t,s)=>{let a=eS(e);a&&!(t.skills.length+t.additionalTechs.length>=7)&&(t.additionalTechs.some(e=>e.toLowerCase()===a.toLowerCase())||P.some(e=>e.technologyName.toLowerCase()===a.toLowerCase()&&t.skills.includes(e._id))||(s("additionalTechs",[...t.additionalTechs,a]),U("")))},e_=e=>P.filter(t=>t.technologyName.toLowerCase().includes(Z.toLowerCase())&&!e.includes(t._id)),eL=J.filter(e=>e.name.toLowerCase().includes(W.toLowerCase())),eA=K.filter(e=>e.name.toLowerCase().includes(V.toLowerCase()));return T?(0,a.jsx)("div",{className:"flex flex-col items-center justify-center min-h-screen bg-gray-50 px-4",children:(0,a.jsxs)("div",{className:"bg-white rounded-2xl shadow-lg p-8 sm:p-12 max-w-md w-full text-center",children:[(0,a.jsx)("div",{className:"mb-6",children:(0,a.jsx)(p.Z,{size:48,style:{color:"#7A1B8B"}})}),(0,a.jsx)("h2",{className:"text-xl sm:text-2xl font-semibold text-[#101828] mb-2",children:"Loading Job Details"}),(0,a.jsx)("p",{className:"text-sm sm:text-base text-[#475467]",children:"Please wait while we fetch the job information..."})]})}):er?(0,a.jsx)("div",{className:"flex flex-col items-center justify-center min-h-screen px-4 py-12",style:{background:"linear-gradient(126.11deg, #ececff, #f2e9f0 35.83%, #f7e9e7 53.81%, #f5e4ee 76.96%, #fae5f4)"},children:(0,a.jsxs)("div",{className:"bg-white rounded-2xl shadow-sm border border-[#e7e6ea] p-8 sm:p-12 max-w-lg w-full text-center",children:[(0,a.jsx)("div",{className:"mb-6 flex justify-center",children:(0,a.jsx)("div",{className:"w-20 h-20 rounded-full flex items-center justify-center bg-[#FAF3FF] border-2 border-[#E9D7FE]",children:(0,a.jsx)("svg",{className:"w-10 h-10 text-[#7A1B8B]",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M21 13.255A23.931 23.931 0 0112 15c-3.183 0-6.22-.62-9-1.745M16 6V4a2 2 0 00-2-2h-4a2 2 0 00-2 2v2m4 6h.01M5 20h14a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})})})}),(0,a.jsx)("h2",{className:"text-lg sm:text-xl font-bold text-[#101828] mb-3 leading-tight",children:"This job is no longer available"}),(0,a.jsx)("p",{className:"text-sm sm:text-[15px] text-[#667085] leading-relaxed mb-8",children:"This position has been closed or is no longer accepting applications. Your next opportunity is out there - check out our current openings below."}),(0,a.jsx)("div",{className:"border-t border-[#F2F4F7] mb-6"}),(0,a.jsx)("div",{className:"flex justify-center",children:(0,a.jsxs)("button",{onClick:()=>s.push("/dashboard/jobs"),className:"flex items-center justify-center gap-2 bg-gradient-to-r from-[#7A1B8B] to-[#6B1579] text-white py-3 px-8 rounded-lg font-semibold hover:from-[#6B1579] hover:to-[#5A1068] transition-all shadow-sm text-sm tracking-wide",children:[(0,a.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),"Browse Current Openings"]})})]})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(E(),{children:[(0,a.jsx)("title",{children:"Ready to apply? View job description & submit application â Sourcebae"}),(0,a.jsx)("meta",{name:"description",content:"Ready to apply? View job description & submit application â Sourcebae"}),(0,a.jsx)("meta",{name:"title",property:"og:title",content:"Ready to apply? View job description & submit application â Sourcebae"}),(0,a.jsx)("meta",{name:"description",property:"og:description",content:"Ready to apply? View job description & submit application â Sourcebae"})]}),(0,a.jsx)("div",{className:"min-h-screen",style:{background:"linear-gradient(126.11deg, #ececff, #f2e9f0 35.83%, #f7e9e7 53.81%, #f5e4ee 76.96%, #fae5f4)"},children:(0,a.jsx)("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8 py-4 sm:py-6 lg:py-8 max-w-7xl",children:(0,a.jsxs)("div",{className:"flex flex-col lg:flex-row gap-4 sm:gap-6 lg:gap-8",children:[(0,a.jsx)("div",{className:"w-full lg:w-2/3",children:(0,a.jsxs)("div",{className:"bg-white rounded-xl sm:rounded-2xl shadow-sm p-4 sm:p-6 lg:p-8 border border-[#e7e6ea]",children:[(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row items-start gap-4 mb-6",children:[(0,a.jsx)("div",{className:"bg-[#F4F7FF] p-2 sm:p-3 rounded-xl flex-shrink-0",children:(0,a.jsx)("img",{src:"/_next/static/media/sourcebae_logo_medium42.8a0d601d.png",alt:"Sourcebae logo",className:"w-[36px] h-[36px] sm:w-[42px] sm:h-[42px]"})}),(0,a.jsxs)("div",{className:"flex-1 w-full",children:[(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row sm:justify-between sm:items-start gap-2 sm:gap-4 mb-3 sm:mb-4",children:[(0,a.jsx)("h1",{className:"text-[20px] sm:text-[22px] lg:text-[24px] font-semibold text-[#101828] leading-tight",children:(null==C?void 0:C.requirementName)||"Requirement Name"}),(0,a.jsxs)("div",{className:"flex flex-row flex-wrap items-center text-xs sm:text-sm gap-2 text-[#475467]",children:[(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)("span",{className:"text-[#888495]",children:"Posted:"}),(0,a.jsx)("span",{className:"font-medium",children:(null==C?void 0:C.createdAt)?"".concat(Math.ceil((new Date-ne
1w Date(C.createdAt))/864e5)," days ago"):"1 day ago"})]}),(0,a.jsx)("span",{className:"text-[#888495]",children:"â¢"}),(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)("span",{className:"text-[#888495]",children:"Openings:"}),(0,a.jsx)("span",{className:"font-medium",children:(null==C?void 0:C.numberOfResourcesRequired)||"4"})]})]})]}),(0,a.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,a.jsx)("span",{className:"text-[#6b00b0] px-3 py-1.5 rounded-full text-xs font-medium border border-[#6b00b0] bg-[#FAF3FF]",children:(null==C?void 0:C.workType)||"Remote"}),(0,a.jsx)("span",{className:"text-[#6b00b0] px-3 py-1.5 rounded-full text-xs font-medium border border-[#6b00b0] bg-[#FAF3FF]",children:(null==C?void 0:C.location)||"Location"}),(0,a.jsxs)("span",{className:"text-[#6b00b0] px-3 py-1.5 rounded-full text-xs font-medium border border-[#6b00b0] bg-[#FAF3FF]",children:[(null==C?void 0:C.numberOfResourcesRequired)||0," Openings"]}),null==C?void 0:null===(e=C.developerTechnologiesRequired)||void 0===e?void 0:e.slice(0,3).map((e,t)=>(0,a.jsx)("span",{className:"text-[#6b00b0] px-3 py-1.5 rounded-full text-xs font-medium border border-[#6b00b0] bg-[#FAF3FF]",children:e.technologyName},t)),(null==C?void 0:null===(t=C.developerTechnologiesRequired)||void 0===t?void 0:t.length)>3&&(0,a.jsxs)("span",{className:"text-[#6b00b0] px-3 py-1.5 rounded-full text-xs font-medium border border-[#6b00b0] bg-[#FAF3FF]",children:["+",C.developerTechnologiesRequired.length-3," ","more"]})]})]})]}),(0,a.jsxs)("div",{className:"space-y-4 sm:space-y-6",children:[(0,a.jsx)("h2",{className:"text-xl sm:text-2xl font-semibold text-[#101828]",children:"About this role"}),(0,a.jsx)("div",{className:"prose prose-sm sm:prose max-w-none",children:(0,a.jsx)(d.Z,{formattedJobDescription:null==C?void 0:C.formattedJobDescription,jobDescription:null==C?void 0:C.jobDescription,className:"text-[#475467] text-sm sm:text-base leading-relaxed"})})]})]})}),(0,a.jsx)("div",{className:"w-full lg:w-1/3 lg:sticky lg:top-4 lg:self-start",children:(0,a.jsxs)("div",{className:"bg-white rounded-xl sm:rounded-2xl shadow-sm p-4 sm:p-6 border border-[#e7e6ea]",children:[(0,a.jsx)("h2",{className:"text-lg sm:text-xl font-semibold text-[#101828] mb-1",children:"Apply now"}),(0,a.jsx)("p",{className:"text-[#475467] text-xs sm:text-sm mb-4 sm:mb-6",children:"Please provide your details to proceed to apply job."}),(0,a.jsx)(r.J9,{initialValues:{firstName:"",lastName:"",email:"",experience:"",phone:"",skills:[],additionalTechs:[],country:"",city:"",currency:""},validationSchema:S,onSubmit:eC,children:e=>{var t;let{values:s,errors:l,touched:i,setFieldValue:n,isSubmitting:o}=e;return(0,a.jsxs)(r.l0,{className:"space-y-4 sm:space-y-5",children:[(0,a.jsxs)(m.Z,{open:eo,onClose:eb,maxWidth:"sm",fullWidth:!0,PaperProps:{sx:{borderRadius:{xs:"12px",sm:"16px"},margin:{xs:"16px",sm:"32px"},maxHeight:{xs:"calc(100% - 32px)",sm:"calc(100% - 64px)"}}},className:"!mb-[70px]",children:[(0,a.jsx)(x.Z,{sx:{fontFamily:"Urbanist",fontSize:{xs:"18px",sm:"20px"},fontWeight:600,pb:1},children:"Candidate Information"}),(0,a.jsxs)(u.Z,{dividers:!0,sx:{fontFamily:"Urbanist",px:{xs:2,sm:3}},children:[(null==C?void 0:C.screeningNote)&&(0,a.jsxs)("p",{className:"text-sm text-gray-600 mb-4 italic",children:[(0,a.jsx)("strong",{children:"Note:"})," ",C.screeningNote]}),null==ep?void 0:ep.map(e=>{let{question:t,answer:s,type:l,options:i,key:r}=e;return(0,a.jsxs)(h.Z,{component:"fieldset",margin:"normal",fullWidth:!0,children:[(0,a.jsxs)(g.Z,{style:{color:ex[r]?"#ef4444":"#000",fontWeight:500,marginBottom:"8px",fontSize:"15px"},children:[t," ",(0,a.jsx)("span",{style:{color:"#ef4444"},children:"*"})]}),"radio"===l?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(b.Z,{row:!0,value:s,onChange:e=>{ef(r,e.target.value),ex[r]&&eu(e=>{let t={...e};return delete t[r],t})},children:i.map(e=>(0,a.jsx)(f.Z,{value:e,control:(0,a.jsx)(v.Z,{sx:{color:ex[r]?"#ef4444":void 0}}),label:e,sx:{color:ex[r]?"#ef4444":void 0}},e))}),ex[r]&&(0,a.jsx)("p",{style:{color:"#ef4444",fontSize:"0.75rem",marginTop:"4px"},children:ex[r]})]}):(0,a.jsx)(y.Z,{type:"text",variant:"outlined",value:s,onChange:e=>{ef(r,e.target.value),ex[r]&&eu(e=>{let t={...e};return delete t[r],t})},error:!!ex[r],helperText:ex[r]||"",fullWidth:!0,placeholder:"Your answer...",InputProps:{inputProps:{style:{padding:"10px 8px"}}}})]},r)}),(0,a.jsxs)(h.Z,{component:"fieldset",margin:"normal",fullWidth:!0,children:[(0,a.jsxs)(g.Z,{style:{color:eh?"#ef4444":"#000",fontWeight:500,marginBottom:"8px",fontSize:"15px"},children:["Currency"," ",(0,a.jsx)("span",{style:{color:"#ef4444"},children:"*"})]}),(0,a.jsx)("div",{className:"flex items-center p-2 bg-white border ".concat(eh?"border-red-500":"border-stone-300"," hover:border-black rounded-[4px] min-h-[43px] curs
1or-pointer"),onClick:e=>{ea(e.currentTarget)},children:(0,a.jsx)("span",{className:"".concat(s.currency?"text-[#101828]":"text-stone-300"," w-full flex items-center gap-2"),children:(()=>{let e=el||eE.find(e=>e.key===s.currency);return e?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"text-sm w-6",children:e.icon}),(0,a.jsx)("span",{className:"text-sm",children:e.label})]}):"Select currency..."})()})}),(0,a.jsx)(j.Z,{anchorEl:es,open:!!es,onClose:()=>ea(null),PaperProps:{style:{maxHeight:240}},children:eE.map(e=>(0,a.jsxs)(N.Z,{onClick:()=>{ei(e),eg("");try{n("currency",e.key)}catch(e){}ea(null)},children:[(0,a.jsx)("div",{className:"w-6 text-sm mr-2",children:e.icon}),(0,a.jsx)("div",{className:"text-sm",children:e.label})]},e.key))}),eh&&(0,a.jsx)("p",{className:"text-red-500 text-sm mt-1",children:eh})]})]}),(0,a.jsxs)(w.Z,{sx:{fontFamily:"Urbanist",px:{xs:2,sm:3},py:2},children:[(0,a.jsx)(k.Z,{sx:{color:"#000",fontSize:{xs:"14px",sm:"15px"}},onClick:eb,disabled:B,children:"Cancel"}),(0,a.jsx)(k.Z,{onClick:()=>{ek(s)&&eC(s)},disabled:B,sx:{bgcolor:"#7A1B8B",color:"white",py:{xs:1.2,sm:1.5},px:{xs:2.5,sm:3},borderRadius:2,fontWeight:"500",fontSize:{xs:"14px",sm:"15px"},"&:hover":{bgcolor:"#6B1579"},"&.Mui-disabled":{opacity:.5,cursor:"not-allowed",bgcolor:"#f5f5f4"},transition:"background-color 0.3s ease"},children:B?(0,a.jsxs)("span",{className:"flex items-center gap-2",children:[(0,a.jsx)(p.Z,{size:18,color:"inherit"}),(0,a.jsx)("span",{children:"Submitting..."})]}):"Submit"})]})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{className:"block text-sm font-medium text-[#344054] mb-2",children:["Resume ",(0,a.jsx)("span",{className:"text-red-500",children:"*"})]}),L?(0,a.jsxs)("div",{className:"flex items-center justify-between p-3 sm:p-4 bg-white border border-[#D0D5DD] rounded-lg hover:border-[#6b00b0] transition-colors",children:[(0,a.jsxs)("div",{className:"flex items-center space-x-3 min-w-0",children:[(0,a.jsx)("div",{className:"p-2 bg-[#F4F7FF] rounded flex-shrink-0",children:(0,a.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M13 2H6C5.46957 2 4.96086 2.21071 4.58579 2.58579C4.21071 2.96086 4 3.46957 4 4V20C4 20.5304 4.21071 21.0391 4.58579 21.4142C4.96086 21.7893 5.46957 22 6 22H18C18.5304 22 19.0391 21.7893 19.4142 21.4142C19.7893 21.0391 20 20.5304 20 20V9M13 2L20 9M13 2V9H20",stroke:"#6b00b0",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("p",{className:"text-sm font-medium text-[#344054] truncate",children:L.name}),(0,a.jsxs)("p",{className:"text-xs text-[#475467]",children:[Math.round(L.size/1024)," KB"]})]})]}),(0,a.jsx)("button",{type:"button",onClick:()=>{A(null)},className:"text-[#475467] hover:text-[#344054] flex-shrink-0 ml-2 p-1 hover:bg-[#F9FAFB] rounded transition-colors","aria-label":"Remove file",children:(0,a.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M15 5L5 15M5 5L15 15",stroke:"currentColor",strokeWidth:"1.67",strokeLinecap:"round",strokeLinejoin:"round"})})})]}):(0,a.jsxs)("div",{className:"border-[#6B00B0] bg-[#FAF3FF] flex cursor-pointer items-center justify-center gap-[10px] rounded-lg border border-dashed p-4 sm:p-6 hover:bg-[#F4EBFF] transition-colors",onDragOver:ej,onDrop:eN,onClick:()=>document.getElementById("resume-upload").click(),children:[(0,a.jsx)("input",{type:"file",id:"resume-upload",className:"hidden",accept:".pdf,.doc,.docx",onChange:e
1y}),(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row items-center gap-3 text-center sm:text-left",children:[(0,a.jsx)("div",{className:"rounded-full p-2 bg-white",children:(0,a.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"text-[#6b00b0]",children:(0,a.jsx)("path",{d:"M21 15V19C21 19.5304 20.7893 20.0391 20.4142 20.4142C20.0391 20.7893 19.5304 21 19 21H5C4.46957 21 3.96086 20.7893 3.58579 20.4142C3.21071 20.0391 3 19.5304 3 19V15M17 8L12 3M12 3L7 8M12 3V15",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mb-1",children:[(0,a.jsx)("span",{className:"text-sm font-semibold text-[#6b00b0] underline",children:"Click to upload"}),(0,a.jsxs)("span",{className:"text-[#475467] text-sm",children:[" ","or drag & drop"]})]}),(0,a.jsx)("p",{className:"text-[#475467] text-xs",children:"PDF, DOC or DOCX (max 10MB)"})]})]})]}),!L&&i.resume&&l.resume&&(0,a.jsx)("p",{className:"text-red-500 text-xs sm:text-sm mt-1",children:l.resume})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{className:"block text-sm font-medium text-[#344054] mb-2",children:["First name ",(0,a.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,a.jsx)(r.gN,{type:"text",name:"firstName",className:"w-full px-3 sm:px-3.5 py-2 sm:py-2.5 bg-white border ".concat(l.firstName&&i.firstName?"border-red-500":"border-[#D0D5DD]"," rounded-lg shadow-sm text-[#101828] text-sm focus:ring-2 focus:ring-[#6941C6] focus:border-transparent outline-none transition-all"),placeholder:"Enter your first name"}),l.firstName&&i.firstName&&(0,a.jsx)("p",{className:"text-red-500 text-xs sm:text-sm mt-1",children:l.firstName})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{className:"block text-sm font-medium text-[#344054] mb-2",children:["Last name ",(0,a.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,a.jsx)(r.gN,{type:"text",name:"lastName",className:"w-full px-3 sm:px-3.5 py-2 sm:py-2.5 bg-white border ".concat(l.lastName&&i.lastName?"border-red-500":"border-[#D0D5DD]"," rounded-lg shadow-sm text-[#101828] text-sm focus:ring-2 focus:ring-[#6941C6] focus:border-transparent outline-none transition-all"),placeholder:"Enter your last name"}),l.lastName&&i.lastName&&(0,a.jsx)("p",{className:"text-red-500 text-xs sm:text-sm mt-1",children:l.lastName})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{className:"block text-sm font-medium text-[#344054] mb-2",children:["Email ",(0,a.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,a.jsx)(r.gN,{type:"email",name:"email",className:"w-full px-3 sm:px-3.5 py-2 sm:py-2.5 bg-white border ".concat(l.email&&i.email?"border-red-500":"border-[#D0D5DD]"," rounded-lg shadow-sm text-[#101828] text-sm focus:ring-2 focus:ring-[#6941C6] focus:border-transparent outline-none transition-all"),placeholder:"[email protected]"}),l.email&&i.email&&(0,a.jsx)("p",{className:"text-red-500 text-xs sm:text-sm mt-1",children:l.email})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{className:"block text-sm font-medium text-[#344054] mb-2",children:["Phone ",(0,a.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,a.jsx)(r.gN,{type:"tel",name:"phone",className:"w-full px-3 sm:px-3.5 py-2 sm:py-2.5 bg-white border ".concat(l.phone&&i.phone?"border-red-500":"border-[#D0D5DD]"," rounded-lg shadow-sm text-[#101828] text-sm focus:ring-2 focus:ring-[#6941C6] focus:border-transparent outline-none transition-all"),placeholder:"+1 (555) 000-0000"}),l.phone&&i.phone&&(0,a.jsx)("p",{className:"text-red-500 text-xs mt-1",children:l.phone})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{className:"block text-sm font-medium text-[#344054] mb-2",children:["Experience ",(0,a.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,a.jsx)(r.gN,{type:"number",name:"experience",step:"0.1",min:"0",className:"w-full px-3 sm:px-3.5 py-2 sm:py-2.5 bg-white border ".concat(l.experience&&i.experience?"border-red-500":"border-[#D0D5DD]"," rounded-lg shadow-sm text-[#101828] text-sm focus:ring-2 focus:ring-[#6941C6] focu
1s:border-transparent outline-none transition-all"),placeholder:"5 years"}),l.experience&&i.experience&&(0,a.jsx)("p",{className:"text-red-500 text-xs mt-1",children:l.experience})]})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{className:"block text-sm font-medium text-[#344054] mb-2",children:["Country ",(0,a.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsxs)("div",{className:"flex items-center px-3 py-2.5 bg-white border ".concat(l.country&&i.country?"border-red-500":"border-[#D0D5DD]"," rounded-lg min-h-[42px] cursor-pointer hover:border-[#6941C6] transition-colors"),onClick:()=>{Q(!0),setTimeout(()=>{let e=document.getElementById("country-search-input");e&&e.focus()},0)},children:[Y?(0,a.jsx)("input",{id:"country-search-input",type:"text",value:W,onChange:e=>{e.stopPropagation(),q(e.target.value)},onClick:e=>e.stopPropagation(),placeholder:"Search country...",className:"w-full outline-none text-[#101828] text-sm placeholder:text-[#888495] placeholder:text-sm"}):(0,a.jsx)("span",{className:"".concat(ee?"text-[#101828]":"text-[#888495]"," w-full text-sm"),children:ee?ee.name:"Select country..."}),(0,a.jsx)("svg",{className:"w-5 h-5 text-[#888495] flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),Y&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"fixed inset-0 z-0",onClick:()=>Q(!1)}),(0,a.jsx)("div",{className:"absolute z-50 w-full mt-1 bg-white border border-[#D0D5DD] rounded-lg shadow-lg max-h-60 overflow-y-auto",onClick:e=>e.stopPropagation(),children:eL.length>0?eL.map(e=>(0,a.jsx)("div",{className:"px-4 py-2.5 hover:bg-[#F4F7FF] cursor-pointer text-sm transition-colors",onClick:()=>{et(e),n("country",e._id),n("city",""),ev(e.iso2),Q(!1),q("")},children:e.name},e._id)):(0,a.jsx)("div",{className:"px-4 py-2.5 text-gray-500 text-sm",children:"No countries found"})})]})]}),l.country&&i.country&&(0,a.jsx)("p",{className:"text-red-500 text-xs sm:text-sm mt-1",children:l.country})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{className:"block text-sm font-medium text-[#344054] mb-2",children:["City ",(0,a.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsxs)("div",{className:"flex items-center px-3 py-2.5 bg-white border ".concat(l.city&&i.city?"border-red-500":"border-[#D0D5DD]"," ").concat(ee?"cursor-pointer hover:border-[#6941C6]":"cursor-not-allowed bg-gray-50"," rounded-lg min-h-[42px] transition-colors"),onClick:()=>{ee&&($(!0),setTimeout(()=>{let e=document.getElementById("city-search-input");e&&e.focus()},0))},children:[X?(0,a.jsx)("input",{id:"city-search-input",type:"text",value:V,onChange:e=>{e.stopPropagation(),z(e.target.value)},onClick:e=>e.stopPropagation(),placeholder:"Search city...",className:"w-full outline-none text-[#101828] text-sm placeholder:text-[#888495] placeholder:text-sm",disabled:!ee}):(0,a.jsx)("span",{className:"".concat(s.city?"text-[#101828]":"text-[#888495]"," w-full text-sm"),children:s.city?null===(t=K.find(e=>e.name===s.city))||void 0===t?void 0:t.name:ee?"Select city...":"Select country first..."}),(0,a.jsx)("svg",{className:"w-5 h-5 text-[#888495] flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),X&&ee&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"fixed inset-0 z-0",onClick:()=>$(!1)}),(0,a.jsx)("div",{className:"absolute z-50 w-full mt-1 bg-white border border-[#D0D5DD] rounded-lg shadow-lg max-h-60 overflow-y-auto",onClick:e=>e.stopPropagation(),children:eA.length>0?eA.map(e=>(0,a.jsx)("div",{className:"px-4 py-2.5 hover:bg-[#F4F7FF] cursor-pointer text-sm transition-colors",onClick:()=>{n("city",e.name),$(!1),z("")},children:e.name},e._id)):(0,a.jsx)("div",{className:"px-4 py-2.5 text-gray-500 text-sm",children:"No cities found"})})]})]}),l.city&&i.city&&(0,a.jsx)("p",{className:"text-red-500 text-xs sm:text-sm mt-1",children:l.city})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{className:"block text-sm font-medium text-[#344054] mb-2",children:["Skills ",(0,a.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsxs)("div",{className:"flex flex-wrap gap-2 p-2.5 bg-white border ".concat(l.skills&&i.skills?"border-red-500":"border-[#D0D5DD]"," rounded-lg min-h-[42px] hover:border-[#6941C6] transition-colors cursor-text"),onClick:()=>{M(!0);let e=document.getElementById("skills-search-input");e&&e.focus()},children:[s.skills.map((e,t)=>(0,a.jsxs)("span",{className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-full text-xs font-medium bg-[#F4F7FF] text-[#6941C6] border border-[#
1E9D7FE]",children:[(0,a.jsx)("span",{className:"max-w-[150px] truncate",children:eD(e)}),(0,a.jsx)("button",{type:"button",className:"text-[#6941C6] hover:text-[#7A1B8B] hover:bg-[#E9D7FE] rounded-full w-4 h-4 flex items-center justify-center transition-colors",onClick:t=>{t.stopPropagation(),n("skills",s.skills.filter(t=>t!==e))},"aria-label":"Remove ".concat(eD(e)),children:"\xd7"})]},t)),s.additionalTechs.map((e,t)=>(0,a.jsxs)("span",{className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-full text-xs font-medium bg-[#FFF7ED] text-[#B54708] border border-[#FEDF89]",children:[(0,a.jsx)("span",{className:"max-w-[150px] truncate",children:e}),(0,a.jsx)("button",{type:"button",className:"text-[#B54708] hover:text-[#93370D] hover:bg-[#FEDF89] rounded-full w-4 h-4 flex items-center justify-center transition-colors",onClick:t=>{t.stopPropagation(),n("additionalTechs",s.additionalTechs.filter(t=>t!==e))},"aria-label":"Remove ".concat(e),children:"\xd7"})]},"additional-".concat(t))),(0,a.jsx)("input",{id:"skills-search-input",type:"text",value:Z,onChange:e=>{e.stopPropagation(),U(e.target.value),M(!0)},onClick:e=>{e.stopPropagation(),M(!0)},onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),eT(Z,s,n))},placeholder:s.skills.length+s.additionalTechs.length===0?"Search or type a new skill...":"Add more...",className:"flex-1 min-w-[120px] outline-none text-sm placeholder:text-[#888495]",disabled:s.skills.length+s.additionalTechs.length>=7}),(s.skills.length>0||s.additionalTechs.length>0)&&(0,a.jsx)("button",{type:"button",className:"text-[#6941C6] text-xs hover:text-[#7A1B8B] font-medium ml-auto",onClick:e=>{e.stopPropagation(),n("skills",[]),n("additionalTechs",[])},children:"Clear all"})]}),O&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"fixed inset-0 z-0",onClick:()=>M(!1)}),(0,a.jsxs)("div",{className:"absolute z-50 w-full mt-1 bg-white border border-[#D0D5DD] rounded-lg shadow-lg max-h-60 overflow-y-auto",onClick:e=>e.stopPropagation(),children:[e_(s.skills).length>0?e_(s.skills).slice(0,50).map((e,t)=>(0,a.jsxs)("div",{className:"px-4 py-2.5 hover:bg-[#F4F7FF] cursor-pointer text-sm transition-colors flex items-center justify-between",onClick:()=>{s.skills.length<7&&!s.skills.includes(e._id)&&(n("skills",[...s.skills,e._id]),U(""),s.skills.length>=6&&M(!1))},children:[(0,a.jsx)("span",{children:e.technologyName}),s.skills.includes(e._id)&&(0,a.jsx)("svg",{className:"w-4 h-4 text-[#6941C6]",fill:"currentColor",viewBox:"0 0 20 20",children:(0,a.jsx)("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})]},t)):null,(()=>{let e=Z.trim();if(!e)return null;let t=P.some(t=>t.technologyName.toLowerCase()===e.toLowerCase()),l=s.additionalTechs.some(t=>t.toLowerCase()===e.toLowerCase()),i=s.skills.length+s.additionalTechs.length;return t||l||i>=7?null:(0,a.jsxs)("div",{className:"px-4 py-2.5 hover:bg-[#F4F7FF] cursor-pointer text-sm transition-colors flex items-center gap-2 border-t border-[#F2F4F7] text-[#6941C6]",onClick:()=>eT(Z,s,n),children:[(0,a.jsx)("svg",{className:"w-4 h-4 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m8-8H4"})}),(0,a.jsxs)("span",{children:['Add "',e,'"']})]})})()]})]})]}),l.skills&&i.skills&&(0,a.jsx)("p",{className:"text-red-500 text-xs sm:text-sm mt-1",children:l.skills}),(0,a.jsxs)("p",{className:"text-xs text-[#475467] mt-1.5 flex items-center gap-1",children:[(0,a.jsx)("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),"Select 3-7 skills (",s.skills.length+s.additionalTechs.length,"/7 selected)"]})]}),(0,a.jsx)("button",{type:"submit",disabled:B||!L||Object.keys(l).length>0||!s.firstName||!s.lastName||!s.email||!s.phone||!s.experience||!s.country||!s.city||s.skills.length+s.additionalTechs.length<3,className:"w-full bg-gradient-to-r from-[#7A1B8B] to-[#6B1579] text-white py-3 sm:py-3.5 px-4 roun
1ded-lg font-semibold hover:from-[#6B1579] hover:to-[#5A1068] transition-all text-sm sm:text-base disabled:opacity-50 disabled:cursor-not-allowed disabled:from-gray-400 disabled:to-gray-400 shadow-md hover:shadow-lg active:scale-98 flex items-center justify-center gap-2",children:B||o?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(p.Z,{size:18,color:"inherit"}),(0,a.jsx)("span",{children:"Submitting Application..."})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),(0,a.jsx)("span",{children:"Save And Apply"})]})}),(0,a.jsx)("p",{className:"text-xs text-center text-[#475467] mt-2 !mb-10",children:"By submitting this application, you agree to our terms and conditions."})]})}})]})})]})})})]})}}},function(e){e.O(0,[7066,5467,6633,5717,7601,1196,3669,1033,2888,9774,179],function(){return e(e.s=54611)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.