kc-sdk 6.4.7971 → 6.8.10819

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.
Files changed (38) hide show
  1. package/package.json +5 -2
  2. package/src/3rdpartylicenses.txt +323 -0
  3. package/src/app.component.css.map +7 -0
  4. package/src/assets/images/optum_favicon.png +0 -0
  5. package/src/assets/sdk/kc-sdk-config.js +8 -0
  6. package/src/assets/sdk/kc-sdk-config.json +8 -0
  7. package/src/{kc-sdk-support.js → assets/sdk/kc-sdk-support.js} +48 -51
  8. package/src/assets/sdk/kc-sdk.js +736 -0
  9. package/src/favicon.ico +0 -0
  10. package/src/index.html +21 -0
  11. package/src/main.js +13 -0
  12. package/src/main.js.map +1 -0
  13. package/src/polyfills.js +3 -0
  14. package/src/polyfills.js.map +1 -0
  15. package/src/styles.css +2 -0
  16. package/src/styles.css.map +7 -0
  17. package/src/angular.min.js +0 -294
  18. package/src/build/config.gypi +0 -77
  19. package/src/kc-messaging-provider.js +0 -26
  20. package/src/kc-sdk-config.js +0 -6
  21. package/src/kc-sdk.js +0 -558
  22. package/src/kcSdkConfigs/kc-sdk-config.cloud.js +0 -6
  23. package/src/kcSdkConfigs/kc-sdk-config.local.js +0 -6
  24. package/src/lodash.min.js +0 -121
  25. package/src/package-lock.json +0 -13
  26. package/src/requirenoop.js +0 -1
  27. package/src/sdk-show-last.directive.js +0 -11
  28. package/src/sdk-string.service.js +0 -70
  29. package/src/sdk-tester-signin.service.js +0 -52
  30. package/src/sdk-tester.js +0 -591
  31. package/src/sdk-tester.module.js +0 -1
  32. package/src/sdkTester.html +0 -120
  33. package/src/sign-in.html +0 -247
  34. package/src/tester.css +0 -271
  35. package/src/theme-changer.css +0 -142
  36. package/src/theme-changer.js +0 -27
  37. /package/src/{bootstrap.min.css → assets/styles/bootstrap.min.css} +0 -0
  38. /package/src/{uitk-defaults.css → assets/styles/uitk-defaults.css} +0 -0
package/package.json CHANGED
@@ -1,8 +1,11 @@
1
1
  {
2
2
  "name": "kc-sdk",
3
- "version": "6.4.7971",
3
+ "version": "6.8.10819",
4
4
  "description": "Knowledge Components SDK",
5
- "main": "",
5
+ "exports": {
6
+ ".": "./src/assets/sdk/kc-sdk.js",
7
+ "./kc-sdk-support": "./src/assets/sdk/kc-sdk-support.js"
8
+ },
6
9
  "publishConfig": {
7
10
  "registry": "https://registry.npmjs.org"
8
11
  },
@@ -0,0 +1,323 @@
1
+
2
+ --------------------------------------------------------------------------------
3
+ Package: @angular/core
4
+ License: "MIT"
5
+
6
+
7
+ --------------------------------------------------------------------------------
8
+ Package: rxjs
9
+ License: "Apache-2.0"
10
+
11
+ Apache License
12
+ Version 2.0, January 2004
13
+ http://www.apache.org/licenses/
14
+
15
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
16
+
17
+ 1. Definitions.
18
+
19
+ "License" shall mean the terms and conditions for use, reproduction,
20
+ and distribution as defined by Sections 1 through 9 of this document.
21
+
22
+ "Licensor" shall mean the copyright owner or entity authorized by
23
+ the copyright owner that is granting the License.
24
+
25
+ "Legal Entity" shall mean the union of the acting entity and all
26
+ other entities that control, are controlled by, or are under common
27
+ control with that entity. For the purposes of this definition,
28
+ "control" means (i) the power, direct or indirect, to cause the
29
+ direction or management of such entity, whether by contract or
30
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
31
+ outstanding shares, or (iii) beneficial ownership of such entity.
32
+
33
+ "You" (or "Your") shall mean an individual or Legal Entity
34
+ exercising permissions granted by this License.
35
+
36
+ "Source" form shall mean the preferred form for making modifications,
37
+ including but not limited to software source code, documentation
38
+ source, and configuration files.
39
+
40
+ "Object" form shall mean any form resulting from mechanical
41
+ transformation or translation of a Source form, including but
42
+ not limited to compiled object code, generated documentation,
43
+ and conversions to other media types.
44
+
45
+ "Work" shall mean the work of authorship, whether in Source or
46
+ Object form, made available under the License, as indicated by a
47
+ copyright notice that is included in or attached to the work
48
+ (an example is provided in the Appendix below).
49
+
50
+ "Derivative Works" shall mean any work, whether in Source or Object
51
+ form, that is based on (or derived from) the Work and for which the
52
+ editorial revisions, annotations, elaborations, or other modifications
53
+ represent, as a whole, an original work of authorship. For the purposes
54
+ of this License, Derivative Works shall not include works that remain
55
+ separable from, or merely link (or bind by name) to the interfaces of,
56
+ the Work and Derivative Works thereof.
57
+
58
+ "Contribution" shall mean any work of authorship, including
59
+ the original version of the Work and any modifications or additions
60
+ to that Work or Derivative Works thereof, that is intentionally
61
+ submitted to Licensor for inclusion in the Work by the copyright owner
62
+ or by an individual or Legal Entity authorized to submit on behalf of
63
+ the copyright owner. For the purposes of this definition, "submitted"
64
+ means any form of electronic, verbal, or written communication sent
65
+ to the Licensor or its representatives, including but not limited to
66
+ communication on electronic mailing lists, source code control systems,
67
+ and issue tracking systems that are managed by, or on behalf of, the
68
+ Licensor for the purpose of discussing and improving the Work, but
69
+ excluding communication that is conspicuously marked or otherwise
70
+ designated in writing by the copyright owner as "Not a Contribution."
71
+
72
+ "Contributor" shall mean Licensor and any individual or Legal Entity
73
+ on behalf of whom a Contribution has been received by Licensor and
74
+ subsequently incorporated within the Work.
75
+
76
+ 2. Grant of Copyright License. Subject to the terms and conditions of
77
+ this License, each Contributor hereby grants to You a perpetual,
78
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
79
+ copyright license to reproduce, prepare Derivative Works of,
80
+ publicly display, publicly perform, sublicense, and distribute the
81
+ Work and such Derivative Works in Source or Object form.
82
+
83
+ 3. Grant of Patent License. Subject to the terms and conditions of
84
+ this License, each Contributor hereby grants to You a perpetual,
85
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
86
+ (except as stated in this section) patent license to make, have made,
87
+ use, offer to sell, sell, import, and otherwise transfer the Work,
88
+ where such license applies only to those patent claims licensable
89
+ by such Contributor that are necessarily infringed by their
90
+ Contribution(s) alone or by combination of their Contribution(s)
91
+ with the Work to which such Contribution(s) was submitted. If You
92
+ institute patent litigation against any entity (including a
93
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
94
+ or a Contribution incorporated within the Work constitutes direct
95
+ or contributory patent infringement, then any patent licenses
96
+ granted to You under this License for that Work shall terminate
97
+ as of the date such litigation is filed.
98
+
99
+ 4. Redistribution. You may reproduce and distribute copies of the
100
+ Work or Derivative Works thereof in any medium, with or without
101
+ modifications, and in Source or Object form, provided that You
102
+ meet the following conditions:
103
+
104
+ (a) You must give any other recipients of the Work or
105
+ Derivative Works a copy of this License; and
106
+
107
+ (b) You must cause any modified files to carry prominent notices
108
+ stating that You changed the files; and
109
+
110
+ (c) You must retain, in the Source form of any Derivative Works
111
+ that You distribute, all copyright, patent, trademark, and
112
+ attribution notices from the Source form of the Work,
113
+ excluding those notices that do not pertain to any part of
114
+ the Derivative Works; and
115
+
116
+ (d) If the Work includes a "NOTICE" text file as part of its
117
+ distribution, then any Derivative Works that You distribute must
118
+ include a readable copy of the attribution notices contained
119
+ within such NOTICE file, excluding those notices that do not
120
+ pertain to any part of the Derivative Works, in at least one
121
+ of the following places: within a NOTICE text file distributed
122
+ as part of the Derivative Works; within the Source form or
123
+ documentation, if provided along with the Derivative Works; or,
124
+ within a display generated by the Derivative Works, if and
125
+ wherever such third-party notices normally appear. The contents
126
+ of the NOTICE file are for informational purposes only and
127
+ do not modify the License. You may add Your own attribution
128
+ notices within Derivative Works that You distribute, alongside
129
+ or as an addendum to the NOTICE text from the Work, provided
130
+ that such additional attribution notices cannot be construed
131
+ as modifying the License.
132
+
133
+ You may add Your own copyright statement to Your modifications and
134
+ may provide additional or different license terms and conditions
135
+ for use, reproduction, or distribution of Your modifications, or
136
+ for any such Derivative Works as a whole, provided Your use,
137
+ reproduction, and distribution of the Work otherwise complies with
138
+ the conditions stated in this License.
139
+
140
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
141
+ any Contribution intentionally submitted for inclusion in the Work
142
+ by You to the Licensor shall be under the terms and conditions of
143
+ this License, without any additional terms or conditions.
144
+ Notwithstanding the above, nothing herein shall supersede or modify
145
+ the terms of any separate license agreement you may have executed
146
+ with Licensor regarding such Contributions.
147
+
148
+ 6. Trademarks. This License does not grant permission to use the trade
149
+ names, trademarks, service marks, or product names of the Licensor,
150
+ except as required for reasonable and customary use in describing the
151
+ origin of the Work and reproducing the content of the NOTICE file.
152
+
153
+ 7. Disclaimer of Warranty. Unless required by applicable law or
154
+ agreed to in writing, Licensor provides the Work (and each
155
+ Contributor provides its Contributions) on an "AS IS" BASIS,
156
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
157
+ implied, including, without limitation, any warranties or conditions
158
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
159
+ PARTICULAR PURPOSE. You are solely responsible for determining the
160
+ appropriateness of using or redistributing the Work and assume any
161
+ risks associated with Your exercise of permissions under this License.
162
+
163
+ 8. Limitation of Liability. In no event and under no legal theory,
164
+ whether in tort (including negligence), contract, or otherwise,
165
+ unless required by applicable law (such as deliberate and grossly
166
+ negligent acts) or agreed to in writing, shall any Contributor be
167
+ liable to You for damages, including any direct, indirect, special,
168
+ incidental, or consequential damages of any character arising as a
169
+ result of this License or out of the use or inability to use the
170
+ Work (including but not limited to damages for loss of goodwill,
171
+ work stoppage, computer failure or malfunction, or any and all
172
+ other commercial damages or losses), even if such Contributor
173
+ has been advised of the possibility of such damages.
174
+
175
+ 9. Accepting Warranty or Additional Liability. While redistributing
176
+ the Work or Derivative Works thereof, You may choose to offer,
177
+ and charge a fee for, acceptance of support, warranty, indemnity,
178
+ or other liability obligations and/or rights consistent with this
179
+ License. However, in accepting such obligations, You may act only
180
+ on Your own behalf and on Your sole responsibility, not on behalf
181
+ of any other Contributor, and only if You agree to indemnify,
182
+ defend, and hold each Contributor harmless for any liability
183
+ incurred by, or claims asserted against, such Contributor by reason
184
+ of your accepting any such warranty or additional liability.
185
+
186
+ END OF TERMS AND CONDITIONS
187
+
188
+ APPENDIX: How to apply the Apache License to your work.
189
+
190
+ To apply the Apache License to your work, attach the following
191
+ boilerplate notice, with the fields enclosed by brackets "[]"
192
+ replaced with your own identifying information. (Don't include
193
+ the brackets!) The text should be enclosed in the appropriate
194
+ comment syntax for the file format. We also recommend that a
195
+ file or class name and description of purpose be included on the
196
+ same "printed page" as the copyright notice for easier
197
+ identification within third-party archives.
198
+
199
+ Copyright (c) 2015-2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors
200
+
201
+ Licensed under the Apache License, Version 2.0 (the "License");
202
+ you may not use this file except in compliance with the License.
203
+ You may obtain a copy of the License at
204
+
205
+ http://www.apache.org/licenses/LICENSE-2.0
206
+
207
+ Unless required by applicable law or agreed to in writing, software
208
+ distributed under the License is distributed on an "AS IS" BASIS,
209
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
210
+ See the License for the specific language governing permissions and
211
+ limitations under the License.
212
+
213
+
214
+ --------------------------------------------------------------------------------
215
+ Package: tslib
216
+ License: "0BSD"
217
+
218
+ Copyright (c) Microsoft Corporation.
219
+
220
+ Permission to use, copy, modify, and/or distribute this software for any
221
+ purpose with or without fee is hereby granted.
222
+
223
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
224
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
225
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
226
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
227
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
228
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
229
+ PERFORMANCE OF THIS SOFTWARE.
230
+ --------------------------------------------------------------------------------
231
+ Package: @angular/common
232
+ License: "MIT"
233
+
234
+
235
+ --------------------------------------------------------------------------------
236
+ Package: @angular/platform-browser
237
+ License: "MIT"
238
+
239
+
240
+ --------------------------------------------------------------------------------
241
+ Package: lodash-es
242
+ License: "MIT"
243
+
244
+ Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
245
+
246
+ Based on Underscore.js, copyright Jeremy Ashkenas,
247
+ DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
248
+
249
+ This software consists of voluntary contributions made by many
250
+ individuals. For exact contribution history, see the revision history
251
+ available at https://github.com/lodash/lodash
252
+
253
+ The following license applies to all parts of this software except as
254
+ documented below:
255
+
256
+ ====
257
+
258
+ Permission is hereby granted, free of charge, to any person obtaining
259
+ a copy of this software and associated documentation files (the
260
+ "Software"), to deal in the Software without restriction, including
261
+ without limitation the rights to use, copy, modify, merge, publish,
262
+ distribute, sublicense, and/or sell copies of the Software, and to
263
+ permit persons to whom the Software is furnished to do so, subject to
264
+ the following conditions:
265
+
266
+ The above copyright notice and this permission notice shall be
267
+ included in all copies or substantial portions of the Software.
268
+
269
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
270
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
271
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
272
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
273
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
274
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
275
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
276
+
277
+ ====
278
+
279
+ Copyright and related rights for sample code are waived via CC0. Sample
280
+ code is defined as all source code displayed within the prose of the
281
+ documentation.
282
+
283
+ CC0: http://creativecommons.org/publicdomain/zero/1.0/
284
+
285
+ ====
286
+
287
+ Files located in the node_modules and vendor directories are externally
288
+ maintained libraries used by this software which have their own
289
+ licenses; we recommend you read them, as their terms may differ from the
290
+ terms above.
291
+
292
+ --------------------------------------------------------------------------------
293
+ Package: @angular/forms
294
+ License: "MIT"
295
+
296
+
297
+ --------------------------------------------------------------------------------
298
+ Package: zone.js
299
+ License: "MIT"
300
+
301
+ The MIT License
302
+
303
+ Copyright (c) 2010-2024 Google LLC. https://angular.io/license
304
+
305
+ Permission is hereby granted, free of charge, to any person obtaining a copy
306
+ of this software and associated documentation files (the "Software"), to deal
307
+ in the Software without restriction, including without limitation the rights
308
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
309
+ copies of the Software, and to permit persons to whom the Software is
310
+ furnished to do so, subject to the following conditions:
311
+
312
+ The above copyright notice and this permission notice shall be included in
313
+ all copies or substantial portions of the Software.
314
+
315
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
316
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
317
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
318
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
319
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
320
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
321
+ THE SOFTWARE.
322
+
323
+ --------------------------------------------------------------------------------
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["src/app/app.component.scss"],
4
+ "sourcesContent": [".sdk-callApi-button {\r\n margin-left: 185px;\r\n}\r\n"],
5
+ "mappings": "AAAA,CAAA,mBACI,YAAA",
6
+ "names": []
7
+ }
@@ -0,0 +1,8 @@
1
+ var kcSdkConfig = {
2
+ mreServiceBase: 'https://test.kc-np.o360.cloud/Handlers/saml2.ashx',
3
+ mreBaseUrl: 'https://www.medicalreferenceengine.com/mre/',
4
+ tokenServer: '/Token/token/',
5
+ url: '/',
6
+ appName: 'kcApp',
7
+ secret: ''
8
+ };
@@ -0,0 +1,8 @@
1
+ {
2
+ "mreServiceBase": "https://test.kc-np.o360.cloud/Handlers/saml2.ashx",
3
+ "mreBaseUrl": "https://www.medicalreferenceengine.com/mre/",
4
+ "tokenServer": "/Token/token/",
5
+ "url": "/",
6
+ "appName": "kcApp",
7
+ "secret": ""
8
+ }
@@ -89,7 +89,6 @@ var listenerResponse = Object.freeze({
89
89
  ENCODERSTARTUPCOMPLETE: 'Encoder Startup Complete'
90
90
  });
91
91
 
92
-
93
92
  var callbacks = Object.freeze({
94
93
  SDKEXCEPTION: 'sdkRequestException',
95
94
  SDKRESPONSE: 'sdkServiceResponse',
@@ -103,24 +102,29 @@ var callbacks = Object.freeze({
103
102
 
104
103
  var patientType = Object.freeze({
105
104
  INPATIENT: {
106
- payer_number: "01",
107
- payer_name: "Acute Inpatient",
108
- displayValue: "01 Acute Inpatient"
105
+ payer_number: '01',
106
+ payer_name: 'Acute Inpatient',
107
+ displayValue: '01 Acute Inpatient'
109
108
  },
110
109
  OUTPATIENT: {
111
- payer_number: "02",
112
- payer_name: "Outpatient",
113
- displayValue: "02 Outpatient"
110
+ payer_number: '02',
111
+ payer_name: 'Outpatient',
112
+ displayValue: '02 Outpatient'
114
113
  },
115
114
  IRF: {
116
- payer_number: "03",
117
- payer_name: "Inpatient Rehabilitation",
118
- displayValue: "03 Inpatient Rehabilitation"
115
+ payer_number: '03',
116
+ payer_name: 'Inpatient Rehabilitation',
117
+ displayValue: '03 Inpatient Rehabilitation'
118
+ },
119
+ CAH: {
120
+ payer_number: '05',
121
+ payer_name: 'CAH Method II',
122
+ displayValue: '05 CAH Method II'
119
123
  },
120
124
  SNF: {
121
- payer_number: "06",
122
- payer_name: "Skilled Nursing Facility",
123
- displayValue: "06 Skilled Nursing Facility"
125
+ payer_number: '06',
126
+ payer_name: 'Skilled Nursing Facility',
127
+ displayValue: '06 Skilled Nursing Facility'
124
128
  }
125
129
  });
126
130
 
@@ -130,18 +134,22 @@ var messagingProvider = {
130
134
 
131
135
  init: function () {
132
136
  this.initialized = true;
133
- var eventMethod = window.addEventListener ? "addEventListener" : "attachEvent";
137
+ var eventMethod = window.addEventListener ? 'addEventListener' : 'attachEvent';
134
138
  var eventer = window[eventMethod];
135
- var messageEvent = eventMethod === "attachEvent" ? "onmessage" : "message";
136
-
137
- eventer(messageEvent, function (e) {
138
- var callback = this.currentHandler;
139
- if (callback != null) {
140
- var key = e.message ? "message" : "data";
141
- var data = e[key];
142
- callback(data);
143
- }
144
- }, false);
139
+ var messageEvent = eventMethod === 'attachEvent' ? 'onmessage' : 'message';
140
+
141
+ eventer(
142
+ messageEvent,
143
+ function (e) {
144
+ var callback = this.currentHandler;
145
+ if (callback != null) {
146
+ var key = e.message ? 'message' : 'data';
147
+ var data = e[key];
148
+ callback(data);
149
+ }
150
+ },
151
+ false
152
+ );
145
153
  },
146
154
 
147
155
  post: function (target, message) {
@@ -149,14 +157,11 @@ var messagingProvider = {
149
157
  target.postMessage(message, '*');
150
158
  }
151
159
  }
152
- }
160
+ };
153
161
 
154
162
  var kcMreService = {
155
163
  launchMre: function (code, codeType, accessToken) {
156
-
157
164
  code = adjustCodeForDecimal.adjust(code, codeType);
158
- var serviceBase = kcSdkConfig.mreServiceBase;
159
- var appName = 'MRE';
160
165
  var codeTypeUrlHandler = {};
161
166
 
162
167
  codeTypeUrlHandler.CPT = 'cptHandler.do?_k=101*';
@@ -168,14 +173,11 @@ var kcMreService = {
168
173
 
169
174
  var relayUrl = '';
170
175
  var encodedUrl = '';
171
-
172
- if (code !== null && codeType !== null) {
173
176
 
174
- var codeBaseParam = codeType === codeTypes.HCPCS.name ?
175
- isHcpcsCode(code) ? codeTypes.HCPCS.name : codeTypes.CPT.name : codeType;
177
+ if (code !== null && codeType !== null) {
178
+ var codeBaseParam = codeType === codeTypes.HCPCS.name ? (isHcpcsCode(code) ? codeTypes.HCPCS.name : codeTypes.CPT.name) : codeType;
176
179
  relayUrl = generateRelayUrl(code, codeBaseParam);
177
- }
178
- else {
180
+ } else {
179
181
  relayUrl = generateRelayUrl('', '');
180
182
  }
181
183
  encodedUrl = encodeURIComponent(relayUrl);
@@ -185,41 +187,39 @@ var kcMreService = {
185
187
  if (this.readyState === 4 && this.status === 200) {
186
188
  var response = JSON.parse(xhttp.responseText);
187
189
  if (response.token) {
188
-
189
190
  var xhttpOpenToken = new XMLHttpRequest();
190
191
  xhttpOpenToken.onreadystatechange = function () {
191
192
  if (this.readyState === 4 && this.status === 200) {
192
193
  hasMREBrowserWindowOpened = true;
193
194
  var openToken = xhttpOpenToken.responseText;
194
195
 
195
- var mreForm = document.createElement("form");
196
- mreForm.target = "MRE";
197
- mreForm.method = "POST";
196
+ var mreForm = document.createElement('form');
197
+ mreForm.target = 'MRE';
198
+ mreForm.method = 'POST';
198
199
  mreForm.action = relayUrl;
199
200
 
200
- var mreInput = document.createElement("input");
201
- mreInput.type = "hidden";
202
- mreInput.name = "opentoken";
201
+ var mreInput = document.createElement('input');
202
+ mreInput.type = 'hidden';
203
+ mreInput.name = 'opentoken';
203
204
  mreInput.value = openToken;
204
205
  mreForm.appendChild(mreInput);
205
206
 
206
- window.open("", "MRE");
207
+ window.open('', 'MRE');
207
208
  document.body.appendChild(mreForm);
208
209
  mreForm.submit();
209
210
  document.body.removeChild(mreForm);
210
211
  }
211
212
  };
212
- xhttpOpenToken.open("GET", kcSdkConfig.tokenServer + 'getMreOpenToken?relayUrl=' + encodedUrl, true);
213
+ xhttpOpenToken.open('GET', kcSdkConfig.tokenServer + 'getMreOpenToken?relayUrl=' + encodedUrl, true);
213
214
  xhttpOpenToken.setRequestHeader('Authorization', 'Bearer ' + response.token);
214
215
  xhttpOpenToken.send();
215
216
  }
216
217
  }
217
218
  };
218
- xhttp.open("GET", kcSdkConfig.tokenServer + 'ssoLogin/' + kcSdkConfig.appName, true);
219
+ xhttp.open('GET', kcSdkConfig.tokenServer + 'ssoLogin/' + kcSdkConfig.appName, true);
219
220
  xhttp.setRequestHeader('X-SSO-AuthToken', accessToken);
220
221
  xhttp.send();
221
222
 
222
-
223
223
  function generateRelayUrl(code, codeType) {
224
224
  var baseURL = kcSdkConfig.mreBaseUrl + 'ssoHandler.do?_a=home';
225
225
 
@@ -248,7 +248,7 @@ var kcMreService = {
248
248
  return filteredCode;
249
249
  }
250
250
  }
251
- }
251
+ };
252
252
 
253
253
  var jwt = {
254
254
  getJwtData: function (accessToken) {
@@ -259,8 +259,7 @@ var jwt = {
259
259
  return JSON.parse(jwtStringData);
260
260
  }
261
261
  }
262
- }
263
-
262
+ };
264
263
 
265
264
  var adjustCodeForDecimal = {
266
265
  adjust: function (code, codeType) {
@@ -278,7 +277,7 @@ var adjustCodeForDecimal = {
278
277
  }
279
278
 
280
279
  function addDecimal(code, length) {
281
- code = code.replace(".", "");
280
+ code = code.replace('.', '');
282
281
  if (code.length > length) {
283
282
  code = code.substring(0, length) + '.' + code.substring(length);
284
283
  }
@@ -287,6 +286,4 @@ var adjustCodeForDecimal = {
287
286
 
288
287
  return code;
289
288
  }
290
-
291
289
  };
292
-