-
Notifications
You must be signed in to change notification settings - Fork 3
/
component.min.js
1 lines (1 loc) · 1.35 KB
/
component.min.js
1
(function(){var n,t,e,i,r,o,u,c,f,l,a=[].indexOf||function(n){for(var t=0,e=this.length;t<e;t++){if(t in this&&this[t]===n)return t}return-1};f=/function (.+?)\(/;t=this.React||require("react");n=function(){function n(){}n.keyBlacklist="__super__ __superConstructor__ constructor keyBlacklist reactify build toComponent".split(" ");n.toComponent=function(n,e){if(n==null){n=this}if(e==null){e=[]}return t.createFactory(t.createClass(r(n,e)))};n.build=n.toComponent;n.reactify=n.toComponent;return n}();r=function(n,t){var e;e=i({},new n,t);e.displayName=o(n);u(e,n);c(e,n);e.statics=i({Class:n},n,t.concat(["mixins","propTypes"]));return e};i=function(t,e,i){var r,o;for(r in e){o=e[r];if(a.call(n.keyBlacklist,r)>=0){continue}if(a.call(i,r)>=0){continue}t[r]=o}return t};e=function(n,t){return function(e,i){var r;r=(typeof i[n]==="function"?i[n]():void 0)||i[n];if(r!=null){if(e[n]==null){return e[n]=r}else{return e[n]=t(e[n],r)}}}};c=e("propTypes",function(n,t){var e,i;for(e in t){i=t[e];n[e]=i}return n});u=e("mixins",function(n,t){return n.concat(t)});o=function(n){return n.name||n.displayName||(n.toString().match(f)||[null,"UnnamedComponent"])[1]};l=function(n){if(typeof exports==="object"){return module.exports=n()}else if(typeof define==="function"&&define.amd){return define([],n)}else{return this.Component=n()}};l(function(){return n});t.Component=n}).call(this);