@bnsights/bbsf-utilities 1.0.31 → 1.0.32

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 (55) hide show
  1. package/README.md +5 -2
  2. package/bnsights-bbsf-utilities-1.0.32.tgz +0 -0
  3. package/bnsights-bbsf-utilities.d.ts +1 -0
  4. package/{esm2015/bnsights-bbsf-utilities.js → esm2020/bnsights-bbsf-utilities.mjs} +0 -0
  5. package/esm2020/lib/bbsf-utilities.module.mjs +74 -0
  6. package/esm2020/lib/shared/authentication/auth.service.mjs +217 -0
  7. package/{esm2015/lib/shared/config/environment.js → esm2020/lib/shared/config/environment.mjs} +0 -0
  8. package/{esm2015/lib/shared/models/AreaModel.js → esm2020/lib/shared/models/AreaModel.mjs} +0 -0
  9. package/{esm2015/lib/shared/models/ErrorModel.js → esm2020/lib/shared/models/ErrorModel.mjs} +0 -0
  10. package/{esm2015/lib/shared/models/RequestOptionsModel.js → esm2020/lib/shared/models/RequestOptionsModel.mjs} +0 -0
  11. package/esm2020/lib/shared/services/AppearanceConfiguration.service.mjs +35 -0
  12. package/esm2020/lib/shared/services/configuration.service.mjs +24 -0
  13. package/esm2020/lib/shared/services/controlvalidation.service.mjs +166 -0
  14. package/esm2020/lib/shared/services/environment.service.mjs +50 -0
  15. package/esm2020/lib/shared/services/masterlayout.service.mjs +84 -0
  16. package/esm2020/lib/shared/services/requesthandler.service.mjs +202 -0
  17. package/esm2020/lib/shared/services/stylesbundle.service.mjs +55 -0
  18. package/esm2020/lib/shared/services/translate.service.mjs +14 -0
  19. package/esm2020/lib/shared/services/translationresolver.service.mjs +18 -0
  20. package/esm2020/lib/shared/services/utility.service.mjs +90 -0
  21. package/{esm2015/public-api.js → esm2020/public-api.mjs} +0 -0
  22. package/fesm2015/{bnsights-bbsf-utilities.js → bnsights-bbsf-utilities.mjs} +160 -157
  23. package/fesm2015/bnsights-bbsf-utilities.mjs.map +1 -0
  24. package/fesm2020/bnsights-bbsf-utilities.mjs +997 -0
  25. package/fesm2020/bnsights-bbsf-utilities.mjs.map +1 -0
  26. package/lib/bbsf-utilities.module.d.ts +9 -0
  27. package/lib/shared/authentication/auth.service.d.ts +3 -0
  28. package/lib/shared/services/AppearanceConfiguration.service.d.ts +3 -0
  29. package/lib/shared/services/configuration.service.d.ts +3 -0
  30. package/lib/shared/services/controlvalidation.service.d.ts +3 -0
  31. package/lib/shared/services/environment.service.d.ts +3 -0
  32. package/lib/shared/services/masterlayout.service.d.ts +3 -0
  33. package/lib/shared/services/requesthandler.service.d.ts +3 -0
  34. package/lib/shared/services/stylesbundle.service.d.ts +3 -0
  35. package/lib/shared/services/translate.service.d.ts +3 -0
  36. package/lib/shared/services/translationresolver.service.d.ts +3 -0
  37. package/lib/shared/services/utility.service.d.ts +3 -0
  38. package/package.json +19 -7
  39. package/bnsights-bbsf-utilities-1.0.31.tgz +0 -0
  40. package/bnsights-bbsf-utilities.metadata.json +0 -1
  41. package/bundles/bnsights-bbsf-utilities.umd.js +0 -1485
  42. package/bundles/bnsights-bbsf-utilities.umd.js.map +0 -1
  43. package/esm2015/lib/bbsf-utilities.module.js +0 -52
  44. package/esm2015/lib/shared/authentication/auth.service.js +0 -236
  45. package/esm2015/lib/shared/services/AppearanceConfiguration.service.js +0 -37
  46. package/esm2015/lib/shared/services/configuration.service.js +0 -26
  47. package/esm2015/lib/shared/services/controlvalidation.service.js +0 -168
  48. package/esm2015/lib/shared/services/environment.service.js +0 -48
  49. package/esm2015/lib/shared/services/masterlayout.service.js +0 -96
  50. package/esm2015/lib/shared/services/requesthandler.service.js +0 -206
  51. package/esm2015/lib/shared/services/stylesbundle.service.js +0 -56
  52. package/esm2015/lib/shared/services/translate.service.js +0 -13
  53. package/esm2015/lib/shared/services/translationresolver.service.js +0 -20
  54. package/esm2015/lib/shared/services/utility.service.js +0 -96
  55. package/fesm2015/bnsights-bbsf-utilities.js.map +0 -1
@@ -1,1485 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@angular/router'), require('@ngx-translate/core'), require('ng-block-ui'), require('ngx-toastr'), require('@angular/http'), require('@angular/common/http'), require('oidc-client'), require('rxjs'), require('rxjs/operators'), require('class-transformer')) :
3
- typeof define === 'function' && define.amd ? define('@bnsights/bbsf-utilities', ['exports', '@angular/common', '@angular/core', '@angular/router', '@ngx-translate/core', 'ng-block-ui', 'ngx-toastr', '@angular/http', '@angular/common/http', 'oidc-client', 'rxjs', 'rxjs/operators', 'class-transformer'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.bnsights = global.bnsights || {}, global.bnsights["bbsf-utilities"] = {}), global.ng.common, global.ng.core, global.ng.router, global.i1, global.ngBlockUi, global.ngxToastr, global.ng.http, global.ng.common.http, global.oidcClient, global.rxjs, global.rxjs.operators, global.classTransformer));
5
- })(this, (function (exports, i1$3, i0, i1$2, i1, ngBlockUi, ngxToastr, http, i1$1, oidcClient, rxjs, operators, classTransformer) { 'use strict';
6
-
7
- function _interopNamespace(e) {
8
- if (e && e.__esModule) return e;
9
- var n = Object.create(null);
10
- if (e) {
11
- Object.keys(e).forEach(function (k) {
12
- if (k !== 'default') {
13
- var d = Object.getOwnPropertyDescriptor(e, k);
14
- Object.defineProperty(n, k, d.get ? d : {
15
- enumerable: true,
16
- get: function () { return e[k]; }
17
- });
18
- }
19
- });
20
- }
21
- n["default"] = e;
22
- return Object.freeze(n);
23
- }
24
-
25
- var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$3);
26
- var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
27
- var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$2);
28
- var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
29
- var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$1);
30
-
31
- /*! *****************************************************************************
32
- Copyright (c) Microsoft Corporation.
33
-
34
- Permission to use, copy, modify, and/or distribute this software for any
35
- purpose with or without fee is hereby granted.
36
-
37
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
38
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
39
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
40
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
41
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
42
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
43
- PERFORMANCE OF THIS SOFTWARE.
44
- ***************************************************************************** */
45
- /* global Reflect, Promise */
46
- var extendStatics = function (d, b) {
47
- extendStatics = Object.setPrototypeOf ||
48
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
49
- function (d, b) { for (var p in b)
50
- if (Object.prototype.hasOwnProperty.call(b, p))
51
- d[p] = b[p]; };
52
- return extendStatics(d, b);
53
- };
54
- function __extends(d, b) {
55
- if (typeof b !== "function" && b !== null)
56
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
57
- extendStatics(d, b);
58
- function __() { this.constructor = d; }
59
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
60
- }
61
- var __assign = function () {
62
- __assign = Object.assign || function __assign(t) {
63
- for (var s, i = 1, n = arguments.length; i < n; i++) {
64
- s = arguments[i];
65
- for (var p in s)
66
- if (Object.prototype.hasOwnProperty.call(s, p))
67
- t[p] = s[p];
68
- }
69
- return t;
70
- };
71
- return __assign.apply(this, arguments);
72
- };
73
- function __rest(s, e) {
74
- var t = {};
75
- for (var p in s)
76
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
77
- t[p] = s[p];
78
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
79
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
80
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
81
- t[p[i]] = s[p[i]];
82
- }
83
- return t;
84
- }
85
- function __decorate(decorators, target, key, desc) {
86
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
87
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
88
- r = Reflect.decorate(decorators, target, key, desc);
89
- else
90
- for (var i = decorators.length - 1; i >= 0; i--)
91
- if (d = decorators[i])
92
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
93
- return c > 3 && r && Object.defineProperty(target, key, r), r;
94
- }
95
- function __param(paramIndex, decorator) {
96
- return function (target, key) { decorator(target, key, paramIndex); };
97
- }
98
- function __metadata(metadataKey, metadataValue) {
99
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
100
- return Reflect.metadata(metadataKey, metadataValue);
101
- }
102
- function __awaiter(thisArg, _arguments, P, generator) {
103
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
104
- return new (P || (P = Promise))(function (resolve, reject) {
105
- function fulfilled(value) { try {
106
- step(generator.next(value));
107
- }
108
- catch (e) {
109
- reject(e);
110
- } }
111
- function rejected(value) { try {
112
- step(generator["throw"](value));
113
- }
114
- catch (e) {
115
- reject(e);
116
- } }
117
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
118
- step((generator = generator.apply(thisArg, _arguments || [])).next());
119
- });
120
- }
121
- function __generator(thisArg, body) {
122
- var _ = { label: 0, sent: function () { if (t[0] & 1)
123
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
124
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
125
- function verb(n) { return function (v) { return step([n, v]); }; }
126
- function step(op) {
127
- if (f)
128
- throw new TypeError("Generator is already executing.");
129
- while (_)
130
- try {
131
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
132
- return t;
133
- if (y = 0, t)
134
- op = [op[0] & 2, t.value];
135
- switch (op[0]) {
136
- case 0:
137
- case 1:
138
- t = op;
139
- break;
140
- case 4:
141
- _.label++;
142
- return { value: op[1], done: false };
143
- case 5:
144
- _.label++;
145
- y = op[1];
146
- op = [0];
147
- continue;
148
- case 7:
149
- op = _.ops.pop();
150
- _.trys.pop();
151
- continue;
152
- default:
153
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
154
- _ = 0;
155
- continue;
156
- }
157
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
158
- _.label = op[1];
159
- break;
160
- }
161
- if (op[0] === 6 && _.label < t[1]) {
162
- _.label = t[1];
163
- t = op;
164
- break;
165
- }
166
- if (t && _.label < t[2]) {
167
- _.label = t[2];
168
- _.ops.push(op);
169
- break;
170
- }
171
- if (t[2])
172
- _.ops.pop();
173
- _.trys.pop();
174
- continue;
175
- }
176
- op = body.call(thisArg, _);
177
- }
178
- catch (e) {
179
- op = [6, e];
180
- y = 0;
181
- }
182
- finally {
183
- f = t = 0;
184
- }
185
- if (op[0] & 5)
186
- throw op[1];
187
- return { value: op[0] ? op[1] : void 0, done: true };
188
- }
189
- }
190
- var __createBinding = Object.create ? (function (o, m, k, k2) {
191
- if (k2 === undefined)
192
- k2 = k;
193
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
194
- }) : (function (o, m, k, k2) {
195
- if (k2 === undefined)
196
- k2 = k;
197
- o[k2] = m[k];
198
- });
199
- function __exportStar(m, o) {
200
- for (var p in m)
201
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
202
- __createBinding(o, m, p);
203
- }
204
- function __values(o) {
205
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
206
- if (m)
207
- return m.call(o);
208
- if (o && typeof o.length === "number")
209
- return {
210
- next: function () {
211
- if (o && i >= o.length)
212
- o = void 0;
213
- return { value: o && o[i++], done: !o };
214
- }
215
- };
216
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
217
- }
218
- function __read(o, n) {
219
- var m = typeof Symbol === "function" && o[Symbol.iterator];
220
- if (!m)
221
- return o;
222
- var i = m.call(o), r, ar = [], e;
223
- try {
224
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
225
- ar.push(r.value);
226
- }
227
- catch (error) {
228
- e = { error: error };
229
- }
230
- finally {
231
- try {
232
- if (r && !r.done && (m = i["return"]))
233
- m.call(i);
234
- }
235
- finally {
236
- if (e)
237
- throw e.error;
238
- }
239
- }
240
- return ar;
241
- }
242
- /** @deprecated */
243
- function __spread() {
244
- for (var ar = [], i = 0; i < arguments.length; i++)
245
- ar = ar.concat(__read(arguments[i]));
246
- return ar;
247
- }
248
- /** @deprecated */
249
- function __spreadArrays() {
250
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
251
- s += arguments[i].length;
252
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
253
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
254
- r[k] = a[j];
255
- return r;
256
- }
257
- function __spreadArray(to, from, pack) {
258
- if (pack || arguments.length === 2)
259
- for (var i = 0, l = from.length, ar; i < l; i++) {
260
- if (ar || !(i in from)) {
261
- if (!ar)
262
- ar = Array.prototype.slice.call(from, 0, i);
263
- ar[i] = from[i];
264
- }
265
- }
266
- return to.concat(ar || Array.prototype.slice.call(from));
267
- }
268
- function __await(v) {
269
- return this instanceof __await ? (this.v = v, this) : new __await(v);
270
- }
271
- function __asyncGenerator(thisArg, _arguments, generator) {
272
- if (!Symbol.asyncIterator)
273
- throw new TypeError("Symbol.asyncIterator is not defined.");
274
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
275
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
276
- function verb(n) { if (g[n])
277
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
278
- function resume(n, v) { try {
279
- step(g[n](v));
280
- }
281
- catch (e) {
282
- settle(q[0][3], e);
283
- } }
284
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
285
- function fulfill(value) { resume("next", value); }
286
- function reject(value) { resume("throw", value); }
287
- function settle(f, v) { if (f(v), q.shift(), q.length)
288
- resume(q[0][0], q[0][1]); }
289
- }
290
- function __asyncDelegator(o) {
291
- var i, p;
292
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
293
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
294
- }
295
- function __asyncValues(o) {
296
- if (!Symbol.asyncIterator)
297
- throw new TypeError("Symbol.asyncIterator is not defined.");
298
- var m = o[Symbol.asyncIterator], i;
299
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
300
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
301
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
302
- }
303
- function __makeTemplateObject(cooked, raw) {
304
- if (Object.defineProperty) {
305
- Object.defineProperty(cooked, "raw", { value: raw });
306
- }
307
- else {
308
- cooked.raw = raw;
309
- }
310
- return cooked;
311
- }
312
- ;
313
- var __setModuleDefault = Object.create ? (function (o, v) {
314
- Object.defineProperty(o, "default", { enumerable: true, value: v });
315
- }) : function (o, v) {
316
- o["default"] = v;
317
- };
318
- function __importStar(mod) {
319
- if (mod && mod.__esModule)
320
- return mod;
321
- var result = {};
322
- if (mod != null)
323
- for (var k in mod)
324
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
325
- __createBinding(result, mod, k);
326
- __setModuleDefault(result, mod);
327
- return result;
328
- }
329
- function __importDefault(mod) {
330
- return (mod && mod.__esModule) ? mod : { default: mod };
331
- }
332
- function __classPrivateFieldGet(receiver, state, kind, f) {
333
- if (kind === "a" && !f)
334
- throw new TypeError("Private accessor was defined without a getter");
335
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
336
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
337
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
338
- }
339
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
340
- if (kind === "m")
341
- throw new TypeError("Private method is not writable");
342
- if (kind === "a" && !f)
343
- throw new TypeError("Private accessor was defined without a setter");
344
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
345
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
346
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
347
- }
348
-
349
- // This file can be replaced during build by using the `fileReplacements` array.
350
- // `ng build ---prod` replaces `environment.ts` with `environment.prod.ts`.
351
- // The list of file replacements can be found in `angular.json`.
352
- var environment = Object.assign({}, window.Environment);
353
- /*
354
- * In development mode, to ignore zone related error stack frames such as
355
- * `zone.run`, `zoneDelegate.invokeTask` for easier debugging, you can
356
- * import the following file, but please comment it out in production mode
357
- * because it will have performance impact when throw error
358
- */
359
- // import 'zone.js/dist/zone-error'; // Included with Angular CLI.
360
-
361
- var EnvironmentService = /** @class */ (function () {
362
- function EnvironmentService() {
363
- }
364
- EnvironmentService.prototype.getEnvironmentObject = function () {
365
- return environment;
366
- };
367
- EnvironmentService.prototype.getBaseUrl = function () {
368
- var Url = environment["BBSF_BaseURL"];
369
- return Url;
370
- };
371
- EnvironmentService.prototype.getApiUrl = function () {
372
- var Url = environment["BBSF_ApiUrl"];
373
- return Url;
374
- };
375
- EnvironmentService.prototype.getProductionMode = function () {
376
- var Mode = environment["BBSF_IsProduction"];
377
- return Mode;
378
- };
379
- EnvironmentService.prototype.getDefaultLanguage = function () {
380
- var Mode = environment["BBSF_DefaultLanguage"];
381
- return Mode;
382
- };
383
- EnvironmentService.prototype.getIdentityServerUrl = function () {
384
- var Url = environment["BBSF_IdentityServerUrl"];
385
- return Url;
386
- };
387
- EnvironmentService.prototype.getIsIdentityServerExternal = function () {
388
- var Mode = environment["BBSF_IsExternalIdentityServer"];
389
- return Mode;
390
- };
391
- EnvironmentService.prototype.getIsIdentityServerClientId = function () {
392
- var Mode = environment["BBSF_IdentityServer_Client_Id"];
393
- return Mode;
394
- };
395
- EnvironmentService.prototype.getIsIdentityServerClientSecret = function () {
396
- var Mode = environment["BBSF_IdentityServer_Client_Secret"];
397
- return Mode;
398
- };
399
- return EnvironmentService;
400
- }());
401
- EnvironmentService.AreaList = [];
402
- EnvironmentService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function EnvironmentService_Factory() { return new EnvironmentService(); }, token: EnvironmentService, providedIn: "root" });
403
- EnvironmentService.decorators = [
404
- { type: i0.Injectable, args: [{
405
- providedIn: 'root'
406
- },] }
407
- ];
408
-
409
- var BBSFTranslateService = /** @class */ (function (_super) {
410
- __extends(BBSFTranslateService, _super);
411
- function BBSFTranslateService() {
412
- return _super !== null && _super.apply(this, arguments) || this;
413
- }
414
- return BBSFTranslateService;
415
- }(i1.TranslateService));
416
- BBSFTranslateService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function BBSFTranslateService_Factory() { return new BBSFTranslateService(i0__namespace.ɵɵinject(i1__namespace.TranslateStore), i0__namespace.ɵɵinject(i1__namespace.TranslateLoader), i0__namespace.ɵɵinject(i1__namespace.TranslateCompiler), i0__namespace.ɵɵinject(i1__namespace.TranslateParser), i0__namespace.ɵɵinject(i1__namespace.MissingTranslationHandler), i0__namespace.ɵɵinject(i1__namespace.USE_DEFAULT_LANG), i0__namespace.ɵɵinject(i1__namespace.USE_STORE), i0__namespace.ɵɵinject(i1__namespace.USE_EXTEND), i0__namespace.ɵɵinject(i1__namespace.DEFAULT_LANGUAGE)); }, token: BBSFTranslateService, providedIn: "root" });
417
- BBSFTranslateService.decorators = [
418
- { type: i0.Injectable, args: [{
419
- providedIn: 'root'
420
- },] }
421
- ];
422
-
423
- var RequestOptionsModel = /** @class */ (function () {
424
- function RequestOptionsModel() {
425
- this.disableSuccessNotification = false;
426
- this.disableBlockUI = false;
427
- this.disableErrorHandler = false;
428
- this.responseType = "";
429
- this.formGroup = null;
430
- this.castResponsetoClass = true;
431
- }
432
- return RequestOptionsModel;
433
- }());
434
-
435
- var RequestHandlerService = /** @class */ (function () {
436
- function RequestHandlerService(http, authService, environmentService, utilityService, bbsfTranslateService, router) {
437
- var _this = this;
438
- //using localStorage to avoid call getCurrentLanguage() because it is not all to use async in constructor
439
- this.http = http;
440
- this.authService = authService;
441
- this.environmentService = environmentService;
442
- this.utilityService = utilityService;
443
- this.bbsfTranslateService = bbsfTranslateService;
444
- this.router = router;
445
- this.requestOptions = new RequestOptionsModel();
446
- this.currentLanguage = "";
447
- this.onDestroy$ = new rxjs.Subject();
448
- this.bbsfTranslateService.onLangChange.subscribe(function (event) {
449
- if (_this.currentLanguage != event.lang) {
450
- _this.currentLanguage = event.lang;
451
- }
452
- });
453
- }
454
- RequestHandlerService.prototype.getLuckyNumber = function () {
455
- return rxjs.Observable.create(function (subject) {
456
- setInterval(function () {
457
- var number = Math.floor(Math.random() * 10);
458
- console.log(number);
459
- subject.next(number);
460
- }, 1000);
461
- }).pipe(operators.takeUntil(this.onDestroy$));
462
- };
463
- RequestHandlerService.prototype.get = function (Url, params, responseType, requestOptions) {
464
- var _this = this;
465
- if (requestOptions)
466
- this.requestOptions = requestOptions;
467
- var headers = this.getHeaders();
468
- if (!this.requestOptions.disableBlockUI)
469
- this.utilityService.startBlockUI();
470
- var object;
471
- return this.http.get(this.environmentService.getApiUrl() + Url, { headers: headers, params: params }).pipe(operators.takeUntil(this.onDestroy$), operators.tap(function (result) {
472
- if (!_this.requestOptions.disableBlockUI)
473
- _this.utilityService.stopBlockUI();
474
- }, function (error) {
475
- if (!_this.requestOptions.disableErrorHandler)
476
- _this.handleError(error);
477
- }), operators.map(function (data) {
478
- if (_this.requestOptions.castResponsetoClass)
479
- return classTransformer.plainToClass(responseType, data, { excludeExtraneousValues: true });
480
- else
481
- return data;
482
- }));
483
- };
484
- RequestHandlerService.prototype.post = function (Url, model, responseType, params, requestOptions) {
485
- var _this = this;
486
- if (requestOptions)
487
- this.requestOptions = requestOptions;
488
- var headers = this.getHeaders();
489
- if (!this.requestOptions.disableBlockUI)
490
- this.utilityService.startBlockUI();
491
- return this.http.post(this.environmentService.getApiUrl() + Url, model, { headers: headers, params: params, responseType: this.requestOptions.responseType }).pipe(operators.takeUntil(this.onDestroy$), operators.tap(function (result) {
492
- if (!_this.requestOptions.disableBlockUI)
493
- _this.utilityService.stopBlockUI();
494
- }, function (error) {
495
- if (!_this.requestOptions.disableErrorHandler)
496
- _this.handleError(error);
497
- }), operators.map(function (data) {
498
- if (_this.requestOptions.castResponsetoClass)
499
- return classTransformer.plainToClass(responseType, data, { excludeExtraneousValues: true });
500
- else
501
- return data;
502
- }));
503
- };
504
- RequestHandlerService.prototype.delete = function (Url, deletedId, requestOptions, responseType, params) {
505
- var _this = this;
506
- if (requestOptions)
507
- this.requestOptions = requestOptions;
508
- var headers = this.getHeaders();
509
- if (!this.requestOptions.disableBlockUI)
510
- this.utilityService.startBlockUI();
511
- return this.http.delete(this.environmentService.getApiUrl() + Url + ("/" + deletedId), { headers: headers, params: params }).pipe(operators.takeUntil(this.onDestroy$), operators.tap(function (result) {
512
- if (!_this.requestOptions.disableBlockUI)
513
- _this.utilityService.stopBlockUI();
514
- }, function (error) {
515
- if (!_this.requestOptions.disableErrorHandler)
516
- _this.handleError(error);
517
- }), operators.map(function (data) {
518
- if (_this.requestOptions.castResponsetoClass)
519
- return classTransformer.plainToClass(responseType, data, { excludeExtraneousValues: true });
520
- else
521
- return data;
522
- }));
523
- };
524
- RequestHandlerService.prototype.put = function (Url, model, params, responseType, requestOptions) {
525
- var _this = this;
526
- if (requestOptions)
527
- this.requestOptions = requestOptions;
528
- var headers = this.getHeaders();
529
- if (!this.requestOptions.disableBlockUI)
530
- this.utilityService.startBlockUI();
531
- return this.http.put(this.environmentService.getApiUrl() + Url, model, { headers: headers, params: params, responseType: this.requestOptions.responseType }).pipe(operators.takeUntil(this.onDestroy$), operators.tap(function (result) {
532
- if (!_this.requestOptions.disableBlockUI)
533
- _this.utilityService.stopBlockUI();
534
- }, function (error) {
535
- if (!_this.requestOptions.disableErrorHandler)
536
- _this.handleError(error);
537
- }), operators.map(function (data) {
538
- if (_this.requestOptions.castResponsetoClass)
539
- return classTransformer.plainToClass(responseType, data, { excludeExtraneousValues: true });
540
- else
541
- return data;
542
- }));
543
- };
544
- RequestHandlerService.prototype.patch = function (Url, model, responseType, params, requestOptions) {
545
- var _this = this;
546
- if (requestOptions)
547
- this.requestOptions = requestOptions;
548
- var headers = new i1$1.HttpHeaders({
549
- 'Content-Type': 'application/json',
550
- 'Authorization': this.authService.authorizationHeaderValue(),
551
- });
552
- this.currentLanguage = localStorage.getItem('language');
553
- headers = headers.set('Accept-Language', this.currentLanguage.toString());
554
- headers = headers.set('ignore-cookies', 'true');
555
- if (!this.requestOptions.disableBlockUI)
556
- this.utilityService.startBlockUI();
557
- return this.http.patch(this.environmentService.getApiUrl() + Url, model, { headers: headers, params: params, responseType: this.requestOptions.responseType }).pipe(operators.takeUntil(this.onDestroy$), operators.tap(function (result) {
558
- if (!_this.requestOptions.disableBlockUI)
559
- _this.utilityService.stopBlockUI();
560
- }, function (error) {
561
- if (!_this.requestOptions.disableErrorHandler)
562
- _this.handleError(error);
563
- }), operators.map(function (data) {
564
- if (_this.requestOptions.castResponsetoClass)
565
- return classTransformer.plainToClass(responseType, data, { excludeExtraneousValues: true });
566
- else
567
- return data;
568
- }));
569
- };
570
- RequestHandlerService.prototype.download = function (Url, params, requestOptions) {
571
- var _this = this;
572
- if (requestOptions)
573
- this.requestOptions = requestOptions;
574
- var headers = this.getHeaders();
575
- if (!this.requestOptions.disableBlockUI)
576
- this.utilityService.startBlockUI();
577
- return this.http.get(this.environmentService.getApiUrl() + Url, { headers: headers, params: params, responseType: this.requestOptions.responseType }).pipe(operators.takeUntil(this.onDestroy$), operators.tap(function (result) {
578
- if (!_this.requestOptions.disableBlockUI)
579
- _this.utilityService.stopBlockUI();
580
- }, function (error) {
581
- if (!_this.requestOptions.disableErrorHandler)
582
- _this.handleError(error);
583
- }));
584
- };
585
- RequestHandlerService.prototype.destroyHandler = function () {
586
- this.onDestroy$.next();
587
- };
588
- RequestHandlerService.prototype.ngOnDestroy = function () {
589
- console.log("clearInterval");
590
- this.destroyHandler();
591
- };
592
- RequestHandlerService.prototype.handleError = function (err) {
593
- var isEnglish = this.utilityService.getCurrentLanguage() == "en";
594
- if (err.error instanceof ErrorEvent) {
595
- this.utilityService.notifyErrorMessage();
596
- }
597
- else {
598
- if (err.status == 400)
599
- rxjs.throwError(err); //error 400 is thrown to be catch by the Form component to handle Fluent validation errors
600
- else if (err.status == 401)
601
- this.router.navigate(["/Admin/account/login"]);
602
- else if (err.status == 403)
603
- this.utilityService.notifyErrorMessage(isEnglish ? "Sorry, You're not authorized to access this action" : "عذرا ليس لديك الصلاحيه لهذا الطلب");
604
- else if (err.status == 510)
605
- this.utilityService.notifyErrorMessage(isEnglish ? "Can not delete this item as it is related to others" : "لا يمكن حذف هذا العنصر لأنه مرتبط بعناصر أخرى");
606
- else if (err.status == 515)
607
- this.utilityService.notifyErrorMessage((err.error ? err.error.Message : err.message));
608
- else {
609
- console.log("error message is: " + (err.error ? err.error.Message : err.message));
610
- this.utilityService.notifyErrorMessage(this.utilityService.getResourceValue("ErrorMassage"));
611
- }
612
- }
613
- this.utilityService.stopBlockUI();
614
- };
615
- RequestHandlerService.prototype.getHeaders = function () {
616
- return new i1$1.HttpHeaders({
617
- 'Content-Type': 'application/json',
618
- 'Authorization': this.authService.authorizationHeaderValue(),
619
- 'Client-Local-Time-Zone': Intl.DateTimeFormat().resolvedOptions().timeZone,
620
- 'Accept-Language': localStorage.getItem('language'),
621
- 'ignore-cookies': 'true'
622
- });
623
- };
624
- return RequestHandlerService;
625
- }());
626
- RequestHandlerService.decorators = [
627
- { type: i0.Injectable }
628
- ];
629
- RequestHandlerService.ctorParameters = function () { return [
630
- { type: i1$1.HttpClient },
631
- { type: AuthService },
632
- { type: EnvironmentService },
633
- { type: UtilityService },
634
- { type: BBSFTranslateService },
635
- { type: i1$2.Router }
636
- ]; };
637
-
638
- var StylesBundleService = /** @class */ (function () {
639
- function StylesBundleService(document, translateService) {
640
- this.document = document;
641
- this.translateService = translateService;
642
- }
643
- StylesBundleService.prototype.loadThemes = function (lang, bundleEnglishName, bundleArabicName) {
644
- if (lang == "ar") {
645
- this.loadStyleBundle(bundleArabicName.toString());
646
- document.querySelector('html').setAttribute("b-lang", "ar"); //use b-lang instead of lang to fix firefox number inputs in Arabic locale
647
- document.querySelector('html').setAttribute("dir", "rtl");
648
- }
649
- else {
650
- this.loadStyleBundle(bundleEnglishName.toString());
651
- document.querySelector('html').setAttribute("b-lang", "en");
652
- document.querySelector('html').setAttribute("dir", "ltr");
653
- }
654
- };
655
- StylesBundleService.prototype.loadThemesColor = function (theme, bundleDarkName, bundleLightName) {
656
- if (theme == "Light")
657
- this.loadStyleBundle(bundleLightName.toString());
658
- else
659
- this.loadStyleBundle(bundleDarkName.toString());
660
- };
661
- StylesBundleService.prototype.loadStyleBundle = function (styleName) {
662
- var head = this.document.getElementsByTagName('head')[0];
663
- var themeLink = this.document.getElementById('client-theme');
664
- if (themeLink && themeLink.href.includes(styleName)) {
665
- return;
666
- }
667
- else if (themeLink && !themeLink.href.includes(styleName)) {
668
- themeLink.remove();
669
- }
670
- var style = this.document.createElement('link');
671
- style.id = 'client-theme';
672
- style.rel = 'stylesheet';
673
- style.href = "" + styleName;
674
- head.appendChild(style);
675
- };
676
- return StylesBundleService;
677
- }());
678
- StylesBundleService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function StylesBundleService_Factory() { return new StylesBundleService(i0__namespace.ɵɵinject(i1__namespace$1.DOCUMENT), i0__namespace.ɵɵinject(BBSFTranslateService)); }, token: StylesBundleService, providedIn: "root" });
679
- StylesBundleService.decorators = [
680
- { type: i0.Injectable, args: [{
681
- providedIn: 'root'
682
- },] }
683
- ];
684
- StylesBundleService.ctorParameters = function () { return [
685
- { type: Document, decorators: [{ type: i0.Inject, args: [i1$3.DOCUMENT,] }] },
686
- { type: BBSFTranslateService }
687
- ]; };
688
-
689
- var MasterLayoutService = /** @class */ (function () {
690
- function MasterLayoutService(router, http, authService, stylesBundleService, translate, environmentService) {
691
- this.router = router;
692
- this.http = http;
693
- this.authService = authService;
694
- this.stylesBundleService = stylesBundleService;
695
- this.translate = translate;
696
- this.environmentService = environmentService;
697
- this.ApiUrl = '/api/Home/';
698
- }
699
- MasterLayoutService.prototype.switchLang = function (lang, bundleEnglishName, bundleArabicName) {
700
- var _this = this;
701
- this.changeLanguage(lang).subscribe(function (result) {
702
- _this.updateUserInfo().subscribe(function (Value) {
703
- var UserInfoObject = Value;
704
- _this.authService.getUser();
705
- _this.authService.user.profile = Object.assign(_this.authService.user.profile, UserInfoObject);
706
- _this.authService.storUser(_this.authService.user);
707
- _this.stylesBundleService.loadThemes(lang, bundleEnglishName, bundleArabicName);
708
- localStorage.setItem('language', lang);
709
- _this.translate.use(lang);
710
- });
711
- });
712
- };
713
- MasterLayoutService.prototype.reloadComponent = function () {
714
- var currentUrl = this.router.url;
715
- this.router.routeReuseStrategy.shouldReuseRoute = function () { return false; };
716
- this.router.onSameUrlNavigation = 'reload';
717
- this.router.navigate([currentUrl]);
718
- };
719
- MasterLayoutService.prototype.changeLanguage = function (key) {
720
- var params = new i1$1.HttpParams();
721
- params = params.append('UserId', this.authService.user.profile.id);
722
- params = params.append('LanguageKey', key);
723
- return this.http.post(this.ApiUrl + 'UpdateLanguage', null, null, params);
724
- };
725
- MasterLayoutService.prototype.getUserClaims = function () {
726
- return this.http.get(this.ApiUrl + 'GetUserClaims', null, null);
727
- };
728
- MasterLayoutService.prototype.logError = function (error) {
729
- var params = new i1$1.HttpParams();
730
- params = params.append('error', error);
731
- return this.http.post(this.ApiUrl + 'LogError', null, null, params);
732
- };
733
- MasterLayoutService.prototype.updateUserInfo = function () {
734
- var isExternal = this.environmentService.getIsIdentityServerExternal().toLowerCase() == 'true';
735
- if (isExternal)
736
- return this.getUserClaims();
737
- return this.http.get('/connect/userinfo');
738
- };
739
- MasterLayoutService.prototype.switchRole = function (permissionSetID) {
740
- var _this = this;
741
- this.updateRole(permissionSetID).subscribe(function (result) {
742
- _this.updateUserInfo().subscribe(function (Value) {
743
- var UserInfoObject = Value;
744
- _this.authService.getUser();
745
- _this.authService.user.profile = Object.assign(_this.authService.user.profile, UserInfoObject);
746
- _this.authService.storUser(_this.authService.user);
747
- });
748
- });
749
- };
750
- MasterLayoutService.prototype.updateRole = function (permissionSetID) {
751
- var params = new i1$1.HttpParams();
752
- params = params.append('UserId', this.authService.user.profile.id);
753
- params = params.append('RoleID', permissionSetID);
754
- return this.http.post(this.ApiUrl + 'SwitchRole', null, null, params);
755
- };
756
- return MasterLayoutService;
757
- }());
758
- MasterLayoutService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MasterLayoutService_Factory() { return new MasterLayoutService(i0__namespace.ɵɵinject(i1__namespace$2.Router), i0__namespace.ɵɵinject(RequestHandlerService), i0__namespace.ɵɵinject(AuthService), i0__namespace.ɵɵinject(StylesBundleService), i0__namespace.ɵɵinject(i1__namespace.TranslateService), i0__namespace.ɵɵinject(EnvironmentService)); }, token: MasterLayoutService, providedIn: "root" });
759
- MasterLayoutService.decorators = [
760
- { type: i0.Injectable, args: [{
761
- providedIn: 'root',
762
- },] }
763
- ];
764
- MasterLayoutService.ctorParameters = function () { return [
765
- { type: i1$2.Router },
766
- { type: RequestHandlerService },
767
- { type: AuthService },
768
- { type: StylesBundleService },
769
- { type: i1.TranslateService },
770
- { type: EnvironmentService }
771
- ]; };
772
-
773
- var AuthService = /** @class */ (function () {
774
- function AuthService(injector, http, environmentService, translateService, router) {
775
- var _this = this;
776
- this.injector = injector;
777
- this.http = http;
778
- this.environmentService = environmentService;
779
- this.translateService = translateService;
780
- this.router = router;
781
- // Observable navItem source
782
- this._authNavStatusSource = new rxjs.BehaviorSubject(false);
783
- // Observable navItem stream
784
- this.authNavStatus$ = this._authNavStatusSource.asObservable();
785
- // Observable navItem source
786
- this._userSource = new rxjs.Subject();
787
- this.UserStatus$ = this._userSource.asObservable();
788
- this.manager = this.getUserManager();
789
- this.redirectUrl = '';
790
- this.manager.getUser().then(function (user) { return __awaiter(_this, void 0, void 0, function () {
791
- var _a, _b;
792
- return __generator(this, function (_c) {
793
- switch (_c.label) {
794
- case 0:
795
- this.manager.storeUser(user);
796
- AuthService.user = user;
797
- this.user = user;
798
- _b = (_a = this._authNavStatusSource).next;
799
- return [4 /*yield*/, this.isAuthenticated()];
800
- case 1:
801
- _b.apply(_a, [_c.sent()]);
802
- return [2 /*return*/];
803
- }
804
- });
805
- }); });
806
- this.manager.events.addAccessTokenExpired(function (_) {
807
- _this._authNavStatusSource.next(false);
808
- });
809
- }
810
- AuthService.prototype.getUserManager = function () {
811
- var user = null;
812
- var isExternal = this.environmentService.getIsIdentityServerExternal().toLowerCase() ==
813
- 'true';
814
- if (isExternal) {
815
- user = new oidcClient.UserManager({
816
- authority: this.environmentService.getIdentityServerUrl(),
817
- client_id: this.environmentService.getIsIdentityServerClientId(),
818
- client_secret: this.environmentService.getIsIdentityServerClientSecret(),
819
- redirect_uri: this.environmentService.getBaseUrl() +
820
- '/Admin/authentication/auth-callback',
821
- post_logout_redirect_uri: this.environmentService.getBaseUrl(),
822
- response_type: 'code',
823
- scope: 'openid profile email',
824
- filterProtocolClaims: true,
825
- loadUserInfo: true,
826
- automaticSilentRenew: true,
827
- silent_redirect_uri: this.environmentService.getBaseUrl() + '/assets/silent-callback.html',
828
- userStore: new oidcClient.WebStorageStateStore({ store: window.localStorage }),
829
- });
830
- }
831
- else {
832
- user = new oidcClient.UserManager({
833
- authority: this.environmentService.getIdentityServerUrl(),
834
- client_id: 'angular_spa',
835
- redirect_uri: this.environmentService.getBaseUrl() +
836
- '/Admin/authentication/auth-callback',
837
- post_logout_redirect_uri: this.environmentService.getBaseUrl(),
838
- response_type: 'id_token token',
839
- scope: 'openid profile email IdentityServerApi',
840
- filterProtocolClaims: true,
841
- loadUserInfo: true,
842
- automaticSilentRenew: true,
843
- silent_redirect_uri: this.environmentService.getBaseUrl() + '/assets/silent-callback.html',
844
- userStore: new oidcClient.WebStorageStateStore({ store: window.localStorage }),
845
- });
846
- }
847
- return user;
848
- };
849
- AuthService.prototype.login = function () {
850
- return this.manager.signinRedirect();
851
- };
852
- AuthService.prototype.getUser = function () {
853
- var _this = this;
854
- this.manager.getUser().then(function (user) { return __awaiter(_this, void 0, void 0, function () {
855
- var _a, _b;
856
- return __generator(this, function (_c) {
857
- switch (_c.label) {
858
- case 0:
859
- AuthService.user = user;
860
- this.user = user;
861
- _b = (_a = this._authNavStatusSource).next;
862
- return [4 /*yield*/, this.isAuthenticated()];
863
- case 1:
864
- _b.apply(_a, [_c.sent()]);
865
- return [2 /*return*/];
866
- }
867
- });
868
- }); });
869
- };
870
- AuthService.prototype.storUser = function (User) {
871
- this.manager.storeUser(User);
872
- };
873
- AuthService.prototype.revokeAccessToken = function () {
874
- this.manager.revokeAccessToken();
875
- };
876
- AuthService.prototype.signinSilent = function () {
877
- var x = this.manager.signinSilentCallback();
878
- x.then(function (s) {
879
- //console.log(s)
880
- });
881
- };
882
- AuthService.prototype.completeAuthentication = function () {
883
- return __awaiter(this, void 0, void 0, function () {
884
- var _a, _b, _c, isExternal, masterLayoutService, userClaims, _d, _e;
885
- return __generator(this, function (_f) {
886
- switch (_f.label) {
887
- case 0:
888
- _a = this;
889
- return [4 /*yield*/, this.manager.signinRedirectCallback()];
890
- case 1:
891
- _a.user = _f.sent();
892
- AuthService.user = this.user;
893
- this._userSource.next(AuthService.user);
894
- _c = (_b = this._authNavStatusSource).next;
895
- return [4 /*yield*/, this.isAuthenticated()];
896
- case 2:
897
- _c.apply(_b, [_f.sent()]);
898
- isExternal = this.environmentService.getIsIdentityServerExternal().toLowerCase() ==
899
- 'true';
900
- if (!isExternal) return [3 /*break*/, 4];
901
- masterLayoutService = this.injector.get(MasterLayoutService);
902
- return [4 /*yield*/, masterLayoutService
903
- .getUserClaims()
904
- .toPromise()
905
- .then(function (e) {
906
- AuthService.UserClaims = e;
907
- }, function (error) {
908
- console.log(error);
909
- })];
910
- case 3:
911
- userClaims = _f.sent();
912
- AuthService.user.profile = Object.assign(AuthService.user.profile, AuthService.UserClaims);
913
- _f.label = 4;
914
- case 4:
915
- this.storUser(AuthService.user);
916
- if (!localStorage.getItem('language') ||
917
- localStorage.getItem('language') == this.user.profile.locale)
918
- localStorage.setItem('language', this.user.profile.locale);
919
- if (!(this.translateService.currentLang != localStorage.getItem('language'))) return [3 /*break*/, 6];
920
- this.translateService.resetLang(this.translateService.currentLang);
921
- return [4 /*yield*/, this.translateService
922
- .reloadLang(localStorage.getItem('language'))
923
- .subscribe(function (res) {
924
- console.log(res);
925
- })];
926
- case 5:
927
- _f.sent();
928
- _f.label = 6;
929
- case 6:
930
- this._userSource.next(AuthService.user);
931
- _e = (_d = this._authNavStatusSource).next;
932
- return [4 /*yield*/, this.isAuthenticated()];
933
- case 7:
934
- _e.apply(_d, [_f.sent()]);
935
- this.user = AuthService.user;
936
- return [2 /*return*/];
937
- }
938
- });
939
- });
940
- };
941
- AuthService.prototype.refreshToken = function (token) {
942
- return __awaiter(this, void 0, void 0, function () {
943
- var httpOptions;
944
- var _this = this;
945
- return __generator(this, function (_a) {
946
- switch (_a.label) {
947
- case 0:
948
- httpOptions = {
949
- headers: new i1$1.HttpHeaders({
950
- 'Content-Type': 'application/json',
951
- Authorization: token,
952
- }),
953
- };
954
- this.manager.revokeAccessToken();
955
- return [4 /*yield*/, this.http
956
- .post(this.environmentService.getIdentityServerUrl() + "/users/refresh-token", httpOptions, { withCredentials: true })
957
- .subscribe(function (user) {
958
- _this._userSource.next(user);
959
- AuthService.user = user;
960
- _this.user = user;
961
- })];
962
- case 1: return [2 /*return*/, _a.sent()];
963
- }
964
- });
965
- });
966
- };
967
- AuthService.prototype.getCurrentUser = function () {
968
- return this.manager.getUser();
969
- };
970
- AuthService.prototype.isAuthenticated = function () {
971
- return __awaiter(this, void 0, void 0, function () {
972
- var user;
973
- return __generator(this, function (_a) {
974
- switch (_a.label) {
975
- case 0: return [4 /*yield*/, this.manager.getUser().then(function (user) {
976
- return user;
977
- })];
978
- case 1:
979
- user = _a.sent();
980
- return [2 /*return*/, this.user != null && !this.user.expired];
981
- }
982
- });
983
- });
984
- };
985
- AuthService.prototype.isUserInRole = function (allowedPermission) {
986
- var selectedPermissionSetID = Number.parseInt(this.user.profile['selectedpermissionsetid']);
987
- return allowedPermission.includes(selectedPermissionSetID);
988
- };
989
- AuthService.prototype.authorizationHeaderValue = function () {
990
- return AuthService.user
991
- ? AuthService.user.token_type + " " + AuthService.user.access_token
992
- : '';
993
- };
994
- AuthService.prototype.name = function () {
995
- return AuthService.user != null ? AuthService.user.profile.given_name : '';
996
- };
997
- AuthService.prototype.setUrl = function (url) {
998
- localStorage.setItem('redirectUrl', url);
999
- };
1000
- AuthService.prototype.getUrl = function () {
1001
- return localStorage.getItem('redirectUrl');
1002
- };
1003
- AuthService.prototype.signinSilentCallback = function () {
1004
- return __awaiter(this, void 0, void 0, function () {
1005
- var user;
1006
- return __generator(this, function (_a) {
1007
- switch (_a.label) {
1008
- case 0: return [4 /*yield*/, this.manager.signinSilentCallback()];
1009
- case 1:
1010
- user = _a.sent();
1011
- //await this.manager.storeUser(user);
1012
- AuthService.user = user;
1013
- console.log('Token from signinSilentCallback :' + AuthService.user);
1014
- this.user = user;
1015
- return [2 /*return*/];
1016
- }
1017
- });
1018
- });
1019
- };
1020
- AuthService.prototype.signout = function () {
1021
- return __awaiter(this, void 0, void 0, function () {
1022
- var isExternal;
1023
- return __generator(this, function (_a) {
1024
- switch (_a.label) {
1025
- case 0: return [4 /*yield*/, !this.isAuthenticated()];
1026
- case 1:
1027
- if (_a.sent())
1028
- this.router.navigate(['/Admin/account/login']), localStorage.clear();
1029
- isExternal = this.environmentService.getIsIdentityServerExternal().toLowerCase() ==
1030
- 'true';
1031
- if (!isExternal) return [3 /*break*/, 3];
1032
- return [4 /*yield*/, this.clearUserSessionClaims()
1033
- .toPromise()
1034
- .then(function (res) {
1035
- var result = res;
1036
- })];
1037
- case 2:
1038
- _a.sent();
1039
- _a.label = 3;
1040
- case 3: return [4 /*yield*/, this.manager.signoutRedirect()];
1041
- case 4:
1042
- _a.sent();
1043
- return [2 /*return*/];
1044
- }
1045
- });
1046
- });
1047
- };
1048
- AuthService.prototype.clearUserSessionClaims = function () {
1049
- var httpOptions = {
1050
- headers: new i1$1.HttpHeaders({
1051
- 'Content-Type': 'application/json',
1052
- }),
1053
- };
1054
- var ApiUrl = '/api/Home/';
1055
- return this.http.get(this.environmentService.getBaseUrl() + ApiUrl + 'ClearCurrentUserSession', httpOptions);
1056
- };
1057
- return AuthService;
1058
- }());
1059
- AuthService.user = null;
1060
- AuthService.UserClaims = null;
1061
- AuthService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function AuthService_Factory() { return new AuthService(i0__namespace.ɵɵinject(i0__namespace.INJECTOR), i0__namespace.ɵɵinject(i1__namespace$3.HttpClient), i0__namespace.ɵɵinject(EnvironmentService), i0__namespace.ɵɵinject(BBSFTranslateService), i0__namespace.ɵɵinject(i1__namespace$2.Router)); }, token: AuthService, providedIn: "root" });
1062
- AuthService.decorators = [
1063
- { type: i0.Injectable, args: [{
1064
- providedIn: 'root',
1065
- },] }
1066
- ];
1067
- AuthService.ctorParameters = function () { return [
1068
- { type: i0.Injector },
1069
- { type: i1$1.HttpClient },
1070
- { type: EnvironmentService },
1071
- { type: BBSFTranslateService },
1072
- { type: i1$2.Router }
1073
- ]; };
1074
-
1075
- var UtilityService = /** @class */ (function () {
1076
- function UtilityService(translator, authService, environmentService) {
1077
- this.translator = translator;
1078
- this.authService = authService;
1079
- this.environmentService = environmentService;
1080
- this.isCreatedBefore = false;
1081
- }
1082
- UtilityService.prototype.getResourceValue = function (Key) {
1083
- var ResourceValue = this.translator.instant(Key);
1084
- return ResourceValue;
1085
- };
1086
- UtilityService.prototype.getCurrentLanguage = function () {
1087
- var currentLanguage = this.environmentService.getDefaultLanguage();
1088
- var lang = localStorage.getItem('language');
1089
- if (lang)
1090
- currentLanguage = lang;
1091
- else
1092
- localStorage.setItem('language', currentLanguage);
1093
- return currentLanguage;
1094
- };
1095
- UtilityService.prototype.isCurrentLanguageEnglish = function () {
1096
- return this.getCurrentLanguage() == "en";
1097
- };
1098
- UtilityService.prototype.isCurrentLanguageArabic = function () {
1099
- return this.getCurrentLanguage() == "ar";
1100
- };
1101
- UtilityService.prototype.notifySuccessMessage = function (Message, title, time, showHeader) {
1102
- if (showHeader === void 0) { showHeader = true; }
1103
- var MessageTemplate = this.getResourceValue("SuccessMessage");
1104
- var titleTemplate;
1105
- if (Message) {
1106
- MessageTemplate = Message;
1107
- }
1108
- if (title) {
1109
- titleTemplate = title;
1110
- }
1111
- var toaster = exports.AppInjector.get(ngxToastr.ToastrService);
1112
- showHeader ? toaster.success(MessageTemplate, titleTemplate) : toaster.success(MessageTemplate);
1113
- };
1114
- UtilityService.prototype.notifyErrorMessage = function (Message, title, time, showHeader) {
1115
- if (showHeader === void 0) { showHeader = true; }
1116
- var MessageTemplate = this.getResourceValue("ErrorMessage");
1117
- var titleTemplate = this.getResourceValue("Error");
1118
- if (Message) {
1119
- MessageTemplate = Message;
1120
- }
1121
- if (title) {
1122
- titleTemplate = title;
1123
- }
1124
- var toaster = exports.AppInjector.get(ngxToastr.ToastrService);
1125
- showHeader ? toaster.error(MessageTemplate, titleTemplate) : toaster.error(MessageTemplate);
1126
- };
1127
- UtilityService.prototype.notifyWarningMessage = function (Message, title, time, showHeader) {
1128
- if (showHeader === void 0) { showHeader = true; }
1129
- var MessageTemplate = this.getResourceValue("WarningMessage");
1130
- var titleTemplate = this.getResourceValue("Warning");
1131
- if (Message) {
1132
- MessageTemplate = Message;
1133
- }
1134
- if (title) {
1135
- titleTemplate = title;
1136
- }
1137
- var toaster = exports.AppInjector.get(ngxToastr.ToastrService);
1138
- showHeader ? toaster.warning(MessageTemplate, titleTemplate) : toaster.warning(MessageTemplate);
1139
- };
1140
- UtilityService.prototype.startBlockUI = function () {
1141
- this.blockUI.start();
1142
- };
1143
- UtilityService.prototype.stopBlockUI = function () {
1144
- this.blockUI.stop();
1145
- };
1146
- return UtilityService;
1147
- }());
1148
- UtilityService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function UtilityService_Factory() { return new UtilityService(i0__namespace.ɵɵinject(BBSFTranslateService), i0__namespace.ɵɵinject(AuthService), i0__namespace.ɵɵinject(EnvironmentService)); }, token: UtilityService, providedIn: "root" });
1149
- UtilityService.decorators = [
1150
- { type: i0.Injectable, args: [{
1151
- providedIn: 'root'
1152
- },] }
1153
- ];
1154
- UtilityService.ctorParameters = function () { return [
1155
- { type: BBSFTranslateService },
1156
- { type: AuthService },
1157
- { type: EnvironmentService }
1158
- ]; };
1159
- __decorate([
1160
- ngBlockUi.BlockUI()
1161
- ], UtilityService.prototype, "blockUI", void 0);
1162
-
1163
- var ControlValidationService = /** @class */ (function () {
1164
- function ControlValidationService(utilityService) {
1165
- this.utilityService = utilityService;
1166
- this.requestOptions = new RequestOptionsModel();
1167
- this.isCreatedBefor = false;
1168
- }
1169
- ControlValidationService.prototype.showGlobalError = function (errorMessage, formId, deleteOld) {
1170
- var e_1, _a;
1171
- var globalErorrElement = document.getElementsByClassName('alert alert-InvalidValidation bg-light-danger text-danger');
1172
- if (globalErorrElement.length > 0) {
1173
- this.removeElementsByClass('alert alert-InvalidValidation bg-light-danger text-danger');
1174
- }
1175
- if (this.isCreatedBefor == true) {
1176
- this.removeElementsByClass('alert alert-InvalidValidation bg-light-danger text-danger');
1177
- }
1178
- // tslint:disable-next-line: prefer-const
1179
- if (!formId)
1180
- formId = "currentForm";
1181
- var object = document.getElementById(formId);
1182
- var tagName = 'div';
1183
- // tslint:disable-next-line: prefer-const
1184
- var elementToAppend = document.createElement(tagName); // Your tag name here
1185
- var message = "";
1186
- if (!errorMessage || (typeof errorMessage == "string")) {
1187
- if (localStorage.getItem('language') == "ar")
1188
- message = errorMessage ? errorMessage : "لديك بعص الأخطاء . من فضلك قم بالمراجعه ";
1189
- else
1190
- message = errorMessage ? errorMessage : "You have some validation errors. Please check below";
1191
- elementToAppend.innerHTML = "<ul class='list-unstyled m-0 py-3 d-flex align-items-center fs-6'><li><i class='fa fa-times-circle text-danger me-3 fs-2'></i>" + message + "</li></ul>";
1192
- elementToAppend.className += 'alert alert-InvalidValidation bg-light-danger text-danger';
1193
- elementToAppend.id += 'errorId';
1194
- // tslint:disable-next-line: prefer-for-of
1195
- var elementToAppen = elementToAppend.cloneNode(true);
1196
- // let targetElement = object.getElementsByClassName("b-control")[0];
1197
- object.insertBefore(elementToAppen, object.firstChild);
1198
- }
1199
- else {
1200
- elementToAppend.innerHTML = "<ul>";
1201
- try {
1202
- for (var errorMessage_1 = __values(errorMessage), errorMessage_1_1 = errorMessage_1.next(); !errorMessage_1_1.done; errorMessage_1_1 = errorMessage_1.next()) {
1203
- var iterator = errorMessage_1_1.value;
1204
- elementToAppend.innerHTML = "<li>" + iterator + "</li>";
1205
- }
1206
- }
1207
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1208
- finally {
1209
- try {
1210
- if (errorMessage_1_1 && !errorMessage_1_1.done && (_a = errorMessage_1.return)) _a.call(errorMessage_1);
1211
- }
1212
- finally { if (e_1) throw e_1.error; }
1213
- }
1214
- elementToAppend.innerHTML = "</ul>";
1215
- elementToAppend.className += 'alert alert-InvalidValidation bg-light-danger text-danger';
1216
- elementToAppend.id += 'errorId';
1217
- // tslint:disable-next-line: prefer-for-of
1218
- var elementToAppen = elementToAppend.cloneNode(true);
1219
- // let targetElement = object.getElementsByClassName("b-control")[0];
1220
- object.insertBefore(elementToAppen, object.firstChild);
1221
- }
1222
- this.isCreatedBefor = true;
1223
- };
1224
- ControlValidationService.prototype.RemoveGlobalError = function () {
1225
- var removedList = document.getElementsByClassName('alert alert-InvalidValidation bg-light-danger text-danger');
1226
- // tslint:disable-next-line: prefer-for-of
1227
- for (var index = 0; index < removedList.length; index++) {
1228
- var element = removedList[index];
1229
- element.remove();
1230
- }
1231
- this.isCreatedBefor = false;
1232
- };
1233
- ControlValidationService.prototype.showInputErro = function (errors) {
1234
- var e_2, _a;
1235
- // show error on top of form
1236
- this.showGlobalError();
1237
- // remove old error from server
1238
- this.removeElementsByClass('errortemplet');
1239
- // Looping in error Object
1240
- for (var key in errors) {
1241
- if (errors.hasOwnProperty(key)) {
1242
- try {
1243
- for (var _b = (e_2 = void 0, __values(errors[key])), _c = _b.next(); !_c.done; _c = _b.next()) {
1244
- var iterator = _c.value;
1245
- var input = document.querySelectorAll('[ng-reflect-name=' + key + ']')[0];
1246
- if (input.attributes['ng-reflect-name'].value === key) {
1247
- this.removeElementsByClass('erroclass-' + key);
1248
- var tagName = 'p';
1249
- var elementToAppend = document.createElement(tagName); // Your tag name here
1250
- elementToAppend.innerHTML = iterator;
1251
- elementToAppend.style.color = 'red';
1252
- elementToAppend.className += 'errortemplet erroclass-' + key;
1253
- var elementToappen = elementToAppend.cloneNode(true);
1254
- input.parentNode.insertBefore(elementToappen, input.lastChild);
1255
- break;
1256
- }
1257
- }
1258
- }
1259
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
1260
- finally {
1261
- try {
1262
- if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1263
- }
1264
- finally { if (e_2) throw e_2.error; }
1265
- }
1266
- }
1267
- }
1268
- };
1269
- ControlValidationService.prototype.removeElementsByClass = function (className) {
1270
- var elements = document.getElementsByClassName(className);
1271
- while (elements.length > 0) {
1272
- elements[0].parentNode.removeChild(elements[0]);
1273
- }
1274
- };
1275
- ControlValidationService.prototype.renderServerErrors = function (form, err, requestOptions, formId) {
1276
- var _this = this;
1277
- if (err.error == null) {
1278
- return;
1279
- }
1280
- var errorsArray = [];
1281
- this.requestOptions = requestOptions;
1282
- err.error.validation_errors.forEach(function (element) {
1283
- var fieldName = element.field;
1284
- var controlName = element.controlName;
1285
- var message = element.message;
1286
- if (form == null) {
1287
- _this.requestOptions.customErrorMessage ? _this.utilityService.notifyErrorMessage(_this.requestOptions.customErrorMessage) : _this.utilityService.notifyErrorMessage("" + message);
1288
- }
1289
- else if (controlName && !_this.hasControlName(form, controlName)) {
1290
- errorsArray.push(fieldName + ": " + message);
1291
- // this.showGlobalError(`${fieldName}: ${message}`,formId )
1292
- }
1293
- else {
1294
- _this.setFieldError(form, controlName, fieldName, message);
1295
- }
1296
- });
1297
- if (errorsArray.length > 0)
1298
- this.showGlobalError(errorsArray, formId);
1299
- };
1300
- ControlValidationService.prototype.hasControlName = function (form, controlName) {
1301
- var control = form.get(controlName);
1302
- return control != null;
1303
- };
1304
- ControlValidationService.prototype.setFieldError = function (form, controlName, fieldName, message) {
1305
- var control = null;
1306
- if (controlName)
1307
- control = form.get(controlName);
1308
- else
1309
- control = form.get(fieldName.split('.')[0]);
1310
- var errors = { "errorMassage": message };
1311
- var fieldNameArray = fieldName.split('.');
1312
- if (fieldNameArray.length >= 1) {
1313
- switch (fieldNameArray[fieldNameArray.length - 1].toLocaleLowerCase()) {
1314
- case "english":
1315
- var englishControl = control.get("English");
1316
- englishControl.setErrors(errors);
1317
- break;
1318
- case "arabic":
1319
- var arabicControl = control.get("Arabic");
1320
- arabicControl.setErrors(errors);
1321
- break;
1322
- default:
1323
- control.setErrors(errors);
1324
- }
1325
- }
1326
- else if (fieldNameArray.length == 1) {
1327
- control.setErrors(errors);
1328
- }
1329
- else {
1330
- this.requestOptions.customErrorMessage ? this.utilityService.notifyErrorMessage(this.requestOptions.customErrorMessage) : this.utilityService.notifyErrorMessage("" + message);
1331
- }
1332
- };
1333
- return ControlValidationService;
1334
- }());
1335
- ControlValidationService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function ControlValidationService_Factory() { return new ControlValidationService(i0__namespace.ɵɵinject(UtilityService)); }, token: ControlValidationService, providedIn: "root" });
1336
- ControlValidationService.decorators = [
1337
- { type: i0.Injectable, args: [{
1338
- providedIn: 'root'
1339
- },] }
1340
- ];
1341
- ControlValidationService.ctorParameters = function () { return [
1342
- { type: UtilityService }
1343
- ]; };
1344
- __decorate([
1345
- ngBlockUi.BlockUI()
1346
- ], ControlValidationService.prototype, "blockUI", void 0);
1347
-
1348
- var ConfigurationService = /** @class */ (function () {
1349
- function ConfigurationService(httpClient) {
1350
- this.httpClient = httpClient;
1351
- this.httpClient.get("./assets/config/configurations.json").subscribe(function (data) {
1352
- ConfigurationService.JsonData = data;
1353
- });
1354
- }
1355
- ConfigurationService.prototype.getConfigurationValue = function (key) {
1356
- return ConfigurationService.JsonData[key];
1357
- };
1358
- return ConfigurationService;
1359
- }());
1360
- ConfigurationService.JsonData = [];
1361
- ConfigurationService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function ConfigurationService_Factory() { return new ConfigurationService(i0__namespace.ɵɵinject(i1__namespace$3.HttpClient)); }, token: ConfigurationService, providedIn: "root" });
1362
- ConfigurationService.decorators = [
1363
- { type: i0.Injectable, args: [{
1364
- providedIn: 'root'
1365
- },] }
1366
- ];
1367
- ConfigurationService.ctorParameters = function () { return [
1368
- { type: i1$1.HttpClient }
1369
- ]; };
1370
-
1371
- exports.AppInjector = void 0;
1372
- var BBSFUtilitiesModule = /** @class */ (function () {
1373
- function BBSFUtilitiesModule(injector) {
1374
- this.injector = injector;
1375
- exports.AppInjector = this.injector;
1376
- }
1377
- return BBSFUtilitiesModule;
1378
- }());
1379
- BBSFUtilitiesModule.decorators = [
1380
- { type: i0.NgModule, args: [{
1381
- declarations: [],
1382
- imports: [
1383
- i1$3.CommonModule,
1384
- ngBlockUi.BlockUIModule.forRoot(),
1385
- http.HttpModule,
1386
- i1$2.RouterModule,
1387
- ngxToastr.ToastrModule.forRoot(),
1388
- ],
1389
- exports: [],
1390
- providers: [
1391
- UtilityService,
1392
- EnvironmentService,
1393
- AuthService,
1394
- RequestHandlerService,
1395
- StylesBundleService,
1396
- i1.TranslateService,
1397
- BBSFTranslateService,
1398
- ControlValidationService,
1399
- MasterLayoutService,
1400
- ConfigurationService
1401
- ]
1402
- },] }
1403
- ];
1404
- BBSFUtilitiesModule.ctorParameters = function () { return [
1405
- { type: i0.Injector }
1406
- ]; };
1407
-
1408
- var TranslationResolverService = /** @class */ (function () {
1409
- function TranslationResolverService(translateService) {
1410
- this.translateService = translateService;
1411
- }
1412
- TranslationResolverService.prototype.resolve = function () {
1413
- return this.translateService.getTranslation(this.translateService.currentLang);
1414
- };
1415
- return TranslationResolverService;
1416
- }());
1417
- TranslationResolverService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function TranslationResolverService_Factory() { return new TranslationResolverService(i0__namespace.ɵɵinject(BBSFTranslateService)); }, token: TranslationResolverService, providedIn: "root" });
1418
- TranslationResolverService.decorators = [
1419
- { type: i0.Injectable, args: [{ providedIn: 'root' },] }
1420
- ];
1421
- TranslationResolverService.ctorParameters = function () { return [
1422
- { type: BBSFTranslateService }
1423
- ]; };
1424
-
1425
- var AppearanceConfigurationService = /** @class */ (function () {
1426
- function AppearanceConfigurationService(configService) {
1427
- this.configService = configService;
1428
- }
1429
- AppearanceConfigurationService.prototype.getLayoutTheme = function () {
1430
- return this.configService.getConfigurationValue('AnonymousLayout_Theme');
1431
- };
1432
- AppearanceConfigurationService.prototype.getFooterText = function () {
1433
- return this.configService.getConfigurationValue('AnonymousLayout_FooterText');
1434
- };
1435
- AppearanceConfigurationService.prototype.getPageTitle = function () {
1436
- return this.configService.getConfigurationValue('AnonymousLayout_PageTitle');
1437
- };
1438
- AppearanceConfigurationService.prototype.getFavIcon = function () {
1439
- return this.configService.getConfigurationValue('AnonymousLayout_FavIcon');
1440
- };
1441
- AppearanceConfigurationService.prototype.getCustomStyles = function () {
1442
- return this.configService.getConfigurationValue('AnonymousLayout_CustomStyles');
1443
- };
1444
- AppearanceConfigurationService.prototype.getLogo = function () {
1445
- return this.configService.getConfigurationValue('AnonymousLayout_Logo');
1446
- };
1447
- return AppearanceConfigurationService;
1448
- }());
1449
- AppearanceConfigurationService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function AppearanceConfigurationService_Factory() { return new AppearanceConfigurationService(i0__namespace.ɵɵinject(ConfigurationService)); }, token: AppearanceConfigurationService, providedIn: "root" });
1450
- AppearanceConfigurationService.decorators = [
1451
- { type: i0.Injectable, args: [{
1452
- providedIn: 'root'
1453
- },] }
1454
- ];
1455
- AppearanceConfigurationService.ctorParameters = function () { return [
1456
- { type: ConfigurationService }
1457
- ]; };
1458
-
1459
- /*
1460
- * Public API Surface of @bnsights/bbsf-utilities
1461
- */
1462
-
1463
- /**
1464
- * Generated bundle index. Do not edit.
1465
- */
1466
-
1467
- exports.AppearanceConfigurationService = AppearanceConfigurationService;
1468
- exports.AuthService = AuthService;
1469
- exports.BBSFTranslateService = BBSFTranslateService;
1470
- exports.BBSFUtilitiesModule = BBSFUtilitiesModule;
1471
- exports.ConfigurationService = ConfigurationService;
1472
- exports.ControlValidationService = ControlValidationService;
1473
- exports.EnvironmentService = EnvironmentService;
1474
- exports.MasterLayoutService = MasterLayoutService;
1475
- exports.RequestHandlerService = RequestHandlerService;
1476
- exports.RequestOptionsModel = RequestOptionsModel;
1477
- exports.StylesBundleService = StylesBundleService;
1478
- exports.TranslationResolverService = TranslationResolverService;
1479
- exports.UtilityService = UtilityService;
1480
- exports.environment = environment;
1481
-
1482
- Object.defineProperty(exports, '__esModule', { value: true });
1483
-
1484
- }));
1485
- //# sourceMappingURL=bnsights-bbsf-utilities.umd.js.map