(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[14],{"9ivc":function(t,e,n){"use strict";n.r(e),n.d(e,"PublicationLeafComponent",(function(){return Gn}));var i=n("o0o1"),a=n.n(i),o=n("KQm4"),r=n("rePB"),c=n("HaE+"),l=n("wx14"),s=n("1OyB"),p=n("vuIU"),u=n("Ji7U"),d=n("md7G"),b=n("foSv"),h=n("vDqi"),f=n.n(h),m=n("q1tI"),g=n.n(m),x=n("HOgx"),y=n("hVy4"),_=n("qi/6"),v=n("4qbm"),w=n("PXD2"),O=n("vx0M"),j=n("9kay"),N=n("cfIY"),k=n("Shqb"),C=n("hlQV"),S=n("fkzy"),I=n("vOnD"),A=n("pIRP"),P=g.a.createElement,R=I.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=I.b.img.withConfig({displayName:"AboutJournal__JournalInfoImage",componentId:"rj29ow-1"})(["box-sizing:border-box;height:72px;width:72px;border-radius:14px;margin-right:16px;"]),E=I.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(I.b)(E).withConfig({displayName:"AboutJournal__PublishedInSpan",componentId:"rj29ow-3"})(["font-size:",";line-height:",";margin-bottom:24px;"],Object(k.d)(21),Object(k.d)(27)),F=I.b.div.withConfig({displayName:"AboutJournal__ContainerDiv",componentId:"rj29ow-4"})(["display:flex;flex-direction:column;text-align:left;"]),B=I.b.div.withConfig({displayName:"AboutJournal__JournalInfoContainer",componentId:"rj29ow-5"})(["display:flex;flex-direction:row;","{flex-direction:column;}"],x.i),z=I.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=I.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=I.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=I.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)),K=function(t){var e=t.displayValue,n=t.displayName,i=t.url;if(!e)return A.a.log("returning null ".concat(e)),null;if(i){var a="".concat(i,"?key=").concat("jkfmxrxsokzblnpxafgznuhmqsrrerzyjldt9aj44jlsazguy3hjhj73qjbe1czr");return P(M,null,P(U,null,n),P(L,{"data-testid":n,className:"tooltip"},P("span",{className:"tooltipText"},"Data powered by Typeset"),P(C.b,{href:a},e)))}return P(M,null,P(U,null,n),P(L,{"data-testid":n},e))},H=function(t){var e=Object(j.useTranslation)("publication").t;return t.institute_metadata.format_backlink_enabled?P(F,null,P(w.c,null,e("about-journal")),P(z,{"data-testid":"journal-meta-table"},P("tbody",null,P(K,{displayValue:t.source||null,displayName:"Journal",url:t.format_url}),P(K,{displayValue:t.publisher||null,displayName:"Publisher",url:t.publisher_url}),P(K,{displayValue:t.issn||null,displayName:"ISSN"}),P(K,{displayValue:t.impact_factor||null,displayName:"Impact Factor"}),P(K,{displayValue:t.open_access?Object(S.u)(t.open_access):null,displayName:"Open Access"}),P(K,{displayValue:t.citation_style||null,displayName:"Citation Style"}),P(K,{displayValue:t.sherpa_romeo_color||null,displayName:"Sherpa RoMEO Archiving Policy"})))):P(F,null,P(w.c,null,e("about-journal")),P(D,null,e("published-in",{journal_name:t.publisher})),P(B,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=I.b.button.withConfig({displayName:"buttons__ButtonBase",componentId:"sc-10zr117-0"})(["background-color:none;border:none;cursor:pointer;"]),G=Object(I.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(I.b)(G).withConfig({displayName:"buttons__BlueButton",componentId:"sc-10zr117-2"})(["background-color:#3f79b7;border-bottom:3px solid #30763f;border-bottom:3px solid #19547f;"]),J=n("zPhz"),X=n("uY1x"),Y=n("JX7q"),W=n("Sigi"),Q=n("WJHN"),Z=n("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 n,i=Object(b.a)(t);if(e){var a=Object(b.a)(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return Object(d.a)(this,n)}}var et,nt=I.b.div.withConfig({displayName:"ManuscriptCitations__Container",componentId:"sc-1m6xi5g-0"})(["flex:1;display:flex;flex-direction:column;width:100%;"]),it=I.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=I.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=I.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=I.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=I.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)(n,t);var e=tt(n);function n(t){var i;return Object(s.a)(this,n),(i=e.call(this,t)).handleUpdateTab=i.handleUpdateTab.bind(Object(Y.a)(i)),i.getCitationForManuscript=i.getCitationForManuscript.bind(Object(Y.a)(i)),i.copyCitation=i.copyCitation.bind(Object(Y.a)(i)),i.updateButtonText=i.updateButtonText.bind(Object(Y.a)(i)),i.state={tab:"apa"},i}return Object(p.a)(n,[{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 n,i,o,c,l,s,p;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.props,i=n.manuscript_id,o=n.previewToken,c=Object(S.p)(),l="/api/publication/".concat(i,"/citations"),s={citation_type:e,previewToken:o},t.next=6,f.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 n=document.createRange();n.selectNode(t),e.addRange(n);try{document.execCommand("copy"),this.updateButtonText()}catch(i){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,n=[{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 $(nt,{"data-testid":"modal-citations"},$(ct,{onClick:this.props.close,"data-testid":"citations-btn-close"},$(W.a,{icon:"close"})),$(it,null,$(Q.b,{className:"citations-widget__header-tab",items:n})),this.renderTabCitation())}}]),n}(g.a.Component),st=g.a.createElement,pt=I.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=I.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,n=t.label;return e?st(pt,null,n):null},bt=function(t){var e=t.data,n=t.label,i=t.link;return e&&i?st(ut,{"data-testid":"publication-info-item"},n,st(C.a,{href:i},e)):null},ht=n("/blm"),ft=g.a.createElement,mt=I.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=I.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=I.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(I.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=I.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=I.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,n=t.publicationId,i=Object(m.useRef)(null),o=Object(m.useState)(""),r=o[0],l=o[1],s=Object(m.useState)(ht.a.EMPTY),p=s[0],u=s[1],d=Object(m.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(!i.current){t.next=9;break}return h(et.IN_PROGRESS),e=i.current.value,o={email:r,message:e},c=Object(S.p)(),l="/api/publication/".concat(n,"/request-full-text"),t.next=8,f.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=ft(gt,null,ft("span",null,"Request full-text")),_=ft(ht.b,{handleInputChange:function(t,e){l(t),u(e)},className:"input--email",placeholder:"E-mail address"}),v=ft(xt,{placeholder:"Add a message",ref:i,"data-testid":"request-full-modal-input-message"}),w=p!==ht.a.VALID,O=ft(yt,{"data-testid":"request-full-modal-btn-submit",onClick:g,disabled:w},"Request full text");return b===et.SUBMITTED&&(y=ft(gt,null,ft("span",null,"Request full-text"),ft(W.a,{icon:"tick-arrow"})),_=v=null,x=ft(vt,null,"You have successfully requested for a full-text version of the article!"),O=ft(yt,{"data-testid":"request-full-modal-btn-okay",onClick:e},"OKAY")),ft(mt,null,ft(_t,{onClick:e,"data-testid":"request-full-modal-btn-close"},ft(W.a,{icon:"close"})),y,_,v,x,O)},Ot=n("j3+i"),jt=n("ffCW"),Nt=g.a.createElement,kt=I.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=I.b.div.withConfig({displayName:"DisplayAbstract__SpaceBottom",componentId:"j1e44y-1"})(["margin-bottom:22px;"]),St=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},It=g.a.createElement,At=I.b.div.withConfig({displayName:"PublicationScispaceBackLink__TopicsList",componentId:"sc-21cz7q-0"})(["*{color:#505050;font-family:",";font-size:14px;}"],k.b.SANS_SERIF_2),Pt=I.b.span.withConfig({displayName:"PublicationScispaceBackLink__TopicLabel",componentId:"sc-21cz7q-1"})(["font-weight:600;font-size:14px;line-height:22px;"]),Rt=I.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=I.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=I.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,n=t.title,i=t.topics;return It(g.a.Fragment,null,!!(null===i||void 0===i?void 0:i.total)&&It(At,null,It(Pt,null,"Topics: "),i.data.map((function(t,e){var n=Number(100*t.score).toFixed(0);return It(Tt,{key:t.full_slug},It("a",{href:"https://typeset.io/topics/".concat(t.full_slug),target:"_blank",rel:"noopener noreferrer"},t.display_name),It(Rt,null,It("span",null," (",n,")%"),It("span",{className:"tooltip-text"},n,"% related to the paper")),e0&&(b=d);var h=Ft(V,{"data-testid":"cite-button",className:"btn-action"},n("cite")),f=Ft(J.a,{trigger:h,modal:!0,contentStyle:Wt},(function(e){return Ft(lt,{manuscript_id:t._id,previewToken:a,close:e})})),m=t.doi,g=t.pmid,x=t.authors,y=t.issue,_=void 0===y?"issue 233":y,v=t.volume,w=void 0===v?"vol 123":v,O=t.first_page,N=t.last_page,k="https://dx.doi.org/".concat(m),C="https://www.ncbi.nlm.nih.gov/pubmed/".concat(g),S=w||_?Ft("div",{className:"section--row"},Ft(dt,{data:w,label:"Volume: ".concat(w)}),Ft("span",null,"\xa0\xa0\xa0"),Ft(dt,{data:_,label:" Issue: ".concat(_)})):null,I=O&&N?Ft("div",{className:"section--row"},Ft(dt,{data:O,label:"Pages: ".concat(O," - ").concat(N)})):null,A=/Mobi/i.test(window.navigator.userAgent),P=null,R=null;if(t.institute_metadata.allow_velocity_graph){A?R=null:P=null}return Ft(Lt,null,Ft(Mt,null,Ft(Kt,null,Ft(Ut,null,Ft(qt,null,Ft(Ht,null,t.publication_type),function(){var e=t.open_access,n=null;return e&&"yes"==e&&(n=Ft(Gt,null,Ft("img",{className:"open-access-svg",src:"https://d5a9y5rnan99s.cloudfront.net/tds-static/images/open-access-transparent.svg"}),Ft("span",null,"Open Access"))),n}()),Ft(Vt,{dangerouslySetInnerHTML:{__html:t.title}}),Ft("span",{className:"author-name"},Ft(X.a,{showAuthorHoverCard:t.institute_metadata.allow_velocity_graph,authors:x,total_author_count:o,publicationId:t._id})),Ft("div",{className:"row-published"},Ft("span",{className:"row-published__name"},n("published-in",{journal_name:t.publisher}))),Ft("div",{className:"row-published"},Ft("span",{className:"row-published__date"},c)),Ft(bt,{data:m,label:"DOI: ",link:k}),Ft(bt,{data:g,label:"PMID: ",link:C}),S,I),Ft(Xt,null,Ft("div",{className:"desktop-velocity"},P))),Ft(St,{abstract:t.abstract,label:n("abstract")}),!!(null===(e=t.scispace_data)||void 0===e?void 0:e.full_slug)&&Ft(Dt,t.scispace_data),Ft(Jt,null,b,f),Ft("div",{className:"section--row mobile-velocity"},R)))},$t=n("YFqc"),te=n.n($t),ee=g.a.createElement,ne="151px",ie="100px",ae=I.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:",";}"],ne,ne,ne,ne,ne,ne,(function(t){return!!t.is_default_image&&Object(I.a)(["",";padding:8px;"],x.b)}),x.i,ie,ie,ie,ie,ie,ie),oe=Object(I.b)(ae).withConfig({displayName:"AuthorImage__ImageForExternalAuthor",componentId:"sc-98ludo-1"})(["min-height:123px;height:123px;max-height:123px;min-width:97px;width:97px;max-width:97px;"]),re=function(t){var e=t.author,n=t.t,i=e.photo_url,a=e.first_name,o=e.researcher_id,r=e.photo_url_optimised,c=i||"https://d5a9y5rnan99s.cloudfront.net/tds-static/images/Profile-default.svg",l=r||null,s={alt:n("common:alt-text-researcher",{name:a}),src:c,is_default_image:!i};return o?ee("picture",null,!!l&&ee("source",{srcSet:l,type:"image/webp"}),ee("source",{srcSet:c}),ee(ae,s)):ee(oe,s)},ce=g.a.createElement,le=I.b.div.withConfig({displayName:"PublicationAuthorPublications__EmptyContainerDiv",componentId:"fxhimp-0"})(["display:flex;padding:0;margin:8px 0;opacity:0.72;"]),se=I.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),pe=function(){return ce(le,null,"No recent publications")},ue=I.b.ul.withConfig({displayName:"PublicationAuthorPublications__ContainerDiv",componentId:"fxhimp-2"})(["margin:0;padding:0;list-style:none;margin-top:24px;"]),de=I.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),be=function(t){var e=t.recent_publications,n=t.t,i=Object(m.useState)(!1),a=i[0],o=i[1],r=[],c=null;if(!e||e.length<=0)r=ce(pe,null);else if(r=(a?e:e.slice(0,4)).map((function(t,e){return ce("li",{key:e,className:"row"},ce(te.a,Object(S.v)(t._id),ce(se,{dangerouslySetInnerHTML:{__html:t.title}})))})),e.length>4){var l=a?"Show less":"Show more",s=a?"up-arrow-tip":"bottom-arrow-tip";c=ce(de,{onClick:function(){return o(!a)}},ce(W.a,{icon:s}),ce("span",{className:"show-more-text"},l))}return ce(ue,null,ce("span",{className:"row author__heading"},n("recent-publications")),r,c)},he=n("9AxZ"),fe=n("CVsc"),me=g.a.createElement,ge=I.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)),xe=function(t){var e=t.author,n=t.institute_name,i=Object(j.useTranslation)("publication").t,a=e,o=me(be,{recent_publications:a.recent_publications,researcher_id:a.researcher_id,t:i}),r=Object(fe.a)(e),c="row author__heading author__heading--name",l=e.researcher_id?me(te.a,Object(S.x)(e.researcher_id),me("a",{className:c},r)):me("span",{className:c},r),s=null;if(e.researcher_id&&e.unit){var p=e.unit;s=me(he.a,{unit:p,institute_name:n})}return me(ge,null,me("div",{className:"section--row"},me(re,{author:e,t:i}),me("div",{className:"section--col"},l,s,o)))},ye=g.a.createElement,_e=I.b.div.withConfig({displayName:"PublicationAuthorList__ContainerDiv",componentId:"sc-1hy1kot-0"})(["margin:24px 0;"]),ve=I.b.ul.withConfig({displayName:"PublicationAuthorList__ListDiv",componentId:"sc-1hy1kot-1"})(["list-style:none;margin:0;padding:0;display:flex;flex-direction:column;"]),we=I.b.li.withConfig({displayName:"PublicationAuthorList__ListItemDiv",componentId:"sc-1hy1kot-2"})(["margin:8px 0;"]),Oe=function(t){var e=t.items,n=t.institute_name,i=[].concat(Object(o.a)(e.filter((function(t){return!!t.researcher_id}))),Object(o.a)(e.filter((function(t){return!t.researcher_id}))));return ye(_e,null,ye(ve,null,i.map((function(t,e){return ye(we,{key:e},ye(xe,{author:t,institute_name:n}))}))))},je=n("Jhzn"),Ne=n("87fJ");function ke(t){var e=new Date(t).getFullYear().toString();return"".concat(e)}var Ce=g.a.createElement;function Se(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Ie(t){for(var e=1;e0?(C=[],_.forEach((function(t){var e=Object(S.a)(o,i,t.attachment_type.toLowerCase(),t.attachment_slug);C.push({caption:Object(S.q)(t.caption,100),url:e,"@type":"ImageObject"})}))):C=Object(Ne.c)(t),a&&(N.datePublished=function(t){var e=new Date(t),n=e.getFullYear().toString(),i=e.getMonth().toString(),a=e.getDate().toString();return"".concat(n,"/").concat(i,"/").concat(a)}(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=m?{"@id":"".concat(m,"#journal"),"@type":["PublicationVolume","Periodical"],issn:h,name:I,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:I,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,n=t.belongs_to_host,i=t.host_base_url;"undefined"!==typeof n&&1==n&&(e=Object(S.c)(o,t._id)),"undefined"!==typeof n&&!0!==n&&i&&(e=Object(S.c)(i,t._id));var a=t.authors,r={"@id":"".concat(e,"#publication"),"@type":"ScholarlyArticle",name:t.title,headline:Object(S.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":[Ie(Ie({"@id":j,"@type":"PublicationIssue"},N),{},{issueNumber:null!==r&&void 0!==r?r:null}),Ie(Ie({"@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:I,url:A,logo:{"@type":"ImageObject",url:null!==(n=C)&&void 0!==n?n:null}}]};return Ce(je.a,{jsonKey:"jsonld-publication",jsonValue:R})},Pe=n("ffb8"),Re=n("g4pe"),Te=n.n(Re),Ee=g.a.createElement;function De(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Fe(t){for(var e=1;e0?C+=", ".concat(b):C+="".concat(b)),C.length>0&&w.push({name:"citation_issn",content:C});var A=I(u,p);if(w.push(A),a){var P=a.file_type,R=a.file_url,T=a.slug;if("pdf"==P.keyword&&R){var E="".concat(Object(S.b)(o),"/publication/").concat(e,"/pdf/").concat(T,".pdf");w.push({name:"citation_pdf_url",content:E})}}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){O.push({name:"citation_author",content:Object(fe.a)(t)}),t.researcher_id&&O.push({name:"citation_author_institution",content:n.name});var e=t;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 n={name:"citation_reference",content:""},i="citation_id=CR".concat(e,";");if(Be.forEach((function(e){var n=e.keyName,a=e.metaName;if(t.hasOwnProperty(n)){var o=t[n];o&&("title"==n&&(o=Object(S.n)(o)),i+="".concat(a,"=").concat(o,";"))}})),t.authors&&t.authors.length>0){var a="";t.authors.forEach((function(t,e){var n=Object(fe.a)(t);a+=e>0?",".concat(n):"".concat(n)})),i+="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&&(i+="".concat(c,";")),t.publication_date){var l=ke(t.publication_date);i+="citation_publication_date=".concat(l,";")}var s=I(t.source,t.publication_type);i+="".concat(s.name,"=").concat(s.content,";"),n.content=i,j.push(n)})),s&&w.push({name:"citation_publication_date",content:ke(s)}),Be.forEach((function(e){var n=e.keyName,i=e.metaName;if(t.hasOwnProperty(n)){var a=t[n];"title"==n&&(a=x),a&&w.push({name:i,content:a})}}));var D=Object(Ne.c)(t),F=[];D&&F.push({url:D,alt:"This publication belongs to ".concat(t.publisher)});var B={title:y,description:v},z=n.allow_indexing;return Ee(g.a.Fragment,null,Ee(Pe.NextSeo,Object(l.a)({},B,{noindex:!z,nofollow:!z,canonical:_,openGraph:Fe(Fe({},B),{},{url:_,type:"Paper",images:F}),twitter:{cardType:"summary",site:_},additionalMetaTags:w})),Ee(Te.a,null,O.sort((function(t,e){return(t.name||"").localeCompare(e.name||"")})).map((function(t,e){return Ee("meta",{key:"author".concat(e),name:t.name,content:t.content})})),j.map((function(t,e){return Ee("meta",{key:"reference".concat(e),name:t.name,content:t.content})}))))},Le=n("Qxq7"),Me=n("Vvt1"),Ke=n.n(Me),He=g.a.createElement;function qe(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 n,i=Object(b.a)(t);if(e){var a=Object(b.a)(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return Object(d.a)(this,n)}}var Ge=Ke()((function(){return Promise.all([n.e(19),n.e(21)]).then(n.bind(null,"r2qm"))}),{ssr:!1,loadableGenerated:{webpack:function(){return["r2qm"]},modules:["src/common/components/pdf-renderer"]}}),Ve=I.b.iframe.withConfig({displayName:"PDFViewer__CustomIframe",componentId:"sc-1tge0l2-0"})(["width:100%;height:1120px;display:block;flex-direction:column;font-family:",";margin-top:",";max-width:940px;border:0;padding:","px;","{height:400px;}"],k.b.SANS_SERIF_2,Object(k.d)(16),Object(k.d)(16),x.i),Je=function(t){Object(u.a)(n,t);var e=qe(n);function n(t){var i;return Object(s.a)(this,n),(i=e.call(this,t)).state={userAgent:""},i}return Object(p.a)(n,[{key:"componentDidMount",value:function(){var t=navigator.userAgent;this.setState({userAgent:t})}},{key:"render",value:function(){var t=!1,e=this.state.userAgent;/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e)&&(t=!0);var n="".concat(this.props.file_url);return t?He(Ge,{url:n}):He(Ve,{src:n})}}]),n}(g.a.Component),Xe=g.a.createElement,Ye=I.b.div.withConfig({displayName:"StickyHeader__StickyContainer",componentId:"fdifqv-0"})(["z-index:2;width:100vw;display:flex;flex-direction:column;","{display:none !important;}"],x.i),We=I.b.div.withConfig({displayName:"StickyHeader__PublicationStickySection",componentId:"fdifqv-1"})(["display:flex;flex-direction:column;border-top:1px solid #e5e5e5;border-bottom:1px solid #e5e5e5;padding:0 "," 0;width:calc(100%-32px);background-color:",";"],Object(k.d)(16),N.a.BACKGROUND.LIGHT_GREY),Qe=I.b.div.withConfig({displayName:"StickyHeader__PublicationStickyRow",componentId:"fdifqv-2"})(["display:block;width:100%;max-width:940px;margin:0 auto;background-color:transparent;"]),Ze=I.b.div.withConfig({displayName:"StickyHeader__FlexRow",componentId:"fdifqv-3"})(["display:flex;flex-direction:row;flex:1;align-items:stretch;line-height:30px;&.hidden{display:none !important;}&#file-details{padding-left:8px;}.hidden{display:none !important;}.file-info{display:flex;height:40px;width:100%;line-height:20px;margin:1rem 0 0;}.pub-info{display:flex;height:40px;color:#404040;font-family:",";font-size:",";letter-spacing:0;line-height:",";width:100%;","{font-size:",";line-height:",";}.title-tooltip{margin-top:",";border:1px solid #6f7bb9;border-radius:2px;background-color:",";visibility:hidden;font-size:",";letter-spacing:0;line-height:",";color:",";text-align:center;padding:11px 10px 10px;position:absolute;z-index:1;}.title-tooltip::after{content:'';position:absolute;bottom:100%;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:transparent transparent #6f7bb9 transparent;}&:hover .title-tooltip{visibility:visible;}}.copyright-version{box-sizing:border-box;padding:0 8px;border:1px solid #dce1e5;border-radius:4px;background-color:rgba(255,255,255,0.69);color:",";font-family:",";margin-right:4rem;font-size:16px;letter-spacing:0;text-align:center;line-height:35px;","{font-size:8px;width:100%;}}.license-info{height:14px;width:414px;color:#5b5b5b;font-family:",";font-size:12px;display:flex;flex-direction:column;a.licenseLink{color:#5b5b5b;text-decoration:underline;margin-left:5px;&:hover{color:#5b5b5b;}}","{font-size:8px;}.deposit-tooltip{position:relative;&:hover .deposit-tooltip-text{visibility:visible;}.deposit-tooltip-text{bottom:93%;left:50%;border:1px solid #6f7bb9;width:fit-content;border-radius:2px;background-color:",";visibility:hidden;font-size:",";letter-spacing:0;line-height:",";color:",";text-align:center;padding:11px 10px 10px;position:absolute;z-index:1;}.deposit-tooltip-text::after{content:'';position:absolute;top:100%;left:15%;margin-left:-5px;border-width:5px;border-style:solid;border-color:#979797 transparent transparent transparent;}}}"],k.b.SANS_SERIF_2,Object(k.d)(24),Object(k.d)(40),x.i,Object(k.d)(12),Object(k.d)(18),Object(k.d)(36),N.a.BACKGROUND.DEFAULT,Object(k.d)(16),Object(k.d)(19),N.a.TEXT.DEFAULT,N.a.BACKGROUND.PUREBLACK,k.b.SANS_SERIF_2,x.i,k.b.SANS_SERIF_2,x.i,N.a.BACKGROUND.DEFAULT,Object(k.d)(12),Object(k.d)(16),N.a.TEXT.DEFAULT),$e=I.b.div.withConfig({displayName:"StickyHeader__FlexRowTab",componentId:"fdifqv-4"})(["display:flex;flex-direction:row;flex:1;justify-content:left;align-items:stretch;line-height:30px;margin:unset;margin-top:",";overflow-x:auto;"],Object(k.d)(16)),tn=I.b.div.withConfig({displayName:"StickyHeader__StickTabHeader",componentId:"fdifqv-5"})(["display:flex;width:max-content;height:auto;min-height:50px;border-radius:2px;background-color:transparent;font-family:",";","{height:40px;}&.selected{border-bottom:2px solid #686868;a{border-radius:2px;}}a{color:",";margin:"," auto 0;font-size:18px;padding:10px 20px;letter-spacing:-0.68px;line-height:22px;text-align:center;","{font-size:",";line-height:",";}}"],k.b.SANS_SERIF_2,x.i,N.a.BACKGROUND.PUREBLACK,Object(k.d)(8),x.i,Object(k.d)(12),Object(k.d)(18)),en=function(t){var e=t.stickyTabs,n=t.primary_file,i=null===n||void 0===n?void 0:n.copyright_file_version,a=n?n.license:null,o=a?a.license_url:"",r=a?a.deposit_statement:null;function c(){var t=null;if(r){var e=Object(S.r)(r,120);r.length>e.length&&(e+=" ..."),t=Xe("span",{className:"deposit-tooltip"},e,Xe("span",{className:"deposit-tooltip-text"},r))}return t}function l(){var t=Xe("div",{className:"license-info"},Xe("span",null,"Content may be subject to copyright."),c());return o&&(t=Xe("div",{className:"license-info"},Xe("span",null,"Content may be subject to copyright,",Xe("a",{className:"licenseLink",href:o,target:"_blank",rel:"noopener noreferrer"},"Check License")),c())),t}function s(t,n){console.log(n),e.forEach((function(t,e){var n=document.getElementById("sticky-tab-"+e.toString());n&&n.classList.contains("selected")&&n.classList.remove("selected")}));var i=document.getElementById("sticky-tab-"+t);i&&(i.classList.contains("selected")||i.classList.add("selected"))}function p(){var e=t.stickyTabs;e.forEach((function(t,n){var i=document.getElementById(t.id);if(i){var a=function(t){var e=t.getBoundingClientRect(),n=document.getElementById("sticky-header"),i=null===n||void 0===n?void 0:n.offsetHeight,a=window.innerHeight,o={inViewPort:!1,beyondViewPort:!1,comingIntoViewPort:!1};return i&&e.top>=i&&e.top<=i+32?o.inViewPort=!0:(e.top<0&&(o.beyondViewPort=!0),i&&e.top>i+32&&e.bottom0?n-1:n,r=e[o];s(o.toString(),r.id)}}}))}function u(){var t=document.getElementById("sticky-header"),e=document.getElementById("file-details"),n=(null===t||void 0===t?void 0:t.offsetTop)||1,i="sticky";n&&window.pageYOffset>n?(null===t||void 0===t||t.classList.add(i),null===e||void 0===e||e.classList.add("hidden")):(null===t||void 0===t||t.classList.remove(i),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(m.useEffect)((function(){window.onscroll=function(){u(),p()}}),[]);var d=e.map((function(t,n){var i="sticky-tab-".concat(n),a="tab-anchor-".concat(n);return Xe(tn,{key:n,id:i},Xe("a",{"data-testid":a,onClick:function(t){!function(t,n){var i;t.preventDefault();var a=e[n];s(n.toString(),a.id);var o=null===(i=a.ref.current)||void 0===i?void 0:i.offsetTop,r=document.getElementById("sticky-header"),c=null===r||void 0===r?void 0:r.offsetHeight;o&&c&&window.scrollTo(0,o)}(t,n)}},t.name))}));return Xe(Ye,{id:"sticky-header"},Xe(We,null,Xe(Qe,null,n&&n.file_url?Xe(Ze,{id:"file-details"},Xe("div",{id:"file-info",className:"file-info"},Xe("span",{className:"copyright-version"},i," Version"),l())):Xe(Ze,{id:"file-details"},l()),Xe($e,null,d))))},nn=n("3oPt"),an=n("89ZD"),on=n("20a2"),rn=n.n(on),cn=g.a.createElement;function ln(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 n,i=Object(b.a)(t);if(e){var a=Object(b.a)(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return Object(d.a)(this,n)}}var sn=I.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),nn.a,Object(k.d)(8),x.i,Object(k.d)(4),Object(k.d)(8),O.b),pn=I.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)),un=function(t){Object(u.a)(n,t);var e=ln(n);function n(t){var i;return Object(s.a)(this,n),(i=e.call(this,t)).state=i.getInitialState(),i.handleSort=i.handleSort.bind(Object(Y.a)(i)),i.handlePageClick=i.handlePageClick.bind(Object(Y.a)(i)),i}return Object(p.a)(n,[{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,n){var i,o,r,c;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=Object(S.p)(),o="/api/publication/".concat(this.props.publicationId,"/references"),r={sort:e||"",page:n||"1"},i.params=r,t.next=6,f.a.get(o,i);case 6:return c=t.sent,t.abrupt("return",c.data);case 8:case"end":return t.stop()}}),t,this)})));return function(e,n){return t.apply(this,arguments)}}()},{key:"handleSort",value:function(){var t=Object(c.a)(a.a.mark((function t(e){var n;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getRelatedData(e);case 2:n=t.sent,this.setState(n),this.shallowUpdateUrlParams(n);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,n=t.page,i=this.props.publicationId,a={pathname:"/publication/".concat(i),query:{"reference-page":n.toString(),"reference-sort":e}};rn.a.push("/publication/[publicationId]",a,{shallow:!0})}},{key:"handlePageClick",value:function(){var t=Object(c.a)(a.a.mark((function t(e){var n;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:n=t.sent,this.setState(n),this.shallowUpdateUrlParams(n);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,n=5*(t.page-1)+1;return e>5?cn("div",{className:"container-pagination"},cn("span",{className:"container-pagination__text-showing"},this.props.t("common:pagination-showing-text",{start:n,end:n+4,count:e})),cn(an.b,Object(l.a)({pageClickHandler:this.handlePageClick},this.state))):null}},{key:"render",value:function(){var t=this.state,e=t.data,n=t.sort,i=t.active_sort,a=t.hits,o=null,r=this.getPaginationEl();return e&&e.length&&(o=cn(sn,null,cn(w.c,{"data-testid":"section-heading"},this.props.sectionTitle," (",a,")"),cn(pn,null,this.getSectionDescription()),cn("div",{className:"section__content"},cn(nn.b,{className:"container-sort",sort:n,handleItemClick:this.handleSort,active_sort:i}),cn(O.a,{showHoverCard:this.props.showHoverCard,items:e}),r))),o}}]),n}(g.a.Component),dn=function(t){Object(u.a)(n,t);var e=ln(n);function n(){return Object(s.a)(this,n),e.apply(this,arguments)}return Object(p.a)(n,[{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,n){var i,o,r,c;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=Object(S.p)(),o="/api/publication/".concat(this.props.publicationId,"/manuscript-citations"),r={sort:e||"",page:n||"1"},i.params=r,t.next=6,f.a.get(o,i);case 6:return c=t.sent,t.abrupt("return",c.data);case 8:case"end":return t.stop()}}),t,this)})));return function(e,n){return t.apply(this,arguments)}}()},{key:"shallowUpdateUrlParams",value:function(t){var e=t.active_sort,n=t.page,i=this.props.publicationId,a={pathname:"/publication/".concat(i),query:{"citation-page":n.toString(),"citation-sort":e}};rn.a.push("/publication/[publicationId]",a,{shallow:!0})}}]),n}(un),bn=n("KjaH"),hn=n("ODXe"),fn=n("5PLP"),mn=g.a.createElement,gn=function(t){var e=t.caption,n=t.trimLength,i=void 0===n?65:n,a=Object(m.useState)(!1),o=a[0],r=a[1];return!!e&&e.length>i?mn("figcaption",{className:"figure-caption"},o?e:Object(S.q)(e,i)+" ...","\xa0",mn("span",{className:"expand-caption",onClick:function(){r((function(t){return!t}))}},o?"Collapse":"Expand")):mn("figcaption",{className:"figure-caption"},e)},xn=g.a.createElement;function yn(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 n,i=Object(b.a)(t);if(e){var a=Object(b.a)(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return Object(d.a)(this,n)}}var _n=Object(I.b)(fn.a).withConfig({displayName:"PublicationFiguresTables__FigureImage",componentId:"sc-141ipr2-0"})([""]),vn=I.b.div.withConfig({displayName:"PublicationFiguresTables__ContainerDiv",componentId:"sc-141ipr2-1"})(["",";display:flex;flex-direction:column;"],x.j),wn=I.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),On=I.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),jn=I.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%;}"],_n),Nn=I.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)),kn={overflowY:"auto",background:"rgba(0,0,0,0.65)",border:"none"},Cn=I.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),Sn=I.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),In=I.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),An=I.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),Pn=I.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),Rn=I.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,_n,x.i),Tn=I.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)),En=I.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)),Dn=I.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),Fn=function(t){Object(u.a)(n,t);var e=yn(n);function n(t){var i;return Object(s.a)(this,n),(i=e.call(this,t)).state={},i.closePopup=i.closePopup.bind(Object(Y.a)(i)),i.nextImage=i.nextImage.bind(Object(Y.a)(i)),i.previousImage=i.previousImage.bind(Object(Y.a)(i)),i.keyBoardListener=i.keyBoardListener.bind(Object(Y.a)(i)),i.getAuthors=i.getAuthors.bind(Object(Y.a)(i)),i.getModalContentStyle=i.getModalContentStyle.bind(Object(Y.a)(i)),i.getNextButton=i.getNextButton.bind(Object(Y.a)(i)),i.getPrevButton=i.getPrevButton.bind(Object(Y.a)(i)),i}return Object(p.a)(n,[{key:"componentDidMount",value:function(){var t,e=this,n=this.props,i=n.attachments,a=n.total_attachment_count,o=n.figureSlug,r=n.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:i,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?i[u]:null})}},{key:"findAttachmentBySlug",value:function(t){var e=this.props.attachments,n=t.split(".png"),i=Object(hn.a)(n,2),a=i[0];i[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],n=e.attachment_type.toLowerCase(),i=e.attachment_slug+".png",a="/publication/".concat(this.props.publicationId,"/").concat(n,"/").concat(i),o={publicationId:this.props.publicationId};return"table"==n&&(o.tableSlug=i),"figure"==n&&(o.figureSlug=i),{href:{pathname:"/publication/[publicationId]",query:o},as:a,scroll:!1,shallow:!0}}},{key:"getFigureEls",value:function(){var t=this,e=this.state,n=e.attachments,i=e.limitFiguresForMobile,a=e.has_more_attachments,o=n.map((function(e,n){return xn("li",{className:"item-publication-figure",key:n},xn(te.a,t.getLinkProps(n),xn(On,null,xn(jn,{onClick:function(){return t.expandFigure(n)}},xn(_n,{loading:"auto",src:e.image_url,alt:"Figure-".concat(n)})),xn(gn,{caption:e.caption}))))}));return a&&(o=!0===i?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,n=this.state,i=n.has_more_attachments,a=n.total_attachment_count,o=n.limitFiguresForMobile,r=a-8;return o&&(r=a-2),(i||o)&&(e=xn("li",{className:"item-publication-figure"},xn(On,null,xn(Nn,{"data-testid":"show-all-figure-box"},xn("span",{className:"remaining-figures-text"},"".concat(r," figures hidden")),xn("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}),rn.a.push("/publication/[publicationId]",{pathname:"/publication/".concat(this.props.publicationId)},{shallow:!0})}},{key:"nextImage",value:function(){var t=this.state,e=t.expandedAttachmentIndex,n=t.attachments;if(null!=e&&e0){var i=e-1,a=n[i];this.setState({expanded_attachment:a,expandedAttachmentIndex:i})}}},{key:"expandAuthors",value:function(){this.setState({showAllAuthors:!0})}},{key:"getAuthors",value:function(){var t=this,e=null,n=this.state.showAllAuthors,i="",a=this.props.authors;if(a){var o=a;n||(o=a.slice(0,10)),o.forEach((function(t,e){var n=Object(fe.a)(t);i+=0==e?"".concat(n):", ".concat(n)}));var r=a.length-o.length;e=!n&&r?xn(En,null,xn("span",{className:"publication-info"},i),xn("span",{className:"expand-authors",onClick:function(){return t.expandAuthors()}}," ","+",r," more")):xn(En,null,xn("span",{className:"publication-info"},i))}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=xn(te.a,this.getLinkProps(t-1),xn(In,{className:"".concat(0==t?"hide":"show"),"data-testid":"figure-expanded-modal-btn-previous"},xn(W.a,{onClick:this.previousImage,icon:"down-alt-arrow-tip"})))),e}},{key:"getNextButton",value:function(){var t=this.state,e=t.expandedAttachmentIndex,n=t.total_attachment_count,i=null;return null!=e&&e0;w&&x.push({ref:m.figuresTables,name:"Figures & Tables (".concat(b,")"),id:"figures-tables"});var j=!!p&&p.data.length>0;j&&x.push({ref:m.citations,name:"Citations (".concat(p.hits,")"),id:"citations-section"});var N=!!s&&s.data.length>0;N&&x.push({ref:m.references,name:"References (".concat(s.hits,")"),id:"references-section"});var k=!!u&&u.length>0;k&&x.push({ref:m.relatedPapers,name:"Related Papers (".concat(u.length,")"),id:"related-papers"}),x.push({ref:m.aboutJournal,name:"Journal Details",id:"about-journal"});var C=o,I=!!C&&C.length>0;I&&x.push({ref:m.authors,name:"Authors (".concat(C.length,")"),id:"authors-section"});var A=null;n.length>0&&(x.push({ref:m.concepts,name:"Concepts (".concat(n.length,")"),id:"concepts"}),A=Bn(Hn,{"data-testid":"leafpage-concepts",id:"concepts",ref:m.concepts},Bn(qn,null,e("common:concept_plural")," (",n.length,")"),Bn(v.a,{items:n,showImage:!0})));var P=null;_&&(P=Bn(Hn,{id:"pdf-viewer",ref:m.pdfViewer},Bn(Je,{is_stage_env:c.is_stage_env,file_url:h})));var R=null;w&&(R=Bn(Hn,{id:"figures-tables",ref:m.figuresTables},Bn(Fn,{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=Bn(Hn,{id:"references-section",ref:m.references},Bn(un,{t:this.props.t,showHoverCard:this.props.institute_metadata.allow_velocity_graph,sectionTitle:this.props.t("common:reference_plural"),publicationId:this.props._id,data:i.references})));var E=null;j&&(E=Bn(Hn,{id:"citations-section",ref:m.citations},Bn(dn,{t:this.props.t,showHoverCard:this.props.institute_metadata.allow_velocity_graph,sectionTitle:this.props.t("common:citation_plural"),publicationId:this.props._id,data:i.citations})));var D=Bn(en,Object(l.a)({},this.props,{isBrowser:true,isMobile:f,stickyTabs:x})),F=null;k&&(F=Bn(Hn,{"data-testid":"leafpage-related-papers",id:"related-papers",ref:m.relatedPapers},Bn(qn,null,e("related-papers")," (",u.length,")"),Bn(O.a,{showHoverCard:c.allow_velocity_graph,items:i.related_manuscripts})));var B=null;I&&(B=Bn(Hn,{id:"authors-section",ref:m.authors},Bn(qn,null,e("common:author_plural")," (",C.length,")"),Bn(Oe,{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,K=U._id,q=L?Object(S.c)(M,K):null;return Bn(y.b,Object(l.a)({},this.props,{showPreviewHeader:this.props.is_cms_preview,previewMessage:this.props.preview_message,previewPublicLink:q}),this.getBreadcrumbJsonLD(),Bn(Ue,Object(l.a)({},this.props,{pageDescription:this.getPageDescription()})),this.getStructuredMarkup(),Bn(Mn,null,Bn(Kn,{className:"section--col"},Bn(Zt,this.props)),D,P,R,E,T,F,Bn(Hn,{id:"about-journal",ref:m.aboutJournal},Bn(H,this.props)),B,A,Bn(Hn,null,Bn(Le.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,n=t.concepts,i=t.doi,a=t.publication_type,o="";return e&&e.trim().length>0?o="".concat(o," ").concat(e.trim().slice(0,300)):(o=i?"".concat(o," DOI: ").concat(i,", "):o,o=(null===n||void 0===n?void 0:n.length)>0?"".concat(o,"Keywords: ").concat(n.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,n=t.institute_metadata,i=t.host,a=t.title,o=Object(S.n)(a),r=[{name:"".concat(n.name," Publications"),value:Object(S.d)(i)},{name:o,value:Object(S.c)(i,e)}];return Bn(_.a,{items:r})}},{key:"getStructuredMarkup",value:function(){return Bn(Ae,Object(l.a)({},this.props,{description:this.getPageDescription()}))}}],[{key:"getInitialProps",value:function(){var t=Object(c.a)(a.a.mark((function t(e){var n,i,r,c,l,s,p,u,d,b,h,m,g,x,y,_,v,O;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n=e.query,i=n.publicationId,r=n["reference-page"],c=n["reference-sort"],l=n["citation-page"],s=n["citation-sort"],p=n.preview,u=n.tableSlug,d=n.figureSlug,b=n.velocityType,h=n.year,m={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(S.p)(e.req,!0),y="/api/publication/".concat(i),t.next=10,f.a.post(y,m,x);case 10:return _=t.sent,v=Un(Un(Un({key:i},_.data),g),{},{host:Object(S.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)}}()}]),n}(g.a.Component);e.default=Object(bn.b)("publication")(Object(on.withRouter)(Gn))}}]);