1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,2420],{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),o=l(24033),c=l(27937),d=l(45828),p=l(82180),m=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:o=!1,levels:c,searchMatches:d,highlightText:p,enableInteractions:x=!1,rationale:h=!1,selectedLevelByCompetency:u={},onCompetencyLevelToggle:b,onOpenNote:f,notesByCompetency:y={},updatedNotesByCompetency:v={},selectedCompetencies:j,onCompetencySelectionChange:N,noInput:w=!1}=e,C=(0,m.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),L=(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&&c.forEach(e=>{b(l.name,e.level,!1,null)})}),A(new Set))},[_,b,u,c,t,S]);
1let M=(0,s.useRef)(null),[z,B]=(0,s.useState)("75vh");return(0,s.useEffect)(()=>{let e=()=>{if(M.current){let e=M.current.getBoundingClientRect(),t=window.innerHeight,l=Math.max(400,Math.min(t-e.top-32,.75*t));B("".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:M,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:z},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:o?"Cluster":"Competency"}),null==c?void 0:c.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)/c.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:c,searchMatches:d||new Map,highlightText:p||(e=>e),enableInteractions:x,rationale:h,selectedLevelByCompetency:u,...b?{onCompetencyLevelToggle:b}:{},...f?{onOpenNote:f}:{},notesByCompetency:y,updatedNotesByCompetency:v,selectedCompetencies:H,onCompetencySelectionToggle:L,noInput:w,isCandidate:C},e.id))})]})})})}function g(e){var t,l,s,r,a;let{competency:i,expandedClusters:m,expandedCompetencies:x,onClusterToggle:u,onCompetencyToggle:b,isNested:f=!1,parentEnabled:y=!0,levels:v,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:L=null,rationale:M=!1}=e,z=i.competencies&&i.competencies.length>0,B=m.has(i.id),I=x.has(i.id),{expandedDescriptions:R,expandedNotes:P,handleViewMore:D,toggleNoteExpansion:q}=(0,d.H)(),F=null!=(l=null==E?void 0:E[i.name])?l:"",K="string"==typeof i.updated_note&&null!=(s=i.updated_note)?s:"",O=F||K,U=null!=(r=null==T?void 0:T[i.name])?r:"",V=U&&U.trim().length>0||O&&O.trim().length>0,Z=H.has(i.id),G=y&&Z,J=!G&&!A;if(z&&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(J?"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)(p.Tooltip,{children:[(0,n.jsx)(p.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:G,onClick:e=>e.stopPropagation(),onChange:()=>{w&&(null==_||_(i.id,!Z))},"aria-label":"Select cluster ".concat(i.name)})}),(0,n.jsx)(p.TooltipContent,{children:w?G?"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:[B?(0,n.jsx)(o.A,{className:"w-4 h-4"}):(0,n.jsx)(c.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==v?void 0:v.map(e=>(0,n.jsx)("td",{className:"py-5 px-3 text-center border border-text-stroke transition-colors ".concat(J?"opacity-50 bg-gray-50":"hover:bg-text-stroke"),style:{width:"".concat((M?V?40:55:80)/v.length,"%"),minHeight:"80px"},children:(0,n.jsx)("span",{className:"text-text-primary text-xs",children:"-"})},e.level)),M?(0,n.jsx)("td",{className:"py-5 px-3 text-left border border-text-stroke align-top ".concat(J?"opacity-50 bg-gray-50":""),style:{width:V?"40%":"20%",minHeight:"80px"},children:V?(0,n.jsxs)("div",{className:"text-xs text-text-primary",children:[(0,n.jsx)("div",{className:P.has(i.id)?"whitespace-normal":"line-clamp-3",children:h(U,O)}),(0,n.jsxs)("div",{className:"mt-1 flex items-center gap-3",children:["".concat(U).concat(O).length>180?(0,n.jsx)("button",{className:"text-brand-primary hover:underline cursor-pointer",onClick:()=>q(i.id),children:P.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]}),B&&i.competencies.map(e=>(0,n.jsx)(g,{competency:e,expandedClusters:m,expandedCompetencies:x,onClusterToggle:u,onCompetencyToggle:b,isNested:!0,parentEnabled:G,levels:v,searchMatches:j||new Map,highlightText:N||(e=>e),enableInteractions:w,rationale:M,selectedLevelByCompetency:C,...k?{onCompetencyLevelToggle:k}:{},...S?{onOpenNote:S}:{},notesByCompetency:T,updatedNotesByCompetency:E,selectedCompetencies:H,onCompetencySelectionToggle:_,noInput:A,isCandidate:L},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(J?"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:f?"2rem":"0"},children:[!A&&(0,n.jsxs)(p.Tooltip,{children:[(0,n.jsx)(p.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:G,disabled:!y,onClick:e=>e.stopPropagation(),onChange:()=>{y&&w&&(null==_||_(i.id,!Z))},"aria-label":"Select competency ".concat(i.name)})}),(0,n.jsx)(p.TooltipContent,{children:w?G?"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:[I?(0,n.jsx)(o.A,{className:"w-4 h-4"}):(0,n.jsx)(c.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}})]})]}),I&&i.description&&(0,n.jsx)("p",{className:"text-xs text-text-placeholder mt-1 ml-6",style:{paddingLeft:f?"2rem":"0"},children:i.description})]}),null==v?void 0:v.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,o=!G;return(0,n.jsx)("td",{className:"py-5 px-3 border border-text-stroke transition-colors align-top relative ".concat(a?"false"===L?"bg-[#b5d0ef]":"bg-success-solid/20":""," ").concat(w&&!o?"hover:bg-text-stroke cursor-pointer":"cursor-default"," ").concat(o&&!A?"opacity-50 bg-gray-50":""),style:{width:"".concat((M?V?50:58:80)/v.length,"%"),minHeight:"80px"},onClick:t=>{if(!w||!k||o||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(o&&!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(o&&!A?"cursor-not-allowed opacity-50":w?"cursor-pointer":"cursor-default"),disabled:o,onClick:t=>{if(t.stopPropagation(),o||!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"===L?"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"})})}),I?(0,n.jsxs)("span",{className:"leading-relaxed",children:[R.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(),D(e.level)},children:R.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(),R.has(e.level)||D(e.level),b(i.id)},children:R.has(e.level)&&I?"view less":"view more"}):null]})]})},e.level)}),M?(0,n.jsx)("td",{className:"py-5 px-3 border border-text-stroke align-top ".concat(J?"opacity-50 bg-gray-50":""),style:{width:U?"30%":"15%",minHeight:"80px"},children:V?(0,n.jsxs)("div",{className:"text-xs text-text-primary",children:[(0,n.jsx)("div",{className:P.has(i.id)?"whitespace-normal":"line-clamp-3",children:h(U,O)}),(0,n.jsxs)("div",{className:"mt-1 flex items-center gap-3",children:["".concat(U).concat(O).length>20?(0,n.jsx)("button",{className:"text-brand-primary hover:underline cursor-pointer",onClick:()=>q(i.id),children:P.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})},[])}}},82180:(e,t,l)=>{l.r(t),l.d(t,{Tooltip:()=>i,TooltipContent:()=>c,TooltipProvider:()=>a,TooltipTrigger:()=>o});var n=l(95155);l(12115);var s=l(47520),r=l(25016);function a(e){let{delayDuration:t=0,...l}=e;return(0,n.jsx)(s.Kq,{"data-slot":"tooltip-provider",delayDuration:t,...l})}function i(e){let{delayDuration:t,...l}=e;return(0,n.jsx)(a,{delayDuration:null!=t?t:0,children:(0,n.jsx)(s.bL,{"data-slot":"tooltip",...l})})}function o(e){let{...t}=e;return(0,n.jsx)(s.l9,{"data-slot":"tooltip-trigger",...t})}function c(e){let{className:t,sideOffset:l=0,children:a,...i}=e;return(0,n.jsx)(s.ZL,{children:(0,n.jsxs)(s.UC,{"data-slot":"tooltip-content",sideOffset:l,className:(0,r.cn)("bg-brand-primary text-white animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",t),...i,children:[a,(0,n.jsx)(s.i3,{className:"bg-brand-primary fill-brand-primary z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px]"})]})})}}}]);
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.