1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2248c60d-f59c-4089-8812-2ce22b0ac175",e._sentryDebugIdIdentifier="sentry-dbid-2248c60d-f59c-4089-8812-2ce22b0ac175")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4962],{7826:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/jobs-management/response/[id]",function(){return i(49605)}])},68304:function(e,t,i){"use strict";i.d(t,{Z:function(){return D}});var l=i(5311),n=i(55969),s=i(89512),r=i(25226),o=i(66840),d=i(41135),a=i.n(d),c=e=>{let{label:t,className:i,date:s,setDate:d,error:c,setError:u,placeholder:h="",mandatory:v=!1,disabled:x=!1,minimumDate:m=null}=e,[p,j]=(0,o.useState)(),{t:f}=(0,n.Z)(),g=e=>{d&&(j(e),d(e))};return(0,o.useEffect)(()=>{s&&j(new Date(s))},[s]),(0,l.jsxs)("div",{className:i,children:[t&&(0,l.jsxs)("label",{className:"block mb-1 text-sm font-normal text-black",children:[t,v&&(0,l.jsx)("span",{className:"text-red pl-0.5",children:"*"})]}),(0,l.jsx)(a(),{className:"w-full! px-[38px]! text-xs font-medium text-black transition bg-white border rounded-md focus:outline-none h-11 placeholder:text-gray-200 !placeholder:px-[33px] placeholder:font-normal placeholder:text-sm focus:border focus:border-primary border-light-gray",placeholderText:h||f("selectDate"),selected:p,onChange:e=>{g(e)},dateFormat:"dd MMM yyyy",isClearable:s,onKeyDown:e=>{e.preventDefault()},disabled:x,minDate:m,showIcon:!0,icon:(0,l.jsx)(r.Z,{size:"20px",classNames:"absolute text-gray-200 mt-3 ml-3"})}),c&&(0,l.jsx)("p",{className:"mt-1 text-xs font-medium text-red",children:c})]})},u=i(42310),h=i.n(u),v=i(82439),x=i(22280),m=i(68599),p=i(72368),j=i(7016),f=i(13906),g=i(52411),w=i(60551),b=i(25424),k=i.n(b),C=i(36602),N=i(70306),y=i(61876),L=e=>{let{setOpen:t,data:i,status:l={},setJobData:n=()=>!1,setSelected:s=()=>!1,setJobBtn:r=()=>!1,tempBtn:d,jobId:a}=e,{locale:c}=(0,y.useRouter)(),[u,h]=(0,o.useState)(!1),[v,x]=(0,o.useState)(null),b=async()=>({scheduleDate:"",scheduleTime:""}),L=N.Ry({scheduleDate:N.Z_().required("Please select Date.")}),{getValues:D,handleSubmit:_,setValue:I,reset:Z,formState:{errors:P={}}}=(0,C.cI)({defaultValues:b,resolver:(0,w.X)(L)}),{getAllCandidateList:M=()=>{},getApplicationStatusCount:E}=(0,p.a)()||{},S=async e=>{await (0,m.Z)({action:"updateUserJob",data:e,parameters:[null==i?void 0:i._id]}).then(async e=>{let{message:o,code:c}=e;return c===j.MU.SUCCESS&&(M(),E()),(0,f.Z)(o),s(l),r(d),t(!1),n(e=>e.map(e=>e._id===i?{...e,statusId:l.value,statusNm:l.name,jobId:a}:e)),Z(),!1})},T=async()=>{let e={statusId:null==l?void 0:l.value,statusNm:null==l?void 0:l.name,jobId:a},t=k()(new Date).format(g.tD.HH_MM),i=k()(new Date).format(g.tD.DAY_MONTH_YEAR_WITH_TIME);(null==l?void 0:l.code)===j.jf.intreview&&(e.interviewDateTime="".concat(D("scheduleDate")," ").concat(D("scheduleTime")),D("scheduleDate")!==i?S(e):t<D("scheduleTime")?S(e):(0,f.Z)("Please select appropriate time","error")),(null==l?void 0:l.code)===j.jf.hired&&(e.joinedDt="".concat(D("scheduleDate")," 00:00"),v&&(e.offerLetterObj=v),D("scheduleDate")!==i?S(e):(0,f.Z)("Please select appropriate date","error"))};return{setValue:I,handleSubmit:_,getValues:D,onSubmit:T,errors:P,locale:c,uploadOfferLetter:async e=>{h(!0);let t=new FormData;return t.append("folder","files"),t.append("file",e,e.name),(0,m.Z)({action:"imgUpload",data:t,config:{contentType:"multipart/form-data"}}).then(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=(null==t?void 0:t.DATA)||(null==t?void 0:t.data),l=Array.isArray(i)?null==i?void 0:i[0]:i,n={oriNm:(null==l?void 0:l.oriNm)||(null==e?void 0:e.name),fileId:(null==l?void 0:l._id)||(null==l?void 0:l.id),uri:null==l?void 0:l.uri,type:null==l?void 0:l.type,exten:null==l?void 0:l.exten,mimeType:null==l?void 0:l.mimeType,size:null==l?void 0:l.size,createdAt:null==l?void 0:l.createdAt};return n.fileId&&n.uri?(x(n),(0,f.Z)("Offer letter uploaded successfully."),!0):((0,f.Z)("Failed to upload offer letter. Please try again.","error"),!1)}).catch(()=>!1).finally(()=>{h(!1)})},offerLetterObj:v,setOfferLetterObj:x,isUploadingOfferLetter:u}},D=e=>{let{open:t,setOpen:i,data:r,status:d,setJobData:a,setSelected:u=()=>!1,tempBtn:m,setJobBtn:p=()=>!1,jobId:f}=e,[g,w]=(0,o.useState)(null),{setValue:b,handleSubmit:k,onSubmit:C,locale:N,uploadOfferLetter:y,offerLetterObj:D,setOfferLetterObj:_,isUploadingOfferLetter:I}=L({setOpen:i,data:r,status:d,setJobData:a,setSelected:u,setJobBtn:p,tempBtn:m,jobId:f}),{t:Z}=(0,n.Z)("responses"),P=e=>{b("scheduleDate",(0,s.xS)(e,N,"YYYY-MM-DD"))},M=async e=>{var t,i;let l=null==e?void 0:null===(i=e.target)||void 0===i?void 0:null===(t=i.files)||void 0===t?void 0:t[0];l&&(await y(l),e.target.value="")};return(0,l.jsxs)(x.ArthaModal,{open:t,wrapperClass:"max-w-[500px]",closeModal:()=>i(!1),title:Z((null==d?void 0:d.code)===j.jf.hired?"joinDt":"scheduleInt"),showCloseButton:!0,children:[(0,l.jsx)("div",{className:"bg-white rounded-lg",children:(0,l.jsx)("div",{className:"sm:flex sm:items-start w-full",children:(0,l.jsxs)("div",{className:"text-center w-full",children:[(0,l.jsxs)("div",{className:h()("mt-2 gap-3 items-end grid grid-cols-2",(null==d?void 0:d.code)===j.jf.intreview&&"grid grid-cols-2",(null==d?void 0:d.code)===j.jf.hired&&"grid grid-cols-1"),children:[(0,l.jsx)("div",{children:(0,l.jsx)(c,{setDate:e=>P(e),minimumDate:new Date})}),(null==d?void 0:d.code)===j.jf.intreview&&(0,l.jsx)("div",{className:"relative w-full flex items-center",children:(0,l.jsx)(v.Z,{value:g,onChange:e=>{if(w(e),e instanceof Date){let[t="00",i="00"]=e.toLocaleTimeString("en-GB",{hour12:!1}).split(":");b("scheduleTime","".concat(t,":").concat(i));return}b("scheduleTime",e||"")},format:"hh:mm a",disableClock:!0,clearIcon:null,clockIcon:null})})]}),(null==d?void 0:d.code)===j.jf.hired&&(0,l.jsxs)("div",{className:"mt-3 text-left",children:[(0,l.jsx)("label",{htmlFor:"offer-letter",className:"text-sm font-medium text-gray-700",children:"Offer letter (optional)"}),(0,l.jsxs)("label",{htmlFor:"offer-letter",className:"mt-2 relative block w-full px-2 py-3 text-sm text-center border border-dashed rounded-lg cursor-pointer border-primary text-primary",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-1",children:[(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15.172 7l-6.586 6.586a2 2 0 102.828 2.828l6.414-6.586a4 4 0 00-5.656-5.656l-6.415 6.585a6 6 0 108.486 8.48
16L20.5 13"})}),(0,l.jsx)("span",{children:"Upload file"})]}),(0,l.jsx)("input",{id:"offer-letter",type:"file",accept:".pdf,.docx,application/pdf,application/vnd.openxmlformats-officedocument.wordprocessingml.document",className:"sr-only",onChange:M})]}),(0,l.jsx)("p",{className:"text-xs text-gray-500 mt-1",children:"Allowed: PDF, DOCX up to 5 MB"}),I&&(0,l.jsx)("p",{className:"text-xs text-primary mt-1",children:"Uploading offer letter..."}),(null==D?void 0:D.oriNm)&&(0,l.jsxs)("div",{className:"mt-2 flex items-center justify-between rounded-md border border-gray-200 px-3 py-2 text-sm",children:[(0,l.jsx)("span",{className:"truncate min-w-0 flex-1 pr-2",children:D.oriNm}),(0,l.jsx)("button",{type:"button",className:"text-red-500 shrink-0",onClick:()=>_(null),children:"Remove"})]})]})]})})}),(0,l.jsx)("div",{className:"flex w-full mt-2",children:(0,l.jsxs)("div",{className:"grid grid-cols-2 gap-3 w-full mt-3",children:[(0,l.jsx)(x.ArthaButton,{title:Z("cancel"),primary:!1,onClick:()=>{u(e=>e),i(!1)}}),(0,l.jsx)(x.ArthaButton,{title:Z((null==d?void 0:d.code)===j.jf.hired?"submit":"schedule"),disabled:I,onClick:k(C)})]})})]})}},33423:function(e,t,i){"use strict";var l=i(5311);i(66840),t.Z=e=>{let{size:t="18",className:i=""}=e;return(0,l.jsxs)("svg",{width:t,height:t,className:i,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsxs)("g",{clipPath:"url(#clip0_18615_1922)",children:[(0,l.jsx)("path",{d:"M15.8583 14.8485C16.3397 14.6725 16.7553 14.3529 17.049 13.9328C17.3426 13.5128 17.5001 13.0127 17.5 12.5002V5.8335C17.5 5.17045 17.2366 4.53457 16.7678 4.06573C16.2989 3.59689 15.663 3.3335 15 3.3335H5C4.33696 3.3335 3.70107 3.59689 3.23223 4.06573C2.76339 4.53457 2.5 5.17045 2.5 5.8335V12.5002C2.5 13.5977 3.20833 14.5302 4.19167 14.8668",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("path",{d:"M8.33301 11.6667C8.33301 12.1087 8.5086 12.5326 8.82116 12.8452C9.13372 13.1577 9.55765 13.3333 9.99967 13.3333C10.4417 13.3333 10.8656 13.1577 11.1782 12.8452C11.4907 12.5326 11.6663 12.1087 11.6663 11.6667C11.6663 11.2246 11.4907 10.8007 11.1782 10.4882C10.8656 10.1756 10.4417 10 9.99967 10C9.55765 10 9.13372 10.1756 8.82116 10.4882C8.5086 10.8007 8.33301 11.2246 8.33301 11.6667Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("path",{d:"M6.66699 17.5002C6.66699 17.0581 6.84259 16.6342 7.15515 16.3217C7.46771 16.0091 7.89163 15.8335 8.33366 15.8335H11.667C12.109 15.8335 12.5329 16.0091 12.8455 16.3217C13.1581 16.6342 13.3337 17.0581 13.3337 17.5002",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,l.jsx)("defs",{children:(0,l.jsx)("clipPath",{id:"clip0_18615_1922",children:(0,l.jsx)("rect",{width:"20",height:"20",fill:"white"})})})]})}},55763:function(e,t,i){"use strict";var l=i(5311);i(66840),t.Z=e=>{let{size:t="24",className:i}=e;return(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",height:t,width:t,className:i,viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"})})}},49605:function(e,t,i){"use strict";i.r(t),i.d(t,{__N_SSP:function(){return Q},default:function(){return $}});var l=i(5311),n=i(66840),s=i(19773),r=i(61876),o=i(72368),d=i(68505);i(52611);var a=i(31126),c=i.n(a),u=i(55969),h=e=>(0,l.jsxs)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,l.jsxs)("g",{clipPath:"url(#clip0_3931_512)",children:[(0,l.jsx)("path",{d:"M9 6H20",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("path",{d:"M9 12H20",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("path",{d:"M9 18H20",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("path",{d:"M5 6V6.01",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("path",{d:"M5 12V12.01",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("path",{d:"M5 18V18.01",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,l.jsx)("defs",{children:(0,l.jsx)("clipPath",{id:"clip0_3931_512",children:(0,l.jsx)("rect",{width:24,height:24,fill:"
1currentColor"})})})]}),v=e=>(0,l.jsxs)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,l.jsxs)("g",{clipPath:"url(#clip0_3931_779)",children:[(0,l.jsx)("path",{d:"M9 5H7C6.46957 5 5.96086 5.21071 5.58579 5.58579C5.21071 5.96086 5 6.46957 5 7V19C5 19.5304 5.21071 20.0391 5.58579 20.4142C5.96086 20.7893 6.46957 21 7 21H17C17.5304 21 18.0391 20.7893 18.4142 20.4142C18.7893 20.0391 19 19.5304 19 19V7C19 6.46957 18.7893 5.96086 18.4142 5.58579C18.0391 5.21071 17.5304 5 17 5H15",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("path",{d:"M9 5C9 4.46957 9.21071 3.96086 9.58579 3.58579C9.96086 3.21071 10.4696 3 11 3H13C13.5304 3 14.0391 3.21071 14.4142 3.58579C14.7893 3.96086 15 4.46957 15 5C15 5.53043 14.7893 6.03914 14.4142 6.41421C14.0391 6.78929 13.5304 7 13 7H11C10.4696 7 9.96086 6.78929 9.58579 6.41421C9.21071 6.03914 9 5.53043 9 5Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("path",{d:"M9 14H9.00833",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("path",{d:"M9 17H9.00833",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("path",{d:"M12 16L13 17L16 14",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,l.jsx)("defs",{children:(0,l.jsx)("clipPath",{id:"clip0_3931_779",children:(0,l.jsx)("rect",{width:24,height:24,fill:"white"})})})]}),x=i(33423),m=e=>(0,l.jsxs)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,l.jsxs)("g",{clipPath:"url(#clip0_3931_893)",children:[(0,l.jsx)("path",{d:"M8 7C8 8.06087 8.42143 9.07828 9.17157 9.82843C9.92172 10.5786 10.9391 11 12 11C13.0609 11 14.0783 10.5786 14.8284 9.82843C15.5786 9.07828 16 8.06087 16 7C16 5.93913 15.5786 4.92172 14.8284 4.17157C14.0783 3.42143 13.0609 3 12 3C10.9391 3 9.92172 3.42143 9.17157 4.17157C8.42143 4.92172 8 5.93913 8 7Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("path",{d:"M6 21V19C6 17.9391 6.42143 16.9217 7.17157 16.1716C7.92172 15.4214 8.93913 15 10 15H13.5",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("path",{d:"M22 22L17 17",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("path",{d:"M17 22L22 17",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,l.jsx)("defs",{children:(0,l.jsx)("clipPath",{id:"clip0_3931_893",children:(0,l.jsx)("rect",{width:24,height:24,fill:"white"})})})]}),p=e=>{let{fill:t,...i}=e;return(0,l.jsxs)("svg",{width:25,height:24,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:[(0,l.jsxs)("g",{clipPath:"url(#clip0_3265_1116)",children:[(0,l.jsx)("path",{d:"M8.66699 7C8.66699 8.06087 9.08842 9.07828 9.83856 9.82843C10.5887 10.5786 11.6061 11 12.667 11C13.7279 11 14.7453 10.5786 15.4954 9.82843C16.2456 9.07828 16.667 8.06087 16.667 7C16.667 5.93913 16.2456 4.92172 15.4954 4.17157C14.7453 3.42143 13.7279 3 12.667 3C11.6061 3 10.5887 3.42143 9.83856 4.17157C9.08842 4.92172 8.66699 5.93913 8.66699 7Z",stroke:t||"#49D657",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("path",{d:"M6.66699 21V19C6.66699 17.9391 7.08842 16.9217 7.83856 16.1716C8.58871 15.4214 9.60613 15 10.667 15H14.667",stroke:t||"#49D657",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("path",{d:"M15.667 19L17.667 21L21.667 17",stroke:t||"#49D657",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,l.jsx)("defs",{children:(0,l.jsx)("clipPath",{id:"clip0_3265_1116",children:(0,l.jsx)("rect",{width:24,height:24,fill:"white",transform:"translate(0.666992)"})})})]})},j=i(78621),f=i(63567),g=i(68304),w=i(74174),b=i(99361),k=i(43135),C=i(9564),N=i(68599),y=i(55763),L=i(13906),D=i(89512),_=i(7016),I=i(76284),Z=i(82308),P=e=>{var t;let{jobId:i="",setOpen:s,value:d,selected:a,setSelected:c,setJobBtn:u=()=>!1,setJobData:h=()=>!1,setTempSel:v=()=>!1,setTempBtn:x=()=>!1,candidateDetails:m={},element:p={}}=e,{locale:j}=(0,r.useRouter)(),{getAllCandidateList:f=()=>{},getApplicationStatusCount:g,optionsList:w}=(0,o.a)()||{}
1,[b,k]=(0,n.useState)([]),C={APPLIED:[null===_.jf||void 0===_.jf?void 0:_.jf.rejected,null===_.jf||void 0===_.jf?void 0:_.jf.shorlisted],IN_INTERVIEW:[null===_.jf||void 0===_.jf?void 0:_.jf.rejected,null===_.jf||void 0===_.jf?void 0:_.jf.hired],SHORTLIST:[null===_.jf||void 0===_.jf?void 0:_.jf.rejected,null===_.jf||void 0===_.jf?void 0:_.jf.intreview]},P={APPLIED:[null===_.jf||void 0===_.jf?void 0:_.jf.rejected,null===_.jf||void 0===_.jf?void 0:_.jf.shorlisted,null===_.jf||void 0===_.jf?void 0:_.jf.intreview,null===_.jf||void 0===_.jf?void 0:_.jf.hired],IN_INTERVIEW:[null===_.jf||void 0===_.jf?void 0:_.jf.rejected,null===_.jf||void 0===_.jf?void 0:_.jf.hired],SHORTLIST:[null===_.jf||void 0===_.jf?void 0:_.jf.rejected,null===_.jf||void 0===_.jf?void 0:_.jf.hired,null===_.jf||void 0===_.jf?void 0:_.jf.intreview]};(0,n.useEffect)(()=>{let e=w.find(e=>e.value===d);k(w.filter(t=>{var i;return null===(i=P[null==e?void 0:e.code])||void 0===i?void 0:i.includes(t.code)})),c(e),(null==e?void 0:e.value)===d&&u(w.filter(t=>{var i;return null===(i=C[null==e?void 0:e.code])||void 0===i?void 0:i.includes(t.code)}))},[d,a,w]);let M=async e=>{if(e.code===_.jf.intreview||e.code===_.jf.hired)s(!0),v(e),x(b.filter(t=>{var i;return null===(i=C[e.code])||void 0===i?void 0:i.includes(t.code)}));else{let t={statusNm:null==e?void 0:e.name,statusId:null==e?void 0:e.value,userId:p.userId,jobId:p.jobId};await (0,N.Z)({action:"updateUserJob",data:t,parameters:[p._id]}).then(async t=>{let{message:l,code:n}=t;return"SUCCESS"===n&&(f(),g()),(0,L.Z)(l),c(e),u(b.filter(t=>{var i;return null===(i=C[e.code])||void 0===i?void 0:i.includes(t.code)})),h(t=>t.map(t=>t._id===i?{...t,statusId:e.value,statusNm:e.name}:t)),s(!1),!1})}},E=(null==a?void 0:a.code)===(null===_.jf||void 0===_.jf?void 0:_.jf.rejected);return(0,l.jsx)(I.Ri,{value:a||{},onChange:M,disabled:(null==p?void 0:p.useRedirectUrl)||E,children:(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsxs)(I.Y4,{className:"relative w-full text-left cursor-default focus:!outline-0 sm:text-sm",children:[(0,l.jsxs)("span",{className:"flex items-center justify-center gap-x-1 truncate ".concat(E&&"!cursor-not-allowed opacity-50"," text-").concat(null==a?void 0:a.color," !w-full text-center p-2 border mt-4 rounded-lg dropdown-option"),children:[(null==a?void 0:null===(t=a.name)||void 0===t?void 0:t[j])||(null==a?void 0:a.name),b.length>0&&(0,l.jsx)(y.Z,{size:"16px"})]}),(0,l.jsx)("span",{className:"absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none"})]}),b.length>0&&(0,l.jsx)(Z.u,{as:n.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,l.jsx)(I.O_,{className:"absolute focus:!outline-0 z-10 py-3 mt-1 overflow-auto text-base bg-white rounded-md shadow-lg sm:right-0 max-h-60 w-full !border !border-gray-100 sm:text-sm dropdown-option",children:b.map(e=>(0,l.jsx)(I.wt,{className:e=>{let{active:t}=e;return"cursor-pointer select-none relative py-1 px-3 hover:bg-primary/10 dropdown-option ".concat(t?"":"text-dark-gray")},value:e,children:t=>{var i;let{selected:n}=t,s="text-".concat(null==e?void 0:e.color);return(0,l.jsxs)("div",{className:"flex items-center gap-3 dropdown-option",children:[(0,l.jsx)("div",{className:"h-2 w-2 rounded-sm bg-".concat(null==e?void 0:e.color)}),(0,l.jsx)("span",{className:"block truncate dropdown-option ".concat(n?"font-medium":"font-normal"," ").concat(s),children:(null==e?void 0:null===(i=e.name)||void 0===i?void 0:i[j])||(null==e?void 0:e.name)})]})}},(0,D.Ki)()))})})]})})},M=i(2086),E=i(68588),S=i(27864),T=i(33557),W=i(35900);i(70937);var O=i(8333),R=i(877),V=i(49837),H=i(78961),A=i(40602),U=i(70856),B=i(2403),J=e=>{let{isCandidateProfileOpened:t}=e,{appearance:i}=(0,n.useContext)(B.Z),{t:s}=(0,u.Z)("common");return(null==i?void 0:i.isJobDistributionEnable)&&t?(0,l.jsx)("span",{className:"bg-primary-light text-primary px-2 py-0.5 rounded text-xs font-medium",children:s("viewed")}):null},F=e=>{let{isFromJobDistribution:t}=e,{t:i}=(0,u.Z)("common"),{appearance:s}=(0,n.useContext)(B.Z);return(null==s?void 0:s.isJobDistributionEnable)&&t?(0,l.jsx)("span",{className:"bg-primary-light text-primary px-2 py-0.5 rounded text-xs font-medium",children:i("adNet
1workTag")}):null},z=e=>{var t,i,s,o,d,a,c,h,v;let{setJobData:x,element:m={},onCardClick:p,hideCandidateName:j,candidateId:f,dt:y,licenceDetails:L,jobDetail:D,disableAiMatching:_=!1}=e,{t:I}=(0,u.Z)("responses"),{locale:Z}=(0,r.useRouter)(),z=(0,H.usePathname)(),{name:K="",city:Y="",gender:X="",skillIds:q=[],experienceIds:G={},country:Q="",licenceId:$=""}=(null==m?void 0:m.candidateDetails)||{},{statusId:ee="",statusNm:et="",jobTitle:ei=""}=m||{},[el,en]=(0,n.useState)(),[es,er]=(0,n.useState)(!1),[eo,ed]=(0,n.useState)(),[ea,ec]=(0,n.useState)(!1),eu=(0,n.useRef)(null),{checkSubscribeCode:eh}=(0,V.oT)(),ev=eh(V.Ib.CANDIDATE_LICENCE),{appearance:ex}=(0,n.useContext)(B.Z),em=(0,A.xe)([null==Y?void 0:Y.nm,null==Q?void 0:Q.nm]),ep=async()=>{var e,t;null==ex||!ex.isJobDistributionEnable||(null==m?void 0:null===(e=m.candidateDetails)||void 0===e?void 0:e.isCandidateProfileOpened)||await (0,N.Z)({action:"markJobViewed",data:{jobId:null==m?void 0:m.jobId,candidateId:null==m?void 0:null===(t=m.candidateDetails)||void 0===t?void 0:t._id}}),p(m)};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"flex flex-col h-full justify-between",children:[(0,l.jsxs)("div",{role:"button",tabIndex:"0",onClick:ep,onKeyDown:ep,children:[(0,l.jsx)("div",{className:"flex items-center justify-between overflow-hidden",onMouseEnter:()=>ec(!0),onMouseLeave:()=>ec(!1),children:(0,l.jsxs)("div",{className:"flex items-center gap-3",children:[(0,l.jsx)(E.Z,{src:(null==m?void 0:null===(i=m.candidateDetails)||void 0===i?void 0:null===(t=i.profileId)||void 0===t?void 0:t.uri)?"https://cdn-static.arthajobboard.com/prod-public-assets"+(null==m?void 0:null===(o=m.candidateDetails)||void 0===o?void 0:null===(s=o.profileId)||void 0===s?void 0:s.uri):"/admin/images/avatar1.png",className:"h-12 w-12 object-cover rounded-sm",alt:"",onError:e=>{let{currentTarget:t}=e;t.onerror=null,t.src="/admin/images/avatar1.png"}}),(0,l.jsx)("div",{className:"flex w-full items-center justify-start gap-x-1",children:(0,l.jsxs)("h6",{className:"flex justify-start gap-x-1 items-center font-semibold text-black capitalize",children:[j?(null==m?void 0:null===(d=m.candidateDetails)||void 0===d?void 0:d.isViewed)?K:"*****":K,(0,l.jsx)(J,{isCandidateProfileOpened:null==m?void 0:null===(a=m.candidateDetails)||void 0===a?void 0:a.isCandidateProfileOpened}),(0,l.jsx)(F,{isFromJobDistribution:null==m?void 0:null===(c=m.candidateDetails)||void 0===c?void 0:c.isFromJobDistribution}),ev&&(0,l.jsx)(S.Z,{isCard:!0,licenceId:$,licenceDetails:L})]})})]})}),(0,l.jsxs)("div",{className:"grid gap-2 ".concat((null==G?void 0:G.nm)||(null==Y?void 0:Y.nm)||(null==X?void 0:X.nm)?"pt-3":""),children:[(0,l.jsx)("div",{className:"flex items-center justify-between",children:(null==G?void 0:G.nm)&&(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("div",{"data-tooltip-content":I("experience"),"data-tooltip-id":"experience",className:"flex items-center justify-center w-4 h-4",children:(0,l.jsx)(w.Z,{})}),(0,l.jsx)("p",{className:"text-xs",children:(null===(h=G.nm)||void 0===h?void 0:h[Z])||G.nm}),(0,l.jsx)(T.Z,{id:"experience"})]})}),(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[em&&(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("div",{"data-tip":!0,"data-for":I("location"),className:"flex items-center justify-center w-4 h-4",children:(0,l.jsx)(k.Z,{})}),(0,l.jsx)("p",{className:"text-xs",children:em}),(0,l.jsx)(T.Z,{id:I("location")})]}),(null==X?void 0:X.nm)&&(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("div",{"data-tooltip-content":I("common:gender"),"data-tooltip-id":"gender",className:"flex items-center justify-center w-4 h-4",children:(0,l.jsx)(b.Z,{})}),(0,l.jsx)("p",{className:"text-xs",children:(null==X?void 0:null===(v=X.nm)||void 0===v?void 0:v[Z])||(null==X?void 0:X.nm)}),(0,l.jsx)(T.Z,{id:"gender"})]})]}),(0,l.jsx)("div",{className:"flex items-center justify-between truncate",children:(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(null==q?void 0:q.length)>0&&(0,l.jsxs)("div",{"data-tooltip-content":I("skills"),"data-tooltip-id":"skills",className:"flex items-center justify-center w-4 h-4",children:[(0,l.jsx)(C.Z,{}),(0,l.jsx)(T.Z,{id:"skills"})]}),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("p",{"data-tooltip-content":q.slice(0,50).map(e=>{var t;return(null===(t=e.nm)||void 0===t?void 0:t[Z])||e.nm}).join(", "),"data-tooltip-id":"skills",className:"text-xs truncate w-64",children:q.map(e=>{var t;return(null===(t=e.nm)||void 0===t?void 0:t[Z])||e.nm}).join(", ")}),(0,l.jsx)(T.Z,{id:"skills"})]})]})})]})]}),(0,l.jsxs)("div",{className:"mt-auto relative pt-3",children:[(0,l.jsx)("div",{children:z!==U.ZP.response&&(0,l.jsx)("p",{className:"font-semibold text-black capitalize truncate!",children:ei})}),(0,l.jsxs)("div",{className:"group relative",children:[(0,l.jsx)("div",{onMouseEnter:()=>ec(!0),onMouseLeave:()=>ec(!1),ref:eu,children:(0,l.jsx)(M.Z,{level:(null==m?void 0:m.matchingLvl)||0})}),ea&&eu.current&&!_&&(0,l.jsx)(W.ZP,{content:(0,l.jsx)(O.Z,{title:"Metrics",children:(0,l.jsx)(R.Z,{percentageLevels:null==m?void 0:m.percentage})}),interactive:!0,visible:ea,reference:eu.current,placement:"bottom",animation:"fade",theme:"light",className:"bg-white matching-level shadow-[0_6px_20px_rgba(0,0,0,0.15),0_2px_8px_rgba(0,0,0,0.08)] text-black",appendTo:document.body})]}),(0,l.jsx)("div",{className:"",children:(0,l.jsxs)("div",{className:"grid relative",children:[(0,l.jsx)(P,{open:es,setOpen:er,value:ee,statusNm:et[Z]||et,selected:eo,setSelected:ed,setTempSel:en,jobId:null==m?void 0:m.jobId,setJobData:x,candidateDetails:null==m?void 0:m.candidateDetails,element:m}),(null==m?void 0:m.useRedirectUrl)&&(0,l.jsx)("div",{role:"button",tabIndex:"0",className:"absolute inset-0 cursor-not-allowed bg-transparent",onClick:e=>{e.stopPropagation()},onKeyDown:e=>{e.stopPropagation()}})]})})]})]}),es&&(0,l.jsx)(g.Z,{setOpen:er,open:es,jobId:null==m?void 0:m.jobId,status:el,setSelected:ed,setJobData:x,data:m})]})},K=()=>(0,l.jsx)("div",{className:"text-primary mt-4",children:(0,l.jsxs)("svg",{className:"animate-spin mx-auto h-5 w-5",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,l.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,l.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}),Y=i(22280),X=i(93717),q=e=>{let{jobDetail:t}=e,{t:i}=(0,u.Z)("responses"),s=e=>Object.keys(_.Rk)[e],a=(0,r.useRouter)(),g=a.query,{tab:w}=g,{loading:b=!1,allCandidateList:k,licenceDetails:C,onHandelStatusChange:N,paginator:y,applicationStatusCount:L={},tabIndex:D,setTabIndex:I,masterId:Z,setStatusId:P,setApplyFilter:M,settings:E}=(0,o.a)()||{},S=(0,X.Z)(),{setResponse:T,addToUrl:W,filter:O,clickNextPage:R,clickPreviousPage:V,setCrtPage:H,pageSizeChange:A}=S;(0,n.useEffect)(()=>{M(O)},[O]);let B=e=>{let t={...g,candidate:null==e?void 0:e.userId,status:null==e?void 0:e.statusId,job_id:null==e?void 0:e.jobId,useRedirectUrl:(null==e?void 0:e.useRedirectUrl)?"true":"false"},i=new URLSearchParams;for(let e in t)if(Object.hasOwn(t,e)){let l=t[e];null!=l&&""!==l&&i.append(e,l)}let l="".concat(U.ZP.responseDetail,"?").concat(i.toString());a.push(l)};return(0,n.useEffect)(()=>{var e;(null===(e=Object.keys(Z))||void 0===e?void 0:e.length)!==0&&(I(+w),P(Z[s(+w)]))},[w,Z]),(0,l.jsx)("div",{children:(0,l.jsx)("div",{className:"mt-6",children:(0,l.jsx)("div",{className:"container w-full mx-auto",children:(0,l.jsxs)("div",{className:"grid grid-cols-12 gap-5",children:[(0,l.jsx)("div",{className:"col-span-2",children:(0,l.jsx)(f.Z,{filterProps:S,isResponsePage:!0,hideKeyword:!0})}),(0,l.jsx)("div",{className:"col-span-10 w-full profile-tab",children:(0,l.jsxs)(d.mQ,{selectedIndex:D,onSelect:e=>I(e),children:[(0,l.jsx)(d.td,{children:_.Lj.map(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t="bg-cyan-50 text-cyan-400 px-2 rounded-sm",n=(0,l.jsx)(h,{});switch(e.name){case"shortlist":t="bg-blue-50 text-blue-400 px-2 rounded-sm",n=(0,l.jsx)(v,{});break;
1case"inInterview":t="bg-amber-50 text-amber-400 px-2 rounded-sm",n=(0,l.jsx)(x.Z,{size:"24",fill:"currentColor"});break;case"rejectedCap":t="bg-rose-50 text-rose-400 px-2 rounded-sm",n=(0,l.jsx)(m,{});break;case"hiredCap":t="bg-lime-50 text-lime-400 px-2 rounded-sm",n=(0,l.jsx)(p,{fill:"currentColor"});break;case"appliedCap":t="bg-violet-50 text-violet-400 px-2 rounded-sm",n=(0,l.jsx)(j.Z,{})}return(0,l.jsx)(d.OK,{onClick:()=>N(e.status),children:(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[n,(0,l.jsx)("span",{children:i(e.name)}),(0,l.jsx)("span",{className:t,children:L[null==e?void 0:e.countKey]})]})},e.id)})}),_.Lj.map(e=>(0,l.jsx)(d.x4,{children:(0,l.jsxs)("div",{className:"mt-6",children:[b&&(0,l.jsx)("div",{className:"flex justify-center items-center w-full h-full",children:(0,l.jsx)(K,{})}),(0,l.jsx)("div",{children:c()(k)||b?!b&&(0,l.jsx)("div",{className:"relative min-h-[220px]",children:(0,l.jsx)(Y.ArthaNoData,{title:i("noResponse")})}):(0,l.jsx)("div",{className:"grid gap-6 grid-cols-1 lg:grid-cols-3 sm:grid-cols-2 mb-3",children:k.map((e,i)=>{var n;return(0,l.jsx)("div",{className:"relative cursor-pointer h-full px-3 py-4 transition-all bg-white border rounded-md border-gray hover:border-primary",children:(0,l.jsx)(z,{setJobData:T,element:e,licenceDetails:C,onCardClick:()=>B(e),hideCandidateName:null==E?void 0:E.hideCandidateName,candidateId:null==e?void 0:null===(n=e.candidateDetails)||void 0===n?void 0:n._id,jobDetail:t})},null==e?void 0:e._id)})})}),!b&&(null==k?void 0:k.length)>0&&(0,l.jsx)("div",{className:"mt-auto",children:(0,l.jsx)(Y.ArthaPagination,{totalPages:null==y?void 0:y.pageCount,clickNextPage:R,clickPreviousPage:V,setCrtPage:H,currentPage:null==y?void 0:y.currentPage,onPageSizeChange:A,pageLimit:null==y?void 0:y.perPage,total:{itemCount:null==y?void 0:y.itemCount},paginationData:y,pageOptionsList:null==y?void 0:y.pageOptionsList,addToUrl:W})})]})},e.id))]})})]})})})})},G=e=>{let{jobDetail:t}=e,i=(0,r.useRouter)().query.id,{setJobId:s}=(0,o.a)();return(0,n.useEffect)(()=>(i&&s(i),()=>{s("")}),[i]),(0,l.jsx)(q,{jobDetail:t})},Q=!0,$=()=>(0,l.jsx)(s.Z,{children:(0,l.jsx)(G,{})})},60551:function(e,t,i){"use strict";i.d(t,{X:function(){return o}});var l=i(36602),n=function(e,t,i){if(e&&"reportValidity"in e){var n=(0,l.U2)(i,t);e.setCustomValidity(n&&n.message||""),e.reportValidity()}},s=function(e,t){var i=function(i){var l=t.fields[i];l&&l.ref&&"reportValidity"in l.ref?n(l.ref,i,e):l.refs&&l.refs.forEach(function(t){return n(t,i,e)})};for(var l in t.fields)i(l)},r=function(e,t){t.shouldUseNativeValidation&&s(e,t);var i={};for(var n in e){var r=(0,l.U2)(t.fields,n);(0,l.t8)(i,n,Object.assign(e[n],{ref:r&&r.ref}))}return i},o=function(e,t,i){return void 0===t&&(t={}),void 0===i&&(i={}),function(n,o,d){try{return Promise.resolve(function(l,r){try{var a=(t.context,Promise.resolve(e["sync"===i.mode?"validateSync":"validate"](n,Object.assign({abortEarly:!1},t,{context:o}))).then(function(e){return d.shouldUseNativeValidation&&s({},d),{values:i.rawValues?n:e,errors:{}}}))}catch(e){return r(e)}return a&&a.then?a.then(void 0,r):a}(0,function(e){var t;if(!e.inner)throw e;return{values:{},errors:r((t=!d.shouldUseNativeValidation&&"all"===d.criteriaMode,(e.inner||[]).reduce(function(e,i){if(e[i.path]||(e[i.path]={message:i.message,type:i.type}),t){var n=e[i.path].types,s=n&&n[i.type];e[i.path]=(0,l.KN)(i.path,t,e,i.type,s?[].concat(s,i.message):i.message)}return e},{})),d)}}))}catch(e){return Promise.reject(e)}}}}},function(e){e.O(0,[6342,3557,1335,1603,6602,9754,1135,8505,5215,6212,8667,6694,767,8433,2543,1804,2694,901,8948,2888,9774,179],function(){return e(e.s=7826)}),_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.