PageSourceSearch

https://openreview.net/_next/static/chunks/4373.d1e2fc3fadc687c4.js

js openreview.net collected 2026-10-01 08:00:44 UTC 23,217 bytes, 14 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[212,4373],{637:(e,t,n)=>{"use strict";n.d(t,{default:()=>r});var i=n(95155),s=n(12115),a=n(82735);let r=({noteId:e,linkUnlinkPublication:t,isUnlinked:n})=>{let[r,l]=(0,s.useState)(n?"repeat":"minus-sign"),o="minus-sign"===r;return(0,i.jsx)("span",{role:"button",tabIndex:0,onClick:()=>{l(o?"repeat":"minus-sign"),t(e,o)},"aria-label":o?"unlink this paper":"relink this paper",children:(0,i.jsx)(a.A,{name:r,extraClasses:o?"unlink-publication":"unlink-publication mirror",tooltip:o?"unlink this paper":"relink this paper"})})}},13785:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=n(95155),s=n(91068),a=n(82735);let r=function({error:e}){return(0,i.jsxs)(s.A,{color:"danger",children:[(0,i.jsx)(a.A,{name:"exclamation-sign"})," ",(0,i.jsx)("strong",{children:"Error:"})," ",e.message]})}},16008:e=>{e.exports={container:"ExpertiseSelector_container__uAwPj"}},54373:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>P});var i=n(95155),s=n(12115),a=n(20063),r=n(81331),l=n(78844),o=n(77845),d=n(94752),c=n.n(d),u=n(58715),p=n.n(u),h=n(78332),m=n.n(h),f=n(88678),x=n(68325),g=n(76607),v=n(60212),j=n(43535),b=n(13785),y=n(42540),N=n(3361),w=n(49498),k=n(5436),C=n(16008),A=n.n(C);let E={pdfLink:!0,replyCount:!1,showContents:!0,collapse:!0,showEdges:!0};function I({invitation:e,venueId:t,apiVersion:n,shouldReload:a}){let{user:r,isRefreshing:l}=(0,y.A)(),[o,d]=(0,s.useState)(null),[u,h]=(0,s.useState)(null),C=2===n?e.edge?.label?.param?.enum:e.reply?.content?.label?.["value-radio"],I=C?.[0]||"Exclude",P=`${I}d Papers`,_=p()(P),R=u&&o?Object.keys(o).filter(e=>u.find(t=>t.id===e)&&!o[e].ddate):null,S=(0,s.useCallback)((e,t)=>Promise.resolve({items:u.slice(t,t+e),count:u.length}),[u]),L=(0,s.useCallback)((e,t)=>{let n=u.filter(e=>R.includes(e.id));return Promise.resolve({items:n.slice(t,t+e),count:n.length})},[u,R]),D=(0,s.useCallback)((e,t,n)=>
1{let i=RegExp(`\\b${m()(e)}`,"mi"),s=u.filter(e=>e.searchText?.match(i));return Promise.resolve({items:s.slice(n,n+t),count:s.length})},[u]),T=async(i,s)=>{let a=o[i],l={};a&&a.label===s&&(l=a.ddate?2===n?{ddate:{delete:!0}}:{ddate:null}:{ddate:Date.now()});try{let c=await N.A.post("/edges",{...a?{id:a.id}:{},invitation:e.id,readers:[t,r.profile.id],writers:[t,r.profile.id],signatures:[r.profile.id],head:i,tail:r.profile.id,label:s,...l},{version:n});return d({...o,[i]:c}),c}catch(e){return promptError(e.message),null}};function O({item:t}){let n=o[t.id];return(0,i.jsxs)(i.Fragment,{children:[2===t.apiVersion?(0,i.jsx)(g.H,{note:t,options:E}):(0,i.jsx)(g.A,{note:t,options:E}),(0,i.jsx)(v.BidRadioButtonGroup,{label:(0,w.prettyInvitationId)(e.id),options:C,selectedBidOption:!n||n.ddate?void 0:n.label,updateBidOption:e=>T(t.id,e),className:"mb-2"})]})}let B=async()=>{try{await N.A.post("/edges",{invitation:e.id,readers:[t,r.profile.id],writers:[t,r.profile.id],signatures:[r.profile.id],head:"xf0zSBd2iufMg",tail:r.profile.id,label:I},{version:n})}catch(e){console.warn(`Error marking invitation as completed: ${e.message}`)}};return((0,s.useEffect)(()=>{if(l||!r)return;let t=async()=>{try{let t=await N.A.getAll("/edges",{invitation:e.id,tail:r.profile.id},{version:n});d(c()(t,"head"))}catch(e){promptError(e.message),d({})}};(async()=>{try{let{notes:e}=await N.A.getCombined("/notes",{"content.authorids":r.profile.id,sort:"cdate",details:"invitation"},null,{includeVersion:!0}),t=e.filter(e=>e.readers.includes("everyone"));t.forEach(e=>{e.searchText=(0,k.gL)(e,2===e.apiVersion)}),h(t)}catch(e){promptError(e.message),h([])}})(),t()},[l,r,a]),(0,s.useEffect)(()=>{"Exclude"===I&&u&&o&&0===Object.keys(o).length&&B()},[e.id,u,o]),l)?(0,i.jsx)(j.A,{}):r?(0,i.jsxs)(f.tU,{className:A().container,children:[(0,i.jsxs)(f.wb,{children:[(0,i.jsx)(f.oz,{id:"all-your-papers",icon:"search",active:!0,children:"All Your Papers"}),(0,i.jsx)(f.oz,{id:_,headingCount:R?.length,children:P})]}),(0,i.jsxs)(f.T2,{children:[(0,i.jsx)(f.Kp,{id:"all-your-papers",children:u&&o?(0,i.jsx)(x.A,{loadItems:S,searchItems:D,ListItem:O,itemsPerPage:15,className:"submissions-list",enableSearch:!0}):(0,i.jsx)(j.A,{inline:!0})}),(0,i.jsx)(f.Kp,{id:_,children:R?.length>0?(0,i.jsx)(x.A,{loadItems:L,ListItem:O,itemsPerPage:15,className:"submissions-list"}):(0,i.jsxs)("p",{className:"empty-message",children:["No ",P.toLowerCase()," to display"]})})]})]}):(0,i.jsx)(b.A,{error:{message:"You must be logged in to select your expertise"}})}function P({appContext:e}){let{entity:t,venueId:n,title:d,description:c,uploadInvitationId:u,apiVersion:p}=(0,s.useContext)(r.A),[h,m]=(0,s.useReducer)(e=>!e,!0),f=(0,a.useSearchParams)(),{setBannerContent:x}=e??{},g=2===p?t.edge?.label?.param?.enum:t.reply?.content?.label?.["value-radio"],v=g?.[0]||"Exclude",j=`Listed below are all the papers you have authored that exist in the OpenReview database.
2
3**By default, we consider all of these papers to formulate your expertise.
4Please click "${v}" for papers that you ${"Exclude"===v?"do NOT":""} want to be used to represent your expertise.**
5
6Your previously authored papers from selected conferences were automatically imported from [DBLP.org](https://dblp.org/).
7The keywords in these papers will be used to rank submissions for you during the bidding process, and to assign submissions to you during the review process.
8If there are DBLP papers missing, you can add them by going to your [OpenReview profile](/profile/edit) and clicking "Add DBLP Papers to Profile".
9
10Papers not automatically included as part of this import process can be uploaded with the **Upload** button below.
11Make sure that your email is part of the "authorids" field of the upload form, otherwise the paper will not appear in the list,
12though it will be included in the recommendations process. Only upload papers you are an author of.
13
14Please [contact us](/contact) with any questions or concerns about this interface, or about the expertise scoring process.`;return(0,s.useEffect)(()=>{f.get("referrer")?x({type:"referrerLink",value:f.get("referrer")}):x({type:"venueHomepageLink",value:n})},[f]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("header",{children:[(0,i.jsx)("h1",{children:d||(0,w.prettyId)(t.id)}),(0,i.jsx)("div",{className:"description dark",children:(0,i.jsx)(o.A,{text:c??j})})]}),(0,i.jsx)("div",{id:"invitation",children:(0,i.jsx)(l.default,{invitationId:u??"OpenReview.net/Archive/-/Direct_Upload",apiVersion:2,onNoteCreated:()=>{promptMessage("Your paper has been added to the OpenReview Archive"),m()},options:{largeLabel:!0}})}),(0,i.jsx)("div",{id:"notes",children:(0,i.jsx)(I,{invitation:t,venueId:n,apiVersion:p,shouldReload:h})})]})}}
14,60212:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BidRadioButtonGroup:()=>l,BidScore:()=>r});var i=n(95155),s=n(12115),a=n(49498);let r=({scoreEdge:e})=>e?(0,i.jsxs)("div",{className:"tag-widget text ","data-type":"text",children:[(0,i.jsx)("label",{children:(0,a.prettyInvitationId)(e.invitation)}),(0,i.jsx)("span",{className:"current-value",children:e.weight})]}):null,l=({label:e,options:t,selectedBidOption:n,updateBidOption:a,bidUpdateStatus:r,className:l})=>{let[o,d]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{d(!1)},[n,r]),(0,i.jsxs)("div",{className:`tag-widget edge-widget ${l??""}`,"data-type":"radio",children:[(0,i.jsxs)("label",{children:[e,":"]}),(0,i.jsx)("div",{className:`btn-group btn-group-xs${o?" disabled":""}`,role:"group","data-toggle":"buttons",children:t.map(e=>(0,i.jsxs)("label",{className:`btn btn-default radio-toggle${e===n?" active":""}`,onClick:()=>{d(!0),a(e)},children:[(0,i.jsx)("input",{type:"radio",name:"tag-options",autoComplete:"off",defaultChecked:e===n||null}),e]},e))})]})}},66358:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=n(95155),s=n(82735),a=n(49498);let r=({readers:e})=>e.includes("everyone")?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.A,{name:"globe",extraClasses:"readers-icon"})," Everyone"]}):e.map(e=>(0,i.jsx)("span",{title:e,"data-toggle":"tooltip","data-placement":"top",children:(0,a.prettyId)(e,!0)},e)).reduce((e,t)=>null===e?[t]:[...e,", ",t],null)},67167:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(95155),s=n(52619),a=n.n(s),r=n(21293);function l({currentPage:e=1,setCurrentPage:t,itemsPerPage:n,totalCount:s,baseUrl:l,queryParams:o={},options:d={}}){if(s<=n)return null;
14let c=Math.floor(s/n)+ +(s%n!=0),u=Math.min(d.pageListLength??14,c+4),p=Array(u);p[0]={key:"first",disabled:1===e,label:(0,i.jsx)("span",{children:"\xab"}),number:1,extraClasses:"left-arrow"},p[1]={key:"previous",disabled:1===e,label:(0,i.jsx)("span",{children:"‹"}),number:e-1,extraClasses:"left-arrow"},p[u-2]={key:"next",disabled:e===c,label:(0,i.jsx)("span",{children:"›"}),number:e+1,extraClasses:"right-arrow"},p[u-1]={key:"last",disabled:e===c,label:(0,i.jsx)("span",{children:"\xbb"}),number:c,extraClasses:"right-arrow"};let h=Math.min(Math.max(e-Math.floor((u-4)/2),1),Math.max(c-(u-5),1));for(let t=2;t<u-2;t+=1)p[t]={active:h===e,label:h,number:h},h+=1;let m=(e-1)*n+n;return m>s&&(m=s),(0,i.jsxs)("nav",{className:"pagination-container text-center","aria-label":"page navigation",children:[(0,i.jsx)("ul",{className:"pagination",children:p.map(e=>{let n,s=[];if(e.disabled&&s.push("disabled"),e.active&&s.push("active"),e.extraClasses&&s.push(e.extraClasses),e.disabled)n=(0,i.jsx)("span",{children:e.label});else if("function"==typeof t)n=(0,i.jsx)("a",{href:"#",role:"button",onClick:n=>{n.preventDefault(),!e.active&&(t(e.number),d.noScroll||window.scrollTo(0,0))},children:e.label});else{let t=(0,r.stringify)({...o,page:e.number},{skipNull:!0});n=(0,i.jsx)(a(),{href:`${l}?${t}`,shallow:d.useShallowRouting??!1,children:e.label})}return(0,i.jsx)("li",{className:s.join(" "),children:n},e.key||e.number)})}),d.showCount&&(0,i.jsx)("span",{className:"pagination-count",children:`Showing ${(e-1)*n+1}${1===n?"":`-${m}`} of ${s}`})]})}},68325:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var i=n(95155),s=n(12115),a=n(52619),r=n.n(a),l=n(83693),o=n.n(l),d=n(43535),c=n(13785),u=n(82735),p=n(67167);function h({listItems:e,totalCount:t,currentPage:n,setCurrentPage:s,itemsPerPage:a,ListItem:r,emptyMessage:l,className:o}){return(0,i.jsxs)("div",{className:o,children:[(0,i.jsx)("ul",{className:"list-unstyled list-paginated",children:e?.length>0?e.map(e=>(0,i.jsx)("li",{children:(0,i.jsx)(r,{item:e})},e.id)):(0,i.jsx)("li",{children:(0,i.jsx)("p",{className:"empty-message",children:l||"No items to display"})})}),(0,i.jsx)(p.A,{setCurrentPage:s,totalCount:t,itemsPerPage:a,currentPage:n,options:{noScroll:!0}})]})}function m({item:e}){return(0,i.jsx)(r(),{href:e.href,prefetch:!1,children:e.title})}function f({loadItems:e,searchItems:t,ListItem:n,emptyMessage:a,searchPlaceholder:r,itemsPerPage:l=15,shouldReload:p,className:f}){let[x,g]=(0,s.useState)(null),[v,j]=(0,s.useState)(null),[b,y]=(0,s.useState)(""),[N,w]=(0,s.useState)(1),[k,C]=(0,s.useState)(null),A="function"==typeof t&&(null===x||x?.length>0||b),E=(0,s.useCallback)(o()(e=>{y(e),w(1)},300),[t]);return(0,s.useEffect)(()=>{w(1),g(null)},[e]),(0,s.useEffect)(()=>{let n=async()=>{let n=(N-1)*l;try{let{items:i,count:s}=await (A&&b?t(b,l,n):e(l,n));g(i),j(s)}catch(e){C(e)}};"function"==typeof e&&n()},[N,b,e,t,l,p]),(0,s.useEffect)(()=>{x?.length&&typesetMathJax()},[x]),(0,i.jsxs)("div",{children:[k&&(0,i.jsx)(c.A,{error:k}),A&&(0,i.jsx)("form",{className:"form-inline notes-search-form",role:"search",onSubmit:e=>{e.preventDefault();let t=e.target[0].value.trim();t.length>1&&(y(t),w(1))},children:(0,i.jsxs)("div",{className:"form-group search-content has-feedback",children:[(0,i.jsx)("input",{type:"text",className:"form-control",placeholder:r||"Search submissions by title and metadata",autoComplete:"off",onChange:e=>{let t=e.target.value.trim();0===t.length?(y(""),w(1),g(null)):t.length>2&&E(t)}}),(0,i.jsx)(u.A,{name:"search",extraClasses:"form-control-feedback"})]})}),x?(0,i.jsx)(h,{listItems:x,totalCount:v,itemsPerPage:l,currentPage:N,setCurrentPage:w,ListItem:"function"==typeof n?n:m,emptyMessage:a,className:f}):(0,i.jsx)(d.A,{inline:!0})]})}},76607:(e,t,n)=>{"use strict";n.d(t,{H:()=>x,A:()=>g});var i=n(95155),s=n(52619),a=n.n(s),r=n(49498),l=n(637);let o=({id:e,forum:t,invitation:n,content:s={},signatures:l,options:o={}})=>(0,i.jsxs)("h4",{children:[o.openNoteInNewWindow?(0,i.jsx)("a",{href:(0,r.buildNoteUrl)(e,t,s,o),target:"_blank",rel:"nofollow noreferrer",children:s.title?.value||(0,r.buildNoteTitle)(n,l)}):(0,i.jsx)(a(),{href:(0,r.buildNoteUrl)(e,t,s,o),children:s.title?.value||(0,r.buildNoteTitle)(n,l)}),o.pdfLink&&s.pdf?.value&&(0,i.jsx)(a(),{href:s.pdf.value.startsWith("http")?s.pdf.value:`/attachment?id=${e}&name=pdf`,className:"pdf-link",title:"Download PDF",target:"_blank",rel:"noopener noreferrer",children:(0,i.jsx)("img",{src:"/images/pdf_icon_blue.svg",alt:"pdf icon"})}),o.htmlLink&&s.html?.value&&(0,i.jsx)("a",{href:s.html.value,className:"html-link",title:"Open Website",rel:"noopener noreferrer",target:"_blank",children:(0,i.jsx)("img",{src:"/images/html_icon_blue.svg",alt:"hmtl icon"})})]}),d=({id:e,forum:t,invitation:n,content:s,signatures:o,options:d={}})=>(0,i.jsxs)("h4",{children:[d.openNoteInNewWindow?(0,i.jsx)("a",{href:`/forum?id=${t}${e===t?"":`&noteId=${e}`}`,target:"_blank",rel:"nofollow noreferrer",children:s.title||(0,r.buildNoteTitle)(n,o)}):(0,i.jsx)(a(),{href:`/forum?id=${t}${e===t?"":`&noteId=${e}`}${d.referrer?`&referrer=${encodeURIComponent(d.referrer)}`:""}`,children:s.title||(0,r.buildNoteTitle)(n,o)}),d.pdfLink&&s.pdf&&(0,i.jsx)(a(),{href:`/attachment?id=${e}&name=pdf`,className:"pdf-link",title:"Download PDF",target:"_blank",children:(0,i.jsx)("img",{src:"/images/pdf_icon_blue.svg",alt:"pdf icon"})}),d.htmlLink&&s.html&&(0,i.jsx)("a",{href:s.html,className:"html-link",title:"Open Website",rel:"noopener noreferrer",target:"_blank",children:(0,i.jsx)("img",{src:"/images/html_icon_blue.svg",alt:"hmtl icon"})}),d.htmlLink&&s.ee&&(0,i.jsx)("a",{href:s.ee,className:"html-link",title:"Open Website",rel:"noopener noreferrer",target:"_blank",children:(0,i.jsx)("img",{src:"/images/html_icon_blue.svg",alt:"hmtl icon"})}),d.unlinkButton&&(0,i.jsx)(l.default,{noteId:e,linkUnlinkPublication:d.linkUnlinkPublication,isUnlinked:d.isUnlinked})]});var c=n(39110),u=n(66358),p=n(92463),h=n(82735),m=n(81065),f=n(89950);let x=({note:e,options:t})=>{let n=t.showPrivateIcon&&!e.readers.includes("everyone"),s=["pdf","html"].concat(t.omitFields??[]),a=(0,r.getNoteAuthorIds)(e,!0),l=(0,r.getNoteAuthors)(e,!0);return(0,i.jsxs)("div",{className:`note ${n?"note-private":""} ${t.unlinkedPublications?.includes(e.id)?"unlinked-publication":""}
14 ${t.extraClasses}`,children:[t.customTitle?t.customTitle(e):(0,i.jsx)(o,{id:e.id,forum:e.forum,invitation:e.invitations[0],content:e.content??{},signatures:e.signatures,options:t}),e.forumContent&&e.id!==e.forum&&(0,i.jsxs)("div",{className:"note-parent-title",children:[(0,i.jsx)(h.A,{name:"share-alt"}),(0,i.jsx)("strong",{children:e.forumContent.title?.value||"No Title"})]}),(0,i.jsx)("div",{className:"note-authors",children:t.customAuthor?t.customAuthor(e):(0,i.jsx)(c.vo,{authors:l,authorIds:a,signatures:e.signatures,noteReaders:e.readers})}),t.customMetaInfo?t.customMetaInfo(e):(0,i.jsxs)("ul",{className:"note-meta-info list-inline",children:[t.clientRenderingOnly?(0,i.jsx)(f.default,{note:e}):(0,i.jsx)("li",{children:(0,r.forumDate)(e.cdate,e.tcdate,e.mdate,e.tmdate,e.content?.year?.value,e.pdate)}),(0,i.jsxs)("li",{children:[e.note||!e.content?.venue?.value?(0,r.prettyId)(e.invitations[0]):e.content?.venue?.value,n&&(0,i.jsx)(h.A,{name:"eye-open",extraClasses:"note-visible-icon ml-2",tooltip:"Privately revealed to you"})]}),(0,i.jsxs)("li",{className:"readers",children:["Readers: ",(0,i.jsx)(u.A,{readers:e.readers})]}),t.replyCount&&"number"==typeof e.details?.replyCount&&(0,i.jsx)("li",{children:(0,r.inflect)(e.details?.replyCount,"Reply","Replies",!0)})]}),!t.showContents||e.ddate&&e.ddate<=Date.now()?null:t.collapse?(0,i.jsx)(m.default,{showLabel:"Show details",hideLabel:"Hide details",indent:!0,children:(0,i.jsx)(p.NoteContentV2,{id:e.id,content:e.content??{},omit:s,isEdit:t.isReference,presentation:e.details?.presentation,noteReaders:e.readers?.sort()})}):(0,i.jsx)(p.NoteContentV2,{id:e.id,content:e.content??{},omit:s,isEdit:t.isReference,presentation:e.details?.presentation,noteReaders:e.readers?.sort()})]})},g=({note:e,invitation:t,options:n})=>{let s=n.showPrivateIcon&&!e.readers.includes("everyone");return(0,i.jsxs)("div",{className:`note ${s?"note-private":""} ${n.unlinkedPublications?.includes(e.id)?"unlinked-publication":""}`,children:[(0,i.jsx)(d,{id:e.id,forum:e.forum,invitation:e.invitation,content:e.content,signatures:e.signatures,options:{...n,isUnlinked:n.unlinkedPublications?.includes(e.id)}}),e.forumContent&&e.id!==e.forum&&(0,i.jsxs)("div",{className:"note-parent-title",children:[(0,i.jsx)(h.A,{name:"share-alt"}),(0,i.jsx)("strong",{children:e.forumContent.title||"No Title"})]}),(0,i.jsx)("div",{className:"note-authors",children:(0,i.jsx)(c.Ay,{authors:e.content.authors,authorIds:e.content.authorids,signatures:e.signatures,original:e.details?.original})}),(0,i.jsxs)("ul",{className:"note-meta-info list-inline",children:[(0,i.jsx)("li",{children:(0,r.forumDate)(e.cdate,e.tcdate,e.mdate,e.tmdate,e.content.year,e.pdate)}),(0,i.jsxs)("li",{children:[e.content.venue?e.content.venue:(0,r.prettyId)(e.invitation),s&&(0,i.jsx)(h.A,{name:"eye-close",extraClasses:"note-visible-icon",tooltip:"Privately revealed to you"})]}),(0,i.jsxs)("li",{className:"readers",children:["Readers: ",(0,i.jsx)(u.A,{readers:e.readers})]}),n.replyCount&&"number"==typeof e.details?.replyCount&&(0,i.jsx)("li",{children:(0,r.inflect)(e.details?.replyCount,"Reply","Replies",!0)})]}),!n.showContents||e.ddate&&e.ddate<=Date.now()?null:n.collapse?(0,i.jsx)(m.default,{showLabel:"Show details",hideLabel:"Hide details",indent:!0,children:(0,i.jsx)(p.default,{id:e.id,content:e.content,invitation:e.details?.originalInvitation||e.details?.invitation||t,omit:n.omitFields,isReference:n.isReference})}):(0,i.jsx)(p.default,{id:e.id,content:e.content,invitation:e.details?.originalInvitation||e.details?.invitation||t,omit:n.omitFields,isReference:n.isReference})]})}},78844:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var i=n(95155),s=n(12115),a=n(36117),r=n.n(a),l=n(44839),o=n.n(l),d=n(28835),c=n(43535),u=n(42540);function p({invitation:e,note:t,forumId:n,replyToId:a,loadingIndicator:r,onNoteCreated:l,onNoteEdited:o,onNoteCancelled:d,onLoad:p,onValidate:h,onError:m}
14){let[f,x]=(0,s.useState)(!0),g=(0,s.useRef)(null),{user:v,isRefreshing:j}=(0,u.A)(),b=e=>{if(x(!1),!e&&"function"==typeof m)return void m(!0);$(g.current).append(e),"function"==typeof p&&p()},y=e=>{"function"==typeof l&&l(e)},N=e=>{"function"==typeof o&&o(e)},w=e=>{x(!1);let t=e?.[0];"You do not have permission to create a note"!==t&&v?t?promptError(t):promptError("An unknown error occurred. Please refresh the page and try again."):promptLogin(v),"function"==typeof m&&m(["Can not create note, readers must match parent note","Default reader is not in the list of readers","no_results"].includes(t))};return((0,s.useEffect)(()=>{e&&!j&&"undefined"!=typeof view&&(v||promptLogin(),x(!0),t?(e.edit?view2.mkNoteEditor:view.mkNoteEditor)(t,e,v,{onNoteEdited:N,onNoteCancelled:d,onValidate:h,onCompleted:b,onError:w}):(e.edit?view2.mkNewNoteEditor:view.mkNewNoteEditor)(e,n,a,v,{onNoteCreated:y,onNoteCancelled:d,onValidate:h,onCompleted:b,onError:w}))},[e,n,a,g,j]),e&&v)?(0,i.jsxs)("div",{className:"note-editor-container",children:[f&&("object"==typeof r?r:(0,i.jsx)(c.A,{inline:!0})),(0,i.jsx)("div",{ref:g})]}):null}var h=n(3361),m=n(49498);function f({invitationId:e,onNoteCreated:t,apiVersion:n,options:a}
14){let[l,o]=(0,s.useState)(null),[c,u]=(0,s.useState)(!1),[f,x]=(0,s.useState)(!1),g=l?.domain,v=l?.duedate&&l.duedate<Date.now(),j=l?.ddate,b=(v||j)&&!l?.details.writable,y=async()=>{try{let{invitations:t}=await h.A.get("/invitations",{id:e},{version:n});if(t?.length>0){let e=await h.A.get("/groups",{id:t[0].domain,select:"content.request_form_invitation"}).catch(()=>void 0);o(t[0]),u(e?.groups?.[0]?.content?.request_form_invitation)}}catch(t){console.warn(`Invitation ${e} could not be loaded:`,t.message)}},N=()=>{x(!f)};return((0,s.useEffect)(()=>{y()},[e]),!l||b)?null:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"panel",children:[a.largeLabel?(0,i.jsx)("strong",{className:"item hint",children:"Add:"}):(0,i.jsx)("span",{className:"item hint",children:"Add:"}),(0,i.jsx)("button",{className:`btn ${v||j?"expired":""}`,onClick:N,"data-toggle":"tooltip","data-placement":"top","data-trigger":"hover",title:j?`${(0,m.prettyInvitationId)(e)} invitation is deleted. ddate: ${(0,m.formatDateTime)(l.ddate)}`:v?`${(0,m.prettyInvitationId)(e)} expired ${r()(l.expdate).fromNow()}`:"",children:(0,m.prettyId)(e)}),a.showStartEndDate&&c&&(0,i.jsxs)("span",{className:" hint",children:[l.cdate?` Submission start: ${(0,m.formatDateTime)(l.cdate)}`:"",l.duedate?`, Deadline: ${(0,m.formatDateTime)(l.duedate)}`:""]})]}),f&&(g?(0,i.jsx)(d.Ay,{invitation:l,closeNoteEditor:N,onNoteCreated:e=>{t(e)},className:"panel"}):(0,i.jsx)(p,{invitation:l,onNoteCreated:e=>{N(),t(e)},onNoteCancelled:N,onError:e=>{e&&N()}}))]})}r().extend(o())},88678:(e,t,n)=>{"use strict";n.d(t,{Kp:()=>p,T2:()=>u,m$:()=>h,oz:()=>c,tU:()=>o,wb:()=>d});var i=n(95155),s=n(39491),a=n(12115),r=n(82735);let l={item:{fontWeight:"bold",color:"#3e6775"}};function o({children:e,className:t}){return(0,i.jsx)("div",{className:`tabs-container ${t||""}`,children:e})}function d({children:e}){return(0,i.jsx)("div",{className:"mobile-full-width",children:(0,i.jsx)("ul",{className:"nav nav-tabs",role:"tablist",children:e})})}function c({id:e,headingCount:t,icon:n,onClick:s,active:l,hidden:o,disabled:d,children:c}){let u=(0,a.useRef)(null);return((0,a.useEffect)(()=>{u.current&&l&&u.current.click()},[u,l]),o)?null:(0,i.jsx)("li",{role:"presentation",className:d?"disabled":null,children:(0,i.jsxs)("a",{href:`#${e}`,role:"tab","data-toggle":"tab",ref:u,onClick:e=>d?(e.preventDefault(),!1):("function"==typeof s&&s(e),!0),children:[c,Number.isInteger(t)&&(0,i.jsx)("span",{className:"badge",children:t}),n&&(0,i.jsx)(r.A,{name:n})]})})}function u({children:e}){return(0,i.jsx)("div",{className:"tab-content",children:e})}function p({id:e,className:t,children:n}){return(0,i.jsx)("div",{id:e,className:`tab-pane fade ${t||""}`,role:"tabpanel",children:n})}function h({items:e,styles:t,...n}){return(0,i.jsx)(s.A,{...n,items:e,styles:{...l,...t}})}},89950:(e,t,n)=>{"use strict";n.d(t,{default:()=>r});var i=n(95155),s=n(12115),a=n(49498);function r({note:e}){let[t,n]=(0,s.useState)(!1);return((0,s.useEffect)(()=>{n(!0)},[]),t)?(0,i.jsx)("li",{children:(0,a.forumDate)(e.cdate,e.tcdate,e.mdate,e.tmdate,e.content?.year?.value,e.pdate)}):null}},91068:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var i=n(95155);let s=function({color:e,dismissible:t,children:n}){return(0,i.jsxs)("div",{className:`alert alert-${e} ${t?"alert-dismissible":""}`,role:"alert",children:[t&&(0,i.jsx)("button",{type:"button",className:"close","data-dismiss":"alert","aria-label":"Close",children:(0,i.jsx)("span",{"aria-hidden":"true",children:"\xd7"})}),n]})}}}]);

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.