(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[13],{"5bIJ":function(e,t,a){"use strict";var i=a("KQm4"),r=a("rePB"),n=a("wx14"),o=a("o0o1"),c=a.n(o),s=a("HaE+"),l=a("1OyB"),p=a("vuIU"),u=a("ReuC"),h=a("Ji7U"),d=a("md7G"),v=a("foSv"),f=a("q1tI"),b=a.n(f),y=a("vDqi"),g=a.n(y),m=a("ffb8"),_=a("g4pe"),w=a.n(_),k=a("20a2"),O=a.n(k),x=a("qi/6"),j=a("PXD2"),P=a("Akfn"),C=a("ecLT"),S=a("ClUV"),N=a("Jhzn"),D=a("CVsc"),R=a("fkzy"),E=b.a.createElement,V=function(e){var t=e.host,a=e.phone,i=e.email,r=e.linkedin_url,n=e.scopus_url,o=e.scholar_url,c=e.website,s=e.photo_url,l=e.unit,p=e.researcher_id,u=e.active_tab,h=e.tab_data,d=e.description,v=[],f=[],b=h,y=b.publications,g=b.similar_profiles;u&&"overview"!==u||((null===y||void 0===y?void 0:y.length)>0&&(v=y.map((function(e){return{"@id":"".concat(Object(R.c)(t,e._id),"#publication")}}))),(null===g||void 0===g?void 0:g.length)>0&&(f=g.map((function(e){return{"@id":"".concat(Object(R.e)(t,e.researcher_id),"#author")}}))));var m=Object(R.e)(t,p),_=Object(D.a)(e),w={"@context":"http://schema.org","@id":"".concat(m,"#author"),url:m,"@type":"Person",name:_,email:null!==i&&void 0!==i?i:"",telephone:null!==a&&void 0!==a?a:"",mainEntityOfPage:{"@type":"WebPage","@id":m},description:d,sameAs:[r,n,o,c],image:{"@type":"ImageObject",url:s},knows:f,subjectOf:v,affiliation:[{"@id":"".concat(Object(R.h)(t,l.unit_type,l._id),"#unit")}]};return E(N.a,{jsonKey:"jsonld-author",jsonValue:w})},T=a("pIRP"),I=a("KjaH"),F=a("ODXe"),Y=a("JX7q"),q=a("vOnD"),L=a("Vvt1"),A=a.n(L),M=a("zPhz"),H=a("Sigi"),U=a("cfIY"),z=a("Shqb"),B=a("HOgx"),G=a("vx0M"),K=a("89ZD"),X=a("w0oZ"),J=b.a.createElement;function $(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function Z(e){for(var t=1;t0){e[0].year&&"no-year"!=e[0].year?a=this.getYear(e[0].year):(r=!0,e.length>1&&(a=this.getYear(e[1].year)));var n=e[e.length-1];n&&(i=this.getYear(n.year))}return 1==r&&t.push({label:"no-year"}),a&&(i&&a!=i?t=t.concat(this.getYearRange(a,i)):t.push({label:a.toString()})),t}},{key:"getChartData",value:function(e,t){var a=this,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=[],n=[],o=0,c=null,s=this.state.year,l=this.props.isMobile;return e.forEach((function(e){var p=e.label;if(p){var u,h=t[o],d=h.count,v=h.cumulative_count,f=h.year,b="no-year"==f?f:null===(u=a.getYear(f))||void 0===u?void 0:u.toString(),y="0";i&&b&&s&&(y=s.toString()==b?"1":"2"),b==p?(r.push(Z({value:d,color:"1"==y?"#fca311":"#033E69"},!l&&{link:"#"})),n.push({value:v}),o+=1,c=v):(r.push(Z({value:0},!l&&{link:"#"})),n.push({value:c}))}})),[r,n]}},{key:"getChartConfig",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=this.state.velocity_type,i=this.props.isMobile,r=Object(R.t)(a),n=420,o=350;t&&!i&&(n=800,o=350),i&&(n=345,o=270);var c={type:"scrollcombidy2d",id:1==t?"expanded-chart":"minimised-chart",width:"".concat(n),height:"".concat(o),dataFormat:"json",pointerOnTop:"1",dataSource:{chart:{legendPosition:"top",animation:"0",legendXPosition:"0",legendYPosition:"5%",legendItemFontSize:"11",legendNumRows:"1",yAxisValuesStep:"1",decimals:"0",sDecimals:"0",sYAxisValueDecimals:"0",legendCaptionFontSize:6,labeldisplay:"rotate",scrollheight:"15",scrolltoend:"1",scrollPadding:"15",scrollshowbuttons:"1",flatscrollbars:"0",numvisibleplot:"10",drawcrossline:"0",seriesNameInToolTip:"1",theme:"fusion",showValues:"0",showToolTip:"1"},categories:[],dataset:[]}},s=this.getChartCategories(e),l=this.getChartData(s,e,t),p=Object(F.a)(l,2),u=p[0],h=p[1],d={seriesname:"".concat(r," per Year"),plottooltext:"$dataValue ".concat(r," in $label"),showValues:"0",data:u,color:"#033E69"},v={seriesname:"Total ".concat(r),plottooltext:"$dataValue total ".concat(r),parentYAxis:"S",renderAs:"line",showValues:"0",data:h};return c.dataSource.categories=[{category:s}],c.dataSource.dataset.push(d),c.dataSource.dataset.push(v),c}},{key:"getGraphEl",value:function(){var e=this.state,t=e.citation_velocity,i=e.publication_velocity,r=(e.velocity_type,this.props.isMobile),n=t;n=i;var o=this.getChartConfig(n),c=A()((function(){return Promise.all([a.e(15),a.e(16),a.e(17)]).then(a.bind(null,"w04y"))}),{ssr:!1}),s=J(c,{chartConfig:o,chartEventHandler:this.genericChartEventHandler,events:["dataPlotClick"],className:"minimised-graph"}),l=null;return r&&(l=J(X.a,{id:"mobile-graph-loader",className:"mobile-graph-loader"})),J("div",{className:"mini-graph-container"},s,l)}},{key:"getExpandedGraphEl",value:function(){var e=this.state,t=e.citation_velocity,i=e.publication_velocity,r=(e.velocity_type,t);r=i;var n=null;if(e.fetchingData)n=J(X.b,null);else{var o=this.getChartConfig(r,!0),c=A()((function(){return Promise.all([a.e(15),a.e(16),a.e(17)]).then(a.bind(null,"w04y"))}),{ssr:!1});n=J(c,{chartConfig:o,chartEventHandler:this.genericChartEventHandler,events:["dataPlotClick"]})}return J("div",{className:"expanded-graph-container"},n)}},{key:"toggleGraph",value:function(e){this.setState({velocity_type:e}),1==this.state.modalOpen&&this.getVelocityData(void 0,void 0,e)}},{key:"closePopup",value:function(){this.setState({modalOpen:!1,year:null}),this.routeToResearcherPage()}},{key:"componentDidMount",value:function(){var e=this.props,t=e.initVelocityType,a=e.initYear;t&&(this.setState({velocity_type:t}),this.expandResearcherVelocity(a))}},{key:"routeToResearcherPage",value:function(){var e=this.props.researcher_id,t="/researcher/".concat(e,"/"),a={pathname:"/researcher/[researcherId]/",query:{researcherId:e}};O.a.push(a,t,{shallow:!0})}},{key:"shallowUpdateUrlParams",value:function(){var e=this.props,t=e.researcher_id,a=e.initYear,i=this.state,r=i.velocity_type,n=i.year,o="/researcher/".concat(t,"/graph/").concat(r),c={pathname:"/researcher/[researcherId]/",query:{researcherId:t}};(n||a)&&(o+="/".concat(n||a)),O.a.push(c,o,{shallow:!0})}},{key:"fetchVelocityData",value:function(){var e=Object(s.a)(c.a.mark((function e(t,a,i){var r,n,o,s,l,p;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.props.researcher_id,n=this.state.velocity_type,o={velocity_type:i||n},t&&(o.page=t.toString()),a&&(o.year=a),s=Object(R.p)(),l="/api/researcher/".concat(r,"/velocity"),e.next=9,g.a.post(l,o,s);case 9:return p=e.sent,e.abrupt("return",p.data);case 11:case"end":return e.stop()}}),e,this)})));return function(t,a,i){return e.apply(this,arguments)}}()},{key:"getVelocityData",value:function(){var e=Object(s.a)(c.a.mark((function e(t,a,i){var r;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.setState({fetchingData:!0}),e.next=3,this.fetchVelocityData(t,a,i);case 3:r=e.sent,this.setState(Z(Z({},r),{},{fetchingData:!1})),this.shallowUpdateUrlParams();case 6:case"end":return e.stop()}}),e,this)})));return function(t,a,i){return e.apply(this,arguments)}}()},{key:"expandResearcherVelocity",value:function(e){this.props.isMobile||(this.setState({modalOpen:!0}),this.getVelocityData(1,e))}},{key:"getVelocityControls",value:function(){var e=this,t=null;return 1!=this.state.fetchingData&&(t=J(ee,{className:1==this.state.modalOpen?"control-expanded":""},J(te,{className:"publications"==this.state.velocity_type?"active":"",onClick:function(t){t.stopPropagation(),e.toggleGraph("publications")}},J("input",{id:"radio-pub",type:"radio",name:"velocityType",value:"publications",checked:"publications"==this.state.velocity_type,onChange:function(t){t.stopPropagation(),e.toggleGraph(t.target.value)}}),J(ae,{src:"https://d5a9y5rnan99s.cloudfront.net/tds-static/images/journals-icon.svg",alt:"Journal"}),J("span",{className:"velocity-label"},"Publications - ",this.props.publication_count)))),t}},{key:"handlePageClick",value:function(){var e=Object(s.a)(c.a.mark((function e(t){var a;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t&&(a=this.state.year,this.getVelocityData(t,a||""));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getPaginationEl",value:function(){var e=this.state.publications||{},t=e.hits,a=e.page,i=e.page_range,r=e.next_page,n=e.previous_page,o=5*(a-1)+1;return t>5?J("div",{className:"container-pagination"},J("span",{className:"container-pagination__text-showing"},this.props.t("common:pagination-showing-text",{start:o,end:o+5-1,count:t})),J(K.b,{pageClickHandler:this.handlePageClick,page_range:i,page:a,next_page:r,previous_page:n})):null}},{key:"removeYearFilter",value:function(e){var t=this.state.velocity_type;null===e||void 0===e||e.stopPropagation(),this.getVelocityData(void 0,void 0,t)}},{key:"getPopupStat",value:function(){var e=this.state,t=e.velocity_type,a=e.publications,i=e.year,r=e.stat_citation_count,n=(a||{}).hits,o="",c=null;if(n){if("citations"==t){var s=r&&r>1?"Citations":"Citation",l=n>1?"Publications":"Publication";o="".concat(r||""," Total ").concat(s," received by ").concat(n," ").concat(l),i&&(o="".concat(r||""," ").concat(s," received by ").concat(n," ").concat(l))}else{var p=n>1?"Publications":"Publication";o="".concat(n," Total ").concat(p),i&&(o="".concat(n," ").concat(p))}c=J("div",{className:"publication-stat"},o),i&&(c=J("div",{className:"publication-stat"},o,J("span",{className:"year-filter",onClick:this.removeYearFilter}," in ".concat(i),J(H.a,{icon:"close"}))))}return c}},{key:"getCardContents",value:function(){var e,t=this.state,a=t.year,i=t.fetchingData,r=t.velocity_type;return i?J(X.c,null):J("div",{className:""},this.getPopupStat(),J("div",{className:"publications-container"},J(G.a,{showConcepts:!1,showFulltextDownload:!1,showCitationLink:"citations"==r,items:(null===(e=this.state.publications)||void 0===e?void 0:e.data)||[],citationForYear:a||null})))}},{key:"getPopupEl",value:function(){return J(M.a,{open:this.state.modalOpen,closeOnDocumentClick:!0,contentStyle:le,overlayStyle:se,modal:!0,arrow:!0,onClose:this.closePopup},J(ie,null,J(ce,{className:"close-button",onClick:this.closePopup,"data-testid":"researcher-graph-expanded-modal-btn-close"},J(H.a,{icon:"close"})),J("div",{className:"body"},J(re,null,J("div",{className:"title"},this.props.name)),J(ne,null,J("div",{className:"body-container"},this.getExpandedGraphEl(),this.getVelocityControls(),this.getCardContents())),J(oe,null,this.getPaginationEl()))))}},{key:"genericChartEventHandler",value:function(e,t){if(e){e.stopPropagation(),e.preventDefault();var a=this.state,i=a.modalOpen,r=a.velocity_type,n=a.year;"dataplotclick"==e.type&&0==t.datasetIndex&&(i?n&&n.toString()==t.categoryLabel?this.getVelocityData(void 0,void 0,r):this.getVelocityData(1,t.categoryLabel):this.expandResearcherVelocity(t.categoryLabel))}}},{key:"render",value:function(){return J(W,null,this.getVelocityControls(),this.getGraphEl(),this.getPopupEl())}}]),i}(b.a.Component),ue=a("SjCF"),he=a("X68V"),de=b.a.createElement,ve=q.b.div.withConfig({displayName:"ExternalProfileLinks__ExternalProfiles",componentId:"awdr0t-0"})(["font-size:14px;color:",";.label{font-weight:600;}.link-item{text-decoration-line:none;color:",";text-decoration-line:underline;}"],U.a.TEXT.BLACK_4B,U.a.TEXT.BLACK_4B),fe=function(e){var t=e.facebook_url,a=e.twitter_url,i=e.linkedin_url,r=e.scopus_url,n=e.orcid_url,o=e.website,c=e.scholar_url,s=e.scispace_url,l=[{url:t,text:"Facebook",noFollow:!0},{url:a,text:"Twitter",noFollow:!0},{url:i,text:"LinkedIn",noFollow:!0},{url:r,text:"Scopus",noFollow:!0},{url:n,text:"Orcid",noFollow:!0},{url:o,text:"University website",noFollow:!0},{url:c,text:"Google Scholar",noFollow:!0}].filter((function(e){return e.url}));return l.splice(1,0,{url:s,text:"SciSpace",noFollow:!1}),de(ve,null,de("span",{className:"label"},"External profile links: "),l.filter((function(e){return e.url})).map((function(e,t){return[de("a",{key:e.text,className:"link-item",href:e.url||"",rel:"noopener noreferrer ".concat(e.noFollow?"nofollow":""),target:"_blank"},e.text),t0||!!o&&o.length>0;return c&&l&&(s=be(pe,{citation_velocity:this.props.citation_velocity,publication_velocity:this.props.publication_velocity,citation_count:this.props.citation_count,publication_count:this.props.publication_count,isMobile:e,t:this.props.t,researcher_id:this.props.researcher_id,name:Object(D.a)(this.props),initVelocityType:this.props.velocityType,initYear:this.props.velocityYear})),s}},{key:"renderHeroContent",value:function(){var e=this.isMobile(),t=be("div",{className:"section--row researcher-hero-content"},be(C.b,this.props),be(S.b,Object(n.a)({},this.props,{scrollToSubscribeForm:this.scrollToSubscribeForm})),be("div",{className:"desktop-velocity"},this.getResearcherVelocity()));return e&&(t=be("div",{className:"section--col"},be("div",{className:"section--row researcher-hero-content"},be(C.b,this.props),be(S.b,Object(n.a)({},this.props,{scrollToSubscribeForm:this.scrollToSubscribeForm}))),be("div",{className:"section--row mobile-velocity"},this.getResearcherVelocity()))),t}},{key:"getTabData",value:function(){var e=this.props,t=e.t,a=e.researcher_id,i=e.publication_count,r=e.concept_count,n=e.network_profile_count,o=e.network_unit_count,c=e.similar_count,s=e.previewToken,l=0;return n&&(l+=n),o&&(l+=o),ge(ge(ge({overview:{id:"overview",label:t("header-overview"),path:Object(R.x)(a,null,null,s)},publications:{id:"publications",label:"".concat(t("common:publication_plural")),count:i,path:Object(R.x)(a,"publications",null,s)}},!!r&&{concepts:{id:"concepts",label:t("common:concept_plural"),count:r,path:Object(R.x)(a,"concepts",null,s)}}),!!l&&{network:{id:"network",label:t("header-network"),count:l,path:Object(R.x)(a,"network",null,s)}}),!!c&&{similar:{id:"similar-profiles",label:t("header-similar-profiles"),count:c,path:Object(R.x)(a,"similar-profiles",null,s)}})}},{key:"renderOverviewNetwork",value:function(e,t,a){var i=this.props,r=i.tab_data,n=i.t,o=r.network,c=o.profiles,s=o.research_units;if(c.length<=0&&s.length<=0)return null;var l=n("header-network"),p=0;return t&&(p=t),a&&(p+=a),be("div",{className:"section__content"},this.renderOverviewHeader(l,e,p),be(he.a,{profile_count:t,unit_count:a,profiles:c,units:s,hideHeader:!0,hideUnits:!0,hideShowMore:!0}))}},{key:"renderOverview",value:function(){var e=this.props,t=e.profile,a=e.external_affiliations,i=e.researcher_id,r=e.publication_count,n=e.concept_count,o=e.network_profile_count,c=e.network_unit_count,s=JSON.parse(a||"[]");return be("div",null,be("div",{className:"section__content section__content--info"},this.renderProfile(t),this.renderExternalLinks(s)),be("div",{className:"section__content section__content--info"},be(fe,this.props)),this.renderOverviewPublications(Object(R.x)(i,"publications"),r),this.renderOverviewConcepts(Object(R.x)(i,"concepts"),n),this.renderOverviewNetwork(Object(R.x)(i,"network"),o,c),this.renderOverviewSimilar())}},{key:"renderOverviewSimilar",value:function(){var e=this.props,t=e.tab_data,a=e.t,i=e.researcher_id,r=e.similar_count,n=t.similar_profiles;if(n.length<=0)return null;var o=a("header-similar-profiles");return be("div",{className:"section--col section__content"},this.renderOverviewHeader(o,Object(R.x)(i,"similar-profiles"),r),be(P.b,{items:n}))}},{key:"handlePublicationSearch",value:function(e){var t=this.props.researcher_id,a=Object(R.o)([{filter_type:"profile_ids",filter_key:t}]);O.a.push({pathname:"/search",query:ge({tab:"manuscripts",search:e},a)})}},{key:"handlePublicationSort",value:function(e){var t=this.props.researcher_id,a=this.props.tab_data,i=a.page;if(a.active_sort!==e){var r="/researcher/".concat(t,"/publications/").concat(i);O.a.push({pathname:r,query:{sort:e}})}}},{key:"renderNetwork",value:function(){var e=this.props,t=e.network_profile_count,a=void 0===t?0:t,i=e.network_unit_count,r=void 0===i?0:i,n=this.state.clientSide?this.state:this.props.tab_data.data,o=n.research_units,c=n.profiles;if(!a)return this.renderEmptyNetwork();var s=0;a&&(s=a),r&&(s+=r);var l=s?"(".concat(s,")"):"";return be("div",null,be(j.c,null,this.props.t("header-network")," ",l),be("div",{className:"section__content"},be(he.a,{profile_count:a,unit_count:r,profiles:c,units:o,useCardStyle:!0,hideHeader:!0,showHoverCard:this.props.institute_metadata.allow_velocity_graph,showAll:this.handleClientSideNetworksFetch,isLoading:this.state.isLoading})))}},{key:"renderSimilar",value:function(){var e=this.props.tab_data.data;return e.length<=0?this.renderEmptySimilar():be("div",null,be(j.c,null,this.props.t("header-similar-profiles")," (",e.length,")"),be("div",{className:"section__content"},be(ue.a,{items:e,showHoverCard:this.props.institute_metadata.allow_velocity_graph})))}},{key:"renderEmptySimilar",value:function(){var e=this.props.t;return be("div",null,be(j.c,null,this.props.t("header-similar-profiles")),be("div",null,be(j.b,null,e("empty-text-similar"))))}},{key:"renderSubscribe",value:function(){var e=this.props.researcher_id;return Object(u.a)(Object(v.a)(a.prototype),"renderSubscribe",this).call(this,Object(D.a)(this.props),{entity_name:"profile",entity_id:e})}},{key:"publicationPageLinkGen",value:function(e){var t=this.props.researcher_id,a=e||0;return{href:"/researcher/".concat(t,"/publications/").concat(a)}}},{key:"renderBreadcrumbMarkup",value:function(){var e=this.props,t=e.researcher_id,a=e.institute_metadata,i=e.host,r=[{name:"".concat(a.name," Researcher"),value:Object(R.f)(i)},{name:"".concat(Object(D.a)(this.props)),value:Object(R.e)(i,t)}];return be(x.a,{items:r})}},{key:"renderStructuredMarkup",value:function(){return be(V,Object(n.a)({},this.props,{description:this.getPageDescription()}))}},{key:"renderAdditionalMeta",value:function(){var e=this.props,t=e.photo_url,a=e.institute_metadata,i=t?be("meta",{property:"og:image",content:t}):null;return be(w.a,null,be("meta",{property:"og:site_name",content:"".concat(a.name," Research Profiles"),key:"og_site_name"}),be("meta",{property:"og:type",content:"profile",key:"og_type"}),i)}},{key:"getPageTitle",value:function(){var e=this.props,t=e.institute_metadata,a=e.active_tab,i=Object(D.a)(this.props),r=t.name;switch(a){case"publications":return"".concat(i," - Research Publications - ").concat(r," Research Profile");case"concepts":return"".concat(i," - Concepts - ").concat(r," Research Profile");case"network":return"".concat(i," - Network - ").concat(r," Research Profile");case"similar-profiles":return"".concat(i," - Similar Profiles - ").concat(r," Research Profile");default:return"".concat(i," - ").concat(r," Researcher profile")}}},{key:"getPageDescription",value:function(){var e=this.props,t=e.institute_metadata,a=e.active_tab,i=e.unit,r=e.publication_count,n=e.journal_count,o=Object(D.a)(this.props),c=t.name;switch(a){case"publications":var s=this.props.tab_data.data,l="";return r>0&&(l=" Publications: ".concat(s.slice(0,2).map((function(e){return e.title})).join(", "),".")),"This lists ".concat(r," publications across ").concat(n," journals of ").concat(o," at ").concat(i.name,", ").concat(c,".").concat(l);case"concepts":var p=this.props.tab_data.data,u=this.stringifyConceptsForMeta(3,"Concepts",p,r);return"This lists all concepts associated with the research output of ".concat(o," at ").concat(i.name,", ").concat(c,". ").concat(u);case"network":return"This lists all profiles and research units in the networks associated with ".concat(o," at ").concat(i.name,", ").concat(c,". View all similar research output in this author's network");case"similar-profiles":return"This lists all similar profiles associated with ".concat(o," at ").concat(i.name,", ").concat(c,". View all related researchers working in this author's network.");default:var h=this.props,d=h.role,v=h.email,f="Profile of ".concat(Object(D.a)(this.props)," at ").concat(i.name,", ").concat(t.name,".");r>0&&(f="".concat(f," The profile contains ").concat(r," publications across ").concat(n," journals."));var b=this.props.tab_data.concepts,y=this.stringifyConceptsForMeta(3,"Area of Research:",b,r);return f="".concat(f," ").concat(y),d&&(f="".concat(f," Current Role: ").concat(d,".")),v&&(f="".concat(f," Contact at Email: ").concat(v)),f}}},{key:"getPageURL",value:function(){var e=this.props,t=e.researcher_id,a=e.host,i=e.active_tab,r=e.previewToken;return Object(R.e)(a,t,i,r)}},{key:"renderIndexMeta",value:function(){var e=this.props,t=e.active_tab,a=e.publication_count,i=e.institute_metadata.allow_indexing,r=be(m.NextSeo,{noindex:!0,nofollow:!0});if(1!=i)return r;switch(r=be(m.NextSeo,{noindex:!0,nofollow:!1}),t){case"similar-profiles":case"network":case"concepts":return r;case"publications":return null===a||void 0===a||a?r:null;default:return null}}}],[{key:"getInitialProps",value:function(){var e=Object(s.a)(c.a.mark((function e(t){var r,n,o,s,l,p,h,d,f,b;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,r={},t.query.tabId&&(r.active_tab=t.query.tabId,"network"===t.query.tabId&&(r.limit=10)),t.query.page&&(r.page=+t.query.page),t.query.sort&&(r.sort=t.query.sort),t.query.preview&&(r.previewToken=t.query.preview),n=Object(R.k)(t.req),o=t.query,s=o.researcherId,l=o.velocityType,p=o.year,e.next=10,a.getProfileLeafData(s,r,t.req);case 10:return h=e.sent,d=h.preview_show_public_version_link?Object(R.e)(n,h.researcher_id):null,f=ge(ge(ge(ge({},h),{},{previewPublicLink:d},{velocityType:l,velocityYear:p}),r),{},{host:n,namespacesRequired:[].concat(Object(i.a)(Object(u.a)(Object(v.a)(a),"getCommonNamespaces",this).call(this)),["researcher-page"])}),T.a.log("Successfully fetched data for page base"),e.abrupt("return",f);case 17:throw e.prev=17,e.t0=e.catch(0),(b=new Error("Bad data or not found for researcher page")).name="".concat(e.t0.response.status),b;case 22:case"end":return e.stop()}}),e,this,[[0,17]])})));return function(t){return e.apply(this,arguments)}}()},{key:"getProfileLeafData",value:function(){var e=Object(s.a)(c.a.mark((function e(t,a,i){var r,n,o;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="/api/researcher/".concat(t),n=Object(R.p)(i,!0),e.next=4,g.a.post(r,a,n);case 4:return o=e.sent,e.abrupt("return",o.data);case 6:case"end":return e.stop()}}),e)})));return function(t,a,i){return e.apply(this,arguments)}}()}]),a}(j.a);t.a=Object(I.b)("researcher-page")(Object(k.withRouter)(_e))}}]);