does.
contentKey = 'textContent' in document.documentElement ? 'textContent' : 'innerText';
}
return contentKey;
}
module.exports = getTextContentAccessor;
/***/ }),
/* 348 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/**
* Copyright 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
var _prodInvariant = __webpack_require__(9),
_assign = __webpack_require__(16);
var ReactCompositeComponent = __webpack_require__(745);
var ReactEmptyComponent = __webpack_require__(336);
var ReactHostComponent = __webpack_require__(338);
var getNextDebugID = __webpack_require__(799);
var invariant = __webpack_require__(6);
var warning = __webpack_require__(7);
// To avoid a cyclic dependency, we create the final class in this module
var ReactCompositeComponentWrapper = function (element) {
this.construct(element);
};
_assign(ReactCompositeComponentWrapper.prototype, ReactCompositeComponent, {
_instantiateReactComponent: instantiateReactComponent
});
function getDeclarationErrorAddendum(owner) {
if (owner) {
var name = owner.getName();
if (name) {
return ' Check the render method of `' + name + '`.';
}
}
return '';
}
/**
* Check if the type reference is a known internal type. I.e. not a user
* provided composite type.
*
* @param {function} type
* @return {boolean} Returns true if this is a valid internal type.
*/
function isInternalComponentType(type) {
return typeof type === 'function' && typeof type.prototype !== 'undefined' && typeof type.prototype.mountComponent === 'function' && typeof type.prototype.receiveComponent === 'function';
}
/**
* Given a ReactNode, create an instance that will actually be mounted.
*
* @param {ReactNode} node
* @param {boolean} shouldHaveDebugID
* @return {object} A new instance of the element's constructor.
* @protected
*/
function instantiateReactComponent(node, shouldHaveDebugID) {
var instance;
if (node === null || node === false) {
instance = ReactEmptyComponent.create(instantiateReactComponent);
} else if (typeof node === 'object') {
var element = node;
var type = element.type;
if (typeof type !== 'function' && typeof type !== 'string') {
var info = '';
if (true) {
if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
info += ' You likely forgot to export your component from the file ' + 'it\'s defined in.';
}
}
info += getDeclarationErrorAddendum(element._owner);
true ? true ? invariant(false, 'Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s', type == null ? type : typeof type, info) : _prodInvariant('130', type == null ? type : typeof type, info) : void 0;
}
// Special case string values
if (typeof element.type === 'string') {
instance = ReactHostComponent.createInternalComponent(element);
} else if (isInternalComponentType(element.type)) {
// This is temporarily available for custom components that are not string
// representations. I.e. ART. Once those are updated to use the string
// representation, we can drop this code path.
instance = new element.type(element);
// We renamed this. Allow the old name for compat. :(
if (!instance.getHostNode) {
instance.getHostNode = instance.getNativeNode;
}
} else {
instance = new ReactCompositeComponentWrapper(element);
}
} else if (typeof node === 'string' || typeof node === 'number') {
instance = ReactHostComponent.createInstanceForText(node);
} else {
true ? true ? invariant(false, 'Encountered invalid React node of type %s', typeof node) : _prodInvariant('131', typeof node) : void 0;
}
if (true) {
true ? warning(typeof instance.mountComponent === 'function' && typeof instance.receiveComponent === 'function' && typeof instance.getHostNode === 'function' && typeof instance.unmountComponent === 'function', 'Only React Components can be mounted.') : void 0;
}
// These two fields are used by the DOM and ART diffing algorithms
// respectively. Instead of using expandos on components, we should be
// storing the state needed by the diffing algorithms elsewhere.
instance._mountIndex = 0;
instance._mountImage = null;
if (true) {
instance._debugID = shouldHaveDebugID ? getNextDebugID() : 0;
}
// Internal instances should fully constructed at this point, so they should
// not get any new fields added to them at this point.
if (true) {
if (Object.preventExtensions) {
Object.preventExtensions(instance);
}
}
return instance;
}
module.exports = instantiateReactComponent;
/***/ }),
/* 349 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/**
* Copyright 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*
*/
/**
* @see http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary
*/
var supportedInputTypes = {
'color': true,
'date': true,
'datetime': true,
'datetime-local': true,
'email': true,
'month': true,
'number': true,
'password': true,
'range': true,
'search': true,
'tel': true,
'text': true,
'time': true,
'url': true,
'week': true
};
function isTextInputElement(elem) {
var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
if (nodeName === 'input') {
return !!supportedInputTypes[elem.type];
}
if (nodeName === 'textarea') {
return true;
}
return false;
}
module.exports = isTextInputElement;
/***/ }),
/* 350 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/**
* Copyright 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
var ExecutionEnvironment = __webpack_require__(20);
var escapeTextContentForBrowser = __webpack_require__(136);
var setInnerHTML = __webpack_require__(137);
/**
* Set the textContent property of a node, ensuring that whitespace is preserved
* even in IE8. innerText is a poor substitute for textContent and, among many
* issues, inserts
instead of the literal newline chars. innerHTML behaves
* as it should.
*
* @param {DOMElement} node
* @param {string} text
* @internal
*/
var setTextContent = function (node, text) {
if (text) {
var firstChild = node.firstChild;
if (firstChild && firstChild === node.lastChild && firstChild.nodeType === 3) {
firstChild.nodeValue = text;
return;
}
}
node.textContent = text;
};
if (ExecutionEnvironment.canUseDOM) {
if (!('textContent' in document.documentElement)) {
setTextContent = function (node, text) {
if (node.nodeType === 3) {
node.nodeValue = text;
return;
}
setInnerHTML(node, escapeTextContentForBrowser(text));
};
}
}
module.exports = setTextContent;
/***/ }),
/* 351 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/**
* Copyright 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
var _prodInvariant = __webpack_require__(9);
var ReactCurrentOwner = __webpack_require__(37);
var REACT_ELEMENT_TYPE = __webpack_require__(764);
var getIteratorFn = __webpack_require__(798);
var invariant = __webpack_require__(6);
var KeyEscapeUtils = __webpack_require__(198);
var warning = __webpack_require__(7);
var SEPARATOR = '.';
var SUBSEPARATOR = ':';
/**
* This is inlined from ReactElement since this file is shared between
* isomorphic and renderers. We could extract this to a
*
*/
/**
* TODO: Test that a single child and an array with one item have the same key
* pattern.
*/
var didWarnAboutMaps = false;
/**
* Generate a key string that identifies a component within a set.
*
* @param {*} component A component that could contain a manual key.
* @param {number} index Index that is used if a manual key is not provided.
* @return {string}
*/
function getComponentKey(component, index) {
// Do some typechecking here since we call this blindly. We want to ensure
// that we don't block potential future ES APIs.
if (component && typeof component === 'object' && component.key != null) {
// Explicit key
return KeyEscapeUtils.escape(component.key);
}
// Implicit key determined by the index in the set
return index.toString(36);
}
/**
* @param {?*} children Children tree container.
* @param {!string} nameSoFar Name of the key path so far.
* @param {!function} callback Callback to invoke with each child found.
* @param {?*} traverseContext Used to pass information throughout the traversal
* process.
* @return {!number} The number of children in this subtree.
*/
function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) {
var type = typeof children;
if (type === 'undefined' || type === 'boolean') {
// All of the above are perceived as null.
children = null;
}
if (children === null || type === 'string' || type === 'number' ||
// The following is inlined from ReactElement. This means we can optimize
// some checks. React Fiber also inlines this logic for similar purposes.
type === 'object' && children.$$typeof === REACT_ELEMENT_TYPE) {
callback(traverseContext, children,
// If it's the only child, treat the name as if it was wrapped in an array
// so that it's consistent if the number of children grows.
nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar);
return 1;
}
var child;
var nextName;
var subtreeCount = 0; // Count of children found in the current subtree.
var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;
if (Array.isArray(children)) {
for (var i = 0; i < children.length; i++) {
child = children[i];
nextName = nextNamePrefix + getComponentKey(child, i);
subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
}
} else {
var iteratorFn = getIteratorFn(children);
if (iteratorFn) {
var iterator = iteratorFn.call(children);
var step;
if (iteratorFn !== children.entries) {
var ii = 0;
while (!(step = iterator.next()).done) {
child = step.value;
nextName = nextNamePrefix + getComponentKey(child, ii++);
subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
}
} else {
if (true) {
var mapsAsChildrenAddendum = '';
if (ReactCurrentOwner.current) {
var mapsAsChildrenOwnerName = ReactCurrentOwner.current.getName();
if (mapsAsChildrenOwnerName) {
mapsAsChildrenAddendum = ' Check the render method of `' + mapsAsChildrenOwnerName + '`.';
}
}
true ? warning(didWarnAboutMaps, 'Using Maps as children is not yet fully supported. It is an ' + 'experimental feature that might be removed. Convert it to a ' + 'sequence / iterable of keyed ReactElements instead.%s', mapsAsChildrenAddendum) : void 0;
didWarnAboutMaps = true;
}
// Iterator will provide entry [k,v] tuples rather than values.
while (!(step = iterator.next()).done) {
var entry = step.value;
if (entry) {
child = entry[1];
nextName = nextNamePrefix + KeyEscapeUtils.escape(entry[0]) + SUBSEPARATOR + getComponentKey(child, 0);
subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
}
}
}
} else if (type === 'object') {
var addendum = '';
if (true) {
addendum = ' If you meant to render a collection of children, use an array ' + 'instead or wrap the object using createFragment(object) from the ' + 'React add-ons.';
if (children._isReactElement) {
addendum = ' It looks like you\'re using an element created by a different ' + 'version of React. Make sure to use only one copy of React.';
}
if (ReactCurrentOwner.current) {
var name = ReactCurrentOwner.current.getName();
if (name) {
addendum += ' Check the render method of `' + name + '`.';
}
}
}
var childrenString = String(children);
true ? true ? invariant(false, 'Objects are not valid as a React child (found: %s).%s', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum) : _prodInvariant('31', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum) : void 0;
}
}
return subtreeCount;
}
/**
* Traverses children that are typically specified as `props.children`, but
* might also be specified through attributes:
*
* - `traverseAllChildren(this.props.children, ...)`
* - `traverseAllChildren(this.props.leftPanelChildren, ...)`
*
* The `traverseContext` is an optional argument that is passed through the
* entire traversal. It can be used to store accumulations or anything else that
* the callback might find relevant.
*
* @param {?*} children Children tree object.
* @param {!function} callback To invoke upon traversing each child.
* @param {?*} traverseContext Context for traversal.
* @return {!number} The number of children in this subtree.
*/
function traverseAllChildren(children, callback, traverseContext) {
if (children == null) {
return 0;
}
return traverseAllChildrenImpl(children, '', callback, traverseContext);
}
module.exports = traverseAllChildren;
/***/ }),
/* 352 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_hoist_non_react_statics__ = __webpack_require__(454);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_hoist_non_react_statics___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_hoist_non_react_statics__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_invariant__ = __webpack_require__(48);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_invariant___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_invariant__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__utils_Subscription__ = __webpack_require__(354);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__utils_storeShape__ = __webpack_require__(355);
/* harmony export (immutable) */ __webpack_exports__["a"] = connectAdvanced;
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
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; }
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
var hotReloadingVersion = 0;
function connectAdvanced(
/*
selectorFactory is a func that is responsible for returning the selector function used to
compute new props from state, props, and dispatch. For example:
export default connectAdvanced((dispatch, options) => (state, props) => ({
thing: state.things[props.thingId],
saveThing: fields => dispatch(actionCreators.saveThing(props.thingId, fields)),
}))(YourComponent)
Access to dispatch is provided to the factory so selectorFactories can bind actionCreators
outside of their selector as an optimization. Options passed to connectAdvanced are passed to
the selectorFactory, along with displayName and WrappedComponent, as the second argument.
Note that selectorFactory is responsible for all caching/memoization of inbound and outbound
props. Do not use connectAdvanced directly without memoizing results between calls to your
selector, otherwise the Connect component will re-render on every state or props change.
*/
selectorFactory) {
var _contextTypes, _childContextTypes;
var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
_ref$getDisplayName = _ref.getDisplayName,
getDisplayName = _ref$getDisplayName === undefined ? function (name) {
return 'ConnectAdvanced(' + name + ')';
} : _ref$getDisplayName,
_ref$methodName = _ref.methodName,
methodName = _ref$methodName === undefined ? 'connectAdvanced' : _ref$methodName,
_ref$renderCountProp = _ref.renderCountProp,
renderCountProp = _ref$renderCountProp === undefined ? undefined : _ref$renderCountProp,
_ref$shouldHandleStat = _ref.shouldHandleStateChanges,
shouldHandleStateChanges = _ref$shouldHandleStat === undefined ? true : _ref$shouldHandleStat,
_ref$storeKey = _ref.storeKey,
storeKey = _ref$storeKey === undefined ? 'store' : _ref$storeKey,
_ref$withRef = _ref.withRef,
withRef = _ref$withRef === undefined ? false : _ref$withRef,
connectOptions = _objectWithoutProperties(_ref, ['getDisplayName', 'methodName', 'renderCountProp', 'shouldHandleStateChanges', 'storeKey', 'withRef']);
var subscriptionKey = storeKey + 'Subscription';
var version = hotReloadingVersion++;
var contextTypes = (_contextTypes = {}, _contextTypes[storeKey] = __WEBPACK_IMPORTED_MODULE_4__utils_storeShape__["a" /* default */], _contextTypes[subscriptionKey] = __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].instanceOf(__WEBPACK_IMPORTED_MODULE_3__utils_Subscription__["a" /* default */]), _contextTypes);
var childContextTypes = (_childContextTypes = {}, _childContextTypes[subscriptionKey] = __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].instanceOf(__WEBPACK_IMPORTED_MODULE_3__utils_Subscription__["a" /* default */]), _childContextTypes);
return function wrapWithConnect(WrappedComponent) {
__WEBPACK_IMPORTED_MODULE_1_invariant___default()(typeof WrappedComponent == 'function', 'You must pass a component to the function returned by ' + ('connect. Instead received ' + WrappedComponent));
var wrappedComponentName = WrappedComponent.displayName || WrappedComponent.name || 'Component';
var displayName = getDisplayName(wrappedComponentName);
var selectorFactoryOptions = _extends({}, connectOptions, {
getDisplayName: getDisplayName,
methodName: methodName,
renderCountProp: renderCountProp,
shouldHandleStateChanges: shouldHandleStateChanges,
storeKey: storeKey,
withRef: withRef,
displayName: displayName,
wrappedComponentName: wrappedComponentName,
WrappedComponent: WrappedComponent
});
var Connect = function (_Component) {
_inherits(Connect, _Component);
function Connect(props, context) {
_classCallCheck(this, Connect);
var _this = _possibleConstructorReturn(this, _Component.call(this, props, context));
_this.version = version;
_this.state = {};
_this.renderCount = 0;
_this.store = _this.props[storeKey] || _this.context[storeKey];
_this.parentSub = props[subscriptionKey] || context[subscriptionKey];
_this.setWrappedInstance = _this.setWrappedInstance.bind(_this);
__WEBPACK_IMPORTED_MODULE_1_invariant___default()(_this.store, 'Could not find "' + storeKey + '" in either the context or ' + ('props of "' + displayName + '". ') + 'Either wrap the root component in a
, ' + ('or explicitly pass "' + storeKey + '" as a prop to "' + displayName + '".'));
// make sure `getState` is properly bound in order to avoid breaking
// custom store implementations that rely on the store's context
_this.getState = _this.store.getState.bind(_this.store);
_this.initSelector();
_this.initSubscription();
return _this;
}
Connect.prototype.getChildContext = function getChildContext() {
var _ref2;
return _ref2 = {}, _ref2[subscriptionKey] = this.subscription || this.parentSub, _ref2;
};
Connect.prototype.componentDidMount = function componentDidMount() {
if (!shouldHandleStateChanges) return;
// componentWillMount fires during server side rendering, but componentDidMount and
// componentWillUnmount do not. Because of this, trySubscribe happens during ...didMount.
// Otherwise, unsubscription would never take place during SSR, causing a memory leak.
// To handle the case where a child component may have triggered a state change by
// dispatching an action in its componentWillMount, we have to re-run the select and maybe
// re-render.
this.subscription.trySubscribe();
this.selector.run(this.props);
if (this.selector.shouldComponentUpdate) this.forceUpdate();
};
Connect.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
this.selector.run(nextProps);
};
Connect.prototype.shouldComponentUpdate = function shouldComponentUpdate() {
return this.selector.shouldComponentUpdate;
};
Connect.prototype.componentWillUnmount = function componentWillUnmount() {
if (this.subscription) this.subscription.tryUnsubscribe();
// these are just to guard against extra memory leakage if a parent element doesn't
// dereference this instance properly, such as an async callback that never finishes
this.subscription = null;
this.store = null;
this.parentSub = null;
this.selector.run = function () {};
};
Connect.prototype.getWrappedInstance = function getWrappedInstance() {
__WEBPACK_IMPORTED_MODULE_1_invariant___default()(withRef, 'To access the wrapped instance, you need to specify ' + ('{ withRef: true } in the options argument of the ' + methodName + '() call.'));
return this.wrappedInstance;
};
Connect.prototype.setWrappedInstance = function setWrappedInstance(ref) {
this.wrappedInstance = ref;
};
Connect.prototype.initSelector = function initSelector() {
var dispatch = this.store.dispatch;
var getState = this.getState;
var sourceSelector = selectorFactory(dispatch, selectorFactoryOptions);
// wrap the selector in an object that tracks its results between runs
var selector = this.selector = {
shouldComponentUpdate: true,
props: sourceSelector(getState(), this.props),
run: function runComponentSelector(props) {
try {
var nextProps = sourceSelector(getState(), props);
if (selector.error || nextProps !== selector.props) {
selector.shouldComponentUpdate = true;
selector.props = nextProps;
selector.error = null;
}
} catch (error) {
selector.shouldComponentUpdate = true;
selector.error = error;
}
}
};
};
Connect.prototype.initSubscription = function initSubscription() {
var _this2 = this;
if (shouldHandleStateChanges) {
(function () {
var subscription = _this2.subscription = new __WEBPACK_IMPORTED_MODULE_3__utils_Subscription__["a" /* default */](_this2.store, _this2.parentSub);
var dummyState = {};
subscription.onStateChange = function onStateChange() {
this.selector.run(this.props);
if (!this.selector.shouldComponentUpdate) {
subscription.notifyNestedSubs();
} else {
this.componentDidUpdate = function componentDidUpdate() {
this.componentDidUpdate = undefined;
subscription.notifyNestedSubs();
};
this.setState(dummyState);
}
}.bind(_this2);
})();
}
};
Connect.prototype.isSubscribed = function isSubscribed() {
return Boolean(this.subscription) && this.subscription.isSubscribed();
};
Connect.prototype.addExtraProps = function addExtraProps(props) {
if (!withRef && !renderCountProp) return props;
// make a shallow copy so that fields added don't leak to the original selector.
// this is especially important for 'ref' since that's a reference back to the component
// instance. a singleton memoized selector would then be holding a reference to the
// instance, preventing the instance from being garbage collected, and that would be bad
var withExtras = _extends({}, props);
if (withRef) withExtras.ref = this.setWrappedInstance;
if (renderCountProp) withExtras[renderCountProp] = this.renderCount++;
return withExtras;
};
Connect.prototype.render = function render() {
var selector = this.selector;
selector.shouldComponentUpdate = false;
if (selector.error) {
throw selector.error;
} else {
return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2_react__["createElement"])(WrappedComponent, this.addExtraProps(selector.props));
}
};
return Connect;
}(__WEBPACK_IMPORTED_MODULE_2_react__["Component"]);
Connect.WrappedComponent = WrappedComponent;
Connect.displayName = displayName;
Connect.childContextTypes = childContextTypes;
Connect.contextTypes = contextTypes;
Connect.propTypes = contextTypes;
if (true) {
Connect.prototype.componentWillUpdate = function componentWillUpdate() {
// We are hot reloading!
if (this.version !== version) {
this.version = version;
this.initSelector();
if (this.subscription) this.subscription.tryUnsubscribe();
this.initSubscription();
if (shouldHandleStateChanges) this.subscription.trySubscribe();
}
};
}
return __WEBPACK_IMPORTED_MODULE_0_hoist_non_react_statics___default()(Connect, WrappedComponent);
};
}
/***/ }),
/* 353 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils_verifyPlainObject__ = __webpack_require__(356);
/* harmony export (immutable) */ __webpack_exports__["b"] = wrapMapToPropsConstant;
/* unused harmony export getDependsOnOwnProps */
/* harmony export (immutable) */ __webpack_exports__["a"] = wrapMapToPropsFunc;
function wrapMapToPropsConstant(getConstant) {
return function initConstantSelector(dispatch, options) {
var constant = getConstant(dispatch, options);
function constantSelector() {
return constant;
}
constantSelector.dependsOnOwnProps = false;
return constantSelector;
};
}
// dependsOnOwnProps is used by createMapToPropsProxy to determine whether to pass props as args
// to the mapToProps function being wrapped. It is also used by makePurePropsSelector to determine
// whether mapToProps needs to be invoked when props have changed.
//
// A length of one signals that mapToProps does not depend on props from the parent component.
// A length of zero is assumed to mean mapToProps is getting args via arguments or ...args and
// therefore not reporting its length accurately..
function getDependsOnOwnProps(mapToProps) {
return mapToProps.dependsOnOwnProps !== null && mapToProps.dependsOnOwnProps !== undefined ? Boolean(mapToProps.dependsOnOwnProps) : mapToProps.length !== 1;
}
// Used by whenMapStateToPropsIsFunction and whenMapDispatchToPropsIsFunction,
// this function wraps mapToProps in a proxy function which does several things:
//
// * Detects whether the mapToProps function being called depends on props, which
// is used by selectorFactory to decide if it should reinvoke on props changes.
//
// * On first call, handles mapToProps if returns another function, and treats that
// new function as the true mapToProps for subsequent calls.
//
// * On first call, verifies the first result is a plain object, in order to warn
// the developer that their mapToProps function is not returning a valid result.
//
function wrapMapToPropsFunc(mapToProps, methodName) {
return function initProxySelector(dispatch, _ref) {
var displayName = _ref.displayName;
var proxy = function mapToPropsProxy(stateOrDispatch, ownProps) {
return proxy.dependsOnOwnProps ? proxy.mapToProps(stateOrDispatch, ownProps) : proxy.mapToProps(stateOrDispatch);
};
proxy.dependsOnOwnProps = getDependsOnOwnProps(mapToProps);
proxy.mapToProps = function detectFactoryAndVerify(stateOrDispatch, ownProps) {
proxy.mapToProps = mapToProps;
var props = proxy(stateOrDispatch, ownProps);
if (typeof props === 'function') {
proxy.mapToProps = props;
proxy.dependsOnOwnProps = getDependsOnOwnProps(props);
props = proxy(stateOrDispatch, ownProps);
}
if (true) __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__utils_verifyPlainObject__["a" /* default */])(props, displayName, methodName);
return props;
};
return proxy;
};
}
/***/ }),
/* 354 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Subscription; });
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
// encapsulates the subscription logic for connecting a component to the redux store, as
// well as nesting subscriptions of descendant components, so that we can ensure the
// ancestor components re-render before descendants
var CLEARED = null;
var nullListeners = {
notify: function notify() {}
};
function createListenerCollection() {
// the current/next pattern is copied from redux's createStore code.
// TODO: refactor+expose that code to be reusable here?
var current = [];
var next = [];
return {
clear: function clear() {
next = CLEARED;
current = CLEARED;
},
notify: function notify() {
var listeners = current = next;
for (var i = 0; i < listeners.length; i++) {
listeners[i]();
}
},
subscribe: function subscribe(listener) {
var isSubscribed = true;
if (next === current) next = current.slice();
next.push(listener);
return function unsubscribe() {
if (!isSubscribed || current === CLEARED) return;
isSubscribed = false;
if (next === current) next = current.slice();
next.splice(next.indexOf(listener), 1);
};
}
};
}
var Subscription = function () {
function Subscription(store, parentSub) {
_classCallCheck(this, Subscription);
this.store = store;
this.parentSub = parentSub;
this.unsubscribe = null;
this.listeners = nullListeners;
}
Subscription.prototype.addNestedSub = function addNestedSub(listener) {
this.trySubscribe();
return this.listeners.subscribe(listener);
};
Subscription.prototype.notifyNestedSubs = function notifyNestedSubs() {
this.listeners.notify();
};
Subscription.prototype.isSubscribed = function isSubscribed() {
return Boolean(this.unsubscribe);
};
Subscription.prototype.trySubscribe = function trySubscribe() {
if (!this.unsubscribe) {
// this.onStateChange is set by connectAdvanced.initSubscription()
this.unsubscribe = this.parentSub ? this.parentSub.addNestedSub(this.onStateChange) : this.store.subscribe(this.onStateChange);
this.listeners = createListenerCollection();
}
};
Subscription.prototype.tryUnsubscribe = function tryUnsubscribe() {
if (this.unsubscribe) {
this.unsubscribe();
this.unsubscribe = null;
this.listeners.clear();
this.listeners = nullListeners;
}
};
return Subscription;
}();
/***/ }),
/* 355 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony default export */ __webpack_exports__["a"] = __WEBPACK_IMPORTED_MODULE_0_react__["PropTypes"].shape({
subscribe: __WEBPACK_IMPORTED_MODULE_0_react__["PropTypes"].func.isRequired,
dispatch: __WEBPACK_IMPORTED_MODULE_0_react__["PropTypes"].func.isRequired,
getState: __WEBPACK_IMPORTED_MODULE_0_react__["PropTypes"].func.isRequired
});
/***/ }),
/* 356 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_es_isPlainObject__ = __webpack_require__(168);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__warning__ = __webpack_require__(210);
/* harmony export (immutable) */ __webpack_exports__["a"] = verifyPlainObject;
function verifyPlainObject(value, displayName, methodName) {
if (!__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0_lodash_es_isPlainObject__["a" /* default */])(value)) {
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__warning__["a" /* default */])(methodName + '() in ' + displayName + ' must return a plain object. Instead received ' + value + '.');
}
}
/***/ }),
/* 357 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony export (immutable) */ __webpack_exports__["c"] = falsy;
/* unused harmony export history */
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return component; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return components; });
/* unused harmony export route */
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return routes; });
var func = __WEBPACK_IMPORTED_MODULE_0_react__["PropTypes"].func,
object = __WEBPACK_IMPORTED_MODULE_0_react__["PropTypes"].object,
arrayOf = __WEBPACK_IMPORTED_MODULE_0_react__["PropTypes"].arrayOf,
oneOfType = __WEBPACK_IMPORTED_MODULE_0_react__["PropTypes"].oneOfType,
element = __WEBPACK_IMPORTED_MODULE_0_react__["PropTypes"].element,
shape = __WEBPACK_IMPORTED_MODULE_0_react__["PropTypes"].shape,
string = __WEBPACK_IMPORTED_MODULE_0_react__["PropTypes"].string;
function falsy(props, propName, componentName) {
if (props[propName]) return new Error('<' + componentName + '> should not have a "' + propName + '" prop');
}
var history = shape({
listen: func.isRequired,
push: func.isRequired,
replace: func.isRequired,
go: func.isRequired,
goBack: func.isRequired,
goForward: func.isRequired
});
var component = oneOfType([func, string]);
var components = oneOfType([component, object]);
var route = oneOfType([object, element]);
var routes = oneOfType([route, arrayOf(route)]);
/***/ }),
/* 358 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/**
* Copyright 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*
*/
// The Symbol used to tag the ReactElement type. If there is no native Symbol
// nor polyfill, then a plain number is used for performance.
var REACT_ELEMENT_TYPE = typeof Symbol === 'function' && Symbol['for'] && Symbol['for']('react.element') || 0xeac7;
module.exports = REACT_ELEMENT_TYPE;
/***/ }),
/* 359 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/**
* Copyright 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
/**
* ReactElementValidator provides a wrapper around a element factory
* which validates the props passed to the element. This is intended to be
* used only in DEV and could be replaced by a static type checker for languages
* that support it.
*/
var ReactCurrentOwner = __webpack_require__(37);
var ReactComponentTreeHook = __webpack_require__(26);
var ReactElement = __webpack_require__(63);
var checkReactTypeSpec = __webpack_require__(824);
var canDefineProperty = __webpack_require__(214);
var getIteratorFn = __webpack_require__(215);
var warning = __webpack_require__(7);
function getDeclarationErrorAddendum() {
if (ReactCurrentOwner.current) {
var name = ReactCurrentOwner.current.getName();
if (name) {
return ' Check the render method of `' + name + '`.';
}
}
return '';
}
/**
* Warn if there's no key explicitly set on dynamic arrays of children or
* object keys are not valid. This allows us to keep track of children between
* updates.
*/
var ownerHasKeyUseWarning = {};
function getCurrentComponentErrorInfo(parentType) {
var info = getDeclarationErrorAddendum();
if (!info) {
var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
if (parentName) {
info = ' Check the top-level render call using <' + parentName + '>.';
}
}
return info;
}
/**
* Warn if the element doesn't have an explicit key assigned to it.
* This element is in an array. The array could grow and shrink or be
* reordered. All children that haven't already been validated are required to
* have a "key" property assigned to it. Error statuses are cached so a warning
* will only be shown once.
*
* @internal
* @param {ReactElement} element Element that requires a key.
* @param {*} parentType element's parent's type.
*/
function validateExplicitKey(element, parentType) {
if (!element._store || element._store.validated || element.key != null) {
return;
}
element._store.validated = true;
var memoizer = ownerHasKeyUseWarning.uniqueKey || (ownerHasKeyUseWarning.uniqueKey = {});
var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
if (memoizer[currentComponentErrorInfo]) {
return;
}
memoizer[currentComponentErrorInfo] = true;
// Usually the current owner is the offender, but if it accepts children as a
// property, it may be the creator of the child that's responsible for
// assigning it a key.
var childOwner = '';
if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
// Give the component that originally created this child.
childOwner = ' It was passed a child from ' + element._owner.getName() + '.';
}
true ? warning(false, 'Each child in an array or iterator should have a unique "key" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.%s', currentComponentErrorInfo, childOwner, ReactComponentTreeHook.getCurrentStackAddendum(element)) : void 0;
}
/**
* Ensure that every element either is passed in a static location, in an
* array with an explicit keys property defined, or in an object literal
* with valid key property.
*
* @internal
* @param {ReactNode} node Statically passed child of any type.
* @param {*} parentType node's parent's type.
*/
function validateChildKeys(node, parentType) {
if (typeof node !== 'object') {
return;
}
if (Array.isArray(node)) {
for (var i = 0; i < node.length; i++) {
var child = node[i];
if (ReactElement.isValidElement(child)) {
validateExplicitKey(child, parentType);
}
}
} else if (ReactElement.isValidElement(node)) {
// This element was passed in a valid location.
if (node._store) {
node._store.validated = true;
}
} else if (node) {
var iteratorFn = getIteratorFn(node);
// Entry iterators provide implicit keys.
if (iteratorFn) {
if (iteratorFn !== node.entries) {
var iterator = iteratorFn.call(node);
var step;
while (!(step = iterator.next()).done) {
if (ReactElement.isValidElement(step.value)) {
validateExplicitKey(step.value, parentType);
}
}
}
}
}
}
/**
* Given an element, validate that its props follow the propTypes definition,
* provided by the type.
*
* @param {ReactElement} element
*/
function validatePropTypes(element) {
var componentClass = element.type;
if (typeof componentClass !== 'function') {
return;
}
var name = componentClass.displayName || componentClass.name;
if (componentClass.propTypes) {
checkReactTypeSpec(componentClass.propTypes, element.props, 'prop', name, element, null);
}
if (typeof componentClass.getDefaultProps === 'function') {
true ? warning(componentClass.getDefaultProps.isReactClassApproved, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.') : void 0;
}
}
var ReactElementValidator = {
createElement: function (type, props, children) {
var validType = typeof type === 'string' || typeof type === 'function';
// We warn in this case but don't throw. We expect the element creation to
// succeed and there will likely be errors in render.
if (!validType) {
if (typeof type !== 'function' && typeof type !== 'string') {
var info = '';
if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
info += ' You likely forgot to export your component from the file ' + 'it\'s defined in.';
}
info += getDeclarationErrorAddendum();
true ? warning(false, 'React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', type == null ? type : typeof type, info) : void 0;
}
}
var element = ReactElement.createElement.apply(this, arguments);
// The result can be nullish if a mock or a custom function is used.
// TODO: Drop this when these are no longer allowed as the type argument.
if (element == null) {
return element;
}
// Skip key warning if the type isn't valid since our key validation logic
// doesn't expect a non-string/function type and can throw confusing errors.
// We don't want exception behavior to differ between dev and prod.
// (Rendering will throw with a helpful message and as soon as the type is
// fixed, the key warnings will appear.)
if (validType) {
for (var i = 2; i < arguments.length; i++) {
validateChildKeys(arguments[i], type);
}
}
validatePropTypes(element);
return element;
},
createFactory: function (type) {
var validatedFactory = ReactElementValidator.createElement.bind(null, type);
// Legacy hook TODO: Warn if this is accessed
validatedFactory.type = type;
if (true) {
if (canDefineProperty) {
Object.defineProperty(validatedFactory, 'type', {
enumerable: false,
get: function () {
true ? warning(false, 'Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.') : void 0;
Object.defineProperty(this, 'type', {
value: type
});
return type;
}
});
}
}
return validatedFactory;
},
cloneElement: function (element, props, children) {
var newElement = ReactElement.cloneElement.apply(this, arguments);
for (var i = 2; i < arguments.length; i++) {
validateChildKeys(arguments[i], newElement.type);
}
validatePropTypes(newElement);
return newElement;
}
};
module.exports = ReactElementValidator;
/***/ }),
/* 360 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/**
* Copyright 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*
*/
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
module.exports = ReactPropTypesSecret;
/***/ }),
/* 361 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (immutable) */ __webpack_exports__["a"] = compose;
/**
* Composes single-argument functions from right to left. The rightmost
* function can take multiple arguments as it provides the signature for
* the resulting composite function.
*
* @param {...Function} funcs The functions to compose.
* @returns {Function} A function obtained by composing the argument functions
* from right to left. For example, compose(f, g, h) is identical to doing
* (...args) => f(g(h(...args))).
*/
function compose() {
for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) {
funcs[_key] = arguments[_key];
}
if (funcs.length === 0) {
return function (arg) {
return arg;
};
}
if (funcs.length === 1) {
return funcs[0];
}
var last = funcs[funcs.length - 1];
var rest = funcs.slice(0, -1);
return function () {
return rest.reduceRight(function (composed, f) {
return f(composed);
}, last.apply(undefined, arguments));
};
}
/***/ }),
/* 362 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_es_isPlainObject__ = __webpack_require__(168);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_symbol_observable__ = __webpack_require__(902);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_symbol_observable___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_symbol_observable__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return ActionTypes; });
/* harmony export (immutable) */ __webpack_exports__["a"] = createStore;
/**
* These are private action types reserved by Redux.
* For any unknown actions, you must return the current state.
* If the current state is undefined, you must return the initial state.
* Do not reference these action types directly in your code.
*/
var ActionTypes = {
INIT: '@@redux/INIT'
};
/**
* Creates a Redux store that holds the state tree.
* The only way to change the data in the store is to call `dispatch()` on it.
*
* There should only be a single store in your app. To specify how different
* parts of the state tree respond to actions, you may combine several reducers
* into a single reducer function by using `combineReducers`.
*
* @param {Function} reducer A function that returns the next state tree, given
* the current state tree and the action to handle.
*
* @param {any} [preloadedState] The initial state. You may optionally specify it
* to hydrate the state from the server in universal apps, or to restore a
* previously serialized user session.
* If you use `combineReducers` to produce the root reducer function, this must be
* an object with the same shape as `combineReducers` keys.
*
* @param {Function} enhancer The store enhancer. You may optionally specify it
* to enhance the store with third-party capabilities such as middleware,
* time travel, persistence, etc. The only store enhancer that ships with Redux
* is `applyMiddleware()`.
*
* @returns {Store} A Redux store that lets you read the state, dispatch actions
* and subscribe to changes.
*/
function createStore(reducer, preloadedState, enhancer) {
var _ref2;
if (typeof preloadedState === 'function' && typeof enhancer === 'undefined') {
enhancer = preloadedState;
preloadedState = undefined;
}
if (typeof enhancer !== 'undefined') {
if (typeof enhancer !== 'function') {
throw new Error('Expected the enhancer to be a function.');
}
return enhancer(createStore)(reducer, preloadedState);
}
if (typeof reducer !== 'function') {
throw new Error('Expected the reducer to be a function.');
}
var currentReducer = reducer;
var currentState = preloadedState;
var currentListeners = [];
var nextListeners = currentListeners;
var isDispatching = false;
function ensureCanMutateNextListeners() {
if (nextListeners === currentListeners) {
nextListeners = currentListeners.slice();
}
}
/**
* Reads the state tree managed by the store.
*
* @returns {any} The current state tree of your application.
*/
function getState() {
return currentState;
}
/**
* Adds a change listener. It will be called any time an action is dispatched,
* and some part of the state tree may potentially have changed. You may then
* call `getState()` to read the current state tree inside the callback.
*
* You may call `dispatch()` from a change listener, with the following
* caveats:
*
* 1. The subscriptions are snapshotted just before every `dispatch()` call.
* If you subscribe or unsubscribe while the listeners are being invoked, this
* will not have any effect on the `dispatch()` that is currently in progress.
* However, the next `dispatch()` call, whether nested or not, will use a more
* recent snapshot of the subscription list.
*
* 2. The listener should not expect to see all state changes, as the state
* might have been updated multiple times during a nested `dispatch()` before
* the listener is called. It is, however, guaranteed that all subscribers
* registered before the `dispatch()` started will be called with the latest
* state by the time it exits.
*
* @param {Function} listener A callback to be invoked on every dispatch.
* @returns {Function} A function to remove this change listener.
*/
function subscribe(listener) {
if (typeof listener !== 'function') {
throw new Error('Expected listener to be a function.');
}
var isSubscribed = true;
ensureCanMutateNextListeners();
nextListeners.push(listener);
return function unsubscribe() {
if (!isSubscribed) {
return;
}
isSubscribed = false;
ensureCanMutateNextListeners();
var index = nextListeners.indexOf(listener);
nextListeners.splice(index, 1);
};
}
/**
* Dispatches an action. It is the only way to trigger a state change.
*
* The `reducer` function, used to create the store, will be called with the
* current state tree and the given `action`. Its return value will
* be considered the **next** state of the tree, and the change listeners
* will be notified.
*
* The base implementation only supports plain object actions. If you want to
* dispatch a Promise, an Observable, a thunk, or something else, you need to
* wrap your store creating function into the corresponding middleware. For
* example, see the documentation for the `redux-thunk` package. Even the
* middleware will eventually dispatch plain object actions using this method.
*
* @param {Object} action A plain object representing “what changed”. It is
* a good idea to keep actions serializable so you can record and replay user
* sessions, or use the time travelling `redux-devtools`. An action must have
* a `type` property which may not be `undefined`. It is a good idea to use
* string constants for action types.
*
* @returns {Object} For convenience, the same action object you dispatched.
*
* Note that, if you use a custom middleware, it may wrap `dispatch()` to
* return something else (for example, a Promise you can await).
*/
function dispatch(action) {
if (!__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0_lodash_es_isPlainObject__["a" /* default */])(action)) {
throw new Error('Actions must be plain objects. ' + 'Use custom middleware for async actions.');
}
if (typeof action.type === 'undefined') {
throw new Error('Actions may not have an undefined "type" property. ' + 'Have you misspelled a constant?');
}
if (isDispatching) {
throw new Error('Reducers may not dispatch actions.');
}
try {
isDispatching = true;
currentState = currentReducer(currentState, action);
} finally {
isDispatching = false;
}
var listeners = currentListeners = nextListeners;
for (var i = 0; i < listeners.length; i++) {
listeners[i]();
}
return action;
}
/**
* Replaces the reducer currently used by the store to calculate the state.
*
* You might need this if your app implements code splitting and you want to
* load some of the reducers dynamically. You might also need this if you
* implement a hot reloading mechanism for Redux.
*
* @param {Function} nextReducer The reducer for the store to use instead.
* @returns {void}
*/
function replaceReducer(nextReducer) {
if (typeof nextReducer !== 'function') {
throw new Error('Expected the nextReducer to be a function.');
}
currentReducer = nextReducer;
dispatch({ type: ActionTypes.INIT });
}
/**
* Interoperability point for observable/reactive libraries.
* @returns {observable} A minimal observable of state changes.
* For more information, see the observable proposal:
* https://github.com/zenparsing/es-observable
*/
function observable() {
var _ref;
var outerSubscribe = subscribe;
return _ref = {
/**
* The minimal observable subscription method.
* @param {Object} observer Any object that can be used as an observer.
* The observer object should have a `next` method.
* @returns {subscription} An object with an `unsubscribe` method that can
* be used to unsubscribe the observable from the store, and prevent further
* emission of values from the observable.
*/
subscribe: function subscribe(observer) {
if (typeof observer !== 'object') {
throw new TypeError('Expected the observer to be an object.');
}
function observeState() {
if (observer.next) {
observer.next(getState());
}
}
observeState();
var unsubscribe = outerSubscribe(observeState);
return { unsubscribe: unsubscribe };
}
}, _ref[__WEBPACK_IMPORTED_MODULE_1_symbol_observable___default.a] = function () {
return this;
}, _ref;
}
// When a store is created, an "INIT" action is dispatched so that every
// reducer returns their initial state. This effectively populates
// the initial state tree.
dispatch({ type: ActionTypes.INIT });
return _ref2 = {
dispatch: dispatch,
subscribe: subscribe,
getState: getState,
replaceReducer: replaceReducer
}, _ref2[__WEBPACK_IMPORTED_MODULE_1_symbol_observable___default.a] = observable, _ref2;
}
/***/ }),
/* 363 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (immutable) */ __webpack_exports__["a"] = warning;
/**
* Prints a warning in the console if it exists.
*
* @param {String} message The warning message.
* @returns {void}
*/
function warning(message) {
/* eslint-disable no-console */
if (typeof console !== 'undefined' && typeof console.error === 'function') {
console.error(message);
}
/* eslint-enable no-console */
try {
// This error was thrown as a convenience so that if you enable
// "break on all exceptions" in your console,
// it would pause the execution at this line.
throw new Error(message);
/* eslint-disable no-empty */
} catch (e) {}
/* eslint-enable no-empty */
}
/***/ }),
/* 364 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Select__ = __webpack_require__(834);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Select__["a"]; });
/***/ }),
/* 365 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TextArea__ = __webpack_require__(835);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__TextArea__["a"]; });
/***/ }),
/* 366 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_isNil__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_isNil___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_isNil__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__lib__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__elements_Icon__ = __webpack_require__(22);
/**
* A divider sub-component for Breadcrumb component.
*/
function BreadcrumbDivider(props) {
var children = props.children,
className = props.className,
content = props.content,
icon = props.icon;
var classes = __WEBPACK_IMPORTED_MODULE_2_classnames___default()('divider', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["b" /* getUnhandledProps */])(BreadcrumbDivider, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["c" /* getElementType */])(BreadcrumbDivider, props);
var iconElement = __WEBPACK_IMPORTED_MODULE_5__elements_Icon__["a" /* default */].create(icon, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }));
if (iconElement) return iconElement;
var breadcrumbContent = content;
if (__WEBPACK_IMPORTED_MODULE_1_lodash_isNil___default()(content)) breadcrumbContent = __WEBPACK_IMPORTED_MODULE_1_lodash_isNil___default()(children) ? '/' : children;
return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
breadcrumbContent
);
}
BreadcrumbDivider.handledProps = ['as', 'children', 'className', 'content', 'icon'];
BreadcrumbDivider._meta = {
name: 'BreadcrumbDivider',
type: __WEBPACK_IMPORTED_MODULE_4__lib__["d" /* META */].TYPES.COLLECTION,
parent: 'Breadcrumb'
};
true ? BreadcrumbDivider.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].as,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].string,
/** Shorthand for primary content. */
content: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].contentShorthand,
/** Render as an `Icon` component with `divider` class instead of a `div`. */
icon: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].itemShorthand
} : void 0;
BreadcrumbDivider.create = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["i" /* createShorthandFactory */])(BreadcrumbDivider, function (icon) {
return { icon: icon };
});
/* harmony default export */ __webpack_exports__["a"] = BreadcrumbDivider;
/***/ }),
/* 367 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass__ = __webpack_require__(11);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(13);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(12);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_lodash_isNil__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_lodash_isNil___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_lodash_isNil__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__lib__ = __webpack_require__(2);
/**
* A section sub-component for Breadcrumb component.
*/
var BreadcrumbSection = function (_Component) {
__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(BreadcrumbSection, _Component);
function BreadcrumbSection() {
var _ref;
var _temp, _this, _ret;
__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, BreadcrumbSection);
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
return _ret = (_temp = (_this = __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, (_ref = BreadcrumbSection.__proto__ || Object.getPrototypeOf(BreadcrumbSection)).call.apply(_ref, [this].concat(args))), _this), _this.handleClick = function (e) {
var onClick = _this.props.onClick;
if (onClick) onClick(e, _this.props);
}, _temp), __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(_this, _ret);
}
__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass___default()(BreadcrumbSection, [{
key: 'render',
value: function render() {
var _props = this.props,
active = _props.active,
children = _props.children,
className = _props.className,
content = _props.content,
href = _props.href,
link = _props.link,
onClick = _props.onClick;
var classes = __WEBPACK_IMPORTED_MODULE_6_classnames___default()(__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_8__lib__["a" /* useKeyOnly */])(active, 'active'), 'section', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_8__lib__["b" /* getUnhandledProps */])(BreadcrumbSection, this.props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_8__lib__["c" /* getElementType */])(BreadcrumbSection, this.props, function () {
if (link || onClick) return 'a';
});
return __WEBPACK_IMPORTED_MODULE_7_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes, href: href, onClick: this.handleClick }),
__WEBPACK_IMPORTED_MODULE_5_lodash_isNil___default()(children) ? content : children
);
}
}]);
return BreadcrumbSection;
}(__WEBPACK_IMPORTED_MODULE_7_react__["Component"]);
BreadcrumbSection._meta = {
name: 'BreadcrumbSection',
type: __WEBPACK_IMPORTED_MODULE_8__lib__["d" /* META */].TYPES.COLLECTION,
parent: 'Breadcrumb'
};
/* harmony default export */ __webpack_exports__["a"] = BreadcrumbSection;
true ? BreadcrumbSection.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_8__lib__["e" /* customPropTypes */].as,
/** Style as the currently active section. */
active: __WEBPACK_IMPORTED_MODULE_7_react__["PropTypes"].bool,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_7_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_7_react__["PropTypes"].string,
/** Shorthand for primary content. */
content: __WEBPACK_IMPORTED_MODULE_8__lib__["e" /* customPropTypes */].contentShorthand,
/** Render as an `a` tag instead of a `div` and adds the href attribute. */
href: __WEBPACK_IMPORTED_MODULE_8__lib__["e" /* customPropTypes */].every([__WEBPACK_IMPORTED_MODULE_8__lib__["e" /* customPropTypes */].disallow(['link']), __WEBPACK_IMPORTED_MODULE_7_react__["PropTypes"].string]),
/** Render as an `a` tag instead of a `div`. */
link: __WEBPACK_IMPORTED_MODULE_8__lib__["e" /* customPropTypes */].every([__WEBPACK_IMPORTED_MODULE_8__lib__["e" /* customPropTypes */].disallow(['href']), __WEBPACK_IMPORTED_MODULE_7_react__["PropTypes"].bool]),
/**
* Called on click. When passed, the component will render as an `a`
* tag by default instead of a `div`.
*
* @param {SyntheticEvent} event - React's original SyntheticEvent.
* @param {object} data - All props.
*/
onClick: __WEBPACK_IMPORTED_MODULE_7_react__["PropTypes"].func
} : void 0;
BreadcrumbSection.handledProps = ['active', 'as', 'children', 'className', 'content', 'href', 'link', 'onClick'];
BreadcrumbSection.create = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_8__lib__["i" /* createShorthandFactory */])(BreadcrumbSection, function (content) {
return { content: content, link: true };
}, true);
/***/ }),
/* 368 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__lib__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__elements_Button__ = __webpack_require__(219);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__FormField__ = __webpack_require__(42);
/**
* Sugar for
* @see Button
* @see Form
*/
function FormButton(props) {
var control = props.control;
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__lib__["b" /* getUnhandledProps */])(FormButton, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__lib__["c" /* getElementType */])(FormButton, props);
return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(ElementType, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { control: control }));
}
FormButton.handledProps = ['as', 'control'];
FormButton._meta = {
name: 'FormButton',
parent: 'Form',
type: __WEBPACK_IMPORTED_MODULE_2__lib__["d" /* META */].TYPES.COLLECTION
};
true ? FormButton.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_2__lib__["e" /* customPropTypes */].as,
/** A FormField control prop */
control: __WEBPACK_IMPORTED_MODULE_4__FormField__["a" /* default */].propTypes.control
} : void 0;
FormButton.defaultProps = {
as: __WEBPACK_IMPORTED_MODULE_4__FormField__["a" /* default */],
control: __WEBPACK_IMPORTED_MODULE_3__elements_Button__["a" /* default */]
};
/* harmony default export */ __webpack_exports__["a"] = FormButton;
/***/ }),
/* 369 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__lib__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__modules_Checkbox__ = __webpack_require__(144);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__FormField__ = __webpack_require__(42);
/**
* Sugar for
* @see Checkbox
* @see Form
*/
function FormCheckbox(props) {
var control = props.control;
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__lib__["b" /* getUnhandledProps */])(FormCheckbox, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__lib__["c" /* getElementType */])(FormCheckbox, props);
return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(ElementType, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { control: control }));
}
FormCheckbox.handledProps = ['as', 'control'];
FormCheckbox._meta = {
name: 'FormCheckbox',
parent: 'Form',
type: __WEBPACK_IMPORTED_MODULE_2__lib__["d" /* META */].TYPES.COLLECTION
};
true ? FormCheckbox.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_2__lib__["e" /* customPropTypes */].as,
/** A FormField control prop */
control: __WEBPACK_IMPORTED_MODULE_4__FormField__["a" /* default */].propTypes.control
} : void 0;
FormCheckbox.defaultProps = {
as: __WEBPACK_IMPORTED_MODULE_4__FormField__["a" /* default */],
control: __WEBPACK_IMPORTED_MODULE_3__modules_Checkbox__["a" /* default */]
};
/* harmony default export */ __webpack_exports__["a"] = FormCheckbox;
/***/ }),
/* 370 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__lib__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__modules_Dropdown__ = __webpack_require__(227);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__FormField__ = __webpack_require__(42);
/**
* Sugar for
* @see Dropdown
* @see Form
*/
function FormDropdown(props) {
var control = props.control;
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__lib__["b" /* getUnhandledProps */])(FormDropdown, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__lib__["c" /* getElementType */])(FormDropdown, props);
return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(ElementType, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { control: control }));
}
FormDropdown.handledProps = ['as', 'control'];
FormDropdown._meta = {
name: 'FormDropdown',
parent: 'Form',
type: __WEBPACK_IMPORTED_MODULE_2__lib__["d" /* META */].TYPES.COLLECTION
};
true ? FormDropdown.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_2__lib__["e" /* customPropTypes */].as,
/** A FormField control prop */
control: __WEBPACK_IMPORTED_MODULE_4__FormField__["a" /* default */].propTypes.control
} : void 0;
FormDropdown.defaultProps = {
as: __WEBPACK_IMPORTED_MODULE_4__FormField__["a" /* default */],
control: __WEBPACK_IMPORTED_MODULE_3__modules_Dropdown__["a" /* default */]
};
/* harmony default export */ __webpack_exports__["a"] = FormDropdown;
/***/ }),
/* 371 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toConsumableArray__ = __webpack_require__(55);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toConsumableArray___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toConsumableArray__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__lib__ = __webpack_require__(2);
/**
* A set of fields can appear grouped together
* @see Form
*/
function FormGroup(props) {
var children = props.children,
className = props.className,
grouped = props.grouped,
inline = props.inline,
widths = props.widths;
var classes = __WEBPACK_IMPORTED_MODULE_3_classnames___default()(__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["f" /* useWidthProp */])(widths, null, true), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["a" /* useKeyOnly */])(inline, 'inline'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["a" /* useKeyOnly */])(grouped, 'grouped'), 'fields', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["b" /* getUnhandledProps */])(FormGroup, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["c" /* getElementType */])(FormGroup, props);
return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
children
);
}
FormGroup.handledProps = ['as', 'children', 'className', 'grouped', 'inline', 'widths'];
FormGroup._meta = {
name: 'FormGroup',
parent: 'Form',
type: __WEBPACK_IMPORTED_MODULE_4__lib__["d" /* META */].TYPES.COLLECTION,
props: {
widths: [].concat(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toConsumableArray___default()(__WEBPACK_IMPORTED_MODULE_4__lib__["g" /* SUI */].WIDTHS), ['equal'])
}
};
true ? FormGroup.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].as,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].string,
/** Fields can show related choices */
grouped: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].every([__WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].disallow(['inline']), __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].bool]),
/** Multiple fields may be inline in a row */
inline: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].every([__WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].disallow(['grouped']), __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].bool]),
/** Fields Groups can specify their width in grid columns or automatically divide fields to be equal width */
widths: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].oneOf(FormGroup._meta.props.widths)
} : void 0;
FormGroup.defaultProps = {
as: 'div'
};
/* harmony default export */ __webpack_exports__["a"] = FormGroup;
/***/ }),
/* 372 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__lib__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__elements_Input__ = __webpack_require__(220);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__FormField__ = __webpack_require__(42);
/**
* Sugar for
* @see Form
* @see Input
*/
function FormInput(props) {
var control = props.control;
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__lib__["b" /* getUnhandledProps */])(FormInput, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__lib__["c" /* getElementType */])(FormInput, props);
return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(ElementType, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { control: control }));
}
FormInput.handledProps = ['as', 'control'];
FormInput._meta = {
name: 'FormInput',
parent: 'Form',
type: __WEBPACK_IMPORTED_MODULE_2__lib__["d" /* META */].TYPES.COLLECTION
};
true ? FormInput.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_2__lib__["e" /* customPropTypes */].as,
/** A FormField control prop */
control: __WEBPACK_IMPORTED_MODULE_4__FormField__["a" /* default */].propTypes.control
} : void 0;
FormInput.defaultProps = {
as: __WEBPACK_IMPORTED_MODULE_4__FormField__["a" /* default */],
control: __WEBPACK_IMPORTED_MODULE_3__elements_Input__["a" /* default */]
};
/* harmony default export */ __webpack_exports__["a"] = FormInput;
/***/ }),
/* 373 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__lib__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__addons_Radio__ = __webpack_require__(216);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__FormField__ = __webpack_require__(42);
/**
* Sugar for
* @see Form
* @see Radio
*/
function FormRadio(props) {
var control = props.control;
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__lib__["b" /* getUnhandledProps */])(FormRadio, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__lib__["c" /* getElementType */])(FormRadio, props);
return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(ElementType, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { control: control }));
}
FormRadio.handledProps = ['as', 'control'];
FormRadio._meta = {
name: 'FormRadio',
parent: 'Form',
type: __WEBPACK_IMPORTED_MODULE_2__lib__["d" /* META */].TYPES.COLLECTION
};
true ? FormRadio.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_2__lib__["e" /* customPropTypes */].as,
/** A FormField control prop */
control: __WEBPACK_IMPORTED_MODULE_4__FormField__["a" /* default */].propTypes.control
} : void 0;
FormRadio.defaultProps = {
as: __WEBPACK_IMPORTED_MODULE_4__FormField__["a" /* default */],
control: __WEBPACK_IMPORTED_MODULE_3__addons_Radio__["a" /* default */]
};
/* harmony default export */ __webpack_exports__["a"] = FormRadio;
/***/ }),
/* 374 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__lib__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__addons_Select__ = __webpack_require__(364);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__FormField__ = __webpack_require__(42);
/**
* Sugar for
* @see Form
* @see Select
*/
function FormSelect(props) {
var control = props.control;
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__lib__["b" /* getUnhandledProps */])(FormSelect, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__lib__["c" /* getElementType */])(FormSelect, props);
return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(ElementType, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { control: control }));
}
FormSelect.handledProps = ['as', 'control'];
FormSelect._meta = {
name: 'FormSelect',
parent: 'Form',
type: __WEBPACK_IMPORTED_MODULE_2__lib__["d" /* META */].TYPES.COLLECTION
};
true ? FormSelect.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_2__lib__["e" /* customPropTypes */].as,
/** A FormField control prop */
control: __WEBPACK_IMPORTED_MODULE_4__FormField__["a" /* default */].propTypes.control
} : void 0;
FormSelect.defaultProps = {
as: __WEBPACK_IMPORTED_MODULE_4__FormField__["a" /* default */],
control: __WEBPACK_IMPORTED_MODULE_3__addons_Select__["a" /* default */]
};
/* harmony default export */ __webpack_exports__["a"] = FormSelect;
/***/ }),
/* 375 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__lib__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__addons_TextArea__ = __webpack_require__(365);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__FormField__ = __webpack_require__(42);
/**
* Sugar for
* @see Form
* @see TextArea
*/
function FormTextArea(props) {
var control = props.control;
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__lib__["b" /* getUnhandledProps */])(FormTextArea, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__lib__["c" /* getElementType */])(FormTextArea, props);
return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(ElementType, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { control: control }));
}
FormTextArea.handledProps = ['as', 'control'];
FormTextArea._meta = {
name: 'FormTextArea',
parent: 'Form',
type: __WEBPACK_IMPORTED_MODULE_2__lib__["d" /* META */].TYPES.COLLECTION
};
true ? FormTextArea.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_2__lib__["e" /* customPropTypes */].as,
/** A FormField control prop */
control: __WEBPACK_IMPORTED_MODULE_4__FormField__["a" /* default */].propTypes.control
} : void 0;
FormTextArea.defaultProps = {
as: __WEBPACK_IMPORTED_MODULE_4__FormField__["a" /* default */],
control: __WEBPACK_IMPORTED_MODULE_3__addons_TextArea__["a" /* default */]
};
/* harmony default export */ __webpack_exports__["a"] = FormTextArea;
/***/ }),
/* 376 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__lib__ = __webpack_require__(2);
/**
* A column sub-component for Grid.
*/
function GridColumn(props) {
var children = props.children,
className = props.className,
computer = props.computer,
color = props.color,
floated = props.floated,
largeScreen = props.largeScreen,
mobile = props.mobile,
only = props.only,
stretched = props.stretched,
tablet = props.tablet,
textAlign = props.textAlign,
verticalAlign = props.verticalAlign,
widescreen = props.widescreen,
width = props.width;
var classes = __WEBPACK_IMPORTED_MODULE_1_classnames___default()(color, __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["a" /* useKeyOnly */])(stretched, 'stretched'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["u" /* useTextAlignProp */])(textAlign), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["h" /* useValueAndKey */])(floated, 'floated'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["h" /* useValueAndKey */])(only, 'only'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["k" /* useVerticalAlignProp */])(verticalAlign), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["f" /* useWidthProp */])(computer, 'wide computer'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["f" /* useWidthProp */])(largeScreen, 'wide large screen'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["f" /* useWidthProp */])(mobile, 'wide mobile'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["f" /* useWidthProp */])(tablet, 'wide tablet'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["f" /* useWidthProp */])(widescreen, 'wide widescreen'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["f" /* useWidthProp */])(width, 'wide'), 'column', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["b" /* getUnhandledProps */])(GridColumn, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["c" /* getElementType */])(GridColumn, props);
return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
children
);
}
GridColumn.handledProps = ['as', 'children', 'className', 'color', 'computer', 'floated', 'largeScreen', 'mobile', 'only', 'stretched', 'tablet', 'textAlign', 'verticalAlign', 'widescreen', 'width'];
GridColumn._meta = {
name: 'GridColumn',
parent: 'Grid',
type: __WEBPACK_IMPORTED_MODULE_3__lib__["d" /* META */].TYPES.COLLECTION
};
true ? GridColumn.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_3__lib__["e" /* customPropTypes */].as,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].string,
/** A grid column can be colored. */
color: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].oneOf(__WEBPACK_IMPORTED_MODULE_3__lib__["g" /* SUI */].COLORS),
/** A column can specify a width for a computer. */
computer: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].oneOf(__WEBPACK_IMPORTED_MODULE_3__lib__["g" /* SUI */].WIDTHS),
/** A column can sit flush against the left or right edge of a row. */
floated: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].oneOf(__WEBPACK_IMPORTED_MODULE_3__lib__["g" /* SUI */].FLOATS),
/** A column can specify a width for a large screen device. */
largeScreen: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].oneOf(__WEBPACK_IMPORTED_MODULE_3__lib__["g" /* SUI */].WIDTHS),
/** A column can specify a width for a mobile device. */
mobile: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].oneOf(__WEBPACK_IMPORTED_MODULE_3__lib__["g" /* SUI */].WIDTHS),
/** A column can appear only for a specific device, or screen sizes. */
only: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].oneOf(['computer', 'large screen', 'mobile', 'tablet mobile', 'tablet', 'widescreen']),
/** An can stretch its contents to take up the entire grid or row height. */
stretched: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].bool,
/** A column can specify a width for a tablet device. */
tablet: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].oneOf(__WEBPACK_IMPORTED_MODULE_3__lib__["g" /* SUI */].WIDTHS),
/** A row can specify its text alignment. */
textAlign: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].oneOf(__WEBPACK_IMPORTED_MODULE_3__lib__["g" /* SUI */].TEXT_ALIGNMENTS),
/** A column can specify its vertical alignment to have all its columns vertically centered. */
verticalAlign: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].oneOf(__WEBPACK_IMPORTED_MODULE_3__lib__["g" /* SUI */].VERTICAL_ALIGNMENTS),
/** A column can specify a width for a wide screen device. */
widescreen: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].oneOf(__WEBPACK_IMPORTED_MODULE_3__lib__["g" /* SUI */].WIDTHS),
/** Represents width of column. */
width: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].oneOf(__WEBPACK_IMPORTED_MODULE_3__lib__["g" /* SUI */].WIDTHS)
} : void 0;
/* harmony default export */ __webpack_exports__["a"] = GridColumn;
/***/ }),
/* 377 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toConsumableArray__ = __webpack_require__(55);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toConsumableArray___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toConsumableArray__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__lib__ = __webpack_require__(2);
/**
* A row sub-component for Grid.
*/
function GridRow(props) {
var centered = props.centered,
children = props.children,
className = props.className,
color = props.color,
columns = props.columns,
divided = props.divided,
only = props.only,
reversed = props.reversed,
stretched = props.stretched,
textAlign = props.textAlign,
verticalAlign = props.verticalAlign;
var classes = __WEBPACK_IMPORTED_MODULE_2_classnames___default()(color, __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["a" /* useKeyOnly */])(centered, 'centered'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["a" /* useKeyOnly */])(divided, 'divided'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["a" /* useKeyOnly */])(stretched, 'stretched'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["u" /* useTextAlignProp */])(textAlign), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["h" /* useValueAndKey */])(only, 'only'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["h" /* useValueAndKey */])(reversed, 'reversed'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["k" /* useVerticalAlignProp */])(verticalAlign), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["f" /* useWidthProp */])(columns, 'column', true), 'row', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["b" /* getUnhandledProps */])(GridRow, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["c" /* getElementType */])(GridRow, props);
return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
children
);
}
GridRow.handledProps = ['as', 'centered', 'children', 'className', 'color', 'columns', 'divided', 'only', 'reversed', 'stretched', 'textAlign', 'verticalAlign'];
GridRow._meta = {
name: 'GridRow',
parent: 'Grid',
type: __WEBPACK_IMPORTED_MODULE_4__lib__["d" /* META */].TYPES.COLLECTION
};
true ? GridRow.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].as,
/** A row can have its columns centered. */
centered: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].bool,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].string,
/** A grid row can be colored. */
color: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].oneOf(__WEBPACK_IMPORTED_MODULE_4__lib__["g" /* SUI */].COLORS),
/** Represents column count per line in Row. */
columns: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].oneOf([].concat(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toConsumableArray___default()(__WEBPACK_IMPORTED_MODULE_4__lib__["g" /* SUI */].WIDTHS), ['equal'])),
/** A row can have dividers between its columns. */
divided: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].bool,
/** A row can appear only for a specific device, or screen sizes. */
only: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].oneOf(['computer', 'large screen', 'mobile', 'tablet mobile', 'tablet', 'widescreen']),
/** A row can specify that its columns should reverse order at different device sizes. */
reversed: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].oneOf(['computer', 'computer vertically', 'mobile', 'mobile vertically', 'tablet', 'tablet vertically']),
/** An can stretch its contents to take up the entire column height. */
stretched: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].bool,
/** A row can specify its text alignment. */
textAlign: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].oneOf(__WEBPACK_IMPORTED_MODULE_4__lib__["g" /* SUI */].TEXT_ALIGNMENTS),
/** A row can specify its vertical alignment to have all its columns vertically centered. */
verticalAlign: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].oneOf(__WEBPACK_IMPORTED_MODULE_4__lib__["g" /* SUI */].VERTICAL_ALIGNMENTS)
} : void 0;
/* harmony default export */ __webpack_exports__["a"] = GridRow;
/***/ }),
/* 378 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_isNil__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_isNil___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_isNil__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__lib__ = __webpack_require__(2);
/**
* A menu item may include a header or may itself be a header.
*/
function MenuHeader(props) {
var children = props.children,
className = props.className,
content = props.content;
var classes = __WEBPACK_IMPORTED_MODULE_2_classnames___default()('header', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["b" /* getUnhandledProps */])(MenuHeader, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["c" /* getElementType */])(MenuHeader, props);
return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
__WEBPACK_IMPORTED_MODULE_1_lodash_isNil___default()(children) ? content : children
);
}
MenuHeader.handledProps = ['as', 'children', 'className', 'content'];
MenuHeader._meta = {
name: 'MenuHeader',
type: __WEBPACK_IMPORTED_MODULE_4__lib__["d" /* META */].TYPES.COLLECTION,
parent: 'Menu'
};
true ? MenuHeader.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].as,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].string,
/** Shorthand for primary content. */
content: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].contentShorthand
} : void 0;
/* harmony default export */ __webpack_exports__["a"] = MenuHeader;
/***/ }),
/* 379 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass__ = __webpack_require__(11);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(13);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(12);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_lodash_startCase__ = __webpack_require__(722);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_lodash_startCase___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_lodash_startCase__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_lodash_isNil__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_lodash_isNil___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_lodash_isNil__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__lib__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__elements_Icon__ = __webpack_require__(22);
/**
* A menu can contain an item.
*/
var MenuItem = function (_Component) {
__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(MenuItem, _Component);
function MenuItem() {
var _ref;
var _temp, _this, _ret;
__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, MenuItem);
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
return _ret = (_temp = (_this = __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, (_ref = MenuItem.__proto__ || Object.getPrototypeOf(MenuItem)).call.apply(_ref, [this].concat(args))), _this), _this.handleClick = function (e) {
var onClick = _this.props.onClick;
if (onClick) onClick(e, _this.props);
}, _temp), __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(_this, _ret);
}
__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass___default()(MenuItem, [{
key: 'render',
value: function render() {
var _props = this.props,
active = _props.active,
children = _props.children,
className = _props.className,
color = _props.color,
content = _props.content,
fitted = _props.fitted,
header = _props.header,
icon = _props.icon,
link = _props.link,
name = _props.name,
onClick = _props.onClick,
position = _props.position;
var classes = __WEBPACK_IMPORTED_MODULE_7_classnames___default()(color, position, __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_9__lib__["a" /* useKeyOnly */])(active, 'active'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_9__lib__["a" /* useKeyOnly */])(icon === true || icon && !(name || content), 'icon'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_9__lib__["a" /* useKeyOnly */])(header, 'header'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_9__lib__["a" /* useKeyOnly */])(link, 'link'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_9__lib__["j" /* useKeyOrValueAndKey */])(fitted, 'fitted'), 'item', className);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_9__lib__["c" /* getElementType */])(MenuItem, this.props, function () {
if (onClick) return 'a';
});
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_9__lib__["b" /* getUnhandledProps */])(MenuItem, this.props);
if (!__WEBPACK_IMPORTED_MODULE_6_lodash_isNil___default()(children)) {
return __WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes, onClick: this.handleClick }),
children
);
}
return __WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes, onClick: this.handleClick }),
__WEBPACK_IMPORTED_MODULE_10__elements_Icon__["a" /* default */].create(icon),
content || __WEBPACK_IMPORTED_MODULE_5_lodash_startCase___default()(name)
);
}
}]);
return MenuItem;
}(__WEBPACK_IMPORTED_MODULE_8_react__["Component"]);
MenuItem._meta = {
name: 'MenuItem',
type: __WEBPACK_IMPORTED_MODULE_9__lib__["d" /* META */].TYPES.COLLECTION,
parent: 'Menu'
};
/* harmony default export */ __webpack_exports__["a"] = MenuItem;
true ? MenuItem.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_9__lib__["e" /* customPropTypes */].as,
/** A menu item can be active. */
active: __WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].bool,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].string,
/** Additional colors can be specified. */
color: __WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].oneOf(__WEBPACK_IMPORTED_MODULE_9__lib__["g" /* SUI */].COLORS),
/** Shorthand for primary content. */
content: __WEBPACK_IMPORTED_MODULE_9__lib__["e" /* customPropTypes */].contentShorthand,
/** A menu item or menu can remove element padding, vertically or horizontally. */
fitted: __WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].oneOfType([__WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].bool, __WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].oneOf(['horizontally', 'vertically'])]),
/** A menu item may include a header or may itself be a header. */
header: __WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].bool,
/** MenuItem can be only icon. */
icon: __WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].oneOfType([__WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].bool, __WEBPACK_IMPORTED_MODULE_9__lib__["e" /* customPropTypes */].itemShorthand]),
/** MenuItem index inside Menu. */
index: __WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].number,
/** A menu item can be link. */
link: __WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].bool,
/** Internal name of the MenuItem. */
name: __WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].string,
/**
* Called on click. When passed, the component will render as an `a`
* tag by default instead of a `div`.
*
* @param {SyntheticEvent} event - React's original SyntheticEvent.
* @param {object} data - All props.
*/
onClick: __WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].func,
/** A menu item can take right position. */
position: __WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].oneOf(['right'])
} : void 0;
MenuItem.handledProps = ['active', 'as', 'children', 'className', 'color', 'content', 'fitted', 'header', 'icon', 'index', 'link', 'name', 'onClick', 'position'];
MenuItem.create = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_9__lib__["i" /* createShorthandFactory */])(MenuItem, function (val) {
return { content: val, name: val };
}, true);
/***/ }),
/* 380 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__lib__ = __webpack_require__(2);
/**
* A menu can contain a sub menu.
*/
function MenuMenu(props) {
var children = props.children,
className = props.className,
position = props.position;
var classes = __WEBPACK_IMPORTED_MODULE_1_classnames___default()(position, 'menu', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["b" /* getUnhandledProps */])(MenuMenu, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["c" /* getElementType */])(MenuMenu, props);
return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
children
);
}
MenuMenu.handledProps = ['as', 'children', 'className', 'position'];
MenuMenu._meta = {
name: 'MenuMenu',
type: __WEBPACK_IMPORTED_MODULE_3__lib__["d" /* META */].TYPES.COLLECTION,
parent: 'Menu'
};
true ? MenuMenu.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_3__lib__["e" /* customPropTypes */].as,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].string,
/** A sub menu can take right position. */
position: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].oneOf(['right'])
} : void 0;
/* harmony default export */ __webpack_exports__["a"] = MenuMenu;
/***/ }),
/* 381 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__lib__ = __webpack_require__(2);
/**
* A message can contain a content.
*/
function MessageContent(props) {
var children = props.children,
className = props.className;
var classes = __WEBPACK_IMPORTED_MODULE_1_classnames___default()('content', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["b" /* getUnhandledProps */])(MessageContent, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["c" /* getElementType */])(MessageContent, props);
return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
children
);
}
MessageContent.handledProps = ['as', 'children', 'className'];
MessageContent._meta = {
name: 'MessageContent',
parent: 'Message',
type: __WEBPACK_IMPORTED_MODULE_3__lib__["d" /* META */].TYPES.COLLECTION
};
true ? MessageContent.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_3__lib__["e" /* customPropTypes */].as,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].string
} : void 0;
/* harmony default export */ __webpack_exports__["a"] = MessageContent;
/***/ }),
/* 382 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_isNil__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_isNil___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_isNil__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__lib__ = __webpack_require__(2);
/**
* A message can contain a header.
*/
function MessageHeader(props) {
var children = props.children,
className = props.className,
content = props.content;
var classes = __WEBPACK_IMPORTED_MODULE_2_classnames___default()('header', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["b" /* getUnhandledProps */])(MessageHeader, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["c" /* getElementType */])(MessageHeader, props);
return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
__WEBPACK_IMPORTED_MODULE_1_lodash_isNil___default()(children) ? content : children
);
}
MessageHeader.handledProps = ['as', 'children', 'className', 'content'];
MessageHeader._meta = {
name: 'MessageHeader',
parent: 'Message',
type: __WEBPACK_IMPORTED_MODULE_4__lib__["d" /* META */].TYPES.COLLECTION
};
true ? MessageHeader.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].as,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].string,
/** Shorthand for primary content. */
content: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].itemShorthand
} : void 0;
MessageHeader.create = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["i" /* createShorthandFactory */])(MessageHeader, function (val) {
return { content: val };
});
/* harmony default export */ __webpack_exports__["a"] = MessageHeader;
/***/ }),
/* 383 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_map__ = __webpack_require__(21);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_map___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_map__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_lodash_isNil__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_lodash_isNil___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_lodash_isNil__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__lib__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__MessageItem__ = __webpack_require__(217);
/**
* A message can contain a list of items.
*/
function MessageList(props) {
var children = props.children,
className = props.className,
items = props.items;
var classes = __WEBPACK_IMPORTED_MODULE_3_classnames___default()('list', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__lib__["b" /* getUnhandledProps */])(MessageList, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__lib__["c" /* getElementType */])(MessageList, props);
return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
__WEBPACK_IMPORTED_MODULE_2_lodash_isNil___default()(children) ? __WEBPACK_IMPORTED_MODULE_1_lodash_map___default()(items, __WEBPACK_IMPORTED_MODULE_6__MessageItem__["a" /* default */].create) : children
);
}
MessageList.handledProps = ['as', 'children', 'className', 'items'];
MessageList._meta = {
name: 'MessageList',
parent: 'Message',
type: __WEBPACK_IMPORTED_MODULE_5__lib__["d" /* META */].TYPES.COLLECTION
};
true ? MessageList.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_5__lib__["e" /* customPropTypes */].as,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_4_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_4_react__["PropTypes"].string,
/** Shorthand Message.Items. */
items: __WEBPACK_IMPORTED_MODULE_5__lib__["e" /* customPropTypes */].collectionShorthand
} : void 0;
MessageList.defaultProps = {
as: 'ul'
};
MessageList.create = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__lib__["i" /* createShorthandFactory */])(MessageList, function (val) {
return { items: val };
});
/* harmony default export */ __webpack_exports__["a"] = MessageList;
/***/ }),
/* 384 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__lib__ = __webpack_require__(2);
function TableBody(props) {
var children = props.children,
className = props.className;
var classes = __WEBPACK_IMPORTED_MODULE_1_classnames___default()(className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["b" /* getUnhandledProps */])(TableBody, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["c" /* getElementType */])(TableBody, props);
return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
children
);
}
TableBody.handledProps = ['as', 'children', 'className'];
TableBody._meta = {
name: 'TableBody',
type: __WEBPACK_IMPORTED_MODULE_3__lib__["d" /* META */].TYPES.COLLECTION,
parent: 'Table'
};
TableBody.defaultProps = {
as: 'tbody'
};
true ? TableBody.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_3__lib__["e" /* customPropTypes */].as,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].string
} : void 0;
/* harmony default export */ __webpack_exports__["a"] = TableBody;
/***/ }),
/* 385 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__lib__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__TableHeader__ = __webpack_require__(218);
/**
* A table can have a footer.
*/
function TableFooter(props) {
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__TableHeader__["a" /* default */], props);
}
TableFooter.handledProps = ['as'];
TableFooter._meta = {
name: 'TableFooter',
type: __WEBPACK_IMPORTED_MODULE_1__lib__["d" /* META */].TYPES.COLLECTION,
parent: 'Table'
};
TableFooter.defaultProps = {
as: 'tfoot'
};
/* harmony default export */ __webpack_exports__["a"] = TableFooter;
/***/ }),
/* 386 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__lib__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__TableCell__ = __webpack_require__(139);
/**
* A table can have a header cell.
*/
function TableHeaderCell(props) {
var as = props.as,
className = props.className,
sorted = props.sorted;
var classes = __WEBPACK_IMPORTED_MODULE_1_classnames___default()(__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["h" /* useValueAndKey */])(sorted, 'sorted'), className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["b" /* getUnhandledProps */])(TableHeaderCell, props);
return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__TableCell__["a" /* default */], __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { as: as, className: classes }));
}
TableHeaderCell.handledProps = ['as', 'className', 'sorted'];
TableHeaderCell._meta = {
name: 'TableHeaderCell',
type: __WEBPACK_IMPORTED_MODULE_3__lib__["d" /* META */].TYPES.COLLECTION,
parent: 'Table'
};
true ? TableHeaderCell.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_3__lib__["e" /* customPropTypes */].as,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].string,
/** A header cell can be sorted in ascending or descending order. */
sorted: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].oneOf(['ascending', 'descending'])
} : void 0;
TableHeaderCell.defaultProps = {
as: 'th'
};
/* harmony default export */ __webpack_exports__["a"] = TableHeaderCell;
/***/ }),
/* 387 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_without__ = __webpack_require__(15);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_without___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_without__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_lodash_map__ = __webpack_require__(21);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_lodash_map___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_lodash_map__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_lodash_isNil__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_lodash_isNil___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_lodash_isNil__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__lib__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__TableCell__ = __webpack_require__(139);
/**
* A table can have rows.
*/
function TableRow(props) {
var active = props.active,
cellAs = props.cellAs,
cells = props.cells,
children = props.children,
className = props.className,
disabled = props.disabled,
error = props.error,
negative = props.negative,
positive = props.positive,
textAlign = props.textAlign,
verticalAlign = props.verticalAlign,
warning = props.warning;
var classes = __WEBPACK_IMPORTED_MODULE_4_classnames___default()(__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__lib__["a" /* useKeyOnly */])(active, 'active'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__lib__["a" /* useKeyOnly */])(disabled, 'disabled'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__lib__["a" /* useKeyOnly */])(error, 'error'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__lib__["a" /* useKeyOnly */])(negative, 'negative'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__lib__["a" /* useKeyOnly */])(positive, 'positive'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__lib__["a" /* useKeyOnly */])(warning, 'warning'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__lib__["u" /* useTextAlignProp */])(textAlign), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__lib__["k" /* useVerticalAlignProp */])(verticalAlign), className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__lib__["b" /* getUnhandledProps */])(TableRow, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__lib__["c" /* getElementType */])(TableRow, props);
if (!__WEBPACK_IMPORTED_MODULE_3_lodash_isNil___default()(children)) {
return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
children
);
}
return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
__WEBPACK_IMPORTED_MODULE_2_lodash_map___default()(cells, function (cell) {
return __WEBPACK_IMPORTED_MODULE_7__TableCell__["a" /* default */].create(cell, { as: cellAs });
})
);
}
TableRow.handledProps = ['active', 'as', 'cellAs', 'cells', 'children', 'className', 'disabled', 'error', 'negative', 'positive', 'textAlign', 'verticalAlign', 'warning'];
TableRow._meta = {
name: 'TableRow',
type: __WEBPACK_IMPORTED_MODULE_6__lib__["d" /* META */].TYPES.COLLECTION,
parent: 'Table'
};
TableRow.defaultProps = {
as: 'tr',
cellAs: 'td'
};
true ? TableRow.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_6__lib__["e" /* customPropTypes */].as,
/** A row can be active or selected by a user. */
active: __WEBPACK_IMPORTED_MODULE_5_react__["PropTypes"].bool,
/** An element type to render as (string or function). */
cellAs: __WEBPACK_IMPORTED_MODULE_6__lib__["e" /* customPropTypes */].as,
/** Shorthand array of props for TableCell. */
cells: __WEBPACK_IMPORTED_MODULE_6__lib__["e" /* customPropTypes */].collectionShorthand,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_5_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_5_react__["PropTypes"].string,
/** A row can be disabled. */
disabled: __WEBPACK_IMPORTED_MODULE_5_react__["PropTypes"].bool,
/** A row may call attention to an error or a negative value. */
error: __WEBPACK_IMPORTED_MODULE_5_react__["PropTypes"].bool,
/** A row may let a user know whether a value is bad. */
negative: __WEBPACK_IMPORTED_MODULE_5_react__["PropTypes"].bool,
/** A row may let a user know whether a value is good. */
positive: __WEBPACK_IMPORTED_MODULE_5_react__["PropTypes"].bool,
/** A table row can adjust its text alignment. */
textAlign: __WEBPACK_IMPORTED_MODULE_5_react__["PropTypes"].oneOf(__WEBPACK_IMPORTED_MODULE_1_lodash_without___default()(__WEBPACK_IMPORTED_MODULE_6__lib__["g" /* SUI */].TEXT_ALIGNMENTS, 'justified')),
/** A table row can adjust its vertical alignment. */
verticalAlign: __WEBPACK_IMPORTED_MODULE_5_react__["PropTypes"].oneOf(__WEBPACK_IMPORTED_MODULE_6__lib__["g" /* SUI */].VERTICAL_ALIGNMENTS),
/** A row may warn a user. */
warning: __WEBPACK_IMPORTED_MODULE_5_react__["PropTypes"].bool
} : void 0;
TableRow.create = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__lib__["i" /* createShorthandFactory */])(TableRow, function (cells) {
return { cells: cells };
}, true);
/* harmony default export */ __webpack_exports__["a"] = TableRow;
/***/ }),
/* 388 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toConsumableArray__ = __webpack_require__(55);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toConsumableArray___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toConsumableArray__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass__ = __webpack_require__(11);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(13);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits__ = __webpack_require__(12);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_lodash_isNil__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_lodash_isNil___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_lodash_isNil__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__lib__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__Icon_Icon__ = __webpack_require__(140);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__Label_Label__ = __webpack_require__(221);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__ButtonContent__ = __webpack_require__(389);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__ButtonGroup__ = __webpack_require__(390);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__ButtonOr__ = __webpack_require__(391);
var debug = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_9__lib__["o" /* makeDebugger */])('button');
/**
* A Button indicates a possible user action.
* @see Form
* @see Icon
* @see Label
*/
var Button = function (_Component) {
__WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits___default()(Button, _Component);
function Button() {
var _ref;
var _temp, _this, _ret;
__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, Button);
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
return _ret = (_temp = (_this = __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn___default()(this, (_ref = Button.__proto__ || Object.getPrototypeOf(Button)).call.apply(_ref, [this].concat(args))), _this), _this.handleClick = function (e) {
var _this$props = _this.props,
disabled = _this$props.disabled,
onClick = _this$props.onClick;
if (disabled) {
e.preventDefault();
return;
}
if (onClick) onClick(e, _this.props);
}, _this.computeTabIndex = function (ElementType) {
var _this$props2 = _this.props,
disabled = _this$props2.disabled,
tabIndex = _this$props2.tabIndex;
if (!__WEBPACK_IMPORTED_MODULE_6_lodash_isNil___default()(tabIndex)) return tabIndex;
if (disabled) return -1;
if (ElementType === 'div') return 0;
}, _temp), __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn___default()(_this, _ret);
}
__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass___default()(Button, [{
key: 'render',
value: function render() {
var _props = this.props,
active = _props.active,
animated = _props.animated,
attached = _props.attached,
basic = _props.basic,
children = _props.children,
circular = _props.circular,
className = _props.className,
color = _props.color,
compact = _props.compact,
content = _props.content,
disabled = _props.disabled,
floated = _props.floated,
fluid = _props.fluid,
icon = _props.icon,
inverted = _props.inverted,
label = _props.label,
labelPosition = _props.labelPosition,
loading = _props.loading,
negative = _props.negative,
positive = _props.positive,
primary = _props.primary,
secondary = _props.secondary,
size = _props.size,
toggle = _props.toggle;
var labeledClasses = __WEBPACK_IMPORTED_MODULE_7_classnames___default()(__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_9__lib__["j" /* useKeyOrValueAndKey */])(labelPosition || !!label, 'labeled'));
var baseClasses = __WEBPACK_IMPORTED_MODULE_7_classnames___default()(color, size, __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_9__lib__["a" /* useKeyOnly */])(active, 'active'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_9__lib__["a" /* useKeyOnly */])(basic, 'basic'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_9__lib__["a" /* useKeyOnly */])(circular, 'circular'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_9__lib__["a" /* useKeyOnly */])(compact, 'compact'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_9__lib__["a" /* useKeyOnly */])(fluid, 'fluid'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_9__lib__["a" /* useKeyOnly */])(icon === true || icon && (labelPosition || !children && !content), 'icon'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_9__lib__["a" /* useKeyOnly */])(inverted, 'inverted'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_9__lib__["a" /* useKeyOnly */])(loading, 'loading'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_9__lib__["a" /* useKeyOnly */])(negative, 'negative'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_9__lib__["a" /* useKeyOnly */])(positive, 'positive'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_9__lib__["a" /* useKeyOnly */])(primary, 'primary'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_9__lib__["a" /* useKeyOnly */])(secondary, 'secondary'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_9__lib__["a" /* useKeyOnly */])(toggle, 'toggle'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_9__lib__["j" /* useKeyOrValueAndKey */])(animated, 'animated'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_9__lib__["j" /* useKeyOrValueAndKey */])(attached, 'attached'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_9__lib__["h" /* useValueAndKey */])(floated, 'floated'));
var wrapperClasses = __WEBPACK_IMPORTED_MODULE_7_classnames___default()(__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_9__lib__["a" /* useKeyOnly */])(disabled, 'disabled'));
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_9__lib__["b" /* getUnhandledProps */])(Button, this.props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_9__lib__["c" /* getElementType */])(Button, this.props, function () {
if (!__WEBPACK_IMPORTED_MODULE_6_lodash_isNil___default()(label) || !__WEBPACK_IMPORTED_MODULE_6_lodash_isNil___default()(attached)) return 'div';
});
var tabIndex = this.computeTabIndex(ElementType);
if (!__WEBPACK_IMPORTED_MODULE_6_lodash_isNil___default()(children)) {
var _classes = __WEBPACK_IMPORTED_MODULE_7_classnames___default()('ui', baseClasses, wrapperClasses, labeledClasses, 'button', className);
debug('render children:', { classes: _classes });
return __WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, rest, { className: _classes, tabIndex: tabIndex, onClick: this.handleClick }),
children
);
}
var labelElement = __WEBPACK_IMPORTED_MODULE_11__Label_Label__["a" /* default */].create(label, {
basic: true,
pointing: labelPosition === 'left' ? 'right' : 'left'
});
if (labelElement) {
var _classes2 = __WEBPACK_IMPORTED_MODULE_7_classnames___default()('ui', baseClasses, 'button', className);
var containerClasses = __WEBPACK_IMPORTED_MODULE_7_classnames___default()('ui', labeledClasses, 'button', className, wrapperClasses);
debug('render label:', { classes: _classes2, containerClasses: containerClasses }, this.props);
return __WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, rest, { className: containerClasses, onClick: this.handleClick }),
labelPosition === 'left' && labelElement,
__WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement(
'button',
{ className: _classes2, tabIndex: tabIndex },
__WEBPACK_IMPORTED_MODULE_10__Icon_Icon__["a" /* default */].create(icon),
' ',
content
),
(labelPosition === 'right' || !labelPosition) && labelElement
);
}
if (!__WEBPACK_IMPORTED_MODULE_6_lodash_isNil___default()(icon) && __WEBPACK_IMPORTED_MODULE_6_lodash_isNil___default()(label)) {
var _classes3 = __WEBPACK_IMPORTED_MODULE_7_classnames___default()('ui', labeledClasses, baseClasses, 'button', className, wrapperClasses);
debug('render icon && !label:', { classes: _classes3 });
return __WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, rest, { className: _classes3, tabIndex: tabIndex, onClick: this.handleClick }),
__WEBPACK_IMPORTED_MODULE_10__Icon_Icon__["a" /* default */].create(icon),
' ',
content
);
}
var classes = __WEBPACK_IMPORTED_MODULE_7_classnames___default()('ui', labeledClasses, baseClasses, 'button', className, wrapperClasses);
debug('render default:', { classes: classes });
return __WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, rest, { className: classes, tabIndex: tabIndex, onClick: this.handleClick }),
content
);
}
}]);
return Button;
}(__WEBPACK_IMPORTED_MODULE_8_react__["Component"]);
Button.defaultProps = {
as: 'button'
};
Button._meta = {
name: 'Button',
type: __WEBPACK_IMPORTED_MODULE_9__lib__["d" /* META */].TYPES.ELEMENT
};
Button.Content = __WEBPACK_IMPORTED_MODULE_12__ButtonContent__["a" /* default */];
Button.Group = __WEBPACK_IMPORTED_MODULE_13__ButtonGroup__["a" /* default */];
Button.Or = __WEBPACK_IMPORTED_MODULE_14__ButtonOr__["a" /* default */];
true ? Button.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_9__lib__["e" /* customPropTypes */].as,
/** A button can show it is currently the active user selection. */
active: __WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].bool,
/** A button can animate to show hidden content. */
animated: __WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].oneOfType([__WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].bool, __WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].oneOf(['fade', 'vertical'])]),
/** A button can be attached to the top or bottom of other content. */
attached: __WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].oneOf(['left', 'right', 'top', 'bottom']),
/** A basic button is less pronounced. */
basic: __WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].bool,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_9__lib__["e" /* customPropTypes */].every([__WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].node, __WEBPACK_IMPORTED_MODULE_9__lib__["e" /* customPropTypes */].disallow(['label']), __WEBPACK_IMPORTED_MODULE_9__lib__["e" /* customPropTypes */].givenProps({
icon: __WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].oneOfType([__WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].string.isRequired, __WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].object.isRequired, __WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].element.isRequired])
}, __WEBPACK_IMPORTED_MODULE_9__lib__["e" /* customPropTypes */].disallow(['icon']))]),
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].string,
/** A button can be circular. */
circular: __WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].bool,
/** A button can have different colors */
color: __WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].oneOf([].concat(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toConsumableArray___default()(__WEBPACK_IMPORTED_MODULE_9__lib__["g" /* SUI */].COLORS), ['facebook', 'google plus', 'instagram', 'linkedin', 'twitter', 'vk', 'youtube'])),
/** A button can reduce its padding to fit into tighter spaces. */
compact: __WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].bool,
/** Shorthand for primary content. */
content: __WEBPACK_IMPORTED_MODULE_9__lib__["e" /* customPropTypes */].contentShorthand,
/** A button can show it is currently unable to be interacted with. */
disabled: __WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].bool,
/** A button can be aligned to the left or right of its container. */
floated: __WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].oneOf(__WEBPACK_IMPORTED_MODULE_9__lib__["g" /* SUI */].FLOATS),
/** A button can take the width of its container. */
fluid: __WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].bool,
/** Add an Icon by name, props object, or pass an . */
icon: __WEBPACK_IMPORTED_MODULE_9__lib__["e" /* customPropTypes */].some([__WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].bool, __WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].string, __WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].object, __WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].element]),
/** A button can be formatted to appear on dark backgrounds. */
inverted: __WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].bool,
/** Add a Label by text, props object, or pass a . */
label: __WEBPACK_IMPORTED_MODULE_9__lib__["e" /* customPropTypes */].some([__WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].string, __WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].object, __WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].element]),
/** A labeled button can format a Label or Icon to appear on the left or right. */
labelPosition: __WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].oneOf(['right', 'left']),
/** A button can show a loading indicator. */
loading: __WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].bool,
/** A button can hint towards a negative consequence. */
negative: __WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].bool,
/**
* Called after user's click.
* @param {SyntheticEvent} event - React's original SyntheticEvent.
* @param {object} data - All props.
*/
onClick: __WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].func,
/** A button can hint towards a positive consequence. */
positive: __WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].bool,
/** A button can be formatted to show different levels of emphasis. */
primary: __WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].bool,
/** A button can be formatted to show different levels of emphasis. */
secondary: __WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].bool,
/** A button can have different sizes. */
size: __WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].oneOf(__WEBPACK_IMPORTED_MODULE_9__lib__["g" /* SUI */].SIZES),
/** A button can receive focus. */
tabIndex: __WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].oneOfType([__WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].number, __WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].string]),
/** A button can be formatted to toggle on and off. */
toggle: __WEBPACK_IMPORTED_MODULE_8_react__["PropTypes"].bool
} : void 0;
Button.handledProps = ['active', 'animated', 'as', 'attached', 'basic', 'children', 'circular', 'className', 'color', 'compact', 'content', 'disabled', 'floated', 'fluid', 'icon', 'inverted', 'label', 'labelPosition', 'loading', 'negative', 'onClick', 'positive', 'primary', 'secondary', 'size', 'tabIndex', 'toggle'];
Button.create = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_9__lib__["i" /* createShorthandFactory */])(Button, function (value) {
return { content: value };
});
/* harmony default export */ __webpack_exports__["a"] = Button;
/***/ }),
/* 389 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__lib__ = __webpack_require__(2);
/**
* Used in some Button types, such as `animated`.
*/
function ButtonContent(props) {
var children = props.children,
className = props.className,
hidden = props.hidden,
visible = props.visible;
var classes = __WEBPACK_IMPORTED_MODULE_1_classnames___default()(__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["a" /* useKeyOnly */])(visible, 'visible'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["a" /* useKeyOnly */])(hidden, 'hidden'), 'content', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["b" /* getUnhandledProps */])(ButtonContent, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["c" /* getElementType */])(ButtonContent, props);
return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
children
);
}
ButtonContent.handledProps = ['as', 'children', 'className', 'hidden', 'visible'];
ButtonContent._meta = {
name: 'ButtonContent',
parent: 'Button',
type: __WEBPACK_IMPORTED_MODULE_3__lib__["d" /* META */].TYPES.ELEMENT
};
true ? ButtonContent.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_3__lib__["e" /* customPropTypes */].as,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].string,
/** Initially hidden, visible on hover. */
hidden: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].bool,
/** Initially visible, hidden on hover. */
visible: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].bool
} : void 0;
/* harmony default export */ __webpack_exports__["a"] = ButtonContent;
/***/ }),
/* 390 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__lib__ = __webpack_require__(2);
/**
* Buttons can be grouped.
*/
function ButtonGroup(props) {
var attached = props.attached,
basic = props.basic,
children = props.children,
className = props.className,
color = props.color,
compact = props.compact,
floated = props.floated,
fluid = props.fluid,
icon = props.icon,
inverted = props.inverted,
labeled = props.labeled,
negative = props.negative,
positive = props.positive,
primary = props.primary,
secondary = props.secondary,
size = props.size,
toggle = props.toggle,
vertical = props.vertical,
widths = props.widths;
var classes = __WEBPACK_IMPORTED_MODULE_1_classnames___default()('ui', color, size, __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["a" /* useKeyOnly */])(basic, 'basic'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["a" /* useKeyOnly */])(compact, 'compact'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["a" /* useKeyOnly */])(fluid, 'fluid'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["a" /* useKeyOnly */])(icon, 'icon'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["a" /* useKeyOnly */])(inverted, 'inverted'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["a" /* useKeyOnly */])(labeled, 'labeled'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["a" /* useKeyOnly */])(negative, 'negative'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["a" /* useKeyOnly */])(positive, 'positive'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["a" /* useKeyOnly */])(primary, 'primary'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["a" /* useKeyOnly */])(secondary, 'secondary'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["a" /* useKeyOnly */])(toggle, 'toggle'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["a" /* useKeyOnly */])(vertical, 'vertical'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["h" /* useValueAndKey */])(attached, 'attached'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["h" /* useValueAndKey */])(floated, 'floated'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["f" /* useWidthProp */])(widths), 'buttons', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["b" /* getUnhandledProps */])(ButtonGroup, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["c" /* getElementType */])(ButtonGroup, props);
return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
children
);
}
ButtonGroup.handledProps = ['as', 'attached', 'basic', 'children', 'className', 'color', 'compact', 'floated', 'fluid', 'icon', 'inverted', 'labeled', 'negative', 'positive', 'primary', 'secondary', 'size', 'toggle', 'vertical', 'widths'];
ButtonGroup._meta = {
name: 'ButtonGroup',
parent: 'Button',
type: __WEBPACK_IMPORTED_MODULE_3__lib__["d" /* META */].TYPES.ELEMENT
};
true ? ButtonGroup.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_3__lib__["e" /* customPropTypes */].as,
/** A button can be attached to the top or bottom of other content. */
attached: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].oneOf(['left', 'right', 'top', 'bottom']),
/** Groups can be less pronounced. */
basic: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].bool,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].string,
/** Groups can have a shared color. */
color: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].oneOf(__WEBPACK_IMPORTED_MODULE_3__lib__["g" /* SUI */].COLORS),
/** Groups can reduce their padding to fit into tighter spaces. */
compact: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].bool,
/** Groups can be aligned to the left or right of its container. */
floated: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].oneOf(__WEBPACK_IMPORTED_MODULE_3__lib__["g" /* SUI */].FLOATS),
/** Groups can take the width of their container. */
fluid: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].bool,
/** Groups can be formatted as icons. */
icon: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].bool,
/** Groups can be formatted to appear on dark backgrounds. */
inverted: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].bool,
/** Groups can be formatted as labeled icon buttons. */
labeled: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].bool,
/** Groups can hint towards a negative consequence. */
negative: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].bool,
/** Groups can hint towards a positive consequence. */
positive: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].bool,
/** Groups can be formatted to show different levels of emphasis. */
primary: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].bool,
/** Groups can be formatted to show different levels of emphasis. */
secondary: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].bool,
/** Groups can have different sizes. */
size: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].oneOf(__WEBPACK_IMPORTED_MODULE_3__lib__["g" /* SUI */].SIZES),
/** Groups can be formatted to toggle on and off. */
toggle: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].bool,
/** Groups can be formatted to appear vertically. */
vertical: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].bool,
/** Groups can have their widths divided evenly. */
widths: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].oneOf(__WEBPACK_IMPORTED_MODULE_3__lib__["g" /* SUI */].WIDTHS)
} : void 0;
/* harmony default export */ __webpack_exports__["a"] = ButtonGroup;
/***/ }),
/* 391 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__lib__ = __webpack_require__(2);
/**
* Used in some Button types, such as `animated`.
*/
function ButtonOr(props) {
var className = props.className;
var classes = __WEBPACK_IMPORTED_MODULE_1_classnames___default()('or', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["b" /* getUnhandledProps */])(ButtonOr, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["c" /* getElementType */])(ButtonOr, props);
return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(ElementType, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }));
}
ButtonOr.handledProps = ['as', 'className'];
ButtonOr._meta = {
name: 'ButtonOr',
parent: 'Button',
type: __WEBPACK_IMPORTED_MODULE_3__lib__["d" /* META */].TYPES.ELEMENT
};
true ? ButtonOr.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_3__lib__["e" /* customPropTypes */].as,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].string
} : void 0;
/* harmony default export */ __webpack_exports__["a"] = ButtonOr;
/***/ }),
/* 392 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Flag__ = __webpack_require__(852);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Flag__["a"]; });
/***/ }),
/* 393 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__lib__ = __webpack_require__(2);
/**
* Header content wraps the main content when there is an adjacent Icon or Image.
*/
function HeaderContent(props) {
var children = props.children,
className = props.className;
var classes = __WEBPACK_IMPORTED_MODULE_1_classnames___default()('content', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["b" /* getUnhandledProps */])(HeaderContent, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["c" /* getElementType */])(HeaderContent, props);
return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
children
);
}
HeaderContent.handledProps = ['as', 'children', 'className'];
HeaderContent._meta = {
name: 'HeaderContent',
parent: 'Header',
type: __WEBPACK_IMPORTED_MODULE_3__lib__["d" /* META */].TYPES.VIEW
};
true ? HeaderContent.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_3__lib__["e" /* customPropTypes */].as,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].string
} : void 0;
/* harmony default export */ __webpack_exports__["a"] = HeaderContent;
/***/ }),
/* 394 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_isNil__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_isNil___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_isNil__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__lib__ = __webpack_require__(2);
/**
* Headers may contain subheaders.
*/
function HeaderSubheader(props) {
var children = props.children,
className = props.className,
content = props.content;
var classes = __WEBPACK_IMPORTED_MODULE_2_classnames___default()('sub header', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["b" /* getUnhandledProps */])(HeaderSubheader, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["c" /* getElementType */])(HeaderSubheader, props);
return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
__WEBPACK_IMPORTED_MODULE_1_lodash_isNil___default()(children) ? content : children
);
}
HeaderSubheader.handledProps = ['as', 'children', 'className', 'content'];
HeaderSubheader._meta = {
name: 'HeaderSubheader',
parent: 'Header',
type: __WEBPACK_IMPORTED_MODULE_4__lib__["d" /* META */].TYPES.ELEMENT
};
true ? HeaderSubheader.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].as,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].string,
/** Shorthand for primary content. */
content: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].contentShorthand
} : void 0;
HeaderSubheader.create = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["i" /* createShorthandFactory */])(HeaderSubheader, function (content) {
return { content: content };
});
/* harmony default export */ __webpack_exports__["a"] = HeaderSubheader;
/***/ }),
/* 395 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_without__ = __webpack_require__(15);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_without___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_without__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__lib__ = __webpack_require__(2);
/**
* Several icons can be used together as a group.
*/
function IconGroup(props) {
var children = props.children,
className = props.className,
size = props.size;
var classes = __WEBPACK_IMPORTED_MODULE_2_classnames___default()(size, 'icons', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["b" /* getUnhandledProps */])(IconGroup, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["c" /* getElementType */])(IconGroup, props);
return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
children
);
}
IconGroup.handledProps = ['as', 'children', 'className', 'size'];
IconGroup._meta = {
name: 'IconGroup',
parent: 'Icon',
type: __WEBPACK_IMPORTED_MODULE_4__lib__["d" /* META */].TYPES.ELEMENT
};
true ? IconGroup.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].as,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].string,
/** Size of the icon group. */
size: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].oneOf(__WEBPACK_IMPORTED_MODULE_1_lodash_without___default()(__WEBPACK_IMPORTED_MODULE_4__lib__["g" /* SUI */].SIZES, 'medium'))
} : void 0;
IconGroup.defaultProps = {
as: 'i'
};
/* harmony default export */ __webpack_exports__["a"] = IconGroup;
/***/ }),
/* 396 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_isNil__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_isNil___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_isNil__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__lib__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__modules_Dimmer__ = __webpack_require__(412);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__Label_Label__ = __webpack_require__(221);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__ImageGroup__ = __webpack_require__(397);
/**
* An image is a graphic representation of something.
* @see Icon
*/
function Image(props) {
var alt = props.alt,
avatar = props.avatar,
bordered = props.bordered,
centered = props.centered,
children = props.children,
className = props.className,
dimmer = props.dimmer,
disabled = props.disabled,
floated = props.floated,
fluid = props.fluid,
height = props.height,
hidden = props.hidden,
href = props.href,
inline = props.inline,
label = props.label,
shape = props.shape,
size = props.size,
spaced = props.spaced,
src = props.src,
verticalAlign = props.verticalAlign,
width = props.width,
wrapped = props.wrapped,
ui = props.ui;
var classes = __WEBPACK_IMPORTED_MODULE_2_classnames___default()(__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["a" /* useKeyOnly */])(ui, 'ui'), size, shape, __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["a" /* useKeyOnly */])(avatar, 'avatar'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["a" /* useKeyOnly */])(bordered, 'bordered'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["a" /* useKeyOnly */])(centered, 'centered'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["a" /* useKeyOnly */])(disabled, 'disabled'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["a" /* useKeyOnly */])(fluid, 'fluid'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["a" /* useKeyOnly */])(hidden, 'hidden'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["a" /* useKeyOnly */])(inline, 'inline'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["j" /* useKeyOrValueAndKey */])(spaced, 'spaced'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["h" /* useValueAndKey */])(floated, 'floated'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["k" /* useVerticalAlignProp */])(verticalAlign, 'aligned'), 'image', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["b" /* getUnhandledProps */])(Image, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["c" /* getElementType */])(Image, props, function () {
if (!__WEBPACK_IMPORTED_MODULE_1_lodash_isNil___default()(dimmer) || !__WEBPACK_IMPORTED_MODULE_1_lodash_isNil___default()(label) || !__WEBPACK_IMPORTED_MODULE_1_lodash_isNil___default()(wrapped) || !__WEBPACK_IMPORTED_MODULE_1_lodash_isNil___default()(children)) return 'div';
});
if (!__WEBPACK_IMPORTED_MODULE_1_lodash_isNil___default()(children)) {
return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
children
);
}
var rootProps = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes });
var imgTagProps = { alt: alt, src: src, height: height, width: width };
if (ElementType === 'img') return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(ElementType, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rootProps, imgTagProps));
return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rootProps, { href: href }),
__WEBPACK_IMPORTED_MODULE_5__modules_Dimmer__["a" /* default */].create(dimmer),
__WEBPACK_IMPORTED_MODULE_6__Label_Label__["a" /* default */].create(label),
__WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement('img', imgTagProps)
);
}
Image.handledProps = ['alt', 'as', 'avatar', 'bordered', 'centered', 'children', 'className', 'dimmer', 'disabled', 'floated', 'fluid', 'height', 'hidden', 'href', 'inline', 'label', 'shape', 'size', 'spaced', 'src', 'ui', 'verticalAlign', 'width', 'wrapped'];
Image.Group = __WEBPACK_IMPORTED_MODULE_7__ImageGroup__["a" /* default */];
Image._meta = {
name: 'Image',
type: __WEBPACK_IMPORTED_MODULE_4__lib__["d" /* META */].TYPES.ELEMENT
};
true ? Image.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].as,
/** Alternate text for the image specified. */
alt: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].string,
/** An image may be formatted to appear inline with text as an avatar. */
avatar: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].bool,
/** An image may include a border to emphasize the edges of white or transparent content. */
bordered: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].bool,
/** An image can appear centered in a content block. */
centered: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].bool,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].string,
/** An image can show that it is disabled and cannot be selected. */
disabled: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].bool,
/** Shorthand for Dimmer. */
dimmer: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].itemShorthand,
/** An image can sit to the left or right of other content. */
floated: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].oneOf(__WEBPACK_IMPORTED_MODULE_4__lib__["g" /* SUI */].FLOATS),
/** An image can take up the width of its container. */
fluid: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].every([__WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].bool, __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].disallow(['size'])]),
/** The img element height attribute. */
height: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].oneOfType([__WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].string, __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].number]),
/** An image can be hidden. */
hidden: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].bool,
/** Renders the Image as an tag with this href. */
href: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].string,
/** An image may appear inline. */
inline: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].bool,
/** Shorthand for Label. */
label: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].itemShorthand,
/** An image may appear rounded or circular. */
shape: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].oneOf(['rounded', 'circular']),
/** An image may appear at different sizes. */
size: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].oneOf(__WEBPACK_IMPORTED_MODULE_4__lib__["g" /* SUI */].SIZES),
/** An image can specify that it needs an additional spacing to separate it from nearby content. */
spaced: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].oneOfType([__WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].bool, __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].oneOf(['left', 'right'])]),
/** Specifies the URL of the image. */
src: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].string,
/** Whether or not to add the ui className. */
ui: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].bool,
/** An image can specify its vertical alignment. */
verticalAlign: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].oneOf(__WEBPACK_IMPORTED_MODULE_4__lib__["g" /* SUI */].VERTICAL_ALIGNMENTS),
/** The img element width attribute. */
width: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].oneOfType([__WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].string, __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].number]),
/** An image can render wrapped in a `div.ui.image` as alternative HTML markup. */
wrapped: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].every([__WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].bool,
// these props wrap the image in an a tag already
__WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].disallow(['href'])])
} : void 0;
Image.defaultProps = {
as: 'img',
ui: true
};
Image.create = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["i" /* createShorthandFactory */])(Image, function (value) {
return { src: value };
});
/* harmony default export */ __webpack_exports__["a"] = Image;
/***/ }),
/* 397 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__lib__ = __webpack_require__(2);
/**
* A group of images.
*/
function ImageGroup(props) {
var children = props.children,
className = props.className,
size = props.size;
var classes = __WEBPACK_IMPORTED_MODULE_2_classnames___default()('ui', size, className, 'images');
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["b" /* getUnhandledProps */])(ImageGroup, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["c" /* getElementType */])(ImageGroup, props);
return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
children
);
}
ImageGroup.handledProps = ['as', 'children', 'className', 'size'];
ImageGroup._meta = {
name: 'ImageGroup',
parent: 'Image',
type: __WEBPACK_IMPORTED_MODULE_3__lib__["d" /* META */].TYPES.ELEMENT
};
true ? ImageGroup.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_3__lib__["e" /* customPropTypes */].as,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_1_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_1_react__["PropTypes"].string,
/** A group of images can be formatted to have the same size. */
size: __WEBPACK_IMPORTED_MODULE_1_react__["PropTypes"].oneOf(__WEBPACK_IMPORTED_MODULE_3__lib__["g" /* SUI */].SIZES)
} : void 0;
/* harmony default export */ __webpack_exports__["a"] = ImageGroup;
/***/ }),
/* 398 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_isNil__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_isNil___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_isNil__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__lib__ = __webpack_require__(2);
function LabelDetail(props) {
var children = props.children,
className = props.className,
content = props.content;
var classes = __WEBPACK_IMPORTED_MODULE_2_classnames___default()('detail', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["b" /* getUnhandledProps */])(LabelDetail, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["c" /* getElementType */])(LabelDetail, props);
return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
__WEBPACK_IMPORTED_MODULE_1_lodash_isNil___default()(children) ? content : children
);
}
LabelDetail.handledProps = ['as', 'children', 'className', 'content'];
LabelDetail._meta = {
name: 'LabelDetail',
parent: 'Label',
type: __WEBPACK_IMPORTED_MODULE_4__lib__["d" /* META */].TYPES.ELEMENT
};
true ? LabelDetail.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].as,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].string,
/** Shorthand for primary content. */
content: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].contentShorthand
} : void 0;
/* harmony default export */ __webpack_exports__["a"] = LabelDetail;
/***/ }),
/* 399 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__lib__ = __webpack_require__(2);
/**
* A label can be grouped.
*/
function LabelGroup(props) {
var children = props.children,
circular = props.circular,
className = props.className,
color = props.color,
size = props.size,
tag = props.tag;
var classes = __WEBPACK_IMPORTED_MODULE_1_classnames___default()('ui', color, size, __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["a" /* useKeyOnly */])(circular, 'circular'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["a" /* useKeyOnly */])(tag, 'tag'), 'labels', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["b" /* getUnhandledProps */])(LabelGroup, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["c" /* getElementType */])(LabelGroup, props);
return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
children
);
}
LabelGroup.handledProps = ['as', 'children', 'circular', 'className', 'color', 'size', 'tag'];
LabelGroup._meta = {
name: 'LabelGroup',
parent: 'Label',
type: __WEBPACK_IMPORTED_MODULE_3__lib__["d" /* META */].TYPES.ELEMENT
};
true ? LabelGroup.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_3__lib__["e" /* customPropTypes */].as,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].node,
/** Labels can share shapes. */
circular: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].bool,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].string,
/** Label group can share colors together. */
color: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].oneOf(__WEBPACK_IMPORTED_MODULE_3__lib__["g" /* SUI */].COLORS),
/** Label group can share sizes together. */
size: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].oneOf(__WEBPACK_IMPORTED_MODULE_3__lib__["g" /* SUI */].SIZES),
/** Label group can share tag formatting. */
tag: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].bool
} : void 0;
/* harmony default export */ __webpack_exports__["a"] = LabelGroup;
/***/ }),
/* 400 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_isPlainObject__ = __webpack_require__(126);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_isPlainObject___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_isPlainObject__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_lodash_isNil__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_lodash_isNil___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_lodash_isNil__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__lib__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__elements_Image__ = __webpack_require__(78);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__ListContent__ = __webpack_require__(222);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__ListDescription__ = __webpack_require__(142);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__ListHeader__ = __webpack_require__(143);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__ListIcon__ = __webpack_require__(223);
/**
* A list item can contain a set of items.
*/
function ListItem(props) {
var active = props.active,
children = props.children,
className = props.className,
content = props.content,
description = props.description,
disabled = props.disabled,
header = props.header,
icon = props.icon,
image = props.image,
value = props.value;
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__lib__["c" /* getElementType */])(ListItem, props);
var classes = __WEBPACK_IMPORTED_MODULE_3_classnames___default()(__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__lib__["a" /* useKeyOnly */])(active, 'active'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__lib__["a" /* useKeyOnly */])(disabled, 'disabled'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__lib__["a" /* useKeyOnly */])(ElementType !== 'li', 'item'), className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__lib__["b" /* getUnhandledProps */])(ListItem, props);
var valueProp = ElementType === 'li' ? { value: value } : { 'data-value': value };
if (!__WEBPACK_IMPORTED_MODULE_2_lodash_isNil___default()(children)) {
return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, valueProp, { role: 'listitem', className: classes }),
children
);
}
var iconElement = __WEBPACK_IMPORTED_MODULE_10__ListIcon__["a" /* default */].create(icon);
var imageElement = __WEBPACK_IMPORTED_MODULE_6__elements_Image__["a" /* default */].create(image);
// See description of `content` prop for explanation about why this is necessary.
if (!__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4_react__["isValidElement"])(content) && __WEBPACK_IMPORTED_MODULE_1_lodash_isPlainObject___default()(content)) {
return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, valueProp, { role: 'listitem', className: classes }),
iconElement || imageElement,
__WEBPACK_IMPORTED_MODULE_7__ListContent__["a" /* default */].create(content, { header: header, description: description })
);
}
var headerElement = __WEBPACK_IMPORTED_MODULE_9__ListHeader__["a" /* default */].create(header);
var descriptionElement = __WEBPACK_IMPORTED_MODULE_8__ListDescription__["a" /* default */].create(description);
if (iconElement || imageElement) {
return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, valueProp, { role: 'listitem', className: classes }),
iconElement || imageElement,
(content || headerElement || descriptionElement) && __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(
__WEBPACK_IMPORTED_MODULE_7__ListContent__["a" /* default */],
null,
headerElement,
descriptionElement,
content
)
);
}
return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, valueProp, { role: 'listitem', className: classes }),
headerElement,
descriptionElement,
content
);
}
ListItem.handledProps = ['active', 'as', 'children', 'className', 'content', 'description', 'disabled', 'header', 'icon', 'image', 'value'];
ListItem._meta = {
name: 'ListItem',
parent: 'List',
type: __WEBPACK_IMPORTED_MODULE_5__lib__["d" /* META */].TYPES.ELEMENT
};
true ? ListItem.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_5__lib__["e" /* customPropTypes */].as,
/** A list item can active. */
active: __WEBPACK_IMPORTED_MODULE_4_react__["PropTypes"].bool,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_4_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_4_react__["PropTypes"].string,
/**
* Shorthand for primary content.
*
* Heads up!
*
* This is handled slightly differently than the typical `content` prop since
* the wrapping ListContent is not used when there's no icon or image.
*
* If you pass content as:
* - an element/literal, it's treated as the sibling node to
* header/description (whether wrapped in Item.Content or not).
* - a props object, it forces the presence of Item.Content and passes those
* props to it. If you pass a content prop within that props object, it
* will be treated as the sibling node to header/description.
*/
content: __WEBPACK_IMPORTED_MODULE_5__lib__["e" /* customPropTypes */].itemShorthand,
/** Shorthand for ListDescription. */
description: __WEBPACK_IMPORTED_MODULE_5__lib__["e" /* customPropTypes */].itemShorthand,
/** A list item can disabled. */
disabled: __WEBPACK_IMPORTED_MODULE_4_react__["PropTypes"].bool,
/** Shorthand for ListHeader. */
header: __WEBPACK_IMPORTED_MODULE_5__lib__["e" /* customPropTypes */].itemShorthand,
/** Shorthand for ListIcon. */
icon: __WEBPACK_IMPORTED_MODULE_5__lib__["e" /* customPropTypes */].every([__WEBPACK_IMPORTED_MODULE_5__lib__["e" /* customPropTypes */].disallow(['image']), __WEBPACK_IMPORTED_MODULE_5__lib__["e" /* customPropTypes */].itemShorthand]),
/** Shorthand for Image. */
image: __WEBPACK_IMPORTED_MODULE_5__lib__["e" /* customPropTypes */].every([__WEBPACK_IMPORTED_MODULE_5__lib__["e" /* customPropTypes */].disallow(['icon']), __WEBPACK_IMPORTED_MODULE_5__lib__["e" /* customPropTypes */].itemShorthand]),
/** A value for an ordered list. */
value: __WEBPACK_IMPORTED_MODULE_4_react__["PropTypes"].string
} : void 0;
ListItem.create = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__lib__["i" /* createShorthandFactory */])(ListItem, function (content) {
return { content: content };
}, true);
/* harmony default export */ __webpack_exports__["a"] = ListItem;
/***/ }),
/* 401 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__lib__ = __webpack_require__(2);
/**
* A list can contain a sub list.
*/
function ListList(props) {
var children = props.children,
className = props.className;
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["b" /* getUnhandledProps */])(ListList, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["c" /* getElementType */])(ListList, props);
var classes = __WEBPACK_IMPORTED_MODULE_1_classnames___default()(__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["a" /* useKeyOnly */])(ElementType !== 'ul' && ElementType !== 'ol', 'list'), className);
return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
children
);
}
ListList.handledProps = ['as', 'children', 'className'];
ListList._meta = {
name: 'ListList',
parent: 'List',
type: __WEBPACK_IMPORTED_MODULE_3__lib__["d" /* META */].TYPES.ELEMENT
};
true ? ListList.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_3__lib__["e" /* customPropTypes */].as,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].string
} : void 0;
/* harmony default export */ __webpack_exports__["a"] = ListList;
/***/ }),
/* 402 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__lib__ = __webpack_require__(2);
/**
* A content sub-component for the Reveal.
*/
function RevealContent(props) {
var children = props.children,
className = props.className,
hidden = props.hidden,
visible = props.visible;
var classes = __WEBPACK_IMPORTED_MODULE_1_classnames___default()('ui', __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["a" /* useKeyOnly */])(hidden, 'hidden'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["a" /* useKeyOnly */])(visible, 'visible'), 'content', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["b" /* getUnhandledProps */])(RevealContent, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["c" /* getElementType */])(RevealContent, props);
return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
children
);
}
RevealContent.handledProps = ['as', 'children', 'className', 'hidden', 'visible'];
RevealContent._meta = {
name: 'RevealContent',
parent: 'Reveal',
type: __WEBPACK_IMPORTED_MODULE_3__lib__["d" /* META */].TYPES.ELEMENT
};
true ? RevealContent.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_3__lib__["e" /* customPropTypes */].as,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].string,
/** A reveal may contain content that is visible before interaction. */
hidden: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].bool,
/** A reveal may contain content that is hidden before user interaction. */
visible: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].bool
} : void 0;
/* harmony default export */ __webpack_exports__["a"] = RevealContent;
/***/ }),
/* 403 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_without__ = __webpack_require__(15);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_without___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_without__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__lib__ = __webpack_require__(2);
/**
* A group of segments can be formatted to appear together.
*/
function SegmentGroup(props) {
var children = props.children,
className = props.className,
compact = props.compact,
horizontal = props.horizontal,
piled = props.piled,
raised = props.raised,
size = props.size,
stacked = props.stacked;
var classes = __WEBPACK_IMPORTED_MODULE_2_classnames___default()('ui', size, __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["a" /* useKeyOnly */])(compact, 'compact'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["a" /* useKeyOnly */])(horizontal, 'horizontal'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["a" /* useKeyOnly */])(piled, 'piled'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["a" /* useKeyOnly */])(raised, 'raised'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["a" /* useKeyOnly */])(stacked, 'stacked'), 'segments', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["b" /* getUnhandledProps */])(SegmentGroup, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["c" /* getElementType */])(SegmentGroup, props);
return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
children
);
}
SegmentGroup.handledProps = ['as', 'children', 'className', 'compact', 'horizontal', 'piled', 'raised', 'size', 'stacked'];
SegmentGroup._meta = {
name: 'SegmentGroup',
parent: 'Segment',
type: __WEBPACK_IMPORTED_MODULE_4__lib__["d" /* META */].TYPES.ELEMENT
};
true ? SegmentGroup.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].as,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].string,
/** A segment may take up only as much space as is necessary. */
compact: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].bool,
/** Formats content to be aligned horizontally. */
horizontal: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].bool,
/** Formatted to look like a pile of pages. */
piled: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].bool,
/** A segment group may be formatted to raise above the page. */
raised: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].bool,
/** A segment group can have different sizes. */
size: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].oneOf(__WEBPACK_IMPORTED_MODULE_1_lodash_without___default()(__WEBPACK_IMPORTED_MODULE_4__lib__["g" /* SUI */].SIZES, 'medium')),
/** Formatted to show it contains multiple pages. */
stacked: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].bool
} : void 0;
/* harmony default export */ __webpack_exports__["a"] = SegmentGroup;
/***/ }),
/* 404 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass__ = __webpack_require__(11);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(13);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(12);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_lodash_isNil__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_lodash_isNil___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_lodash_isNil__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__lib__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__elements_Icon__ = __webpack_require__(22);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__StepContent__ = __webpack_require__(405);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__StepDescription__ = __webpack_require__(224);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__StepGroup__ = __webpack_require__(406);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__StepTitle__ = __webpack_require__(225);
/**
* A step shows the completion status of an activity in a series of activities.
*/
var Step = function (_Component) {
__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(Step, _Component);
function Step() {
var _ref;
var _temp, _this, _ret;
__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, Step);
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
return _ret = (_temp = (_this = __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, (_ref = Step.__proto__ || Object.getPrototypeOf(Step)).call.apply(_ref, [this].concat(args))), _this), _this.handleClick = function (e) {
var onClick = _this.props.onClick;
if (onClick) onClick(e, _this.props);
}, _temp), __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(_this, _ret);
}
__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass___default()(Step, [{
key: 'render',
value: function render() {
var _props = this.props,
active = _props.active,
children = _props.children,
className = _props.className,
completed = _props.completed,
description = _props.description,
disabled = _props.disabled,
href = _props.href,
icon = _props.icon,
link = _props.link,
onClick = _props.onClick,
title = _props.title;
var classes = __WEBPACK_IMPORTED_MODULE_6_classnames___default()(__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_8__lib__["a" /* useKeyOnly */])(active, 'active'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_8__lib__["a" /* useKeyOnly */])(completed, 'completed'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_8__lib__["a" /* useKeyOnly */])(disabled, 'disabled'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_8__lib__["a" /* useKeyOnly */])(link, 'link'), 'step', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_8__lib__["b" /* getUnhandledProps */])(Step, this.props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_8__lib__["c" /* getElementType */])(Step, this.props, function () {
if (onClick) return 'a';
});
if (!__WEBPACK_IMPORTED_MODULE_5_lodash_isNil___default()(children)) {
return __WEBPACK_IMPORTED_MODULE_7_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes, href: href, onClick: this.handleClick }),
children
);
}
return __WEBPACK_IMPORTED_MODULE_7_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes, href: href, onClick: this.handleClick }),
__WEBPACK_IMPORTED_MODULE_9__elements_Icon__["a" /* default */].create(icon),
__WEBPACK_IMPORTED_MODULE_7_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_10__StepContent__["a" /* default */], { description: description, title: title })
);
}
}]);
return Step;
}(__WEBPACK_IMPORTED_MODULE_7_react__["Component"]);
Step._meta = {
name: 'Step',
type: __WEBPACK_IMPORTED_MODULE_8__lib__["d" /* META */].TYPES.ELEMENT
};
Step.Content = __WEBPACK_IMPORTED_MODULE_10__StepContent__["a" /* default */];
Step.Description = __WEBPACK_IMPORTED_MODULE_11__StepDescription__["a" /* default */];
Step.Group = __WEBPACK_IMPORTED_MODULE_12__StepGroup__["a" /* default */];
Step.Title = __WEBPACK_IMPORTED_MODULE_13__StepTitle__["a" /* default */];
/* harmony default export */ __webpack_exports__["a"] = Step;
true ? Step.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_8__lib__["e" /* customPropTypes */].as,
/** A step can be highlighted as active. */
active: __WEBPACK_IMPORTED_MODULE_7_react__["PropTypes"].bool,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_7_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_7_react__["PropTypes"].string,
/** A step can show that a user has completed it. */
completed: __WEBPACK_IMPORTED_MODULE_7_react__["PropTypes"].bool,
/** Shorthand for StepDescription. */
description: __WEBPACK_IMPORTED_MODULE_8__lib__["e" /* customPropTypes */].itemShorthand,
/** Show that the Loader is inactive. */
disabled: __WEBPACK_IMPORTED_MODULE_7_react__["PropTypes"].bool,
/** Render as an `a` tag instead of a `div` and adds the href attribute. */
href: __WEBPACK_IMPORTED_MODULE_7_react__["PropTypes"].string,
/** Shorthand for Icon. */
icon: __WEBPACK_IMPORTED_MODULE_8__lib__["e" /* customPropTypes */].itemShorthand,
/** A step can be link. */
link: __WEBPACK_IMPORTED_MODULE_7_react__["PropTypes"].bool,
/**
* Called on click. When passed, the component will render as an `a`
* tag by default instead of a `div`.
*
* @param {SyntheticEvent} event - React's original SyntheticEvent.
* @param {object} data - All props.
*/
onClick: __WEBPACK_IMPORTED_MODULE_7_react__["PropTypes"].func,
/** A step can show a ordered sequence of steps. Passed from StepGroup. */
ordered: __WEBPACK_IMPORTED_MODULE_7_react__["PropTypes"].bool,
/** Shorthand for StepTitle. */
title: __WEBPACK_IMPORTED_MODULE_8__lib__["e" /* customPropTypes */].itemShorthand
} : void 0;
Step.handledProps = ['active', 'as', 'children', 'className', 'completed', 'description', 'disabled', 'href', 'icon', 'link', 'onClick', 'ordered', 'title'];
/***/ }),
/* 405 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_isNil__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_isNil___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_isNil__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__lib__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__StepDescription__ = __webpack_require__(224);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__StepTitle__ = __webpack_require__(225);
/**
* A step can contain a content.
*/
function StepContent(props) {
var children = props.children,
className = props.className,
description = props.description,
title = props.title;
var classes = __WEBPACK_IMPORTED_MODULE_2_classnames___default()('content', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["b" /* getUnhandledProps */])(StepContent, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["c" /* getElementType */])(StepContent, props);
if (!__WEBPACK_IMPORTED_MODULE_1_lodash_isNil___default()(children)) {
return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
children
);
}
return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["l" /* createShorthand */])(__WEBPACK_IMPORTED_MODULE_6__StepTitle__["a" /* default */], function (val) {
return { title: val };
}, title),
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["l" /* createShorthand */])(__WEBPACK_IMPORTED_MODULE_5__StepDescription__["a" /* default */], function (val) {
return { description: val };
}, description)
);
}
StepContent.handledProps = ['as', 'children', 'className', 'description', 'title'];
StepContent._meta = {
name: 'StepContent',
parent: 'Step',
type: __WEBPACK_IMPORTED_MODULE_4__lib__["d" /* META */].TYPES.ELEMENT
};
true ? StepContent.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].as,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].string,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].node,
/** Shorthand for StepDescription. */
description: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].itemShorthand,
/** Shorthand for StepTitle. */
title: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].itemShorthand
} : void 0;
/* harmony default export */ __webpack_exports__["a"] = StepContent;
/***/ }),
/* 406 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_without__ = __webpack_require__(15);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_without___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_without__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_lodash_map__ = __webpack_require__(21);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_lodash_map___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_lodash_map__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_lodash_isNil__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_lodash_isNil___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_lodash_isNil__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__lib__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__Step__ = __webpack_require__(404);
/**
* A set of steps.
*/
function StepGroup(props) {
var children = props.children,
className = props.className,
fluid = props.fluid,
items = props.items,
ordered = props.ordered,
size = props.size,
stackable = props.stackable,
vertical = props.vertical;
var classes = __WEBPACK_IMPORTED_MODULE_4_classnames___default()('ui', size, __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__lib__["a" /* useKeyOnly */])(fluid, 'fluid'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__lib__["a" /* useKeyOnly */])(ordered, 'ordered'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__lib__["a" /* useKeyOnly */])(vertical, 'vertical'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__lib__["h" /* useValueAndKey */])(stackable, 'stackable'), 'steps', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__lib__["b" /* getUnhandledProps */])(StepGroup, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__lib__["c" /* getElementType */])(StepGroup, props);
if (!__WEBPACK_IMPORTED_MODULE_3_lodash_isNil___default()(children)) {
return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
children
);
}
var content = __WEBPACK_IMPORTED_MODULE_2_lodash_map___default()(items, function (item) {
var key = item.key || [item.title, item.description].join('-');
return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__Step__["a" /* default */], __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({ key: key }, item));
});
return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
content
);
}
StepGroup.handledProps = ['as', 'children', 'className', 'fluid', 'items', 'ordered', 'size', 'stackable', 'vertical'];
StepGroup._meta = {
name: 'StepGroup',
parent: 'Step',
type: __WEBPACK_IMPORTED_MODULE_6__lib__["d" /* META */].TYPES.ELEMENT
};
true ? StepGroup.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_6__lib__["e" /* customPropTypes */].as,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_5_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_5_react__["PropTypes"].string,
/** A fluid step takes up the width of its container. */
fluid: __WEBPACK_IMPORTED_MODULE_5_react__["PropTypes"].bool,
/** Shorthand array of props for Step. */
items: __WEBPACK_IMPORTED_MODULE_6__lib__["e" /* customPropTypes */].collectionShorthand,
/** A step can show a ordered sequence of steps. */
ordered: __WEBPACK_IMPORTED_MODULE_5_react__["PropTypes"].bool,
/** Steps can have different sizes. */
size: __WEBPACK_IMPORTED_MODULE_5_react__["PropTypes"].oneOf(__WEBPACK_IMPORTED_MODULE_1_lodash_without___default()(__WEBPACK_IMPORTED_MODULE_6__lib__["g" /* SUI */].SIZES, 'medium')),
/** A step can stack vertically only on smaller screens. */
stackable: __WEBPACK_IMPORTED_MODULE_5_react__["PropTypes"].oneOf(['tablet']),
/** A step can be displayed stacked vertically. */
vertical: __WEBPACK_IMPORTED_MODULE_5_react__["PropTypes"].bool
} : void 0;
/* harmony default export */ __webpack_exports__["a"] = StepGroup;
/***/ }),
/* 407 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof__ = __webpack_require__(65);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof__);
var hasDocument = (typeof document === 'undefined' ? 'undefined' : __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default()(document)) === 'object' && document !== null;
var hasWindow = (typeof window === 'undefined' ? 'undefined' : __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default()(window)) === 'object' && window !== null && window.self === window;
/* harmony default export */ __webpack_exports__["a"] = hasDocument && hasWindow;
/***/ }),
/* 408 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
// Copy of sindre's leven, wrapped in dead code elimination for production
// https://github.com/sindresorhus/leven/blob/master/index.js
var leven = function leven() {
return 0;
};
if (true) {
(function () {
/* eslint-disable complexity, no-nested-ternary */
var arr = [];
var charCodeCache = [];
leven = function leven(a, b) {
if (a === b) return 0;
var aLen = a.length;
var bLen = b.length;
if (aLen === 0) return bLen;
if (bLen === 0) return aLen;
var bCharCode = void 0;
var ret = void 0;
var tmp = void 0;
var tmp2 = void 0;
var i = 0;
var j = 0;
while (i < aLen) {
charCodeCache[i] = a.charCodeAt(i);
arr[i] = ++i;
}
while (j < bLen) {
bCharCode = b.charCodeAt(j);
tmp = j++;
ret = j;
for (i = 0; i < aLen; i++) {
tmp2 = bCharCode === charCodeCache[i] ? tmp : tmp + 1;
tmp = arr[i];
ret = arr[i] = tmp > ret ? tmp2 > ret ? ret + 1 : tmp2 : tmp2 > tmp ? tmp + 1 : tmp2;
}
}
return ret;
};
})();
}
/* harmony default export */ __webpack_exports__["a"] = leven;
/***/ }),
/* 409 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__lib__ = __webpack_require__(2);
function AccordionContent(props) {
var active = props.active,
children = props.children,
className = props.className;
var classes = __WEBPACK_IMPORTED_MODULE_2_classnames___default()('content', __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["a" /* useKeyOnly */])(active, 'active'), className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["b" /* getUnhandledProps */])(AccordionContent, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["c" /* getElementType */])(AccordionContent, props);
return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
children
);
}
AccordionContent.handledProps = ['active', 'as', 'children', 'className'];
AccordionContent.displayName = 'AccordionContent';
true ? AccordionContent.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_3__lib__["e" /* customPropTypes */].as,
/** Whether or not the content is visible. */
active: __WEBPACK_IMPORTED_MODULE_1_react__["PropTypes"].bool,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_1_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_1_react__["PropTypes"].string
} : void 0;
AccordionContent._meta = {
name: 'AccordionContent',
type: __WEBPACK_IMPORTED_MODULE_3__lib__["d" /* META */].TYPES.MODULE,
parent: 'Accordion'
};
/* harmony default export */ __webpack_exports__["a"] = AccordionContent;
/***/ }),
/* 410 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass__ = __webpack_require__(11);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(13);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(12);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__lib__ = __webpack_require__(2);
/**
* A title sub-component for Accordion component
*/
var AccordionTitle = function (_Component) {
__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(AccordionTitle, _Component);
function AccordionTitle() {
var _ref;
var _temp, _this, _ret;
__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, AccordionTitle);
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
return _ret = (_temp = (_this = __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, (_ref = AccordionTitle.__proto__ || Object.getPrototypeOf(AccordionTitle)).call.apply(_ref, [this].concat(args))), _this), _this.handleClick = function (e) {
var onClick = _this.props.onClick;
if (onClick) onClick(e, _this.props);
}, _temp), __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(_this, _ret);
}
__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass___default()(AccordionTitle, [{
key: 'render',
value: function render() {
var _props = this.props,
active = _props.active,
children = _props.children,
className = _props.className;
var classes = __WEBPACK_IMPORTED_MODULE_5_classnames___default()(__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_7__lib__["a" /* useKeyOnly */])(active, 'active'), 'title', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_7__lib__["b" /* getUnhandledProps */])(AccordionTitle, this.props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_7__lib__["c" /* getElementType */])(AccordionTitle, this.props);
return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes, onClick: this.handleClick }),
children
);
}
}]);
return AccordionTitle;
}(__WEBPACK_IMPORTED_MODULE_6_react__["Component"]);
AccordionTitle.displayName = 'AccordionTitle';
AccordionTitle._meta = {
name: 'AccordionTitle',
type: __WEBPACK_IMPORTED_MODULE_7__lib__["d" /* META */].TYPES.MODULE,
parent: 'Accordion'
};
/* harmony default export */ __webpack_exports__["a"] = AccordionTitle;
true ? AccordionTitle.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_7__lib__["e" /* customPropTypes */].as,
/** Whether or not the title is in the open state. */
active: __WEBPACK_IMPORTED_MODULE_6_react__["PropTypes"].bool,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_6_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_6_react__["PropTypes"].string,
/**
* Called on blur.
*
* @param {SyntheticEvent} event - React's original SyntheticEvent.
* @param {object} data - All props.
*/
onClick: __WEBPACK_IMPORTED_MODULE_6_react__["PropTypes"].func
} : void 0;
AccordionTitle.handledProps = ['active', 'as', 'children', 'className', 'onClick'];
/***/ }),
/* 411 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__lib__ = __webpack_require__(2);
/**
* A dimmable sub-component for Dimmer.
*/
function DimmerDimmable(props) {
var blurring = props.blurring,
className = props.className,
children = props.children,
dimmed = props.dimmed;
var classes = __WEBPACK_IMPORTED_MODULE_1_classnames___default()(__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["a" /* useKeyOnly */])(blurring, 'blurring'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["a" /* useKeyOnly */])(dimmed, 'dimmed'), 'dimmable', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["b" /* getUnhandledProps */])(DimmerDimmable, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["c" /* getElementType */])(DimmerDimmable, props);
return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
children
);
}
DimmerDimmable.handledProps = ['as', 'blurring', 'children', 'className', 'dimmed'];
DimmerDimmable._meta = {
name: 'DimmerDimmable',
type: __WEBPACK_IMPORTED_MODULE_3__lib__["d" /* META */].TYPES.MODULE,
parent: 'Dimmer'
};
true ? DimmerDimmable.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_3__lib__["e" /* customPropTypes */].as,
/** A dimmable element can blur its contents. */
blurring: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].bool,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].string,
/** Controls whether or not the dim is displayed. */
dimmed: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].bool
} : void 0;
/* harmony default export */ __webpack_exports__["a"] = DimmerDimmable;
/***/ }),
/* 412 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Dimmer__ = __webpack_require__(881);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Dimmer__["a"]; });
/***/ }),
/* 413 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__lib__ = __webpack_require__(2);
function DropdownDivider(props) {
var className = props.className;
var classes = __WEBPACK_IMPORTED_MODULE_1_classnames___default()('divider', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["b" /* getUnhandledProps */])(DropdownDivider, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["c" /* getElementType */])(DropdownDivider, props);
return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(ElementType, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }));
}
DropdownDivider.handledProps = ['as', 'className'];
DropdownDivider._meta = {
name: 'DropdownDivider',
parent: 'Dropdown',
type: __WEBPACK_IMPORTED_MODULE_3__lib__["d" /* META */].TYPES.MODULE
};
true ? DropdownDivider.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_3__lib__["e" /* customPropTypes */].as,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].string
} : void 0;
/* harmony default export */ __webpack_exports__["a"] = DropdownDivider;
/***/ }),
/* 414 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_isNil__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_isNil___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_isNil__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__lib__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__elements_Icon__ = __webpack_require__(22);
function DropdownHeader(props) {
var children = props.children,
className = props.className,
content = props.content,
icon = props.icon;
var classes = __WEBPACK_IMPORTED_MODULE_2_classnames___default()('header', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["b" /* getUnhandledProps */])(DropdownHeader, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["c" /* getElementType */])(DropdownHeader, props);
if (!__WEBPACK_IMPORTED_MODULE_1_lodash_isNil___default()(children)) {
return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
children
);
}
return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
__WEBPACK_IMPORTED_MODULE_5__elements_Icon__["a" /* default */].create(icon),
content
);
}
DropdownHeader.handledProps = ['as', 'children', 'className', 'content', 'icon'];
DropdownHeader._meta = {
name: 'DropdownHeader',
parent: 'Dropdown',
type: __WEBPACK_IMPORTED_MODULE_4__lib__["d" /* META */].TYPES.MODULE
};
true ? DropdownHeader.propTypes = {
/** An element type to render as (string or function) */
as: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].as,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].string,
/** Shorthand for primary content. */
content: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].contentShorthand,
/** Shorthand for Icon. */
icon: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].itemShorthand
} : void 0;
/* harmony default export */ __webpack_exports__["a"] = DropdownHeader;
/***/ }),
/* 415 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass__ = __webpack_require__(11);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(13);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(12);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_lodash_isNil__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_lodash_isNil___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_lodash_isNil__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__lib__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__elements_Flag__ = __webpack_require__(392);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__elements_Icon__ = __webpack_require__(22);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__elements_Image__ = __webpack_require__(78);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__elements_Label__ = __webpack_require__(141);
/**
* An item sub-component for Dropdown component
*/
var DropdownItem = function (_Component) {
__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(DropdownItem, _Component);
function DropdownItem() {
var _ref;
var _temp, _this, _ret;
__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, DropdownItem);
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
return _ret = (_temp = (_this = __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, (_ref = DropdownItem.__proto__ || Object.getPrototypeOf(DropdownItem)).call.apply(_ref, [this].concat(args))), _this), _this.handleClick = function (e) {
var onClick = _this.props.onClick;
if (onClick) onClick(e, _this.props);
}, _temp), __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(_this, _ret);
}
__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass___default()(DropdownItem, [{
key: 'render',
value: function render() {
var _props = this.props,
active = _props.active,
children = _props.children,
className = _props.className,
content = _props.content,
disabled = _props.disabled,
description = _props.description,
flag = _props.flag,
icon = _props.icon,
image = _props.image,
label = _props.label,
selected = _props.selected,
text = _props.text;
var classes = __WEBPACK_IMPORTED_MODULE_6_classnames___default()(__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_8__lib__["a" /* useKeyOnly */])(active, 'active'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_8__lib__["a" /* useKeyOnly */])(disabled, 'disabled'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_8__lib__["a" /* useKeyOnly */])(selected, 'selected'), 'item', className);
// add default dropdown icon if item contains another menu
var iconName = __WEBPACK_IMPORTED_MODULE_5_lodash_isNil___default()(icon) ? __WEBPACK_IMPORTED_MODULE_8__lib__["s" /* childrenUtils */].someByType(children, 'DropdownMenu') && 'dropdown' : icon;
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_8__lib__["b" /* getUnhandledProps */])(DropdownItem, this.props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_8__lib__["c" /* getElementType */])(DropdownItem, this.props);
var ariaOptions = {
role: 'option',
'aria-disabled': disabled,
'aria-checked': active,
'aria-selected': selected
};
if (!__WEBPACK_IMPORTED_MODULE_5_lodash_isNil___default()(children)) {
return __WEBPACK_IMPORTED_MODULE_7_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, ariaOptions, { className: classes, onClick: this.handleClick }),
children
);
}
var flagElement = __WEBPACK_IMPORTED_MODULE_9__elements_Flag__["a" /* default */].create(flag);
var iconElement = __WEBPACK_IMPORTED_MODULE_10__elements_Icon__["a" /* default */].create(iconName);
var imageElement = __WEBPACK_IMPORTED_MODULE_11__elements_Image__["a" /* default */].create(image);
var labelElement = __WEBPACK_IMPORTED_MODULE_12__elements_Label__["a" /* default */].create(label);
var descriptionElement = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_8__lib__["l" /* createShorthand */])('span', function (val) {
return { className: 'description', children: val };
}, description);
if (descriptionElement) {
return __WEBPACK_IMPORTED_MODULE_7_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, ariaOptions, { className: classes, onClick: this.handleClick }),
imageElement,
iconElement,
flagElement,
labelElement,
descriptionElement,
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_8__lib__["l" /* createShorthand */])('span', function (val) {
return { className: 'text', children: val };
}, content || text)
);
}
return __WEBPACK_IMPORTED_MODULE_7_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, ariaOptions, { className: classes, onClick: this.handleClick }),
imageElement,
iconElement,
flagElement,
labelElement,
content || text
);
}
}]);
return DropdownItem;
}(__WEBPACK_IMPORTED_MODULE_7_react__["Component"]);
DropdownItem._meta = {
name: 'DropdownItem',
parent: 'Dropdown',
type: __WEBPACK_IMPORTED_MODULE_8__lib__["d" /* META */].TYPES.MODULE
};
/* harmony default export */ __webpack_exports__["a"] = DropdownItem;
true ? DropdownItem.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_8__lib__["e" /* customPropTypes */].as,
/** Style as the currently chosen item. */
active: __WEBPACK_IMPORTED_MODULE_7_react__["PropTypes"].bool,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_7_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_7_react__["PropTypes"].string,
/** Shorthand for primary content. */
content: __WEBPACK_IMPORTED_MODULE_8__lib__["e" /* customPropTypes */].contentShorthand,
/** Additional text with less emphasis. */
description: __WEBPACK_IMPORTED_MODULE_8__lib__["e" /* customPropTypes */].itemShorthand,
/** A dropdown item can be disabled. */
disabled: __WEBPACK_IMPORTED_MODULE_7_react__["PropTypes"].bool,
/** Shorthand for Flag. */
flag: __WEBPACK_IMPORTED_MODULE_8__lib__["e" /* customPropTypes */].itemShorthand,
/** Shorthand for Icon. */
icon: __WEBPACK_IMPORTED_MODULE_8__lib__["e" /* customPropTypes */].itemShorthand,
/** Shorthand for Image. */
image: __WEBPACK_IMPORTED_MODULE_8__lib__["e" /* customPropTypes */].itemShorthand,
/** Shorthand for Label. */
label: __WEBPACK_IMPORTED_MODULE_8__lib__["e" /* customPropTypes */].itemShorthand,
/**
* The item currently selected by keyboard shortcut.
* This is not the active item.
*/
selected: __WEBPACK_IMPORTED_MODULE_7_react__["PropTypes"].bool,
/** Display text. */
text: __WEBPACK_IMPORTED_MODULE_8__lib__["e" /* customPropTypes */].contentShorthand,
/** Stored value */
value: __WEBPACK_IMPORTED_MODULE_7_react__["PropTypes"].oneOfType([__WEBPACK_IMPORTED_MODULE_7_react__["PropTypes"].number, __WEBPACK_IMPORTED_MODULE_7_react__["PropTypes"].string]),
/**
* Called on click.
*
* @param {SyntheticEvent} event - React's original SyntheticEvent.
* @param {object} data - All props.
*/
onClick: __WEBPACK_IMPORTED_MODULE_7_react__["PropTypes"].func
} : void 0;
DropdownItem.handledProps = ['active', 'as', 'children', 'className', 'content', 'description', 'disabled', 'flag', 'icon', 'image', 'label', 'onClick', 'selected', 'text', 'value'];
/***/ }),
/* 416 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__lib__ = __webpack_require__(2);
function DropdownMenu(props) {
var children = props.children,
className = props.className,
scrolling = props.scrolling;
var classes = __WEBPACK_IMPORTED_MODULE_2_classnames___default()(__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["a" /* useKeyOnly */])(scrolling, 'scrolling'), 'menu transition', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["b" /* getUnhandledProps */])(DropdownMenu, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["c" /* getElementType */])(DropdownMenu, props);
return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
children
);
}
DropdownMenu.handledProps = ['as', 'children', 'className', 'scrolling'];
DropdownMenu._meta = {
name: 'DropdownMenu',
parent: 'Dropdown',
type: __WEBPACK_IMPORTED_MODULE_3__lib__["d" /* META */].TYPES.MODULE
};
true ? DropdownMenu.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_3__lib__["e" /* customPropTypes */].as,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_1_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_1_react__["PropTypes"].string,
/** A dropdown menu can scroll. */
scrolling: __WEBPACK_IMPORTED_MODULE_1_react__["PropTypes"].bool
} : void 0;
/* harmony default export */ __webpack_exports__["a"] = DropdownMenu;
/***/ }),
/* 417 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__lib__ = __webpack_require__(2);
/**
* A modal can contain a row of actions.
*/
function ModalActions(props) {
var children = props.children,
className = props.className;
var classes = __WEBPACK_IMPORTED_MODULE_1_classnames___default()('actions', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["b" /* getUnhandledProps */])(ModalActions, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["c" /* getElementType */])(ModalActions, props);
return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
children
);
}
ModalActions.handledProps = ['as', 'children', 'className'];
ModalActions._meta = {
name: 'ModalActions',
type: __WEBPACK_IMPORTED_MODULE_3__lib__["d" /* META */].TYPES.MODULE,
parent: 'Modal'
};
true ? ModalActions.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_3__lib__["e" /* customPropTypes */].as,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].string
} : void 0;
/* harmony default export */ __webpack_exports__["a"] = ModalActions;
/***/ }),
/* 418 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_isNil__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_isNil___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_isNil__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__lib__ = __webpack_require__(2);
/**
* A modal can contain content.
*/
function ModalContent(props) {
var children = props.children,
className = props.className,
content = props.content,
image = props.image;
var classes = __WEBPACK_IMPORTED_MODULE_2_classnames___default()(className, __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["a" /* useKeyOnly */])(image, 'image'), 'content');
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["b" /* getUnhandledProps */])(ModalContent, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["c" /* getElementType */])(ModalContent, props);
return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
__WEBPACK_IMPORTED_MODULE_1_lodash_isNil___default()(children) ? content : children
);
}
ModalContent.handledProps = ['as', 'children', 'className', 'content', 'image'];
ModalContent._meta = {
name: 'ModalContent',
type: __WEBPACK_IMPORTED_MODULE_4__lib__["d" /* META */].TYPES.MODULE,
parent: 'Modal'
};
true ? ModalContent.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].as,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].string,
/** Shorthand for primary content. */
content: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].contentShorthand,
/** A modal can contain image content. */
image: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].bool
} : void 0;
ModalContent.create = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["i" /* createShorthandFactory */])(ModalContent, function (content) {
return { content: content };
});
/* harmony default export */ __webpack_exports__["a"] = ModalContent;
/***/ }),
/* 419 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__lib__ = __webpack_require__(2);
/**
* A modal can have a header.
*/
function ModalDescription(props) {
var children = props.children,
className = props.className;
var classes = __WEBPACK_IMPORTED_MODULE_1_classnames___default()('description', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["b" /* getUnhandledProps */])(ModalDescription, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["c" /* getElementType */])(ModalDescription, props);
return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
children
);
}
ModalDescription.handledProps = ['as', 'children', 'className'];
ModalDescription._meta = {
name: 'ModalDescription',
type: __WEBPACK_IMPORTED_MODULE_3__lib__["d" /* META */].TYPES.MODULE,
parent: 'Modal'
};
true ? ModalDescription.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_3__lib__["e" /* customPropTypes */].as,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].string
} : void 0;
/* harmony default export */ __webpack_exports__["a"] = ModalDescription;
/***/ }),
/* 420 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_isNil__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_isNil___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_isNil__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__lib__ = __webpack_require__(2);
/**
* A modal can have a header.
*/
function ModalHeader(props) {
var children = props.children,
className = props.className,
content = props.content;
var classes = __WEBPACK_IMPORTED_MODULE_2_classnames___default()(className, 'header');
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["b" /* getUnhandledProps */])(ModalHeader, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["c" /* getElementType */])(ModalHeader, props);
return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
__WEBPACK_IMPORTED_MODULE_1_lodash_isNil___default()(children) ? content : children
);
}
ModalHeader.handledProps = ['as', 'children', 'className', 'content'];
ModalHeader._meta = {
name: 'ModalHeader',
type: __WEBPACK_IMPORTED_MODULE_4__lib__["d" /* META */].TYPES.MODULE,
parent: 'Modal'
};
true ? ModalHeader.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].as,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].string,
/** Shorthand for primary content. */
content: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].contentShorthand
} : void 0;
ModalHeader.create = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["i" /* createShorthandFactory */])(ModalHeader, function (content) {
return { content: content };
});
/* harmony default export */ __webpack_exports__["a"] = ModalHeader;
/***/ }),
/* 421 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Modal__ = __webpack_require__(885);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Modal__["a"]; });
/***/ }),
/* 422 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__lib__ = __webpack_require__(2);
/* harmony export (immutable) */ __webpack_exports__["a"] = PopupContent;
/**
* A PopupContent displays the content body of a Popover.
*/
function PopupContent(props) {
var children = props.children,
className = props.className;
var classes = __WEBPACK_IMPORTED_MODULE_1_classnames___default()('content', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["b" /* getUnhandledProps */])(PopupContent, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["c" /* getElementType */])(PopupContent, props);
return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
children
);
}
PopupContent.handledProps = ['as', 'children', 'className'];
true ? PopupContent.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_3__lib__["e" /* customPropTypes */].as,
/** The content of the Popup */
children: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].node,
/** Classes to add to the Popup content className. */
className: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].string
} : void 0;
PopupContent._meta = {
name: 'PopupContent',
type: __WEBPACK_IMPORTED_MODULE_3__lib__["d" /* META */].TYPES.MODULE,
parent: 'Popup'
};
PopupContent.create = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["i" /* createShorthandFactory */])(PopupContent, function (children) {
return { children: children };
});
/***/ }),
/* 423 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__lib__ = __webpack_require__(2);
/* harmony export (immutable) */ __webpack_exports__["a"] = PopupHeader;
/**
* A PopupHeader displays a header in a Popover.
*/
function PopupHeader(props) {
var children = props.children,
className = props.className;
var classes = __WEBPACK_IMPORTED_MODULE_1_classnames___default()('header', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["b" /* getUnhandledProps */])(PopupHeader, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["c" /* getElementType */])(PopupHeader, props);
return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
children
);
}
PopupHeader.handledProps = ['as', 'children', 'className'];
true ? PopupHeader.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_3__lib__["e" /* customPropTypes */].as,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].string
} : void 0;
PopupHeader._meta = {
name: 'PopupHeader',
type: __WEBPACK_IMPORTED_MODULE_3__lib__["d" /* META */].TYPES.MODULE,
parent: 'Popup'
};
PopupHeader.create = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["i" /* createShorthandFactory */])(PopupHeader, function (children) {
return { children: children };
});
/***/ }),
/* 424 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass__ = __webpack_require__(11);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(13);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(12);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__lib__ = __webpack_require__(2);
/**
* An internal icon sub-component for Rating component
*/
var RatingIcon = function (_Component) {
__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(RatingIcon, _Component);
function RatingIcon() {
var _ref;
var _temp, _this, _ret;
__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, RatingIcon);
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
return _ret = (_temp = (_this = __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, (_ref = RatingIcon.__proto__ || Object.getPrototypeOf(RatingIcon)).call.apply(_ref, [this].concat(args))), _this), _this.defaultProps = {
as: 'i'
}, _this.handleClick = function (e) {
var onClick = _this.props.onClick;
if (onClick) onClick(e, _this.props);
}, _this.handleKeyUp = function (e) {
var _this$props = _this.props,
onClick = _this$props.onClick,
onKeyUp = _this$props.onKeyUp;
if (onKeyUp) onKeyUp(e, _this.props);
if (onClick) {
switch (__WEBPACK_IMPORTED_MODULE_7__lib__["p" /* keyboardKey */].getCode(e)) {
case __WEBPACK_IMPORTED_MODULE_7__lib__["p" /* keyboardKey */].Enter:
case __WEBPACK_IMPORTED_MODULE_7__lib__["p" /* keyboardKey */].Spacebar:
e.preventDefault();
onClick(e, _this.props);
break;
default:
return;
}
}
}, _this.handleMouseEnter = function (e) {
var onMouseEnter = _this.props.onMouseEnter;
if (onMouseEnter) onMouseEnter(e, _this.props);
}, _temp), __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(_this, _ret);
}
__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass___default()(RatingIcon, [{
key: 'render',
value: function render() {
var _props = this.props,
active = _props.active,
className = _props.className,
selected = _props.selected;
var classes = __WEBPACK_IMPORTED_MODULE_5_classnames___default()(__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_7__lib__["a" /* useKeyOnly */])(active, 'active'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_7__lib__["a" /* useKeyOnly */])(selected, 'selected'), 'icon', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_7__lib__["b" /* getUnhandledProps */])(RatingIcon, this.props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_7__lib__["c" /* getElementType */])(RatingIcon, this.props);
return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(ElementType, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, {
className: classes,
onClick: this.handleClick,
onKeyUp: this.handleKeyUp,
onMouseEnter: this.handleMouseEnter,
tabIndex: 0,
role: 'radio'
}));
}
}]);
return RatingIcon;
}(__WEBPACK_IMPORTED_MODULE_6_react__["Component"]);
RatingIcon._meta = {
name: 'RatingIcon',
parent: 'Rating',
type: __WEBPACK_IMPORTED_MODULE_7__lib__["d" /* META */].TYPES.MODULE
};
/* harmony default export */ __webpack_exports__["a"] = RatingIcon;
true ? RatingIcon.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_7__lib__["e" /* customPropTypes */].as,
/** Indicates activity of an icon. */
active: __WEBPACK_IMPORTED_MODULE_6_react__["PropTypes"].bool,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_6_react__["PropTypes"].string,
/** An index of icon inside Rating. */
index: __WEBPACK_IMPORTED_MODULE_6_react__["PropTypes"].number,
/**
* Called on click.
*
* @param {SyntheticEvent} event - React's original SyntheticEvent.
* @param {object} data - All props.
*/
onClick: __WEBPACK_IMPORTED_MODULE_6_react__["PropTypes"].func,
/**
* Called on keyup.
*
* @param {SyntheticEvent} event - React's original SyntheticEvent.
* @param {object} data - All props.
*/
onKeyUp: __WEBPACK_IMPORTED_MODULE_6_react__["PropTypes"].func,
/**
* Called on mouseenter.
*
* @param {SyntheticEvent} event - React's original SyntheticEvent.
* @param {object} data - All props.
*/
onMouseEnter: __WEBPACK_IMPORTED_MODULE_6_react__["PropTypes"].func,
/** Indicates selection of an icon. */
selected: __WEBPACK_IMPORTED_MODULE_6_react__["PropTypes"].bool
} : void 0;
RatingIcon.handledProps = ['active', 'as', 'className', 'index', 'onClick', 'onKeyUp', 'onMouseEnter', 'selected'];
/***/ }),
/* 425 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__lib__ = __webpack_require__(2);
var defaultRenderer = function defaultRenderer(_ref) {
var name = _ref.name;
return name;
};
function SearchCategory(props) {
var active = props.active,
children = props.children,
className = props.className,
renderer = props.renderer;
var classes = __WEBPACK_IMPORTED_MODULE_1_classnames___default()(__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["a" /* useKeyOnly */])(active, 'active'), 'category', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["b" /* getUnhandledProps */])(SearchCategory, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["c" /* getElementType */])(SearchCategory, props);
return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
__WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(
'div',
{ className: 'name' },
renderer ? renderer(props) : defaultRenderer(props)
),
children
);
}
SearchCategory.handledProps = ['active', 'as', 'children', 'className', 'name', 'renderer', 'results'];
SearchCategory._meta = {
name: 'SearchCategory',
parent: 'Search',
type: __WEBPACK_IMPORTED_MODULE_3__lib__["d" /* META */].TYPES.MODULE
};
true ? SearchCategory.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_3__lib__["e" /* customPropTypes */].as,
/** The item currently selected by keyboard shortcut. */
active: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].bool,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].string,
/** Display name. */
name: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].string,
/**
* A function that returns the category contents.
* Receives all SearchCategory props.
*/
renderer: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].func,
/** Array of Search.Result props */
results: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].array
} : void 0;
/* harmony default export */ __webpack_exports__["a"] = SearchCategory;
/***/ }),
/* 426 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass__ = __webpack_require__(11);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(13);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(12);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__lib__ = __webpack_require__(2);
// Note: You technically only need the 'content' wrapper when there's an
// image. However, optionally wrapping it makes this function a lot more
// complicated and harder to read. Since always wrapping it doesn't affect
// the style in any way let's just do that.
//
// Note: To avoid requiring a wrapping div, we return an array here so to
// prevent rendering issues each node needs a unique key.
var defaultRenderer = function defaultRenderer(_ref) {
var image = _ref.image,
price = _ref.price,
title = _ref.title,
description = _ref.description;
return [image && __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(
'div',
{ key: 'image', className: 'image' },
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_7__lib__["m" /* createHTMLImage */])(image)
), __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(
'div',
{ key: 'content', className: 'content' },
price && __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(
'div',
{ className: 'price' },
price
),
title && __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(
'div',
{ className: 'title' },
title
),
description && __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(
'div',
{ className: 'description' },
description
)
)];
};
defaultRenderer.handledProps = [];
var SearchResult = function (_Component) {
__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(SearchResult, _Component);
function SearchResult() {
var _ref2;
var _temp, _this, _ret;
__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, SearchResult);
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
return _ret = (_temp = (_this = __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, (_ref2 = SearchResult.__proto__ || Object.getPrototypeOf(SearchResult)).call.apply(_ref2, [this].concat(args))), _this), _this.handleClick = function (e) {
var onClick = _this.props.onClick;
if (onClick) onClick(e, _this.props);
}, _temp), __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(_this, _ret);
}
__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass___default()(SearchResult, [{
key: 'render',
value: function render() {
var _props = this.props,
active = _props.active,
className = _props.className,
renderer = _props.renderer;
var classes = __WEBPACK_IMPORTED_MODULE_5_classnames___default()(__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_7__lib__["a" /* useKeyOnly */])(active, 'active'), 'result', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_7__lib__["b" /* getUnhandledProps */])(SearchResult, this.props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_7__lib__["c" /* getElementType */])(SearchResult, this.props);
// Note: You technically only need the 'content' wrapper when there's an
// image. However, optionally wrapping it makes this function a lot more
// complicated and harder to read. Since always wrapping it doesn't affect
// the style in any way let's just do that.
return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes, onClick: this.handleClick }),
renderer ? renderer(this.props) : defaultRenderer(this.props)
);
}
}]);
return SearchResult;
}(__WEBPACK_IMPORTED_MODULE_6_react__["Component"]);
SearchResult._meta = {
name: 'SearchResult',
parent: 'Search',
type: __WEBPACK_IMPORTED_MODULE_7__lib__["d" /* META */].TYPES.MODULE
};
/* harmony default export */ __webpack_exports__["a"] = SearchResult;
true ? SearchResult.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_7__lib__["e" /* customPropTypes */].as,
/** The item currently selected by keyboard shortcut. */
active: __WEBPACK_IMPORTED_MODULE_6_react__["PropTypes"].bool,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_6_react__["PropTypes"].string,
/** Additional text with less emphasis. */
description: __WEBPACK_IMPORTED_MODULE_6_react__["PropTypes"].string,
/** A unique identifier. */
id: __WEBPACK_IMPORTED_MODULE_6_react__["PropTypes"].number,
/** Add an image to the item. */
image: __WEBPACK_IMPORTED_MODULE_6_react__["PropTypes"].string,
/**
* Called on click.
*
* @param {SyntheticEvent} event - React's original SyntheticEvent.
* @param {object} data - All props.
*/
onClick: __WEBPACK_IMPORTED_MODULE_6_react__["PropTypes"].func,
/** Customized text for price. */
price: __WEBPACK_IMPORTED_MODULE_6_react__["PropTypes"].string,
/**
* A function that returns the result contents.
* Receives all SearchResult props.
*/
renderer: __WEBPACK_IMPORTED_MODULE_6_react__["PropTypes"].func,
/** Display title. */
title: __WEBPACK_IMPORTED_MODULE_6_react__["PropTypes"].string
} : void 0;
SearchResult.handledProps = ['active', 'as', 'className', 'description', 'id', 'image', 'onClick', 'price', 'renderer', 'title'];
/***/ }),
/* 427 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__lib__ = __webpack_require__(2);
function SearchResults(props) {
var children = props.children,
className = props.className;
var classes = __WEBPACK_IMPORTED_MODULE_1_classnames___default()('results transition', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["b" /* getUnhandledProps */])(SearchResults, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["c" /* getElementType */])(SearchResults, props);
return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
children
);
}
SearchResults.handledProps = ['as', 'children', 'className'];
SearchResults._meta = {
name: 'SearchResults',
parent: 'Search',
type: __WEBPACK_IMPORTED_MODULE_3__lib__["d" /* META */].TYPES.MODULE
};
true ? SearchResults.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_3__lib__["e" /* customPropTypes */].as,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].string
} : void 0;
/* harmony default export */ __webpack_exports__["a"] = SearchResults;
/***/ }),
/* 428 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__lib__ = __webpack_require__(2);
/**
* A pushable sub-component for Sidebar.
*/
function SidebarPushable(props) {
var className = props.className,
children = props.children;
var classes = __WEBPACK_IMPORTED_MODULE_1_classnames___default()('pushable', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["b" /* getUnhandledProps */])(SidebarPushable, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["c" /* getElementType */])(SidebarPushable, props);
return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
children
);
}
SidebarPushable.handledProps = ['as', 'children', 'className'];
SidebarPushable._meta = {
name: 'SidebarPushable',
type: __WEBPACK_IMPORTED_MODULE_3__lib__["d" /* META */].TYPES.MODULE,
parent: 'Sidebar'
};
true ? SidebarPushable.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_3__lib__["e" /* customPropTypes */].as,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].string
} : void 0;
/* harmony default export */ __webpack_exports__["a"] = SidebarPushable;
/***/ }),
/* 429 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__lib__ = __webpack_require__(2);
/**
* A pushable sub-component for Sidebar.
*/
function SidebarPusher(props) {
var className = props.className,
dimmed = props.dimmed,
children = props.children;
var classes = __WEBPACK_IMPORTED_MODULE_1_classnames___default()('pusher', __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["a" /* useKeyOnly */])(dimmed, 'dimmed'), className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["b" /* getUnhandledProps */])(SidebarPusher, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["c" /* getElementType */])(SidebarPusher, props);
return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
children
);
}
SidebarPusher.handledProps = ['as', 'children', 'className', 'dimmed'];
SidebarPusher._meta = {
name: 'SidebarPusher',
type: __WEBPACK_IMPORTED_MODULE_3__lib__["d" /* META */].TYPES.MODULE,
parent: 'Sidebar'
};
true ? SidebarPusher.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_3__lib__["e" /* customPropTypes */].as,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].string,
/** Controls whether or not the dim is displayed. */
dimmed: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].bool
} : void 0;
/* harmony default export */ __webpack_exports__["a"] = SidebarPusher;
/***/ }),
/* 430 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass__ = __webpack_require__(11);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(13);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(12);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_lodash_isNil__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_lodash_isNil___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_lodash_isNil__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__lib__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__elements_Image__ = __webpack_require__(78);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__CardContent__ = __webpack_require__(431);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__CardDescription__ = __webpack_require__(228);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__CardGroup__ = __webpack_require__(432);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__CardHeader__ = __webpack_require__(229);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__CardMeta__ = __webpack_require__(230);
/**
* A card displays site content in a manner similar to a playing card.
*/
var Card = function (_Component) {
__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(Card, _Component);
function Card() {
var _ref;
var _temp, _this, _ret;
__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, Card);
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
return _ret = (_temp = (_this = __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, (_ref = Card.__proto__ || Object.getPrototypeOf(Card)).call.apply(_ref, [this].concat(args))), _this), _this.handleClick = function (e) {
var onClick = _this.props.onClick;
if (onClick) onClick(e, _this.props);
}, _temp), __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(_this, _ret);
}
__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass___default()(Card, [{
key: 'render',
value: function render() {
var _props = this.props,
centered = _props.centered,
children = _props.children,
className = _props.className,
color = _props.color,
description = _props.description,
extra = _props.extra,
fluid = _props.fluid,
header = _props.header,
href = _props.href,
image = _props.image,
meta = _props.meta,
onClick = _props.onClick,
raised = _props.raised;
var classes = __WEBPACK_IMPORTED_MODULE_6_classnames___default()('ui', color, __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_8__lib__["a" /* useKeyOnly */])(centered, 'centered'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_8__lib__["a" /* useKeyOnly */])(fluid, 'fluid'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_8__lib__["a" /* useKeyOnly */])(raised, 'raised'), 'card', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_8__lib__["b" /* getUnhandledProps */])(Card, this.props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_8__lib__["c" /* getElementType */])(Card, this.props, function () {
if (onClick) return 'a';
});
if (!__WEBPACK_IMPORTED_MODULE_5_lodash_isNil___default()(children)) {
return __WEBPACK_IMPORTED_MODULE_7_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes, href: href, onClick: this.handleClick }),
children
);
}
return __WEBPACK_IMPORTED_MODULE_7_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes, href: href, onClick: this.handleClick }),
__WEBPACK_IMPORTED_MODULE_9__elements_Image__["a" /* default */].create(image),
(description || header || meta) && __WEBPACK_IMPORTED_MODULE_7_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_10__CardContent__["a" /* default */], { description: description, header: header, meta: meta }),
extra && __WEBPACK_IMPORTED_MODULE_7_react___default.a.createElement(
__WEBPACK_IMPORTED_MODULE_10__CardContent__["a" /* default */],
{ extra: true },
extra
)
);
}
}]);
return Card;
}(__WEBPACK_IMPORTED_MODULE_7_react__["Component"]);
Card._meta = {
name: 'Card',
type: __WEBPACK_IMPORTED_MODULE_8__lib__["d" /* META */].TYPES.VIEW
};
Card.Content = __WEBPACK_IMPORTED_MODULE_10__CardContent__["a" /* default */];
Card.Description = __WEBPACK_IMPORTED_MODULE_11__CardDescription__["a" /* default */];
Card.Group = __WEBPACK_IMPORTED_MODULE_12__CardGroup__["a" /* default */];
Card.Header = __WEBPACK_IMPORTED_MODULE_13__CardHeader__["a" /* default */];
Card.Meta = __WEBPACK_IMPORTED_MODULE_14__CardMeta__["a" /* default */];
/* harmony default export */ __webpack_exports__["a"] = Card;
true ? Card.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_8__lib__["e" /* customPropTypes */].as,
/** A Card can center itself inside its container. */
centered: __WEBPACK_IMPORTED_MODULE_7_react__["PropTypes"].bool,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_7_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_7_react__["PropTypes"].string,
/** A Card can be formatted to display different colors. */
color: __WEBPACK_IMPORTED_MODULE_7_react__["PropTypes"].oneOf(__WEBPACK_IMPORTED_MODULE_8__lib__["g" /* SUI */].COLORS),
/** Shorthand for CardDescription. */
description: __WEBPACK_IMPORTED_MODULE_8__lib__["e" /* customPropTypes */].itemShorthand,
/** Shorthand for primary content of CardContent. */
extra: __WEBPACK_IMPORTED_MODULE_8__lib__["e" /* customPropTypes */].contentShorthand,
/** A Card can be formatted to take up the width of its container. */
fluid: __WEBPACK_IMPORTED_MODULE_7_react__["PropTypes"].bool,
/** Shorthand for CardHeader. */
header: __WEBPACK_IMPORTED_MODULE_8__lib__["e" /* customPropTypes */].itemShorthand,
/** Render as an `a` tag instead of a `div` and adds the href attribute. */
href: __WEBPACK_IMPORTED_MODULE_7_react__["PropTypes"].string,
/** A card can contain an Image component. */
image: __WEBPACK_IMPORTED_MODULE_8__lib__["e" /* customPropTypes */].itemShorthand,
/** Shorthand for CardMeta. */
meta: __WEBPACK_IMPORTED_MODULE_8__lib__["e" /* customPropTypes */].itemShorthand,
/**
* Called on click. When passed, the component renders as an `a`
* tag by default instead of a `div`.
*
* @param {SyntheticEvent} event - React's original SyntheticEvent.
* @param {object} data - All props.
*/
onClick: __WEBPACK_IMPORTED_MODULE_7_react__["PropTypes"].func,
/** A Card can be formatted to raise above the page. */
raised: __WEBPACK_IMPORTED_MODULE_7_react__["PropTypes"].bool
} : void 0;
Card.handledProps = ['as', 'centered', 'children', 'className', 'color', 'description', 'extra', 'fluid', 'header', 'href', 'image', 'meta', 'onClick', 'raised'];
/***/ }),
/* 431 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_isNil__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_isNil___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_isNil__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__lib__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__CardDescription__ = __webpack_require__(228);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__CardHeader__ = __webpack_require__(229);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__CardMeta__ = __webpack_require__(230);
/**
* A card can contain blocks of content or extra content meant to be formatted separately from the main content.
*/
function CardContent(props) {
var children = props.children,
className = props.className,
description = props.description,
extra = props.extra,
header = props.header,
meta = props.meta;
var classes = __WEBPACK_IMPORTED_MODULE_2_classnames___default()(className, __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["a" /* useKeyOnly */])(extra, 'extra'), 'content');
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["b" /* getUnhandledProps */])(CardContent, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["c" /* getElementType */])(CardContent, props);
if (!__WEBPACK_IMPORTED_MODULE_1_lodash_isNil___default()(children)) {
return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
children
);
}
return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["l" /* createShorthand */])(__WEBPACK_IMPORTED_MODULE_6__CardHeader__["a" /* default */], function (val) {
return { content: val };
}, header),
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["l" /* createShorthand */])(__WEBPACK_IMPORTED_MODULE_7__CardMeta__["a" /* default */], function (val) {
return { content: val };
}, meta),
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["l" /* createShorthand */])(__WEBPACK_IMPORTED_MODULE_5__CardDescription__["a" /* default */], function (val) {
return { content: val };
}, description)
);
}
CardContent.handledProps = ['as', 'children', 'className', 'description', 'extra', 'header', 'meta'];
CardContent._meta = {
name: 'CardContent',
parent: 'Card',
type: __WEBPACK_IMPORTED_MODULE_4__lib__["d" /* META */].TYPES.VIEW
};
true ? CardContent.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].as,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].string,
/** Shorthand for CardDescription. */
description: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].itemShorthand,
/** A card can contain extra content meant to be formatted separately from the main content. */
extra: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].bool,
/** Shorthand for CardHeader. */
header: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].itemShorthand,
/** Shorthand for CardMeta. */
meta: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].itemShorthand
} : void 0;
/* harmony default export */ __webpack_exports__["a"] = CardContent;
/***/ }),
/* 432 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_map__ = __webpack_require__(21);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_map___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_map__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_lodash_isNil__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_lodash_isNil___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_lodash_isNil__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__lib__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__Card__ = __webpack_require__(430);
/**
* A group of cards.
*/
function CardGroup(props) {
var children = props.children,
className = props.className,
doubling = props.doubling,
items = props.items,
itemsPerRow = props.itemsPerRow,
stackable = props.stackable;
var classes = __WEBPACK_IMPORTED_MODULE_3_classnames___default()('ui', __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__lib__["a" /* useKeyOnly */])(doubling, 'doubling'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__lib__["a" /* useKeyOnly */])(stackable, 'stackable'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__lib__["f" /* useWidthProp */])(itemsPerRow), className, 'cards');
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__lib__["b" /* getUnhandledProps */])(CardGroup, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__lib__["c" /* getElementType */])(CardGroup, props);
if (!__WEBPACK_IMPORTED_MODULE_2_lodash_isNil___default()(children)) {
return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
children
);
}
var content = __WEBPACK_IMPORTED_MODULE_1_lodash_map___default()(items, function (item) {
var key = item.key || [item.header, item.description].join('-');
return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6__Card__["a" /* default */], __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({ key: key }, item));
});
return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
content
);
}
CardGroup.handledProps = ['as', 'children', 'className', 'doubling', 'items', 'itemsPerRow', 'stackable'];
CardGroup._meta = {
name: 'CardGroup',
parent: 'Card',
type: __WEBPACK_IMPORTED_MODULE_5__lib__["d" /* META */].TYPES.VIEW
};
true ? CardGroup.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_5__lib__["e" /* customPropTypes */].as,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_4_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_4_react__["PropTypes"].string,
/** A group of cards can double its column width for mobile. */
doubling: __WEBPACK_IMPORTED_MODULE_4_react__["PropTypes"].bool,
/** Shorthand array of props for Card. */
items: __WEBPACK_IMPORTED_MODULE_5__lib__["e" /* customPropTypes */].collectionShorthand,
/** A group of cards can set how many cards should exist in a row. */
itemsPerRow: __WEBPACK_IMPORTED_MODULE_4_react__["PropTypes"].oneOf(__WEBPACK_IMPORTED_MODULE_5__lib__["g" /* SUI */].WIDTHS),
/** A group of cards can automatically stack rows to a single columns on mobile devices. */
stackable: __WEBPACK_IMPORTED_MODULE_4_react__["PropTypes"].bool
} : void 0;
/* harmony default export */ __webpack_exports__["a"] = CardGroup;
/***/ }),
/* 433 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__lib__ = __webpack_require__(2);
/**
* A comment can contain an action.
*/
function CommentAction(props) {
var active = props.active,
className = props.className,
children = props.children;
var classes = __WEBPACK_IMPORTED_MODULE_1_classnames___default()(__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["a" /* useKeyOnly */])(active, 'active'), className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["b" /* getUnhandledProps */])(CommentAction, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["c" /* getElementType */])(CommentAction, props);
return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
children
);
}
CommentAction.handledProps = ['active', 'as', 'children', 'className'];
CommentAction._meta = {
name: 'CommentAction',
parent: 'Comment',
type: __WEBPACK_IMPORTED_MODULE_3__lib__["d" /* META */].TYPES.VIEW
};
CommentAction.defaultProps = {
as: 'a'
};
true ? CommentAction.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_3__lib__["e" /* customPropTypes */].as,
/** Style as the currently active action. */
active: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].bool,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].string
} : void 0;
/* harmony default export */ __webpack_exports__["a"] = CommentAction;
/***/ }),
/* 434 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__lib__ = __webpack_require__(2);
/**
* A comment can contain an list of actions a user may perform related to this comment.
*/
function CommentActions(props) {
var className = props.className,
children = props.children;
var classes = __WEBPACK_IMPORTED_MODULE_1_classnames___default()('actions', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["b" /* getUnhandledProps */])(CommentActions, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["c" /* getElementType */])(CommentActions, props);
return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
children
);
}
CommentActions.handledProps = ['as', 'children', 'className'];
CommentActions._meta = {
name: 'CommentActions',
parent: 'Comment',
type: __WEBPACK_IMPORTED_MODULE_3__lib__["d" /* META */].TYPES.VIEW
};
true ? CommentActions.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_3__lib__["e" /* customPropTypes */].as,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].string
} : void 0;
/* harmony default export */ __webpack_exports__["a"] = CommentActions;
/***/ }),
/* 435 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__lib__ = __webpack_require__(2);
/**
* A comment can contain an author.
*/
function CommentAuthor(props) {
var className = props.className,
children = props.children;
var classes = __WEBPACK_IMPORTED_MODULE_1_classnames___default()('author', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["b" /* getUnhandledProps */])(CommentAuthor, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["c" /* getElementType */])(CommentAuthor, props);
return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
children
);
}
CommentAuthor.handledProps = ['as', 'children', 'className'];
CommentAuthor._meta = {
name: 'CommentAuthor',
parent: 'Comment',
type: __WEBPACK_IMPORTED_MODULE_3__lib__["d" /* META */].TYPES.VIEW
};
true ? CommentAuthor.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_3__lib__["e" /* customPropTypes */].as,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].string
} : void 0;
/* harmony default export */ __webpack_exports__["a"] = CommentAuthor;
/***/ }),
/* 436 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__lib__ = __webpack_require__(2);
/**
* A comment can contain an image or avatar.
*/
function CommentAvatar(props) {
var className = props.className,
src = props.src;
var classes = __WEBPACK_IMPORTED_MODULE_1_classnames___default()('avatar', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["b" /* getUnhandledProps */])(CommentAvatar, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["c" /* getElementType */])(CommentAvatar, props);
return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["m" /* createHTMLImage */])(src)
);
}
CommentAvatar.handledProps = ['as', 'className', 'src'];
CommentAvatar._meta = {
name: 'CommentAvatar',
parent: 'Comment',
type: __WEBPACK_IMPORTED_MODULE_3__lib__["d" /* META */].TYPES.VIEW
};
true ? CommentAvatar.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_3__lib__["e" /* customPropTypes */].as,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].string,
/** Specifies the URL of the image. */
src: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].string
} : void 0;
/* harmony default export */ __webpack_exports__["a"] = CommentAvatar;
/***/ }),
/* 437 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__lib__ = __webpack_require__(2);
/**
* A comment can contain content.
*/
function CommentContent(props) {
var className = props.className,
children = props.children;
var classes = __WEBPACK_IMPORTED_MODULE_1_classnames___default()(className, 'content');
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["b" /* getUnhandledProps */])(CommentContent, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["c" /* getElementType */])(CommentContent, props);
return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
children
);
}
CommentContent.handledProps = ['as', 'children', 'className'];
CommentContent._meta = {
name: 'CommentContent',
parent: 'Comment',
type: __WEBPACK_IMPORTED_MODULE_3__lib__["d" /* META */].TYPES.VIEW
};
true ? CommentContent.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_3__lib__["e" /* customPropTypes */].as,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].string
} : void 0;
/* harmony default export */ __webpack_exports__["a"] = CommentContent;
/***/ }),
/* 438 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_without__ = __webpack_require__(15);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_without___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_without__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__lib__ = __webpack_require__(2);
/**
* Comments can be grouped.
*/
function CommentGroup(props) {
var className = props.className,
children = props.children,
collapsed = props.collapsed,
minimal = props.minimal,
size = props.size,
threaded = props.threaded;
var classes = __WEBPACK_IMPORTED_MODULE_2_classnames___default()('ui', size, __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["a" /* useKeyOnly */])(collapsed, 'collapsed'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["a" /* useKeyOnly */])(minimal, 'minimal'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["a" /* useKeyOnly */])(threaded, 'threaded'), 'comments', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["b" /* getUnhandledProps */])(CommentGroup, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["c" /* getElementType */])(CommentGroup, props);
return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
children
);
}
CommentGroup.handledProps = ['as', 'children', 'className', 'collapsed', 'minimal', 'size', 'threaded'];
CommentGroup._meta = {
name: 'CommentGroup',
parent: 'Comment',
type: __WEBPACK_IMPORTED_MODULE_4__lib__["d" /* META */].TYPES.VIEW
};
true ? CommentGroup.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].as,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].string,
/** Comments can be collapsed, or hidden from view. */
collapsed: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].bool,
/** Comments can hide extra information unless a user shows intent to interact with a comment. */
minimal: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].bool,
/** Comments can have different sizes. */
size: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].oneOf(__WEBPACK_IMPORTED_MODULE_1_lodash_without___default()(__WEBPACK_IMPORTED_MODULE_4__lib__["g" /* SUI */].SIZES, 'medium')),
/** A comment list can be threaded to showing the relationship between conversations. */
threaded: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].bool
} : void 0;
/* harmony default export */ __webpack_exports__["a"] = CommentGroup;
/***/ }),
/* 439 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__lib__ = __webpack_require__(2);
/**
* A comment can contain metadata about the comment, an arbitrary amount of metadata may be defined.
*/
function CommentMetadata(props) {
var className = props.className,
children = props.children;
var classes = __WEBPACK_IMPORTED_MODULE_1_classnames___default()('metadata', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["b" /* getUnhandledProps */])(CommentMetadata, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["c" /* getElementType */])(CommentMetadata, props);
return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
children
);
}
CommentMetadata.handledProps = ['as', 'children', 'className'];
CommentMetadata._meta = {
name: 'CommentMetadata',
parent: 'Comment',
type: __WEBPACK_IMPORTED_MODULE_3__lib__["d" /* META */].TYPES.VIEW
};
true ? CommentMetadata.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_3__lib__["e" /* customPropTypes */].as,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].string
} : void 0;
/* harmony default export */ __webpack_exports__["a"] = CommentMetadata;
/***/ }),
/* 440 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__lib__ = __webpack_require__(2);
/**
* A comment can contain text.
*/
function CommentText(props) {
var className = props.className,
children = props.children;
var classes = __WEBPACK_IMPORTED_MODULE_1_classnames___default()(className, 'text');
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["b" /* getUnhandledProps */])(CommentText, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["c" /* getElementType */])(CommentText, props);
return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
children
);
}
CommentText.handledProps = ['as', 'children', 'className'];
CommentText._meta = {
name: 'CommentText',
parent: 'Comment',
type: __WEBPACK_IMPORTED_MODULE_3__lib__["d" /* META */].TYPES.VIEW
};
true ? CommentText.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_3__lib__["e" /* customPropTypes */].as,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].string
} : void 0;
/* harmony default export */ __webpack_exports__["a"] = CommentText;
/***/ }),
/* 441 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__lib__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__FeedContent__ = __webpack_require__(231);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__FeedLabel__ = __webpack_require__(233);
/**
* A feed contains an event.
*/
function FeedEvent(props) {
var content = props.content,
children = props.children,
className = props.className,
date = props.date,
extraImages = props.extraImages,
extraText = props.extraText,
image = props.image,
icon = props.icon,
meta = props.meta,
summary = props.summary;
var classes = __WEBPACK_IMPORTED_MODULE_1_classnames___default()('event', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["b" /* getUnhandledProps */])(FeedEvent, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["c" /* getElementType */])(FeedEvent, props);
var hasContentProp = content || date || extraImages || extraText || meta || summary;
var contentProps = { content: content, date: date, extraImages: extraImages, extraText: extraText, meta: meta, summary: summary };
return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["l" /* createShorthand */])(__WEBPACK_IMPORTED_MODULE_5__FeedLabel__["a" /* default */], function (val) {
return { icon: val };
}, icon),
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__lib__["l" /* createShorthand */])(__WEBPACK_IMPORTED_MODULE_5__FeedLabel__["a" /* default */], function (val) {
return { image: val };
}, image),
hasContentProp && __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__FeedContent__["a" /* default */], contentProps),
children
);
}
FeedEvent.handledProps = ['as', 'children', 'className', 'content', 'date', 'extraImages', 'extraText', 'icon', 'image', 'meta', 'summary'];
FeedEvent._meta = {
name: 'FeedEvent',
parent: 'Feed',
type: __WEBPACK_IMPORTED_MODULE_3__lib__["d" /* META */].TYPES.VIEW
};
true ? FeedEvent.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_3__lib__["e" /* customPropTypes */].as,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_2_react__["PropTypes"].string,
/** Shorthand for FeedContent. */
content: __WEBPACK_IMPORTED_MODULE_3__lib__["e" /* customPropTypes */].itemShorthand,
/** Shorthand for FeedDate. */
date: __WEBPACK_IMPORTED_MODULE_3__lib__["e" /* customPropTypes */].itemShorthand,
/** Shorthand for FeedExtra with images. */
extraImages: __WEBPACK_IMPORTED_MODULE_3__lib__["e" /* customPropTypes */].itemShorthand,
/** Shorthand for FeedExtra with content. */
extraText: __WEBPACK_IMPORTED_MODULE_3__lib__["e" /* customPropTypes */].itemShorthand,
/** An event can contain icon label. */
icon: __WEBPACK_IMPORTED_MODULE_3__lib__["e" /* customPropTypes */].itemShorthand,
/** An event can contain image label. */
image: __WEBPACK_IMPORTED_MODULE_3__lib__["e" /* customPropTypes */].itemShorthand,
/** Shorthand for FeedMeta. */
meta: __WEBPACK_IMPORTED_MODULE_3__lib__["e" /* customPropTypes */].itemShorthand,
/** Shorthand for FeedSummary. */
summary: __WEBPACK_IMPORTED_MODULE_3__lib__["e" /* customPropTypes */].itemShorthand
} : void 0;
/* harmony default export */ __webpack_exports__["a"] = FeedEvent;
/***/ }),
/* 442 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_isNil__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_isNil___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_isNil__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__lib__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__ItemContent__ = __webpack_require__(443);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__ItemDescription__ = __webpack_require__(238);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__ItemExtra__ = __webpack_require__(239);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__ItemGroup__ = __webpack_require__(444);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__ItemHeader__ = __webpack_require__(240);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__ItemImage__ = __webpack_require__(445);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__ItemMeta__ = __webpack_require__(241);
/**
* An item view presents large collections of site content for display.
*/
function Item(props) {
var children = props.children,
className = props.className,
content = props.content,
description = props.description,
extra = props.extra,
header = props.header,
image = props.image,
meta = props.meta;
var classes = __WEBPACK_IMPORTED_MODULE_2_classnames___default()('item', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["b" /* getUnhandledProps */])(Item, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["c" /* getElementType */])(Item, props);
if (!__WEBPACK_IMPORTED_MODULE_1_lodash_isNil___default()(children)) {
return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
children
);
}
return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
__WEBPACK_IMPORTED_MODULE_10__ItemImage__["a" /* default */].create(image),
__WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5__ItemContent__["a" /* default */], {
content: content,
description: description,
extra: extra,
header: header,
meta: meta
})
);
}
Item.handledProps = ['as', 'children', 'className', 'content', 'description', 'extra', 'header', 'image', 'meta'];
Item._meta = {
name: 'Item',
type: __WEBPACK_IMPORTED_MODULE_4__lib__["d" /* META */].TYPES.VIEW
};
Item.Content = __WEBPACK_IMPORTED_MODULE_5__ItemContent__["a" /* default */];
Item.Description = __WEBPACK_IMPORTED_MODULE_6__ItemDescription__["a" /* default */];
Item.Extra = __WEBPACK_IMPORTED_MODULE_7__ItemExtra__["a" /* default */];
Item.Group = __WEBPACK_IMPORTED_MODULE_8__ItemGroup__["a" /* default */];
Item.Header = __WEBPACK_IMPORTED_MODULE_9__ItemHeader__["a" /* default */];
Item.Image = __WEBPACK_IMPORTED_MODULE_10__ItemImage__["a" /* default */];
Item.Meta = __WEBPACK_IMPORTED_MODULE_11__ItemMeta__["a" /* default */];
true ? Item.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].as,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].string,
/** Shorthand for ItemContent component. */
content: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].contentShorthand,
/** Shorthand for ItemDescription component. */
description: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].itemShorthand,
/** Shorthand for ItemExtra component. */
extra: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].itemShorthand,
/** Shorthand for ItemImage component. */
image: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].itemShorthand,
/** Shorthand for ItemHeader component. */
header: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].itemShorthand,
/** Shorthand for ItemMeta component. */
meta: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].itemShorthand
} : void 0;
/* harmony default export */ __webpack_exports__["a"] = Item;
/***/ }),
/* 443 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_isNil__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_isNil___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_isNil__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__lib__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__ItemHeader__ = __webpack_require__(240);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__ItemDescription__ = __webpack_require__(238);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__ItemExtra__ = __webpack_require__(239);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__ItemMeta__ = __webpack_require__(241);
/**
* An item can contain content.
*/
function ItemContent(props) {
var children = props.children,
className = props.className,
content = props.content,
description = props.description,
extra = props.extra,
header = props.header,
meta = props.meta,
verticalAlign = props.verticalAlign;
var classes = __WEBPACK_IMPORTED_MODULE_2_classnames___default()(__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["k" /* useVerticalAlignProp */])(verticalAlign), 'content', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["b" /* getUnhandledProps */])(ItemContent, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["c" /* getElementType */])(ItemContent, props);
if (!__WEBPACK_IMPORTED_MODULE_1_lodash_isNil___default()(children)) {
return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
children
);
}
return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
__WEBPACK_IMPORTED_MODULE_5__ItemHeader__["a" /* default */].create(header),
__WEBPACK_IMPORTED_MODULE_8__ItemMeta__["a" /* default */].create(meta),
__WEBPACK_IMPORTED_MODULE_6__ItemDescription__["a" /* default */].create(description),
__WEBPACK_IMPORTED_MODULE_7__ItemExtra__["a" /* default */].create(extra),
content
);
}
ItemContent.handledProps = ['as', 'children', 'className', 'content', 'description', 'extra', 'header', 'meta', 'verticalAlign'];
ItemContent._meta = {
name: 'ItemContent',
parent: 'Item',
type: __WEBPACK_IMPORTED_MODULE_4__lib__["d" /* META */].TYPES.VIEW
};
true ? ItemContent.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].as,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].string,
/** Shorthand for primary content. */
content: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].contentShorthand,
/** Shorthand for ItemDescription component. */
description: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].itemShorthand,
/** Shorthand for ItemExtra component. */
extra: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].itemShorthand,
/** Shorthand for ItemHeader component. */
header: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].itemShorthand,
/** Shorthand for ItemMeta component. */
meta: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].itemShorthand,
/** Content can specify its vertical alignment. */
verticalAlign: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].oneOf(__WEBPACK_IMPORTED_MODULE_4__lib__["g" /* SUI */].VERTICAL_ALIGNMENTS)
} : void 0;
/* harmony default export */ __webpack_exports__["a"] = ItemContent;
/***/ }),
/* 444 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(151);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_lodash_map__ = __webpack_require__(21);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_lodash_map___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_lodash_map__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_lodash_isNil__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_lodash_isNil___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_lodash_isNil__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__lib__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__Item__ = __webpack_require__(442);
/**
* A group of items.
*/
function ItemGroup(props) {
var children = props.children,
className = props.className,
divided = props.divided,
items = props.items,
link = props.link,
relaxed = props.relaxed;
var classes = __WEBPACK_IMPORTED_MODULE_4_classnames___default()('ui', __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__lib__["a" /* useKeyOnly */])(divided, 'divided'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__lib__["a" /* useKeyOnly */])(link, 'link'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__lib__["j" /* useKeyOrValueAndKey */])(relaxed, 'relaxed'), 'items', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__lib__["b" /* getUnhandledProps */])(ItemGroup, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__lib__["c" /* getElementType */])(ItemGroup, props);
if (!__WEBPACK_IMPORTED_MODULE_3_lodash_isNil___default()(children)) {
return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
children
);
}
var itemsJSX = __WEBPACK_IMPORTED_MODULE_2_lodash_map___default()(items, function (item) {
var childKey = item.childKey,
itemProps = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default()(item, ['childKey']);
var finalKey = childKey || [itemProps.content, itemProps.description, itemProps.header, itemProps.meta].join('-');
return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__Item__["a" /* default */], __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, itemProps, { key: finalKey }));
});
return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
itemsJSX
);
}
ItemGroup.handledProps = ['as', 'children', 'className', 'divided', 'items', 'link', 'relaxed'];
ItemGroup._meta = {
name: 'ItemGroup',
type: __WEBPACK_IMPORTED_MODULE_6__lib__["d" /* META */].TYPES.VIEW,
parent: 'Item'
};
true ? ItemGroup.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_6__lib__["e" /* customPropTypes */].as,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_5_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_5_react__["PropTypes"].string,
/** Items can be divided to better distinguish between grouped content. */
divided: __WEBPACK_IMPORTED_MODULE_5_react__["PropTypes"].bool,
/** Shorthand array of props for Item. */
items: __WEBPACK_IMPORTED_MODULE_6__lib__["e" /* customPropTypes */].collectionShorthand,
/** An item can be formatted so that the entire contents link to another page. */
link: __WEBPACK_IMPORTED_MODULE_5_react__["PropTypes"].bool,
/** A group of items can relax its padding to provide more negative space. */
relaxed: __WEBPACK_IMPORTED_MODULE_5_react__["PropTypes"].oneOfType([__WEBPACK_IMPORTED_MODULE_5_react__["PropTypes"].bool, __WEBPACK_IMPORTED_MODULE_5_react__["PropTypes"].oneOf(['very'])])
} : void 0;
/* harmony default export */ __webpack_exports__["a"] = ItemGroup;
/***/ }),
/* 445 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__lib__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__elements_Image__ = __webpack_require__(78);
/**
* An item can contain an image.
*/
function ItemImage(props) {
var size = props.size;
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__lib__["b" /* getUnhandledProps */])(ItemImage, props);
return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3__elements_Image__["a" /* default */], __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { size: size, ui: !!size, wrapped: true }));
}
ItemImage.handledProps = ['size'];
ItemImage._meta = {
name: 'ItemImage',
parent: 'Item',
type: __WEBPACK_IMPORTED_MODULE_2__lib__["d" /* META */].TYPES.VIEW
};
true ? ItemImage.propTypes = {
/** An image may appear at different sizes. */
size: __WEBPACK_IMPORTED_MODULE_3__elements_Image__["a" /* default */].propTypes.size
} : void 0;
ItemImage.create = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__lib__["i" /* createShorthandFactory */])(ItemImage, function (src) {
return { src: src };
});
/* harmony default export */ __webpack_exports__["a"] = ItemImage;
/***/ }),
/* 446 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_without__ = __webpack_require__(15);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_without___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_without__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_lodash_isNil__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_lodash_isNil___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_lodash_isNil__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__lib__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__StatisticGroup__ = __webpack_require__(447);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__StatisticLabel__ = __webpack_require__(448);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__StatisticValue__ = __webpack_require__(449);
/**
* A statistic emphasizes the current value of an attribute.
*/
function Statistic(props) {
var children = props.children,
className = props.className,
color = props.color,
floated = props.floated,
horizontal = props.horizontal,
inverted = props.inverted,
label = props.label,
size = props.size,
text = props.text,
value = props.value;
var classes = __WEBPACK_IMPORTED_MODULE_3_classnames___default()('ui', color, size, __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__lib__["h" /* useValueAndKey */])(floated, 'floated'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__lib__["a" /* useKeyOnly */])(horizontal, 'horizontal'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__lib__["a" /* useKeyOnly */])(inverted, 'inverted'), 'statistic', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__lib__["b" /* getUnhandledProps */])(Statistic, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__lib__["c" /* getElementType */])(Statistic, props);
if (!__WEBPACK_IMPORTED_MODULE_2_lodash_isNil___default()(children)) return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
children
);
return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__StatisticValue__["a" /* default */], { text: text, value: value }),
__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__StatisticLabel__["a" /* default */], { label: label })
);
}
Statistic.handledProps = ['as', 'children', 'className', 'color', 'floated', 'horizontal', 'inverted', 'label', 'size', 'text', 'value'];
Statistic._meta = {
name: 'Statistic',
type: __WEBPACK_IMPORTED_MODULE_5__lib__["d" /* META */].TYPES.VIEW
};
true ? Statistic.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_5__lib__["e" /* customPropTypes */].as,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_4_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_4_react__["PropTypes"].string,
/** A statistic can be formatted to be different colors. */
color: __WEBPACK_IMPORTED_MODULE_4_react__["PropTypes"].oneOf(__WEBPACK_IMPORTED_MODULE_5__lib__["g" /* SUI */].COLORS),
/** A statistic can sit to the left or right of other content. */
floated: __WEBPACK_IMPORTED_MODULE_4_react__["PropTypes"].oneOf(__WEBPACK_IMPORTED_MODULE_5__lib__["g" /* SUI */].FLOATS),
/** A statistic can present its measurement horizontally. */
horizontal: __WEBPACK_IMPORTED_MODULE_4_react__["PropTypes"].bool,
/** A statistic can be formatted to fit on a dark background. */
inverted: __WEBPACK_IMPORTED_MODULE_4_react__["PropTypes"].bool,
/** Label content of the Statistic. */
label: __WEBPACK_IMPORTED_MODULE_5__lib__["e" /* customPropTypes */].contentShorthand,
/** A statistic can vary in size. */
size: __WEBPACK_IMPORTED_MODULE_4_react__["PropTypes"].oneOf(__WEBPACK_IMPORTED_MODULE_1_lodash_without___default()(__WEBPACK_IMPORTED_MODULE_5__lib__["g" /* SUI */].SIZES, 'big', 'massive', 'medium')),
/** Format the StatisticValue with smaller font size to fit nicely beside number values. */
text: __WEBPACK_IMPORTED_MODULE_4_react__["PropTypes"].bool,
/** Value content of the Statistic. */
value: __WEBPACK_IMPORTED_MODULE_5__lib__["e" /* customPropTypes */].contentShorthand
} : void 0;
Statistic.Group = __WEBPACK_IMPORTED_MODULE_6__StatisticGroup__["a" /* default */];
Statistic.Label = __WEBPACK_IMPORTED_MODULE_7__StatisticLabel__["a" /* default */];
Statistic.Value = __WEBPACK_IMPORTED_MODULE_8__StatisticValue__["a" /* default */];
/* harmony default export */ __webpack_exports__["a"] = Statistic;
/***/ }),
/* 447 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_without__ = __webpack_require__(15);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_without___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_without__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_lodash_map__ = __webpack_require__(21);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_lodash_map___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_lodash_map__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_lodash_isNil__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_lodash_isNil___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_lodash_isNil__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__lib__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__Statistic__ = __webpack_require__(446);
/**
* A group of statistics.
*/
function StatisticGroup(props) {
var children = props.children,
className = props.className,
color = props.color,
horizontal = props.horizontal,
inverted = props.inverted,
items = props.items,
size = props.size,
widths = props.widths;
var classes = __WEBPACK_IMPORTED_MODULE_4_classnames___default()('ui', color, size, __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__lib__["a" /* useKeyOnly */])(horizontal, 'horizontal'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__lib__["a" /* useKeyOnly */])(inverted, 'inverted'), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__lib__["f" /* useWidthProp */])(widths), 'statistics', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__lib__["b" /* getUnhandledProps */])(StatisticGroup, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__lib__["c" /* getElementType */])(StatisticGroup, props);
if (!__WEBPACK_IMPORTED_MODULE_3_lodash_isNil___default()(children)) return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
children
);
var itemsJSX = __WEBPACK_IMPORTED_MODULE_2_lodash_map___default()(items, function (item) {
return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__Statistic__["a" /* default */], __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({ key: item.childKey || [item.label, item.title].join('-') }, item));
});
return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
itemsJSX
);
}
StatisticGroup.handledProps = ['as', 'children', 'className', 'color', 'horizontal', 'inverted', 'items', 'size', 'widths'];
StatisticGroup._meta = {
name: 'StatisticGroup',
type: __WEBPACK_IMPORTED_MODULE_6__lib__["d" /* META */].TYPES.VIEW,
parent: 'Statistic'
};
true ? StatisticGroup.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_6__lib__["e" /* customPropTypes */].as,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_5_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_5_react__["PropTypes"].string,
/** A statistic group can be formatted to be different colors. */
color: __WEBPACK_IMPORTED_MODULE_5_react__["PropTypes"].oneOf(__WEBPACK_IMPORTED_MODULE_6__lib__["g" /* SUI */].COLORS),
/** A statistic group can present its measurement horizontally. */
horizontal: __WEBPACK_IMPORTED_MODULE_5_react__["PropTypes"].bool,
/** A statistic group can be formatted to fit on a dark background. */
inverted: __WEBPACK_IMPORTED_MODULE_5_react__["PropTypes"].bool,
/** Array of props for Statistic. */
items: __WEBPACK_IMPORTED_MODULE_6__lib__["e" /* customPropTypes */].collectionShorthand,
/** A statistic group can vary in size. */
size: __WEBPACK_IMPORTED_MODULE_5_react__["PropTypes"].oneOf(__WEBPACK_IMPORTED_MODULE_1_lodash_without___default()(__WEBPACK_IMPORTED_MODULE_6__lib__["g" /* SUI */].SIZES, 'big', 'massive', 'medium')),
/** A statistic group can have its items divided evenly. */
widths: __WEBPACK_IMPORTED_MODULE_5_react__["PropTypes"].oneOf(__WEBPACK_IMPORTED_MODULE_6__lib__["g" /* SUI */].WIDTHS)
} : void 0;
/* harmony default export */ __webpack_exports__["a"] = StatisticGroup;
/***/ }),
/* 448 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_isNil__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_isNil___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_isNil__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__lib__ = __webpack_require__(2);
/**
* A statistic can contain a label to help provide context for the presented value.
*/
function StatisticLabel(props) {
var children = props.children,
className = props.className,
label = props.label;
var classes = __WEBPACK_IMPORTED_MODULE_2_classnames___default()('label', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["b" /* getUnhandledProps */])(StatisticLabel, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["c" /* getElementType */])(StatisticLabel, props);
return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
__WEBPACK_IMPORTED_MODULE_1_lodash_isNil___default()(children) ? label : children
);
}
StatisticLabel.handledProps = ['as', 'children', 'className', 'label'];
StatisticLabel._meta = {
name: 'StatisticLabel',
parent: 'Statistic',
type: __WEBPACK_IMPORTED_MODULE_4__lib__["d" /* META */].TYPES.VIEW
};
true ? StatisticLabel.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].as,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].string,
/** Shorthand for primary content. */
label: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].contentShorthand
} : void 0;
/* harmony default export */ __webpack_exports__["a"] = StatisticLabel;
/***/ }),
/* 449 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_isNil__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_isNil___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_isNil__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__lib__ = __webpack_require__(2);
/**
* A statistic can contain a numeric, icon, image, or text value.
*/
function StatisticValue(props) {
var children = props.children,
className = props.className,
text = props.text,
value = props.value;
var classes = __WEBPACK_IMPORTED_MODULE_2_classnames___default()(__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["a" /* useKeyOnly */])(text, 'text'), 'value', className);
var rest = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["b" /* getUnhandledProps */])(StatisticValue, props);
var ElementType = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__lib__["c" /* getElementType */])(StatisticValue, props);
return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(
ElementType,
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, rest, { className: classes }),
__WEBPACK_IMPORTED_MODULE_1_lodash_isNil___default()(children) ? value : children
);
}
StatisticValue.handledProps = ['as', 'children', 'className', 'text', 'value'];
StatisticValue._meta = {
name: 'StatisticValue',
parent: 'Statistic',
type: __WEBPACK_IMPORTED_MODULE_4__lib__["d" /* META */].TYPES.VIEW
};
true ? StatisticValue.propTypes = {
/** An element type to render as (string or function). */
as: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].as,
/** Primary content. */
children: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].node,
/** Additional classes. */
className: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].string,
/** Format the value with smaller font size to fit nicely beside number values. */
text: __WEBPACK_IMPORTED_MODULE_3_react__["PropTypes"].bool,
/** Primary content of the StatisticValue. Mutually exclusive with the children prop. */
value: __WEBPACK_IMPORTED_MODULE_4__lib__["e" /* customPropTypes */].contentShorthand
} : void 0;
/* harmony default export */ __webpack_exports__["a"] = StatisticValue;
/***/ }),
/* 450 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _redux = __webpack_require__(146);
var _dialog = __webpack_require__(462);
var _dialog2 = _interopRequireDefault(_dialog);
var _i18n = __webpack_require__(463);
var _i18n2 = _interopRequireDefault(_i18n);
var _ui = __webpack_require__(466);
var _ui2 = _interopRequireDefault(_ui);
var _sysinfo = __webpack_require__(465);
var _sysinfo2 = _interopRequireDefault(_sysinfo);
var _lists = __webpack_require__(464);
var _lists2 = _interopRequireDefault(_lists);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var reducers = (0, _redux.combineReducers)({
dialog: _dialog2.default,
i18n: _i18n2.default,
ui: _ui2.default,
sysinfo: _sysinfo2.default,
lists: _lists2.default
});
exports.default = reducers;
/***/ }),
/* 451 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
function createThunkMiddleware(extraArgument) {
return function (_ref) {
var dispatch = _ref.dispatch,
getState = _ref.getState;
return function (next) {
return function (action) {
if (typeof action === 'function') {
return action(dispatch, getState, extraArgument);
}
return next(action);
};
};
};
}
var thunk = createThunkMiddleware();
thunk.withExtraArgument = createThunkMiddleware;
exports['default'] = thunk;
/***/ }),
/* 452 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
/**
* Indicates that navigation was caused by a call to history.push.
*/
var PUSH = exports.PUSH = 'PUSH';
/**
* Indicates that navigation was caused by a call to history.replace.
*/
var REPLACE = exports.REPLACE = 'REPLACE';
/**
* Indicates that navigation was caused by some other action such
* as using a browser's back/forward buttons and/or manually manipulating
* the URL in a browser's location bar. This is the default.
*
* See https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onpopstate
* for more information.
*/
var POP = exports.POP = 'POP';
/***/ }),
/* 453 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
var addEventListener = exports.addEventListener = function addEventListener(node, event, listener) {
return node.addEventListener ? node.addEventListener(event, listener, false) : node.attachEvent('on' + event, listener);
};
var removeEventListener = exports.removeEventListener = function removeEventListener(node, event, listener) {
return node.removeEventListener ? node.removeEventListener(event, listener, false) : node.detachEvent('on' + event, listener);
};
/**
* Returns true if the HTML5 history API is supported. Taken from Modernizr.
*
* https://github.com/Modernizr/Modernizr/blob/master/LICENSE
* https://github.com/Modernizr/Modernizr/blob/master/feature-detects/history.js
* changed to avoid false negatives for Windows Phones: https://github.com/reactjs/react-router/issues/586
*/
var supportsHistory = exports.supportsHistory = function supportsHistory() {
var ua = window.navigator.userAgent;
if ((ua.indexOf('Android 2.') !== -1 || ua.indexOf('Android 4.0') !== -1) && ua.indexOf('Mobile Safari') !== -1 && ua.indexOf('Chrome') === -1 && ua.indexOf('Windows Phone') === -1) return false;
return window.history && 'pushState' in window.history;
};
/**
* Returns false if using go(n) with hash history causes a full page reload.
*/
var supportsGoWithoutReloadUsingHash = exports.supportsGoWithoutReloadUsingHash = function supportsGoWithoutReloadUsingHash() {
return window.navigator.userAgent.indexOf('Firefox') === -1;
};
/**
* Returns true if browser fires popstate on hash change.
* IE10 and IE11 do not.
*/
var supportsPopstateOnHashchange = exports.supportsPopstateOnHashchange = function supportsPopstateOnHashchange() {
return window.navigator.userAgent.indexOf('Trident') === -1;
};
/***/ }),
/* 454 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/**
* Copyright 2015, Yahoo! Inc.
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
*/
var REACT_STATICS = {
childContextTypes: true,
contextTypes: true,
defaultProps: true,
displayName: true,
getDefaultProps: true,
mixins: true,
propTypes: true,
type: true
};
var KNOWN_STATICS = {
name: true,
length: true,
prototype: true,
caller: true,
arguments: true,
arity: true
};
var isGetOwnPropertySymbolsAvailable = typeof Object.getOwnPropertySymbols === 'function';
module.exports = function hoistNonReactStatics(targetComponent, sourceComponent, customStatics) {
if (typeof sourceComponent !== 'string') { // don't hoist over string (html) components
var keys = Object.getOwnPropertyNames(sourceComponent);
/* istanbul ignore else */
if (isGetOwnPropertySymbolsAvailable) {
keys = keys.concat(Object.getOwnPropertySymbols(sourceComponent));
}
for (var i = 0; i < keys.length; ++i) {
if (!REACT_STATICS[keys[i]] && !KNOWN_STATICS[keys[i]] && (!customStatics || !customStatics[keys[i]])) {
try {
targetComponent[keys[i]] = sourceComponent[keys[i]];
} catch (error) {
}
}
}
}
return targetComponent;
};
/***/ }),
/* 455 */
/***/ (function(module, exports, __webpack_require__) {
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
* A higher-order-component for handling onClickOutside for React components.
*/
(function(root) {
// administrative
var registeredComponents = [];
var handlers = [];
var IGNORE_CLASS = 'ignore-react-onclickoutside';
var DEFAULT_EVENTS = ['mousedown', 'touchstart'];
/**
* Check whether some DOM node is our Component's node.
*/
var isNodeFound = function(current, componentNode, ignoreClass) {
if (current === componentNode) {
return true;
}
// SVG elements do not technically reside in the rendered DOM, so
// they do not have classList directly, but they offer a link to their
// corresponding element, which can have classList. This extra check is for
// that case.
// See: http://www.w3.org/TR/SVG11/struct.html#InterfaceSVGUseElement
// Discussion: https://github.com/Pomax/react-onclickoutside/pull/17
if (current.correspondingElement) {
return current.correspondingElement.classList.contains(ignoreClass);
}
return current.classList.contains(ignoreClass);
};
/**
* Try to find our node in a hierarchy of nodes, returning the document
* node as highest noode if our node is not found in the path up.
*/
var findHighest = function(current, componentNode, ignoreClass) {
if (current === componentNode) {
return true;
}
// If source=local then this event came from 'somewhere'
// inside and should be ignored. We could handle this with
// a layered approach, too, but that requires going back to
// thinking in terms of Dom node nesting, running counter
// to React's 'you shouldn't care about the DOM' philosophy.
while(current.parentNode) {
if (isNodeFound(current, componentNode, ignoreClass)) {
return true;
}
current = current.parentNode;
}
return current;
};
/**
* Check if the browser scrollbar was clicked
*/
var clickedScrollbar = function(evt) {
return document.documentElement.clientWidth <= evt.clientX;
};
/**
* Generate the event handler that checks whether a clicked DOM node
* is inside of, or lives outside of, our Component's node tree.
*/
var generateOutsideCheck = function(componentNode, componentInstance, eventHandler, ignoreClass, excludeScrollbar, preventDefault, stopPropagation) {
return function(evt) {
if (preventDefault) {
evt.preventDefault();
}
if (stopPropagation) {
evt.stopPropagation();
}
var current = evt.target;
if((excludeScrollbar && clickedScrollbar(evt)) || (findHighest(current, componentNode, ignoreClass) !== document)) {
return;
}
eventHandler(evt);
};
};
/**
* This function generates the HOC function that you'll use
* in order to impart onOutsideClick listening to an
* arbitrary component. It gets called at the end of the
* bootstrapping code to yield an instance of the
* onClickOutsideHOC function defined inside setupHOC().
*/
function setupHOC(root, React, ReactDOM) {
// The actual Component-wrapping HOC:
return function onClickOutsideHOC(Component, config) {
var wrapComponentWithOnClickOutsideHandling = React.createClass({
statics: {
/**
* Access the wrapped Component's class.
*/
getClass: function() {
if (Component.getClass) {
return Component.getClass();
}
return Component;
}
},
/**
* Access the wrapped Component's instance.
*/
getInstance: function() {
return Component.prototype.isReactComponent ? this.refs.instance : this;
},
// this is given meaning in componentDidMount
__outsideClickHandler: function() {},
/**
* Add click listeners to the current document,
* linked to this component's state.
*/
componentDidMount: function() {
// If we are in an environment without a DOM such
// as shallow rendering or snapshots then we exit
// early to prevent any unhandled errors being thrown.
if (typeof document === 'undefined' || !document.createElement){
return;
}
var instance = this.getInstance();
var clickOutsideHandler;
if(config && typeof config.handleClickOutside === 'function') {
clickOutsideHandler = config.handleClickOutside(instance);
if(typeof clickOutsideHandler !== 'function') {
throw new Error('Component lacks a function for processing outside click events specified by the handleClickOutside config option.');
}
} else if(typeof instance.handleClickOutside === 'function') {
if (React.Component.prototype.isPrototypeOf(instance)) {
clickOutsideHandler = instance.handleClickOutside.bind(instance);
} else {
clickOutsideHandler = instance.handleClickOutside;
}
} else if(typeof instance.props.handleClickOutside === 'function') {
clickOutsideHandler = instance.props.handleClickOutside;
} else {
throw new Error('Component lacks a handleClickOutside(event) function for processing outside click events.');
}
var componentNode = ReactDOM.findDOMNode(instance);
if (componentNode === null) {
console.warn('Antipattern warning: there was no DOM node associated with the component that is being wrapped by outsideClick.');
console.warn([
'This is typically caused by having a component that starts life with a render function that',
'returns `null` (due to a state or props value), so that the component \'exist\' in the React',
'chain of components, but not in the DOM.\n\nInstead, you need to refactor your code so that the',
'decision of whether or not to show your component is handled by the parent, in their render()',
'function.\n\nIn code, rather than:\n\n A{render(){return check? <.../> : null;}\n B{render(){}\n\nmake sure that you',
'use:\n\n A{render(){return <.../>}\n B{render(){return <...>{ check ? : null }<...>}}\n\nThat is:',
'the parent is always responsible for deciding whether or not to render any of its children.',
'It is not the child\'s responsibility to decide whether a render instruction from above should',
'get ignored or not by returning `null`.\n\nWhen any component gets its render() function called,',
'that is the signal that it should be rendering its part of the UI. It may in turn decide not to',
'render all of *its* children, but it should never return `null` for itself. It is not responsible',
'for that decision.'
].join(' '));
}
var fn = this.__outsideClickHandler = generateOutsideCheck(
componentNode,
instance,
clickOutsideHandler,
this.props.outsideClickIgnoreClass || IGNORE_CLASS,
this.props.excludeScrollbar || false,
this.props.preventDefault || false,
this.props.stopPropagation || false
);
var pos = registeredComponents.length;
registeredComponents.push(this);
handlers[pos] = fn;
// If there is a truthy disableOnClickOutside property for this
// component, don't immediately start listening for outside events.
if (!this.props.disableOnClickOutside) {
this.enableOnClickOutside();
}
},
/**
* Track for disableOnClickOutside props changes and enable/disable click outside
*/
componentWillReceiveProps: function(nextProps) {
if (this.props.disableOnClickOutside && !nextProps.disableOnClickOutside) {
this.enableOnClickOutside();
} else if (!this.props.disableOnClickOutside && nextProps.disableOnClickOutside) {
this.disableOnClickOutside();
}
},
/**
* Remove the document's event listeners
*/
componentWillUnmount: function() {
this.disableOnClickOutside();
this.__outsideClickHandler = false;
var pos = registeredComponents.indexOf(this);
if( pos>-1) {
// clean up so we don't leak memory
if (handlers[pos]) { handlers.splice(pos, 1); }
registeredComponents.splice(pos, 1);
}
},
/**
* Can be called to explicitly enable event listening
* for clicks and touches outside of this element.
*/
enableOnClickOutside: function() {
var fn = this.__outsideClickHandler;
if (typeof document !== 'undefined') {
var events = this.props.eventTypes || DEFAULT_EVENTS;
if (!events.forEach) {
events = [events];
}
events.forEach(function (eventName) {
document.addEventListener(eventName, fn);
});
}
},
/**
* Can be called to explicitly disable event listening
* for clicks and touches outside of this element.
*/
disableOnClickOutside: function() {
var fn = this.__outsideClickHandler;
if (typeof document !== 'undefined') {
var events = this.props.eventTypes || DEFAULT_EVENTS;
if (!events.forEach) {
events = [events];
}
events.forEach(function (eventName) {
document.removeEventListener(eventName, fn);
});
}
},
/**
* Pass-through render
*/
render: function() {
var passedProps = this.props;
var props = {};
Object.keys(this.props).forEach(function(key) {
if (key !== 'excludeScrollbar') {
props[key] = passedProps[key];
}
});
if (Component.prototype.isReactComponent) {
props.ref = 'instance';
}
props.disableOnClickOutside = this.disableOnClickOutside;
props.enableOnClickOutside = this.enableOnClickOutside;
return React.createElement(Component, props);
}
});
// Add display name for React devtools
(function bindWrappedComponentName(c, wrapper) {
var componentName = c.displayName || c.name || 'Component';
wrapper.displayName = 'OnClickOutside(' + componentName + ')';
}(Component, wrapComponentWithOnClickOutsideHandling));
return wrapComponentWithOnClickOutsideHandling;
};
}
/**
* This function sets up the library in ways that
* work with the various modulde loading solutions
* used in JavaScript land today.
*/
function setupBinding(root, factory) {
if (true) {
// AMD. Register as an anonymous module.
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(0),__webpack_require__(150)], __WEBPACK_AMD_DEFINE_RESULT__ = function(React, ReactDom) {
return factory(root, React, ReactDom);
}.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
} else if (typeof exports === 'object') {
// Node. Note that this does not work with strict
// CommonJS, but only CommonJS-like environments
// that support module.exports
module.exports = factory(root, require('react'), require('react-dom'));
} else {
// Browser globals (root is window)
root.onClickOutside = factory(root, React, ReactDOM);
}
}
// Make it all happen
setupBinding(root, setupHOC);
}(this));
/***/ }),
/* 456 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__i18next__ = __webpack_require__(548);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "changeLanguage", function() { return changeLanguage; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cloneInstance", function() { return cloneInstance; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createInstance", function() { return createInstance; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dir", function() { return dir; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "exists", function() { return exists; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getFixedT", function() { return getFixedT; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "init", function() { return init; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "loadLanguages", function() { return loadLanguages; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "loadNamespaces", function() { return loadNamespaces; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "loadResources", function() { return loadResources; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "off", function() { return off; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "on", function() { return on; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setDefaultNamespace", function() { return setDefaultNamespace; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return t; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "use", function() { return use; });
/* harmony default export */ __webpack_exports__["default"] = __WEBPACK_IMPORTED_MODULE_0__i18next__["a" /* default */];
var changeLanguage = __WEBPACK_IMPORTED_MODULE_0__i18next__["a" /* default */].changeLanguage.bind(__WEBPACK_IMPORTED_MODULE_0__i18next__["a" /* default */]);
var cloneInstance = __WEBPACK_IMPORTED_MODULE_0__i18next__["a" /* default */].cloneInstance.bind(__WEBPACK_IMPORTED_MODULE_0__i18next__["a" /* default */]);
var createInstance = __WEBPACK_IMPORTED_MODULE_0__i18next__["a" /* default */].createInstance.bind(__WEBPACK_IMPORTED_MODULE_0__i18next__["a" /* default */]);
var dir = __WEBPACK_IMPORTED_MODULE_0__i18next__["a" /* default */].dir.bind(__WEBPACK_IMPORTED_MODULE_0__i18next__["a" /* default */]);
var exists = __WEBPACK_IMPORTED_MODULE_0__i18next__["a" /* default */].exists.bind(__WEBPACK_IMPORTED_MODULE_0__i18next__["a" /* default */]);
var getFixedT = __WEBPACK_IMPORTED_MODULE_0__i18next__["a" /* default */].getFixedT.bind(__WEBPACK_IMPORTED_MODULE_0__i18next__["a" /* default */]);
var init = __WEBPACK_IMPORTED_MODULE_0__i18next__["a" /* default */].init.bind(__WEBPACK_IMPORTED_MODULE_0__i18next__["a" /* default */]);
var loadLanguages = __WEBPACK_IMPORTED_MODULE_0__i18next__["a" /* default */].loadLanguages.bind(__WEBPACK_IMPORTED_MODULE_0__i18next__["a" /* default */]);
var loadNamespaces = __WEBPACK_IMPORTED_MODULE_0__i18next__["a" /* default */].loadNamespaces.bind(__WEBPACK_IMPORTED_MODULE_0__i18next__["a" /* default */]);
var loadResources = __WEBPACK_IMPORTED_MODULE_0__i18next__["a" /* default */].loadResources.bind(__WEBPACK_IMPORTED_MODULE_0__i18next__["a" /* default */]);
var off = __WEBPACK_IMPORTED_MODULE_0__i18next__["a" /* default */].off.bind(__WEBPACK_IMPORTED_MODULE_0__i18next__["a" /* default */]);
var on = __WEBPACK_IMPORTED_MODULE_0__i18next__["a" /* default */].on.bind(__WEBPACK_IMPORTED_MODULE_0__i18next__["a" /* default */]);
var setDefaultNamespace = __WEBPACK_IMPORTED_MODULE_0__i18next__["a" /* default */].setDefaultNamespace.bind(__WEBPACK_IMPORTED_MODULE_0__i18next__["a" /* default */]);
var t = __WEBPACK_IMPORTED_MODULE_0__i18next__["a" /* default */].t.bind(__WEBPACK_IMPORTED_MODULE_0__i18next__["a" /* default */]);
var use = __WEBPACK_IMPORTED_MODULE_0__i18next__["a" /* default */].use.bind(__WEBPACK_IMPORTED_MODULE_0__i18next__["a" /* default */]);
/***/ }),
/* 457 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
var _semanticUiReact = __webpack_require__(8);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var DeviceSelect = function DeviceSelect(_ref) {
var i18n = _ref.i18n,
querySelectList = _ref.querySelectList,
page = _ref.page,
permissions = _ref.permissions,
devs = _ref.devs,
addSelect = _ref.addSelect,
showGroup = _ref.showGroup;
var devName = null;
var devType = null;
return _react2.default.createElement(
_semanticUiReact.Form.Group,
{ inline: true },
_react2.default.createElement(
_semanticUiReact.Form.Field,
null,
_react2.default.createElement(
'label',
null,
i18n && i18n.t ? i18n.t('page.' + (page || '') + '.form.label.select_device') : ''
),
_react2.default.createElement(
'select',
{ ref: function ref(node) {
return devType = node;
}, onChange: function onChange(e) {
querySelectList(e.target.value);
} },
_react2.default.createElement(
'option',
{ value: '' },
i18n && i18n.t ? i18n.t('select.dev_type') : ''
),
permissions.dio ? _react2.default.createElement(
'option',
{ value: 'do' },
i18n && i18n.t ? i18n.t('select.digitoutput') : ''
) : null,
permissions.leone ? _react2.default.createElement(
'option',
{ value: 'leone' },
i18n && i18n.t ? i18n.t('select.leone') : ''
) : null,
permissions.iogroup && showGroup ? _react2.default.createElement(
'option',
{ value: 'iogroup' },
i18n && i18n.t ? i18n.t('select.iogroup') : ''
) : null
)
),
_react2.default.createElement(
_semanticUiReact.Form.Field,
null,
_react2.default.createElement(
'select',
{ ref: function ref(node) {
return devName = node;
} },
devs.map(function (t, idx) {
return _react2.default.createElement(
'option',
{ key: idx, value: t.id || '' },
t.name || ''
);
})
)
),
_react2.default.createElement(
_semanticUiReact.Form.Field,
null,
_react2.default.createElement(_semanticUiReact.Button, { type: 'button', basic: true, size: 'mini', content: i18n && i18n.t ? i18n.t('page.' + (page || '') + '.form.button.join') : '', onClick: function onClick() {
var type = '';
var devname = '';
var devid = '';
var typev = '';
if (devType != null) {
type = devType.options[devType.selectedIndex].innerHTML;
typev = devType.value == 'leone' ? 'le' : devType.value;
}
if (devName != null) {
if (devName.options.length == 0) return;
devname = devName.options[devName.selectedIndex].innerHTML;
devid = '' + typev + devName.value;
}
var json = {
type: type,
name: devname,
id: devid
};
if (!devType.value || !type || !devname) return;
addSelect(json);
} })
)
);
};
exports.default = DeviceSelect;
/***/ }),
/* 458 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
var _semanticUiReact = __webpack_require__(8);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var Dialog = function Dialog(_ref) {
var obj = _ref.obj,
getNext = _ref.getNext;
return _react2.default.createElement(
_semanticUiReact.Modal,
{ open: obj && obj.msg != '' ? true : false, onClose: function onClose() {
return getNext(obj.act);
}, style: { zIndex: "2001" } },
_react2.default.createElement(
_semanticUiReact.Modal.Content,
null,
obj && obj.msg ? obj.msg : ''
),
_react2.default.createElement(
_semanticUiReact.Modal.Actions,
null,
_react2.default.createElement(_semanticUiReact.Button, { onClick: function onClick() {
return getNext(obj.act);
}, content: 'OK' })
)
);
};
exports.default = Dialog;
/***/ }),
/* 459 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
var _semanticUiReact = __webpack_require__(8);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var Loading = function Loading(_ref) {
var active = _ref.active;
return _react2.default.createElement(
_semanticUiReact.Dimmer,
{ active: active, style: { zIndex: '2000' } },
_react2.default.createElement(_semanticUiReact.Loader, { size: 'large' })
);
};
exports.default = Loading;
/***/ }),
/* 460 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _reactRedux = __webpack_require__(27);
var _Dialog = __webpack_require__(458);
var _Dialog2 = _interopRequireDefault(_Dialog);
var _actions = __webpack_require__(23);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var mapStateToProps = function mapStateToProps(state) {
return {
obj: state.dialog[0] || null
};
};
var mapDispatchToProps = function mapDispatchToProps(dispatch, ownProps) {
return {
getNext: function getNext(act) {
//get next dialog message
if (typeof act == 'function') act();
dispatch((0, _actions.remove_dialog_msg)());
}
};
};
exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(_Dialog2.default);
/***/ }),
/* 461 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _reactRedux = __webpack_require__(27);
var _Loading = __webpack_require__(459);
var _Loading2 = _interopRequireDefault(_Loading);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var mapStateToProps = function mapStateToProps(state) {
return {
active: state.ui.showLoading
};
};
exports.default = (0, _reactRedux.connect)(mapStateToProps)(_Loading2.default);
/***/ }),
/* 462 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
var dialogReducer = function dialogReducer() {
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
var action = arguments[1];
switch (action.type) {
case 'dialog_addmsg':
return [].concat(_toConsumableArray(state), [{
msg: action.msg,
act: action.act || null
}]);
case 'dialog_remove_first':
return state.slice(1);
default:
return state;
}
};
exports.default = dialogReducer;
/***/ }),
/* 463 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var i18nReducer = function i18nReducer() {
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var action = arguments[1];
switch (action.type) {
case 'i18n_set_ctx':
return action.i18n;
default:
return state;
}
};
exports.default = i18nReducer;
/***/ }),
/* 464 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var getDefaultState = function getDefaultState() {
return {
user: [],
dio: {
di: [],
do: [],
diSt: {},
doSt: {}
},
log: {
list: [],
page: {}
},
leone: {
scanList: [],
list: [],
status: [],
scanning: false
},
iogroup: {
list: [],
do: [],
leone: []
},
schedule: {
list: [],
do: [],
leone: [],
iogroup: []
},
modbus: {
list: [],
log: []
},
link: {
list: []
},
selectdev: []
};
};
var listsReducer = function listsReducer() {
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getDefaultState();
var action = arguments[1];
switch (action.type) {
case 'user_list':
return _extends({}, state, { user: action.user });
case 'clear_user_list':
return _extends({}, state, { user: [] });
case 'dio_list':
return _extends({}, state, {
dio: _extends({}, state.dio, {
di: action.di,
do: action.do
})
});
case 'dio_status':
return _extends({}, state, {
dio: _extends({}, state.dio, {
diSt: action.diSt,
doSt: action.doSt
})
});
case 'clear_dio':
return _extends({}, state, { dio: _extends({}, getDefaultState().dio) });
case 'log_list':
return _extends({}, state, {
log: {
list: action.list,
page: action.page
}
});
case 'clear_log':
return _extends({}, state, { log: _extends({}, getDefaultState().log) });
case 'leone_list':
return _extends({}, state, {
leone: _extends({}, state.leone, {
list: action.list,
status: action.status
})
});
case 'leone_scanning':
return _extends({}, state, {
leone: _extends({}, state.leone, {
scanning: true
})
});
case 'leone_scan':
return _extends({}, state, {
leone: _extends({}, state.leone, {
scanList: action.list,
scanning: false
})
});
case 'leone_clear_scan':
return _extends({}, state, {
leone: _extends({}, state.leone, {
scanList: []
})
});
case 'clear_leone':
return _extends({}, state, { leone: _extends({}, getDefaultState().leone) });
case 'iogroup_list':
return _extends({}, state, {
iogroup: _extends({}, state.iogroup, {
list: action.list,
do: action.do,
leone: action.leone
})
});
case 'clear_iogroup':
return _extends({}, state, { iogroup: _extends({}, getDefaultState().iogroup) });
case 'select_list':
return _extends({}, state, {
selectdev: action.list
});
case 'clear_select_list':
return _extends({}, state, {
selectdev: []
});
case 'schedule_list':
return _extends({}, state, {
schedule: {
list: action.list,
do: action.dos,
leone: action.les,
iogroup: action.ios
}
});
case 'clear_schedule':
return _extends({}, state, {
schedule: _extends({}, getDefaultState().schedule)
});
case 'modbus_list':
return _extends({}, state, { modbus: _extends({}, state.modbus, {
list: action.list
}) });
case 'mb_data':
return _extends({}, state, {
modbus: _extends({}, state.modbus, {
list: state.modbus.list.map(function (t) {
return mb_data(t, action);
})
})
});
case 'mb_iostatus':
return _extends({}, state, {
modbus: _extends({}, state.modbus, {
list: state.modbus.list.map(function (t) {
return mb_data(t, action);
})
})
});
case 'mb_log':
return _extends({}, state, {
modbus: _extends({}, state.modbus, {
log: action.list
})
});
case 'clear_modbus':
return _extends({}, state, { modbus: _extends({}, getDefaultState().modbus) });
case 'link_list':
return _extends({}, state, {
link: {
list: action.list
}
});
case 'clear_link':
return _extends({}, state, {
link: _extends({}, getDefaultState().link)
});
default:
return state;
}
};
function mb_data() {
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var action = arguments[1];
switch (action.type) {
case 'mb_data':
if (action.id != state.uid) return state;
return _extends({}, state, {
iolist: action.iolist || [],
aioset: action.aioset || []
});
case 'mb_iostatus':
if (action.id != state.uid) return state;
var json = {};
json[action.iotype] = action.list;
return _extends({}, state, {
status: _extends({}, state.status || {}, json)
});
default:
return _extends({}, state, {
iolist: state.iolist || []
});
}
}
exports.default = listsReducer;
/***/ }),
/* 465 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var defState = function defState() {
return {
network: {},
time: '',
dashboard: {
ip: '',
version: '',
di: [],
leone: []
}
};
};
var sysinfoReducer = function sysinfoReducer() {
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defState();
var action = arguments[1];
switch (action.type) {
case 'network_info':
return _extends({}, state, { network: action.network });
case 'system_time':
return _extends({}, state, { time: action.time || '' });
case 'dashboard':
return _extends({}, state, {
dashboard: {
ip: action.ip,
version: action.version,
di: action.di,
leone: action.leone
}
});
case 'clear_dashboard':
return _extends({}, state, {
dashboard: _extends({}, defState().dashboard)
});
default:
return state;
}
};
exports.default = sysinfoReducer;
/***/ }),
/* 466 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var defState = function defState() {
return {
showMenu: false,
showLoading: false,
showDashboard: false
};
};
var uiReducer = function uiReducer() {
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defState();
var action = arguments[1];
switch (action.type) {
case 'ui_show_menu':
return _extends({}, state, { showMenu: true });
case 'ui_hide_menu':
return _extends({}, state, { showMenu: false });
case 'ui_show_loading':
return _extends({}, state, { showLoading: true });
case 'ui_hide_loading':
return _extends({}, state, { showLoading: false });
case 'ui_show_dashboard':
return _extends({}, state, { showDashboard: true });
case 'ui_hide_dashboard':
return _extends({}, state, { showDashboard: false });
default:
return state;
}
};
exports.default = uiReducer;
/***/ }),
/* 467 */
/***/ (function(module, exports, __webpack_require__) {
module.exports = { "default": __webpack_require__(476), __esModule: true };
/***/ }),
/* 468 */
/***/ (function(module, exports, __webpack_require__) {
module.exports = { "default": __webpack_require__(477), __esModule: true };
/***/ }),
/* 469 */
/***/ (function(module, exports, __webpack_require__) {
module.exports = { "default": __webpack_require__(478), __esModule: true };
/***/ }),
/* 470 */
/***/ (function(module, exports, __webpack_require__) {
module.exports = { "default": __webpack_require__(480), __esModule: true };
/***/ }),
/* 471 */
/***/ (function(module, exports, __webpack_require__) {
module.exports = { "default": __webpack_require__(481), __esModule: true };
/***/ }),
/* 472 */
/***/ (function(module, exports, __webpack_require__) {
module.exports = { "default": __webpack_require__(482), __esModule: true };
/***/ }),
/* 473 */
/***/ (function(module, exports, __webpack_require__) {
module.exports = { "default": __webpack_require__(483), __esModule: true };
/***/ }),
/* 474 */
/***/ (function(module, exports, __webpack_require__) {
module.exports = { "default": __webpack_require__(484), __esModule: true };
/***/ }),
/* 475 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
var _defineProperty = __webpack_require__(249);
var _defineProperty2 = _interopRequireDefault(_defineProperty);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
exports.default = function (obj, key, value) {
if (key in obj) {
(0, _defineProperty2.default)(obj, key, {
value: value,
enumerable: true,
configurable: true,
writable: true
});
} else {
obj[key] = value;
}
return obj;
};
/***/ }),
/* 476 */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(261);
__webpack_require__(507);
module.exports = __webpack_require__(28).Array.from;
/***/ }),
/* 477 */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(509);
module.exports = __webpack_require__(28).Object.assign;
/***/ }),
/* 478 */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(510);
var $Object = __webpack_require__(28).Object;
module.exports = function create(P, D){
return $Object.create(P, D);
};
/***/ }),
/* 479 */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(511);
var $Object = __webpack_require__(28).Object;
module.exports = function defineProperty(it, key, desc){
return $Object.defineProperty(it, key, desc);
};
/***/ }),
/* 480 */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(512);
var $Object = __webpack_require__(28).Object;
module.exports = function getOwnPropertyDescriptor(it, key){
return $Object.getOwnPropertyDescriptor(it, key);
};
/***/ }),
/* 481 */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(513);
module.exports = __webpack_require__(28).Object.getPrototypeOf;
/***/ }),
/* 482 */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(514);
module.exports = __webpack_require__(28).Object.setPrototypeOf;
/***/ }),
/* 483 */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(516);
__webpack_require__(515);
__webpack_require__(517);
__webpack_require__(518);
module.exports = __webpack_require__(28).Symbol;
/***/ }),
/* 484 */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(261);
__webpack_require__(519);
module.exports = __webpack_require__(166).f('iterator');
/***/ }),
/* 485 */
/***/ (function(module, exports) {
module.exports = function(it){
if(typeof it != 'function')throw TypeError(it + ' is not a function!');
return it;
};
/***/ }),
/* 486 */
/***/ (function(module, exports) {
module.exports = function(){ /* empty */ };
/***/ }),
/* 487 */
/***/ (function(module, exports, __webpack_require__) {
// false -> Array#indexOf
// true -> Array#includes
var toIObject = __webpack_require__(46)
, toLength = __webpack_require__(260)
, toIndex = __webpack_require__(505);
module.exports = function(IS_INCLUDES){
return function($this, el, fromIndex){
var O = toIObject($this)
, length = toLength(O.length)
, index = toIndex(fromIndex, length)
, value;
// Array#includes uses SameValueZero equality algorithm
if(IS_INCLUDES && el != el)while(length > index){
value = O[index++];
if(value != value)return true;
// Array#toIndex ignores holes, Array#includes - not
} else for(;length > index; index++)if(IS_INCLUDES || index in O){
if(O[index] === el)return IS_INCLUDES || index || 0;
} return !IS_INCLUDES && -1;
};
};
/***/ }),
/* 488 */
/***/ (function(module, exports, __webpack_require__) {
// getting tag from 19.1.3.6 Object.prototype.toString()
var cof = __webpack_require__(152)
, TAG = __webpack_require__(33)('toStringTag')
// ES3 wrong here
, ARG = cof(function(){ return arguments; }()) == 'Arguments';
// fallback for IE11 Script Access Denied error
var tryGet = function(it, key){
try {
return it[key];
} catch(e){ /* empty */ }
};
module.exports = function(it){
var O, T, B;
return it === undefined ? 'Undefined' : it === null ? 'Null'
// @@toStringTag case
: typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T
// builtinTag case
: ARG ? cof(O)
// ES3 arguments fallback
: (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
};
/***/ }),
/* 489 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $defineProperty = __webpack_require__(45)
, createDesc = __webpack_require__(82);
module.exports = function(object, index, value){
if(index in object)$defineProperty.f(object, index, createDesc(0, value));
else object[index] = value;
};
/***/ }),
/* 490 */
/***/ (function(module, exports, __webpack_require__) {
// all enumerable object keys, includes symbols
var getKeys = __webpack_require__(81)
, gOPS = __webpack_require__(159)
, pIE = __webpack_require__(98);
module.exports = function(it){
var result = getKeys(it)
, getSymbols = gOPS.f;
if(getSymbols){
var symbols = getSymbols(it)
, isEnum = pIE.f
, i = 0
, key;
while(symbols.length > i)if(isEnum.call(it, key = symbols[i++]))result.push(key);
} return result;
};
/***/ }),
/* 491 */
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(44).document && document.documentElement;
/***/ }),
/* 492 */
/***/ (function(module, exports, __webpack_require__) {
// check on default Array iterator
var Iterators = __webpack_require__(80)
, ITERATOR = __webpack_require__(33)('iterator')
, ArrayProto = Array.prototype;
module.exports = function(it){
return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
};
/***/ }),
/* 493 */
/***/ (function(module, exports, __webpack_require__) {
// 7.2.2 IsArray(argument)
var cof = __webpack_require__(152);
module.exports = Array.isArray || function isArray(arg){
return cof(arg) == 'Array';
};
/***/ }),
/* 494 */
/***/ (function(module, exports, __webpack_require__) {
// call something on iterator step with safe closing on error
var anObject = __webpack_require__(66);
module.exports = function(iterator, fn, value, entries){
try {
return entries ? fn(anObject(value)[0], value[1]) : fn(value);
// 7.4.6 IteratorClose(iterator, completion)
} catch(e){
var ret = iterator['return'];
if(ret !== undefined)anObject(ret.call(iterator));
throw e;
}
};
/***/ }),
/* 495 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var create = __webpack_require__(157)
, descriptor = __webpack_require__(82)
, setToStringTag = __webpack_require__(160)
, IteratorPrototype = {};
// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
__webpack_require__(68)(IteratorPrototype, __webpack_require__(33)('iterator'), function(){ return this; });
module.exports = function(Constructor, NAME, next){
Constructor.prototype = create(IteratorPrototype, {next: descriptor(1, next)});
setToStringTag(Constructor, NAME + ' Iterator');
};
/***/ }),
/* 496 */
/***/ (function(module, exports, __webpack_require__) {
var ITERATOR = __webpack_require__(33)('iterator')
, SAFE_CLOSING = false;
try {
var riter = [7][ITERATOR]();
riter['return'] = function(){ SAFE_CLOSING = true; };
Array.from(riter, function(){ throw 2; });
} catch(e){ /* empty */ }
module.exports = function(exec, skipClosing){
if(!skipClosing && !SAFE_CLOSING)return false;
var safe = false;
try {
var arr = [7]
, iter = arr[ITERATOR]();
iter.next = function(){ return {done: safe = true}; };
arr[ITERATOR] = function(){ return iter; };
exec(arr);
} catch(e){ /* empty */ }
return safe;
};
/***/ }),
/* 497 */
/***/ (function(module, exports) {
module.exports = function(done, value){
return {value: value, done: !!done};
};
/***/ }),
/* 498 */
/***/ (function(module, exports, __webpack_require__) {
var getKeys = __webpack_require__(81)
, toIObject = __webpack_require__(46);
module.exports = function(object, el){
var O = toIObject(object)
, keys = getKeys(O)
, length = keys.length
, index = 0
, key;
while(length > index)if(O[key = keys[index++]] === el)return key;
};
/***/ }),
/* 499 */
/***/ (function(module, exports, __webpack_require__) {
var META = __webpack_require__(100)('meta')
, isObject = __webpack_require__(79)
, has = __webpack_require__(57)
, setDesc = __webpack_require__(45).f
, id = 0;
var isExtensible = Object.isExtensible || function(){
return true;
};
var FREEZE = !__webpack_require__(67)(function(){
return isExtensible(Object.preventExtensions({}));
});
var setMeta = function(it){
setDesc(it, META, {value: {
i: 'O' + ++id, // object ID
w: {} // weak collections IDs
}});
};
var fastKey = function(it, create){
// return primitive with prefix
if(!isObject(it))return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
if(!has(it, META)){
// can't set metadata to uncaught frozen object
if(!isExtensible(it))return 'F';
// not necessary to add metadata
if(!create)return 'E';
// add missing metadata
setMeta(it);
// return object ID
} return it[META].i;
};
var getWeak = function(it, create){
if(!has(it, META)){
// can't set metadata to uncaught frozen object
if(!isExtensible(it))return true;
// not necessary to add metadata
if(!create)return false;
// add missing metadata
setMeta(it);
// return hash weak collections IDs
} return it[META].w;
};
// add metadata on freeze-family methods calling
var onFreeze = function(it){
if(FREEZE && meta.NEED && isExtensible(it) && !has(it, META))setMeta(it);
return it;
};
var meta = module.exports = {
KEY: META,
NEED: false,
fastKey: fastKey,
getWeak: getWeak,
onFreeze: onFreeze
};
/***/ }),
/* 500 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// 19.1.2.1 Object.assign(target, source, ...)
var getKeys = __webpack_require__(81)
, gOPS = __webpack_require__(159)
, pIE = __webpack_require__(98)
, toObject = __webpack_require__(99)
, IObject = __webpack_require__(253)
, $assign = Object.assign;
// should work with symbols and should have deterministic property order (V8 bug)
module.exports = !$assign || __webpack_require__(67)(function(){
var A = {}
, B = {}
, S = Symbol()
, K = 'abcdefghijklmnopqrst';
A[S] = 7;
K.split('').forEach(function(k){ B[k] = k; });
return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;
}) ? function assign(target, source){ // eslint-disable-line no-unused-vars
var T = toObject(target)
, aLen = arguments.length
, index = 1
, getSymbols = gOPS.f
, isEnum = pIE.f;
while(aLen > index){
var S = IObject(arguments[index++])
, keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S)
, length = keys.length
, j = 0
, key;
while(length > j)if(isEnum.call(S, key = keys[j++]))T[key] = S[key];
} return T;
} : $assign;
/***/ }),
/* 501 */
/***/ (function(module, exports, __webpack_require__) {
var dP = __webpack_require__(45)
, anObject = __webpack_require__(66)
, getKeys = __webpack_require__(81);
module.exports = __webpack_require__(56) ? Object.defineProperties : function defineProperties(O, Properties){
anObject(O);
var keys = getKeys(Properties)
, length = keys.length
, i = 0
, P;
while(length > i)dP.f(O, P = keys[i++], Properties[P]);
return O;
};
/***/ }),
/* 502 */
/***/ (function(module, exports, __webpack_require__) {
// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
var toIObject = __webpack_require__(46)
, gOPN = __webpack_require__(255).f
, toString = {}.toString;
var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
? Object.getOwnPropertyNames(window) : [];
var getWindowNames = function(it){
try {
return gOPN(it);
} catch(e){
return windowNames.slice();
}
};
module.exports.f = function getOwnPropertyNames(it){
return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));
};
/***/ }),
/* 503 */
/***/ (function(module, exports, __webpack_require__) {
// Works with __proto__ only. Old v8 can't work with null proto objects.
/* eslint-disable no-proto */
var isObject = __webpack_require__(79)
, anObject = __webpack_require__(66);
var check = function(O, proto){
anObject(O);
if(!isObject(proto) && proto !== null)throw TypeError(proto + ": can't set as prototype!");
};
module.exports = {
set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line
function(test, buggy, set){
try {
set = __webpack_require__(153)(Function.call, __webpack_require__(158).f(Object.prototype, '__proto__').set, 2);
set(test, []);
buggy = !(test instanceof Array);
} catch(e){ buggy = true; }
return function setPrototypeOf(O, proto){
check(O, proto);
if(buggy)O.__proto__ = proto;
else set(O, proto);
return O;
};
}({}, false) : undefined),
check: check
};
/***/ }),
/* 504 */
/***/ (function(module, exports, __webpack_require__) {
var toInteger = __webpack_require__(163)
, defined = __webpack_require__(154);
// true -> String#at
// false -> String#codePointAt
module.exports = function(TO_STRING){
return function(that, pos){
var s = String(defined(that))
, i = toInteger(pos)
, l = s.length
, a, b;
if(i < 0 || i >= l)return TO_STRING ? '' : undefined;
a = s.charCodeAt(i);
return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
? TO_STRING ? s.charAt(i) : a
: TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
};
};
/***/ }),
/* 505 */
/***/ (function(module, exports, __webpack_require__) {
var toInteger = __webpack_require__(163)
, max = Math.max
, min = Math.min;
module.exports = function(index, length){
index = toInteger(index);
return index < 0 ? max(index + length, 0) : min(index, length);
};
/***/ }),
/* 506 */
/***/ (function(module, exports, __webpack_require__) {
var classof = __webpack_require__(488)
, ITERATOR = __webpack_require__(33)('iterator')
, Iterators = __webpack_require__(80);
module.exports = __webpack_require__(28).getIteratorMethod = function(it){
if(it != undefined)return it[ITERATOR]
|| it['@@iterator']
|| Iterators[classof(it)];
};
/***/ }),
/* 507 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var ctx = __webpack_require__(153)
, $export = __webpack_require__(43)
, toObject = __webpack_require__(99)
, call = __webpack_require__(494)
, isArrayIter = __webpack_require__(492)
, toLength = __webpack_require__(260)
, createProperty = __webpack_require__(489)
, getIterFn = __webpack_require__(506);
$export($export.S + $export.F * !__webpack_require__(496)(function(iter){ Array.from(iter); }), 'Array', {
// 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined)
from: function from(arrayLike/*, mapfn = undefined, thisArg = undefined*/){
var O = toObject(arrayLike)
, C = typeof this == 'function' ? this : Array
, aLen = arguments.length
, mapfn = aLen > 1 ? arguments[1] : undefined
, mapping = mapfn !== undefined
, index = 0
, iterFn = getIterFn(O)
, length, result, step, iterator;
if(mapping)mapfn = ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2);
// if object isn't iterable or it's array with default iterator - use simple case
if(iterFn != undefined && !(C == Array && isArrayIter(iterFn))){
for(iterator = iterFn.call(O), result = new C; !(step = iterator.next()).done; index++){
createProperty(result, index, mapping ? call(iterator, mapfn, [step.value, index], true) : step.value);
}
} else {
length = toLength(O.length);
for(result = new C(length); length > index; index++){
createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]);
}
}
result.length = index;
return result;
}
});
/***/ }),
/* 508 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var addToUnscopables = __webpack_require__(486)
, step = __webpack_require__(497)
, Iterators = __webpack_require__(80)
, toIObject = __webpack_require__(46);
// 22.1.3.4 Array.prototype.entries()
// 22.1.3.13 Array.prototype.keys()
// 22.1.3.29 Array.prototype.values()
// 22.1.3.30 Array.prototype[@@iterator]()
module.exports = __webpack_require__(254)(Array, 'Array', function(iterated, kind){
this._t = toIObject(iterated); // target
this._i = 0; // next index
this._k = kind; // kind
// 22.1.5.2.1 %ArrayIteratorPrototype%.next()
}, function(){
var O = this._t
, kind = this._k
, index = this._i++;
if(!O || index >= O.length){
this._t = undefined;
return step(1);
}
if(kind == 'keys' )return step(0, index);
if(kind == 'values')return step(0, O[index]);
return step(0, [index, O[index]]);
}, 'values');
// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
Iterators.Arguments = Iterators.Array;
addToUnscopables('keys');
addToUnscopables('values');
addToUnscopables('entries');
/***/ }),
/* 509 */
/***/ (function(module, exports, __webpack_require__) {
// 19.1.3.1 Object.assign(target, source)
var $export = __webpack_require__(43);
$export($export.S + $export.F, 'Object', {assign: __webpack_require__(500)});
/***/ }),
/* 510 */
/***/ (function(module, exports, __webpack_require__) {
var $export = __webpack_require__(43)
// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
$export($export.S, 'Object', {create: __webpack_require__(157)});
/***/ }),
/* 511 */
/***/ (function(module, exports, __webpack_require__) {
var $export = __webpack_require__(43);
// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
$export($export.S + $export.F * !__webpack_require__(56), 'Object', {defineProperty: __webpack_require__(45).f});
/***/ }),
/* 512 */
/***/ (function(module, exports, __webpack_require__) {
// 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
var toIObject = __webpack_require__(46)
, $getOwnPropertyDescriptor = __webpack_require__(158).f;
__webpack_require__(258)('getOwnPropertyDescriptor', function(){
return function getOwnPropertyDescriptor(it, key){
return $getOwnPropertyDescriptor(toIObject(it), key);
};
});
/***/ }),
/* 513 */
/***/ (function(module, exports, __webpack_require__) {
// 19.1.2.9 Object.getPrototypeOf(O)
var toObject = __webpack_require__(99)
, $getPrototypeOf = __webpack_require__(256);
__webpack_require__(258)('getPrototypeOf', function(){
return function getPrototypeOf(it){
return $getPrototypeOf(toObject(it));
};
});
/***/ }),
/* 514 */
/***/ (function(module, exports, __webpack_require__) {
// 19.1.3.19 Object.setPrototypeOf(O, proto)
var $export = __webpack_require__(43);
$export($export.S, 'Object', {setPrototypeOf: __webpack_require__(503).set});
/***/ }),
/* 515 */
/***/ (function(module, exports) {
/***/ }),
/* 516 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// ECMAScript 6 symbols shim
var global = __webpack_require__(44)
, has = __webpack_require__(57)
, DESCRIPTORS = __webpack_require__(56)
, $export = __webpack_require__(43)
, redefine = __webpack_require__(259)
, META = __webpack_require__(499).KEY
, $fails = __webpack_require__(67)
, shared = __webpack_require__(162)
, setToStringTag = __webpack_require__(160)
, uid = __webpack_require__(100)
, wks = __webpack_require__(33)
, wksExt = __webpack_require__(166)
, wksDefine = __webpack_require__(165)
, keyOf = __webpack_require__(498)
, enumKeys = __webpack_require__(490)
, isArray = __webpack_require__(493)
, anObject = __webpack_require__(66)
, toIObject = __webpack_require__(46)
, toPrimitive = __webpack_require__(164)
, createDesc = __webpack_require__(82)
, _create = __webpack_require__(157)
, gOPNExt = __webpack_require__(502)
, $GOPD = __webpack_require__(158)
, $DP = __webpack_require__(45)
, $keys = __webpack_require__(81)
, gOPD = $GOPD.f
, dP = $DP.f
, gOPN = gOPNExt.f
, $Symbol = global.Symbol
, $JSON = global.JSON
, _stringify = $JSON && $JSON.stringify
, PROTOTYPE = 'prototype'
, HIDDEN = wks('_hidden')
, TO_PRIMITIVE = wks('toPrimitive')
, isEnum = {}.propertyIsEnumerable
, SymbolRegistry = shared('symbol-registry')
, AllSymbols = shared('symbols')
, OPSymbols = shared('op-symbols')
, ObjectProto = Object[PROTOTYPE]
, USE_NATIVE = typeof $Symbol == 'function'
, QObject = global.QObject;
// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
var setSymbolDesc = DESCRIPTORS && $fails(function(){
return _create(dP({}, 'a', {
get: function(){ return dP(this, 'a', {value: 7}).a; }
})).a != 7;
}) ? function(it, key, D){
var protoDesc = gOPD(ObjectProto, key);
if(protoDesc)delete ObjectProto[key];
dP(it, key, D);
if(protoDesc && it !== ObjectProto)dP(ObjectProto, key, protoDesc);
} : dP;
var wrap = function(tag){
var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);
sym._k = tag;
return sym;
};
var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function(it){
return typeof it == 'symbol';
} : function(it){
return it instanceof $Symbol;
};
var $defineProperty = function defineProperty(it, key, D){
if(it === ObjectProto)$defineProperty(OPSymbols, key, D);
anObject(it);
key = toPrimitive(key, true);
anObject(D);
if(has(AllSymbols, key)){
if(!D.enumerable){
if(!has(it, HIDDEN))dP(it, HIDDEN, createDesc(1, {}));
it[HIDDEN][key] = true;
} else {
if(has(it, HIDDEN) && it[HIDDEN][key])it[HIDDEN][key] = false;
D = _create(D, {enumerable: createDesc(0, false)});
} return setSymbolDesc(it, key, D);
} return dP(it, key, D);
};
var $defineProperties = function defineProperties(it, P){
anObject(it);
var keys = enumKeys(P = toIObject(P))
, i = 0
, l = keys.length
, key;
while(l > i)$defineProperty(it, key = keys[i++], P[key]);
return it;
};
var $create = function create(it, P){
return P === undefined ? _create(it) : $defineProperties(_create(it), P);
};
var $propertyIsEnumerable = function propertyIsEnumerable(key){
var E = isEnum.call(this, key = toPrimitive(key, true));
if(this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key))return false;
return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;
};
var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key){
it = toIObject(it);
key = toPrimitive(key, true);
if(it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key))return;
var D = gOPD(it, key);
if(D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key]))D.enumerable = true;
return D;
};
var $getOwnPropertyNames = function getOwnPropertyNames(it){
var names = gOPN(toIObject(it))
, result = []
, i = 0
, key;
while(names.length > i){
if(!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META)result.push(key);
} return result;
};
var $getOwnPropertySymbols = function getOwnPropertySymbols(it){
var IS_OP = it === ObjectProto
, names = gOPN(IS_OP ? OPSymbols : toIObject(it))
, result = []
, i = 0
, key;
while(names.length > i){
if(has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true))result.push(AllSymbols[key]);
} return result;
};
// 19.4.1.1 Symbol([description])
if(!USE_NATIVE){
$Symbol = function Symbol(){
if(this instanceof $Symbol)throw TypeError('Symbol is not a constructor!');
var tag = uid(arguments.length > 0 ? arguments[0] : undefined);
var $set = function(value){
if(this === ObjectProto)$set.call(OPSymbols, value);
if(has(this, HIDDEN) && has(this[HIDDEN], tag))this[HIDDEN][tag] = false;
setSymbolDesc(this, tag, createDesc(1, value));
};
if(DESCRIPTORS && setter)setSymbolDesc(ObjectProto, tag, {configurable: true, set: $set});
return wrap(tag);
};
redefine($Symbol[PROTOTYPE], 'toString', function toString(){
return this._k;
});
$GOPD.f = $getOwnPropertyDescriptor;
$DP.f = $defineProperty;
__webpack_require__(255).f = gOPNExt.f = $getOwnPropertyNames;
__webpack_require__(98).f = $propertyIsEnumerable;
__webpack_require__(159).f = $getOwnPropertySymbols;
if(DESCRIPTORS && !__webpack_require__(156)){
redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);
}
wksExt.f = function(name){
return wrap(wks(name));
}
}
$export($export.G + $export.W + $export.F * !USE_NATIVE, {Symbol: $Symbol});
for(var symbols = (
// 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14
'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'
).split(','), i = 0; symbols.length > i; )wks(symbols[i++]);
for(var symbols = $keys(wks.store), i = 0; symbols.length > i; )wksDefine(symbols[i++]);
$export($export.S + $export.F * !USE_NATIVE, 'Symbol', {
// 19.4.2.1 Symbol.for(key)
'for': function(key){
return has(SymbolRegistry, key += '')
? SymbolRegistry[key]
: SymbolRegistry[key] = $Symbol(key);
},
// 19.4.2.5 Symbol.keyFor(sym)
keyFor: function keyFor(key){
if(isSymbol(key))return keyOf(SymbolRegistry, key);
throw TypeError(key + ' is not a symbol!');
},
useSetter: function(){ setter = true; },
useSimple: function(){ setter = false; }
});
$export($export.S + $export.F * !USE_NATIVE, 'Object', {
// 19.1.2.2 Object.create(O [, Properties])
create: $create,
// 19.1.2.4 Object.defineProperty(O, P, Attributes)
defineProperty: $defineProperty,
// 19.1.2.3 Object.defineProperties(O, Properties)
defineProperties: $defineProperties,
// 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
getOwnPropertyDescriptor: $getOwnPropertyDescriptor,
// 19.1.2.7 Object.getOwnPropertyNames(O)
getOwnPropertyNames: $getOwnPropertyNames,
// 19.1.2.8 Object.getOwnPropertySymbols(O)
getOwnPropertySymbols: $getOwnPropertySymbols
});
// 24.3.2 JSON.stringify(value [, replacer [, space]])
$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function(){
var S = $Symbol();
// MS Edge converts symbol values to JSON as {}
// WebKit converts symbol values to JSON as null
// V8 throws on boxed symbols
return _stringify([S]) != '[null]' || _stringify({a: S}) != '{}' || _stringify(Object(S)) != '{}';
})), 'JSON', {
stringify: function stringify(it){
if(it === undefined || isSymbol(it))return; // IE8 returns string on undefined
var args = [it]
, i = 1
, replacer, $replacer;
while(arguments.length > i)args.push(arguments[i++]);
replacer = args[1];
if(typeof replacer == 'function')$replacer = replacer;
if($replacer || !isArray(replacer))replacer = function(key, value){
if($replacer)value = $replacer.call(this, key, value);
if(!isSymbol(value))return value;
};
args[1] = replacer;
return _stringify.apply($JSON, args);
}
});
// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)
$Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(68)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
// 19.4.3.5 Symbol.prototype[@@toStringTag]
setToStringTag($Symbol, 'Symbol');
// 20.2.1.9 Math[@@toStringTag]
setToStringTag(Math, 'Math', true);
// 24.3.3 JSON[@@toStringTag]
setToStringTag(global.JSON, 'JSON', true);
/***/ }),
/* 517 */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(165)('asyncIterator');
/***/ }),
/* 518 */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(165)('observable');
/***/ }),
/* 519 */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(508);
var global = __webpack_require__(44)
, hide = __webpack_require__(68)
, Iterators = __webpack_require__(80)
, TO_STRING_TAG = __webpack_require__(33)('toStringTag');
for(var collections = ['NodeList', 'DOMTokenList', 'MediaList', 'StyleSheetList', 'CSSRuleList'], i = 0; i < 5; i++){
var NAME = collections[i]
, Collection = global[NAME]
, proto = Collection && Collection.prototype;
if(proto && !proto[TO_STRING_TAG])hide(proto, TO_STRING_TAG, NAME);
Iterators[NAME] = Iterators.Array;
}
/***/ }),
/* 520 */
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(process) {/**
* This is the web browser implementation of `debug()`.
*
* Expose `debug()` as the module.
*/
exports = module.exports = __webpack_require__(521);
exports.log = log;
exports.formatArgs = formatArgs;
exports.save = save;
exports.load = load;
exports.useColors = useColors;
exports.storage = 'undefined' != typeof chrome
&& 'undefined' != typeof chrome.storage
? chrome.storage.local
: localstorage();
/**
* Colors.
*/
exports.colors = [
'lightseagreen',
'forestgreen',
'goldenrod',
'dodgerblue',
'darkorchid',
'crimson'
];
/**
* Currently only WebKit-based Web Inspectors, Firefox >= v31,
* and the Firebug extension (any Firefox version) are known
* to support "%c" CSS customizations.
*
* TODO: add a `localStorage` variable to explicitly enable/disable colors
*/
function useColors() {
// NB: In an Electron preload script, document will be defined but not fully
// initialized. Since we know we're in Chrome, we'll just detect this case
// explicitly
if (typeof window !== 'undefined' && window && typeof window.process !== 'undefined' && window.process.type === 'renderer') {
return true;
}
// is webkit? http://stackoverflow.com/a/16459606/376773
// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
return (typeof document !== 'undefined' && document && 'WebkitAppearance' in document.documentElement.style) ||
// is firebug? http://stackoverflow.com/a/398120/376773
(typeof window !== 'undefined' && window && window.console && (console.firebug || (console.exception && console.table))) ||
// is firefox >= v31?
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
(typeof navigator !== 'undefined' && navigator && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31) ||
// double check webkit in userAgent just in case we are in a worker
(typeof navigator !== 'undefined' && navigator && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/));
}
/**
* Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.
*/
exports.formatters.j = function(v) {
try {
return JSON.stringify(v);
} catch (err) {
return '[UnexpectedJSONParseError]: ' + err.message;
}
};
/**
* Colorize log arguments if enabled.
*
* @api public
*/
function formatArgs(args) {
var useColors = this.useColors;
args[0] = (useColors ? '%c' : '')
+ this.namespace
+ (useColors ? ' %c' : ' ')
+ args[0]
+ (useColors ? '%c ' : ' ')
+ '+' + exports.humanize(this.diff);
if (!useColors) return;
var c = 'color: ' + this.color;
args.splice(1, 0, c, 'color: inherit')
// the final "%c" is somewhat tricky, because there could be other
// arguments passed either before or after the %c, so we need to
// figure out the correct index to insert the CSS into
var index = 0;
var lastC = 0;
args[0].replace(/%[a-zA-Z%]/g, function(match) {
if ('%%' === match) return;
index++;
if ('%c' === match) {
// we only are interested in the *last* %c
// (the user may have provided their own)
lastC = index;
}
});
args.splice(lastC, 0, c);
}
/**
* Invokes `console.log()` when available.
* No-op when `console.log` is not a "function".
*
* @api public
*/
function log() {
// this hackery is required for IE8/9, where
// the `console.log` function doesn't have 'apply'
return 'object' === typeof console
&& console.log
&& Function.prototype.apply.call(console.log, console, arguments);
}
/**
* Save `namespaces`.
*
* @param {String} namespaces
* @api private
*/
function save(namespaces) {
try {
if (null == namespaces) {
exports.storage.removeItem('debug');
} else {
exports.storage.debug = namespaces;
}
} catch(e) {}
}
/**
* Load `namespaces`.
*
* @return {String} returns the previously persisted debug modes
* @api private
*/
function load() {
try {
return exports.storage.debug;
} catch(e) {}
// If debug isn't set in LS, and we're in Electron, try to load $DEBUG
if (typeof process !== 'undefined' && 'env' in process) {
return __webpack_require__.i({"NODE_ENV":"development"}).DEBUG;
}
}
/**
* Enable namespaces listed in `localStorage.debug` initially.
*/
exports.enable(load());
/**
* Localstorage attempts to return the localstorage.
*
* This is necessary because safari throws
* when a user disables cookies/localstorage
* and you attempt to access it.
*
* @return {LocalStorage}
* @api private
*/
function localstorage() {
try {
return window.localStorage;
} catch (e) {}
}
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(74)))
/***/ }),
/* 521 */
/***/ (function(module, exports, __webpack_require__) {
/**
* This is the common logic for both the Node.js and web browser
* implementations of `debug()`.
*
* Expose `debug()` as the module.
*/
exports = module.exports = createDebug.debug = createDebug['default'] = createDebug;
exports.coerce = coerce;
exports.disable = disable;
exports.enable = enable;
exports.enabled = enabled;
exports.humanize = __webpack_require__(732);
/**
* The currently active debug mode names, and names to skip.
*/
exports.names = [];
exports.skips = [];
/**
* Map of special "%n" handling functions, for the debug "format" argument.
*
* Valid key names are a single, lower or upper-case letter, i.e. "n" and "N".
*/
exports.formatters = {};
/**
* Previous log timestamp.
*/
var prevTime;
/**
* Select a color.
* @param {String} namespace
* @return {Number}
* @api private
*/
function selectColor(namespace) {
var hash = 0, i;
for (i in namespace) {
hash = ((hash << 5) - hash) + namespace.charCodeAt(i);
hash |= 0; // Convert to 32bit integer
}
return exports.colors[Math.abs(hash) % exports.colors.length];
}
/**
* Create a debugger with the given `namespace`.
*
* @param {String} namespace
* @return {Function}
* @api public
*/
function createDebug(namespace) {
function debug() {
// disabled?
if (!debug.enabled) return;
var self = debug;
// set `diff` timestamp
var curr = +new Date();
var ms = curr - (prevTime || curr);
self.diff = ms;
self.prev = prevTime;
self.curr = curr;
prevTime = curr;
// turn the `arguments` into a proper Array
var args = new Array(arguments.length);
for (var i = 0; i < args.length; i++) {
args[i] = arguments[i];
}
args[0] = exports.coerce(args[0]);
if ('string' !== typeof args[0]) {
// anything else let's inspect with %O
args.unshift('%O');
}
// apply any `formatters` transformations
var index = 0;
args[0] = args[0].replace(/%([a-zA-Z%])/g, function(match, format) {
// if we encounter an escaped % then don't increase the array index
if (match === '%%') return match;
index++;
var formatter = exports.formatters[format];
if ('function' === typeof formatter) {
var val = args[index];
match = formatter.call(self, val);
// now we need to remove `args[index]` since it's inlined in the `format`
args.splice(index, 1);
index--;
}
return match;
});
// apply env-specific formatting (colors, etc.)
exports.formatArgs.call(self, args);
var logFn = debug.log || exports.log || console.log.bind(console);
logFn.apply(self, args);
}
debug.namespace = namespace;
debug.enabled = exports.enabled(namespace);
debug.useColors = exports.useColors();
debug.color = selectColor(namespace);
// env-specific initialization logic for debug instances
if ('function' === typeof exports.init) {
exports.init(debug);
}
return debug;
}
/**
* Enables a debug mode by namespaces. This can include modes
* separated by a colon and wildcards.
*
* @param {String} namespaces
* @api public
*/
function enable(namespaces) {
exports.save(namespaces);
exports.names = [];
exports.skips = [];
var split = (namespaces || '').split(/[\s,]+/);
var len = split.length;
for (var i = 0; i < len; i++) {
if (!split[i]) continue; // ignore empty strings
namespaces = split[i].replace(/\*/g, '.*?');
if (namespaces[0] === '-') {
exports.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));
} else {
exports.names.push(new RegExp('^' + namespaces + '$'));
}
}
}
/**
* Disable debug output.
*
* @api public
*/
function disable() {
exports.enable('');
}
/**
* Returns true if the given mode name is enabled, false otherwise.
*
* @param {String} name
* @return {Boolean}
* @api public
*/
function enabled(name) {
var i, len;
for (i = 0, len = exports.skips.length; i < len; i++) {
if (exports.skips[i].test(name)) {
return false;
}
}
for (i = 0, len = exports.names.length; i < len; i++) {
if (exports.names[i].test(name)) {
return true;
}
}
return false;
}
/**
* Coerce `val`.
*
* @param {Mixed} val
* @return {Mixed}
* @api private
*/
function coerce(val) {
if (val instanceof Error) return val.stack || val.message;
return val;
}
/***/ }),
/* 522 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @typechecks
*/
var _hyphenPattern = /-(.)/g;
/**
* Camelcases a hyphenated string, for example:
*
* > camelize('background-color')
* < "backgroundColor"
*
* @param {string} string
* @return {string}
*/
function camelize(string) {
return string.replace(_hyphenPattern, function (_, character) {
return character.toUpperCase();
});
}
module.exports = camelize;
/***/ }),
/* 523 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @typechecks
*/
var camelize = __webpack_require__(522);
var msPattern = /^-ms-/;
/**
* Camelcases a hyphenated CSS property name, for example:
*
* > camelizeStyleName('background-color')
* < "backgroundColor"
* > camelizeStyleName('-moz-transition')
* < "MozTransition"
* > camelizeStyleName('-ms-transition')
* < "msTransition"
*
* As Andi Smith suggests
* (http://www.andismith.com/blog/2012/02/modernizr-prefixed/), an `-ms` prefix
* is converted to lowercase `ms`.
*
* @param {string} string
* @return {string}
*/
function camelizeStyleName(string) {
return camelize(string.replace(msPattern, 'ms-'));
}
module.exports = camelizeStyleName;
/***/ }),
/* 524 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*
*/
var isTextNode = __webpack_require__(532);
/*eslint-disable no-bitwise */
/**
* Checks if a given DOM node contains or is another DOM node.
*/
function containsNode(outerNode, innerNode) {
if (!outerNode || !innerNode) {
return false;
} else if (outerNode === innerNode) {
return true;
} else if (isTextNode(outerNode)) {
return false;
} else if (isTextNode(innerNode)) {
return containsNode(outerNode, innerNode.parentNode);
} else if ('contains' in outerNode) {
return outerNode.contains(innerNode);
} else if (outerNode.compareDocumentPosition) {
return !!(outerNode.compareDocumentPosition(innerNode) & 16);
} else {
return false;
}
}
module.exports = containsNode;
/***/ }),
/* 525 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @typechecks
*/
var invariant = __webpack_require__(6);
/**
* Convert array-like objects to arrays.
*
* This API assumes the caller knows the contents of the data type. For less
* well defined inputs use createArrayFromMixed.
*
* @param {object|function|filelist} obj
* @return {array}
*/
function toArray(obj) {
var length = obj.length;
// Some browsers builtin objects can report typeof 'function' (e.g. NodeList
// in old versions of Safari).
!(!Array.isArray(obj) && (typeof obj === 'object' || typeof obj === 'function')) ? true ? invariant(false, 'toArray: Array-like object expected') : invariant(false) : void 0;
!(typeof length === 'number') ? true ? invariant(false, 'toArray: Object needs a length property') : invariant(false) : void 0;
!(length === 0 || length - 1 in obj) ? true ? invariant(false, 'toArray: Object should have keys for indices') : invariant(false) : void 0;
!(typeof obj.callee !== 'function') ? true ? invariant(false, 'toArray: Object can\'t be `arguments`. Use rest params ' + '(function(...args) {}) or Array.from() instead.') : invariant(false) : void 0;
// Old IE doesn't give collections access to hasOwnProperty. Assume inputs
// without method will throw during the slice call and skip straight to the
// fallback.
if (obj.hasOwnProperty) {
try {
return Array.prototype.slice.call(obj);
} catch (e) {
// IE < 9 does not support Array#slice on collections objects
}
}
// Fall back to copying key by key. This assumes all keys have a value,
// so will not preserve sparsely populated inputs.
var ret = Array(length);
for (var ii = 0; ii < length; ii++) {
ret[ii] = obj[ii];
}
return ret;
}
/**
* Perform a heuristic test to determine if an object is "array-like".
*
* A monk asked Joshu, a Zen master, "Has a dog Buddha nature?"
* Joshu replied: "Mu."
*
* This function determines if its argument has "array nature": it returns
* true if the argument is an actual array, an `arguments' object, or an
* HTMLCollection (e.g. node.childNodes or node.getElementsByTagName()).
*
* It will return false for other array-like objects like Filelist.
*
* @param {*} obj
* @return {boolean}
*/
function hasArrayNature(obj) {
return (
// not null/false
!!obj && (
// arrays are objects, NodeLists are functions in Safari
typeof obj == 'object' || typeof obj == 'function') &&
// quacks like an array
'length' in obj &&
// not window
!('setInterval' in obj) &&
// no DOM node should be considered an array-like
// a 'select' element has 'length' and 'item' properties on IE8
typeof obj.nodeType != 'number' && (
// a real array
Array.isArray(obj) ||
// arguments
'callee' in obj ||
// HTMLCollection/NodeList
'item' in obj)
);
}
/**
* Ensure that the argument is an array by wrapping it in an array if it is not.
* Creates a copy of the argument if it is already an array.
*
* This is mostly useful idiomatically:
*
* var createArrayFromMixed = require('createArrayFromMixed');
*
* function takesOneOrMoreThings(things) {
* things = createArrayFromMixed(things);
* ...
* }
*
* This allows you to treat `things' as an array, but accept scalars in the API.
*
* If you need to convert an array-like object, like `arguments`, into an array
* use toArray instead.
*
* @param {*} obj
* @return {array}
*/
function createArrayFromMixed(obj) {
if (!hasArrayNature(obj)) {
return [obj];
} else if (Array.isArray(obj)) {
return obj.slice();
} else {
return toArray(obj);
}
}
module.exports = createArrayFromMixed;
/***/ }),
/* 526 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @typechecks
*/
/*eslint-disable fb-www/unsafe-html*/
var ExecutionEnvironment = __webpack_require__(20);
var createArrayFromMixed = __webpack_require__(525);
var getMarkupWrap = __webpack_require__(527);
var invariant = __webpack_require__(6);
/**
* Dummy container used to render all markup.
*/
var dummyNode = ExecutionEnvironment.canUseDOM ? document.createElement('div') : null;
/**
* Pattern used by `getNodeName`.
*/
var nodeNamePattern = /^\s*<(\w+)/;
/**
* Extracts the `nodeName` of the first element in a string of markup.
*
* @param {string} markup String of markup.
* @return {?string} Node name of the supplied markup.
*/
function getNodeName(markup) {
var nodeNameMatch = markup.match(nodeNamePattern);
return nodeNameMatch && nodeNameMatch[1].toLowerCase();
}
/**
* Creates an array containing the nodes rendered from the supplied markup. The
* optionally supplied `handleScript` function will be invoked once for each
*