@frontegg/js 6.149.0 → 6.150.0
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.
- package/FronteggApp/FronteggApp.d.ts +23 -5
- package/FronteggApp/FronteggApp.js +44 -12
- package/index.js +1 -1
- package/node/FronteggApp/FronteggApp.js +43 -11
- package/node/index.js +1 -1
- package/node/version.js +1 -1
- package/package.json +2 -2
- package/umd/frontegg.development.js +1381 -95
- package/umd/frontegg.production.min.js +1 -1
- package/umd/frontegg.production.min.js.LICENSE.txt +1 -1
- package/version.js +1 -1
|
@@ -294,26 +294,29 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
294
294
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
295
295
|
/* harmony export */ "FronteggApp": () => (/* binding */ FronteggApp)
|
|
296
296
|
/* harmony export */ });
|
|
297
|
-
/* harmony import */ var
|
|
298
|
-
/* harmony import */ var
|
|
299
|
-
/* harmony import */ var
|
|
300
|
-
/* harmony import */ var
|
|
301
|
-
/* harmony import */ var
|
|
302
|
-
/* harmony import */ var
|
|
303
|
-
/* harmony import */ var
|
|
304
|
-
/* harmony import */ var
|
|
305
|
-
/* harmony import */ var
|
|
306
|
-
/* harmony import */ var
|
|
307
|
-
/* harmony import */ var
|
|
308
|
-
/* harmony import */ var
|
|
309
|
-
/* harmony import */ var
|
|
310
|
-
/* harmony import */ var
|
|
311
|
-
/* harmony import */ var
|
|
312
|
-
/* harmony import */ var
|
|
313
|
-
/* harmony import */ var
|
|
314
|
-
/* harmony import */ var
|
|
315
|
-
/* harmony import */ var
|
|
316
|
-
/* harmony import */ var
|
|
297
|
+
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "../../node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
|
|
298
|
+
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "../../node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
299
|
+
/* harmony import */ var _babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/asyncToGenerator */ "../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");
|
|
300
|
+
/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "../../node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
|
|
301
|
+
/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "../../node_modules/@babel/runtime/helpers/esm/createClass.js");
|
|
302
|
+
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/regenerator */ "../../node_modules/@babel/runtime/regenerator/index.js");
|
|
303
|
+
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5__);
|
|
304
|
+
/* harmony import */ var _frontegg_redux_store__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @frontegg/redux-store */ "../../dist/@frontegg/redux-store/toolkit/index.js");
|
|
305
|
+
/* harmony import */ var _frontegg_redux_store__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @frontegg/redux-store */ "../../dist/@frontegg/redux-store/auth/Entitlements/utils.js");
|
|
306
|
+
/* harmony import */ var _frontegg_types__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @frontegg/types */ "../../dist/@frontegg/types/Metadata/index.js");
|
|
307
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils */ "../../dist/@frontegg/js/utils/index.js");
|
|
308
|
+
/* harmony import */ var _AppHolder__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../AppHolder */ "../../dist/@frontegg/js/AppHolder/index.js");
|
|
309
|
+
/* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @frontegg/rest-api */ "../../node_modules/@frontegg/rest-api/fetch.js");
|
|
310
|
+
/* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @frontegg/rest-api */ "../../node_modules/@frontegg/rest-api/auth/constants.js");
|
|
311
|
+
/* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @frontegg/rest-api */ "../../node_modules/@frontegg/rest-api/ContextHolder/index.js");
|
|
312
|
+
/* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @frontegg/rest-api */ "../../node_modules/@frontegg/rest-api/interfaces.js");
|
|
313
|
+
/* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @frontegg/rest-api */ "../../node_modules/@frontegg/rest-api/feature-flags/index.js");
|
|
314
|
+
/* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @frontegg/rest-api */ "../../node_modules/@frontegg/rest-api/index.js");
|
|
315
|
+
/* harmony import */ var _frontegg_types__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @frontegg/types */ "../../dist/@frontegg/types/index.js");
|
|
316
|
+
/* harmony import */ var _version__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../version */ "../../dist/@frontegg/js/version.js");
|
|
317
|
+
/* harmony import */ var _utils_mockFlagsList__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils/mockFlagsList */ "../../dist/@frontegg/js/utils/mockFlagsList.js");
|
|
318
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./utils */ "../../dist/@frontegg/js/FronteggApp/utils.js");
|
|
319
|
+
|
|
317
320
|
|
|
318
321
|
|
|
319
322
|
|
|
@@ -337,12 +340,12 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
337
340
|
_options$authOptions;
|
|
338
341
|
var iframeRendering = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
339
342
|
var allowMultipleRenderers = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
|
340
|
-
(0,
|
|
343
|
+
(0,_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_3__["default"])(this, FronteggApp);
|
|
341
344
|
this.name = void 0;
|
|
342
345
|
this.iframeRendering = void 0;
|
|
343
346
|
this.options = void 0;
|
|
344
347
|
this.loading = true;
|
|
345
|
-
this.cdnUrl = "https://assets.frontegg.com/admin-box/".concat(
|
|
348
|
+
this.cdnUrl = "https://assets.frontegg.com/admin-box/".concat(_version__WEBPACK_IMPORTED_MODULE_8__["default"].cdnVersion);
|
|
346
349
|
this.customElementName = '';
|
|
347
350
|
this.adminPortalEl = void 0;
|
|
348
351
|
this.adminPortalRenderer = void 0;
|
|
@@ -356,12 +359,12 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
356
359
|
this.store = void 0;
|
|
357
360
|
this.loadingListeners = [];
|
|
358
361
|
this.updateLocalizations = void 0;
|
|
359
|
-
this.loadAdminBoxMetadata = /*#__PURE__*/(0,
|
|
362
|
+
this.loadAdminBoxMetadata = /*#__PURE__*/(0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().mark(function _callee() {
|
|
360
363
|
var Get, _data$rows$0$configur, _data$rows, _data$rows$, data;
|
|
361
|
-
return
|
|
364
|
+
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().wrap(function _callee$(_context) {
|
|
362
365
|
while (1) switch (_context.prev = _context.next) {
|
|
363
366
|
case 0:
|
|
364
|
-
Get =
|
|
367
|
+
Get = _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_11__.Get;
|
|
365
368
|
if (_this.options.metadata) {
|
|
366
369
|
_context.next = 12;
|
|
367
370
|
break;
|
|
@@ -381,17 +384,17 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
381
384
|
_context.t0 = _context["catch"](2);
|
|
382
385
|
console.error('failed to get admin portal metadata', _context.t0);
|
|
383
386
|
case 12:
|
|
384
|
-
|
|
387
|
+
_frontegg_types__WEBPACK_IMPORTED_MODULE_12__.Metadata.set(_this.options.metadata, _this.name);
|
|
385
388
|
case 13:
|
|
386
389
|
case "end":
|
|
387
390
|
return _context.stop();
|
|
388
391
|
}
|
|
389
392
|
}, _callee, null, [[2, 9]]);
|
|
390
393
|
}));
|
|
391
|
-
this.requestAuthorize = /*#__PURE__*/(0,
|
|
394
|
+
this.requestAuthorize = /*#__PURE__*/(0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().mark(function _callee2() {
|
|
392
395
|
var _this$options$authOpt, _this$options$authOpt2;
|
|
393
396
|
var shouldRequestHostedLoginAuthorize;
|
|
394
|
-
return
|
|
397
|
+
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().wrap(function _callee2$(_context2) {
|
|
395
398
|
while (1) switch (_context2.prev = _context2.next) {
|
|
396
399
|
case 0:
|
|
397
400
|
shouldRequestHostedLoginAuthorize = (_this$options$authOpt = _this.options.authOptions) == null ? void 0 : (_this$options$authOpt2 = _this$options$authOpt.hostedLoginOptions) == null ? void 0 : _this$options$authOpt2.loadUserOnFirstLoad;
|
|
@@ -417,28 +420,28 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
417
420
|
}
|
|
418
421
|
}, _callee2);
|
|
419
422
|
}));
|
|
420
|
-
this.loadFeatureFlags = /*#__PURE__*/(0,
|
|
423
|
+
this.loadFeatureFlags = /*#__PURE__*/(0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().mark(function _callee3() {
|
|
421
424
|
var flags;
|
|
422
|
-
return
|
|
425
|
+
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().wrap(function _callee3$(_context3) {
|
|
423
426
|
while (1) switch (_context3.prev = _context3.next) {
|
|
424
427
|
case 0:
|
|
425
428
|
if (!(_this.options.previewMode || _this.options.builderMode)) {
|
|
426
429
|
_context3.next = 4;
|
|
427
430
|
break;
|
|
428
431
|
}
|
|
429
|
-
|
|
432
|
+
_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_13__.FeatureFlags.set(_utils_mockFlagsList__WEBPACK_IMPORTED_MODULE_9__.mockFlagsList, _this.name);
|
|
430
433
|
_context3.next = 15;
|
|
431
434
|
break;
|
|
432
435
|
case 4:
|
|
433
436
|
_context3.prev = 4;
|
|
434
437
|
_context3.next = 7;
|
|
435
|
-
return
|
|
438
|
+
return _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_13__.loadFeatureFlags();
|
|
436
439
|
case 7:
|
|
437
440
|
flags = _context3.sent;
|
|
438
441
|
if (_this.options.overrideFeatureFlags) {
|
|
439
442
|
Object.assign(flags, _this.options.overrideFeatureFlags);
|
|
440
443
|
}
|
|
441
|
-
|
|
444
|
+
_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_13__.FeatureFlags.set(flags, _this.name);
|
|
442
445
|
_context3.next = 15;
|
|
443
446
|
break;
|
|
444
447
|
case 12:
|
|
@@ -452,7 +455,10 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
452
455
|
}, _callee3, null, [[4, 12]]);
|
|
453
456
|
}));
|
|
454
457
|
this.setFeatureFlagsForPreview = function (previewFeatureFlags) {
|
|
455
|
-
|
|
458
|
+
_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_13__.FeatureFlags.set((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, _utils_mockFlagsList__WEBPACK_IMPORTED_MODULE_9__.mockFlagsList, previewFeatureFlags), _this.name);
|
|
459
|
+
};
|
|
460
|
+
this.queryFeatureFlags = function (flags) {
|
|
461
|
+
return _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_13__.FeatureFlags.getFeatureFlags(flags, _this.name);
|
|
456
462
|
};
|
|
457
463
|
this.updateLocalizationsSetter = function (localizationUpdateFn) {
|
|
458
464
|
_this.updateLocalizations = localizationUpdateFn;
|
|
@@ -461,12 +467,31 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
461
467
|
var _this$store$getState$;
|
|
462
468
|
return (_this$store$getState$ = _this.store.getState().auth.user) == null ? void 0 : _this$store$getState$.entitlements;
|
|
463
469
|
};
|
|
464
|
-
|
|
470
|
+
this.getUserFromStore = function () {
|
|
471
|
+
return _this.store.getState().auth.user;
|
|
472
|
+
};
|
|
473
|
+
this.getEntitlementsQueryData = function (customAttributes) {
|
|
474
|
+
var user = _this.getUserFromStore();
|
|
475
|
+
var entitlements = _this.getEntitlementsFromStore();
|
|
476
|
+
var attributes = {
|
|
477
|
+
custom: customAttributes,
|
|
478
|
+
jwt: user
|
|
479
|
+
};
|
|
480
|
+
var _this$queryFeatureFla = _this.queryFeatureFlags([_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_14__.USE_ENTITLEMENTS_V2_ENDPOINT_FF]),
|
|
481
|
+
_this$queryFeatureFla2 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__["default"])(_this$queryFeatureFla, 1),
|
|
482
|
+
useEntitlementsV2 = _this$queryFeatureFla2[0];
|
|
483
|
+
return {
|
|
484
|
+
entitlements: entitlements,
|
|
485
|
+
attributes: attributes,
|
|
486
|
+
isV2: useEntitlementsV2
|
|
487
|
+
};
|
|
488
|
+
};
|
|
489
|
+
var appName = (0,_utils__WEBPACK_IMPORTED_MODULE_6__.formatName)(name);
|
|
465
490
|
var customElementName = "frontegg-app-".concat(appName);
|
|
466
491
|
this.iframeRendering = iframeRendering;
|
|
467
492
|
this.name = appName;
|
|
468
|
-
this.options = (0,
|
|
469
|
-
contextOptions: (0,
|
|
493
|
+
this.options = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, _options, {
|
|
494
|
+
contextOptions: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({
|
|
470
495
|
requestCredentials: 'include'
|
|
471
496
|
}, _options.contextOptions)
|
|
472
497
|
});
|
|
@@ -474,7 +499,7 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
474
499
|
this.cdnUrl = this.options.cdnUrl;
|
|
475
500
|
}
|
|
476
501
|
this.customElementName = customElementName;
|
|
477
|
-
var authOptions = this.options.authOptions ? (0,
|
|
502
|
+
var authOptions = this.options.authOptions ? (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, this.options.authOptions, {
|
|
478
503
|
hostedLoginBox: this.options.hostedLoginBox
|
|
479
504
|
}) : {
|
|
480
505
|
hostedLoginBox: this.options.hostedLoginBox
|
|
@@ -487,7 +512,7 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
487
512
|
}
|
|
488
513
|
} else {
|
|
489
514
|
var _this$options$authOpt4, _this$options$auditsO;
|
|
490
|
-
this.store = (0,
|
|
515
|
+
this.store = (0,_frontegg_redux_store__WEBPACK_IMPORTED_MODULE_15__.createFronteggStore)({
|
|
491
516
|
context: this.options.contextOptions,
|
|
492
517
|
appName: this.name
|
|
493
518
|
}, this, this.options.previewMode, authOptions, {
|
|
@@ -495,35 +520,35 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
495
520
|
audits: (_this$options$auditsO = this.options.auditsOptions) != null ? _this$options$auditsO : {}
|
|
496
521
|
}, false, this.options.urlStrategy);
|
|
497
522
|
}
|
|
498
|
-
|
|
523
|
+
_AppHolder__WEBPACK_IMPORTED_MODULE_7__.AppHolder.setInstance(appName, this);
|
|
499
524
|
this.setEntitlementsOptions(_options.entitlementsOptions);
|
|
500
525
|
this.setSessionContext({
|
|
501
526
|
enableSessionPerTenant: (_options$authOptions = _options.authOptions) == null ? void 0 : _options$authOptions.enableSessionPerTenant
|
|
502
527
|
});
|
|
503
528
|
|
|
504
529
|
// for feature flags (for entitlements)
|
|
505
|
-
|
|
530
|
+
_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_16__.ContextHolder.setAppName(appName);
|
|
506
531
|
}
|
|
507
532
|
|
|
508
533
|
/**
|
|
509
534
|
* Set entitlements related options in context holder according to frontegg options
|
|
510
535
|
* @param entitlementsOptions - entitlements options from frontegg options
|
|
511
536
|
*/
|
|
512
|
-
(0,
|
|
537
|
+
(0,_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_4__["default"])(FronteggApp, [{
|
|
513
538
|
key: "setEntitlementsOptions",
|
|
514
539
|
value: function setEntitlementsOptions(entitlementsOptions) {
|
|
515
|
-
|
|
540
|
+
_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_16__.ContextHolder.setEntitlementsOptions((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, entitlementsOptions));
|
|
516
541
|
}
|
|
517
542
|
}, {
|
|
518
543
|
key: "setSessionContext",
|
|
519
544
|
value: function setSessionContext(sessionContext) {
|
|
520
|
-
|
|
545
|
+
_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_16__.ContextHolder.setSessionContext((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, sessionContext));
|
|
521
546
|
}
|
|
522
547
|
}, {
|
|
523
548
|
key: "initContainers",
|
|
524
549
|
value: function () {
|
|
525
|
-
var _initContainers = (0,
|
|
526
|
-
return
|
|
550
|
+
var _initContainers = (0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().mark(function _callee4(elements) {
|
|
551
|
+
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().wrap(function _callee4$(_context4) {
|
|
527
552
|
while (1) switch (_context4.prev = _context4.next) {
|
|
528
553
|
case 0:
|
|
529
554
|
this.adminPortalEl = elements.adminPortalEl;
|
|
@@ -549,7 +574,7 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
549
574
|
case 11:
|
|
550
575
|
if (!this.options.previewMode && !this.options.customLoginBox) {
|
|
551
576
|
this.loadLoginBox();
|
|
552
|
-
(0,
|
|
577
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_10__.loadGTM)(this.name);
|
|
553
578
|
}
|
|
554
579
|
if (!this.options.lazyLoadAdminPortal) {
|
|
555
580
|
this.loadScript('FronteggAdminPortal');
|
|
@@ -568,7 +593,7 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
568
593
|
}, {
|
|
569
594
|
key: "updateMetadata",
|
|
570
595
|
value: function updateMetadata(metadata) {
|
|
571
|
-
|
|
596
|
+
_frontegg_types__WEBPACK_IMPORTED_MODULE_12__.Metadata.set(metadata, this.name);
|
|
572
597
|
if (metadata != null && metadata.localizations) {
|
|
573
598
|
var _this$updateLocalizat;
|
|
574
599
|
(_this$updateLocalizat = this.updateLocalizations) == null ? void 0 : _this$updateLocalizat.call(this, metadata.localizations);
|
|
@@ -644,8 +669,8 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
644
669
|
script.onload = function () {
|
|
645
670
|
if (window["".concat(component, "Init")]) {
|
|
646
671
|
resolve(window["".concat(component, "Init")]({
|
|
647
|
-
FronteggRestApi:
|
|
648
|
-
FronteggTypes:
|
|
672
|
+
FronteggRestApi: _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_17__,
|
|
673
|
+
FronteggTypes: _frontegg_types__WEBPACK_IMPORTED_MODULE_18__
|
|
649
674
|
}));
|
|
650
675
|
} else {
|
|
651
676
|
resolve(window[component]);
|
|
@@ -662,9 +687,9 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
662
687
|
}, {
|
|
663
688
|
key: "loadLoginBox",
|
|
664
689
|
value: function () {
|
|
665
|
-
var _loadLoginBox = (0,
|
|
690
|
+
var _loadLoginBox = (0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().mark(function _callee5() {
|
|
666
691
|
var FronteggLoginBox;
|
|
667
|
-
return
|
|
692
|
+
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().wrap(function _callee5$(_context5) {
|
|
668
693
|
while (1) switch (_context5.prev = _context5.next) {
|
|
669
694
|
case 0:
|
|
670
695
|
_context5.next = 2;
|
|
@@ -698,12 +723,12 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
698
723
|
}, {
|
|
699
724
|
key: "showAdminPortal",
|
|
700
725
|
value: function () {
|
|
701
|
-
var _showAdminPortal = (0,
|
|
726
|
+
var _showAdminPortal = (0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().mark(function _callee6() {
|
|
702
727
|
var FronteggAdminPortal;
|
|
703
|
-
return
|
|
728
|
+
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().wrap(function _callee6$(_context6) {
|
|
704
729
|
while (1) switch (_context6.prev = _context6.next) {
|
|
705
730
|
case 0:
|
|
706
|
-
|
|
731
|
+
_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_16__.ContextHolder.setRequestSource(_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_19__.RequestSource.AdminPortal);
|
|
707
732
|
_context6.next = 3;
|
|
708
733
|
return this.loadScript('FronteggAdminPortal');
|
|
709
734
|
case 3:
|
|
@@ -731,8 +756,8 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
731
756
|
var searchParams = new URLSearchParams(window.location.search);
|
|
732
757
|
(_this$adminPortalRend = this.adminPortalRenderer) == null ? void 0 : _this$adminPortalRend.unmount();
|
|
733
758
|
// unmount is removing url search params, therefore we need to restore them after unmount
|
|
734
|
-
(0,
|
|
735
|
-
|
|
759
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_6__.restoreSearchParams)(searchParams);
|
|
760
|
+
_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_16__.ContextHolder.setRequestSource(null);
|
|
736
761
|
} catch (e) {
|
|
737
762
|
console.error('Failed to unmount admin portal', e);
|
|
738
763
|
}
|
|
@@ -740,16 +765,16 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
740
765
|
}, {
|
|
741
766
|
key: "showCheckoutDialog",
|
|
742
767
|
value: function () {
|
|
743
|
-
var _showCheckoutDialog = (0,
|
|
768
|
+
var _showCheckoutDialog = (0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().mark(function _callee7(opts) {
|
|
744
769
|
var FronteggAdminPortal;
|
|
745
|
-
return
|
|
770
|
+
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().wrap(function _callee7$(_context7) {
|
|
746
771
|
while (1) switch (_context7.prev = _context7.next) {
|
|
747
772
|
case 0:
|
|
748
773
|
_context7.next = 2;
|
|
749
774
|
return this.loadScript('FronteggAdminPortal');
|
|
750
775
|
case 2:
|
|
751
776
|
FronteggAdminPortal = _context7.sent;
|
|
752
|
-
this.checkoutDialogRenderer = FronteggAdminPortal.renderCheckoutDialog(this.checkoutDialogEl, (0,
|
|
777
|
+
this.checkoutDialogRenderer = FronteggAdminPortal.renderCheckoutDialog(this.checkoutDialogEl, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({
|
|
753
778
|
injector: this
|
|
754
779
|
}, opts, {
|
|
755
780
|
options: this.options
|
|
@@ -783,40 +808,49 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
783
808
|
key: "getFeatureEntitlements",
|
|
784
809
|
value:
|
|
785
810
|
/**
|
|
786
|
-
@param key
|
|
811
|
+
@param key feature key
|
|
812
|
+
@param customAttributes user attributes
|
|
787
813
|
@returns if the user is entitled to the given feature. Attaching the justification if not
|
|
788
814
|
@throws when entitlement is not enabled via frontegg options
|
|
789
815
|
*/
|
|
790
|
-
function getFeatureEntitlements(key) {
|
|
791
|
-
var
|
|
792
|
-
|
|
816
|
+
function getFeatureEntitlements(key, customAttributes) {
|
|
817
|
+
var _this$getEntitlements = this.getEntitlementsQueryData(customAttributes),
|
|
818
|
+
entitlements = _this$getEntitlements.entitlements,
|
|
819
|
+
attributes = _this$getEntitlements.attributes,
|
|
820
|
+
isV2 = _this$getEntitlements.isV2;
|
|
821
|
+
return (0,_frontegg_redux_store__WEBPACK_IMPORTED_MODULE_20__.getFeatureEntitlements)(entitlements, key, attributes, isV2);
|
|
793
822
|
}
|
|
794
823
|
|
|
795
824
|
/**
|
|
796
|
-
@param key
|
|
825
|
+
@param key permission key
|
|
826
|
+
@param customAttributes user attributes
|
|
797
827
|
@returns if the user is entitled to the given permission. Attaching the justification if not
|
|
798
828
|
@throws when entitlement is not enabled via frontegg options
|
|
799
829
|
*/
|
|
800
830
|
}, {
|
|
801
831
|
key: "getPermissionEntitlements",
|
|
802
|
-
value: function getPermissionEntitlements(key) {
|
|
803
|
-
var
|
|
804
|
-
|
|
832
|
+
value: function getPermissionEntitlements(key, customAttributes) {
|
|
833
|
+
var _this$getEntitlements2 = this.getEntitlementsQueryData(customAttributes),
|
|
834
|
+
entitlements = _this$getEntitlements2.entitlements,
|
|
835
|
+
attributes = _this$getEntitlements2.attributes,
|
|
836
|
+
isV2 = _this$getEntitlements2.isV2;
|
|
837
|
+
return (0,_frontegg_redux_store__WEBPACK_IMPORTED_MODULE_20__.getPermissionEntitlements)(entitlements, key, attributes, isV2);
|
|
805
838
|
}
|
|
806
839
|
|
|
807
840
|
/**
|
|
808
841
|
@param options - including permission or feature key
|
|
842
|
+
@param customAttributes user attributes
|
|
809
843
|
@returns if the user is entitled to the given permission or feature. Attaching the justification if not
|
|
810
844
|
@throws when entitlement is not enabled via frontegg options
|
|
811
845
|
*/
|
|
812
846
|
}, {
|
|
813
847
|
key: "getEntitlements",
|
|
814
|
-
value: function getEntitlements(options) {
|
|
848
|
+
value: function getEntitlements(options, customAttributes) {
|
|
815
849
|
// we use permissionKey (options key) to decide if the user is using permission key or feature key
|
|
816
850
|
if ('permissionKey' in options) {
|
|
817
|
-
return this.getPermissionEntitlements(options.permissionKey);
|
|
851
|
+
return this.getPermissionEntitlements(options.permissionKey, customAttributes);
|
|
818
852
|
}
|
|
819
|
-
return this.getFeatureEntitlements(options.featureKey);
|
|
853
|
+
return this.getFeatureEntitlements(options.featureKey, customAttributes);
|
|
820
854
|
}
|
|
821
855
|
|
|
822
856
|
/**
|
|
@@ -1380,7 +1414,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1380
1414
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1381
1415
|
/* harmony export */ });
|
|
1382
1416
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
1383
|
-
cdnVersion: '6.
|
|
1417
|
+
cdnVersion: '6.150.0'
|
|
1384
1418
|
});
|
|
1385
1419
|
|
|
1386
1420
|
/***/ }),
|
|
@@ -4040,8 +4074,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4040
4074
|
/* harmony import */ var fast_deep_equal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-deep-equal */ "../../node_modules/fast-deep-equal/index.js");
|
|
4041
4075
|
/* harmony import */ var fast_deep_equal__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(fast_deep_equal__WEBPACK_IMPORTED_MODULE_0__);
|
|
4042
4076
|
/* harmony import */ var redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! redux-saga/effects */ "../../node_modules/redux-saga/dist/redux-saga-effects-npm-proxy.esm.js");
|
|
4043
|
-
/* harmony import */ var
|
|
4077
|
+
/* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @frontegg/rest-api */ "../../node_modules/@frontegg/rest-api/auth/constants.js");
|
|
4078
|
+
/* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @frontegg/rest-api */ "../../node_modules/@frontegg/rest-api/index.js");
|
|
4044
4079
|
/* harmony import */ var _reducer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../reducer */ "../../dist/@frontegg/redux-store/auth/reducer.js");
|
|
4080
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../helpers */ "../../dist/@frontegg/redux-store/helpers.js");
|
|
4081
|
+
|
|
4082
|
+
|
|
4045
4083
|
|
|
4046
4084
|
|
|
4047
4085
|
|
|
@@ -4082,8 +4120,9 @@ function* loadEntitlements({
|
|
|
4082
4120
|
payload
|
|
4083
4121
|
}) {
|
|
4084
4122
|
const callback = payload == null ? void 0 : payload.callback;
|
|
4123
|
+
const [useEntitlementsV2] = yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.call)(_helpers__WEBPACK_IMPORTED_MODULE_3__.getFeatureFlags, [_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_4__.USE_ENTITLEMENTS_V2_ENDPOINT_FF]);
|
|
4085
4124
|
try {
|
|
4086
|
-
const entitlements = yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.call)(
|
|
4125
|
+
const entitlements = yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.call)(useEntitlementsV2 ? _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_5__.api.entitlements.loadEntitlementsV2 : _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_5__.api.entitlements.loadEntitlements);
|
|
4087
4126
|
yield handleFetchedEntitlements(entitlements);
|
|
4088
4127
|
callback == null ? void 0 : callback(true);
|
|
4089
4128
|
} catch (e) {
|
|
@@ -4109,8 +4148,21 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4109
4148
|
/* harmony export */ "getFeatureEntitlements": () => (/* binding */ getFeatureEntitlements),
|
|
4110
4149
|
/* harmony export */ "getPermissionEntitlements": () => (/* binding */ getPermissionEntitlements)
|
|
4111
4150
|
/* harmony export */ });
|
|
4112
|
-
/* harmony import */ var
|
|
4113
|
-
/* harmony import */ var
|
|
4151
|
+
/* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @frontegg/rest-api */ "../../node_modules/@frontegg/rest-api/ContextHolder/index.js");
|
|
4152
|
+
/* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @frontegg/rest-api */ "../../node_modules/@frontegg/rest-api/entitlements/interfaces.js");
|
|
4153
|
+
/* harmony import */ var _frontegg_entitlements_javascript_commons__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @frontegg/entitlements-javascript-commons */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/index.js");
|
|
4154
|
+
|
|
4155
|
+
|
|
4156
|
+
/**
|
|
4157
|
+
* NOTE: This file including the usage of user entitlements API V1 and V2. The BE API response is diffrent.
|
|
4158
|
+
* V1 is the initial implementation.
|
|
4159
|
+
* V2 is using the entitlenents package for Rule Based entitlements.
|
|
4160
|
+
*
|
|
4161
|
+
* V1 is still supported with feature flag but it's depracated.
|
|
4162
|
+
*
|
|
4163
|
+
* The entitlements query functions supports both APIs by an optional argument of [isV2] to decide what version to choose.
|
|
4164
|
+
* The function returns the same type.
|
|
4165
|
+
*/
|
|
4114
4166
|
|
|
4115
4167
|
const ENTITLEMENTS_NOT_ENABLED_EXCEPTION_TEXT = 'You must first enable entitlements via Frontegg options to use this function';
|
|
4116
4168
|
|
|
@@ -4119,18 +4171,19 @@ const ENTITLEMENTS_NOT_ENABLED_EXCEPTION_TEXT = 'You must first enable entitleme
|
|
|
4119
4171
|
* @throws when entitlement is not enabled via frontegg options
|
|
4120
4172
|
*/
|
|
4121
4173
|
const guardEntitlementsUsage = () => {
|
|
4122
|
-
if (
|
|
4174
|
+
if (_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_1__.ContextHolder.shouldLoadEntitlements()) return;
|
|
4123
4175
|
throw new Error(ENTITLEMENTS_NOT_ENABLED_EXCEPTION_TEXT);
|
|
4124
4176
|
};
|
|
4125
4177
|
|
|
4126
4178
|
/**
|
|
4179
|
+
For user entitlements API V1
|
|
4180
|
+
|
|
4127
4181
|
@param keyEntitlements permission or feature data object
|
|
4128
4182
|
@param missingKeyEnum missing key for scenario that the key does not exist in entitlementsValuePerKeys
|
|
4129
4183
|
@returns if the user is entitled to the given key. Attaching the justification if not
|
|
4130
4184
|
@throws when entitlement is not enabled via frontegg options
|
|
4131
4185
|
*/
|
|
4132
|
-
const
|
|
4133
|
-
guardEntitlementsUsage();
|
|
4186
|
+
const getEntitlementsHelperV1 = (keyEntitlements, missingKeyEnum) => {
|
|
4134
4187
|
if (!keyEntitlements) {
|
|
4135
4188
|
return {
|
|
4136
4189
|
isEntitled: false,
|
|
@@ -4150,37 +4203,51 @@ const getEntitlementsHelper = (keyEntitlements, missingKeyEnum) => {
|
|
|
4150
4203
|
|
|
4151
4204
|
/**
|
|
4152
4205
|
@param entitlements
|
|
4153
|
-
@param key
|
|
4206
|
+
@param key permission key
|
|
4207
|
+
@param attributes entitlements query attributes including comnsumer and frontegg attributes
|
|
4208
|
+
@param isV2 true when need to use entitlements API V2
|
|
4154
4209
|
@returns if the user is entitled to the given permission. Attaching the justification if not
|
|
4155
4210
|
@throws when entitlement is not enabled via frontegg options
|
|
4156
4211
|
*/
|
|
4157
|
-
const getPermissionEntitlements = (entitlements, key) => {
|
|
4158
|
-
var
|
|
4159
|
-
|
|
4212
|
+
const getPermissionEntitlements = (entitlements, key, attributes, isV2) => {
|
|
4213
|
+
var _permissions;
|
|
4214
|
+
guardEntitlementsUsage();
|
|
4215
|
+
if (isV2) {
|
|
4216
|
+
return (0,_frontegg_entitlements_javascript_commons__WEBPACK_IMPORTED_MODULE_0__.evaluateIsEntitledToPermissions)(key, entitlements, attributes);
|
|
4217
|
+
}
|
|
4218
|
+
return getEntitlementsHelperV1(entitlements == null ? void 0 : (_permissions = entitlements.permissions) == null ? void 0 : _permissions[key], _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_2__.NotEntitledJustification.MISSING_PERMISSION);
|
|
4160
4219
|
};
|
|
4161
4220
|
|
|
4162
4221
|
/**
|
|
4163
4222
|
@param entitlements
|
|
4164
|
-
@param key
|
|
4223
|
+
@param key feature key
|
|
4224
|
+
@param attributes entitlements query attributes including comnsumer and frontegg attributes
|
|
4225
|
+
@param isV2 true when need to use entitlements API V2
|
|
4165
4226
|
@returns if the user is entitled to the given feature. Attaching the justification if not
|
|
4166
4227
|
@throws when entitlement is not enabled via frontegg options
|
|
4167
4228
|
*/
|
|
4168
|
-
const getFeatureEntitlements = (entitlements, key) => {
|
|
4169
|
-
var
|
|
4170
|
-
|
|
4229
|
+
const getFeatureEntitlements = (entitlements, key, attributes, isV2) => {
|
|
4230
|
+
var _features;
|
|
4231
|
+
guardEntitlementsUsage();
|
|
4232
|
+
if (isV2) {
|
|
4233
|
+
return (0,_frontegg_entitlements_javascript_commons__WEBPACK_IMPORTED_MODULE_0__.evaluateIsEntitledToFeature)(key, entitlements, attributes);
|
|
4234
|
+
}
|
|
4235
|
+
return getEntitlementsHelperV1(entitlements == null ? void 0 : (_features = entitlements.features) == null ? void 0 : _features[key], _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_2__.NotEntitledJustification.MISSING_FEATURE);
|
|
4171
4236
|
};
|
|
4172
4237
|
|
|
4173
4238
|
/**
|
|
4174
4239
|
@param entitlements
|
|
4175
4240
|
@param options including permission or feature
|
|
4241
|
+
@param attributes entitlements query attributes including comnsumer and frontegg attributes
|
|
4242
|
+
@param isV2 true when need to use entitlements API V2
|
|
4176
4243
|
@returns if the user is entitled to the given feature or permission (check only one). Attaching the justification if not
|
|
4177
4244
|
@throws when entitlement is not enabled via frontegg options
|
|
4178
4245
|
*/
|
|
4179
|
-
const getEntitlements = (entitlements, options) => {
|
|
4246
|
+
const getEntitlements = (entitlements, options, attributes, isV2) => {
|
|
4180
4247
|
if ('permissionKey' in options) {
|
|
4181
|
-
return getPermissionEntitlements(entitlements, options.permissionKey);
|
|
4248
|
+
return getPermissionEntitlements(entitlements, options.permissionKey, attributes, isV2);
|
|
4182
4249
|
}
|
|
4183
|
-
return getFeatureEntitlements(entitlements, options.featureKey);
|
|
4250
|
+
return getFeatureEntitlements(entitlements, options.featureKey, attributes, isV2);
|
|
4184
4251
|
};
|
|
4185
4252
|
|
|
4186
4253
|
/***/ }),
|
|
@@ -23178,7 +23245,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
23178
23245
|
/* harmony export */ });
|
|
23179
23246
|
/* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
|
|
23180
23247
|
/* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
|
|
23181
|
-
/** @license Frontegg v6.
|
|
23248
|
+
/** @license Frontegg v6.150.0
|
|
23182
23249
|
*
|
|
23183
23250
|
* This source code is licensed under the MIT license found in the
|
|
23184
23251
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -23193,6 +23260,1079 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
23193
23260
|
|
|
23194
23261
|
|
|
23195
23262
|
|
|
23263
|
+
/***/ }),
|
|
23264
|
+
|
|
23265
|
+
/***/ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/conditions/condition.evaluator.js":
|
|
23266
|
+
/*!***********************************************************************************************************!*\
|
|
23267
|
+
!*** ../../node_modules/@frontegg/entitlements-javascript-commons/dist/conditions/condition.evaluator.js ***!
|
|
23268
|
+
\***********************************************************************************************************/
|
|
23269
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
23270
|
+
|
|
23271
|
+
"use strict";
|
|
23272
|
+
|
|
23273
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
23274
|
+
exports.createConditionEvaluator = void 0;
|
|
23275
|
+
const operation_resolver_1 = __webpack_require__(/*! ../operations/components/operation.resolver */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/components/operation.resolver.js");
|
|
23276
|
+
const sanitizers_resolver_1 = __webpack_require__(/*! ../operations/components/sanitizers.resolver */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/components/sanitizers.resolver.js");
|
|
23277
|
+
function failingConditionEvaluator() {
|
|
23278
|
+
return () => false;
|
|
23279
|
+
}
|
|
23280
|
+
function createConditionEvaluator(payload) {
|
|
23281
|
+
const sanitizer = (0, sanitizers_resolver_1.useSanitizer)(payload.condition.op);
|
|
23282
|
+
if (!sanitizer) {
|
|
23283
|
+
return failingConditionEvaluator();
|
|
23284
|
+
}
|
|
23285
|
+
const { isSanitized, sanitizedValue } = sanitizer(payload.condition.value);
|
|
23286
|
+
if (!isSanitized || sanitizedValue === undefined) {
|
|
23287
|
+
return failingConditionEvaluator();
|
|
23288
|
+
}
|
|
23289
|
+
const operation = (0, operation_resolver_1.useOperation)(payload.condition.op, sanitizedValue);
|
|
23290
|
+
return (attributes) => {
|
|
23291
|
+
const attributeKey = payload.condition.attribute;
|
|
23292
|
+
const value = attributes[attributeKey];
|
|
23293
|
+
const { isValid: result } = value !== undefined && operation ? operation(value) : { isValid: false };
|
|
23294
|
+
return payload.condition.negate ? !result : result;
|
|
23295
|
+
};
|
|
23296
|
+
}
|
|
23297
|
+
exports.createConditionEvaluator = createConditionEvaluator;
|
|
23298
|
+
//# sourceMappingURL=condition.evaluator.js.map
|
|
23299
|
+
|
|
23300
|
+
/***/ }),
|
|
23301
|
+
|
|
23302
|
+
/***/ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/conditions/index.js":
|
|
23303
|
+
/*!*********************************************************************************************!*\
|
|
23304
|
+
!*** ../../node_modules/@frontegg/entitlements-javascript-commons/dist/conditions/index.js ***!
|
|
23305
|
+
\*********************************************************************************************/
|
|
23306
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
23307
|
+
|
|
23308
|
+
"use strict";
|
|
23309
|
+
|
|
23310
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
23311
|
+
if (k2 === undefined) k2 = k;
|
|
23312
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
23313
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
23314
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
23315
|
+
}
|
|
23316
|
+
Object.defineProperty(o, k2, desc);
|
|
23317
|
+
}) : (function(o, m, k, k2) {
|
|
23318
|
+
if (k2 === undefined) k2 = k;
|
|
23319
|
+
o[k2] = m[k];
|
|
23320
|
+
}));
|
|
23321
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
23322
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
23323
|
+
};
|
|
23324
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
23325
|
+
__exportStar(__webpack_require__(/*! ./condition.evaluator */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/conditions/condition.evaluator.js"), exports);
|
|
23326
|
+
__exportStar(__webpack_require__(/*! ./types */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/conditions/types.js"), exports);
|
|
23327
|
+
//# sourceMappingURL=index.js.map
|
|
23328
|
+
|
|
23329
|
+
/***/ }),
|
|
23330
|
+
|
|
23331
|
+
/***/ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/conditions/types.js":
|
|
23332
|
+
/*!*********************************************************************************************!*\
|
|
23333
|
+
!*** ../../node_modules/@frontegg/entitlements-javascript-commons/dist/conditions/types.js ***!
|
|
23334
|
+
\*********************************************************************************************/
|
|
23335
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
23336
|
+
|
|
23337
|
+
"use strict";
|
|
23338
|
+
|
|
23339
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
23340
|
+
//# sourceMappingURL=types.js.map
|
|
23341
|
+
|
|
23342
|
+
/***/ }),
|
|
23343
|
+
|
|
23344
|
+
/***/ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/feature-flags/feature-flag.evaluator.js":
|
|
23345
|
+
/*!*****************************************************************************************************************!*\
|
|
23346
|
+
!*** ../../node_modules/@frontegg/entitlements-javascript-commons/dist/feature-flags/feature-flag.evaluator.js ***!
|
|
23347
|
+
\*****************************************************************************************************************/
|
|
23348
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
23349
|
+
|
|
23350
|
+
"use strict";
|
|
23351
|
+
|
|
23352
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
23353
|
+
exports.evaluateFeatureFlag = void 0;
|
|
23354
|
+
const rules_1 = __webpack_require__(/*! ../rules */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/rules/index.js");
|
|
23355
|
+
function evaluateFeatureFlag(featureFlag, attributes) {
|
|
23356
|
+
if (!featureFlag.on) {
|
|
23357
|
+
return { treatment: featureFlag.offTreatment };
|
|
23358
|
+
}
|
|
23359
|
+
const treatableRule = findTreatableRule(featureFlag, attributes);
|
|
23360
|
+
if (treatableRule) {
|
|
23361
|
+
return { treatment: treatableRule.treatment };
|
|
23362
|
+
}
|
|
23363
|
+
return { treatment: featureFlag.defaultTreatment };
|
|
23364
|
+
}
|
|
23365
|
+
exports.evaluateFeatureFlag = evaluateFeatureFlag;
|
|
23366
|
+
function findTreatableRule(featureFlag, attributes) {
|
|
23367
|
+
var _a;
|
|
23368
|
+
return (_a = featureFlag.rules) === null || _a === void 0 ? void 0 : _a.find((rule) => {
|
|
23369
|
+
const evaluator = (0, rules_1.createRuleEvaluator)({ rule });
|
|
23370
|
+
const result = evaluator(attributes);
|
|
23371
|
+
return result === rules_1.RuleEvaluationResultEnum.Treatable;
|
|
23372
|
+
});
|
|
23373
|
+
}
|
|
23374
|
+
//# sourceMappingURL=feature-flag.evaluator.js.map
|
|
23375
|
+
|
|
23376
|
+
/***/ }),
|
|
23377
|
+
|
|
23378
|
+
/***/ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/feature-flags/index.js":
|
|
23379
|
+
/*!************************************************************************************************!*\
|
|
23380
|
+
!*** ../../node_modules/@frontegg/entitlements-javascript-commons/dist/feature-flags/index.js ***!
|
|
23381
|
+
\************************************************************************************************/
|
|
23382
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
23383
|
+
|
|
23384
|
+
"use strict";
|
|
23385
|
+
|
|
23386
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
23387
|
+
if (k2 === undefined) k2 = k;
|
|
23388
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
23389
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
23390
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
23391
|
+
}
|
|
23392
|
+
Object.defineProperty(o, k2, desc);
|
|
23393
|
+
}) : (function(o, m, k, k2) {
|
|
23394
|
+
if (k2 === undefined) k2 = k;
|
|
23395
|
+
o[k2] = m[k];
|
|
23396
|
+
}));
|
|
23397
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
23398
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
23399
|
+
};
|
|
23400
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
23401
|
+
__exportStar(__webpack_require__(/*! ./feature-flag.evaluator */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/feature-flags/feature-flag.evaluator.js"), exports);
|
|
23402
|
+
//# sourceMappingURL=index.js.map
|
|
23403
|
+
|
|
23404
|
+
/***/ }),
|
|
23405
|
+
|
|
23406
|
+
/***/ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/index.js":
|
|
23407
|
+
/*!**********************************************************************************!*\
|
|
23408
|
+
!*** ../../node_modules/@frontegg/entitlements-javascript-commons/dist/index.js ***!
|
|
23409
|
+
\**********************************************************************************/
|
|
23410
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
23411
|
+
|
|
23412
|
+
"use strict";
|
|
23413
|
+
|
|
23414
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
23415
|
+
exports.NotEntitledJustification = exports.prepareAttributes = exports.evaluateIsEntitledToPermissions = exports.evaluateIsEntitledToFeature = exports.OperationEnum = exports.TreatmentEnum = exports.evaluateFeatureFlag = void 0;
|
|
23416
|
+
var feature_flags_1 = __webpack_require__(/*! ./feature-flags */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/feature-flags/index.js");
|
|
23417
|
+
Object.defineProperty(exports, "evaluateFeatureFlag", ({ enumerable: true, get: function () { return feature_flags_1.evaluateFeatureFlag; } }));
|
|
23418
|
+
var rules_1 = __webpack_require__(/*! ./rules */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/rules/index.js");
|
|
23419
|
+
Object.defineProperty(exports, "TreatmentEnum", ({ enumerable: true, get: function () { return rules_1.TreatmentEnum; } }));
|
|
23420
|
+
var types_1 = __webpack_require__(/*! ./operations/types */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/types/index.js");
|
|
23421
|
+
Object.defineProperty(exports, "OperationEnum", ({ enumerable: true, get: function () { return types_1.OperationEnum; } }));
|
|
23422
|
+
var user_entitlements_1 = __webpack_require__(/*! ./user-entitlements */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/user-entitlements/index.js");
|
|
23423
|
+
Object.defineProperty(exports, "evaluateIsEntitledToFeature", ({ enumerable: true, get: function () { return user_entitlements_1.evaluateIsEntitledToFeature; } }));
|
|
23424
|
+
Object.defineProperty(exports, "evaluateIsEntitledToPermissions", ({ enumerable: true, get: function () { return user_entitlements_1.evaluateIsEntitledToPermissions; } }));
|
|
23425
|
+
Object.defineProperty(exports, "prepareAttributes", ({ enumerable: true, get: function () { return user_entitlements_1.prepareAttributes; } }));
|
|
23426
|
+
Object.defineProperty(exports, "NotEntitledJustification", ({ enumerable: true, get: function () { return user_entitlements_1.NotEntitledJustification; } }));
|
|
23427
|
+
//# sourceMappingURL=index.js.map
|
|
23428
|
+
|
|
23429
|
+
/***/ }),
|
|
23430
|
+
|
|
23431
|
+
/***/ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/boolean/index.js":
|
|
23432
|
+
/*!*****************************************************************************************************!*\
|
|
23433
|
+
!*** ../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/boolean/index.js ***!
|
|
23434
|
+
\*****************************************************************************************************/
|
|
23435
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
23436
|
+
|
|
23437
|
+
"use strict";
|
|
23438
|
+
|
|
23439
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
23440
|
+
if (k2 === undefined) k2 = k;
|
|
23441
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
23442
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
23443
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
23444
|
+
}
|
|
23445
|
+
Object.defineProperty(o, k2, desc);
|
|
23446
|
+
}) : (function(o, m, k, k2) {
|
|
23447
|
+
if (k2 === undefined) k2 = k;
|
|
23448
|
+
o[k2] = m[k];
|
|
23449
|
+
}));
|
|
23450
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
23451
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
23452
|
+
};
|
|
23453
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
23454
|
+
exports.BooleanOperationsMapper = void 0;
|
|
23455
|
+
const types_1 = __webpack_require__(/*! ../types */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/types/index.js");
|
|
23456
|
+
const operations_1 = __webpack_require__(/*! ./operations */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/boolean/operations.js");
|
|
23457
|
+
__exportStar(__webpack_require__(/*! ./operations */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/boolean/operations.js"), exports);
|
|
23458
|
+
__exportStar(__webpack_require__(/*! ./sanitizers */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/boolean/sanitizers.js"), exports);
|
|
23459
|
+
exports.BooleanOperationsMapper = {
|
|
23460
|
+
[types_1.OperationEnum.Is]: (value) => (0, operations_1.useIsOperation)(value),
|
|
23461
|
+
};
|
|
23462
|
+
//# sourceMappingURL=index.js.map
|
|
23463
|
+
|
|
23464
|
+
/***/ }),
|
|
23465
|
+
|
|
23466
|
+
/***/ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/boolean/operations.js":
|
|
23467
|
+
/*!**********************************************************************************************************!*\
|
|
23468
|
+
!*** ../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/boolean/operations.js ***!
|
|
23469
|
+
\**********************************************************************************************************/
|
|
23470
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
23471
|
+
|
|
23472
|
+
"use strict";
|
|
23473
|
+
|
|
23474
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
23475
|
+
exports.useIsOperation = void 0;
|
|
23476
|
+
function useIsOperation(payload) {
|
|
23477
|
+
return (attribute) => ({ isValid: attribute === payload.boolean });
|
|
23478
|
+
}
|
|
23479
|
+
exports.useIsOperation = useIsOperation;
|
|
23480
|
+
//# sourceMappingURL=operations.js.map
|
|
23481
|
+
|
|
23482
|
+
/***/ }),
|
|
23483
|
+
|
|
23484
|
+
/***/ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/boolean/sanitizers.js":
|
|
23485
|
+
/*!**********************************************************************************************************!*\
|
|
23486
|
+
!*** ../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/boolean/sanitizers.js ***!
|
|
23487
|
+
\**********************************************************************************************************/
|
|
23488
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
23489
|
+
|
|
23490
|
+
"use strict";
|
|
23491
|
+
|
|
23492
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
23493
|
+
exports.BooleanSanitizersMapper = exports.singleBooleanSanitizer = void 0;
|
|
23494
|
+
const types_1 = __webpack_require__(/*! ../types */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/types/index.js");
|
|
23495
|
+
const isBoolean = (value) => typeof value === 'boolean';
|
|
23496
|
+
const singleBooleanSanitizer = (value) => {
|
|
23497
|
+
const sanitizedValue = value.boolean !== undefined && isBoolean(value.boolean) ? { boolean: value.boolean } : undefined;
|
|
23498
|
+
return {
|
|
23499
|
+
isSanitized: !!sanitizedValue,
|
|
23500
|
+
sanitizedValue,
|
|
23501
|
+
};
|
|
23502
|
+
};
|
|
23503
|
+
exports.singleBooleanSanitizer = singleBooleanSanitizer;
|
|
23504
|
+
exports.BooleanSanitizersMapper = {
|
|
23505
|
+
[types_1.OperationEnum.Is]: exports.singleBooleanSanitizer,
|
|
23506
|
+
};
|
|
23507
|
+
//# sourceMappingURL=sanitizers.js.map
|
|
23508
|
+
|
|
23509
|
+
/***/ }),
|
|
23510
|
+
|
|
23511
|
+
/***/ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/components/operation.resolver.js":
|
|
23512
|
+
/*!*********************************************************************************************************************!*\
|
|
23513
|
+
!*** ../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/components/operation.resolver.js ***!
|
|
23514
|
+
\*********************************************************************************************************************/
|
|
23515
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
23516
|
+
|
|
23517
|
+
"use strict";
|
|
23518
|
+
|
|
23519
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
23520
|
+
exports.useOperation = void 0;
|
|
23521
|
+
const string_1 = __webpack_require__(/*! ../string */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/string/index.js");
|
|
23522
|
+
const numeric_1 = __webpack_require__(/*! ../numeric */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/numeric/index.js");
|
|
23523
|
+
const date_1 = __webpack_require__(/*! ../date */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/date/index.js");
|
|
23524
|
+
const boolean_1 = __webpack_require__(/*! ../boolean */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/boolean/index.js");
|
|
23525
|
+
const operationEnrichersMapper = {
|
|
23526
|
+
...string_1.StringOperationsMapper,
|
|
23527
|
+
...numeric_1.NumericOperationsMapper,
|
|
23528
|
+
...date_1.DateOperationsMapper,
|
|
23529
|
+
...boolean_1.BooleanOperationsMapper,
|
|
23530
|
+
};
|
|
23531
|
+
function useOperation(operation, value) {
|
|
23532
|
+
const operationContextEnricher = operationEnrichersMapper[operation];
|
|
23533
|
+
return operationContextEnricher ? operationContextEnricher(value) : undefined;
|
|
23534
|
+
}
|
|
23535
|
+
exports.useOperation = useOperation;
|
|
23536
|
+
//# sourceMappingURL=operation.resolver.js.map
|
|
23537
|
+
|
|
23538
|
+
/***/ }),
|
|
23539
|
+
|
|
23540
|
+
/***/ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/components/sanitizers.resolver.js":
|
|
23541
|
+
/*!**********************************************************************************************************************!*\
|
|
23542
|
+
!*** ../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/components/sanitizers.resolver.js ***!
|
|
23543
|
+
\**********************************************************************************************************************/
|
|
23544
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
23545
|
+
|
|
23546
|
+
"use strict";
|
|
23547
|
+
|
|
23548
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
23549
|
+
exports.useSanitizer = void 0;
|
|
23550
|
+
const boolean_1 = __webpack_require__(/*! ../boolean */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/boolean/index.js");
|
|
23551
|
+
const sanitizers_1 = __webpack_require__(/*! ../string/sanitizers */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/string/sanitizers.js");
|
|
23552
|
+
const sanitizers_2 = __webpack_require__(/*! ../date/sanitizers */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/date/sanitizers.js");
|
|
23553
|
+
const numeric_1 = __webpack_require__(/*! ../numeric */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/numeric/index.js");
|
|
23554
|
+
const SanitizersMapper = {
|
|
23555
|
+
...sanitizers_1.StringSanitizersMapper,
|
|
23556
|
+
...numeric_1.NumericSanitizersMapper,
|
|
23557
|
+
...sanitizers_2.DateSanitizersMapper,
|
|
23558
|
+
...boolean_1.BooleanSanitizersMapper,
|
|
23559
|
+
};
|
|
23560
|
+
function useSanitizer(operation) {
|
|
23561
|
+
return SanitizersMapper[operation];
|
|
23562
|
+
}
|
|
23563
|
+
exports.useSanitizer = useSanitizer;
|
|
23564
|
+
//# sourceMappingURL=sanitizers.resolver.js.map
|
|
23565
|
+
|
|
23566
|
+
/***/ }),
|
|
23567
|
+
|
|
23568
|
+
/***/ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/date/index.js":
|
|
23569
|
+
/*!**************************************************************************************************!*\
|
|
23570
|
+
!*** ../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/date/index.js ***!
|
|
23571
|
+
\**************************************************************************************************/
|
|
23572
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
23573
|
+
|
|
23574
|
+
"use strict";
|
|
23575
|
+
|
|
23576
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
23577
|
+
if (k2 === undefined) k2 = k;
|
|
23578
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
23579
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
23580
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
23581
|
+
}
|
|
23582
|
+
Object.defineProperty(o, k2, desc);
|
|
23583
|
+
}) : (function(o, m, k, k2) {
|
|
23584
|
+
if (k2 === undefined) k2 = k;
|
|
23585
|
+
o[k2] = m[k];
|
|
23586
|
+
}));
|
|
23587
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
23588
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
23589
|
+
};
|
|
23590
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
23591
|
+
exports.DateOperationsMapper = void 0;
|
|
23592
|
+
const types_1 = __webpack_require__(/*! ../types */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/types/index.js");
|
|
23593
|
+
const operations_1 = __webpack_require__(/*! ./operations */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/date/operations.js");
|
|
23594
|
+
__exportStar(__webpack_require__(/*! ./operations */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/date/operations.js"), exports);
|
|
23595
|
+
__exportStar(__webpack_require__(/*! ./types */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/date/types.js"), exports);
|
|
23596
|
+
exports.DateOperationsMapper = {
|
|
23597
|
+
[types_1.OperationEnum.On]: (value) => (0, operations_1.useDateOnOperation)(value),
|
|
23598
|
+
[types_1.OperationEnum.OnOrAfter]: (value) => (0, operations_1.useDateOnOrAfterOperation)(value),
|
|
23599
|
+
[types_1.OperationEnum.OnOrBefore]: (value) => (0, operations_1.useDateOnOrBeforeOperation)(value),
|
|
23600
|
+
[types_1.OperationEnum.BetweenDate]: (value) => (0, operations_1.useDateBetweenOperation)(value),
|
|
23601
|
+
};
|
|
23602
|
+
//# sourceMappingURL=index.js.map
|
|
23603
|
+
|
|
23604
|
+
/***/ }),
|
|
23605
|
+
|
|
23606
|
+
/***/ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/date/operations.js":
|
|
23607
|
+
/*!*******************************************************************************************************!*\
|
|
23608
|
+
!*** ../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/date/operations.js ***!
|
|
23609
|
+
\*******************************************************************************************************/
|
|
23610
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
23611
|
+
|
|
23612
|
+
"use strict";
|
|
23613
|
+
|
|
23614
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
23615
|
+
exports.useDateBetweenOperation = exports.useDateOnOrBeforeOperation = exports.useDateOnOrAfterOperation = exports.useDateOnOperation = void 0;
|
|
23616
|
+
function useDateOnOperation(payload) {
|
|
23617
|
+
return (attribute) => ({ isValid: attribute.getTime() === payload.date.getTime() });
|
|
23618
|
+
}
|
|
23619
|
+
exports.useDateOnOperation = useDateOnOperation;
|
|
23620
|
+
function useDateOnOrAfterOperation(payload) {
|
|
23621
|
+
return (attribute) => ({ isValid: attribute.getTime() >= payload.date.getTime() });
|
|
23622
|
+
}
|
|
23623
|
+
exports.useDateOnOrAfterOperation = useDateOnOrAfterOperation;
|
|
23624
|
+
function useDateOnOrBeforeOperation(payload) {
|
|
23625
|
+
return (attribute) => ({ isValid: attribute.getTime() <= payload.date.getTime() });
|
|
23626
|
+
}
|
|
23627
|
+
exports.useDateOnOrBeforeOperation = useDateOnOrBeforeOperation;
|
|
23628
|
+
function useDateBetweenOperation(payload) {
|
|
23629
|
+
return (attribute) => ({
|
|
23630
|
+
isValid: attribute.getTime() >= payload.start.getTime() && attribute.getTime() <= payload.end.getTime(),
|
|
23631
|
+
});
|
|
23632
|
+
}
|
|
23633
|
+
exports.useDateBetweenOperation = useDateBetweenOperation;
|
|
23634
|
+
//# sourceMappingURL=operations.js.map
|
|
23635
|
+
|
|
23636
|
+
/***/ }),
|
|
23637
|
+
|
|
23638
|
+
/***/ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/date/sanitizers.js":
|
|
23639
|
+
/*!*******************************************************************************************************!*\
|
|
23640
|
+
!*** ../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/date/sanitizers.js ***!
|
|
23641
|
+
\*******************************************************************************************************/
|
|
23642
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
23643
|
+
|
|
23644
|
+
"use strict";
|
|
23645
|
+
|
|
23646
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
23647
|
+
exports.DateSanitizersMapper = exports.sanitizeDateRange = exports.sanitizeSingleDate = exports.isValidDate = exports.sanitizeDateValue = void 0;
|
|
23648
|
+
const types_1 = __webpack_require__(/*! ../types */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/types/index.js");
|
|
23649
|
+
const sanitizeDateValue = (value) => {
|
|
23650
|
+
return new Date(value);
|
|
23651
|
+
};
|
|
23652
|
+
exports.sanitizeDateValue = sanitizeDateValue;
|
|
23653
|
+
const isValidDate = (value) => value instanceof Date && !isNaN(value);
|
|
23654
|
+
exports.isValidDate = isValidDate;
|
|
23655
|
+
const sanitizeSingleDate = (value) => {
|
|
23656
|
+
const sanitizedDateValue = value.date ? (0, exports.sanitizeDateValue)(value.date) : undefined;
|
|
23657
|
+
const sanitizedValue = sanitizedDateValue && (0, exports.isValidDate)(sanitizedDateValue) ? { date: sanitizedDateValue } : undefined;
|
|
23658
|
+
return {
|
|
23659
|
+
isSanitized: !!sanitizedValue,
|
|
23660
|
+
sanitizedValue,
|
|
23661
|
+
};
|
|
23662
|
+
};
|
|
23663
|
+
exports.sanitizeSingleDate = sanitizeSingleDate;
|
|
23664
|
+
const sanitizeDateRange = (value) => {
|
|
23665
|
+
const sanitizedStartValue = value.start ? (0, exports.sanitizeDateValue)(value.start) : undefined;
|
|
23666
|
+
const sanitizedEndValue = value.end ? (0, exports.sanitizeDateValue)(value.end) : undefined;
|
|
23667
|
+
const sanitizedValue = sanitizedStartValue && sanitizedEndValue && (0, exports.isValidDate)(sanitizedStartValue) && (0, exports.isValidDate)(sanitizedEndValue)
|
|
23668
|
+
? { start: sanitizedStartValue, end: sanitizedEndValue }
|
|
23669
|
+
: undefined;
|
|
23670
|
+
return {
|
|
23671
|
+
isSanitized: !!sanitizedValue,
|
|
23672
|
+
sanitizedValue,
|
|
23673
|
+
};
|
|
23674
|
+
};
|
|
23675
|
+
exports.sanitizeDateRange = sanitizeDateRange;
|
|
23676
|
+
exports.DateSanitizersMapper = {
|
|
23677
|
+
[types_1.OperationEnum.On]: exports.sanitizeSingleDate,
|
|
23678
|
+
[types_1.OperationEnum.OnOrAfter]: exports.sanitizeSingleDate,
|
|
23679
|
+
[types_1.OperationEnum.OnOrBefore]: exports.sanitizeSingleDate,
|
|
23680
|
+
[types_1.OperationEnum.BetweenDate]: exports.sanitizeDateRange,
|
|
23681
|
+
};
|
|
23682
|
+
//# sourceMappingURL=sanitizers.js.map
|
|
23683
|
+
|
|
23684
|
+
/***/ }),
|
|
23685
|
+
|
|
23686
|
+
/***/ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/date/types.js":
|
|
23687
|
+
/*!**************************************************************************************************!*\
|
|
23688
|
+
!*** ../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/date/types.js ***!
|
|
23689
|
+
\**************************************************************************************************/
|
|
23690
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
23691
|
+
|
|
23692
|
+
"use strict";
|
|
23693
|
+
|
|
23694
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
23695
|
+
//# sourceMappingURL=types.js.map
|
|
23696
|
+
|
|
23697
|
+
/***/ }),
|
|
23698
|
+
|
|
23699
|
+
/***/ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/numeric/index.js":
|
|
23700
|
+
/*!*****************************************************************************************************!*\
|
|
23701
|
+
!*** ../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/numeric/index.js ***!
|
|
23702
|
+
\*****************************************************************************************************/
|
|
23703
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
23704
|
+
|
|
23705
|
+
"use strict";
|
|
23706
|
+
|
|
23707
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
23708
|
+
if (k2 === undefined) k2 = k;
|
|
23709
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
23710
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
23711
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
23712
|
+
}
|
|
23713
|
+
Object.defineProperty(o, k2, desc);
|
|
23714
|
+
}) : (function(o, m, k, k2) {
|
|
23715
|
+
if (k2 === undefined) k2 = k;
|
|
23716
|
+
o[k2] = m[k];
|
|
23717
|
+
}));
|
|
23718
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
23719
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
23720
|
+
};
|
|
23721
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
23722
|
+
exports.NumericOperationsMapper = void 0;
|
|
23723
|
+
const types_1 = __webpack_require__(/*! ../types */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/types/index.js");
|
|
23724
|
+
const operations_1 = __webpack_require__(/*! ./operations */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/numeric/operations.js");
|
|
23725
|
+
exports.NumericOperationsMapper = {
|
|
23726
|
+
[types_1.OperationEnum.Equal]: (value) => (0, operations_1.useEqualsOperation)(value),
|
|
23727
|
+
[types_1.OperationEnum.GreaterThan]: (value) => (0, operations_1.useGreaterThanOperation)(value),
|
|
23728
|
+
[types_1.OperationEnum.GreaterThanEqual]: (value) => (0, operations_1.useGreaterThanEqualOperation)(value),
|
|
23729
|
+
[types_1.OperationEnum.LesserThan]: (value) => (0, operations_1.useLesserThanOperation)(value),
|
|
23730
|
+
[types_1.OperationEnum.LesserThanEqual]: (value) => (0, operations_1.useLesserThanEqualOperation)(value),
|
|
23731
|
+
[types_1.OperationEnum.BetweenNumeric]: (value) => (0, operations_1.useBetweenNumericOperation)(value),
|
|
23732
|
+
};
|
|
23733
|
+
__exportStar(__webpack_require__(/*! ./operations */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/numeric/operations.js"), exports);
|
|
23734
|
+
__exportStar(__webpack_require__(/*! ./sanitizers */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/numeric/sanitizers.js"), exports);
|
|
23735
|
+
__exportStar(__webpack_require__(/*! ./types */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/numeric/types.js"), exports);
|
|
23736
|
+
//# sourceMappingURL=index.js.map
|
|
23737
|
+
|
|
23738
|
+
/***/ }),
|
|
23739
|
+
|
|
23740
|
+
/***/ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/numeric/operations.js":
|
|
23741
|
+
/*!**********************************************************************************************************!*\
|
|
23742
|
+
!*** ../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/numeric/operations.js ***!
|
|
23743
|
+
\**********************************************************************************************************/
|
|
23744
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
23745
|
+
|
|
23746
|
+
"use strict";
|
|
23747
|
+
|
|
23748
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
23749
|
+
exports.useBetweenNumericOperation = exports.useLesserThanEqualOperation = exports.useLesserThanOperation = exports.useGreaterThanEqualOperation = exports.useGreaterThanOperation = exports.useEqualsOperation = void 0;
|
|
23750
|
+
function useEqualsOperation(payload) {
|
|
23751
|
+
return (attribute) => ({ isValid: attribute === payload.number });
|
|
23752
|
+
}
|
|
23753
|
+
exports.useEqualsOperation = useEqualsOperation;
|
|
23754
|
+
function useGreaterThanOperation(payload) {
|
|
23755
|
+
return (attribute) => ({ isValid: attribute > payload.number });
|
|
23756
|
+
}
|
|
23757
|
+
exports.useGreaterThanOperation = useGreaterThanOperation;
|
|
23758
|
+
function useGreaterThanEqualOperation(payload) {
|
|
23759
|
+
return (attribute) => ({ isValid: attribute >= payload.number });
|
|
23760
|
+
}
|
|
23761
|
+
exports.useGreaterThanEqualOperation = useGreaterThanEqualOperation;
|
|
23762
|
+
function useLesserThanOperation(payload) {
|
|
23763
|
+
return (attribute) => ({ isValid: attribute < payload.number });
|
|
23764
|
+
}
|
|
23765
|
+
exports.useLesserThanOperation = useLesserThanOperation;
|
|
23766
|
+
function useLesserThanEqualOperation(payload) {
|
|
23767
|
+
return (attribute) => ({ isValid: attribute <= payload.number });
|
|
23768
|
+
}
|
|
23769
|
+
exports.useLesserThanEqualOperation = useLesserThanEqualOperation;
|
|
23770
|
+
function useBetweenNumericOperation(payload) {
|
|
23771
|
+
return (attribute) => ({ isValid: attribute >= payload.start && attribute <= payload.end });
|
|
23772
|
+
}
|
|
23773
|
+
exports.useBetweenNumericOperation = useBetweenNumericOperation;
|
|
23774
|
+
//# sourceMappingURL=operations.js.map
|
|
23775
|
+
|
|
23776
|
+
/***/ }),
|
|
23777
|
+
|
|
23778
|
+
/***/ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/numeric/sanitizers.js":
|
|
23779
|
+
/*!**********************************************************************************************************!*\
|
|
23780
|
+
!*** ../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/numeric/sanitizers.js ***!
|
|
23781
|
+
\**********************************************************************************************************/
|
|
23782
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
23783
|
+
|
|
23784
|
+
"use strict";
|
|
23785
|
+
|
|
23786
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
23787
|
+
exports.NumericSanitizersMapper = exports.sanitizeNumericRange = exports.sanitizeSingleNumber = void 0;
|
|
23788
|
+
const types_1 = __webpack_require__(/*! ../types */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/types/index.js");
|
|
23789
|
+
const isNumber = (value) => typeof value === 'number';
|
|
23790
|
+
const sanitizeSingleNumber = (value) => {
|
|
23791
|
+
const sanitizedValue = value.number !== undefined && isNumber(value.number) ? { number: value.number } : undefined;
|
|
23792
|
+
return {
|
|
23793
|
+
isSanitized: !!sanitizedValue,
|
|
23794
|
+
sanitizedValue,
|
|
23795
|
+
};
|
|
23796
|
+
};
|
|
23797
|
+
exports.sanitizeSingleNumber = sanitizeSingleNumber;
|
|
23798
|
+
const sanitizeNumericRange = (value) => {
|
|
23799
|
+
const sanitizedValue = value.start !== undefined && value.end !== undefined && isNumber(value.start) && isNumber(value.end)
|
|
23800
|
+
? { start: value.start, end: value.end }
|
|
23801
|
+
: undefined;
|
|
23802
|
+
return {
|
|
23803
|
+
isSanitized: !!sanitizedValue,
|
|
23804
|
+
sanitizedValue,
|
|
23805
|
+
};
|
|
23806
|
+
};
|
|
23807
|
+
exports.sanitizeNumericRange = sanitizeNumericRange;
|
|
23808
|
+
exports.NumericSanitizersMapper = {
|
|
23809
|
+
[types_1.OperationEnum.Equal]: exports.sanitizeSingleNumber,
|
|
23810
|
+
[types_1.OperationEnum.GreaterThan]: exports.sanitizeSingleNumber,
|
|
23811
|
+
[types_1.OperationEnum.GreaterThanEqual]: exports.sanitizeSingleNumber,
|
|
23812
|
+
[types_1.OperationEnum.LesserThan]: exports.sanitizeSingleNumber,
|
|
23813
|
+
[types_1.OperationEnum.LesserThanEqual]: exports.sanitizeSingleNumber,
|
|
23814
|
+
[types_1.OperationEnum.BetweenNumeric]: exports.sanitizeNumericRange,
|
|
23815
|
+
};
|
|
23816
|
+
//# sourceMappingURL=sanitizers.js.map
|
|
23817
|
+
|
|
23818
|
+
/***/ }),
|
|
23819
|
+
|
|
23820
|
+
/***/ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/numeric/types.js":
|
|
23821
|
+
/*!*****************************************************************************************************!*\
|
|
23822
|
+
!*** ../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/numeric/types.js ***!
|
|
23823
|
+
\*****************************************************************************************************/
|
|
23824
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
23825
|
+
|
|
23826
|
+
"use strict";
|
|
23827
|
+
|
|
23828
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
23829
|
+
//# sourceMappingURL=types.js.map
|
|
23830
|
+
|
|
23831
|
+
/***/ }),
|
|
23832
|
+
|
|
23833
|
+
/***/ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/string/index.js":
|
|
23834
|
+
/*!****************************************************************************************************!*\
|
|
23835
|
+
!*** ../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/string/index.js ***!
|
|
23836
|
+
\****************************************************************************************************/
|
|
23837
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
23838
|
+
|
|
23839
|
+
"use strict";
|
|
23840
|
+
|
|
23841
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
23842
|
+
if (k2 === undefined) k2 = k;
|
|
23843
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
23844
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
23845
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
23846
|
+
}
|
|
23847
|
+
Object.defineProperty(o, k2, desc);
|
|
23848
|
+
}) : (function(o, m, k, k2) {
|
|
23849
|
+
if (k2 === undefined) k2 = k;
|
|
23850
|
+
o[k2] = m[k];
|
|
23851
|
+
}));
|
|
23852
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
23853
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
23854
|
+
};
|
|
23855
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
23856
|
+
exports.StringOperationsMapper = void 0;
|
|
23857
|
+
const types_1 = __webpack_require__(/*! ../types */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/types/index.js");
|
|
23858
|
+
const operations_1 = __webpack_require__(/*! ./operations */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/string/operations.js");
|
|
23859
|
+
__exportStar(__webpack_require__(/*! ./operations */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/string/operations.js"), exports);
|
|
23860
|
+
__exportStar(__webpack_require__(/*! ./types */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/string/types.js"), exports);
|
|
23861
|
+
exports.StringOperationsMapper = {
|
|
23862
|
+
[types_1.OperationEnum.StartsWith]: (value) => (0, operations_1.useStartsWithOperation)(value),
|
|
23863
|
+
[types_1.OperationEnum.EndsWith]: (value) => (0, operations_1.useEndsWithOperation)(value),
|
|
23864
|
+
[types_1.OperationEnum.Contains]: (value) => (0, operations_1.useContainsOperation)(value),
|
|
23865
|
+
[types_1.OperationEnum.InList]: (value) => (0, operations_1.useInListOperation)(value),
|
|
23866
|
+
[types_1.OperationEnum.Matches]: (value) => (0, operations_1.useMatchesOperation)(value),
|
|
23867
|
+
};
|
|
23868
|
+
//# sourceMappingURL=index.js.map
|
|
23869
|
+
|
|
23870
|
+
/***/ }),
|
|
23871
|
+
|
|
23872
|
+
/***/ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/string/operations.js":
|
|
23873
|
+
/*!*********************************************************************************************************!*\
|
|
23874
|
+
!*** ../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/string/operations.js ***!
|
|
23875
|
+
\*********************************************************************************************************/
|
|
23876
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
23877
|
+
|
|
23878
|
+
"use strict";
|
|
23879
|
+
|
|
23880
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
23881
|
+
exports.useMatchesOperation = exports.useInListOperation = exports.useContainsOperation = exports.useEndsWithOperation = exports.useStartsWithOperation = void 0;
|
|
23882
|
+
function useStartsWithOperation(payload) {
|
|
23883
|
+
return (attribute) => ({ isValid: payload.list.some((value) => attribute.startsWith(value)) });
|
|
23884
|
+
}
|
|
23885
|
+
exports.useStartsWithOperation = useStartsWithOperation;
|
|
23886
|
+
function useEndsWithOperation(payload) {
|
|
23887
|
+
return (attribute) => ({ isValid: payload.list.some((value) => attribute.endsWith(value)) });
|
|
23888
|
+
}
|
|
23889
|
+
exports.useEndsWithOperation = useEndsWithOperation;
|
|
23890
|
+
function useContainsOperation(payload) {
|
|
23891
|
+
return (attribute) => ({ isValid: payload.list.some((value) => attribute.includes(value)) });
|
|
23892
|
+
}
|
|
23893
|
+
exports.useContainsOperation = useContainsOperation;
|
|
23894
|
+
function useInListOperation(payload) {
|
|
23895
|
+
return (attribute) => ({ isValid: payload.list.includes(attribute) });
|
|
23896
|
+
}
|
|
23897
|
+
exports.useInListOperation = useInListOperation;
|
|
23898
|
+
function useMatchesOperation(payload) {
|
|
23899
|
+
return (attribute) => {
|
|
23900
|
+
let expression;
|
|
23901
|
+
try {
|
|
23902
|
+
expression = new RegExp(payload.string);
|
|
23903
|
+
}
|
|
23904
|
+
catch (e) {
|
|
23905
|
+
return { isValid: false };
|
|
23906
|
+
}
|
|
23907
|
+
return { isValid: expression.test(attribute) };
|
|
23908
|
+
};
|
|
23909
|
+
}
|
|
23910
|
+
exports.useMatchesOperation = useMatchesOperation;
|
|
23911
|
+
//# sourceMappingURL=operations.js.map
|
|
23912
|
+
|
|
23913
|
+
/***/ }),
|
|
23914
|
+
|
|
23915
|
+
/***/ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/string/sanitizers.js":
|
|
23916
|
+
/*!*********************************************************************************************************!*\
|
|
23917
|
+
!*** ../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/string/sanitizers.js ***!
|
|
23918
|
+
\*********************************************************************************************************/
|
|
23919
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
23920
|
+
|
|
23921
|
+
"use strict";
|
|
23922
|
+
|
|
23923
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
23924
|
+
exports.StringSanitizersMapper = exports.sanitizeListString = exports.sanitizeSingleString = void 0;
|
|
23925
|
+
const types_1 = __webpack_require__(/*! ../types */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/types/index.js");
|
|
23926
|
+
const isString = (value) => typeof value === 'string';
|
|
23927
|
+
const sanitizeSingleString = (value) => {
|
|
23928
|
+
const sanitizedValue = value.string !== undefined && isString(value.string) ? { string: value.string } : undefined;
|
|
23929
|
+
return {
|
|
23930
|
+
isSanitized: !!sanitizedValue,
|
|
23931
|
+
sanitizedValue,
|
|
23932
|
+
};
|
|
23933
|
+
};
|
|
23934
|
+
exports.sanitizeSingleString = sanitizeSingleString;
|
|
23935
|
+
const sanitizeListString = (value) => {
|
|
23936
|
+
const sanitizedValue = value.list !== undefined && value.list.every((str) => isString(str))
|
|
23937
|
+
? { list: value.list }
|
|
23938
|
+
: undefined;
|
|
23939
|
+
return {
|
|
23940
|
+
isSanitized: !!sanitizedValue,
|
|
23941
|
+
sanitizedValue,
|
|
23942
|
+
};
|
|
23943
|
+
};
|
|
23944
|
+
exports.sanitizeListString = sanitizeListString;
|
|
23945
|
+
exports.StringSanitizersMapper = {
|
|
23946
|
+
[types_1.OperationEnum.Matches]: exports.sanitizeSingleString,
|
|
23947
|
+
[types_1.OperationEnum.Contains]: exports.sanitizeListString,
|
|
23948
|
+
[types_1.OperationEnum.StartsWith]: exports.sanitizeListString,
|
|
23949
|
+
[types_1.OperationEnum.EndsWith]: exports.sanitizeListString,
|
|
23950
|
+
[types_1.OperationEnum.InList]: exports.sanitizeListString,
|
|
23951
|
+
};
|
|
23952
|
+
//# sourceMappingURL=sanitizers.js.map
|
|
23953
|
+
|
|
23954
|
+
/***/ }),
|
|
23955
|
+
|
|
23956
|
+
/***/ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/string/types.js":
|
|
23957
|
+
/*!****************************************************************************************************!*\
|
|
23958
|
+
!*** ../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/string/types.js ***!
|
|
23959
|
+
\****************************************************************************************************/
|
|
23960
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
23961
|
+
|
|
23962
|
+
"use strict";
|
|
23963
|
+
|
|
23964
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
23965
|
+
//# sourceMappingURL=types.js.map
|
|
23966
|
+
|
|
23967
|
+
/***/ }),
|
|
23968
|
+
|
|
23969
|
+
/***/ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/types/index.js":
|
|
23970
|
+
/*!***************************************************************************************************!*\
|
|
23971
|
+
!*** ../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/types/index.js ***!
|
|
23972
|
+
\***************************************************************************************************/
|
|
23973
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
23974
|
+
|
|
23975
|
+
"use strict";
|
|
23976
|
+
|
|
23977
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
23978
|
+
if (k2 === undefined) k2 = k;
|
|
23979
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
23980
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
23981
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
23982
|
+
}
|
|
23983
|
+
Object.defineProperty(o, k2, desc);
|
|
23984
|
+
}) : (function(o, m, k, k2) {
|
|
23985
|
+
if (k2 === undefined) k2 = k;
|
|
23986
|
+
o[k2] = m[k];
|
|
23987
|
+
}));
|
|
23988
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
23989
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
23990
|
+
};
|
|
23991
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
23992
|
+
__exportStar(__webpack_require__(/*! ./operation.enum */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/types/operation.enum.js"), exports);
|
|
23993
|
+
//# sourceMappingURL=index.js.map
|
|
23994
|
+
|
|
23995
|
+
/***/ }),
|
|
23996
|
+
|
|
23997
|
+
/***/ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/types/operation.enum.js":
|
|
23998
|
+
/*!************************************************************************************************************!*\
|
|
23999
|
+
!*** ../../node_modules/@frontegg/entitlements-javascript-commons/dist/operations/types/operation.enum.js ***!
|
|
24000
|
+
\************************************************************************************************************/
|
|
24001
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
24002
|
+
|
|
24003
|
+
"use strict";
|
|
24004
|
+
|
|
24005
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
24006
|
+
exports.OperationEnum = void 0;
|
|
24007
|
+
var OperationEnum;
|
|
24008
|
+
(function (OperationEnum) {
|
|
24009
|
+
// String Operations
|
|
24010
|
+
OperationEnum["InList"] = "in_list";
|
|
24011
|
+
OperationEnum["StartsWith"] = "starts_with";
|
|
24012
|
+
OperationEnum["EndsWith"] = "ends_with";
|
|
24013
|
+
OperationEnum["Contains"] = "contains";
|
|
24014
|
+
OperationEnum["Matches"] = "matches";
|
|
24015
|
+
// Numeric Operations
|
|
24016
|
+
OperationEnum["Equal"] = "equal";
|
|
24017
|
+
OperationEnum["GreaterThan"] = "greater_than";
|
|
24018
|
+
OperationEnum["GreaterThanEqual"] = "greater_than_equal";
|
|
24019
|
+
OperationEnum["LesserThan"] = "lower_than";
|
|
24020
|
+
OperationEnum["LesserThanEqual"] = "lower_than_equal";
|
|
24021
|
+
OperationEnum["BetweenNumeric"] = "between_numeric";
|
|
24022
|
+
// Boolean Operations
|
|
24023
|
+
OperationEnum["Is"] = "is";
|
|
24024
|
+
// Date Operations
|
|
24025
|
+
OperationEnum["On"] = "on";
|
|
24026
|
+
OperationEnum["BetweenDate"] = "between_date";
|
|
24027
|
+
OperationEnum["OnOrAfter"] = "on_or_after";
|
|
24028
|
+
OperationEnum["OnOrBefore"] = "on_or_before";
|
|
24029
|
+
})(OperationEnum = exports.OperationEnum || (exports.OperationEnum = {}));
|
|
24030
|
+
//# sourceMappingURL=operation.enum.js.map
|
|
24031
|
+
|
|
24032
|
+
/***/ }),
|
|
24033
|
+
|
|
24034
|
+
/***/ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/rules/index.js":
|
|
24035
|
+
/*!****************************************************************************************!*\
|
|
24036
|
+
!*** ../../node_modules/@frontegg/entitlements-javascript-commons/dist/rules/index.js ***!
|
|
24037
|
+
\****************************************************************************************/
|
|
24038
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
24039
|
+
|
|
24040
|
+
"use strict";
|
|
24041
|
+
|
|
24042
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
24043
|
+
if (k2 === undefined) k2 = k;
|
|
24044
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
24045
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
24046
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
24047
|
+
}
|
|
24048
|
+
Object.defineProperty(o, k2, desc);
|
|
24049
|
+
}) : (function(o, m, k, k2) {
|
|
24050
|
+
if (k2 === undefined) k2 = k;
|
|
24051
|
+
o[k2] = m[k];
|
|
24052
|
+
}));
|
|
24053
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
24054
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
24055
|
+
};
|
|
24056
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
24057
|
+
__exportStar(__webpack_require__(/*! ./types */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/rules/types.js"), exports);
|
|
24058
|
+
__exportStar(__webpack_require__(/*! ./rule.evaluator */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/rules/rule.evaluator.js"), exports);
|
|
24059
|
+
//# sourceMappingURL=index.js.map
|
|
24060
|
+
|
|
24061
|
+
/***/ }),
|
|
24062
|
+
|
|
24063
|
+
/***/ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/rules/rule.evaluator.js":
|
|
24064
|
+
/*!*************************************************************************************************!*\
|
|
24065
|
+
!*** ../../node_modules/@frontegg/entitlements-javascript-commons/dist/rules/rule.evaluator.js ***!
|
|
24066
|
+
\*************************************************************************************************/
|
|
24067
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
24068
|
+
|
|
24069
|
+
"use strict";
|
|
24070
|
+
|
|
24071
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
24072
|
+
exports.createRuleEvaluator = void 0;
|
|
24073
|
+
const types_1 = __webpack_require__(/*! ./types */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/rules/types.js");
|
|
24074
|
+
const conditions_1 = __webpack_require__(/*! ../conditions */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/conditions/index.js");
|
|
24075
|
+
function createRuleEvaluator(payload) {
|
|
24076
|
+
return (attributes) => {
|
|
24077
|
+
const isRuleTreatable = payload.rule.conditions.every((condition) => {
|
|
24078
|
+
const evaluator = (0, conditions_1.createConditionEvaluator)({ condition });
|
|
24079
|
+
return evaluator(attributes);
|
|
24080
|
+
});
|
|
24081
|
+
return isRuleTreatable ? types_1.RuleEvaluationResultEnum.Treatable : types_1.RuleEvaluationResultEnum.Insufficient;
|
|
24082
|
+
};
|
|
24083
|
+
}
|
|
24084
|
+
exports.createRuleEvaluator = createRuleEvaluator;
|
|
24085
|
+
//# sourceMappingURL=rule.evaluator.js.map
|
|
24086
|
+
|
|
24087
|
+
/***/ }),
|
|
24088
|
+
|
|
24089
|
+
/***/ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/rules/types.js":
|
|
24090
|
+
/*!****************************************************************************************!*\
|
|
24091
|
+
!*** ../../node_modules/@frontegg/entitlements-javascript-commons/dist/rules/types.js ***!
|
|
24092
|
+
\****************************************************************************************/
|
|
24093
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
24094
|
+
|
|
24095
|
+
"use strict";
|
|
24096
|
+
|
|
24097
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
24098
|
+
exports.RuleEvaluationResultEnum = exports.TreatmentEnum = exports.ConditionLogicEnum = void 0;
|
|
24099
|
+
var ConditionLogicEnum;
|
|
24100
|
+
(function (ConditionLogicEnum) {
|
|
24101
|
+
ConditionLogicEnum["And"] = "and";
|
|
24102
|
+
})(ConditionLogicEnum = exports.ConditionLogicEnum || (exports.ConditionLogicEnum = {}));
|
|
24103
|
+
var TreatmentEnum;
|
|
24104
|
+
(function (TreatmentEnum) {
|
|
24105
|
+
TreatmentEnum["True"] = "true";
|
|
24106
|
+
TreatmentEnum["False"] = "false";
|
|
24107
|
+
})(TreatmentEnum = exports.TreatmentEnum || (exports.TreatmentEnum = {}));
|
|
24108
|
+
var RuleEvaluationResultEnum;
|
|
24109
|
+
(function (RuleEvaluationResultEnum) {
|
|
24110
|
+
RuleEvaluationResultEnum["Treatable"] = "treatable";
|
|
24111
|
+
RuleEvaluationResultEnum["Insufficient"] = "insufficient";
|
|
24112
|
+
})(RuleEvaluationResultEnum = exports.RuleEvaluationResultEnum || (exports.RuleEvaluationResultEnum = {}));
|
|
24113
|
+
//# sourceMappingURL=types.js.map
|
|
24114
|
+
|
|
24115
|
+
/***/ }),
|
|
24116
|
+
|
|
24117
|
+
/***/ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/user-entitlements/attributes.utils.js":
|
|
24118
|
+
/*!***************************************************************************************************************!*\
|
|
24119
|
+
!*** ../../node_modules/@frontegg/entitlements-javascript-commons/dist/user-entitlements/attributes.utils.js ***!
|
|
24120
|
+
\***************************************************************************************************************/
|
|
24121
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
24122
|
+
|
|
24123
|
+
"use strict";
|
|
24124
|
+
|
|
24125
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
24126
|
+
exports.modifyObjectKeysWithPrefix = exports.defaultFronteggAttributesMapper = exports.prepareAttributes = void 0;
|
|
24127
|
+
const flatten_utils_1 = __webpack_require__(/*! ./flatten.utils */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/user-entitlements/flatten.utils.js");
|
|
24128
|
+
/**
|
|
24129
|
+
* Merges both `custom` and `jwt` records, map Frontegg attributes and modifies record keys with corrisponding prefixes
|
|
24130
|
+
*
|
|
24131
|
+
* Example:
|
|
24132
|
+
* Input: { 'custom': { 'customAttribute': 'someValue' }, 'jwt': { 'email': 'user@email.com', other: 'some-vaule' } }
|
|
24133
|
+
* Output: { 'customAttribute': 'someValue', 'frontegg.email': 'user@email.com', 'jwt.email': 'user@email.com', 'jwt.other': 'some-vaule' }
|
|
24134
|
+
*/
|
|
24135
|
+
function prepareAttributes(attributes = {}, customFronteggAttributesMapper) {
|
|
24136
|
+
const { custom = {}, jwt = {} } = attributes;
|
|
24137
|
+
const flatJwtAttributes = (0, flatten_utils_1.flatten)(jwt);
|
|
24138
|
+
const fronteggAttributes = customFronteggAttributesMapper
|
|
24139
|
+
? customFronteggAttributesMapper(jwt)
|
|
24140
|
+
: defaultFronteggAttributesMapper(jwt);
|
|
24141
|
+
const fronteggAttributesPrefix = 'frontegg.';
|
|
24142
|
+
const jwtAttributesPrefix = 'jwt.';
|
|
24143
|
+
return {
|
|
24144
|
+
...custom,
|
|
24145
|
+
...modifyObjectKeysWithPrefix(fronteggAttributes, fronteggAttributesPrefix),
|
|
24146
|
+
...modifyObjectKeysWithPrefix(flatJwtAttributes, jwtAttributesPrefix),
|
|
24147
|
+
};
|
|
24148
|
+
}
|
|
24149
|
+
exports.prepareAttributes = prepareAttributes;
|
|
24150
|
+
function defaultFronteggAttributesMapper(jwt) {
|
|
24151
|
+
return {
|
|
24152
|
+
email: jwt.email,
|
|
24153
|
+
emailVerified: jwt.email_verified,
|
|
24154
|
+
tenantId: jwt.tenantId,
|
|
24155
|
+
userId: jwt.userId,
|
|
24156
|
+
};
|
|
24157
|
+
}
|
|
24158
|
+
exports.defaultFronteggAttributesMapper = defaultFronteggAttributesMapper;
|
|
24159
|
+
function modifyObjectKeysWithPrefix(object, prefix) {
|
|
24160
|
+
return Object.keys(object).reduce((modifiedObject, currentKey) => {
|
|
24161
|
+
modifiedObject[`${prefix}${currentKey}`] = object[currentKey];
|
|
24162
|
+
return modifiedObject;
|
|
24163
|
+
}, {});
|
|
24164
|
+
}
|
|
24165
|
+
exports.modifyObjectKeysWithPrefix = modifyObjectKeysWithPrefix;
|
|
24166
|
+
//# sourceMappingURL=attributes.utils.js.map
|
|
24167
|
+
|
|
24168
|
+
/***/ }),
|
|
24169
|
+
|
|
24170
|
+
/***/ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/user-entitlements/flatten.utils.js":
|
|
24171
|
+
/*!************************************************************************************************************!*\
|
|
24172
|
+
!*** ../../node_modules/@frontegg/entitlements-javascript-commons/dist/user-entitlements/flatten.utils.js ***!
|
|
24173
|
+
\************************************************************************************************************/
|
|
24174
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
24175
|
+
|
|
24176
|
+
"use strict";
|
|
24177
|
+
|
|
24178
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
24179
|
+
exports.flatten = void 0;
|
|
24180
|
+
function flatten(target, opts) {
|
|
24181
|
+
opts = opts || {};
|
|
24182
|
+
const delimiter = (opts === null || opts === void 0 ? void 0 : opts.delimiter) || '.';
|
|
24183
|
+
const maxDepth = opts === null || opts === void 0 ? void 0 : opts.maxDepth;
|
|
24184
|
+
const transformKey = (opts === null || opts === void 0 ? void 0 : opts.transformKey) || keyIdentity;
|
|
24185
|
+
const output = {};
|
|
24186
|
+
function step(object, prev, currentDepth) {
|
|
24187
|
+
currentDepth = currentDepth || 1;
|
|
24188
|
+
Object.keys(object).forEach(function (key) {
|
|
24189
|
+
const value = object[key];
|
|
24190
|
+
const isarray = (opts === null || opts === void 0 ? void 0 : opts.safe) && Array.isArray(value);
|
|
24191
|
+
const type = Object.prototype.toString.call(value);
|
|
24192
|
+
const isbuffer = isBuffer(value);
|
|
24193
|
+
const isobject = type === '[object Object]' || type === '[object Array]';
|
|
24194
|
+
const newKey = prev ? prev + delimiter + transformKey(key) : transformKey(key);
|
|
24195
|
+
if (!isarray &&
|
|
24196
|
+
!isbuffer &&
|
|
24197
|
+
isobject &&
|
|
24198
|
+
Object.keys(value).length &&
|
|
24199
|
+
(!(opts === null || opts === void 0 ? void 0 : opts.maxDepth) || (maxDepth && currentDepth < maxDepth))) {
|
|
24200
|
+
return step(value, newKey, currentDepth + 1);
|
|
24201
|
+
}
|
|
24202
|
+
output[newKey] = value;
|
|
24203
|
+
});
|
|
24204
|
+
}
|
|
24205
|
+
step(target);
|
|
24206
|
+
return output;
|
|
24207
|
+
}
|
|
24208
|
+
exports.flatten = flatten;
|
|
24209
|
+
function isBuffer(obj) {
|
|
24210
|
+
return obj && obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj);
|
|
24211
|
+
}
|
|
24212
|
+
function keyIdentity(key) {
|
|
24213
|
+
return key;
|
|
24214
|
+
}
|
|
24215
|
+
//# sourceMappingURL=flatten.utils.js.map
|
|
24216
|
+
|
|
24217
|
+
/***/ }),
|
|
24218
|
+
|
|
24219
|
+
/***/ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/user-entitlements/index.js":
|
|
24220
|
+
/*!****************************************************************************************************!*\
|
|
24221
|
+
!*** ../../node_modules/@frontegg/entitlements-javascript-commons/dist/user-entitlements/index.js ***!
|
|
24222
|
+
\****************************************************************************************************/
|
|
24223
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
24224
|
+
|
|
24225
|
+
"use strict";
|
|
24226
|
+
|
|
24227
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
24228
|
+
if (k2 === undefined) k2 = k;
|
|
24229
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
24230
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
24231
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
24232
|
+
}
|
|
24233
|
+
Object.defineProperty(o, k2, desc);
|
|
24234
|
+
}) : (function(o, m, k, k2) {
|
|
24235
|
+
if (k2 === undefined) k2 = k;
|
|
24236
|
+
o[k2] = m[k];
|
|
24237
|
+
}));
|
|
24238
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
24239
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
24240
|
+
};
|
|
24241
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
24242
|
+
__exportStar(__webpack_require__(/*! ./is-entitled.evaluator */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/user-entitlements/is-entitled.evaluator.js"), exports);
|
|
24243
|
+
__exportStar(__webpack_require__(/*! ./types */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/user-entitlements/types.js"), exports);
|
|
24244
|
+
__exportStar(__webpack_require__(/*! ./attributes.utils */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/user-entitlements/attributes.utils.js"), exports);
|
|
24245
|
+
//# sourceMappingURL=index.js.map
|
|
24246
|
+
|
|
24247
|
+
/***/ }),
|
|
24248
|
+
|
|
24249
|
+
/***/ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/user-entitlements/is-entitled.evaluator.js":
|
|
24250
|
+
/*!********************************************************************************************************************!*\
|
|
24251
|
+
!*** ../../node_modules/@frontegg/entitlements-javascript-commons/dist/user-entitlements/is-entitled.evaluator.js ***!
|
|
24252
|
+
\********************************************************************************************************************/
|
|
24253
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
24254
|
+
|
|
24255
|
+
"use strict";
|
|
24256
|
+
|
|
24257
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
24258
|
+
exports.evaluateIsEntitledToPermissions = exports.evaluateIsEntitledToFeature = void 0;
|
|
24259
|
+
const types_1 = __webpack_require__(/*! ./types */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/user-entitlements/types.js");
|
|
24260
|
+
const feature_flags_1 = __webpack_require__(/*! ../feature-flags */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/feature-flags/index.js");
|
|
24261
|
+
const attributes_utils_1 = __webpack_require__(/*! ./attributes.utils */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/user-entitlements/attributes.utils.js");
|
|
24262
|
+
const rules_1 = __webpack_require__(/*! ../rules */ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/rules/index.js");
|
|
24263
|
+
function evaluateIsEntitledToFeature(featureKey, userEntitlementsContext, attributes = {}) {
|
|
24264
|
+
const feature = userEntitlementsContext.features[featureKey];
|
|
24265
|
+
let hasExpired = false;
|
|
24266
|
+
if (feature && feature.expireTime !== null) {
|
|
24267
|
+
hasExpired = feature.expireTime !== types_1.NO_EXPIRATION_TIME && feature.expireTime < Date.now();
|
|
24268
|
+
if (!hasExpired) {
|
|
24269
|
+
return { isEntitled: true };
|
|
24270
|
+
}
|
|
24271
|
+
}
|
|
24272
|
+
if (feature && feature.featureFlag) {
|
|
24273
|
+
const preparedAttributes = (0, attributes_utils_1.prepareAttributes)(attributes);
|
|
24274
|
+
const { treatment } = (0, feature_flags_1.evaluateFeatureFlag)(feature.featureFlag, preparedAttributes);
|
|
24275
|
+
if (treatment === rules_1.TreatmentEnum.True) {
|
|
24276
|
+
return { isEntitled: true };
|
|
24277
|
+
}
|
|
24278
|
+
}
|
|
24279
|
+
return {
|
|
24280
|
+
isEntitled: false,
|
|
24281
|
+
justification: hasExpired ? types_1.NotEntitledJustification.BUNDLE_EXPIRED : types_1.NotEntitledJustification.MISSING_FEATURE,
|
|
24282
|
+
};
|
|
24283
|
+
}
|
|
24284
|
+
exports.evaluateIsEntitledToFeature = evaluateIsEntitledToFeature;
|
|
24285
|
+
function evaluateIsEntitledToPermissions(permissionKey, userEntitlementsContext, attributes) {
|
|
24286
|
+
const permission = userEntitlementsContext.permissions[permissionKey];
|
|
24287
|
+
if (!permission) {
|
|
24288
|
+
return { isEntitled: false, justification: types_1.NotEntitledJustification.MISSING_PERMISSION };
|
|
24289
|
+
}
|
|
24290
|
+
const linkedFeatures = getLinkedFeatures(permissionKey, userEntitlementsContext);
|
|
24291
|
+
if (!linkedFeatures.length) {
|
|
24292
|
+
return { isEntitled: true };
|
|
24293
|
+
}
|
|
24294
|
+
let hasExpired = false;
|
|
24295
|
+
for (const featureKey of linkedFeatures) {
|
|
24296
|
+
const { isEntitled, justification } = evaluateIsEntitledToFeature(featureKey, userEntitlementsContext, attributes);
|
|
24297
|
+
if (isEntitled) {
|
|
24298
|
+
return { isEntitled: true };
|
|
24299
|
+
}
|
|
24300
|
+
if (justification === types_1.NotEntitledJustification.BUNDLE_EXPIRED) {
|
|
24301
|
+
hasExpired = true;
|
|
24302
|
+
}
|
|
24303
|
+
}
|
|
24304
|
+
return {
|
|
24305
|
+
isEntitled: false,
|
|
24306
|
+
justification: hasExpired ? types_1.NotEntitledJustification.BUNDLE_EXPIRED : types_1.NotEntitledJustification.MISSING_FEATURE,
|
|
24307
|
+
};
|
|
24308
|
+
}
|
|
24309
|
+
exports.evaluateIsEntitledToPermissions = evaluateIsEntitledToPermissions;
|
|
24310
|
+
function getLinkedFeatures(permissionKey, userEntitlementsContext) {
|
|
24311
|
+
return Object.keys(userEntitlementsContext.features).filter((featureKey) => userEntitlementsContext.features[featureKey].linkedPermissions.includes(permissionKey));
|
|
24312
|
+
}
|
|
24313
|
+
//# sourceMappingURL=is-entitled.evaluator.js.map
|
|
24314
|
+
|
|
24315
|
+
/***/ }),
|
|
24316
|
+
|
|
24317
|
+
/***/ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/user-entitlements/types.js":
|
|
24318
|
+
/*!****************************************************************************************************!*\
|
|
24319
|
+
!*** ../../node_modules/@frontegg/entitlements-javascript-commons/dist/user-entitlements/types.js ***!
|
|
24320
|
+
\****************************************************************************************************/
|
|
24321
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
24322
|
+
|
|
24323
|
+
"use strict";
|
|
24324
|
+
|
|
24325
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
24326
|
+
exports.NO_EXPIRATION_TIME = exports.NotEntitledJustification = void 0;
|
|
24327
|
+
var NotEntitledJustification;
|
|
24328
|
+
(function (NotEntitledJustification) {
|
|
24329
|
+
NotEntitledJustification["MISSING_FEATURE"] = "MISSING_FEATURE";
|
|
24330
|
+
NotEntitledJustification["MISSING_PERMISSION"] = "MISSING_PERMISSION";
|
|
24331
|
+
NotEntitledJustification["BUNDLE_EXPIRED"] = "BUNDLE_EXPIRED";
|
|
24332
|
+
})(NotEntitledJustification = exports.NotEntitledJustification || (exports.NotEntitledJustification = {}));
|
|
24333
|
+
exports.NO_EXPIRATION_TIME = -1;
|
|
24334
|
+
//# sourceMappingURL=types.js.map
|
|
24335
|
+
|
|
23196
24336
|
/***/ }),
|
|
23197
24337
|
|
|
23198
24338
|
/***/ "../../node_modules/@frontegg/rest-api/ContextHolder/index.js":
|
|
@@ -23668,9 +24808,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
23668
24808
|
/* harmony import */ var _fetch__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../fetch */ "../../node_modules/@frontegg/rest-api/fetch.js");
|
|
23669
24809
|
/* harmony import */ var _jwt__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../jwt */ "../../node_modules/@frontegg/rest-api/jwt.js");
|
|
23670
24810
|
/* harmony import */ var _interfaces__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./interfaces */ "../../node_modules/@frontegg/rest-api/auth/interfaces.js");
|
|
23671
|
-
/* harmony import */ var
|
|
24811
|
+
/* harmony import */ var _entitlements__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../entitlements */ "../../node_modules/@frontegg/rest-api/entitlements/index.js");
|
|
23672
24812
|
/* harmony import */ var _entitlements_interfaces__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../entitlements/interfaces */ "../../node_modules/@frontegg/rest-api/entitlements/interfaces.js");
|
|
23673
24813
|
/* harmony import */ var _feature_flags__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../feature-flags */ "../../node_modules/@frontegg/rest-api/feature-flags/index.js");
|
|
24814
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./constants */ "../../node_modules/@frontegg/rest-api/auth/constants.js");
|
|
23674
24815
|
|
|
23675
24816
|
|
|
23676
24817
|
const _excluded = ["type"],
|
|
@@ -23689,6 +24830,7 @@ const _excluded = ["type"],
|
|
|
23689
24830
|
|
|
23690
24831
|
|
|
23691
24832
|
|
|
24833
|
+
|
|
23692
24834
|
async function generateLoginResponse(loginResponse) {
|
|
23693
24835
|
if (!loginResponse.accessToken) {
|
|
23694
24836
|
return loginResponse;
|
|
@@ -24397,11 +25539,12 @@ async function getMeV2() {
|
|
|
24397
25539
|
return (0,_fetch__WEBPACK_IMPORTED_MODULE_11__.Get)(`${_constants__WEBPACK_IMPORTED_MODULE_12__.urls.identity.users.v2}/me`);
|
|
24398
25540
|
}
|
|
24399
25541
|
async function getMeAndEntitlements() {
|
|
25542
|
+
const [useEntitlementsV2] = _feature_flags__WEBPACK_IMPORTED_MODULE_8__.FeatureFlags.getFeatureFlags([_constants__WEBPACK_IMPORTED_MODULE_13__.USE_ENTITLEMENTS_V2_ENDPOINT_FF], _ContextHolder__WEBPACK_IMPORTED_MODULE_5__.ContextHolder.getAppName() || '');
|
|
24400
25543
|
const actions = [{
|
|
24401
25544
|
action: getMeV2,
|
|
24402
25545
|
shouldLoad: true
|
|
24403
25546
|
}, {
|
|
24404
|
-
action:
|
|
25547
|
+
action: useEntitlementsV2 ? _entitlements__WEBPACK_IMPORTED_MODULE_14__.loadEntitlementsV2 : _entitlements__WEBPACK_IMPORTED_MODULE_14__.loadEntitlements,
|
|
24405
25548
|
shouldLoad: shouldLoadEntitlements()
|
|
24406
25549
|
}, {
|
|
24407
25550
|
action: getUserAuthorization,
|
|
@@ -25823,7 +26966,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
25823
26966
|
/* harmony import */ var _users_interfaces__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./users/interfaces */ "../../node_modules/@frontegg/rest-api/users/interfaces.js");
|
|
25824
26967
|
/* harmony import */ var _entitlements_interfaces__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./entitlements/interfaces */ "../../node_modules/@frontegg/rest-api/entitlements/interfaces.js");
|
|
25825
26968
|
/* harmony import */ var _security_center_interfaces__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./security-center/interfaces */ "../../node_modules/@frontegg/rest-api/security-center/interfaces.js");
|
|
25826
|
-
/** @license Frontegg v3.1.
|
|
26969
|
+
/** @license Frontegg v3.1.41
|
|
25827
26970
|
*
|
|
25828
26971
|
* This source code is licensed under the MIT license found in the
|
|
25829
26972
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -34131,6 +35274,42 @@ try {
|
|
|
34131
35274
|
}
|
|
34132
35275
|
|
|
34133
35276
|
|
|
35277
|
+
/***/ }),
|
|
35278
|
+
|
|
35279
|
+
/***/ "../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js":
|
|
35280
|
+
/*!*************************************************************************!*\
|
|
35281
|
+
!*** ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js ***!
|
|
35282
|
+
\*************************************************************************/
|
|
35283
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
35284
|
+
|
|
35285
|
+
"use strict";
|
|
35286
|
+
__webpack_require__.r(__webpack_exports__);
|
|
35287
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
35288
|
+
/* harmony export */ "default": () => (/* binding */ _arrayLikeToArray)
|
|
35289
|
+
/* harmony export */ });
|
|
35290
|
+
function _arrayLikeToArray(arr, len) {
|
|
35291
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
35292
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
35293
|
+
return arr2;
|
|
35294
|
+
}
|
|
35295
|
+
|
|
35296
|
+
/***/ }),
|
|
35297
|
+
|
|
35298
|
+
/***/ "../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js":
|
|
35299
|
+
/*!***********************************************************************!*\
|
|
35300
|
+
!*** ../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js ***!
|
|
35301
|
+
\***********************************************************************/
|
|
35302
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
35303
|
+
|
|
35304
|
+
"use strict";
|
|
35305
|
+
__webpack_require__.r(__webpack_exports__);
|
|
35306
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
35307
|
+
/* harmony export */ "default": () => (/* binding */ _arrayWithHoles)
|
|
35308
|
+
/* harmony export */ });
|
|
35309
|
+
function _arrayWithHoles(arr) {
|
|
35310
|
+
if (Array.isArray(arr)) return arr;
|
|
35311
|
+
}
|
|
35312
|
+
|
|
34134
35313
|
/***/ }),
|
|
34135
35314
|
|
|
34136
35315
|
/***/ "../../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js":
|
|
@@ -34434,6 +35613,64 @@ function _isNativeReflectConstruct() {
|
|
|
34434
35613
|
|
|
34435
35614
|
/***/ }),
|
|
34436
35615
|
|
|
35616
|
+
/***/ "../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js":
|
|
35617
|
+
/*!*****************************************************************************!*\
|
|
35618
|
+
!*** ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js ***!
|
|
35619
|
+
\*****************************************************************************/
|
|
35620
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
35621
|
+
|
|
35622
|
+
"use strict";
|
|
35623
|
+
__webpack_require__.r(__webpack_exports__);
|
|
35624
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
35625
|
+
/* harmony export */ "default": () => (/* binding */ _iterableToArrayLimit)
|
|
35626
|
+
/* harmony export */ });
|
|
35627
|
+
function _iterableToArrayLimit(arr, i) {
|
|
35628
|
+
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
35629
|
+
if (null != _i) {
|
|
35630
|
+
var _s,
|
|
35631
|
+
_e,
|
|
35632
|
+
_x,
|
|
35633
|
+
_r,
|
|
35634
|
+
_arr = [],
|
|
35635
|
+
_n = !0,
|
|
35636
|
+
_d = !1;
|
|
35637
|
+
try {
|
|
35638
|
+
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
35639
|
+
if (Object(_i) !== _i) return;
|
|
35640
|
+
_n = !1;
|
|
35641
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
|
35642
|
+
} catch (err) {
|
|
35643
|
+
_d = !0, _e = err;
|
|
35644
|
+
} finally {
|
|
35645
|
+
try {
|
|
35646
|
+
if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
|
|
35647
|
+
} finally {
|
|
35648
|
+
if (_d) throw _e;
|
|
35649
|
+
}
|
|
35650
|
+
}
|
|
35651
|
+
return _arr;
|
|
35652
|
+
}
|
|
35653
|
+
}
|
|
35654
|
+
|
|
35655
|
+
/***/ }),
|
|
35656
|
+
|
|
35657
|
+
/***/ "../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js":
|
|
35658
|
+
/*!************************************************************************!*\
|
|
35659
|
+
!*** ../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js ***!
|
|
35660
|
+
\************************************************************************/
|
|
35661
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
35662
|
+
|
|
35663
|
+
"use strict";
|
|
35664
|
+
__webpack_require__.r(__webpack_exports__);
|
|
35665
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
35666
|
+
/* harmony export */ "default": () => (/* binding */ _nonIterableRest)
|
|
35667
|
+
/* harmony export */ });
|
|
35668
|
+
function _nonIterableRest() {
|
|
35669
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
35670
|
+
}
|
|
35671
|
+
|
|
35672
|
+
/***/ }),
|
|
35673
|
+
|
|
34437
35674
|
/***/ "../../node_modules/@babel/runtime/helpers/esm/objectSpread2.js":
|
|
34438
35675
|
/*!**********************************************************************!*\
|
|
34439
35676
|
!*** ../../node_modules/@babel/runtime/helpers/esm/objectSpread2.js ***!
|
|
@@ -34544,6 +35781,31 @@ function _setPrototypeOf(o, p) {
|
|
|
34544
35781
|
|
|
34545
35782
|
/***/ }),
|
|
34546
35783
|
|
|
35784
|
+
/***/ "../../node_modules/@babel/runtime/helpers/esm/slicedToArray.js":
|
|
35785
|
+
/*!**********************************************************************!*\
|
|
35786
|
+
!*** ../../node_modules/@babel/runtime/helpers/esm/slicedToArray.js ***!
|
|
35787
|
+
\**********************************************************************/
|
|
35788
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
35789
|
+
|
|
35790
|
+
"use strict";
|
|
35791
|
+
__webpack_require__.r(__webpack_exports__);
|
|
35792
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
35793
|
+
/* harmony export */ "default": () => (/* binding */ _slicedToArray)
|
|
35794
|
+
/* harmony export */ });
|
|
35795
|
+
/* harmony import */ var _arrayWithHoles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayWithHoles.js */ "../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js");
|
|
35796
|
+
/* harmony import */ var _iterableToArrayLimit_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js");
|
|
35797
|
+
/* harmony import */ var _unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js");
|
|
35798
|
+
/* harmony import */ var _nonIterableRest_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./nonIterableRest.js */ "../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js");
|
|
35799
|
+
|
|
35800
|
+
|
|
35801
|
+
|
|
35802
|
+
|
|
35803
|
+
function _slicedToArray(arr, i) {
|
|
35804
|
+
return (0,_arrayWithHoles_js__WEBPACK_IMPORTED_MODULE_0__["default"])(arr) || (0,_iterableToArrayLimit_js__WEBPACK_IMPORTED_MODULE_1__["default"])(arr, i) || (0,_unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__["default"])(arr, i) || (0,_nonIterableRest_js__WEBPACK_IMPORTED_MODULE_3__["default"])();
|
|
35805
|
+
}
|
|
35806
|
+
|
|
35807
|
+
/***/ }),
|
|
35808
|
+
|
|
34547
35809
|
/***/ "../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js":
|
|
34548
35810
|
/*!********************************************************************!*\
|
|
34549
35811
|
!*** ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js ***!
|
|
@@ -34615,6 +35877,30 @@ function _typeof(obj) {
|
|
|
34615
35877
|
|
|
34616
35878
|
/***/ }),
|
|
34617
35879
|
|
|
35880
|
+
/***/ "../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js":
|
|
35881
|
+
/*!***********************************************************************************!*\
|
|
35882
|
+
!*** ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js ***!
|
|
35883
|
+
\***********************************************************************************/
|
|
35884
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
35885
|
+
|
|
35886
|
+
"use strict";
|
|
35887
|
+
__webpack_require__.r(__webpack_exports__);
|
|
35888
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
35889
|
+
/* harmony export */ "default": () => (/* binding */ _unsupportedIterableToArray)
|
|
35890
|
+
/* harmony export */ });
|
|
35891
|
+
/* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayLikeToArray.js */ "../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js");
|
|
35892
|
+
|
|
35893
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
35894
|
+
if (!o) return;
|
|
35895
|
+
if (typeof o === "string") return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(o, minLen);
|
|
35896
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
35897
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
35898
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
35899
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(o, minLen);
|
|
35900
|
+
}
|
|
35901
|
+
|
|
35902
|
+
/***/ }),
|
|
35903
|
+
|
|
34618
35904
|
/***/ "../../node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js":
|
|
34619
35905
|
/*!************************************************************************!*\
|
|
34620
35906
|
!*** ../../node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js ***!
|
|
@@ -34721,7 +36007,7 @@ function n(n){for(var r=arguments.length,t=Array(r>1?r-1:0),e=1;e<r;e++)t[e-1]=a
|
|
|
34721
36007
|
/******/ };
|
|
34722
36008
|
/******/
|
|
34723
36009
|
/******/ // Execute the module function
|
|
34724
|
-
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
36010
|
+
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
34725
36011
|
/******/
|
|
34726
36012
|
/******/ // Return the exports of the module
|
|
34727
36013
|
/******/ return module.exports;
|