1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6650],{76650:(e,a,r)=>{r.r(a),r.d(a,{default:()=>$});var t=r(95155),s=r(61927),i=r.n(s),n=r(12115),l=r(87813),o=r.n(l),d=r(52619),c=r.n(d),m=r(43535),h=r(67167),p=r(65886),u=r(81331),f=r(56090),g=r(92463),b=r(11855),v=r(65082),w=r(3361),x=r(49498),j=r(74210);let R=({rowData:e,bidEnabled:a,recommendationEnabled:r,invitations:s})=>{let{id:i,preferredName:l,registrationNotes:d,title:c}=e.areaChairProfile??{},{sacProfile:m,seniorAreaChairId:h}=e.seniorAreaChair??{},{seniorAreaChairName:p="Senior_Area_Chairs",areaChairsId:f,reviewersId:v,reviewerName:R,bidName:N,scoresName:C,recommendationName:A,preferredEmailInvitationId:$}=(0,n.useContext)(u.A),y=e.completedBids,I=e.completedRecommendations,P=(0,b.hh)(`tail:${i}`,s,f,N,C),E=(0,b.hh)(`signatory:${i}`,s,v,A,C),M=async(e,a)=>{if(!$)return void promptError("Email is not available.");try{let r=await w.A.get("/edges",{invitation:$,head:a}),t=r.edges?.[0]?.tail;if(!t)throw Error("Email is not available.");o()(`${e} <${t}>`),promptMessage(`${t} copied to clipboard`)}catch(e){promptError(e.message)}};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"ac-sac-summary",children:[l?(0,t.jsxs)("div",{className:"ac-sac-info",children:[(0,t.jsx)("h4",{children:(0,t.jsx)(j.default,{id:i??e.areaChairProfileId,name:l,preferredEmailInvitationId:$})}),(0,t.jsx)("div",{className:"profile-title",children:c}),$&&(0,t.jsx)("a",{href:"#",className:"copy-email-link",onClick:a=>{a.preventDefault(),M(l,i??e.areaChairProfileId)},children:"Copy Email"})]}):(0,t.jsx)("h4",{children:(0,t.jsx)(j.default,{id:e.areaChairProfileId,name:e.areaChairProfileId,preferredEmailInvitationId:$})}),(0,t.jsxs)("p",{children:[a&&(0,t.jsxs)(t.Fragment,{children:[`Completed Bids: ${y}`," ",y>0&&(0,t.jsx)("a",{href:P,className:"show-reviewer-bids",target:"_blank",rel:"noreferrer",children:"view all"})]}),r&&(0,t.jsxs)(t.Fragment,{children:[`${(0,x.prettyField)(R)} Recommended: ${I}`," ",y>0&&(0,t.jsx)("a",{href:E,className:"show-reviewer-bids",target:"_blank",rel:"noreferrer",children:"view all"})]})]})]}),m&&(0,t.jsxs)("div",{className:"ac-sac-summary",children:[(0,t.jsxs)("h4",{children:[(0,x.prettyField)(p),": "]}),m?.preferredName&&(0,t.jsxs)("div",{className:"ac-sac-info",children:[(0,t.jsx)("h4",{children:(0,t.jsx)(j.default,{id:m?.id??h,name:m.preferredName,preferredEmailInvitationId:$})}),(0,t.jsx)("div",{className:"profile-title",children:m.title}),$&&(0,t.jsx)("a",{href:"#",className:"copy-email-link",onClick:e=>{e.preventDefault(),M(m.preferredName,m?.id??h)},children:"Copy Email"})]})]}),d?.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("strong",{className:"paper-label",children:"Registration Notes:"}),d.map(e=>(0,t.jsx)(g.NoteContentV2,{id:e.id,content:e.content,noteReaders:e.readers},e.id))]})]})},N=({rowData:e,referrerUrl:a,officialReviewName:r,submissionName:s})=>{let i=e.numCompletedReviews,n=e.notes.length;return(0,t.jsxs)("div",{className:"reviewer-progress",children:[(0,t.jsxs)("h4",{children:[i," of ",n," ",(0,x.pluralizeString)(s)," with"," ",(0,x.pluralizeString)((0,x.prettyField)(r))," Completed"]}),0!==e.notes.length&&(0,t.jsxs)("strong",{children:[(0,x.pluralizeString)(s),":"]}),(0,t.jsx)("div",{className:"review-progress",children:e.notes.map(e=>{let{numReviewsDone:r,numReviewersAssigned:s,ratingAvg:i,ratingMin:n,ratingMax:l}=e.reviewProgressData,o=e.note?.content?.title?.value;return(0,t.jsx)("div",{children:(0,t.jsxs)("div",{className:"note-info",children:[(0,t.jsx)("strong",{className:"note-number",children:e.noteNumber}),(0,t.jsxs)("div",{className:"review-info",children:[(0,t.jsx)("a",{href:`/forum?id=${e.note.forum}&referrer=${a}`,target:"_blank",rel:"noreferrer",children:o}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("strong",{children:[r," of ",s," Reviews Submitted"," "]}),i&&`/ Average Rating:${i} (Min: ${n}, Max: ${l})`]})]})]})},e.noteNumber)})})]})},C=({rowData:e,referrerUrl:a,metaReviewRecommendationName:r,officialMetaReviewName:s,submissionName:i})=>{let n=e.numCompletedMetaReviews,l=e.notes.length;return(0,t.jsxs)("div",{className:"areachair-progress",children:[(0,t.jsxs)("h4",{children:[n," of ",l," ",(0,x.pluralizeString)(i)," with"," ",(0,x.pluralizeString)((0,x.prettyField)(s))," Completed"]}),0!==e.notes.length&&(0,t.jsxs)("strong",{children:[(0,x.pluralizeString)(i),":"]}),(0,t.jsx)("div",{children:e.notes.map(e=>
1{let i=(0,v.Mc)(e.note?.content),n=i?.venue,l=e.metaReviewData?.metaReviews,o=l?.length;return(0,t.jsxs)("div",{className:"meta-review-info",children:[(0,t.jsx)("strong",{className:"note-number",children:e.noteNumber}),o?(0,t.jsx)(t.Fragment,{children:l.map(e=>{let i=(0,v.Mc)(e?.content);return(0,t.jsxs)("div",{className:"meta-review",children:[(0,t.jsx)("span",{children:`${i.venue?`${i.venue} - `:""}${i[r]??""}`}),i.format&&(0,t.jsxs)("span",{children:["Format: ",i.format]}),(0,t.jsxs)("a",{href:`/forum?id=${e.forum}¬eId=${e.id}&referrer=${a}`,target:"_blank",rel:"noreferrer",children:["Read ",(0,x.prettyField)(s)]})]},e.id)})}):(0,t.jsx)("span",{children:`${n?`${n} - `:""} No ${(0,x.prettyField)(s)}`})]},e.noteNumber)})})]})},A=({rowData:e,bidEnabled:a,recommendationEnabled:r,invitations:s,officialReviewName:i,officialMetaReviewName:n,metaReviewRecommendationName:l,referrerUrl:o,submissionName:d})=>(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("strong",{children:e.number})}),(0,t.jsx)("td",{children:(0,t.jsx)(R,{rowData:e,bidEnabled:a,recommendationEnabled:r,invitations:s})}),(0,t.jsx)("td",{children:(0,t.jsx)(N,{rowData:e,referrerUrl:o,officialReviewName:i,submissionName:d})}),(0,t.jsx)("td",{children:(0,t.jsx)(C,{rowData:e,referrerUrl:o,metaReviewRecommendationName:l,officialMetaReviewName:n,submissionName:d})})]}),$=({pcConsoleData:e,loadSacAcInfo:a,loadReviewMetaReviewData:r,loadRegistrationNoteMap:s})=>{let[l,o]=(0,n.useState)({}),{shortPhrase:d,seniorAreaChairsId:g,areaChairsId:b,areaChairName:v,reviewersId:w,bidName:j,recommendationName:R,officialReviewName:N,officialMetaReviewName:C,metaReviewRecommendationName:$="recommendation",venueId:y,submissionName:I}=(0,n.useContext)(u.A),[P,E]=(0,n.useState)(1),[M,S]=(0,n.useState)(e.areaChairs?.length??0),F=!!j&&e.invitations?.find(e=>e.id===`${b}/-/${j}`),k=e.invitations?.some(e=>e.id===`${w}/-/${R}`),D=(0,x.getRoleHashFragment)(v),_=encodeURIComponent(`[Program Chair Console](/group?id=${y}/Program_Chairs#${D}-status)`),G=async()=>{if(e.registrationNoteMap)if(e.sacAcInfo)if(e.noteNumberReviewMetaReviewMap)try{let a=new Map,r=e.notes.map(e=>e.number);e.paperGroups.areaChairGroups.forEach(t=>{t.members.forEach(s=>{let i=t.noteNumber;if(!r.includes(i))return;let n=e.noteNumberReviewMetaReviewMap.get(i)??{};a.get(s.areaChairProfileId)?a.get(s.areaChairProfileId).push({noteNumber:i,...n}):a.set(s.areaChairProfileId,[{noteNumber:i,...n}])})});let t=e.areaChairs.map((r,t)=>{let s=null,n=null;
1g&&(s=e.sacAcInfo.sacByAcMap.get(r),n=e.sacAcInfo.seniorAreaChairWithoutAssignmentIds.includes(s)?e.sacAcInfo.acSacProfileWithoutAssignmentMap.get(s):e.allProfilesMap.get(s));let l=null;l=e.sacAcInfo.areaChairWithoutAssignmentIds.includes(r)?e.sacAcInfo.acSacProfileWithoutAssignmentMap.get(r):e.allProfilesMap.get(r);let o=i()(a.get(r)??[],"noteNumber");return{areaChairProfileId:r,areaChairProfile:l,number:t+1,completedRecommendations:e.acRecommendationsCount?.[r]??0,completedBids:e.bidCounts?.areaChairs?.find(e=>e.id?.tail===r)?.count??0,numCompletedReviews:o.filter(e=>e.reviewers?.length&&e.reviewers?.length===e.officialReviews?.length).length,numCompletedMetaReviews:o.filter(e=>{let a=e.metaReviewData.areaChairs.find(e=>e.areaChairProfileId===r)?.anonymousId;return a&&e.metaReviewData.metaReviews.find(e=>e.anonId===a)}).length??0,notes:o,...g&&{seniorAreaChair:{seniorAreaChairId:s,sacProfile:n}}}});o({tableRowsAll:t,tableRows:[...t]})}catch(e){promptError(`loading ${(0,x.prettyField)(v)} status: ${e.message}`)}else r();else a();else s()};return((0,n.useEffect)(()=>{e.paperGroups?.areaChairGroups&&G()},[e.paperGroups?.areaChairGroups,e.sacAcInfo,e.noteNumberReviewMetaReviewMap,e.registrationNoteMap]),(0,n.useEffect)(()=>{o(e=>({...e,tableRowsDisplayed:e.tableRows?.slice(25*(P-1),25*(P-1)+25)})),S(l.tableRows?.length??0)},[P,e.paperGroups?.areaChairGroups,l.tableRows]),(0,n.useEffect)(()=>{l.tableRows?.length&&(S(l.tableRows.length),E(1))},[l.tableRows]),l.tableRowsAll)?l.tableRowsAll?.length===0?(0,t.jsxs)("p",{className:"empty-message",children:["There are no ",(0,x.prettyField)(v),". Check back later or"," ",(0,t.jsx)(c(),{href:"/contact",children:"contact us"})," if you believe this to be an error."]}):l.tableRows?.length===0?(0,t.jsxs)("div",{className:"table-container empty-table-container",children:[(0,t.jsx)(f.default,{tableRowsAll:l.tableRowsAll,tableRows:l.tableRows,setAreaChairStatusTabData:o,shortPhrase:d,bidEnabled:F,recommendationEnabled:k,messageParentGroup:b,messageSignature:y}),(0,t.jsxs)("p",{className:"empty-message",children:["No ",(0,x.prettyField)(v)," matching search criteria."]})]}):(0,t.jsxs)("div",{className:"table-container",children:[(0,t.jsx)(f.default,{tableRowsAll:l.tableRowsAll,tableRows:l.tableRows,setAreaChairStatusTabData:o,bidEnabled:F,recommendationEnabled:k,messageParentGroup:b,messageSignature:y}),(0,t.jsx)(p.A,{className:"console-table table-striped pc-console-ac-sac-status",headings:[{id:"number",content:"#",width:"55px"},{id:"areachair",content:`${(0,x.prettyField)(v)}`,width:"10%"},{id:"reviewProgress",content:`${(0,x.prettyField)(N)} Progress`},{id:"status",content:"Status"}],children:l.tableRowsDisplayed?.map(a=>(0,t.jsx)(A,{rowData:a,bidEnabled:F,recommendationEnabled:k,invitations:e.invitations,officialReviewName:N,officialMetaReviewName:C,metaReviewRecommendationName:$,referrerUrl:_,submissionName:I},a.areaChairProfileId))}),(0,t.jsx)(h.A,{currentPage:P,itemsPerPage:25,totalCount:M,setCurrentPage:E,options:{noScroll:!0,showCount:!0}})]}):(0,t.jsx)(m.A,{})}}}]);
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.