does.
+ contentKey = 'textContent' in document.documentElement ? 'textContent' : 'innerText';
+ }
+ return contentKey;
+}
+
+module.exports = getTextContentAccessor;
+
+/***/ }),
+/* 138 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+/**
+ * Copyright (c) 2013-present, Facebook, Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ *
+ */
+
+
+
+var ReactDOMComponentTree = __webpack_require__(9);
+
+function isCheckable(elem) {
+ var type = elem.type;
+ var nodeName = elem.nodeName;
+ return nodeName && nodeName.toLowerCase() === 'input' && (type === 'checkbox' || type === 'radio');
+}
+
+function getTracker(inst) {
+ return inst._wrapperState.valueTracker;
+}
+
+function attachTracker(inst, tracker) {
+ inst._wrapperState.valueTracker = tracker;
+}
+
+function detachTracker(inst) {
+ inst._wrapperState.valueTracker = null;
+}
+
+function getValueFromNode(node) {
+ var value;
+ if (node) {
+ value = isCheckable(node) ? '' + node.checked : node.value;
+ }
+ return value;
+}
+
+var inputValueTracking = {
+ // exposed for testing
+ _getTrackerFromNode: function (node) {
+ return getTracker(ReactDOMComponentTree.getInstanceFromNode(node));
+ },
+
+
+ track: function (inst) {
+ if (getTracker(inst)) {
+ return;
+ }
+
+ var node = ReactDOMComponentTree.getNodeFromInstance(inst);
+ var valueField = isCheckable(node) ? 'checked' : 'value';
+ var descriptor = Object.getOwnPropertyDescriptor(node.constructor.prototype, valueField);
+
+ var currentValue = '' + node[valueField];
+
+ // if someone has already defined a value or Safari, then bail
+ // and don't track value will cause over reporting of changes,
+ // but it's better then a hard failure
+ // (needed for certain tests that spyOn input values and Safari)
+ if (node.hasOwnProperty(valueField) || typeof descriptor.get !== 'function' || typeof descriptor.set !== 'function') {
+ return;
+ }
+
+ Object.defineProperty(node, valueField, {
+ enumerable: descriptor.enumerable,
+ configurable: true,
+ get: function () {
+ return descriptor.get.call(this);
+ },
+ set: function (value) {
+ currentValue = '' + value;
+ descriptor.set.call(this, value);
+ }
+ });
+
+ attachTracker(inst, {
+ getValue: function () {
+ return currentValue;
+ },
+ setValue: function (value) {
+ currentValue = '' + value;
+ },
+ stopTracking: function () {
+ detachTracker(inst);
+ delete node[valueField];
+ }
+ });
+ },
+
+ updateValueIfChanged: function (inst) {
+ if (!inst) {
+ return false;
+ }
+ var tracker = getTracker(inst);
+
+ if (!tracker) {
+ inputValueTracking.track(inst);
+ return true;
+ }
+
+ var lastValue = tracker.getValue();
+ var nextValue = getValueFromNode(ReactDOMComponentTree.getNodeFromInstance(inst));
+
+ if (nextValue !== lastValue) {
+ tracker.setValue(nextValue);
+ return true;
+ }
+
+ return false;
+ },
+ stopTracking: function (inst) {
+ var tracker = getTracker(inst);
+ if (tracker) {
+ tracker.stopTracking();
+ }
+ }
+};
+
+module.exports = inputValueTracking;
+
+/***/ }),
+/* 139 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+/**
+ * Copyright (c) 2013-present, Facebook, Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ *
+ */
+
+
+
+var _prodInvariant = __webpack_require__(5),
+ _assign = __webpack_require__(7);
+
+var ReactCompositeComponent = __webpack_require__(264);
+var ReactEmptyComponent = __webpack_require__(127);
+var ReactHostComponent = __webpack_require__(129);
+
+var getNextDebugID = __webpack_require__(329);
+var invariant = __webpack_require__(2);
+var warning = __webpack_require__(6);
+
+// To avoid a cyclic dependency, we create the final class in this module
+var ReactCompositeComponentWrapper = function (element) {
+ this.construct(element);
+};
+
+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 (false) {
+ 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 ? false ? 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 ? false ? invariant(false, 'Encountered invalid React node of type %s', typeof node) : _prodInvariant('131', typeof node) : void 0;
+ }
+
+ if (false) {
+ process.env.NODE_ENV !== 'production' ? 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 (false) {
+ 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 (false) {
+ if (Object.preventExtensions) {
+ Object.preventExtensions(instance);
+ }
+ }
+
+ return instance;
+}
+
+_assign(ReactCompositeComponentWrapper.prototype, ReactCompositeComponent, {
+ _instantiateReactComponent: instantiateReactComponent
+});
+
+module.exports = instantiateReactComponent;
+
+/***/ }),
+/* 140 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+/**
+ * Copyright (c) 2013-present, Facebook, Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ *
+ *
+ */
+
+
+
+/**
+ * @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;
+
+/***/ }),
+/* 141 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+/**
+ * Copyright (c) 2013-present, Facebook, Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ *
+ */
+
+
+
+var ExecutionEnvironment = __webpack_require__(13);
+var escapeTextContentForBrowser = __webpack_require__(62);
+var setInnerHTML = __webpack_require__(63);
+
+/**
+ * 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;
+
+/***/ }),
+/* 142 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+/**
+ * Copyright (c) 2013-present, Facebook, Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ *
+ */
+
+
+
+var _prodInvariant = __webpack_require__(5);
+
+var ReactCurrentOwner = __webpack_require__(26);
+var REACT_ELEMENT_TYPE = __webpack_require__(279);
+
+var getIteratorFn = __webpack_require__(310);
+var invariant = __webpack_require__(2);
+var KeyEscapeUtils = __webpack_require__(85);
+var warning = __webpack_require__(6);
+
+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 (false) {
+ var mapsAsChildrenAddendum = '';
+ if (ReactCurrentOwner.current) {
+ var mapsAsChildrenOwnerName = ReactCurrentOwner.current.getName();
+ if (mapsAsChildrenOwnerName) {
+ mapsAsChildrenAddendum = ' Check the render method of `' + mapsAsChildrenOwnerName + '`.';
+ }
+ }
+ process.env.NODE_ENV !== 'production' ? 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 (false) {
+ 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 ? false ? 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;
+
+/***/ }),
+/* 143 */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "polyfill", function() { return polyfill; });
+/**
+ * Copyright (c) 2013-present, Facebook, Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
+function componentWillMount() {
+ // Call this.constructor.gDSFP to support sub-classes.
+ var state = this.constructor.getDerivedStateFromProps(this.props, this.state);
+ if (state !== null && state !== undefined) {
+ this.setState(state);
+ }
+}
+
+function componentWillReceiveProps(nextProps) {
+ // Call this.constructor.gDSFP to support sub-classes.
+ // Use the setState() updater to ensure state isn't stale in certain edge cases.
+ function updater(prevState) {
+ var state = this.constructor.getDerivedStateFromProps(nextProps, prevState);
+ return state !== null && state !== undefined ? state : null;
+ }
+ // Binding "this" is important for shallow renderer support.
+ this.setState(updater.bind(this));
+}
+
+function componentWillUpdate(nextProps, nextState) {
+ try {
+ var prevProps = this.props;
+ var prevState = this.state;
+ this.props = nextProps;
+ this.state = nextState;
+ this.__reactInternalSnapshotFlag = true;
+ this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(
+ prevProps,
+ prevState
+ );
+ } finally {
+ this.props = prevProps;
+ this.state = prevState;
+ }
+}
+
+// React may warn about cWM/cWRP/cWU methods being deprecated.
+// Add a flag to suppress these warnings for this special case.
+componentWillMount.__suppressDeprecationWarning = true;
+componentWillReceiveProps.__suppressDeprecationWarning = true;
+componentWillUpdate.__suppressDeprecationWarning = true;
+
+function polyfill(Component) {
+ var prototype = Component.prototype;
+
+ if (!prototype || !prototype.isReactComponent) {
+ throw new Error('Can only polyfill class components');
+ }
+
+ if (
+ typeof Component.getDerivedStateFromProps !== 'function' &&
+ typeof prototype.getSnapshotBeforeUpdate !== 'function'
+ ) {
+ return Component;
+ }
+
+ // If new component APIs are defined, "unsafe" lifecycles won't be called.
+ // Error if any of these lifecycles are present,
+ // Because they would work differently between older and newer (16.3+) versions of React.
+ var foundWillMountName = null;
+ var foundWillReceivePropsName = null;
+ var foundWillUpdateName = null;
+ if (typeof prototype.componentWillMount === 'function') {
+ foundWillMountName = 'componentWillMount';
+ } else if (typeof prototype.UNSAFE_componentWillMount === 'function') {
+ foundWillMountName = 'UNSAFE_componentWillMount';
+ }
+ if (typeof prototype.componentWillReceiveProps === 'function') {
+ foundWillReceivePropsName = 'componentWillReceiveProps';
+ } else if (typeof prototype.UNSAFE_componentWillReceiveProps === 'function') {
+ foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';
+ }
+ if (typeof prototype.componentWillUpdate === 'function') {
+ foundWillUpdateName = 'componentWillUpdate';
+ } else if (typeof prototype.UNSAFE_componentWillUpdate === 'function') {
+ foundWillUpdateName = 'UNSAFE_componentWillUpdate';
+ }
+ if (
+ foundWillMountName !== null ||
+ foundWillReceivePropsName !== null ||
+ foundWillUpdateName !== null
+ ) {
+ var componentName = Component.displayName || Component.name;
+ var newApiName =
+ typeof Component.getDerivedStateFromProps === 'function'
+ ? 'getDerivedStateFromProps()'
+ : 'getSnapshotBeforeUpdate()';
+
+ throw Error(
+ 'Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n' +
+ componentName +
+ ' uses ' +
+ newApiName +
+ ' but also contains the following legacy lifecycles:' +
+ (foundWillMountName !== null ? '\n ' + foundWillMountName : '') +
+ (foundWillReceivePropsName !== null
+ ? '\n ' + foundWillReceivePropsName
+ : '') +
+ (foundWillUpdateName !== null ? '\n ' + foundWillUpdateName : '') +
+ '\n\nThe above lifecycles should be removed. Learn more about this warning here:\n' +
+ 'https://fb.me/react-async-component-lifecycle-hooks'
+ );
+ }
+
+ // React <= 16.2 does not support static getDerivedStateFromProps.
+ // As a workaround, use cWM and cWRP to invoke the new static lifecycle.
+ // Newer versions of React will ignore these lifecycles if gDSFP exists.
+ if (typeof Component.getDerivedStateFromProps === 'function') {
+ prototype.componentWillMount = componentWillMount;
+ prototype.componentWillReceiveProps = componentWillReceiveProps;
+ }
+
+ // React <= 16.2 does not support getSnapshotBeforeUpdate.
+ // As a workaround, use cWU to invoke the new lifecycle.
+ // Newer versions of React will ignore that lifecycle if gSBU exists.
+ if (typeof prototype.getSnapshotBeforeUpdate === 'function') {
+ if (typeof prototype.componentDidUpdate !== 'function') {
+ throw new Error(
+ 'Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype'
+ );
+ }
+
+ prototype.componentWillUpdate = componentWillUpdate;
+
+ var componentDidUpdate = prototype.componentDidUpdate;
+
+ prototype.componentDidUpdate = function componentDidUpdatePolyfill(
+ prevProps,
+ prevState,
+ maybeSnapshot
+ ) {
+ // 16.3+ will not execute our will-update method;
+ // It will pass a snapshot value to did-update though.
+ // Older versions will require our polyfilled will-update value.
+ // We need to handle both cases, but can't just check for the presence of "maybeSnapshot",
+ // Because for <= 15.x versions this might be a "prevContext" object.
+ // We also can't just check "__reactInternalSnapshot",
+ // Because get-snapshot might return a falsy value.
+ // So check for the explicit __reactInternalSnapshotFlag flag to determine behavior.
+ var snapshot = this.__reactInternalSnapshotFlag
+ ? this.__reactInternalSnapshot
+ : maybeSnapshot;
+
+ componentDidUpdate.call(this, prevProps, prevState, snapshot);
+ };
+ }
+
+ return Component;
+}
+
+
+
+
+/***/ }),
+/* 144 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+exports.__esModule = true;
+exports.default = exports.EXITING = exports.ENTERED = exports.ENTERING = exports.EXITED = exports.UNMOUNTED = void 0;
+
+var PropTypes = _interopRequireWildcard(__webpack_require__(3));
+
+var _react = _interopRequireDefault(__webpack_require__(0));
+
+var _reactDom = _interopRequireDefault(__webpack_require__(30));
+
+var _reactLifecyclesCompat = __webpack_require__(143);
+
+var _PropTypes = __webpack_require__(146);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
+
+function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
+
+function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
+
+var UNMOUNTED = 'unmounted';
+exports.UNMOUNTED = UNMOUNTED;
+var EXITED = 'exited';
+exports.EXITED = EXITED;
+var ENTERING = 'entering';
+exports.ENTERING = ENTERING;
+var ENTERED = 'entered';
+exports.ENTERED = ENTERED;
+var EXITING = 'exiting';
+/**
+ * The Transition component lets you describe a transition from one component
+ * state to another _over time_ with a simple declarative API. Most commonly
+ * it's used to animate the mounting and unmounting of a component, but can also
+ * be used to describe in-place transition states as well.
+ *
+ * ---
+ *
+ * **Note**: `Transition` is a platform-agnostic base component. If you're using
+ * transitions in CSS, you'll probably want to use
+ * [`CSSTransition`](https://reactcommunity.org/react-transition-group/css-transition)
+ * instead. It inherits all the features of `Transition`, but contains
+ * additional features necessary to play nice with CSS transitions (hence the
+ * name of the component).
+ *
+ * ---
+ *
+ * By default the `Transition` component does not alter the behavior of the
+ * component it renders, it only tracks "enter" and "exit" states for the
+ * components. It's up to you to give meaning and effect to those states. For
+ * example we can add styles to a component when it enters or exits:
+ *
+ * ```jsx
+ * import { Transition } from 'react-transition-group';
+ *
+ * const duration = 300;
+ *
+ * const defaultStyle = {
+ * transition: `opacity ${duration}ms ease-in-out`,
+ * opacity: 0,
+ * }
+ *
+ * const transitionStyles = {
+ * entering: { opacity: 0 },
+ * entered: { opacity: 1 },
+ * };
+ *
+ * const Fade = ({ in: inProp }) => (
+ *
+ * {state => (
+ *
+ * I'm a fade Transition!
+ *
+ * )}
+ *
+ * );
+ * ```
+ *
+ * There are 4 main states a Transition can be in:
+ * - `'entering'`
+ * - `'entered'`
+ * - `'exiting'`
+ * - `'exited'`
+ *
+ * Transition state is toggled via the `in` prop. When `true` the component
+ * begins the "Enter" stage. During this stage, the component will shift from
+ * its current transition state, to `'entering'` for the duration of the
+ * transition and then to the `'entered'` stage once it's complete. Let's take
+ * the following example (we'll use the
+ * [useState](https://reactjs.org/docs/hooks-reference.html#usestate) hook):
+ *
+ * ```jsx
+ * function App() {
+ * const [inProp, setInProp] = useState(false);
+ * return (
+ *
+ *
+ * {state => (
+ * // ...
+ * )}
+ *
+ *
+ *
+ * );
+ * }
+ * ```
+ *
+ * When the button is clicked the component will shift to the `'entering'` state
+ * and stay there for 500ms (the value of `timeout`) before it finally switches
+ * to `'entered'`.
+ *
+ * When `in` is `false` the same thing happens except the state moves from
+ * `'exiting'` to `'exited'`.
+ */
+
+exports.EXITING = EXITING;
+
+var Transition =
+/*#__PURE__*/
+function (_React$Component) {
+ _inheritsLoose(Transition, _React$Component);
+
+ function Transition(props, context) {
+ var _this;
+
+ _this = _React$Component.call(this, props, context) || this;
+ var parentGroup = context.transitionGroup; // In the context of a TransitionGroup all enters are really appears
+
+ var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear;
+ var initialStatus;
+ _this.appearStatus = null;
+
+ if (props.in) {
+ if (appear) {
+ initialStatus = EXITED;
+ _this.appearStatus = ENTERING;
+ } else {
+ initialStatus = ENTERED;
+ }
+ } else {
+ if (props.unmountOnExit || props.mountOnEnter) {
+ initialStatus = UNMOUNTED;
+ } else {
+ initialStatus = EXITED;
+ }
+ }
+
+ _this.state = {
+ status: initialStatus
+ };
+ _this.nextCallback = null;
+ return _this;
+ }
+
+ var _proto = Transition.prototype;
+
+ _proto.getChildContext = function getChildContext() {
+ return {
+ transitionGroup: null // allows for nested Transitions
+
+ };
+ };
+
+ Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) {
+ var nextIn = _ref.in;
+
+ if (nextIn && prevState.status === UNMOUNTED) {
+ return {
+ status: EXITED
+ };
+ }
+
+ return null;
+ }; // getSnapshotBeforeUpdate(prevProps) {
+ // let nextStatus = null
+ // if (prevProps !== this.props) {
+ // const { status } = this.state
+ // if (this.props.in) {
+ // if (status !== ENTERING && status !== ENTERED) {
+ // nextStatus = ENTERING
+ // }
+ // } else {
+ // if (status === ENTERING || status === ENTERED) {
+ // nextStatus = EXITING
+ // }
+ // }
+ // }
+ // return { nextStatus }
+ // }
+
+
+ _proto.componentDidMount = function componentDidMount() {
+ this.updateStatus(true, this.appearStatus);
+ };
+
+ _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
+ var nextStatus = null;
+
+ if (prevProps !== this.props) {
+ var status = this.state.status;
+
+ if (this.props.in) {
+ if (status !== ENTERING && status !== ENTERED) {
+ nextStatus = ENTERING;
+ }
+ } else {
+ if (status === ENTERING || status === ENTERED) {
+ nextStatus = EXITING;
+ }
+ }
+ }
+
+ this.updateStatus(false, nextStatus);
+ };
+
+ _proto.componentWillUnmount = function componentWillUnmount() {
+ this.cancelNextCallback();
+ };
+
+ _proto.getTimeouts = function getTimeouts() {
+ var timeout = this.props.timeout;
+ var exit, enter, appear;
+ exit = enter = appear = timeout;
+
+ if (timeout != null && typeof timeout !== 'number') {
+ exit = timeout.exit;
+ enter = timeout.enter; // TODO: remove fallback for next major
+
+ appear = timeout.appear !== undefined ? timeout.appear : enter;
+ }
+
+ return {
+ exit: exit,
+ enter: enter,
+ appear: appear
+ };
+ };
+
+ _proto.updateStatus = function updateStatus(mounting, nextStatus) {
+ if (mounting === void 0) {
+ mounting = false;
+ }
+
+ if (nextStatus !== null) {
+ // nextStatus will always be ENTERING or EXITING.
+ this.cancelNextCallback();
+
+ var node = _reactDom.default.findDOMNode(this);
+
+ if (nextStatus === ENTERING) {
+ this.performEnter(node, mounting);
+ } else {
+ this.performExit(node);
+ }
+ } else if (this.props.unmountOnExit && this.state.status === EXITED) {
+ this.setState({
+ status: UNMOUNTED
+ });
+ }
+ };
+
+ _proto.performEnter = function performEnter(node, mounting) {
+ var _this2 = this;
+
+ var enter = this.props.enter;
+ var appearing = this.context.transitionGroup ? this.context.transitionGroup.isMounting : mounting;
+ var timeouts = this.getTimeouts();
+ var enterTimeout = appearing ? timeouts.appear : timeouts.enter; // no enter animation skip right to ENTERED
+ // if we are mounting and running this it means appear _must_ be set
+
+ if (!mounting && !enter) {
+ this.safeSetState({
+ status: ENTERED
+ }, function () {
+ _this2.props.onEntered(node);
+ });
+ return;
+ }
+
+ this.props.onEnter(node, appearing);
+ this.safeSetState({
+ status: ENTERING
+ }, function () {
+ _this2.props.onEntering(node, appearing);
+
+ _this2.onTransitionEnd(node, enterTimeout, function () {
+ _this2.safeSetState({
+ status: ENTERED
+ }, function () {
+ _this2.props.onEntered(node, appearing);
+ });
+ });
+ });
+ };
+
+ _proto.performExit = function performExit(node) {
+ var _this3 = this;
+
+ var exit = this.props.exit;
+ var timeouts = this.getTimeouts(); // no exit animation skip right to EXITED
+
+ if (!exit) {
+ this.safeSetState({
+ status: EXITED
+ }, function () {
+ _this3.props.onExited(node);
+ });
+ return;
+ }
+
+ this.props.onExit(node);
+ this.safeSetState({
+ status: EXITING
+ }, function () {
+ _this3.props.onExiting(node);
+
+ _this3.onTransitionEnd(node, timeouts.exit, function () {
+ _this3.safeSetState({
+ status: EXITED
+ }, function () {
+ _this3.props.onExited(node);
+ });
+ });
+ });
+ };
+
+ _proto.cancelNextCallback = function cancelNextCallback() {
+ if (this.nextCallback !== null) {
+ this.nextCallback.cancel();
+ this.nextCallback = null;
+ }
+ };
+
+ _proto.safeSetState = function safeSetState(nextState, callback) {
+ // This shouldn't be necessary, but there are weird race conditions with
+ // setState callbacks and unmounting in testing, so always make sure that
+ // we can cancel any pending setState callbacks after we unmount.
+ callback = this.setNextCallback(callback);
+ this.setState(nextState, callback);
+ };
+
+ _proto.setNextCallback = function setNextCallback(callback) {
+ var _this4 = this;
+
+ var active = true;
+
+ this.nextCallback = function (event) {
+ if (active) {
+ active = false;
+ _this4.nextCallback = null;
+ callback(event);
+ }
+ };
+
+ this.nextCallback.cancel = function () {
+ active = false;
+ };
+
+ return this.nextCallback;
+ };
+
+ _proto.onTransitionEnd = function onTransitionEnd(node, timeout, handler) {
+ this.setNextCallback(handler);
+ var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener;
+
+ if (!node || doesNotHaveTimeoutOrListener) {
+ setTimeout(this.nextCallback, 0);
+ return;
+ }
+
+ if (this.props.addEndListener) {
+ this.props.addEndListener(node, this.nextCallback);
+ }
+
+ if (timeout != null) {
+ setTimeout(this.nextCallback, timeout);
+ }
+ };
+
+ _proto.render = function render() {
+ var status = this.state.status;
+
+ if (status === UNMOUNTED) {
+ return null;
+ }
+
+ var _this$props = this.props,
+ children = _this$props.children,
+ childProps = _objectWithoutPropertiesLoose(_this$props, ["children"]); // filter props for Transtition
+
+
+ delete childProps.in;
+ delete childProps.mountOnEnter;
+ delete childProps.unmountOnExit;
+ delete childProps.appear;
+ delete childProps.enter;
+ delete childProps.exit;
+ delete childProps.timeout;
+ delete childProps.addEndListener;
+ delete childProps.onEnter;
+ delete childProps.onEntering;
+ delete childProps.onEntered;
+ delete childProps.onExit;
+ delete childProps.onExiting;
+ delete childProps.onExited;
+
+ if (typeof children === 'function') {
+ return children(status, childProps);
+ }
+
+ var child = _react.default.Children.only(children);
+
+ return _react.default.cloneElement(child, childProps);
+ };
+
+ return Transition;
+}(_react.default.Component);
+
+Transition.contextTypes = {
+ transitionGroup: PropTypes.object
+};
+Transition.childContextTypes = {
+ transitionGroup: function transitionGroup() {}
+};
+Transition.propTypes = false ? {
+ /**
+ * A `function` child can be used instead of a React element. This function is
+ * called with the current transition status (`'entering'`, `'entered'`,
+ * `'exiting'`, `'exited'`, `'unmounted'`), which can be used to apply context
+ * specific props to a component.
+ *
+ * ```jsx
+ *
+ * {state => (
+ *
+ * )}
+ *
+ * ```
+ */
+ children: PropTypes.oneOfType([PropTypes.func.isRequired, PropTypes.element.isRequired]).isRequired,
+
+ /**
+ * Show the component; triggers the enter or exit states
+ */
+ in: PropTypes.bool,
+
+ /**
+ * By default the child component is mounted immediately along with
+ * the parent `Transition` component. If you want to "lazy mount" the component on the
+ * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
+ * mounted, even on "exited", unless you also specify `unmountOnExit`.
+ */
+ mountOnEnter: PropTypes.bool,
+
+ /**
+ * By default the child component stays mounted after it reaches the `'exited'` state.
+ * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
+ */
+ unmountOnExit: PropTypes.bool,
+
+ /**
+ * Normally a component is not transitioned if it is shown when the `
` component mounts.
+ * If you want to transition on the first mount set `appear` to `true`, and the
+ * component will transition in as soon as the `` mounts.
+ *
+ * > Note: there are no specific "appear" states. `appear` only adds an additional `enter` transition.
+ */
+ appear: PropTypes.bool,
+
+ /**
+ * Enable or disable enter transitions.
+ */
+ enter: PropTypes.bool,
+
+ /**
+ * Enable or disable exit transitions.
+ */
+ exit: PropTypes.bool,
+
+ /**
+ * The duration of the transition, in milliseconds.
+ * Required unless `addEndListener` is provided.
+ *
+ * You may specify a single timeout for all transitions:
+ *
+ * ```jsx
+ * timeout={500}
+ * ```
+ *
+ * or individually:
+ *
+ * ```jsx
+ * timeout={{
+ * appear: 500,
+ * enter: 300,
+ * exit: 500,
+ * }}
+ * ```
+ *
+ * - `appear` defaults to the value of `enter`
+ * - `enter` defaults to `0`
+ * - `exit` defaults to `0`
+ *
+ * @type {number | { enter?: number, exit?: number, appear?: number }}
+ */
+ timeout: function timeout(props) {
+ var pt = _PropTypes.timeoutsShape;
+ if (!props.addEndListener) pt = pt.isRequired;
+
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
+ args[_key - 1] = arguments[_key];
+ }
+
+ return pt.apply(void 0, [props].concat(args));
+ },
+
+ /**
+ * Add a custom transition end trigger. Called with the transitioning
+ * DOM node and a `done` callback. Allows for more fine grained transition end
+ * logic. **Note:** Timeouts are still used as a fallback if provided.
+ *
+ * ```jsx
+ * addEndListener={(node, done) => {
+ * // use the css transitionend event to mark the finish of a transition
+ * node.addEventListener('transitionend', done, false);
+ * }}
+ * ```
+ */
+ addEndListener: PropTypes.func,
+
+ /**
+ * Callback fired before the "entering" status is applied. An extra parameter
+ * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
+ *
+ * @type Function(node: HtmlElement, isAppearing: bool) -> void
+ */
+ onEnter: PropTypes.func,
+
+ /**
+ * Callback fired after the "entering" status is applied. An extra parameter
+ * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
+ *
+ * @type Function(node: HtmlElement, isAppearing: bool)
+ */
+ onEntering: PropTypes.func,
+
+ /**
+ * Callback fired after the "entered" status is applied. An extra parameter
+ * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
+ *
+ * @type Function(node: HtmlElement, isAppearing: bool) -> void
+ */
+ onEntered: PropTypes.func,
+
+ /**
+ * Callback fired before the "exiting" status is applied.
+ *
+ * @type Function(node: HtmlElement) -> void
+ */
+ onExit: PropTypes.func,
+
+ /**
+ * Callback fired after the "exiting" status is applied.
+ *
+ * @type Function(node: HtmlElement) -> void
+ */
+ onExiting: PropTypes.func,
+
+ /**
+ * Callback fired after the "exited" status is applied.
+ *
+ * @type Function(node: HtmlElement) -> void
+ */
+ onExited: PropTypes.func // Name the function so it is clearer in the documentation
+
+} : {};
+
+function noop() {}
+
+Transition.defaultProps = {
+ in: false,
+ mountOnEnter: false,
+ unmountOnExit: false,
+ appear: false,
+ enter: true,
+ exit: true,
+ onEnter: noop,
+ onEntering: noop,
+ onEntered: noop,
+ onExit: noop,
+ onExiting: noop,
+ onExited: noop
+};
+Transition.UNMOUNTED = 0;
+Transition.EXITED = 1;
+Transition.ENTERING = 2;
+Transition.ENTERED = 3;
+Transition.EXITING = 4;
+
+var _default = (0, _reactLifecyclesCompat.polyfill)(Transition);
+
+exports.default = _default;
+
+/***/ }),
+/* 145 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+exports.__esModule = true;
+exports.default = void 0;
+
+var _propTypes = _interopRequireDefault(__webpack_require__(3));
+
+var _react = _interopRequireDefault(__webpack_require__(0));
+
+var _reactLifecyclesCompat = __webpack_require__(143);
+
+var _ChildMapping = __webpack_require__(320);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
+
+function _extends() { _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; }; return _extends.apply(this, arguments); }
+
+function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
+
+function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
+
+var values = Object.values || function (obj) {
+ return Object.keys(obj).map(function (k) {
+ return obj[k];
+ });
+};
+
+var defaultProps = {
+ component: 'div',
+ childFactory: function childFactory(child) {
+ return child;
+ }
+ /**
+ * The `` component manages a set of transition components
+ * (`` and ``) in a list. Like with the transition
+ * components, `` is a state machine for managing the mounting
+ * and unmounting of components over time.
+ *
+ * Consider the example below. As items are removed or added to the TodoList the
+ * `in` prop is toggled automatically by the ``.
+ *
+ * Note that `` does not define any animation behavior!
+ * Exactly _how_ a list item animates is up to the individual transition
+ * component. This means you can mix and match animations across different list
+ * items.
+ */
+
+};
+
+var TransitionGroup =
+/*#__PURE__*/
+function (_React$Component) {
+ _inheritsLoose(TransitionGroup, _React$Component);
+
+ function TransitionGroup(props, context) {
+ var _this;
+
+ _this = _React$Component.call(this, props, context) || this;
+
+ var handleExited = _this.handleExited.bind(_assertThisInitialized(_assertThisInitialized(_this))); // Initial children should all be entering, dependent on appear
+
+
+ _this.state = {
+ handleExited: handleExited,
+ firstRender: true
+ };
+ return _this;
+ }
+
+ var _proto = TransitionGroup.prototype;
+
+ _proto.getChildContext = function getChildContext() {
+ return {
+ transitionGroup: {
+ isMounting: !this.appeared
+ }
+ };
+ };
+
+ _proto.componentDidMount = function componentDidMount() {
+ this.appeared = true;
+ this.mounted = true;
+ };
+
+ _proto.componentWillUnmount = function componentWillUnmount() {
+ this.mounted = false;
+ };
+
+ TransitionGroup.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, _ref) {
+ var prevChildMapping = _ref.children,
+ handleExited = _ref.handleExited,
+ firstRender = _ref.firstRender;
+ return {
+ children: firstRender ? (0, _ChildMapping.getInitialChildMapping)(nextProps, handleExited) : (0, _ChildMapping.getNextChildMapping)(nextProps, prevChildMapping, handleExited),
+ firstRender: false
+ };
+ };
+
+ _proto.handleExited = function handleExited(child, node) {
+ var currentChildMapping = (0, _ChildMapping.getChildMapping)(this.props.children);
+ if (child.key in currentChildMapping) return;
+
+ if (child.props.onExited) {
+ child.props.onExited(node);
+ }
+
+ if (this.mounted) {
+ this.setState(function (state) {
+ var children = _extends({}, state.children);
+
+ delete children[child.key];
+ return {
+ children: children
+ };
+ });
+ }
+ };
+
+ _proto.render = function render() {
+ var _this$props = this.props,
+ Component = _this$props.component,
+ childFactory = _this$props.childFactory,
+ props = _objectWithoutPropertiesLoose(_this$props, ["component", "childFactory"]);
+
+ var children = values(this.state.children).map(childFactory);
+ delete props.appear;
+ delete props.enter;
+ delete props.exit;
+
+ if (Component === null) {
+ return children;
+ }
+
+ return _react.default.createElement(Component, props, children);
+ };
+
+ return TransitionGroup;
+}(_react.default.Component);
+
+TransitionGroup.childContextTypes = {
+ transitionGroup: _propTypes.default.object.isRequired
+};
+TransitionGroup.propTypes = false ? {
+ /**
+ * `` renders a `` by default. You can change this
+ * behavior by providing a `component` prop.
+ * If you use React v16+ and would like to avoid a wrapping `
` element
+ * you can pass in `component={null}`. This is useful if the wrapping div
+ * borks your css styles.
+ */
+ component: _propTypes.default.any,
+
+ /**
+ * A set of `
` components, that are toggled `in` and out as they
+ * leave. the `` will inject specific transition props, so
+ * remember to spread them through if you are wrapping the `` as
+ * with our `` example.
+ *
+ * While this component is meant for multiple `Transition` or `CSSTransition`
+ * children, sometimes you may want to have a single transition child with
+ * content that you want to be transitioned out and in when you change it
+ * (e.g. routes, images etc.) In that case you can change the `key` prop of
+ * the transition child as you change its content, this will cause
+ * `TransitionGroup` to transition the child out and back in.
+ */
+ children: _propTypes.default.node,
+
+ /**
+ * A convenience prop that enables or disables appear animations
+ * for all children. Note that specifying this will override any defaults set
+ * on individual children Transitions.
+ */
+ appear: _propTypes.default.bool,
+
+ /**
+ * A convenience prop that enables or disables enter animations
+ * for all children. Note that specifying this will override any defaults set
+ * on individual children Transitions.
+ */
+ enter: _propTypes.default.bool,
+
+ /**
+ * A convenience prop that enables or disables exit animations
+ * for all children. Note that specifying this will override any defaults set
+ * on individual children Transitions.
+ */
+ exit: _propTypes.default.bool,
+
+ /**
+ * You may need to apply reactive updates to a child as it is exiting.
+ * This is generally done by using `cloneElement` however in the case of an exiting
+ * child the element has already been removed and not accessible to the consumer.
+ *
+ * If you do need to update a child as it leaves you can provide a `childFactory`
+ * to wrap every child, even the ones that are leaving.
+ *
+ * @type Function(child: ReactElement) -> ReactElement
+ */
+ childFactory: _propTypes.default.func
+} : {};
+TransitionGroup.defaultProps = defaultProps;
+
+var _default = (0, _reactLifecyclesCompat.polyfill)(TransitionGroup);
+
+exports.default = _default;
+module.exports = exports["default"];
+
+/***/ }),
+/* 146 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+exports.__esModule = true;
+exports.classNamesShape = exports.timeoutsShape = void 0;
+
+var _propTypes = _interopRequireDefault(__webpack_require__(3));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+var timeoutsShape = false ? _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.shape({
+ enter: _propTypes.default.number,
+ exit: _propTypes.default.number,
+ appear: _propTypes.default.number
+}).isRequired]) : null;
+exports.timeoutsShape = timeoutsShape;
+var classNamesShape = false ? _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.shape({
+ enter: _propTypes.default.string,
+ exit: _propTypes.default.string,
+ active: _propTypes.default.string
+}), _propTypes.default.shape({
+ enter: _propTypes.default.string,
+ enterDone: _propTypes.default.string,
+ enterActive: _propTypes.default.string,
+ exit: _propTypes.default.string,
+ exitDone: _propTypes.default.string,
+ exitActive: _propTypes.default.string
+})]) : null;
+exports.classNamesShape = classNamesShape;
+
+/***/ }),
+/* 147 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+/**
+ * Copyright (c) 2013-present, Facebook, Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ *
+ */
+
+
+
+var _prodInvariant = __webpack_require__(46),
+ _assign = __webpack_require__(7);
+
+var ReactNoopUpdateQueue = __webpack_require__(150);
+
+var canDefineProperty = __webpack_require__(151);
+var emptyObject = __webpack_require__(57);
+var invariant = __webpack_require__(2);
+var lowPriorityWarning = __webpack_require__(330);
+
+/**
+ * Base class helpers for the updating state of a component.
+ */
+function ReactComponent(props, context, updater) {
+ this.props = props;
+ this.context = context;
+ this.refs = emptyObject;
+ // We initialize the default updater but the real one gets injected by the
+ // renderer.
+ this.updater = updater || ReactNoopUpdateQueue;
+}
+
+ReactComponent.prototype.isReactComponent = {};
+
+/**
+ * Sets a subset of the state. Always use this to mutate
+ * state. You should treat `this.state` as immutable.
+ *
+ * There is no guarantee that `this.state` will be immediately updated, so
+ * accessing `this.state` after calling this method may return the old value.
+ *
+ * There is no guarantee that calls to `setState` will run synchronously,
+ * as they may eventually be batched together. You can provide an optional
+ * callback that will be executed when the call to setState is actually
+ * completed.
+ *
+ * When a function is provided to setState, it will be called at some point in
+ * the future (not synchronously). It will be called with the up to date
+ * component arguments (state, props, context). These values can be different
+ * from this.* because your function may be called after receiveProps but before
+ * shouldComponentUpdate, and this new state, props, and context will not yet be
+ * assigned to this.
+ *
+ * @param {object|function} partialState Next partial state or function to
+ * produce next partial state to be merged with current state.
+ * @param {?function} callback Called after state is updated.
+ * @final
+ * @protected
+ */
+ReactComponent.prototype.setState = function (partialState, callback) {
+ !(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null) ? false ? invariant(false, 'setState(...): takes an object of state variables to update or a function which returns an object of state variables.') : _prodInvariant('85') : void 0;
+ this.updater.enqueueSetState(this, partialState);
+ if (callback) {
+ this.updater.enqueueCallback(this, callback, 'setState');
+ }
+};
+
+/**
+ * Forces an update. This should only be invoked when it is known with
+ * certainty that we are **not** in a DOM transaction.
+ *
+ * You may want to call this when you know that some deeper aspect of the
+ * component's state has changed but `setState` was not called.
+ *
+ * This will not invoke `shouldComponentUpdate`, but it will invoke
+ * `componentWillUpdate` and `componentDidUpdate`.
+ *
+ * @param {?function} callback Called after update is complete.
+ * @final
+ * @protected
+ */
+ReactComponent.prototype.forceUpdate = function (callback) {
+ this.updater.enqueueForceUpdate(this);
+ if (callback) {
+ this.updater.enqueueCallback(this, callback, 'forceUpdate');
+ }
+};
+
+/**
+ * Deprecated APIs. These APIs used to exist on classic React classes but since
+ * we would like to deprecate them, we're not going to move them over to this
+ * modern base class. Instead, we define a getter that warns if it's accessed.
+ */
+if (false) {
+ var deprecatedAPIs = {
+ isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
+ replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
+ };
+ var defineDeprecationWarning = function (methodName, info) {
+ if (canDefineProperty) {
+ Object.defineProperty(ReactComponent.prototype, methodName, {
+ get: function () {
+ lowPriorityWarning(false, '%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);
+ return undefined;
+ }
+ });
+ }
+ };
+ for (var fnName in deprecatedAPIs) {
+ if (deprecatedAPIs.hasOwnProperty(fnName)) {
+ defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
+ }
+ }
+}
+
+/**
+ * Base class helpers for the updating state of a component.
+ */
+function ReactPureComponent(props, context, updater) {
+ // Duplicated from ReactComponent.
+ this.props = props;
+ this.context = context;
+ this.refs = emptyObject;
+ // We initialize the default updater but the real one gets injected by the
+ // renderer.
+ this.updater = updater || ReactNoopUpdateQueue;
+}
+
+function ComponentDummy() {}
+ComponentDummy.prototype = ReactComponent.prototype;
+ReactPureComponent.prototype = new ComponentDummy();
+ReactPureComponent.prototype.constructor = ReactPureComponent;
+// Avoid an extra prototype jump for these methods.
+_assign(ReactPureComponent.prototype, ReactComponent.prototype);
+ReactPureComponent.prototype.isPureReactComponent = true;
+
+module.exports = {
+ Component: ReactComponent,
+ PureComponent: ReactPureComponent
+};
+
+/***/ }),
+/* 148 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+/**
+ * Copyright (c) 2016-present, Facebook, Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ *
+ *
+ */
+
+
+
+var _prodInvariant = __webpack_require__(46);
+
+var ReactCurrentOwner = __webpack_require__(26);
+
+var invariant = __webpack_require__(2);
+var warning = __webpack_require__(6);
+
+function isNative(fn) {
+ // Based on isNative() from Lodash
+ var funcToString = Function.prototype.toString;
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
+ var reIsNative = RegExp('^' + funcToString
+ // Take an example native function source for comparison
+ .call(hasOwnProperty
+ // Strip regex characters so we can use it for regex
+ ).replace(/[\\^$.*+?()[\]{}|]/g, '\\$&'
+ // Remove hasOwnProperty from the template to make it generic
+ ).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$');
+ try {
+ var source = funcToString.call(fn);
+ return reIsNative.test(source);
+ } catch (err) {
+ return false;
+ }
+}
+
+var canUseCollections =
+// Array.from
+typeof Array.from === 'function' &&
+// Map
+typeof Map === 'function' && isNative(Map) &&
+// Map.prototype.keys
+Map.prototype != null && typeof Map.prototype.keys === 'function' && isNative(Map.prototype.keys) &&
+// Set
+typeof Set === 'function' && isNative(Set) &&
+// Set.prototype.keys
+Set.prototype != null && typeof Set.prototype.keys === 'function' && isNative(Set.prototype.keys);
+
+var setItem;
+var getItem;
+var removeItem;
+var getItemIDs;
+var addRoot;
+var removeRoot;
+var getRootIDs;
+
+if (canUseCollections) {
+ var itemMap = new Map();
+ var rootIDSet = new Set();
+
+ setItem = function (id, item) {
+ itemMap.set(id, item);
+ };
+ getItem = function (id) {
+ return itemMap.get(id);
+ };
+ removeItem = function (id) {
+ itemMap['delete'](id);
+ };
+ getItemIDs = function () {
+ return Array.from(itemMap.keys());
+ };
+
+ addRoot = function (id) {
+ rootIDSet.add(id);
+ };
+ removeRoot = function (id) {
+ rootIDSet['delete'](id);
+ };
+ getRootIDs = function () {
+ return Array.from(rootIDSet.keys());
+ };
+} else {
+ var itemByKey = {};
+ var rootByKey = {};
+
+ // Use non-numeric keys to prevent V8 performance issues:
+ // https://github.com/facebook/react/pull/7232
+ var getKeyFromID = function (id) {
+ return '.' + id;
+ };
+ var getIDFromKey = function (key) {
+ return parseInt(key.substr(1), 10);
+ };
+
+ setItem = function (id, item) {
+ var key = getKeyFromID(id);
+ itemByKey[key] = item;
+ };
+ getItem = function (id) {
+ var key = getKeyFromID(id);
+ return itemByKey[key];
+ };
+ removeItem = function (id) {
+ var key = getKeyFromID(id);
+ delete itemByKey[key];
+ };
+ getItemIDs = function () {
+ return Object.keys(itemByKey).map(getIDFromKey);
+ };
+
+ addRoot = function (id) {
+ var key = getKeyFromID(id);
+ rootByKey[key] = true;
+ };
+ removeRoot = function (id) {
+ var key = getKeyFromID(id);
+ delete rootByKey[key];
+ };
+ getRootIDs = function () {
+ return Object.keys(rootByKey).map(getIDFromKey);
+ };
+}
+
+var unmountedIDs = [];
+
+function purgeDeep(id) {
+ var item = getItem(id);
+ if (item) {
+ var childIDs = item.childIDs;
+
+ removeItem(id);
+ childIDs.forEach(purgeDeep);
+ }
+}
+
+function describeComponentFrame(name, source, ownerName) {
+ return '\n in ' + (name || 'Unknown') + (source ? ' (at ' + source.fileName.replace(/^.*[\\\/]/, '') + ':' + source.lineNumber + ')' : ownerName ? ' (created by ' + ownerName + ')' : '');
+}
+
+function getDisplayName(element) {
+ if (element == null) {
+ return '#empty';
+ } else if (typeof element === 'string' || typeof element === 'number') {
+ return '#text';
+ } else if (typeof element.type === 'string') {
+ return element.type;
+ } else {
+ return element.type.displayName || element.type.name || 'Unknown';
+ }
+}
+
+function describeID(id) {
+ var name = ReactComponentTreeHook.getDisplayName(id);
+ var element = ReactComponentTreeHook.getElement(id);
+ var ownerID = ReactComponentTreeHook.getOwnerID(id);
+ var ownerName;
+ if (ownerID) {
+ ownerName = ReactComponentTreeHook.getDisplayName(ownerID);
+ }
+ false ? warning(element, 'ReactComponentTreeHook: Missing React element for debugID %s when ' + 'building stack', id) : void 0;
+ return describeComponentFrame(name, element && element._source, ownerName);
+}
+
+var ReactComponentTreeHook = {
+ onSetChildren: function (id, nextChildIDs) {
+ var item = getItem(id);
+ !item ? false ? invariant(false, 'Item must have been set') : _prodInvariant('144') : void 0;
+ item.childIDs = nextChildIDs;
+
+ for (var i = 0; i < nextChildIDs.length; i++) {
+ var nextChildID = nextChildIDs[i];
+ var nextChild = getItem(nextChildID);
+ !nextChild ? false ? invariant(false, 'Expected hook events to fire for the child before its parent includes it in onSetChildren().') : _prodInvariant('140') : void 0;
+ !(nextChild.childIDs != null || typeof nextChild.element !== 'object' || nextChild.element == null) ? false ? invariant(false, 'Expected onSetChildren() to fire for a container child before its parent includes it in onSetChildren().') : _prodInvariant('141') : void 0;
+ !nextChild.isMounted ? false ? invariant(false, 'Expected onMountComponent() to fire for the child before its parent includes it in onSetChildren().') : _prodInvariant('71') : void 0;
+ if (nextChild.parentID == null) {
+ nextChild.parentID = id;
+ // TODO: This shouldn't be necessary but mounting a new root during in
+ // componentWillMount currently causes not-yet-mounted components to
+ // be purged from our tree data so their parent id is missing.
+ }
+ !(nextChild.parentID === id) ? false ? invariant(false, 'Expected onBeforeMountComponent() parent and onSetChildren() to be consistent (%s has parents %s and %s).', nextChildID, nextChild.parentID, id) : _prodInvariant('142', nextChildID, nextChild.parentID, id) : void 0;
+ }
+ },
+ onBeforeMountComponent: function (id, element, parentID) {
+ var item = {
+ element: element,
+ parentID: parentID,
+ text: null,
+ childIDs: [],
+ isMounted: false,
+ updateCount: 0
+ };
+ setItem(id, item);
+ },
+ onBeforeUpdateComponent: function (id, element) {
+ var item = getItem(id);
+ if (!item || !item.isMounted) {
+ // We may end up here as a result of setState() in componentWillUnmount().
+ // In this case, ignore the element.
+ return;
+ }
+ item.element = element;
+ },
+ onMountComponent: function (id) {
+ var item = getItem(id);
+ !item ? false ? invariant(false, 'Item must have been set') : _prodInvariant('144') : void 0;
+ item.isMounted = true;
+ var isRoot = item.parentID === 0;
+ if (isRoot) {
+ addRoot(id);
+ }
+ },
+ onUpdateComponent: function (id) {
+ var item = getItem(id);
+ if (!item || !item.isMounted) {
+ // We may end up here as a result of setState() in componentWillUnmount().
+ // In this case, ignore the element.
+ return;
+ }
+ item.updateCount++;
+ },
+ onUnmountComponent: function (id) {
+ var item = getItem(id);
+ if (item) {
+ // We need to check if it exists.
+ // `item` might not exist if it is inside an error boundary, and a sibling
+ // error boundary child threw while mounting. Then this instance never
+ // got a chance to mount, but it still gets an unmounting event during
+ // the error boundary cleanup.
+ item.isMounted = false;
+ var isRoot = item.parentID === 0;
+ if (isRoot) {
+ removeRoot(id);
+ }
+ }
+ unmountedIDs.push(id);
+ },
+ purgeUnmountedComponents: function () {
+ if (ReactComponentTreeHook._preventPurging) {
+ // Should only be used for testing.
+ return;
+ }
+
+ for (var i = 0; i < unmountedIDs.length; i++) {
+ var id = unmountedIDs[i];
+ purgeDeep(id);
+ }
+ unmountedIDs.length = 0;
+ },
+ isMounted: function (id) {
+ var item = getItem(id);
+ return item ? item.isMounted : false;
+ },
+ getCurrentStackAddendum: function (topElement) {
+ var info = '';
+ if (topElement) {
+ var name = getDisplayName(topElement);
+ var owner = topElement._owner;
+ info += describeComponentFrame(name, topElement._source, owner && owner.getName());
+ }
+
+ var currentOwner = ReactCurrentOwner.current;
+ var id = currentOwner && currentOwner._debugID;
+
+ info += ReactComponentTreeHook.getStackAddendumByID(id);
+ return info;
+ },
+ getStackAddendumByID: function (id) {
+ var info = '';
+ while (id) {
+ info += describeID(id);
+ id = ReactComponentTreeHook.getParentID(id);
+ }
+ return info;
+ },
+ getChildIDs: function (id) {
+ var item = getItem(id);
+ return item ? item.childIDs : [];
+ },
+ getDisplayName: function (id) {
+ var element = ReactComponentTreeHook.getElement(id);
+ if (!element) {
+ return null;
+ }
+ return getDisplayName(element);
+ },
+ getElement: function (id) {
+ var item = getItem(id);
+ return item ? item.element : null;
+ },
+ getOwnerID: function (id) {
+ var element = ReactComponentTreeHook.getElement(id);
+ if (!element || !element._owner) {
+ return null;
+ }
+ return element._owner._debugID;
+ },
+ getParentID: function (id) {
+ var item = getItem(id);
+ return item ? item.parentID : null;
+ },
+ getSource: function (id) {
+ var item = getItem(id);
+ var element = item ? item.element : null;
+ var source = element != null ? element._source : null;
+ return source;
+ },
+ getText: function (id) {
+ var element = ReactComponentTreeHook.getElement(id);
+ if (typeof element === 'string') {
+ return element;
+ } else if (typeof element === 'number') {
+ return '' + element;
+ } else {
+ return null;
+ }
+ },
+ getUpdateCount: function (id) {
+ var item = getItem(id);
+ return item ? item.updateCount : 0;
+ },
+
+
+ getRootIDs: getRootIDs,
+ getRegisteredIDs: getItemIDs,
+
+ pushNonStandardWarningStack: function (isCreatingElement, currentSource) {
+ if (typeof console.reactStack !== 'function') {
+ return;
+ }
+
+ var stack = [];
+ var currentOwner = ReactCurrentOwner.current;
+ var id = currentOwner && currentOwner._debugID;
+
+ try {
+ if (isCreatingElement) {
+ stack.push({
+ name: id ? ReactComponentTreeHook.getDisplayName(id) : null,
+ fileName: currentSource ? currentSource.fileName : null,
+ lineNumber: currentSource ? currentSource.lineNumber : null
+ });
+ }
+
+ while (id) {
+ var element = ReactComponentTreeHook.getElement(id);
+ var parentID = ReactComponentTreeHook.getParentID(id);
+ var ownerID = ReactComponentTreeHook.getOwnerID(id);
+ var ownerName = ownerID ? ReactComponentTreeHook.getDisplayName(ownerID) : null;
+ var source = element && element._source;
+ stack.push({
+ name: ownerName,
+ fileName: source ? source.fileName : null,
+ lineNumber: source ? source.lineNumber : null
+ });
+ id = parentID;
+ }
+ } catch (err) {
+ // Internal state is messed up.
+ // Stop building the stack (it's just a nice to have).
+ }
+
+ console.reactStack(stack);
+ },
+ popNonStandardWarningStack: function () {
+ if (typeof console.reactStackEnd !== 'function') {
+ return;
+ }
+ console.reactStackEnd();
+ }
+};
+
+module.exports = ReactComponentTreeHook;
+
+/***/ }),
+/* 149 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+/**
+ * Copyright (c) 2014-present, Facebook, Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ *
+ *
+ */
+
+
+
+// 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;
+
+/***/ }),
+/* 150 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+/**
+ * Copyright (c) 2015-present, Facebook, Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ *
+ */
+
+
+
+var warning = __webpack_require__(6);
+
+function warnNoop(publicInstance, callerName) {
+ if (false) {
+ var constructor = publicInstance.constructor;
+ process.env.NODE_ENV !== 'production' ? warning(false, '%s(...): Can only update a mounted or mounting component. ' + 'This usually means you called %s() on an unmounted component. ' + 'This is a no-op. Please check the code for the %s component.', callerName, callerName, constructor && (constructor.displayName || constructor.name) || 'ReactClass') : void 0;
+ }
+}
+
+/**
+ * This is the abstract API for an update queue.
+ */
+var ReactNoopUpdateQueue = {
+ /**
+ * Checks whether or not this composite component is mounted.
+ * @param {ReactClass} publicInstance The instance we want to test.
+ * @return {boolean} True if mounted, false otherwise.
+ * @protected
+ * @final
+ */
+ isMounted: function (publicInstance) {
+ return false;
+ },
+
+ /**
+ * Enqueue a callback that will be executed after all the pending updates
+ * have processed.
+ *
+ * @param {ReactClass} publicInstance The instance to use as `this` context.
+ * @param {?function} callback Called after state is updated.
+ * @internal
+ */
+ enqueueCallback: function (publicInstance, callback) {},
+
+ /**
+ * Forces an update. This should only be invoked when it is known with
+ * certainty that we are **not** in a DOM transaction.
+ *
+ * You may want to call this when you know that some deeper aspect of the
+ * component's state has changed but `setState` was not called.
+ *
+ * This will not invoke `shouldComponentUpdate`, but it will invoke
+ * `componentWillUpdate` and `componentDidUpdate`.
+ *
+ * @param {ReactClass} publicInstance The instance that should rerender.
+ * @internal
+ */
+ enqueueForceUpdate: function (publicInstance) {
+ warnNoop(publicInstance, 'forceUpdate');
+ },
+
+ /**
+ * Replaces all of the state. Always use this or `setState` to mutate state.
+ * You should treat `this.state` as immutable.
+ *
+ * There is no guarantee that `this.state` will be immediately updated, so
+ * accessing `this.state` after calling this method may return the old value.
+ *
+ * @param {ReactClass} publicInstance The instance that should rerender.
+ * @param {object} completeState Next state.
+ * @internal
+ */
+ enqueueReplaceState: function (publicInstance, completeState) {
+ warnNoop(publicInstance, 'replaceState');
+ },
+
+ /**
+ * Sets a subset of the state. This only exists because _pendingState is
+ * internal. This provides a merging strategy that is not available to deep
+ * properties which is confusing. TODO: Expose pendingState or don't use it
+ * during the merge.
+ *
+ * @param {ReactClass} publicInstance The instance that should rerender.
+ * @param {object} partialState Next partial state to be merged with state.
+ * @internal
+ */
+ enqueueSetState: function (publicInstance, partialState) {
+ warnNoop(publicInstance, 'setState');
+ }
+};
+
+module.exports = ReactNoopUpdateQueue;
+
+/***/ }),
+/* 151 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+/**
+ * Copyright (c) 2013-present, Facebook, Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ *
+ *
+ */
+
+
+
+var canDefineProperty = false;
+if (false) {
+ try {
+ // $FlowFixMe https://github.com/facebook/flow/issues/285
+ Object.defineProperty({}, 'x', { get: function () {} });
+ canDefineProperty = true;
+ } catch (x) {
+ // IE will fail on defineProperty
+ }
+}
+
+module.exports = canDefineProperty;
+
+/***/ }),
+/* 152 */
+/***/ (function(module, exports, __webpack_require__) {
+
+var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (name, context, definition) {
+ if (typeof module !== 'undefined' && module.exports) module.exports = definition();
+ else if (true) !(__WEBPACK_AMD_DEFINE_FACTORY__ = (definition),
+ __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
+ (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
+ __WEBPACK_AMD_DEFINE_FACTORY__),
+ __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
+ else context[name] = definition();
+})('urljoin', this, function () {
+
+ function normalize (str, options) {
+
+ // make sure protocol is followed by two slashes
+ str = str.replace(/:\//g, '://');
+
+ // remove consecutive slashes
+ str = str.replace(/([^:\s])\/+/g, '$1/');
+
+ // remove trailing slash before parameters or hash
+ str = str.replace(/\/(\?|&|#[^!])/g, '$1');
+
+ // replace ? in parameters with &
+ str = str.replace(/(\?.+)\?/g, '$1&');
+
+ return str;
+ }
+
+ return function () {
+ var input = arguments;
+ var options = {};
+
+ if (typeof arguments[0] === 'object') {
+ // new syntax with array and options
+ input = arguments[0];
+ options = arguments[1] || {};
+ }
+
+ var joined = [].slice.call(input, 0).join('/');
+ return normalize(joined, options);
+ };
+
+});
+
+
+/***/ }),
+/* 153 */
+/***/ (function(module, exports) {
+
+function _interopRequireDefault(obj) {
+ return obj && obj.__esModule ? obj : {
+ "default": obj
+ };
+}
+
+module.exports = _interopRequireDefault;
+
+/***/ }),
+/* 154 */
+/***/ (function(module, exports, __webpack_require__) {
+
+/* WEBPACK VAR INJECTION */(function(global) {/**
+ * auth0-js v9.13.2
+ * Author: Auth0
+ * Date: 2020-04-09
+ * License: MIT
+ */
+
+!function(global,factory){ true?module.exports=factory():"function"==typeof define&&define.amd?define(factory):(global=global||self).CordovaAuth0Plugin=factory()}(this,function(){"use strict";var version={raw:"9.13.2"},toString=Object.prototype.toString;function attribute(o,attr,type,text){if(type="array"===type?"object":type,o&&typeof o[attr]!==type)throw new Error(text)}function variable(o,type,text){if(typeof o!==type)throw new Error(text)}function value(o,values,text){if(-1===values.indexOf(o))throw new Error(text)}var assert={check:function(o,config,attributes){if(config.optional&&!o||variable(o,config.type,config.message),"object"===config.type&&attributes)for(var keys=Object.keys(attributes),index=0;index=65&&code<=90||!wasPrevNumber&&code>=48&&code<=57?(newKey+="_",newKey+=str[index].toLowerCase()):newKey+=str[index].toLowerCase(),wasPrevNumber=code>=48&&code<=57,wasPrevUppercase=code>=65&&code<=90,index++;return newKey}(key):key]=toSnakeCase(object[key]),p},{}))},toCamelCase:function toCamelCase(object,exceptions,options){return"object"!=typeof object||assert.isArray(object)||null===object?object:(exceptions=exceptions||[],options=options||{},Object.keys(object).reduce(function(p,key){var parts,newKey=-1===exceptions.indexOf(key)?(parts=key.split("_")).reduce(function(p,c){return p+c.charAt(0).toUpperCase()+c.slice(1)},parts.shift()):key;return p[newKey]=toCamelCase(object[newKey]||object[key],[],options),options.keepOriginal&&(p[key]=toCamelCase(object[key],[],options)),p},{}))},blacklist:function(object,blacklistedKeys){return Object.keys(object).reduce(function(p,key){return-1===blacklistedKeys.indexOf(key)&&(p[key]=object[key]),p},{})},merge:function(object,keys){return{base:keys?pick(object,keys):object,with:function(object2,keys2){return object2=keys2?pick(object2,keys2):object2,extend(this.base,object2)}}},pick:pick,getKeysNotIn:function(obj,allowedKeys){var notAllowed=[];for(var key in obj)-1===allowedKeys.indexOf(key)&¬Allowed.push(key);return notAllowed},extend:extend,getOriginFromUrl:function(url){if(url){var parsed=getLocationFromUrl(url),origin=parsed.protocol+"//"+parsed.hostname;return parsed.port&&(origin+=":"+parsed.port),origin}},getLocationFromUrl:getLocationFromUrl,trimUserDetails:function(options){return function(options,keys){return keys.reduce(trim,options)}(options,["username","email","phoneNumber"])},updatePropertyOn:function updatePropertyOn(obj,path,value){"string"==typeof path&&(path=path.split("."));var next=path[0];obj.hasOwnProperty(next)&&(1===path.length?obj[next]=value:updatePropertyOn(obj[next],path.slice(1),value))}};function getWindow(){return window}var windowHandler={redirect:function(url){getWindow().location=url},getDocument:function(){return getWindow().document},getWindow:getWindow,getOrigin:function(){var location=getWindow().location,origin=location.origin;return origin||(origin=objectHelper.getOriginFromUrl(location.href)),origin}},commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var urlJoin=function(fn,module){return fn(module={exports:{}},module.exports),module.exports}(function(module){var context,definition;context=commonjsGlobal,definition=function(){function normalize(strArray){var resultArray=[];if(0===strArray.length)return"";if("string"!=typeof strArray[0])throw new TypeError("Url must be a string. Received "+strArray[0]);if(strArray[0].match(/^[^\/:]+:\/*$/)&&strArray.length>1){var first=strArray.shift();strArray[0]=first+strArray[0]}strArray[0].match(/^file:\/\/\//)?strArray[0]=strArray[0].replace(/^([^\/:]+):\/*/,"$1:///"):strArray[0]=strArray[0].replace(/^([^\/:]+):\/*/,"$1://");for(var i=0;i0&&(component=component.replace(/^[\/]+/,"")),component=i0?"?":"")+parts.join("&")}return function(){return normalize("object"==typeof arguments[0]?arguments[0]:[].slice.call(arguments))}},module.exports?module.exports=definition():context.urljoin=definition()}),has=Object.prototype.hasOwnProperty,isArray$1=Array.isArray,hexTable=function(){for(var array=[],i=0;i<256;++i)array.push("%"+((i<16?"0":"")+i.toString(16)).toUpperCase());return array}(),arrayToObject=function(source,options){for(var obj=options&&options.plainObjects?Object.create(null):{},i=0;i1;){var item=queue.pop(),obj=item.obj[item.prop];if(isArray$1(obj)){for(var compacted=[],j=0;j=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122?out+=string.charAt(i):c<128?out+=hexTable[c]:c<2048?out+=hexTable[192|c>>6]+hexTable[128|63&c]:c<55296||c>=57344?out+=hexTable[224|c>>12]+hexTable[128|c>>6&63]+hexTable[128|63&c]:(i+=1,c=65536+((1023&c)<<10|1023&string.charCodeAt(i)),out+=hexTable[240|c>>18]+hexTable[128|c>>12&63]+hexTable[128|c>>6&63]+hexTable[128|63&c])}return out},isBuffer:function(obj){return!(!obj||"object"!=typeof obj||!(obj.constructor&&obj.constructor.isBuffer&&obj.constructor.isBuffer(obj)))},isRegExp:function(obj){return"[object RegExp]"===Object.prototype.toString.call(obj)},merge:function merge(target,source,options){if(!source)return target;if("object"!=typeof source){if(isArray$1(target))target.push(source);else{if(!target||"object"!=typeof target)return[target,source];(options&&(options.plainObjects||options.allowPrototypes)||!has.call(Object.prototype,source))&&(target[source]=!0)}return target}if(!target||"object"!=typeof target)return[target].concat(source);var mergeTarget=target;return isArray$1(target)&&!isArray$1(source)&&(mergeTarget=arrayToObject(target,options)),isArray$1(target)&&isArray$1(source)?(source.forEach(function(item,i){if(has.call(target,i)){var targetItem=target[i];targetItem&&"object"==typeof targetItem&&item&&"object"==typeof item?target[i]=merge(targetItem,item,options):target.push(item)}else target[i]=item}),target):Object.keys(source).reduce(function(acc,key){var value=source[key];return has.call(acc,key)?acc[key]=merge(acc[key],value,options):acc[key]=value,acc},mergeTarget)}},replace=String.prototype.replace,percentTwenties=/%20/g,Format={RFC1738:"RFC1738",RFC3986:"RFC3986"},formats=utils.assign({default:Format.RFC3986,formatters:{RFC1738:function(value){return replace.call(value,percentTwenties,"+")},RFC3986:function(value){return String(value)}}},Format),has$1=Object.prototype.hasOwnProperty,arrayPrefixGenerators={brackets:function(prefix){return prefix+"[]"},comma:"comma",indices:function(prefix,key){return prefix+"["+key+"]"},repeat:function(prefix){return prefix}},isArray$2=Array.isArray,push=Array.prototype.push,pushToArray=function(arr,valueOrArray){push.apply(arr,isArray$2(valueOrArray)?valueOrArray:[valueOrArray])},toISO=Date.prototype.toISOString,defaultFormat=formats.default,defaults={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:utils.encode,encodeValuesOnly:!1,format:defaultFormat,formatter:formats.formatters[defaultFormat],indices:!1,serializeDate:function(date){return toISO.call(date)},skipNulls:!1,strictNullHandling:!1},stringify=function stringify(object,prefix,generateArrayPrefix,strictNullHandling,skipNulls,encoder,filter,sort,allowDots,serializeDate,formatter,encodeValuesOnly,charset){var v,obj=object;if("function"==typeof filter?obj=filter(prefix,obj):obj instanceof Date?obj=serializeDate(obj):"comma"===generateArrayPrefix&&isArray$2(obj)&&(obj=obj.join(",")),null===obj){if(strictNullHandling)return encoder&&!encodeValuesOnly?encoder(prefix,defaults.encoder,charset):prefix;obj=""}if("string"==typeof(v=obj)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||utils.isBuffer(obj))return encoder?[formatter(encodeValuesOnly?prefix:encoder(prefix,defaults.encoder,charset))+"="+formatter(encoder(obj,defaults.encoder,charset))]:[formatter(prefix)+"="+formatter(String(obj))];var objKeys,values=[];if(void 0===obj)return values;if(isArray$2(filter))objKeys=filter;else{var keys=Object.keys(obj);objKeys=sort?keys.sort(sort):keys}for(var i=0;i0?prefix+joined:""});function PopupHandler(webAuth){this.webAuth=webAuth,this._current_popup=null,this.options=null}function PluginHandler(webAuth){this.webAuth=webAuth}function CordovaPlugin(){this.webAuth=null,this.version=version.raw,this.extensibilityPoints=["popup.authorize","popup.getPopupHandler"]}return PopupHandler.prototype.preload=function(options){var _this=this,_window=windowHandler.getWindow(),url=options.url||"about:blank",popupOptions=options.popupOptions||{};popupOptions.location="yes",delete popupOptions.width,delete popupOptions.height;var windowFeatures=lib_stringify(popupOptions,{encode:!1,delimiter:","});return this._current_popup&&!this._current_popup.closed?this._current_popup:(this._current_popup=_window.open(url,"_blank",windowFeatures),this._current_popup.kill=function(success){_this._current_popup.success=success,this.close(),_this._current_popup=null},this._current_popup)},PopupHandler.prototype.load=function(url,_,options,cb){var _this=this;this.url=url,this.options=options,this._current_popup?this._current_popup.location.href=url:(options.url=url,this.preload(options)),this.transientErrorHandler=function(event){_this.errorHandler(event,cb)},this.transientStartHandler=function(event){_this.startHandler(event,cb)},this.transientExitHandler=function(){_this.exitHandler(cb)},this._current_popup.addEventListener("loaderror",this.transientErrorHandler),this._current_popup.addEventListener("loadstart",this.transientStartHandler),this._current_popup.addEventListener("exit",this.transientExitHandler)},PopupHandler.prototype.errorHandler=function(event,cb){this._current_popup&&(this._current_popup.kill(!0),cb({error:"window_error",errorDescription:event.message}))},PopupHandler.prototype.unhook=function(){this._current_popup.removeEventListener("loaderror",this.transientErrorHandler),this._current_popup.removeEventListener("loadstart",this.transientStartHandler),this._current_popup.removeEventListener("exit",this.transientExitHandler)},PopupHandler.prototype.exitHandler=function(cb){this._current_popup&&(this.unhook(),this._current_popup.success||cb({error:"window_closed",errorDescription:"Browser window closed"}))},PopupHandler.prototype.startHandler=function(event,cb){var _this=this;if(this._current_popup){var callbackUrl=urlJoin("https:",this.webAuth.baseOptions.domain,"/mobile");if(!event.url||0===event.url.indexOf(callbackUrl+"#")){var parts=event.url.split("#");if(1!==parts.length){var opts={hash:parts.pop()};this.options.nonce&&(opts.nonce=this.options.nonce),this.webAuth.parseHash(opts,function(error,result){(error||result)&&(_this._current_popup.kill(!0),cb(error,result))})}}}},PluginHandler.prototype.processParams=function(params){return params.redirectUri=urlJoin("https://"+params.domain,"mobile"),delete params.owp,params},PluginHandler.prototype.getPopupHandler=function(){return new PopupHandler(this.webAuth)},CordovaPlugin.prototype.setWebAuth=function(webAuth){this.webAuth=webAuth},CordovaPlugin.prototype.supports=function(extensibilityPoint){var _window=windowHandler.getWindow();return(!!_window.cordova||!!_window.electron)&&this.extensibilityPoints.indexOf(extensibilityPoint)>-1},CordovaPlugin.prototype.init=function(){return new PluginHandler(this.webAuth)},CordovaPlugin});
+//# sourceMappingURL=cordova-auth0-plugin.min.js.map
+
+/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(15)))
+
+/***/ }),
+/* 155 */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
+/* harmony export (immutable) */ __webpack_exports__["displayName"] = displayName;
+/* harmony export (immutable) */ __webpack_exports__["url"] = url;
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_blueimp_md5__ = __webpack_require__(217);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_blueimp_md5___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_blueimp_md5__);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_trim__ = __webpack_require__(32);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_trim___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_trim__);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__utils_jsonp_utils__ = __webpack_require__(215);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__field_email__ = __webpack_require__(23);
+
+
+
+
+
+var md5 = __WEBPACK_IMPORTED_MODULE_0_blueimp_md5___default.a.md5 || __WEBPACK_IMPORTED_MODULE_0_blueimp_md5___default.a;
+
+function normalize(str) {
+ return typeof str === 'string' ? __WEBPACK_IMPORTED_MODULE_1_trim___default()(str.toLowerCase()) : '';
+}
+
+function displayName(email, cb) {
+ email = normalize(email);
+ if (!__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__field_email__["e" /* validateEmail */])(email)) return cb({});
+
+ var url = 'https://secure.gravatar.com/' + md5(email) + '.json';
+ __WEBPACK_IMPORTED_MODULE_2__utils_jsonp_utils__["a" /* default */].get(url, function (error, result) {
+ if (!error && result && result.entry && result.entry[0]) {
+ cb(null, result.entry[0].displayName);
+ } else {
+ cb({});
+ }
+ });
+}
+
+function url(email, cb) {
+ email = normalize(email);
+ if (!__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__field_email__["e" /* validateEmail */])(email)) return cb({});
+
+ cb(null, 'https://secure.gravatar.com/avatar/' + md5(email) + '?d=404&s=160');
+}
+
+/***/ }),
+/* 156 */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
+/* WEBPACK VAR INJECTION */(function(global) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__index__ = __webpack_require__(97);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__passwordless__ = __webpack_require__(98);
+/*
+ *
+ * This is used to build the bundle with browserify.
+ *
+ * The bundle is used by people who doesn't use browserify.
+ * Those who use browserify will install with npm and require the module,
+ * the package.json file points to index.js.
+ */
+
+
+
+
+if (typeof global.window.define == 'function' && global.window.define.amd) {
+ global.window.define('auth0Lock', function () {
+ return __WEBPACK_IMPORTED_MODULE_0__index__["a" /* default */];
+ });
+ global.window.define('auth0LockPasswordless', function () {
+ return __WEBPACK_IMPORTED_MODULE_1__passwordless__["a" /* default */];
+ });
+} else if (global.window) {
+ global.window.Auth0Lock = __WEBPACK_IMPORTED_MODULE_0__index__["a" /* default */];
+ global.window.Auth0LockPasswordless = __WEBPACK_IMPORTED_MODULE_1__passwordless__["a" /* default */];
+}
+/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(15)))
+
+/***/ }),
+/* 157 */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types__ = __webpack_require__(3);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_prop_types__);
+/* 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__field_email_email_pane__ = __webpack_require__(51);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__field_username_username_pane__ = __webpack_require__(71);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__field_password_password_pane__ = __webpack_require__(69);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__actions__ = __webpack_require__(27);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__index__ = __webpack_require__(11);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__core_index__ = __webpack_require__(1);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__field_captcha_captcha_pane__ = __webpack_require__(182);
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+
+
+
+
+
+
+
+
+
+
+
+var LoginPane = function (_React$Component) {
+ _inherits(LoginPane, _React$Component);
+
+ function LoginPane() {
+ _classCallCheck(this, LoginPane);
+
+ return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
+ }
+
+ LoginPane.prototype.handleDontRememberPasswordClick = function handleDontRememberPasswordClick(e) {
+ e.preventDefault();
+ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__actions__["j" /* showResetPasswordActivity */])(__WEBPACK_IMPORTED_MODULE_7__core_index__["id"](this.props.lock));
+ };
+
+ LoginPane.prototype.render = function render() {
+ var _props = this.props,
+ emailInputPlaceholder = _props.emailInputPlaceholder,
+ forgotPasswordAction = _props.forgotPasswordAction,
+ i18n = _props.i18n,
+ instructions = _props.instructions,
+ lock = _props.lock,
+ passwordInputPlaceholder = _props.passwordInputPlaceholder,
+ showForgotPasswordLink = _props.showForgotPasswordLink,
+ showPassword = _props.showPassword,
+ usernameInputPlaceholder = _props.usernameInputPlaceholder,
+ usernameStyle = _props.usernameStyle;
+
+
+ var headerText = instructions || null;
+ var header = headerText && __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ 'p',
+ null,
+ headerText
+ );
+
+ // Should never validate format on login because of custom db connection and import mode
+ var fieldPane = usernameStyle === 'email' ? __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__field_email_email_pane__["a" /* default */], {
+ i18n: i18n,
+ lock: lock,
+ forceInvalidVisibility: !showPassword,
+ placeholder: emailInputPlaceholder
+ }) : __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3__field_username_username_pane__["a" /* default */], {
+ i18n: i18n,
+ lock: lock,
+ placeholder: usernameInputPlaceholder,
+ usernameStyle: usernameStyle,
+ validateFormat: false
+ });
+
+ var captchaPane = __WEBPACK_IMPORTED_MODULE_7__core_index__["captcha"](lock) && __WEBPACK_IMPORTED_MODULE_7__core_index__["captcha"](lock).get('required') ? __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__field_captcha_captcha_pane__["a" /* default */], { i18n: i18n, lock: lock, onReload: function onReload() {
+ return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__actions__["k" /* swapCaptcha */])(__WEBPACK_IMPORTED_MODULE_7__core_index__["id"](lock), false);
+ } }) : null;
+
+ var dontRememberPassword = showForgotPasswordLink && __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__index__["i" /* hasScreen */])(lock, 'forgotPassword') ? __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ 'p',
+ { className: 'auth0-lock-alternative' },
+ __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ 'a',
+ {
+ className: 'auth0-lock-alternative-link',
+ href: __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__index__["z" /* forgotPasswordLink */])(lock, 'javascript:void(0)'),
+ onClick: __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__index__["z" /* forgotPasswordLink */])(lock) ? undefined : this.handleDontRememberPasswordClick.bind(this)
+ },
+ forgotPasswordAction
+ )
+ ) : null;
+
+ return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ 'div',
+ null,
+ header,
+ fieldPane,
+ __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__field_password_password_pane__["a" /* default */], {
+ i18n: i18n,
+ lock: lock,
+ placeholder: passwordInputPlaceholder,
+ hidden: !showPassword
+ }),
+ captchaPane,
+ dontRememberPassword
+ );
+ };
+
+ return LoginPane;
+}(__WEBPACK_IMPORTED_MODULE_1_react___default.a.Component);
+
+/* harmony default export */ __webpack_exports__["a"] = (LoginPane);
+
+
+LoginPane.propTypes = {
+ emailInputPlaceholder: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string.isRequired,
+ forgotPasswordAction: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string.isRequired,
+ i18n: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.object.isRequired,
+ instructions: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.any,
+ lock: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.object.isRequired,
+ passwordInputPlaceholder: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string.isRequired,
+ showForgotPasswordLink: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.bool.isRequired,
+ showPassword: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.bool.isRequired,
+ usernameInputPlaceholder: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string.isRequired,
+ usernameStyle: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.oneOf(['any', 'email', 'username'])
+};
+
+/***/ }),
+/* 158 */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types__ = __webpack_require__(3);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_prop_types__);
+/* 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__field_mfa_code_mfa_code_pane__ = __webpack_require__(185);
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+
+
+
+
+
+var MFAPane = function (_React$Component) {
+ _inherits(MFAPane, _React$Component);
+
+ function MFAPane() {
+ _classCallCheck(this, MFAPane);
+
+ return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
+ }
+
+ MFAPane.prototype.render = function render() {
+ var _props = this.props,
+ mfaInputPlaceholder = _props.mfaInputPlaceholder,
+ i18n = _props.i18n,
+ instructions = _props.instructions,
+ lock = _props.lock,
+ title = _props.title;
+
+
+ var headerText = instructions || null;
+ var header = headerText && __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ 'p',
+ null,
+ headerText
+ );
+
+ var pane = __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__field_mfa_code_mfa_code_pane__["a" /* default */], { i18n: i18n, lock: lock, placeholder: mfaInputPlaceholder });
+
+ var titleElement = title && __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ 'h2',
+ null,
+ title
+ );
+
+ return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ 'div',
+ null,
+ titleElement,
+ header,
+ pane
+ );
+ };
+
+ return MFAPane;
+}(__WEBPACK_IMPORTED_MODULE_1_react___default.a.Component);
+
+/* harmony default export */ __webpack_exports__["a"] = (MFAPane);
+
+
+MFAPane.propTypes = {
+ mfaInputPlaceholder: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string.isRequired,
+ title: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string.isRequired,
+ i18n: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.object.isRequired,
+ instructions: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.any,
+ lock: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.object.isRequired
+};
+
+/***/ }),
+/* 159 */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony export (immutable) */ __webpack_exports__["a"] = renderPasswordResetConfirmation;
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types__ = __webpack_require__(3);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_prop_types__);
+/* 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__ui_box_success_pane__ = __webpack_require__(55);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__core_actions__ = __webpack_require__(17);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__core_index__ = __webpack_require__(1);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__i18n__ = __webpack_require__(12);
+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; }
+
+
+
+
+
+
+ // TODO: can't we get this from props?
+
+var PasswordResetConfirmation = function (_React$Component) {
+ _inherits(PasswordResetConfirmation, _React$Component);
+
+ function PasswordResetConfirmation() {
+ _classCallCheck(this, PasswordResetConfirmation);
+
+ return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
+ }
+
+ PasswordResetConfirmation.prototype.handleClose = function handleClose() {
+ var _props = this.props,
+ closeHandler = _props.closeHandler,
+ lock = _props.lock;
+
+ closeHandler(__WEBPACK_IMPORTED_MODULE_4__core_index__["id"](lock));
+ };
+
+ PasswordResetConfirmation.prototype.render = function render() {
+ var lock = this.props.lock;
+
+ var closeHandler = __WEBPACK_IMPORTED_MODULE_4__core_index__["ui"].closable(lock) ? this.handleClose.bind(this) : undefined;
+
+ return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ __WEBPACK_IMPORTED_MODULE_2__ui_box_success_pane__["a" /* default */],
+ { lock: lock, closeHandler: closeHandler },
+ __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ 'p',
+ null,
+ __WEBPACK_IMPORTED_MODULE_5__i18n__["html"](this.props.lock, ['success', 'forgotPassword'])
+ )
+ );
+ };
+
+ return PasswordResetConfirmation;
+}(__WEBPACK_IMPORTED_MODULE_1_react___default.a.Component);
+
+/* unused harmony default export */ var _unused_webpack_default_export = (PasswordResetConfirmation);
+
+
+PasswordResetConfirmation.propTypes = {
+ closeHandler: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.func.isRequired,
+ lock: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.object.isRequired
+};
+
+function renderPasswordResetConfirmation(m) {
+ var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
+
+ props.closeHandler = __WEBPACK_IMPORTED_MODULE_3__core_actions__["c" /* closeLock */];
+ props.key = 'auxiliarypane';
+ props.lock = m;
+
+ return m.get('passwordResetted') ? __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(PasswordResetConfirmation, props) : null;
+}
+
+/***/ }),
+/* 160 */
+/***/ (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__core_screen__ = __webpack_require__(14);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__reset_password_pane__ = __webpack_require__(161);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__index__ = __webpack_require__(11);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__actions__ = __webpack_require__(27);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__password_reset_confirmation__ = __webpack_require__(159);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__connection_database_index__ = __webpack_require__(11);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__connection_enterprise__ = __webpack_require__(16);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__i18n__ = __webpack_require__(12);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__core_index__ = __webpack_require__(1);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__store_index__ = __webpack_require__(8);
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+
+
+
+
+
+
+
+
+
+
+
+
+
+var Component = function Component(_ref) {
+ var i18n = _ref.i18n,
+ model = _ref.model;
+
+ var headerText = i18n.html('forgotPasswordInstructions') || null;
+ var header = headerText && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
+ 'p',
+ null,
+ headerText
+ );
+
+ return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__reset_password_pane__["a" /* default */], {
+ emailInputPlaceholder: i18n.str('emailInputPlaceholder'),
+ header: header,
+ i18n: i18n,
+ lock: model
+ });
+};
+
+var ResetPassword = function (_Screen) {
+ _inherits(ResetPassword, _Screen);
+
+ function ResetPassword() {
+ _classCallCheck(this, ResetPassword);
+
+ return _possibleConstructorReturn(this, _Screen.call(this, 'forgotPassword'));
+ }
+
+ ResetPassword.prototype.backHandler = function backHandler(m) {
+ return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__index__["i" /* hasScreen */])(m, 'login') ? __WEBPACK_IMPORTED_MODULE_4__actions__["h" /* cancelResetPassword */] : undefined;
+ };
+
+ ResetPassword.prototype.submitButtonLabel = function submitButtonLabel(m) {
+ return __WEBPACK_IMPORTED_MODULE_8__i18n__["str"](m, ['forgotPasswordSubmitLabel']);
+ };
+
+ ResetPassword.prototype.getScreenTitle = function getScreenTitle(m) {
+ return __WEBPACK_IMPORTED_MODULE_8__i18n__["str"](m, 'forgotPasswordTitle');
+ };
+
+ ResetPassword.prototype.isSubmitDisabled = function isSubmitDisabled(m) {
+ var tryingToResetPasswordWithEnterpriseEmail = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_7__connection_enterprise__["b" /* isEnterpriseDomain */])(m, __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__connection_database_index__["a" /* databaseUsernameValue */])(m, { emailFirst: true }));
+ if (tryingToResetPasswordWithEnterpriseEmail) {
+ setTimeout(function () {
+ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_10__store_index__["b" /* swap */])(__WEBPACK_IMPORTED_MODULE_10__store_index__["g" /* updateEntity */], 'lock', __WEBPACK_IMPORTED_MODULE_9__core_index__["id"](m), __WEBPACK_IMPORTED_MODULE_9__core_index__["setGlobalError"], __WEBPACK_IMPORTED_MODULE_8__i18n__["str"](m, ['error', 'forgotPassword', 'enterprise_email']));
+ }, 50);
+ } else {
+ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_10__store_index__["b" /* swap */])(__WEBPACK_IMPORTED_MODULE_10__store_index__["g" /* updateEntity */], 'lock', __WEBPACK_IMPORTED_MODULE_9__core_index__["id"](m), __WEBPACK_IMPORTED_MODULE_9__core_index__["clearGlobalError"]);
+ }
+ return tryingToResetPasswordWithEnterpriseEmail;
+ };
+
+ ResetPassword.prototype.submitHandler = function submitHandler() {
+ return __WEBPACK_IMPORTED_MODULE_4__actions__["i" /* resetPassword */];
+ };
+
+ ResetPassword.prototype.renderAuxiliaryPane = function renderAuxiliaryPane(m) {
+ return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__password_reset_confirmation__["a" /* renderPasswordResetConfirmation */])(m);
+ };
+
+ ResetPassword.prototype.render = function render() {
+ return Component;
+ };
+
+ return ResetPassword;
+}(__WEBPACK_IMPORTED_MODULE_1__core_screen__["a" /* default */]);
+
+/* harmony default export */ __webpack_exports__["a"] = (ResetPassword);
+
+/***/ }),
+/* 161 */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types__ = __webpack_require__(3);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_prop_types__);
+/* 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__field_email_email_pane__ = __webpack_require__(51);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__core_index__ = __webpack_require__(1);
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+
+
+
+
+
+
+var ResetPasswordPane = function (_React$Component) {
+ _inherits(ResetPasswordPane, _React$Component);
+
+ function ResetPasswordPane() {
+ _classCallCheck(this, ResetPasswordPane);
+
+ return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
+ }
+
+ ResetPasswordPane.prototype.render = function render() {
+ var _props = this.props,
+ emailInputPlaceholder = _props.emailInputPlaceholder,
+ header = _props.header,
+ i18n = _props.i18n,
+ lock = _props.lock;
+
+
+ return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ 'div',
+ null,
+ header,
+ __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__field_email_email_pane__["a" /* default */], { i18n: i18n, lock: lock, placeholder: emailInputPlaceholder })
+ );
+ };
+
+ return ResetPasswordPane;
+}(__WEBPACK_IMPORTED_MODULE_1_react___default.a.Component);
+
+ResetPasswordPane.propTypes = {
+ emailInputPlaceholder: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string.isRequired,
+ lock: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.object.isRequired
+};
+/* harmony default export */ __webpack_exports__["a"] = (ResetPasswordPane);
+
+/***/ }),
+/* 162 */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony export (immutable) */ __webpack_exports__["a"] = renderSignedUpConfirmation;
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types__ = __webpack_require__(3);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_prop_types__);
+/* 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__ui_box_success_pane__ = __webpack_require__(55);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__core_actions__ = __webpack_require__(17);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__core_index__ = __webpack_require__(1);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__index__ = __webpack_require__(11);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__i18n__ = __webpack_require__(12);
+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; }
+
+
+
+
+
+
+
+ // TODO: can't we get this from props?
+
+var SignedUpConfirmation = function (_React$Component) {
+ _inherits(SignedUpConfirmation, _React$Component);
+
+ function SignedUpConfirmation() {
+ _classCallCheck(this, SignedUpConfirmation);
+
+ return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
+ }
+
+ SignedUpConfirmation.prototype.handleClose = function handleClose() {
+ var _props = this.props,
+ closeHandler = _props.closeHandler,
+ lock = _props.lock;
+
+ closeHandler(__WEBPACK_IMPORTED_MODULE_4__core_index__["id"](lock));
+ };
+
+ SignedUpConfirmation.prototype.render = function render() {
+ var lock = this.props.lock;
+
+ var closeHandler = __WEBPACK_IMPORTED_MODULE_4__core_index__["ui"].closable(lock) ? this.handleClose.bind(this) : undefined;
+
+ return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ __WEBPACK_IMPORTED_MODULE_2__ui_box_success_pane__["a" /* default */],
+ { lock: lock, closeHandler: closeHandler },
+ __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ 'p',
+ null,
+ __WEBPACK_IMPORTED_MODULE_6__i18n__["html"](lock, ['success', 'signUp'])
+ )
+ );
+ };
+
+ return SignedUpConfirmation;
+}(__WEBPACK_IMPORTED_MODULE_1_react___default.a.Component);
+
+/* unused harmony default export */ var _unused_webpack_default_export = (SignedUpConfirmation);
+
+
+SignedUpConfirmation.propTypes = {
+ closeHandler: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.func.isRequired,
+ lock: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.object.isRequired
+};
+
+function renderSignedUpConfirmation(m) {
+ var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
+
+ props.closeHandler = __WEBPACK_IMPORTED_MODULE_3__core_actions__["c" /* closeLock */];
+ props.key = 'auxiliarypane';
+ props.lock = m;
+
+ return m.get('signedUp') && !__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__index__["p" /* shouldAutoLogin */])(m) ? __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(SignedUpConfirmation, props) : null;
+}
+
+/***/ }),
+/* 163 */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types__ = __webpack_require__(3);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_prop_types__);
+/* 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__field_username_username_pane__ = __webpack_require__(71);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__field_password_password_pane__ = __webpack_require__(69);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__core_index__ = __webpack_require__(1);
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+
+
+
+
+
+
+
+var HRDPane = function (_React$Component) {
+ _inherits(HRDPane, _React$Component);
+
+ function HRDPane() {
+ _classCallCheck(this, HRDPane);
+
+ return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
+ }
+
+ HRDPane.prototype.render = function render() {
+ var _props = this.props,
+ header = _props.header,
+ i18n = _props.i18n,
+ model = _props.model,
+ passwordInputPlaceholder = _props.passwordInputPlaceholder,
+ usernameInputPlaceholder = _props.usernameInputPlaceholder;
+
+
+ return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ 'div',
+ null,
+ header,
+ __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__field_username_username_pane__["a" /* default */], {
+ i18n: i18n,
+ lock: model,
+ placeholder: usernameInputPlaceholder,
+ validateFormat: false
+ }),
+ __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3__field_password_password_pane__["a" /* default */], { i18n: i18n, lock: model, placeholder: passwordInputPlaceholder })
+ );
+ };
+
+ return HRDPane;
+}(__WEBPACK_IMPORTED_MODULE_1_react___default.a.Component);
+
+/* harmony default export */ __webpack_exports__["a"] = (HRDPane);
+
+
+HRDPane.propTypes = {
+ header: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.element,
+ i18n: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.object.isRequired,
+ model: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.object.isRequired,
+ passwordInputPlaceholder: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string.isRequired,
+ usernameInputPlaceholder: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string.isRequired
+};
+
+/***/ }),
+/* 164 */
+/***/ (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__core_screen__ = __webpack_require__(14);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__core_signed_in_confirmation__ = __webpack_require__(19);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__hrd_pane__ = __webpack_require__(163);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__actions__ = __webpack_require__(65);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__enterprise__ = __webpack_require__(16);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__i18n__ = __webpack_require__(12);
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+
+
+
+
+
+
+
+
+
+var Component = function Component(_ref) {
+ var i18n = _ref.i18n,
+ model = _ref.model;
+
+ var domain = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__enterprise__["p" /* enterpriseDomain */])(model);
+
+ var headerText;
+
+ if (domain != null) {
+ headerText = i18n.html('enterpriseActiveLoginInstructions', domain);
+ } else {
+ headerText = i18n.html('enterpriseLoginIntructions');
+ }
+
+ headerText = headerText || null;
+
+ var header = headerText && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
+ 'p',
+ null,
+ headerText
+ );
+
+ return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3__hrd_pane__["a" /* default */], {
+ header: header,
+ i18n: i18n,
+ model: model,
+ passwordInputPlaceholder: i18n.str('passwordInputPlaceholder'),
+ usernameInputPlaceholder: i18n.str('usernameInputPlaceholder')
+ });
+};
+
+var HRDScreen = function (_Screen) {
+ _inherits(HRDScreen, _Screen);
+
+ function HRDScreen() {
+ _classCallCheck(this, HRDScreen);
+
+ return _possibleConstructorReturn(this, _Screen.call(this, 'hrd'));
+ }
+
+ HRDScreen.prototype.backHandler = function backHandler(model) {
+ return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__enterprise__["q" /* isSingleHRDConnection */])(model) ? null : __WEBPACK_IMPORTED_MODULE_4__actions__["c" /* cancelHRD */];
+ };
+
+ HRDScreen.prototype.submitButtonLabel = function submitButtonLabel(m) {
+ return __WEBPACK_IMPORTED_MODULE_6__i18n__["str"](m, ['loginSubmitLabel']);
+ };
+
+ HRDScreen.prototype.submitHandler = function submitHandler(model) {
+ return __WEBPACK_IMPORTED_MODULE_4__actions__["b" /* logIn */];
+ };
+
+ HRDScreen.prototype.renderAuxiliaryPane = function renderAuxiliaryPane(model) {
+ return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__core_signed_in_confirmation__["a" /* renderSignedInConfirmation */])(model);
+ };
+
+ HRDScreen.prototype.render = function render() {
+ return Component;
+ };
+
+ return HRDScreen;
+}(__WEBPACK_IMPORTED_MODULE_1__core_screen__["a" /* default */]);
+
+/* harmony default export */ __webpack_exports__["a"] = (HRDScreen);
+
+/***/ }),
+/* 165 */
+/***/ (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__core_screen__ = __webpack_require__(14);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ui_pane_quick_auth_pane__ = __webpack_require__(74);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__quick_auth_actions__ = __webpack_require__(53);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__core_signed_in_confirmation__ = __webpack_require__(19);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__core_index__ = __webpack_require__(1);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__enterprise__ = __webpack_require__(16);
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+
+
+
+
+
+
+
+
+
+var Component = function Component(_ref) {
+ var i18n = _ref.i18n,
+ model = _ref.model;
+
+ var headerText = i18n.html('windowsAuthInstructions') || null;
+ var header = headerText && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
+ 'p',
+ null,
+ headerText
+ );
+
+ return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__ui_pane_quick_auth_pane__["a" /* default */], {
+ alternativeLabel: i18n.str('notYourAccountAction'),
+ alternativeClickHandler: function alternativeClickHandler() {
+ return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__quick_auth_actions__["c" /* skipQuickAuth */])(__WEBPACK_IMPORTED_MODULE_5__core_index__["id"](model));
+ },
+ buttonLabel: i18n.str('windowsAuthLabel'),
+ buttonClickHandler: function buttonClickHandler(e) {
+ return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__quick_auth_actions__["a" /* logIn */])(__WEBPACK_IMPORTED_MODULE_5__core_index__["id"](model), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__enterprise__["r" /* corpNetworkConnection */])(model));
+ },
+ header: header,
+ strategy: 'windows'
+ });
+};
+
+var KerberosScreen = function (_Screen) {
+ _inherits(KerberosScreen, _Screen);
+
+ function KerberosScreen() {
+ _classCallCheck(this, KerberosScreen);
+
+ return _possibleConstructorReturn(this, _Screen.call(this, 'kerberos'));
+ }
+
+ KerberosScreen.prototype.renderAuxiliaryPane = function renderAuxiliaryPane(lock) {
+ return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__core_signed_in_confirmation__["a" /* renderSignedInConfirmation */])(lock);
+ };
+
+ KerberosScreen.prototype.render = function render() {
+ return Component;
+ };
+
+ return KerberosScreen;
+}(__WEBPACK_IMPORTED_MODULE_1__core_screen__["a" /* default */]);
+
+/* harmony default export */ __webpack_exports__["a"] = (KerberosScreen);
+
+/***/ }),
+/* 166 */
+/***/ (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__core_screen__ = __webpack_require__(14);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ui_pane_quick_auth_pane__ = __webpack_require__(74);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__quick_auth_actions__ = __webpack_require__(53);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__core_signed_in_confirmation__ = __webpack_require__(19);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__core_index__ = __webpack_require__(1);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__enterprise__ = __webpack_require__(16);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__connection_social_index__ = __webpack_require__(47);
+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; }
+
+
+
+
+
+
+
+
+
+
+// TODO: handle this from CSS
+function icon(strategy) {
+ if (strategy === 'google-apps') return strategy;
+ if (~['adfs', 'office365', 'waad'].indexOf(strategy)) return 'windows';
+ return 'auth0';
+}
+
+var Component = function Component(_ref) {
+ var i18n = _ref.i18n,
+ model = _ref.model;
+
+ var headerText = i18n.html('enterpriseLoginIntructions') || null;
+ var header = headerText && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
+ 'p',
+ null,
+ headerText
+ );
+
+ var theme = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_7__connection_social_index__["b" /* authButtonsTheme */])(model);
+
+ var connection = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__enterprise__["h" /* quickAuthConnection */])(model);
+ var connectionName = connection.getIn(['name']);
+ var connectionDomain = connection.getIn(['domains', 0]);
+
+ var buttonTheme = theme.get(connection.get('name'));
+
+ var buttonLabel = buttonTheme && buttonTheme.get('displayName') || connectionDomain && i18n.str('loginAtLabel', connectionDomain) || i18n.str('loginAtLabel', connectionName);
+
+ var primaryColor = buttonTheme && buttonTheme.get('primaryColor');
+ var foregroundColor = buttonTheme && buttonTheme.get('foregroundColor');
+ var buttonIcon = buttonTheme && buttonTheme.get('icon');
+
+ return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__ui_pane_quick_auth_pane__["a" /* default */], {
+ buttonLabel: buttonLabel,
+ buttonClickHandler: function buttonClickHandler(e) {
+ return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__quick_auth_actions__["a" /* logIn */])(__WEBPACK_IMPORTED_MODULE_5__core_index__["id"](model), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__enterprise__["h" /* quickAuthConnection */])(model));
+ },
+ header: header,
+ buttonIcon: buttonIcon,
+ primaryColor: primaryColor,
+ foregroundColor: foregroundColor,
+ strategy: icon(__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__enterprise__["h" /* quickAuthConnection */])(model).get('strategy'))
+ });
+};
+
+var QuickAuthScreen = function (_Screen) {
+ _inherits(QuickAuthScreen, _Screen);
+
+ function QuickAuthScreen() {
+ _classCallCheck(this, QuickAuthScreen);
+
+ return _possibleConstructorReturn(this, _Screen.call(this, 'enterpriseQuickAuth'));
+ }
+
+ QuickAuthScreen.prototype.renderAuxiliaryPane = function renderAuxiliaryPane(lock) {
+ return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__core_signed_in_confirmation__["a" /* renderSignedInConfirmation */])(lock);
+ };
+
+ QuickAuthScreen.prototype.render = function render() {
+ return Component;
+ };
+
+ return QuickAuthScreen;
+}(__WEBPACK_IMPORTED_MODULE_1__core_screen__["a" /* default */]);
+
+/* harmony default export */ __webpack_exports__["a"] = (QuickAuthScreen);
+
+/***/ }),
+/* 167 */
+/***/ (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__core_screen__ = __webpack_require__(14);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__field_vcode_vcode_pane__ = __webpack_require__(193);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__index__ = __webpack_require__(34);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__actions__ = __webpack_require__(33);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__core_signed_in_confirmation__ = __webpack_require__(19);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__field_index__ = __webpack_require__(4);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__field_phone_number__ = __webpack_require__(40);
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+
+
+
+
+
+
+
+
+
+
+var Component = function Component(_ref) {
+ var i18n = _ref.i18n,
+ model = _ref.model;
+
+ var instructions = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__index__["b" /* isEmail */])(model) ? i18n.html('passwordlessEmailCodeInstructions', __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__field_index__["e" /* getFieldValue */])(model, 'email')) : i18n.html('passwordlessSMSCodeInstructions', __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_7__field_phone_number__["e" /* humanPhoneNumberWithDiallingCode */])(model));
+
+ return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__field_vcode_vcode_pane__["a" /* default */], {
+ instructions: instructions,
+ lock: model,
+ placeholder: i18n.str('codeInputPlaceholder'),
+ resendLabel: i18n.str('resendCodeAction'),
+ onRestart: __WEBPACK_IMPORTED_MODULE_4__actions__["c" /* restart */]
+ });
+};
+
+var VcodeScreen = function (_Screen) {
+ _inherits(VcodeScreen, _Screen);
+
+ function VcodeScreen() {
+ _classCallCheck(this, VcodeScreen);
+
+ return _possibleConstructorReturn(this, _Screen.call(this, 'vcode'));
+ }
+
+ VcodeScreen.prototype.backHandler = function backHandler() {
+ return __WEBPACK_IMPORTED_MODULE_4__actions__["c" /* restart */];
+ };
+
+ VcodeScreen.prototype.submitHandler = function submitHandler() {
+ return __WEBPACK_IMPORTED_MODULE_4__actions__["d" /* logIn */];
+ };
+
+ VcodeScreen.prototype.renderAuxiliaryPane = function renderAuxiliaryPane(lock) {
+ return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__core_signed_in_confirmation__["a" /* renderSignedInConfirmation */])(lock);
+ };
+
+ VcodeScreen.prototype.render = function render() {
+ return Component;
+ };
+
+ return VcodeScreen;
+}(__WEBPACK_IMPORTED_MODULE_1__core_screen__["a" /* default */]);
+
+/* harmony default export */ __webpack_exports__["a"] = (VcodeScreen);
+
+/***/ }),
+/* 168 */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony export (immutable) */ __webpack_exports__["a"] = renderEmailSentConfirmation;
+/* 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__ui_box_success_pane__ = __webpack_require__(55);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__core_actions__ = __webpack_require__(17);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__core_index__ = __webpack_require__(1);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__field_index__ = __webpack_require__(4);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__actions__ = __webpack_require__(33);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__index__ = __webpack_require__(34);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__i18n__ = __webpack_require__(12);
+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; }
+
+
+
+
+
+
+
+
+
+
+ // TODO: can't we get this from pops?
+
+var retrySvg = '';
+
+var ResendLink = function (_React$Component) {
+ _inherits(ResendLink, _React$Component);
+
+ function ResendLink() {
+ _classCallCheck(this, ResendLink);
+
+ return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
+ }
+
+ ResendLink.prototype.render = function render() {
+ var _props = this.props,
+ label = _props.label,
+ onClick = _props.onClick;
+
+ return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
+ 'a',
+ { className: 'auth0-lock-resend-link', href: 'javascript:void(0)', onClick: onClick },
+ label,
+ ' ',
+ __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('span', { dangerouslySetInnerHTML: { __html: retrySvg } })
+ );
+ };
+
+ return ResendLink;
+}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component);
+
+var Resend = function (_React$Component2) {
+ _inherits(Resend, _React$Component2);
+
+ function Resend() {
+ _classCallCheck(this, Resend);
+
+ return _possibleConstructorReturn(this, _React$Component2.apply(this, arguments));
+ }
+
+ Resend.prototype.render = function render() {
+ var _props2 = this.props,
+ labels = _props2.labels,
+ lock = _props2.lock;
+
+
+ var resendLink = __WEBPACK_IMPORTED_MODULE_6__index__["n" /* resendAvailable */](lock) && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ResendLink, {
+ onClick: this.handleClick.bind(this),
+ label: __WEBPACK_IMPORTED_MODULE_6__index__["o" /* resendFailed */](lock) ? labels.retry : labels.resend
+ });
+
+ var resendingLabel = __WEBPACK_IMPORTED_MODULE_6__index__["p" /* resendOngoing */](lock) && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
+ 'a',
+ { className: 'auth0-lock-resend-link' },
+ labels.resending
+ );
+
+ var resendSuccessLabel = __WEBPACK_IMPORTED_MODULE_6__index__["q" /* resendSuccess */](lock) && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
+ 'span',
+ { className: 'auth0-lock-sent-label' },
+ labels.sent
+ );
+
+ var resendFailedLabel = __WEBPACK_IMPORTED_MODULE_6__index__["o" /* resendFailed */](lock) && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
+ 'span',
+ { className: 'auth0-lock-sent-failed-label' },
+ labels.failed
+ );
+
+ return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
+ 'span',
+ null,
+ resendLink,
+ resendingLabel,
+ resendSuccessLabel,
+ resendFailedLabel
+ );
+ };
+
+ Resend.prototype.handleClick = function handleClick(e) {
+ e.preventDefault();
+ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__actions__["f" /* resendEmail */])(__WEBPACK_IMPORTED_MODULE_3__core_index__["id"](this.props.lock));
+ };
+
+ return Resend;
+}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component);
+
+var EmailSentConfirmation = function (_React$Component3) {
+ _inherits(EmailSentConfirmation, _React$Component3);
+
+ function EmailSentConfirmation() {
+ _classCallCheck(this, EmailSentConfirmation);
+
+ return _possibleConstructorReturn(this, _React$Component3.apply(this, arguments));
+ }
+
+ EmailSentConfirmation.prototype.render = function render() {
+ var lock = this.props.lock;
+
+ var closeHandler = __WEBPACK_IMPORTED_MODULE_3__core_index__["ui"].closable(lock) ? this.handleClose.bind(this) : undefined;
+ var labels = {
+ failed: __WEBPACK_IMPORTED_MODULE_7__i18n__["str"](lock, 'failedLabel'),
+ resend: __WEBPACK_IMPORTED_MODULE_7__i18n__["str"](lock, 'resendLabel'),
+ resending: __WEBPACK_IMPORTED_MODULE_7__i18n__["str"](lock, 'resendingLabel'),
+ retry: __WEBPACK_IMPORTED_MODULE_7__i18n__["str"](lock, 'retryLabel'),
+ sent: __WEBPACK_IMPORTED_MODULE_7__i18n__["str"](lock, 'sentLabel')
+ };
+
+ return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
+ __WEBPACK_IMPORTED_MODULE_1__ui_box_success_pane__["a" /* default */],
+ { lock: lock, backHandler: this.handleBack.bind(this), closeHandler: closeHandler },
+ __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
+ 'p',
+ null,
+ __WEBPACK_IMPORTED_MODULE_7__i18n__["html"](lock, ['success', 'magicLink'], __WEBPACK_IMPORTED_MODULE_4__field_index__["i" /* email */](lock))
+ ),
+ __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Resend, { labels: labels, lock: lock })
+ );
+ };
+
+ EmailSentConfirmation.prototype.handleBack = function handleBack() {
+ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__actions__["c" /* restart */])(__WEBPACK_IMPORTED_MODULE_3__core_index__["id"](this.props.lock));
+ };
+
+ EmailSentConfirmation.prototype.handleClose = function handleClose() {
+ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__core_actions__["c" /* closeLock */])(__WEBPACK_IMPORTED_MODULE_3__core_index__["id"](this.props.lock));
+ };
+
+ return EmailSentConfirmation;
+}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component);
+
+/* unused harmony default export */ var _unused_webpack_default_export = (EmailSentConfirmation);
+
+
+function renderEmailSentConfirmation(lock) {
+ var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
+
+ props.key = 'auxiliarypane';
+ props.lock = lock;
+
+ return __WEBPACK_IMPORTED_MODULE_6__index__["d" /* passwordlessStarted */](lock) ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(EmailSentConfirmation, props) : null;
+}
+
+/***/ }),
+/* 169 */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony export (immutable) */ __webpack_exports__["a"] = fetchClientSettings;
+/* harmony export (immutable) */ __webpack_exports__["b"] = syncClientSettingsSuccess;
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_url_join__ = __webpack_require__(152);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_url_join___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_url_join__);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__utils_cdn_utils__ = __webpack_require__(75);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__index__ = __webpack_require__(1);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__index__ = __webpack_require__(106);
+
+
+
+
+
+function fetchClientSettings(clientID, clientBaseUrl, cb) {
+ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__utils_cdn_utils__["a" /* load */])({
+ method: 'setClient',
+ url: __WEBPACK_IMPORTED_MODULE_0_url_join___default()(clientBaseUrl, 'client', clientID + '.js?t' + +new Date()),
+ check: function check(o) {
+ return o && o.id === clientID;
+ },
+ cb: cb
+ });
+}
+
+function syncClientSettingsSuccess(m, result) {
+ m = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__index__["c" /* initClient */])(m, result);
+ m = __WEBPACK_IMPORTED_MODULE_2__index__["filterConnections"](m);
+ m = __WEBPACK_IMPORTED_MODULE_2__index__["runHook"](m, 'didReceiveClientSettings');
+ return m;
+}
+
+/***/ }),
+/* 170 */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony export (immutable) */ __webpack_exports__["a"] = syncRemoteData;
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_immutable__ = __webpack_require__(10);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_immutable___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_immutable__);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__client_settings__ = __webpack_require__(169);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__tenant_settings__ = __webpack_require__(172);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__sso_data__ = __webpack_require__(171);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__index__ = __webpack_require__(1);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__connection_enterprise__ = __webpack_require__(16);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__sync__ = __webpack_require__(29);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__web_api__ = __webpack_require__(28);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__core_index__ = __webpack_require__(1);
+
+
+
+
+
+ // shouldn't depend on this
+
+
+
+
+function syncRemoteData(m) {
+ if (__WEBPACK_IMPORTED_MODULE_4__index__["useTenantInfo"](m)) {
+ m = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__sync__["d" /* default */])(m, 'client', {
+ syncFn: function syncFn(m, cb) {
+ return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__tenant_settings__["a" /* fetchTenantSettings */])(__WEBPACK_IMPORTED_MODULE_4__index__["tenantBaseUrl"](m), cb);
+ },
+ successFn: function successFn(m, result) {
+ return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__tenant_settings__["b" /* syncTenantSettingsSuccess */])(m, __WEBPACK_IMPORTED_MODULE_4__index__["clientID"](m), result);
+ }
+ });
+ } else {
+ m = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__sync__["d" /* default */])(m, 'client', {
+ syncFn: function syncFn(m, cb) {
+ return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__client_settings__["a" /* fetchClientSettings */])(__WEBPACK_IMPORTED_MODULE_4__index__["clientID"](m), __WEBPACK_IMPORTED_MODULE_4__index__["clientBaseUrl"](m), cb);
+ },
+ successFn: __WEBPACK_IMPORTED_MODULE_1__client_settings__["b" /* syncClientSettingsSuccess */]
+ });
+ }
+
+ m = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__sync__["d" /* default */])(m, 'sso', {
+ conditionFn: function conditionFn(m) {
+ return __WEBPACK_IMPORTED_MODULE_4__index__["auth"].sso(m) && __WEBPACK_IMPORTED_MODULE_4__index__["ui"].rememberLastLogin(m);
+ },
+ waitFn: function waitFn(m) {
+ return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__sync__["b" /* isSuccess */])(m, 'client');
+ },
+ syncFn: function syncFn(m, cb) {
+ return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__sso_data__["a" /* fetchSSOData */])(__WEBPACK_IMPORTED_MODULE_4__index__["id"](m), __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__connection_enterprise__["c" /* isADEnabled */])(m), cb);
+ },
+ successFn: function successFn(m, result) {
+ return m.mergeIn(['sso'], __WEBPACK_IMPORTED_MODULE_0_immutable___default.a.fromJS(result));
+ },
+ errorFn: function errorFn(m, error) {
+ if (error.error === 'consent_required') {
+ __WEBPACK_IMPORTED_MODULE_4__index__["warn"](m, error.error_description);
+ } else {
+ // location.origin is not supported in all browsers
+ var origin = location.protocol + '//' + location.hostname;
+ if (location.port) {
+ origin += ':' + location.port;
+ }
+
+ var appSettingsUrl = 'https://manage.auth0.com/#/applications/' + __WEBPACK_IMPORTED_MODULE_4__index__["clientID"](m) + '/settings';
+
+ __WEBPACK_IMPORTED_MODULE_4__index__["warn"](m, 'There was an error fetching the SSO data. This is expected - and not a problem - if the tenant has Seamless SSO enabled. If the tenant doesn\'t have Seamless SSO enabled, this could simply mean that there was a problem with the network. But, if a "Origin" error has been logged before this warning, please add "' + origin + '" to the "Allowed Web Origins" list in the Auth0 dashboard: ' + appSettingsUrl);
+ }
+ }
+ });
+
+ m = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__sync__["d" /* default */])(m, 'captcha', {
+ syncFn: function syncFn(m, cb) {
+ __WEBPACK_IMPORTED_MODULE_7__web_api__["a" /* default */].getChallenge(m.get('id'), function (err, r) {
+ cb(null, r);
+ });
+ },
+ successFn: __WEBPACK_IMPORTED_MODULE_8__core_index__["setCaptcha"]
+ });
+
+ return m;
+}
+
+/***/ }),
+/* 171 */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony export (immutable) */ __webpack_exports__["a"] = fetchSSOData;
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__web_api__ = __webpack_require__(28);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__utils_cache__ = __webpack_require__(212);
+
+
+
+var cache = new __WEBPACK_IMPORTED_MODULE_1__utils_cache__["a" /* default */](function () {
+ return __WEBPACK_IMPORTED_MODULE_0__web_api__["a" /* default */].getSSOData.apply(__WEBPACK_IMPORTED_MODULE_0__web_api__["a" /* default */], arguments);
+});
+
+function fetchSSOData(id) {
+ for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
+ args[_key - 1] = arguments[_key];
+ }
+
+ cache.get.apply(cache, [id].concat(args));
+}
+
+/***/ }),
+/* 172 */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony export (immutable) */ __webpack_exports__["a"] = fetchTenantSettings;
+/* harmony export (immutable) */ __webpack_exports__["b"] = syncTenantSettingsSuccess;
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils_cdn_utils__ = __webpack_require__(75);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__index__ = __webpack_require__(1);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__index__ = __webpack_require__(66);
+
+
+
+
+function fetchTenantSettings(tenantBaseUrl, cb) {
+ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__utils_cdn_utils__["a" /* load */])({
+ method: 'setTenant',
+ url: tenantBaseUrl + '?t' + +new Date(),
+ check: function check() {
+ return true;
+ },
+ cb: cb
+ });
+}
+
+function syncTenantSettingsSuccess(m, client_id, result) {
+ m = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__index__["c" /* initTenant */])(m, client_id, result);
+ m = __WEBPACK_IMPORTED_MODULE_1__index__["filterConnections"](m);
+ m = __WEBPACK_IMPORTED_MODULE_1__index__["runHook"](m, 'didReceiveClientSettings');
+ return m;
+}
+
+/***/ }),
+/* 173 */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony export (immutable) */ __webpack_exports__["f"] = normalizeError;
+/* harmony export (immutable) */ __webpack_exports__["c"] = loginCallback;
+/* harmony export (immutable) */ __webpack_exports__["e"] = normalizeAuthParams;
+/* harmony export (immutable) */ __webpack_exports__["a"] = webAuthOverrides;
+/* harmony export (immutable) */ __webpack_exports__["d"] = trimAuthParams;
+/* harmony export (immutable) */ __webpack_exports__["b"] = getVersion;
+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; }
+
+function normalizeError(error, domain) {
+ if (!error) {
+ return error;
+ }
+
+ // TODO: clean this mess, the first checks are for social/popup,
+ // then we have some stuff for passwordless and the latter is for
+ // db.
+
+ // TODO: the following checks were copied from https://github.com/auth0/lock/blob/0a5abf1957c9bb746b0710b274d0feed9b399958/index.js#L1263-L1288
+ // Some of the checks are missing because I couldn't reproduce them and I'm
+ // affraid they'll break existent functionality if add them.
+ // We need a better errror handling story in auth0.js.
+
+ if (error.status === 'User closed the popup window') {
+ // {
+ // status: "User closed the popup window",
+ // name: undefined,
+ // code: undefined,
+ // details: {
+ // description: "server error",
+ // code: undefined
+ // }
+ // }
+ return {
+ code: 'lock.popup_closed',
+ error: 'lock.popup_closed',
+ description: 'Popup window closed.'
+ };
+ }
+
+ if (error.code === 'unauthorized') {
+ // Custom rule error
+ //
+ // {
+ // "code": "unauthorized",
+ // "details": {
+ // "code": "unauthorized",
+ // "error_description": "user is blocked",
+ // "error": "unauthorized"
+ // },
+ // "name": "unauthorized",
+ // "status": 401
+ // }
+
+ // Default "user is blocked" rule error
+ //
+ // {
+ // "code": "unauthorized",
+ // "details": {
+ // "code": "unauthorized",
+ // "error_description": "user is blocked",
+ // "error": "unauthorized"
+ // },
+ // "name": "unauthorized",
+ // "status": 401
+ // }
+
+ // Social cancel permissions.
+ //
+ // {
+ // code: "unauthorized",
+ // details: {
+ // code: "unauthorized"
+ // error: "unauthorized"
+ // error_description: "access_denied"
+ // },
+ // name: "unauthorized"
+ // status: 401
+ // }
+
+ // Social cancel permissions or unknown error
+ if (!error.description || error.description === 'access_denied') {
+ return {
+ code: 'lock.unauthorized',
+ error: 'lock.unauthorized',
+ description: error.description || 'Permissions were not granted.'
+ };
+ }
+
+ // Special case for custom rule error
+ if (error.description === 'user is blocked') {
+ return {
+ code: 'blocked_user',
+ error: 'blocked_user',
+ description: error.description
+ };
+ }
+
+ // Custom Rule error
+ return {
+ code: 'rule_error',
+ error: 'rule_error',
+ description: error.description
+ };
+ }
+ if (window.location.host !== domain && (error.error === 'access_denied' || error.code === 'access_denied')) {
+ return {
+ code: 'invalid_user_password',
+ error: 'invalid_user_password',
+ description: error.description
+ };
+ }
+
+ if (error.code === 'invalid_captcha') {
+ var _ref;
+
+ return _ref = {
+ code: 'invalid_captcha'
+ }, _ref['code'] = 'invalid_captcha', _ref.description = error.description, _ref;
+ }
+
+ var result = {
+ error: error.code ? error.code : error.statusCode || error.error,
+ description: error.description || error.code
+ };
+
+ // result is used for passwordless and error for database.
+ return result.error === undefined && result.description === undefined ? error : result;
+}
+
+function loginCallback(redirect, domain, cb) {
+ return redirect ? function (error) {
+ return cb(normalizeError(error, domain));
+ } : function (error, result) {
+ return cb(normalizeError(error, domain), result);
+ };
+}
+
+function normalizeAuthParams(_ref2) {
+ var popup = _ref2.popup,
+ authParams = _objectWithoutProperties(_ref2, ['popup']);
+
+ return authParams;
+}
+
+function webAuthOverrides() {
+ var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
+ __tenant = _ref3.__tenant,
+ __token_issuer = _ref3.__token_issuer,
+ __jwks_uri = _ref3.__jwks_uri;
+
+ if (__tenant || __token_issuer || __jwks_uri) {
+ return {
+ __tenant: __tenant,
+ __token_issuer: __token_issuer,
+ __jwks_uri: __jwks_uri
+ };
+ }
+ return null;
+}
+
+function trimAuthParams() {
+ var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
+
+ var p = _objectWithoutProperties(params, []);
+
+ ['username', 'email', 'phoneNumber', 'mfa_code'].forEach(function (k) {
+ if (typeof p[k] === 'string') {
+ p[k] = p[k].trim();
+ }
+ });
+ return p;
+}
+
+function getVersion() {
+ return '11.24.1';
+}
+
+/***/ }),
+/* 174 */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_auth0_js__ = __webpack_require__(99);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_qs__ = __webpack_require__(249);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_qs___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_qs__);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_auth0_js_dist_cordova_auth0_plugin_min_js__ = __webpack_require__(154);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_auth0_js_dist_cordova_auth0_plugin_min_js___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_auth0_js_dist_cordova_auth0_plugin_min_js__);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__helper__ = __webpack_require__(173);
+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"); } }
+
+
+
+
+
+
+var Auth0APIClient = function () {
+ function Auth0APIClient(lockID, clientID, domain, opts) {
+ _classCallCheck(this, Auth0APIClient);
+
+ this.lockID = lockID;
+ this.client = null;
+ this.authOpt = null;
+ this.domain = domain;
+ this.isUniversalLogin = window.location.host === domain;
+ this._enableIdPInitiatedLogin = !!(opts._enableIdPInitiatedLogin || opts._enableImpersonation);
+ var telemetry = this.getTelemetryInfo(opts._telemetryInfo);
+
+ var state = opts.state;
+ if (opts.params && opts.params.state) {
+ state = opts.params.state;
+ }
+
+ var nonce = opts.nonce;
+ if (opts.params && opts.params.nonce) {
+ nonce = opts.params.nonce;
+ }
+
+ var scope = opts.params && opts.params.scope;
+
+ this.client = new __WEBPACK_IMPORTED_MODULE_0_auth0_js__["a" /* default */].WebAuth({
+ clientID: clientID,
+ domain: domain,
+ audience: opts.audience,
+ redirectUri: opts.redirectUrl,
+ responseMode: opts.responseMode,
+ responseType: opts.responseType,
+ leeway: opts.leeway || 60,
+ plugins: opts.plugins || [new __WEBPACK_IMPORTED_MODULE_2_auth0_js_dist_cordova_auth0_plugin_min_js___default.a()],
+ overrides: __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__helper__["a" /* webAuthOverrides */])(opts.overrides),
+ _sendTelemetry: opts._sendTelemetry === false ? false : true,
+ _telemetryInfo: telemetry,
+ state: state,
+ nonce: nonce,
+ scope: scope
+ });
+
+ this.authOpt = {
+ popup: !opts.redirect,
+ popupOptions: opts.popupOptions,
+ nonce: nonce,
+ state: state,
+ scope: scope
+ };
+ if (this.isUniversalLogin && opts.sso !== undefined) {
+ this.authOpt.sso = opts.sso;
+ }
+ }
+
+ Auth0APIClient.prototype.getTelemetryInfo = function getTelemetryInfo(telemetryOverride) {
+ var telemetry = void 0;
+
+ var _qs$parse = __WEBPACK_IMPORTED_MODULE_1_qs___default.a.parse(window.location.search.substr(1)),
+ auth0Client = _qs$parse.auth0Client;
+
+ var ulpTelemetry = auth0Client && JSON.parse(atob(auth0Client));
+ if (this.isUniversalLogin && ulpTelemetry) {
+ var _extends2;
+
+ telemetry = _extends({}, ulpTelemetry, {
+ env: _extends({}, ulpTelemetry.env, (_extends2 = {}, _extends2['lock.js-ulp'] = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__helper__["b" /* getVersion */])(), _extends2['auth0.js-ulp'] = __WEBPACK_IMPORTED_MODULE_0_auth0_js__["a" /* default */].version.raw, _extends2))
+ });
+ }
+ if (this.isUniversalLogin && !ulpTelemetry) {
+ var _env;
+
+ telemetry = {
+ name: 'lock.js-ulp',
+ version: __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__helper__["b" /* getVersion */])(),
+ env: (_env = {}, _env['auth0.js-ulp'] = __WEBPACK_IMPORTED_MODULE_0_auth0_js__["a" /* default */].version.raw, _env)
+ };
+ }
+ if (!this.isUniversalLogin && telemetryOverride) {
+ var _extends3;
+
+ telemetry = _extends({}, telemetryOverride, {
+ env: _extends({}, telemetryOverride.env, (_extends3 = {}, _extends3['lock.js'] = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__helper__["b" /* getVersion */])(), _extends3['auth0.js'] = __WEBPACK_IMPORTED_MODULE_0_auth0_js__["a" /* default */].version.raw, _extends3))
+ });
+ }
+ if (!telemetry) {
+ var _env2;
+
+ telemetry = {
+ name: 'lock.js',
+ version: __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__helper__["b" /* getVersion */])(),
+ env: (_env2 = {}, _env2['auth0.js'] = __WEBPACK_IMPORTED_MODULE_0_auth0_js__["a" /* default */].version.raw, _env2)
+ };
+ }
+ return telemetry;
+ };
+
+ Auth0APIClient.prototype.logIn = function logIn(options, authParams, cb) {
+ // TODO: for passwordless only, try to clean in auth0.js
+ // client._shouldRedirect = redirect || responseType === "code" || !!redirectUrl;
+ var f = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__helper__["c" /* loginCallback */])(false, this.domain, cb);
+ var loginOptions = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__helper__["d" /* trimAuthParams */])(__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__helper__["e" /* normalizeAuthParams */])(_extends({}, options, this.authOpt, authParams)));
+
+ if (options.login_hint) {
+ loginOptions.login_hint = options.login_hint;
+ }
+
+ if (!options.username && !options.email) {
+ if (this.authOpt.popup) {
+ this.client.popup.authorize(_extends({}, loginOptions, {
+ owp: true
+ }), f);
+ } else {
+ this.client.authorize(loginOptions, f);
+ }
+ } else if (this.authOpt.popup) {
+ this.client.popup.loginWithCredentials(loginOptions, f);
+ } else {
+ loginOptions.realm = options.connection;
+ this.client.login(loginOptions, f);
+ }
+ };
+
+ Auth0APIClient.prototype.logout = function logout(query) {
+ this.client.logout(query);
+ };
+
+ Auth0APIClient.prototype.signUp = function signUp(options, cb) {
+ delete options.autoLogin;
+ this.client.signup(__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__helper__["d" /* trimAuthParams */])(options), function (err, result) {
+ return cb(err, result);
+ });
+ };
+
+ Auth0APIClient.prototype.resetPassword = function resetPassword(options, cb) {
+ this.client.changePassword(__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__helper__["d" /* trimAuthParams */])(options), cb);
+ };
+
+ Auth0APIClient.prototype.passwordlessStart = function passwordlessStart(options, cb) {
+ this.client.passwordlessStart(__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__helper__["d" /* trimAuthParams */])(options), function (err) {
+ return cb(__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__helper__["f" /* normalizeError */])(err));
+ });
+ };
+
+ Auth0APIClient.prototype.passwordlessVerify = function passwordlessVerify(options, cb) {
+ var verifyOptions = _extends({}, options, {
+ popup: this.authOpt.popup
+ });
+ this.client.passwordlessLogin(verifyOptions, function (err, result) {
+ return cb(__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__helper__["f" /* normalizeError */])(err), result);
+ });
+ };
+
+ Auth0APIClient.prototype.parseHash = function parseHash() {
+ var hash = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
+ var cb = arguments[1];
+
+ return this.client.parseHash({
+ __enableIdPInitiatedLogin: this._enableIdPInitiatedLogin,
+ hash: hash,
+ nonce: this.authOpt.nonce,
+ state: this.authOpt.state
+ }, cb);
+ };
+
+ Auth0APIClient.prototype.getUserInfo = function getUserInfo(token, callback) {
+ return this.client.client.userInfo(token, callback);
+ };
+
+ Auth0APIClient.prototype.getProfile = function getProfile(token, callback) {
+ this.getUserInfo(token, callback);
+ };
+
+ Auth0APIClient.prototype.getSSOData = function getSSOData() {
+ var _client$client;
+
+ return (_client$client = this.client.client).getSSOData.apply(_client$client, arguments);
+ };
+
+ Auth0APIClient.prototype.getChallenge = function getChallenge() {
+ var _client$client2;
+
+ return (_client$client2 = this.client.client).getChallenge.apply(_client$client2, arguments);
+ };
+
+ Auth0APIClient.prototype.getUserCountry = function getUserCountry(cb) {
+ return this.client.client.getUserCountry(cb);
+ };
+
+ Auth0APIClient.prototype.checkSession = function checkSession(options, cb) {
+ return this.client.checkSession(options, cb);
+ };
+
+ return Auth0APIClient;
+}();
+
+/* harmony default export */ __webpack_exports__["a"] = (Auth0APIClient);
+
+/***/ }),
+/* 175 */
+/***/ (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__core_screen__ = __webpack_require__(14);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__field_social_social_buttons_pane__ = __webpack_require__(52);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__connection_database_login_pane__ = __webpack_require__(157);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__core_pane_separator__ = __webpack_require__(48);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__connection_database_index__ = __webpack_require__(11);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__connection_database_actions__ = __webpack_require__(27);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__core_signed_in_confirmation__ = __webpack_require__(19);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__connection_database_login_sign_up_tabs__ = __webpack_require__(103);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__core_index__ = __webpack_require__(1);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__connection_enterprise_actions__ = __webpack_require__(65);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__connection_enterprise__ = __webpack_require__(16);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__connection_enterprise_single_sign_on_notice__ = __webpack_require__(104);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__classic__ = __webpack_require__(50);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__i18n__ = __webpack_require__(12);
+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 shouldRenderTabs(m) {
+ if (__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_13__classic__["b" /* isSSOEnabled */])(m)) return false;
+ if (__WEBPACK_IMPORTED_MODULE_9__core_index__["hasSomeConnections"](m, 'database')) return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__connection_database_index__["i" /* hasScreen */])(m, 'signUp');
+ if (__WEBPACK_IMPORTED_MODULE_9__core_index__["hasSomeConnections"](m, 'social') && __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__connection_database_index__["c" /* hasInitialScreen */])(m, 'signUp')) return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__connection_database_index__["i" /* hasScreen */])(m, 'signUp');
+}
+
+var Component = function Component(_ref) {
+ var i18n = _ref.i18n,
+ model = _ref.model;
+
+ var sso = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_13__classic__["b" /* isSSOEnabled */])(model);
+ var onlySocial = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_13__classic__["c" /* hasOnlyClassicConnections */])(model, 'social');
+
+ var tabs = shouldRenderTabs(model) && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__connection_database_login_sign_up_tabs__["a" /* default */], {
+ key: 'loginsignup',
+ lock: model,
+ loginLabel: i18n.str('loginLabel'),
+ signUpLink: __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__connection_database_index__["x" /* signUpLink */])(model),
+ signUpLabel: i18n.str('signUpLabel')
+ });
+
+ var social = __WEBPACK_IMPORTED_MODULE_9__core_index__["hasSomeConnections"](model, 'social') && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__field_social_social_buttons_pane__["a" /* default */], {
+ instructions: i18n.html('socialLoginInstructions'),
+ labelFn: i18n.str,
+ lock: model,
+ showLoading: onlySocial,
+ signUp: false
+ });
+
+ var showPassword = !sso && (__WEBPACK_IMPORTED_MODULE_9__core_index__["hasSomeConnections"](model, 'database') || !!__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_11__connection_enterprise__["j" /* findADConnectionWithoutDomain */])(model));
+
+ var showForgotPasswordLink = showPassword && __WEBPACK_IMPORTED_MODULE_9__core_index__["hasSomeConnections"](model, 'database');
+
+ var loginInstructionsKey = social ? 'databaseEnterpriseAlternativeLoginInstructions' : 'databaseEnterpriseLoginInstructions';
+
+ var usernameInputPlaceholderKey = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__connection_database_index__["y" /* databaseUsernameStyle */])(model) === 'any' || __WEBPACK_IMPORTED_MODULE_9__core_index__["countConnections"](model, 'enterprise') > 1 ? 'usernameOrEmailInputPlaceholder' : 'usernameInputPlaceholder';
+
+ var usernameStyle = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__connection_database_index__["y" /* databaseUsernameStyle */])(model);
+
+ var login = (sso || __WEBPACK_IMPORTED_MODULE_9__core_index__["hasSomeConnections"](model, 'database') || __WEBPACK_IMPORTED_MODULE_9__core_index__["hasSomeConnections"](model, 'enterprise')) && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3__connection_database_login_pane__["a" /* default */], {
+ emailInputPlaceholder: i18n.str('emailInputPlaceholder'),
+ forgotPasswordAction: i18n.str('forgotPasswordAction'),
+ i18n: i18n,
+ instructions: i18n.html(loginInstructionsKey),
+ lock: model,
+ passwordInputPlaceholder: i18n.str('passwordInputPlaceholder'),
+ showForgotPasswordLink: showForgotPasswordLink,
+ showPassword: showPassword,
+ usernameInputPlaceholder: i18n.str(usernameInputPlaceholderKey),
+ usernameStyle: usernameStyle
+ });
+
+ var ssoNotice = sso && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
+ __WEBPACK_IMPORTED_MODULE_12__connection_enterprise_single_sign_on_notice__["a" /* default */],
+ null,
+ i18n.str('ssoEnabled')
+ );
+
+ var separator = social && login && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__core_pane_separator__["a" /* default */], null);
+
+ return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
+ 'div',
+ null,
+ ssoNotice,
+ tabs,
+ __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
+ 'div',
+ null,
+ social,
+ separator,
+ login
+ )
+ );
+};
+
+var Login = function (_Screen) {
+ _inherits(Login, _Screen);
+
+ function Login() {
+ _classCallCheck(this, Login);
+
+ return _possibleConstructorReturn(this, _Screen.call(this, 'main.login'));
+ }
+
+ Login.prototype.renderAuxiliaryPane = function renderAuxiliaryPane(lock) {
+ return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_7__core_signed_in_confirmation__["a" /* renderSignedInConfirmation */])(lock);
+ };
+
+ Login.prototype.renderTabs = function renderTabs(model) {
+ return shouldRenderTabs(model);
+ };
+
+ Login.prototype.submitButtonLabel = function submitButtonLabel(m) {
+ return __WEBPACK_IMPORTED_MODULE_14__i18n__["str"](m, ['loginSubmitLabel']);
+ };
+
+ Login.prototype.isSubmitDisabled = function isSubmitDisabled(m) {
+ // it should disable the submit button if there is any connection that
+ // requires username/password and there is no enterprise with domain
+ // that matches with the email domain entered for HRD
+ return !__WEBPACK_IMPORTED_MODULE_9__core_index__["hasSomeConnections"](m, 'database') && // no database connection
+ !__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_11__connection_enterprise__["j" /* findADConnectionWithoutDomain */])(m) && // no enterprise without domain
+ !__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_13__classic__["b" /* isSSOEnabled */])(m); // no matching domain
+ };
+
+ Login.prototype.submitHandler = function submitHandler(model) {
+ if (__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_13__classic__["c" /* hasOnlyClassicConnections */])(model, 'social')) {
+ return null;
+ }
+
+ if (__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_11__connection_enterprise__["k" /* isHRDDomain */])(model, __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__connection_database_index__["a" /* databaseUsernameValue */])(model))) {
+ return function (id) {
+ return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_10__connection_enterprise_actions__["a" /* startHRD */])(id, __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__connection_database_index__["a" /* databaseUsernameValue */])(model));
+ };
+ }
+
+ var useDatabaseConnection = !__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_13__classic__["b" /* isSSOEnabled */])(model) && __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__connection_database_index__["w" /* databaseConnection */])(model) && (__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__connection_database_index__["e" /* defaultDatabaseConnection */])(model) || !__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_11__connection_enterprise__["e" /* defaultEnterpriseConnection */])(model));
+
+ return useDatabaseConnection ? __WEBPACK_IMPORTED_MODULE_6__connection_database_actions__["a" /* logIn */] : __WEBPACK_IMPORTED_MODULE_10__connection_enterprise_actions__["b" /* logIn */];
+ };
+
+ Login.prototype.render = function render() {
+ return Component;
+ };
+
+ return Login;
+}(__WEBPACK_IMPORTED_MODULE_1__core_screen__["a" /* default */]);
+
+/* harmony default export */ __webpack_exports__["a"] = (Login);
+
+/***/ }),
+/* 176 */
+/***/ (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__core_screen__ = __webpack_require__(14);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__connection_database_mfa_pane__ = __webpack_require__(158);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__i18n__ = __webpack_require__(12);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__connection_database_actions__ = __webpack_require__(27);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__connection_database_index__ = __webpack_require__(11);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__core_signed_in_confirmation__ = __webpack_require__(19);
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+
+
+
+
+
+
+
+
+
+var Component = function Component(_ref) {
+ var i18n = _ref.i18n,
+ model = _ref.model;
+
+ return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__connection_database_mfa_pane__["a" /* default */], {
+ mfaInputPlaceholder: i18n.str('mfaInputPlaceholder'),
+ i18n: i18n,
+ instructions: i18n.str('mfaLoginInstructions'),
+ lock: model,
+ title: i18n.str('mfaLoginTitle')
+ });
+};
+
+var MFALoginScreen = function (_Screen) {
+ _inherits(MFALoginScreen, _Screen);
+
+ function MFALoginScreen() {
+ _classCallCheck(this, MFALoginScreen);
+
+ return _possibleConstructorReturn(this, _Screen.call(this, 'mfa.mfaCode'));
+ }
+
+ MFALoginScreen.prototype.renderAuxiliaryPane = function renderAuxiliaryPane(lock) {
+ return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__core_signed_in_confirmation__["a" /* renderSignedInConfirmation */])(lock);
+ };
+
+ MFALoginScreen.prototype.submitButtonLabel = function submitButtonLabel(m) {
+ return __WEBPACK_IMPORTED_MODULE_3__i18n__["str"](m, ['mfaSubmitLabel']);
+ };
+
+ MFALoginScreen.prototype.submitHandler = function submitHandler(m) {
+ return function (id) {
+ return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__connection_database_actions__["a" /* logIn */])(id, true);
+ };
+ };
+
+ MFALoginScreen.prototype.render = function render() {
+ return Component;
+ };
+
+ MFALoginScreen.prototype.backHandler = function backHandler(m) {
+ return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__connection_database_index__["i" /* hasScreen */])(m, 'login') ? __WEBPACK_IMPORTED_MODULE_4__connection_database_actions__["b" /* cancelMFALogin */] : undefined;
+ };
+
+ return MFALoginScreen;
+}(__WEBPACK_IMPORTED_MODULE_1__core_screen__["a" /* default */]);
+
+/* harmony default export */ __webpack_exports__["a"] = (MFALoginScreen);
+
+/***/ }),
+/* 177 */
+/***/ (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__field_email_email_pane__ = __webpack_require__(51);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__field_password_password_pane__ = __webpack_require__(69);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__field_username_username_pane__ = __webpack_require__(71);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__field_custom_input__ = __webpack_require__(184);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__connection_database_index__ = __webpack_require__(11);
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+
+
+
+
+
+
+
+
+var SignUpPane = function (_React$Component) {
+ _inherits(SignUpPane, _React$Component);
+
+ function SignUpPane() {
+ _classCallCheck(this, SignUpPane);
+
+ return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
+ }
+
+ SignUpPane.prototype.render = function render() {
+ var _props = this.props,
+ emailInputPlaceholder = _props.emailInputPlaceholder,
+ instructions = _props.instructions,
+ i18n = _props.i18n,
+ model = _props.model,
+ onlyEmail = _props.onlyEmail,
+ passwordInputPlaceholder = _props.passwordInputPlaceholder,
+ passwordStrengthMessages = _props.passwordStrengthMessages,
+ usernameInputPlaceholder = _props.usernameInputPlaceholder;
+
+
+ var headerText = instructions || null;
+ var header = headerText && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
+ 'p',
+ null,
+ headerText
+ );
+
+ var usernamePane = !onlyEmail && __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__connection_database_index__["n" /* databaseConnectionRequiresUsername */])(model) ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3__field_username_username_pane__["a" /* default */], {
+ i18n: i18n,
+ lock: model,
+ placeholder: usernameInputPlaceholder,
+ validateFormat: true
+ }) : null;
+
+ var fields = !onlyEmail && __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__connection_database_index__["o" /* additionalSignUpFields */])(model).map(function (x) {
+ return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__field_custom_input__["a" /* default */], {
+ iconUrl: x.get('icon'),
+ key: x.get('name'),
+ model: model,
+ name: x.get('name'),
+ ariaLabel: x.get('ariaLabel'),
+ options: x.get('options'),
+ placeholder: x.get('placeholder'),
+ placeholderHTML: x.get('placeholderHTML'),
+ type: x.get('type'),
+ validator: x.get('validator'),
+ value: x.get('value')
+ });
+ });
+
+ var passwordPane = !onlyEmail && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__field_password_password_pane__["a" /* default */], {
+ i18n: i18n,
+ lock: model,
+ placeholder: passwordInputPlaceholder,
+ policy: __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__connection_database_index__["v" /* passwordStrengthPolicy */])(model),
+ strengthMessages: passwordStrengthMessages
+ });
+
+ return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
+ 'div',
+ null,
+ header,
+ __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_1__field_email_email_pane__["a" /* default */], { i18n: i18n, lock: model, placeholder: emailInputPlaceholder }),
+ usernamePane,
+ passwordPane,
+ fields
+ );
+ };
+
+ return SignUpPane;
+}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component);
+
+/* harmony default export */ __webpack_exports__["a"] = (SignUpPane);
+
+/***/ }),
+/* 178 */
+/***/ (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__core_screen__ = __webpack_require__(14);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__connection_database_index__ = __webpack_require__(11);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__connection_database_actions__ = __webpack_require__(27);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__classic__ = __webpack_require__(50);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__core_signed_in_confirmation__ = __webpack_require__(19);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__connection_database_signed_up_confirmation__ = __webpack_require__(162);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__field_index__ = __webpack_require__(4);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__connection_enterprise_actions__ = __webpack_require__(65);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__connection_enterprise__ = __webpack_require__(16);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__core_index__ = __webpack_require__(1);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__i18n__ = __webpack_require__(12);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__sign_up_pane__ = __webpack_require__(177);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__core_pane_separator__ = __webpack_require__(48);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__connection_database_sign_up_terms__ = __webpack_require__(64);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__field_social_social_buttons_pane__ = __webpack_require__(52);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__connection_database_login_sign_up_tabs__ = __webpack_require__(103);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__connection_enterprise_single_sign_on_notice__ = __webpack_require__(104);
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+var Component = function Component(_ref) {
+ var i18n = _ref.i18n,
+ model = _ref.model;
+
+ var sso = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__classic__["b" /* isSSOEnabled */])(model, { emailFirst: true }) && __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__connection_database_index__["i" /* hasScreen */])(model, 'login');
+ var ssoNotice = sso && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
+ __WEBPACK_IMPORTED_MODULE_17__connection_enterprise_single_sign_on_notice__["a" /* default */],
+ null,
+ i18n.str('ssoEnabled')
+ );
+
+ var tabs = !sso && __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__connection_database_index__["i" /* hasScreen */])(model, 'login') && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_16__connection_database_login_sign_up_tabs__["a" /* default */], {
+ key: 'loginsignup',
+ lock: model,
+ loginLabel: i18n.str('loginLabel'),
+ signUpLabel: i18n.str('signUpLabel')
+ });
+
+ var social = __WEBPACK_IMPORTED_MODULE_10__core_index__["hasSomeConnections"](model, 'social') && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_15__field_social_social_buttons_pane__["a" /* default */], {
+ instructions: i18n.html('socialSignUpInstructions'),
+ labelFn: i18n.str,
+ lock: model,
+ signUp: true
+ });
+
+ var signUpInstructionsKey = social ? 'databaseAlternativeSignUpInstructions' : 'databaseSignUpInstructions';
+
+ var db = (__WEBPACK_IMPORTED_MODULE_10__core_index__["hasSomeConnections"](model, 'database') || __WEBPACK_IMPORTED_MODULE_10__core_index__["hasSomeConnections"](model, 'enterprise')) && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_12__sign_up_pane__["a" /* default */], {
+ emailInputPlaceholder: i18n.str('emailInputPlaceholder'),
+ i18n: i18n,
+ instructions: i18n.html(signUpInstructionsKey),
+ model: model,
+ onlyEmail: sso,
+ passwordInputPlaceholder: i18n.str('passwordInputPlaceholder'),
+ passwordStrengthMessages: i18n.group('passwordStrength'),
+ usernameInputPlaceholder: i18n.str('usernameInputPlaceholder')
+ });
+
+ var separator = social && db && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_13__core_pane_separator__["a" /* default */], null);
+
+ return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
+ 'div',
+ null,
+ ssoNotice,
+ tabs,
+ __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
+ 'div',
+ null,
+ social,
+ separator,
+ db
+ )
+ );
+};
+
+var SignUp = function (_Screen) {
+ _inherits(SignUp, _Screen);
+
+ function SignUp() {
+ _classCallCheck(this, SignUp);
+
+ return _possibleConstructorReturn(this, _Screen.call(this, 'main.signUp'));
+ }
+
+ SignUp.prototype.submitButtonLabel = function submitButtonLabel(m) {
+ return __WEBPACK_IMPORTED_MODULE_11__i18n__["str"](m, ['signUpSubmitLabel']);
+ };
+
+ SignUp.prototype.submitHandler = function submitHandler(m) {
+ if (__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__classic__["c" /* hasOnlyClassicConnections */])(m, 'social')) return null;
+ var username = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__connection_database_index__["a" /* databaseUsernameValue */])(m, { emailFirst: true });
+ if (__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_9__connection_enterprise__["k" /* isHRDDomain */])(m, username)) {
+ return function (id) {
+ return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_8__connection_enterprise_actions__["a" /* startHRD */])(id, username);
+ };
+ }
+ if (__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__classic__["b" /* isSSOEnabled */])(m, { emailFirst: true })) return __WEBPACK_IMPORTED_MODULE_8__connection_enterprise_actions__["b" /* logIn */];
+ return __WEBPACK_IMPORTED_MODULE_3__connection_database_actions__["c" /* signUp */];
+ };
+
+ SignUp.prototype.isSubmitDisabled = function isSubmitDisabled(m) {
+ return !__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__connection_database_index__["s" /* termsAccepted */])(m);
+ };
+
+ SignUp.prototype.renderAuxiliaryPane = function renderAuxiliaryPane(lock) {
+ return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__core_signed_in_confirmation__["a" /* renderSignedInConfirmation */])(lock) || __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__connection_database_signed_up_confirmation__["a" /* renderSignedUpConfirmation */])(lock) || __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_7__field_index__["l" /* renderOptionSelection */])(lock);
+ };
+
+ SignUp.prototype.renderTabs = function renderTabs() {
+ return true;
+ };
+
+ SignUp.prototype.getScreenTitle = function getScreenTitle(m) {
+ // signupTitle is inconsistent with the rest of the codebase
+ // but, since changing this would be a breaking change, we'll
+ // still support it until the next major version
+ return __WEBPACK_IMPORTED_MODULE_11__i18n__["str"](m, 'signUpTitle') || __WEBPACK_IMPORTED_MODULE_11__i18n__["str"](m, 'signupTitle');
+ };
+
+ SignUp.prototype.renderTerms = function renderTerms(m, terms) {
+ var checkHandler = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__connection_database_index__["t" /* mustAcceptTerms */])(m) ? function () {
+ return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__connection_database_actions__["d" /* toggleTermsAcceptance */])(__WEBPACK_IMPORTED_MODULE_10__core_index__["id"](m));
+ } : undefined;
+ return terms && __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__connection_database_index__["u" /* showTerms */])(m) ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
+ __WEBPACK_IMPORTED_MODULE_14__connection_database_sign_up_terms__["a" /* default */],
+ {
+ showCheckbox: __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__connection_database_index__["t" /* mustAcceptTerms */])(m),
+ checkHandler: checkHandler,
+ checked: __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__connection_database_index__["s" /* termsAccepted */])(m)
+ },
+ terms
+ ) : null;
+ };
+
+ SignUp.prototype.render = function render() {
+ return Component;
+ };
+
+ return SignUp;
+}(__WEBPACK_IMPORTED_MODULE_1__core_screen__["a" /* default */]);
+
+/* harmony default export */ __webpack_exports__["a"] = (SignUp);
+
+/***/ }),
+/* 179 */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__store_index__ = __webpack_require__(8);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__core_error_screen__ = __webpack_require__(107);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__core_loading_screen__ = __webpack_require__(108);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__passwordless_social_or_email_login_screen__ = __webpack_require__(180);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__passwordless_social_or_phone_number_login_screen__ = __webpack_require__(181);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__connection_passwordless_ask_vcode__ = __webpack_require__(167);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__core_sso_last_login_screen__ = __webpack_require__(109);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__connection_passwordless_index__ = __webpack_require__(34);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__sync__ = __webpack_require__(29);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__core_index__ = __webpack_require__(1);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__quick_auth__ = __webpack_require__(72);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__core_sso_index__ = __webpack_require__(49);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__field_email__ = __webpack_require__(23);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__field_phone_number__ = __webpack_require__(40);
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+var setPrefill = function setPrefill(m) {
+ var _l$prefill$toJS = __WEBPACK_IMPORTED_MODULE_9__core_index__["prefill"](m).toJS(),
+ email = _l$prefill$toJS.email,
+ phoneNumber = _l$prefill$toJS.phoneNumber;
+
+ if (typeof email === 'string') {
+ m = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_12__field_email__["d" /* setEmail */])(m, email);
+ }
+ if (typeof phoneNumber === 'string') {
+ m = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_13__field_phone_number__["a" /* setPhoneNumber */])(m, phoneNumber);
+ }
+ return m;
+};
+
+var Passwordless = function () {
+ function Passwordless() {
+ _classCallCheck(this, Passwordless);
+ }
+
+ Passwordless.prototype.didInitialize = function didInitialize(m, opts) {
+ m = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_7__connection_passwordless_index__["a" /* initPasswordless */])(m, opts);
+
+ return m;
+ };
+
+ Passwordless.prototype.didReceiveClientSettings = function didReceiveClientSettings(m) {
+ var anySocialConnection = __WEBPACK_IMPORTED_MODULE_9__core_index__["hasSomeConnections"](m, 'social');
+ var anyPasswordlessConnection = __WEBPACK_IMPORTED_MODULE_9__core_index__["hasSomeConnections"](m, 'passwordless');
+
+ if (!anySocialConnection && !anyPasswordlessConnection) {
+ var error = new Error('At least one email, sms or social connection needs to be available.');
+ error.code = 'no_connection';
+ m = __WEBPACK_IMPORTED_MODULE_9__core_index__["stop"](m, error);
+ }
+ m = setPrefill(m);
+
+ return m;
+ };
+
+ Passwordless.prototype.render = function render(m) {
+ //if there's an error, we should show the error screen no matter what.
+ if (__WEBPACK_IMPORTED_MODULE_9__core_index__["hasStopped"](m)) {
+ return new __WEBPACK_IMPORTED_MODULE_1__core_error_screen__["a" /* default */]();
+ }
+
+ // TODO: remove the detail about the loading pane being pinned,
+ // sticky screens should be handled at the box module.
+ if (!__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_8__sync__["c" /* isDone */])(m) || m.get('isLoadingPanePinned')) {
+ return new __WEBPACK_IMPORTED_MODULE_2__core_loading_screen__["a" /* default */]();
+ }
+
+ if (!__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_10__quick_auth__["a" /* hasSkippedQuickAuth */])(m)) {
+ if (__WEBPACK_IMPORTED_MODULE_9__core_index__["ui"].rememberLastLogin(m)) {
+ var lastUsedConnection = __WEBPACK_IMPORTED_MODULE_11__core_sso_index__["a" /* lastUsedConnection */](m);
+ var lastUsedUsername = __WEBPACK_IMPORTED_MODULE_11__core_sso_index__["b" /* lastUsedUsername */](m);
+ if (lastUsedConnection && __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_8__sync__["b" /* isSuccess */])(m, 'sso') && __WEBPACK_IMPORTED_MODULE_9__core_index__["hasConnection"](m, lastUsedConnection.get('name')) && ['passwordless', 'social'].indexOf(__WEBPACK_IMPORTED_MODULE_9__core_index__["findConnection"](m, lastUsedConnection.get('name')).get('type')) >= 0 //if connection.type is either passwordless or social
+ ) {
+ var conn = __WEBPACK_IMPORTED_MODULE_9__core_index__["findConnection"](m, lastUsedConnection.get('name'));
+ var connectionType = conn.get('type');
+ if (connectionType === 'passwordless' || connectionType === 'social') {
+ return new __WEBPACK_IMPORTED_MODULE_6__core_sso_last_login_screen__["a" /* default */]();
+ }
+ }
+ }
+ }
+
+ if (__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_7__connection_passwordless_index__["b" /* isEmail */])(m)) {
+ return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_7__connection_passwordless_index__["c" /* isSendLink */])(m) || !__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_7__connection_passwordless_index__["d" /* passwordlessStarted */])(m) ? new __WEBPACK_IMPORTED_MODULE_3__passwordless_social_or_email_login_screen__["a" /* default */]() : new __WEBPACK_IMPORTED_MODULE_5__connection_passwordless_ask_vcode__["a" /* default */]();
+ } else {
+ return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_7__connection_passwordless_index__["d" /* passwordlessStarted */])(m) ? new __WEBPACK_IMPORTED_MODULE_5__connection_passwordless_ask_vcode__["a" /* default */]() : new __WEBPACK_IMPORTED_MODULE_4__passwordless_social_or_phone_number_login_screen__["a" /* default */]();
+ }
+ };
+
+ return Passwordless;
+}();
+
+/* harmony default export */ __webpack_exports__["a"] = (new Passwordless());
+
+/***/ }),
+/* 180 */
+/***/ (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__core_screen__ = __webpack_require__(14);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__field_email_email_pane__ = __webpack_require__(51);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__field_social_social_buttons_pane__ = __webpack_require__(52);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__core_pane_separator__ = __webpack_require__(48);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__connection_passwordless_index__ = __webpack_require__(34);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__connection_passwordless_actions__ = __webpack_require__(33);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__connection_passwordless_email_sent_confirmation__ = __webpack_require__(168);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__core_signed_in_confirmation__ = __webpack_require__(19);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__core_index__ = __webpack_require__(1);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__connection_database_sign_up_terms__ = __webpack_require__(64);
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+var Component = function Component(_ref) {
+ var i18n = _ref.i18n,
+ model = _ref.model;
+
+ var social = __WEBPACK_IMPORTED_MODULE_9__core_index__["hasSomeConnections"](model, 'social') ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3__field_social_social_buttons_pane__["a" /* default */], {
+ instructions: i18n.html('socialLoginInstructions'),
+ labelFn: i18n.str,
+ lock: model,
+ signUp: true
+ }) : null;
+
+ var email = __WEBPACK_IMPORTED_MODULE_9__core_index__["hasSomeConnections"](model, 'passwordless', 'email') ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__field_email_email_pane__["a" /* default */], { i18n: i18n, lock: model, placeholder: i18n.str('emailInputPlaceholder') }) : null;
+
+ // TODO: instructions can't be on EmailPane because it breaks the CSS,
+ // all input fields needs to share a parent so the last one doesn't have
+ // a bottom margin.
+ //
+ // Maybe we can make new PasswordlessEmailPane component.
+ var emailInstructionsI18nKey = social ? 'passwordlessEmailAlternativeInstructions' : 'passwordlessEmailInstructions';
+
+ var headerText = i18n.html(emailInstructionsI18nKey) || null;
+ var header = email && headerText && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
+ 'p',
+ null,
+ headerText
+ );
+
+ var separator = social && email ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__core_pane_separator__["a" /* default */], null) : null;
+
+ return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
+ 'div',
+ null,
+ social,
+ separator,
+ header,
+ email
+ );
+};
+
+var SocialOrEmailLoginScreen = function (_Screen) {
+ _inherits(SocialOrEmailLoginScreen, _Screen);
+
+ function SocialOrEmailLoginScreen() {
+ _classCallCheck(this, SocialOrEmailLoginScreen);
+
+ return _possibleConstructorReturn(this, _Screen.call(this, 'socialOrEmail'));
+ }
+
+ SocialOrEmailLoginScreen.prototype.submitHandler = function submitHandler(m) {
+ return __WEBPACK_IMPORTED_MODULE_9__core_index__["hasSomeConnections"](m, 'passwordless', 'email') ? __WEBPACK_IMPORTED_MODULE_6__connection_passwordless_actions__["e" /* requestPasswordlessEmail */] : null;
+ };
+
+ SocialOrEmailLoginScreen.prototype.renderAuxiliaryPane = function renderAuxiliaryPane(lock) {
+ return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_7__connection_passwordless_email_sent_confirmation__["a" /* renderEmailSentConfirmation */])(lock) || __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_8__core_signed_in_confirmation__["a" /* renderSignedInConfirmation */])(lock);
+ };
+
+ SocialOrEmailLoginScreen.prototype.render = function render() {
+ return Component;
+ };
+
+ SocialOrEmailLoginScreen.prototype.isSubmitDisabled = function isSubmitDisabled(m) {
+ return !__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__connection_passwordless_index__["e" /* termsAccepted */])(m);
+ };
+
+ SocialOrEmailLoginScreen.prototype.renderTerms = function renderTerms(m, terms) {
+ var checkHandler = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__connection_passwordless_index__["f" /* mustAcceptTerms */])(m) ? function () {
+ return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__connection_passwordless_actions__["b" /* toggleTermsAcceptance */])(__WEBPACK_IMPORTED_MODULE_9__core_index__["id"](m));
+ } : undefined;
+ return terms || __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__connection_passwordless_index__["f" /* mustAcceptTerms */])(m) ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
+ __WEBPACK_IMPORTED_MODULE_10__connection_database_sign_up_terms__["a" /* default */],
+ {
+ showCheckbox: __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__connection_passwordless_index__["f" /* mustAcceptTerms */])(m),
+ checkHandler: checkHandler,
+ checked: __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__connection_passwordless_index__["e" /* termsAccepted */])(m)
+ },
+ terms
+ ) : null;
+ };
+
+ return SocialOrEmailLoginScreen;
+}(__WEBPACK_IMPORTED_MODULE_1__core_screen__["a" /* default */]);
+
+/* harmony default export */ __webpack_exports__["a"] = (SocialOrEmailLoginScreen);
+
+/***/ }),
+/* 181 */
+/***/ (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__core_screen__ = __webpack_require__(14);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__connection_passwordless_actions__ = __webpack_require__(33);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__field_phone_number_phone_number_pane__ = __webpack_require__(190);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__field_social_social_buttons_pane__ = __webpack_require__(52);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__core_signed_in_confirmation__ = __webpack_require__(19);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__core_pane_separator__ = __webpack_require__(48);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__core_index__ = __webpack_require__(1);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__field_index__ = __webpack_require__(4);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__connection_passwordless_index__ = __webpack_require__(34);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__connection_database_sign_up_terms__ = __webpack_require__(64);
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+var Component = function Component(_ref) {
+ var i18n = _ref.i18n,
+ model = _ref.model;
+
+ var social = __WEBPACK_IMPORTED_MODULE_7__core_index__["hasSomeConnections"](model, 'social') ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__field_social_social_buttons_pane__["a" /* default */], {
+ instructions: i18n.html('socialLoginInstructions'),
+ labelFn: i18n.str,
+ lock: model,
+ signUp: true
+ }) : null;
+
+ var phoneNumberInstructionsI18nKey = social ? 'passwordlessSMSAlternativeInstructions' : 'passwordlessSMSInstructions';
+
+ var phoneNumber = __WEBPACK_IMPORTED_MODULE_7__core_index__["hasSomeConnections"](model, 'passwordless', 'sms') ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3__field_phone_number_phone_number_pane__["a" /* default */], {
+ instructions: i18n.html(phoneNumberInstructionsI18nKey),
+ lock: model,
+ placeholder: i18n.str('phoneNumberInputPlaceholder'),
+ invalidHint: i18n.str('phoneNumberInputInvalidHint')
+ }) : null;
+
+ var separator = social && phoneNumber ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6__core_pane_separator__["a" /* default */], null) : null;
+
+ return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
+ 'div',
+ null,
+ social,
+ separator,
+ phoneNumber
+ );
+};
+
+var AskSocialNetworkOrPhoneNumber = function (_Screen) {
+ _inherits(AskSocialNetworkOrPhoneNumber, _Screen);
+
+ function AskSocialNetworkOrPhoneNumber() {
+ _classCallCheck(this, AskSocialNetworkOrPhoneNumber);
+
+ return _possibleConstructorReturn(this, _Screen.call(this, 'socialOrPhoneNumber'));
+ }
+
+ AskSocialNetworkOrPhoneNumber.prototype.submitHandler = function submitHandler(m) {
+ return __WEBPACK_IMPORTED_MODULE_7__core_index__["hasSomeConnections"](m, 'passwordless', 'sms') ? __WEBPACK_IMPORTED_MODULE_2__connection_passwordless_actions__["a" /* sendSMS */] : null;
+ };
+
+ AskSocialNetworkOrPhoneNumber.prototype.renderAuxiliaryPane = function renderAuxiliaryPane(lock) {
+ return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__core_signed_in_confirmation__["a" /* renderSignedInConfirmation */])(lock) || __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_8__field_index__["l" /* renderOptionSelection */])(lock);
+ };
+
+ AskSocialNetworkOrPhoneNumber.prototype.render = function render() {
+ return Component;
+ };
+
+ AskSocialNetworkOrPhoneNumber.prototype.isSubmitDisabled = function isSubmitDisabled(m) {
+ return !__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_9__connection_passwordless_index__["e" /* termsAccepted */])(m);
+ };
+
+ AskSocialNetworkOrPhoneNumber.prototype.renderTerms = function renderTerms(m, terms) {
+ var checkHandler = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_9__connection_passwordless_index__["f" /* mustAcceptTerms */])(m) ? function () {
+ return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__connection_passwordless_actions__["b" /* toggleTermsAcceptance */])(__WEBPACK_IMPORTED_MODULE_7__core_index__["id"](m));
+ } : undefined;
+ return terms || __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_9__connection_passwordless_index__["f" /* mustAcceptTerms */])(m) ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
+ __WEBPACK_IMPORTED_MODULE_10__connection_database_sign_up_terms__["a" /* default */],
+ {
+ showCheckbox: __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_9__connection_passwordless_index__["f" /* mustAcceptTerms */])(m),
+ checkHandler: checkHandler,
+ checked: __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_9__connection_passwordless_index__["e" /* termsAccepted */])(m)
+ },
+ terms
+ ) : null;
+ };
+
+ return AskSocialNetworkOrPhoneNumber;
+}(__WEBPACK_IMPORTED_MODULE_1__core_screen__["a" /* default */]);
+
+/* harmony default export */ __webpack_exports__["a"] = (AskSocialNetworkOrPhoneNumber);
+
+/***/ }),
+/* 182 */
+/***/ (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_prop_types__ = __webpack_require__(3);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ui_input_captcha_input__ = __webpack_require__(202);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__core_index__ = __webpack_require__(1);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__store_index__ = __webpack_require__(8);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__captcha__ = __webpack_require__(68);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__index__ = __webpack_require__(4);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__recaptchav2__ = __webpack_require__(183);
+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; }
+
+/* eslint-disable no-nested-ternary */
+
+
+
+
+
+
+
+
+
+
+var CaptchaPane = function (_React$Component) {
+ _inherits(CaptchaPane, _React$Component);
+
+ function CaptchaPane() {
+ _classCallCheck(this, CaptchaPane);
+
+ return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
+ }
+
+ CaptchaPane.prototype.render = function render() {
+ var _props = this.props,
+ i18n = _props.i18n,
+ lock = _props.lock,
+ onReload = _props.onReload;
+
+
+ var lockId = __WEBPACK_IMPORTED_MODULE_3__core_index__["id"](lock);
+
+ function handleChange(e) {
+ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__store_index__["b" /* swap */])(__WEBPACK_IMPORTED_MODULE_4__store_index__["g" /* updateEntity */], 'lock', lockId, __WEBPACK_IMPORTED_MODULE_5__captcha__["b" /* set */], e.target.value);
+ }
+
+ var captcha = __WEBPACK_IMPORTED_MODULE_3__core_index__["captcha"](lock);
+
+ if (captcha.get('provider') === 'recaptcha_v2') {
+ return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__recaptchav2__["a" /* default */], { lock: lock, siteKey: captcha.get('siteKey') });
+ }
+
+ var placeholder = captcha.get('type') === 'code' ? i18n.str('captchaCodeInputPlaceholder') : i18n.str('captchaMathInputPlaceholder');
+
+ var value = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__index__["e" /* getFieldValue */])(lock, 'captcha');
+ var isValid = !__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__index__["k" /* isFieldVisiblyInvalid */])(lock, 'captcha');
+
+ return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__ui_input_captcha_input__["a" /* default */], {
+ lockId: lockId,
+ image: captcha.get('image'),
+ placeholder: placeholder,
+ isValid: isValid,
+ onChange: handleChange,
+ onReload: onReload,
+ value: value,
+ invalidHint: i18n.str('blankErrorHint')
+ });
+ };
+
+ return CaptchaPane;
+}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component);
+
+/* harmony default export */ __webpack_exports__["a"] = (CaptchaPane);
+
+
+CaptchaPane.propTypes = {
+ i18n: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object.isRequired,
+ lock: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object.isRequired,
+ error: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,
+ onReload: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func.isRequired
+};
+
+CaptchaPane.defaultProps = {
+ error: false
+};
+
+/***/ }),
+/* 183 */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* unused harmony export render */
+/* 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_immutable__ = __webpack_require__(10);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_immutable___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_immutable__);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__core_index__ = __webpack_require__(1);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__store__ = __webpack_require__(8);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__captcha__ = __webpack_require__(68);
+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 isScriptAvailable(scriptUrl) {
+ //check the window object
+ if (window.grecaptcha && typeof window.grecaptcha.render === 'function') {
+ return true;
+ }
+ //check the scripts element, it might be loading
+ var allScripts = new __WEBPACK_IMPORTED_MODULE_1_immutable__["Set"](document.scripts);
+ return allScripts.some(function (s) {
+ return s.src === scriptUrl;
+ });
+}
+
+function injectGoogleCaptchaIfMissing(lock) {
+ var lang = __WEBPACK_IMPORTED_MODULE_2__core_index__["ui"].language(lock);
+ var scriptUrl = 'https://www.google.com/recaptcha/api.js?hl=' + lang;
+ if (isScriptAvailable(scriptUrl)) {
+ return;
+ }
+ var script = document.createElement('script');
+ script.src = scriptUrl;
+ script.async = true;
+ document.body.appendChild(script);
+}
+
+/**
+ * waits until google recaptcha is ready and renders
+ */
+function renderElement(lock, el, prop) {
+ if (!window.grecaptcha || typeof window.grecaptcha.render !== 'function') {
+ return setTimeout(function () {
+ return renderElement(lock, el, prop);
+ }, 100);
+ }
+
+ var id = __WEBPACK_IMPORTED_MODULE_2__core_index__["id"](lock);
+ try {
+ window.grecaptcha.render(el, _extends({
+ callback: function callback(value) {
+ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__store__["b" /* swap */])(__WEBPACK_IMPORTED_MODULE_3__store__["g" /* updateEntity */], 'lock', id, __WEBPACK_IMPORTED_MODULE_4__captcha__["b" /* set */], value, false);
+ },
+ 'expired-callback': function expiredCallback() {
+ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__store__["b" /* swap */])(__WEBPACK_IMPORTED_MODULE_3__store__["g" /* updateEntity */], 'lock', id, __WEBPACK_IMPORTED_MODULE_4__captcha__["a" /* reset */]);
+ }
+ }, prop));
+ } catch (err) {}
+}
+
+function render(lock, element, properties) {
+ if (!element || element.innerHTML !== '') {
+ return;
+ }
+
+ injectGoogleCaptchaIfMissing(lock);
+
+ renderElement(lock, element, properties);
+}
+
+/* harmony default export */ __webpack_exports__["a"] = (function (_ref) {
+ var lock = _ref.lock,
+ siteKey = _ref.siteKey;
+ return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', {
+ style: { transform: 'scale(0.86)', transformOrigin: '0 0', position: 'relative' },
+ className: 'auth0-lock-recaptchav2',
+ ref: function ref(el) {
+ return render(lock, el, { sitekey: siteKey });
+ }
+ });
+});
+
+/***/ }),
+/* 184 */
+/***/ (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__actions__ = __webpack_require__(67);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__index__ = __webpack_require__(4);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ui_input_text_input__ = __webpack_require__(113);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__ui_input_select_input__ = __webpack_require__(112);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__ui_input_checkbox_input__ = __webpack_require__(203);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__core_index__ = __webpack_require__(1);
+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 CustomInput = function CustomInput(_ref) {
+ var iconUrl = _ref.iconUrl,
+ model = _ref.model,
+ name = _ref.name,
+ ariaLabel = _ref.ariaLabel,
+ placeholder = _ref.placeholder,
+ placeholderHTML = _ref.placeholderHTML,
+ type = _ref.type,
+ validator = _ref.validator,
+ value = _ref.value;
+
+ var props = {
+ iconUrl: iconUrl,
+ isValid: !__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__index__["k" /* isFieldVisiblyInvalid */])(model, name),
+ name: name,
+ ariaLabel: ariaLabel,
+ placeholder: placeholder
+ };
+
+ switch (type) {
+ case 'select':
+ return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__ui_input_select_input__["a" /* default */], _extends({}, props, {
+ lockId: __WEBPACK_IMPORTED_MODULE_6__core_index__["id"](model),
+ label: __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__index__["n" /* getFieldLabel */])(model, name),
+ onClick: function onClick() {
+ return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__actions__["c" /* startOptionSelection */])(__WEBPACK_IMPORTED_MODULE_6__core_index__["id"](model), name, iconUrl);
+ }
+ }));
+ case 'checkbox':
+ return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5__ui_input_checkbox_input__["a" /* default */], _extends({
+ lockId: __WEBPACK_IMPORTED_MODULE_6__core_index__["id"](model),
+ onChange: function onChange(e) {
+ return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__actions__["d" /* changeField */])(__WEBPACK_IMPORTED_MODULE_6__core_index__["id"](model), name, '' + e.target.checked, validator);
+ },
+ checked: __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__index__["e" /* getFieldValue */])(model, name),
+ placeholderHTML: placeholderHTML
+ }, props));
+ case 'hidden':
+ return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('input', { id: __WEBPACK_IMPORTED_MODULE_6__core_index__["id"](model), type: 'hidden', value: value, name: name });
+ default:
+ return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3__ui_input_text_input__["a" /* default */], _extends({
+ lockId: __WEBPACK_IMPORTED_MODULE_6__core_index__["id"](model),
+ invalidHint: __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__index__["o" /* getFieldInvalidHint */])(model, name),
+ onChange: function onChange(e) {
+ return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__actions__["d" /* changeField */])(__WEBPACK_IMPORTED_MODULE_6__core_index__["id"](model), name, e.target.value, validator);
+ },
+ value: __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__index__["e" /* getFieldValue */])(model, name)
+ }, props));
+ }
+};
+
+/* harmony default export */ __webpack_exports__["a"] = (CustomInput);
+
+/***/ }),
+/* 185 */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types__ = __webpack_require__(3);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_prop_types__);
+/* 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__ui_input_mfa_code_input__ = __webpack_require__(205);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__index__ = __webpack_require__(4);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__store_index__ = __webpack_require__(8);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__core_index__ = __webpack_require__(1);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__mfa_code__ = __webpack_require__(186);
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+
+
+
+
+
+
+
+
+
+var MFACodePane = function (_React$Component) {
+ _inherits(MFACodePane, _React$Component);
+
+ function MFACodePane() {
+ _classCallCheck(this, MFACodePane);
+
+ return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
+ }
+
+ MFACodePane.prototype.handleChange = function handleChange(e) {
+ var lock = this.props.lock;
+
+ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__store_index__["b" /* swap */])(__WEBPACK_IMPORTED_MODULE_4__store_index__["g" /* updateEntity */], 'lock', __WEBPACK_IMPORTED_MODULE_5__core_index__["id"](lock), __WEBPACK_IMPORTED_MODULE_6__mfa_code__["a" /* setMFACode */], e.target.value);
+ };
+
+ MFACodePane.prototype.render = function render() {
+ var _props = this.props,
+ i18n = _props.i18n,
+ lock = _props.lock,
+ placeholder = _props.placeholder;
+
+
+ return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__ui_input_mfa_code_input__["a" /* default */], {
+ lockId: __WEBPACK_IMPORTED_MODULE_5__core_index__["id"](lock),
+ value: __WEBPACK_IMPORTED_MODULE_3__index__["e" /* getFieldValue */](lock, 'mfa_code'),
+ invalidHint: i18n.str('mfaCodeErrorHint', __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__mfa_code__["b" /* getMFACodeValidation */])().length),
+ isValid: !__WEBPACK_IMPORTED_MODULE_3__index__["k" /* isFieldVisiblyInvalid */](lock, 'mfa_code'),
+ onChange: this.handleChange.bind(this),
+ placeholder: placeholder
+ });
+ };
+
+ return MFACodePane;
+}(__WEBPACK_IMPORTED_MODULE_1_react___default.a.Component);
+
+/* harmony default export */ __webpack_exports__["a"] = (MFACodePane);
+
+
+MFACodePane.propTypes = {
+ i18n: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.object.isRequired,
+ lock: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.object.isRequired,
+ placeholder: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string.isRequired
+};
+
+/***/ }),
+/* 186 */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony export (immutable) */ __webpack_exports__["a"] = setMFACode;
+/* harmony export (immutable) */ __webpack_exports__["b"] = getMFACodeValidation;
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__index__ = __webpack_require__(4);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__email__ = __webpack_require__(23);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__connection_database__ = __webpack_require__(11);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_trim__ = __webpack_require__(32);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_trim___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_trim__);
+
+
+
+
+
+var DEFAULT_VALIDATION = { mfa_code: { length: 6 } };
+var regExp = /^[0-9]+$/;
+
+function validateMFACode(str) {
+ var settings = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_VALIDATION.mfa_code;
+
+ var value = __WEBPACK_IMPORTED_MODULE_3_trim___default()(str);
+
+ // check min value matched
+ if (value.length < settings.length) {
+ return false;
+ }
+
+ // check max value matched
+ if (value.length > settings.length) {
+ return false;
+ }
+
+ // check allowed characters matched
+ var result = regExp.exec(value);
+ return result && result[0];
+}
+
+function setMFACode(m, str) {
+ return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__index__["g" /* setField */])(m, 'mfa_code', str, validateMFACode);
+}
+
+function getMFACodeValidation(m) {
+ return DEFAULT_VALIDATION.mfa_code;
+}
+
+/***/ }),
+/* 187 */
+/***/ (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__ui_list__ = __webpack_require__(210);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__actions__ = __webpack_require__(67);
+
+
+
+// TODO: these actions should be passed as props
+
+/* harmony default export */ __webpack_exports__["a"] = (function (_ref) {
+ var icon = _ref.icon,
+ iconUrl = _ref.iconUrl,
+ model = _ref.model,
+ name = _ref.name,
+ items = _ref.items;
+ return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_1__ui_list__["a" /* default */], {
+ model: model,
+ icon: icon,
+ iconUrl: iconUrl,
+ items: items,
+ onSelect: function onSelect(x) {
+ return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__actions__["a" /* selectOption */])(model.get('id'), name, x);
+ },
+ onCancel: function onCancel() {
+ return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__actions__["b" /* cancelOptionSelection */])(model.get('id'));
+ }
+ });
+});
+
+/***/ }),
+/* 188 */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* unused harmony export validatePassword */
+/* harmony export (immutable) */ __webpack_exports__["a"] = setPassword;
+/* harmony export (immutable) */ __webpack_exports__["b"] = setShowPassword;
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_password_sheriff_lib_policy__ = __webpack_require__(78);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_password_sheriff_lib_policy___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_password_sheriff_lib_policy__);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__index__ = __webpack_require__(4);
+
+
+
+function validatePassword(password, policy) {
+ if (!password) {
+ return false;
+ }
+ if (!policy) {
+ return true;
+ }
+ return new __WEBPACK_IMPORTED_MODULE_0_password_sheriff_lib_policy___default.a(policy.toJS()).check(password);
+}
+
+function setPassword(m, password, policy) {
+ return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__index__["g" /* setField */])(m, 'password', password, validatePassword, policy);
+}
+
+function setShowPassword(m, checked) {
+ return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__index__["g" /* setField */])(m, 'showPassword', checked, function () {
+ return true;
+ });
+}
+
+/***/ }),
+/* 189 */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony default export */ __webpack_exports__["a"] = ([['Afghanistan', 'AF', '+93'], ['Albania', 'AL', '+355'], ['Algeria', 'DZ', '+213'], ['American Samoa', 'AS', '+1684'], ['Andorra', 'AD', '+376'], ['Angola', 'AO', '+244'], ['Anguilla', 'AI', '+1264'], ['Antarctica', 'AQ', '+672'], ['Antigua and Barbuda', 'AG', '+1268'], ['Argentina', 'AR', '+54 9'], ['Armenia', 'AM', '+374'], ['Aruba', 'AW', '+297'], ['Australia', 'AU', '+61'], ['Austria', 'AT', '+43'], ['Azerbaijan', 'AZ', '+994'], ['Bahamas', 'BS', '+1242'], ['Bahrain', 'BH', '+973'], ['Bangladesh', 'BD', '+880'], ['Barbados', 'BB', '+1246'], ['Belarus', 'BY', '+375'], ['Belgium', 'BE', '+32'], ['Belize', 'BZ', '+501'], ['Benin', 'BJ', '+229'], ['Bermuda', 'BM', '+1441'], ['Bhutan', 'BT', '+975'], ['Bolivia, Plurinational State of', 'BO', '+591'], ['Bonaire, Sint Eustatius and Saba', 'BQ', '+599'], ['Bosnia and Herzegovina', 'BA', '+387'], ['Botswana', 'BW', '+267'], ['Bouvet Island', 'BV', '+47'], ['Brazil', 'BR', '+55'], ['British Indian Ocean Territory', 'IO', '+246'], ['Brunei Darussalam', 'BN', '+673'], ['Bulgaria', 'BG', '+359'], ['Burkina Faso', 'BF', '+226'], ['Burundi', 'BI', '+257'], ['Cambodia', 'KH', '+855'], ['Cameroon', 'CM', '+237'], ['Canada', 'CA', '+1'], ['Cape Verde', 'CV', '+238'], ['Cayman Islands', 'KY', '+1345'], ['Central African Republic', 'CF', '+236'], ['Chad', 'TD', '+235'], ['Chile', 'CL', '+56'], ['China', 'CN', '+86'], ['Christmas Island', 'CX', '+61'], ['Cocos (Keeling) Islands', 'CC', '+61'], ['Colombia', 'CO', '+57'], ['Comoros', 'KM', '+269'], ['Congo', 'CG', '+242'], ['Congo, the Democratic Republic of the', 'CD', '+243'], ['Cook Islands', 'CK', '+682'], ['Costa Rica', 'CR', '+506'], ['Croatia', 'HR', '+385'], ['Cuba', 'CU', '+53'], ['Curaçao', 'CW', '+599'], ['Cyprus', 'CY', '+357'], ['Czech Republic', 'CZ', '+420'], ["Côte d'Ivoire", 'CI', '+225'], ['Denmark', 'DK', '+45'], ['Djibouti', 'DJ', '+253'], ['Dominica', 'DM', '+1767'], ['Dominican Republic', 'DO', '+1809'], ['Dominican Republic', 'DO', '+1829'], ['Dominican Republic', 'DO', '+1849'], ['Ecuador', 'EC', '+593'], ['Egypt', 'EG', '+20'], ['El Salvador', 'SV', '+503'], ['Equatorial Guinea', 'GQ', '+240'], ['Eritrea', 'ER', '+291'], ['Estonia', 'EE', '+372'], ['Ethiopia', 'ET', '+251'], ['Falkland Islands (Malvinas)', 'FK', '+500'], ['Faroe Islands', 'FO', '+298'], ['Fiji', 'FJ', '+679'], ['Finland', 'FI', '+358'], ['France', 'FR', '+33'], ['French Guiana', 'GF', '+594'], ['French Polynesia', 'PF', '+689'], ['French Southern Territories', 'TF', '+262'], ['Gabon', 'GA', '+241'], ['Gambia', 'GM', '+220'], ['Georgia', 'GE', '+995'], ['Germany', 'DE', '+49'], ['Ghana', 'GH', '+233'], ['Gibraltar', 'GI', '+350'], ['Greece', 'GR', '+30'], ['Greenland', 'GL', '+299'], ['Grenada', 'GD', '+1473'], ['Guadeloupe', 'GP', '+590'], ['Guam', 'GU', '+1671'], ['Guatemala', 'GT', '+502'], ['Guernsey', 'GG', '+44'], ['Guinea', 'GN', '+224'], ['Guinea-Bissau', 'GW', '+245'], ['Guyana', 'GY', '+592'], ['Haiti', 'HT', '+509'], ['Heard Island and McDonald Mcdonald Islands', 'HM', '+672'], ['Holy See (Vatican City State)', 'VA', '+3906'], ['Honduras', 'HN', '+504'], ['Hong Kong', 'HK', '+852'], ['Hungary', 'HU', '+36'], ['Iceland', 'IS', '+354'], ['India', 'IN', '+91'], ['Indonesia', 'ID', '+62'], ['Iran, Islamic Republic of', 'IR', '+98'], ['Iraq', 'IQ', '+964'], ['Ireland', 'IE', '+353'], ['Isle of Man', 'IM', '+44'], ['Israel', 'IL', '+972'], ['Italy', 'IT', '+39'], ['Jamaica', 'JM', '+1876'], ['Japan', 'JP', '+81'], ['Jersey', 'JE', '+44'], ['Jordan', 'JO', '+962'], ['Kazakhstan', 'KZ', '+7'], ['Kenya', 'KE', '+254'], ['Kiribati', 'KI', '+686'], ["Korea, Democratic People's Republic of", 'KP', '+850'], ['Korea, Republic of', 'KR', '+82'], ['Kuwait', 'KW', '+965'], ['Kyrgyzstan', 'KG', '+996'], ["Lao People's Democratic Republic", 'LA', '+856'], ['Latvia', 'LV', '+371'], ['Lebanon', 'LB', '+961'], ['Lesotho', 'LS', '+266'], ['Liberia', 'LR', '+231'], ['Libya', 'LY', '+218'], ['Liechtenstein', 'LI', '+423'], ['Lithuania', 'LT', '+370'], ['Luxembourg', 'LU', '+352'], ['Macao', 'MO', '+853'], ['Macedonia, the Former Yugoslav Republic of', 'MK', '+389'], ['Madagascar', 'MG', '+261'], ['Malawi', 'MW', '+265'], ['Malaysia', 'MY', '+60'], ['Maldives', 'MV', '+960'], ['Mali', 'ML', '+223'], ['Malta', 'MT', '+356'], ['Marshall Islands', 'MH', '+692'], ['Martinique', 'MQ', '+596'], ['Mauritania', 'MR', '+222'], ['Mauritius', 'MU', '+230'], ['Mayotte', 'YT', '+262'], ['Mexico', 'MX', '+52'], ['Micronesia, Federated States of', 'FM', '+691'], ['Moldova, Republic of', 'MD', '+373'], ['Monaco', 'MC', '+377'], ['Mongolia', 'MN', '+976'], ['Montenegro', 'ME', '+382'], ['Montserrat', 'MS', '+1664'], ['Morocco', 'MA', '+212'], ['Mozambique', 'MZ', '+258'], ['Myanmar', 'MM', '+95'], ['Namibia', 'NA', '+264'], ['Nauru', 'NR', '+674'], ['Nepal', 'NP', '+977'], ['Netherlands', 'NL', '+31'], ['New Caledonia', 'NC', '+687'], ['New Zealand', 'NZ', '+64'], ['Nicaragua', 'NI', '+505'], ['Niger', 'NE', '+227'], ['Nigeria', 'NG', '+234'], ['Niue', 'NU', '+683'], ['Norfolk Island', 'NF', '+672'], ['Northern Mariana Islands', 'MP', '+1670'], ['Norway', 'NO', '+47'], ['Oman', 'OM', '+968'], ['Pakistan', 'PK', '+92'], ['Palau', 'PW', '+680'], ['Palestine, State of', 'PS', '+970'], ['Panama', 'PA', '+507'], ['Papua New Guinea', 'PG', '+675'], ['Paraguay', 'PY', '+595'], ['Peru', 'PE', '+51'], ['Philippines', 'PH', '+63'], ['Pitcairn', 'PN', '+870'], ['Poland', 'PL', '+48'], ['Portugal', 'PT', '+351'], ['Puerto Rico', 'PR', '+1'], ['Qatar', 'QA', '+974'], ['Romania', 'RO', '+40'], ['Russian Federation', 'RU', '+7'], ['Rwanda', 'RW', '+250'], ['Réunion', 'RE', '+262'], ['Saint Barthélemy', 'BL', '+590'], ['Saint Helena, Ascension and Tristan da Cunha', 'SH', '+290'], ['Saint Kitts and Nevis', 'KN', '+1869'], ['Saint Lucia', 'LC', '+1758'], ['Saint Martin (French part)', 'MF', '+590'], ['Saint Pierre and Miquelon', 'PM', '+508'], ['Saint Vincent and the Grenadines', 'VC', '+1784'], ['Samoa', 'WS', '+685'], ['San Marino', 'SM', '+378'], ['Sao Tome and Principe', 'ST', '+239'], ['Saudi Arabia', 'SA', '+966'], ['Senegal', 'SN', '+221'], ['Serbia', 'RS', '+381'], ['Seychelles', 'SC', '+248'], ['Sierra Leone', 'SL', '+232'], ['Singapore', 'SG', '+65'], ['Sint Maarten (Dutch part)', 'SX', '+1721'], ['Slovakia', 'SK', '+421'], ['Slovenia', 'SI', '+386'], ['Solomon Islands', 'SB', '+677'], ['Somalia', 'SO', '+252'], ['South Africa', 'ZA', '+27'], ['South Georgia and the South Sandwich Islands', 'GS', '+500'], ['South Sudan', 'SS', '+211'], ['Spain', 'ES', '+34'], ['Sri Lanka', 'LK', '+94'], ['Sudan', 'SD', '+249'], ['Suriname', 'SR', '+597'], ['Svalbard and Jan Mayen', 'SJ', '+47'], ['Swaziland', 'SZ', '+268'], ['Sweden', 'SE', '+46'], ['Switzerland', 'CH', '+41'], ['Syrian Arab Republic', 'SY', '+963'], ['Taiwan, Province of China', 'TW', '+886'], ['Tajikistan', 'TJ', '+992'], ['Tanzania, United Republic of', 'TZ', '+255'], ['Thailand', 'TH', '+66'], ['Timor-Leste', 'TL', '+670'], ['Togo', 'TG', '+228'], ['Tokelau', 'TK', '+690'], ['Tonga', 'TO', '+676'], ['Trinidad and Tobago', 'TT', '+1868'], ['Tunisia', 'TN', '+216'], ['Turkey', 'TR', '+90'], ['Turkmenistan', 'TM', '+993'], ['Turks and Caicos Islands', 'TC', '+1649'], ['Tuvalu', 'TV', '+688'], ['Uganda', 'UG', '+256'], ['Ukraine', 'UA', '+380'], ['United Arab Emirates', 'AE', '+971'], ['United Kingdom', 'GB', '+44'], ['United States', 'US', '+1'], ['Uruguay', 'UY', '+598'], ['Uzbekistan', 'UZ', '+998'], ['Vanuatu', 'VU', '+678'], ['Venezuela, Bolivarian Republic of', 'VE', '+58'], ['Viet Nam', 'VN', '+84'], ['Virgin Islands, British', 'VG', '+1284'], ['Virgin Islands, U.S.', 'VI', '+1340'], ['Wallis and Futuna', 'WF', '+681'], ['Western Sahara', 'EH', '+212'], ['Yemen', 'YE', '+967'], ['Zambia', 'ZM', '+260'], ['Zimbabwe', 'ZW', '+263'], ['Åland Islands', 'AX', '+358']]);
+
+/***/ }),
+/* 190 */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* unused harmony export icon */
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types__ = __webpack_require__(3);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_prop_types__);
+/* 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__ui_input_phone_number_input__ = __webpack_require__(207);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ui_input_select_input__ = __webpack_require__(112);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__actions__ = __webpack_require__(67);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__index__ = __webpack_require__(4);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__core_index__ = __webpack_require__(1);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__store_index__ = __webpack_require__(8);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__phone_number__ = __webpack_require__(40);
+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; }
+
+
+
+
+
+// import LocationInput from '../../ui/input/location_input';
+
+
+
+
+
+
+
+
+var icon = '';
+
+var PhoneNumberPane = function (_React$Component) {
+ _inherits(PhoneNumberPane, _React$Component);
+
+ function PhoneNumberPane() {
+ _classCallCheck(this, PhoneNumberPane);
+
+ return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
+ }
+
+ PhoneNumberPane.prototype.handlePhoneNumberChange = function handlePhoneNumberChange(e) {
+ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_7__store_index__["b" /* swap */])(__WEBPACK_IMPORTED_MODULE_7__store_index__["g" /* updateEntity */], 'lock', __WEBPACK_IMPORTED_MODULE_6__core_index__["id"](this.props.lock), __WEBPACK_IMPORTED_MODULE_8__phone_number__["a" /* setPhoneNumber */], e.target.value);
+ };
+
+ PhoneNumberPane.prototype.render = function render() {
+ var _props = this.props,
+ instructions = _props.instructions,
+ lock = _props.lock,
+ placeholder = _props.placeholder,
+ invalidHint = _props.invalidHint;
+
+ var headerText = instructions || null;
+ var header = headerText && __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ 'p',
+ null,
+ headerText
+ );
+
+ return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ 'div',
+ null,
+ header,
+ __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3__ui_input_select_input__["a" /* default */], {
+ icon: icon,
+ isValid: !__WEBPACK_IMPORTED_MODULE_5__index__["k" /* isFieldVisiblyInvalid */](lock, 'location'),
+ name: 'location',
+ placeholder: '',
+ label: __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_8__phone_number__["d" /* humanLocation */])(lock),
+ onClick: function onClick() {
+ return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__actions__["c" /* startOptionSelection */])(__WEBPACK_IMPORTED_MODULE_6__core_index__["id"](lock), 'location', '', icon);
+ }
+ }),
+ __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__ui_input_phone_number_input__["a" /* default */], {
+ value: __WEBPACK_IMPORTED_MODULE_5__index__["r" /* phoneNumber */](lock),
+ isValid: !__WEBPACK_IMPORTED_MODULE_5__index__["k" /* isFieldVisiblyInvalid */](lock, 'phoneNumber'),
+ invalidHint: invalidHint,
+ onChange: this.handlePhoneNumberChange.bind(this),
+ placeholder: placeholder,
+ disabled: __WEBPACK_IMPORTED_MODULE_6__core_index__["submitting"](lock)
+ })
+ );
+ };
+
+ return PhoneNumberPane;
+}(__WEBPACK_IMPORTED_MODULE_1_react___default.a.Component);
+
+/* harmony default export */ __webpack_exports__["a"] = (PhoneNumberPane);
+
+
+PhoneNumberPane.propTypes = {
+ instructions: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.element,
+ lock: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.object.isRequired,
+ placeholder: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string.isRequired,
+ invalidHint: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string
+};
+
+/***/ }),
+/* 191 */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony export (immutable) */ __webpack_exports__["a"] = emitFederatedLoginEvent;
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__core_index__ = __webpack_require__(1);
+
+
+function emitFederatedLoginEvent(lock, provider, isSignUp) {
+ var prov = void 0;
+
+ try {
+ prov = provider.toJS();
+ } catch (e) {
+ prov = provider;
+ }
+
+ __WEBPACK_IMPORTED_MODULE_0__core_index__["emitEvent"](lock, 'federated login', {
+ name: prov.name,
+ strategy: prov.strategy,
+ action: isSignUp ? 'signup' : 'signin'
+ });
+}
+
+/***/ }),
+/* 192 */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony export (immutable) */ __webpack_exports__["a"] = setVcode;
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__index__ = __webpack_require__(4);
+
+
+function setVcode(m, str) {
+ return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__index__["g" /* setField */])(m, 'vcode', str.replace(/[\s-]+/g, ''));
+}
+
+/***/ }),
+/* 193 */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types__ = __webpack_require__(3);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_prop_types__);
+/* 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__ui_input_vcode_input__ = __webpack_require__(209);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__core_index__ = __webpack_require__(1);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__index__ = __webpack_require__(4);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__utils_media_utils__ = __webpack_require__(56);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__store_index__ = __webpack_require__(8);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__vcode__ = __webpack_require__(192);
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+
+
+
+
+
+
+
+
+
+
+var VcodePane = function (_React$Component) {
+ _inherits(VcodePane, _React$Component);
+
+ function VcodePane() {
+ _classCallCheck(this, VcodePane);
+
+ return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
+ }
+
+ VcodePane.prototype.handleVcodeChange = function handleVcodeChange(e) {
+ e.preventDefault();
+ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__store_index__["b" /* swap */])(__WEBPACK_IMPORTED_MODULE_6__store_index__["g" /* updateEntity */], 'lock', __WEBPACK_IMPORTED_MODULE_3__core_index__["id"](this.props.lock), __WEBPACK_IMPORTED_MODULE_7__vcode__["a" /* setVcode */], e.target.value);
+ };
+
+ VcodePane.prototype.handleResendClick = function handleResendClick(e) {
+ e.preventDefault();
+ var _props = this.props,
+ lock = _props.lock,
+ onRestart = _props.onRestart;
+
+ onRestart(__WEBPACK_IMPORTED_MODULE_3__core_index__["id"](lock));
+ };
+
+ VcodePane.prototype.render = function render() {
+ var _props2 = this.props,
+ instructions = _props2.instructions,
+ lock = _props2.lock,
+ placeholder = _props2.placeholder,
+ resendLabel = _props2.resendLabel;
+
+ var headerText = instructions || null;
+ var header = headerText && __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ 'p',
+ null,
+ headerText
+ );
+
+ return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ 'div',
+ null,
+ header,
+ __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__ui_input_vcode_input__["a" /* default */], {
+ lockId: __WEBPACK_IMPORTED_MODULE_3__core_index__["id"](lock),
+ value: __WEBPACK_IMPORTED_MODULE_4__index__["s" /* vcode */](lock),
+ isValid: !__WEBPACK_IMPORTED_MODULE_4__index__["k" /* isFieldVisiblyInvalid */](lock, 'vcode') && !__WEBPACK_IMPORTED_MODULE_3__core_index__["globalError"](lock),
+ onChange: this.handleVcodeChange.bind(this),
+ autoFocus: !__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__utils_media_utils__["a" /* isSmallScreen */])(),
+ placeholder: placeholder,
+ disabled: __WEBPACK_IMPORTED_MODULE_3__core_index__["submitting"](lock)
+ }),
+ __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ 'p',
+ { className: 'auth0-lock-alternative' },
+ __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ 'a',
+ {
+ className: 'auth0-lock-alternative-link',
+ href: 'javascript:void(0)',
+ onClick: this.handleResendClick.bind(this)
+ },
+ resendLabel
+ )
+ )
+ );
+ };
+
+ return VcodePane;
+}(__WEBPACK_IMPORTED_MODULE_1_react___default.a.Component);
+
+/* harmony default export */ __webpack_exports__["a"] = (VcodePane);
+
+
+VcodePane.propTypes = {
+ instructions: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.element,
+ lock: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.object.isRequired,
+ placeholder: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string.isRequired,
+ resendLabel: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string.isRequired,
+ onRestart: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.func.isRequired
+};
+
+/***/ }),
+/* 194 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+exports.__esModule = true;
+exports.default = {
+ error: {
+ forgotPassword: {
+ too_many_requests: 'You have reached the limit on password change attempts. Please wait before trying again.',
+ 'lock.fallback': "We're sorry, something went wrong when requesting the password change.",
+ enterprise_email: "Your email's domain is part of an Enterprise identity provider. To reset your password, please see your security administrator."
+ },
+ login: {
+ blocked_user: 'The user is blocked.',
+ invalid_user_password: 'Wrong credentials.',
+ invalid_captcha: 'The text you entered was incorrect.
Please try again.',
+ 'lock.fallback': "We're sorry, something went wrong when attempting to log in.",
+ 'lock.invalid_code': 'Wrong code.',
+ 'lock.invalid_email_password': 'Wrong email or password.',
+ 'lock.invalid_username_password': 'Wrong username or password.',
+ 'lock.network': 'We could not reach the server. Please check your connection and try again.',
+ 'lock.popup_closed': 'Popup window closed. Try again.',
+ 'lock.unauthorized': 'Permissions were not granted. Try again.',
+ 'lock.mfa_registration_required': 'Multifactor authentication is required but your device is not enrolled. Please enroll it before moving on.',
+ 'lock.mfa_invalid_code': 'Wrong code. Please try again.',
+ password_change_required: 'You need to update your password because this is the first time you are logging in, or because your password has expired.', // TODO: verify error code
+ password_leaked: 'We have detected a potential security issue with this account. To protect your account, we have blocked this login. An email was sent with instruction on how to unblock your account.',
+ too_many_attempts: 'Your account has been blocked after multiple consecutive login attempts.',
+ too_many_requests: "We're sorry. There are too many requests right now. Please reload the page and try again. If this persists, please try again later.",
+ session_missing: "Couldn't complete your authentication request. Please try again after closing all open dialogs",
+ 'hrd.not_matching_email': 'Please use your corporate email to login.'
+ },
+ passwordless: {
+ 'bad.email': 'The email is invalid',
+ 'bad.phone_number': 'The phone number is invalid',
+ 'lock.fallback': "We're sorry, something went wrong"
+ },
+ signUp: {
+ invalid_password: 'Password is invalid.',
+ captcha_required: 'Enter the code shown below to finish signing up.',
+ 'lock.fallback': "We're sorry, something went wrong when attempting to sign up.",
+ password_dictionary_error: 'Password is too common.',
+ password_no_user_info_error: 'Password is based on user information.',
+ password_strength_error: 'Password is too weak.',
+ user_exists: 'The user already exists.',
+ username_exists: 'The username already exists.',
+ social_signup_needs_terms_acception: 'Please agree to the Terms of Service below to continue.'
+ }
+ },
+ success: {
+ // success messages show above the form or in a confirmation pane
+ logIn: 'Thanks for logging in.',
+ forgotPassword: "We've just sent you an email to reset your password.",
+ magicLink: 'We sent you a link to log in
to %s.',
+ signUp: 'Thanks for signing up.'
+ },
+ blankErrorHint: "Can't be blank",
+ codeInputPlaceholder: 'your code',
+ databaseEnterpriseLoginInstructions: '',
+ databaseEnterpriseAlternativeLoginInstructions: 'or',
+ databaseSignUpInstructions: '',
+ databaseAlternativeSignUpInstructions: 'or',
+ emailInputPlaceholder: 'yours@example.com',
+ captchaCodeInputPlaceholder: 'Enter the code shown above',
+ captchaMathInputPlaceholder: 'Solve the formula shown above',
+ enterpriseLoginIntructions: 'Login with your corporate credentials.',
+ enterpriseActiveLoginInstructions: 'Please enter your corporate credentials at %s.',
+ failedLabel: 'Failed!',
+ forgotPasswordTitle: 'Reset your password',
+ forgotPasswordAction: "Don't remember your password?",
+ forgotPasswordInstructions: 'Please enter your email address. We will send you an email to reset your password.',
+ forgotPasswordSubmitLabel: 'Send email',
+ invalidErrorHint: 'Invalid',
+ lastLoginInstructions: 'Last time you logged in with',
+ loginAtLabel: 'Log in at %s',
+ loginLabel: 'Log In',
+ loginSubmitLabel: 'Log In',
+ loginWithLabel: 'Sign in with %s',
+ notYourAccountAction: 'Not your account?',
+ passwordInputPlaceholder: 'your password',
+ passwordStrength: {
+ containsAtLeast: 'Contain at least %d of the following %d types of characters:',
+ identicalChars: 'No more than %d identical characters in a row (e.g., "%s" not allowed)',
+ nonEmpty: 'Non-empty password required',
+ numbers: 'Numbers (i.e. 0-9)',
+ lengthAtLeast: 'At least %d characters in length',
+ lowerCase: 'Lower case letters (a-z)',
+ shouldContain: 'Should contain:',
+ specialCharacters: 'Special characters (e.g. !@#$%^&*)',
+ upperCase: 'Upper case letters (A-Z)'
+ },
+ passwordlessEmailAlternativeInstructions: 'Otherwise, enter your email to sign in
or create an account',
+ passwordlessEmailCodeInstructions: 'An email with the code has been sent to %s.',
+ passwordlessEmailInstructions: 'Enter your email to sign in
or create an account',
+ passwordlessSMSAlternativeInstructions: 'Otherwise, enter your phone to sign in
or create an account',
+ passwordlessSMSCodeInstructions: 'An SMS with the code has been sent
to %s.',
+ passwordlessSMSInstructions: 'Enter your phone to sign in
or create an account',
+ phoneNumberInputPlaceholder: 'your phone number',
+ resendCodeAction: 'Did not get the code?',
+ resendLabel: 'Resend',
+ resendingLabel: 'Resending...',
+ retryLabel: 'Retry',
+ sentLabel: 'Sent!',
+ showPassword: 'Show password',
+ signUpTitle: 'Sign Up',
+ signUpLabel: 'Sign Up',
+ signUpSubmitLabel: 'Sign Up',
+ signUpTerms: 'By signing up, you agree to our terms of service and privacy policy.',
+ signUpWithLabel: 'Sign up with %s',
+ socialLoginInstructions: '',
+ socialSignUpInstructions: '',
+ ssoEnabled: 'Single Sign-On enabled',
+ submitLabel: 'Submit',
+ unrecoverableError: 'Something went wrong.
Please contact technical support.',
+ usernameFormatErrorHint: 'Use %d-%d letters, numbers and the following characters: "_", ".", "+", "-"',
+ usernameInputPlaceholder: 'your username',
+ usernameOrEmailInputPlaceholder: 'username/email',
+ title: 'Auth0',
+ welcome: 'Welcome %s!',
+ windowsAuthInstructions: 'You are connected from your corporate network…',
+ windowsAuthLabel: 'Windows Authentication',
+ mfaInputPlaceholder: 'Code',
+ mfaLoginTitle: '2-Step Verification',
+ mfaLoginInstructions: 'Please enter the verification code generated by your mobile application.',
+ mfaSubmitLabel: 'Log In',
+ mfaCodeErrorHint: 'Use %d numbers'
+};
+
+/***/ }),
+/* 195 */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__core__ = __webpack_require__(105);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__engine_classic__ = __webpack_require__(50);
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+
+
+
+
+var Auth0Lock = function (_Core) {
+ _inherits(Auth0Lock, _Core);
+
+ function Auth0Lock(clientID, domain, options) {
+ _classCallCheck(this, Auth0Lock);
+
+ var _this = _possibleConstructorReturn(this, _Core.call(this, clientID, domain, options, __WEBPACK_IMPORTED_MODULE_1__engine_classic__["d" /* default */]));
+
+ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__core__["a" /* injectStyles */])();
+ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__core__["c" /* setWindowHeightStyle */])();
+
+ window.addEventListener('resize', function () {
+ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__core__["c" /* setWindowHeightStyle */])();
+ });
+ return _this;
+ }
+
+ return Auth0Lock;
+}(__WEBPACK_IMPORTED_MODULE_0__core__["b" /* default */]);
+
+// telemetry
+
+
+/* harmony default export */ __webpack_exports__["a"] = (Auth0Lock);
+Auth0Lock.version = '11.24.1';
+
+// TODO: should we have different telemetry for classic/passwordless?
+// TODO: should we set telemetry info before each request?
+// TODO: should we inject styles here?
+
+/***/ }),
+/* 196 */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return remove; });
+/* 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_react_dom__ = __webpack_require__(30);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react_dom__);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__CSSCore__ = __webpack_require__(101);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__CSSCore___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__CSSCore__);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__box_container__ = __webpack_require__(110);
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+
+
+
+
+
+var ContainerManager = function () {
+ function ContainerManager() {
+ _classCallCheck(this, ContainerManager);
+ }
+
+ ContainerManager.prototype.ensure = function ensure(id, shouldAppend) {
+ var container = global.document.getElementById(id);
+
+ if (!container && shouldAppend) {
+ container = global.document.createElement('div');
+ container.id = id;
+ container.className = 'auth0-lock-container';
+ global.document.body.appendChild(container);
+ }
+
+ if (!container) {
+ throw new Error('Can\'t find element with id ' + id);
+ }
+
+ return container;
+ };
+
+ return ContainerManager;
+}();
+
+var Renderer = function () {
+ function Renderer() {
+ _classCallCheck(this, Renderer);
+
+ this.containerManager = new ContainerManager();
+ this.modals = {};
+ }
+
+ Renderer.prototype.render = function render(containerId, props) {
+ var isModal = props.isModal;
+
+ var container = this.containerManager.ensure(containerId, isModal);
+
+ if (isModal && !this.modals[containerId]) {
+ __WEBPACK_IMPORTED_MODULE_2__CSSCore___default.a.addClass(global.document.getElementsByTagName('html')[0], 'auth0-lock-html');
+ }
+ // eslint-disable-next-line
+ var component = __WEBPACK_IMPORTED_MODULE_1_react_dom___default.a.render(__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3__box_container__["b" /* default */], props), container);
+
+ if (isModal) {
+ this.modals[containerId] = component;
+ }
+
+ return component;
+ };
+
+ Renderer.prototype.remove = function remove(containerId) {
+ var _this = this;
+
+ if (this.modals[containerId]) {
+ this.modals[containerId].hide();
+ setTimeout(function () {
+ return _this.unmount(containerId);
+ }, 1000);
+ } else {
+ this.unmount(containerId);
+ }
+ };
+
+ Renderer.prototype.unmount = function unmount(containerId) {
+ try {
+ var container = this.containerManager.ensure(containerId);
+ if (container) {
+ __WEBPACK_IMPORTED_MODULE_1_react_dom___default.a.unmountComponentAtNode(container);
+ }
+ } catch (e) {
+ // do nothing if container doesn't exist
+ }
+
+ if (this.modals[containerId]) {
+ delete this.modals[containerId];
+
+ __WEBPACK_IMPORTED_MODULE_2__CSSCore___default.a.removeClass(global.document.getElementsByTagName('html')[0], 'auth0-lock-html');
+ }
+ };
+
+ return Renderer;
+}();
+
+var renderer = new Renderer();
+
+var render = function render() {
+ return renderer.render.apply(renderer, arguments);
+};
+var remove = function remove() {
+ return renderer.remove.apply(renderer, arguments);
+};
+/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(15)))
+
+/***/ }),
+/* 197 */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* WEBPACK VAR INJECTION */(function(global) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types__ = __webpack_require__(3);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_prop_types__);
+/* 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_react_dom__ = __webpack_require__(30);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_dom__);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react_transition_group__ = __webpack_require__(319);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react_transition_group___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react_transition_group__);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__multisize_slide__ = __webpack_require__(201);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__global_message__ = __webpack_require__(199);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__core_index__ = __webpack_require__(1);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__header__ = __webpack_require__(200);
+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; }
+
+
+
+
+
+
+
+
+
+
+var submitSvg = '';
+var submitText = '';
+
+var SubmitButton = function (_React$Component) {
+ _inherits(SubmitButton, _React$Component);
+
+ function SubmitButton() {
+ _classCallCheck(this, SubmitButton);
+
+ return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
+ }
+
+ SubmitButton.prototype.handleSubmit = function handleSubmit() {
+ var _props = this.props,
+ label = _props.label,
+ screenName = _props.screenName,
+ contentProps = _props.contentProps;
+ var model = contentProps.model;
+
+ if (screenName === 'main.signUp') {
+ __WEBPACK_IMPORTED_MODULE_6__core_index__["emitEvent"](model, 'signup submit');
+ } else if (screenName === 'main.login') {
+ __WEBPACK_IMPORTED_MODULE_6__core_index__["emitEvent"](model, 'signin submit');
+ } else if (screenName === 'forgotPassword') {
+ __WEBPACK_IMPORTED_MODULE_6__core_index__["emitEvent"](model, 'forgot_password submit');
+ } else if (screenName === 'socialOrEmail') {
+ __WEBPACK_IMPORTED_MODULE_6__core_index__["emitEvent"](model, 'socialOrEmail submit');
+ } else if (screenName === 'socialOrPhoneNumber') {
+ __WEBPACK_IMPORTED_MODULE_6__core_index__["emitEvent"](model, 'socialOrPhoneNumber submit');
+ } else if (screenName === 'vcode') {
+ __WEBPACK_IMPORTED_MODULE_6__core_index__["emitEvent"](model, 'vcode submit');
+ }
+
+ if (this.props.onSubmit) {
+ this.props.onSubmit(label, screenName);
+ }
+ };
+
+ SubmitButton.prototype.focus = function focus() {
+ __WEBPACK_IMPORTED_MODULE_2_react_dom___default.a.findDOMNode(this).focus();
+ };
+
+ SubmitButton.prototype.render = function render() {
+ var _props2 = this.props,
+ color = _props2.color,
+ disabled = _props2.disabled,
+ label = _props2.label,
+ display = _props2.display;
+
+ var content = label ? __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ 'span',
+ { className: 'auth0-label-submit' },
+ label,
+ __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement('span', { dangerouslySetInnerHTML: { __html: submitText } })
+ ) : __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement('span', { dangerouslySetInnerHTML: { __html: submitSvg } });
+
+ return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ 'button',
+ {
+ className: 'auth0-lock-submit',
+ disabled: disabled,
+ style: { backgroundColor: color, display: display },
+ onClick: this.handleSubmit.bind(this),
+ name: 'submit',
+ type: 'submit',
+ 'aria-label': label ? label : 'Submit'
+ },
+ __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ 'div',
+ { className: 'auth0-loading-container' },
+ __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement('div', { className: 'auth0-loading' })
+ ),
+ content
+ );
+ };
+
+ return SubmitButton;
+}(__WEBPACK_IMPORTED_MODULE_1_react___default.a.Component);
+
+SubmitButton.propTypes = {
+ color: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string.isRequired,
+ disabled: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.bool,
+ label: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string,
+ screenName: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string,
+ onSubmit: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.func,
+ contentProps: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.object
+};
+
+var MESSAGE_ANIMATION_DURATION = 250;
+var AUXILIARY_ANIMATION_DURATION = 350;
+
+var Chrome = function (_React$Component2) {
+ _inherits(Chrome, _React$Component2);
+
+ function Chrome(props) {
+ _classCallCheck(this, Chrome);
+
+ var _this2 = _possibleConstructorReturn(this, _React$Component2.call(this, props));
+
+ _this2.state = { moving: false, reverse: false, headerHeight: 0 };
+ return _this2;
+ }
+
+ Chrome.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
+ var _this3 = this;
+
+ var _props3 = this.props,
+ auxiliaryPane = _props3.auxiliaryPane,
+ showSubmitButton = _props3.showSubmitButton;
+ var delayingShowSubmitButton = this.state.delayingShowSubmitButton;
+
+
+ if (!showSubmitButton && nextProps.showSubmitButton && !delayingShowSubmitButton) {
+ this.setState({ delayingShowSubmitButton: true });
+ }
+
+ if (!auxiliaryPane && nextProps.auxiliaryPane) {
+ this.auxiliaryPaneTriggerInput = global.document.activeElement;
+ this.setState({ moving: true });
+ }
+
+ if (auxiliaryPane && !nextProps.auxiliaryPane) {
+ // TODO clear timeout
+ setTimeout(function () {
+ return _this3.setState({ moving: false });
+ }, AUXILIARY_ANIMATION_DURATION + 50);
+ }
+ };
+
+ Chrome.prototype.componentDidUpdate = function componentDidUpdate(prevProps) {
+ var _this4 = this;
+
+ var _props4 = this.props,
+ autofocus = _props4.autofocus,
+ auxiliaryPane = _props4.auxiliaryPane,
+ error = _props4.error,
+ screenName = _props4.screenName;
+
+
+ if (!autofocus) return;
+
+ if (auxiliaryPane && !prevProps.auxiliaryPane) {
+ var input = this.findAutofocusInput(this.refs.auxiliary);
+
+ if (input) {
+ // TODO clear timeout
+ setTimeout(function () {
+ return input.focus();
+ }, AUXILIARY_ANIMATION_DURATION);
+ }
+
+ return;
+ }
+
+ if (!auxiliaryPane && prevProps.auxiliaryPane) {
+ if (this.auxiliaryPaneTriggerInput) {
+ // TODO clear timeout
+ setTimeout(function () {
+ return _this4.auxiliaryPaneTriggerInput.focus();
+ }, AUXILIARY_ANIMATION_DURATION);
+ }
+
+ return;
+ }
+
+ if (screenName !== prevProps.screenName) {
+ var _input = this.findAutofocusInput();
+
+ if (_input) {
+ if (this.mainScreenName(prevProps.screenName) !== this.mainScreenName()) {
+ this.inputToFocus = _input;
+ } else {
+ // TODO clear timeout
+ setTimeout(function () {
+ return _input.focus();
+ }, 17);
+ }
+ }
+ }
+ };
+
+ Chrome.prototype.componentDidMount = function componentDidMount() {
+ var _this5 = this;
+
+ var fn = function fn() {
+ return _this5.setState({ headerHeight: _this5.getHeaderSize() });
+ };
+ var m = this.props.contentProps.model;
+
+ __WEBPACK_IMPORTED_MODULE_6__core_index__["handleEvent"](m, 'signup ready', fn);
+ __WEBPACK_IMPORTED_MODULE_6__core_index__["handleEvent"](m, 'signin ready', fn);
+ };
+
+ Chrome.prototype.onWillSlide = function onWillSlide() {
+ this.setState({ moving: true });
+ this.sliding = true;
+ };
+
+ Chrome.prototype.onDidSlide = function onDidSlide() {
+ this.sliding = false;
+ this.setState({ reverse: false });
+ };
+
+ Chrome.prototype.onDidAppear = function onDidAppear() {
+ this.setState({ moving: false, headerHeight: this.getHeaderSize() });
+
+ if (this.state.delayingShowSubmitButton) {
+ this.setState({ delayingShowSubmitButton: false });
+ }
+
+ if (this.inputToFocus) {
+ this.inputToFocus.focus();
+ delete this.inputToFocus;
+ }
+ };
+
+ Chrome.prototype.mainScreenName = function mainScreenName(str) {
+ return (str || this.props.screenName || '').split('.')[0];
+ };
+
+ Chrome.prototype.findAutofocusInput = function findAutofocusInput(ref) {
+ return __WEBPACK_IMPORTED_MODULE_2_react_dom___default.a.findDOMNode(ref || this.refs.screen).querySelector('input');
+ };
+
+ Chrome.prototype.focusError = function focusError() {
+ var node = __WEBPACK_IMPORTED_MODULE_2_react_dom___default.a.findDOMNode(this.refs.screen);
+ // TODO: make the error input selector configurable via props.
+ var error = node.querySelector('.auth0-lock-error input');
+
+ if (error) {
+ error.focus();
+ }
+ };
+
+ // Record the header element so that we can retrieve its size when the
+ // component renders
+
+
+ Chrome.prototype.setHeaderElement = function setHeaderElement(element) {
+ this.header = element;
+ };
+
+ // Get the size (rather than the element itself), as returning
+ // the element makes this difficult to test (we can't reasonably enforce the size
+ // as it's not rendered to a screen).
+
+
+ Chrome.prototype.getHeaderSize = function getHeaderSize() {
+ return this.header ? this.header.getDOMNode().clientHeight : 0;
+ };
+
+ Chrome.prototype.render = function render() {
+ var _this6 = this;
+
+ var _props5 = this.props,
+ avatar = _props5.avatar,
+ auxiliaryPane = _props5.auxiliaryPane,
+ backHandler = _props5.backHandler,
+ contentComponent = _props5.contentComponent,
+ contentProps = _props5.contentProps,
+ disableSubmitButton = _props5.disableSubmitButton,
+ error = _props5.error,
+ info = _props5.info,
+ isSubmitting = _props5.isSubmitting,
+ logo = _props5.logo,
+ primaryColor = _props5.primaryColor,
+ screenName = _props5.screenName,
+ showSubmitButton = _props5.showSubmitButton,
+ submitButtonLabel = _props5.submitButtonLabel,
+ success = _props5.success,
+ terms = _props5.terms,
+ title = _props5.title,
+ classNames = _props5.classNames,
+ scrollGlobalMessagesIntoView = _props5.scrollGlobalMessagesIntoView;
+ var _state = this.state,
+ delayingShowSubmitButton = _state.delayingShowSubmitButton,
+ moving = _state.moving,
+ reverse = _state.reverse;
+
+
+ var backgroundUrl = void 0,
+ name = void 0;
+ if (avatar) {
+ backgroundUrl = avatar;
+ name = title;
+ } else {
+ backgroundUrl = logo;
+ name = '';
+ }
+
+ var shouldShowSubmitButton = showSubmitButton && !delayingShowSubmitButton;
+
+ function wrapGlobalMessage(message) {
+ return typeof message === 'string' ? __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement('span', { dangerouslySetInnerHTML: { __html: message } }) : message;
+ }
+
+ var globalError = error ? __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5__global_message__["a" /* default */], {
+ key: 'global-error',
+ message: wrapGlobalMessage(error),
+ type: 'error',
+ scrollIntoView: scrollGlobalMessagesIntoView
+ }) : null;
+ var globalSuccess = success ? __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5__global_message__["a" /* default */], {
+ key: 'global-success',
+ message: wrapGlobalMessage(success),
+ type: 'success',
+ scrollIntoView: scrollGlobalMessagesIntoView
+ }) : null;
+ var globalInfo = info ? __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5__global_message__["a" /* default */], {
+ key: 'global-info',
+ message: wrapGlobalMessage(info),
+ type: 'info',
+ scrollIntoView: scrollGlobalMessagesIntoView
+ }) : null;
+
+ var Content = contentComponent;
+
+ var className = 'auth0-lock-cred-pane';
+ var isQuiet = !moving && !delayingShowSubmitButton;
+ className += isQuiet ? ' auth0-lock-quiet' : ' auth0-lock-moving';
+
+ return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ 'div',
+ { className: className },
+ __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ 'div',
+ { className: 'auth0-lock-cred-pane-internal-wrapper' },
+ __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ 'div',
+ { className: 'auth0-lock-content-wrapper' },
+ __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__header__["a" /* default */], {
+ title: title,
+ name: name,
+ backHandler: backHandler && this.handleBack.bind(this),
+ backgroundUrl: backgroundUrl,
+ backgroundColor: primaryColor,
+ logoUrl: logo,
+ ref: this.setHeaderElement.bind(this)
+ }),
+ __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ 'div',
+ {
+ className: 'auth0-lock-content-body-wrapper',
+ style: { marginTop: this.state.headerHeight }
+ },
+ __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ __WEBPACK_IMPORTED_MODULE_3_react_transition_group__["TransitionGroup"],
+ null,
+ __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ __WEBPACK_IMPORTED_MODULE_3_react_transition_group__["CSSTransition"],
+ { classNames: 'global-message', timeout: MESSAGE_ANIMATION_DURATION },
+ __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ 'div',
+ null,
+ globalSuccess,
+ globalError,
+ globalInfo
+ )
+ )
+ ),
+ __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ 'div',
+ { style: { position: 'relative' }, ref: 'screen' },
+ __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ __WEBPACK_IMPORTED_MODULE_4__multisize_slide__["a" /* default */],
+ {
+ delay: 550,
+ onDidAppear: this.onDidAppear.bind(this),
+ onDidSlide: this.onDidSlide.bind(this),
+ onWillSlide: this.onWillSlide.bind(this),
+ transitionName: classNames,
+ reverse: reverse
+ },
+ __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ 'div',
+ { key: this.mainScreenName(), className: 'auth0-lock-view-content' },
+ __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ 'div',
+ { style: { position: 'relative' } },
+ __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ 'div',
+ { className: 'auth0-lock-body-content' },
+ __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ 'div',
+ { className: 'auth0-lock-content' },
+ __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ 'div',
+ { className: 'auth0-lock-form' },
+ __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(Content, _extends({ focusSubmit: this.focusSubmit.bind(this) }, contentProps))
+ )
+ ),
+ terms && __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ 'small',
+ { className: 'auth0-lock-terms' },
+ terms
+ )
+ )
+ )
+ )
+ )
+ )
+ )
+ ),
+ __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(SubmitButton, {
+ color: primaryColor,
+ disabled: disableSubmitButton,
+ screenName: screenName,
+ contentProps: contentProps,
+ label: submitButtonLabel,
+ ref: function ref(el) {
+ return _this6.submitButton = el;
+ },
+ display: shouldShowSubmitButton ? 'block' : 'none'
+ }),
+ auxiliaryPane && __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ __WEBPACK_IMPORTED_MODULE_3_react_transition_group__["TransitionGroup"],
+ null,
+ __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ __WEBPACK_IMPORTED_MODULE_3_react_transition_group__["CSSTransition"],
+ {
+ ref: 'auxiliary',
+ classNames: 'slide',
+ timeout: AUXILIARY_ANIMATION_DURATION
+ },
+ auxiliaryPane
+ )
+ )
+ )
+ );
+ };
+
+ Chrome.prototype.focusSubmit = function focusSubmit() {
+ this.submitButton.focus();
+ };
+
+ Chrome.prototype.handleBack = function handleBack() {
+ if (this.sliding) return;
+
+ var backHandler = this.props.backHandler;
+
+ this.setState({ reverse: true });
+ backHandler();
+ };
+
+ return Chrome;
+}(__WEBPACK_IMPORTED_MODULE_1_react___default.a.Component);
+
+/* harmony default export */ __webpack_exports__["a"] = (Chrome);
+
+
+Chrome.propTypes = {
+ autofocus: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.bool.isRequired,
+ avatar: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string,
+ auxiliaryPane: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.element,
+ backHandler: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.func,
+ contentComponent: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.func.isRequired, // TODO: it also can be a class component
+ contentProps: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.object.isRequired,
+ disableSubmitButton: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.bool.isRequired,
+ error: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.node,
+ info: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.node,
+ isSubmitting: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.bool.isRequired,
+ logo: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string.isRequired,
+ primaryColor: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string.isRequired,
+ screenName: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string.isRequired,
+ showSubmitButton: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.bool.isRequired,
+ submitButtonLabel: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string,
+ success: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.node,
+ terms: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.element,
+ title: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string,
+ classNames: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string.isRequired,
+ scrollGlobalMessagesIntoView: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.bool
+};
+
+Chrome.defaultProps = {
+ autofocus: false,
+ disableSubmitButton: false,
+ showSubmitButton: true,
+ scrollGlobalMessagesIntoView: true
+};
+/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(15)))
+
+/***/ }),
+/* 198 */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types__ = __webpack_require__(3);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_prop_types__);
+/* 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__button__ = __webpack_require__(54);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__core_index__ = __webpack_require__(1);
+
+
+
+
+
+var ConfirmationPane = function ConfirmationPane(_ref) {
+ var lock = _ref.lock,
+ backHandler = _ref.backHandler,
+ children = _ref.children,
+ closeHandler = _ref.closeHandler,
+ svg = _ref.svg;
+ return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ 'div',
+ { className: 'auth0-lock-confirmation' },
+ closeHandler && __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__button__["b" /* CloseButton */], { lockId: __WEBPACK_IMPORTED_MODULE_3__core_index__["id"](lock), onClick: closeHandler }),
+ backHandler && __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__button__["a" /* BackButton */], { lockId: __WEBPACK_IMPORTED_MODULE_3__core_index__["id"](lock), onClick: backHandler }),
+ __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ 'div',
+ { className: 'auth0-lock-confirmation-content' },
+ __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement('span', { dangerouslySetInnerHTML: { __html: svg } }),
+ children
+ )
+ );
+};
+
+ConfirmationPane.propTypes = {
+ backHandler: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.func,
+ closeHandler: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.func,
+ children: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.element.isRequired, __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.element).isRequired]),
+ svg: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string.isRequired
+};
+
+/* harmony default export */ __webpack_exports__["a"] = (ConfirmationPane);
+
+/***/ }),
+/* 199 */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types__ = __webpack_require__(3);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_prop_types__);
+/* 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__);
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+
+
+
+
+var GlobalMessage = function (_React$Component) {
+ _inherits(GlobalMessage, _React$Component);
+
+ function GlobalMessage() {
+ _classCallCheck(this, GlobalMessage);
+
+ return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
+ }
+
+ GlobalMessage.prototype.componentDidMount = function componentDidMount() {
+ var methodIsSupported = this.messageNode && typeof this.messageNode.scrollIntoView === 'function';
+ if (methodIsSupported && this.props.scrollIntoView) {
+ var boundingRect = this.messageNode.getBoundingClientRect();
+ if (boundingRect.top < 0) {
+ this.messageNode.scrollIntoView(true);
+ }
+ }
+ };
+
+ GlobalMessage.prototype.render = function render() {
+ var _this2 = this;
+
+ var _props = this.props,
+ message = _props.message,
+ type = _props.type;
+
+ var className = 'auth0-global-message auth0-global-message-' + type;
+ return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ 'div',
+ {
+ className: className,
+ ref: function ref(messageNode) {
+ _this2.messageNode = messageNode;
+ }
+ },
+ __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ 'span',
+ { className: 'animated fadeInUp' },
+ message
+ )
+ );
+ };
+
+ return GlobalMessage;
+}(__WEBPACK_IMPORTED_MODULE_1_react___default.a.Component);
+
+/* harmony default export */ __webpack_exports__["a"] = (GlobalMessage);
+
+
+GlobalMessage.propTypes = {
+ message: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.node.isRequired,
+ type: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.oneOf(['error', 'success', 'info']).isRequired,
+ scrollIntoView: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.bool
+};
+
+GlobalMessage.defaultProps = {
+ scrollIntoView: true
+};
+
+/***/ }),
+/* 200 */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* WEBPACK VAR INJECTION */(function(global) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types__ = __webpack_require__(3);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_prop_types__);
+/* 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_react_dom__ = __webpack_require__(30);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_dom__);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__button__ = __webpack_require__(54);
+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; }
+
+
+
+
+
+
+// TODO: simplify this mess :)
+
+var Header = function (_React$Component) {
+ _inherits(Header, _React$Component);
+
+ function Header() {
+ _classCallCheck(this, Header);
+
+ return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
+ }
+
+ Header.prototype.getDOMNode = function getDOMNode() {
+ return __WEBPACK_IMPORTED_MODULE_2_react_dom___default.a.findDOMNode(this);
+ };
+
+ Header.prototype.render = function render() {
+ var _props = this.props,
+ backHandler = _props.backHandler,
+ backgroundColor = _props.backgroundColor,
+ backgroundUrl = _props.backgroundUrl,
+ logoUrl = _props.logoUrl,
+ name = _props.name,
+ title = _props.title;
+
+
+ return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ 'div',
+ { className: 'auth0-lock-header' },
+ backHandler && __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3__button__["a" /* BackButton */], { onClick: backHandler }),
+ __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(Background, { imageUrl: backgroundUrl, backgroundColor: backgroundColor, grayScale: !!name }),
+ __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(Welcome, { title: title, name: name, imageUrl: name ? undefined : logoUrl })
+ );
+ };
+
+ return Header;
+}(__WEBPACK_IMPORTED_MODULE_1_react___default.a.Component);
+
+/* harmony default export */ __webpack_exports__["a"] = (Header);
+
+
+Header.propTypes = {
+ backgroundUrl: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string,
+ logoUrl: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string,
+ name: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string
+};
+
+var Welcome = function (_React$Component2) {
+ _inherits(Welcome, _React$Component2);
+
+ function Welcome() {
+ _classCallCheck(this, Welcome);
+
+ return _possibleConstructorReturn(this, _React$Component2.apply(this, arguments));
+ }
+
+ Welcome.prototype.render = function render() {
+ var _props2 = this.props,
+ name = _props2.name,
+ imageUrl = _props2.imageUrl,
+ title = _props2.title;
+
+ var imgClassName = !!title ? 'auth0-lock-header-logo' : 'auth0-lock-header-logo centered';
+ var img = __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement('img', { alt: '', className: imgClassName, src: imageUrl });
+ var welcome = title ? __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(WelcomeMessage, { title: title, name: name }) : null;
+
+ return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ 'div',
+ { className: 'auth0-lock-header-welcome' },
+ imageUrl && img,
+ welcome
+ );
+ };
+
+ return Welcome;
+}(__WEBPACK_IMPORTED_MODULE_1_react___default.a.Component);
+
+Welcome.propTypes = {
+ imageUrl: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string,
+ name: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string
+};
+
+var WelcomeMessage = function (_React$Component3) {
+ _inherits(WelcomeMessage, _React$Component3);
+
+ function WelcomeMessage() {
+ _classCallCheck(this, WelcomeMessage);
+
+ return _possibleConstructorReturn(this, _React$Component3.apply(this, arguments));
+ }
+
+ WelcomeMessage.prototype.render = function render() {
+ var _props3 = this.props,
+ name = _props3.name,
+ title = _props3.title;
+
+ var className = void 0,
+ message = void 0;
+
+ if (name) {
+ className = 'auth0-lock-firstname';
+ message = name;
+ } else {
+ className = 'auth0-lock-name';
+ message = title;
+ }
+
+ return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ 'div',
+ { className: className, title: message },
+ message
+ );
+ };
+
+ return WelcomeMessage;
+}(__WEBPACK_IMPORTED_MODULE_1_react___default.a.Component);
+
+WelcomeMessage.propTypes = {
+ name: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string
+};
+
+var cssBlurSupport = function () {
+ // Check stolen from Modernizr, see https://github.com/Modernizr/Modernizr/blob/29eab707f7a2fb261c8a9c538370e97eb1f86e25/feature-detects/css/filters.js
+ var isEdge = global.navigator && !!global.navigator.userAgent.match(/Edge/i);
+ if (typeof global.document === 'undefined' || isEdge) return false;
+
+ var el = global.document.createElement('div');
+ el.style.cssText = 'filter: blur(2px); -webkit-filter: blur(2px)';
+ return !!el.style.length && (global.document.documentMode === undefined || global.document.documentMode > 9);
+}();
+
+var Background = function (_React$Component4) {
+ _inherits(Background, _React$Component4);
+
+ function Background() {
+ _classCallCheck(this, Background);
+
+ return _possibleConstructorReturn(this, _React$Component4.apply(this, arguments));
+ }
+
+ Background.prototype.render = function render() {
+ var _props4 = this.props,
+ backgroundColor = _props4.backgroundColor,
+ imageUrl = _props4.imageUrl,
+ grayScale = _props4.grayScale;
+
+
+ var props = {
+ className: 'auth0-lock-header-bg'
+ };
+
+ if (cssBlurSupport) {
+ props.className += ' auth0-lock-blur-support';
+ }
+
+ var blurProps = {
+ className: 'auth0-lock-header-bg-blur',
+ style: { backgroundImage: 'url(\'' + imageUrl + '\')' }
+ };
+
+ if (grayScale) {
+ blurProps.className += ' auth0-lock-no-grayscale';
+ }
+
+ var solidProps = {
+ className: 'auth0-lock-header-bg-solid',
+ style: { backgroundColor: backgroundColor }
+ };
+
+ return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ 'div',
+ props,
+ __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement('div', blurProps),
+ __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement('div', solidProps)
+ );
+ };
+
+ return Background;
+}(__WEBPACK_IMPORTED_MODULE_1_react___default.a.Component);
+
+Background.propTypes = {
+ backgorundColor: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string,
+ grayScale: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.bool,
+ imageUrl: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string
+};
+/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(15)))
+
+/***/ }),
+/* 201 */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types__ = __webpack_require__(3);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_prop_types__);
+/* 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_react_dom__ = __webpack_require__(30);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_dom__);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__CSSCore__ = __webpack_require__(101);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__CSSCore___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3__CSSCore__);
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+
+
+
+
+
+
+var Slider = function (_React$Component) {
+ _inherits(Slider, _React$Component);
+
+ function Slider(props) {
+ _classCallCheck(this, Slider);
+
+ var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));
+
+ _this.state = { children: { current: props.children } };
+ return _this;
+ }
+
+ Slider.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
+ // TODO: take a prop to identify what are we rendering instead of
+ // infering it from children keys so we can accept more than one
+ // child (we are already wrapping them).
+ if (this.state.children.current.key != nextProps.children.key) {
+ this.setState({
+ children: {
+ current: nextProps.children,
+ prev: this.state.children.current
+ },
+ transitionName: this.props.transitionName
+ });
+ this.animate = true;
+ } else if (!this.timeout) {
+ this.setState({
+ children: { current: nextProps.children },
+ transitionName: nextProps.transitionName
+ });
+ }
+ };
+
+ Slider.prototype.componentDidUpdate = function componentDidUpdate() {
+ var _this2 = this;
+
+ if (this.animate) {
+ this.animate = false;
+
+ var transitionName = this.state.transitionName;
+ var _state$children = this.state.children,
+ current = _state$children.current,
+ prev = _state$children.prev;
+ var reverse = this.props.reverse;
+
+ var currentComponent = this.refs[current.key];
+ var prevComponent = this.refs[prev.key];
+
+ var transition = function transition(component, className, delay) {
+ // eslint-disable-next-line
+ var node = __WEBPACK_IMPORTED_MODULE_2_react_dom___default.a.findDOMNode(component);
+ var activeClassName = className + '-active';
+
+ __WEBPACK_IMPORTED_MODULE_3__CSSCore___default.a.addClass(node, className);
+
+ setTimeout(function () {
+ return __WEBPACK_IMPORTED_MODULE_3__CSSCore___default.a.addClass(node, activeClassName);
+ }, 17);
+
+ if (delay) {
+ setTimeout(function () {
+ __WEBPACK_IMPORTED_MODULE_3__CSSCore___default.a.removeClass(node, className);
+ __WEBPACK_IMPORTED_MODULE_3__CSSCore___default.a.removeClass(node, activeClassName);
+ }, delay);
+ }
+ };
+
+ var callback = function callback(slide) {
+ currentComponent.componentWillSlideIn(slide);
+ var classNamePrefix = reverse ? 'reverse-' : '';
+ transition(currentComponent, '' + classNamePrefix + transitionName + '-enter', _this2.props.delay);
+ transition(prevComponent, '' + classNamePrefix + transitionName + '-exit');
+
+ _this2.timeout = setTimeout(function () {
+ var _context;
+
+ _this2.setState({
+ children: { current: _this2.state.children.current },
+ transitionName: _this2.props.transitionName
+ });
+ currentComponent.componentDidSlideIn((_context = _this2.props).onDidAppear.bind(_context));
+ _this2.props.onDidSlide();
+ _this2.timeout = null;
+ }, _this2.props.delay);
+ };
+
+ this.props.onWillSlide();
+ prevComponent.componentWillSlideOut(callback);
+ }
+ };
+
+ Slider.prototype.componentWillUnmount = function componentWillUnmount() {
+ if (this.timeout) clearTimeout(this.timeout);
+ };
+
+ Slider.prototype.render = function render() {
+ var _state$children2 = this.state.children,
+ current = _state$children2.current,
+ prev = _state$children2.prev;
+
+ var children = prev ? [current, prev] : [current];
+ var childrenToRender = children.map(function (child) {
+ return __WEBPACK_IMPORTED_MODULE_1_react___default.a.cloneElement(__WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(Child, {}, child), {
+ ref: child.key,
+ key: child.key
+ });
+ });
+
+ return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(this.props.component, {}, childrenToRender);
+ };
+
+ return Slider;
+}(__WEBPACK_IMPORTED_MODULE_1_react___default.a.Component);
+
+/* harmony default export */ __webpack_exports__["a"] = (Slider);
+
+
+Slider.propTypes = {
+ children: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.node.isRequired,
+ component: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string,
+ delay: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number.isRequired,
+ onDidAppear: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.func.isRequired,
+ onDidSlide: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.func.isRequired,
+ onWillSlide: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.func.isRequired,
+ reverse: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.bool.isRequired,
+ transitionName: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string.isRequired
+};
+
+Slider.defaultProps = {
+ component: 'span',
+ onDidAppear: function onDidAppear() {},
+ onDidSlide: function onDidSlide() {},
+ onWillSlide: function onWillSlide() {},
+ reverse: false
+};
+
+var Child = function (_React$Component2) {
+ _inherits(Child, _React$Component2);
+
+ function Child(props) {
+ _classCallCheck(this, Child);
+
+ var _this3 = _possibleConstructorReturn(this, _React$Component2.call(this, props));
+
+ _this3.state = { height: '', originalHeight: '', show: true };
+ return _this3;
+ }
+
+ Child.prototype.componentWillSlideIn = function componentWillSlideIn(slide) {
+ this.setState({
+ height: slide.height,
+ originalHeight: parseInt(window.getComputedStyle(this.node, null).height, 10),
+ show: false
+ });
+ };
+
+ Child.prototype.componentDidSlideIn = function componentDidSlideIn(cb) {
+ var _this4 = this;
+
+ var _state = this.state,
+ height = _state.height,
+ originalHeight = _state.originalHeight;
+
+
+ if (height === originalHeight) {
+ this.setState({ show: true, height: '' });
+ cb();
+ } else {
+ this.cb = cb;
+ var frames = 10;
+ var count = 0;
+ var current = height;
+ var last = originalHeight;
+ var step = Math.abs(current - last) / frames;
+ var dir = current < last ? 1 : -1;
+ var dh = step * dir;
+
+ // TODO: rAF
+ this.t = setInterval(function () {
+ if (count < frames - 1) {
+ _this4.setState({ height: current, animating: true });
+ current += dh;
+ count++;
+ } else {
+ clearInterval(_this4.t);
+ delete _this4.t;
+ _this4.setState({ height: '', show: true });
+ _this4.cb();
+ }
+ }, 17);
+ }
+ };
+
+ Child.prototype.componentWillSlideOut = function componentWillSlideOut(cb) {
+ var size = window.getComputedStyle(this.node, null).height;
+ cb({ height: parseInt(size, 10), reverse: this.reverse });
+ };
+
+ Child.prototype.componentWillUnmount = function componentWillUnmount() {
+ if (this.t) {
+ clearInterval(this.t);
+ this.cb();
+ }
+ };
+
+ Child.prototype.render = function render() {
+ var _this5 = this;
+
+ var children = this.props.children;
+ var _state2 = this.state,
+ height = _state2.height,
+ show = _state2.show;
+
+
+ return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ 'div',
+ { ref: function ref(node) {
+ return _this5.node = node;
+ }, style: height ? { height: height + 'px' } : {} },
+ __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ 'div',
+ { style: { visibility: show ? 'inherit' : 'hidden' } },
+ children
+ )
+ );
+ };
+
+ return Child;
+}(__WEBPACK_IMPORTED_MODULE_1_react___default.a.Component);
+
+Child.propTypes = {
+ children: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.node.isRequired
+};
+
+/***/ }),
+/* 202 */
+/***/ (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__input_wrap__ = __webpack_require__(24);
+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 _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; }
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+
+
+
+
+var inputIconSVG = '';
+
+var refreshIconSVG = '';
+
+var CaptchaInput = function (_React$Component) {
+ _inherits(CaptchaInput, _React$Component);
+
+ function CaptchaInput(props) {
+ _classCallCheck(this, CaptchaInput);
+
+ var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));
+
+ _this.state = {};
+ return _this;
+ }
+
+ CaptchaInput.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) {
+ var _props = this.props,
+ isValid = _props.isValid,
+ value = _props.value,
+ image = _props.image,
+ placeholder = _props.placeholder;
+ var focused = this.state.focused;
+
+
+ return isValid != nextProps.isValid || value != nextProps.value || focused != nextState.focused || image != nextState.image || placeholder != nextState.placeholder;
+ };
+
+ CaptchaInput.prototype.render = function render() {
+ var _props2 = this.props,
+ lockId = _props2.lockId,
+ image = _props2.image,
+ value = _props2.value,
+ placeholder = _props2.placeholder,
+ onReload = _props2.onReload,
+ invalidHint = _props2.invalidHint,
+ isValid = _props2.isValid,
+ props = _objectWithoutProperties(_props2, ['lockId', 'image', 'value', 'placeholder', 'onReload', 'invalidHint', 'isValid']);
+
+ var focused = this.state.focused;
+
+
+ return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
+ 'div',
+ null,
+ __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
+ 'div',
+ { className: 'auth0-lock-captcha' },
+ __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', {
+ className: 'auth0-lock-captcha-image',
+ style: { backgroundImage: 'url(' + image + ')' }
+ }),
+ __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('button', {
+ type: 'button',
+ onClick: this.handleReload.bind(this),
+ className: 'auth0-lock-captcha-refresh',
+ dangerouslySetInnerHTML: { __html: refreshIconSVG }
+ })
+ ),
+ __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
+ __WEBPACK_IMPORTED_MODULE_1__input_wrap__["a" /* default */],
+ {
+ focused: focused,
+ invalidHint: invalidHint,
+ isValid: isValid,
+ name: 'captcha',
+ icon: inputIconSVG
+ },
+ __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('input', _extends({
+ id: lockId + '-captcha',
+ ref: 'input',
+ type: 'text',
+ inputMode: 'text',
+ name: 'captcha',
+ className: 'auth0-lock-input',
+ placeholder: placeholder,
+ autoComplete: 'off',
+ autoCapitalize: 'off',
+ onChange: this.handleOnChange.bind(this),
+ onFocus: this.handleFocus.bind(this),
+ onBlur: this.handleBlur.bind(this),
+ 'aria-label': 'Email',
+ 'aria-invalid': !isValid,
+ 'aria-describedby': !isValid && invalidHint ? 'auth0-lock-error-msg-email' : undefined,
+ value: value
+ }, props))
+ )
+ );
+ };
+
+ CaptchaInput.prototype.handleOnChange = function handleOnChange(e) {
+ if (this.props.onChange) {
+ this.props.onChange(e);
+ }
+ };
+
+ CaptchaInput.prototype.handleReload = function handleReload(e) {
+ if (this.props.onReload) {
+ e.preventDefault();
+ this.props.onReload(e);
+ }
+ };
+
+ CaptchaInput.prototype.handleFocus = function handleFocus() {
+ this.setState({ focused: true });
+ };
+
+ CaptchaInput.prototype.handleBlur = function handleBlur() {
+ this.setState({ focused: false });
+ };
+
+ return CaptchaInput;
+}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component);
+
+/* harmony default export */ __webpack_exports__["a"] = (CaptchaInput);
+
+/***/ }),
+/* 203 */
+/***/ (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__);
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+
+
+
+var CheckboxInput = function (_React$Component) {
+ _inherits(CheckboxInput, _React$Component);
+
+ function CheckboxInput() {
+ _classCallCheck(this, CheckboxInput);
+
+ return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
+ }
+
+ CheckboxInput.prototype.render = function render() {
+ var _props = this.props,
+ lockId = _props.lockId,
+ name = _props.name,
+ ariaLabel = _props.ariaLabel,
+ placeholder = _props.placeholder,
+ checked = _props.checked,
+ placeholderHTML = _props.placeholderHTML;
+
+ return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
+ "div",
+ { className: "auth0-lock-input-checkbox" },
+ __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
+ "label",
+ null,
+ __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("input", {
+ id: lockId + "-" + name,
+ type: "checkbox",
+ checked: checked === 'true',
+ onChange: this.handleOnChange.bind(this),
+ name: name,
+ "aria-label": ariaLabel || name
+ }),
+ placeholderHTML ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("span", { dangerouslySetInnerHTML: { __html: placeholderHTML } }) : __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
+ "span",
+ null,
+ placeholder
+ )
+ )
+ );
+ };
+
+ CheckboxInput.prototype.handleOnChange = function handleOnChange(e) {
+ if (this.props.onChange) {
+ this.props.onChange(e);
+ }
+ };
+
+ return CheckboxInput;
+}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component);
+
+/* harmony default export */ __webpack_exports__["a"] = (CheckboxInput);
+
+/***/ }),
+/* 204 */
+/***/ (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__input_wrap__ = __webpack_require__(24);
+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 _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; }
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+
+
+
+
+var svg = '';
+
+var EmailInput = function (_React$Component) {
+ _inherits(EmailInput, _React$Component);
+
+ function EmailInput(props) {
+ _classCallCheck(this, EmailInput);
+
+ var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));
+
+ _this.state = {};
+ return _this;
+ }
+
+ EmailInput.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) {
+ var _props = this.props,
+ invalidHint = _props.invalidHint,
+ isValid = _props.isValid,
+ value = _props.value,
+ onChange = _props.onChange;
+ var focused = this.state.focused;
+
+
+ return invalidHint != nextProps.invalidHint || isValid != nextProps.isValid || value != nextProps.value || focused != nextState.focused;
+ };
+
+ EmailInput.prototype.render = function render() {
+ var _props2 = this.props,
+ lockId = _props2.lockId,
+ invalidHint = _props2.invalidHint,
+ isValid = _props2.isValid,
+ autoComplete = _props2.autoComplete,
+ props = _objectWithoutProperties(_props2, ['lockId', 'invalidHint', 'isValid', 'autoComplete']);
+
+ var focused = this.state.focused;
+
+
+ return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
+ __WEBPACK_IMPORTED_MODULE_1__input_wrap__["a" /* default */],
+ {
+ focused: focused,
+ invalidHint: invalidHint,
+ isValid: isValid,
+ name: 'email',
+ icon: svg
+ },
+ __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('input', _extends({
+ id: lockId + '-email',
+ ref: 'input',
+ type: 'email',
+ inputMode: 'email',
+ name: 'email',
+ className: 'auth0-lock-input',
+ placeholder: 'yours@example.com',
+ autoComplete: autoComplete ? 'on' : 'off',
+ autoCapitalize: 'off',
+ onChange: this.handleOnChange.bind(this),
+ onFocus: this.handleFocus.bind(this),
+ onBlur: this.handleBlur.bind(this),
+ 'aria-label': 'Email',
+ 'aria-invalid': !isValid,
+ 'aria-describedby': !isValid && invalidHint ? 'auth0-lock-error-msg-email' : undefined
+ }, props))
+ );
+ };
+
+ EmailInput.prototype.handleOnChange = function handleOnChange(e) {
+ if (this.props.onChange) {
+ this.props.onChange(e);
+ }
+ };
+
+ EmailInput.prototype.handleFocus = function handleFocus() {
+ this.setState({ focused: true });
+ };
+
+ EmailInput.prototype.handleBlur = function handleBlur() {
+ this.setState({ focused: false });
+ };
+
+ return EmailInput;
+}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component);
+
+// TODO: specify propTypes
+
+
+/* harmony default export */ __webpack_exports__["a"] = (EmailInput);
+
+/***/ }),
+/* 205 */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types__ = __webpack_require__(3);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_prop_types__);
+/* 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__input_wrap__ = __webpack_require__(24);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__password_input__ = __webpack_require__(73);
+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 _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; }
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+
+
+
+
+
+
+var MFACodeInput = function (_React$Component) {
+ _inherits(MFACodeInput, _React$Component);
+
+ function MFACodeInput(props) {
+ _classCallCheck(this, MFACodeInput);
+
+ var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));
+
+ _this.state = {};
+ return _this;
+ }
+
+ MFACodeInput.prototype.focus = function focus() {
+ this.refs.input && this.refs.input.focus();
+ };
+
+ MFACodeInput.prototype.hasFocus = function hasFocus() {
+ return this.state.focused;
+ };
+
+ MFACodeInput.prototype.render = function render() {
+ var _props = this.props,
+ lockId = _props.lockId,
+ invalidHint = _props.invalidHint,
+ isValid = _props.isValid,
+ onChange = _props.onChange,
+ value = _props.value,
+ props = _objectWithoutProperties(_props, ['lockId', 'invalidHint', 'isValid', 'onChange', 'value']);
+
+ var focused = this.state.focused;
+
+
+ return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ __WEBPACK_IMPORTED_MODULE_2__input_wrap__["a" /* default */],
+ {
+ focused: focused,
+ invalidHint: invalidHint,
+ isValid: isValid,
+ name: 'mfa_code',
+ icon: __WEBPACK_IMPORTED_MODULE_3__password_input__["a" /* icon */]
+ },
+ __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement('input', _extends({
+ id: lockId + '-mfa_code',
+ ref: 'input',
+ type: 'text',
+ name: 'mfa_code',
+ className: 'auth0-lock-input',
+ autoComplete: 'off',
+ autoCapitalize: 'off',
+ onChange: this.handleOnChange.bind(this),
+ onFocus: this.handleFocus.bind(this),
+ onBlur: this.handleBlur.bind(this),
+ value: value,
+ 'aria-label': 'Multi factor authentication code',
+ 'aria-invalid': !isValid,
+ 'aria-describedby': !isValid && invalidHint ? 'auth0-lock-error-msg-mfa_code' : undefined
+ }, props))
+ );
+ };
+
+ MFACodeInput.prototype.handleOnChange = function handleOnChange(e) {
+ if (this.props.onChange) {
+ this.props.onChange(e);
+ }
+ };
+
+ MFACodeInput.prototype.handleFocus = function handleFocus() {
+ this.setState({ focused: true });
+ };
+
+ MFACodeInput.prototype.handleBlur = function handleBlur() {
+ this.setState({ focused: false });
+ };
+
+ return MFACodeInput;
+}(__WEBPACK_IMPORTED_MODULE_1_react___default.a.Component);
+
+MFACodeInput.propTypes = {
+ invalidHint: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string.isRequired,
+ isValid: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.bool.isRequired,
+ onChange: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.func,
+ placeholder: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string,
+ value: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string.isRequired
+};
+/* harmony default export */ __webpack_exports__["a"] = (MFACodeInput);
+
+/***/ }),
+/* 206 */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types__ = __webpack_require__(3);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_prop_types__);
+/* 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_password_sheriff_lib_policy__ = __webpack_require__(78);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_password_sheriff_lib_policy___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_password_sheriff_lib_policy__);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_util__ = __webpack_require__(77);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_util___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_util__);
+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; }
+
+
+
+
+
+
+var PasswordStrength = function (_React$Component) {
+ _inherits(PasswordStrength, _React$Component);
+
+ function PasswordStrength() {
+ _classCallCheck(this, PasswordStrength);
+
+ return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
+ }
+
+ PasswordStrength.prototype.render = function render() {
+ var _props = this.props,
+ password = _props.password,
+ policy = _props.policy,
+ messages = _props.messages;
+
+ var analysis = new __WEBPACK_IMPORTED_MODULE_2_password_sheriff_lib_policy___default.a(policy.toJS()).missing(password);
+ // TODO: add a component for fadeIn / fadeOut animations?
+ var className = 'auth0-lock-password-strength animated ' + (!analysis.verified ? 'fadeIn' : 'fadeOut');
+
+ var prepareMessage = function prepareMessage(items) {
+ items && items.forEach(function (o) {
+ if (messages[o.code]) {
+ o.message = messages[o.code];
+ }
+
+ o.message = __WEBPACK_IMPORTED_MODULE_3_util___default.a.format.apply(__WEBPACK_IMPORTED_MODULE_3_util___default.a, [o.message].concat(o.format || []));
+
+ if (o.items) {
+ prepareMessage(o.items);
+ }
+ });
+ };
+
+ prepareMessage(analysis.rules);
+
+ return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ 'div',
+ { className: className },
+ __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(List, { items: analysis.rules })
+ );
+ };
+
+ return PasswordStrength;
+}(__WEBPACK_IMPORTED_MODULE_1_react___default.a.Component);
+
+/* harmony default export */ __webpack_exports__["a"] = (PasswordStrength);
+
+
+PasswordStrength.propTypes = {
+ messages: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.object.isRequired,
+ password: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string.isRequired,
+ policy: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.object.isRequired
+};
+
+PasswordStrength.defaultProps = {
+ messages: {}
+};
+
+var List = function (_React$Component2) {
+ _inherits(List, _React$Component2);
+
+ function List() {
+ _classCallCheck(this, List);
+
+ return _possibleConstructorReturn(this, _React$Component2.apply(this, arguments));
+ }
+
+ List.prototype.render = function render() {
+ var items = this.props.items;
+
+
+ return items && items.length ? __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ 'ul',
+ null,
+ items.map(function (x, i) {
+ return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(Item, _extends({}, x, { key: i }));
+ })
+ ) : null;
+ };
+
+ return List;
+}(__WEBPACK_IMPORTED_MODULE_1_react___default.a.Component);
+
+List.propTypes = {
+ items: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.object)
+};
+
+var Item = function (_React$Component3) {
+ _inherits(Item, _React$Component3);
+
+ function Item() {
+ _classCallCheck(this, Item);
+
+ return _possibleConstructorReturn(this, _React$Component3.apply(this, arguments));
+ }
+
+ Item.prototype.render = function render() {
+ var _props2 = this.props,
+ items = _props2.items,
+ message = _props2.message,
+ verified = _props2.verified;
+
+ var className = verified ? 'auth0-lock-checked' : '';
+
+ return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ 'li',
+ { className: className },
+ __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ 'span',
+ null,
+ message
+ ),
+ __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(List, { items: items })
+ );
+ };
+
+ return Item;
+}(__WEBPACK_IMPORTED_MODULE_1_react___default.a.Component);
+
+Item.propTypes = {
+ items: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.array,
+ message: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string.isRequired,
+ verified: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.bool.isRequired
+};
+
+/***/ }),
+/* 207 */
+/***/ (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__input_wrap__ = __webpack_require__(24);
+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 _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; }
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+
+
+
+
+var svg = '';
+
+var PhoneNumberInput = function (_React$Component) {
+ _inherits(PhoneNumberInput, _React$Component);
+
+ function PhoneNumberInput(props) {
+ _classCallCheck(this, PhoneNumberInput);
+
+ var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));
+
+ _this.state = {};
+ return _this;
+ }
+
+ PhoneNumberInput.prototype.render = function render() {
+ var _props = this.props,
+ isValid = _props.isValid,
+ invalidHint = _props.invalidHint,
+ props = _objectWithoutProperties(_props, ['isValid', 'invalidHint']);
+
+ var focused = this.state.focused;
+
+
+ return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
+ __WEBPACK_IMPORTED_MODULE_1__input_wrap__["a" /* default */],
+ {
+ focused: focused,
+ isValid: isValid,
+ invalidHint: invalidHint,
+ name: 'phone-number',
+ icon: svg
+ },
+ __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('input', _extends({
+ ref: 'input',
+ type: 'tel',
+ name: 'phoneNumber',
+ className: 'auth0-lock-input auth0-lock-input-number',
+ autoComplete: 'off',
+ onFocus: this.handleFocus.bind(this),
+ onBlur: this.handleBlur.bind(this),
+ 'aria-label': 'Telephone number',
+ 'aria-invalid': !isValid,
+ 'aria-describedby': !isValid && invalidHint ? 'auth0-lock-error-msg-phone-number' : undefined
+ }, props))
+ );
+ };
+
+ PhoneNumberInput.prototype.focus = function focus() {
+ if (!this.refs.input) return;
+
+ this.refs.input.focus();
+ this.handleFocus();
+ };
+
+ PhoneNumberInput.prototype.handleFocus = function handleFocus() {
+ this.setState({ focused: true });
+ };
+
+ PhoneNumberInput.prototype.handleBlur = function handleBlur() {
+ this.setState({ focused: false });
+ };
+
+ return PhoneNumberInput;
+}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component);
+
+// TODO: specify propTypes
+
+
+/* harmony default export */ __webpack_exports__["a"] = (PhoneNumberInput);
+
+/***/ }),
+/* 208 */
+/***/ (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__input_wrap__ = __webpack_require__(24);
+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 _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; }
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+
+
+
+
+var svg = '';
+
+var UsernameInput = function (_React$Component) {
+ _inherits(UsernameInput, _React$Component);
+
+ function UsernameInput(props) {
+ _classCallCheck(this, UsernameInput);
+
+ var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));
+
+ _this.state = {};
+ return _this;
+ }
+
+ UsernameInput.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) {
+ var _props = this.props,
+ invalidHint = _props.invalidHint,
+ isValid = _props.isValid,
+ value = _props.value,
+ onChange = _props.onChange;
+ var focused = this.state.focused;
+
+
+ return invalidHint != nextProps.invalidHint || isValid != nextProps.isValid || value != nextProps.value || focused != nextState.focused;
+ };
+
+ UsernameInput.prototype.render = function render() {
+ var _props2 = this.props,
+ invalidHint = _props2.invalidHint,
+ isValid = _props2.isValid,
+ onChange = _props2.onChange,
+ autoComplete = _props2.autoComplete,
+ props = _objectWithoutProperties(_props2, ['invalidHint', 'isValid', 'onChange', 'autoComplete']);
+
+ var focused = this.state.focused;
+
+
+ return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
+ __WEBPACK_IMPORTED_MODULE_1__input_wrap__["a" /* default */],
+ {
+ focused: focused,
+ invalidHint: invalidHint,
+ isValid: isValid,
+ name: 'username',
+ icon: svg
+ },
+ __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('input', _extends({
+ ref: 'input',
+ type: 'text',
+ name: 'username',
+ className: 'auth0-lock-input',
+ placeholder: 'username',
+ autoComplete: autoComplete ? 'on' : 'off',
+ autoCapitalize: 'off',
+ spellCheck: 'off',
+ autoCorrect: 'off',
+ onChange: this.handleOnChange.bind(this),
+ onFocus: this.handleFocus.bind(this),
+ onBlur: this.handleBlur.bind(this),
+ 'aria-label': 'User name',
+ 'aria-invalid': !isValid,
+ 'aria-describedby': !isValid && invalidHint ? 'auth0-lock-error-msg-username' : undefined
+ }, props))
+ );
+ };
+
+ UsernameInput.prototype.handleOnChange = function handleOnChange(e) {
+ if (this.props.onChange) {
+ this.props.onChange(e);
+ }
+ };
+
+ UsernameInput.prototype.handleFocus = function handleFocus() {
+ this.setState({ focused: true });
+ };
+
+ UsernameInput.prototype.handleBlur = function handleBlur() {
+ this.setState({ focused: false });
+ };
+
+ return UsernameInput;
+}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component);
+
+// TODO: specify propTypes
+
+
+/* harmony default export */ __webpack_exports__["a"] = (UsernameInput);
+
+/***/ }),
+/* 209 */
+/***/ (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__input_wrap__ = __webpack_require__(24);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__utils_media_utils__ = __webpack_require__(56);
+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 _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; }
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+
+
+
+
+
+var svg = '';
+
+var VcodeInput = function (_React$Component) {
+ _inherits(VcodeInput, _React$Component);
+
+ function VcodeInput(props) {
+ _classCallCheck(this, VcodeInput);
+
+ var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));
+
+ _this.state = {};
+ return _this;
+ }
+
+ VcodeInput.prototype.componentDidMount = function componentDidMount() {
+ var _this2 = this;
+
+ if (!__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__utils_media_utils__["a" /* isSmallScreen */])()) {
+ // TODO: We can't set the focus immediately because we have to wait for
+ // the input to be visible. Use a more robust solution (Placeholder should
+ // notify it children when they are being shown).
+ setTimeout(function () {
+ return _this2.refs.input && _this2.refs.input.focus();
+ }, 1200);
+ }
+ };
+
+ VcodeInput.prototype.render = function render() {
+ var _props = this.props,
+ lockId = _props.lockId,
+ isValid = _props.isValid,
+ props = _objectWithoutProperties(_props, ['lockId', 'isValid']);
+
+ var focused = this.state.focused;
+
+
+ return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
+ __WEBPACK_IMPORTED_MODULE_1__input_wrap__["a" /* default */],
+ { focused: focused, isValid: isValid, name: 'vcode', icon: svg },
+ __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('input', _extends({
+ id: lockId + '-vcode',
+ ref: 'input',
+ type: 'tel',
+ name: 'vcode',
+ className: 'auth0-lock-input auth0-lock-input-code',
+ autoComplete: 'off',
+ autoCapitalize: 'off',
+ onFocus: this.handleFocus.bind(this),
+ onBlur: this.handleBlur.bind(this),
+ 'aria-label': 'vcode',
+ 'aria-invalid': !isValid
+ }, props))
+ );
+ };
+
+ VcodeInput.prototype.handleFocus = function handleFocus() {
+ this.setState({ focused: true });
+ };
+
+ VcodeInput.prototype.handleBlur = function handleBlur() {
+ this.setState({ focused: false });
+ };
+
+ return VcodeInput;
+}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component);
+
+// TODO: specify propTypes
+
+
+/* harmony default export */ __webpack_exports__["a"] = (VcodeInput);
+
+/***/ }),
+/* 210 */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types__ = __webpack_require__(3);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_prop_types__);
+/* 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_react_dom__ = __webpack_require__(30);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_dom__);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__box_button__ = __webpack_require__(54);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__input_text_input__ = __webpack_require__(113);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__utils_media_utils__ = __webpack_require__(56);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__utils_string_utils__ = __webpack_require__(115);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__core_index__ = __webpack_require__(1);
+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; }
+
+
+
+
+
+
+
+
+
+
+var cycle = function cycle(xs, x) {
+ return xs.skipWhile(function (y) {
+ return y !== x;
+ }).get(1, xs.get(0));
+};
+
+var FiltrableList = function (_React$Component) {
+ _inherits(FiltrableList, _React$Component);
+
+ function FiltrableList(props) {
+ _classCallCheck(this, FiltrableList);
+
+ var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));
+
+ _this.state = { filteredItems: props.items, highlighted: props.defaultItem };
+ return _this;
+ }
+
+ FiltrableList.prototype.filter = function filter(str) {
+ var filteredItems = this.props.items.filter(function (x) {
+ return __WEBPACK_IMPORTED_MODULE_6__utils_string_utils__["b" /* matches */](str, x.get('label'));
+ });
+
+ var highlighted = filteredItems.size === 1 && filteredItems.get(0) || filteredItems.includes(this.state.highlighted) && this.state.highlighted || null;
+
+ return {
+ filteredItems: filteredItems,
+ highlighted: highlighted
+ };
+ };
+
+ FiltrableList.prototype.select = function select(x) {
+ this.props.onSelect(x);
+ };
+
+ FiltrableList.prototype.handleChange = function handleChange(e) {
+ this.setState(this.filter(e.target.value));
+ };
+
+ FiltrableList.prototype.handleKeyDown = function handleKeyDown(e) {
+ var _state = this.state,
+ filteredItems = _state.filteredItems,
+ highlighted = _state.highlighted;
+
+
+ switch (e.key) {
+ case 'ArrowDown':
+ e.preventDefault();
+ this.setState({ highlighted: cycle(filteredItems, highlighted) });
+ break;
+ case 'ArrowUp':
+ e.preventDefault();
+ this.setState({ highlighted: cycle(filteredItems.reverse(), highlighted) });
+ break;
+ case 'Enter':
+ e.preventDefault();
+ highlighted && this.select(highlighted);
+ break;
+ case 'Escape':
+ e.preventDefault();
+ this.props.onCancel();
+ default:
+ // no-op
+ }
+ };
+
+ FiltrableList.prototype.render = function render() {
+ var _this2 = this;
+
+ var _props = this.props,
+ icon = _props.icon,
+ iconUrl = _props.iconUrl,
+ onCancel = _props.onCancel,
+ model = _props.model;
+
+ return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ 'div',
+ { className: 'auth0-lock-select-country' },
+ __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ 'div',
+ { className: 'auth0-lock-search' },
+ __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3__box_button__["a" /* BackButton */], { lockId: __WEBPACK_IMPORTED_MODULE_7__core_index__["id"](model), onClick: onCancel }),
+ __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__input_text_input__["a" /* default */], {
+ lockId: __WEBPACK_IMPORTED_MODULE_7__core_index__["id"](model),
+ name: 'search',
+ icon: icon,
+ iconUrl: iconUrl,
+ isValid: true,
+ onChange: this.handleChange.bind(this),
+ onKeyDown: this.handleKeyDown.bind(this)
+ })
+ ),
+ __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(List, {
+ highlighted: this.state.highlighted,
+ items: this.state.filteredItems,
+ onClick: this.select.bind(this),
+ onMouseMove: function onMouseMove(x) {
+ return _this2.setState({ highlighted: x });
+ }
+ })
+ );
+ };
+
+ return FiltrableList;
+}(__WEBPACK_IMPORTED_MODULE_1_react___default.a.Component);
+
+/* harmony default export */ __webpack_exports__["a"] = (FiltrableList);
+
+var List = function (_React$Component2) {
+ _inherits(List, _React$Component2);
+
+ function List() {
+ _classCallCheck(this, List);
+
+ return _possibleConstructorReturn(this, _React$Component2.apply(this, arguments));
+ }
+
+ List.prototype.componentDidUpdate = function componentDidUpdate() {
+ var _this4 = this;
+
+ // Ensure that highlighted item is entirely visible
+
+ // NOTE: I've spent very little time on this. It works, but it
+ // surely can be more clearly.
+
+ var highlighted = this.refs.highlighted;
+
+
+ if (highlighted) {
+ var scrollableNode = __WEBPACK_IMPORTED_MODULE_2_react_dom___default.a.findDOMNode(this);
+ var highlightedNode = __WEBPACK_IMPORTED_MODULE_2_react_dom___default.a.findDOMNode(highlighted);
+ var relativeOffsetTop = highlightedNode.offsetTop - scrollableNode.scrollTop;
+ var scrollTopDelta = 0;
+ if (relativeOffsetTop + highlightedNode.offsetHeight > scrollableNode.clientHeight) {
+ scrollTopDelta = relativeOffsetTop + highlightedNode.offsetHeight - scrollableNode.clientHeight;
+ } else if (relativeOffsetTop < 0) {
+ scrollTopDelta = relativeOffsetTop;
+ }
+
+ if (scrollTopDelta) {
+ this.preventHighlight = true;
+ scrollableNode.scrollTop += scrollTopDelta;
+ if (this.timeout) clearTimeout(this.timeout);
+ this.timeout = setTimeout(function () {
+ return _this4.preventHighlight = false;
+ }, 100);
+ }
+ }
+ };
+
+ List.prototype.mouseMoveHandler = function mouseMoveHandler(x) {
+ // TODO: This is an ugly hack to avoid highlighting the element under the
+ // mouse when an arrow key trigger a scroll of the list (which in turn
+ // triggers a mousemove event).
+ !this.preventHighlight && this.props.onMouseMove(x);
+ };
+
+ List.prototype.mouseLeaveHandler = function mouseLeaveHandler() {
+ // TODO: clear highlighted?
+ };
+
+ List.prototype.render = function render() {
+ var _this5 = this;
+
+ var items = this.props.items.map(function (x) {
+ var highlighted = x === _this5.props.highlighted;
+
+ var props = {
+ highlighted: highlighted,
+ label: x.get('label'),
+ onClick: function onClick() {
+ return _this5.props.onClick(x);
+ },
+ onMouseMove: function onMouseMove() {
+ return _this5.mouseMoveHandler(x);
+ }
+ };
+
+ if (highlighted) props.ref = 'highlighted';
+
+ return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(Item, _extends({ key: x.get('label') }, props));
+ });
+
+ return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ 'div',
+ { className: 'auth0-lock-list-code', onMouseLeave: this.mouseLeaveHandler.bind(this) },
+ __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ 'ul',
+ null,
+ items
+ )
+ );
+ };
+
+ return List;
+}(__WEBPACK_IMPORTED_MODULE_1_react___default.a.Component);
+
+var Item = function (_React$Component3) {
+ _inherits(Item, _React$Component3);
+
+ function Item() {
+ _classCallCheck(this, Item);
+
+ return _possibleConstructorReturn(this, _React$Component3.apply(this, arguments));
+ }
+
+ Item.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) {
+ return this.props.highlighted != nextProps.highlighted;
+ };
+
+ Item.prototype.render = function render() {
+ var _props2 = this.props,
+ highlighted = _props2.highlighted,
+ label = _props2.label,
+ onClick = _props2.onClick,
+ onMouseMove = _props2.onMouseMove;
+
+ var className = highlighted ? 'auth0-lock-list-code-highlighted' : '';
+
+ return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
+ 'li',
+ { className: className, onClick: onClick, onMouseMove: onMouseMove },
+ label
+ );
+ };
+
+ return Item;
+}(__WEBPACK_IMPORTED_MODULE_1_react___default.a.Component);
+
+Item.propTypes = {
+ highlighted: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.bool.isRequired,
+ label: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string.isRequired,
+ onClick: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.func.isRequired,
+ onMouseMove: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.func.isRequired
+};
+
+/***/ }),
+/* 211 */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony export (immutable) */ __webpack_exports__["a"] = atom;
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+var Atom = function () {
+ function Atom(state) {
+ _classCallCheck(this, Atom);
+
+ this.state = state;
+ this.watches = {};
+ }
+
+ Atom.prototype.reset = function reset(state) {
+ return this._change(state);
+ };
+
+ Atom.prototype.swap = function swap(f) {
+ for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
+ args[_key - 1] = arguments[_key];
+ }
+
+ return this._change(f.apply(undefined, [this.state].concat(args)));
+ };
+
+ Atom.prototype.deref = function deref() {
+ return this.state;
+ };
+
+ Atom.prototype.addWatch = function addWatch(k, f) {
+ // if (this.watches[key]) {
+ // console.warn(`adding a watch with an already registered key: ${k}`);
+ // }
+ this.watches[k] = f;
+ return this;
+ };
+
+ Atom.prototype.removeWatch = function removeWatch(k) {
+ // if (!this.watches[key]) {
+ // console.warn(`removing a watch with an unknown key: ${k}`);
+ // }
+ delete this.watches[k];
+ return this;
+ };
+
+ Atom.prototype._change = function _change(newState) {
+ var state = this.state,
+ watches = this.watches;
+
+ this.state = newState;
+ Object.keys(watches).forEach(function (k) {
+ return watches[k](k, state, newState);
+ });
+ return this.state;
+ };
+
+ return Atom;
+}();
+
+function atom(state) {
+ return new Atom(state);
+}
+
+/***/ }),
+/* 212 */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+var Cache = function () {
+ function Cache(fetchFn) {
+ _classCallCheck(this, Cache);
+
+ this.cache = {};
+ this.cbs = {};
+ this.fetchFn = fetchFn;
+ }
+
+ Cache.prototype.get = function get() {
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
+ args[_key] = arguments[_key];
+ }
+
+ var cb = args.pop();
+ var key = JSON.stringify(args);
+ if (this.cache[key]) return cb(null, this.cache[key]);
+ if (this.registerCallback(key, cb) > 1) return;
+ this.fetch(key, args);
+ };
+
+ Cache.prototype.fetch = function fetch(key, args) {
+ var _this = this;
+
+ this.fetchFn.apply(this, args.concat([function (error, result) {
+ if (!error) _this.cache[key] = result;
+ _this.execCallbacks(key, error, result);
+ }]));
+ };
+
+ Cache.prototype.registerCallback = function registerCallback(key, cb) {
+ this.cbs[key] = this.cbs[key] || [];
+ this.cbs[key].push(cb);
+ return this.cbs[key].length;
+ };
+
+ Cache.prototype.execCallbacks = function execCallbacks(key) {
+ for (var _len2 = arguments.length, args = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
+ args[_key2 - 1] = arguments[_key2];
+ }
+
+ if (this.cbs[key]) this.cbs[key].forEach(function (f) {
+ return f.apply(undefined, args);
+ });
+ delete this.cbs[key];
+ };
+
+ return Cache;
+}();
+
+/* harmony default export */ __webpack_exports__["a"] = (Cache);
+
+/***/ }),
+/* 213 */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony export (immutable) */ __webpack_exports__["a"] = debounce;
+function debounce(f, delay) {
+ var t = void 0;
+ return function () {
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
+ args[_key] = arguments[_key];
+ }
+
+ function handler() {
+ clearTimeout(t);
+ f.apply(undefined, args);
+ }
+ clearTimeout(t);
+ t = setTimeout(handler, delay);
+ };
+}
+
+/***/ }),
+/* 214 */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* unused harmony export random */
+/* harmony export (immutable) */ __webpack_exports__["a"] = incremental;
+function random() {
+ return (+new Date() + Math.floor(Math.random() * 10000000)).toString(36);
+}
+
+var start = 1;
+function incremental() {
+ return start++;
+}
+
+/***/ }),
+/* 215 */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_jsonp__ = __webpack_require__(238);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_jsonp___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_jsonp__);
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+
+
+var JSONPUtils = function () {
+ function JSONPUtils() {
+ _classCallCheck(this, JSONPUtils);
+ }
+
+ JSONPUtils.prototype.get = function get() {
+ return __WEBPACK_IMPORTED_MODULE_0_jsonp___default.a.apply(undefined, arguments);
+ };
+
+ return JSONPUtils;
+}();
+
+/* harmony default export */ __webpack_exports__["a"] = (new JSONPUtils());
+
+/***/ }),
+/* 216 */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony export (immutable) */ __webpack_exports__["b"] = getLocationFromUrl;
+/* harmony export (immutable) */ __webpack_exports__["a"] = getOriginFromUrl;
+function getLocationFromUrl(href) {
+ var match = href.match(/^(https?:|chrome-extension:)\/\/(([^:/?#]*)(?::([0-9]+))?)([/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/);
+ return match && {
+ href: href,
+ protocol: match[1],
+ host: match[2],
+ hostname: match[3],
+ port: match[4],
+ pathname: match[5],
+ search: match[6],
+ hash: match[7]
+ };
+}
+
+function getOriginFromUrl(url) {
+ if (!url) {
+ return undefined;
+ }
+ var parsed = getLocationFromUrl(url);
+ if (!parsed) {
+ return null;
+ }
+ var origin = parsed.protocol + '//' + parsed.hostname;
+ if (parsed.port) {
+ origin += ':' + parsed.port;
+ }
+ return origin;
+}
+
+/***/ }),
+/* 217 */
+/***/ (function(module, exports, __webpack_require__) {
+
+var __WEBPACK_AMD_DEFINE_RESULT__;/*
+ * JavaScript MD5
+ * https://github.com/blueimp/JavaScript-MD5
+ *
+ * Copyright 2011, Sebastian Tschan
+ * https://blueimp.net
+ *
+ * Licensed under the MIT license:
+ * http://www.opensource.org/licenses/MIT
+ *
+ * Based on
+ * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
+ * Digest Algorithm, as defined in RFC 1321.
+ * Version 2.2 Copyright (C) Paul Johnston 1999 - 2009
+ * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
+ * Distributed under the BSD License
+ * See http://pajhome.org.uk/crypt/md5 for more info.
+ */
+
+/*global unescape, define, module */
+
+;(function ($) {
+ 'use strict'
+
+ /*
+ * Add integers, wrapping at 2^32. This uses 16-bit operations internally
+ * to work around bugs in some JS interpreters.
+ */
+ function safe_add (x, y) {
+ var lsw = (x & 0xFFFF) + (y & 0xFFFF)
+ var msw = (x >> 16) + (y >> 16) + (lsw >> 16)
+ return (msw << 16) | (lsw & 0xFFFF)
+ }
+
+ /*
+ * Bitwise rotate a 32-bit number to the left.
+ */
+ function bit_rol (num, cnt) {
+ return (num << cnt) | (num >>> (32 - cnt))
+ }
+
+ /*
+ * These functions implement the four basic operations the algorithm uses.
+ */
+ function md5_cmn (q, a, b, x, s, t) {
+ return safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s), b)
+ }
+ function md5_ff (a, b, c, d, x, s, t) {
+ return md5_cmn((b & c) | ((~b) & d), a, b, x, s, t)
+ }
+ function md5_gg (a, b, c, d, x, s, t) {
+ return md5_cmn((b & d) | (c & (~d)), a, b, x, s, t)
+ }
+ function md5_hh (a, b, c, d, x, s, t) {
+ return md5_cmn(b ^ c ^ d, a, b, x, s, t)
+ }
+ function md5_ii (a, b, c, d, x, s, t) {
+ return md5_cmn(c ^ (b | (~d)), a, b, x, s, t)
+ }
+
+ /*
+ * Calculate the MD5 of an array of little-endian words, and a bit length.
+ */
+ function binl_md5 (x, len) {
+ /* append padding */
+ x[len >> 5] |= 0x80 << (len % 32)
+ x[(((len + 64) >>> 9) << 4) + 14] = len
+
+ var i
+ var olda
+ var oldb
+ var oldc
+ var oldd
+ var a = 1732584193
+ var b = -271733879
+ var c = -1732584194
+ var d = 271733878
+
+ for (i = 0; i < x.length; i += 16) {
+ olda = a
+ oldb = b
+ oldc = c
+ oldd = d
+
+ a = md5_ff(a, b, c, d, x[i], 7, -680876936)
+ d = md5_ff(d, a, b, c, x[i + 1], 12, -389564586)
+ c = md5_ff(c, d, a, b, x[i + 2], 17, 606105819)
+ b = md5_ff(b, c, d, a, x[i + 3], 22, -1044525330)
+ a = md5_ff(a, b, c, d, x[i + 4], 7, -176418897)
+ d = md5_ff(d, a, b, c, x[i + 5], 12, 1200080426)
+ c = md5_ff(c, d, a, b, x[i + 6], 17, -1473231341)
+ b = md5_ff(b, c, d, a, x[i + 7], 22, -45705983)
+ a = md5_ff(a, b, c, d, x[i + 8], 7, 1770035416)
+ d = md5_ff(d, a, b, c, x[i + 9], 12, -1958414417)
+ c = md5_ff(c, d, a, b, x[i + 10], 17, -42063)
+ b = md5_ff(b, c, d, a, x[i + 11], 22, -1990404162)
+ a = md5_ff(a, b, c, d, x[i + 12], 7, 1804603682)
+ d = md5_ff(d, a, b, c, x[i + 13], 12, -40341101)
+ c = md5_ff(c, d, a, b, x[i + 14], 17, -1502002290)
+ b = md5_ff(b, c, d, a, x[i + 15], 22, 1236535329)
+
+ a = md5_gg(a, b, c, d, x[i + 1], 5, -165796510)
+ d = md5_gg(d, a, b, c, x[i + 6], 9, -1069501632)
+ c = md5_gg(c, d, a, b, x[i + 11], 14, 643717713)
+ b = md5_gg(b, c, d, a, x[i], 20, -373897302)
+ a = md5_gg(a, b, c, d, x[i + 5], 5, -701558691)
+ d = md5_gg(d, a, b, c, x[i + 10], 9, 38016083)
+ c = md5_gg(c, d, a, b, x[i + 15], 14, -660478335)
+ b = md5_gg(b, c, d, a, x[i + 4], 20, -405537848)
+ a = md5_gg(a, b, c, d, x[i + 9], 5, 568446438)
+ d = md5_gg(d, a, b, c, x[i + 14], 9, -1019803690)
+ c = md5_gg(c, d, a, b, x[i + 3], 14, -187363961)
+ b = md5_gg(b, c, d, a, x[i + 8], 20, 1163531501)
+ a = md5_gg(a, b, c, d, x[i + 13], 5, -1444681467)
+ d = md5_gg(d, a, b, c, x[i + 2], 9, -51403784)
+ c = md5_gg(c, d, a, b, x[i + 7], 14, 1735328473)
+ b = md5_gg(b, c, d, a, x[i + 12], 20, -1926607734)
+
+ a = md5_hh(a, b, c, d, x[i + 5], 4, -378558)
+ d = md5_hh(d, a, b, c, x[i + 8], 11, -2022574463)
+ c = md5_hh(c, d, a, b, x[i + 11], 16, 1839030562)
+ b = md5_hh(b, c, d, a, x[i + 14], 23, -35309556)
+ a = md5_hh(a, b, c, d, x[i + 1], 4, -1530992060)
+ d = md5_hh(d, a, b, c, x[i + 4], 11, 1272893353)
+ c = md5_hh(c, d, a, b, x[i + 7], 16, -155497632)
+ b = md5_hh(b, c, d, a, x[i + 10], 23, -1094730640)
+ a = md5_hh(a, b, c, d, x[i + 13], 4, 681279174)
+ d = md5_hh(d, a, b, c, x[i], 11, -358537222)
+ c = md5_hh(c, d, a, b, x[i + 3], 16, -722521979)
+ b = md5_hh(b, c, d, a, x[i + 6], 23, 76029189)
+ a = md5_hh(a, b, c, d, x[i + 9], 4, -640364487)
+ d = md5_hh(d, a, b, c, x[i + 12], 11, -421815835)
+ c = md5_hh(c, d, a, b, x[i + 15], 16, 530742520)
+ b = md5_hh(b, c, d, a, x[i + 2], 23, -995338651)
+
+ a = md5_ii(a, b, c, d, x[i], 6, -198630844)
+ d = md5_ii(d, a, b, c, x[i + 7], 10, 1126891415)
+ c = md5_ii(c, d, a, b, x[i + 14], 15, -1416354905)
+ b = md5_ii(b, c, d, a, x[i + 5], 21, -57434055)
+ a = md5_ii(a, b, c, d, x[i + 12], 6, 1700485571)
+ d = md5_ii(d, a, b, c, x[i + 3], 10, -1894986606)
+ c = md5_ii(c, d, a, b, x[i + 10], 15, -1051523)
+ b = md5_ii(b, c, d, a, x[i + 1], 21, -2054922799)
+ a = md5_ii(a, b, c, d, x[i + 8], 6, 1873313359)
+ d = md5_ii(d, a, b, c, x[i + 15], 10, -30611744)
+ c = md5_ii(c, d, a, b, x[i + 6], 15, -1560198380)
+ b = md5_ii(b, c, d, a, x[i + 13], 21, 1309151649)
+ a = md5_ii(a, b, c, d, x[i + 4], 6, -145523070)
+ d = md5_ii(d, a, b, c, x[i + 11], 10, -1120210379)
+ c = md5_ii(c, d, a, b, x[i + 2], 15, 718787259)
+ b = md5_ii(b, c, d, a, x[i + 9], 21, -343485551)
+
+ a = safe_add(a, olda)
+ b = safe_add(b, oldb)
+ c = safe_add(c, oldc)
+ d = safe_add(d, oldd)
+ }
+ return [a, b, c, d]
+ }
+
+ /*
+ * Convert an array of little-endian words to a string
+ */
+ function binl2rstr (input) {
+ var i
+ var output = ''
+ var length32 = input.length * 32
+ for (i = 0; i < length32; i += 8) {
+ output += String.fromCharCode((input[i >> 5] >>> (i % 32)) & 0xFF)
+ }
+ return output
+ }
+
+ /*
+ * Convert a raw string to an array of little-endian words
+ * Characters >255 have their high-byte silently ignored.
+ */
+ function rstr2binl (input) {
+ var i
+ var output = []
+ output[(input.length >> 2) - 1] = undefined
+ for (i = 0; i < output.length; i += 1) {
+ output[i] = 0
+ }
+ var length8 = input.length * 8
+ for (i = 0; i < length8; i += 8) {
+ output[i >> 5] |= (input.charCodeAt(i / 8) & 0xFF) << (i % 32)
+ }
+ return output
+ }
+
+ /*
+ * Calculate the MD5 of a raw string
+ */
+ function rstr_md5 (s) {
+ return binl2rstr(binl_md5(rstr2binl(s), s.length * 8))
+ }
+
+ /*
+ * Calculate the HMAC-MD5, of a key and some data (raw strings)
+ */
+ function rstr_hmac_md5 (key, data) {
+ var i
+ var bkey = rstr2binl(key)
+ var ipad = []
+ var opad = []
+ var hash
+ ipad[15] = opad[15] = undefined
+ if (bkey.length > 16) {
+ bkey = binl_md5(bkey, key.length * 8)
+ }
+ for (i = 0; i < 16; i += 1) {
+ ipad[i] = bkey[i] ^ 0x36363636
+ opad[i] = bkey[i] ^ 0x5C5C5C5C
+ }
+ hash = binl_md5(ipad.concat(rstr2binl(data)), 512 + data.length * 8)
+ return binl2rstr(binl_md5(opad.concat(hash), 512 + 128))
+ }
+
+ /*
+ * Convert a raw string to a hex string
+ */
+ function rstr2hex (input) {
+ var hex_tab = '0123456789abcdef'
+ var output = ''
+ var x
+ var i
+ for (i = 0; i < input.length; i += 1) {
+ x = input.charCodeAt(i)
+ output += hex_tab.charAt((x >>> 4) & 0x0F) +
+ hex_tab.charAt(x & 0x0F)
+ }
+ return output
+ }
+
+ /*
+ * Encode a string as utf-8
+ */
+ function str2rstr_utf8 (input) {
+ return unescape(encodeURIComponent(input))
+ }
+
+ /*
+ * Take string arguments and return either raw or hex encoded strings
+ */
+ function raw_md5 (s) {
+ return rstr_md5(str2rstr_utf8(s))
+ }
+ function hex_md5 (s) {
+ return rstr2hex(raw_md5(s))
+ }
+ function raw_hmac_md5 (k, d) {
+ return rstr_hmac_md5(str2rstr_utf8(k), str2rstr_utf8(d))
+ }
+ function hex_hmac_md5 (k, d) {
+ return rstr2hex(raw_hmac_md5(k, d))
+ }
+
+ function md5 (string, key, raw) {
+ if (!key) {
+ if (!raw) {
+ return hex_md5(string)
+ }
+ return raw_md5(string)
+ }
+ if (!raw) {
+ return hex_hmac_md5(key, string)
+ }
+ return raw_hmac_md5(key, string)
+ }
+
+ if (true) {
+ !(__WEBPACK_AMD_DEFINE_RESULT__ = function () {
+ return md5
+ }.call(exports, __webpack_require__, exports, module),
+ __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__))
+ } else if (typeof module === 'object' && module.exports) {
+ module.exports = md5
+ } else {
+ $.md5 = md5
+ }
+}(this))
+
+
+/***/ }),
+/* 218 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+/**
+ * Copyright (c) 2013-present, Facebook, Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ *
+ */
+
+
+
+var _assign = __webpack_require__(7);
+
+var emptyObject = __webpack_require__(57);
+var _invariant = __webpack_require__(2);
+
+if (false) {
+ var warning = require('fbjs/lib/warning');
+}
+
+var MIXINS_KEY = 'mixins';
+
+// Helper function to allow the creation of anonymous functions which do not
+// have .name set to the name of the variable being assigned to.
+function identity(fn) {
+ return fn;
+}
+
+var ReactPropTypeLocationNames;
+if (false) {
+ ReactPropTypeLocationNames = {
+ prop: 'prop',
+ context: 'context',
+ childContext: 'child context'
+ };
+} else {
+ ReactPropTypeLocationNames = {};
+}
+
+function factory(ReactComponent, isValidElement, ReactNoopUpdateQueue) {
+ /**
+ * Policies that describe methods in `ReactClassInterface`.
+ */
+
+ var injectedMixins = [];
+
+ /**
+ * Composite components are higher-level components that compose other composite
+ * or host components.
+ *
+ * To create a new type of `ReactClass`, pass a specification of
+ * your new class to `React.createClass`. The only requirement of your class
+ * specification is that you implement a `render` method.
+ *
+ * var MyComponent = React.createClass({
+ * render: function() {
+ * return Hello World
;
+ * }
+ * });
+ *
+ * The class specification supports a specific protocol of methods that have
+ * special meaning (e.g. `render`). See `ReactClassInterface` for
+ * more the comprehensive protocol. Any other properties and methods in the
+ * class specification will be available on the prototype.
+ *
+ * @interface ReactClassInterface
+ * @internal
+ */
+ var ReactClassInterface = {
+ /**
+ * An array of Mixin objects to include when defining your component.
+ *
+ * @type {array}
+ * @optional
+ */
+ mixins: 'DEFINE_MANY',
+
+ /**
+ * An object containing properties and methods that should be defined on
+ * the component's constructor instead of its prototype (static methods).
+ *
+ * @type {object}
+ * @optional
+ */
+ statics: 'DEFINE_MANY',
+
+ /**
+ * Definition of prop types for this component.
+ *
+ * @type {object}
+ * @optional
+ */
+ propTypes: 'DEFINE_MANY',
+
+ /**
+ * Definition of context types for this component.
+ *
+ * @type {object}
+ * @optional
+ */
+ contextTypes: 'DEFINE_MANY',
+
+ /**
+ * Definition of context types this component sets for its children.
+ *
+ * @type {object}
+ * @optional
+ */
+ childContextTypes: 'DEFINE_MANY',
+
+ // ==== Definition methods ====
+
+ /**
+ * Invoked when the component is mounted. Values in the mapping will be set on
+ * `this.props` if that prop is not specified (i.e. using an `in` check).
+ *
+ * This method is invoked before `getInitialState` and therefore cannot rely
+ * on `this.state` or use `this.setState`.
+ *
+ * @return {object}
+ * @optional
+ */
+ getDefaultProps: 'DEFINE_MANY_MERGED',
+
+ /**
+ * Invoked once before the component is mounted. The return value will be used
+ * as the initial value of `this.state`.
+ *
+ * getInitialState: function() {
+ * return {
+ * isOn: false,
+ * fooBaz: new BazFoo()
+ * }
+ * }
+ *
+ * @return {object}
+ * @optional
+ */
+ getInitialState: 'DEFINE_MANY_MERGED',
+
+ /**
+ * @return {object}
+ * @optional
+ */
+ getChildContext: 'DEFINE_MANY_MERGED',
+
+ /**
+ * Uses props from `this.props` and state from `this.state` to render the
+ * structure of the component.
+ *
+ * No guarantees are made about when or how often this method is invoked, so
+ * it must not have side effects.
+ *
+ * render: function() {
+ * var name = this.props.name;
+ * return Hello, {name}!
;
+ * }
+ *
+ * @return {ReactComponent}
+ * @required
+ */
+ render: 'DEFINE_ONCE',
+
+ // ==== Delegate methods ====
+
+ /**
+ * Invoked when the component is initially created and about to be mounted.
+ * This may have side effects, but any external subscriptions or data created
+ * by this method must be cleaned up in `componentWillUnmount`.
+ *
+ * @optional
+ */
+ componentWillMount: 'DEFINE_MANY',
+
+ /**
+ * Invoked when the component has been mounted and has a DOM representation.
+ * However, there is no guarantee that the DOM node is in the document.
+ *
+ * Use this as an opportunity to operate on the DOM when the component has
+ * been mounted (initialized and rendered) for the first time.
+ *
+ * @param {DOMElement} rootNode DOM element representing the component.
+ * @optional
+ */
+ componentDidMount: 'DEFINE_MANY',
+
+ /**
+ * Invoked before the component receives new props.
+ *
+ * Use this as an opportunity to react to a prop transition by updating the
+ * state using `this.setState`. Current props are accessed via `this.props`.
+ *
+ * componentWillReceiveProps: function(nextProps, nextContext) {
+ * this.setState({
+ * likesIncreasing: nextProps.likeCount > this.props.likeCount
+ * });
+ * }
+ *
+ * NOTE: There is no equivalent `componentWillReceiveState`. An incoming prop
+ * transition may cause a state change, but the opposite is not true. If you
+ * need it, you are probably looking for `componentWillUpdate`.
+ *
+ * @param {object} nextProps
+ * @optional
+ */
+ componentWillReceiveProps: 'DEFINE_MANY',
+
+ /**
+ * Invoked while deciding if the component should be updated as a result of
+ * receiving new props, state and/or context.
+ *
+ * Use this as an opportunity to `return false` when you're certain that the
+ * transition to the new props/state/context will not require a component
+ * update.
+ *
+ * shouldComponentUpdate: function(nextProps, nextState, nextContext) {
+ * return !equal(nextProps, this.props) ||
+ * !equal(nextState, this.state) ||
+ * !equal(nextContext, this.context);
+ * }
+ *
+ * @param {object} nextProps
+ * @param {?object} nextState
+ * @param {?object} nextContext
+ * @return {boolean} True if the component should update.
+ * @optional
+ */
+ shouldComponentUpdate: 'DEFINE_ONCE',
+
+ /**
+ * Invoked when the component is about to update due to a transition from
+ * `this.props`, `this.state` and `this.context` to `nextProps`, `nextState`
+ * and `nextContext`.
+ *
+ * Use this as an opportunity to perform preparation before an update occurs.
+ *
+ * NOTE: You **cannot** use `this.setState()` in this method.
+ *
+ * @param {object} nextProps
+ * @param {?object} nextState
+ * @param {?object} nextContext
+ * @param {ReactReconcileTransaction} transaction
+ * @optional
+ */
+ componentWillUpdate: 'DEFINE_MANY',
+
+ /**
+ * Invoked when the component's DOM representation has been updated.
+ *
+ * Use this as an opportunity to operate on the DOM when the component has
+ * been updated.
+ *
+ * @param {object} prevProps
+ * @param {?object} prevState
+ * @param {?object} prevContext
+ * @param {DOMElement} rootNode DOM element representing the component.
+ * @optional
+ */
+ componentDidUpdate: 'DEFINE_MANY',
+
+ /**
+ * Invoked when the component is about to be removed from its parent and have
+ * its DOM representation destroyed.
+ *
+ * Use this as an opportunity to deallocate any external resources.
+ *
+ * NOTE: There is no `componentDidUnmount` since your component will have been
+ * destroyed by that point.
+ *
+ * @optional
+ */
+ componentWillUnmount: 'DEFINE_MANY',
+
+ /**
+ * Replacement for (deprecated) `componentWillMount`.
+ *
+ * @optional
+ */
+ UNSAFE_componentWillMount: 'DEFINE_MANY',
+
+ /**
+ * Replacement for (deprecated) `componentWillReceiveProps`.
+ *
+ * @optional
+ */
+ UNSAFE_componentWillReceiveProps: 'DEFINE_MANY',
+
+ /**
+ * Replacement for (deprecated) `componentWillUpdate`.
+ *
+ * @optional
+ */
+ UNSAFE_componentWillUpdate: 'DEFINE_MANY',
+
+ // ==== Advanced methods ====
+
+ /**
+ * Updates the component's currently mounted DOM representation.
+ *
+ * By default, this implements React's rendering and reconciliation algorithm.
+ * Sophisticated clients may wish to override this.
+ *
+ * @param {ReactReconcileTransaction} transaction
+ * @internal
+ * @overridable
+ */
+ updateComponent: 'OVERRIDE_BASE'
+ };
+
+ /**
+ * Similar to ReactClassInterface but for static methods.
+ */
+ var ReactClassStaticInterface = {
+ /**
+ * This method is invoked after a component is instantiated and when it
+ * receives new props. Return an object to update state in response to
+ * prop changes. Return null to indicate no change to state.
+ *
+ * If an object is returned, its keys will be merged into the existing state.
+ *
+ * @return {object || null}
+ * @optional
+ */
+ getDerivedStateFromProps: 'DEFINE_MANY_MERGED'
+ };
+
+ /**
+ * Mapping from class specification keys to special processing functions.
+ *
+ * Although these are declared like instance properties in the specification
+ * when defining classes using `React.createClass`, they are actually static
+ * and are accessible on the constructor instead of the prototype. Despite
+ * being static, they must be defined outside of the "statics" key under
+ * which all other static methods are defined.
+ */
+ var RESERVED_SPEC_KEYS = {
+ displayName: function(Constructor, displayName) {
+ Constructor.displayName = displayName;
+ },
+ mixins: function(Constructor, mixins) {
+ if (mixins) {
+ for (var i = 0; i < mixins.length; i++) {
+ mixSpecIntoComponent(Constructor, mixins[i]);
+ }
+ }
+ },
+ childContextTypes: function(Constructor, childContextTypes) {
+ if (false) {
+ validateTypeDef(Constructor, childContextTypes, 'childContext');
+ }
+ Constructor.childContextTypes = _assign(
+ {},
+ Constructor.childContextTypes,
+ childContextTypes
+ );
+ },
+ contextTypes: function(Constructor, contextTypes) {
+ if (false) {
+ validateTypeDef(Constructor, contextTypes, 'context');
+ }
+ Constructor.contextTypes = _assign(
+ {},
+ Constructor.contextTypes,
+ contextTypes
+ );
+ },
+ /**
+ * Special case getDefaultProps which should move into statics but requires
+ * automatic merging.
+ */
+ getDefaultProps: function(Constructor, getDefaultProps) {
+ if (Constructor.getDefaultProps) {
+ Constructor.getDefaultProps = createMergedResultFunction(
+ Constructor.getDefaultProps,
+ getDefaultProps
+ );
+ } else {
+ Constructor.getDefaultProps = getDefaultProps;
+ }
+ },
+ propTypes: function(Constructor, propTypes) {
+ if (false) {
+ validateTypeDef(Constructor, propTypes, 'prop');
+ }
+ Constructor.propTypes = _assign({}, Constructor.propTypes, propTypes);
+ },
+ statics: function(Constructor, statics) {
+ mixStaticSpecIntoComponent(Constructor, statics);
+ },
+ autobind: function() {}
+ };
+
+ function validateTypeDef(Constructor, typeDef, location) {
+ for (var propName in typeDef) {
+ if (typeDef.hasOwnProperty(propName)) {
+ // use a warning instead of an _invariant so components
+ // don't show up in prod but only in __DEV__
+ if (false) {
+ warning(
+ typeof typeDef[propName] === 'function',
+ '%s: %s type `%s` is invalid; it must be a function, usually from ' +
+ 'React.PropTypes.',
+ Constructor.displayName || 'ReactClass',
+ ReactPropTypeLocationNames[location],
+ propName
+ );
+ }
+ }
+ }
+ }
+
+ function validateMethodOverride(isAlreadyDefined, name) {
+ var specPolicy = ReactClassInterface.hasOwnProperty(name)
+ ? ReactClassInterface[name]
+ : null;
+
+ // Disallow overriding of base class methods unless explicitly allowed.
+ if (ReactClassMixin.hasOwnProperty(name)) {
+ _invariant(
+ specPolicy === 'OVERRIDE_BASE',
+ 'ReactClassInterface: You are attempting to override ' +
+ '`%s` from your class specification. Ensure that your method names ' +
+ 'do not overlap with React methods.',
+ name
+ );
+ }
+
+ // Disallow defining methods more than once unless explicitly allowed.
+ if (isAlreadyDefined) {
+ _invariant(
+ specPolicy === 'DEFINE_MANY' || specPolicy === 'DEFINE_MANY_MERGED',
+ 'ReactClassInterface: You are attempting to define ' +
+ '`%s` on your component more than once. This conflict may be due ' +
+ 'to a mixin.',
+ name
+ );
+ }
+ }
+
+ /**
+ * Mixin helper which handles policy validation and reserved
+ * specification keys when building React classes.
+ */
+ function mixSpecIntoComponent(Constructor, spec) {
+ if (!spec) {
+ if (false) {
+ var typeofSpec = typeof spec;
+ var isMixinValid = typeofSpec === 'object' && spec !== null;
+
+ if (process.env.NODE_ENV !== 'production') {
+ warning(
+ isMixinValid,
+ "%s: You're attempting to include a mixin that is either null " +
+ 'or not an object. Check the mixins included by the component, ' +
+ 'as well as any mixins they include themselves. ' +
+ 'Expected object but got %s.',
+ Constructor.displayName || 'ReactClass',
+ spec === null ? null : typeofSpec
+ );
+ }
+ }
+
+ return;
+ }
+
+ _invariant(
+ typeof spec !== 'function',
+ "ReactClass: You're attempting to " +
+ 'use a component class or function as a mixin. Instead, just use a ' +
+ 'regular object.'
+ );
+ _invariant(
+ !isValidElement(spec),
+ "ReactClass: You're attempting to " +
+ 'use a component as a mixin. Instead, just use a regular object.'
+ );
+
+ var proto = Constructor.prototype;
+ var autoBindPairs = proto.__reactAutoBindPairs;
+
+ // By handling mixins before any other properties, we ensure the same
+ // chaining order is applied to methods with DEFINE_MANY policy, whether
+ // mixins are listed before or after these methods in the spec.
+ if (spec.hasOwnProperty(MIXINS_KEY)) {
+ RESERVED_SPEC_KEYS.mixins(Constructor, spec.mixins);
+ }
+
+ for (var name in spec) {
+ if (!spec.hasOwnProperty(name)) {
+ continue;
+ }
+
+ if (name === MIXINS_KEY) {
+ // We have already handled mixins in a special case above.
+ continue;
+ }
+
+ var property = spec[name];
+ var isAlreadyDefined = proto.hasOwnProperty(name);
+ validateMethodOverride(isAlreadyDefined, name);
+
+ if (RESERVED_SPEC_KEYS.hasOwnProperty(name)) {
+ RESERVED_SPEC_KEYS[name](Constructor, property);
+ } else {
+ // Setup methods on prototype:
+ // The following member methods should not be automatically bound:
+ // 1. Expected ReactClass methods (in the "interface").
+ // 2. Overridden methods (that were mixed in).
+ var isReactClassMethod = ReactClassInterface.hasOwnProperty(name);
+ var isFunction = typeof property === 'function';
+ var shouldAutoBind =
+ isFunction &&
+ !isReactClassMethod &&
+ !isAlreadyDefined &&
+ spec.autobind !== false;
+
+ if (shouldAutoBind) {
+ autoBindPairs.push(name, property);
+ proto[name] = property;
+ } else {
+ if (isAlreadyDefined) {
+ var specPolicy = ReactClassInterface[name];
+
+ // These cases should already be caught by validateMethodOverride.
+ _invariant(
+ isReactClassMethod &&
+ (specPolicy === 'DEFINE_MANY_MERGED' ||
+ specPolicy === 'DEFINE_MANY'),
+ 'ReactClass: Unexpected spec policy %s for key %s ' +
+ 'when mixing in component specs.',
+ specPolicy,
+ name
+ );
+
+ // For methods which are defined more than once, call the existing
+ // methods before calling the new property, merging if appropriate.
+ if (specPolicy === 'DEFINE_MANY_MERGED') {
+ proto[name] = createMergedResultFunction(proto[name], property);
+ } else if (specPolicy === 'DEFINE_MANY') {
+ proto[name] = createChainedFunction(proto[name], property);
+ }
+ } else {
+ proto[name] = property;
+ if (false) {
+ // Add verbose displayName to the function, which helps when looking
+ // at profiling tools.
+ if (typeof property === 'function' && spec.displayName) {
+ proto[name].displayName = spec.displayName + '_' + name;
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+
+ function mixStaticSpecIntoComponent(Constructor, statics) {
+ if (!statics) {
+ return;
+ }
+
+ for (var name in statics) {
+ var property = statics[name];
+ if (!statics.hasOwnProperty(name)) {
+ continue;
+ }
+
+ var isReserved = name in RESERVED_SPEC_KEYS;
+ _invariant(
+ !isReserved,
+ 'ReactClass: You are attempting to define a reserved ' +
+ 'property, `%s`, that shouldn\'t be on the "statics" key. Define it ' +
+ 'as an instance property instead; it will still be accessible on the ' +
+ 'constructor.',
+ name
+ );
+
+ var isAlreadyDefined = name in Constructor;
+ if (isAlreadyDefined) {
+ var specPolicy = ReactClassStaticInterface.hasOwnProperty(name)
+ ? ReactClassStaticInterface[name]
+ : null;
+
+ _invariant(
+ specPolicy === 'DEFINE_MANY_MERGED',
+ 'ReactClass: You are attempting to define ' +
+ '`%s` on your component more than once. This conflict may be ' +
+ 'due to a mixin.',
+ name
+ );
+
+ Constructor[name] = createMergedResultFunction(Constructor[name], property);
+
+ return;
+ }
+
+ Constructor[name] = property;
+ }
+ }
+
+ /**
+ * Merge two objects, but throw if both contain the same key.
+ *
+ * @param {object} one The first object, which is mutated.
+ * @param {object} two The second object
+ * @return {object} one after it has been mutated to contain everything in two.
+ */
+ function mergeIntoWithNoDuplicateKeys(one, two) {
+ _invariant(
+ one && two && typeof one === 'object' && typeof two === 'object',
+ 'mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.'
+ );
+
+ for (var key in two) {
+ if (two.hasOwnProperty(key)) {
+ _invariant(
+ one[key] === undefined,
+ 'mergeIntoWithNoDuplicateKeys(): ' +
+ 'Tried to merge two objects with the same key: `%s`. This conflict ' +
+ 'may be due to a mixin; in particular, this may be caused by two ' +
+ 'getInitialState() or getDefaultProps() methods returning objects ' +
+ 'with clashing keys.',
+ key
+ );
+ one[key] = two[key];
+ }
+ }
+ return one;
+ }
+
+ /**
+ * Creates a function that invokes two functions and merges their return values.
+ *
+ * @param {function} one Function to invoke first.
+ * @param {function} two Function to invoke second.
+ * @return {function} Function that invokes the two argument functions.
+ * @private
+ */
+ function createMergedResultFunction(one, two) {
+ return function mergedResult() {
+ var a = one.apply(this, arguments);
+ var b = two.apply(this, arguments);
+ if (a == null) {
+ return b;
+ } else if (b == null) {
+ return a;
+ }
+ var c = {};
+ mergeIntoWithNoDuplicateKeys(c, a);
+ mergeIntoWithNoDuplicateKeys(c, b);
+ return c;
+ };
+ }
+
+ /**
+ * Creates a function that invokes two functions and ignores their return vales.
+ *
+ * @param {function} one Function to invoke first.
+ * @param {function} two Function to invoke second.
+ * @return {function} Function that invokes the two argument functions.
+ * @private
+ */
+ function createChainedFunction(one, two) {
+ return function chainedFunction() {
+ one.apply(this, arguments);
+ two.apply(this, arguments);
+ };
+ }
+
+ /**
+ * Binds a method to the component.
+ *
+ * @param {object} component Component whose method is going to be bound.
+ * @param {function} method Method to be bound.
+ * @return {function} The bound method.
+ */
+ function bindAutoBindMethod(component, method) {
+ var boundMethod = method.bind(component);
+ if (false) {
+ boundMethod.__reactBoundContext = component;
+ boundMethod.__reactBoundMethod = method;
+ boundMethod.__reactBoundArguments = null;
+ var componentName = component.constructor.displayName;
+ var _bind = boundMethod.bind;
+ boundMethod.bind = function(newThis) {
+ for (
+ var _len = arguments.length,
+ args = Array(_len > 1 ? _len - 1 : 0),
+ _key = 1;
+ _key < _len;
+ _key++
+ ) {
+ args[_key - 1] = arguments[_key];
+ }
+
+ // User is trying to bind() an autobound method; we effectively will
+ // ignore the value of "this" that the user is trying to use, so
+ // let's warn.
+ if (newThis !== component && newThis !== null) {
+ if (process.env.NODE_ENV !== 'production') {
+ warning(
+ false,
+ 'bind(): React component methods may only be bound to the ' +
+ 'component instance. See %s',
+ componentName
+ );
+ }
+ } else if (!args.length) {
+ if (process.env.NODE_ENV !== 'production') {
+ warning(
+ false,
+ 'bind(): You are binding a component method to the component. ' +
+ 'React does this for you automatically in a high-performance ' +
+ 'way, so you can safely remove this call. See %s',
+ componentName
+ );
+ }
+ return boundMethod;
+ }
+ var reboundMethod = _bind.apply(boundMethod, arguments);
+ reboundMethod.__reactBoundContext = component;
+ reboundMethod.__reactBoundMethod = method;
+ reboundMethod.__reactBoundArguments = args;
+ return reboundMethod;
+ };
+ }
+ return boundMethod;
+ }
+
+ /**
+ * Binds all auto-bound methods in a component.
+ *
+ * @param {object} component Component whose method is going to be bound.
+ */
+ function bindAutoBindMethods(component) {
+ var pairs = component.__reactAutoBindPairs;
+ for (var i = 0; i < pairs.length; i += 2) {
+ var autoBindKey = pairs[i];
+ var method = pairs[i + 1];
+ component[autoBindKey] = bindAutoBindMethod(component, method);
+ }
+ }
+
+ var IsMountedPreMixin = {
+ componentDidMount: function() {
+ this.__isMounted = true;
+ }
+ };
+
+ var IsMountedPostMixin = {
+ componentWillUnmount: function() {
+ this.__isMounted = false;
+ }
+ };
+
+ /**
+ * Add more to the ReactClass base class. These are all legacy features and
+ * therefore not already part of the modern ReactComponent.
+ */
+ var ReactClassMixin = {
+ /**
+ * TODO: This will be deprecated because state should always keep a consistent
+ * type signature and the only use case for this, is to avoid that.
+ */
+ replaceState: function(newState, callback) {
+ this.updater.enqueueReplaceState(this, newState, callback);
+ },
+
+ /**
+ * Checks whether or not this composite component is mounted.
+ * @return {boolean} True if mounted, false otherwise.
+ * @protected
+ * @final
+ */
+ isMounted: function() {
+ if (false) {
+ warning(
+ this.__didWarnIsMounted,
+ '%s: isMounted is deprecated. Instead, make sure to clean up ' +
+ 'subscriptions and pending requests in componentWillUnmount to ' +
+ 'prevent memory leaks.',
+ (this.constructor && this.constructor.displayName) ||
+ this.name ||
+ 'Component'
+ );
+ this.__didWarnIsMounted = true;
+ }
+ return !!this.__isMounted;
+ }
+ };
+
+ var ReactClassComponent = function() {};
+ _assign(
+ ReactClassComponent.prototype,
+ ReactComponent.prototype,
+ ReactClassMixin
+ );
+
+ /**
+ * Creates a composite component class given a class specification.
+ * See https://facebook.github.io/react/docs/top-level-api.html#react.createclass
+ *
+ * @param {object} spec Class specification (which must define `render`).
+ * @return {function} Component constructor function.
+ * @public
+ */
+ function createClass(spec) {
+ // To keep our warnings more understandable, we'll use a little hack here to
+ // ensure that Constructor.name !== 'Constructor'. This makes sure we don't
+ // unnecessarily identify a class without displayName as 'Constructor'.
+ var Constructor = identity(function(props, context, updater) {
+ // This constructor gets overridden by mocks. The argument is used
+ // by mocks to assert on what gets mounted.
+
+ if (false) {
+ warning(
+ this instanceof Constructor,
+ 'Something is calling a React component directly. Use a factory or ' +
+ 'JSX instead. See: https://fb.me/react-legacyfactory'
+ );
+ }
+
+ // Wire up auto-binding
+ if (this.__reactAutoBindPairs.length) {
+ bindAutoBindMethods(this);
+ }
+
+ this.props = props;
+ this.context = context;
+ this.refs = emptyObject;
+ this.updater = updater || ReactNoopUpdateQueue;
+
+ this.state = null;
+
+ // ReactClasses doesn't have constructors. Instead, they use the
+ // getInitialState and componentWillMount methods for initialization.
+
+ var initialState = this.getInitialState ? this.getInitialState() : null;
+ if (false) {
+ // We allow auto-mocks to proceed as if they're returning null.
+ if (
+ initialState === undefined &&
+ this.getInitialState._isMockFunction
+ ) {
+ // This is probably bad practice. Consider warning here and
+ // deprecating this convenience.
+ initialState = null;
+ }
+ }
+ _invariant(
+ typeof initialState === 'object' && !Array.isArray(initialState),
+ '%s.getInitialState(): must return an object or null',
+ Constructor.displayName || 'ReactCompositeComponent'
+ );
+
+ this.state = initialState;
+ });
+ Constructor.prototype = new ReactClassComponent();
+ Constructor.prototype.constructor = Constructor;
+ Constructor.prototype.__reactAutoBindPairs = [];
+
+ injectedMixins.forEach(mixSpecIntoComponent.bind(null, Constructor));
+
+ mixSpecIntoComponent(Constructor, IsMountedPreMixin);
+ mixSpecIntoComponent(Constructor, spec);
+ mixSpecIntoComponent(Constructor, IsMountedPostMixin);
+
+ // Initialize the defaultProps property after all mixins have been merged.
+ if (Constructor.getDefaultProps) {
+ Constructor.defaultProps = Constructor.getDefaultProps();
+ }
+
+ if (false) {
+ // This is a tag to indicate that the use of these method names is ok,
+ // since it's used with createClass. If it's not, then it's likely a
+ // mistake so we'll warn you to use the static property, property
+ // initializer or constructor respectively.
+ if (Constructor.getDefaultProps) {
+ Constructor.getDefaultProps.isReactClassApproved = {};
+ }
+ if (Constructor.prototype.getInitialState) {
+ Constructor.prototype.getInitialState.isReactClassApproved = {};
+ }
+ }
+
+ _invariant(
+ Constructor.prototype.render,
+ 'createClass(...): Class specification must implement a `render` method.'
+ );
+
+ if (false) {
+ warning(
+ !Constructor.prototype.componentShouldUpdate,
+ '%s has a method called ' +
+ 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' +
+ 'The name is phrased as a question because the function is ' +
+ 'expected to return a value.',
+ spec.displayName || 'A component'
+ );
+ warning(
+ !Constructor.prototype.componentWillRecieveProps,
+ '%s has a method called ' +
+ 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?',
+ spec.displayName || 'A component'
+ );
+ warning(
+ !Constructor.prototype.UNSAFE_componentWillRecieveProps,
+ '%s has a method called UNSAFE_componentWillRecieveProps(). ' +
+ 'Did you mean UNSAFE_componentWillReceiveProps()?',
+ spec.displayName || 'A component'
+ );
+ }
+
+ // Reduce time spent doing lookups by setting these on the prototype.
+ for (var methodName in ReactClassInterface) {
+ if (!Constructor.prototype[methodName]) {
+ Constructor.prototype[methodName] = null;
+ }
+ }
+
+ return Constructor;
+ }
+
+ return createClass;
+}
+
+module.exports = factory;
+
+
+/***/ }),
+/* 219 */
+/***/ (function(module, exports) {
+
+/**
+ * Helpers.
+ */
+
+var s = 1000;
+var m = s * 60;
+var h = m * 60;
+var d = h * 24;
+var y = d * 365.25;
+
+/**
+ * Parse or format the given `val`.
+ *
+ * Options:
+ *
+ * - `long` verbose formatting [false]
+ *
+ * @param {String|Number} val
+ * @param {Object} [options]
+ * @throws {Error} throw an error if val is not a non-empty string or a number
+ * @return {String|Number}
+ * @api public
+ */
+
+module.exports = function(val, options) {
+ options = options || {};
+ var type = typeof val;
+ if (type === 'string' && val.length > 0) {
+ return parse(val);
+ } else if (type === 'number' && isNaN(val) === false) {
+ return options.long ? fmtLong(val) : fmtShort(val);
+ }
+ throw new Error(
+ 'val is not a non-empty string or a valid number. val=' +
+ JSON.stringify(val)
+ );
+};
+
+/**
+ * Parse the given `str` and return milliseconds.
+ *
+ * @param {String} str
+ * @return {Number}
+ * @api private
+ */
+
+function parse(str) {
+ str = String(str);
+ if (str.length > 100) {
+ return;
+ }
+ var match = /^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(
+ str
+ );
+ if (!match) {
+ return;
+ }
+ var n = parseFloat(match[1]);
+ var type = (match[2] || 'ms').toLowerCase();
+ switch (type) {
+ case 'years':
+ case 'year':
+ case 'yrs':
+ case 'yr':
+ case 'y':
+ return n * y;
+ case 'days':
+ case 'day':
+ case 'd':
+ return n * d;
+ case 'hours':
+ case 'hour':
+ case 'hrs':
+ case 'hr':
+ case 'h':
+ return n * h;
+ case 'minutes':
+ case 'minute':
+ case 'mins':
+ case 'min':
+ case 'm':
+ return n * m;
+ case 'seconds':
+ case 'second':
+ case 'secs':
+ case 'sec':
+ case 's':
+ return n * s;
+ case 'milliseconds':
+ case 'millisecond':
+ case 'msecs':
+ case 'msec':
+ case 'ms':
+ return n;
+ default:
+ return undefined;
+ }
+}
+
+/**
+ * Short format for `ms`.
+ *
+ * @param {Number} ms
+ * @return {String}
+ * @api private
+ */
+
+function fmtShort(ms) {
+ if (ms >= d) {
+ return Math.round(ms / d) + 'd';
+ }
+ if (ms >= h) {
+ return Math.round(ms / h) + 'h';
+ }
+ if (ms >= m) {
+ return Math.round(ms / m) + 'm';
+ }
+ if (ms >= s) {
+ return Math.round(ms / s) + 's';
+ }
+ return ms + 'ms';
+}
+
+/**
+ * Long format for `ms`.
+ *
+ * @param {Number} ms
+ * @return {String}
+ * @api private
+ */
+
+function fmtLong(ms) {
+ return plural(ms, d, 'day') ||
+ plural(ms, h, 'hour') ||
+ plural(ms, m, 'minute') ||
+ plural(ms, s, 'second') ||
+ ms + ' ms';
+}
+
+/**
+ * Pluralization helper.
+ */
+
+function plural(ms, n, name) {
+ if (ms < n) {
+ return;
+ }
+ if (ms < n * 1.5) {
+ return Math.floor(ms / n) + ' ' + name;
+ }
+ return Math.ceil(ms / n) + ' ' + name + 's';
+}
+
+
+/***/ }),
+/* 220 */
+/***/ (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__(221);
+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.process && 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.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||
+ // is firebug? http://stackoverflow.com/a/398120/376773
+ (typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||
+ // is firefox >= v31?
+ // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
+ (typeof navigator !== 'undefined' && 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.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() {
+ var r;
+ try {
+ r = exports.storage.debug;
+ } catch(e) {}
+
+ // If debug isn't set in LS, and we're in Electron, try to load $DEBUG
+ if (!r && typeof process !== 'undefined' && 'env' in process) {
+ r = __webpack_require__.i({"NODE_ENV":"production"}).DEBUG;
+ }
+
+ return r;
+}
+
+/**
+ * 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__(41)))
+
+/***/ }),
+/* 221 */
+/***/ (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__(219);
+
+/**
+ * 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 = (typeof namespaces === 'string' ? 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;
+}
+
+
+/***/ }),
+/* 222 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+var _interopRequireDefault = __webpack_require__(153);
+
+exports.__esModule = true;
+exports.default = addClass;
+
+var _hasClass = _interopRequireDefault(__webpack_require__(223));
+
+function addClass(element, className) {
+ if (element.classList) element.classList.add(className);else if (!(0, _hasClass.default)(element, className)) if (typeof element.className === 'string') element.className = element.className + ' ' + className;else element.setAttribute('class', (element.className && element.className.baseVal || '') + ' ' + className);
+}
+
+module.exports = exports["default"];
+
+/***/ }),
+/* 223 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+exports.__esModule = true;
+exports.default = hasClass;
+
+function hasClass(element, className) {
+ if (element.classList) return !!className && element.classList.contains(className);else return (" " + (element.className.baseVal || element.className) + " ").indexOf(" " + className + " ") !== -1;
+}
+
+module.exports = exports["default"];
+
+/***/ }),
+/* 224 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+function replaceClassName(origClass, classToRemove) {
+ return origClass.replace(new RegExp('(^|\\s)' + classToRemove + '(?:\\s|$)', 'g'), '$1').replace(/\s+/g, ' ').replace(/^\s*|\s*$/g, '');
+}
+
+module.exports = function removeClass(element, className) {
+ if (element.classList) element.classList.remove(className);else if (typeof element.className === 'string') element.className = replaceClassName(element.className, className);else element.setAttribute('class', replaceClassName(element.className && element.className.baseVal || '', className));
+};
+
+/***/ }),
+/* 225 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+/**
+ * Copyright (c) 2013-present, Facebook, Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ *
+ * @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;
+
+/***/ }),
+/* 226 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+/**
+ * Copyright (c) 2013-present, Facebook, Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ *
+ * @typechecks
+ */
+
+
+
+var camelize = __webpack_require__(225);
+
+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;
+
+/***/ }),
+/* 227 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+/**
+ * Copyright (c) 2013-present, Facebook, Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ *
+ *
+ */
+
+var isTextNode = __webpack_require__(235);
+
+/*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;
+
+/***/ }),
+/* 228 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+/**
+ * Copyright (c) 2013-present, Facebook, Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ *
+ * @typechecks
+ */
+
+var invariant = __webpack_require__(2);
+
+/**
+ * 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')) ? false ? invariant(false, 'toArray: Array-like object expected') : invariant(false) : void 0;
+
+ !(typeof length === 'number') ? false ? invariant(false, 'toArray: Object needs a length property') : invariant(false) : void 0;
+
+ !(length === 0 || length - 1 in obj) ? false ? invariant(false, 'toArray: Object should have keys for indices') : invariant(false) : void 0;
+
+ !(typeof obj.callee !== 'function') ? false ? 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;
+
+/***/ }),
+/* 229 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+/**
+ * Copyright (c) 2013-present, Facebook, Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ *
+ * @typechecks
+ */
+
+/*eslint-disable fb-www/unsafe-html*/
+
+var ExecutionEnvironment = __webpack_require__(13);
+
+var createArrayFromMixed = __webpack_require__(228);
+var getMarkupWrap = __webpack_require__(230);
+var invariant = __webpack_require__(2);
+
+/**
+ * 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
+ *