@storybynumbers/jck-logo
Version:
1,202 lines (1,030 loc) • 78.1 kB
JavaScript
module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 9);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ (function(module, exports) {
// shim for using process in browser
var process = module.exports = {};
// cached from whatever global is present so that test runners that stub it
// don't break things. But we need to wrap it in a try catch in case it is
// wrapped in strict mode code which doesn't define any globals. It's inside a
// function because try/catches deoptimize in certain engines.
var cachedSetTimeout;
var cachedClearTimeout;
function defaultSetTimout() {
throw new Error('setTimeout has not been defined');
}
function defaultClearTimeout () {
throw new Error('clearTimeout has not been defined');
}
(function () {
try {
if (typeof setTimeout === 'function') {
cachedSetTimeout = setTimeout;
} else {
cachedSetTimeout = defaultSetTimout;
}
} catch (e) {
cachedSetTimeout = defaultSetTimout;
}
try {
if (typeof clearTimeout === 'function') {
cachedClearTimeout = clearTimeout;
} else {
cachedClearTimeout = defaultClearTimeout;
}
} catch (e) {
cachedClearTimeout = defaultClearTimeout;
}
} ())
function runTimeout(fun) {
if (cachedSetTimeout === setTimeout) {
//normal enviroments in sane situations
return setTimeout(fun, 0);
}
// if setTimeout wasn't available but was latter defined
if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
cachedSetTimeout = setTimeout;
return setTimeout(fun, 0);
}
try {
// when when somebody has screwed with setTimeout but no I.E. maddness
return cachedSetTimeout(fun, 0);
} catch(e){
try {
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
return cachedSetTimeout.call(null, fun, 0);
} catch(e){
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
return cachedSetTimeout.call(this, fun, 0);
}
}
}
function runClearTimeout(marker) {
if (cachedClearTimeout === clearTimeout) {
//normal enviroments in sane situations
return clearTimeout(marker);
}
// if clearTimeout wasn't available but was latter defined
if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
cachedClearTimeout = clearTimeout;
return clearTimeout(marker);
}
try {
// when when somebody has screwed with setTimeout but no I.E. maddness
return cachedClearTimeout(marker);
} catch (e){
try {
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
return cachedClearTimeout.call(null, marker);
} catch (e){
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
// Some versions of I.E. have different rules for clearTimeout vs setTimeout
return cachedClearTimeout.call(this, marker);
}
}
}
var queue = [];
var draining = false;
var currentQueue;
var queueIndex = -1;
function cleanUpNextTick() {
if (!draining || !currentQueue) {
return;
}
draining = false;
if (currentQueue.length) {
queue = currentQueue.concat(queue);
} else {
queueIndex = -1;
}
if (queue.length) {
drainQueue();
}
}
function drainQueue() {
if (draining) {
return;
}
var timeout = runTimeout(cleanUpNextTick);
draining = true;
var len = queue.length;
while(len) {
currentQueue = queue;
queue = [];
while (++queueIndex < len) {
if (currentQueue) {
currentQueue[queueIndex].run();
}
}
queueIndex = -1;
len = queue.length;
}
currentQueue = null;
draining = false;
runClearTimeout(timeout);
}
process.nextTick = function (fun) {
var args = new Array(arguments.length - 1);
if (arguments.length > 1) {
for (var i = 1; i < arguments.length; i++) {
args[i - 1] = arguments[i];
}
}
queue.push(new Item(fun, args));
if (queue.length === 1 && !draining) {
runTimeout(drainQueue);
}
};
// v8 likes predictible objects
function Item(fun, array) {
this.fun = fun;
this.array = array;
}
Item.prototype.run = function () {
this.fun.apply(null, this.array);
};
process.title = 'browser';
process.browser = true;
process.env = {};
process.argv = [];
process.version = ''; // empty string to avoid regexp issues
process.versions = {};
function noop() {}
process.on = noop;
process.addListener = noop;
process.once = noop;
process.off = noop;
process.removeListener = noop;
process.removeAllListeners = noop;
process.emit = noop;
process.prependListener = noop;
process.prependOnceListener = noop;
process.listeners = function (name) { return [] }
process.binding = function (name) {
throw new Error('process.binding is not supported');
};
process.cwd = function () { return '/' };
process.chdir = function (dir) {
throw new Error('process.chdir is not supported');
};
process.umask = function() { return 0; };
/***/ }),
/* 1 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
module.exports = ReactPropTypesSecret;
/***/ }),
/* 2 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
*/
function makeEmptyFunction(arg) {
return function () {
return arg;
};
}
/**
* This function accepts and discards inputs; it has no side effects. This is
* primarily useful idiomatically for overridable function endpoints which
* always need to be callable, since JS lacks a null-call idiom ala Cocoa.
*/
var emptyFunction = function emptyFunction() {};
emptyFunction.thatReturns = makeEmptyFunction;
emptyFunction.thatReturnsFalse = makeEmptyFunction(false);
emptyFunction.thatReturnsTrue = makeEmptyFunction(true);
emptyFunction.thatReturnsNull = makeEmptyFunction(null);
emptyFunction.thatReturnsThis = function () {
return this;
};
emptyFunction.thatReturnsArgument = function (arg) {
return arg;
};
module.exports = emptyFunction;
/***/ }),
/* 3 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(process) {/**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
/**
* Use invariant() to assert state which your program assumes to be true.
*
* Provide sprintf-style format (only %s is supported) and arguments
* to provide information about what broke and what you were
* expecting.
*
* The invariant message will be stripped in production, but the invariant
* will remain to ensure logic does not differ in production.
*/
var validateFormat = function validateFormat(format) {};
if (process.env.NODE_ENV !== 'production') {
validateFormat = function validateFormat(format) {
if (format === undefined) {
throw new Error('invariant requires an error message argument');
}
};
}
function invariant(condition, format, a, b, c, d, e, f) {
validateFormat(format);
if (!condition) {
var error;
if (format === undefined) {
error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
} else {
var args = [a, b, c, d, e, f];
var argIndex = 0;
error = new Error(format.replace(/%s/g, function () {
return args[argIndex++];
}));
error.name = 'Invariant Violation';
}
error.framesToPop = 1; // we don't care about invariant's own frame
throw error;
}
}
module.exports = invariant;
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
/***/ }),
/* 4 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(process) {/**
* Copyright (c) 2014-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
var emptyFunction = __webpack_require__(2);
/**
* Similar to invariant but only logs a warning if the condition is not met.
* This can be used to log issues in development environments in critical
* paths. Removing the logging code for production environments will keep the
* same logic and follow the same code paths.
*/
var warning = emptyFunction;
if (process.env.NODE_ENV !== 'production') {
var printWarning = function printWarning(format) {
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
args[_key - 1] = arguments[_key];
}
var argIndex = 0;
var message = 'Warning: ' + format.replace(/%s/g, function () {
return args[argIndex++];
});
if (typeof console !== 'undefined') {
console.error(message);
}
try {
// --- Welcome to debugging React ---
// This error was thrown as a convenience so that you can use this stack
// to find the callsite that caused this warning to fire.
throw new Error(message);
} catch (x) {}
};
warning = function warning(condition, format) {
if (format === undefined) {
throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');
}
if (format.indexOf('Failed Composite propType: ') === 0) {
return; // Ignore CompositeComponent proptype check.
}
if (!condition) {
for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
args[_key2 - 2] = arguments[_key2];
}
printWarning.apply(undefined, [format].concat(args));
}
};
}
module.exports = warning;
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
/***/ }),
/* 5 */
/***/ (function(module, exports, __webpack_require__) {
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
Copyright (c) 2016 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
/* global define */
(function () {
'use strict';
var hasOwn = {}.hasOwnProperty;
function classNames () {
var classes = [];
for (var i = 0; i < arguments.length; i++) {
var arg = arguments[i];
if (!arg) continue;
var argType = typeof arg;
if (argType === 'string' || argType === 'number') {
classes.push(arg);
} else if (Array.isArray(arg)) {
classes.push(classNames.apply(null, arg));
} else if (argType === 'object') {
for (var key in arg) {
if (hasOwn.call(arg, key) && arg[key]) {
classes.push(key);
}
}
}
}
return classes.join(' ');
}
if (typeof module !== 'undefined' && module.exports) {
module.exports = classNames;
} else if (true) {
// register as 'classnames', consistent with npm package name
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = function () {
return classNames;
}.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
} else {
window.classNames = classNames;
}
}());
/***/ }),
/* 6 */
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(process) {/**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
if (process.env.NODE_ENV !== 'production') {
var REACT_ELEMENT_TYPE = (typeof Symbol === 'function' &&
Symbol.for &&
Symbol.for('react.element')) ||
0xeac7;
var isValidElement = function(object) {
return typeof object === 'object' &&
object !== null &&
object.$$typeof === REACT_ELEMENT_TYPE;
};
// By explicitly using `prop-types` you are opting into new development behavior.
// http://fb.me/prop-types-in-prod
var throwOnDirectAccess = true;
module.exports = __webpack_require__(15)(isValidElement, throwOnDirectAccess);
} else {
// By explicitly using `prop-types` you are opting into new production behavior.
// http://fb.me/prop-types-in-prod
module.exports = __webpack_require__(14)();
}
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
/***/ }),
/* 7 */
/***/ (function(module, exports, __webpack_require__) {
// style-loader: Adds some css to the DOM by adding a <style> tag
// load the styles
var content = __webpack_require__(10);
if(typeof content === 'string') content = [[module.i, content, '']];
// Prepare cssTransformation
var transform;
var options = {}
options.transform = transform
// add the styles to the DOM
var update = __webpack_require__(16)(content, options);
if(content.locals) module.exports = content.locals;
// Hot Module Replacement
if(false) {
// When the styles change, update the <style> tags
if(!content.locals) {
module.hot.accept("!!../node_modules/css-loader/index.js??ref--1-1!../node_modules/sass-loader/lib/loader.js!./logo.scss", function() {
var newContent = require("!!../node_modules/css-loader/index.js??ref--1-1!../node_modules/sass-loader/lib/loader.js!./logo.scss");
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
update(newContent);
});
}
// When the module is disposed, remove the <style> tags
module.hot.dispose(function() { update(); });
}
/***/ }),
/* 8 */
/***/ (function(module, exports) {
module.exports = require("react");
/***/ }),
/* 9 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _react = __webpack_require__(8);
var _react2 = _interopRequireDefault(_react);
var _propTypes = __webpack_require__(6);
var _propTypes2 = _interopRequireDefault(_propTypes);
var _classnames = __webpack_require__(5);
var _classnames2 = _interopRequireDefault(_classnames);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
var css = __webpack_require__(7);
var Logo = function (_Component) {
_inherits(Logo, _Component);
function Logo() {
_classCallCheck(this, Logo);
return _possibleConstructorReturn(this, (Logo.__proto__ || Object.getPrototypeOf(Logo)).apply(this, arguments));
}
_createClass(Logo, [{
key: 'render',
value: function render() {
var p = this.props;
// Some legacy here. There used to be colored variants. These now default to white.
/*
CMS dropdown:
- None|No logo
- White|All white
- Black|All black
- Coloured|Color with white text
- Coloured-white|Color with black text
*/
var classes = [];
switch (p.logoStyle) {
case 'White':
case 'white':
case 'Coloured-white':
classes.push(css.white);
break;
case 'Black':
case 'black':
case 'Coloured':
classes.push(css.black);
break;
default:
classes.push(css.white);
break;
}
var en = _react2.default.createElement(
'svg',
{ className: (0, _classnames2.default)(p.className),
style: { width: p.width },
xmlns: 'http://www.w3.org/2000/svg',
viewBox: '0 0 144.57 238.11' },
_react2.default.createElement('path', { className: css.line, d: 'M41,133H38.4v-2.59H41Zm0,24.42H38.4V136.06H41Z' }),
_react2.default.createElement('path', { className: css.line,
d: 'M47.29,144.77c0,.74,0,1.25.06,2.21s.29,2.59,2.08,2.59,2-1.41,2-2.46l2.62.45c-.45,2.94-1.66,4.45-4.7,4.45-3.68,0-4.48-2.5-4.64-5.12-.06-1-.06-2-.06-2.94s0-1.92.06-2.94c.16-2.62,1.28-5.12,4.67-5.12s4.51,2.5,4.67,5.12c.06,1,.06,2.85.06,3.78Zm4.29-2.3s0-.9,0-1.54c-.06-1-.32-2.62-2.11-2.62s-2,1.63-2.11,2.62c0,.64,0,1.54,0,1.54Z' }),
_react2.default.createElement('path', { className: css.line,
d: 'M74,136.06,70.3,151.81H67.8l-2.4-10.24L63,151.81H60.57l-3.71-15.74h2.72l2.3,10.85,2.34-10.85h2.46L69,146.91l2.3-10.85Z' }),
_react2.default.createElement('path', { className: css.line, d: 'M80,133H77.4v-2.59H80Zm0,18.78H77.4V136.06H80Z' }),
_react2.default.createElement('path', { className: css.line,
d: 'M92.86,140.51l-2.66.38v-.45a2.09,2.09,0,0,0-.48-1.63,1.81,1.81,0,0,0-1.34-.51c-1.22,0-1.89.54-1.89,1.82a2.14,2.14,0,0,0,.1.67c.26.9,1.79,1.47,2.53,1.73,1.63.61,3.3,1.44,3.62,3.33a10.28,10.28,0,0,1,.1,1.47c0,2.91-1.37,4.67-4.51,4.67-2.94,0-4.54-1.54-4.61-4.35v-.32l2.66-.42,0,.45c0,1.25.61,2.24,1.92,2.21,1.57,0,2-.67,2-2.18a8.55,8.55,0,0,0-.06-1c-.22-1-1.47-1.38-2.3-1.7-1.54-.61-3.39-1.47-3.84-3.23a5.34,5.34,0,0,1-.16-1.25c0-2.82,1.7-4.35,4.45-4.35s4.48,1.44,4.48,4.32Z' }),
_react2.default.createElement('path', { className: css.line,
d: 'M106.17,151.81h-2.59V140.67c0-1.28-.42-2.37-2-2.37a2.17,2.17,0,0,0-2.21,2.46v11H96.76V130.43h2.59v6.72a4.11,4.11,0,0,1,3-1.28c2.3,0,3.78,1.44,3.78,4.35Z' }),
_react2.default.createElement('path', { className: css.line,
d: 'M41.29,177.63v.32c-.06,2.91-1.63,4.45-4.7,4.45-3.42,0-4.32-2.5-4.48-5.12-.06-1-.06-2-.06-2.94s0-1.92.06-2.94c.16-2.62,1-5.12,4.42-5.12s4.77,1.66,4.77,4.58v.32l-2.66.35c0-1.37-.1-2.82-1.86-2.82s-2,1.63-2.08,2.62c-.06,1.25-.06,1.66-.06,3s0,1.79.06,3c.06,1,.29,2.59,2,2.59,2,0,1.92-1.37,1.89-2.78Z' }),
_react2.default.createElement('path', { className: css.line,
d: 'M54.09,182.2H51.5v-1.09a4.11,4.11,0,0,1-3,1.28c-2.3,0-3.78-1.44-3.78-4.35V166.46h2.59v11.13c0,1.28.42,2.37,2,2.37a2.17,2.17,0,0,0,2.21-2.46v-11h2.59Z' }),
_react2.default.createElement('path', { className: css.line, d: 'M60.71,182.2H58.12V160.83h2.59Z' }),
_react2.default.createElement('path', { className: css.line, d: 'M70.57,169H67.66V182.2H65.07V162.14h2.59v4.32h2.91Z' }),
_react2.default.createElement('path', { className: css.line,
d: 'M83.05,182.2H80.46v-1.09a4.11,4.11,0,0,1-3,1.28c-2.3,0-3.78-1.44-3.78-4.35V166.46h2.59v11.13c0,1.28.42,2.37,2,2.37a2.17,2.17,0,0,0,2.21-2.46v-11h2.59Z' }),
_react2.default.createElement('path', { className: css.line,
d: 'M93.55,169.37a2.84,2.84,0,0,0-1.66-.48c-1.54,0-2.21,1.18-2.21,2.91v10.4H87.09V166.46h2.59v1.09a3.18,3.18,0,0,1,2.62-1.28,4.84,4.84,0,0,1,1.25.13Z' }),
_react2.default.createElement('path', { className: css.line,
d: 'M105.58,182.2H103v-1.09a3,3,0,0,1-2.53,1.28c-3.39,0-4.1-2.5-4.26-5.12-.06-1-.06-2-.06-2.94s0-1.92.06-2.94c.16-2.62.86-5.12,4.26-5.12a3,3,0,0,1,2.53,1.28v-1.09h2.59ZM103,174.33v-3c0-1.41-.58-2.62-2.11-2.62-1.79,0-2,1.63-2.08,2.62-.06,1.25-.06,1.66-.06,3s0,1.79.06,3c.06,1,.29,2.59,2.08,2.59,1.54,0,2.11-1.21,2.11-2.62Z' }),
_react2.default.createElement('path', { className: css.line, d: 'M112.21,182.2h-2.59V160.83h2.59Z' }),
_react2.default.createElement('path', { className: css.line,
d: 'M42.92,218.23H40.33v-6.72a3,3,0,0,1-2.53,1.28c-3.39,0-4.1-2.5-4.26-5.12-.06-1-.06-2-.06-2.94s0-1.92.06-2.95c.16-2.62.86-5.12,4.26-5.12a3,3,0,0,1,2.53,1.28v-1.09h2.59Zm-2.59-13.5v-3c0-1.41-.58-2.62-2.11-2.62-1.79,0-2,1.6-2.08,2.59-.06,1.25-.06,1.7-.06,3s0,1.76.06,3c.06,1,.29,2.62,2.08,2.62,1.54,0,2.11-1.22,2.11-2.62Z' }),
_react2.default.createElement('path', { className: css.line,
d: 'M56.36,212.6H53.77v-1.09a4.11,4.11,0,0,1-3,1.28c-2.3,0-3.78-1.44-3.78-4.35V196.86h2.59V208c0,1.28.42,2.37,2,2.37a2.17,2.17,0,0,0,2.21-2.46v-11h2.59Z' }),
_react2.default.createElement('path', { className: css.line,
d: 'M69.51,212.6H66.92v-1.09a3,3,0,0,1-2.53,1.28c-3.39,0-4.1-2.5-4.26-5.12-.06-1-.06-2-.06-2.94s0-1.92.06-2.95c.16-2.62.86-5.12,4.26-5.12a3,3,0,0,1,2.53,1.28v-1.09h2.59Zm-2.59-7.87v-3c0-1.41-.58-2.62-2.11-2.62-1.79,0-2,1.63-2.08,2.63-.06,1.25-.06,1.66-.06,3s0,1.79.06,3c.06,1,.29,2.59,2.08,2.59,1.54,0,2.11-1.22,2.11-2.62Z' }),
_react2.default.createElement('path', { className: css.line,
d: 'M80,199.77a2.84,2.84,0,0,0-1.66-.48c-1.54,0-2.21,1.18-2.21,2.91v10.4H73.54V196.86h2.59v1.09a3.18,3.18,0,0,1,2.62-1.28,4.8,4.8,0,0,1,1.25.13Z' }),
_react2.default.createElement('path', { className: css.line, d: 'M88.9,199.35H86V212.6H83.4V192.54H86v4.32H88.9Z' }),
_react2.default.createElement('path', { className: css.line,
d: 'M94.35,205.56c0,.73,0,1.25.06,2.21s.29,2.59,2.08,2.59,2-1.41,2-2.46l2.62.45c-.45,2.94-1.66,4.45-4.7,4.45-3.68,0-4.48-2.5-4.64-5.12-.06-1-.06-2-.06-2.94s0-1.92.06-2.95c.16-2.62,1.28-5.12,4.67-5.12s4.51,2.5,4.67,5.12c.06,1,.06,2.85.06,3.78Zm4.29-2.3s0-.9,0-1.54c-.06-1-.32-2.62-2.11-2.62s-2,1.63-2.11,2.63c0,.64,0,1.54,0,1.54Z' }),
_react2.default.createElement('path', { className: css.line,
d: 'M111.41,199.77a2.84,2.84,0,0,0-1.66-.48c-1.54,0-2.21,1.18-2.21,2.91v10.4h-2.59V196.86h2.59v1.09a3.18,3.18,0,0,1,2.62-1.28,4.79,4.79,0,0,1,1.25.13Z' }),
_react2.default.createElement('rect', { className: css.line, x: '25.51', y: '76.54', width: '7.85', height: '34.02' }),
_react2.default.createElement('rect', { className: css.line, x: '42.65', width: '7.85', height: '110.55' }),
_react2.default.createElement('rect', { className: css.line, x: '59.79', y: '34.02', width: '7.85', height: '76.54' }),
_react2.default.createElement('rect', { className: css.line, x: '76.92', y: '85.04', width: '7.85', height: '25.51' }),
_react2.default.createElement('rect', { className: css.line, x: '76.92', y: '34.02', width: '7.85', height: '25.51' }),
_react2.default.createElement('rect', { className: css.line, x: '111.2', y: '34.02', width: '7.85', height: '25.51' }),
_react2.default.createElement('rect', { className: css.line, x: '94.06', width: '7.85', height: '110.55' }),
_react2.default.createElement('rect', { className: css.line, x: '111.2', y: '76.54', width: '7.85', height: '34.02' })
);
var nl = _react2.default.createElement(
'svg',
{ className: (0, _classnames2.default)(p.className), xmlns: 'http://www.w3.org/2000/svg',
style: { width: p.width },
viewBox: '0 0 144.57 238.11' },
_react2.default.createElement('path', { className: css.line, d: 'M47.72,133H45.13v-2.59h2.59Zm0,24.41H45.13V136.06h2.59Z' }),
_react2.default.createElement('path', { className: css.line,
d: 'M61,146.88c-.19,3-1.12,5.12-4.74,5.12s-4.54-2.11-4.74-5.12c-.06-1-.06-2-.06-2.95s0-1.92.06-2.94c.16-2.62,1.28-5.12,4.74-5.12s4.58,2.5,4.74,5.12c.06,1,.06,2,.06,2.94S61,145.85,61,146.88Zm-2.56-6c-.06-1-.26-2.62-2.18-2.62s-2.11,1.63-2.18,2.62c-.06,1.25-.06,1.66-.06,3s0,1.79.06,3c.06,1,.26,2.59,2.18,2.59s2.11-1.6,2.18-2.59c.06-1.25.06-1.7.06-3S58.48,142.17,58.41,140.93Z' }),
_react2.default.createElement('path', { className: css.line,
d: 'M74,146.88c-.19,3-1.12,5.12-4.74,5.12s-4.54-2.11-4.74-5.12c-.06-1-.06-2-.06-2.95s0-1.92.06-2.94c.16-2.62,1.28-5.12,4.74-5.12S73.8,138.37,74,141c.06,1,.06,2,.06,2.94S74,145.85,74,146.88Zm-2.56-6c-.06-1-.26-2.62-2.18-2.62s-2.11,1.63-2.18,2.62c-.06,1.25-.06,1.66-.06,3s0,1.79.06,3c.06,1,.26,2.59,2.18,2.59S71.34,148,71.4,147c.06-1.25.06-1.7.06-3S71.47,142.17,71.4,140.93Z' }),
_react2.default.createElement('path', { className: css.line,
d: 'M86.86,151.81H84.27v-1.09A3,3,0,0,1,81.74,152c-3.39,0-4.1-2.5-4.26-5.12-.06-1-.06-2-.06-2.95s0-1.92.06-2.94c.16-2.62.86-5.12,4.26-5.12a3,3,0,0,1,2.53,1.28v-6.72h2.59Zm-2.59-7.87v-3c0-1.41-.58-2.62-2.11-2.62-1.79,0-2,1.63-2.08,2.62-.06,1.25-.06,1.66-.06,3s0,1.79.06,3c.06,1,.29,2.59,2.08,2.59,1.54,0,2.11-1.22,2.11-2.62Z' }),
_react2.default.createElement('path', { className: css.line,
d: 'M99.72,140.51l-2.66.38v-.45a2.09,2.09,0,0,0-.48-1.63,1.81,1.81,0,0,0-1.34-.51c-1.22,0-1.89.54-1.89,1.82a2.11,2.11,0,0,0,.1.67c.26.9,1.79,1.47,2.53,1.73,1.63.61,3.3,1.44,3.62,3.33a10.45,10.45,0,0,1,.1,1.47c0,2.91-1.38,4.67-4.51,4.67-2.94,0-4.54-1.54-4.61-4.35v-.32l2.66-.42,0,.45c0,1.25.61,2.24,1.92,2.21,1.57,0,2-.67,2-2.18a8.56,8.56,0,0,0-.06-1c-.22-1-1.47-1.38-2.3-1.7-1.54-.61-3.39-1.47-3.84-3.23a5.35,5.35,0,0,1-.16-1.25c0-2.82,1.7-4.35,4.45-4.35s4.48,1.44,4.48,4.32Z' }),
_react2.default.createElement('path', { className: css.line,
d: 'M34.83,177.63v.32c-.06,2.91-1.63,4.45-4.7,4.45-3.42,0-4.32-2.5-4.48-5.12-.06-1-.06-2-.06-2.94s0-1.92.06-2.94c.16-2.62,1-5.12,4.42-5.12s4.77,1.66,4.77,4.57v.32l-2.66.35c0-1.38-.1-2.82-1.86-2.82s-2,1.63-2.08,2.62c-.06,1.25-.06,1.66-.06,3s0,1.79.06,3c.06,1,.29,2.59,2,2.59,2,0,1.92-1.38,1.89-2.79Z' }),
_react2.default.createElement('path', { className: css.line,
d: 'M47.95,182.2H45.35v-1.09a4.11,4.11,0,0,1-3,1.28c-2.3,0-3.78-1.44-3.78-4.35V166.46h2.59v11.13c0,1.28.42,2.37,2,2.37a2.17,2.17,0,0,0,2.21-2.46v-11h2.59Z' }),
_react2.default.createElement('path', { className: css.line, d: 'M54.57,182.2H52V160.83h2.59Z' }),
_react2.default.createElement('path', { className: css.line, d: 'M64.11,169H61.19V182.2H58.6V162.14h2.59v4.32h2.91Z' }),
_react2.default.createElement('path', { className: css.line,
d: 'M76.78,182.2H74.19v-1.09a4.1,4.1,0,0,1-3,1.28c-2.3,0-3.78-1.44-3.78-4.35V166.46H70v11.13c0,1.28.42,2.37,2,2.37a2.17,2.17,0,0,0,2.21-2.46v-11h2.59Z' }),
_react2.default.createElement('path', { className: css.line,
d: 'M87.28,169.37a2.83,2.83,0,0,0-1.66-.48c-1.54,0-2.21,1.18-2.21,2.91v10.4H80.81V166.46h2.59v1.09A3.19,3.19,0,0,1,86,166.27a4.84,4.84,0,0,1,1.25.13Z' }),
_react2.default.createElement('path', { className: css.line,
d: 'M92.62,175.16c0,.74,0,1.25.06,2.21S93,180,94.77,180s2-1.41,2-2.46l2.62.45c-.45,2.95-1.66,4.45-4.7,4.45-3.68,0-4.48-2.5-4.64-5.12-.06-1-.06-2-.06-2.94s0-1.92.06-2.94c.16-2.62,1.28-5.12,4.67-5.12s4.51,2.5,4.67,5.12c.06,1,.06,2.85.06,3.78Zm4.29-2.3s0-.9,0-1.54c-.06-1-.32-2.62-2.11-2.62s-2,1.63-2.11,2.62c0,.64,0,1.54,0,1.54Z' }),
_react2.default.createElement('path', { className: css.line,
d: 'M105.49,175.16c0,.74,0,1.25.06,2.21s.29,2.59,2.08,2.59,2-1.41,2-2.46l2.62.45c-.45,2.95-1.66,4.45-4.7,4.45-3.68,0-4.48-2.5-4.64-5.12-.06-1-.06-2-.06-2.94s0-1.92.06-2.94c.16-2.62,1.28-5.12,4.67-5.12s4.51,2.5,4.67,5.12c.06,1,.06,2.85.06,3.78Zm4.29-2.3s0-.9,0-1.54c-.06-1-.32-2.62-2.11-2.62s-2,1.63-2.11,2.62c0,.64,0,1.54,0,1.54Z' }),
_react2.default.createElement('path', { className: css.line, d: 'M118.67,182.2h-2.59V160.83h2.59Z' }),
_react2.default.createElement('path', { className: css.line,
d: 'M37.9,212.62H35l-3.17-7-1.82,3v4H27.37V191.24H30V204l4.32-7.13h2.94L33.52,203Z' }),
_react2.default.createElement('path', { className: css.line,
d: 'M56.75,196.87,53,212.62h-2.5l-2.4-10.24-2.4,10.24H43.31L39.6,196.87h2.72l2.3,10.85L47,196.87h2.46l2.3,10.85L54,196.87Z' }),
_react2.default.createElement('path', { className: css.line,
d: 'M68.94,212.62H66.35v-1.09a3,3,0,0,1-2.53,1.28c-3.39,0-4.1-2.5-4.26-5.12-.06-1-.06-2-.06-2.94s0-1.92.06-2.95c.16-2.62.86-5.12,4.26-5.12A3,3,0,0,1,66.35,198v-1.09h2.59Zm-2.59-7.87v-3c0-1.41-.58-2.62-2.11-2.62-1.79,0-2,1.63-2.08,2.63-.06,1.25-.06,1.66-.06,3s0,1.79.06,3c.06,1,.29,2.59,2.08,2.59,1.54,0,2.11-1.22,2.11-2.62Z' }),
_react2.default.createElement('path', { className: css.line,
d: 'M79.44,199.78a2.85,2.85,0,0,0-1.66-.48c-1.54,0-2.21,1.18-2.21,2.91v10.4H73V196.87h2.59V198a3.18,3.18,0,0,1,2.62-1.28,4.84,4.84,0,0,1,1.25.13Z' }),
_react2.default.createElement('path', { className: css.line, d: 'M88.33,199.37H85.42v13.25H82.83V192.55h2.59v4.32h2.91Z' }),
_react2.default.createElement('path', { className: css.line, d: 'M94.47,193.83H91.88v-2.59h2.59Zm0,18.78H91.88V196.87h2.59Z' }),
_react2.default.createElement('path', { className: css.line,
d: 'M100.78,205.58c0,.73,0,1.25.06,2.21s.29,2.59,2.08,2.59,2-1.41,2-2.46l2.62.45c-.45,2.94-1.66,4.45-4.7,4.45-3.68,0-4.48-2.5-4.64-5.12-.06-1-.06-2-.06-2.94s0-1.92.06-2.95c.16-2.62,1.28-5.12,4.67-5.12s4.51,2.5,4.67,5.12c.06,1,.06,2.85.06,3.78Zm4.29-2.3s0-.9,0-1.54c-.06-1-.32-2.62-2.11-2.62s-2,1.63-2.11,2.63c0,.64,0,1.54,0,1.54Z' }),
_react2.default.createElement('path', { className: css.line,
d: 'M117.83,199.78a2.85,2.85,0,0,0-1.66-.48c-1.54,0-2.21,1.18-2.21,2.91v10.4h-2.59V196.87H114V198a3.18,3.18,0,0,1,2.62-1.28,4.84,4.84,0,0,1,1.25.13Z' }),
_react2.default.createElement('rect', { className: css.line, x: '25.51', y: '76.54', width: '7.85', height: '34.02' }),
_react2.default.createElement('rect', { className: css.line, x: '42.65', width: '7.85', height: '110.55' }),
_react2.default.createElement('rect', { className: css.line, x: '59.79', y: '34.02', width: '7.85', height: '76.54' }),
_react2.default.createElement('rect', { className: css.line, x: '76.92', y: '85.04', width: '7.85', height: '25.51' }),
_react2.default.createElement('rect', { className: css.line, x: '76.92', y: '34.02', width: '7.85', height: '25.51' }),
_react2.default.createElement('rect', { className: css.line, x: '111.2', y: '34.02', width: '7.85', height: '25.51' }),
_react2.default.createElement('rect', { className: css.line, x: '94.06', width: '7.85', height: '110.55' }),
_react2.default.createElement('rect', { className: css.line, x: '111.2', y: '76.54', width: '7.85', height: '34.02' })
);
return _react2.default.createElement(
'div',
{ className: (0, _classnames2.default)(classes) },
this.props.language === 'nl' ? nl : en
);
}
}]);
return Logo;
}(_react.Component);
Logo.propTypes = {
className: _propTypes2.default.string,
language: _propTypes2.default.string,
logoStyle: _propTypes2.default.string,
width: _propTypes2.default.number
};
Logo.defaultProps = {
className: '',
language: 'nl',
logoStyle: 'Coloured',
width: 100
};
exports.default = Logo;
/***/ }),
/* 10 */
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__(11)();
// imports
// module
exports.push([module.i, ".src-logo__container--1WiKm {\n text-align: center; }\n\n.src-logo__logo--3Azv4 {\n height: auto;\n position: absolute; }\n .src-logo__logo--3Azv4 .src-logo__line--2wLS- {\n transition: fill 250ms linear; }\n\n.src-logo__white--3SYcs .src-logo__line--2wLS- {\n fill: white; }\n\n.src-logo__black--1x9-C .src-logo__line--2wLS- {\n fill: black; }\n", ""]);
// exports
exports.locals = {
"container": "src-logo__container--1WiKm",
"logo": "src-logo__logo--3Azv4",
"line": "src-logo__line--2wLS-",
"white": "src-logo__white--3SYcs",
"black": "src-logo__black--1x9-C"
};
/***/ }),
/* 11 */
/***/ (function(module, exports) {
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
// css base code, injected by the css-loader
module.exports = function() {
var list = [];
// return the list of modules as css string
list.toString = function toString() {
var result = [];
for(var i = 0; i < this.length; i++) {
var item = this[i];
if(item[2]) {
result.push("@media " + item[2] + "{" + item[1] + "}");
} else {
result.push(item[1]);
}
}
return result.join("");
};
// import a list of modules into the list
list.i = function(modules, mediaQuery) {
if(typeof modules === "string")
modules = [[null, modules, ""]];
var alreadyImportedModules = {};
for(var i = 0; i < this.length; i++) {
var id = this[i][0];
if(typeof id === "number")
alreadyImportedModules[id] = true;
}
for(i = 0; i < modules.length; i++) {
var item = modules[i];
// skip already imported module
// this implementation is not 100% perfect for weird media query combinations
// when a module is imported multiple times with different media queries.
// I hope this will never occur (Hey this way we have smaller bundles)
if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) {
if(mediaQuery && !item[2]) {
item[2] = mediaQuery;
} else if(mediaQuery) {
item[2] = "(" + item[2] + ") and (" + mediaQuery + ")";
}
list.push(item);
}
}
};
return list;
};
/***/ }),
/* 12 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
/* eslint-disable no-unused-vars */
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
var hasOwnProperty = Object.prototype.hasOwnProperty;
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
function toObject(val) {
if (val === null || val === undefined) {
throw new TypeError('Object.assign cannot be called with null or undefined');
}
return Object(val);
}
function shouldUseNative() {
try {
if (!Object.assign) {
return false;
}
// Detect buggy property enumeration order in older V8 versions.
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
test1[5] = 'de';
if (Object.getOwnPropertyNames(test1)[0] === '5') {
return false;
}
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
var test2 = {};
for (var i = 0; i < 10; i++) {
test2['_' + String.fromCharCode(i)] = i;
}
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
return test2[n];
});
if (order2.join('') !== '0123456789') {
return false;
}
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
var test3 = {};
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
test3[letter] = letter;
});
if (Object.keys(Object.assign({}, test3)).join('') !==
'abcdefghijklmnopqrst') {
return false;
}
return true;
} catch (err) {
// We don't expect any of the above to throw, but better to be safe.
return false;
}
}
module.exports = shouldUseNative() ? Object.assign : function (target, source) {
var from;
var to = toObject(target);
var symbols;
for (var s = 1; s < arguments.length; s++) {
from = Object(arguments[s]);
for (var key in from) {
if (hasOwnProperty.call(from, key)) {
to[key] = from[key];
}
}
if (getOwnPropertySymbols) {
symbols = getOwnPropertySymbols(from);
for (var i = 0; i < symbols.length; i++) {
if (propIsEnumerable.call(from, symbols[i])) {
to[symbols[i]] = from[symbols[i]];
}
}
}
}
return to;
};
/***/ }),
/* 13 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(process) {/**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
if (process.env.NODE_ENV !== 'production') {
var invariant = __webpack_require__(3);
var warning = __webpack_require__(4);
var ReactPropTypesSecret = __webpack_require__(1);
var loggedTypeFailures = {};
}
/**
* Assert that the values match with the type specs.
* Error messages are memorized and will only be shown once.
*
* @param {object} typeSpecs Map of name to a ReactPropType
* @param {object} values Runtime values that need to be type-checked
* @param {string} location e.g. "prop", "context", "child context"
* @param {string} componentName Name of the component for error messages.
* @param {?Function} getStack Returns the component stack.
* @private
*/
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
if (process.env.NODE_ENV !== 'production') {
for (var typeSpecName in typeSpecs) {
if (typeSpecs.hasOwnProperty(typeSpecName)) {
var error;
// Prop type validation may throw. In case they do, we don't want to
// fail the render phase where it didn't fail before. So we log it.
// After these have been cleaned up, we'll let them throw.
try {
// This is intentionally an invariant that gets caught. It's the same
// behavior as without this statement except with a better message.
invariant(typeof typeSpecs[typeSpecName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'the `prop-types` package, but received `%s`.', componentName || 'React class', location, typeSpecName, typeof typeSpecs[typeSpecName]);
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
} catch (ex) {
error = ex;
}
warning(!error || error instanceof Error, '%s: type specification of %s `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error);
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
// Only monitor this failure once because there tends to be a lot of the
// same error.
loggedTypeFailures[error.message] = true;
var stack = getStack ? getStack() : '';
warning(false, 'Failed %s type: %s%s', location, error.message, stack != null ? stack : '');
}
}
}
}
}
module.exports = checkPropTypes;
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
/***/ }),
/* 14 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var emptyFunction = __webpack_require__(2);
var invariant = __webpack_require__(3);
var ReactPropTypesSecret = __webpack_require__(1);
module.exports = function() {
function shim(props, propName, componentName, location, propFullName, secret) {
if (secret === ReactPropTypesSecret) {
// It is still safe when called from React.
return;
}
invariant(
false,
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
'Use PropTypes.checkPropTypes() to call them. ' +
'Read more at http://fb.me/use-check-prop-types'
);
};
shim.isRequired = shim;
function getShim() {
return shim;
};
// Important!
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
var ReactPropTypes = {
array: shim,
bool: shim,
func: shim,
number: shim,
object: shim,
string: shim,
symbol: shim,
any: shim,
arrayOf: getShim,
element: shim,
instanceOf: getShim,
node: shim,
objectOf: getShim,
oneOf: getShim,
oneOfType: getShim,
shape: getShim,
exact: getShim
};
ReactPropTypes.checkPropTypes = emptyFunction;
ReactPropTypes.PropTypes = ReactPropTypes;
return ReactPropTypes;
};
/***/ }),
/* 15 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(process) {/**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var emptyFunction = __webpack_require__(2);
var invariant = __webpack_require__(3);
var warning = __webpack_require__(4);
var assign = __webpack_require__(12);
var ReactPropTypesSecret = __webpack_require__(1);
var checkPropTypes = __webpack_require__(13);
module.exports = function(isValidElement, throwOnDirectAccess) {
/* global Symbol */
var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
/**
* Returns the iterator method function contained on the iterable object.
*
* Be sure to invoke the function with the iterable as context:
*
* var iteratorFn = getIteratorFn(myIterable);
* if (iteratorFn) {
* var iterator = iteratorFn.call(myIterable);
* ...
* }
*
* @param {?object} maybeIterable
* @return {?function}
*/
function getIteratorFn(maybeIterable) {
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
if (typeof iteratorFn === 'function') {
return iteratorFn;
}
}
/**
* Collection of methods that allow declaration and validation of props that are
* supplied to React components. Example usage:
*
* var Props = require('ReactPropTypes');
* var MyArticle = React.createClass({
* propTypes: {
* // An optional string prop named "description".
* description: Props.string,
*
* // A required enum prop named "category".
* category: Props.oneOf(['News','Photos']).isRequired,
*
* // A prop named "dialog" that requires an instance of Dialog.
* dialog: Props.instanceOf(Dialog).isRequired
* },
* render: function() { ... }
* });
*
* A more formal specification of how these methods are used:
*
* type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
* decl := ReactPropTypes.{type}(.isRequired)?
*
* Each and every declaration produces a function with the same signature. This
* allows the creation of custom validation functions. For example:
*
* var MyLink = React.createClass({
* propTypes: {
* // An optional string or URI prop named "href".
* href: function(props, propName, componentName) {
* var propValue = props[propName];
* if (propValue != null && typeof propValue !== 'string' &&
* !(propValue instanceof URI)) {
* return new Error(
* 'Expected a string or an URI for ' + propName + ' in ' +
* componentName
* );
* }
* }
* },
* render: function() {...}
* });
*
* @internal
*/
var ANONYMOUS = '<<anonymous>>';
// Important!
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
var ReactPropTypes = {
array: createPrimitiveTypeChecker('array'),
bool: createPrimitiveTypeChecker('boolean'),
func: createPrimitiveTypeChecker('function'),
number: createPrimitiveTypeChecker('number'),
object: createPrimitiveTypeChecker('object'),
string: createPrimitiveTypeChecker('string'),
symbol: createPrimitiveTypeChecker('symbol'),
any: createAnyTypeChecker(),
arrayOf: createArrayOfTypeChecker,
element: createElementTypeChecker(),
instanceOf: createInstanceTypeChecker,
node: createNode