verdaccio
Version:
Private npm repository server
10 lines • 27.6 kB
JavaScript
/*!
*
* Name: 3
* Generated on: 1534155993484
* Package: verdaccio
* Version: v3.6.0
* License: MIT
*
*/
(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{762:function(module,exports,__webpack_require__){"use strict";(function(module){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _regenerator=__webpack_require__(263),_regenerator2=_interopRequireDefault(_regenerator),_asyncToGenerator2=__webpack_require__(264),_asyncToGenerator3=_interopRequireDefault(_asyncToGenerator2),_getPrototypeOf=__webpack_require__(86),_getPrototypeOf2=_interopRequireDefault(_getPrototypeOf),_classCallCheck2=__webpack_require__(2),_classCallCheck3=_interopRequireDefault(_classCallCheck2),_createClass2=__webpack_require__(3),_createClass3=_interopRequireDefault(_createClass2),_possibleConstructorReturn2=__webpack_require__(4),_possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2),_inherits2=__webpack_require__(5),_inherits3=_interopRequireDefault(_inherits2),_class,_temp2,_react=__webpack_require__(0),_react2=_interopRequireDefault(_react),_propTypes=__webpack_require__(764),_propTypes2=_interopRequireDefault(_propTypes),_elementReact=__webpack_require__(184),_isEmpty=__webpack_require__(777),_isEmpty2=_interopRequireDefault(_isEmpty),_PackageDetail=__webpack_require__(833),_PackageDetail2=_interopRequireDefault(_PackageDetail),_NotFound=__webpack_require__(840),_NotFound2=_interopRequireDefault(_NotFound),_api=__webpack_require__(267),_api2=_interopRequireDefault(_api),_detail=__webpack_require__(843),_detail2=_interopRequireDefault(_detail),_index=__webpack_require__(845),_index2=_interopRequireDefault(_index);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}!function(){var e=__webpack_require__(11).enterModule;e&&e(module)}();var loadingMessage="Loading...",Detail=(_temp2=_class=function(_React$Component){function Detail(){var e,t,a,r;(0,_classCallCheck3.default)(this,Detail);for(var n=arguments.length,i=Array(n),u=0;u<n;u++)i[u]=arguments[u];return t=a=(0,_possibleConstructorReturn3.default)(this,(e=Detail.__proto__||(0,_getPrototypeOf2.default)(Detail)).call.apply(e,[this].concat(i))),a.state={readMe:"",notFound:!1},r=t,(0,_possibleConstructorReturn3.default)(a,r)}return(0,_inherits3.default)(Detail,_React$Component),(0,_createClass3.default)(Detail,[{key:"getPackageName",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props).match.params;return""+(e.scope&&"@"+e.scope+"/"||"")+e.package}},{key:"componentDidMount",value:function(){var e=(0,_asyncToGenerator3.default)(_regenerator2.default.mark(function e(){return _regenerator2.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.loadPackageInfo(this.packageName);case 2:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"componentWillReceiveProps",value:function(){var e=(0,_asyncToGenerator3.default)(_regenerator2.default.mark(function e(t){var a;return _regenerator2.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((a=this.getPackageName(t))!==this.packageName){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,this.loadPackageInfo(a);case 5:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{key:"loadPackageInfo",value:function(){var e=(0,_asyncToGenerator3.default)(_regenerator2.default.mark(function e(t){var a;return _regenerator2.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.setState({readMe:""}),e.prev=1,e.next=4,_api2.default.request("package/readme/"+t,"GET");case 4:a=e.sent,this.setState({readMe:a}),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),this.setState({notFound:!0});case 11:case"end":return e.stop()}},e,this,[[1,8]])}));return function(t){return e.apply(this,arguments)}}()},{key:"render",value:function(){var e=this.state,t=e.notFound,a=e.readMe;return t?_react2.default.createElement(_NotFound2.default,{pkg:this.packageName}):(0,_isEmpty2.default)(a)?_react2.default.createElement(_elementReact.Loading,{text:loadingMessage}):_react2.default.createElement("div",{className:_detail2.default.twoColumn},_react2.default.createElement(_PackageDetail2.default,{readMe:a,packageName:this.packageName}),_react2.default.createElement(_index2.default,{packageName:this.packageName}))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}},{key:"packageName",get:function(){return this.getPackageName()}}]),Detail}(_react2.default.Component),_class.propTypes={match:_propTypes2.default.object},_temp2);exports.default=Detail,function(){var e=__webpack_require__(11).default,t=__webpack_require__(11).leaveModule;e&&(e.register(loadingMessage,"loadingMessage","/home/circleci/verdaccio/src/webui/modules/detail/index.jsx"),e.register(Detail,"Detail","/home/circleci/verdaccio/src/webui/modules/detail/index.jsx"),t(module))}()}).call(this,__webpack_require__(42)(module))},774:function(e,t,a){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var r=u(a(0)),n=u(a(764)),i=u(a(867));function u(e){return e&&e.__esModule?e:{default:e}}function c(e){var t=e.title,a=e.description,n=e.children,u=e.className;return r.default.createElement("div",{className:i.default.module+" "+u},r.default.createElement("h2",{className:i.default.moduleTitle},t,a&&r.default.createElement("span",null,a)),r.default.createElement("div",null,n))}!function(){var t=a(11).enterModule;t&&t(e)}(),c.propTypes={title:n.default.string.isRequired,description:n.default.string,children:n.default.any.isRequired,className:n.default.string},function(){var t=a(11).default,r=a(11).leaveModule;t&&(t.register(c,"Module","/home/circleci/verdaccio/src/webui/components/PackageSidebar/Module/index.jsx"),r(e))}()}).call(this,a(42)(e))},775:function(e,t,a){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var r=u(a(0)),n=u(a(764)),i=u(a(869));function u(e){return e&&e.__esModule?e:{default:e}}function c(e){var t=e.text;return r.default.createElement("p",{className:i.default.emptyPlaceholder},t)}!function(){var t=a(11).enterModule;t&&t(e)}(),c.propTypes={text:n.default.string.isRequired},function(){var t=a(11).default,r=a(11).leaveModule;t&&(t.register(c,"ModuleContentPlaceholder","/home/circleci/verdaccio/src/webui/components/PackageSidebar/ModuleContentPlaceholder/index.jsx"),r(e))}()}).call(this,a(42)(e))},776:function(e,t,a){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.TIMEFORMAT=void 0;var r=o(a(790));t.formatLicense=s,t.formatRepository=_,t.formatAuthor=d,t.getLastUpdatedPackageTime=f,t.getRecentReleases=p,t.formatDate=m,t.formatDateDistance=g;var n=o(a(265)),i=o(a(766)),u=o(a(811)),c=o(a(815));function o(e){return e&&e.__esModule?e:{default:e}}!function(){var t=a(11).enterModule;t&&t(e)}();var l=t.TIMEFORMAT="YYYY/MM/DD, HH:mm:ss";function s(e){return(0,n.default)(e)?e:(0,i.default)(e)&&e.type?e.type:null}function _(e){return(0,n.default)(e)?e:(0,i.default)(e)&&e.url?e.url:null}function d(e){return(0,n.default)(e)?e:(0,i.default)(e)&&e.name?e.name:null}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=0;return(0,r.default)(e).forEach(function(a){var r=e[a];r.fetched>t&&(t=r.fetched)}),t?m(t):""}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,r.default)(e).map(function(t){return{version:t,time:m(e[t])}});return t.slice(t.length-3,t.length).reverse()}function m(e){return(0,u.default)(new Date(e),l)}function g(e){return(0,c.default)(new Date(e))}!function(){var t=a(11).default,r=a(11).leaveModule;t&&(t.register(l,"TIMEFORMAT","/home/circleci/verdaccio/src/webui/utils/package.js"),t.register(s,"formatLicense","/home/circleci/verdaccio/src/webui/utils/package.js"),t.register(_,"formatRepository","/home/circleci/verdaccio/src/webui/utils/package.js"),t.register(d,"formatAuthor","/home/circleci/verdaccio/src/webui/utils/package.js"),t.register(f,"getLastUpdatedPackageTime","/home/circleci/verdaccio/src/webui/utils/package.js"),t.register(p,"getRecentReleases","/home/circleci/verdaccio/src/webui/utils/package.js"),t.register(m,"formatDate","/home/circleci/verdaccio/src/webui/utils/package.js"),t.register(g,"formatDateDistance","/home/circleci/verdaccio/src/webui/utils/package.js"),r(e))}()}).call(this,a(42)(e))},833:function(e,t,a){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var r=o(a(0)),n=o(a(764)),i=o(a(834)),u=o(a(835)),c=o(a(838));function o(e){return e&&e.__esModule?e:{default:e}}!function(){var t=a(11).enterModule;t&&t(e)}();var l=function(e){return(0,i.default)(e)?"":r.default.createElement(u.default,{readMe:e})},s=function(e){var t=e.packageName,a=e.readMe;return r.default.createElement("div",{className:c.default.pkgDetail},r.default.createElement("h1",{className:c.default.title},t),r.default.createElement("div",{className:c.default.readme},l(a)))};s.propTypes={readMe:n.default.string,packageName:n.default.string.isRequired};var _=s;t.default=_,function(){var t=a(11).default,r=a(11).leaveModule;t&&(t.register(l,"displayState","/home/circleci/verdaccio/src/webui/components/PackageDetail/index.js"),t.register(s,"PackageDetail","/home/circleci/verdaccio/src/webui/components/PackageDetail/index.js"),t.register(_,"default","/home/circleci/verdaccio/src/webui/components/PackageDetail/index.js"),r(e))}()}).call(this,a(42)(e))},835:function(e,t,a){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var r=i(a(0)),n=i(a(764));function i(e){return e&&e.__esModule?e:{default:e}}a(836),function(){var t=a(11).enterModule;t&&t(e)}();var u=function(e){return r.default.createElement("div",{className:"markdown-body",dangerouslySetInnerHTML:{__html:e.readMe}})};u.propTypes={readMe:n.default.string.isRequired};var c=u;t.default=c,function(){var t=a(11).default,r=a(11).leaveModule;t&&(t.register(u,"Readme","/home/circleci/verdaccio/src/webui/components/Readme/index.js"),t.register(c,"default","/home/circleci/verdaccio/src/webui/components/Readme/index.js"),r(e))}()}).call(this,a(42)(e))},838:function(e,t,a){e.exports={pkgDetail:"src-webui-components-PackageDetail-packageDetail__pkgDetail--2ofnV",title:"src-webui-components-PackageDetail-packageDetail__title--HjVMp",readme:"src-webui-components-PackageDetail-packageDetail__readme--1_qMp"}},840:function(e,t,a){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var r=u(a(0)),n=u(a(764)),i=u(a(841));function u(e){return e&&e.__esModule?e:{default:e}}!function(){var t=a(11).enterModule;t&&t(e)}();var c=function(e){return r.default.createElement("div",{className:i.default.notFound},r.default.createElement("h1",null,"Error 404 - ",e.pkg),r.default.createElement("hr",null),r.default.createElement("p",null,"Oops, The package you are trying to access does not exist."))};c.propTypes={pkg:n.default.string.isRequired};var o=c;t.default=o,function(){var t=a(11).default,r=a(11).leaveModule;t&&(t.register(c,"NotFound","/home/circleci/verdaccio/src/webui/components/NotFound/index.js"),t.register(o,"default","/home/circleci/verdaccio/src/webui/components/NotFound/index.js"),r(e))}()}).call(this,a(42)(e))},841:function(e,t,a){e.exports={notFound:"src-webui-components-NotFound-404__notFound--2CWlx"}},843:function(e,t,a){e.exports={twoColumn:"src-webui-modules-detail-detail__twoColumn--UNszb"}},845:function(module,exports,__webpack_require__){"use strict";(function(module){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _regenerator=__webpack_require__(263),_regenerator2=_interopRequireDefault(_regenerator),_asyncToGenerator2=__webpack_require__(264),_asyncToGenerator3=_interopRequireDefault(_asyncToGenerator2),_getPrototypeOf=__webpack_require__(86),_getPrototypeOf2=_interopRequireDefault(_getPrototypeOf),_classCallCheck2=__webpack_require__(2),_classCallCheck3=_interopRequireDefault(_classCallCheck2),_createClass2=__webpack_require__(3),_createClass3=_interopRequireDefault(_createClass2),_possibleConstructorReturn2=__webpack_require__(4),_possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2),_inherits2=__webpack_require__(5),_inherits3=_interopRequireDefault(_inherits2),_class,_temp,_react=__webpack_require__(0),_react2=_interopRequireDefault(_react),_propTypes=__webpack_require__(764),_propTypes2=_interopRequireDefault(_propTypes),_get=__webpack_require__(785),_get2=_interopRequireDefault(_get),_LastSync=__webpack_require__(866),_LastSync2=_interopRequireDefault(_LastSync),_Maintainers=__webpack_require__(873),_Maintainers2=_interopRequireDefault(_Maintainers),_Dependencies=__webpack_require__(931),_Dependencies2=_interopRequireDefault(_Dependencies),_Infos=__webpack_require__(936),_Infos2=_interopRequireDefault(_Infos),_package=__webpack_require__(776),_api=__webpack_require__(267),_api2=_interopRequireDefault(_api);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}!function(){var e=__webpack_require__(11).enterModule;e&&e(module)}();var PackageSidebar=(_temp=_class=function(_React$Component){function PackageSidebar(e){(0,_classCallCheck3.default)(this,PackageSidebar);var t=(0,_possibleConstructorReturn3.default)(this,(PackageSidebar.__proto__||(0,_getPrototypeOf2.default)(PackageSidebar)).call(this,e));return t.state={},t.loadPackageData=t.loadPackageData.bind(t),t}return(0,_inherits3.default)(PackageSidebar,_React$Component),(0,_createClass3.default)(PackageSidebar,[{key:"componentDidMount",value:function(){var e=(0,_asyncToGenerator3.default)(_regenerator2.default.mark(function e(){return _regenerator2.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.loadPackageData(this.props.packageName);case 2:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"UNSAFE_componentWillReceiveProps",value:function(){var e=(0,_asyncToGenerator3.default)(_regenerator2.default.mark(function e(t){return _regenerator2.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.packageName===this.props.packageName){e.next=3;break}return e.next=3,this.loadPackageData(t.packageName);case 3:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{key:"loadPackageData",value:function(){var e=(0,_asyncToGenerator3.default)(_regenerator2.default.mark(function e(t){var a;return _regenerator2.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=void 0,e.prev=1,e.next=4,_api2.default.request("sidebar/"+t,"GET");case 4:a=e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(1),this.setState({failed:!0});case 10:this.setState({packageMeta:a});case 11:case"end":return e.stop()}},e,this,[[1,7]])}));return function(t){return e.apply(this,arguments)}}()},{key:"render",value:function(){var e=this.state.packageMeta;if(e){var t=e.time,a=e._uplinks,r=(0,_package.formatLicense)((0,_get2.default)(e,"latest.license",null)),n=(0,_package.formatRepository)((0,_get2.default)(e,"latest.repository",null)),i=(0,_get2.default)(e,"latest.homepage",null),u=(0,_package.getRecentReleases)(t),c=(0,_package.getLastUpdatedPackageTime)(a),o=(0,_get2.default)(e,"latest.dependencies",{});return _react2.default.createElement("aside",{className:"sidebar-info"},t&&_react2.default.createElement(_LastSync2.default,{recentReleases:u,lastUpdated:c}),_react2.default.createElement(_Infos2.default,{homepage:i,repository:n,license:r}),_react2.default.createElement(_Maintainers2.default,{packageMeta:e}),_react2.default.createElement(_Dependencies2.default,{dependencies:o}))}return _react2.default.createElement("aside",{className:"sidebar-loading"},"Loading package information...")}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),PackageSidebar}(_react2.default.Component),_class.propTypes={packageName:_propTypes2.default.string.isRequired},_temp);exports.default=PackageSidebar,function(){var e=__webpack_require__(11).default,t=__webpack_require__(11).leaveModule;e&&(e.register(PackageSidebar,"PackageSidebar","/home/circleci/verdaccio/src/webui/components/PackageSidebar/index.jsx"),t(module))}()}).call(this,__webpack_require__(42)(module))},866:function(e,t,a){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var r=o(a(0)),n=o(a(764)),i=o(a(774)),u=o(a(775)),c=o(a(871));function o(e){return e&&e.__esModule?e:{default:e}}!function(){var t=a(11).enterModule;t&&t(e)}();var l=function(e){return r.default.createElement("ul",null,e.map(function(e){var t=e.version,a=e.time;return r.default.createElement("li",{className:"last-sync-item",key:t},r.default.createElement("span",null,t),r.default.createElement("span",null,a))}))},s=function(e){var t=e.recentReleases,a=void 0===t?[]:t,n=e.lastUpdated,o=void 0===n?"":n;return r.default.createElement(i.default,{title:"Last Sync",description:o,className:c.default.releasesModule},a.length?l(a):r.default.createElement(u.default,{text:"Not Available!"}))};s.propTypes={recentReleases:n.default.array,lastUpdated:n.default.string};var _=s;t.default=_,function(){var t=a(11).default,r=a(11).leaveModule;t&&(t.register(l,"renderRecentReleases","/home/circleci/verdaccio/src/webui/components/PackageSidebar/modules/LastSync/index.jsx"),t.register(s,"LastSync","/home/circleci/verdaccio/src/webui/components/PackageSidebar/modules/LastSync/index.jsx"),t.register(_,"default","/home/circleci/verdaccio/src/webui/components/PackageSidebar/modules/LastSync/index.jsx"),r(e))}()}).call(this,a(42)(e))},867:function(e,t,a){e.exports={module:"src-webui-components-PackageSidebar-Module-style__module--2481F",moduleTitle:"src-webui-components-PackageSidebar-Module-style__moduleTitle--2-MXm"}},869:function(e,t,a){e.exports={emptyPlaceholder:"src-webui-components-PackageSidebar-ModuleContentPlaceholder-style__emptyPlaceholder--3UNcv"}},871:function(e,t,a){e.exports={releasesModule:"src-webui-components-PackageSidebar-modules-LastSync-style__releasesModule--1DkSo"}},873:function(module,exports,__webpack_require__){"use strict";(function(module){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _getPrototypeOf=__webpack_require__(86),_getPrototypeOf2=_interopRequireDefault(_getPrototypeOf),_classCallCheck2=__webpack_require__(2),_classCallCheck3=_interopRequireDefault(_classCallCheck2),_createClass2=__webpack_require__(3),_createClass3=_interopRequireDefault(_createClass2),_possibleConstructorReturn2=__webpack_require__(4),_possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2),_inherits2=__webpack_require__(5),_inherits3=_interopRequireDefault(_inherits2),_class,_temp,_react=__webpack_require__(0),_react2=_interopRequireDefault(_react),_propTypes=__webpack_require__(764),_propTypes2=_interopRequireDefault(_propTypes),_get2=__webpack_require__(785),_get3=_interopRequireDefault(_get2),_filter=__webpack_require__(874),_filter2=_interopRequireDefault(_filter),_size=__webpack_require__(910),_size2=_interopRequireDefault(_size),_has=__webpack_require__(914),_has2=_interopRequireDefault(_has),_uniqBy=__webpack_require__(916),_uniqBy2=_interopRequireDefault(_uniqBy),_Module=__webpack_require__(774),_Module2=_interopRequireDefault(_Module),_MaintainerInfo=__webpack_require__(926),_MaintainerInfo2=_interopRequireDefault(_MaintainerInfo),_ModuleContentPlaceholder=__webpack_require__(775),_ModuleContentPlaceholder2=_interopRequireDefault(_ModuleContentPlaceholder),_style=__webpack_require__(929),_style2=_interopRequireDefault(_style);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}!function(){var e=__webpack_require__(11).enterModule;e&&e(module)}();var CONTRIBUTORS_TO_SHOW=5,Maintainers=(_temp=_class=function(_React$Component){function Maintainers(e){(0,_classCallCheck3.default)(this,Maintainers);var t=(0,_possibleConstructorReturn3.default)(this,(Maintainers.__proto__||(0,_getPrototypeOf2.default)(Maintainers)).call(this,e));return t.state={},t.handleShowAllContributors=t.handleShowAllContributors.bind(t),t}return(0,_inherits3.default)(Maintainers,_React$Component),(0,_createClass3.default)(Maintainers,[{key:"handleShowAllContributors",value:function(){this.setState({showAllContributors:!0})}},{key:"renderContributors",value:function(){return this.contributors?(this.showAllContributors?this.contributors:this.uniqueContributors).map(function(e,t){return _react2.default.createElement(_MaintainerInfo2.default,{key:t,title:"Contributors",name:e.name,avatar:e.avatar})}):null}},{key:"renderAuthorAndContributors",value:function(e){return _react2.default.createElement("div",null,_react2.default.createElement("ul",{className:"maintainer-author"},e&&e.name&&_react2.default.createElement(_MaintainerInfo2.default,{title:"Author",name:e.name,avatar:e.avatar}),this.renderContributors()),!this.showAllContributors&&_react2.default.createElement("button",{onClick:this.handleShowAllContributors,className:_style2.default.showAllContributors,title:"Current list only show the author and first 5 contributors unique by name"},"Show all contributor"))}},{key:"render",value:function(){var e=this.author,t=this.renderContributors();return _react2.default.createElement(_Module2.default,{title:"Maintainers",className:_style2.default.maintainersModule},t.length||(0,_has2.default)(e,"name")?this.renderAuthorAndContributors(e):_react2.default.createElement(_ModuleContentPlaceholder2.default,{text:"Not Available!"}))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}},{key:"author",get:function(){return(0,_get3.default)(this,"props.packageMeta.latest.author")}},{key:"contributors",get:function(){var e=this,t=(0,_get3.default)(this,"props.packageMeta.latest.contributors",{});return(0,_filter2.default)(t,function(t){return t.name!==(0,_get3.default)(e,"author.name")&&t.email!==(0,_get3.default)(e,"author.email")})}},{key:"showAllContributors",get:function(){return this.state.showAllContributors||(0,_size2.default)(this.contributors)<=5}},{key:"uniqueContributors",get:function(){return this.contributors?(0,_uniqBy2.default)(this.contributors,function(e){return e.name}).slice(0,CONTRIBUTORS_TO_SHOW):[]}}]),Maintainers}(_react2.default.Component),_class.propTypes={packageMeta:_propTypes2.default.object.isRequired},_temp);exports.default=Maintainers,function(){var e=__webpack_require__(11).default,t=__webpack_require__(11).leaveModule;e&&(e.register(CONTRIBUTORS_TO_SHOW,"CONTRIBUTORS_TO_SHOW","/home/circleci/verdaccio/src/webui/components/PackageSidebar/modules/Maintainers/index.jsx"),e.register(Maintainers,"Maintainers","/home/circleci/verdaccio/src/webui/components/PackageSidebar/modules/Maintainers/index.jsx"),t(module))}()}).call(this,__webpack_require__(42)(module))},926:function(e,t,a){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var r=u(a(0)),n=u(a(764)),i=u(a(927));function u(e){return e&&e.__esModule?e:{default:e}}function c(e){var t=e.title,a=e.name,n=e.avatar,u=t+" "+a+"'s avatar";return r.default.createElement("div",{className:i.default.maintainer,title:a},r.default.createElement("img",{src:n,alt:u,title:u}),r.default.createElement("span",{className:"maintainer-name"},a))}!function(){var t=a(11).enterModule;t&&t(e)}(),c.propTypes={title:n.default.string.isRequired,name:n.default.string.isRequired,avatar:n.default.string.isRequired},function(){var t=a(11).default,r=a(11).leaveModule;t&&(t.register(c,"MaintainerInfo","/home/circleci/verdaccio/src/webui/components/PackageSidebar/modules/Maintainers/MaintainerInfo/index.jsx"),r(e))}()}).call(this,a(42)(e))},927:function(e,t,a){e.exports={maintainer:"src-webui-components-PackageSidebar-modules-Maintainers-MaintainerInfo-style__maintainer--3tArj"}},929:function(e,t,a){e.exports={maintainersModule:"src-webui-components-PackageSidebar-modules-Maintainers-style__maintainersModule--1UT7F",showAllContributors:"src-webui-components-PackageSidebar-modules-Maintainers-style__showAllContributors--3VVRZ"}},931:function(e,t,a){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.DEP_ITEM_CLASS=t.NO_DEPENDENCIES=void 0;var r=s(a(790)),n=s(a(0)),i=s(a(764)),u=s(a(774)),c=a(269),o=s(a(775)),l=s(a(934));function s(e){return e&&e.__esModule?e:{default:e}}!function(){var t=a(11).enterModule;t&&t(e)}();var _=t.NO_DEPENDENCIES="Zero Dependencies!",d=t.DEP_ITEM_CLASS="dependency-item",f=function(e,t){return n.default.createElement("ul",null,t.map(function(a,r){return n.default.createElement("li",{className:d,key:r,title:"Depend on version: "+e[a]},n.default.createElement("a",{href:(0,c.getDetailPageURL)(a)},a),r<t.length-1&&n.default.createElement("span",null,", "))}))},p=function(e){var t=e.dependencies,a=void 0===t?{}:t,i=(0,r.default)(a);return n.default.createElement(u.default,{title:"Dependencies",className:l.default.dependenciesModule},i.length>0?f(a,i):n.default.createElement(o.default,{text:_}))};p.propTypes={dependencies:i.default.object};var m=p;t.default=m,function(){var t=a(11).default,r=a(11).leaveModule;t&&(t.register(_,"NO_DEPENDENCIES","/home/circleci/verdaccio/src/webui/components/PackageSidebar/modules/Dependencies/index.jsx"),t.register(d,"DEP_ITEM_CLASS","/home/circleci/verdaccio/src/webui/components/PackageSidebar/modules/Dependencies/index.jsx"),t.register(f,"renderDependenciesList","/home/circleci/verdaccio/src/webui/components/PackageSidebar/modules/Dependencies/index.jsx"),t.register(p,"Dependencies","/home/circleci/verdaccio/src/webui/components/PackageSidebar/modules/Dependencies/index.jsx"),t.register(m,"default","/home/circleci/verdaccio/src/webui/components/PackageSidebar/modules/Dependencies/index.jsx"),r(e))}()}).call(this,a(42)(e))},934:function(e,t,a){e.exports={dependenciesModule:"src-webui-components-PackageSidebar-modules-Dependencies-style__dependenciesModule--1kalX"}},936:function(e,t,a){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var r=o(a(0)),n=o(a(764)),i=o(a(774)),u=o(a(775)),c=o(a(937));function o(e){return e&&e.__esModule?e:{default:e}}!function(){var t=a(11).enterModule;t&&t(e)}();var l=function(e,t){return r.default.createElement("li",null,r.default.createElement("span",null,e),r.default.createElement("a",{href:t,target:"_blank"},t))},s=function(e){var t=e.homepage,a=e.repository,n=e.license,o=t||a||n;return r.default.createElement(i.default,{title:"Infos",className:c.default.infosModule},o?r.default.createElement("ul",null,t&&l("Homepage",t),a&&l("Repository",a),n&&r.default.createElement("li",null,r.default.createElement("span",null,"License"),r.default.createElement("span",null,n))):r.default.createElement(u.default,{text:"Not Available!"}))};s.propTypes={homepage:n.default.string,repository:n.default.string,license:n.default.string};var _=s;t.default=_,function(){var t=a(11).default,r=a(11).leaveModule;t&&(t.register(l,"renderSection","/home/circleci/verdaccio/src/webui/components/PackageSidebar/modules/Infos/index.jsx"),t.register(s,"Infos","/home/circleci/verdaccio/src/webui/components/PackageSidebar/modules/Infos/index.jsx"),t.register(_,"default","/home/circleci/verdaccio/src/webui/components/PackageSidebar/modules/Infos/index.jsx"),r(e))}()}).call(this,a(42)(e))},937:function(e,t,a){e.exports={infosModule:"src-webui-components-PackageSidebar-modules-Infos-style__infosModule--3vOjF"}}}]);