PageSourceSearch

https://xyrus.ai/_next/static/chunks/39.79deeb758f945cb5.js

js xyrus.ai collected 2026-10-05 15:08:57 UTC 14,950 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39],{24033:(e,t,l)=>{l.d(t,{A:()=>n});let n=(0,l(71847).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},27937:(e,t,l)=>{l.d(t,{A:()=>n});let n=(0,l(71847).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},40039:(e,t,l)=>{l.r(t),l.d(t,{default:()=>u});var n=l(95155),s=l(12115),r=l(99620),a=l(5134),i=l(34217),c=l(24033),o=l(27937),d=l(45828),m=l(82180),p=l(20063);function x(e){if(!e||!e.trim())return e;let t=e&&e.trim()?e.split(/\n/).map(e=>e.trim()).filter(Boolean).map(e=>/^\s*[-*]\s+/.test(e)||/^\s*\d+\.\s+/.test(e)?e:"- ".concat(e)).join("\n"):e;return(0,n.jsx)(r.oz,{remarkPlugins:[a.A,i.A],components:{ul:e=>{let{children:t}=e;return(0,n.jsx)("ul",{className:"list-disc pl-4 ",children:t})},ol:e=>{let{children:t}=e;return(0,n.jsx)("ol",{className:"list-decimal pl-4 space-y-2",children:t})},li:e=>{let{children:t}=e;return(0,n.jsx)("li",{className:"text-xs text-text-primary",children:t})},p:e=>{let{children:t}=e;return(0,n.jsx)("p",{className:"text-xs text-text-primary mb-2 last:mb-0",children:t})},strong:e=>{let{children:t}=e;return(0,n.jsx)("strong",{children:t})}},children:t})}function h(e,t){let l=e.trim().length>0,s=t.trim().length>0;return l||s?(0,n.jsxs)("div",{children:[l?(0,n.jsx)("div",{children:x(e)}):null,s?(0,n.jsx)("div",{className:"mt-4",children:x(t)}):null]}):null}
1function u(e){let{competencies:t,expandedClusters:l,expandedCompetencies:r,onClusterToggle:a,onCompetencyToggle:i,hasClusters:c=!1,levels:o,searchMatches:d,highlightText:m,enableInteractions:x=!1,rationale:h=!1,selectedLevelByCompetency:u={},onCompetencyLevelToggle:b,onOpenNote:v,notesByCompetency:y={},updatedNotesByCompetency:f={},selectedCompetencies:j,onCompetencySelectionChange:N,noInput:w=!1}=e,C=(0,p.useSearchParams)().get("isCandidate"),k=(0,s.useCallback)(e=>{let t=[];return e.forEach(e=>{t.push(e.id),e.competencies&&t.push(...k(e.competencies))}),t},[]),S=(0,s.useCallback)((e,t)=>{for(let l of e){if(l.id===t)return l;if(l.competencies){let e=S(l.competencies,t);if(e)return e}}return null},[]),T=(0,s.useCallback)(function(e,t){let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(let n of e){if(n.id===t)return l;if(n.competencies&&n.competencies.length>0){let e=T(n.competencies,t,n.id);if(e)return e}}return null},[]),E=(0,s.useCallback)(e=>{let t=[],l=e=>{e.competencies&&e.competencies.length>0?e.competencies.forEach(l):t.push(e.id)};return l(e),t},[]),H=(0,s.useMemo)(()=>j||new Set,[j]),[_,A]=(0,s.useState)(new Set),M=(0,s.useCallback)((e,l)=>{let n=new Set(H),s=S(t,e);if(l)n.add(e),s&&s.competencies&&s.competencies.length>0&&E(s).forEach(e=>n.add(e)),A(t=>{let l=new Set(t);return l.delete(e),l});else if(n.delete(e),s&&s.competencies&&s.competencies.length>0){let e=k(s.competencies);e.forEach(e=>n.delete(e)),A(t=>{let l=new Set(t);return e.forEach(e=>l.add(e)),l})}else{A(t=>new Set(t).add(e));let l=T(t,e);if(l){let e=S(t,l);e&&(E(e).some(e=>n.has(e))||n.delete(l))}}null==N||N(n)},[H,N,t,S,k,T,E]);(0,s.useEffect)(()=>{0!==_.size&&b&&(_.forEach(e=>{let l=S(t,e);l&&o.forEach(e=>{b(l.name,e.level,!1,null)})}),A(new Set))},[_,b,u,o,t,S]);let L=(0,s.useRef)(null),[B,I]=(0,s.useState)("75vh");return(0,s.useEffect)(()=>{let e=()=>{if(L.current){let e=L.current.getBoundingClientRect(),t=window.innerHeight,l=Math.max(400,Math.min(t-e.top-32,.75*t));I("".concat(l,"px"))}};e(),window.addEventListener("resize",e);let t=setTimeout(e,100);return()=>{window.removeEventListener("resize",e),clearTimeout(t)}},[]),(0,n.jsx)("div",{ref:L,className:"bg-text-bg rounded-lg border border-t-2 mb-8 w-full",style:{borderTopColor:"var(--color-accent-15)"},children:(0,n.jsx)("div",{className:"overflow-auto w-full",style:{height:B},children:(0,n.jsxs)("table",{className:"w-full border-collapse relative",children:[(0,n.jsx)("thead",{className:"bg-gray-200 sticky top-0 z-10",children:(0,n.jsxs)("tr",{className:"border-b border-text-stroke w-10",children:[(0,n.jsx)("th",{className:"text-left py-5 px-3 font-semibold text-s text-brand-primary border border-text-stroke",style:{width:"20%",minHeight:"80px"},children:c?"Cluster":"Competency"}),null==o?void 0:o.map(e=>(0,n.jsx)("th",{className:"text-left px-3 font-semibold text-s border border-text-stroke",style:{width:"".concat((h?50:80)/o.length,"%"),minHeight:"80px"},children:(0,n.jsx)("span",{className:"text-text-primary",children:e.title})},e.title)),h?(0,n.jsx)("th",{className:"text-left py-5 px-3 font-semibold text-s text-brand-primary border border-text-stroke",style:{width:"30%",minHeight:"80px"},children:"Rationale"}):null]})}),(0,n.jsx)("tbody",{children:t.map(e=>(0,n.jsx)(g,{competency:e,expandedClusters:l,expandedCompetencies:r,onClusterToggle:a,onCompetencyToggle:i,levels:o,searchMatches:d||new Map,highlightText:m||(e=>e),enableInteractions:x,rationale:h,selectedLevelByCompetency:u,...b?{onCompetencyLevelToggle:b}:{},...v?{onOpenNote:v}:{},notesByCompetency:y,updatedNotesByCompetency:f,selectedCompetencies:H,onCompetencySelectionToggle:M,noInput:w,isCandidate:C},e.id))})]})})})}function g(e){var t,l,s,r,a;let{competency:i,expandedClusters:p,expandedCompetencies:x,onClusterToggle:u,onCompetencyToggle:b,isNested:v=!1,parentEnabled:y=!0,levels:f,searchMatches:j,highlightText:N,enableInteractions:w=!1,selectedLevelByCompetency:C={},onCompetencyLevelToggle:k,onOpenNote:S,notesByCompetency:T={},updatedNotesByCompetency:E={},selectedCompetencies:H=new Set,onCompetencySelectionToggle:_,noInput:A=!1,isCandidate:M=null,rationale:L=!1}=e,B=i.competencies&&i.competencies.length>0,I=p.has(i.id),R=x.has(i.id),{expandedDescriptions:P,expandedNotes:z,handleViewMore:q,toggleNoteExpansion:D}=(0,d.H)(),F=null!=(l=null==E?void 0:E[i.name])?l:"",V="string"==typeof i.updated_note&&null!=(s=i.updated_note)?s:"",G=F||V,J=null!=(r=null==T?void 0:T[i.name])?r:"",K=J&&J.trim().length>0||G&&G.trim().length>0,O=H.has(i.id),Q=y&&O,U=!Q&&!A;
1if(B&&i.competencies){let e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("tr",{className:"border-b border-text-stroke",children:[(0,n.jsx)("td",{className:"py-5 px-3 border border-text-stroke ".concat(U?"opacity-50 bg-gray-50":""),style:{width:"20%",minHeight:"80px"},children:(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[!A&&(0,n.jsxs)(m.Tooltip,{children:[(0,n.jsx)(m.TooltipTrigger,{asChild:!0,children:(0,n.jsx)("input",{type:"checkbox",className:"h-3 w-3 rounded-sm ring-1 ring-text-stroke focus:ring-2 ".concat(w?"cursor-pointer":"cursor-default"),checked:Q,onClick:e=>e.stopPropagation(),onChange:()=>{w&&(null==_||_(i.id,!O))},"aria-label":"Select cluster ".concat(i.name)})}),(0,n.jsx)(m.TooltipContent,{children:w?Q?"Deselect if not applicable":"Select if applicable":"Assessment completed. Selection cannot be made."})]}),(0,n.jsxs)("button",{onClick:()=>u(i.id),className:"flex items-center gap-2 text-left font-medium text-s text-text-primary hover:text-brand-primary transition-colors cursor-pointer",children:[I?(0,n.jsx)(c.A,{className:"w-4 h-4"}):(0,n.jsx)(o.A,{className:"w-4 h-4"}),(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:j&&j.has(i.id)&&(null==(a=j.get(i.id))?void 0:a.has("name"))?(e=i.name,N?N(e):e):i.name}}),i.competencies&&(0,n.jsxs)("span",{className:"text-text-placeholder font-normal",children:["(",i.competencies.length.toString().padStart(2,"0"),")"]})]})]})}),null==f?void 0:f.map(e=>(0,n.jsx)("td",{className:"py-5 px-3 text-center border border-text-stroke transition-colors ".concat(U?"opacity-50 bg-gray-50":"hover:bg-text-stroke"),style:{width:"".concat((L?K?40:55:80)/f.length,"%"),minHeight:"80px"},children:(0,n.jsx)("span",{className:"text-text-primary text-xs",children:"-"})},e.level)),L?(0,n.jsx)("td",{className:"py-5 px-3 text-left border border-text-stroke align-top ".concat(U?"opacity-50 bg-gray-50":""),style:{width:K?"40%":"20%",minHeight:"80px"},children:K?(0,n.jsxs)("div",{className:"text-xs text-text-primary",children:[(0,n.jsx)("div",{className:z.has(i.id)?"whitespace-normal":"line-clamp-3",children:h(J,G)}),(0,n.jsxs)("div",{className:"mt-1 flex items-center gap-3",children:["".concat(J).concat(G).length>180?(0,n.jsx)("button",{className:"text-brand-primary hover:underline cursor-pointer",onClick:()=>D(i.id),children:z.has(i.id)?"view less":"view more"}):(0,n.jsx)("span",{className:"hidden"}),w&&(0,n.jsx)("button",{className:"text-brand-primary hover:underline cursor-pointer",onClick:()=>S&&S(i.id,i.name),children:"Edit Rationale"})]})]}):w?(0,n.jsx)("button",{className:"text-xs text-brand-primary hover:underline cursor-pointer",onClick:()=>S&&S(i.id,i.name),children:"Add Rationale"}):(0,n.jsx)("span",{className:"text-xs text-text-placeholder",children:"-"})}):null]}),I&&i.competencies.map(e=>(0,n.jsx)(g,{competency:e,expandedClusters:p,expandedCompetencies:x,onClusterToggle:u,onCompetencyToggle:b,isNested:!0,parentEnabled:Q,levels:f,searchMatches:j||new Map,highlightText:N||(e=>e),enableInteractions:w,rationale:L,selectedLevelByCompetency:C,...k?{onCompetencyLevelToggle:k}:{},...S?{onOpenNote:S}:{},notesByCompetency:T,updatedNotesByCompetency:E,selectedCompetencies:H,onCompetencySelectionToggle:_,noInput:A,isCandidate:M},e.id))]})}return(0,n.jsxs)("tr",{className:"border-b border-text-stroke",children:[(0,n.jsxs)("td",{className:"py-5 px-3 border border-text-stroke ".concat(U?"opacity-50 bg-gray-50":""," ").concat(y||A?"":"opacity-50"),style:{width:"20%",minHeight:"80px"},children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",style:{paddingLeft:v?"2rem":"0"},children:[!A&&(0,n.jsxs)(m.Tooltip,{children:[(0,n.jsx)(m.TooltipTrigger,{asChild:!0,children:(0,n.jsx)("input",{type:"checkbox",className:"h-3 w-3 rounded-sm ring-1 ring-text-stroke focus:ring-2 ".concat(y?w?"cursor-pointer":"cursor-default":"cursor-not-allowed"),checked:Q,disabled:!y,onClick:e=>e.stopPropagation(),onChange:()=>{y&&w&&(null==_||_(i.id,!O))},"aria-label":"Select competency ".concat(i.name)})}),(0,n.jsx)(m.TooltipContent,{children:w?Q?"Deselect if not applicable":"Select if applicable":"Assessment completed. Selection cannot be made."})]}),(0,n.jsxs)("button",{onClick:()=>b(i.id),className:"flex items-center gap-2 text-left font-medium text-s ".concat(y||A?"text-text-primary":"text-text-placeholder"," hover:text-brand-primary transition-colors cursor-pointer"),children:[R?(0,n.jsx)(c.A,{className:"w-4 h-4"}):(0,n.jsx)(o.A,{className:"w-4 h-4"}),(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:j&&N&&j.has(i.id)&&(null==(t=j.get(i.id))?void 0:t.has("name"))?N(i.name):i.name}})]})]}),R&&i.description&&(0,n.jsx)("p",{className:"text-xs text-text-placeholder mt-1 ml-6",style:{paddingLeft:v?"2rem":"0"},children:i.description})]}),null==f?void 0:f.map(e=>{var t,l,s;let r=(e=>{let t=i.levels.find(t=>t.level===e);return t?t.description:""})(e.level),a=C[i.name]===e.level,c=!Q;return(0,n.jsx)("td",{className:"py-5 px-3 border border-text-stroke transition-colors align-top relative ".concat(a?"false"===M?"bg-[#b5d0ef]":"bg-success-solid/20":""," ").concat(w&&!c?"hover:bg-text-stroke cursor-pointer":"cursor-default"," ").concat(c&&!A?"opacity-50 bg-gray-50":""),style:{width:"".concat((L?K?50:58:80)/f.length,"%"),minHeight:"80px"},onClick:t=>{if(!w||!k||c||t.target.closest("input, button, a"))return;let l=a?null:e.level;k(i.name,e.level,!a,l)},children:(0,n.jsxs)("div",{className:"text-left text-xs pt-1 ".concat(c&&!A?"text-text-placeholder":"text-text-primary"),children:[(0,n.jsx)("div",{className:" items-start gap-2 inline-block mr-1 absolute top-0 right-0",children:(0,n.jsx)("button",{type:"button",className:"mt-0.5 h-3.5 w-3.5 inline-flex items-center justify-center rounded-sm ".concat(c&&!A?"cursor-not-allowed opacity-50":w?"cursor-pointer":"cursor-default"),disabled:c,onClick:t=>{if(t.stopPropagation(),c||!w)return;let l=!a,n=l?e.level:null;null==k||k(i.name,e.level,l,n)},"aria-pressed":a,"aria-label":"Select ".concat(e.level," for ").concat(i.name),children:a?(0,n.jsx)("svg",{className:"h-3.5 w-3.5 mt-1 ".concat("false"===M?"text-brand-4th":"text-success-solid"),fill:"currentColor",viewBox:"0 0 20 20",children:(0,n.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"})}):(0,n.jsx)("span",{className:"h-3.5 w-3.5"})})}),R?(0,n.jsxs)("span",{className:"leading-relaxed",children:[P.has(e.level)?j&&N&&j.has(i.id)&&(null==(t=j.get(i.id))?void 0:t.has("level-".concat(e.level)))?(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:N(r)}}):r:j&&N&&j.has(i.id)&&(null==(l=j.get(i.id))?void 0:l.has("level-".concat(e.level)))?(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:N(r.length>100?"".concat(r.substring(0,100),"..."):r)}}):r.length>100?"".concat(r.substring(0,100),"..."):r,r.length>100?(0,n.jsx)("button",{className:"ml-1 text-brand-primary hover:underline text-xs cursor-pointer",onClick:t=>{t.stopPropagation(),q(e.level)},children:P.has(e.level)?"view less":"view more"}):null]}):(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:j&&N&&j.has(i.id)&&(null==(s=j.get(i.id))?void 0:s.has("level-".concat(e.level)))?N(r.length>20?"".concat(r.substring(0,25),"..."):r):r.length>20?"".concat(r.substring(0,25),"..."):r}}),r.length>20?(0,n.jsx)("button",{className:"ml-1 text-brand-primary hover:underline text-xs cursor-pointer",onClick:t=>{t.stopPropagation(),P.has(e.level)||q(e.level),b(i.id)},children:P.has(e.level)&&R?"view less":"view more"}):null]})]})},e.level)}),L?(0,n.jsx)("td",{className:"py-5 px-3 border border-text-stroke align-top ".concat(U?"opacity-50 bg-gray-50":""),style:{width:J?"30%":"15%",minHeight:"80px"},children:K?(0,n.jsxs)("div",{className:"text-xs text-text-primary",children:[(0,n.jsx)("div",{className:z.has(i.id)?"whitespace-normal":"line-clamp-3",children:h(J,G)}),(0,n.jsxs)("div",{className:"mt-1 flex items-center gap-3",children:["".concat(J).concat(G).length>20?(0,n.jsx)("button",{className:"text-brand-primary hover:underline cursor-pointer",onClick:()=>D(i.id),children:z.has(i.id)?"view less":"view more"}):(0,n.jsx)("span",{className:"hidden"}),w&&(0,n.jsx)("button",{className:"text-brand-primary/80 hover:underline cursor-pointer hover:text-brand-4th",onClick:()=>S&&S(i.id,i.name),children:"Edit Rationale"})]})]}):w?(0,n.jsx)("button",{className:"text-xs text-brand-primary hover:underline cursor-pointer",onClick:()=>S&&S(i.id,i.name),children:"Add Rationale"}):(0,n.jsx)("span",{className:"text-xs text-text-placeholder",children:"-"})}):null]})}},45828:(e,t,l)=>{l.d(t,{H:()=>s});var n=l(12115);let s=(e,t)=>
1{let[l,s]=(0,n.useState)(null!=e?e:new Set),[r,a]=(0,n.useState)(null!=t?t:new Set);return{expandedDescriptions:l,expandedNotes:r,handleViewMore:(0,n.useCallback)(e=>{s(t=>{let l=new Set(t);return l.has(e)?l.delete(e):l.add(e),l})},[]),toggleNoteExpansion:(0,n.useCallback)(e=>{a(t=>{let l=new Set(t);return l.has(e)?l.delete(e):l.add(e),l})},[])}}}}]);

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.