ent-unified-logon-template 0.0.1-security → 3.14.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of ent-unified-logon-template might be problematic. Click here for more details.
- package/lib/common/components/body-wrapper.js +116 -0
- package/lib/common/components/disclosure.js +192 -0
- package/lib/common/components/exit-dialog-trigger.js +180 -0
- package/lib/common/components/footer/disclosure-list.js +119 -0
- package/lib/common/components/footer/footer.js +132 -0
- package/lib/common/components/footer/footnote-list.js +93 -0
- package/lib/common/components/footnote.js +179 -0
- package/lib/common/components/page-header/skip-to-content.js +115 -0
- package/lib/common/components/printer-wrapper.js +98 -0
- package/lib/common/components/prodqa-banner.js +89 -0
- package/lib/common/components/render-watcher.js +66 -0
- package/lib/common/components/screen-share.js +219 -0
- package/lib/common/components/session-storage-error.js +39 -0
- package/lib/common/components/wcm-display.js +416 -0
- package/lib/common/redux/disclosures/disclosures-actions.js +27 -0
- package/lib/common/redux/disclosures/disclosures-reducer.js +112 -0
- package/lib/common/redux/footnotes/footnotes-actions.js +38 -0
- package/lib/common/redux/footnotes/footnotes-reducer.js +107 -0
- package/lib/common/redux/get-create-store.js +83 -0
- package/lib/common/redux/profile.js +50 -0
- package/lib/common/redux/template-connect.js +24 -0
- package/lib/common/usaa-template-common-hoc.js +80 -0
- package/lib/common/usaa-template-common.js +178 -0
- package/lib/common/util/a11y.js +45 -0
- package/lib/common/util/check-storage-availability.js +37 -0
- package/lib/common/util/ecid.js +66 -0
- package/lib/common/util/get-profile-analytics.js +186 -0
- package/lib/common/util/get-profile-base-data.js +44 -0
- package/lib/common/util/load-utag.js +46 -0
- package/lib/common/util/main-content-id.js +9 -0
- package/lib/common/util/parse-wcm-xml.js +125 -0
- package/lib/common/util/screenshare-iframe.js +90 -0
- package/lib/common/util/string-utils.js +25 -0
- package/lib/common/util/wcm-retriever.js +44 -0
- package/lib/common/wcm-component-loaders.js +30 -0
- package/lib/index.js +28 -0
- package/lib/transactional/components/Link.js +79 -0
- package/lib/transactional/components/Logo.js +35 -0
- package/lib/transactional/components/header.js +159 -0
- package/lib/transactional/components/native-underhang.js +73 -0
- package/lib/transactional/index.js +20 -0
- package/lib/transactional/usaa-template-transactional.js +288 -0
- package/lib/transactional/utils/component-constants.js +26 -0
- package/lib/transactional/utils/getBaseURL.js +39 -0
- package/package.json +24 -4
- package/README.md +0 -5
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; 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); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
12
|
+
var _cookie = _interopRequireDefault(require("cookie"));
|
|
13
|
+
|
|
14
|
+
var _reactTransitionGroup = require("react-transition-group");
|
|
15
|
+
|
|
16
|
+
require("./prodqa-banner.css");
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
+
|
|
20
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
21
|
+
|
|
22
|
+
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); } }
|
|
23
|
+
|
|
24
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
25
|
+
|
|
26
|
+
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); }
|
|
27
|
+
|
|
28
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
29
|
+
|
|
30
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
31
|
+
|
|
32
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
33
|
+
|
|
34
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
35
|
+
|
|
36
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
37
|
+
|
|
38
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
39
|
+
|
|
40
|
+
var ProdQABanner = /*#__PURE__*/function (_React$Component) {
|
|
41
|
+
_inherits(ProdQABanner, _React$Component);
|
|
42
|
+
|
|
43
|
+
var _super = _createSuper(ProdQABanner);
|
|
44
|
+
|
|
45
|
+
function ProdQABanner() {
|
|
46
|
+
_classCallCheck(this, ProdQABanner);
|
|
47
|
+
|
|
48
|
+
return _super.apply(this, arguments);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
_createClass(ProdQABanner, [{
|
|
52
|
+
key: "isProdQACookieActive",
|
|
53
|
+
value: function isProdQACookieActive() {
|
|
54
|
+
if (typeof window !== 'undefined') {
|
|
55
|
+
var cookies = _cookie.default.parse(document.cookie);
|
|
56
|
+
|
|
57
|
+
if (cookies.tgenv && cookies.tgenv === 'qa') {
|
|
58
|
+
return true;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
return false;
|
|
63
|
+
}
|
|
64
|
+
}, {
|
|
65
|
+
key: "render",
|
|
66
|
+
value: function render() {
|
|
67
|
+
var prodQABannerEl = null;
|
|
68
|
+
|
|
69
|
+
if (process.env.USAA_PLATFORM !== 'native' && this.isProdQACookieActive()) {
|
|
70
|
+
prodQABannerEl = /*#__PURE__*/_react.default.createElement(_reactTransitionGroup.CSSTransition, {
|
|
71
|
+
className: "usaa-prodqa-banner",
|
|
72
|
+
classNames: "usaa-prodqa-banner",
|
|
73
|
+
mountOnEnter: true,
|
|
74
|
+
timeout: 400,
|
|
75
|
+
appear: true,
|
|
76
|
+
in: true
|
|
77
|
+
}, /*#__PURE__*/_react.default.createElement("div", null, "Quality Assurance Pilot"));
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
return prodQABannerEl;
|
|
81
|
+
}
|
|
82
|
+
}]);
|
|
83
|
+
|
|
84
|
+
return ProdQABanner;
|
|
85
|
+
}(_react.default.Component);
|
|
86
|
+
|
|
87
|
+
var _default = ProdQABanner;
|
|
88
|
+
exports.default = _default;
|
|
89
|
+
//# sourceMappingURL=prodqa-banner.js.map
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; 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); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.withRenderWatcher = void 0;
|
|
9
|
+
|
|
10
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
11
|
+
|
|
12
|
+
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); } }
|
|
13
|
+
|
|
14
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
15
|
+
|
|
16
|
+
function _get(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(receiver); } return desc.value; }; } return _get(target, property, receiver || target); }
|
|
17
|
+
|
|
18
|
+
function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }
|
|
19
|
+
|
|
20
|
+
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); }
|
|
21
|
+
|
|
22
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
23
|
+
|
|
24
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
25
|
+
|
|
26
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
27
|
+
|
|
28
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
29
|
+
|
|
30
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
31
|
+
|
|
32
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
33
|
+
|
|
34
|
+
var withRenderWatcher = function withRenderWatcher(WrappedComponent, onMount) {
|
|
35
|
+
return /*#__PURE__*/function (_WrappedComponent) {
|
|
36
|
+
_inherits(RenderWatcher, _WrappedComponent);
|
|
37
|
+
|
|
38
|
+
var _super = _createSuper(RenderWatcher);
|
|
39
|
+
|
|
40
|
+
function RenderWatcher() {
|
|
41
|
+
_classCallCheck(this, RenderWatcher);
|
|
42
|
+
|
|
43
|
+
return _super.apply(this, arguments);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
_createClass(RenderWatcher, [{
|
|
47
|
+
key: "render",
|
|
48
|
+
value: function render() {
|
|
49
|
+
// we need to look at something to see if the component is actually loaded.
|
|
50
|
+
// Looking for render() === null is a better convention than checking this.state.loaded.
|
|
51
|
+
var output = _get(_getPrototypeOf(RenderWatcher.prototype), "render", this).call(this);
|
|
52
|
+
|
|
53
|
+
if (output) {
|
|
54
|
+
onMount();
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
return output;
|
|
58
|
+
}
|
|
59
|
+
}]);
|
|
60
|
+
|
|
61
|
+
return RenderWatcher;
|
|
62
|
+
}(WrappedComponent);
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
exports.withRenderWatcher = withRenderWatcher;
|
|
66
|
+
//# sourceMappingURL=render-watcher.js.map
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; 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); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
12
|
+
var _usaaLogger = _interopRequireDefault(require("usaa-logger"));
|
|
13
|
+
|
|
14
|
+
var _entScreenshareWrapper = _interopRequireDefault(require("ent-screenshare-wrapper"));
|
|
15
|
+
|
|
16
|
+
var _screenshareIframe = require("../util/screenshare-iframe");
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
+
|
|
20
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
21
|
+
|
|
22
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
23
|
+
|
|
24
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
25
|
+
|
|
26
|
+
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); } }
|
|
27
|
+
|
|
28
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
29
|
+
|
|
30
|
+
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); }
|
|
31
|
+
|
|
32
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
33
|
+
|
|
34
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
35
|
+
|
|
36
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
37
|
+
|
|
38
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
39
|
+
|
|
40
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
41
|
+
|
|
42
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
43
|
+
|
|
44
|
+
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; }
|
|
45
|
+
|
|
46
|
+
var logger = new _usaaLogger.default();
|
|
47
|
+
var shortcutUsed = false;
|
|
48
|
+
|
|
49
|
+
var ScreenShare = /*#__PURE__*/function (_React$Component) {
|
|
50
|
+
_inherits(ScreenShare, _React$Component);
|
|
51
|
+
|
|
52
|
+
var _super = _createSuper(ScreenShare);
|
|
53
|
+
|
|
54
|
+
function ScreenShare(props) {
|
|
55
|
+
var _this;
|
|
56
|
+
|
|
57
|
+
_classCallCheck(this, ScreenShare);
|
|
58
|
+
|
|
59
|
+
_this = _super.call(this);
|
|
60
|
+
|
|
61
|
+
_defineProperty(_assertThisInitialized(_this), "shortcutStartScreenShare", function (e) {
|
|
62
|
+
if (e) {
|
|
63
|
+
var kCode = e.keyCode;
|
|
64
|
+
var altDown = e.altKey;
|
|
65
|
+
/* Check key down combination: Alt + 3 (Windows) / Opt + 3 (Mac) */
|
|
66
|
+
|
|
67
|
+
if (altDown && kCode === 51) {
|
|
68
|
+
if (localStorage && localStorage.getItem('screenShareActive') === 'true' || _this.state.screenShareActive) {
|
|
69
|
+
logger.info('already have screen share session.');
|
|
70
|
+
} else {
|
|
71
|
+
logger.info('starting screen share ...');
|
|
72
|
+
shortcutUsed = true;
|
|
73
|
+
window.USAA.ent.screenShare.memberUtil.openStartScreenShareModalPanel();
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
_this.state = {
|
|
80
|
+
screenShareActive: false,
|
|
81
|
+
//state for navigation entry
|
|
82
|
+
launchScreenShare: false,
|
|
83
|
+
//state for help/eva entry
|
|
84
|
+
shortcutState: false //state for Shortcut used
|
|
85
|
+
|
|
86
|
+
};
|
|
87
|
+
return _this;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
_createClass(ScreenShare, [{
|
|
91
|
+
key: "componentDidMount",
|
|
92
|
+
value: function componentDidMount() {
|
|
93
|
+
/*Load the screenshare component and trigger state change on active status*/
|
|
94
|
+
this.initializeScreenShare();
|
|
95
|
+
window.addEventListener('keydown', this.shortcutStartScreenShare); // To check if it is a routed Application
|
|
96
|
+
|
|
97
|
+
if (typeof window !== 'undefined' && window.location && window.USAA && window.USAA.ent && window.USAA.ent.digitalData && window.USAA.ent.routeData) {
|
|
98
|
+
this.routeData = window.USAA.ent.routeData;
|
|
99
|
+
this.routeName = ''; // store baseRoute appData
|
|
100
|
+
|
|
101
|
+
this.routeData[''] = _objectSpread({}, window.USAA.ent.digitalData);
|
|
102
|
+
} else {
|
|
103
|
+
this.routeData = false; // don't apply screen share rules on page navigation
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}, {
|
|
107
|
+
key: "componentDidUpdate",
|
|
108
|
+
value: function componentDidUpdate() {
|
|
109
|
+
if (this.routeData) {
|
|
110
|
+
var newRoute = window.location.pathname.slice(window.USAA.ent.baseRoute.length); // Check if route changed and screen share active
|
|
111
|
+
|
|
112
|
+
if (newRoute !== this.routeName) {
|
|
113
|
+
if (localStorage && localStorage.getItem('screenShareActive') === 'true') {
|
|
114
|
+
if (window.USAA && window.USAA.ent && window.USAA.ent.screenShare && window.USAA.ent.screenShare.wrapper && window.USAA.ent.screenShare.wrapper.callRulesWhenRouteChanges) {
|
|
115
|
+
window.USAA.ent.screenShare.wrapper.callRulesWhenRouteChanges();
|
|
116
|
+
logger.info('Called screen share rules api when route changed');
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
this.routeName = newRoute;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}, {
|
|
125
|
+
key: "componentWillUnmount",
|
|
126
|
+
value: function componentWillUnmount() {
|
|
127
|
+
window.removeEventListener('keydown', this.shortcutStartScreenShare);
|
|
128
|
+
}
|
|
129
|
+
}, {
|
|
130
|
+
key: "initializeScreenShare",
|
|
131
|
+
value: function initializeScreenShare() {
|
|
132
|
+
var _this2 = this;
|
|
133
|
+
|
|
134
|
+
/*check if there is any ongoing screenshare sessions on page load*/
|
|
135
|
+
|
|
136
|
+
/*navigation entry point state change*/
|
|
137
|
+
if (localStorage) {
|
|
138
|
+
if (window.frameElement) {
|
|
139
|
+
//This check is to include supporting JS files for IFrame pages
|
|
140
|
+
(0, _screenshareIframe.checkIFrameLoaded)();
|
|
141
|
+
} else if (localStorage.getItem('screenShareActive') === 'true') {
|
|
142
|
+
this.setState({
|
|
143
|
+
screenShareActive: true
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
} else {
|
|
147
|
+
logger.error('ScreenShare::No Support for LocalStorage');
|
|
148
|
+
}
|
|
149
|
+
/* window method initiation for screenshare */
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
if (!window.USAA) {
|
|
153
|
+
window.USAA = {};
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
if (!window.USAA.ent) {
|
|
157
|
+
window.USAA.ent = {};
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
if (!window.USAA.ent.screenShare) {
|
|
161
|
+
window.USAA.ent.screenShare = {};
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
if (!window.USAA.ent.screenShare.memberUtil) {
|
|
165
|
+
window.USAA.ent.screenShare.memberUtil = {};
|
|
166
|
+
}
|
|
167
|
+
/* initiateScreenShareResources function is empty since the EVA-Helppopup is both wicket/ps and newweb facing
|
|
168
|
+
* In wicket/ps apps while clicking sharemyscreen link the helppopup calls the two methods initiateScreenShareResources and openStartScreenShareModalPanel
|
|
169
|
+
* Since the same EVA is used on newweb so it calls those same methods in newweb page ,
|
|
170
|
+
* to avoid Reference error function not defined ,added the empty funtion*/
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
window.USAA.ent.screenShare.memberUtil.initiateScreenShareResources = function () {// eslint-disable-line no-empty-function
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
window.USAA.ent.screenShare.memberUtil.openStartScreenShareModalPanel = function () {
|
|
177
|
+
if (_this2.state.launchScreenShare || _this2.state.shortcutState) {
|
|
178
|
+
if (shortcutUsed) {
|
|
179
|
+
//method defined in ent-screenshare-component
|
|
180
|
+
window.USAA.ent.screenShare.wrapper.launchStartModalPanel(true);
|
|
181
|
+
shortcutUsed = false;
|
|
182
|
+
} else {
|
|
183
|
+
window.USAA.ent.screenShare.wrapper.launchStartModalPanel(false);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
_this2.setState({
|
|
188
|
+
shortcutState: shortcutUsed,
|
|
189
|
+
launchScreenShare: !shortcutUsed
|
|
190
|
+
});
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
}, {
|
|
194
|
+
key: "render",
|
|
195
|
+
value: function render() {
|
|
196
|
+
if (this.state.screenShareActive) {
|
|
197
|
+
return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_entScreenshareWrapper.default, {
|
|
198
|
+
entry: "nav"
|
|
199
|
+
}));
|
|
200
|
+
} else if (this.state.launchScreenShare) {
|
|
201
|
+
return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_entScreenshareWrapper.default, {
|
|
202
|
+
entry: "help"
|
|
203
|
+
}));
|
|
204
|
+
} else if (this.state.shortcutState) {
|
|
205
|
+
return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_entScreenshareWrapper.default, {
|
|
206
|
+
entry: "shortcut"
|
|
207
|
+
}));
|
|
208
|
+
} else {
|
|
209
|
+
return null;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}]);
|
|
213
|
+
|
|
214
|
+
return ScreenShare;
|
|
215
|
+
}(_react.default.Component);
|
|
216
|
+
|
|
217
|
+
var _default = ScreenShare;
|
|
218
|
+
exports.default = _default;
|
|
219
|
+
//# sourceMappingURL=screen-share.js.map
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = SessionStorageErrorPage;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
+
|
|
12
|
+
require("./session-storage-error.css");
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
|
|
16
|
+
function SessionStorageErrorPage(props) {
|
|
17
|
+
var HeaderElement = props.headerElement;
|
|
18
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
19
|
+
className: "usaa-errorPage"
|
|
20
|
+
}, /*#__PURE__*/_react.default.createElement("svg", {
|
|
21
|
+
className: "usaa-errorPage-icon",
|
|
22
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
23
|
+
viewBox: "0 -30 90 90"
|
|
24
|
+
}, /*#__PURE__*/_react.default.createElement("path", {
|
|
25
|
+
fill: "#0e2e49",
|
|
26
|
+
d: "M0-21v15h90v-15H0zm7.5 10.5c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3-1.3 3-3 3zm10.5 0c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3-1.3 3-3 3zm10.5 0c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3-1.3 3-3 3zM0-3v54h90V-3H0zm56.7 34.7l-4.2 4.2-7.5-7.4-7.4 7.4-4.2-4.2 7.4-7.4-7.4-7.4 4.2-4.2L45 20l7.4-7.4 4.2 4.2-7.4 7.4 7.5 7.5z"
|
|
27
|
+
})), /*#__PURE__*/_react.default.createElement(HeaderElement, {
|
|
28
|
+
className: "usaa-errorPage-title font-500"
|
|
29
|
+
}, "Error"), /*#__PURE__*/_react.default.createElement("p", {
|
|
30
|
+
className: "usaa-errorPage-description"
|
|
31
|
+
}, "Your browser is disabling some of USAA\u2019s features."), /*#__PURE__*/_react.default.createElement("p", {
|
|
32
|
+
className: "usaa-errorPage-description"
|
|
33
|
+
}, "Turn off private browsing mode to continue."));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
SessionStorageErrorPage.propTypes = {
|
|
37
|
+
headerElement: _propTypes.default.oneOf(['h1', 'h2'])
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=session-storage-error.js.map
|