UNPKG

louis-xiv

Version:
2 lines (1 loc) 1.54 kB
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],e):t.LouisXIV=e(t.React,t.ReactDOM)}(this,function(t,e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;var r=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},o=function(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};return function(t){function i(){var e,a;r(this,i);for(var c=arguments.length,s=Array(c),u=0;u<c;u++)s[u]=arguments[u];return e=a=o(this,t.call.apply(t,[this].concat(s))),a.state=n({},a.props.init),o(a,e)}return function(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)}(i,t),i.prototype.render=function(){var t=this,r=function(e,r){return t.setState(e,r)},n=function(r,n){return e.unstable_deferredUpdates(function(){return t.setState(r,n)})},o=this.props.map?this.props.map(this.state,r,n):this.state;return this.props.children(o,r,n)},i}(t.Component)});