1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f470376d-9996-40c6-9738-3ecc8c94dce9",e._sentryDebugIdIdentifier="sentry-dbid-f470376d-9996-40c6-9738-3ecc8c94dce9")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[537],{12363:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(30772).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},18186:(e,t,a)=>{a.d(t,{Spinner:()=>o});var r=a(95155),n=a(92571),s=a(40980);function o({className:e}){return(0,r.jsx)(n.A,{className:(0,s.cn)("h-4 w-4 animate-spin text-muted-foreground",e)})}},20292:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(30772).A)("user-round-check",[["path",{d:"M2 21a8 8 0 0 1 13.292-6",key:"bjp14o"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"m16 19 2 2 4-4",key:"1b14m6"}]])},27787:(e,t,a)=>{a.d(t,{a:()=>r});let r="h-6 min-h-6 rounded-full px-2.5 text-xs font-semibold leading-none whitespace-nowrap"},29728:(e,t,a)=>{a.d(t,{N:()=>u});var r=a(95155),n=a(93744),s=a(20292),o=a(57465),l=a(52957),i=a(45160),c=a(40980),d=a(60102);let m={self:{label:"Self Review",Icon:n.A},nomination:{label:"Peer Nomination",Icon:s.A},peer:{label:"Peer Review",Icon:o.A},manager:{label:"Manager Review",Icon:l.A}},u=({phaseKey:e,className:t})=>{let{label:a,Icon:n}=m[e],s=(0,c.cn)((0,d.Ss)(e),"w-fit max-w-full min-w-0 shrink-0 flex-nowrap items-center justify-center gap-1 whitespace-nowrap py-0 pl-1.5 pr-2.5 h-6 min-h-6 leading-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:h-3.5 [&_svg]:w-3.5 [&_svg]:stroke-[1.75]");return(0,r.jsxs)(i.E,{variant:"phase-type",className:(0,c.cn)(s,t),"aria-label":`Evaluation type: ${a}`,children:[(0,r.jsx)(n,{"aria-hidden":!0}),(0,r.jsx)("span",{className:"whitespace-nowrap font-medium",children:a})]})}},31622:(e,t,a)=>{a.d(t,{m:()=>i});var r=a(95155),n=a(45160),s=a(40980),o=a(15435),l=a(27793);let i=({deadline:e,evaluationStatus:t,tone:a="urgency",timeZone:i,cycleCloseAt:c,showTime:d=!1,compact:m=!1,now:u,className:p})=>{if(null==e)return(0,r.jsx)("span",{className:"text-sm text-muted-foreground tabular-nums",children:"â"});let h=e instanceof Date?e:new Date(e);if(Number.isNaN(h.getTime()))return(0,r.jsx)("span",{className:"text-sm text-muted-foreground tabular-nums",children:"â"});let{variant:g,dateLabel:f}=function(e,t){let a=t?.now??new Date,r=t?.evaluationStatus,n=(0,o.GP)(e,"MMM d, yyyy");if(t?.tone==="neutral"||"completed"===r)return{variant:"secondary",dateLabel:n};let s=(0,l.m)(e,a);return s<0?{variant:"deadline-overdue",dateLabel:n}:s<=2?{variant:"deadline-urgent",dateLabel:n}:s<=7?{variant:"deadline-warning",dateLabel:n}:{variant:"deadline-safe",dateLabel:n}}(h,{evaluationStatus:t,tone:a,now:u}),x=u??new Date,b=(0,s.dd)({deadline:h,cycleCloseAt:c,timeZone:i,now:x}),v=(0,s.dd)({deadline:h,cycleCloseAt:c,timeZone:i,now:x,compact:!0}),w=d?b?.label??f:f,y=d?v?.label??f:f,j=m?y:w;return(0,r.jsx)(n.E,{variant:g,className:(0,s.cn)("tabular-nums",d?m?"h-6 min-w-0 max-w-full shrink! overflow-hidden whitespace-nowrap py-0 leading-none":"h-auto min-h-6 min-w-0 max-w-full shrink! whitespace-normal break-words py-1.5 leading-snug":"whitespace-nowrap",p),"aria-label":`Deadline ${w}`,title:d&&m?w:void 0,children:(0,r.jsx)("span",{className:(0,s.cn)(m?"min-w-0 truncate":void 0),children:j})})}},32192:(e,t,a)=>{function r(e){let t=(e??"").toLowerCase().trim();return"self"===t||"self_review"===t?"self":"peer"===t||"peer_review"===t||"peer_evaluation"===t||"team"===t?"peer":"manager"===t||"manager_review"===t?"manager":"peer"}a.d(t,{$B:()=>l,at:()=>o,mR:()=>s,wt:()=>r});let n={rating_with_comment:"Rating + written comment",rating_only:"Rating only",comment_only:"Written comment only"},s=[{value:"rating_with_comment",label:n.rating_with_comment},{value:"rating_only",label:n.rating_only},{value:"comment_only",label:n.comment_only}];function o(e){return"comment_only"===e?"comment_only":"rating_only"===e?"rating_only":"rating_with_comment"}function l(e){return n[o(e??void 0)]}},40537:(e,t,a)=>{a.r(t),a.d(t,{ActiveEvaluations:()=>N});var r=a(95155),n=a(12115),s=a(89239),o=a(31622),l=a(81477),i=a(15166),c=a(73321),d=a(94088),m=a(12363),u=a(78780),p=a(76721),h=a(95306),g=a(40980),f=a(69613),x=a(87897),b=a(58209),v=a(27787),w=a(29728),y=a(83301),j=a(96e3);function N({userId:e,workspaceId:t,hideAction:a=!1,className:_,tourTarget:k,tourReady:A}){let S=(0,y.U0)(),D=(0,h.tw)(e,t),B=(0,n.useMemo)(()=>S.enabled&&S.snapshot?S.snapshot.pendingProjects:D.data??[],[S.enabled,S.snapshot,D.data]),I=!S.enabled&&D.isPending&&!D.data,T=k&&A?{"data-tour":k,"data-tour-ready":"true"}:{}
1,[M,q]=(0,n.useState)(1),[C,$]=(0,n.useState)("deadline"),[P,E]=(0,n.useState)("asc"),F=(0,c.useRouter)(),z=(e,t)=>{if(e.startsWith("peer-nomination-"))return`/evaluate/${t}/nominate-peers`;let a=new URLSearchParams({assignmentId:e});return`/evaluate/${t}?${a.toString()}`},R=(0,n.useMemo)(()=>{let e=[...B];return e.sort((e,t)=>{if("project"===C)return"asc"===P?e.projectName.localeCompare(t.projectName):t.projectName.localeCompare(e.projectName);if("progress"===C){let a=(0,x.MA)(e),r=(0,x.MA)(t),n="asc"===P?a-r:r-a;return 0!==n?n:e.projectName.localeCompare(t.projectName)}let a=new Date(e.earliestDeadline).getTime(),r=new Date(t.earliestDeadline).getTime(),n="asc"===P?a-r:r-a;if(0!==n)return n;let s=e.projectName.localeCompare(t.projectName);return 0!==s?s:e.taskId.localeCompare(t.taskId)}),e},[B,C,P]),G=(0,n.useMemo)(()=>R.slice((M-1)*5,5*M),[R,M]),L=Math.max(1,Math.ceil(B.length/5)),V="px-2 lg:px-4",Z="px-2 lg:px-4",X=(0,n.useMemo)(()=>a?{cycle:38,type:20,progress:15,deadline:27}:{cycle:27,type:20,progress:15,deadline:25,action:13},[a]);(0,n.useEffect)(()=>{q(e=>Math.min(e,L))},[L]);let H=e=>{C===e?E("asc"===P?"desc":"asc"):($(e),E("asc"))},K=({field:e})=>C!==e?null:"asc"===P?(0,r.jsx)(d.A,{className:"h-4 w-4"}):(0,r.jsx)(m.A,{className:"h-4 w-4"});return I?(0,r.jsx)(i.Am,{hideAction:a,className:(0,g.cn)("relative flex flex-col",_),cardStyle:{contentVisibility:"auto",containIntrinsicSize:"260px 600px"}}):0===B.length?(0,r.jsxs)(l.Zp,{...T,className:(0,g.cn)("relative flex flex-col overflow-hidden bg-card shadow-card",_),children:[(0,r.jsx)("div",{className:"shrink-0 px-4 pb-3 pt-5 md:px-6 md:pt-6",children:(0,r.jsx)("h3",{className:"text-lg font-semibold text-foreground",children:"Evaluations To Do"})}),(0,r.jsx)("div",{className:"flex items-center justify-center border-t py-8 md:py-10 flex-1",children:(0,r.jsx)("p",{className:"text-muted-foreground text-sm",children:"No pending evaluations"})})]}):(0,r.jsxs)(l.Zp,{...T,className:(0,g.cn)("relative flex flex-col overflow-hidden bg-card shadow-card",_),children:[(0,r.jsx)("div",{className:"shrink-0 px-4 pb-3 pt-5 md:px-6 md:pt-6",children:(0,r.jsx)("h3",{className:"text-lg font-semibold text-foreground",children:"Evaluations To Do"})}),(0,r.jsx)("div",{className:"flex-1 border-t border-border lg:hidden",children:(0,r.jsx)("div",{className:"space-y-3 p-4 pb-5",children:G.map(e=>{let t=(0,x.n0)(e),n=(0,j.q_)(e.taskId);return(0,r.jsxs)("div",{className:(0,g.cn)("rounded-xl border border-border bg-muted/25 p-4 shadow-2xs",n&&"cursor-default"),children:[(0,r.jsx)("p",{className:"text-sm font-semibold leading-snug text-foreground line-clamp-3 min-w-0",title:e.projectName,children:e.projectName}),(0,r.jsxs)("div",{className:"mt-4 space-y-3 border-t border-border pt-4",children:[(0,r.jsxs)("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] items-center gap-3",children:[(0,r.jsx)("span",{className:"text-xs font-normal text-muted-foreground",children:"Type"}),(0,r.jsx)("div",{className:"min-w-0 justify-self-end",children:(0,r.jsx)(w.N,{phaseKey:e.phaseKey})})]}),(0,r.jsxs)("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] items-center gap-3",children:[(0,r.jsx)("span",{className:"text-xs font-normal text-muted-foreground",children:"Progress"}),(0,r.jsx)("div",{className:"min-w-0 justify-self-end",children:(0,r.jsx)(b.a,{flags:e,className:"whitespace-nowrap"})})]}),(0,r.jsxs)("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] items-center gap-3",children:[(0,r.jsx)("span",{className:"text-xs font-normal text-muted-foreground",children:"Deadline"}),(0,r.jsx)("div",{className:"min-w-0 justify-self-end",children:(0,r.jsx)(o.m,{deadline:e.earliestDeadline,cycleCloseAt:e.completionDate,timeZone:e.workspaceTimeZone,showTime:!0,compact:!0,className:"justify-center text-center"})})]})]}),a?null:(0,r.jsx)("div",{className:"mt-4",children:(0,r.jsx)(s.$,{variant:"getStarted",size:"sm",className:(0,g.cn)("w-full rounded-mercury-button",n&&"disabled:opacity-100!"),onClick:()=>{n||F.push(z(e.taskId,e.cycleId))},disabled:n,"aria-label":`${t} for ${e.projectName}`,children:t})})]},e.taskId)})})}),(0,r.jsx)("div",{className:"hidden min-w-0 flex-1 overflow-x-auto overflow-y-clip border-t border-border lg:block",children:(0,r.jsxs)(f.XI,{className:"min-w-[32rem] table-fixed lg:min-w-176",children:[(0,r.jsxs)("colgroup",{children:[(0,r.jsx)("col",{style:{width:`${X.cycle}%`}}),(0,r.jsx)("col",{style:{width:`${X.type}%`}}),(0,r.jsx)("col",{style:{width:`${X.progress}%`}}),(0,r.jsx)("col",{style:{width:`${X.deadline}%`}}),a?null:(0,r.jsx)("col",{style:{width:`${X.action}%`}})]}),(0,r.jsx)(f.A0,{children:(0,r.jsxs)(f.Hj,{className:"border-b-0 hover:bg-transparent",children:[(0,r.jsx)(f.nd,{className:(0,g.cn)("min-w-0",V),children:(0,r.jsxs)(s.$,{variant:"ghost",size:"sm",className:"-ml-3 h-6 font-normal data-[state=open]:bg-accent hover:bg-transparent",onClick:()=>H("project"),children:[(0,r.jsx)("span",{className:"text-sm font-normal text-muted-foreground",children:"Cycle"}),(0,r.jsx)(K,{field:"project"})]})}),(0,r.jsx)(f.nd,{className:(0,g.cn)(f.qX,"whitespace-nowrap",V),children:(0,r.jsx)("span",{className:"text-sm font-normal text-muted-foreground",children:"Type"})}),(0,r.jsx)(f.nd,{className:(0,g.cn)(f.qX,"whitespace-nowrap",V),children:(0,r.jsxs)(s.$,{variant:"ghost",size:"sm",className:"flex h-6 w-full items-center justify-center gap-1 font-normal data-[state=open]:bg-accent hover:bg-transparent",onClick:()=>H("progress"),children:[(0,r.jsx)("span",{className:"text-sm font-normal text-muted-foreground",children:"Progress"}),(0,r.jsx)(K,{field:"progress"})]})}),(0,r.jsx)(f.nd,{className:(0,g.cn)(f.qX,"whitespace-nowrap",V),children:(0,r.jsxs)(s.$,{variant:"ghost",size:"sm",className:"flex h-6 w-full items-center justify-center gap-1 font-normal data-[state=open]:bg-accent hover:bg-transparent",onClick:()=>H("deadline"),children:[(0,r.jsx)("span",{className:"text-sm font-normal text-muted-foreground",children:"Deadline"}),(0,r.jsx)(K,{field:"deadline"})]})}),a?null:(0,r.jsx)(f.nd,{className:(0,g.cn)(f.l6,"whitespace-nowrap",V),children:"Action"})]})}),(0,r.jsx)(f.BF,{className:"[&_tr:last-child]:border-b [&_tr:last-child]:border-border",children:G.map(e=>{let t=(0,x.n0)(e),n=(0,j.q_)(e.taskId);return(0,r.jsxs)(f.Hj,{className:(0,g.cn)("hover:bg-accent",n&&"cursor-default"),children:[(0,r.jsx)(f.nA,{className:(0,g.cn)("min-w-0",Z),children:(0,r.jsx)("div",{className:"line-clamp-2 wrap-break-word pr-2 text-sm font-normal leading-snug text-foreground",title:e.projectName,children:e.projectName})}),(0,r.jsx)(f.nA,{className:(0,g.cn)(f.wh,"min-w-0",Z),children:(0,r.jsx)("div",{className:"flex min-w-0 justify-center px-0.5",children:(0,r.jsx)(w.N,{phaseKey:e.phaseKey})})}),(0,r.jsx)(f.nA,{className:(0,g.cn)(f.wh,"whitespace-nowrap",Z),children:(0,r.jsx)("div",{className:"flex justify-center",children:(0,r.jsx)(b.a,{flags:e,className:"whitespace-nowrap"})})}),(0,r.jsx)(f.nA,{className:(0,g.cn)(f.wh,"whitespace-normal",Z),children:(0,r.jsx)("div",{className:"flex min-w-0 justify-center px-0.5",children:(0,r.jsx)(o.m,{deadline:e.earliestDeadline,cycleCloseAt:e.completionDate,timeZone:e.workspaceTimeZone,showTime:!0,compact:!0,className:"justify-center text-center"})})}),a?null:(0,r.jsx)(f.nA,{className:(0,g.cn)(f.jS,Z),children:(0,r.jsx)("div",{className:"flex w-full min-w-0 justify-end",children:(0,r.jsx)(s.$,{variant:"default",className:(0,g.cn)(v.a,"justify-center",n&&"disabled:opacity-100!"),onClick:()=>{n||F.push(z(e.taskId,e.cycleId))},disabled:n,children:t})})})]},e.taskId)})})]})}),B.length>5&&(0,r.jsxs)("div",{className:"flex shrink-0 flex-col gap-3 border-t border-border bg-muted/30 px-4 py-3 sm:flex-row sm:items-center sm:justify-between md:px-6",children:[(0,r.jsxs)("div",{className:"text-xs text-muted-foreground",children:["Showing ",(M-1)
1*5+1," to ",Math.min(5*M,B.length)," of ",B.length]}),(0,r.jsxs)("div",{className:"flex gap-2 self-end sm:self-auto",children:[(0,r.jsx)(s.$,{size:"sm",variant:"outline",onClick:()=>q(e=>Math.max(1,e-1)),disabled:1===M,className:"h-11 w-11 shrink-0 p-0 sm:h-8 sm:w-8","aria-label":"Previous page",children:(0,r.jsx)(u.A,{className:"h-4 w-4","aria-hidden":!0})}),(0,r.jsx)(s.$,{size:"sm",variant:"outline",onClick:()=>q(e=>Math.min(Math.ceil(B.length/5),e+1)),disabled:M>=Math.ceil(B.length/5),className:"h-11 w-11 shrink-0 p-0 sm:h-8 sm:w-8","aria-label":"Next page",children:(0,r.jsx)(p.A,{className:"h-4 w-4","aria-hidden":!0})})]})]})]})}},46886:(e,t,a)=>{a.d(t,{S:()=>r});function r(e,{questionWeights:t={},questionResponseModes:a={}}={}){if(!e||"object"!=typeof e)return null;let n=0,s=0,o=(e,r)=>{if(r?.noAnswer===!0)return;let o="number"==typeof r?.score?r.score:"string"==typeof r?.score?parseFloat(r.score):NaN;if(!Number.isFinite(o)||e&&"comment_only"===a[e])return;let l=e?t[e]??.85:.85;n+=o*l,s+=l};if(Array.isArray(e))for(let t of e)o(t?.question_key||t?.question_id||t?.id,t);else for(let[t,a]of Object.entries(e))o(a?.question_key||a?.question_id||t,a);return 0===s?null:parseFloat((n/s).toFixed(1))}},52957:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(30772).A)("briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]])},53814:(e,t,a)=>{a.d(t,{Nr:()=>r});let r=new Set(["cycle_completed","evaluations_completed","archived","completed"])},56597:(e,t,a)=>{a.d(t,{EB:()=>h,Nr:()=>s.Nr,f0:()=>m,gQ:()=>g,kP:()=>d,sk:()=>p,tA:()=>u});var r=a(46886),n=a(32192),s=a(53814);let o=new Set(["peer","manager_review"]),l={technical:"technical_skills",technical_skills:"technical_skills",communication:"wellBeing",wellbeing:"wellBeing",well_being:"wellBeing",leadership:"leadership",initiative:"initiative",growth:"leadership",problem_solving:"problem_solving",problemSolving:"problem_solving",collaboration:"collaboration",teamwork:"collaboration",quality:"technical_skills",adaptability:"problem_solving",accountability:"initiative"},i=e=>{let t="number"==typeof e?e:"string"==typeof e?parseFloat(e):NaN;return Number.isFinite(t)?parseFloat(Math.min(4,Math.max(0,t)).toFixed(1)):null},c=e=>{let t=e.evaluation_templates||e.template_questions;return Array.isArray(t)?t:Array.isArray(t?.questions)?t.questions:[]};function d(e,t,a,r=new Date){let n=String(e??"").trim().toLowerCase();if("cycle_completed"===n||"archived"===n||"completed"===n)return!0;if("evaluations_completed"!==n)return!1;let s=[t,a].filter(e=>!!e).map(e=>Date.parse(e)).filter(Number.isFinite);return s.length>0&&Math.max(...s)<=r.getTime()}function m({assignmentStatus:e,evaluationType:t,engagementStatus:a,deadline:r,projectDueDate:n,projectEvaluationDeadline:o,projectStatus:l,now:i=new Date}){return"completed"===e&&"no_engagement"===a&&"peer"===t?"no_contact":"completed"===e?"completed":"pending"===e&&function(e,t,a=new Date,r,n){if(e&&s.Nr.has(e))return!0;if(r){let e=new Date(r);if(!Number.isNaN(e.getTime()))return a.getTime()>=e.getTime()}if(n){let e=new Date(n);if(!Number.isNaN(e.getTime()))return a.getTime()>=e.getTime()}return!!t&&new Date(t)<a}(l,r,i,n,o)?"not_completed":"pending"}function u(e){return i(e.computedScore??e.average_score??e.score??null)}function p(e){return e.map(e=>{let{questionWeights:t,questionResponseModes:a}=(e=>{let t={},a={};for(let r of e){if(!r?.id)continue;let e=String(r.importance||"").toLowerCase();[r.id,"string"==typeof r.question_key&&r.question_key.trim()?r.question_key.trim():null].filter(e=>!!e).forEach(s=>{t[s]="high"===e?1:"low"===e?.7:.85,a[s]=(0,n.at)(r.response_mode)})}return{questionWeights:t,questionResponseModes:a}})(c(e)),s=(0,r.S)(e.answers,{questionWeights:t,questionResponseModes:a}),o="released"in e||"project_status"in e||"projectStatus"in e||"project_due_date"in e||"projectDueDate"in e,l="boolean"==typeof e.released?e.released:!o||d(e.project_status??e.projectStatus??null,e.project_due_date??e.projectDueDate??null,e.project_evaluation_deadline??e.projectEvaluationDeadline??null);return{...e,released:l,computedScore:s??i(e.average_score??e.score??null)}})}function h(e){return e.filter(e=>("boolean"==typeof e.released?e.released:d(e.project_status??e.projectStatus??null,e.project_due_date??e.projectDueDate??null,e.project_evaluation_deadline??e.projectEvaluationDeadline??null))&&"completed"===e.status)}function g(e){let t={technical_skills:{scores:[],weights:[]},wellBeing:{scores:[],weights:[]},leadership:{scores:[],weights:[]},problem_solving:{scores:[],weights:[]},collaboration:{scores:[],weights:[]},initiative:{scores:[],weights:[]}};for(let a of h(e).filter(e=>o.has(e.evaluation_type))){let e=c(a),r=a.answers||{};for(let a of e){let e=a?.id;if(!e||"comment_only"===(0,n.at)(a.response_mode))continue;let s="string"==typeof a.question_key&&a.question_key.trim()?a.question_key.trim():e,o=l[String(a.category||"").toLowerCase()];if(!o)continue;let i=Array.isArray(r)?r.find(t=>{let a=t?.question_key||t?.question_id||t?.id;return a===s||a===e}):r[s]||r[e];
1if(!i||!0===i.noAnswer)continue;let c="number"==typeof i?i:i?.score,d="number"==typeof c?c:"string"==typeof c?parseFloat(c):NaN;if(!Number.isFinite(d)||d<1||d>4)continue;let m=String(a.importance||"").toLowerCase(),u="high"===m?1:"low"===m?.7:.85;t[o].scores.push(d),t[o].weights.push(u)}}let a={technical_skills:0,wellBeing:0,leadership:0,problem_solving:0,collaboration:0,initiative:0};for(let[e,r]of Object.entries(t)){if(0===r.scores.length)continue;let t=0,n=0;for(let e=0;e<r.scores.length;e+=1)t+=r.scores[e]*r.weights[e],n+=r.weights[e];n>0&&(a[e]=parseFloat((t/n).toFixed(1)))}return a}},57465:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(30772).A)("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]])},58209:(e,t,a)=>{a.d(t,{a:()=>l});var r=a(95155),n=a(45160),s=a(40980),o=a(87897);let l=({flags:e,className:t})=>{let{label:a,badgeVariant:l}=(0,o.Dq)(e);return(0,r.jsx)(n.E,{variant:l,className:(0,s.cn)("whitespace-nowrap",t),"aria-label":`Evaluation progress: ${a}`,children:a})}},60102:(e,t,a)=>{a.d(t,{PH:()=>s,Ss:()=>l,br:()=>o});var r=a(40980);let n="border border-border bg-transparent",s={self:{dot:"bg-accent-blue",progress:"bg-accent-blue",currentShell:"bg-accent-blue/15",iconShellActive:"border border-baxblue-300 bg-baxblue-100",iconShellInactive:n,iconGlyphActive:"text-baxblue-900",iconGlyphInactive:"text-muted-foreground",tooltipDot:"bg-accent-blue",tooltipText:"text-baxblue-300",badgePillSurface:"bg-accent-blue/8",badgePillBorder:"border-accent-blue/28",typeBadgeSurface:"bg-baxblue-50",typeBadgeBorder:"border-baxblue-200",typeBadgeText:"text-baxblue-800"},nomination:{dot:"bg-accent-nomination",progress:"bg-accent-nomination",currentShell:"bg-accent-nomination/15",iconShellActive:"border border-accent-nomination/55 bg-accent-nomination/30",iconShellInactive:n,iconGlyphActive:"text-baxpink-800",iconGlyphInactive:"text-muted-foreground",tooltipDot:"bg-accent-nomination",tooltipText:"text-baxpink-300",badgePillSurface:"bg-accent-nomination/9",badgePillBorder:"border-accent-nomination/32",typeBadgeSurface:"bg-accent-nomination/10",typeBadgeBorder:"border-accent-nomination/45",typeBadgeText:"text-baxpink-800"},peer:{dot:"bg-accent-peer-review",progress:"bg-accent-peer-review",currentShell:"bg-accent-peer-review/16",iconShellActive:"border border-accent-peer-review/35 bg-accent-peer-review/12",iconShellInactive:n,iconGlyphActive:"text-accent-peer-review",iconGlyphInactive:"text-muted-foreground",tooltipDot:"bg-accent-peer-review",tooltipText:"text-accent-peer-review",badgePillSurface:"bg-accent-peer-review/12",badgePillBorder:"border-accent-peer-review/35",typeBadgeSurface:"bg-accent-peer-review/9",typeBadgeBorder:"border-accent-peer-review/35",typeBadgeText:"text-accent-peer-review"},manager:{dot:"bg-chart-5",progress:"bg-chart-5",currentShell:"bg-chart-5/15",iconShellActive:"border border-chart-5/45 bg-muted",iconShellInactive:n,iconGlyphActive:"text-chart-5",iconGlyphInactive:"text-muted-foreground",tooltipDot:"bg-chart-5",tooltipText:"text-chart-4",badgePillSurface:"bg-chart-5/8",badgePillBorder:"border-chart-5/30",typeBadgeSurface:"bg-muted",typeBadgeBorder:"border-chart-5/35",typeBadgeText:"text-chart-5"}};function o(e){return s[e]}function l(e){let t=s[e];return(0,r.cn)("border font-medium",t.typeBadgeBorder,t.typeBadgeSurface,t.typeBadgeText,"[&_svg]:stroke-current")}},76721:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(30772).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},78780:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(30772).A)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},87897:(e,t,a)=>{a.d(t,{AJ:()=>m,Dq:()=>d,MA:()=>c,n0:()=>l,qL:()=>s,xg:()=>o});var r=a(56597);let n=e=>!!e&&Object.keys(e).length>0,s=e=>{if(!e||"draft"!==e.status&&"in_progress"!==e.status)return!1;let t=!!e.metadata?.lastAutoSave;
1return n(e.answers)||t},o=e=>!!e?.assignmentId&&(n(e.answers?.[e.assignmentId])||!!e.savedAt),l=({hasPendingAssignment:e,hasSavedDraft:t,hasCompletedSubmission:a})=>t?"Finish":a?"Reopen":"Start";function i({hasPendingAssignment:e,hasSavedDraft:t,hasCompletedSubmission:a}){let r=!!e,n=!!a;return!r&&n?2:t||n&&r?1:0}function c(e){return i(e)}function d(e){let t=i(e);return 2===t?{label:"Completed",badgeVariant:"deadline-safe"}:1===t?{label:"In Progress",badgeVariant:"deadline-warning"}:{label:"Not started",badgeVariant:"secondary"}}function m(e,t){let a=(0,r.f0)({assignmentStatus:e.status,evaluationType:e.evaluation_type,engagementStatus:e.engagement_status,deadline:e.deadline,projectStatus:t});return"pending"===a||"not_completed"===a}},89239:(e,t,a)=>{a.d(t,{$:()=>u,r:()=>m});var r=a(95155),n=a(12115),s=a(42442),o=a(18460),l=a(40980),i=a(18186);let c="border border-border bg-muted text-foreground hover:bg-accent hover:text-accent-foreground/90 shadow-control-surface hover:shadow-control-surface-hover focus-visible:shadow-control-surface-focus!",d="border-0 bg-primary text-primary-foreground hover:bg-primary/90 hover:text-primary-foreground/90 shadow-control-primary hover:shadow-control-primary-hover focus-visible:shadow-control-primary-hover! active:shadow-control-primary-active",m=(0,o.F)("inline-flex items-center justify-center gap-1.5 whitespace-nowrap rounded-mercury-button text-sm font-medium disabled:pointer-events-none disabled:opacity-50 [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:d,destructive:"bg-destructive text-destructive-foreground hover:text-destructive-foreground/90 hover:bg-destructive/90 shadow-control-destructive hover:shadow-control-destructive-hover focus-visible:shadow-control-destructive-hover! active:shadow-control-destructive-active disabled:opacity-100! disabled:bg-destructive/55 disabled:text-destructive-foreground disabled:shadow-none",outline:"border border-border bg-background hover:bg-accent hover:text-accent-foreground/90 shadow-control-surface hover:shadow-control-surface-hover focus-visible:shadow-control-surface-focus!",secondary:c,ghost:"hover:bg-accent hover:text-accent-foreground/90",link:"text-primary underline-offset-4 hover:underline",primary:d,accent:"bg-linear-to-b from-muted to-accent text-accent-foreground hover:text-accent-foreground/90 border border-accent px-5 py-2 shadow-control-accent hover:from-background hover:to-muted hover:border-accent hover:shadow-control-accent-hover focus-visible:shadow-control-accent-hover! active:from-accent active:to-accent active:shadow-control-accent-active",soft:c,getStarted:d,accent2:"bg-muted text-muted-foreground hover:text-muted-foreground/90 hover:bg-muted/80 shadow-control-surface hover:shadow-control-surface-hover focus-visible:shadow-control-surface-focus!"},size:{default:"min-h-9 px-4 py-2",xs:"min-h-7 px-2.5 py-1 text-xs",sm:"min-h-8 px-3 py-1.5 text-sm",lg:"min-h-10 px-5 py-2.5",icon:"h-9 w-9 min-h-9 min-w-9 max-h-9 max-w-9 shrink-0 p-0 gap-0",action:"min-h-10 px-4 py-2 text-sm"}},defaultVariants:{variant:"default",size:"default"}}),u=n.forwardRef(({className:e,variant:t,size:a,asChild:n=!1,loading:o,leftIcon:c,rightIcon:d,children:u,...p},h)=>n?(0,r.jsx)(s.DX,{className:(0,l.cn)(m({variant:t,size:a,className:e})),ref:h,...p,children:u}):(0,r.jsxs)("button",{className:(0,l.cn)(m({variant:t,size:a,className:e})),ref:h,disabled:o||p.disabled,...p,children:[o?(0,r.jsx)(i.Spinner,{className:"mr-2"}):null,c?(0,r.jsx)("span",{className:"mr-2",children:c}):null,(0,r.jsx)("span",{className:"contents",children:u}),d?(0,r.jsx)("span",{className:"ml-2",children:d}):null]}));u.displayName="Button"},92571:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(30772).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},94088:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(30772).A)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])}}]);
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.