PageSourceSearch

https://xyrus.ai/_next/static/chunks/820.ee9779ddb8f2a208.js

js xyrus.ai collected 2026-10-05 15:08:59 UTC 10,601 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[820],{15992:(e,t,s)=>{s.d(t,{A7:()=>b,DI:()=>p,Dz:()=>g,M9:()=>r,Rt:()=>l,Tm:()=>m,V_:()=>x,Wl:()=>i,bR:()=>a,cZ:()=>u,ds:()=>h,h2:()=>c,lU:()=>v,oW:()=>o,sJ:()=>f,wp:()=>d,z5:()=>n});let n="/images/icons/pencil-edit.svg",a="/images/icons/phone-icon.svg",i="/images/icons/globe-icon.svg",c="/images/icons/email-icon.svg",o="/images/icons/location-icon.svg",l="/images/icons/link-icon.svg",r="/images/icons/refresh-icon.svg",d="/images/icons/share-icon.svg",m="/images/icons/bag-icon.svg",u="/images/icons/document-icon.svg",h="/images/icons/right-arrow-icon.svg",x="/images/icons/linkedinIcon.svg",g="/images/icons/scheduled-calendar-icon.svg",p="/images/icons/placeholder-no-engagements.svg",f="/images/icons/impersonate-user-icon.svg",v="/images/icons/UserContactsExpand.svg",b="/images/client/client-information-circle.svg"},60919:(e,t,s)=>{s.d(t,{pe:()=>a});let{Axios:n,AxiosError:a,CanceledError:i,isCancel:c,CancelToken:o,VERSION:l,all:r,Cancel:d,isAxiosError:m,spread:u,toFormData:h,AxiosHeaders:x,HttpStatusCode:g,formToJSON:p,getAdapter:f,mergeConfig:v}=s(95125).A},64762:(e,t,s)=>{s.r(t),s.d(t,{default:()=>g});var n=s(95155),a=s(12115),i=s(97610),c=s(27992),o=s(65229),l=s(28990),r=s(15992),d=s(75557),m=s(18720),u=s(27638),h=s(41180);let x=e=>{switch(e){case"success":return"bg-success-solid";case"brand-second":return"bg-brand-2nd";case"brand-4th":return"bg-brand-4th";default:return"bg-text-stroke"}};function g(e){let{data:t}=e,{localScores:s,candidateId:g,expandedSections:p,scrollContainerRef:f,handleUnlinkRstClick:v,handleResetRstClick:b,handleCancel:y,handleAdd:N,handleShareClick:j,toggleSection:C}=function(e){var t;let{data:s}=e,n=e=>null!==e&&"object"==typeof e&&"scores"in e&&Array.isArray(e.scores),i=n(s)?s.scores:void 0,c=n(s)?s.specificScoreId:void 0,o=n(s)?s.candidateId:void 0,l=n(s)?s.unlinkRst:void 0,r=n(s)?s.resetRst:void 0,d=n(s)?s.handleAddSelfAssessment:void 0,x=n(s)?s.onRefreshSelfAssessment:void 0,g=n(s)?s.showLoading:void 0,[p,f]=(0,a.useState)(i||[]),[v,b]=(0,a.useState)(new Set([c||(null==i||null==(t=i[0])?void 0:t.id)||""])),y=(0,a.useRef)(null);return(0,a.useEffect)(()=>{i&&f(i)},[i]),(0,a.useEffect)(()=>{let e=u.qs.subscribe(e=>{f(e)});return()=>e.unsubscribe()},[]),(0,a.useEffect)(()=>{if(c&&y.current){let e=y.current.querySelector('[data-testid="score-section-'.concat(c,'"]'));e&&setTimeout(()=>{e.scrollIntoView({behavior:"smooth",block:"start"})},100)}},[c]),{scores:i,specificScoreId:c,candidateId:o,unlinkRst:l,resetRst:r,handleAddSelfAssessment:d,localScores:p,expandedSections:v,scrollContainerRef:y,handleUnlinkRstClick:e=>{h.Lx.openDialog("confirmation",{data:{title:"Unlink Competency Matrix",message:"Are you sure you want to unlink this Competency Matrix? This action cannot be undone.",confirmText:"Unlink",cancelText:"Cancel",onConfirm:async()=>{if(l)try{null==g||g(!0,"Unlinking Competency Matrix..."),await l(e),m.oR.success("Competency Matrix Unlinked",{description:"Competency Matrix has been unlinked successfully"})}catch(t){let e=t instanceof Error?t.message:"Failed to unlink Competency Matrix";m.oR.error("Unlink Failed",{description:e})}finally{null==g||g(!1)}}}})},handleResetRstClick:e=>{h.Lx.openDialog("confirmation",{data:{title:"Reset Assessment Progress",message:"Are you sure you want to reset this assessment progress? This will clear all assessment data and cannot be undone.",confirmText:"Reset",cancelText:"Cancel",onConfirm:async()=>{if(r)try{null==g||g(!0,"Resetting Competency Matrix..."),await r(e),m.oR.success("Competency Matrix Reset",{description:"Competency Matrix has been reset successfully"})}catch(t){let e=t instanceof Error?t.message:"Failed to reset Competency Matrix";m.oR.error("Reset Failed",{description:e})}finally{null==g||g(!1)}}}})},handleCancel:()=>{var e;null==s||null==(e=s.closeModal)||e.call(s)},handleAdd:()=>{if(d)d();else if(o&&x){let e=p.map(e=>e.id);h.Lx.openDrawer("share-rst",{anchor:"right",width:540,customContentStyle:{backgroundColor:"white",paddingTop:0,height:"100vh",display:"flex",flexDirection:"column"},showCloseButton:!1,data:{candidateId:o,linkedRstIds:e,modalDescription:"Select the assessment you want to share with candidate to evaluate the performance.",onSuccess:x}})}},handleShareClick:(e,t)=>{var n,a;null==s||null==(n=s.closeModal)||n.call(s),void 0!==window&&(null==(a=window.open("/assessments/".concat(e,"?candidate_id=").concat(t,"&isCandidate=true"),"_blank"))||a.focus())},toggleSection:e=>{let t=new Set(v);t.has(e)?t.delete(e):t.add(e),b(t)},hasSelfAssessmentData:n}}({data:t});return s&&0!==s.length?(0,n.jsxs)("div",{className:"h-full flex flex-col relative",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between py-3 bg-white",children:[(0,n.jsx)("h3",{className:"text-lg font-semibold text-card-foreground","data-testid":"modal-title",children:"Competency Self Assessment"}),(0,n.jsx)("div",{className:"flex items-center gap-3",children:(0,n.jsx)("button",{onClick:y,className:"p-2 rounded-lg cursor-pointer","data-testid":"remove-section-button",children:(0,n.jsx)(o.A,{className:"h-4 w-4 text-icon-primary"})})})]}),(0,n.jsx)("div",{className:"px-3 py-2",children:(0,n.jsx)("button",{onClick:N,className:"text-sm text-card-foreground hover:text-card-foreground
1/80 font-medium cursor-pointer flex items-center gap-1","data-testid":"add-new-self-assessment",children:"+ Add new"})}),(0,n.jsx)("div",{ref:f,className:"flex-1 overflow-y-auto py-3",children:s.map((e,t)=>{let a=i.mW[e.status],{textColor:o,bgColor:m}=(e=>{switch(e){case i.Lq.COMPLETED:return{textColor:"#1cba2f",bgColor:"#1cba2f33"};case i.Lq.IN_PROGRESS:return{textColor:"#f67f00",bgColor:"#f67f0033"};case i.Lq.PENDING:return{textColor:"#001b50",bgColor:"#001b5033"};default:return{textColor:"#5c5c5e",bgColor:"#5c5c5e33"}}})(e.status);return(0,n.jsx)(c.default,{title:e.templateName,isExpanded:p.has(e.id),onToggle:()=>C(e.id),dataTestId:"score-section-".concat(e.id),className:"".concat(t<s.length-1?"mb-3":""," ").concat(p.has(e.id)?"bg-text-stroke":""),triggerClassName:"font-bold text-spacer16",iconsSlot:(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("div",{title:"Reset",children:(0,n.jsx)(l.A,{icon:"".concat(r.M9,"#refresh_icon"),width:20,height:20,color:"var(--color-icon-primary)",className:"cursor-pointer",onClick:()=>b(e.id)})}),(0,n.jsx)("div",{title:"Unlink",children:(0,n.jsx)(l.A,{icon:"".concat(r.Rt,"#link_icon"),width:20,height:20,color:"var(--color-icon-primary)",className:"cursor-pointer",onClick:()=>v(e.id)})}),(0,n.jsx)("div",{title:"Share",children:(0,n.jsx)(l.A,{icon:"".concat(r.wp,"#share_icon"),width:20,height:20,color:"var(--color-icon-primary)",className:"cursor-pointer mr-2",onClick:()=>j(e.id,g||""),"data-testid":"share-assessment-".concat(e.id)})})]}),children:(0,n.jsx)("div",{className:"p-6 rounded-lg bg-white",children:(0,n.jsxs)("div",{className:"mb-6",children:[(0,n.jsxs)("div",{className:"mb-4 flex items-center justify-between",children:[(0,n.jsx)("span",{className:"inline-flex items-center px-3 py-1 rounded-md text-xs font-medium",style:{color:o,backgroundColor:m},"data-testid":"status-badge-".concat(e.id),children:a}),e.submittedAt&&(0,d.Lo)(e.submittedAt)&&(0,n.jsxs)("div",{className:"text-xs text-text-secondary","data-testid":"submitted-date-".concat(e.id),children:[(0,n.jsx)("span",{className:"font-medium",children:"Submitted on:"})," ",(0,n.jsx)("span",{children:(0,d.Lo)(e.submittedAt)})]})]}),"status"in e&&e.status===i.Lq.PENDING?(0,n.jsxs)("div",{className:"space-y-4",children:[(0,n.jsx)("div",{className:"mb-4",children:(0,n.jsxs)("p",{className:"text-sm text-text-secondary leading-relaxed","data-testid":"pending-message-".concat(e.id),children:["Awaiting completion. Candidate has been Invited to take the"," ",e.templateName,". Scores will update once submitted."]})}),e.sentOn&&(0,n.jsxs)("div",{className:"text-sm text-text-secondary","data-testid":"sent-date-".concat(e.id),children:[(0,n.jsx)("span",{className:"font-medium",children:"Sent On:"})," ",(0,d.Lo)(e.sentOn)]})]}):(0,n.jsx)(n.Fragment,{children:e.completionSummary&&e.completionSummary.domains.length>0?(0,n.jsx)("div",{className:"space-y-4 mt-4",children:e.completionSummary.domains.map(e=>{let t=e.completed_competencies/e.total_competencies*100;return(0,n.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,n.jsx)("span",{className:"text-s text-text-secondary shrink-0","data-testid":"detailed-score-label-".concat(e.domain_name),children:e.domain_name}),(0,n.jsxs)("div",{className:"flex items-center gap-3 flex-1",children:[(0,n.jsx)("div",{className:"w-full bg-gray-200 rounded-full h-2",children:(0,n.jsx)("div",{className:"h-2 rounded-full ".concat(x(t>=80?"success":t>=50?"brand-second":t>=20?"brand-4th":"default")),style:{width:"".concat(t,"%")}})}),(0,n.jsxs)("span",{className:"text-s font-medium text-text-primary shrink-0","data-testid":"detailed-score-fraction-".concat(e.domain_name),children:[e.completed_competencies,"/",e.total_competencies]})]})]},e.domain_name)})}):"detailedScores"in e&&e.detailedScores&&e.detailedScores.length>0&&(0,n.jsx)("div",{className:"space-y-4 mt-4",children:e.detailedScores.map(e=>{let t=e.checked/e.total*100;return(0,n.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,n.jsx)("span",{className:"text-s text-text-secondary shrink-0","data-testid":"detailed-score-label-".concat(e.id),children:e.label}),(0,n.jsxs)("div",{className:"flex items-center gap-3 flex-1",children:[(0,n.jsx)("div",{className:"w-full bg-gray-200 rounded-full h-2",children:(0,n.jsx)("div",{className:"h-2 rounded-full ".concat(x(e.color)),style:{width:"".concat(t,"%")}})}),(0,n.jsxs)("span",{className:"text-s font-medium text-text-primary shrink-0","data-testid":"detailed-score-fraction-".concat(e.id),children:[e.checked,"/",e.total]})]})]},e.id)})})})]})})},e.id)})})]}):(0,n.jsx)("div",{className:"p-6 text-center",children:(0,n.jsx)("p",{className:"text-text-secondary","data-testid":"no-scores-message",children:"No self assessment scores available."})})}},97610:(e,t,s)=>{s.d(t,{KG:()=>n,Lq:()=>c,Vt:()=>i,eR:()=>a,mW:()=>o});var n=function(e){return e.RESUME="resume",e.COVER_LETTER="cvletter",e.OTHER="others",e}({});let a={RESUME:"resume",COVER_LETTER:"cvletter",OTHER:"others"},i={resume:"Resume",cvletter:"Cover Letter",others:"Other"};var c=function(e){return e.PENDING="Pending",e.IN_PROGRESS="In progress",e.COMPLETED="Completed",e}({});let o={Pending:"Not Started","In progress":"In progress",Completed:"Completed"}}}]);

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.