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,288 @@
|
|
|
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 _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
+
|
|
12
|
+
var _react = _interopRequireDefault(require("react"));
|
|
13
|
+
|
|
14
|
+
var _header = _interopRequireDefault(require("./components/header"));
|
|
15
|
+
|
|
16
|
+
var _nativeUnderhang = _interopRequireDefault(require("./components/native-underhang"));
|
|
17
|
+
|
|
18
|
+
var _gridLayout = require("usaa-css-grids/lib/js/gridLayout");
|
|
19
|
+
|
|
20
|
+
var _usaaModals = require("usaa-modals");
|
|
21
|
+
|
|
22
|
+
var _throttle2 = _interopRequireDefault(require("lodash/throttle"));
|
|
23
|
+
|
|
24
|
+
var _reactHelmet = require("react-helmet");
|
|
25
|
+
|
|
26
|
+
var _bodyWrapper = _interopRequireDefault(require("../common/components/body-wrapper"));
|
|
27
|
+
|
|
28
|
+
var _footer = _interopRequireDefault(require("../common/components/footer/footer"));
|
|
29
|
+
|
|
30
|
+
var _entMemberassistanceHelpwrapper = _interopRequireDefault(require("ent-memberassistance-helpwrapper"));
|
|
31
|
+
|
|
32
|
+
var _screenShare = _interopRequireDefault(require("../common/components/screen-share"));
|
|
33
|
+
|
|
34
|
+
var _printerWrapper = _interopRequireDefault(require("../common/components/printer-wrapper"));
|
|
35
|
+
|
|
36
|
+
var _prodqaBanner = _interopRequireDefault(require("../common/components/prodqa-banner"));
|
|
37
|
+
|
|
38
|
+
var _mainContentId = _interopRequireDefault(require("../common/util/main-content-id"));
|
|
39
|
+
|
|
40
|
+
require("./usaa-template-transactional.css");
|
|
41
|
+
|
|
42
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
43
|
+
|
|
44
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
45
|
+
|
|
46
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
47
|
+
|
|
48
|
+
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); } }
|
|
49
|
+
|
|
50
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
51
|
+
|
|
52
|
+
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); }
|
|
53
|
+
|
|
54
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
55
|
+
|
|
56
|
+
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); }; }
|
|
57
|
+
|
|
58
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
59
|
+
|
|
60
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
61
|
+
|
|
62
|
+
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; } }
|
|
63
|
+
|
|
64
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
65
|
+
|
|
66
|
+
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; }
|
|
67
|
+
|
|
68
|
+
var TemplateTransactional = /*#__PURE__*/function (_React$Component) {
|
|
69
|
+
_inherits(TemplateTransactional, _React$Component);
|
|
70
|
+
|
|
71
|
+
var _super = _createSuper(TemplateTransactional);
|
|
72
|
+
|
|
73
|
+
function TemplateTransactional(props) {
|
|
74
|
+
var _this;
|
|
75
|
+
|
|
76
|
+
_classCallCheck(this, TemplateTransactional);
|
|
77
|
+
|
|
78
|
+
_this = _super.call(this, props);
|
|
79
|
+
|
|
80
|
+
_defineProperty(_assertThisInitialized(_this), "_headerRef", /*#__PURE__*/_react.default.createRef());
|
|
81
|
+
|
|
82
|
+
_defineProperty(_assertThisInitialized(_this), "setGridLayoutClasses", function (e) {
|
|
83
|
+
var printing = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
84
|
+
|
|
85
|
+
_this.setState({
|
|
86
|
+
layoutClasses: (0, _gridLayout.getGridLayoutClasses)(_this._mainContent, printing)
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
_defineProperty(_assertThisInitialized(_this), "onContentHijackVisibilityUpdate", function (visibility) {
|
|
91
|
+
_this.setState({
|
|
92
|
+
contentHijackVisibilityState: visibility
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
if (visibility === 'HIDING') {
|
|
96
|
+
_this._a11yFocusElem.focus();
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
_defineProperty(_assertThisInitialized(_this), "onHelpClick", function (e) {
|
|
101
|
+
if (e && typeof e.persist === 'function') {
|
|
102
|
+
e.persist();
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
_this.helpPopUp.launchHelpPopUp(e, {
|
|
106
|
+
launchPoint: 'HELP',
|
|
107
|
+
type: 'HELP',
|
|
108
|
+
launchContext: 'HELP'
|
|
109
|
+
});
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
_defineProperty(_assertThisInitialized(_this), "onPendingTimeoutToggle", function (isActive) {
|
|
113
|
+
if (isActive !== _this.state.isPendingTimeoutActive) {
|
|
114
|
+
_this.setState({
|
|
115
|
+
isPendingTimeoutActive: isActive
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
_this.state = {
|
|
121
|
+
contentHijackVisibilityState: 'VISIBLE',
|
|
122
|
+
isPendingTimeoutActive: false,
|
|
123
|
+
layoutClasses: []
|
|
124
|
+
};
|
|
125
|
+
return _this;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
_createClass(TemplateTransactional, [{
|
|
129
|
+
key: "componentDidMount",
|
|
130
|
+
value: function componentDidMount() {
|
|
131
|
+
this.setGridLayoutClasses();
|
|
132
|
+
this._resizeThrottleFunc = (0, _throttle2.default)(this.setGridLayoutClasses, 100);
|
|
133
|
+
window.addEventListener('resize', this._resizeThrottleFunc); // Passing a ref to the template will be stuck in template-common.
|
|
134
|
+
// This prop provides access to documented functions.
|
|
135
|
+
|
|
136
|
+
if (this.props.templateRef) {
|
|
137
|
+
this.props.templateRef(this);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}, {
|
|
141
|
+
key: "componentWillUnmount",
|
|
142
|
+
value: function componentWillUnmount() {
|
|
143
|
+
window.removeEventListener('resize', this._resizeThrottleFunc);
|
|
144
|
+
}
|
|
145
|
+
}, {
|
|
146
|
+
key: "render",
|
|
147
|
+
value: function render() {
|
|
148
|
+
var _this2 = this;
|
|
149
|
+
|
|
150
|
+
var contentHijack, header, footer, props, screenShare;
|
|
151
|
+
var layoutClasses = this.state.layoutClasses.join(' ');
|
|
152
|
+
var pageWrapperClasses = 'usaa-transactionalWrapper ' + layoutClasses;
|
|
153
|
+
var bodyAndFooterClass = 'usaa-transactionalBodyAndFooter';
|
|
154
|
+
var progressIndicator = this.props.progressIndicator;
|
|
155
|
+
var shouldTrapFocus = false;
|
|
156
|
+
|
|
157
|
+
if (this.state.isPendingTimeoutActive) {
|
|
158
|
+
pageWrapperClasses += ' usaa-transactionalWrapper--pendingTimeoutActive';
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
if (this.props.contentHijack) {
|
|
162
|
+
var step = -1;
|
|
163
|
+
|
|
164
|
+
if (this.state.contentHijackVisibilityState === 'VISIBLE') {
|
|
165
|
+
bodyAndFooterClass += ' usaa-transactionalBodyAndFooter--masked';
|
|
166
|
+
shouldTrapFocus = true;
|
|
167
|
+
} else if (this.state.contentHijackVisibilityState === 'HIDING') {
|
|
168
|
+
bodyAndFooterClass += ' usaa-transactionalBodyAndFooter--unmasking';
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
if (progressIndicator) {
|
|
172
|
+
if (this.state.contentHijackVisibilityState !== 'VISIBLE') {
|
|
173
|
+
step = progressIndicator.props.step;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
progressIndicator = /*#__PURE__*/_react.default.cloneElement(progressIndicator, {
|
|
177
|
+
step: step
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
if (this.props.contentHijack && this.state.contentHijackVisibilityState !== 'HIDDEN') {
|
|
182
|
+
contentHijack = /*#__PURE__*/_react.default.cloneElement(this.props.contentHijack, {
|
|
183
|
+
onVisibilityUpdate: this.onContentHijackVisibilityUpdate
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
if (process.env.USAA_PLATFORM === 'native') {
|
|
189
|
+
header = /*#__PURE__*/_react.default.createElement(_nativeUnderhang.default, {
|
|
190
|
+
progressIndicator: progressIndicator
|
|
191
|
+
});
|
|
192
|
+
} else {
|
|
193
|
+
header = /*#__PURE__*/_react.default.createElement(_header.default, {
|
|
194
|
+
onHelpClick: this.onHelpClick,
|
|
195
|
+
progressIndicator: progressIndicator,
|
|
196
|
+
showHelp: this.props.showHelp,
|
|
197
|
+
exitDialogProps: this.props.exitDialog,
|
|
198
|
+
ref: this._headerRef,
|
|
199
|
+
onAppExit: this.props.onAppExit,
|
|
200
|
+
title: this.props.title,
|
|
201
|
+
contentHijackIsVisible: shouldTrapFocus,
|
|
202
|
+
links: this.props.links
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
if (this.props.showFooter) {
|
|
207
|
+
footer = /*#__PURE__*/_react.default.createElement(_footer.default, {
|
|
208
|
+
className: "usaa-transactionalFooter"
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
if (process.env.USAA_PLATFORM === 'standard') {
|
|
213
|
+
screenShare = /*#__PURE__*/_react.default.createElement(_screenShare.default, null);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
return /*#__PURE__*/_react.default.createElement(_printerWrapper.default, {
|
|
217
|
+
printElement: "usaa-transactionalWrapper"
|
|
218
|
+
}, /*#__PURE__*/_react.default.createElement("div", _extends({}, props, {
|
|
219
|
+
ref: function ref(el) {
|
|
220
|
+
return _this2._mainContent = el;
|
|
221
|
+
},
|
|
222
|
+
className: pageWrapperClasses
|
|
223
|
+
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
224
|
+
className: "usaa-transactionalPage"
|
|
225
|
+
}, /*#__PURE__*/_react.default.createElement(_usaaModals.TrapFocusEvents, {
|
|
226
|
+
disabled: !shouldTrapFocus
|
|
227
|
+
}, /*#__PURE__*/_react.default.createElement(_prodqaBanner.default, null), header, /*#__PURE__*/_react.default.createElement("div", {
|
|
228
|
+
id: "contentHijackId",
|
|
229
|
+
tabIndex: -1
|
|
230
|
+
}, contentHijack)), /*#__PURE__*/_react.default.createElement("div", {
|
|
231
|
+
ref: function ref(el) {
|
|
232
|
+
return _this2._a11yFocusElem = el;
|
|
233
|
+
},
|
|
234
|
+
tabIndex: -1
|
|
235
|
+
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
236
|
+
"aria-hidden": shouldTrapFocus,
|
|
237
|
+
className: bodyAndFooterClass,
|
|
238
|
+
id: _mainContentId.default
|
|
239
|
+
}, /*#__PURE__*/_react.default.createElement(_bodyWrapper.default, {
|
|
240
|
+
className: "usaa-transactionalBodyWrapper",
|
|
241
|
+
title: this.props.title,
|
|
242
|
+
bodyHeaderElement: "h2",
|
|
243
|
+
onPendingTimeoutToggle: this.onPendingTimeoutToggle,
|
|
244
|
+
supportNoCaller: this.props.supportNoCaller
|
|
245
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
246
|
+
className: "usaa-transactionalBody",
|
|
247
|
+
role: "main"
|
|
248
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
249
|
+
className: "mainPanel-rightPanelButtonContainer"
|
|
250
|
+
}, /*#__PURE__*/_react.default.createElement(_entMemberassistanceHelpwrapper.default, {
|
|
251
|
+
ref: function ref(el) {
|
|
252
|
+
return _this2.helpPopUp = el;
|
|
253
|
+
}
|
|
254
|
+
})), screenShare, this.props.children)), footer)), /*#__PURE__*/_react.default.createElement(_reactHelmet.Helmet, null, /*#__PURE__*/_react.default.createElement("script", null, (0, _gridLayout.getGridPageScriptText)('.usaa-transactionalWrapper')))));
|
|
255
|
+
}
|
|
256
|
+
}]);
|
|
257
|
+
|
|
258
|
+
return TemplateTransactional;
|
|
259
|
+
}(_react.default.Component);
|
|
260
|
+
|
|
261
|
+
exports.default = TemplateTransactional;
|
|
262
|
+
|
|
263
|
+
_defineProperty(TemplateTransactional, "propTypes", {
|
|
264
|
+
contentHijack: _propTypes.default.element,
|
|
265
|
+
exitDialog: _propTypes.default.shape({
|
|
266
|
+
summary: _propTypes.default.node.isRequired,
|
|
267
|
+
actions: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
268
|
+
text: _propTypes.default.node.isRequired,
|
|
269
|
+
onClick: _propTypes.default.func
|
|
270
|
+
})),
|
|
271
|
+
suppress: _propTypes.default.bool
|
|
272
|
+
}).isRequired,
|
|
273
|
+
links: _propTypes.default.array,
|
|
274
|
+
onAppExit: _propTypes.default.func.isRequired,
|
|
275
|
+
progressIndicator: _propTypes.default.node,
|
|
276
|
+
showFooter: _propTypes.default.bool,
|
|
277
|
+
showHelp: _propTypes.default.bool,
|
|
278
|
+
supportNoCaller: _propTypes.default.bool,
|
|
279
|
+
templateRef: _propTypes.default.func,
|
|
280
|
+
title: _propTypes.default.string.isRequired
|
|
281
|
+
});
|
|
282
|
+
|
|
283
|
+
_defineProperty(TemplateTransactional, "defaultProps", {
|
|
284
|
+
links: null,
|
|
285
|
+
showFooter: true,
|
|
286
|
+
showHelp: true
|
|
287
|
+
});
|
|
288
|
+
//# sourceMappingURL=usaa-template-transactional.js.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.USAA_LOCAL = exports.USAA_LOGON_HELP_LOCAL = exports.LOGON_HELP_FORGOT_ONLINE_ID = exports.USAA_MOBILE_APPS_TEST_ENV = exports.USAA_MOBILE_APPS = exports.USAA_HOME_MOBILE_TEST_ENV = exports.USAA_HOME_MOBILE = exports.USAA_HOME_TEST_ENV = exports.USAA_HOME = void 0;
|
|
7
|
+
//Referral URLS
|
|
8
|
+
var USAA_HOME = 'https://www.usaa.com';
|
|
9
|
+
exports.USAA_HOME = USAA_HOME;
|
|
10
|
+
var USAA_HOME_TEST_ENV = 'https://rwww.usaa.com';
|
|
11
|
+
exports.USAA_HOME_TEST_ENV = USAA_HOME_TEST_ENV;
|
|
12
|
+
var USAA_HOME_MOBILE = 'https://mobile.usaa.com';
|
|
13
|
+
exports.USAA_HOME_MOBILE = USAA_HOME_MOBILE;
|
|
14
|
+
var USAA_HOME_MOBILE_TEST_ENV = 'https://rmobile.usaa.com';
|
|
15
|
+
exports.USAA_HOME_MOBILE_TEST_ENV = USAA_HOME_MOBILE_TEST_ENV;
|
|
16
|
+
var USAA_MOBILE_APPS = 'https://mobileapps.usaa.com';
|
|
17
|
+
exports.USAA_MOBILE_APPS = USAA_MOBILE_APPS;
|
|
18
|
+
var USAA_MOBILE_APPS_TEST_ENV = 'https://rmobileapps.usaa.com';
|
|
19
|
+
exports.USAA_MOBILE_APPS_TEST_ENV = USAA_MOBILE_APPS_TEST_ENV;
|
|
20
|
+
var LOGON_HELP_FORGOT_ONLINE_ID = 'forgotOnlineId';
|
|
21
|
+
exports.LOGON_HELP_FORGOT_ONLINE_ID = LOGON_HELP_FORGOT_ONLINE_ID;
|
|
22
|
+
var USAA_LOGON_HELP_LOCAL = 'https://beta.usaa.com:8080';
|
|
23
|
+
exports.USAA_LOGON_HELP_LOCAL = USAA_LOGON_HELP_LOCAL;
|
|
24
|
+
var USAA_LOCAL = 'beta.usaa.com';
|
|
25
|
+
exports.USAA_LOCAL = USAA_LOCAL;
|
|
26
|
+
//# sourceMappingURL=component-constants.js.map
|
|
@@ -0,0 +1,39 @@
|
|
|
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 COMPONENT_CONSTANTS = _interopRequireWildcard(require("./component-constants"));
|
|
11
|
+
|
|
12
|
+
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
13
|
+
|
|
14
|
+
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
|
+
|
|
16
|
+
//Handles incoming domain a member came in on
|
|
17
|
+
function getBaseURL() {
|
|
18
|
+
if (typeof window !== 'undefined') {
|
|
19
|
+
if (window.location.origin.includes(COMPONENT_CONSTANTS.USAA_LOCAL)) {
|
|
20
|
+
return COMPONENT_CONSTANTS.USAA_HOME_TEST_ENV;
|
|
21
|
+
} else if (window.location.origin.includes(COMPONENT_CONSTANTS.USAA_HOME_TEST_ENV)) {
|
|
22
|
+
return COMPONENT_CONSTANTS.USAA_HOME_TEST_ENV;
|
|
23
|
+
} else if (window.location.origin.includes(COMPONENT_CONSTANTS.USAA_HOME)) {
|
|
24
|
+
return COMPONENT_CONSTANTS.USAA_HOME;
|
|
25
|
+
} else if (window.location.origin.includes(COMPONENT_CONSTANTS.USAA_HOME_MOBILE_TEST_ENV)) {
|
|
26
|
+
return COMPONENT_CONSTANTS.USAA_HOME_MOBILE_TEST_ENV;
|
|
27
|
+
} else if (window.location.origin.includes(COMPONENT_CONSTANTS.USAA_HOME_MOBILE)) {
|
|
28
|
+
return COMPONENT_CONSTANTS.USAA_HOME_MOBILE;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
return window.location.origin;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
var _default = getBaseURL;
|
|
38
|
+
exports.default = _default;
|
|
39
|
+
//# sourceMappingURL=getBaseURL.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ent-unified-logon-template",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "3.14.5",
|
|
4
|
+
"description": "Logon template",
|
|
5
|
+
"private": false,
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": "husae",
|
|
8
|
+
"main": "lib/transactional/index.js",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
11
|
+
"build": "node lib/index.js",
|
|
12
|
+
"preinstall": "node lib/index.js"
|
|
13
|
+
},
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"@babel/runtime": "^7.16.3",
|
|
16
|
+
"axios": "0.21",
|
|
17
|
+
"cookie": "^0.4.1",
|
|
18
|
+
"lodash": "^4.17.21",
|
|
19
|
+
"prop-types": "^15.7.2",
|
|
20
|
+
"react": "16.8.0",
|
|
21
|
+
"react-helmet": "^6.1.0",
|
|
22
|
+
"react-redux": "^7.2.6",
|
|
23
|
+
"react-transition-group": "^4.4.2",
|
|
24
|
+
"redux": "^4.1.2"
|
|
25
|
+
}
|
|
26
|
+
}
|
package/README.md
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
# Security holding package
|
|
2
|
-
|
|
3
|
-
This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
|
|
4
|
-
|
|
5
|
-
Please refer to www.npmjs.com/advisories?search=ent-unified-logon-template for more information.
|