/*! For license information please see dll.Citation.js.LICENSE.txt */
(window.webpackJsonp_name_dll=window.webpackJsonp_name_dll||[]).push([[25],{1038:function(e,t,n){"use strict";n.r(t);var r=n(13),a=n.n(r),o=n(12),s=n.n(o),c=n(14),i=n.n(c),u=n(15),l=n.n(u),p=n(8),f=n.n(p),d=n(0),h=n.n(d),y=n(1),b=n.n(y),g=n(322),v=n.n(g),m=n(103),w=n.n(m),k=n(20);function R(e){var t=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(e){return!1}}();return function(){var n,r=f()(e);if(t){var a=f()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return l()(this,n)}}function x(e){return e=v()(e),w()(e,",")?e.substring(0,e.indexOf(",")):e.substring(e.lastIndexOf(" ")+1)}var E=function(e){i()(n,e);var t=R(n);function n(){return a()(this,n),t.apply(this,arguments)}return s()(n,[{key:"render",value:function(){var e=this.context.config.references[this.props.citeKey];if(!e)return h.a.createElement("span",{style:{background:"red",color:"white"}},"Citation key not found in references.");if(!e.author)return h.a.createElement("span",{style:{background:"red",color:"white"}},"Author field should not be empty.");var t=e.author.split("and"),n="";n=t.length>2?x(t[0])+" et al.":t.length>1?x(t[0])+" and "+x(t[1]):x(t[0]);var r=this.props.label?", ".concat(this.props.label):"";return this.props.parens?h.a.createElement("span",null,"(",n,", ",e.year,r,")"):h.a.createElement("span",null,n," (",e.year,r,")")}}]),n}(d.Component);E.propTypes={citeKey:b.a.string.isRequired,parens:b.a.bool,label:b.a.string},E.defaultProps={parens:!1,label:""},E.contextType=k.default,t.default=E}}]);