PageSourceSearch

https://consensus.app/_next/static/chunks/2747-7e6525e4d745e9fb.js

js consensus.app collected 2026-10-01 08:32:14 UTC 56,463 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2747],{20554:(e,s,a)=>{a.d(s,{A:()=>eU});var l,t=a(37876),i=a(58103),n=a.n(i),r=a(90769),d=a(22695),c=a(42411),o=a(64587),x=a(86974),u=a(70315),p=a(79819),m=a(5068),h=a(61694),j=a(4988),b=a(89099),f=a(14232),C=a(86245),g=a(50062),v=a(84317),L=((l={}).Citations="Citations",l.References="References",l);let N=function({selectedTab:e,onClickLoadMore:s,relatedPapers:a,canLoadMore:l,isLoading:i,isError:n}){let[r]=(0,u.A)("general"),d="Citations"===e?x.GR.CitationList:x.GR.ReferenceList;return!n&&(i||a.length)?(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{children:[(0,t.jsx)(g.CF,{actionSource:d,clearSearchResultTags:!0,children:(0,t.jsx)(v.A,{isLoading:i,items:a,showCiteBtn:!0,showSaveBtn:!0,showShareBtn:!0,resultIdToYesNoAnswer:{}})}),l&&(0,t.jsx)("div",{className:"flex justify-center my-6",children:(0,t.jsx)(C.d,{"data-testid":`loadmore-button-${e}`,onClick:s,disabled:i,size:"sm",variant:C.A.Tertiary,label:r["load-more"],iconRight:"icon-chevron-down"})})]})}):null},y=function({id:e,relatedPaperType:s}){let[a]=(0,u.A)("screens.details.related"),[l]=(0,u.A)("screens.details.related.export-papers"),{papers:i,fetchNextPage:n,hasNextPage:r,isError:d,isFetchingNextPage:C,isLoading:g}=function({id:e,relatedPaperType:s,enabled:a=!0}){let l=(0,b.useRouter)(),{data:t,fetchNextPage:i,hasNextPage:n,isError:r,isFetchingNextPage:d,isLoading:c}=(0,p.q)({queryKey:[s,e,"paginated"],queryFn:async({pageParam:a=0})=>{let l=await (0,o.hmV)(s,e,a);return l&&l.papers?{papers:l.papers.map(o.vNY),nextOffset:l.nextOffset,isEnd:l.isEnd}:{papers:[],nextOffset:0,isEnd:!0}},getNextPageParam:e=>{if(!e.isEnd)return e.nextOffset},enabled:a&&!!e,onError:e=>{m.A.isAxiosError(e)&&e.response?.status===429&&((0,j.jh)({error:e,source:"csr-redirect-429",additionalContext:{hook:"useRelatedPapers",...(0,o.DuO)(e)}}),l.push(h.Ay.TOO_MANY_REQUESTS))},staleTime:1/0});return{papers:(0,f.useMemo)(()=>t?.pages.flatMap(e=>e.papers)??[],[t?.pages]),fetchNextPage:i,hasNextPage:!!n,isError:r,isFetchingNextPage:d,isLoading:c}}({id:e,relatedPaperType:s}),v=s===o.FFv.CITATIONS?L.Citations:L.References,y=s===o.FFv.CITATIONS?a.citations:a.references,w=s===o.FFv.CITATIONS?a["no-citations-found"]:a["no-references-found"];return(0,t.jsx)("div",{className:"flex flex-col gap-8",children:(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center justify-between border-b border-border-base pb-4 mb-1",children:[(0,t.jsx)("h2",{className:"text-body-base font-bold",children:y}),(0,t.jsx)(c.A,{items:i,title:y,skipPapersFetch:!0,label:l,actionSource:v===L.Citations?x.GR.CitationList:x.GR.ReferenceList})]}),g||i.length>0?(0,t.jsx)(N,{selectedTab:v,isLoading:g||C,canLoadMore:r,relatedPapers:i,onClickLoadMore:n,isError:d}):(0,t.jsx)("div",{className:"text-center text-fg-muted py-4",children:w})]})})};var w=a(36310),A=a(4109),k=a(82547),M=a(25379),R=a(2611),T=a(49691),_=a(64427);let S=()=>{let[e]=(0,u.A)("tooltips.influential-citations"),s=e.title,a=e.content,l=e["learn-more"],i=_.LD;return(0,t.jsxs)("div",{className:"flex flex-col gap-y-3",children:[(0,t.jsx)("p",{className:"sm-bold",children:s}),(0,t.jsx)("p",{className:"sm-normal",children:a}),(0,t.jsx)(C.d,{onClick:e=>{e.preventDefault(),window.open(i)},label:l,iconRight:"icon-external-link",variant:C.A.Tertiary,size:"sm"})]})},E=({paper:e})=>{let[s,a]=(0,u.A)("screens.details.citations","screens.details.influential-citations");return(0,t.jsxs)("div",{className:"flex gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"lg-md",children:(0,T.H)(e.citation_count??0)}),(0,t.jsx)("p",{className:"sm-normal text-fg-muted",children:s})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"lg-md",children:(0,T.H)(e.influential_citation_count??0)}),(0,t.jsxs)("p",{className:"sm-normal text-fg-muted",children:[a,"\xa0",(0,t.jsx)(R.A,{interactive:!0,tooltipContent:(0,t.jsx)(S,{}),children:(0,t.jsx)("i",{className:"icon-info","aria-label":"Influential Citations Info","data-testid":"influential-citations-tooltip"})})]})]})]})},Z=(0,f.createContext)([{studyDetails:null},()=>{}]),F=e=>{let[s,a]=(0,f.useState)({studyDetails:null}),l=(0,f.useCallback)(e=>{a(s=>({...s,...e}))},[]);return(0,t.jsx)(Z.Provider,{value:[s,l],children:e.children})};var z=a(70453);function I({selectedTab:e,onTabClick:s,hideCitations:a,hideReferences:l}){let[i]=(0,u.A)("screens.details.tabs"),n=[{id:"overview",label:i.overview,hidden:!1,disabled:!1},{id:"references",label:i.references,hidden:l,disabled:l},{id:"citations",label:i.citations,hidden:a,disabled:a}];return(0,t.jsx)(z.A,{tabs:n,selectedTab:e,onTabClick:e=>{s(e)}})}var V=a(90433),H=a(3606);let O=function({quartile:e}){if(null!==e&&![1,2,3,4].includes(e))throw Error("Invalid quartile value. Expected a number between 1 and 4.");let[s]=(0,u.A)("quartile");return(0,t.jsx)(R.A,{interactive:!0,widthFull:!0,maxWidth:334,tooltipContent:(0,t.jsxs)("div",{className:"flex flex-col gap-3 ",children:[(0,t.jsxs)("p",{className:"sm-bold text-fg-base",children:[(0,t.jsx)("span",{children:e?`Q${e}`:"UNKNOWN"}),(0,t.jsx)("span",{children:"\xa0"}),s["title-quartile"]]}),(0,t.jsxs)("p",{className:"sm-normal",children:[(0,t.jsx)("a",{className:"underline",target:"_blank",rel:"noreferrer",href:"https://www.scimagojr.com/journalrank.php",children:s["scimago-journal-rank"]})," ",s.description]}),e?null:(0,t.jsxs)("p",{className:"tiny-normal text-fg-muted",children:[s["we-could-not-map"]," ",(0,t.jsx)("a",{onClick:()=>(0,H.WU)(),className:"underline",children:"here"}),"."]}),(0,t.jsxs)("div",{className:"pt-3 flex gap-2 justify-between items-center border-t border-t-border-base",children:[(0,t.jsx)(V.xu,{quartile:e}),(0,t.jsxs)("div",{className:"tiny-normal text-fg-muted shrink-0",children:[(0,t.jsx)("span",{children:e?`Q${e},`:""}),"\xa0",(0,t.jsx)("span",{children:s[`${V.zE[`${e?`Q${e}`:"UNKNOWN"}`]}`]})]})]})]}),children:(0,t.jsxs)("div",{className:"flex items-center sm:justify-start sm:gap-x-4 w-full tiny-md text-fg-base gap-x-2",children:[(0,t.jsxs)("div",{className:"flex flex-wrap sm-normal text-fg-muted shrink-0",children:[(0,t.jsx)("span",{children:e?`Q${e}`:"UNKNOWN"}),(0,t.jsx)("span",{children:"\xa0"}),(0,t.jsx)("span",{children:s.title})]}),e?(0,t.jsx)(V.xu,{quartile:e}):null]})})}
1,D=({journal:e,hideSJR:s})=>{let[a]=(0,u.A)("screens.details.empty-journal-name");return(0,t.jsxs)("div",{className:"flex flex-col items-start",children:[(0,t.jsx)("p",{"data-testid":"journal-title",className:"lg-md",children:e.title??a}),(0,t.jsx)("div",{className:"flex flex-col w-full gap-y-3",children:!s&&(0,t.jsx)(O,{quartile:e.scimago_quartile??null})})]})};var P=a(60718),U=a(17276),q=a(87319),$=a(39297),B=a(56736);let G=function({paper:e}){let[s]=(0,u.A)("screens.details"),[a]=(0,u.A)("paper-metadata"),[l,i]=(0,f.useState)(!1),n=(0,f.useMemo)(()=>e.authors.length-_.zu,[e.authors]),r=(0,f.useMemo)(()=>{if(!e.publish_date)return e.year;let s=(0,$.j3)(e.publish_date);if(!s)return e.year;let a=s.getUTCMonth(),l=s.getUTCDate(),t=s.getUTCFullYear();return 0===a&&1===l?t:1===l?new Intl.DateTimeFormat("en-US",{year:"numeric",month:"short",timeZone:"UTC"}).format(s):new Intl.DateTimeFormat("en-US",{year:"numeric",month:"short",day:"numeric",timeZone:"UTC"}).format(s)},[e]),d=e.authors.length>0;return(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsxs)(B.E,{size:"sm",theme:"muted",className:"m-0!","data-testid":l?"show-more-author":"hide-more-author",children:[null!==r&&(0,t.jsxs)(t.Fragment,{children:[s.published," ",r,(e.doi||d)&&(0,t.jsxs)(t.Fragment,{children:[" ",(0,t.jsx)(q.w,{})," "]})]}),e.doi&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(U.p,{doi:e.doi,children:a.DOI}),d&&(0,t.jsxs)(t.Fragment,{children:[" ",(0,t.jsx)(q.w,{})," "]})]}),(l?e.authors:e.authors.slice(0,_.zu)).map((e,s)=>(0,t.jsxs)("span",{children:[s>0&&(0,t.jsx)("span",{children:", "}),(0,t.jsx)(P.t,{children:e})]},s)),!l&&n>0&&(0,t.jsx)("button",{"data-testid":"more-author-button",onClick:()=>i(!0),className:"underline ml-2",children:s.more.replace("{count}",n)})]})})};var Y=a(80192),W=a(12384),K=a(29733),X=a(15526),Q=a(37100),J=a(53898);let ee=({isChecked:e,onToggle:s=()=>{},label:a,className:l="",checkboxSize:i="md",...n})=>(0,t.jsxs)("label",{onClick:e=>{e.preventDefault(),e.stopPropagation(),s()},className:`flex items-center gap-2 cursor-pointer ${l}`,children:[(0,t.jsx)("input",{type:"checkbox",checked:e,className:"hidden",readOnly:!0,...n}),(0,t.jsx)("span",{className:`cursor-pointer rounded border-border-base flex items-center justify-center ${e?"bg-accent-bg-base":"bg-bg-base border"} ${"sm"===i?"w-4 h-4":"w-5 h-5"}`,children:e&&(0,t.jsx)("i",{className:`text-white icon-check ${"sm"===i&&"text-sm"}`})}),a&&(0,t.jsx)("span",{className:"sm-md",children:a})]});var es=a(14431),ea=a(50770),el=a(38071),et=a(21654);let ei=({size:e="default",className:s})=>(0,t.jsxs)("svg",{width:(0,et.M)(e),height:(0,et.M)(e),viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,children:[(0,t.jsx)("path",{d:"M18.3385 5.65574V16.7738H1.66147L1.66147 3.80273L6.75724 3.80273L8.61024 5.65574L18.3385 5.65574Z",fill:"currentColor"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.48962 4.63088L2.48962 15.9457H17.5104V6.48389H8.61025C8.39062 6.48389 8.17998 6.39664 8.02467 6.24133L6.41422 4.63088L2.48962 4.63088ZM1.66148 2.97461L6.75725 2.97461C6.97688 2.97461 7.18752 3.06186 7.34283 3.21717L8.95328 4.82762L18.3385 4.82762C18.5582 4.82762 18.7688 4.91487 18.9241 5.07017C19.0794 5.22548 19.1667 5.43612 19.1667 5.65575V16.7738C19.1667 17.2312 18.7959 17.6019 18.3385 17.6019H1.66148C1.20411 17.6019 0.833344 17.2312 0.833344 16.7738L0.833344 3.80275C0.833344 3.34538 1.20411 2.97461 1.66148 2.97461Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"M18.3385 4.34776V15.4658H1.66147L1.66147 2.49475L6.75724 2.49475L8.61024 4.34776L18.3385 4.34776Z",fill:"var(--cdl-bg-faint)"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.48962 3.3229L2.48962 14.6377H17.5104V5.17591H8.61025C8.39062 5.17591 8.17998 5.08866 8.02467 4.93335L6.41422 3.3229L2.48962 3.3229ZM1.66148 1.66663L6.75725 1.66663C6.97688 1.66663 7.18752 1.75388 7.34283 1.90918L8.95328 3.51963L18.3385 3.51963C18.5582 3.51963 18.7688 3.60688 18.9241 3.76219C19.0794 3.91749 19.1667 4.12813 19.1667 4.34777V15.4658C19.1667 15.9232 18.7959 16.2939 18.3385 16.2939H1.66148C1.20411 16.2939 0.833344 15.9232 0.833344 15.4658L0.833344 2.49476C0.833344 2.0374 1.20411 1.66663 1.66148 1.66663Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"M7.02062 12.0713C5.2989 12.0713 3.78249 13.0077 2.89569 14.4284H11.1456C10.2588 13.0077 8.74235 12.0713 7.02062 12.0713Z",fill:"var(--cdl-chart-red-base)"}),(0,t.jsx)("path",{d:"M9.77058 9.32137C9.77058 10.8401 8.53938 12.0713 7.02062 12.0713C5.50186 12.0713 4.27067 10.8401 4.27067 9.32137C4.27067 7.80261 5.50186 6.57141 7.02062 6.57141C8.53938 6.57141 9.77058 7.80261 9.77058 9.32137Z",fill:"var(--cdl-chart-red-base)"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.02064 6.80187C5.6292 6.80187 4.50121 7.92986 4.50121 9.3213C4.50121 10.7127 5.6292 11.8407 7.02064 11.8407C8.41208 11.8407 9.54007 10.7127 9.54007 9.3213C9.54007 7.92986 8.41208 6.80187 7.02064 6.80187ZM8.30565 12.0113C9.30847 11.5314 10.0011 10.5072 10.0011 9.3213C10.0011 7.67523 8.66671 6.34082 7.02064 6.34082C5.37457 6.34082 4.04016 7.67523 4.04016 9.3213C4.04016 10.5072 4.7328
11 11.5314 5.73563 12.0113C4.47285 12.3536 3.39796 13.1883 2.70015 14.3063L2.48007 14.6589H11.5612L11.3411 14.3063C10.6433 13.1883 9.56843 12.3536 8.30565 12.0113ZM7.02064 12.3018C5.53193 12.3018 4.19974 13.0389 3.33254 14.1978H10.7087C9.84154 13.0389 8.50935 12.3018 7.02064 12.3018Z",fill:"var(--cdl-chart-red-base)"})]}),en=({size:e="default",className:s})=>(0,t.jsxs)("svg",{width:(0,et.M)(e),height:(0,et.M)(e),viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,children:[(0,t.jsx)("path",{d:"M2.38599 10.5759V9.19202L17.614 9.19202C17.614 9.19202 17.614 9.67371 17.614 10.5759C17.614 14.781 14.2051 18.19 10 18.19C5.7949 18.19 2.38599 14.781 2.38599 10.5759Z",fill:"var(--cdl-fg-muted)"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.3333 8.47266V10.5759C18.3333 15.1783 14.6024 18.9092 10 18.9092C5.39763 18.9092 1.66667 15.1783 1.66667 10.5759V8.47266L18.3333 8.47266ZM3.10531 9.9113V10.5759C3.10531 14.3837 6.19217 17.4706 10 17.4706C13.8078 17.4706 16.8947 14.3837 16.8947 10.5759V9.91194L3.10531 9.9113Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"M2.38599 9.16675C2.38599 4.96164 5.7949 1.55273 10 1.55273C14.2051 1.55273 17.614 4.96164 17.614 9.16675C17.614 13.3719 14.2051 16.7808 10 16.7808C5.7949 16.7808 2.38599 13.3719 2.38599 9.16675Z",fill:"var(--cdl-bg-faint)"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.66667 9.16671C1.66667 4.56433 5.39763 0.833374 10 0.833374C14.6024 0.833374 18.3333 4.56433 18.3333 9.16671C18.3333 13.7691 14.6024 17.5 10 17.5C5.39763 17.5 1.66667 13.7691 1.66667 9.16671ZM10 2.27201C6.19217 2.27201 3.10531 5.35887 3.10531 9.16671C3.10531 12.9745 6.19217 16.0614 10 16.0614C13.8078 16.0614 16.8947 12.9745 16.8947 9.16671C16.8947 5.35887 13.8078 2.27201 10 2.27201Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"M10.2949 14.2953C9.49075 15.0995 8.18701 15.0995 7.38289 14.2953C6.57877 13.4912 6.57877 12.1875 7.38289 11.3834C7.68939 11.0769 8.06848 10.8872 8.46483 10.8143C9.24549 10.6709 10.1366 10.6179 10.6979 10.0566C11.2591 9.49536 11.3121 8.60421 11.4556 7.82355C11.5285 7.42721 11.7181 7.04812 12.0246 6.74162C12.8288 5.9375 14.1325 5.9375 14.9366 6.74162C15.7407 7.54574 15.7407 8.84947 14.9366 9.6536C14.6527 9.93755 14.3064 10.1212 13.9419 10.2046C13.1502 10.3858 12.2405 10.4506 11.6662 11.0249C11.0919 11.5992 11.0271 12.5089 10.8459 13.3006C10.7625 13.6651 10.5788 14.0114 10.2949 14.2953Z",fill:"var(--cdl-chart-red-base)"}),(0,t.jsx)("path",{d:"M8.91169 8.35919C8.10757 9.16331 6.80383 9.16331 5.99971 8.35919C5.19559 7.55507 5.19559 6.25133 5.99971 5.44721C6.80383 4.64309 8.10757 4.64309 8.91169 5.44721C9.71581 6.25133 9.71581 7.55507 8.91169 8.35919Z",fill:"currentColor"})]});var er=a(62661),ed=a(72189);let ec=({size:e="default",className:s})=>(0,t.jsxs)("svg",{width:(0,et.M)(e),height:(0,et.M)(e),viewBox:"0 0 20 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,children:[(0,t.jsx)("path",{d:"M11.3874 1.5946L18.3794 8.58665L11.3874 15.5787L11.3874 11.3421L9.08636 11.3421V5.68228L11.3874 5.68227V1.5946Z",fill:"var(--cdl-chart-yellow-base)"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0861 0.867324C11.3803 0.745468 11.7189 0.812825 11.944 1.03799L18.9361 8.03003C19.2435 8.33748 19.2435 8.83596 18.9361 9.14341L11.944 16.1355C11.7189 16.3606 11.3803 16.428 11.0861 16.3061C10.7919 16.1843 10.6001 15.8972 10.6001 15.5788L10.6001 12.1294L9.08636 12.1294C8.87755 12.1294 8.67731 12.0465 8.52966 11.8988C8.38202 11.7512 8.29907 11.5509 8.29907 11.3421V5.68235C8.29907 5.24755 8.65155 4.89507 9.08635 4.89507L10.6001 4.89506V1.59468C10.6001 1.27625 10.7919 0.98918 11.0861 0.867324ZM12.1746 3.49534V5.68234C12.1746 6.11714 11.8222 6.46962 11.3874 6.46962L9.87363 6.46963V10.5549L11.3873 10.5548C11.5961 10.5548 11.7964 10.6378 11.944 10.7854C12.0917 10.9331 12.1746 11.1333 12.1746 11.3421L12.1746 13.6781L17.266 8.58672L12.1746 3.49534Z",fill:"var(--cdl-chart-yellow-base)"}),(0,t.jsx)("path",{d:"M6.26107 15.5596L12.5765 9.24418L12.5765 7.77284L6.26106 7.47864L1.62064 7.47864L1.62065 10.9576L6.26107 10.9576L6.26107 15.5596Z",fill:"currentColor"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.06396 6.92187C1.21161 6.77423 1.41185 6.69128 1.62065 6.69128L6.26108 6.69129C6.27329 6.69129 6.28551 6.69157 6.29771 6.69214L12.6131 6.98634C13.0333 7.00591 13.3638 7.35221 13.3638 7.77277L13.3638 9.24411C13.3638 9.45291 13.2808 9.65315 13.1332 9.8008L6.81778 16.1162C6.59262 16.3414 6.25399 16.4087 5.95981 16.2869C5.66562 16.165 5.4738
11 15.878 5.47381 15.5595L5.4738 11.7448L1.62066 11.7448C1.18586 11.7448 0.833387 11.3923 0.833385 10.9575L0.833374 7.47857C0.833373 7.26977 0.916319 7.06952 1.06396 6.92187ZM2.40794 8.26585L2.40794 10.1702L6.26109 10.1702C6.69589 10.1702 7.04836 10.5227 7.04836 10.9575L7.04837 13.6589L11.7892 8.918L11.7892 8.52423L6.24275 8.26585L2.40794 8.26585Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"M6.26106 14.0847L12.5765 7.76929L6.26106 1.45386L6.26106 5.90848H1.62065L1.62064 9.76301H6.26106V14.0847Z",fill:"var(--cdl-bg-faint)"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.95977 0.726577C6.25395 0.604721 6.59258 0.672078 6.81774 0.897238L13.1332 7.21267C13.4406 7.52012 13.4406 8.0186 13.1332 8.32605L6.81774 14.6415C6.59258 14.8666 6.25395 14.934 5.95977 14.8121C5.66558 14.6903 5.47376 14.4032 5.47376 14.0848V10.5504H1.62062C1.41182 10.5504 1.21158 10.4674 1.06393 10.3198C0.916288 10.1721 0.833343 9.97187 0.833344 9.76307L0.83336 5.90855C0.833362 5.47375 1.18584 5.12127 1.62064 5.12127H5.47376L5.47376 1.45393C5.47376 1.1355 5.66558 0.848433 5.95977 0.726577ZM7.04833 3.35459L7.04833 5.90855C7.04833 6.11735 6.96538 6.3176 6.81774 6.46524C6.67009 6.61289 6.46985 6.69583 6.26105 6.69583H2.40792L2.40791 8.9758H6.26104C6.69585 8.9758 7.04832 9.32827 7.04832 9.76308V12.1841L11.4631 7.76936L7.04833 3.35459Z",fill:"currentColor"})]}),eo=({size:e="default",className:s})=>(0,t.jsxs)("svg",{width:(0,et.M)(e),height:(0,et.M)(e),viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,children:[(0,t.jsx)("path",{d:"M1.63 9.37395C1.63 9.37395 4.38646 4.13 10 4.13C15.6135 4.13 18.37 9.37395 18.37 9.37395V10.4607H1.63V9.37395Z",fill:"currentColor"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.16347 6.1723C4.64774 4.77321 6.92599 3.33337 10 3.33337C13.074 3.33337 15.3523 4.77321 16.8365 6.1723C17.5794 6.87251 18.1335 7.57126 18.503 8.09599C18.6881 8.35895 18.828 8.57987 18.9231 8.73773C18.9706 8.8167 19.0071 8.88005 19.0324 8.92514C19.045 8.9477 19.0549 8.9657 19.0621 8.97884L19.0707 8.99485L19.0734 9.00004L19.0748 9.00268C19.075 9.00301 19.0752 9.00332 18.37 9.374L19.0748 9.00268C19.1349 9.117 19.1667 9.24485 19.1667 9.374V10.4607C19.1667 10.9007 18.81 11.2574 18.37 11.2574H1.63C1.19001 11.2574 0.833328 10.9007 0.833328 10.4607V9.374C0.833328 9.24485 0.864726 9.11764 0.924816 9.00332L1.63 9.374C0.924816 9.00332 0.924643 9.00365 0.924816 9.00332L0.925553 9.00192L0.926547 9.00004L0.92931 8.99485L0.937937 8.97884C0.945067 8.9657 0.95496 8.9477 0.96762 8.92514C0.992935 8.88005 1.02935 8.8167 1.0769 8.73773C1.17195 8.57987 1.31186 8.35895 1.49699 8.09599C1.86644 7.57126 2.42063 6.87251 3.16347 6.1723ZM2.42668 9.66407V9.58505C2.43156 9.57685 2.43664 9.56837 2.44192 9.55961C2.51954 9.43069 2.63884 9.24193 2.79983 9.01327C3.12264 8.55476 3.60841 7.94253 4.25638 7.33175C5.55372 6.10886 7.46046 4.92672 10 4.92672C12.5395 4.92672 14.4463 6.10886 15.7436 7.33175C16.3916 7.94253 16.8773 8.55476 17.2002 9.01327C17.3612 9.24193 17.4804 9.43069 17.5581 9.55961C17.5633 9.56837 17.5684 9.57685 17.5733 9.58505V9.66407H2.42668Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"M1.63003 10.495C1.63003 10.495 4.38649 4.91504 10 4.91504C15.6136 4.91504 18.37 10.495 18.37 10.495C18.37 10.495 15.4628 16.075 10 16.075C4.53725 16.075 1.63003 10.495 1.63003 10.495Z",fill:"var(--cdl-bg-faint)"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.14576 7.14259C4.62484 5.65906 6.90827 4.11841 10 4.11841C13.0918 4.11841 15.3752 5.65906 16.8543 7.14259C17.5956 7.88617 18.1482 8.62764 18.516 9.18359C18.7004 9.46224 18.8396 9.69615 18.934 9.86297C18.9812 9.94644 19.0173 10.0133 19.0423 10.0607C19.0548 10.0844 19.0646 10.1033 19.0716 10.117L19.08 10.1336L19.0827 10.1389L19.084 10.1416C19.0841 10.1419 19.0843 10.1422 18.37 10.4951C19.0765 10.8632 19.0764 10.8635 19.0762 10.8638L19.0758 10.8645L19.0749 10.8663L19.0722 10.8715L19.0634 10.8879C19.0562 10.9014 19.046 10.9201 19.033 10.9436C19.007 10.9907 18.9694 11.0571 18.9203 11.1401C18.8222 11.3061 18.6779 11.5391 18.4879 11.8168C18.1089 12.3708 17.5431 13.11 16.7939 13.8513C15.3025 15.3273 13.0201 16.8717 10 16.8717C6.97995 16.8717 4.69751 15.3273 3.2061 13.8513C2.45695 13.11 1.89116 12.3708 1.51212 11.8168C1.32214 11.5391 1.17783 11.3061 1.07974 11.1401C1.03066 11.0571 0.993066 10.9907 0.967019 10.9436C0.953993 10.9201 0.943847 10.9014 0.936591 10.8879L0.927872 10.8715L0.925139 10.8663L0.924178 10.8645L0.9238 10.8638C0.923639 10.8635 0.923489 10.8632 1.63002 10.4951C0.915744 10.1422 0.915894 10.1419 0.916055 10.1416L0.91643 10.1408L0.917374 10.1389L0.920035 10.1336L0.928455 10.117C0.935445 10.1033 0.945194 10.0844 0.957706 10.0607C0.982726 10.0133 1.01883 9.94644 1.06606 9.86297C1.16045 9.69615 1.29965 9.46224 1.48402 9.18359C1.85187 8.62764 2.40442 7.88617 3.14576 7.14259ZM1.63002 10.4951L0.916055 10.1416C0.803522 10.3694 0.806399 10.6384 0.9238 10.8638L1.63002 10.4951ZM2.54642 10.4865C2.62068 10.6065 2.71434 10.7522 2.82714 10.9171C3.16392 11.4093 3.66636 12.0652 4.32686 12.7188C5.65475 14.0329 7.55731 15.2784 10 15.2784C12.4427 15.2784 14.3453 14.0329 15.6732 12.7188C16.3337 12.0652 16.8361 11.4093 17.1729 10.9171C17.2857 10.7522 17.3793 10.6065 17.4536 10.4865C17.3831 10.368 17.2943 10.2247 17.1872 10.
10628C16.8628 9.57251 16.3754 8.91899 15.7259 8.26757C14.4234 6.9611 12.5218 5.71176 10 5.71176C7.47822 5.71176 5.57666 6.9611 4.27412 8.26757C3.62466 8.91899 3.13724 9.57251 2.81283 10.0628C2.70573 10.2247 2.61692 10.368 2.54642 10.4865ZM2.33597 10.1259C2.33597 10.1259 2.33597 10.1258 2.33597 10.1259ZM18.37 10.4951L19.0762 10.8638C19.1936 10.6384 19.1965 10.3694 19.084 10.1416L18.37 10.4951Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"M6.97016 10.4951H9.99992V7.46533C11.6732 7.46533 13.0297 8.8218 13.0297 10.4951C13.0297 12.1684 11.6732 13.5249 9.99992 13.5249C8.32663 13.5249 6.97016 12.1684 6.97016 10.4951Z",fill:"var(--cdl-chart-yellow-base)"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.20324 7.46525C9.20324 7.02526 9.55993 6.66858 9.99992 6.66858C12.1132 6.66858 13.8264 8.38173 13.8264 10.495C13.8264 12.6083 12.1132 14.3215 9.99992 14.3215C7.88664 14.3215 6.17348 12.6083 6.17348 10.495C6.17348 10.055 6.53016 9.69834 6.97016 9.69834H9.20324V7.46525ZM10.7966 8.40823V10.495C10.7966 10.935 10.4399 11.2917 9.99992 11.2917H7.91313C8.23397 12.1316 9.04728 12.7281 9.99992 12.7281C11.2332 12.7281 12.233 11.7283 12.233 10.495C12.233 9.54238 11.6365 8.72907 10.7966 8.40823Z",fill:"var(--cdl-chart-yellow-base)"})]}),ex=({size:e="default",className:s})=>(0,t.jsxs)("svg",{width:(0,et.M)(e),height:(0,et.M)(e),viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,children:[(0,t.jsx)("path",{d:"M7.89346 1.96762L1.95047 7.91061L7.89345 13.8536L7.89346 9.39635L12.2582 9.39636L12.2582 6.29824L7.89346 6.29824L7.89346 1.96762Z",fill:"var(--cdl-chart-green-base)"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.19576 1.23777C7.90058 1.1155 7.56081 1.18308 7.33489 1.40901L1.39191 7.35199C1.08342 7.66048 1.08342 8.16064 1.39191 8.46913L7.33489 14.4121C7.56081 14.638 7.90058 14.7056 8.19576 14.5834C8.49094 14.4611 8.6834 14.173 8.6834 13.8535L8.6834 10.1862L12.2582 10.1863C12.4677 10.1863 12.6686 10.103 12.8168 9.95488C12.9649 9.80674 13.0481 9.60582 13.0481 9.39631L13.0481 6.29819C13.0481 5.86192 12.6945 5.50825 12.2582 5.50825L8.6834 5.50825L8.6834 1.96758C8.6834 1.64808 8.49094 1.36004 8.19576 1.23777ZM7.10352 3.87466L7.10352 6.29819C7.10352 6.73446 7.45719 7.08813 7.89346 7.08813L11.4683 7.08813L11.4683 8.60637L7.89346 8.60637C7.68396 8.60637 7.48303 8.68959 7.33489 8.83773C7.18675 8.98588 7.10352 9.1868 7.10352 9.39631L7.10352 11.9465L3.06762 7.91056L7.10352 3.87466Z",fill:"var(--cdl-chart-green-base)"}),(0,t.jsx)("path",{d:"M12.2476 18.192L18.1906 12.249L18.1906 10.8645L12.2476 10.5876L7.88083 10.5876L7.88084 13.8614L12.2476 13.8614L12.2476 18.192Z",fill:"currentColor"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.32226 10.0291C7.17411 10.1773 7.09089 10.3782 7.09089 10.5877L7.0909 13.8615C7.0909 14.2977 7.44457 14.6514 7.88084 14.6514L11.4577 14.6514L11.4577 18.1921C11.4577 18.5116 11.6501 18.7996 11.9453 18.9219C12.2405 19.0442 12.5802 18.9766 12.8062 18.7507L18.7491 12.8077C18.8973 12.6595 18.9805 12.4586 18.9805 12.2491L18.9805 10.8646C18.9805 10.4426 18.6489 10.0951 18.2273 10.0755L12.2843 9.79862C12.2721 9.79805 12.2598 9.79776 12.2476 9.79776L7.88083 9.79776C7.67132 9.79776 7.4704 9.88098 7.32226 10.0291ZM12.2292 11.3776L17.4006 11.6185L17.4006 11.9219L13.0375 16.285L13.0375 13.8615C13.0375 13.4252 12.6839 13.0715 12.2476 13.0715L8.67078 13.0715L8.67077 11.3776L12.2292 11.3776Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"M12.2475 16.8043L18.1905 10.8613L12.2475 4.91833L12.2475 9.37557L7.88074 9.37557L7.88074 12.4737L12.2475 12.4737L12.2475 16.8043Z",fill:"var(--cdl-bg-faint)"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.9452 4.1885C11.65 4.31077 11.4575 4.59881 11.4575 4.91831L11.4575 8.5856L7.88073 8.5856C7.67122 8.5856 7.4703 8.66883 7.32215 8.81697C7.17401 8.96511 7.09079 9.16604 7.09079 9.37554L7.09079 12.4737C7.09079 12.9099 7.44445 13.2636 7.88072 13.2636L11.4575 13.2636L11.4575 16.8043C11.4575 17.1238 11.65 17.4118 11.9452 17.5341C12.2404 17.6563 12.5801 17.5888 12.8061 17.3628L18.749 11.4199C19.0575 11.1114 19.0575 10.6112 18.749 10.3027L12.8061 4.35974C12.5801 4.13381 12.2404 4.06623 11.9452 4.1885ZM13.0374 6.82539L17.0733 10.8613L13.0374 14.8972L13.0374 12.4737C13.0374 12.0374 12.6838 11.6837 12.2475 11.6837L8.67066 11.6837L8.67067 10.
11655L12.2475 10.1655C12.457 10.1655 12.6579 10.0823 12.8061 9.93412C12.9542 9.78597 13.0374 9.58505 13.0374 9.37554L13.0374 6.82539Z",fill:"currentColor"})]}),eu=({size:e="default",className:s})=>(0,t.jsxs)("svg",{width:(0,et.M)(e),height:(0,et.M)(e),viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,children:[(0,t.jsx)("path",{d:"M16.7072 2.07031H3.29283V18.1675H16.7072V2.07031Z",fill:"currentColor"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.5 2.07029C17.5 1.63243 17.145 1.27747 16.7072 1.27747H3.29283C2.85496 1.27747 2.5 1.63243 2.5 2.07029V18.1675C2.5 18.6054 2.85496 18.9603 3.29283 18.9603H16.7072C17.145 18.9603 17.5 18.6054 17.5 18.1675V2.07029ZM15.9143 2.86312V17.3747H4.08565V2.86312H15.9143Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"M16.7072 1.62622H3.29283V16.707H16.7072V1.62622Z",fill:"var(--cdl-bg-faint)"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.5 1.6262C17.5 1.18833 17.145 0.833374 16.7072 0.833374H3.29283C2.85496 0.833374 2.5 1.18833 2.5 1.6262V16.707C2.5 17.1449 2.85496 17.4998 3.29283 17.4998H16.7072C1
17.145 17.4998 17.5 17.1449 17.5 16.707V1.6262ZM15.9143 2.41902V15.9142H4.08565V2.41902H15.9143Z",fill:"currentColor"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.8717 4.66844C13.8717 4.23057 13.5167 3.87561 13.0788 3.87561H6.92115C6.48329 3.87561 6.12833 4.23057 6.12833 4.66844C6.12833 5.1063 6.48329 5.46126 6.92115 5.46126H13.0788C13.5167 5.46126 13.8717 5.1063 13.8717 4.66844Z",fill:"var(--cdl-chart-green-base)"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.8717 7.3513C13.8717 6.91343 13.5167 6.55847 13.0788 6.55847H6.92115C6.48329 6.55847 6.12833 6.91343 6.12833 7.3513C6.12833 7.78916 6.48329 8.14412 6.92115 8.14412H13.0788C13.5167 8.14412 13.8717 7.78916 13.8717 7.3513Z",fill:"var(--cdl-chart-green-base)"}),(0,t.jsx)("path",{d:"M10.0001 9.46875L9.30415 11.1016L7.53615 11.2589L8.87406 12.4253L8.47728 14.1554L10.0001 13.2434L11.5229 14.1554L11.1261 12.4253L12.464 11.2589L10.696 11.1016L10.0001 9.46875Z",fill:"var(--cdl-chart-green-base)"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.0001 8.67603C9.68233 8.67603 9.39529 8.86572 9.27071 9.15801L8.76096 10.3541L7.4659 10.4693C7.14941 10.4974 6.88031 10.7118 6.78212 11.014C6.68394 11.3162 6.77564 11.6478 7.01513 11.8566L7.99515 12.711L7.70451 13.9783C7.63349 14.288 7.75421 14.6102 8.01127 14.7969C8.26832 14.9837 8.61204 14.9989 8.88463 14.8357L10.0001 14.1677L11.1155 14.8357C11.3881 14.9989 11.7318 14.9837 11.9889 14.7969C12.2459 14.6102 12.3666 14.288 12.2956 13.9783L12.005 12.711L12.985 11.8566C13.2245 11.6478 13.3162 11.3162 13.218 11.014C13.1198 10.7118 12.8507 10.4974 12.5342 10.4693L11.2392 10.3541L10.7294 9.15801C10.6048 8.86572 10.3178 8.67603 10.0001 8.67603ZM10.0001 11.4816C10.114 11.6904 10.316 11.8371 10.5498 11.881C10.3864 12.0538 10.3092 12.2913 10.3398 12.5272C10.1249 12.4252 9.87521 12.4252 9.66033 12.5272C9.6909 12.2913 9.61373 12.0538 9.45037 11.881C9.68413 11.8371 9.88615 11.6904 10.0001 11.4816Z",fill:"var(--cdl-chart-green-base)"})]}),ep=[{value:o.GNE.META_ANALYSIS,elementTag:(0,t.jsx)(function(e){let[s]=(0,u.A)("tooltips.meta-analysis");return(0,t.jsx)(ea.A,{group:ea.f.EvidenceSynthesis,designLabel:s.title,content:s.content,icon:(0,t.jsx)(ed.A,{}),learnMoreUrl:_.RA,dataTestId:"meta-analysis-design-dropdown",children:e?.isCompact?(0,t.jsx)("div",{className:"p-1",children:(0,t.jsx)(ed.A,{size:"sm"})}):(0,t.jsx)(el.A,{size:"sm",label:s.tag,icon:(0,t.jsx)(ed.A,{size:"sm"}),"data-testid":"meta-analysis-tag"})})},{},"meta_analysis"),label:"Meta-Analysis"},{value:o.GNE.SYSTEMATIC_REVIEW,elementTag:(0,t.jsx)(function(e){let[s]=(0,u.A)("tooltips.systematic-review");return(0,t.jsx)(ea.A,{group:ea.f.EvidenceSynthesis,designLabel:s.title,content:s.content,icon:(0,t.jsx)(eu,{}),learnMoreUrl:_.aC,dataTestId:"systematic-review-design-dropdown",children:e?.isCompact?(0,t.jsx)("div",{className:"p-1",children:(0,t.jsx)(eu,{size:"sm"})}):(0,t.jsx)(el.A,{size:"sm",label:s.tag,icon:(0,t.jsx)(eu,{size:"sm"}),"data-testid":"systematic-review-tag"})})},{},"systemic_review"),label:"Systematic Review"},{value:o.GNE.RCT,elementTag:(0,t.jsx)(function(e){let[s]=(0,u.A)("tooltips.rct");return(0,t.jsx)(ea.A,{group:ea.f.Experimental,designLabel:s.title,content:s.content,icon:(0,t.jsx)(ex,{}),learnMoreUrl:_.q,dataTestId:"rct-design-dropdown",children:e?.isCompact?(0,t.jsx)("div",{className:"p-1",children:(0,t.jsx)(ex,{size:"sm"})}):(0,t.jsx)(el.A,{size:"sm",label:s.tag,icon:(0,t.jsx)(ex,{size:"sm"}),"data-testid":"rct-tag"})})},{},"rct"),label:"RCT"},{value:o.GNE.NON_RCT_TRIAL,elementTag:(0,t.jsx)(function(e){let[s]=(0,u.A)("tooltips.non-rct-trial");return(0,t.jsx)(ea.A,{group:ea.f.Experimental,designLabel:s.title,content:s.content,icon:(0,t.jsx)(ec,{}),learnMoreUrl:_.Yt,dataTestId:"non-rct-design-dropdown",children:e?.isCompact?(0,t.jsx)("div",{className:"p-1",children:(0,t.jsx)(ec,{size:"sm"})}):(0,t.jsx)(el.A,{size:"sm",label:s.tag,icon:(0,t.jsx)(ec,{size:"sm"})})})},{},"non_rct"),label:"Non-RCT"},{value:o.GNE.OBSERVATIONAL_STUDY,elementTag:(0,t.jsx)(function(e){let[s]=(0,u.A)("tooltips.observational-study");return(0,t.jsx)(ea.A,{group:ea.f.Observational,designLabel:s.title,content:s.content,icon:(0,t.jsx)(eo,{}),learnMoreUrl:_.IV,dataTestId:"observational-study-design-dropdown",children:e?.isCompact?(0,t.jsx)("div",{className:"p-1",children:(0,t.jsx)(eo,{size:"sm"})}):(0,t.jsx)(el.A,{size:"sm",label:s.tag,icon:(0,t.jsx)(eo,{size:"sm"}),"data-testid":"observational-study-tag"})})},{},"observational"),label:"Observational"},{value:o.GNE.LITERATURE_REVIEW,elementTag:(0,t.jsx)(function(e){let[s]=(0,u.A)("tooltips.literature-review");return(0,t.jsx)(ea.A,{group:ea.f.EvidenceSynthesis,designLabel:s.title,content:s.content,icon:(0,t.jsx)(er.A,{}),learnMoreUrl:_.nD,dataTestId:"literature-review-design-dropdown",children:e?.isCompact?(0,t.jsx)("div",{className:"p-1",children:(0,t.jsx)(er.A,{size:"sm"})}):(0,t.jsx)(el.A,{size:"sm",label:s.tag,icon:(0,t.jsx)(er.A,{size:"sm"})})})},{},"lit_review"),label:"Literature Review"},{value:o.GNE.CASE_REPORT,elementTag:(0,t.jsx)(function(e){let[s]=(0,u.A)("tooltips.case-study");return(0,t.jsx)(ea.A,{group:ea.f.Observational,designLabel:s.title,content:s.content,icon:(0,t.jsx)(ei,{}),learnMoreUrl:_.aR,dataTestId:"case-study-design-dropdown",children:e?.isCompact?(0,t.jsx)("div",{className:"p-1",children:(0,t.jsx)(ei,{size:"sm"})}):(0,t.jsx)(el.A,{size:"sm",label:s.tag,icon:(0,t.jsx)(ei,{size:"sm"}),"data-testid":"highly-cited-tag"})})},{},"case_study"),label:"Case Report"},{value:"animal",elementTag:(0,t.jsx)(es.A,{},"animal"),label:"Animal Study"},{value:o.GNE.IN_VITRO_TRIAL,elementTag:(0,t.jsx)(function(e){let[s]=(0,u.A)("tooltips.in-vitro-trial");return(0,t.jsx)(ea.A,{group:ea.f.Experimental,designLabel:s.title,content:s.content,icon:(0,t.jsx)(en,{}),learnMoreUrl:_.JU,dataTestId:"in-vitro-design-dropdown",children:e?.isCompact?(0,t.jsx)("div",{className:"p-1",children:(0,t.jsx)(en,{size:"sm"})}):(0,t.jsx)(el.A,{size:"sm",label:s.tag,icon:(0,t.jsx)(en,{size:"sm"}),"data-testid":"in-vitro-trial-tag"})})},{},"in_vitro"),label:"In Vitro Study"}
1];var em=a(12586),eh=a(79907);let ej="UNKNOWN",eb=(e,s,a,l,t)=>({name:e?e+":"+s:s,content:a,label:l,original:t||a}),ef="paperDetails:studyType",eC="journalDetails:sjrScore",eg=[1,2,3,4,ej],ev=e=>{let{onChange:s,payload:a}=e,[l,i]=(0,f.useState)(!1),[r,d]=(0,f.useState)(""),[c,o]=(0,f.useState)(""),[x,p]=(0,f.useState)({description:"",corrected:"",pristine:!0,original:""}),[m,h]=(0,u.A)("general","human-feedback-modal"),j=e=>{p(s=>({...s,[e.target.name]:e.target.value}))};(0,f.useEffect)(()=>{s(a.name,{...x,original:`${a.original}`})},[x,a.name,s]);let b="string"==typeof a.content||"number"==typeof a.content;return(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"flex gap-2 sm-md mb-2",children:(0,t.jsx)(ee,{isChecked:l,onToggle:()=>{if(i(e=>!e),a.name===ef)if(a.original){let e=ep.find(e=>e.label.toLowerCase()===`${a.original}`.toLowerCase());d(e?.value)}else d(a.original);a.name===eC&&o(a.original),p(e=>({...e,pristine:!1}))},"data-testid":"checkbox",label:a.label})}),(0,t.jsxs)("div",{className:n()("border-l-[3px] border-l-border-base pl-3 flex flex-col gap-2"),children:[(0,t.jsx)("div",{className:n()({"text-fg-muted":b}),children:a.name===ef&&l?(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:ep.map((e,s)=>{let a;return(0,t.jsx)("div",{className:"border border-green-emphasis bg-bg-base p-2 rounded-lg flex items-center gap-2 tiny-md",children:(0,t.jsx)(ee,{isChecked:r===e.value,onToggle:(a=e.value,()=>{a===r?(d(""),p(e=>({...e,corrected:""}))):(d(a),p(e=>({...e,corrected:a})))}),label:e.label})},s)})}):a.name===eC&&l?(0,t.jsx)("div",{className:"flex overflow-x-auto gap-2",children:eg.map(e=>(0,t.jsx)("button",{onClick:()=>{let s=`${e}`;s===c?(o(""),p(e=>({...e,corrected:""}))):(o(s),p(e=>({...e,corrected:s})))},className:n()("flex items-center gap-3 px-3 py-2 border border-border-base rounded-lg sm-md",{"bg-accent-bg-subtle":`${c}`==`${e}`}),children:e===ej?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{children:e}),(0,t.jsx)(V.xu,{quartile:null})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{children:["Q",e]}),(0,t.jsx)(V.xu,{quartile:parseInt(e)})]})},e))}):b&&"n/a"===a.content?"Nothing extracted":a.content}),l?(0,t.jsx)("div",{children:(0,t.jsxs)("form",{className:"flex flex-col gap-3",children:[(a.name===ef&&!!r||a.name!==ef)&&(0,t.jsxs)("label",{className:"relative",children:[(0,t.jsx)("span",{className:"sm-md",children:h["feedback-item-explain-label"]}),(0,t.jsx)("input",{name:"description","data-testid":"description",value:x.description,className:"block border border-border-base rounded-lg px-4 h-[50px] w-full",onChange:j}),(0,t.jsx)("span",{className:"absolute right-0 top-0 tiny-normal text-fg-muted",children:m["optional-text"]})]}),b&&(0,t.jsxs)("label",{className:"relative",children:[(0,t.jsx)("span",{className:"sm-md",children:h["feedback-item-revise-label"]}),(0,t.jsx)("input",{name:"corrected","data-testid":"corrected",value:x.corrected,className:"block border border-border-base rounded-lg px-4 h-[50px] w-full",onChange:j}),(0,t.jsx)("span",{className:"absolute right-0 top-0 tiny-normal text-fg-muted",children:m["optional-text"]})]})]})}):null]})]})},eL={},eN=(e,s)=>"updateFieldValue"===s.type?{...e,[s.field]:s.value}:eL,ey=({open:e,onClose:s,paper:a,studyDetails:l,onSubmitSuccess:i})=>{let r,d,c,x,[p,m]=(0,u.A)("general","human-feedback-modal"),h=(0,b.useRouter)(),[j,C]=(0,f.useReducer)(eN,eL),{userId:g}=(0,Y.As)(),{mutate:v}=(0,X.n)(e=>(0,o.nYJ)(e)),{fields:L}=(0,J.A)({paperId:a.hash_paper_id,badges:a.badges,fetchOnMount:!1}),N=()=>{i(),C({type:"reset"})},y=(0,f.useCallback)((e,s)=>{C({type:"updateFieldValue",field:e,value:s})},[]),w=(r=[],a.abstract_takeaway&&r.push(eb("paperDetails","keyTakeaway",a.abstract_takeaway,"Key takeaway")),a.authors&&a.authors.length&&r.push(eb("paperDetails","authors",(e=>{if(1===e.length)return e[0];if(e.length>1){let s=e.slice(0,e.length-1);return`${s.join(", ")} and ${e[e.length-1]}`}})(a.authors),"Authors",a.authors.join(","))),d=ep.find(e=>e.value===a.badges?.study_type),r.push(eb("paperDetails","studyType",d&&d.label,"Study type",a.badges?.study_type)),r),A=(c=[],a.journal.title&&c.push(eb("journalDetails","journalName",a.journal.title,"Name")),c.push(eb("journalDetails","sjrScore",null,"SJR score",a.journal.scimago_quartile??ej)),c),k=Object.keys(x=L||(0,eh.ir)(l,a.badges)).reduce((e,s)=>{let a=x[s]||"n/a",l="country"===s?"location":s;return e.push(eb("studySnapshot",l,a,(0,em.Mo)(l))),e},[]);return(0,t.jsx)(Q.Ay,{open:e,title:m.title,subtitle:m.subtitle,buttonText:p["submit-btn-text"],onButtonClicked:()=>{let e,s=(e=h.query.q,Object.keys(j).reduce((s,a)=>{let l=j[a];if(!l.pristine){let t=a.split(":"),i=t[0],n=t[1],{pristine:r,...d}=l;s[i]?s[i][n]="answerFromSearch"===n?{...d,query:e}
1:d:s[i]={[n]:"answerFromSearch"===n?{...d,query:e}:d}}return s},{}));v({clerkUserId:g,hashPaperId:a.hash_paper_id,...s},{onSuccess:N})},buttonDisabled:Object.values(j).every(e=>e.pristine),onClose:()=>{s(),C({type:"reset"})},contentClassName:"m-0",children:(0,t.jsxs)("div",{children:[w.length&&(0,t.jsx)(K.E,{as:"div",className:"border-b border-b-border-base p-4",children:({open:e})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(K.E.Button,{className:"flex justify-between w-full items-center",children:[(0,t.jsx)("span",{className:"base-bold",children:m["feedback-product-details-type-title"]}),(0,t.jsx)("i",{className:n()("icon-chevron-down text-xl text-fg-muted",{"rotate-180 transform":e})})]}),(0,t.jsx)(K.E.Panel,{className:"flex flex-col gap-3 mt-4",children:w.map(e=>(0,t.jsx)(ev,{payload:e,onChange:y},e.name))})]})}),(0,t.jsx)(K.E,{as:"div",className:"border-b border-b-border-base p-4",children:({open:e})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(K.E.Button,{className:"flex justify-between w-full items-center",children:[(0,t.jsx)("span",{className:"base-bold",children:m["feedback-study-snapshot-type-title"]}),(0,t.jsx)("i",{className:n()("icon-chevron-down text-xl text-fg-muted",{"rotate-180 transform":e})})]}),(0,t.jsx)(K.E.Panel,{className:"flex flex-col gap-3 mt-4",children:k.map(e=>(0,t.jsx)(ev,{payload:e,onChange:y},e.name))})]})}),(0,t.jsx)(K.E,{as:"div",className:"p-4",children:({open:e})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(K.E.Button,{className:"flex justify-between w-full items-center",children:[(0,t.jsx)("span",{className:"base-bold",children:m["feedback-journal-details-type-title"]}),(0,t.jsx)("i",{className:n()("icon-chevron-down text-xl text-fg-muted",{"rotate-180 transform":e})})]}),(0,t.jsx)(K.E.Panel,{className:"flex flex-col gap-3 mt-4",children:A.map(e=>(0,t.jsx)(ev,{payload:e,onChange:y},e.name))})]})})]})})};var ew=a(87707),eA=a(18445),ek=a(52452),eM=a(14177),eR=a(84691),eT=a(81254),e_=a(33192),eS=a(13734),eE=a(83468),eZ=a(2706),eF=a(1704);let ez=({variant:e,onClick:s,href:a,icon:l,iconRight:i,label:n,className:r})=>(0,t.jsx)(C.d,{variant:e,size:"sm",onClick:s,href:(0,k.Td)(a),target:"_blank",icon:l,iconRight:i,label:n,className:r}),eI=({handleClickCite:e,handleClickShare:s,paper:a,hideSemanticScholarButton:l,isUploadedPaper:i,onDelete:n})=>{let r,d=(0,g.Hq)(),[c,o,p,m,h,j,b]=(0,u.A)("ask-paper-upload-new-paper-guide","screens.details.give-feedback-text","screens.details.full-text","screens.details.semantic-scholar","human-feedback-modal.thanks-for-feedback","share","screens.details"),[v,L]=(0,f.useState)(!1),[N]=(0,f.useContext)(Z),{corpusToUploaded:y}=(0,eM.r)(),{isSignedIn:w,isLoaded:A}=(0,Y.As)(),M=y?.[a.hash_paper_id],R=i||!!M&&M.length>0,T=i?a.hash_paper_id:M?.[0],{library_id:_}=(0,eR.A)(),{data:S}=(0,ek.ii)(_,a.doi,!!(_&&a.doi)),{option:E,icon:F,url:z}=(0,eT.z)(a,p,b.pdf,R),I=[];return"library"!==E&&S&&I.push({onClick:()=>d.trackFullTextClick(a,x.XO.LIBRARY,void 0,_),href:S,target:"_blank",leftIcon:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(e_.A,{size:16,className:"text-xl icon-external-link"}),(0,t.jsx)(ek.$n,{includeTooltip:!1})]}),title:b["institution-access-pdf"],key:"library"}),"open-access"!==E&&a.open_access_pdf_url&&I.push({onClick:()=>d.trackFullTextClick(a,x.XO.PDF),href:(0,k.Td)(a.open_access_pdf_url),target:"_blank",leftIcon:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(e_.A,{size:16,className:"text-xl icon-external-link"}),(0,t.jsx)("div",{className:"flex overflow-hidden relative justify-center items-center p-1 rounded-lg bg-bg-base",children:(0,t.jsx)(eZ.A,{size:"sm"})})]}),title:b["open-access-pdf"],key:"open-access"}),l||I.push({onClick:()=>d.trackFullTextClick(a,x.XO.S2),href:(0,k.Td)(a.provider_url),target:"_blank",leftIcon:(0,t.jsx)(e_.A,{size:16,className:"text-xl icon-external-link"}),title:m,key:"semantic-scholar"}),I.push({onClick:()=>L(!0),leftIcon:(0,t.jsx)("i",{className:"text-xl icon-flag"}),title:o,key:"give-feedback"}),(0,t.jsxs)("div",{className:"flex justify-between w-full flex-wrap gap-y-2",children:[(0,t.jsx)("div",{className:"flex flex-wrap gap-y-2",children:(r=[],"uploaded"===E?r.push((0,t.jsx)(eE.A,{uploaded_paper_id:T,isUploading:!1,onDelete:n},"manage-pdf")):"library"===E?r.push((0,t.jsx)(ek.B2,{item:a},"library")):"open-access"===E?r.push((0,t.jsx)(ez,{variant:C.A.Secondary,onClick:()=>d.trackFullTextClick(a,x.XO.PDF),href:z,icon:(0,t.jsx)(eZ.A,{}),iconRight:(0,t.jsx)(e_.A,{size:16}),label:b.pdf},"open-access")):"doi"===E?r.push((0,t.jsx)(ez,{variant:C.A.Secondary,onClick:()=>d.trackFullTextClick(a,x.XO.S2),href:z,iconRight:(0,t.jsx)(e_.A,{size:16}),label:p},"doi")):r.push((0,t.jsx)(C.d,{variant:C.A.Tertiary,icon:"icon-external-link",label:p,size:"sm",disabled:!0},"no-access")),r.push((0,t.jsx)(eF.OX,{itemId:a.hash_paper_id,itemType:"paper",label:b.save,variant:"tertiary",size:"sm",className:"ml-2",isDisabled:!a,onSave:e=>{d.trackSavePaper(a,0,e)}},"save")),e&&r.push((0,t.jsx)(C.d,{hideLabelResponsively:!0,icon:"icon-quote",label:b.cite,onClick:e,size:"sm",variant:C.A.Flat,className:"ml-2",disabled:!a},"cite")),s&&r.push((0,t.jsx)(ew.X,{title:j["share-paper"],description:j["share-paper-details-description"],keyTakeaway:a?.abstract_takeaway,sharePaperEventOverride:e=>{d.trackSharePaper(a,e,0)},children:(0,t.jsx)(C.d,{"data-testid":"share-detail",hideLabelResponsively:!0,icon:"icon-link",onClick:s,size:"sm",variant:C.A.Flat,className:"ml-2",disabled:!a,"aria-label":j.share})},"share")),r)}),(0,t.jsxs)("div",{className:"flex z-sticky",children:[I.length>
10&&(0,t.jsx)(W.Ay,{items:I,disabledKeys:w&&A?[]:["upload-pdf"],children:(0,t.jsx)(eA.A,{content:b["more-tooltip"],children:(0,t.jsx)(C.d,{variant:C.A.Flat,icon:"icon-ellipsis","data-testid":"additional-links-menu","aria-label":b["more-tooltip"]})})}),(0,t.jsx)(ey,{paper:a,open:v,onClose:()=>L(!1),studyDetails:N?.studyDetails,onSubmitSuccess:()=>{L(!1),eS.oR.success(h)}})]})]})};var eV=a(27866),eH=a(88766);let eO=({isPremium:e,isStudySnapshotExpanded:s,setIsStudySnapshotExpanded:a,searchLabels:l})=>{let[i,n]=(0,f.useState)(null),r=s?l["close-snapshot"]:l["expand-study-snapshot"];return e?(0,t.jsx)(eA.A,{content:r,placement:"bottom",children:(0,t.jsx)(C.d,{size:"sm",variant:C.A.Flat,onClick:()=>{a(!s)},icon:"icon-table-2",iconRight:s?"icon-chevron-up":"icon-chevron-down","aria-label":r})}):(0,t.jsx)(R.A,{interactive:!0,maxWidth:334,touch:!1,tooltipContent:(0,t.jsx)(eV.A,{snapshotType:eH.Xb.STUDY_SNAPSHOT,onClickUpgradePremium:e=>{i&&i.hide()}}),onShown:e=>{n(e)},onHidden:e=>{n(e)},children:(0,t.jsx)(C.d,{size:"sm",variant:C.A.Flat,onClick:()=>{a(!s)},icon:"icon-table-2",iconRight:s?"icon-chevron-up":"icon-chevron-down","aria-label":r})})};var eD=a(38049);function eP({paper:e}){let[s,a,l]=(0,u.A)("screens.details","study-snapshot.title","screens.search"),[i,c]=f.useState(!0),{isPremium:o}=(0,A.A)(),x=""===e.abstract?s["no-abstract"]:e.abstract??s["abstract-removed"];return(0,t.jsxs)("section",{children:[(0,t.jsx)("h2",{className:"my-6 text-lg font-bold",children:s.abstract}),(0,t.jsx)("p",{className:"mb-3 text-base whitespace-pre-line","data-testid":"abstract",children:x}),e.badges&&(0,t.jsx)(r.A,{badges:e.badges}),(0,t.jsx)(d.A,{}),(0,t.jsxs)("div",{className:"my-6",children:[(0,t.jsxs)("div",{className:"flex flex-row gap-2 justify-between items-center mb-3",children:[(0,t.jsx)("h2",{className:"text-lg font-bold",children:a}),(0,t.jsx)(eO,{isPremium:o,isStudySnapshotExpanded:i,setIsStudySnapshotExpanded:c,searchLabels:l})]}),(0,t.jsx)("p",{className:"my-6 text-lg text-fg-base",children:e.abstract_takeaway}),(0,t.jsx)("div",{className:n()({hidden:!i}),children:(0,t.jsx)(w.A,{paperId:e.hash_paper_id,badges:e.badges})}),!i&&(0,t.jsx)("p",{className:"my-6 text-sm italic text-fg-muted",children:l["expand-study-snapshot-desc"]})]}),(0,t.jsx)(d.A,{})]})}let eU=function({handleClickCite:e,handleClickShare:s,paper:a,hideSemanticScholarButton:l,hideCitations:i,hideReferences:r,hideSJR:d,isUploadedPaper:c,onDelete:x}){let[p,m]=f.useState("overview"),[h]=(0,u.A)("screens.search"),j=(0,b.useRouter)().query[k.YL];return f.useEffect(()=>{let e=Array.isArray(j)?j[0]:j;"citations"!==e||i?"references"!==e||r||m("references"):m("citations")},[j,i,r]),(0,M.W)(a.doi),(0,t.jsxs)(F,{children:[a.is_retracted&&(0,t.jsx)("div",{className:"mb-6",children:(0,t.jsx)(eD.A,{})}),(0,t.jsxs)("section",{className:"pb-6 border-border-base",children:[(0,t.jsxs)("h1",{"data-testid":"paper-title",className:"sm:h1-base h2-base text-fg-base leading-[normal]",children:[(0,t.jsx)("span",{children:a.is_retracted?h.retracted:""}),(0,t.jsx)("span",{children:a.title})]}),(0,t.jsx)(G,{paper:a}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-4 justify-between mt-6",children:[(0,t.jsx)("div",{className:"sm:w-[50%] w-full",children:(0,t.jsx)(D,{journal:a.journal,hideSJR:d})}),!i&&null!=a.citation_count&&(0,t.jsx)(E,{paper:a})]}),(0,t.jsx)("div",{className:"flex gap-4 mt-6",children:(0,t.jsx)(eI,{handleClickCite:e,handleClickShare:s,paper:a,hideSemanticScholarButton:l,isUploadedPaper:c,onDelete:x})})]}),(0,t.jsx)(I,{selectedTab:p,onTabClick:m,hideCitations:i,hideReferences:r}),(0,t.jsx)("section",{className:n()({hidden:"overview"!==p}),children:(0,t.jsx)(eP,{paper:a})}),(0,t.jsx)("section",{className:n()({hidden:"full-text-analysis"!==p}),children:(0,t.jsx)("p",{className:"text-fg-muted",children:"Full text analysis coming soon..."})}),(0,t.jsx)("section",{className:n()({hidden:"references"!==p}),children:(0,t.jsx)(y,{id:a.hash_paper_id,relatedPaperType:o.FFv.REFERENCES})}),(0,t.jsx)("section",{className:n()({hidden:"citations"!==p}),children:(0,t.jsx)(y,{id:a.hash_paper_id,relatedPaperType:o.FFv.CITATIONS})})]})}},33481:(e,s,a)=>{a.d(s,{A:()=>L});var l,t=a(37876),i=a(86245),n=a(83468),r=a(70315),d=a(68652);let c=()=>{let[e]=(0,r.A)("paper-access-button");return(0,t.jsx)(i.d,{variant:i.A.Tertiary,label:e["open-access-pdf"],icon:(0,t.jsx)(d.I,{}),size:"sm",disabled:!0})};var o=((l={}).OPEN_ACCESS_PDF="open-access-pdf",l.MANAGE_PDF="manage-pdf",l);let x=({type:e,...s})=>{switch(e){case o.OPEN_ACCESS_PDF:return(0,t.jsx)(c,{...s});case o.MANAGE_PDF:return(0,t.jsx)(n.A,{...s});default:return null}};var u=a(87707),p=a(85618);let m=function({handleClickCite:e,handleClickShare:s,paper:a,hideCite:l,hideShare:n,paperAccessButtonType:d}){let[c,o]=(0,r.A)("share","screens.details");return(0,t.jsx)("div",{className:"flex justify-between",children:(0,t.jsxs)("div",{className:"flex flex-1 overflow-y-auto",children:[d?(0,t.jsx)(x,{type:d,uploaded_paper_id:a?.hash_paper_id}):(0,t.jsx)(i.d,{icon:(0,t.jsx)(p.A,{}),label:o.save,size:"sm",variant:i.A.Tertiary,className:"mr-4",disabled:!0}),!l&&(0,t.jsx)(i.d,{hideLabelResponsively:!0,icon:"icon-quote",label:o.cite,onClick:e,size:"sm",variant:i.A.Flat,disabled:!a||!e}),!n&&(0,t.jsx)(u.X,{title:c["share-paper"],description:c["share-paper-details-description"],keyTakeaway:a?.abstract_takeaway,children:(0,t.jsx)(i.d,{"data-testid":"share-detail",hideLabelResponsively:!0,icon:"icon-link",label:c.share,onClick:s,size:"sm",variant:i.A.Flat,disabled:!a||!s})})]})})};var h=a(91723),j=a(25949);let b=({isEvenIndex:e})=>(0,t.jsxs)("div",{className:"flex flex-row items-center self-start gap-3 animate-pulse",style:{animationDelay:e?"-1.5s":"-.5s"},children:[(0,t.jsxs)("div",{className:"flex items-center p-2 space-x-2 bg-bg-base border border-subtle rounded-md",children:[(0,t.jsx)("div",{className:"w-3 h-3 bg-bg-subtle rounded-xl"}),(0,t.jsx)("div",{className:"bg-bg-subtle h-3 w-[100px] rounded-xl"})]}),(0,t.jsxs)("div",{className:"flex items-center p-2 space-x-2 bg-bg-base border border-subtle rounded-md",children:[(0,t.jsx)("div",{className:"w-3 h-3 bg-bg-subtle rounded-xl"}),(0,t.jsx)("div",{className:"bg-bg-subtle h-3 w-[56px] rounded-xl"})]})]}),f=()=>{let[e,s]=(0,r.A)("screens.details.citations","screens.details.influential-citations");return(0,t.jsxs)("div",{className:"flex gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"h-3 bg-bg-subtle w-[40px] rounded-full mb-2"}),(0,t.jsx)("p",{className:"sm-normal text-fg-muted",children:e})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"h-3 bg-bg-subtle w-[40px] rounded-full mb-2"}),(0,t.jsxs)("p",{className:"sm-normal text-fg-muted",children:[s,"\xa0",(0,t.jsx)("i",{className:"icon-info"})]})]})]})};
1var C=a(90433);let g=()=>{let[e]=(0,r.A)("quartile.title");return(0,t.jsxs)("div",{className:"flex flex-col items-start gap-y-3 w-[264px]",children:[(0,t.jsx)("div",{className:"h-3 w-[151px] bg-bg-subtle rounded-full"}),(0,t.jsxs)("div",{className:"flex items-center sm:justify-start sm:gap-x-4 w-full tiny-md text-fg-base gap-x-2",children:[(0,t.jsx)("div",{className:"flex flex-wrap sm-normal text-fg-muted shrink-0",children:(0,t.jsx)("span",{children:e})}),(0,t.jsx)(C.xu,{quartile:null})]})]})},v=()=>(0,t.jsxs)("div",{className:"sparkle-box animate-pulse",children:[(0,t.jsxs)("div",{className:"grid grid-cols-[130px_auto] border-b border-b-border-subtle h-10 an",children:[(0,t.jsx)("span",{className:"flex flex-col justify-center px-4 py-2 ",children:(0,t.jsx)("div",{className:"h-3 w-full bg-bg-subtle rounded-xl"})}),(0,t.jsx)("span",{className:"flex flex-col justify-center px-4 py-2 border-l border-l-border-subtle ",children:(0,t.jsx)("div",{className:"h-3 w-[50%] bg-bg-subtle rounded-xl"})})]}),(0,t.jsxs)("div",{className:"grid grid-cols-[130px_auto] border-b border-b-border-subtle h-10",children:[(0,t.jsx)("span",{className:"flex flex-col justify-center px-4 py-2 ",children:(0,t.jsx)("div",{className:"h-3 w-[85%] bg-bg-subtle rounded-xl"})}),(0,t.jsx)("span",{className:"flex flex-col justify-center px-4 py-2 border-l border-l-border-subtle ",children:(0,t.jsx)("div",{className:"h-3 w-[80%] bg-bg-subtle rounded-xl"})})]}),(0,t.jsxs)("div",{className:"grid grid-cols-[130px_auto] h-10",children:[(0,t.jsx)("span",{className:"flex flex-col justify-center px-4 py-2 ",children:(0,t.jsx)("div",{className:"h-3 w-[95%] bg-bg-subtle rounded-xl"})}),(0,t.jsx)("span",{className:"flex flex-col justify-center px-4 py-2 border-l border-l-border-subtle ",children:(0,t.jsx)("div",{className:"h-3 w-[75%] bg-bg-subtle rounded-xl"})})]})]}),L=function(){let[e]=(0,r.A)("study-snapshot.title");return(0,t.jsx)(h.A,{children:(0,t.jsxs)("div",{"data-testid":"loadingdetail",className:"w-full stagger-animation pt-16",children:[(0,t.jsxs)("div",{"data-testid":"result-paper ",children:[(0,t.jsx)("div",{className:"bg-border-base h-[18px] animate-pulse w-full  rounded-xl mb-1.5"}),(0,t.jsx)("div",{className:"bg-border-base h-[18px] animate-pulse w-[45%] rounded-full"}),(0,t.jsxs)("div",{className:"flex flex-row items-center mt-3 gap-x-2 animate-pulse",children:[(0,t.jsx)("div",{className:"bg-bg-subtle w-[93px] h-3 rounded-full"}),(0,t.jsx)("span",{className:"text-fg-muted",children:"\xb7"}),(0,t.jsx)("div",{className:"bg-bg-subtle h-3 w-[262px] rounded-full "})]}),(0,t.jsxs)("div",{className:"flex mt-6 justify-between flex-wrap gap-4 animate-pulse",children:[(0,t.jsx)(g,{}),(0,t.jsx)(f,{})]}),(0,t.jsxs)("div",{className:"flex mt-6 justify-between flex-wrap gap-4",children:[(0,t.jsx)(m,{}),(0,t.jsx)(i.d,{variant:i.A.Flat,icon:"icon-ellipsis",disabled:!0})]})]}),(0,t.jsx)("div",{className:"w-full h-px bg-bg-subtle my-[20px]"}),(0,t.jsxs)("div",{className:"w-full mb-6",children:[(0,t.jsx)(j.b,{}),(0,t.jsx)(b,{isEvenIndex:!1}
1)]}),(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsx)("p",{className:"mb-4 base-bold text-fg-base",children:e}),(0,t.jsx)(v,{})]})]})})}},81229:(e,s,a)=>{a.d(s,{A:()=>x});var l=a(37876),t=a(58103),i=a.n(t),n=a(41462),r=a(64587),d=a(77730),c=a(25248),o=a(14232);let x=function({paper:e}){let{ref:s,keyboardInset:a,isLifted:t}=(0,c.J)(),x=(0,o.useMemo)(()=>(0,d.xM)(e.publication_types)?{papers:[(0,r.xgi)(e)],collections:[]}:null,[e]);return null===x?null:(0,l.jsx)("div",{ref:s,className:"flex fixed right-0 left-0 sm:left-[var(--sidebar-width)] bottom-0 z-sticky justify-center",style:t?{bottom:a}:void 0,"data-testid":"detail-new-thread-container",children:(0,l.jsx)("div",{className:i()("w-full max-w-page p-4",!t&&"pb-[max(1rem,var(--safe-area-bottom,0px))]"),children:(0,l.jsx)(n.A,{initialAttachments:x,autoFocus:!0,disableAutosuggest:!0,formClassName:"flex w-full justify-center"})})})}},83468:(e,s,a)=>{a.d(s,{A:()=>j});var l=a(37876),t=a(86245),i=a(12384),n=a(19361),r=a(70315),d=a(13734),c=a(80192),o=a(85461),x=a(15526),u=a(64587),p=a(1704),m=a(32849);let h=({uploaded_paper_id:e,isUploading:s,onDelete:a,onOpenChange:h,children:j})=>{let[b]=(0,r.A)("research-hub.actions"),{deletePaper:f,isDeleting:C}=(()=>{let e=(0,o.jE)(),{getToken:s}=(0,c.As)(),a=(0,x.n)({mutationFn:async e=>{let a=await s();return await (0,u.s1i)(e,{authToken:a||void 0})},onSuccess:(s,a)=>{e.setQueryData(p.ul.uploads(),(e=[])=>e.filter(e=>e.paper_id!==a)),e.invalidateQueries({queryKey:p.ul.uploads()})}});return{deletePaper:a.mutateAsync,isDeleting:a.isLoading,error:a.error}})(),{downloadPaper:g,isDownloading:v}=(0,m.A)(),L=async()=>{try{await g(e),d.oR.success(b["download-pdf-success"]),(0,n.d8)(e)}catch(e){console.error("Error downloading PDF:",e)}},N=async()=>{await f(e),d.oR.info(b["deleted-paper"]),a?.()},y=[{onClick:()=>L(),key:"download-pdf",title:v?b["downloading-pdf"]:b["download-pdf"],leftIcon:(0,l.jsx)("i",{className:"icon-download text-xl"})},{onClick:()=>N(),key:"delete-pdf",title:C?b["deleting-pdf"]:b["delete-pdf"],leftIcon:(0,l.jsx)("i",{role:"presentation",className:"icon-trash-2 text-xl"}),danger:!0}],w=[];return(v||s)&&w.push("download-pdf"),(C||s)&&w.push("delete-pdf"),(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(i.Ay,{items:y,disabledKeys:w,onOpenChange:h,children:j||(0,l.jsx)(t.d,{size:"sm",icon:"icon-ellipsis-vertical",variant:t.A.Flat,"aria-label":b["more-options"]})})})},j=({uploaded_paper_id:e,isUploading:s,onDelete:a})=>{let[i]=(0,r.A)("paper-access-button");return e?(0,l.jsx)(h,{uploaded_paper_id:e,isUploading:s??!1,onDelete:()=>{a?.()},children:(0,l.jsx)(t.d,{variant:t.A.Secondary,label:i["manage-pdf"],size:"sm",iconRight:"icon-chevron-down"})}):null}},86126:(e,s,a)=>{a.d(s,{A:()=>i});var l=a(37876),t=a(70315);let i=function(){let[e]=(0,t.A)("screens.findingmissing");return(0,l.jsxs)("div",{"data-testid":"findingmissing",className:"container max-w-6xl m-auto grid grid-cols-1 md:grid-cols-2 pt-4 md:pt-16",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"block md:hidden mx-16 mt-6",children:(0,l.jsx)("img",{alt:"findingmissing",src:"/images/findingmissing.svg"})}),(0,l.jsx)("h1",{className:"text-[27px] md:text-4xl leading-8 font-bold text-[#085394] mt-16 md:mt-24",children:e.title}),(0,l.jsx)("p",{className:"text-fg-base mt-2 md:mt-16 max-w-[391px]",children:e.description})]}),(0,l.jsx)("div",{className:"hidden md:block",children:(0,l.jsx)("img",{alt:"findingmissing",src:"/images/findingmissing.svg"})})]})}},91723:(e,s,a)=>{a.d(s,{A:()=>n});var l=a(37876),t=a(58103),i=a.n(t);a(14232);let n=({children:e,fullWidth:s=!1,className:a=""})=>(0,l.jsx)("div",{className:i()(!s&&"max-w-page mx-auto px-4",a),children:e})}}]);

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.