Comparing version 0.20.0 to 0.20.1
@@ -1,1 +0,1 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.Recompose=e(require("react")):t.Recompose=e(t.React)}(this,function(t){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){t.exports=n(29)},function(t,e,n){"use strict";e.__esModule=!0;var r=function(t,e){return t};e.default=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(18),u=r(o),a=n(16),i=r(a),f=function(t){var e=(0,i.default)(t);return function(n,r){return(0,u.default)(!1,e,t,n,r)}};e.default=f},function(e,n){e.exports=t},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(1),u=r(o),a=n(2),i=r(a),f=function(t){return function(e){var n=(0,i.default)(e);return function(e){return n(t(e))}}};e.default=(0,u.default)(f,"mapProps")},function(t,e){"use strict";e.__esModule=!0;var n={fromESObservable:null,toESObservable:null},r=(e.fromESObservable=function(t){return"function"==typeof n.fromESObservable?n.fromESObservable(t):t},e.toESObservable=function(t){return"function"==typeof n.toESObservable?n.toESObservable(t):t},function(t){n=t});e.default=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(49),u=r(o);e.default=u.default},function(t,e){"use strict";e.__esModule=!0;var n=function(t){if("string"==typeof t)return t;if(t)return t.displayName||t.name||"Component"};e.default=n},function(t,e){"use strict";e.__esModule=!0;var n=function(t){return!(!t||!t.prototype||"object"!=typeof t.prototype.isReactComponent)};e.default=n},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(1),u=r(o),a=function(t,e){return function(n){return n[t]=e,n}};e.default=(0,u.default)(a,"setStatic",!1)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var i=n(3),f=n(1),c=r(f),s=n(2),l=r(s),p=function(t){return function(e){var n=(0,l.default)(e);return function(e){function r(){return o(this,r),u(this,e.apply(this,arguments))}return a(r,e),r.prototype.shouldComponentUpdate=function(e){return t(this.props,e)},r.prototype.render=function(){return n(this.props)},r}(i.Component)}};e.default=(0,c.default)(p,"shouldUpdate")},function(t,e){"use strict";function n(t,e){var n={};for(var r in t)e.indexOf(r)<0&&Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}e.__esModule=!0;var r=function(t,e){for(var r=n(t,[]),o=0;e.length>o;o++){var u=e[o];r.hasOwnProperty(u)&&delete r[u]}return r};e.default=r},function(t,e){"use strict";e.__esModule=!0;var n=function(t,e){for(var n={},r=0;e.length>r;r++){var o=e[r];t.hasOwnProperty(o)&&(n[o]=t[o])}return n};e.default=n},function(t,e,n){(function(e){"use strict";t.exports=n(51)(e||window||this)}).call(e,function(){return this}())},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var i=n(3),f=n(19),c=n(13),s=r(c),l=n(5),p=function(t){return function(e){function n(){var r,a,i,c;o(this,n);for(var p=arguments.length,d=Array(p),h=0;p>h;h++)d[h]=arguments[h];return a=i=u(this,e.call.apply(e,[this].concat(d))),i.state={vdom:null},i.propsEmitter=(0,f.createChangeEmitter)(),i.props$=(0,l.fromESObservable)((r={subscribe:function(t){var e=i.propsEmitter.listen(function(e){return t.next(e)});return{unsubscribe:e}}},r[s.default]=function(){return this},r)),i.vdom$=(0,l.toESObservable)(t(i.props$)),c=a,u(i,c)}return a(n,e),n.prototype.componentWillMount=function(){var t=this;this.subscription=this.vdom$.subscribe({next:function(e){t.setState({vdom:e})}}),this.propsEmitter.emit(this.props)},n.prototype.componentWillReceiveProps=function(t){this.propsEmitter.emit(t)},n.prototype.shouldComponentUpdate=function(t,e){return e.vdom!==this.state.vdom},n.prototype.componentWillUnmount=function(){this.subscription.unsubscribe()},n.prototype.render=function(){return this.state.vdom},n}(i.Component)};e.default=p},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(18),u=r(o),a=n(16),i=r(a),f=function(t,e,n){var r=(0,i.default)(t),o=e&&e.hasOwnProperty("key");return(0,u.default)(o,r,t,e,n)};e.default=f},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(8),u=r(o),a=function(t){return!("function"!=typeof t||(0,u.default)(t)||t.defaultProps||t.contextTypes||t.propTypes)};e.default=a},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(10),u=r(o),a=n(6),i=r(a),f=n(1),c=r(f),s=n(12),l=r(s),p=function(t){return(0,u.default)(function(e,n){return!(0,i.default)((0,l.default)(n,t),(0,l.default)(e,t))})};e.default=(0,c.default)(p,"onlyUpdateForKeys")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u=n(3),a=r(u),i=function(t,e,n,r,u){if(!t&&e)return n(u?o({},r,{children:u}):r);var i=n;return u?a.default.createElement(i,r,u):a.default.createElement(i,r)};e.default=i},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.createChangeEmitter=function(){function t(){o===r&&(o=r.slice())}function e(e){if("function"!=typeof e)throw Error("Expected listener to be a function.");var n=!0;return t(),o.push(e),function(){if(n){n=!1,t();var r=o.indexOf(e);o.splice(r,1)}}}function n(){r=o;for(var t=r,e=0;t.length>e;e++)t[e].apply(t,arguments)}var r=[],o=r;return{listen:e,emit:n}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var i=n(3),f=r(i),c=n(1),s=r(c),l=n(2),p=r(l),d=function(t,e,n){return function(r){return function(i){function f(t,e){o(this,f);var n=u(this,i.call(this,t,e));return n.LeftComponent=null,n.RightComponent=null,n.computeChildComponent(n.props),n}return a(f,i),f.prototype.computeChildComponent=function(o){t(o)?(this.leftFactory=this.leftFactory||(0,p.default)(e(r)),this.factory=this.leftFactory):(this.rightFactory=this.rightFactory||(0,p.default)(n(r)),this.factory=this.rightFactory)},f.prototype.componentWillReceiveProps=function(t){this.computeChildComponent(t)},f.prototype.render=function(){return this.factory(this.props)},f}(f.default.Component)}};e.default=(0,s.default)(d,"branch")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(11),u=r(o),a=n(15),i=r(a),f=function(t){var e=function(e){return(0,i.default)(e[t],(0,u.default)(e,[t]))};return e.displayName="componentFromProp("+t+")",e};e.default=f},function(t,e){"use strict";function n(){for(var t=arguments.length,e=Array(t),n=0;t>n;n++)e[n]=arguments[n];if(0===e.length)return function(t){return t};if(1===e.length)return e[0];var r=e[e.length-1];return function(){for(var t=r.apply(void 0,arguments),n=e.length-2;n>=0;n--){var o=e[n];t=o(t)}return t}}e.__esModule=!0,e.default=n},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(13),u=r(o),a=n(19),i=n(5),f=function(){var t,e=(0,a.createChangeEmitter)(),n=(0,i.fromESObservable)((t={subscribe:function(t){var n=e.listen(function(e){return t.next(e)});return{unsubscribe:n}}},t[u.default]=function(){return this},t));return{handler:e.emit,stream:n}};e.default=f},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var a=n(3),i=function(t){return function(e){function n(){return r(this,n),o(this,e.apply(this,arguments))}return u(n,e),n.prototype.componentWillMount=function(){t(this.props)},n.prototype.componentWillReceiveProps=function(e){t(e)},n.prototype.render=function(){return null},n}(a.Component)};e.default=i},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(1),u=r(o),a=n(2),i=r(a),f=function(t){return function(e){var n=(0,i.default)(e),r=function(t){return n(t)};return r.defaultProps=t,r}};e.default=(0,u.default)(f,"defaultProps")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u=n(1),a=r(u),i=n(2),f=r(i),c=function(t){return function(e){var n=(0,f.default)(e);return function(e){return n(o({},e,e[t]))}}};e.default=(0,a.default)(c,"flattenProp")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u=n(1),a=r(u),i=n(2),f=r(i),c=function(t){return function(e){var n=(0,f.default)(e),r=function(t,e){return n(o({},t,e))};return r.contextTypes=t,r}};e.default=(0,a.default)(c,"getContext")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(50),u=r(o),a=function(t){return function(e){var n=t(e);return(0,u.default)(n,e),n}};e.default=a},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0,e.setObservableConfig=e.createEventHandler=e.mapPropsStream=e.componentFromStream=e.hoistStatics=e.nest=e.componentFromProp=e.createSink=e.createEagerFactory=e.createEagerElement=e.isClassComponent=e.shallowEqual=e.wrapDisplayName=e.getDisplayName=e.compose=e.setDisplayName=e.setPropTypes=e.setStatic=e.toClass=e.lifecycle=e.getContext=e.withContext=e.onlyUpdateForPropTypes=e.onlyUpdateForKeys=e.pure=e.shouldUpdate=e.renderNothing=e.renderComponent=e.branch=e.withReducer=e.withState=e.flattenProp=e.renameProps=e.renameProp=e.defaultProps=e.withHandlers=e.withPropsOnChange=e.withProps=e.mapProps=void 0;var o=n(4),u=r(o),a=n(44),i=r(a),f=n(45),c=r(f),s=n(43),l=r(s),p=n(25),d=r(p),h=n(35),y=r(h),_=n(36),b=r(_),v=n(26),m=r(v),O=n(47),w=r(O),P=n(46),g=r(P),M=n(20),j=r(M),E=n(37),C=r(E),x=n(38),S=r(x),T=n(10),R=r(T),F=n(34),N=r(F),U=n(17),V=r(U),H=n(33),A=r(H),D=n(42),W=r(D),k=n(27),q=r(k),$=n(30),K=r($),L=n(41),z=r(L),B=n(9),G=r(B),I=n(40),J=r(I),Q=n(39),X=r(Q),Y=n(22),Z=r(Y),tt=n(7),et=r(tt),nt=n(48),rt=r(nt),ot=n(6),ut=r(ot),at=n(8),it=r(at),ft=n(15),ct=r(ft),st=n(2),lt=r(st),pt=n(24),dt=r(pt),ht=n(21),yt=r(ht),_t=n(32),bt=r(_t),vt=n(28),mt=r(vt),Ot=n(14),wt=r(Ot),Pt=n(31),gt=r(Pt),Mt=n(23),jt=r(Mt),Et=n(5),Ct=r(Et);e.mapProps=u.default,e.withProps=i.default,e.withPropsOnChange=c.default,e.withHandlers=l.default,e.defaultProps=d.default,e.renameProp=y.default,e.renameProps=b.default,e.flattenProp=m.default,e.withState=w.default,e.withReducer=g.default,e.branch=j.default,e.renderComponent=C.default,e.renderNothing=S.default,e.shouldUpdate=R.default,e.pure=N.default,e.onlyUpdateForKeys=V.default,e.onlyUpdateForPropTypes=A.default,e.withContext=W.default,e.getContext=q.default,e.lifecycle=K.default,e.toClass=z.default,e.setStatic=G.default,e.setPropTypes=J.default,e.setDisplayName=X.default,e.compose=Z.default,e.getDisplayName=et.default,e.wrapDisplayName=rt.default,e.shallowEqual=ut.default,e.isClassComponent=it.default,e.createEagerElement=ct.default,e.createEagerFactory=lt.default,e.createSink=dt.default,e.componentFromProp=yt.default,e.nest=bt.default,e.hoistStatics=mt.default,e.componentFromStream=wt.default,e.mapPropsStream=gt.default,e.createEventHandler=jt.default,e.setObservableConfig=Ct.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u=n(3),a=n(1),i=r(a),f=n(2),c=r(f),s=function(t){return function(e){var n=(0,c.default)(e);return(0,u.createClass)(o({},t,{render:function(){return n(o({},this.props,this.state))}}))}};e.default=(0,i.default)(s,"lifecycle")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(13),u=r(o),a=n(2),i=r(a),f=n(1),c=r(f),s=n(14),l=r(s),p=n(5),d=function(t){return function(e){var n=(0,i.default)(e);return(0,l.default)(function(e){var r;return r={subscribe:function(r){var o=(0,p.toESObservable)(t(e)).subscribe({next:function(t){return r.next(n(t))}});return{unsubscribe:function(){return o.unsubscribe()}}}},r[u.default]=function(){return this},r})}};e.default=(0,c.default)(d,"mapPropsStream")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){var n={};for(var r in t)e.indexOf(r)<0&&Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}e.__esModule=!0;var u=n(2),a=r(u),i=function(){for(var t=arguments.length,e=Array(t),n=0;t>n;n++)e[n]=arguments[n];var r=e.map(a.default),u=function(t){var e=o(t,[]),n=t.children;return r.reduceRight(function(t,n){return n(e,t)},n)};return u};e.default=i},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(17),u=r(o),a=n(1),i=r(a),f=function(t){var e=t.propTypes,n=Object.keys(e||{}),r=(0,u.default)(n)(t);return r};e.default=(0,i.default)(f,"onlyUpdateForPropTypes",!0,!0)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(10),u=r(o),a=n(6),i=r(a),f=n(1),c=r(f),s=(0,u.default)(function(t,e){return!(0,i.default)(t,e)});e.default=(0,c.default)(s,"pure",!0,!0)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u=n(11),a=r(u),i=n(4),f=r(i),c=n(1),s=r(c),l=function(t,e){return(0,f.default)(function(n){var r;return o({},(0,a.default)(n,[t]),(r={},r[e]=n[t],r))})};e.default=(0,s.default)(l,"renameProp")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u=n(11),a=r(u),i=n(12),f=r(i),c=n(4),s=r(c),l=n(1),p=r(l),d=Object.keys,h=function(t,e){return d(t).reduce(function(n,r){var o=t[r];return n[e(o,r)]=o,n},{})},y=function(t){return(0,s.default)(function(e){return o({},(0,a.default)(e,d(t)),h((0,f.default)(e,d(t)),function(e,n){return t[n]}))})};e.default=(0,p.default)(y,"renameProps")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(1),u=r(o),a=n(2),i=r(a),f=function(t){return function(e){var n=(0,i.default)(t),r=function(t){return n(t)};return r}};e.default=(0,u.default)(f,"renderComponent",!1)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(1),u=r(o),a=function(t){var e=function(){return null};return e.displayName="Nothing",e};e.default=(0,u.default)(a,"renderNothing",!1,!0)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(9),u=r(o),a=n(1),i=r(a),f=function(t){return(0,u.default)("displayName",t)};e.default=(0,i.default)(f,"setDisplayName",!1)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(9),u=r(o),a=n(1),i=r(a),f=function(t){return(0,u.default)("propTypes",t)};e.default=(0,i.default)(f,"setPropTypes",!1)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var i=n(3),f=r(i),c=n(7),s=r(c),l=n(8),p=r(l),d=function(t){if((0,p.default)(t))return t;var e=function(e){function n(){return o(this,n),u(this,e.apply(this,arguments))}return a(n,e),n.prototype.render=function(){return"string"==typeof t?f.default.createElement("baseComponent",this.props):t(this.props,this.context)},n}(i.Component);return e.displayName=(0,s.default)(t),e.propTypes=t.propTypes,e.contextTypes=t.contextTypes,e.defaultProps=t.defaultProps,e};e.default=d},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var i=n(3),f=n(1),c=r(f),s=n(2),l=r(s),p=function(t,e){return function(n){var r=(0,l.default)(n),f=function(t){function n(){var r,a,i;o(this,n);for(var f=arguments.length,c=Array(f),s=0;f>s;s++)c[s]=arguments[s];return r=a=u(this,t.call.apply(t,[this].concat(c))),a.getChildContext=function(){return e(a.props)},i=r,u(a,i)}return a(n,t),n.prototype.render=function(){return r(this.props)},n}(i.Component);return f.childContextTypes=t,f}};e.default=(0,c.default)(p,"withContext")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var i=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},f=n(3),c=n(2),s=r(c),l=n(1),p=r(l),d=function(t,e){var n=[],r=0;for(var o in t)t.hasOwnProperty(o)&&(r+=1,n[o]=e(t[o],o,r));return n},h=function(t){return function(e){var n,r,c,l=(0,s.default)(e);return r=n=function(t){function e(){var n,r,a;o(this,e);for(var i=arguments.length,f=Array(i),s=0;i>s;s++)f[s]=arguments[s];return n=r=u(this,t.call.apply(t,[this].concat(f))),c.call(r),a=n,u(r,a)}return a(e,t),e.prototype.componentWillReceiveProps=function(){this.cachedHandlers={}},e.prototype.render=function(){return l(i({},this.props,this.handlers))},e}(f.Component),c=function(){var e=this;this.cachedHandlers={},this.handlers=d(t,function(t,n){return function(){var r=e.cachedHandlers[n];if(r)return r.apply(void 0,arguments);var o=t(e.props);return e.cachedHandlers[n]=o,o.apply(void 0,arguments)}})},r}};e.default=(0,p.default)(h,"withHandlers")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u=n(1),a=r(u),i=n(4),f=r(i),c=function(t){return(0,f.default)(function(e){return o({},e,"function"==typeof t?t(e):t)})};e.default=(0,a.default)(c,"withProps")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var i=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},f=n(3),c=n(12),s=r(c),l=n(6),p=r(l),d=n(1),h=r(d),y=n(2),_=r(y),b=function(t,e){return function(n){var r=(0,_.default)(n),c="function"==typeof t?t:function(e,n){return!(0,p.default)((0,s.default)(e,t),(0,s.default)(n,t))};return function(t){function n(){var r,a,i;o(this,n);for(var f=arguments.length,c=Array(f),s=0;f>s;s++)c[s]=arguments[s];return r=a=u(this,t.call.apply(t,[this].concat(c))),a.computedProps=e(a.props),i=r,u(a,i)}return a(n,t),n.prototype.componentWillReceiveProps=function(t){c(this.props,t)&&(this.computedProps=e(t))},n.prototype.render=function(){return r(i({},this.props,this.computedProps))},n}(f.Component)}};e.default=(0,h.default)(b,"withPropsOnChange")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var i=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},f=n(3),c=n(1),s=r(c),l=n(2),p=r(l),d=function(t,e,n,r){return function(c){var s=(0,p.default)(c);return function(f){function c(){var t,e,a;o(this,c);for(var i=arguments.length,s=Array(i),l=0;i>l;l++)s[l]=arguments[l];return t=e=u(this,f.call.apply(f,[this].concat(s))),e.state={stateValue:"function"==typeof r?r(e.props):r},e.dispatch=function(t){return e.setState(function(e){var r=e.stateValue;return{stateValue:n(r,t)}})},a=t,u(e,a)}return a(c,f),c.prototype.render=function(){var n;return s(i({},this.props,(n={},n[t]=this.state.stateValue,n[e]=this.dispatch,n)))},c}(f.Component)}};e.default=(0,s.default)(d,"withReducer")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var i=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},f=n(3),c=n(1),s=r(c),l=n(2),p=r(l),d=function(t,e,n){return function(r){var c=(0,p.default)(r);return function(r){function f(){var t,e,a;o(this,f);for(var i=arguments.length,c=Array(i),s=0;i>s;s++)c[s]=arguments[s];return t=e=u(this,r.call.apply(r,[this].concat(c))),e.state={stateValue:"function"==typeof n?n(e.props):n},e.updateStateValue=function(t,n){return e.setState(function(e){var n=e.stateValue;return{stateValue:"function"==typeof t?t(n):t}},n)},a=t,u(e,a)}return a(f,r),f.prototype.render=function(){var n;return c(i({},this.props,(n={},n[t]=this.state.stateValue,n[e]=this.updateStateValue,n)))},f}(f.Component)}};e.default=(0,s.default)(d,"withState")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(7),u=r(o),a=function(t,e){return e+"("+(0,u.default)(t)+")"};e.default=a},function(t,e){"use strict";function n(t,e){return t===e?0!==t||1/t===1/e:t!==t&&e!==e}function r(t,e){if(n(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var r=Object.keys(t),u=Object.keys(e);if(r.length!==u.length)return!1;for(var a=0;r.length>a;a++)if(!o.call(e,r[a])||!n(t[r[a]],e[r[a]]))return!1;return!0}var o=Object.prototype.hasOwnProperty;t.exports=r},function(t,e){"use strict";var n={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0};t.exports=function(t,e){if("string"!=typeof e)for(var o=Object.getOwnPropertyNames(e),u=0;o.length>u;++u)if(!n[o[u]]&&!r[o[u]])try{t[o[u]]=e[o[u]]}catch(a){}return t}},function(t,e){"use strict";t.exports=function(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}}])}); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.Recompose=e(require("react")):t.Recompose=e(t.React)}(this,function(t){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){t.exports=n(29)},function(t,e,n){"use strict";e.__esModule=!0;var r=function(t,e){return t};e.default=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(18),u=r(o),a=n(16),i=r(a),f=function(t){var e=(0,i.default)(t);return function(n,r){return(0,u.default)(!1,e,t,n,r)}};e.default=f},function(e,n){e.exports=t},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(1),u=r(o),a=n(2),i=r(a),f=function(t){return function(e){var n=(0,i.default)(e);return function(e){return n(t(e))}}};e.default=(0,u.default)(f,"mapProps")},function(t,e){"use strict";e.__esModule=!0;var n={fromESObservable:null,toESObservable:null},r=function(t){n=t};e.config={fromESObservable:function(t){return"function"==typeof n.fromESObservable?n.fromESObservable(t):t},toESObservable:function(t){return"function"==typeof n.toESObservable?n.toESObservable(t):t}};e.default=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(49),u=r(o);e.default=u.default},function(t,e){"use strict";e.__esModule=!0;var n=function(t){if("string"==typeof t)return t;if(t)return t.displayName||t.name||"Component"};e.default=n},function(t,e){"use strict";e.__esModule=!0;var n=function(t){return!(!t||!t.prototype||"object"!=typeof t.prototype.isReactComponent)};e.default=n},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(1),u=r(o),a=function(t,e){return function(n){return n[t]=e,n}};e.default=(0,u.default)(a,"setStatic",!1)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var i=n(3),f=n(1),c=r(f),s=n(2),l=r(s),p=function(t){return function(e){var n=(0,l.default)(e);return function(e){function r(){return o(this,r),u(this,e.apply(this,arguments))}return a(r,e),r.prototype.shouldComponentUpdate=function(e){return t(this.props,e)},r.prototype.render=function(){return n(this.props)},r}(i.Component)}};e.default=(0,c.default)(p,"shouldUpdate")},function(t,e){"use strict";function n(t,e){var n={};for(var r in t)e.indexOf(r)<0&&Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}e.__esModule=!0;var r=function(t,e){for(var r=n(t,[]),o=0;e.length>o;o++){var u=e[o];r.hasOwnProperty(u)&&delete r[u]}return r};e.default=r},function(t,e){"use strict";e.__esModule=!0;var n=function(t,e){for(var n={},r=0;e.length>r;r++){var o=e[r];t.hasOwnProperty(o)&&(n[o]=t[o])}return n};e.default=n},function(t,e,n){(function(e){"use strict";t.exports=n(51)(e||window||this)}).call(e,function(){return this}())},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0,e.componentFromStreamWithConfig=void 0;var i=n(3),f=n(19),c=n(13),s=r(c),l=n(5),p=e.componentFromStreamWithConfig=function(t){return function(e){return function(n){function r(){var a,i,c,l;o(this,r);for(var p=arguments.length,d=Array(p),h=0;p>h;h++)d[h]=arguments[h];return i=c=u(this,n.call.apply(n,[this].concat(d))),c.state={vdom:null},c.propsEmitter=(0,f.createChangeEmitter)(),c.props$=t.fromESObservable((a={subscribe:function(t){var e=c.propsEmitter.listen(function(e){return t.next(e)});return{unsubscribe:e}}},a[s.default]=function(){return this},a)),c.vdom$=t.toESObservable(e(c.props$)),l=i,u(c,l)}return a(r,n),r.prototype.componentWillMount=function(){var t=this;this.subscription=this.vdom$.subscribe({next:function(e){t.setState({vdom:e})}}),this.propsEmitter.emit(this.props)},r.prototype.componentWillReceiveProps=function(t){this.propsEmitter.emit(t)},r.prototype.shouldComponentUpdate=function(t,e){return e.vdom!==this.state.vdom},r.prototype.componentWillUnmount=function(){this.subscription.unsubscribe()},r.prototype.render=function(){return this.state.vdom},r}(i.Component)}},d=p(l.config);e.default=d},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(18),u=r(o),a=n(16),i=r(a),f=function(t,e,n){var r=(0,i.default)(t),o=e&&e.hasOwnProperty("key");return(0,u.default)(o,r,t,e,n)};e.default=f},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(8),u=r(o),a=function(t){return!("function"!=typeof t||(0,u.default)(t)||t.defaultProps||t.contextTypes||t.propTypes)};e.default=a},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(10),u=r(o),a=n(6),i=r(a),f=n(1),c=r(f),s=n(12),l=r(s),p=function(t){return(0,u.default)(function(e,n){return!(0,i.default)((0,l.default)(n,t),(0,l.default)(e,t))})};e.default=(0,c.default)(p,"onlyUpdateForKeys")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u=n(3),a=r(u),i=function(t,e,n,r,u){if(!t&&e)return n(u?o({},r,{children:u}):r);var i=n;return u?a.default.createElement(i,r,u):a.default.createElement(i,r)};e.default=i},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.createChangeEmitter=function(){function t(){o===r&&(o=r.slice())}function e(e){if("function"!=typeof e)throw Error("Expected listener to be a function.");var n=!0;return t(),o.push(e),function(){if(n){n=!1,t();var r=o.indexOf(e);o.splice(r,1)}}}function n(){r=o;for(var t=r,e=0;t.length>e;e++)t[e].apply(t,arguments)}var r=[],o=r;return{listen:e,emit:n}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var i=n(3),f=r(i),c=n(1),s=r(c),l=n(2),p=r(l),d=function(t,e,n){return function(r){return function(i){function f(t,e){o(this,f);var n=u(this,i.call(this,t,e));return n.LeftComponent=null,n.RightComponent=null,n.computeChildComponent(n.props),n}return a(f,i),f.prototype.computeChildComponent=function(o){t(o)?(this.leftFactory=this.leftFactory||(0,p.default)(e(r)),this.factory=this.leftFactory):(this.rightFactory=this.rightFactory||(0,p.default)(n(r)),this.factory=this.rightFactory)},f.prototype.componentWillReceiveProps=function(t){this.computeChildComponent(t)},f.prototype.render=function(){return this.factory(this.props)},f}(f.default.Component)}};e.default=(0,s.default)(d,"branch")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(11),u=r(o),a=n(15),i=r(a),f=function(t){var e=function(e){return(0,i.default)(e[t],(0,u.default)(e,[t]))};return e.displayName="componentFromProp("+t+")",e};e.default=f},function(t,e){"use strict";function n(){for(var t=arguments.length,e=Array(t),n=0;t>n;n++)e[n]=arguments[n];if(0===e.length)return function(t){return t};if(1===e.length)return e[0];var r=e[e.length-1];return function(){for(var t=r.apply(void 0,arguments),n=e.length-2;n>=0;n--){var o=e[n];t=o(t)}return t}}e.__esModule=!0,e.default=n},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0,e.createEventHandlerWithConfig=void 0;var o=n(13),u=r(o),a=n(19),i=n(5),f=e.createEventHandlerWithConfig=function(t){return function(){var e,n=(0,a.createChangeEmitter)(),r=t.fromESObservable((e={subscribe:function(t){var e=n.listen(function(e){return t.next(e)});return{unsubscribe:e}}},e[u.default]=function(){return this},e));return{handler:n.emit,stream:r}}},c=f(i.config);e.default=c},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var a=n(3),i=function(t){return function(e){function n(){return r(this,n),o(this,e.apply(this,arguments))}return u(n,e),n.prototype.componentWillMount=function(){t(this.props)},n.prototype.componentWillReceiveProps=function(e){t(e)},n.prototype.render=function(){return null},n}(a.Component)};e.default=i},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(1),u=r(o),a=n(2),i=r(a),f=function(t){return function(e){var n=(0,i.default)(e),r=function(t){return n(t)};return r.defaultProps=t,r}};e.default=(0,u.default)(f,"defaultProps")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u=n(1),a=r(u),i=n(2),f=r(i),c=function(t){return function(e){var n=(0,f.default)(e);return function(e){return n(o({},e,e[t]))}}};e.default=(0,a.default)(c,"flattenProp")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u=n(1),a=r(u),i=n(2),f=r(i),c=function(t){return function(e){var n=(0,f.default)(e),r=function(t,e){return n(o({},t,e))};return r.contextTypes=t,r}};e.default=(0,a.default)(c,"getContext")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(50),u=r(o),a=function(t){return function(e){var n=t(e);return(0,u.default)(n,e),n}};e.default=a},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0,e.setObservableConfig=e.createEventHandler=e.mapPropsStream=e.componentFromStream=e.hoistStatics=e.nest=e.componentFromProp=e.createSink=e.createEagerFactory=e.createEagerElement=e.isClassComponent=e.shallowEqual=e.wrapDisplayName=e.getDisplayName=e.compose=e.setDisplayName=e.setPropTypes=e.setStatic=e.toClass=e.lifecycle=e.getContext=e.withContext=e.onlyUpdateForPropTypes=e.onlyUpdateForKeys=e.pure=e.shouldUpdate=e.renderNothing=e.renderComponent=e.branch=e.withReducer=e.withState=e.flattenProp=e.renameProps=e.renameProp=e.defaultProps=e.withHandlers=e.withPropsOnChange=e.withProps=e.mapProps=void 0;var o=n(4),u=r(o),a=n(44),i=r(a),f=n(45),c=r(f),s=n(43),l=r(s),p=n(25),d=r(p),h=n(35),y=r(h),v=n(36),b=r(v),_=n(26),m=r(_),O=n(47),w=r(O),g=n(46),P=r(g),M=n(20),j=r(M),E=n(37),C=r(E),S=n(38),x=r(S),T=n(10),R=r(T),F=n(34),N=r(F),W=n(17),U=r(W),H=n(33),V=r(H),A=n(42),D=r(A),k=n(27),q=r(k),$=n(30),K=r($),L=n(41),z=r(L),B=n(9),G=r(B),I=n(40),J=r(I),Q=n(39),X=r(Q),Y=n(22),Z=r(Y),tt=n(7),et=r(tt),nt=n(48),rt=r(nt),ot=n(6),ut=r(ot),at=n(8),it=r(at),ft=n(15),ct=r(ft),st=n(2),lt=r(st),pt=n(24),dt=r(pt),ht=n(21),yt=r(ht),vt=n(32),bt=r(vt),_t=n(28),mt=r(_t),Ot=n(14),wt=r(Ot),gt=n(31),Pt=r(gt),Mt=n(23),jt=r(Mt),Et=n(5),Ct=r(Et);e.mapProps=u.default,e.withProps=i.default,e.withPropsOnChange=c.default,e.withHandlers=l.default,e.defaultProps=d.default,e.renameProp=y.default,e.renameProps=b.default,e.flattenProp=m.default,e.withState=w.default,e.withReducer=P.default,e.branch=j.default,e.renderComponent=C.default,e.renderNothing=x.default,e.shouldUpdate=R.default,e.pure=N.default,e.onlyUpdateForKeys=U.default,e.onlyUpdateForPropTypes=V.default,e.withContext=D.default,e.getContext=q.default,e.lifecycle=K.default,e.toClass=z.default,e.setStatic=G.default,e.setPropTypes=J.default,e.setDisplayName=X.default,e.compose=Z.default,e.getDisplayName=et.default,e.wrapDisplayName=rt.default,e.shallowEqual=ut.default,e.isClassComponent=it.default,e.createEagerElement=ct.default,e.createEagerFactory=lt.default,e.createSink=dt.default,e.componentFromProp=yt.default,e.nest=bt.default,e.hoistStatics=mt.default,e.componentFromStream=wt.default,e.mapPropsStream=Pt.default,e.createEventHandler=jt.default,e.setObservableConfig=Ct.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u=n(3),a=n(1),i=r(a),f=n(2),c=r(f),s=function(t){return function(e){var n=(0,c.default)(e);return(0,u.createClass)(o({},t,{render:function(){return n(o({},this.props,this.state))}}))}};e.default=(0,i.default)(s,"lifecycle")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0,e.mapPropsStreamWithConfig=void 0;var o=n(13),u=r(o),a=n(2),i=r(a),f=n(1),c=r(f),s=n(14),l=n(5),p=function(t){return t},d=(0,s.componentFromStreamWithConfig)({fromESObservable:p,toESObservable:p}),h=e.mapPropsStreamWithConfig=function(t){return function(e){return function(n){var r=(0,i.default)(n),o=t.fromESObservable,a=t.toESObservable;return d(function(t){var n;return n={subscribe:function(n){var u=a(e(o(t))).subscribe({next:function(t){return n.next(r(t))}});return{unsubscribe:function(){return u.unsubscribe()}}}},n[u.default]=function(){return this},n})}}},y=h(l.config);e.default=(0,c.default)(y,"mapPropsStream")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){var n={};for(var r in t)e.indexOf(r)<0&&Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}e.__esModule=!0;var u=n(2),a=r(u),i=function(){for(var t=arguments.length,e=Array(t),n=0;t>n;n++)e[n]=arguments[n];var r=e.map(a.default),u=function(t){var e=o(t,[]),n=t.children;return r.reduceRight(function(t,n){return n(e,t)},n)};return u};e.default=i},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(17),u=r(o),a=n(1),i=r(a),f=function(t){var e=t.propTypes,n=Object.keys(e||{}),r=(0,u.default)(n)(t);return r};e.default=(0,i.default)(f,"onlyUpdateForPropTypes",!0,!0)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(10),u=r(o),a=n(6),i=r(a),f=n(1),c=r(f),s=(0,u.default)(function(t,e){return!(0,i.default)(t,e)});e.default=(0,c.default)(s,"pure",!0,!0)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u=n(11),a=r(u),i=n(4),f=r(i),c=n(1),s=r(c),l=function(t,e){return(0,f.default)(function(n){var r;return o({},(0,a.default)(n,[t]),(r={},r[e]=n[t],r))})};e.default=(0,s.default)(l,"renameProp")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u=n(11),a=r(u),i=n(12),f=r(i),c=n(4),s=r(c),l=n(1),p=r(l),d=Object.keys,h=function(t,e){return d(t).reduce(function(n,r){var o=t[r];return n[e(o,r)]=o,n},{})},y=function(t){return(0,s.default)(function(e){return o({},(0,a.default)(e,d(t)),h((0,f.default)(e,d(t)),function(e,n){return t[n]}))})};e.default=(0,p.default)(y,"renameProps")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(1),u=r(o),a=n(2),i=r(a),f=function(t){return function(e){var n=(0,i.default)(t),r=function(t){return n(t)};return r}};e.default=(0,u.default)(f,"renderComponent",!1)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(1),u=r(o),a=function(t){var e=function(){return null};return e.displayName="Nothing",e};e.default=(0,u.default)(a,"renderNothing",!1,!0)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(9),u=r(o),a=n(1),i=r(a),f=function(t){return(0,u.default)("displayName",t)};e.default=(0,i.default)(f,"setDisplayName",!1)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(9),u=r(o),a=n(1),i=r(a),f=function(t){return(0,u.default)("propTypes",t)};e.default=(0,i.default)(f,"setPropTypes",!1)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var i=n(3),f=r(i),c=n(7),s=r(c),l=n(8),p=r(l),d=function(t){if((0,p.default)(t))return t;var e=function(e){function n(){return o(this,n),u(this,e.apply(this,arguments))}return a(n,e),n.prototype.render=function(){return"string"==typeof t?f.default.createElement("baseComponent",this.props):t(this.props,this.context)},n}(i.Component);return e.displayName=(0,s.default)(t),e.propTypes=t.propTypes,e.contextTypes=t.contextTypes,e.defaultProps=t.defaultProps,e};e.default=d},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var i=n(3),f=n(1),c=r(f),s=n(2),l=r(s),p=function(t,e){return function(n){var r=(0,l.default)(n),f=function(t){function n(){var r,a,i;o(this,n);for(var f=arguments.length,c=Array(f),s=0;f>s;s++)c[s]=arguments[s];return r=a=u(this,t.call.apply(t,[this].concat(c))),a.getChildContext=function(){return e(a.props)},i=r,u(a,i)}return a(n,t),n.prototype.render=function(){return r(this.props)},n}(i.Component);return f.childContextTypes=t,f}};e.default=(0,c.default)(p,"withContext")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var i=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},f=n(3),c=n(2),s=r(c),l=n(1),p=r(l),d=function(t,e){var n=[],r=0;for(var o in t)t.hasOwnProperty(o)&&(r+=1,n[o]=e(t[o],o,r));return n},h=function(t){return function(e){var n,r,c,l=(0,s.default)(e);return r=n=function(t){function e(){var n,r,a;o(this,e);for(var i=arguments.length,f=Array(i),s=0;i>s;s++)f[s]=arguments[s];return n=r=u(this,t.call.apply(t,[this].concat(f))),c.call(r),a=n,u(r,a)}return a(e,t),e.prototype.componentWillReceiveProps=function(){this.cachedHandlers={}},e.prototype.render=function(){return l(i({},this.props,this.handlers))},e}(f.Component),c=function(){var e=this;this.cachedHandlers={},this.handlers=d(t,function(t,n){return function(){var r=e.cachedHandlers[n];if(r)return r.apply(void 0,arguments);var o=t(e.props);return e.cachedHandlers[n]=o,o.apply(void 0,arguments)}})},r}};e.default=(0,p.default)(h,"withHandlers")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u=n(1),a=r(u),i=n(4),f=r(i),c=function(t){return(0,f.default)(function(e){return o({},e,"function"==typeof t?t(e):t)})};e.default=(0,a.default)(c,"withProps")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var i=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},f=n(3),c=n(12),s=r(c),l=n(6),p=r(l),d=n(1),h=r(d),y=n(2),v=r(y),b=function(t,e){return function(n){var r=(0,v.default)(n),c="function"==typeof t?t:function(e,n){return!(0,p.default)((0,s.default)(e,t),(0,s.default)(n,t))};return function(t){function n(){var r,a,i;o(this,n);for(var f=arguments.length,c=Array(f),s=0;f>s;s++)c[s]=arguments[s];return r=a=u(this,t.call.apply(t,[this].concat(c))),a.computedProps=e(a.props),i=r,u(a,i)}return a(n,t),n.prototype.componentWillReceiveProps=function(t){c(this.props,t)&&(this.computedProps=e(t))},n.prototype.render=function(){return r(i({},this.props,this.computedProps))},n}(f.Component)}};e.default=(0,h.default)(b,"withPropsOnChange")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var i=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},f=n(3),c=n(1),s=r(c),l=n(2),p=r(l),d=function(t,e,n,r){return function(c){var s=(0,p.default)(c);return function(f){function c(){var t,e,a;o(this,c);for(var i=arguments.length,s=Array(i),l=0;i>l;l++)s[l]=arguments[l];return t=e=u(this,f.call.apply(f,[this].concat(s))),e.state={stateValue:"function"==typeof r?r(e.props):r},e.dispatch=function(t){return e.setState(function(e){var r=e.stateValue;return{stateValue:n(r,t)}})},a=t,u(e,a)}return a(c,f),c.prototype.render=function(){var n;return s(i({},this.props,(n={},n[t]=this.state.stateValue,n[e]=this.dispatch,n)))},c}(f.Component)}};e.default=(0,s.default)(d,"withReducer")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var i=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},f=n(3),c=n(1),s=r(c),l=n(2),p=r(l),d=function(t,e,n){return function(r){var c=(0,p.default)(r);return function(r){function f(){var t,e,a;o(this,f);for(var i=arguments.length,c=Array(i),s=0;i>s;s++)c[s]=arguments[s];return t=e=u(this,r.call.apply(r,[this].concat(c))),e.state={stateValue:"function"==typeof n?n(e.props):n},e.updateStateValue=function(t,n){return e.setState(function(e){var n=e.stateValue;return{stateValue:"function"==typeof t?t(n):t}},n)},a=t,u(e,a)}return a(f,r),f.prototype.render=function(){var n;return c(i({},this.props,(n={},n[t]=this.state.stateValue,n[e]=this.updateStateValue,n)))},f}(f.Component)}};e.default=(0,s.default)(d,"withState")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(7),u=r(o),a=function(t,e){return e+"("+(0,u.default)(t)+")"};e.default=a},function(t,e){"use strict";function n(t,e){return t===e?0!==t||1/t===1/e:t!==t&&e!==e}function r(t,e){if(n(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var r=Object.keys(t),u=Object.keys(e);if(r.length!==u.length)return!1;for(var a=0;r.length>a;a++)if(!o.call(e,r[a])||!n(t[r[a]],e[r[a]]))return!1;return!0}var o=Object.prototype.hasOwnProperty;t.exports=r},function(t,e){"use strict";var n={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0};t.exports=function(t,e){if("string"!=typeof e)for(var o=Object.getOwnPropertyNames(e),u=0;o.length>u;++u)if(!n[o[u]]&&!r[o[u]])try{t[o[u]]=e[o[u]]}catch(a){}return t}},function(t,e){"use strict";t.exports=function(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}}])}); |
'use strict'; | ||
exports.__esModule = true; | ||
exports.componentFromStreamWithConfig = undefined; | ||
@@ -23,69 +24,73 @@ var _react = require('react'); | ||
var componentFromStream = function componentFromStream(propsToVdom) { | ||
return function (_Component) { | ||
_inherits(ComponentFromStream, _Component); | ||
var componentFromStreamWithConfig = exports.componentFromStreamWithConfig = function componentFromStreamWithConfig(config) { | ||
return function (propsToVdom) { | ||
return function (_Component) { | ||
_inherits(ComponentFromStream, _Component); | ||
function ComponentFromStream() { | ||
var _fromESObservable; | ||
function ComponentFromStream() { | ||
var _config$fromESObserva; | ||
var _temp, _this, _ret; | ||
var _temp, _this, _ret; | ||
_classCallCheck(this, ComponentFromStream); | ||
_classCallCheck(this, ComponentFromStream); | ||
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { | ||
args[_key] = arguments[_key]; | ||
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { | ||
args[_key] = arguments[_key]; | ||
} | ||
return _ret = (_temp = (_this = _possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.state = { vdom: null }, _this.propsEmitter = (0, _changeEmitter.createChangeEmitter)(), _this.props$ = config.fromESObservable((_config$fromESObserva = { | ||
subscribe: function subscribe(observer) { | ||
var unsubscribe = _this.propsEmitter.listen(function (props) { | ||
return observer.next(props); | ||
}); | ||
return { unsubscribe: unsubscribe }; | ||
} | ||
}, _config$fromESObserva[_symbolObservable2.default] = function () { | ||
return this; | ||
}, _config$fromESObserva)), _this.vdom$ = config.toESObservable(propsToVdom(_this.props$)), _temp), _possibleConstructorReturn(_this, _ret); | ||
} | ||
return _ret = (_temp = (_this = _possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.state = { vdom: null }, _this.propsEmitter = (0, _changeEmitter.createChangeEmitter)(), _this.props$ = (0, _setObservableConfig.fromESObservable)((_fromESObservable = { | ||
subscribe: function subscribe(observer) { | ||
var unsubscribe = _this.propsEmitter.listen(function (props) { | ||
return observer.next(props); | ||
}); | ||
return { unsubscribe: unsubscribe }; | ||
} | ||
}, _fromESObservable[_symbolObservable2.default] = function () { | ||
return this; | ||
}, _fromESObservable)), _this.vdom$ = (0, _setObservableConfig.toESObservable)(propsToVdom(_this.props$)), _temp), _possibleConstructorReturn(_this, _ret); | ||
} | ||
// Stream of props | ||
// Stream of props | ||
// Stream of vdom | ||
// Stream of vdom | ||
ComponentFromStream.prototype.componentWillMount = function componentWillMount() { | ||
var _this2 = this; | ||
ComponentFromStream.prototype.componentWillMount = function componentWillMount() { | ||
var _this2 = this; | ||
// Subscribe to child prop changes so we know when to re-render | ||
this.subscription = this.vdom$.subscribe({ | ||
next: function next(vdom) { | ||
_this2.setState({ vdom: vdom }); | ||
} | ||
}); | ||
this.propsEmitter.emit(this.props); | ||
}; | ||
// Subscribe to child prop changes so we know when to re-render | ||
this.subscription = this.vdom$.subscribe({ | ||
next: function next(vdom) { | ||
_this2.setState({ vdom: vdom }); | ||
} | ||
}); | ||
this.propsEmitter.emit(this.props); | ||
}; | ||
ComponentFromStream.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { | ||
// Receive new props from the owner | ||
this.propsEmitter.emit(nextProps); | ||
}; | ||
ComponentFromStream.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { | ||
// Receive new props from the owner | ||
this.propsEmitter.emit(nextProps); | ||
}; | ||
ComponentFromStream.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) { | ||
return nextState.vdom !== this.state.vdom; | ||
}; | ||
ComponentFromStream.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) { | ||
return nextState.vdom !== this.state.vdom; | ||
}; | ||
ComponentFromStream.prototype.componentWillUnmount = function componentWillUnmount() { | ||
// Clean-up subscription before un-mounting | ||
this.subscription.unsubscribe(); | ||
}; | ||
ComponentFromStream.prototype.componentWillUnmount = function componentWillUnmount() { | ||
// Clean-up subscription before un-mounting | ||
this.subscription.unsubscribe(); | ||
}; | ||
ComponentFromStream.prototype.render = function render() { | ||
return this.state.vdom; | ||
}; | ||
ComponentFromStream.prototype.render = function render() { | ||
return this.state.vdom; | ||
}; | ||
return ComponentFromStream; | ||
}(_react.Component); | ||
return ComponentFromStream; | ||
}(_react.Component); | ||
}; | ||
}; | ||
var componentFromStream = componentFromStreamWithConfig(_setObservableConfig.config); | ||
exports.default = componentFromStream; |
'use strict'; | ||
exports.__esModule = true; | ||
exports.createEventHandlerWithConfig = undefined; | ||
@@ -15,22 +16,26 @@ var _symbolObservable = require('symbol-observable'); | ||
var createEventHandler = function createEventHandler() { | ||
var _fromESObservable; | ||
var createEventHandlerWithConfig = exports.createEventHandlerWithConfig = function createEventHandlerWithConfig(config) { | ||
return function () { | ||
var _config$fromESObserva; | ||
var emitter = (0, _changeEmitter.createChangeEmitter)(); | ||
var stream = (0, _setObservableConfig.fromESObservable)((_fromESObservable = { | ||
subscribe: function subscribe(observer) { | ||
var unsubscribe = emitter.listen(function (value) { | ||
return observer.next(value); | ||
}); | ||
return { unsubscribe: unsubscribe }; | ||
} | ||
}, _fromESObservable[_symbolObservable2.default] = function () { | ||
return this; | ||
}, _fromESObservable)); | ||
return { | ||
handler: emitter.emit, | ||
stream: stream | ||
var emitter = (0, _changeEmitter.createChangeEmitter)(); | ||
var stream = config.fromESObservable((_config$fromESObserva = { | ||
subscribe: function subscribe(observer) { | ||
var unsubscribe = emitter.listen(function (value) { | ||
return observer.next(value); | ||
}); | ||
return { unsubscribe: unsubscribe }; | ||
} | ||
}, _config$fromESObserva[_symbolObservable2.default] = function () { | ||
return this; | ||
}, _config$fromESObserva)); | ||
return { | ||
handler: emitter.emit, | ||
stream: stream | ||
}; | ||
}; | ||
}; | ||
var createEventHandler = createEventHandlerWithConfig(_setObservableConfig.config); | ||
exports.default = createEventHandler; |
'use strict'; | ||
exports.__esModule = true; | ||
exports.mapPropsStreamWithConfig = undefined; | ||
@@ -19,4 +20,2 @@ var _symbolObservable = require('symbol-observable'); | ||
var _componentFromStream2 = _interopRequireDefault(_componentFromStream); | ||
var _setObservableConfig = require('./setObservableConfig'); | ||
@@ -26,28 +25,43 @@ | ||
var mapPropsStream = function mapPropsStream(transform) { | ||
return function (BaseComponent) { | ||
var factory = (0, _createEagerFactory2.default)(BaseComponent); | ||
return (0, _componentFromStream2.default)(function (ownerProps$) { | ||
var _ref; | ||
var identity = function identity(t) { | ||
return t; | ||
}; | ||
var componentFromStream = (0, _componentFromStream.componentFromStreamWithConfig)({ | ||
fromESObservable: identity, | ||
toESObservable: identity | ||
}); | ||
return _ref = { | ||
subscribe: function subscribe(observer) { | ||
var subscription = (0, _setObservableConfig.toESObservable)(transform(ownerProps$)).subscribe({ | ||
next: function next(childProps) { | ||
return observer.next(factory(childProps)); | ||
} | ||
}); | ||
return { | ||
unsubscribe: function unsubscribe() { | ||
return subscription.unsubscribe(); | ||
} | ||
}; | ||
} | ||
}, _ref[_symbolObservable2.default] = function () { | ||
return this; | ||
}, _ref; | ||
}); | ||
var mapPropsStreamWithConfig = exports.mapPropsStreamWithConfig = function mapPropsStreamWithConfig(config) { | ||
return function (transform) { | ||
return function (BaseComponent) { | ||
var factory = (0, _createEagerFactory2.default)(BaseComponent); | ||
var fromESObservable = config.fromESObservable; | ||
var toESObservable = config.toESObservable; | ||
return componentFromStream(function (props$) { | ||
var _ref; | ||
return _ref = { | ||
subscribe: function subscribe(observer) { | ||
var subscription = toESObservable(transform(fromESObservable(props$))).subscribe({ | ||
next: function next(childProps) { | ||
return observer.next(factory(childProps)); | ||
} | ||
}); | ||
return { | ||
unsubscribe: function unsubscribe() { | ||
return subscription.unsubscribe(); | ||
} | ||
}; | ||
} | ||
}, _ref[_symbolObservable2.default] = function () { | ||
return this; | ||
}, _ref; | ||
}); | ||
}; | ||
}; | ||
}; | ||
var mapPropsStream = mapPropsStreamWithConfig(_setObservableConfig.config); | ||
exports.default = (0, _createHelper2.default)(mapPropsStream, 'mapPropsStream'); |
{ | ||
"name": "recompose", | ||
"version": "0.20.0", | ||
"version": "0.20.1", | ||
"author": "Andrew Clark <acdlite@me.com>", | ||
@@ -5,0 +5,0 @@ "repository": { |
'use strict'; | ||
exports.__esModule = true; | ||
var config = { | ||
var _config = { | ||
fromESObservable: null, | ||
@@ -9,14 +9,15 @@ toESObservable: null | ||
var fromESObservable = exports.fromESObservable = function fromESObservable(observable) { | ||
return typeof config.fromESObservable === 'function' ? config.fromESObservable(observable) : observable; | ||
var configureObservable = function configureObservable(c) { | ||
_config = c; | ||
}; | ||
var toESObservable = exports.toESObservable = function toESObservable(stream) { | ||
return typeof config.toESObservable === 'function' ? config.toESObservable(stream) : stream; | ||
var config = exports.config = { | ||
fromESObservable: function fromESObservable(observable) { | ||
return typeof _config.fromESObservable === 'function' ? _config.fromESObservable(observable) : observable; | ||
}, | ||
toESObservable: function toESObservable(stream) { | ||
return typeof _config.toESObservable === 'function' ? _config.toESObservable(stream) : stream; | ||
} | ||
}; | ||
var configureObservable = function configureObservable(c) { | ||
config = c; | ||
}; | ||
exports.default = configureObservable; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
468748
2875