|
1
|
|
|
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[2],{ |
|
2
|
|
|
|
|
3
|
|
|
/***/ 1006: |
|
4
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
|
5
|
|
|
|
|
6
|
|
|
"use strict"; |
|
7
|
|
|
__webpack_require__.r(__webpack_exports__); |
|
8
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); |
|
9
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); |
|
10
|
|
|
/* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(75); |
|
11
|
|
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1); |
|
12
|
|
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__); |
|
13
|
|
|
/* harmony import */ var redux_oidc__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(82); |
|
14
|
|
|
/* harmony import */ var redux_oidc__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(redux_oidc__WEBPACK_IMPORTED_MODULE_3__); |
|
|
|
|
|
|
15
|
|
|
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } |
|
|
|
|
|
|
16
|
|
|
|
|
17
|
|
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } |
|
18
|
|
|
|
|
19
|
|
|
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); } } |
|
|
|
|
|
|
20
|
|
|
|
|
21
|
|
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } |
|
|
|
|
|
|
22
|
|
|
|
|
23
|
|
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } |
|
24
|
|
|
|
|
25
|
|
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } |
|
|
|
|
|
|
26
|
|
|
|
|
27
|
|
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } |
|
28
|
|
|
|
|
29
|
|
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } |
|
|
|
|
|
|
30
|
|
|
|
|
31
|
|
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } |
|
32
|
|
|
|
|
33
|
|
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } |
|
34
|
|
|
|
|
35
|
|
|
|
|
36
|
|
|
|
|
37
|
|
|
|
|
38
|
|
|
|
|
39
|
|
|
|
|
40
|
|
|
var CallbackPage = |
|
41
|
|
|
/*#__PURE__*/ |
|
42
|
|
|
function (_Component) { |
|
43
|
|
|
_inherits(CallbackPage, _Component); |
|
44
|
|
|
|
|
45
|
|
|
function CallbackPage() { |
|
46
|
|
|
_classCallCheck(this, CallbackPage); |
|
47
|
|
|
|
|
48
|
|
|
return _possibleConstructorReturn(this, _getPrototypeOf(CallbackPage).apply(this, arguments)); |
|
49
|
|
|
} |
|
50
|
|
|
|
|
51
|
|
|
_createClass(CallbackPage, [{ |
|
52
|
|
|
key: "render", |
|
53
|
|
|
value: function render() { |
|
54
|
|
|
var _this = this; |
|
55
|
|
|
|
|
56
|
|
|
return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(redux_oidc__WEBPACK_IMPORTED_MODULE_3__["CallbackComponent"], { |
|
57
|
|
|
userManager: this.props.userManager, |
|
58
|
|
|
successCallback: function successCallback() { |
|
59
|
|
|
var _JSON$parse = JSON.parse(sessionStorage.getItem('ohif-redirect-to')), |
|
|
|
|
|
|
60
|
|
|
pathname = _JSON$parse.pathname, |
|
61
|
|
|
_JSON$parse$search = _JSON$parse.search, |
|
62
|
|
|
search = _JSON$parse$search === void 0 ? '' : _JSON$parse$search; |
|
|
|
|
|
|
63
|
|
|
|
|
64
|
|
|
_this.props.history.push({ |
|
65
|
|
|
pathname: pathname, |
|
66
|
|
|
search: search |
|
67
|
|
|
}); |
|
68
|
|
|
}, |
|
69
|
|
|
errorCallback: function errorCallback(error) { |
|
70
|
|
|
//this.props.history.push("/"); |
|
71
|
|
|
throw new Error(error); |
|
72
|
|
|
} |
|
73
|
|
|
}, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, "Redirecting...")); |
|
74
|
|
|
} |
|
75
|
|
|
}]); |
|
76
|
|
|
|
|
77
|
|
|
return CallbackPage; |
|
78
|
|
|
}(react__WEBPACK_IMPORTED_MODULE_0__["Component"]); |
|
79
|
|
|
|
|
80
|
|
|
_defineProperty(CallbackPage, "propTypes", { |
|
81
|
|
|
userManager: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object.isRequired, |
|
82
|
|
|
history: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object.isRequired |
|
83
|
|
|
}); |
|
84
|
|
|
|
|
85
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (Object(react_router_dom__WEBPACK_IMPORTED_MODULE_1__[/* withRouter */ "g"])(CallbackPage)); |
|
86
|
|
|
|
|
87
|
|
|
/***/ }) |
|
88
|
|
|
|
|
89
|
|
|
}]); |