(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[14],{"9ivc":function(t,e,i){"use strict";i.r(e),i.d(e,"PublicationLeafComponent",(function(){return Li}));var n=i("o0o1"),a=i.n(n),o=i("KQm4"),r=i("rePB"),c=i("HaE+"),l=i("wx14"),s=i("1OyB"),p=i("vuIU"),u=i("Ji7U"),d=i("md7G"),b=i("foSv"),h=i("vDqi"),m=i.n(h),f=i("q1tI"),g=i.n(f),x=i("HOgx"),y=i("hVy4"),_=i("qi/6"),v=i("4qbm"),w=i("PXD2"),O=i("vx0M"),j=i("9kay"),N=i("cfIY"),k=i("Shqb"),C=i("hlQV"),I=i("fkzy"),S=i("vOnD"),A=i("pIRP"),P=g.a.createElement,R=S.b.div.withConfig({displayName:"AboutJournal__JournalInfoBox",componentId:"rj29ow-0"})(["display:flex;flex:1;color:",";font-family:",";font-size:",";line-height:",";margin-bottom:72px;","{margin-bottom:16px;}"],N.a.TEXT.PARAGRAPH,k.b.SANS_SERIF,Object(k.d)(12),Object(k.d)(20),x.i),T=S.b.img.withConfig({displayName:"AboutJournal__JournalInfoImage",componentId:"rj29ow-1"})(["box-sizing:border-box;height:72px;width:72px;border-radius:14px;margin-right:16px;"]),E=S.b.div.withConfig({displayName:"AboutJournal__JournalInfoContentTitle",componentId:"rj29ow-2"})(["display:flex;font-size:",";line-height:",";font-family:",";"],Object(k.d)(14),Object(k.d)(24),k.b.SANS_SERIF_2),D=Object(S.b)(E).withConfig({displayName:"AboutJournal__PublishedInSpan",componentId:"rj29ow-3"})(["font-size:",";line-height:",";margin-bottom:24px;"],Object(k.d)(21),Object(k.d)(27)),B=S.b.div.withConfig({displayName:"AboutJournal__ContainerDiv",componentId:"rj29ow-4"})(["display:flex;flex-direction:column;text-align:left;"]),F=S.b.div.withConfig({displayName:"AboutJournal__JournalInfoContainer",componentId:"rj29ow-5"})(["display:flex;flex-direction:row;","{flex-direction:column;}"],x.i),z=S.b.table.withConfig({displayName:"AboutJournal__JournalMetaTable",componentId:"rj29ow-6"})(["display:flex;flex-direction:row;font-family:",";line-height:",";font-size:",";background:",";box-shadow:0 1px 4px 0 rgba(0,0,0,0.1);border:2px solid transparent;","{flex-direction:column;}"],k.b.SANS_SERIF_2,Object(k.d)(27),Object(k.d)(16),N.a.BACKGROUND.DEFAULT,x.i),U=S.b.th.withConfig({displayName:"AboutJournal__JournalTableHeader",componentId:"rj29ow-7"})(["width:",";padding:",";font-weight:300;align-items:left;color:",";"],Object(k.d)(400),Object(k.d)(16),N.a.TEXT.DARKGRAY),L=S.b.td.withConfig({displayName:"AboutJournal__JournalTableData",componentId:"rj29ow-8"})(["width:",";align-items:left;padding:",";font-weight:300;color:",";"],Object(k.d)(336),Object(k.d)(16),N.a.TEXT.DIMGRAY),M=S.b.tr.withConfig({displayName:"AboutJournal__JournalTableRowStyle",componentId:"rj29ow-9"})([".tooltip{position:relative;.tooltipText{visibility:hidden;background-color:",";color:",";font-size:",";font-weight:300;line-height:",";align-items:left;text-align:center;padding:10px 9px;border-radius:6px;position:absolute;top:-",";left:-",";z-index:1;","{font-size:",";line-height:",";left:unset;}}&:hover{.tooltipText{visibility:visible;}}}"],N.a.TEXT.ON_DARK_BACKGROUND,N.a.BACKGROUND.PUREBLACK,Object(k.d)(12),Object(k.d)(16),Object(k.d)(16),Object(k.d)(144),x.i,Object(k.d)(12),Object(k.d)(12)),H=function(t){var e=t.displayValue,i=t.displayName,n=t.url;if(!e)return A.a.log("returning null ".concat(e)),null;if(n){var a="".concat(n,"?key=").concat("jkfmxrxsokzblnpxafgznuhmqsrrerzyjldt9aj44jlsazguy3hjhj73qjbe1czr");return P(M,null,P(U,null,i),P(L,{"data-testid":i,className:"tooltip"},P("span",{className:"tooltipText"},"Data powered by Typeset"),P(C.b,{href:a},e)))}return P(M,null,P(U,null,i),P(L,{"data-testid":i},e))},K=function(t){var e=Object(j.useTranslation)("publication").t;return t.institute_metadata.format_backlink_enabled?P(B,null,P(w.c,null,e("about-journal")),P(z,{"data-testid":"journal-meta-table"},P("tbody",null,P(H,{displayValue:t.source||null,displayName:"Journal",url:t.format_url}),P(H,{displayValue:t.publisher||null,displayName:"Publisher",url:t.publisher_url}),P(H,{displayValue:t.issn||null,displayName:"ISSN"}),P(H,{displayValue:t.impact_factor||null,displayName:"Impact Factor"}),P(H,{displayValue:t.open_access?Object(I.u)(t.open_access):null,displayName:"Open Access"}),P(H,{displayValue:t.citation_style||null,displayName:"Citation Style"}),P(H,{displayValue:t.sherpa_romeo_color||null,displayName:"Sherpa RoMEO Archiving Policy"})))):P(B,null,P(w.c,null,e("about-journal")),P(D,null,e("published-in",{journal_name:t.publisher})),P(F,null,P(R,null,P(T,{src:"https://d5a9y5rnan99s.cloudfront.net/tds-static/images/openaccess.svg"}),P("div",{className:"section--col"},P(E,null,e("open-access")),P("span",null,t.open_access))),P(R,null,P(T,{src:"https://d5a9y5rnan99s.cloudfront.net/tds-static/images/impactfactor.svg"}),P("div",{className:"section--col"},P(E,null,e("impact-factor")),P("span",null,t.impact_factor||"N/A")))))},q=S.b.button.withConfig({displayName:"buttons__ButtonBase",componentId:"sc-10zr117-0"})(["background-color:none;border:none;cursor:pointer;"]),G=Object(S.b)(q).withConfig({displayName:"buttons__GreenButton",componentId:"sc-10zr117-1"})(["background-color:",";border-bottom:3px solid #30763f;color:",";"],N.a.SECONDARY.DEFAULT,N.a.TEXT.ON_DARK_BACKGROUND),V=Object(S.b)(G).withConfig({displayName:"buttons__BlueButton",componentId:"sc-10zr117-2"})(["background-color:#3f79b7;border-bottom:3px solid #30763f;border-bottom:3px solid #19547f;"]),J=i("zPhz"),X=i("uY1x"),Y=i("JX7q"),W=i("Sigi"),Q=i("WJHN"),Z=i("lMjN"),$=g.a.createElement;function tt(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=Object(b.a)(t);if(e){var a=Object(b.a)(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Object(d.a)(this,i)}}var et,it=S.b.div.withConfig({displayName:"ManuscriptCitations__Container",componentId:"sc-1m6xi5g-0"})(["flex:1;display:flex;flex-direction:column;width:100%;"]),nt=S.b.div.withConfig({displayName:"ManuscriptCitations__TabHeaderContainer",componentId:"sc-1m6xi5g-1"})(["display:flex;flex-direction:row;justify-content:center;box-shadow:inset 0 -1px 0 0 rgba(0,0,0,0.1);border-top-left-radius:8px;border-top-right-radius:8px;height:53px;box-sizing:border-box;.header-tab--send-to{padding-right:48px;color:#19547f;opacity:0.56;display:flex;justify-content:center;align-items:center;font-family:",";font-size:",";line-height:",";letter-spacing:0.4px;}","{box-sizing:border-box;padding-top:12px;text-transform:none;","{flex:1;}}"],k.b.SANS_SERIF,Object(k.d)(16),Object(k.d)(24),Q.a,Z.a),at=S.b.div.withConfig({displayName:"ManuscriptCitations__TabContainer",componentId:"sc-1m6xi5g-2"})(["background-color:#ffffff;padding:1em;height:300px;display:flex;flex-direction:row;padding:32px;border-bottom-left-radius:8px;border-bottom-right-radius:8px;","{padding:12px;}"],x.i),ot=S.b.pre.withConfig({displayName:"ManuscriptCitations__TabContent",componentId:"sc-1m6xi5g-3"})(["padding:12px;background-color:",";border-radius:3px;box-sizing:border-box;width:500px;overflow:auto;margin:0;color:",";font-family:",";font-size:",";line-height:",";white-space:pre-wrap;"],N.a.BACKGROUND.BACKGROUND_3,N.a.TEXT.PARAGRAPH,k.b.SANS_SERIF,Object(k.d)(12),Object(k.d)(20)),rt=S.b.button.withConfig({displayName:"ManuscriptCitations__CopyButton",componentId:"sc-1m6xi5g-4"})(["display:block;margin-left:16px;height:42px;width:120px;border:none;box-shadow:0 1px 4px 0 rgba(0,0,0,0.1);color:",";background-color:",";border-bottom:3px solid #d9dfe8;font-family:",";font-size:",";line-height:",";font-weight:600;letter-spacing:0.2px;text-align:center;cursor:pointer;&:hover{box-shadow:0px 3px 4px 0 rgba(0,0,0,0.1);}","{margin-left:4px;width:max-content;}"],N.a.PRIMARY.DARKEST,N.a.BACKGROUND.BACKGROUND_3,k.b.SANS_SERIF,Object(k.d)(16),Object(k.d)(32),x.i),ct=S.b.button.withConfig({displayName:"ManuscriptCitations__CloseButton",componentId:"sc-1m6xi5g-5"})(["height:25px;width:25px;border-radius:50%;background-color:#9ba3ac;color:",";border:none;position:absolute;right:-8px;top:-8px;cursor:pointer;"],N.a.TEXT.ON_DARK_BACKGROUND),lt=function(t){Object(u.a)(i,t);var e=tt(i);function i(t){var n;return Object(s.a)(this,i),(n=e.call(this,t)).handleUpdateTab=n.handleUpdateTab.bind(Object(Y.a)(n)),n.getCitationForManuscript=n.getCitationForManuscript.bind(Object(Y.a)(n)),n.copyCitation=n.copyCitation.bind(Object(Y.a)(n)),n.updateButtonText=n.updateButtonText.bind(Object(Y.a)(n)),n.state={tab:"apa"},n}return Object(p.a)(i,[{key:"componentDidMount",value:function(){this.getCitationForManuscript(this.state.tab)}},{key:"getCitationForManuscript",value:function(){var t=Object(c.a)(a.a.mark((function t(e){var i,n,o,c,l,s,p;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=this.props,n=i.manuscript_id,o=i.previewToken,c=Object(I.p)(),l="/api/publication/".concat(n,"/citations"),s={citation_type:e,previewToken:o},t.next=6,m.a.post(l,s,c);case 6:p=t.sent,this.setState(Object(r.a)({tab:e},e,p.data[e]||""));case 8:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"updateButtonText",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=document.getElementById("copy-button");t?e&&(e.textContent="COPY"):e&&(e.textContent="COPIED")}},{key:"handleUpdateTab",value:function(t){this.updateButtonText(!0),this.setState({tab:t}),this.getCitationForManuscript(t)}},{key:"copyCitation",value:function(){var t=document.querySelectorAll("#tabdata")[0],e=window.getSelection();if(e){e.removeAllRanges();var i=document.createRange();i.selectNode(t),e.addRange(i);try{document.execCommand("copy"),this.updateButtonText()}catch(n){console.error("Oops, unable to copy")}e.removeAllRanges()}}},{key:"renderTabCitation",value:function(){var t=this.state.tab,e=this.state[t]||"";return $(at,null,$(ot,{"data-testid":"citation-content",id:"tabdata"},"endnote"===t?e:$("div",{dangerouslySetInnerHTML:{__html:e}})),$(rt,{id:"copy-button",onClick:this.copyCitation},"COPY"))}},{key:"render",value:function(){var t=this,e=this.state.tab,i=[{label:"APA",isActive:"apa"===e,handleOnClick:function(){return t.handleUpdateTab("apa")}},{label:"MLA",isActive:"mla"===e,handleOnClick:function(){return t.handleUpdateTab("mla")}},{label:"Chicago",isActive:"chicago"===e,handleOnClick:function(){return t.handleUpdateTab("chicago")}},{label:"Harvard",isActive:"harvard"===e,handleOnClick:function(){return t.handleUpdateTab("harvard")}},{label:"Vancouver",isActive:"vancouver"===e,handleOnClick:function(){return t.handleUpdateTab("vancouver")}},{label:"BibTeX",isActive:"bibtex"===e,handleOnClick:function(){return t.handleUpdateTab("bibtex")}},{label:"EndNote",isActive:"endnote"===e,handleOnClick:function(){return t.handleUpdateTab("endnote")}},{label:"RIS",isActive:"ris"===e,handleOnClick:function(){return t.handleUpdateTab("ris")}}];return $(it,{"data-testid":"modal-citations"},$(ct,{onClick:this.props.close,"data-testid":"citations-btn-close"},$(W.a,{icon:"close"})),$(nt,null,$(Q.b,{className:"citations-widget__header-tab",items:i})),this.renderTabCitation())}}]),i}(g.a.Component),st=g.a.createElement,pt=S.b.div.withConfig({displayName:"PublicationInfoItem__ItemStyle",componentId:"sc-1kauaju-0"})(["color:",";font-size:",";line-height:",";letter-spacing:0.2;opacity:0.56;margin:4px 0;"],N.a.TEXT.PARAGRAPH,Object(k.d)(12),Object(k.d)(20)),ut=S.b.div.withConfig({displayName:"PublicationInfoItem__ItemStyle2",componentId:"sc-1kauaju-1"})(["color:",";letter-spacing:0.2;margin:4px 0;"],N.a.TEXT.PARAGRAPH),dt=function(t){var e=t.data,i=t.label;return e?st(pt,null,i):null},bt=function(t){var e=t.data,i=t.label,n=t.link;return e&&n?st(ut,{"data-testid":"publication-info-item"},i,st(C.a,{href:n},e)):null},ht=i("/blm"),mt=g.a.createElement,ft=S.b.div.withConfig({displayName:"RequestFullTextModal__Container",componentId:"sc-5nec4o-0"})(["display:flex;flex-direction:column;align-items:stretch;color:",";font-size:",";line-height:",";font-family:",";.input--email{box-sizing:border-box;height:42px;margin-bottom:32px;}"],N.a.TEXT.PARAGRAPH,Object(k.d)(16),Object(k.d)(32),k.b.SANS_SERIF_2),gt=S.b.div.withConfig({displayName:"RequestFullTextModal__Title",componentId:"sc-5nec4o-1"})(["font-family:",";font-size:",";line-height:",";margin-bottom:16px;display:flex;flex-direction:row;align-items:center;.icon{height:24px;width:24px;font-size:24px;line-height:24px;box-sizing:border-box;color:#16c981;margin-left:16px;}"],k.b.SANS_SERIF_2,Object(k.d)(30),Object(k.d)(42)),xt=S.b.textarea.withConfig({displayName:"RequestFullTextModal__TextArea",componentId:"sc-5nec4o-2"})(["box-sizing:border-box;border:1px solid #e4e9f2;padding:8px 16px;border-radius:4px;font-size:",";line-height:",";color:",";font-family:",";height:138px;width:100%;resize:none;margin-bottom:24px;background-color:",";border:1px solid #e4e9f2;box-shadow:0 1px 4px 0 rgba(0,0,0,0.1);"],Object(k.d)(16),Object(k.d)(32),N.a.TEXT.PARAGRAPH,k.b.SANS_SERIF_2,N.a.BACKGROUND.BACKGROUND_2),yt=Object(S.b)(G).withConfig({displayName:"RequestFullTextModal__SubmitButton",componentId:"sc-5nec4o-3"})(["color:",";font-size:",";line-height:",";letter-spacing:0.2;padding:8px;text-transform:uppercase;"],N.a.TEXT.ON_DARK_BACKGROUND,Object(k.d)(16),Object(k.d)(32)),_t=S.b.button.withConfig({displayName:"RequestFullTextModal__CloseButton",componentId:"sc-5nec4o-4"})(["height:25px;width:25px;border-radius:50%;background-color:#9ba3ac;color:",";border:none;position:absolute;right:-8px;top:-8px;cursor:pointer;"],N.a.TEXT.ON_DARK_BACKGROUND),vt=S.b.div.withConfig({displayName:"RequestFullTextModal__SuccessDiv",componentId:"sc-5nec4o-5"})(["margin-bottom:32px;"]);!function(t){t[t.READY=0]="READY",t[t.IN_PROGRESS=1]="IN_PROGRESS",t[t.SUBMITTED=2]="SUBMITTED"}(et||(et={}));var wt=function(t){var e=t.close,i=t.publicationId,n=Object(f.useRef)(null),o=Object(f.useState)(""),r=o[0],l=o[1],s=Object(f.useState)(ht.a.EMPTY),p=s[0],u=s[1],d=Object(f.useState)(et.READY),b=d[0],h=d[1],g=function(){var t=Object(c.a)(a.a.mark((function t(){var e,o,c,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n.current){t.next=9;break}return h(et.IN_PROGRESS),e=n.current.value,o={email:r,message:e},c=Object(I.p)(),l="/api/publication/".concat(i,"/request-full-text"),t.next=8,m.a.post(l,o,c);case 8:h(et.SUBMITTED);case 9:return t.abrupt("return",!1);case 10:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),x=null,y=mt(gt,null,mt("span",null,"Request full-text")),_=mt(ht.b,{handleInputChange:function(t,e){l(t),u(e)},className:"input--email",placeholder:"E-mail address"}),v=mt(xt,{placeholder:"Add a message",ref:n,"data-testid":"request-full-modal-input-message"}),w=p!==ht.a.VALID,O=mt(yt,{"data-testid":"request-full-modal-btn-submit",onClick:g,disabled:w},"Request full text");return b===et.SUBMITTED&&(y=mt(gt,null,mt("span",null,"Request full-text"),mt(W.a,{icon:"tick-arrow"})),_=v=null,x=mt(vt,null,"You have successfully requested for a full-text version of the article!"),O=mt(yt,{"data-testid":"request-full-modal-btn-okay",onClick:e},"OKAY")),mt(ft,null,mt(_t,{onClick:e,"data-testid":"request-full-modal-btn-close"},mt(W.a,{icon:"close"})),y,_,v,x,O)},Ot=i("j3+i"),jt=i("ffCW"),Nt=g.a.createElement,kt=S.b.span.withConfig({displayName:"DisplayAbstract__AbstractTitle",componentId:"j1e44y-0"})(["font-family:",";font-size:",";line-height:",";margin-top:32px;margin-bottom:12px;"],k.b.SANS_SERIF_2,Object(k.d)(30),Object(k.d)(42)),Ct=S.b.div.withConfig({displayName:"DisplayAbstract__SpaceBottom",componentId:"j1e44y-1"})(["margin-bottom:22px;"]),It=function(t){return t.abstract?Nt(g.a.Fragment,null,Nt(kt,null,t.label),Nt(jt.a,{className:"abstract",html:t.abstract,maxHeight:168}),Nt(Ct,null)):null},St=g.a.createElement,At=S.b.div.withConfig({displayName:"PublicationScispaceBackLink__TopicsList",componentId:"sc-21cz7q-0"})(["*{color:#505050;font-family:",";font-size:14px;}"],k.b.SANS_SERIF_2),Pt=S.b.span.withConfig({displayName:"PublicationScispaceBackLink__TopicLabel",componentId:"sc-21cz7q-1"})(["font-weight:600;font-size:14px;line-height:22px;"]),Rt=S.b.span.withConfig({displayName:"PublicationScispaceBackLink__ScoreTooltip",componentId:"sc-21cz7q-2"})(["position:relative;.tooltip-text{display:none;position:absolute;bottom:30px;left:-10px;padding:5px 10px;background-color:",";white-space:nowrap;font-size:14px;color:white;border-radius:2px;::before{position:absolute;content:'';height:10px;width:10px;border-radius:2px;background-color:",";transform:rotate(45deg);bottom:-4px;left:21px;}}:hover{.tooltip-text{display:block;}}","{.tooltip-text{display:none !important;}}"],N.a.BACKGROUND.PUREBLACK,N.a.BACKGROUND.PUREBLACK,x.i),Tt=S.b.span.withConfig({displayName:"PublicationScispaceBackLink__TopicItem",componentId:"sc-21cz7q-3"})(["a{text-decoration-line:none;font-weight:400;line-height:22px;font-size:14px;:hover{text-decoration-line:underline;color:#505050;}}"]),Et=S.b.p.withConfig({displayName:"PublicationScispaceBackLink__ViewMoreInfo",componentId:"sc-21cz7q-4"})(["font-size:14px;line-height:17px;margin-bottom:25px;word-break:break-all;a{max-width:275px;overflow:hidden;text-overflow:ellipsis;display:inline-block;vertical-align:bottom;white-space:nowrap;}","{a{display:unset;white-space:normal;max-width:unset;}}"],x.i),Dt=function(t){var e=t.full_slug,i=t.title,n=t.topics;return St(g.a.Fragment,null,!!(null===n||void 0===n?void 0:n.total)&&St(At,null,St(Pt,null,"Topics: "),n.data.map((function(t,e){var i=Number(100*t.score).toFixed(0);return St(Tt,{key:t.full_slug},St("a",{href:"https://typeset.io/topics/".concat(t.full_slug),target:"_blank",rel:"noopener noreferrer"},t.display_name),St(Rt,null,St("span",null," (",i,")%"),St("span",{className:"tooltip-text"},i,"% related to the paper")),e0&&(d=u);var b=Bt(V,{"data-testid":"cite-button",className:"btn-action"},i("cite")),h=Bt(J.a,{trigger:b,modal:!0,contentStyle:Wt},(function(e){return Bt(lt,{manuscript_id:t._id,previewToken:a,close:e})})),m=t.doi,f=t.pmid,g=t.authors,x=t.issue,y=void 0===x?"issue 233":x,_=t.volume,v=void 0===_?"vol 123":_,w=t.first_page,O=t.last_page,N="https://dx.doi.org/".concat(m),k="https://www.ncbi.nlm.nih.gov/pubmed/".concat(f),C=v||y?Bt("div",{className:"section--row"},Bt(dt,{data:v,label:"Volume: ".concat(v)}),Bt("span",null,"\xa0\xa0\xa0"),Bt(dt,{data:y,label:" Issue: ".concat(y)})):null,I=w&&O?Bt("div",{className:"section--row"},Bt(dt,{data:w,label:"Pages: ".concat(w," - ").concat(O)})):null,S=/Mobi/i.test(window.navigator.userAgent),A=null,P=null;if(t.institute_metadata.allow_velocity_graph){S?P=null:A=null}return Bt(Lt,null,Bt(Mt,null,Bt(Ht,null,Bt(Ut,null,Bt(qt,null,Bt(Kt,null,t.publication_type),function(){var e=t.open_access,i=null;return e&&"yes"==e&&(i=Bt(Gt,null,Bt("img",{className:"open-access-svg",src:"https://d5a9y5rnan99s.cloudfront.net/tds-static/images/open-access-transparent.svg"}),Bt("span",null,"Open Access"))),i}()),Bt(Vt,{dangerouslySetInnerHTML:{__html:t.title}}),Bt("span",{className:"author-name"},Bt(X.a,{showAuthorHoverCard:t.institute_metadata.allow_velocity_graph,authors:g,total_author_count:o,publicationId:t._id})),Bt("div",{className:"row-published"},Bt("span",{className:"row-published__name"},i("published-in",{journal_name:t.publisher}))),Bt("div",{className:"row-published"},Bt("span",{className:"row-published__date"},r)),Bt(bt,{data:m,label:"DOI: ",link:N}),Bt(bt,{data:f,label:"PMID: ",link:k}),C,I),Bt(Xt,null,Bt("div",{className:"desktop-velocity"},A))),Bt(It,{abstract:t.abstract,label:i("abstract")}),!!(null===(e=t.scispace_data)||void 0===e?void 0:e.full_slug)&&Bt(Dt,t.scispace_data),Bt(Jt,null,d,h),Bt("div",{className:"section--row mobile-velocity"},P)))},$t=i("YFqc"),te=i.n($t),ee=g.a.createElement,ie=S.b.img.withConfig({displayName:"AuthorImage__ImageForInternalAuthor",componentId:"sc-98ludo-0"})(["min-height:",";height:",";max-height:",";min-width:",";width:",";max-width:",";box-sizing:border-box;margin-right:24px;border-radius:4px;"," ","{margin-right:16px;min-height:",";height:",";max-height:",";min-width:",";width:",";max-width:",";}"],"151px","151px","151px","151px","151px","151px",(function(t){return!!t.is_default_image&&Object(S.a)(["",";padding:8px;"],x.b)}),x.i,"100px","100px","100px","100px","100px","100px"),ne=Object(S.b)(ie).withConfig({displayName:"AuthorImage__ImageForExternalAuthor",componentId:"sc-98ludo-1"})(["min-height:123px;height:123px;max-height:123px;min-width:97px;width:97px;max-width:97px;"]),ae=function(t){var e=t.author,i=t.t,n=e.photo_url,a=e.first_name,o=e.researcher_id,r=e.photo_url_optimised,c=n||"https://d5a9y5rnan99s.cloudfront.net/tds-static/images/Profile-default.svg",l=r||null,s={alt:i("common:alt-text-researcher",{name:a}),src:c,is_default_image:!n};return o?ee("picture",null,!!l&&ee("source",{srcSet:l,type:"image/webp"}),ee("source",{srcSet:c}),ee(ie,s)):ee(ne,s)},oe=g.a.createElement,re=S.b.div.withConfig({displayName:"PublicationAuthorPublications__EmptyContainerDiv",componentId:"fxhimp-0"})(["display:flex;padding:0;margin:8px 0;opacity:0.72;"]),ce=S.b.a.withConfig({displayName:"PublicationAuthorPublications__PublicationLink",componentId:"fxhimp-1"})(["font-size:",";line-height:",";font-weight:700;font-family:",";color:#2a8cd5;p{font-size:inherit !important;line-height:inherit !important;font-weight:inherit !important;font-family:inherit !important;color:inherit !important;}"],Object(k.d)(14),Object(k.d)(24),k.b.SANS_SERIF_2),le=function(){return oe(re,null,"No recent publications")},se=S.b.ul.withConfig({displayName:"PublicationAuthorPublications__ContainerDiv",componentId:"fxhimp-2"})(["margin:0;padding:0;list-style:none;margin-top:24px;"]),pe=S.b.button.withConfig({displayName:"PublicationAuthorPublications__ShowMoreButton",componentId:"fxhimp-3"})(["cursor:pointer;border:none;border-radius:4px;display:flex;flex-direction:row;justify-content:center;align-items:center;color:",";font-family:",";font-weight:",";font-size:",";line-height:",";padding:4px 12px;&:hover{color:",";}.icon{margin-right:4px;}.show-more-text{text-decoration:underline;}"],N.a.PRIMARY.DEFAULT,k.b.SANS_SERIF_2,k.c.HEADING_LITE,Object(k.d)(14),Object(k.d)(24),N.a.PRIMARY.DARKEST),ue=function(t){var e=t.recent_publications,i=t.t,n=Object(f.useState)(!1),a=n[0],o=n[1],r=[],c=null;if(!e||e.length<=0)r=oe(le,null);else if(r=(a?e:e.slice(0,4)).map((function(t,e){return oe("li",{key:e,className:"row"},oe(te.a,Object(I.v)(t._id),oe(ce,{dangerouslySetInnerHTML:{__html:t.title}})))})),e.length>4){var l=a?"Show less":"Show more",s=a?"up-arrow-tip":"bottom-arrow-tip";c=oe(pe,{onClick:function(){return o(!a)}},oe(W.a,{icon:s}),oe("span",{className:"show-more-text"},l))}return oe(se,null,oe("span",{className:"row author__heading"},i("recent-publications")),r,c)},de=i("9AxZ"),be=i("CVsc"),he=g.a.createElement,me=S.b.div.withConfig({displayName:"PublicationAuthors__ContainerDiv",componentId:"sc-1eu6wsg-0"})(["border-radius:4px;background-color:",";box-shadow:0 1px 4px 0 rgba(0,0,0,0.1);padding:24px;color:",";font-family:",";font-size:",";line-height:",";font-weight:300;.row{margin:8px 0;}.section-content{margin-top:24px;}.author__heading{margin:8px 0;font-family:",";font-size:",";line-height:",";&--name{font-size:",";line-height:",";margin:0;}}","{.author__heading{&--name{font-size:",";line-height:",";margin-bottom:8px;}}}"],N.a.BACKGROUND.DEFAULT,N.a.TEXT.PARAGRAPH,k.b.SANS_SERIF,Object(k.d)(16),Object(k.d)(24),k.b.SANS_SERIF_2,Object(k.d)(21),Object(k.d)(27),Object(k.d)(24),Object(k.d)(32),x.i,Object(k.d)(21),Object(k.d)(27)),fe=function(t){var e=t.author,i=t.institute_name,n=Object(j.useTranslation)("publication").t,a=e,o=he(ue,{recent_publications:a.recent_publications,researcher_id:a.researcher_id,t:n}),r=Object(be.a)(e),c=e.researcher_id?he(te.a,Object(I.x)(e.researcher_id),he("a",{className:"row author__heading author__heading--name"},r)):he("span",{className:"row author__heading author__heading--name"},r),l=null;if(e.researcher_id&&e.unit){var s=e.unit;l=he(de.a,{unit:s,institute_name:i})}return he(me,null,he("div",{className:"section--row"},he(ae,{author:e,t:n}),he("div",{className:"section--col"},c,l,o)))},ge=g.a.createElement,xe=S.b.div.withConfig({displayName:"PublicationAuthorList__ContainerDiv",componentId:"sc-1hy1kot-0"})(["margin:24px 0;"]),ye=S.b.ul.withConfig({displayName:"PublicationAuthorList__ListDiv",componentId:"sc-1hy1kot-1"})(["list-style:none;margin:0;padding:0;display:flex;flex-direction:column;"]),_e=S.b.li.withConfig({displayName:"PublicationAuthorList__ListItemDiv",componentId:"sc-1hy1kot-2"})(["margin:8px 0;"]),ve=function(t){var e=t.items,i=t.institute_name,n=[].concat(Object(o.a)(e.filter((function(t){return!!t.researcher_id}))),Object(o.a)(e.filter((function(t){return!t.researcher_id}))));return ge(xe,null,ge(ye,null,n.map((function(t,e){return ge(_e,{key:e},ge(fe,{author:t,institute_name:i}))}))))},we=i("Jhzn"),Oe=i("87fJ");function je(t){var e=new Date(t),i=e.getFullYear().toString(),n=e.getMonth().toString(),a=e.getDate().toString();return"".concat(i,"/").concat(n,"/").concat(a)}var Ne=g.a.createElement;function ke(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Ce(t){for(var e=1;e0?(C=[],_.forEach((function(t){var e=Object(I.a)(o,n,t.attachment_type.toLowerCase(),t.attachment_slug);C.push({caption:Object(I.q)(t.caption,100),url:e,"@type":"ImageObject"})}))):C=Object(Oe.c)(t),a&&(N.datePublished=je(a),k.datePublished=new Date(a).toISOString()),s&&(k.sameAs="https://doi.org/".concat(s)),p.length>0&&(k.keywords=p.slice(0,5).map((function(t){return t.name}))),k.publisher=g?{"@id":"".concat(g,"#publisher"),"@type":"Organization"}:{"@id":"".concat(O,"#publisher"),"@type":"Organization"},N.isPartOf=f?{"@id":"".concat(f,"#journal"),"@type":["PublicationVolume","Periodical"],issn:h,name:S,volumeNumber:null!==l&&void 0!==l?l:null,publisher:{"@id":"".concat(O,"#publisher"),"@type":"Organization"}}:{"@id":"".concat(O,"#periodical"),"@type":["PublicationVolume","Periodical"],issn:h,name:S,volumeNumber:null!==l&&void 0!==l?l:null,publisher:{"@id":"".concat(O,"#publisher"),"@type":"Organization"}},k.author=c.map((function(t){return P(t)})),y&&y.data.length>0&&(k.citation=y.data.map((function(t){return function(t){var e=t._id,i=t.belongs_to_host,n=t.host_base_url;"undefined"!==typeof i&&1==i&&(e=Object(I.c)(o,t._id)),"undefined"!==typeof i&&!0!==i&&n&&(e=Object(I.c)(n,t._id));var a=t.authors,r={"@id":"".concat(e,"#publication"),"@type":"ScholarlyArticle",name:t.title,headline:Object(I.q)(t.title,100)};if(t.publication_date&&(r.datePublished=t.publication_date.toString()),r.author=a.map((function(t){return P(t)})),t.publisher){var c={"@type":"Organization",name:t.publisher};t.publisher_url&&(c["@id"]="".concat(g,"#publisher"));var l={"@type":"ImageObject",url:null};t.publisher_logo&&(l.url=t.publisher_logo,c.logo=l,r.image=l),r.publisher=c}return r}(t)})));var R={"@context":"http://schema.org","@graph":[Ce(Ce({"@id":j,"@type":"PublicationIssue"},N),{},{issueNumber:null!==r&&void 0!==r?r:null}),Ce(Ce({"@id":"".concat(O,"#publication"),"@type":"ScholarlyArticle",isPartOf:j,description:b},k),{},{name:v,headline:w,image:null!==(e=C)&&void 0!==e?e:null,about:["Works","Catalog"],pageStart:null!==u&&void 0!==u?u:null,pageEnd:null!==d&&void 0!==d?d:null,mainEntityOfPage:{"@type":"WebPage","@id":O}}),{"@id":"".concat(O,"#publisher"),"@type":"Organization",Name:S,url:A,logo:{"@type":"ImageObject",url:null!==(i=C)&&void 0!==i?i:null}}]};return Ne(we.a,{jsonKey:"jsonld-publication",jsonValue:R})},Se=i("ffb8"),Ae=g.a.createElement;function Pe(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Re(t){for(var e=1;e0?C+=", ".concat(b):C+="".concat(b)),C.length>0&&w.push({name:"citation_issn",content:C});var A=S(u,p);if(w.push(A),a){var P=a.file_type,R=a.file_url;"pdf"==P.keyword&&R&&w.push({name:"citation_pdf_url",content:R})}w.push({name:"citation_abstract_html_url",content:_}),r.length>0&&w.push({name:"citation_keywords",content:r.map((function(t){return t.name})).join(";")}),(null===c||void 0===c?void 0:c.length)>0&&c.forEach((function(t){w.push({name:"citation_author",content:Object(be.a)(t)}),O.push({name:"citation_author",content:Object(be.a)(t)}),t.researcher_id&&(w.push({name:"citation_author_institution",content:i.name}),O.push({name:"citation_author_institution",content:i.name}));var e=t;e.email&&(w.push({name:"citation_author_email",content:e.email}),O.push({name:"citation_author_email",content:e.email}))})),N&&N.data&&N.data.length>0&&N.data.forEach((function(t,e){var i={name:"citation_reference",content:""},n="citation_id=CR".concat(e,";");if(Te.forEach((function(e){var i=e.keyName,a=e.metaName;if(t.hasOwnProperty(i)){var o=t[i];o&&("title"==i&&(o=Object(I.n)(o)),n+="".concat(a,"=").concat(o,";"))}})),t.authors&&t.authors.length>0){var a="";t.authors.forEach((function(t,e){var i=Object(be.a)(t);a+=e>0?",".concat(i):"".concat(i)})),n+="citation_author=".concat(a,";")}var o=t.issn,r=t.e_issn,c="";if(o&&(c="citation_issn=".concat(o)),r&&(c.length>0?c+=", ".concat(r):c="citation_issn=".concat(r)),c.length>0&&(n+="".concat(c,";")),t.publication_date){var l=je(t.publication_date);n+="citation_publication_date=".concat(l,";")}var s=S(t.source,t.publication_type);n+="".concat(s.name,"=").concat(s.content,";"),i.content=n,w.push(i),j.push(i)})),s&&w.push({name:"citation_publication_date",content:je(s)}),Te.forEach((function(e){var i=e.keyName,n=e.metaName;if(t.hasOwnProperty(i)){var a=t[i];"title"==i&&(a=x),a&&w.push({name:n,content:a})}}));var T=Object(Oe.c)(t),E=[];T&&E.push({url:T,alt:"This publication belongs to ".concat(t.publisher)}),Object(f.useEffect)((function(){var t=document.getElementsByTagName("head");if(t){var e=t[0];e&&(O.forEach((function(t,i){var n,a=(null===(n=t.name)||void 0===n?void 0:n.includes("citation_author"))&&ie.length&&(e+=" ..."),t=qe("span",{className:"deposit-tooltip"},e,qe("span",{className:"deposit-tooltip-text"},r))}return t}function l(){var t=qe("div",{className:"license-info"},qe("span",null,"Content may be subject to copyright."),c());return o&&(t=qe("div",{className:"license-info"},qe("span",null,"Content may be subject to copyright,",qe("a",{className:"licenseLink",href:o,target:"_blank",rel:"noopener noreferrer"},"Check License")),c())),t}function s(t,i){console.log(i),e.forEach((function(t,e){var i=document.getElementById("sticky-tab-"+e.toString());i&&i.classList.contains("selected")&&i.classList.remove("selected")}));var n=document.getElementById("sticky-tab-"+t);n&&(n.classList.contains("selected")||n.classList.add("selected"))}function p(){var e=t.stickyTabs;e.forEach((function(t,i){var n=document.getElementById(t.id);if(n){var a=function(t){var e=t.getBoundingClientRect(),i=document.getElementById("sticky-header"),n=null===i||void 0===i?void 0:i.offsetHeight,a=window.innerHeight,o={inViewPort:!1,beyondViewPort:!1,comingIntoViewPort:!1};return n&&e.top>=n&&e.top<=n+32?o.inViewPort=!0:(e.top<0&&(o.beyondViewPort=!0),n&&e.top>n+32&&e.bottom0?i-1:i,r=e[o];s(o.toString(),r.id)}}}))}function u(){var t=document.getElementById("sticky-header"),e=document.getElementById("file-details"),i=(null===t||void 0===t?void 0:t.offsetTop)||1;i&&window.pageYOffset>i?(null===t||void 0===t||t.classList.add("sticky"),null===e||void 0===e||e.classList.add("hidden")):(null===t||void 0===t||t.classList.remove("sticky"),null===e||void 0===e||e.classList.remove("hidden"),function(){var t=document.getElementById("pub-info");null===t||void 0===t||t.classList.add("hidden")}())}Object(f.useEffect)((function(){window.onscroll=function(){u(),p()}}),[]);var d=e.map((function(t,i){var n="sticky-tab-".concat(i),a="tab-anchor-".concat(i);return qe(We,{key:i,id:n},qe("a",{"data-testid":a,onClick:function(t){!function(t,i){var n;t.preventDefault();var a=e[i];s(i.toString(),a.id);var o=null===(n=a.ref.current)||void 0===n?void 0:n.offsetTop,r=document.getElementById("sticky-header"),c=null===r||void 0===r?void 0:r.offsetHeight;o&&c&&window.scrollTo(0,o)}(t,i)}},t.name))}));return qe(Ge,{id:"sticky-header"},qe(Ve,null,qe(Je,null,i&&i.file_url?qe(Xe,{id:"file-details"},qe("div",{id:"file-info",className:"file-info"},qe("span",{className:"copyright-version"},n," Version"),l())):qe(Xe,{id:"file-details"},l()),qe(Ye,null,d))))},Ze=i("3oPt"),$e=i("89ZD"),ti=i("nOHt"),ei=i.n(ti),ii=g.a.createElement;function ni(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=Object(b.a)(t);if(e){var a=Object(b.a)(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Object(d.a)(this,i)}}var ai=S.b.div.withConfig({displayName:"PublicationReferences__ContainerDiv",componentId:"sc-1q0d7m-0"})(["display:flex;flex-direction:column;","{margin-bottom:",";}","{float:right;margin-bottom:",";.dd__content__item{","{min-width:initial;}}}.container-pagination__text-showing{margin-top:",";margin-bottom:",";display:block;}","{display:flex;flex-direction:column;width:100%;}"],w.c,Object(k.d)(8),Ze.a,Object(k.d)(8),x.i,Object(k.d)(4),Object(k.d)(8),O.b),oi=S.b.div.withConfig({displayName:"PublicationReferences__SectionDescription",componentId:"sc-1q0d7m-1"})(["opacity:0.56;color:",";font-family:",";font-size:",";line-height:",";margin-bottom:",";"],N.a.TEXT.PARAGRAPH,k.b.SANS_SERIF_2,Object(k.d)(14),Object(k.d)(28),Object(k.d)(8)),ri=function(t){Object(u.a)(i,t);var e=ni(i);function i(t){var n;return Object(s.a)(this,i),(n=e.call(this,t)).state=n.getInitialState(),n.handleSort=n.handleSort.bind(Object(Y.a)(n)),n.handlePageClick=n.handlePageClick.bind(Object(Y.a)(n)),n}return Object(p.a)(i,[{key:"getInitialState",value:function(){return{}}},{key:"getSectionDescription",value:function(){return"Publications that are referenced by this paper."}},{key:"getRelatedData",value:function(){var t=Object(c.a)(a.a.mark((function t(e,i){var n,o,r,c;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=Object(I.p)(),o="/api/publication/".concat(this.props.publicationId,"/references"),r={sort:e||"",page:i||"1"},n.params=r,t.next=6,m.a.get(o,n);case 6:return c=t.sent,t.abrupt("return",c.data);case 8:case"end":return t.stop()}}),t,this)})));return function(e,i){return t.apply(this,arguments)}}()},{key:"handleSort",value:function(){var t=Object(c.a)(a.a.mark((function t(e){var i;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getRelatedData(e);case 2:i=t.sent,this.setState(i),this.shallowUpdateUrlParams(i);case 5:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"componentDidMount",value:function(){var t=Object(c.a)(a.a.mark((function t(){var e;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=this.props.data,this.setState(e);case 2:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"shallowUpdateUrlParams",value:function(t){var e=t.active_sort,i=t.page,n=this.props.publicationId,a={pathname:"/publication/".concat(n),query:{"reference-page":i.toString(),"reference-sort":e}};ei.a.push("/publication/[publicationId]",a,{shallow:!0})}},{key:"handlePageClick",value:function(){var t=Object(c.a)(a.a.mark((function t(e){var i;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=6;break}return t.next=3,this.getRelatedData(this.state.active_sort,e.toString());case 3:i=t.sent,this.setState(i),this.shallowUpdateUrlParams(i);case 6:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"getPaginationEl",value:function(){var t=this.state,e=t.hits,i=5*(t.page-1)+1;return e>5?ii("div",{className:"container-pagination"},ii("span",{className:"container-pagination__text-showing"},this.props.t("common:pagination-showing-text",{start:i,end:i+4,count:e})),ii($e.b,Object(l.a)({pageClickHandler:this.handlePageClick},this.state))):null}},{key:"render",value:function(){var t=this.state,e=t.data,i=t.sort,n=t.active_sort,a=t.hits,o=null,r=this.getPaginationEl();return e&&e.length&&(o=ii(ai,null,ii(w.c,{"data-testid":"section-heading"},this.props.sectionTitle," (",a,")"),ii(oi,null,this.getSectionDescription()),ii("div",{className:"section__content"},ii(Ze.b,{className:"container-sort",sort:i,handleItemClick:this.handleSort,active_sort:n}),ii(O.a,{showHoverCard:this.props.showHoverCard,items:e}),r))),o}}]),i}(g.a.Component),ci=function(t){Object(u.a)(i,t);var e=ni(i);function i(){return Object(s.a)(this,i),e.apply(this,arguments)}return Object(p.a)(i,[{key:"getSectionDescription",value:function(){return"Publications that are citing this paper."}},{key:"getRelatedData",value:function(){var t=Object(c.a)(a.a.mark((function t(e,i){var n,o,r,c;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=Object(I.p)(),o="/api/publication/".concat(this.props.publicationId,"/manuscript-citations"),r={sort:e||"",page:i||"1"},n.params=r,t.next=6,m.a.get(o,n);case 6:return c=t.sent,t.abrupt("return",c.data);case 8:case"end":return t.stop()}}),t,this)})));return function(e,i){return t.apply(this,arguments)}}()},{key:"shallowUpdateUrlParams",value:function(t){var e=t.active_sort,i=t.page,n=this.props.publicationId,a={pathname:"/publication/".concat(n),query:{"citation-page":i.toString(),"citation-sort":e}};ei.a.push("/publication/[publicationId]",a,{shallow:!0})}}]),i}(ri),li=i("KjaH"),si=i("ODXe"),pi=i("5PLP"),ui=g.a.createElement,di=function(t){var e=t.caption,i=t.trimLength,n=void 0===i?65:i,a=Object(f.useState)(!1),o=a[0],r=a[1];return!!e&&e.length>n?ui("figcaption",{className:"figure-caption"},o?e:Object(I.q)(e,n)+" ...","\xa0",ui("span",{className:"expand-caption",onClick:function(){r((function(t){return!t}))}},o?"Collapse":"Expand")):ui("figcaption",{className:"figure-caption"},e)},bi=g.a.createElement;function hi(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=Object(b.a)(t);if(e){var a=Object(b.a)(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Object(d.a)(this,i)}}var mi=Object(S.b)(pi.a).withConfig({displayName:"PublicationFiguresTables__FigureImage",componentId:"sc-141ipr2-0"})([""]),fi=S.b.div.withConfig({displayName:"PublicationFiguresTables__ContainerDiv",componentId:"sc-141ipr2-1"})(["",";display:flex;flex-direction:column;"],x.j),gi=S.b.ul.withConfig({displayName:"PublicationFiguresTables__StyledList",componentId:"sc-141ipr2-2"})(["list-style:none;display:grid;grid-template-columns:1fr 1fr 1fr;background:",";box-shadow:0 1px 4px 0 rgba(0,0,0,0.1);border:2px solid transparent;margin:0;padding:0;padding-bottom:32px;.item-publication-figure{display:block;margin:42px 21px;}.expand-caption{text-decoration:underline;color:#7d96cf;cursor:pointer;}","{grid-template-columns:auto;}"],N.a.BACKGROUND.DEFAULT,x.i),xi=S.b.figure.withConfig({displayName:"PublicationFiguresTables__Figure",componentId:"sc-141ipr2-3"})(["width:246px;min-height:246px;height:auto;margin:0;display:flex;flex-direction:column;.figure-caption{margin:5px 0;font-size:",";}","{display:inline;}"],Object(k.d)(16),x.i),yi=S.b.div.withConfig({displayName:"PublicationFiguresTables__FigureBox",componentId:"sc-141ipr2-4"})(["height:0;overflow:hidden;padding-bottom:100%;width:100%;border:1px solid #b19fb5;position:relative;box-sizing:border-box;cursor:pointer;","{left:50%;position:absolute;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);max-height:100%;max-width:100%;}"],mi),_i=S.b.div.withConfig({displayName:"PublicationFiguresTables__ShowAllFigureBox",componentId:"sc-141ipr2-5"})(["box-sizing:border-box;border:1px solid #b19fb5;height:246px;width:246px;background-color:transparent;display:flex;flex-direction:column;font-size:",";.remaining-figures-text{margin:"," auto ",";color:#3f79b7;}.show-all-button{border-radius:2px;color:",";background-color:#3f79b7;padding:6px 19px 6px;margin:",";text-align:center;cursor:pointer;}","{height:347px;width:297px;margin:21px auto 21px;.show-all-button{margin-top:",";}}"],Object(k.d)(18),Object(k.d)(64),Object(k.d)(32),N.a.TEXT.ON_DARK_BACKGROUND,Object(k.d)(16),x.i,Object(k.d)(80)),vi={overflowY:"auto",background:"rgba(0,0,0,0.65)",border:"none"},wi=S.b.div.withConfig({displayName:"PublicationFiguresTables__PopupContainer",componentId:"sc-141ipr2-6"})(["margin:"," auto 1em;display:flex;flex-direction:row;justify-content:center;left:50%;right:50%;position:absolute;","{margin:1em;margin-top:0;position:static;}"],Object(k.d)(80),x.i),Oi=S.b.button.withConfig({displayName:"PublicationFiguresTables__NextButton",componentId:"sc-141ipr2-7"})(["font-size:49px;background-color:transparent;color:",";border:none;outline:none;cursor:pointer;&.show{visibility:visible;}&.hide{visibility:hidden;}span:hover{color:#2a8cd5;}","{-ms-transform:rotate(270deg);transform:rotate(270deg);}","{font-size:38px;padding:0;position:absolute;right:-17px;top:50%;}"],N.a.TEXT.ON_DARK_BACKGROUND,W.b,x.i),ji=S.b.button.withConfig({displayName:"PublicationFiguresTables__PreviousButton",componentId:"sc-141ipr2-8"})(["font-size:49px;background-color:transparent;color:",";outline:none;border:none;cursor:pointer;visibility:visible;&.show{visibility:visible;}&.hide{visibility:hidden;}:hover{color:#2a8cd5;}","{-ms-transform:rotate(90deg);transform:rotate(90deg);}","{font-size:38px;padding:0;left:-17px;height:max-content;top:50%;position:absolute;}"],N.a.TEXT.ON_DARK_BACKGROUND,W.b,x.i),Ni=S.b.div.withConfig({displayName:"PublicationFiguresTables__PopupContent",componentId:"sc-141ipr2-9"})(["display:flex;flex-direction:column;align-items:stretch;color:",";font-size:",";line-height:",";font-family:",";max-width:1040px;max-height:650px;","{max-width:82vw;max-height:100vh;}"],N.a.TEXT.PARAGRAPH,Object(k.d)(16),Object(k.d)(32),k.b.SANS_SERIF_2,x.i),ki=S.b.div.withConfig({displayName:"PublicationFiguresTables__Header",componentId:"sc-141ipr2-10"})(["border-radius:2px;padding:20px;background-color:#474747;color:",";font-family:",";font-size:",";letter-spacing:0.2px;line-height:",";.expand-caption{text-decoration:underline;color:#7d96cf;cursor:pointer;}","{font-size:12px;padding:10px;line-height:20px;height:unset;}"],N.a.TEXT.ON_DARK_BACKGROUND,k.b.SANS_SERIF_2,Object(k.d)(16),Object(k.d)(19),x.i),Ci=S.b.div.withConfig({displayName:"PublicationFiguresTables__BodyContainer",componentId:"sc-141ipr2-11"})(["background-color:",";display:flex;max-width:1040px;max-height:650px;width:100%;height:0;padding-bottom:50%;overflow:hidden;position:relative;","{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);max-height:100%;max-width:100%;}","{min-height:40%;max-height:45%;max-width:100vw;padding:16px;width:auto;height:0;padding-bottom:100%;}"],N.a.BACKGROUND.DEFAULT,mi,x.i),Ii=S.b.div.withConfig({displayName:"PublicationFiguresTables__Footer",componentId:"sc-141ipr2-12"})(["height:auto;border-radius:2px;background-color:#474747;display:flex;flex-direction:column;padding:",";","{padding:",";}"],Object(k.d)(20),x.i,Object(k.d)(10)),Si=S.b.span.withConfig({displayName:"PublicationFiguresTables__FooterRow",componentId:"sc-141ipr2-13"})(["color:",";font-family:",";font-size:",";letter-spacing:0.2px;line-height:",";display:block;margin:3px 0 3px;.publication-info{font-size:",";letter-spacing:",";line-height:",";}","{font-size:12px;.publication-info:{font-size:10px;line-height:",";}}.expand-authors{text-decoration:underline;color:#7d96cf;cursor:pointer;}"],N.a.TEXT.ON_DARK_BACKGROUND,k.b.SANS_SERIF_2,Object(k.d)(16),Object(k.d)(19),Object(k.d)(12),Object(k.d)(.15),Object(k.d)(14),x.i,Object(k.d)(12)),Ai=S.b.button.withConfig({displayName:"PublicationFiguresTables__CloseButton",componentId:"sc-141ipr2-14"})(["height:57px;width:57px;font-size:22px;background-color:#141414;color:",";border:none;padding:12px;position:relative;display:inline-block;cursor:pointer;margin-left:1039px;margin-bottom:-46px;","{position:absolute;width:33px;right:-17px;height:auto;padding:8px;margin-left:100%;margin-bottom:-20.5%;}"],N.a.TEXT.ON_DARK_BACKGROUND,x.i),Pi=function(t){Object(u.a)(i,t);var e=hi(i);function i(t){var n;return Object(s.a)(this,i),(n=e.call(this,t)).state={},n.closePopup=n.closePopup.bind(Object(Y.a)(n)),n.nextImage=n.nextImage.bind(Object(Y.a)(n)),n.previousImage=n.previousImage.bind(Object(Y.a)(n)),n.keyBoardListener=n.keyBoardListener.bind(Object(Y.a)(n)),n.getAuthors=n.getAuthors.bind(Object(Y.a)(n)),n.getModalContentStyle=n.getModalContentStyle.bind(Object(Y.a)(n)),n.getNextButton=n.getNextButton.bind(Object(Y.a)(n)),n.getPrevButton=n.getPrevButton.bind(Object(Y.a)(n)),n}return Object(p.a)(i,[{key:"componentDidMount",value:function(){var t,e=this,i=this.props,n=i.attachments,a=i.total_attachment_count,o=i.figureSlug,r=i.tableSlug,c=navigator.userAgent,l=!1,s=!1;/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(c)&&(l=!0,s=!0);var p=a>8;s&&(p=a>2);var u=null;o&&o.length>0&&(u=this.findAttachmentBySlug(o)),r&&r.length>0&&(u=this.findAttachmentBySlug(r)),null===(t=window)||void 0===t||t.addEventListener("keydown",(function(t){return e.keyBoardListener(t)})),this.setState({attachments:n,has_more_attachments:p,total_attachment_count:a,userAgent:c,isMobile:l,limitFiguresForMobile:s,showAllAuthors:!1,open:null!=u,expandedAttachmentIndex:u,expanded_attachment:null!=u?n[u]:null})}},{key:"findAttachmentBySlug",value:function(t){var e=this.props.attachments,i=t.split(".png"),n=Object(si.a)(i,2),a=n[0];n[1];return e.findIndex((function(t){return t.attachment_slug==a}))}},{key:"componentWillUnmount",value:function(){var t,e=this;null===(t=window)||void 0===t||t.removeEventListener("keydown",(function(t){return e.keyBoardListener(t)}))}},{key:"keyBoardListener",value:function(t){var e=this.state.open;e&&1==e&&(t&&37==t.keyCode&&this.previousImage(),t&&39==t.keyCode&&this.nextImage())}},{key:"expandFigure",value:function(t){var e=this.state.attachments[t];this.setState({open:!0,expanded_attachment:e,expandedAttachmentIndex:t})}},{key:"getLinkProps",value:function(t){var e=this.props.attachments[t],i=e.attachment_type.toLowerCase(),n=e.attachment_slug+".png",a="/publication/".concat(this.props.publicationId,"/").concat(i,"/").concat(n),o={publicationId:this.props.publicationId};return"table"==i&&(o.tableSlug=n),"figure"==i&&(o.figureSlug=n),{href:{pathname:"/publication/[publicationId]",query:o},as:a,scroll:!1,shallow:!0}}},{key:"getFigureEls",value:function(){var t=this,e=this.state,i=e.attachments,n=e.limitFiguresForMobile,a=e.has_more_attachments,o=i.map((function(e,i){return bi("li",{className:"item-publication-figure",key:i},bi(te.a,t.getLinkProps(i),bi(xi,null,bi(yi,{onClick:function(){return t.expandFigure(i)}},bi(mi,{loading:"auto",src:e.image_url,alt:"Figure-".concat(i)})),bi(di,{caption:e.caption}))))}));return a&&(o=!0===n?o.slice(0,2):o.slice(0,8)),o}},{key:"showAllFigures",value:function(){var t=Object(c.a)(a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.state.has_more_attachments&&this.setState({has_more_attachments:!1,limitFiguresForMobile:!1});case 2:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"getShowAllFiguresEl",value:function(){var t=this,e=null,i=this.state,n=i.has_more_attachments,a=i.total_attachment_count,o=i.limitFiguresForMobile,r=a-8;return o&&(r=a-2),(n||o)&&(e=bi("li",{className:"item-publication-figure"},bi(xi,null,bi(_i,{"data-testid":"show-all-figure-box"},bi("span",{className:"remaining-figures-text"},"".concat(r," figures hidden")),bi("div",{className:"show-all-button",onClick:function(){return t.showAllFigures()}},"Show all figures"))))),e}},{key:"closePopup",value:function(){this.setState({open:!1,expandedAttachmentIndex:null,expanded_attachment:null}),ei.a.push("/publication/[publicationId]",{pathname:"/publication/".concat(this.props.publicationId)},{shallow:!0})}},{key:"nextImage",value:function(){var t=this.state,e=t.expandedAttachmentIndex,i=t.attachments;if(null!=e&&e0){var n=e-1,a=i[n];this.setState({expanded_attachment:a,expandedAttachmentIndex:n})}}},{key:"expandAuthors",value:function(){this.setState({showAllAuthors:!0})}},{key:"getAuthors",value:function(){var t=this,e=null,i=this.state.showAllAuthors,n="",a=this.props.authors;if(a){var o=a;i||(o=a.slice(0,10)),o.forEach((function(t,e){var i=Object(be.a)(t);n+=0==e?"".concat(i):", ".concat(i)}));var r=a.length-o.length;e=!i&&r?bi(Si,null,bi("span",{className:"publication-info"},n),bi("span",{className:"expand-authors",onClick:function(){return t.expandAuthors()}}," ","+",r," more")):bi(Si,null,bi("span",{className:"publication-info"},n))}return e}},{key:"getModalContentStyle",value:function(){var t=this.state.isMobile,e={height:"max-content",width:"100%",padding:"0",display:"flex",flexDirection:"row",justifyContent:"space-evenly",border:"none",margin:"0",marginTop:"3em",background:"unset",boxShadow:"0 0 2px 0 rgba(0, 0, 0, 0.14), 0 2px 2px 0 rgba(0, 0, 0, 0.12), 0 1px 3px 0 rgba(0, 0, 0, 0.2)"};return t&&1==t&&(e={height:"max-content",width:"100%",padding:"0",display:"flex",flexDirection:"row",justifyContent:"space-evenly",border:"none",margin:"3em 2em 0",background:"unset",boxShadow:"0 0 2px 0 rgba(0, 0, 0, 0.14), 0 2px 2px 0 rgba(0, 0, 0, 0.12), 0 1px 3px 0 rgba(0, 0, 0, 0.2)"}),e}},{key:"getPrevButton",value:function(){var t=this.state.expandedAttachmentIndex,e=null;return null!=t&&t>0&&(e=bi(te.a,this.getLinkProps(t-1),bi(ji,{className:"".concat(0==t?"hide":"show"),"data-testid":"figure-expanded-modal-btn-previous"},bi(W.a,{onClick:this.previousImage,icon:"down-alt-arrow-tip"})))),e}},{key:"getNextButton",value:function(){var t=this.state,e=t.expandedAttachmentIndex,i=t.total_attachment_count,n=null;return null!=e&&e0;w&&x.push({ref:f.figuresTables,name:"Figures & Tables (".concat(b,")"),id:"figures-tables"});var j=!!p&&p.data.length>0;j&&x.push({ref:f.citations,name:"Citations (".concat(p.hits,")"),id:"citations-section"});var N=!!s&&s.data.length>0;N&&x.push({ref:f.references,name:"References (".concat(s.hits,")"),id:"references-section"});var k=!!u&&u.length>0;k&&x.push({ref:f.relatedPapers,name:"Related Papers (".concat(u.length,")"),id:"related-papers"}),x.push({ref:f.aboutJournal,name:"Journal Details",id:"about-journal"});var C=o,S=!!C&&C.length>0;S&&x.push({ref:f.authors,name:"Authors (".concat(C.length,")"),id:"authors-section"});var A=null;i.length>0&&(x.push({ref:f.concepts,name:"Concepts (".concat(i.length,")"),id:"concepts"}),A=Ri(zi,{"data-testid":"leafpage-concepts",id:"concepts",ref:f.concepts},Ri(Ui,null,e("common:concept_plural")," (",i.length,")"),Ri(v.a,{items:i,showImage:!0})));var P=null;_&&(P=Ri(zi,{id:"pdf-viewer",ref:f.pdfViewer},Ri(Ke,{is_stage_env:c.is_stage_env,file_url:h})));var R=null;w&&(R=Ri(zi,{id:"figures-tables",ref:f.figuresTables},Ri(Pi,{attachments:d,total_attachment_count:b,publicationId:this.props._id,figureSlug:this.props.figureSlug,tableSlug:this.props.tableSlug,title:this.props.title,publisher:this.props.publisher,publication_date:this.props.publication_date,authors:a})));var T=null;N&&(T=Ri(zi,{id:"references-section",ref:f.references},Ri(ri,{t:this.props.t,showHoverCard:this.props.institute_metadata.allow_velocity_graph,sectionTitle:this.props.t("common:reference_plural"),publicationId:this.props._id,data:n.references})));var E=null;j&&(E=Ri(zi,{id:"citations-section",ref:f.citations},Ri(ci,{t:this.props.t,showHoverCard:this.props.institute_metadata.allow_velocity_graph,sectionTitle:this.props.t("common:citation_plural"),publicationId:this.props._id,data:n.citations})));var D=Ri(Qe,Object(l.a)({},this.props,{isBrowser:true,isMobile:m,stickyTabs:x})),B=null;k&&(B=Ri(zi,{"data-testid":"leafpage-related-papers",id:"related-papers",ref:f.relatedPapers},Ri(Ui,null,e("related-papers")," (",u.length,")"),Ri(O.a,{showHoverCard:c.allow_velocity_graph,items:n.related_manuscripts})));var F=null;S&&(F=Ri(zi,{id:"authors-section",ref:f.authors},Ri(Ui,null,e("common:author_plural")," (",C.length,")"),Ri(ve,{items:C,institute_name:this.props.institute_metadata.name})));var z={entity_name:"manuscript",entity_id:this.props._id},U=this.props,L=U.preview_show_public_version_link,M=U.host,H=U._id,q=L?Object(I.c)(M,H):null;return Ri(y.b,Object(l.a)({},this.props,{showPreviewHeader:this.props.is_cms_preview,previewMessage:this.props.preview_message,previewPublicLink:q}),this.getBreadcrumbJsonLD(),Ri(De,Object(l.a)({},this.props,{pageDescription:this.getPageDescription()})),this.getStructuredMarkup(),Ri(Bi,null,Ri(Fi,{className:"section--col"},Ri(Zt,this.props)),D,P,R,E,T,B,Ri(zi,{id:"about-journal",ref:f.aboutJournal},Ri(K,this.props)),F,A,Ri(zi,null,Ri(Be.b,{className:"page-content container-subscribe",title:e("subscribe-title"),CTAText:e("subscribe-submit"),successText:e("subscribe-success"),entity:z}))))}},{key:"getPageDescription",value:function(){var t=this.props,e=t.abstract,i=t.concepts,n=t.doi,a=t.publication_type,o="";return e&&e.trim().length>0?o="".concat(o," ").concat(e.trim().slice(0,300)):(o=n?"".concat(o," DOI: ").concat(n,", "):o,o=(null===i||void 0===i?void 0:i.length)>0?"".concat(o,"Keywords: ").concat(i.slice(0,5).map((function(t){return t.name})).join(";"),", "):o,o=a?"".concat(o,"Publication Type: ").concat(a,"."):o),o}},{key:"getBreadcrumbJsonLD",value:function(){var t=this.props,e=t._id,i=t.institute_metadata,n=t.host,a=t.title,o=Object(I.n)(a),r=[{name:"".concat(i.name," Publications"),value:Object(I.d)(n)},{name:o,value:Object(I.c)(n,e)}];return Ri(_.a,{items:r})}},{key:"getStructuredMarkup",value:function(){return Ri(Ie,Object(l.a)({},this.props,{description:this.getPageDescription()}))}}],[{key:"getInitialProps",value:function(){var t=Object(c.a)(a.a.mark((function t(e){var i,n,r,c,l,s,p,u,d,b,h,f,g,x,y,_,v,O;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,i=e.query,n=i.publicationId,r=i["reference-page"],c=i["reference-sort"],l=i["citation-page"],s=i["citation-sort"],p=i.preview,u=i.tableSlug,d=i.figureSlug,b=i.velocityType,h=i.year,f={referencePage:r,referenceSort:c,citationPage:l,citationSort:s,previewToken:p},g={tableSlug:"",figureSlug:"",velocityType:b,velocityYear:h,previewToken:p},u&&u.length>0&&(g.tableSlug=u),d&&d.length>0&&(g.figureSlug=d),x=Object(I.p)(e.req,!0),y="/api/publication/".concat(n),t.next=10,m.a.post(y,f,x);case 10:return _=t.sent,v=Ei(Ei(Ei({key:n},_.data),g),{},{host:Object(I.k)(e.req),namespacesRequired:[].concat(Object(o.a)(w.a.getCommonNamespaces()),["publication"])}),A.a.log("Successfully fetched data for page base"),t.abrupt("return",v);case 16:throw t.prev=16,t.t0=t.catch(0),A.a.log("ERR:".concat(t.t0)),(O=new Error).message="Bad data or not found for publication page",O.name="".concat(t.t0.response.status),O;case 23:case"end":return t.stop()}}),t,null,[[0,16]])})));return function(e){return t.apply(this,arguments)}}()}]),i}(g.a.Component);e.default=Object(li.b)("publication")(Object(ti.withRouter)(Li))}}]);