1 | (function(e, a) { for(var i in a) e[i] = a[i]; }(exports, (function(modules) {
|
2 |
|
3 | var installedModules = {};
|
4 |
|
5 |
|
6 | function __webpack_require__(moduleId) {
|
7 |
|
8 |
|
9 | if(installedModules[moduleId])
|
10 | return installedModules[moduleId].exports;
|
11 |
|
12 |
|
13 | var module = installedModules[moduleId] = {
|
14 | exports: {},
|
15 | id: moduleId,
|
16 | loaded: false
|
17 | };
|
18 |
|
19 |
|
20 | modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
21 |
|
22 |
|
23 | module.loaded = true;
|
24 |
|
25 |
|
26 | return module.exports;
|
27 | }
|
28 |
|
29 |
|
30 |
|
31 | __webpack_require__.m = modules;
|
32 |
|
33 |
|
34 | __webpack_require__.c = installedModules;
|
35 |
|
36 |
|
37 | __webpack_require__.p = "";
|
38 |
|
39 |
|
40 | return __webpack_require__(0);
|
41 | })
|
42 |
|
43 | ([
|
44 |
|
45 | function(module, exports, __webpack_require__) {
|
46 |
|
47 | "use strict";
|
48 |
|
49 | Object.defineProperty(exports, "__esModule", {
|
50 | value: true
|
51 | });
|
52 | exports.ButtonLoader = exports.TokenBridge = exports.DestroyAccountButton = exports.UpdatePasswordForm = exports.OAuthSignInButton = exports.RequestPasswordResetForm = exports.SignOutButton = exports.EmailSignUpForm = exports.EmailSignInForm = exports.AuthGlobals = undefined;
|
53 |
|
54 | var _AuthGlobals2 = __webpack_require__(62);
|
55 |
|
56 | var _AuthGlobals3 = _interopRequireDefault(_AuthGlobals2);
|
57 |
|
58 | var _EmailSignInForm2 = __webpack_require__(64);
|
59 |
|
60 | var _EmailSignInForm3 = _interopRequireDefault(_EmailSignInForm2);
|
61 |
|
62 | var _EmailSignUpForm2 = __webpack_require__(65);
|
63 |
|
64 | var _EmailSignUpForm3 = _interopRequireDefault(_EmailSignUpForm2);
|
65 |
|
66 | var _SignOutButton2 = __webpack_require__(69);
|
67 |
|
68 | var _SignOutButton3 = _interopRequireDefault(_SignOutButton2);
|
69 |
|
70 | var _RequestPasswordResetForm2 = __webpack_require__(68);
|
71 |
|
72 | var _RequestPasswordResetForm3 = _interopRequireDefault(_RequestPasswordResetForm2);
|
73 |
|
74 | var _OAuthSignInButton2 = __webpack_require__(67);
|
75 |
|
76 | var _OAuthSignInButton3 = _interopRequireDefault(_OAuthSignInButton2);
|
77 |
|
78 | var _UpdatePasswordForm2 = __webpack_require__(70);
|
79 |
|
80 | var _UpdatePasswordForm3 = _interopRequireDefault(_UpdatePasswordForm2);
|
81 |
|
82 | var _DestroyAccountButton2 = __webpack_require__(63);
|
83 |
|
84 | var _DestroyAccountButton3 = _interopRequireDefault(_DestroyAccountButton2);
|
85 |
|
86 | var _TokenBridge2 = __webpack_require__(18);
|
87 |
|
88 | var _TokenBridge3 = _interopRequireDefault(_TokenBridge2);
|
89 |
|
90 | var _ButtonLoader2 = __webpack_require__(13);
|
91 |
|
92 | var _ButtonLoader3 = _interopRequireDefault(_ButtonLoader2);
|
93 |
|
94 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
95 |
|
96 | exports.AuthGlobals = _AuthGlobals3.default;
|
97 | exports.EmailSignInForm = _EmailSignInForm3.default;
|
98 | exports.EmailSignUpForm = _EmailSignUpForm3.default;
|
99 | exports.SignOutButton = _SignOutButton3.default;
|
100 | exports.RequestPasswordResetForm = _RequestPasswordResetForm3.default;
|
101 | exports.OAuthSignInButton = _OAuthSignInButton3.default;
|
102 | exports.UpdatePasswordForm = _UpdatePasswordForm3.default;
|
103 | exports.DestroyAccountButton = _DestroyAccountButton3.default;
|
104 | exports.TokenBridge = _TokenBridge3.default;
|
105 | exports.ButtonLoader = _ButtonLoader3.default;
|
106 |
|
107 | },
|
108 |
|
109 | function(module, exports) {
|
110 |
|
111 | module.exports = require("react");
|
112 |
|
113 | },
|
114 |
|
115 | function(module, exports) {
|
116 |
|
117 | module.exports = require("redux-auth");
|
118 |
|
119 | },
|
120 |
|
121 | function(module, exports) {
|
122 |
|
123 | module.exports = require("react-redux");
|
124 |
|
125 | },
|
126 |
|
127 | function(module, exports) {
|
128 |
|
129 | module.exports = require("immutable");
|
130 |
|
131 | },
|
132 | ,
|
133 |
|
134 | function(module, exports, __webpack_require__) {
|
135 |
|
136 | "use strict";
|
137 |
|
138 | Object.defineProperty(exports, "__esModule", {
|
139 | value: true
|
140 | });
|
141 |
|
142 | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
143 |
|
144 | var _react = __webpack_require__(1);
|
145 |
|
146 | var _react2 = _interopRequireDefault(_react);
|
147 |
|
148 | var _reactBootstrap = __webpack_require__(9);
|
149 |
|
150 | var _ErrorList = __webpack_require__(66);
|
151 |
|
152 | var _ErrorList2 = _interopRequireDefault(_ErrorList);
|
153 |
|
154 | var _reactRedux = __webpack_require__(3);
|
155 |
|
156 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
157 |
|
158 | function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
|
159 |
|
160 | function _toArray(arr) { return Array.isArray(arr) ? arr : Array.from(arr); }
|
161 |
|
162 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
163 |
|
164 | 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; }
|
165 |
|
166 | 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; }
|
167 |
|
168 | var BaseModal = function (_React$Component) {
|
169 | _inherits(BaseModal, _React$Component);
|
170 |
|
171 | function BaseModal() {
|
172 | _classCallCheck(this, BaseModal);
|
173 |
|
174 | return _possibleConstructorReturn(this, Object.getPrototypeOf(BaseModal).apply(this, arguments));
|
175 | }
|
176 |
|
177 | _createClass(BaseModal, [{
|
178 | key: "close",
|
179 | value: function close() {
|
180 | this.props.dispatch(this.props.closeAction());
|
181 | }
|
182 | }, {
|
183 | key: "getEndpoint",
|
184 | value: function getEndpoint() {
|
185 | return this.props.endpoint || this.props.auth.getIn(["configure", "currentEndpointKey"]) || this.props.auth.getIn(["configure", "defaultEndpointKey"]);
|
186 | }
|
187 | }, {
|
188 | key: "getErrorList",
|
189 | value: function getErrorList() {
|
190 | var _props$errorAddr = _toArray(this.props.errorAddr);
|
191 |
|
192 | var base = _props$errorAddr[0];
|
193 |
|
194 | var rest = _props$errorAddr.slice(1);
|
195 |
|
196 | return _react2.default.createElement(_ErrorList2.default, { errors: this.props.auth.getIn([base, this.getEndpoint()].concat(_toConsumableArray(rest))) });
|
197 | }
|
198 | }, {
|
199 | key: "render",
|
200 | value: function render() {
|
201 | var body = this.props.errorAddr ? this.getErrorList() : this.props.children;
|
202 |
|
203 | return _react2.default.createElement(
|
204 | _reactBootstrap.Modal,
|
205 | {
|
206 | show: this.props.show,
|
207 | className: "redux-auth-modal " + this.props.containerClass,
|
208 | onHide: this.close.bind(this) },
|
209 | _react2.default.createElement(
|
210 | _reactBootstrap.Modal.Header,
|
211 | { closeButton: true },
|
212 | _react2.default.createElement(
|
213 | _reactBootstrap.Modal.Title,
|
214 | null,
|
215 | this.props.title
|
216 | )
|
217 | ),
|
218 | _react2.default.createElement(
|
219 | _reactBootstrap.Modal.Body,
|
220 | null,
|
221 | body
|
222 | ),
|
223 | _react2.default.createElement(
|
224 | _reactBootstrap.Modal.Footer,
|
225 | null,
|
226 | _react2.default.createElement(
|
227 | _reactBootstrap.Button,
|
228 | {
|
229 | onClick: this.close.bind(this),
|
230 | className: this.props.containerClass + "-close" },
|
231 | this.props.closeBtnLabel
|
232 | )
|
233 | )
|
234 | );
|
235 | }
|
236 | }]);
|
237 |
|
238 | return BaseModal;
|
239 | }(_react2.default.Component);
|
240 |
|
241 | BaseModal.propTypes = {
|
242 | show: _react.PropTypes.bool,
|
243 | errorAddr: _react.PropTypes.array,
|
244 | closeBtnLabel: _react.PropTypes.string
|
245 | };
|
246 | BaseModal.defaultProps = {
|
247 | show: false,
|
248 | errorAddr: null,
|
249 | closeBtnLabel: "Ok"
|
250 | };
|
251 | exports.default = (0, _reactRedux.connect)(function (_ref) {
|
252 | var auth = _ref.auth;
|
253 | return { auth: auth };
|
254 | })(BaseModal);
|
255 |
|
256 | },
|
257 | ,
|
258 | ,
|
259 |
|
260 | function(module, exports) {
|
261 |
|
262 | module.exports = require("react-bootstrap");
|
263 |
|
264 | },
|
265 | ,
|
266 | ,
|
267 | ,
|
268 |
|
269 | function(module, exports, __webpack_require__) {
|
270 |
|
271 | "use strict";
|
272 |
|
273 | Object.defineProperty(exports, "__esModule", {
|
274 | value: true
|
275 | });
|
276 |
|
277 | 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; };
|
278 |
|
279 | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
280 |
|
281 | var _react = __webpack_require__(1);
|
282 |
|
283 | var _react2 = _interopRequireDefault(_react);
|
284 |
|
285 | var _reactBootstrap = __webpack_require__(9);
|
286 |
|
287 | var _reactLoader = __webpack_require__(23);
|
288 |
|
289 | var _reactLoader2 = _interopRequireDefault(_reactLoader);
|
290 |
|
291 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
292 |
|
293 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
294 |
|
295 | 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; }
|
296 |
|
297 | 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; }
|
298 |
|
299 | var ButtonLoader = function (_React$Component) {
|
300 | _inherits(ButtonLoader, _React$Component);
|
301 |
|
302 | function ButtonLoader() {
|
303 | _classCallCheck(this, ButtonLoader);
|
304 |
|
305 | return _possibleConstructorReturn(this, Object.getPrototypeOf(ButtonLoader).apply(this, arguments));
|
306 | }
|
307 |
|
308 | _createClass(ButtonLoader, [{
|
309 | key: "renderIcon",
|
310 | value: function renderIcon() {
|
311 | var icon = void 0;
|
312 |
|
313 | if (this.props.loading) {
|
314 | var spinColor = !this.props.bsStyle || this.props.bsStyle === "default" ? this.props.spinColorDark : this.props.spinColorLight;
|
315 |
|
316 | icon = _react2.default.createElement(_reactLoader2.default, _extends({ ref: "spinner" }, this.props.spinConfig, { color: spinColor, loaded: false }));
|
317 | } else {
|
318 | icon = this.props.icon;
|
319 | }
|
320 |
|
321 | return _react2.default.createElement(
|
322 | "div",
|
323 | { style: {
|
324 | position: "relative",
|
325 | display: "inline-block",
|
326 | marginRight: "6px",
|
327 | width: "10px",
|
328 | height: "10px",
|
329 | top: "1px"
|
330 | } },
|
331 | icon
|
332 | );
|
333 | }
|
334 | }, {
|
335 | key: "render",
|
336 | value: function render() {
|
337 | return _react2.default.createElement(
|
338 | _reactBootstrap.Button,
|
339 | {
|
340 | onClick: this.props.onClick,
|
341 | disabled: this.props.disabled || this.props.loading,
|
342 | bsStyle: this.props.bsStyle,
|
343 | className: this.props.className,
|
344 | type: this.props.type,
|
345 | style: this.props.style,
|
346 | bsSize: this.props.bsSize },
|
347 | this.renderIcon(),
|
348 | " ",
|
349 | this.props.children
|
350 | );
|
351 | }
|
352 | }]);
|
353 |
|
354 | return ButtonLoader;
|
355 | }(_react2.default.Component);
|
356 |
|
357 | ButtonLoader.propTypes = {
|
358 | icon: _react.PropTypes.any,
|
359 | loading: _react.PropTypes.bool,
|
360 | spinConfig: _react.PropTypes.object,
|
361 | spinColorDark: _react.PropTypes.string,
|
362 | spinColorLight: _react.PropTypes.string,
|
363 | children: _react.PropTypes.node,
|
364 | onClick: _react.PropTypes.func.isRequired,
|
365 | style: _react.PropTypes.object
|
366 | };
|
367 | ButtonLoader.defaultProps = {
|
368 | icon: _react2.default.createElement(_reactBootstrap.Glyphicon, { glyph: "heart" }),
|
369 | loading: false,
|
370 | spinConfig: {
|
371 | lines: 10,
|
372 | length: 4,
|
373 | width: 2,
|
374 | radius: 3
|
375 | },
|
376 | spinColorDark: "#444",
|
377 | spinColorLight: "#fff",
|
378 | children: _react2.default.createElement(
|
379 | "span",
|
380 | null,
|
381 | "Submit"
|
382 | ),
|
383 | style: {}
|
384 | };
|
385 | exports.default = ButtonLoader;
|
386 |
|
387 | },
|
388 | ,
|
389 | ,
|
390 | ,
|
391 | ,
|
392 |
|
393 | function(module, exports, __webpack_require__) {
|
394 |
|
395 | "use strict";
|
396 |
|
397 | Object.defineProperty(exports, "__esModule", {
|
398 | value: true
|
399 | });
|
400 |
|
401 | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
402 |
|
403 | var _react = __webpack_require__(1);
|
404 |
|
405 | var _react2 = _interopRequireDefault(_react);
|
406 |
|
407 | var _reactRedux = __webpack_require__(3);
|
408 |
|
409 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
410 |
|
411 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
412 |
|
413 | 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; }
|
414 |
|
415 | 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; }
|
416 |
|
417 | var TokenBridge = function (_React$Component) {
|
418 | _inherits(TokenBridge, _React$Component);
|
419 |
|
420 | function TokenBridge() {
|
421 | _classCallCheck(this, TokenBridge);
|
422 |
|
423 | return _possibleConstructorReturn(this, Object.getPrototypeOf(TokenBridge).apply(this, arguments));
|
424 | }
|
425 |
|
426 | _createClass(TokenBridge, [{
|
427 | key: "render",
|
428 | value: function render() {
|
429 | return _react2.default.createElement("script", { id: "token-bridge",
|
430 | type: "application/json",
|
431 | dangerouslySetInnerHTML: { __html: this.props.initialCredentials } });
|
432 | }
|
433 | }]);
|
434 |
|
435 | return TokenBridge;
|
436 | }(_react2.default.Component);
|
437 |
|
438 | exports.default = (0, _reactRedux.connect)(function (_ref) {
|
439 | var auth = _ref.auth;
|
440 |
|
441 | var headers = auth.getIn(["server", "headers"]);
|
442 |
|
443 | return {
|
444 | initialCredentials: headers && JSON.stringify({
|
445 | user: auth.getIn(["server", "user"]),
|
446 | mustResetPassword: auth.getIn(["server", "mustResetPassword"]),
|
447 | firstTimeLogin: auth.getIn(["server", "firstTimeLogin"]),
|
448 | currentEndpointKey: auth.getIn(["configure", "currentEndpointKey"]),
|
449 | defaultEndpointKey: auth.getIn(["configure", "defaultEndpointKey"]),
|
450 | headers: headers
|
451 | })
|
452 | };
|
453 | })(TokenBridge);
|
454 |
|
455 | },
|
456 | ,
|
457 |
|
458 | function(module, exports, __webpack_require__) {
|
459 |
|
460 | "use strict";
|
461 |
|
462 | Object.defineProperty(exports, "__esModule", {
|
463 | value: true
|
464 | });
|
465 |
|
466 | 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; };
|
467 |
|
468 | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
469 |
|
470 | var _react = __webpack_require__(1);
|
471 |
|
472 | var _react2 = _interopRequireDefault(_react);
|
473 |
|
474 | var _reactBootstrap = __webpack_require__(9);
|
475 |
|
476 | var _immutable = __webpack_require__(4);
|
477 |
|
478 | var _immutable2 = _interopRequireDefault(_immutable);
|
479 |
|
480 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
481 |
|
482 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
483 |
|
484 | 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; }
|
485 |
|
486 | 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; }
|
487 |
|
488 | var AuthInput = function (_React$Component) {
|
489 | _inherits(AuthInput, _React$Component);
|
490 |
|
491 | function AuthInput() {
|
492 | _classCallCheck(this, AuthInput);
|
493 |
|
494 | return _possibleConstructorReturn(this, Object.getPrototypeOf(AuthInput).apply(this, arguments));
|
495 | }
|
496 |
|
497 | _createClass(AuthInput, [{
|
498 | key: "handleInput",
|
499 | value: function handleInput(ev) {
|
500 | this.props.onChange(ev.target.value);
|
501 | }
|
502 | }, {
|
503 | key: "renderErrorList",
|
504 | value: function renderErrorList() {
|
505 | var _this2 = this;
|
506 |
|
507 | if (this.props.errors.size) {
|
508 | return _react2.default.createElement(
|
509 | "div",
|
510 | { className: "auth-error-message has-error" },
|
511 | this.props.errors.map(function (err, i) {
|
512 | return _react2.default.createElement(
|
513 | "p",
|
514 | { className: "control-label inline-error-item",
|
515 | style: { paddingLeft: "20px", position: "relative", marginBottom: "28px" },
|
516 | key: i },
|
517 | _react2.default.createElement(_reactBootstrap.Glyphicon, { glyph: "exclamation-sign",
|
518 | style: {
|
519 | position: "absolute",
|
520 | left: 0,
|
521 | top: 2
|
522 | }
|
523 | }),
|
524 | " ",
|
525 | _this2.props.label,
|
526 | " ",
|
527 | err
|
528 | );
|
529 | })
|
530 | );
|
531 | } else {
|
532 | return _react2.default.createElement("span", null);
|
533 | }
|
534 | }
|
535 | }, {
|
536 | key: "render",
|
537 | value: function render() {
|
538 | return _react2.default.createElement(
|
539 | "div",
|
540 | null,
|
541 | _react2.default.createElement(_reactBootstrap.Input, _extends({}, this.props, {
|
542 | bsStyle: this.props.errors.size ? "error" : null,
|
543 | onChange: this.handleInput.bind(this) })),
|
544 | this.renderErrorList()
|
545 | );
|
546 | }
|
547 | }]);
|
548 |
|
549 | return AuthInput;
|
550 | }(_react2.default.Component);
|
551 |
|
552 | AuthInput.propTypes = {
|
553 | label: _react.PropTypes.string,
|
554 | value: _react.PropTypes.string,
|
555 | errors: _react.PropTypes.object
|
556 | };
|
557 | AuthInput.defaultProps = {
|
558 | label: "",
|
559 | value: null,
|
560 | errors: _immutable2.default.fromJS([])
|
561 | };
|
562 | exports.default = AuthInput;
|
563 |
|
564 | },
|
565 | ,
|
566 | ,
|
567 |
|
568 | function(module, exports) {
|
569 |
|
570 | module.exports = require("react-loader");
|
571 |
|
572 | },
|
573 | ,
|
574 | ,
|
575 | ,
|
576 | ,
|
577 | ,
|
578 | ,
|
579 | ,
|
580 | ,
|
581 | ,
|
582 | ,
|
583 | ,
|
584 | ,
|
585 | ,
|
586 | ,
|
587 | ,
|
588 | ,
|
589 | ,
|
590 | ,
|
591 | ,
|
592 | ,
|
593 | ,
|
594 | ,
|
595 | ,
|
596 | ,
|
597 | ,
|
598 | ,
|
599 | ,
|
600 | ,
|
601 | ,
|
602 | ,
|
603 | ,
|
604 | ,
|
605 | ,
|
606 | ,
|
607 | ,
|
608 | ,
|
609 | ,
|
610 | ,
|
611 |
|
612 | function(module, exports, __webpack_require__) {
|
613 |
|
614 | "use strict";
|
615 |
|
616 | Object.defineProperty(exports, "__esModule", {
|
617 | value: true
|
618 | });
|
619 |
|
620 | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
621 |
|
622 | var _react = __webpack_require__(1);
|
623 |
|
624 | var _react2 = _interopRequireDefault(_react);
|
625 |
|
626 | var _EmailSignInSuccessModal = __webpack_require__(74);
|
627 |
|
628 | var _EmailSignInSuccessModal2 = _interopRequireDefault(_EmailSignInSuccessModal);
|
629 |
|
630 | var _EmailSignInErrorModal = __webpack_require__(73);
|
631 |
|
632 | var _EmailSignInErrorModal2 = _interopRequireDefault(_EmailSignInErrorModal);
|
633 |
|
634 | var _OAuthSignInSuccessModal = __webpack_require__(80);
|
635 |
|
636 | var _OAuthSignInSuccessModal2 = _interopRequireDefault(_OAuthSignInSuccessModal);
|
637 |
|
638 | var _OAuthSignInErrorModal = __webpack_require__(79);
|
639 |
|
640 | var _OAuthSignInErrorModal2 = _interopRequireDefault(_OAuthSignInErrorModal);
|
641 |
|
642 | var _EmailSignUpSuccessModal = __webpack_require__(76);
|
643 |
|
644 | var _EmailSignUpSuccessModal2 = _interopRequireDefault(_EmailSignUpSuccessModal);
|
645 |
|
646 | var _EmailSignUpErrorModal = __webpack_require__(75);
|
647 |
|
648 | var _EmailSignUpErrorModal2 = _interopRequireDefault(_EmailSignUpErrorModal);
|
649 |
|
650 | var _SignOutSuccessModal = __webpack_require__(85);
|
651 |
|
652 | var _SignOutSuccessModal2 = _interopRequireDefault(_SignOutSuccessModal);
|
653 |
|
654 | var _SignOutErrorModal = __webpack_require__(84);
|
655 |
|
656 | var _SignOutErrorModal2 = _interopRequireDefault(_SignOutErrorModal);
|
657 |
|
658 | var _FirstTimeLoginSuccessModal = __webpack_require__(78);
|
659 |
|
660 | var _FirstTimeLoginSuccessModal2 = _interopRequireDefault(_FirstTimeLoginSuccessModal);
|
661 |
|
662 | var _FirstTimeLoginErrorModal = __webpack_require__(77);
|
663 |
|
664 | var _FirstTimeLoginErrorModal2 = _interopRequireDefault(_FirstTimeLoginErrorModal);
|
665 |
|
666 | var _RequestPasswordResetErrorModal = __webpack_require__(82);
|
667 |
|
668 | var _RequestPasswordResetErrorModal2 = _interopRequireDefault(_RequestPasswordResetErrorModal);
|
669 |
|
670 | var _RequestPasswordResetSuccessModal = __webpack_require__(83);
|
671 |
|
672 | var _RequestPasswordResetSuccessModal2 = _interopRequireDefault(_RequestPasswordResetSuccessModal);
|
673 |
|
674 | var _UpdatePasswordErrorModal = __webpack_require__(86);
|
675 |
|
676 | var _UpdatePasswordErrorModal2 = _interopRequireDefault(_UpdatePasswordErrorModal);
|
677 |
|
678 | var _UpdatePasswordSuccessModal = __webpack_require__(87);
|
679 |
|
680 | var _UpdatePasswordSuccessModal2 = _interopRequireDefault(_UpdatePasswordSuccessModal);
|
681 |
|
682 | var _DestroyAccountErrorModal = __webpack_require__(71);
|
683 |
|
684 | var _DestroyAccountErrorModal2 = _interopRequireDefault(_DestroyAccountErrorModal);
|
685 |
|
686 | var _DestroyAccountSuccessModal = __webpack_require__(72);
|
687 |
|
688 | var _DestroyAccountSuccessModal2 = _interopRequireDefault(_DestroyAccountSuccessModal);
|
689 |
|
690 | var _PasswordResetSuccessModal = __webpack_require__(81);
|
691 |
|
692 | var _PasswordResetSuccessModal2 = _interopRequireDefault(_PasswordResetSuccessModal);
|
693 |
|
694 | var _TokenBridge = __webpack_require__(18);
|
695 |
|
696 | var _TokenBridge2 = _interopRequireDefault(_TokenBridge);
|
697 |
|
698 | var _reactRedux = __webpack_require__(3);
|
699 |
|
700 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
701 |
|
702 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
703 |
|
704 | 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; }
|
705 |
|
706 | 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; }
|
707 |
|
708 | var AuthGlobals = function (_React$Component) {
|
709 | _inherits(AuthGlobals, _React$Component);
|
710 |
|
711 | function AuthGlobals() {
|
712 | _classCallCheck(this, AuthGlobals);
|
713 |
|
714 | return _possibleConstructorReturn(this, Object.getPrototypeOf(AuthGlobals).apply(this, arguments));
|
715 | }
|
716 |
|
717 | _createClass(AuthGlobals, [{
|
718 | key: "render",
|
719 | value: function render() {
|
720 | var showEmailSignInSuccess = this.props.emailSignInSuccessEnabled && this.props.auth.getIn(["ui", "emailSignInSuccessModalVisible"]);
|
721 |
|
722 | var showEmailSignInError = this.props.emailSignInErrorEnabled && this.props.auth.getIn(["ui", "emailSignInErrorModalVisible"]);
|
723 |
|
724 | var showEmailSignUpSuccess = this.props.emailSignUpSuccessEnabled && this.props.auth.getIn(["ui", "emailSignUpSuccessModalVisible"]);
|
725 |
|
726 | var showEmailSignUpError = this.props.emailSignUpErrorEnabled && this.props.auth.getIn(["ui", "emailSignUpErrorModalVisible"]);
|
727 |
|
728 | var showSignOutSuccess = this.props.signOutSuccessEnabled && this.props.auth.getIn(["ui", "signOutSuccessModalVisible"]);
|
729 |
|
730 | var showSignOutError = this.props.signOutErrorEnabled && this.props.auth.getIn(["ui", "signOutErrorModalVisible"]);
|
731 |
|
732 | var showFirstTimeLoginSuccess = this.props.firstTimeLoginSuccessEnabled && this.props.auth.getIn(["ui", "firstTimeLoginSuccessModalVisible"]);
|
733 |
|
734 | var showFirstTimeLoginError = this.props.firstTimeLoginErrorEnabled && this.props.auth.getIn(["ui", "firstTimeLoginErrorModalVisible"]);
|
735 |
|
736 | var showRequestPasswordResetError = this.props.requestPasswordResetErrorEnabled && this.props.auth.getIn(["ui", "requestPasswordResetErrorModalVisible"]);
|
737 |
|
738 | var showRequestPasswordResetSuccess = this.props.requestPasswordResetSuccessEnabled && this.props.auth.getIn(["ui", "requestPasswordResetSuccessModalVisible"]);
|
739 |
|
740 | var showOAuthSignInSuccess = this.props.oAuthSignInSuccessEnabled && this.props.auth.getIn(["ui", "oAuthSignInSuccessModalVisible"]);
|
741 |
|
742 | var showOAuthSignInError = this.props.oAuthSignInErrorEnabled && this.props.auth.getIn(["ui", "oAuthSignInErrorModalVisible"]);
|
743 |
|
744 | var updatePasswordSuccess = this.props.updatePasswordSuccessEnabled && this.props.auth.getIn(["ui", "updatePasswordSuccessModalVisible"]);
|
745 |
|
746 | var updatePasswordError = this.props.updatePasswordErrorEnabled && this.props.auth.getIn(["ui", "updatePasswordErrorModalVisible"]);
|
747 |
|
748 | var destroyAccountSuccess = this.props.destroyAccountSuccessEnabled && this.props.auth.getIn(["ui", "destroyAccountSuccessModalVisible"]);
|
749 |
|
750 | var destroyAccountError = this.props.destroyAccountErrorEnabled && this.props.auth.getIn(["ui", "destroyAccountErrorModalVisible"]);
|
751 |
|
752 | var passwordResetSuccess = this.props.passwordResetSuccessEnabled && this.props.auth.getIn(["ui", "passwordResetSuccessModalVisible"]);
|
753 |
|
754 |
|
755 |
|
756 |
|
757 |
|
758 |
|
759 | return _react2.default.createElement(
|
760 | "div",
|
761 | { id: "auth-modals" },
|
762 | _react2.default.createElement(_EmailSignInSuccessModal2.default, { show: showEmailSignInSuccess }),
|
763 | _react2.default.createElement(_EmailSignInErrorModal2.default, { show: showEmailSignInError }),
|
764 | _react2.default.createElement(_OAuthSignInSuccessModal2.default, { show: showOAuthSignInSuccess }),
|
765 | _react2.default.createElement(_OAuthSignInErrorModal2.default, { show: showOAuthSignInError }),
|
766 | _react2.default.createElement(_EmailSignUpSuccessModal2.default, { show: showEmailSignUpSuccess }),
|
767 | _react2.default.createElement(_EmailSignUpErrorModal2.default, { show: showEmailSignUpError }),
|
768 | _react2.default.createElement(_SignOutSuccessModal2.default, { show: showSignOutSuccess }),
|
769 | _react2.default.createElement(_SignOutErrorModal2.default, { show: showSignOutError }),
|
770 | _react2.default.createElement(_FirstTimeLoginSuccessModal2.default, { show: showFirstTimeLoginSuccess }),
|
771 | _react2.default.createElement(_FirstTimeLoginErrorModal2.default, { show: showFirstTimeLoginError }),
|
772 | _react2.default.createElement(_RequestPasswordResetErrorModal2.default, { show: showRequestPasswordResetError }),
|
773 | _react2.default.createElement(_RequestPasswordResetSuccessModal2.default, { show: showRequestPasswordResetSuccess }),
|
774 | _react2.default.createElement(_UpdatePasswordErrorModal2.default, { show: updatePasswordError }),
|
775 | _react2.default.createElement(_UpdatePasswordSuccessModal2.default, { show: updatePasswordSuccess }),
|
776 | _react2.default.createElement(_DestroyAccountErrorModal2.default, { show: destroyAccountError }),
|
777 | _react2.default.createElement(_DestroyAccountSuccessModal2.default, { show: destroyAccountSuccess }),
|
778 | _react2.default.createElement(_PasswordResetSuccessModal2.default, { show: passwordResetSuccess }),
|
779 | _react2.default.createElement(_TokenBridge2.default, null)
|
780 | );
|
781 | }
|
782 | }]);
|
783 |
|
784 | return AuthGlobals;
|
785 | }(_react2.default.Component);
|
786 |
|
787 | AuthGlobals.propTypes = {
|
788 | signOutSuccessEnabled: _react.PropTypes.bool,
|
789 | signOutErrorEnabled: _react.PropTypes.bool,
|
790 | emailSignInSuccessEnabled: _react.PropTypes.bool,
|
791 | emailSignInErrorEnabled: _react.PropTypes.bool,
|
792 | oAuthSignInSuccessEnabled: _react.PropTypes.bool,
|
793 | oAuthSignInErrorEnabled: _react.PropTypes.bool,
|
794 | emailSignUpSuccessEnabled: _react.PropTypes.bool,
|
795 | emailSignUpErrorEnabled: _react.PropTypes.bool,
|
796 | firstTimeLoginSuccessEnabled: _react.PropTypes.bool,
|
797 | firstTimeLoginErrorEnabled: _react.PropTypes.bool,
|
798 | requestPasswordResetErrorEnabled: _react.PropTypes.bool,
|
799 | requestPasswordResetSuccessEnabled: _react.PropTypes.bool,
|
800 | updatePasswordErrorEnabled: _react.PropTypes.bool,
|
801 | updatePasswordSuccessEnabled: _react.PropTypes.bool,
|
802 | destroyAccountErrorEnabled: _react.PropTypes.bool,
|
803 | destroyAccountSuccessEnabled: _react.PropTypes.bool,
|
804 | passwordResetSuccessEnabled: _react.PropTypes.bool,
|
805 | passwordResetErrorEnabled: _react.PropTypes.bool
|
806 | };
|
807 | AuthGlobals.defaultProps = {
|
808 | signOutSuccessEnabled: true,
|
809 | signOutErrorEnabled: true,
|
810 | emailSignInSuccessEnabled: true,
|
811 | emailSignInErrorEnabled: true,
|
812 | oAuthSignInSuccessEnabled: true,
|
813 | oAuthSignInErrorEnabled: true,
|
814 | emailSignUpSuccessEnabled: true,
|
815 | emailSignUpErrorEnabled: true,
|
816 | firstTimeLoginSuccessEnabled: true,
|
817 | firstTimeLoginErrorEnabled: true,
|
818 | requestPasswordResetErrorEnabled: true,
|
819 | requestPasswordResetSuccessEnabled: true,
|
820 | updatePasswordErrorEnabled: true,
|
821 | updatePasswordSuccessEnabled: true,
|
822 | destroyAccountErrorEnabled: true,
|
823 | destroyAccountSuccessEnabled: true,
|
824 | passwordResetSuccessEnabled: true,
|
825 | passwordResetErrorEnabled: true
|
826 | };
|
827 | exports.default = (0, _reactRedux.connect)(function (_ref) {
|
828 | var auth = _ref.auth;
|
829 | return { auth: auth };
|
830 | })(AuthGlobals);
|
831 |
|
832 | },
|
833 |
|
834 | function(module, exports, __webpack_require__) {
|
835 |
|
836 | "use strict";
|
837 |
|
838 | Object.defineProperty(exports, "__esModule", {
|
839 | value: true
|
840 | });
|
841 |
|
842 | 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; };
|
843 |
|
844 | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
845 |
|
846 | var _react = __webpack_require__(1);
|
847 |
|
848 | var _react2 = _interopRequireDefault(_react);
|
849 |
|
850 | var _ButtonLoader = __webpack_require__(13);
|
851 |
|
852 | var _ButtonLoader2 = _interopRequireDefault(_ButtonLoader);
|
853 |
|
854 | var _destroyAccount = __webpack_require__(2);
|
855 |
|
856 | var _reactRedux = __webpack_require__(3);
|
857 |
|
858 | var _reactBootstrap = __webpack_require__(9);
|
859 |
|
860 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
861 |
|
862 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
863 |
|
864 | 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; }
|
865 |
|
866 | 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; }
|
867 |
|
868 | var DestroyAccountButton = function (_React$Component) {
|
869 | _inherits(DestroyAccountButton, _React$Component);
|
870 |
|
871 | function DestroyAccountButton() {
|
872 | _classCallCheck(this, DestroyAccountButton);
|
873 |
|
874 | return _possibleConstructorReturn(this, Object.getPrototypeOf(DestroyAccountButton).apply(this, arguments));
|
875 | }
|
876 |
|
877 | _createClass(DestroyAccountButton, [{
|
878 | key: "getEndpoint",
|
879 | value: function getEndpoint() {
|
880 | return this.props.endpoint || this.props.auth.getIn(["configure", "currentEndpointKey"]) || this.props.auth.getIn(["configure", "defaultEndpointKey"]);
|
881 | }
|
882 | }, {
|
883 | key: "handleClick",
|
884 | value: function handleClick() {
|
885 | this.props.dispatch((0, _destroyAccount.destroyAccount)(this.getEndpoint()));
|
886 | }
|
887 | }, {
|
888 | key: "render",
|
889 | value: function render() {
|
890 | var disabled = !this.props.auth.getIn(["user", "isSignedIn"]);
|
891 | return _react2.default.createElement(_ButtonLoader2.default, _extends({
|
892 | loading: this.props.auth.getIn(["destroyAccount", this.getEndpoint(), "loading"]),
|
893 | icon: this.props.icon,
|
894 | disabled: disabled,
|
895 | className: "destroy-account-submit",
|
896 | onClick: this.handleClick.bind(this)
|
897 | }, this.props));
|
898 | }
|
899 | }]);
|
900 |
|
901 | return DestroyAccountButton;
|
902 | }(_react2.default.Component);
|
903 |
|
904 | DestroyAccountButton.propTypes = {
|
905 | endpoint: _react.PropTypes.string,
|
906 | children: _react.PropTypes.node,
|
907 | icon: _react.PropTypes.node
|
908 | };
|
909 | DestroyAccountButton.defaultProps = {
|
910 | children: _react2.default.createElement(
|
911 | "span",
|
912 | null,
|
913 | "Destroy Account"
|
914 | ),
|
915 | icon: _react2.default.createElement(_reactBootstrap.Glyphicon, { glyph: "remove" })
|
916 | };
|
917 | exports.default = (0, _reactRedux.connect)(function (_ref) {
|
918 | var auth = _ref.auth;
|
919 | return { auth: auth };
|
920 | })(DestroyAccountButton);
|
921 |
|
922 | },
|
923 |
|
924 | function(module, exports, __webpack_require__) {
|
925 |
|
926 | "use strict";
|
927 |
|
928 | Object.defineProperty(exports, "__esModule", {
|
929 | value: true
|
930 | });
|
931 |
|
932 | 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; };
|
933 |
|
934 | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
935 |
|
936 | var _react = __webpack_require__(1);
|
937 |
|
938 | var _react2 = _interopRequireDefault(_react);
|
939 |
|
940 | var _ButtonLoader = __webpack_require__(13);
|
941 |
|
942 | var _ButtonLoader2 = _interopRequireDefault(_ButtonLoader);
|
943 |
|
944 | var _Input = __webpack_require__(20);
|
945 |
|
946 | var _Input2 = _interopRequireDefault(_Input);
|
947 |
|
948 | var _emailSignIn = __webpack_require__(2);
|
949 |
|
950 | var _reactBootstrap = __webpack_require__(9);
|
951 |
|
952 | var _reactRedux = __webpack_require__(3);
|
953 |
|
954 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
955 |
|
956 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
957 |
|
958 | 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; }
|
959 |
|
960 | 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; }
|
961 |
|
962 | var EmailSignInForm = function (_React$Component) {
|
963 | _inherits(EmailSignInForm, _React$Component);
|
964 |
|
965 | function EmailSignInForm() {
|
966 | _classCallCheck(this, EmailSignInForm);
|
967 |
|
968 | return _possibleConstructorReturn(this, Object.getPrototypeOf(EmailSignInForm).apply(this, arguments));
|
969 | }
|
970 |
|
971 | _createClass(EmailSignInForm, [{
|
972 | key: "getEndpoint",
|
973 | value: function getEndpoint() {
|
974 | return this.props.endpoint || this.props.auth.getIn(["configure", "currentEndpointKey"]) || this.props.auth.getIn(["configure", "defaultEndpointKey"]);
|
975 | }
|
976 | }, {
|
977 | key: "handleInput",
|
978 | value: function handleInput(key, val) {
|
979 | this.props.dispatch((0, _emailSignIn.emailSignInFormUpdate)(this.getEndpoint(), key, val));
|
980 | }
|
981 | }, {
|
982 | key: "handleSubmit",
|
983 | value: function handleSubmit(event) {
|
984 | event.preventDefault();
|
985 | var formData = this.props.auth.getIn(["emailSignIn", this.getEndpoint(), "form"]).toJS();
|
986 | this.props.dispatch((0, _emailSignIn.emailSignIn)(formData, this.getEndpoint()));
|
987 | }
|
988 | }, {
|
989 | key: "render",
|
990 | value: function render() {
|
991 | var disabled = this.props.auth.getIn(["user", "isSignedIn"]) || this.props.auth.getIn(["emailSignIn", this.getEndpoint(), "loading"]);
|
992 |
|
993 | return _react2.default.createElement(
|
994 | "form",
|
995 | { className: "redux-auth email-sign-in-form clearfix",
|
996 | onSubmit: this.handleSubmit.bind(this) },
|
997 | _react2.default.createElement(_Input2.default, _extends({ type: "text",
|
998 | groupClassName: "email-sign-in-email",
|
999 | label: "Email",
|
1000 | placeholder: "Email",
|
1001 | disabled: disabled,
|
1002 | value: this.props.auth.getIn(["emailSignIn", this.getEndpoint(), "form", "email"]),
|
1003 | errors: this.props.auth.getIn(["emailSignIn", this.getEndpoint(), "errors", "email"]),
|
1004 | onChange: this.handleInput.bind(this, "email")
|
1005 | }, this.props.inputProps.email)),
|
1006 | _react2.default.createElement(_Input2.default, _extends({ type: "password",
|
1007 | label: "Password",
|
1008 | groupClassName: "email-sign-in-password",
|
1009 | placeholder: "Password",
|
1010 | disabled: disabled,
|
1011 | value: this.props.auth.getIn(["emailSignIn", this.getEndpoint(), "form", "password"]),
|
1012 | errors: this.props.auth.getIn(["emailSignIn", this.getEndpoint(), "errors", "password"]),
|
1013 | onChange: this.handleInput.bind(this, "password")
|
1014 | }, this.props.inputProps.password)),
|
1015 | _react2.default.createElement(
|
1016 | _ButtonLoader2.default,
|
1017 | _extends({ loading: this.props.auth.getIn(["emailSignIn", this.getEndpoint(), "loading"]),
|
1018 | type: "submit",
|
1019 | icon: _react2.default.createElement(_reactBootstrap.Glyphicon, { glyph: "log-in" }),
|
1020 | className: "email-sign-in-submit pull-right",
|
1021 | disabled: disabled,
|
1022 | onClick: this.handleSubmit.bind(this)
|
1023 | }, this.props.inputProps.submit),
|
1024 | "Sign In"
|
1025 | )
|
1026 | );
|
1027 | }
|
1028 | }]);
|
1029 |
|
1030 | return EmailSignInForm;
|
1031 | }(_react2.default.Component);
|
1032 |
|
1033 | EmailSignInForm.propTypes = {
|
1034 | endpoint: _react.PropTypes.string,
|
1035 | inputProps: _react.PropTypes.shape({
|
1036 | email: _react.PropTypes.object,
|
1037 | password: _react.PropTypes.object,
|
1038 | submit: _react.PropTypes.object
|
1039 | })
|
1040 | };
|
1041 | EmailSignInForm.defaultProps = {
|
1042 | inputProps: {
|
1043 | email: {},
|
1044 | password: {},
|
1045 | submit: {}
|
1046 | }
|
1047 | };
|
1048 | exports.default = (0, _reactRedux.connect)(function (_ref) {
|
1049 | var auth = _ref.auth;
|
1050 | return { auth: auth };
|
1051 | })(EmailSignInForm);
|
1052 |
|
1053 | },
|
1054 |
|
1055 | function(module, exports, __webpack_require__) {
|
1056 |
|
1057 | "use strict";
|
1058 |
|
1059 | Object.defineProperty(exports, "__esModule", {
|
1060 | value: true
|
1061 | });
|
1062 |
|
1063 | 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; };
|
1064 |
|
1065 | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
1066 |
|
1067 | var _react = __webpack_require__(1);
|
1068 |
|
1069 | var _react2 = _interopRequireDefault(_react);
|
1070 |
|
1071 | var _Input = __webpack_require__(20);
|
1072 |
|
1073 | var _Input2 = _interopRequireDefault(_Input);
|
1074 |
|
1075 | var _ButtonLoader = __webpack_require__(13);
|
1076 |
|
1077 | var _ButtonLoader2 = _interopRequireDefault(_ButtonLoader);
|
1078 |
|
1079 | var _emailSignUp = __webpack_require__(2);
|
1080 |
|
1081 | var _reactRedux = __webpack_require__(3);
|
1082 |
|
1083 | var _reactBootstrap = __webpack_require__(9);
|
1084 |
|
1085 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
1086 |
|
1087 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
1088 |
|
1089 | 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; }
|
1090 |
|
1091 | 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; }
|
1092 |
|
1093 | var EmailSignUpForm = function (_React$Component) {
|
1094 | _inherits(EmailSignUpForm, _React$Component);
|
1095 |
|
1096 | function EmailSignUpForm() {
|
1097 | _classCallCheck(this, EmailSignUpForm);
|
1098 |
|
1099 | return _possibleConstructorReturn(this, Object.getPrototypeOf(EmailSignUpForm).apply(this, arguments));
|
1100 | }
|
1101 |
|
1102 | _createClass(EmailSignUpForm, [{
|
1103 | key: "getEndpoint",
|
1104 | value: function getEndpoint() {
|
1105 | return this.props.endpoint || this.props.auth.getIn(["configure", "currentEndpointKey"]) || this.props.auth.getIn(["configure", "defaultEndpointKey"]);
|
1106 | }
|
1107 | }, {
|
1108 | key: "handleInput",
|
1109 | value: function handleInput(key, val) {
|
1110 | this.props.dispatch((0, _emailSignUp.emailSignUpFormUpdate)(this.getEndpoint(), key, val));
|
1111 | }
|
1112 | }, {
|
1113 | key: "handleSubmit",
|
1114 | value: function handleSubmit(event) {
|
1115 | event.preventDefault();
|
1116 | var formData = this.props.auth.getIn(["emailSignUp", this.getEndpoint(), "form"]).toJS();
|
1117 | this.props.dispatch((0, _emailSignUp.emailSignUp)(formData, this.getEndpoint()));
|
1118 | }
|
1119 | }, {
|
1120 | key: "render",
|
1121 | value: function render() {
|
1122 | var disabled = this.props.auth.getIn(["user", "isSignedIn"]) || this.props.auth.getIn(["emailSignUp", this.getEndpoint(), "loading"]);
|
1123 |
|
1124 | return _react2.default.createElement(
|
1125 | "form",
|
1126 | { className: "redux-auth email-sign-up-form clearfix",
|
1127 | onSubmit: this.handleSubmit.bind(this) },
|
1128 | _react2.default.createElement(_Input2.default, _extends({ type: "text",
|
1129 | label: "Email",
|
1130 | placeholder: "Email",
|
1131 | groupClassName: "email-sign-up-email",
|
1132 | disabled: disabled,
|
1133 | value: this.props.auth.getIn(["emailSignUp", this.getEndpoint(), "form", "email"]),
|
1134 | errors: this.props.auth.getIn(["emailSignUp", this.getEndpoint(), "errors", "email"]),
|
1135 | onChange: this.handleInput.bind(this, "email")
|
1136 | }, this.props.inputProps.email)),
|
1137 | _react2.default.createElement(_Input2.default, _extends({ type: "password",
|
1138 | label: "Password",
|
1139 | placeholder: "Password",
|
1140 | groupClassName: "email-sign-up-password",
|
1141 | disabled: disabled,
|
1142 | value: this.props.auth.getIn(["emailSignUp", this.getEndpoint(), "form", "password"]),
|
1143 | errors: this.props.auth.getIn(["emailSignUp", this.getEndpoint(), "errors", "password"]),
|
1144 | onChange: this.handleInput.bind(this, "password")
|
1145 | }, this.props.inputProps.password)),
|
1146 | _react2.default.createElement(_Input2.default, _extends({ type: "password",
|
1147 | label: "Password Confirmation",
|
1148 | placeholder: "Password Confirmation",
|
1149 | groupClassName: "email-sign-up-password-confirmation",
|
1150 | disabled: disabled,
|
1151 | value: this.props.auth.getIn(["emailSignUp", this.getEndpoint(), "form", "password_confirmation"]),
|
1152 | errors: this.props.auth.getIn(["emailSignUp", this.getEndpoint(), "errors", "password_confirmation"]),
|
1153 | onChange: this.handleInput.bind(this, "password_confirmation")
|
1154 | }, this.props.inputProps.passwordConfirmation)),
|
1155 | _react2.default.createElement(
|
1156 | _ButtonLoader2.default,
|
1157 | _extends({ loading: this.props.auth.getIn(["emailSignUp", this.getEndpoint(), "loading"]),
|
1158 | type: "submit",
|
1159 | className: "email-sign-up-submit pull-right",
|
1160 | icon: _react2.default.createElement(_reactBootstrap.Glyphicon, { glyph: "send" }),
|
1161 | disabled: disabled,
|
1162 | onClick: this.handleSubmit.bind(this)
|
1163 | }, this.props.inputProps.submit),
|
1164 | "Sign Up"
|
1165 | )
|
1166 | );
|
1167 | }
|
1168 | }]);
|
1169 |
|
1170 | return EmailSignUpForm;
|
1171 | }(_react2.default.Component);
|
1172 |
|
1173 | EmailSignUpForm.propTypes = {
|
1174 | endpoint: _react.PropTypes.string,
|
1175 | inputProps: _react.PropTypes.shape({
|
1176 | email: _react.PropTypes.object,
|
1177 | password: _react.PropTypes.object,
|
1178 | passwordConfirmation: _react.PropTypes.object,
|
1179 | submit: _react.PropTypes.object
|
1180 | })
|
1181 | };
|
1182 | EmailSignUpForm.defaultProps = {
|
1183 | inputProps: {
|
1184 | email: {},
|
1185 | password: {},
|
1186 | submit: {}
|
1187 | }
|
1188 | };
|
1189 | exports.default = (0, _reactRedux.connect)(function (_ref) {
|
1190 | var auth = _ref.auth;
|
1191 | return { auth: auth };
|
1192 | })(EmailSignUpForm);
|
1193 |
|
1194 | },
|
1195 |
|
1196 | function(module, exports, __webpack_require__) {
|
1197 |
|
1198 | "use strict";
|
1199 |
|
1200 | Object.defineProperty(exports, "__esModule", {
|
1201 | value: true
|
1202 | });
|
1203 |
|
1204 | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
1205 |
|
1206 | var _react = __webpack_require__(1);
|
1207 |
|
1208 | var _react2 = _interopRequireDefault(_react);
|
1209 |
|
1210 | var _reactBootstrap = __webpack_require__(9);
|
1211 |
|
1212 | var _immutable = __webpack_require__(4);
|
1213 |
|
1214 | var _immutable2 = _interopRequireDefault(_immutable);
|
1215 |
|
1216 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
1217 |
|
1218 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
1219 |
|
1220 | 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; }
|
1221 |
|
1222 | 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; }
|
1223 |
|
1224 | var ErrorList = function (_React$Component) {
|
1225 | _inherits(ErrorList, _React$Component);
|
1226 |
|
1227 | function ErrorList() {
|
1228 | _classCallCheck(this, ErrorList);
|
1229 |
|
1230 | return _possibleConstructorReturn(this, Object.getPrototypeOf(ErrorList).apply(this, arguments));
|
1231 | }
|
1232 |
|
1233 | _createClass(ErrorList, [{
|
1234 | key: "renderErrorList",
|
1235 | value: function renderErrorList() {
|
1236 | var errorCount = (this.props.errors || _immutable2.default.fromJS([])).size;
|
1237 |
|
1238 | if (errorCount > 0) {
|
1239 |
|
1240 | var errorWord = "error";
|
1241 | errorWord += errorCount === 1 ? "" : "s";
|
1242 |
|
1243 | return _react2.default.createElement(
|
1244 | "div",
|
1245 | { className: "has-error" },
|
1246 | _react2.default.createElement(
|
1247 | "p",
|
1248 | null,
|
1249 | "Please correct the following ",
|
1250 | errorWord,
|
1251 | ":"
|
1252 | ),
|
1253 | this.props.errors.map(function (err, i) {
|
1254 | return _react2.default.createElement(
|
1255 | "p",
|
1256 | {
|
1257 | key: i,
|
1258 | className: "control-label modal-error-item",
|
1259 | style: { paddingLeft: "20px", position: "relative" } },
|
1260 | _react2.default.createElement(_reactBootstrap.Glyphicon, { glyph: "exclamation-sign",
|
1261 | style: { position: "absolute", left: 0, top: 2 } }),
|
1262 | " ",
|
1263 | err
|
1264 | );
|
1265 | })
|
1266 | );
|
1267 | } else {
|
1268 | return _react2.default.createElement(
|
1269 | "p",
|
1270 | null,
|
1271 | _react2.default.createElement(_reactBootstrap.Glyphicon, { glyph: "exclamation-sign" }),
|
1272 | " There was an error processing this form. Please check each field and try again."
|
1273 | );
|
1274 | }
|
1275 | }
|
1276 | }, {
|
1277 | key: "render",
|
1278 | value: function render() {
|
1279 | return _react2.default.createElement(
|
1280 | "div",
|
1281 | { className: "auth-error-message" },
|
1282 | this.renderErrorList()
|
1283 | );
|
1284 | }
|
1285 | }]);
|
1286 |
|
1287 | return ErrorList;
|
1288 | }(_react2.default.Component);
|
1289 |
|
1290 | ErrorList.propTypes = {
|
1291 | errors: _react.PropTypes.object
|
1292 | };
|
1293 | ErrorList.defaultProps = {
|
1294 | errors: _immutable2.default.fromJS([])
|
1295 | };
|
1296 | exports.default = ErrorList;
|
1297 |
|
1298 | },
|
1299 |
|
1300 | function(module, exports, __webpack_require__) {
|
1301 |
|
1302 | "use strict";
|
1303 |
|
1304 | Object.defineProperty(exports, "__esModule", {
|
1305 | value: true
|
1306 | });
|
1307 |
|
1308 | 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; };
|
1309 |
|
1310 | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
1311 |
|
1312 | var _react = __webpack_require__(1);
|
1313 |
|
1314 | var _react2 = _interopRequireDefault(_react);
|
1315 |
|
1316 | var _reactRedux = __webpack_require__(3);
|
1317 |
|
1318 | var _ButtonLoader = __webpack_require__(13);
|
1319 |
|
1320 | var _ButtonLoader2 = _interopRequireDefault(_ButtonLoader);
|
1321 |
|
1322 | var _reactBootstrap = __webpack_require__(9);
|
1323 |
|
1324 | var _oauthSignIn = __webpack_require__(2);
|
1325 |
|
1326 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
1327 |
|
1328 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
1329 |
|
1330 | 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; }
|
1331 |
|
1332 | 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; }
|
1333 |
|
1334 |
|
1335 | var oAuthSignIn = _oauthSignIn.oAuthSignIn;
|
1336 |
|
1337 | var OAuthSignInButton = function (_React$Component) {
|
1338 | _inherits(OAuthSignInButton, _React$Component);
|
1339 |
|
1340 | function OAuthSignInButton() {
|
1341 | _classCallCheck(this, OAuthSignInButton);
|
1342 |
|
1343 | return _possibleConstructorReturn(this, Object.getPrototypeOf(OAuthSignInButton).apply(this, arguments));
|
1344 | }
|
1345 |
|
1346 | _createClass(OAuthSignInButton, [{
|
1347 | key: "getEndpoint",
|
1348 | value: function getEndpoint() {
|
1349 | return this.props.endpoint || this.props.auth.getIn(["configure", "currentEndpointKey"]) || this.props.auth.getIn(["configure", "defaultEndpointKey"]);
|
1350 | }
|
1351 | }, {
|
1352 | key: "handleClick",
|
1353 | value: function handleClick() {
|
1354 | this.props.dispatch(oAuthSignIn({
|
1355 | provider: this.props.provider,
|
1356 | params: this.props.signInParams,
|
1357 | endpointKey: this.getEndpoint()
|
1358 | }));
|
1359 | }
|
1360 | }, {
|
1361 | key: "render",
|
1362 | value: function render() {
|
1363 | var disabled = this.props.auth.getIn(["user", "isSignedIn"]);
|
1364 | var loading = this.props.auth.getIn(["ui", "oAuthSignInLoadingProvider"]) === this.props.provider && this.props.auth.getIn(["oAuthSignIn", this.getEndpoint(), "loading"]);
|
1365 |
|
1366 | return _react2.default.createElement(_ButtonLoader2.default, _extends({
|
1367 | loading: loading,
|
1368 | icon: this.props.icon,
|
1369 | className: this.props.className + ' oauth-sign-in-submit',
|
1370 | disabled: disabled,
|
1371 | onClick: this.handleClick.bind(this)
|
1372 | }, this.props));
|
1373 | }
|
1374 | }]);
|
1375 |
|
1376 | return OAuthSignInButton;
|
1377 | }(_react2.default.Component);
|
1378 |
|
1379 | OAuthSignInButton.propTypes = {
|
1380 | provider: _react.PropTypes.string.isRequired,
|
1381 | label: _react.PropTypes.string,
|
1382 | signInParams: _react.PropTypes.object,
|
1383 | children: _react.PropTypes.node,
|
1384 | icon: _react.PropTypes.node
|
1385 | };
|
1386 | OAuthSignInButton.defaultProps = {
|
1387 | signInParams: {},
|
1388 | children: _react2.default.createElement(
|
1389 | "span",
|
1390 | null,
|
1391 | "OAuth Sign In"
|
1392 | ),
|
1393 | icon: _react2.default.createElement(_reactBootstrap.Glyphicon, { glyph: "log-in" })
|
1394 | };
|
1395 | exports.default = (0, _reactRedux.connect)(function (_ref) {
|
1396 | var auth = _ref.auth;
|
1397 | return { auth: auth };
|
1398 | })(OAuthSignInButton);
|
1399 |
|
1400 | },
|
1401 |
|
1402 | function(module, exports, __webpack_require__) {
|
1403 |
|
1404 | "use strict";
|
1405 |
|
1406 | Object.defineProperty(exports, "__esModule", {
|
1407 | value: true
|
1408 | });
|
1409 |
|
1410 | 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; };
|
1411 |
|
1412 | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
1413 |
|
1414 | var _react = __webpack_require__(1);
|
1415 |
|
1416 | var _react2 = _interopRequireDefault(_react);
|
1417 |
|
1418 | var _Input = __webpack_require__(20);
|
1419 |
|
1420 | var _Input2 = _interopRequireDefault(_Input);
|
1421 |
|
1422 | var _ButtonLoader = __webpack_require__(13);
|
1423 |
|
1424 | var _ButtonLoader2 = _interopRequireDefault(_ButtonLoader);
|
1425 |
|
1426 | var _reactBootstrap = __webpack_require__(9);
|
1427 |
|
1428 | var _reactRedux = __webpack_require__(3);
|
1429 |
|
1430 | var _requestPasswordReset = __webpack_require__(2);
|
1431 |
|
1432 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
1433 |
|
1434 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
1435 |
|
1436 | 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; }
|
1437 |
|
1438 | 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; }
|
1439 |
|
1440 | var RequestPasswordResetForm = function (_React$Component) {
|
1441 | _inherits(RequestPasswordResetForm, _React$Component);
|
1442 |
|
1443 | function RequestPasswordResetForm() {
|
1444 | _classCallCheck(this, RequestPasswordResetForm);
|
1445 |
|
1446 | return _possibleConstructorReturn(this, Object.getPrototypeOf(RequestPasswordResetForm).apply(this, arguments));
|
1447 | }
|
1448 |
|
1449 | _createClass(RequestPasswordResetForm, [{
|
1450 | key: "getEndpoint",
|
1451 | value: function getEndpoint() {
|
1452 | return this.props.endpoint || this.props.auth.getIn(["configure", "currentEndpointKey"]) || this.props.auth.getIn(["configure", "defaultEndpointKey"]);
|
1453 | }
|
1454 | }, {
|
1455 | key: "handleInput",
|
1456 | value: function handleInput(key, val) {
|
1457 | this.props.dispatch((0, _requestPasswordReset.requestPasswordResetFormUpdate)(this.getEndpoint(), key, val));
|
1458 | }
|
1459 | }, {
|
1460 | key: "handleSubmit",
|
1461 | value: function handleSubmit(event) {
|
1462 | event.preventDefault();
|
1463 | var formData = this.props.auth.getIn(["requestPasswordReset", this.getEndpoint(), "form"]).toJS();
|
1464 | this.props.dispatch((0, _requestPasswordReset.requestPasswordReset)(formData, this.getEndpoint()));
|
1465 | }
|
1466 | }, {
|
1467 | key: "render",
|
1468 | value: function render() {
|
1469 | var loading = this.props.auth.getIn(["requestPasswordReset", this.getEndpoint(), "loading"]);
|
1470 | var inputDisabled = this.props.auth.getIn(["user", "isSignedIn"]);
|
1471 | var submitDisabled = !this.props.auth.getIn(["requestPasswordReset", this.getEndpoint(), "form", "email"]);
|
1472 |
|
1473 | return _react2.default.createElement(
|
1474 | "form",
|
1475 | {
|
1476 | className: "redux-auth request-password-reset-form clearfix",
|
1477 | onSubmit: this.handleSubmit.bind(this) },
|
1478 | _react2.default.createElement(_Input2.default, _extends({
|
1479 | type: "text",
|
1480 | label: "Email Address",
|
1481 | groupClassName: "request-password-reset-email",
|
1482 | placeholder: "Email Address",
|
1483 | disabled: loading || inputDisabled,
|
1484 | value: this.props.auth.getIn(["requestPasswordReset", this.getEndpoint(), "form", "email"]),
|
1485 | errors: this.props.auth.getIn(["requestPasswordReset", this.getEndpoint(), "errors", "email"]),
|
1486 | onChange: this.handleInput.bind(this, "email")
|
1487 | }, this.props.inputProps.email)),
|
1488 | _react2.default.createElement(
|
1489 | _ButtonLoader2.default,
|
1490 | _extends({
|
1491 | loading: loading,
|
1492 | type: "submit",
|
1493 | icon: _react2.default.createElement(_reactBootstrap.Glyphicon, { glyph: "send" }),
|
1494 | className: "pull-right request-password-reset-submit",
|
1495 | disabled: inputDisabled || submitDisabled,
|
1496 | onClick: this.handleSubmit.bind(this)
|
1497 | }, this.props.inputProps.submit),
|
1498 | "Request Password Reset"
|
1499 | )
|
1500 | );
|
1501 | }
|
1502 | }]);
|
1503 |
|
1504 | return RequestPasswordResetForm;
|
1505 | }(_react2.default.Component);
|
1506 |
|
1507 | RequestPasswordResetForm.propTypes = {
|
1508 | endpoint: _react.PropTypes.string,
|
1509 | inputProps: _react.PropTypes.shape({
|
1510 | email: _react.PropTypes.object,
|
1511 | submit: _react.PropTypes.object
|
1512 | })
|
1513 | };
|
1514 | RequestPasswordResetForm.defaultProps = {
|
1515 | inputProps: {
|
1516 | email: {},
|
1517 | submit: {}
|
1518 | }
|
1519 | };
|
1520 | exports.default = (0, _reactRedux.connect)(function (_ref) {
|
1521 | var auth = _ref.auth;
|
1522 | return { auth: auth };
|
1523 | })(RequestPasswordResetForm);
|
1524 |
|
1525 | },
|
1526 |
|
1527 | function(module, exports, __webpack_require__) {
|
1528 |
|
1529 | "use strict";
|
1530 |
|
1531 | Object.defineProperty(exports, "__esModule", {
|
1532 | value: true
|
1533 | });
|
1534 |
|
1535 | 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; };
|
1536 |
|
1537 | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
1538 |
|
1539 | var _react = __webpack_require__(1);
|
1540 |
|
1541 | var _react2 = _interopRequireDefault(_react);
|
1542 |
|
1543 | var _ButtonLoader = __webpack_require__(13);
|
1544 |
|
1545 | var _ButtonLoader2 = _interopRequireDefault(_ButtonLoader);
|
1546 |
|
1547 | var _reactBootstrap = __webpack_require__(9);
|
1548 |
|
1549 | var _reactRedux = __webpack_require__(3);
|
1550 |
|
1551 | var _signOut = __webpack_require__(2);
|
1552 |
|
1553 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
1554 |
|
1555 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
1556 |
|
1557 | 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; }
|
1558 |
|
1559 | 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; }
|
1560 |
|
1561 | var SignOutButton = function (_React$Component) {
|
1562 | _inherits(SignOutButton, _React$Component);
|
1563 |
|
1564 | function SignOutButton() {
|
1565 | _classCallCheck(this, SignOutButton);
|
1566 |
|
1567 | return _possibleConstructorReturn(this, Object.getPrototypeOf(SignOutButton).apply(this, arguments));
|
1568 | }
|
1569 |
|
1570 | _createClass(SignOutButton, [{
|
1571 | key: "getEndpoint",
|
1572 | value: function getEndpoint() {
|
1573 | return this.props.endpoint || this.props.auth.getIn(["configure", "currentEndpointKey"]) || this.props.auth.getIn(["configure", "defaultEndpointKey"]);
|
1574 | }
|
1575 | }, {
|
1576 | key: "handleClick",
|
1577 | value: function handleClick() {
|
1578 | this.props.dispatch((0, _signOut.signOut)(this.getEndpoint()));
|
1579 | }
|
1580 | }, {
|
1581 | key: "render",
|
1582 | value: function render() {
|
1583 | var disabled = !this.props.auth.getIn(["user", "isSignedIn"]);
|
1584 | return _react2.default.createElement(_ButtonLoader2.default, _extends({
|
1585 | loading: this.props.auth.getIn(["signOut", this.getEndpoint(), "loading"]),
|
1586 | icon: this.props.icon,
|
1587 | disabled: disabled,
|
1588 | className: "sign-out-submit",
|
1589 | onClick: this.handleClick.bind(this)
|
1590 | }, this.props));
|
1591 | }
|
1592 | }]);
|
1593 |
|
1594 | return SignOutButton;
|
1595 | }(_react2.default.Component);
|
1596 |
|
1597 | SignOutButton.propTypes = {
|
1598 | children: _react.PropTypes.node,
|
1599 | icon: _react.PropTypes.node
|
1600 | };
|
1601 | SignOutButton.defaultProps = {
|
1602 | children: _react2.default.createElement(
|
1603 | "span",
|
1604 | null,
|
1605 | "Sign Out"
|
1606 | ),
|
1607 | icon: _react2.default.createElement(_reactBootstrap.Glyphicon, { glyph: "log-out" })
|
1608 | };
|
1609 | exports.default = (0, _reactRedux.connect)(function (_ref) {
|
1610 | var auth = _ref.auth;
|
1611 | return { auth: auth };
|
1612 | })(SignOutButton);
|
1613 |
|
1614 | },
|
1615 |
|
1616 | function(module, exports, __webpack_require__) {
|
1617 |
|
1618 | "use strict";
|
1619 |
|
1620 | Object.defineProperty(exports, "__esModule", {
|
1621 | value: true
|
1622 | });
|
1623 |
|
1624 | 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; };
|
1625 |
|
1626 | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
1627 |
|
1628 | var _react = __webpack_require__(1);
|
1629 |
|
1630 | var _react2 = _interopRequireDefault(_react);
|
1631 |
|
1632 | var _Input = __webpack_require__(20);
|
1633 |
|
1634 | var _Input2 = _interopRequireDefault(_Input);
|
1635 |
|
1636 | var _ButtonLoader = __webpack_require__(13);
|
1637 |
|
1638 | var _ButtonLoader2 = _interopRequireDefault(_ButtonLoader);
|
1639 |
|
1640 | var _reactBootstrap = __webpack_require__(9);
|
1641 |
|
1642 | var _updatePassword = __webpack_require__(2);
|
1643 |
|
1644 | var _reactRedux = __webpack_require__(3);
|
1645 |
|
1646 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
1647 |
|
1648 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
1649 |
|
1650 | 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; }
|
1651 |
|
1652 | 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; }
|
1653 |
|
1654 | var UpdatePasswordForm = function (_React$Component) {
|
1655 | _inherits(UpdatePasswordForm, _React$Component);
|
1656 |
|
1657 | function UpdatePasswordForm() {
|
1658 | _classCallCheck(this, UpdatePasswordForm);
|
1659 |
|
1660 | return _possibleConstructorReturn(this, Object.getPrototypeOf(UpdatePasswordForm).apply(this, arguments));
|
1661 | }
|
1662 |
|
1663 | _createClass(UpdatePasswordForm, [{
|
1664 | key: "getEndpoint",
|
1665 | value: function getEndpoint() {
|
1666 | return this.props.endpoint || this.props.auth.getIn(["configure", "currentEndpointKey"]) || this.props.auth.getIn(["configure", "defaultEndpointKey"]);
|
1667 | }
|
1668 | }, {
|
1669 | key: "handleInput",
|
1670 | value: function handleInput(key, val) {
|
1671 | this.props.dispatch((0, _updatePassword.updatePasswordFormUpdate)(this.getEndpoint(), key, val));
|
1672 | }
|
1673 | }, {
|
1674 | key: "handleSubmit",
|
1675 | value: function handleSubmit(event) {
|
1676 | event.preventDefault();
|
1677 | var formData = this.props.auth.getIn(["updatePassword", this.getEndpoint(), "form"]).toJS();
|
1678 | this.props.dispatch((0, _updatePassword.updatePassword)(formData, this.getEndpoint()));
|
1679 | }
|
1680 | }, {
|
1681 | key: "render",
|
1682 | value: function render() {
|
1683 | var endpoint = this.getEndpoint();
|
1684 | var loading = this.props.auth.getIn(["updatePassword", endpoint, "loading"]);
|
1685 | var disabled = !this.props.auth.getIn(["user", "isSignedIn"]) || loading || this.props.auth.getIn(["user", "attributes", "provider"]) !== "email";
|
1686 |
|
1687 | return _react2.default.createElement(
|
1688 | "form",
|
1689 | { className: "redux-auth update-password-form clearfix",
|
1690 | onSubmit: this.handleSubmit.bind(this) },
|
1691 | _react2.default.createElement(_Input2.default, _extends({ type: "password",
|
1692 | label: "Password",
|
1693 | placeholder: "Password",
|
1694 | disabled: disabled,
|
1695 | groupClassName: "update-password-password",
|
1696 | value: this.props.auth.getIn(["updatePassword", endpoint, "form", "password"]),
|
1697 | errors: this.props.auth.getIn(["updatePassword", endpoint, "errors", "password"]),
|
1698 | onChange: this.handleInput.bind(this, "password")
|
1699 | }, this.props.inputProps.password)),
|
1700 | _react2.default.createElement(_Input2.default, _extends({ type: "password",
|
1701 | label: "Password Confirmation",
|
1702 | placeholder: "Password Confirmation",
|
1703 | disabled: disabled,
|
1704 | groupClassName: "update-password-password-confirmation",
|
1705 | value: this.props.auth.getIn(["updatePassword", endpoint, "form", "password_confirmation"]),
|
1706 | errors: this.props.auth.getIn(["updatePassword", endpoint, "errors", "password_confirmation"]),
|
1707 | onChange: this.handleInput.bind(this, "password_confirmation")
|
1708 | }, this.props.inputProps.passwordConfirmation)),
|
1709 | _react2.default.createElement(
|
1710 | _ButtonLoader2.default,
|
1711 | _extends({ loading: loading,
|
1712 | type: "submit",
|
1713 | icon: this.props.icon,
|
1714 | disabled: disabled,
|
1715 | className: "pull-right update-password-submit",
|
1716 | icon: _react2.default.createElement(_reactBootstrap.Glyphicon, { glyph: "lock" }),
|
1717 | onClick: this.handleSubmit.bind(this)
|
1718 | }, this.props.inputProps.submit),
|
1719 | "Update Password"
|
1720 | )
|
1721 | );
|
1722 | }
|
1723 | }]);
|
1724 |
|
1725 | return UpdatePasswordForm;
|
1726 | }(_react2.default.Component);
|
1727 |
|
1728 | UpdatePasswordForm.propTypes = {
|
1729 | endpoint: _react.PropTypes.string,
|
1730 | inputProps: _react.PropTypes.shape({
|
1731 | password: _react.PropTypes.object,
|
1732 | passwordConfirmation: _react.PropTypes.object
|
1733 | })
|
1734 | };
|
1735 | UpdatePasswordForm.defaultProps = {
|
1736 | inputProps: {
|
1737 | password: {},
|
1738 | passwordConfirmation: {}
|
1739 | }
|
1740 | };
|
1741 | exports.default = (0, _reactRedux.connect)(function (_ref) {
|
1742 | var auth = _ref.auth;
|
1743 | return { auth: auth };
|
1744 | })(UpdatePasswordForm);
|
1745 |
|
1746 | },
|
1747 |
|
1748 | function(module, exports, __webpack_require__) {
|
1749 |
|
1750 | "use strict";
|
1751 |
|
1752 | Object.defineProperty(exports, "__esModule", {
|
1753 | value: true
|
1754 | });
|
1755 |
|
1756 | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
1757 |
|
1758 | var _react = __webpack_require__(1);
|
1759 |
|
1760 | var _react2 = _interopRequireDefault(_react);
|
1761 |
|
1762 | var _ui = __webpack_require__(2);
|
1763 |
|
1764 | var _Modal = __webpack_require__(6);
|
1765 |
|
1766 | var _Modal2 = _interopRequireDefault(_Modal);
|
1767 |
|
1768 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
1769 |
|
1770 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
1771 |
|
1772 | 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; }
|
1773 |
|
1774 | 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; }
|
1775 |
|
1776 | var DestroyAccountErrorModal = function (_React$Component) {
|
1777 | _inherits(DestroyAccountErrorModal, _React$Component);
|
1778 |
|
1779 | function DestroyAccountErrorModal() {
|
1780 | _classCallCheck(this, DestroyAccountErrorModal);
|
1781 |
|
1782 | return _possibleConstructorReturn(this, Object.getPrototypeOf(DestroyAccountErrorModal).apply(this, arguments));
|
1783 | }
|
1784 |
|
1785 | _createClass(DestroyAccountErrorModal, [{
|
1786 | key: "render",
|
1787 | value: function render() {
|
1788 | return _react2.default.createElement(_Modal2.default, {
|
1789 | containerClass: "destroy-account-error-modal",
|
1790 | show: this.props.show,
|
1791 | closeAction: _ui.hideDestroyAccountErrorModal,
|
1792 | title: "Error",
|
1793 | errorAddr: ["destroyAccount", "errors"] });
|
1794 | }
|
1795 | }]);
|
1796 |
|
1797 | return DestroyAccountErrorModal;
|
1798 | }(_react2.default.Component);
|
1799 |
|
1800 | exports.default = DestroyAccountErrorModal;
|
1801 |
|
1802 | },
|
1803 |
|
1804 | function(module, exports, __webpack_require__) {
|
1805 |
|
1806 | "use strict";
|
1807 |
|
1808 | Object.defineProperty(exports, "__esModule", {
|
1809 | value: true
|
1810 | });
|
1811 |
|
1812 | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
1813 |
|
1814 | var _react = __webpack_require__(1);
|
1815 |
|
1816 | var _react2 = _interopRequireDefault(_react);
|
1817 |
|
1818 | var _reactRedux = __webpack_require__(3);
|
1819 |
|
1820 | var _ui = __webpack_require__(2);
|
1821 |
|
1822 | var _Modal = __webpack_require__(6);
|
1823 |
|
1824 | var _Modal2 = _interopRequireDefault(_Modal);
|
1825 |
|
1826 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
1827 |
|
1828 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
1829 |
|
1830 | 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; }
|
1831 |
|
1832 | 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; }
|
1833 |
|
1834 | var DestroyAccountSuccessModal = function (_React$Component) {
|
1835 | _inherits(DestroyAccountSuccessModal, _React$Component);
|
1836 |
|
1837 | function DestroyAccountSuccessModal() {
|
1838 | _classCallCheck(this, DestroyAccountSuccessModal);
|
1839 |
|
1840 | return _possibleConstructorReturn(this, Object.getPrototypeOf(DestroyAccountSuccessModal).apply(this, arguments));
|
1841 | }
|
1842 |
|
1843 | _createClass(DestroyAccountSuccessModal, [{
|
1844 | key: "render",
|
1845 | value: function render() {
|
1846 | return _react2.default.createElement(
|
1847 | _Modal2.default,
|
1848 | {
|
1849 | show: this.props.show,
|
1850 | containerClass: "destroy-account-success-modal",
|
1851 | closeAction: _ui.hideDestroyAccountSuccessModal,
|
1852 | title: "Destroy Account Success" },
|
1853 | _react2.default.createElement(
|
1854 | "p",
|
1855 | null,
|
1856 | this.props.auth.getIn(["ui", "destroyAccountMessage"])
|
1857 | )
|
1858 | );
|
1859 | }
|
1860 | }]);
|
1861 |
|
1862 | return DestroyAccountSuccessModal;
|
1863 | }(_react2.default.Component);
|
1864 |
|
1865 | exports.default = (0, _reactRedux.connect)(function (_ref) {
|
1866 | var auth = _ref.auth;
|
1867 | return { auth: auth };
|
1868 | })(DestroyAccountSuccessModal);
|
1869 |
|
1870 | },
|
1871 |
|
1872 | function(module, exports, __webpack_require__) {
|
1873 |
|
1874 | "use strict";
|
1875 |
|
1876 | Object.defineProperty(exports, "__esModule", {
|
1877 | value: true
|
1878 | });
|
1879 |
|
1880 | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
1881 |
|
1882 | var _react = __webpack_require__(1);
|
1883 |
|
1884 | var _react2 = _interopRequireDefault(_react);
|
1885 |
|
1886 | var _ui = __webpack_require__(2);
|
1887 |
|
1888 | var _Modal = __webpack_require__(6);
|
1889 |
|
1890 | var _Modal2 = _interopRequireDefault(_Modal);
|
1891 |
|
1892 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
1893 |
|
1894 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
1895 |
|
1896 | 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; }
|
1897 |
|
1898 | 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; }
|
1899 |
|
1900 | var EmailSignInErrorModal = function (_React$Component) {
|
1901 | _inherits(EmailSignInErrorModal, _React$Component);
|
1902 |
|
1903 | function EmailSignInErrorModal() {
|
1904 | _classCallCheck(this, EmailSignInErrorModal);
|
1905 |
|
1906 | return _possibleConstructorReturn(this, Object.getPrototypeOf(EmailSignInErrorModal).apply(this, arguments));
|
1907 | }
|
1908 |
|
1909 | _createClass(EmailSignInErrorModal, [{
|
1910 | key: "render",
|
1911 | value: function render() {
|
1912 | return _react2.default.createElement(_Modal2.default, {
|
1913 | show: this.props.show,
|
1914 | containerClass: "email-sign-in-error-modal",
|
1915 | closeAction: _ui.hideEmailSignInErrorModal,
|
1916 | title: "Sign In Error",
|
1917 | errorAddr: ["emailSignIn", "errors"] });
|
1918 | }
|
1919 | }]);
|
1920 |
|
1921 | return EmailSignInErrorModal;
|
1922 | }(_react2.default.Component);
|
1923 |
|
1924 | exports.default = EmailSignInErrorModal;
|
1925 |
|
1926 | },
|
1927 |
|
1928 | function(module, exports, __webpack_require__) {
|
1929 |
|
1930 | "use strict";
|
1931 |
|
1932 | Object.defineProperty(exports, "__esModule", {
|
1933 | value: true
|
1934 | });
|
1935 |
|
1936 | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
1937 |
|
1938 | var _react = __webpack_require__(1);
|
1939 |
|
1940 | var _react2 = _interopRequireDefault(_react);
|
1941 |
|
1942 | var _reactRedux = __webpack_require__(3);
|
1943 |
|
1944 | var _ui = __webpack_require__(2);
|
1945 |
|
1946 | var _Modal = __webpack_require__(6);
|
1947 |
|
1948 | var _Modal2 = _interopRequireDefault(_Modal);
|
1949 |
|
1950 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
1951 |
|
1952 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
1953 |
|
1954 | 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; }
|
1955 |
|
1956 | 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; }
|
1957 |
|
1958 | var EmailSignInSuccessModal = function (_React$Component) {
|
1959 | _inherits(EmailSignInSuccessModal, _React$Component);
|
1960 |
|
1961 | function EmailSignInSuccessModal() {
|
1962 | _classCallCheck(this, EmailSignInSuccessModal);
|
1963 |
|
1964 | return _possibleConstructorReturn(this, Object.getPrototypeOf(EmailSignInSuccessModal).apply(this, arguments));
|
1965 | }
|
1966 |
|
1967 | _createClass(EmailSignInSuccessModal, [{
|
1968 | key: "render",
|
1969 | value: function render() {
|
1970 | return _react2.default.createElement(
|
1971 | _Modal2.default,
|
1972 | {
|
1973 | show: this.props.show,
|
1974 | containerClass: "email-sign-in-success-modal",
|
1975 | closeAction: _ui.hideEmailSignInSuccessModal,
|
1976 | closeBtnLabel: "Close",
|
1977 | title: "Welcome Back" },
|
1978 | _react2.default.createElement(
|
1979 | "p",
|
1980 | null,
|
1981 | "You are now signed in as ",
|
1982 | this.props.auth.getIn(["user", "attributes", "email"]),
|
1983 | "."
|
1984 | )
|
1985 | );
|
1986 | }
|
1987 | }]);
|
1988 |
|
1989 | return EmailSignInSuccessModal;
|
1990 | }(_react2.default.Component);
|
1991 |
|
1992 | exports.default = (0, _reactRedux.connect)(function (_ref) {
|
1993 | var auth = _ref.auth;
|
1994 | return { auth: auth };
|
1995 | })(EmailSignInSuccessModal);
|
1996 |
|
1997 | },
|
1998 |
|
1999 | function(module, exports, __webpack_require__) {
|
2000 |
|
2001 | "use strict";
|
2002 |
|
2003 | Object.defineProperty(exports, "__esModule", {
|
2004 | value: true
|
2005 | });
|
2006 |
|
2007 | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
2008 |
|
2009 | var _react = __webpack_require__(1);
|
2010 |
|
2011 | var _react2 = _interopRequireDefault(_react);
|
2012 |
|
2013 | var _ui = __webpack_require__(2);
|
2014 |
|
2015 | var _Modal = __webpack_require__(6);
|
2016 |
|
2017 | var _Modal2 = _interopRequireDefault(_Modal);
|
2018 |
|
2019 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
2020 |
|
2021 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
2022 |
|
2023 | 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; }
|
2024 |
|
2025 | 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; }
|
2026 |
|
2027 | var EmailSignUpErrorModal = function (_React$Component) {
|
2028 | _inherits(EmailSignUpErrorModal, _React$Component);
|
2029 |
|
2030 | function EmailSignUpErrorModal() {
|
2031 | _classCallCheck(this, EmailSignUpErrorModal);
|
2032 |
|
2033 | return _possibleConstructorReturn(this, Object.getPrototypeOf(EmailSignUpErrorModal).apply(this, arguments));
|
2034 | }
|
2035 |
|
2036 | _createClass(EmailSignUpErrorModal, [{
|
2037 | key: "render",
|
2038 | value: function render() {
|
2039 | return _react2.default.createElement(_Modal2.default, {
|
2040 | show: this.props.show,
|
2041 | containerClass: "email-sign-up-error-modal",
|
2042 | title: "Sign Up Error",
|
2043 | errorAddr: ["emailSignUp", "errors", "full_messages"],
|
2044 | closeAction: _ui.hideEmailSignUpErrorModal });
|
2045 | }
|
2046 | }]);
|
2047 |
|
2048 | return EmailSignUpErrorModal;
|
2049 | }(_react2.default.Component);
|
2050 |
|
2051 | exports.default = EmailSignUpErrorModal;
|
2052 |
|
2053 | },
|
2054 |
|
2055 | function(module, exports, __webpack_require__) {
|
2056 |
|
2057 | "use strict";
|
2058 |
|
2059 | Object.defineProperty(exports, "__esModule", {
|
2060 | value: true
|
2061 | });
|
2062 |
|
2063 | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
2064 |
|
2065 | var _react = __webpack_require__(1);
|
2066 |
|
2067 | var _react2 = _interopRequireDefault(_react);
|
2068 |
|
2069 | var _ui = __webpack_require__(2);
|
2070 |
|
2071 | var _reactRedux = __webpack_require__(3);
|
2072 |
|
2073 | var _Modal = __webpack_require__(6);
|
2074 |
|
2075 | var _Modal2 = _interopRequireDefault(_Modal);
|
2076 |
|
2077 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
2078 |
|
2079 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
2080 |
|
2081 | 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; }
|
2082 |
|
2083 | 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; }
|
2084 |
|
2085 | var EmailSignUpSuccessModal = function (_React$Component) {
|
2086 | _inherits(EmailSignUpSuccessModal, _React$Component);
|
2087 |
|
2088 | function EmailSignUpSuccessModal() {
|
2089 | _classCallCheck(this, EmailSignUpSuccessModal);
|
2090 |
|
2091 | return _possibleConstructorReturn(this, Object.getPrototypeOf(EmailSignUpSuccessModal).apply(this, arguments));
|
2092 | }
|
2093 |
|
2094 | _createClass(EmailSignUpSuccessModal, [{
|
2095 | key: "render",
|
2096 | value: function render() {
|
2097 | return _react2.default.createElement(
|
2098 | _Modal2.default,
|
2099 | {
|
2100 | containerClass: "email-sign-up-success-modal",
|
2101 | show: this.props.show,
|
2102 | closeAction: _ui.hideEmailSignUpSuccessModal,
|
2103 | title: "Sign Up Success" },
|
2104 | _react2.default.createElement(
|
2105 | "p",
|
2106 | null,
|
2107 | "A confirmation email was sent to your account at ",
|
2108 | this.props.auth.getIn(["ui", "emailSignUpAddress"]),
|
2109 | ". Follow the instructions in the email to complete registration."
|
2110 | )
|
2111 | );
|
2112 | }
|
2113 | }]);
|
2114 |
|
2115 | return EmailSignUpSuccessModal;
|
2116 | }(_react2.default.Component);
|
2117 |
|
2118 | exports.default = (0, _reactRedux.connect)(function (_ref) {
|
2119 | var auth = _ref.auth;
|
2120 | return { auth: auth };
|
2121 | })(EmailSignUpSuccessModal);
|
2122 |
|
2123 | },
|
2124 |
|
2125 | function(module, exports, __webpack_require__) {
|
2126 |
|
2127 | "use strict";
|
2128 |
|
2129 | Object.defineProperty(exports, "__esModule", {
|
2130 | value: true
|
2131 | });
|
2132 |
|
2133 | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
2134 |
|
2135 | var _react = __webpack_require__(1);
|
2136 |
|
2137 | var _react2 = _interopRequireDefault(_react);
|
2138 |
|
2139 | var _ui = __webpack_require__(2);
|
2140 |
|
2141 | var _Modal = __webpack_require__(6);
|
2142 |
|
2143 | var _Modal2 = _interopRequireDefault(_Modal);
|
2144 |
|
2145 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
2146 |
|
2147 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
2148 |
|
2149 | 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; }
|
2150 |
|
2151 | 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; }
|
2152 |
|
2153 | var FirstTimeLoginErrorModal = function (_React$Component) {
|
2154 | _inherits(FirstTimeLoginErrorModal, _React$Component);
|
2155 |
|
2156 | function FirstTimeLoginErrorModal() {
|
2157 | _classCallCheck(this, FirstTimeLoginErrorModal);
|
2158 |
|
2159 | return _possibleConstructorReturn(this, Object.getPrototypeOf(FirstTimeLoginErrorModal).apply(this, arguments));
|
2160 | }
|
2161 |
|
2162 | _createClass(FirstTimeLoginErrorModal, [{
|
2163 | key: "render",
|
2164 | value: function render() {
|
2165 | return _react2.default.createElement(
|
2166 | _Modal2.default,
|
2167 | {
|
2168 | show: this.props.show,
|
2169 | containerClass: "first-time-login-error-modal",
|
2170 | closeAction: _ui.hideFirstTimeLoginErrorModal,
|
2171 | title: "Confirmation Error" },
|
2172 | _react2.default.createElement(
|
2173 | "p",
|
2174 | null,
|
2175 | "There was a problem confirming your account. Please try again."
|
2176 | )
|
2177 | );
|
2178 | }
|
2179 | }]);
|
2180 |
|
2181 | return FirstTimeLoginErrorModal;
|
2182 | }(_react2.default.Component);
|
2183 |
|
2184 | exports.default = FirstTimeLoginErrorModal;
|
2185 |
|
2186 | },
|
2187 |
|
2188 | function(module, exports, __webpack_require__) {
|
2189 |
|
2190 | "use strict";
|
2191 |
|
2192 | Object.defineProperty(exports, "__esModule", {
|
2193 | value: true
|
2194 | });
|
2195 |
|
2196 | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
2197 |
|
2198 | var _react = __webpack_require__(1);
|
2199 |
|
2200 | var _react2 = _interopRequireDefault(_react);
|
2201 |
|
2202 | var _ui = __webpack_require__(2);
|
2203 |
|
2204 | var _Modal = __webpack_require__(6);
|
2205 |
|
2206 | var _Modal2 = _interopRequireDefault(_Modal);
|
2207 |
|
2208 | var _reactRedux = __webpack_require__(3);
|
2209 |
|
2210 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
2211 |
|
2212 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
2213 |
|
2214 | 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; }
|
2215 |
|
2216 | 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; }
|
2217 |
|
2218 | var FirstTimeLoginSuccessModal = function (_React$Component) {
|
2219 | _inherits(FirstTimeLoginSuccessModal, _React$Component);
|
2220 |
|
2221 | function FirstTimeLoginSuccessModal() {
|
2222 | _classCallCheck(this, FirstTimeLoginSuccessModal);
|
2223 |
|
2224 | return _possibleConstructorReturn(this, Object.getPrototypeOf(FirstTimeLoginSuccessModal).apply(this, arguments));
|
2225 | }
|
2226 |
|
2227 | _createClass(FirstTimeLoginSuccessModal, [{
|
2228 | key: "render",
|
2229 | value: function render() {
|
2230 | return _react2.default.createElement(
|
2231 | _Modal2.default,
|
2232 | {
|
2233 | show: this.props.show,
|
2234 | containerClass: "first-time-login-success-modal",
|
2235 | title: "Welcome " + this.props.auth.getIn(["user", "attributes", "email"]) + "!",
|
2236 | closeBtnLabel: "Close",
|
2237 | closeAction: _ui.hideFirstTimeLoginSuccessModal },
|
2238 | _react2.default.createElement(
|
2239 | "p",
|
2240 | null,
|
2241 | "Your account has been confirmed."
|
2242 | )
|
2243 | );
|
2244 | }
|
2245 | }]);
|
2246 |
|
2247 | return FirstTimeLoginSuccessModal;
|
2248 | }(_react2.default.Component);
|
2249 |
|
2250 | exports.default = (0, _reactRedux.connect)(function (_ref) {
|
2251 | var auth = _ref.auth;
|
2252 | return { auth: auth };
|
2253 | })(FirstTimeLoginSuccessModal);
|
2254 |
|
2255 | },
|
2256 |
|
2257 | function(module, exports, __webpack_require__) {
|
2258 |
|
2259 | "use strict";
|
2260 |
|
2261 | Object.defineProperty(exports, "__esModule", {
|
2262 | value: true
|
2263 | });
|
2264 |
|
2265 | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
2266 |
|
2267 | var _react = __webpack_require__(1);
|
2268 |
|
2269 | var _react2 = _interopRequireDefault(_react);
|
2270 |
|
2271 | var _reactBootstrap = __webpack_require__(9);
|
2272 |
|
2273 | var _Modal = __webpack_require__(6);
|
2274 |
|
2275 | var _Modal2 = _interopRequireDefault(_Modal);
|
2276 |
|
2277 | var _ui = __webpack_require__(2);
|
2278 |
|
2279 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
2280 |
|
2281 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
2282 |
|
2283 | 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; }
|
2284 |
|
2285 | 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; }
|
2286 |
|
2287 | var OAuthSignInErrorModal = function (_React$Component) {
|
2288 | _inherits(OAuthSignInErrorModal, _React$Component);
|
2289 |
|
2290 | function OAuthSignInErrorModal() {
|
2291 | _classCallCheck(this, OAuthSignInErrorModal);
|
2292 |
|
2293 | return _possibleConstructorReturn(this, Object.getPrototypeOf(OAuthSignInErrorModal).apply(this, arguments));
|
2294 | }
|
2295 |
|
2296 | _createClass(OAuthSignInErrorModal, [{
|
2297 | key: "render",
|
2298 | value: function render() {
|
2299 | return _react2.default.createElement(
|
2300 | _Modal2.default,
|
2301 | {
|
2302 | show: this.props.show,
|
2303 | containerClass: "oauth-sign-in-error-modal",
|
2304 | closeAction: _ui.hideOAuthSignInErrorModal,
|
2305 | title: "OAuth Sign In Error" },
|
2306 | _react2.default.createElement(
|
2307 | "p",
|
2308 | null,
|
2309 | _react2.default.createElement(_reactBootstrap.Glyphicon, { glyph: "exclamation-sign" }),
|
2310 | " There was an error authenticating your account. Please try again."
|
2311 | )
|
2312 | );
|
2313 | }
|
2314 | }]);
|
2315 |
|
2316 | return OAuthSignInErrorModal;
|
2317 | }(_react2.default.Component);
|
2318 |
|
2319 | exports.default = OAuthSignInErrorModal;
|
2320 |
|
2321 | },
|
2322 |
|
2323 | function(module, exports, __webpack_require__) {
|
2324 |
|
2325 | "use strict";
|
2326 |
|
2327 | Object.defineProperty(exports, "__esModule", {
|
2328 | value: true
|
2329 | });
|
2330 |
|
2331 | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
2332 |
|
2333 | var _react = __webpack_require__(1);
|
2334 |
|
2335 | var _react2 = _interopRequireDefault(_react);
|
2336 |
|
2337 | var _ui = __webpack_require__(2);
|
2338 |
|
2339 | var _reactRedux = __webpack_require__(3);
|
2340 |
|
2341 | var _Modal = __webpack_require__(6);
|
2342 |
|
2343 | var _Modal2 = _interopRequireDefault(_Modal);
|
2344 |
|
2345 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
2346 |
|
2347 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
2348 |
|
2349 | 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; }
|
2350 |
|
2351 | 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; }
|
2352 |
|
2353 | var OAuthSignInSuccessModal = function (_React$Component) {
|
2354 | _inherits(OAuthSignInSuccessModal, _React$Component);
|
2355 |
|
2356 | function OAuthSignInSuccessModal() {
|
2357 | _classCallCheck(this, OAuthSignInSuccessModal);
|
2358 |
|
2359 | return _possibleConstructorReturn(this, Object.getPrototypeOf(OAuthSignInSuccessModal).apply(this, arguments));
|
2360 | }
|
2361 |
|
2362 | _createClass(OAuthSignInSuccessModal, [{
|
2363 | key: "render",
|
2364 | value: function render() {
|
2365 | return _react2.default.createElement(
|
2366 | _Modal2.default,
|
2367 | {
|
2368 | show: this.props.show,
|
2369 | containerClass: "oauth-sign-in-success-modal",
|
2370 | closeAction: _ui.hideOAuthSignInSuccessModal,
|
2371 | title: "Welcome" },
|
2372 | _react2.default.createElement(
|
2373 | "p",
|
2374 | null,
|
2375 | "You are now signed in via ",
|
2376 | this.props.auth.getIn(["user", "attributes", "provider"]),
|
2377 | "."
|
2378 | )
|
2379 | );
|
2380 | }
|
2381 | }]);
|
2382 |
|
2383 | return OAuthSignInSuccessModal;
|
2384 | }(_react2.default.Component);
|
2385 |
|
2386 | exports.default = (0, _reactRedux.connect)(function (_ref) {
|
2387 | var auth = _ref.auth;
|
2388 | return { auth: auth };
|
2389 | })(OAuthSignInSuccessModal);
|
2390 |
|
2391 | },
|
2392 |
|
2393 | function(module, exports, __webpack_require__) {
|
2394 |
|
2395 | "use strict";
|
2396 |
|
2397 | Object.defineProperty(exports, "__esModule", {
|
2398 | value: true
|
2399 | });
|
2400 |
|
2401 | 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; };
|
2402 |
|
2403 | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
2404 |
|
2405 | var _react = __webpack_require__(1);
|
2406 |
|
2407 | var _react2 = _interopRequireDefault(_react);
|
2408 |
|
2409 | var _reactBootstrap = __webpack_require__(9);
|
2410 |
|
2411 | var _ButtonLoader = __webpack_require__(13);
|
2412 |
|
2413 | var _ButtonLoader2 = _interopRequireDefault(_ButtonLoader);
|
2414 |
|
2415 | var _Input = __webpack_require__(20);
|
2416 |
|
2417 | var _Input2 = _interopRequireDefault(_Input);
|
2418 |
|
2419 | var _reactRedux = __webpack_require__(3);
|
2420 |
|
2421 | var _ui = __webpack_require__(2);
|
2422 |
|
2423 | var _updatePasswordModal = __webpack_require__(2);
|
2424 |
|
2425 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
2426 |
|
2427 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
2428 |
|
2429 | 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; }
|
2430 |
|
2431 | 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; }
|
2432 |
|
2433 | var PasswordResetSuccessModal = function (_React$Component) {
|
2434 | _inherits(PasswordResetSuccessModal, _React$Component);
|
2435 |
|
2436 | function PasswordResetSuccessModal() {
|
2437 | _classCallCheck(this, PasswordResetSuccessModal);
|
2438 |
|
2439 | return _possibleConstructorReturn(this, Object.getPrototypeOf(PasswordResetSuccessModal).apply(this, arguments));
|
2440 | }
|
2441 |
|
2442 | _createClass(PasswordResetSuccessModal, [{
|
2443 | key: "getEndpoint",
|
2444 | value: function getEndpoint() {
|
2445 | return this.props.endpoint || this.props.auth.getIn(["configure", "currentEndpointKey"]) || this.props.auth.getIn(["configure", "defaultEndpointKey"]);
|
2446 | }
|
2447 | }, {
|
2448 | key: "handleInput",
|
2449 | value: function handleInput(key, val) {
|
2450 | this.props.dispatch((0, _updatePasswordModal.updatePasswordModalFormUpdate)(this.getEndpoint(), key, val));
|
2451 | }
|
2452 | }, {
|
2453 | key: "handleSubmit",
|
2454 | value: function handleSubmit() {
|
2455 | var formData = this.props.auth.getIn(["updatePasswordModal", this.getEndpoint(), "form"]).toJS();
|
2456 | this.props.dispatch((0, _updatePasswordModal.updatePasswordModal)(formData, this.getEndpoint()));
|
2457 | }
|
2458 | }, {
|
2459 | key: "close",
|
2460 | value: function close() {
|
2461 | this.props.dispatch((0, _ui.hidePasswordResetSuccessModal)(this.getEndpoint()));
|
2462 | }
|
2463 | }, {
|
2464 | key: "render",
|
2465 | value: function render() {
|
2466 | var loading = this.props.auth.getIn(["updatePasswordModal", this.getEndpoint(), "loading"]),
|
2467 | endpoint = this.getEndpoint();
|
2468 |
|
2469 | return _react2.default.createElement(
|
2470 | _reactBootstrap.Modal,
|
2471 | {
|
2472 | show: this.props.show,
|
2473 | className: "password-reset-success-modal",
|
2474 | onHide: this.close.bind(this) },
|
2475 | _react2.default.createElement(
|
2476 | _reactBootstrap.Modal.Header,
|
2477 | { closeButton: true },
|
2478 | _react2.default.createElement(
|
2479 | _reactBootstrap.Modal.Title,
|
2480 | null,
|
2481 | "Reset Your Password"
|
2482 | )
|
2483 | ),
|
2484 | _react2.default.createElement(
|
2485 | "form",
|
2486 | null,
|
2487 | _react2.default.createElement(
|
2488 | _reactBootstrap.Modal.Body,
|
2489 | null,
|
2490 | _react2.default.createElement(_Input2.default, _extends({
|
2491 | type: "password",
|
2492 | label: "Password",
|
2493 | placeholder: "Password",
|
2494 | disabled: loading,
|
2495 | groupClassName: "password-reset-success-modal-password",
|
2496 | value: this.props.auth.getIn(["updatePasswordModal", endpoint, "form", "password"]),
|
2497 | errors: this.props.auth.getIn(["updatePasswordModal", endpoint, "errors", "password"]),
|
2498 | onChange: this.handleInput.bind(this, "password")
|
2499 | }, this.props.inputProps.password)),
|
2500 | _react2.default.createElement(_Input2.default, _extends({
|
2501 | type: "password",
|
2502 | label: "Password Confirmation",
|
2503 | placeholder: "Password Confirmation",
|
2504 | disabled: loading,
|
2505 | groupClassName: "password-reset-success-modal-password-confirmation",
|
2506 | value: this.props.auth.getIn(["updatePasswordModal", endpoint, "form", "password_confirmation"]),
|
2507 | errors: this.props.auth.getIn(["updatePasswordModal", endpoint, "errors", "password_confirmation"]),
|
2508 | onChange: this.handleInput.bind(this, "password_confirmation")
|
2509 | }, this.props.inputProps.passwordConfirmation))
|
2510 | ),
|
2511 | _react2.default.createElement(
|
2512 | _reactBootstrap.Modal.Footer,
|
2513 | null,
|
2514 | _react2.default.createElement(
|
2515 | _reactBootstrap.Button,
|
2516 | _extends({
|
2517 | className: "password-reset-success-modal-close",
|
2518 | onClick: this.close.bind(this)
|
2519 | }, this.props.inputProps.cancel),
|
2520 | "Cancel"
|
2521 | ),
|
2522 | _react2.default.createElement(_ButtonLoader2.default, _extends({}, this.props, {
|
2523 | loading: loading,
|
2524 | type: "submit",
|
2525 | className: "password-reset-success-modal-submit",
|
2526 | icon: _react2.default.createElement(_reactBootstrap.Glyphicon, { glyph: "lock" }),
|
2527 | onClick: this.handleSubmit.bind(this)
|
2528 | }, this.props.inputProps.submit))
|
2529 | )
|
2530 | )
|
2531 | );
|
2532 | }
|
2533 | }]);
|
2534 |
|
2535 | return PasswordResetSuccessModal;
|
2536 | }(_react2.default.Component);
|
2537 |
|
2538 | PasswordResetSuccessModal.propTypes = {
|
2539 | show: _react.PropTypes.bool,
|
2540 | inputProps: _react.PropTypes.object
|
2541 | };
|
2542 | PasswordResetSuccessModal.defaultProps = {
|
2543 | show: false,
|
2544 | inputProps: {}
|
2545 | };
|
2546 | exports.default = (0, _reactRedux.connect)(function (_ref) {
|
2547 | var auth = _ref.auth;
|
2548 | return { auth: auth };
|
2549 | })(PasswordResetSuccessModal);
|
2550 |
|
2551 | },
|
2552 |
|
2553 | function(module, exports, __webpack_require__) {
|
2554 |
|
2555 | "use strict";
|
2556 |
|
2557 | Object.defineProperty(exports, "__esModule", {
|
2558 | value: true
|
2559 | });
|
2560 |
|
2561 | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
2562 |
|
2563 | var _react = __webpack_require__(1);
|
2564 |
|
2565 | var _react2 = _interopRequireDefault(_react);
|
2566 |
|
2567 | var _ui = __webpack_require__(2);
|
2568 |
|
2569 | var _Modal = __webpack_require__(6);
|
2570 |
|
2571 | var _Modal2 = _interopRequireDefault(_Modal);
|
2572 |
|
2573 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
2574 |
|
2575 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
2576 |
|
2577 | 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; }
|
2578 |
|
2579 | 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; }
|
2580 |
|
2581 | var RequestPasswordResetErrorModal = function (_React$Component) {
|
2582 | _inherits(RequestPasswordResetErrorModal, _React$Component);
|
2583 |
|
2584 | function RequestPasswordResetErrorModal() {
|
2585 | _classCallCheck(this, RequestPasswordResetErrorModal);
|
2586 |
|
2587 | return _possibleConstructorReturn(this, Object.getPrototypeOf(RequestPasswordResetErrorModal).apply(this, arguments));
|
2588 | }
|
2589 |
|
2590 | _createClass(RequestPasswordResetErrorModal, [{
|
2591 | key: "render",
|
2592 | value: function render() {
|
2593 | return _react2.default.createElement(_Modal2.default, {
|
2594 | show: this.props.show,
|
2595 | containerClass: "request-password-reset-error-modal",
|
2596 | closeAction: _ui.hidePasswordResetRequestErrorModal,
|
2597 | title: "Error",
|
2598 | errorAddr: ["requestPasswordReset", "errors"] });
|
2599 | }
|
2600 | }]);
|
2601 |
|
2602 | return RequestPasswordResetErrorModal;
|
2603 | }(_react2.default.Component);
|
2604 |
|
2605 | exports.default = RequestPasswordResetErrorModal;
|
2606 |
|
2607 | },
|
2608 |
|
2609 | function(module, exports, __webpack_require__) {
|
2610 |
|
2611 | "use strict";
|
2612 |
|
2613 | Object.defineProperty(exports, "__esModule", {
|
2614 | value: true
|
2615 | });
|
2616 |
|
2617 | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
2618 |
|
2619 | var _react = __webpack_require__(1);
|
2620 |
|
2621 | var _react2 = _interopRequireDefault(_react);
|
2622 |
|
2623 | var _reactRedux = __webpack_require__(3);
|
2624 |
|
2625 | var _ui = __webpack_require__(2);
|
2626 |
|
2627 | var _Modal = __webpack_require__(6);
|
2628 |
|
2629 | var _Modal2 = _interopRequireDefault(_Modal);
|
2630 |
|
2631 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
2632 |
|
2633 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
2634 |
|
2635 | 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; }
|
2636 |
|
2637 | 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; }
|
2638 |
|
2639 | var RequestPasswordResetSuccessModal = function (_React$Component) {
|
2640 | _inherits(RequestPasswordResetSuccessModal, _React$Component);
|
2641 |
|
2642 | function RequestPasswordResetSuccessModal() {
|
2643 | _classCallCheck(this, RequestPasswordResetSuccessModal);
|
2644 |
|
2645 | return _possibleConstructorReturn(this, Object.getPrototypeOf(RequestPasswordResetSuccessModal).apply(this, arguments));
|
2646 | }
|
2647 |
|
2648 | _createClass(RequestPasswordResetSuccessModal, [{
|
2649 | key: "render",
|
2650 | value: function render() {
|
2651 | return _react2.default.createElement(
|
2652 | _Modal2.default,
|
2653 | {
|
2654 | show: this.props.show,
|
2655 | containerClass: "request-password-reset-success-modal",
|
2656 | title: "Password Reset Request Success",
|
2657 | closeAction: _ui.hidePasswordResetRequestSuccessModal },
|
2658 | _react2.default.createElement(
|
2659 | "p",
|
2660 | null,
|
2661 | this.props.auth.getIn(["ui", "requestPasswordResetSuccessMessage"])
|
2662 | )
|
2663 | );
|
2664 | }
|
2665 | }]);
|
2666 |
|
2667 | return RequestPasswordResetSuccessModal;
|
2668 | }(_react2.default.Component);
|
2669 |
|
2670 | exports.default = (0, _reactRedux.connect)(function (_ref) {
|
2671 | var auth = _ref.auth;
|
2672 | return { auth: auth };
|
2673 | })(RequestPasswordResetSuccessModal);
|
2674 |
|
2675 | },
|
2676 |
|
2677 | function(module, exports, __webpack_require__) {
|
2678 |
|
2679 | "use strict";
|
2680 |
|
2681 | Object.defineProperty(exports, "__esModule", {
|
2682 | value: true
|
2683 | });
|
2684 |
|
2685 | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
2686 |
|
2687 | var _react = __webpack_require__(1);
|
2688 |
|
2689 | var _react2 = _interopRequireDefault(_react);
|
2690 |
|
2691 | var _ui = __webpack_require__(2);
|
2692 |
|
2693 | var _Modal = __webpack_require__(6);
|
2694 |
|
2695 | var _Modal2 = _interopRequireDefault(_Modal);
|
2696 |
|
2697 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
2698 |
|
2699 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
2700 |
|
2701 | 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; }
|
2702 |
|
2703 | 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; }
|
2704 |
|
2705 | var SignOutErrorModal = function (_React$Component) {
|
2706 | _inherits(SignOutErrorModal, _React$Component);
|
2707 |
|
2708 | function SignOutErrorModal() {
|
2709 | _classCallCheck(this, SignOutErrorModal);
|
2710 |
|
2711 | return _possibleConstructorReturn(this, Object.getPrototypeOf(SignOutErrorModal).apply(this, arguments));
|
2712 | }
|
2713 |
|
2714 | _createClass(SignOutErrorModal, [{
|
2715 | key: "render",
|
2716 | value: function render() {
|
2717 | return _react2.default.createElement(
|
2718 | _Modal2.default,
|
2719 | {
|
2720 | show: this.props.show,
|
2721 | containerClass: "sign-out-error-modal",
|
2722 | closeAction: _ui.hideSignOutErrorModal,
|
2723 | title: "Sign Out Error" },
|
2724 | _react2.default.createElement(
|
2725 | "p",
|
2726 | null,
|
2727 | "The server encountered an error while trying to sign you out. Your account information has been wiped from this browser, but you may want to sign in and then sign back out again to resolve any issues."
|
2728 | )
|
2729 | );
|
2730 | }
|
2731 | }]);
|
2732 |
|
2733 | return SignOutErrorModal;
|
2734 | }(_react2.default.Component);
|
2735 |
|
2736 | exports.default = SignOutErrorModal;
|
2737 |
|
2738 | },
|
2739 |
|
2740 | function(module, exports, __webpack_require__) {
|
2741 |
|
2742 | "use strict";
|
2743 |
|
2744 | Object.defineProperty(exports, "__esModule", {
|
2745 | value: true
|
2746 | });
|
2747 |
|
2748 | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
2749 |
|
2750 | var _react = __webpack_require__(1);
|
2751 |
|
2752 | var _react2 = _interopRequireDefault(_react);
|
2753 |
|
2754 | var _ui = __webpack_require__(2);
|
2755 |
|
2756 | var _Modal = __webpack_require__(6);
|
2757 |
|
2758 | var _Modal2 = _interopRequireDefault(_Modal);
|
2759 |
|
2760 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
2761 |
|
2762 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
2763 |
|
2764 | 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; }
|
2765 |
|
2766 | 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; }
|
2767 |
|
2768 | var SignOutSuccessModal = function (_React$Component) {
|
2769 | _inherits(SignOutSuccessModal, _React$Component);
|
2770 |
|
2771 | function SignOutSuccessModal() {
|
2772 | _classCallCheck(this, SignOutSuccessModal);
|
2773 |
|
2774 | return _possibleConstructorReturn(this, Object.getPrototypeOf(SignOutSuccessModal).apply(this, arguments));
|
2775 | }
|
2776 |
|
2777 | _createClass(SignOutSuccessModal, [{
|
2778 | key: "render",
|
2779 | value: function render() {
|
2780 | return _react2.default.createElement(
|
2781 | _Modal2.default,
|
2782 | {
|
2783 | show: this.props.show,
|
2784 | containerClass: "sign-out-success-modal",
|
2785 | title: "Goodbye!",
|
2786 | closeAction: _ui.hideSignOutSuccessModal },
|
2787 | _react2.default.createElement(
|
2788 | "p",
|
2789 | null,
|
2790 | "You have been successfully signed out."
|
2791 | )
|
2792 | );
|
2793 | }
|
2794 | }]);
|
2795 |
|
2796 | return SignOutSuccessModal;
|
2797 | }(_react2.default.Component);
|
2798 |
|
2799 | exports.default = SignOutSuccessModal;
|
2800 |
|
2801 | },
|
2802 |
|
2803 | function(module, exports, __webpack_require__) {
|
2804 |
|
2805 | "use strict";
|
2806 |
|
2807 | Object.defineProperty(exports, "__esModule", {
|
2808 | value: true
|
2809 | });
|
2810 |
|
2811 | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
2812 |
|
2813 | var _react = __webpack_require__(1);
|
2814 |
|
2815 | var _react2 = _interopRequireDefault(_react);
|
2816 |
|
2817 | var _ui = __webpack_require__(2);
|
2818 |
|
2819 | var _Modal = __webpack_require__(6);
|
2820 |
|
2821 | var _Modal2 = _interopRequireDefault(_Modal);
|
2822 |
|
2823 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
2824 |
|
2825 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
2826 |
|
2827 | 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; }
|
2828 |
|
2829 | 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; }
|
2830 |
|
2831 | var UpdatePasswordErrorModal = function (_React$Component) {
|
2832 | _inherits(UpdatePasswordErrorModal, _React$Component);
|
2833 |
|
2834 | function UpdatePasswordErrorModal() {
|
2835 | _classCallCheck(this, UpdatePasswordErrorModal);
|
2836 |
|
2837 | return _possibleConstructorReturn(this, Object.getPrototypeOf(UpdatePasswordErrorModal).apply(this, arguments));
|
2838 | }
|
2839 |
|
2840 | _createClass(UpdatePasswordErrorModal, [{
|
2841 | key: "render",
|
2842 | value: function render() {
|
2843 | return _react2.default.createElement(_Modal2.default, {
|
2844 | show: this.props.show,
|
2845 | containerClass: "update-password-error-modal",
|
2846 | title: "Error",
|
2847 | closeAction: _ui.hideUpdatePasswordErrorModal,
|
2848 | errorAddr: ["updatePassword", "errors", "full_messages"] });
|
2849 | }
|
2850 | }]);
|
2851 |
|
2852 | return UpdatePasswordErrorModal;
|
2853 | }(_react2.default.Component);
|
2854 |
|
2855 | exports.default = UpdatePasswordErrorModal;
|
2856 |
|
2857 | },
|
2858 |
|
2859 | function(module, exports, __webpack_require__) {
|
2860 |
|
2861 | "use strict";
|
2862 |
|
2863 | Object.defineProperty(exports, "__esModule", {
|
2864 | value: true
|
2865 | });
|
2866 |
|
2867 | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
2868 |
|
2869 | var _react = __webpack_require__(1);
|
2870 |
|
2871 | var _react2 = _interopRequireDefault(_react);
|
2872 |
|
2873 | var _ui = __webpack_require__(2);
|
2874 |
|
2875 | var _Modal = __webpack_require__(6);
|
2876 |
|
2877 | var _Modal2 = _interopRequireDefault(_Modal);
|
2878 |
|
2879 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
2880 |
|
2881 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
2882 |
|
2883 | 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; }
|
2884 |
|
2885 | 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; }
|
2886 |
|
2887 | var UpdatePasswordSuccessModal = function (_React$Component) {
|
2888 | _inherits(UpdatePasswordSuccessModal, _React$Component);
|
2889 |
|
2890 | function UpdatePasswordSuccessModal() {
|
2891 | _classCallCheck(this, UpdatePasswordSuccessModal);
|
2892 |
|
2893 | return _possibleConstructorReturn(this, Object.getPrototypeOf(UpdatePasswordSuccessModal).apply(this, arguments));
|
2894 | }
|
2895 |
|
2896 | _createClass(UpdatePasswordSuccessModal, [{
|
2897 | key: "render",
|
2898 | value: function render() {
|
2899 | return _react2.default.createElement(
|
2900 | _Modal2.default,
|
2901 | {
|
2902 | show: this.props.show,
|
2903 | containerClass: "update-password-success-modal",
|
2904 | closeAction: _ui.hideUpdatePasswordSuccessModal,
|
2905 | title: "Success" },
|
2906 | _react2.default.createElement(
|
2907 | "p",
|
2908 | null,
|
2909 | "Your password has been successfully changed."
|
2910 | )
|
2911 | );
|
2912 | }
|
2913 | }]);
|
2914 |
|
2915 | return UpdatePasswordSuccessModal;
|
2916 | }(_react2.default.Component);
|
2917 |
|
2918 | exports.default = UpdatePasswordSuccessModal;
|
2919 |
|
2920 | }
|
2921 | ]))); |
\ | No newline at end of file |