PageSourceSearch

https://xyrus.ai/_next/static/chunks/6806.716ecd558912cf2d.js

js xyrus.ai collected 2026-10-05 15:10:38 UTC 6,201 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6806],{15992:(e,s,a)=>{a.d(s,{A7:()=>y,DI:()=>p,Dz:()=>x,M9:()=>r,Rt:()=>l,Tm:()=>m,V_:()=>h,Wl:()=>n,bR:()=>i,cZ:()=>g,ds:()=>u,h2:()=>c,lU:()=>f,oW:()=>o,sJ:()=>v,wp:()=>d,z5:()=>t});let t="/images/icons/pencil-edit.svg",i="/images/icons/phone-icon.svg",n="/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",g="/images/icons/document-icon.svg",u="/images/icons/right-arrow-icon.svg",h="/images/icons/linkedinIcon.svg",x="/images/icons/scheduled-calendar-icon.svg",p="/images/icons/placeholder-no-engagements.svg",v="/images/icons/impersonate-user-icon.svg",f="/images/icons/UserContactsExpand.svg",y="/images/client/client-information-circle.svg"},46806:(e,s,a)=>{a.r(s),a.d(s,{default:()=>m});var t=a(95155),i=a(12115),n=a(27992),c=a(65229),o=a(28990),l=a(15992),r=a(18720),d=a(75557);function m(e){let{data:s}=e,{scores:a,candidateId:m,expandedSections:g,scrollContainerRef:u,handleCancel:h,handleShareClick:x,toggleSection:p,getModalTitle:v}=function(e){var s;let{data:a}=e,t=e=>null!==e&&"object"==typeof e&&"scores"in e&&Array.isArray(e.scores),n=t(a)?a.scores:void 0,c=t(a)?a.specificScoreId:void 0,o=t(a)?a.candidateId:void 0,l=!!t(a)&&(a.isUpdating||!1),d=t(a)?a.linkRst:void 0,m=!!t(a)&&(a.isLinkingRst||!1),g=t(a)?a.linkSingleRst:void 0,u=!!t(a)&&(a.isLinkingSingleRst||!1),h=t(a)?a.onSuccess:void 0,[x,p]=(0,i.useState)(new Set([c||(null==n||null==(s=n[0])?void 0:s.id)||""])),[v,f]=(0,i.useState)(new Set),[y,b]=(0,i.useState)(!1),j=(0,i.useRef)(null);(0,i.useEffect)(()=>{if(c&&j.current){let e=j.current.querySelector('[data-testid="score-section-'.concat(c,'"]'));e&&setTimeout(()=>{e.scrollIntoView({behavior:"smooth",block:"start"})},100)}},[c]);let N=async()=>{if(0===v.size)return void r.oR.error("Please select at least one Competency Matrix to share");if(!d)return void r.oR.error("Unable to share Competency Matrices. Please try again.");try{var e;b(!0);let s=Array.from(v);await d(s),r.oR.success("Competency Matrices shared successfully!"),h&&h(),null==a||null==(e=a.closeModal)||e.call(a)}catch(e){r.oR.error("Failed to share Competency Matrices. Please try again.")}finally{b(!1)}},w=async e=>{if(!g)return void r.oR.error("Unable to link Competency Matrix. Please try again.");try{await g(e),r.oR.success("Competency Matrix linked successfully!"),h&&h()}catch(e){r.oR.error("Failed to link Competency Matrix. Please try again.")}};return{scores:n,specificScoreId:c,candidateId:o,isUpdating:l,linkRst:d,isLinkingRst:m,linkSingleRst:g,isLinkingSingleRst:u,onSuccess:h,expandedSections:x,selectedScores:v,isSharing:y,scrollContainerRef:j,handleSave:N,handleCancel:()=>{var e;null==a||null==(e=a.closeModal)||e.call(a)},handleAdd:()=>{},handleLinkSingleRst:w,handleShareClick:(e,s)=>{var t,i;null==a||null==(t=a.closeModal)||t.call(a),void 0!==window&&(null==(i=window.open("/assessments/".concat(e,"?candidate_id=").concat(s,"&isAi=true&isCandidate=false"),"_blank"))||i.focus())},toggleSection:e=>{let s=new Set(x);s.has(e)?s.delete(e):s.add(e),p(s)},toggleScoreSelection:e=>{let s=new Set(v);s.has(e)?s.delete(e):s.add(e),f(s)},isScoreSelected:e=>v.has(e),getModalTitle:()=>v.size>0?"Share Assessment":"xyrus match",hasAIMatchScoresData:t}}({data:s});return a&&0!==a.length?(0,t.jsxs)("div",{className:"h-full flex flex-col",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between py-3 bg-white",children:[(0,t.jsx)("h3",{className:"text-lg font-semibold text-card-foreground",children:v()}),(0,t.jsx)("div",{className:"flex items-center gap-3",children:(0,t.jsx)("button",{onClick:h,className:"p-2 rounded-lg cursor-pointer","data-testid":"remove-section-button",children:(0,t.jsx)(c.A,{className:"h-4 w-4 text-icon-primary"})})})]}),(0,t.jsx)("div",{ref:u,className:"flex-1 overflow-y-auto py-3",children:null==a?void 0:a.map((e,s)=>(0,t.jsxs)(n.default,{title:e.templateName,isExpanded:g.has(e.id),onToggle:()=>p(e.id),dataTestId:"score-section-".concat(e.id),className:"".concat(s<a.length-1?"mb
1-3":""," ").concat(g.has(e.id)?"bg-text-stroke":""),triggerClassName:"font-bold text-spacer16",iconsSlot:(0,t.jsx)(o.A,{icon:"".concat(l.wp,"#share_icon"),width:20,height:20,color:"var(--color-icon-primary)",className:"cursor-pointer mr-2",onClick:()=>x(e.id,m||""),"data-testid":"share-assessment-".concat(e.id)}),children:[(0,t.jsxs)("div",{className:"p-6 rounded-lg bg-white",children:[(0,t.jsx)("div",{className:"mb-6",children:(0,t.jsxs)("div",{className:"text-spacer40 font-semibold text-brand-primary mb-4","data-testid":"score-percentage-".concat(e.id),children:[e.score,"%"]})}),e.aicompletionSummary&&e.aicompletionSummary.length>0&&(0,t.jsx)("div",{className:"space-y-4 mt-4",children:e.aicompletionSummary.map((e,s)=>{var a;return(0,t.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,t.jsx)("span",{className:"text-s text-text-secondary shrink-0","data-testid":"completion-summary-label-".concat(e.domain_name),children:e.domain_name}),(0,t.jsxs)("div",{className:"flex items-center gap-3 flex-1",children:[(0,t.jsx)("div",{className:"w-full bg-gray-200 rounded-full h-2",children:(0,t.jsx)("div",{className:"h-2 rounded-full ".concat((a=e.score_percentage)>=80?"bg-success-solid":a>=50?"bg-brand-4th":"bg-brand-2nd"),style:{width:"".concat(e.score_percentage,"%")}})}),(0,t.jsxs)("span",{className:"text-s font-medium text-text-primary shrink-0","data-testid":"completion-summary-percentage-".concat(e.domain_name),children:[Math.round(e.score_percentage),"%"]})]})]},"".concat(e.domain_name,"-").concat(s))})})]}),(0,t.jsx)("div",{className:"",children:(0,t.jsxs)("div",{className:"text-sm text-text-secondary flex justify-between mt-1",children:["Updated on: ",(0,t.jsx)("br",{}),(0,t.jsx)("span",{className:"font-medium text-card-foreground",children:(0,d.r6)((null==e?void 0:e.updated_at)||"")})]})})]},e.id))})]}):(0,t.jsx)("div",{className:"p-6 text-center",children:(0,t.jsx)("p",{className:"text-text-secondary",children:"No xyrus match available."})})}}}]);

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.