1"use strict";(self.webpackChunkuniprot_website=self.webpackChunkuniprot_website||[]).push([[7096],{47597(e,t,n){const r=/<([0-9a-zA-Z$\-_.+!*'(),?/:=&%]+)>; rel="next"/;n.d(t,["A",0,e=>{if(!e?.link)return;const t=r.exec(e.link);return t?.[1]}])},5680(e,t,n){n.r(t),n.d(t,{PublicationReference:()=>S,PublicationSource:()=>k,default:()=>M}),n(29690),n(74495),n(67622),n(80746),n(38660),n(90882),n(85528),n(23132),n(75438),n(39828),n(84156),n(29462),n(8415),n(39490),n(18208),n(86100),n(40106),n(26572),n(35534),n(25833),n(85459),n(16137),n(67148);var r=n(36371),o=n(51960),i=n(41766),s=n(71763),a=n(85399),c=n(66532),u=n(87912),l=n(13197),d=n(78375),f=n(61151),h=n(12249),m=n(52871),p=n(51153),x=n(69429),v=n(85429),y=n(47597),j=n(44032),g=n(72695),A=n(35590),b=n(56914),I=n(65845),C=n(10531),w=(n(9390),n(88451),n(43988),n(84277)),T=n(43594),P=n(91987);const F=({accession:e})=>{const{submitted:t,indexed:n}=(0,s.useContext)(w.J),o=(0,P.jsxs)(f.A,{url:h.A.CommunityCuratedGetByAccession(e),children:["View all community curated publications",t?` (${t})`:""," within the Community Bibliography Submissions website"]});return void 0===n||t<=n?(0,P.jsx)(r.QB,{level:"info",children:o}):(0,P.jsxs)(r.QB,{level:"info",children:["This release of UniProt is missing the latest community curated publications. This happens when new community submissions are made between releases.",(0,P.jsxs)("ul",{children:[(0,P.jsx)("li",{children:o}),(0,P.jsx)("li",{children:(0,P.jsx)(a.N_,{to:{pathname:(0,u.u3)(x.g$.uniprotkb,e,T.l.Publications),search:""},children:"View all current publications in this UniProt release"})})]})]})},U=/(\d{4}-){3}\d{4}/,k=({accession:e,source:t,citationId:n})=>{const r=(0,p.A)();if(t.name.includes("UniProtKB"))return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(l.Ay,{entryType:t.name}),t.name]});let o=t&&r?.databaseToDatabaseInfo[t.name]?.uriLink;if("ORCID"===t.name)return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(l.Ay,{entryType:t.name}),t.name,":"," ",(0,I.fx)(t.id)?(0,P.jsx)(I.Ay,{}):(0,P.jsx)(f.A,{url:t.id&&U.test(t.id)?(0,g.rJ)(o,{id:t.id}):null,children:t.id})," (",(0,P.jsx)(f.A,{url:h.A.CommunityCuratedGetByAccession(e,n),children:"see community submission"}),")."]});"GeneRif"===t.name?o=r?.databaseToDatabaseInfo.GeneRIF?.uriLink:"MGI"===t.name?o=o?.replace("%id","MGI:%id"):"IEDB"===t.name?o="https://iedb.org/antigen/UNIPROT:%id":"IMPC"===t.name&&(o="https://www.mousephenotype.org/data/genes/%id");const i=t?.id&&(0,g.rJ)(o,{id:t.id,primaryAccession:t.id})||null;return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(l.Ay,{entryType:"computationally mapped"}),t.name,": ",(0,P.jsx)(f.A,{url:i,children:t.id})]})},S=({references:e,accession:t})=>{const n=e.reduce((e,{sourceCategories:t})=>e+(t?.length??0),0),c=e.map(e=>{const{referencePositions:r,referenceComments:c,source:l,sourceCategories:d,communityAnnotation:f,annotation:h,citationId:m}=e,p=(0,o.A)(c,"type");return[{title:"Cited for",content:r&&(0,j.T)(r,t).map((e,t)=>(0,P.jsxs)(s.Fragment,{children:[t>0&&", ",e]},t))},...Object.entries(p).map(([e,t])=>({title:(0,i.A)(e),content:(0,P.jsx)(P.Fragment,{children:t.map((t,n)=>(0,P.jsxs)(s.Fragment,{children:[n>0&&", ","STRAIN"===e?(0,P.jsx)(a.N_,{to:{pathname:u.qg[u.aZ.UniProtKBResults],search:`query=strain:"${t.value}"`},children:t.value}):t.value]},n))})})),{title:"Annotation",content:h||f?.comment},{title:"Function",content:f?.function},{title:"Disease",content:f?.disease},{title:(0,j.aX)("Category",n,"Categories"),content:d?.join(", ")},{title:"Source",content:l&&(0,P.jsx)(k,{accession:t,source:l,citationId:m})}]}),l=[],d=new Map;for(const e of c)for(const{title:t,content:n}of e){const e=d.get(t);if(e)void 0!==n&&e.content!==n&&(e.content=(0,P.jsxs)(P.Fragment,{children:[e.content,e.content&&", ",n]}));else{const e={title:t,content:n};d.set(t,e),l.push(e)}}return(0,P.jsx)(r.f9,{infoData:l,isCompact:!0,className:"text-block"})},R=(0,v.X)(x.g$.citations),B=e=>Boolean(e.references?.length),M=({accession:e})=>{const{search:t}=(0,c.zy)(),[{selectedFacets:n}]=(0,C.W3)(t),o=b.A.publications.entryPublications({accession:e,selectedFacets:n}
1),[i,a]=(0,s.useState)(o),[u,l]=(0,s.useState)([]),[f,h]=(0,s.useState)(()=>({total:0,nextUrl:void 0})),{data:p,loading:x,status:v,error:g,headers:w}=(0,m.A)(i),T=(0,s.useMemo)(()=>u.filter(B),[u]);(0,s.useEffect)(()=>{l([]),h({total:0,nextUrl:void 0}),a(o)},[o]),(0,s.useEffect)(()=>{if(!p)return;const{results:e}=p;l(t=>[...t,...e]),h(()=>({total:+(w?.["x-total-results"]||0),nextUrl:(0,y.A)(w)}))},[p,w]);const U=(0,s.useMemo)(()=>(e=>t=>(0,P.jsx)(r.Zp,{children:(0,P.jsx)(A.Ay,{data:t,headingLevel:"h3",linkToEntry:!0,children:(0,P.jsx)(S,{references:t.references,accession:e})})}))(e),[e]);if(g)return(0,P.jsx)(d.A,{status:v,error:g});const{total:k,nextUrl:M}=f,N=0===u.length&&x;return(0,P.jsxs)("section",{children:[(0,P.jsxs)("h2",{"data-article-id":"publications_section",children:[(0,j.aX)("Publication",k)," for ",e]}),n.some(I.$C)&&(0,P.jsx)(F,{accession:e}),N?(0,P.jsx)(r.aH,{}):(0,P.jsx)(r.aj,{getIdKey:R,data:T,dataRenderer:U,onLoadMoreItems:()=>M&&a(M),loaderComponent:(0,P.jsx)(r.aH,{}),hasMoreData:k>u.length})]})}},27395(e,t,n){var r=n(23176),o=n(23162),i=n(53220),s=n(3377);e.exports=function(e,t,n,a){try{var c=s(e,"return");if(c)return i("Promise").resolve(r(c,e)).then(function(e){try{t!==a&&o(e)}catch(e){return void a(e)}t(n)},function(e){t===a?t(n):a(e)})}catch(e){return a(t===a?n:e)}t(n)}},52838(e,t,n){var r=n(23176),o=n(83530),i=n(23162),s=n(83369),a=n(50232),c=n(12976),u=n(92666),l=n(84206),d=n(53220),f=n(3377),h=n(97401),m=n(4992),p=d("Promise"),x=u("toStringTag"),v="AsyncIteratorHelper",y="WrapForValidAsyncIterator",j=l.set,g=function(e){var t=!e,n=l.getterFor(e?y:v),a=function(e){var r=o(function(){return n(e)}),i=r.error,s=r.value;return i||t&&s.done?{exit:!0,value:i?p.reject(s):p.resolve(m(void 0,!0))}:{exit:!1,value:s}};return c(s(h),{next:function(){var e=a(this),t=e.value;if(e.exit)return t;var n=o(function(){return i(t.nextHandler(p))}),r=n.error,s=n.value;return r&&(t.done=!0),r?p.reject(s):p.resolve(s)},return:function(){var t=a(this),n=t.value;if(t.exit)return n;n.done=!0;var s,c,u=n.iterator,l=n.inner,d=function(){var t=o(function(){return f(u,"return")});return s=c=t.value,t.error?p.reject(c):void 0===s?p.resolve(m(void 0,!0)):(t=o(function(){return r(s,u)}),c=t.value,t.error?p.reject(c):e?p.resolve(c):p.resolve(c).then(function(e){return i(e),m(void 0,!0)}))},h=function(e){return d().then(function(){throw e},function(){throw e})};if(l){var x,v=l.iterator,y=o(function(){if(x=f(v,"return"))return r(x,v)});if(y.error)return h(y.value);if(x)return p.resolve(y.value).then(function(e){try{i(e)}catch(e){return h(e)}return d()},h)}return d()}})},A=g(!0),b=g(!1);a(b,x,"Async Iterator Helper"),e.exports=function(e,t){var n=function(n,r){r?(r.iterator=n.iterator,r.next=n.next):r=n,r.type=t?y:v,r.nextHandler=e,r.counter=0,r.done=!1,j(this,r)};return n.prototype=t?A:b,n}},47158(e,t,n){var r=n(23176),o=n(43753),i=function(e,t){return[t,e]};e.exports=function(){return r(o,this,i)}},43753(e,t,n){var r=n(23176),o=n(62481),i=n(23162),s=n(78271),a=n(76226),c=n(52838),u=n(4992),l=n(27395),d=c(function(e){var t=this,n=t.iterator,o=t.mapper;return new e(function(a,c){var d=function(e){t.done=!0,c(e)},f=function(e){l(n,d,e,d)};try{e.resolve(i(r(t.next,n))).then(function(n){try{if(i(n).done)t.done=!0,a(u(void 0,!0));else{var r=n.value;try{var c=o(r,t.counter++),l=function(e){a(u(e,!1))};s(c)?e.resolve(c).then(l,f):l(c)}catch(e){f(e)}}}catch(e){d(e)}},d)}catch(e){d(e)}})});e.exports=function(e){return i(this),o(e),new d(a(this),{mapper:e})}},97401(e,t,n){var r,o,i=n(43405),s=n(68486),a=n(38252),c=n(83369),u=n(68778),l=n(23589),d=n(92666),f=n(84214),h="USE_FUNCTION_CONSTRUCTOR",m=d("asyncIterator"),p=i.AsyncIterator,x=s.AsyncIteratorPrototype;if(x)r=x;else if(a(p))r=p.prototype;else if(s[h]||i[h])try{o=u(u(u(Function("return async function*(){}()")()))),u(o)===Object.prototype&&(r=o)}catch(e){}r?f&&(r=c(r)):r={},a(r[m])||l(r,m,function(){return this}),e.exports=r},45769(e,t,n){n(38660);var r=n(23176),o=n(32274).IteratorPrototype.map,i=function(e,t){return[t,e]};e.exports=function(){return r(o,this,i)}},83530(e){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},9390(e,t,n){var r=n(67725),o=n(10462),i=n(68778),s=n(50232),a=n(49522),c=n(92666),u=n(97401),l=n(84214),d=c("toStringTag"),f=T
1ypeError,h=function(){if(o(this,u),i(this)===u)throw new f("Abstract class AsyncIterator not directly constructable")};h.prototype=u,a(u,d)||s(u,d,"AsyncIterator"),!l&&a(u,"constructor")&&u.constructor!==Object||s(u,"constructor",h),r({global:!0,constructor:!0,forced:l},{AsyncIterator:h})},88451(e,t,n){n(67725)({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{indexed:n(47158)})},43988(e,t,n){n(67725)({target:"Iterator",proto:!0,real:!0,forced:!0},{indexed:n(45769)})}}]); 2//# sourceMappingURL=modern.uniprotkb-entry-publications.b24cb2.js.map
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.