@crystaldesign/diva-core 26.3.0-beta.32 → 26.3.0-beta.34
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/build/esm/{ModalsWrapper-85f7179a.js → ModalsWrapper-3639454b.js} +1 -1
- package/build/esm/{index-31ef3fdc.js → index-4163e582.js} +162 -72
- package/build/esm/{index-0d706772.js → index-e23cde61.js} +1 -1
- package/build/esm/index.js +1 -1
- package/build/types/core/src/handler/InternalApiHandler.d.ts +9 -0
- package/build/types/core/src/handler/InternalApiHandler.d.ts.map +1 -1
- package/build/types/core/src/handler/OrganizationHandler/index.d.ts +9 -0
- package/build/types/core/src/handler/OrganizationHandler/index.d.ts.map +1 -1
- package/build/types/core/src/store/ConfigurationStore.d.ts.map +1 -1
- package/build/types/core/src/store/ContentStore.d.ts.map +1 -1
- package/build/types/core/src/store/RootStore.d.ts +1 -2
- package/build/types/core/src/store/RootStore.d.ts.map +1 -1
- package/build/types/core/src/store/index.d.ts.map +1 -1
- package/build/umd/diva-core.umd.min.js +1 -1
- package/build/umd/report.html +1 -1
- package/package.json +10 -10
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as styleInject, u as useDivaCoreContext } from './index-
|
|
1
|
+
import { s as styleInject, u as useDivaCoreContext } from './index-4163e582.js';
|
|
2
2
|
import { useState, useEffect, useCallback } from 'react';
|
|
3
3
|
import { observer } from 'mobx-react-lite';
|
|
4
4
|
import Button from '@mui/material/Button';
|
|
@@ -45,7 +45,7 @@ import { actions } from '@storybook/addon-actions';
|
|
|
45
45
|
import * as Styles from '@mui/styles';
|
|
46
46
|
|
|
47
47
|
(function() {
|
|
48
|
-
const env = {"STAGE":"production","VERSION":"26.3.0-beta.
|
|
48
|
+
const env = {"STAGE":"production","VERSION":"26.3.0-beta.34"};
|
|
49
49
|
try {
|
|
50
50
|
if (process) {
|
|
51
51
|
process.env = Object.assign({}, process.env);
|
|
@@ -1011,13 +1011,19 @@ var ConfigurationStore = /*#__PURE__*/function () {
|
|
|
1011
1011
|
get: function get() {
|
|
1012
1012
|
var _this$_configuration5, _this$_configuration6;
|
|
1013
1013
|
var dataStore = this.root.dataStore;
|
|
1014
|
-
|
|
1014
|
+
var organization = dataStore === null || dataStore === void 0 ? void 0 : dataStore.organization;
|
|
1015
|
+
if (organization && (_this$_configuration5 = this._configuration) !== null && _this$_configuration5 !== void 0 && _this$_configuration5.components.openSellerDefaultForRetailer && organization.type == 'RETAILER') {
|
|
1015
1016
|
if (dataStore.userHasPermission('retail') && !dataStore.userHasPermission('acquisition') && !dataStore.userHasPermission('category_manager')) {
|
|
1016
1017
|
return {
|
|
1017
1018
|
type: 'SELLER'
|
|
1018
1019
|
};
|
|
1019
1020
|
}
|
|
1020
1021
|
}
|
|
1022
|
+
if (organization && dataStore.userHasPermission('retail') && organization.parentType == null && organization.type == null) {
|
|
1023
|
+
return {
|
|
1024
|
+
type: 'ARCHIVE'
|
|
1025
|
+
};
|
|
1026
|
+
}
|
|
1021
1027
|
return (_this$_configuration6 = this._configuration) === null || _this$_configuration6 === void 0 ? void 0 : _this$_configuration6.components["default"];
|
|
1022
1028
|
}
|
|
1023
1029
|
}, {
|
|
@@ -1377,7 +1383,7 @@ var ConfigurationStore = /*#__PURE__*/function () {
|
|
|
1377
1383
|
key: "updateConfiguration",
|
|
1378
1384
|
value: /*#__PURE__*/_regeneratorRuntime.mark(function updateConfiguration() {
|
|
1379
1385
|
var _this$root$contentSto;
|
|
1380
|
-
var configuration, type, prevState;
|
|
1386
|
+
var configuration, type, isStillAvailable, prevState;
|
|
1381
1387
|
return _regeneratorRuntime.wrap(function updateConfiguration$(_context2) {
|
|
1382
1388
|
while (1) switch (_context2.prev = _context2.next) {
|
|
1383
1389
|
case 0:
|
|
@@ -1393,12 +1399,19 @@ var ConfigurationStore = /*#__PURE__*/function () {
|
|
|
1393
1399
|
this.configuration = configuration;
|
|
1394
1400
|
type = (_this$root$contentSto = this.root.contentStore.currentComponent) === null || _this$root$contentSto === void 0 ? void 0 : _this$root$contentSto.type;
|
|
1395
1401
|
if (type) {
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
type: type,
|
|
1399
|
-
parameters: prevState.parameters,
|
|
1400
|
-
internal: prevState.internal
|
|
1402
|
+
isStillAvailable = this.root.contentStore.availableComponents.some(function (c) {
|
|
1403
|
+
return c.type === type;
|
|
1401
1404
|
});
|
|
1405
|
+
if (isStillAvailable) {
|
|
1406
|
+
prevState = this.root.contentStore.getState(type);
|
|
1407
|
+
this.root.contentStore.openComponent({
|
|
1408
|
+
type: type,
|
|
1409
|
+
parameters: prevState.parameters,
|
|
1410
|
+
internal: prevState.internal
|
|
1411
|
+
});
|
|
1412
|
+
} else if (this.defaultComponent) {
|
|
1413
|
+
this.root.contentStore.openComponent(this.defaultComponent);
|
|
1414
|
+
}
|
|
1402
1415
|
}
|
|
1403
1416
|
this.root.loadingAndErrorStore.toggleLoading('updateConfiguration');
|
|
1404
1417
|
case 8:
|
|
@@ -2404,10 +2417,11 @@ var ContentStore = /*#__PURE__*/function () {
|
|
|
2404
2417
|
(_this$componentChange2 = this.componentChange) === null || _this$componentChange2 === void 0 || (_this$componentChange3 = _this$componentChange2.callback) === null || _this$componentChange3 === void 0 || _this$componentChange3.call(_this$componentChange2);
|
|
2405
2418
|
return _context3.abrupt("return");
|
|
2406
2419
|
case 3:
|
|
2420
|
+
this.root.loadingAndErrorStore.setError(undefined);
|
|
2407
2421
|
this.root.loadingAndErrorStore.toggleLoading('openComponent');
|
|
2408
2422
|
LOG$9.debug('openComponent', toJS(action));
|
|
2409
2423
|
if (!action.url) {
|
|
2410
|
-
_context3.next =
|
|
2424
|
+
_context3.next = 11;
|
|
2411
2425
|
break;
|
|
2412
2426
|
}
|
|
2413
2427
|
LOG$9.businessEvent('onOpenModule', action.openInNewTab ? 'OpenUrlNewTab' : 'OpenUrl', "Open link ".concat(action.url), {
|
|
@@ -2421,16 +2435,16 @@ var ContentStore = /*#__PURE__*/function () {
|
|
|
2421
2435
|
}
|
|
2422
2436
|
this.root.loadingAndErrorStore.toggleLoading('openComponent');
|
|
2423
2437
|
return _context3.abrupt("return");
|
|
2424
|
-
case
|
|
2438
|
+
case 11:
|
|
2425
2439
|
_ref4 = action, type = _ref4.type, identifier = _ref4.identifier, parameters = _ref4.parameters, internal = _ref4.internal, route = _ref4.route, openInFullscreen = _ref4.openInFullscreen, keepOldState = _ref4.keepOldState;
|
|
2426
2440
|
config = undefined;
|
|
2427
2441
|
if (!openInFullscreen) {
|
|
2428
|
-
_context3.next =
|
|
2442
|
+
_context3.next = 16;
|
|
2429
2443
|
break;
|
|
2430
2444
|
}
|
|
2431
2445
|
this.openComponentInFullscreen(action);
|
|
2432
2446
|
return _context3.abrupt("return");
|
|
2433
|
-
case
|
|
2447
|
+
case 16:
|
|
2434
2448
|
if (type) {
|
|
2435
2449
|
config = this.availableComponents.find(function (c) {
|
|
2436
2450
|
return c.type == type && (!identifier || c.identifier == identifier);
|
|
@@ -2441,7 +2455,7 @@ var ContentStore = /*#__PURE__*/function () {
|
|
|
2441
2455
|
});
|
|
2442
2456
|
}
|
|
2443
2457
|
if (!(((_config2 = config) === null || _config2 === void 0 ? void 0 : _config2.type) == 'CATEGORY_MANAGER' || ((_config3 = config) === null || _config3 === void 0 ? void 0 : _config3.type) == 'ASSORTMENT_MANAGER')) {
|
|
2444
|
-
_context3.next =
|
|
2458
|
+
_context3.next = 24;
|
|
2445
2459
|
break;
|
|
2446
2460
|
}
|
|
2447
2461
|
parent = undefined;
|
|
@@ -2455,7 +2469,7 @@ var ContentStore = /*#__PURE__*/function () {
|
|
|
2455
2469
|
});
|
|
2456
2470
|
}
|
|
2457
2471
|
if (!parent) {
|
|
2458
|
-
_context3.next =
|
|
2472
|
+
_context3.next = 24;
|
|
2459
2473
|
break;
|
|
2460
2474
|
}
|
|
2461
2475
|
this.openModal({
|
|
@@ -2480,19 +2494,19 @@ var ContentStore = /*#__PURE__*/function () {
|
|
|
2480
2494
|
});
|
|
2481
2495
|
this.root.loadingAndErrorStore.toggleLoading('openComponent');
|
|
2482
2496
|
return _context3.abrupt("return");
|
|
2483
|
-
case
|
|
2497
|
+
case 24:
|
|
2484
2498
|
newTab = action.openInNewTab || ((_config6 = config) === null || _config6 === void 0 ? void 0 : _config6.openInNewTab);
|
|
2485
2499
|
if (!newTab) {
|
|
2486
|
-
_context3.next =
|
|
2500
|
+
_context3.next = 30;
|
|
2487
2501
|
break;
|
|
2488
2502
|
}
|
|
2489
2503
|
base = typeof action.openInNewTab == 'string' ? action.openInNewTab : window.origin;
|
|
2490
2504
|
this.openInNewTab(action, "".concat(base).concat(((_config7 = config) === null || _config7 === void 0 ? void 0 : _config7.route) || ''));
|
|
2491
2505
|
this.root.loadingAndErrorStore.toggleLoading('openComponent');
|
|
2492
2506
|
return _context3.abrupt("return");
|
|
2493
|
-
case
|
|
2507
|
+
case 30:
|
|
2494
2508
|
if (!(!this.root.dataStore.user && !this.isPublic(action))) {
|
|
2495
|
-
_context3.next =
|
|
2509
|
+
_context3.next = 36;
|
|
2496
2510
|
break;
|
|
2497
2511
|
}
|
|
2498
2512
|
LOG$9.debug("Component is restricted, open login form");
|
|
@@ -2500,9 +2514,9 @@ var ContentStore = /*#__PURE__*/function () {
|
|
|
2500
2514
|
this.root.authorizationStore.showLogin();
|
|
2501
2515
|
this.root.loadingAndErrorStore.toggleLoading('openComponent');
|
|
2502
2516
|
return _context3.abrupt("return");
|
|
2503
|
-
case
|
|
2517
|
+
case 36:
|
|
2504
2518
|
if (config) {
|
|
2505
|
-
_context3.next =
|
|
2519
|
+
_context3.next = 41;
|
|
2506
2520
|
break;
|
|
2507
2521
|
}
|
|
2508
2522
|
this._restrictedComponent = action;
|
|
@@ -2514,7 +2528,7 @@ var ContentStore = /*#__PURE__*/function () {
|
|
|
2514
2528
|
}
|
|
2515
2529
|
}), 'CORE_0005');
|
|
2516
2530
|
return _context3.abrupt("return");
|
|
2517
|
-
case
|
|
2531
|
+
case 41:
|
|
2518
2532
|
settings = undefined;
|
|
2519
2533
|
if (config.settings) {
|
|
2520
2534
|
settings = config.settings;
|
|
@@ -2565,7 +2579,7 @@ var ContentStore = /*#__PURE__*/function () {
|
|
|
2565
2579
|
}
|
|
2566
2580
|
this.setGlobalClass();
|
|
2567
2581
|
this.root.loadingAndErrorStore.toggleLoading('openComponent');
|
|
2568
|
-
case
|
|
2582
|
+
case 60:
|
|
2569
2583
|
case "end":
|
|
2570
2584
|
return _context3.stop();
|
|
2571
2585
|
}
|
|
@@ -3263,6 +3277,10 @@ var ContentStore = /*#__PURE__*/function () {
|
|
|
3263
3277
|
return false;
|
|
3264
3278
|
}
|
|
3265
3279
|
|
|
3280
|
+
//only this modules are allowed in wrapper organizations
|
|
3281
|
+
var allowedWrapperModules = ['ARCHIVE', 'PRODUCT_LIST'];
|
|
3282
|
+
if (_this7.root.dataStore.organization.type == null && _this7.root.dataStore.organization.parentType == null && !allowedWrapperModules.includes(component.type)) return false;
|
|
3283
|
+
|
|
3266
3284
|
//if there is a permission specified, the user must have it
|
|
3267
3285
|
return component.permission ? _this7.root.dataStore.userHasPermission(component.permission) : true;
|
|
3268
3286
|
});
|
|
@@ -5654,6 +5672,56 @@ var ApiHandler = /*#__PURE__*/function () {
|
|
|
5654
5672
|
}
|
|
5655
5673
|
return getRetailerLocationsForArea;
|
|
5656
5674
|
}()
|
|
5675
|
+
}, {
|
|
5676
|
+
key: "getOrganizationTree",
|
|
5677
|
+
value: function () {
|
|
5678
|
+
var _getOrganizationTree = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee15(userId) {
|
|
5679
|
+
var url, response;
|
|
5680
|
+
return _regeneratorRuntime.wrap(function _callee15$(_context15) {
|
|
5681
|
+
while (1) switch (_context15.prev = _context15.next) {
|
|
5682
|
+
case 0:
|
|
5683
|
+
url = new URL("".concat(this.authService, "/v2/users/").concat(userId, "/organization-tree"));
|
|
5684
|
+
_context15.prev = 1;
|
|
5685
|
+
_context15.next = 4;
|
|
5686
|
+
return this.fetch({
|
|
5687
|
+
url: url.toString(),
|
|
5688
|
+
jwt: this.jwt
|
|
5689
|
+
});
|
|
5690
|
+
case 4:
|
|
5691
|
+
response = _context15.sent;
|
|
5692
|
+
if (!response.ok) {
|
|
5693
|
+
_context15.next = 7;
|
|
5694
|
+
break;
|
|
5695
|
+
}
|
|
5696
|
+
return _context15.abrupt("return", response.json());
|
|
5697
|
+
case 7:
|
|
5698
|
+
throw new DivaError("Error from server while fetching organization tree. HTTP status: ".concat(response.status), {
|
|
5699
|
+
code: 'CORE_0001'
|
|
5700
|
+
});
|
|
5701
|
+
case 10:
|
|
5702
|
+
_context15.prev = 10;
|
|
5703
|
+
_context15.t0 = _context15["catch"](1);
|
|
5704
|
+
if (!(_context15.t0 instanceof DivaError)) {
|
|
5705
|
+
_context15.next = 14;
|
|
5706
|
+
break;
|
|
5707
|
+
}
|
|
5708
|
+
throw _context15.t0;
|
|
5709
|
+
case 14:
|
|
5710
|
+
throw new DivaError('Error while fetching organization tree', {
|
|
5711
|
+
code: 'CORE_0001',
|
|
5712
|
+
cause: _context15.t0
|
|
5713
|
+
});
|
|
5714
|
+
case 15:
|
|
5715
|
+
case "end":
|
|
5716
|
+
return _context15.stop();
|
|
5717
|
+
}
|
|
5718
|
+
}, _callee15, this, [[1, 10]]);
|
|
5719
|
+
}));
|
|
5720
|
+
function getOrganizationTree(_x26) {
|
|
5721
|
+
return _getOrganizationTree.apply(this, arguments);
|
|
5722
|
+
}
|
|
5723
|
+
return getOrganizationTree;
|
|
5724
|
+
}()
|
|
5657
5725
|
}, {
|
|
5658
5726
|
key: "fetch",
|
|
5659
5727
|
value: function (_fetch) {
|
|
@@ -5665,10 +5733,10 @@ var ApiHandler = /*#__PURE__*/function () {
|
|
|
5665
5733
|
};
|
|
5666
5734
|
return fetch;
|
|
5667
5735
|
}(/*#__PURE__*/function () {
|
|
5668
|
-
var _ref7 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
5736
|
+
var _ref7 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee16(_ref6) {
|
|
5669
5737
|
var url, _ref6$method, method, jwt, body, headers;
|
|
5670
|
-
return _regeneratorRuntime.wrap(function
|
|
5671
|
-
while (1) switch (
|
|
5738
|
+
return _regeneratorRuntime.wrap(function _callee16$(_context16) {
|
|
5739
|
+
while (1) switch (_context16.prev = _context16.next) {
|
|
5672
5740
|
case 0:
|
|
5673
5741
|
url = _ref6.url, _ref6$method = _ref6.method, method = _ref6$method === void 0 ? 'GET' : _ref6$method, jwt = _ref6.jwt, body = _ref6.body;
|
|
5674
5742
|
headers = {
|
|
@@ -5678,21 +5746,21 @@ var ApiHandler = /*#__PURE__*/function () {
|
|
|
5678
5746
|
if (jwt) {
|
|
5679
5747
|
headers.Authorization = "Bearer ".concat(jwt);
|
|
5680
5748
|
}
|
|
5681
|
-
|
|
5749
|
+
_context16.next = 5;
|
|
5682
5750
|
return fetch(url, {
|
|
5683
5751
|
method: method,
|
|
5684
5752
|
headers: headers,
|
|
5685
5753
|
body: body ? JSON.stringify(body) : undefined
|
|
5686
5754
|
});
|
|
5687
5755
|
case 5:
|
|
5688
|
-
return
|
|
5756
|
+
return _context16.abrupt("return", _context16.sent);
|
|
5689
5757
|
case 6:
|
|
5690
5758
|
case "end":
|
|
5691
|
-
return
|
|
5759
|
+
return _context16.stop();
|
|
5692
5760
|
}
|
|
5693
|
-
},
|
|
5761
|
+
}, _callee16);
|
|
5694
5762
|
}));
|
|
5695
|
-
return function (
|
|
5763
|
+
return function (_x27) {
|
|
5696
5764
|
return _ref7.apply(this, arguments);
|
|
5697
5765
|
};
|
|
5698
5766
|
}())
|
|
@@ -5832,38 +5900,66 @@ var OrganizationHandler = /*#__PURE__*/function () {
|
|
|
5832
5900
|
return getOrganizationBySearch;
|
|
5833
5901
|
}()
|
|
5834
5902
|
}, {
|
|
5835
|
-
key: "
|
|
5903
|
+
key: "getOrganizationTree",
|
|
5836
5904
|
value: function () {
|
|
5837
|
-
var
|
|
5905
|
+
var _getOrganizationTree = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {
|
|
5838
5906
|
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
5839
5907
|
while (1) switch (_context4.prev = _context4.next) {
|
|
5840
5908
|
case 0:
|
|
5841
|
-
|
|
5842
|
-
|
|
5909
|
+
if (!this.user) {
|
|
5910
|
+
_context4.next = 2;
|
|
5911
|
+
break;
|
|
5912
|
+
}
|
|
5913
|
+
return _context4.abrupt("return", this.apiHandler.getOrganizationTree(this.user._id));
|
|
5914
|
+
case 2:
|
|
5915
|
+
return _context4.abrupt("return", {
|
|
5916
|
+
tree: [],
|
|
5917
|
+
totalAccessible: 0
|
|
5918
|
+
});
|
|
5919
|
+
case 3:
|
|
5843
5920
|
case "end":
|
|
5844
5921
|
return _context4.stop();
|
|
5845
5922
|
}
|
|
5846
5923
|
}, _callee4, this);
|
|
5847
5924
|
}));
|
|
5848
|
-
function
|
|
5849
|
-
return
|
|
5925
|
+
function getOrganizationTree() {
|
|
5926
|
+
return _getOrganizationTree.apply(this, arguments);
|
|
5850
5927
|
}
|
|
5851
|
-
return
|
|
5928
|
+
return getOrganizationTree;
|
|
5852
5929
|
}()
|
|
5853
5930
|
}, {
|
|
5854
|
-
key: "
|
|
5931
|
+
key: "getOrganizationDataById",
|
|
5855
5932
|
value: function () {
|
|
5856
|
-
var
|
|
5933
|
+
var _getOrganizationDataById = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(organizationId) {
|
|
5857
5934
|
return _regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
5858
5935
|
while (1) switch (_context5.prev = _context5.next) {
|
|
5859
5936
|
case 0:
|
|
5860
|
-
return _context5.abrupt("return", this.apiHandler.
|
|
5937
|
+
return _context5.abrupt("return", this.apiHandler.fetchOrganization(organizationId));
|
|
5861
5938
|
case 1:
|
|
5862
5939
|
case "end":
|
|
5863
5940
|
return _context5.stop();
|
|
5864
5941
|
}
|
|
5865
5942
|
}, _callee5, this);
|
|
5866
5943
|
}));
|
|
5944
|
+
function getOrganizationDataById(_x10) {
|
|
5945
|
+
return _getOrganizationDataById.apply(this, arguments);
|
|
5946
|
+
}
|
|
5947
|
+
return getOrganizationDataById;
|
|
5948
|
+
}()
|
|
5949
|
+
}, {
|
|
5950
|
+
key: "getOrganizationParentByType",
|
|
5951
|
+
value: function () {
|
|
5952
|
+
var _getOrganizationParentByType = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(organizationId, type) {
|
|
5953
|
+
return _regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
5954
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
5955
|
+
case 0:
|
|
5956
|
+
return _context6.abrupt("return", this.apiHandler.getOrganizationParentByType(organizationId, type));
|
|
5957
|
+
case 1:
|
|
5958
|
+
case "end":
|
|
5959
|
+
return _context6.stop();
|
|
5960
|
+
}
|
|
5961
|
+
}, _callee6, this);
|
|
5962
|
+
}));
|
|
5867
5963
|
function getOrganizationParentByType(_x11, _x12) {
|
|
5868
5964
|
return _getOrganizationParentByType.apply(this, arguments);
|
|
5869
5965
|
}
|
|
@@ -5872,25 +5968,25 @@ var OrganizationHandler = /*#__PURE__*/function () {
|
|
|
5872
5968
|
}, {
|
|
5873
5969
|
key: "getRetailerLocationsForArea",
|
|
5874
5970
|
value: function () {
|
|
5875
|
-
var _getRetailerLocationsForArea = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
5876
|
-
return _regeneratorRuntime.wrap(function
|
|
5877
|
-
while (1) switch (
|
|
5971
|
+
var _getRetailerLocationsForArea = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7(organizationId, location, radius) {
|
|
5972
|
+
return _regeneratorRuntime.wrap(function _callee7$(_context7) {
|
|
5973
|
+
while (1) switch (_context7.prev = _context7.next) {
|
|
5878
5974
|
case 0:
|
|
5879
5975
|
if (!this.user) {
|
|
5880
|
-
|
|
5976
|
+
_context7.next = 2;
|
|
5881
5977
|
break;
|
|
5882
5978
|
}
|
|
5883
|
-
return
|
|
5979
|
+
return _context7.abrupt("return", this.apiHandler.getRetailerLocationsForArea(organizationId ? organizationId : this.organization._id, location, radius));
|
|
5884
5980
|
case 2:
|
|
5885
|
-
return
|
|
5981
|
+
return _context7.abrupt("return", {
|
|
5886
5982
|
data: [],
|
|
5887
5983
|
area: null
|
|
5888
5984
|
});
|
|
5889
5985
|
case 3:
|
|
5890
5986
|
case "end":
|
|
5891
|
-
return
|
|
5987
|
+
return _context7.stop();
|
|
5892
5988
|
}
|
|
5893
|
-
},
|
|
5989
|
+
}, _callee7, this);
|
|
5894
5990
|
}));
|
|
5895
5991
|
function getRetailerLocationsForArea(_x13, _x14, _x15) {
|
|
5896
5992
|
return _getRetailerLocationsForArea.apply(this, arguments);
|
|
@@ -8747,10 +8843,10 @@ var RootStore = /*#__PURE__*/function () {
|
|
|
8747
8843
|
case 15:
|
|
8748
8844
|
configuration = _context.sent;
|
|
8749
8845
|
this.configurationStore.configuration = configuration;
|
|
8750
|
-
this._initalComponent = component || urlState.component
|
|
8846
|
+
this._initalComponent = component || urlState.component;
|
|
8751
8847
|
if (((_this$_initalComponen = this._initalComponent) === null || _this$_initalComponen === void 0 ? void 0 : _this$_initalComponen.route) == '' || ((_this$_initalComponen2 = this._initalComponent) === null || _this$_initalComponen2 === void 0 ? void 0 : _this$_initalComponen2.route) == '/login') {
|
|
8752
8848
|
//open default route
|
|
8753
|
-
this._initalComponent =
|
|
8849
|
+
this._initalComponent = undefined;
|
|
8754
8850
|
}
|
|
8755
8851
|
LOG$4.successTransaction('LOAD_CONFIG');
|
|
8756
8852
|
LOG$4.startTransaction({
|
|
@@ -8900,7 +8996,7 @@ var RootStore = /*#__PURE__*/function () {
|
|
|
8900
8996
|
}
|
|
8901
8997
|
//if user is not logged in, show login form and exit initialization
|
|
8902
8998
|
//The overwritten initComponent params get saved in restrictedComponent. this will later be evaluated in getRedirectUrl
|
|
8903
|
-
this.contentStore.restrictedComponent = this._initalComponent;
|
|
8999
|
+
this.contentStore.restrictedComponent = this._initalComponent || this.configurationStore.defaultComponent;
|
|
8904
9000
|
|
|
8905
9001
|
//if the default url is opened (no initial organization is provided), login without organization
|
|
8906
9002
|
this.authorizationStore.showLogin(urlState.debugLogin, false, initialOrganization);
|
|
@@ -9124,23 +9220,16 @@ var RootStore = /*#__PURE__*/function () {
|
|
|
9124
9220
|
LOG$4.debug('View is already initialized');
|
|
9125
9221
|
return;
|
|
9126
9222
|
}
|
|
9127
|
-
|
|
9128
|
-
|
|
9129
|
-
|
|
9223
|
+
var initalComponent = this._initalComponent || this.configurationStore.defaultComponent;
|
|
9224
|
+
if (initalComponent) {
|
|
9225
|
+
LOG$4.debug("Inital component", JSON.stringify(initalComponent, null, 2));
|
|
9226
|
+
this.contentStore.openComponent(initalComponent);
|
|
9130
9227
|
} else {
|
|
9131
9228
|
this.loadingAndErrorStore.setError(new DivaError('No inital component available', {
|
|
9132
9229
|
code: 'CORE_0008'
|
|
9133
9230
|
}));
|
|
9134
9231
|
}
|
|
9135
9232
|
}
|
|
9136
|
-
}, {
|
|
9137
|
-
key: "initalComponent",
|
|
9138
|
-
get: function get() {
|
|
9139
|
-
if (!this.contentStore.currentComponent) {
|
|
9140
|
-
return this._initalComponent;
|
|
9141
|
-
}
|
|
9142
|
-
return undefined;
|
|
9143
|
-
}
|
|
9144
9233
|
}]);
|
|
9145
9234
|
}();
|
|
9146
9235
|
|
|
@@ -9209,7 +9298,7 @@ var DivaCoreProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
9209
9298
|
state: toJS({
|
|
9210
9299
|
isMobile: store.dataStore.isMobile,
|
|
9211
9300
|
isFirefox: store.dataStore.isFirefox,
|
|
9212
|
-
availableComponents:
|
|
9301
|
+
availableComponents: [],
|
|
9213
9302
|
availableLanguages: ((_store$configurationS = store.configurationStore.locales) === null || _store$configurationS === void 0 ? void 0 : _store$configurationS.available) || [],
|
|
9214
9303
|
organization: store.dataStore.organization,
|
|
9215
9304
|
organizationHierarchy: store.dataStore.organizationHirarchy,
|
|
@@ -9217,7 +9306,7 @@ var DivaCoreProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
9217
9306
|
jwt: store.authorizationStore.zToken,
|
|
9218
9307
|
nToken: store.authorizationStore.nToken,
|
|
9219
9308
|
navigationConfiguration: _objectSpread$6(_objectSpread$6({}, store.configurationStore.navigation), {}, {
|
|
9220
|
-
buttons:
|
|
9309
|
+
buttons: [],
|
|
9221
9310
|
customHeaderElement: store.contentStore.customHeaderComponent,
|
|
9222
9311
|
customLogo: store.contentStore.customLogo,
|
|
9223
9312
|
breadcrumbs: store.contentStore.breadcrumbs,
|
|
@@ -9242,7 +9331,7 @@ var DivaCoreProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
9242
9331
|
enableSupport: !!store.configurationStore.enableSupport,
|
|
9243
9332
|
googleMapsConfig: store.configurationStore.googleMapsconfig,
|
|
9244
9333
|
cometChatConfig: store.configurationStore.cometchatConfig,
|
|
9245
|
-
defaultComponent:
|
|
9334
|
+
defaultComponent: undefined,
|
|
9246
9335
|
currentComponent: store.contentStore.currentComponent,
|
|
9247
9336
|
sideMenuOpen: store.contentStore.sideMenuOpen
|
|
9248
9337
|
}),
|
|
@@ -9265,6 +9354,7 @@ var DivaCoreProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
9265
9354
|
useEffect(function () {
|
|
9266
9355
|
var stop = autorun(function () {
|
|
9267
9356
|
var _store$configurationS2;
|
|
9357
|
+
var isInitializing = store.initializing;
|
|
9268
9358
|
setState({
|
|
9269
9359
|
actions: {
|
|
9270
9360
|
openComponent: function openComponent(action) {
|
|
@@ -9310,7 +9400,7 @@ var DivaCoreProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
9310
9400
|
closeSideMenu: store.contentStore.closeSideMenu.bind(store.contentStore)
|
|
9311
9401
|
},
|
|
9312
9402
|
state: toJS({
|
|
9313
|
-
availableComponents: store.contentStore.availableComponentList,
|
|
9403
|
+
availableComponents: isInitializing ? [] : store.contentStore.availableComponentList,
|
|
9314
9404
|
availableLanguages: ((_store$configurationS2 = store.configurationStore.locales) === null || _store$configurationS2 === void 0 ? void 0 : _store$configurationS2.available) || [],
|
|
9315
9405
|
organization: store.dataStore.organization,
|
|
9316
9406
|
organizationHierarchy: store.dataStore.organizationHirarchy,
|
|
@@ -9322,7 +9412,7 @@ var DivaCoreProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
9322
9412
|
googleMapsConfig: store.configurationStore.googleMapsconfig,
|
|
9323
9413
|
cometChatConfig: store.configurationStore.cometchatConfig,
|
|
9324
9414
|
navigationConfiguration: _objectSpread$6(_objectSpread$6({}, store.configurationStore.navigation), {}, {
|
|
9325
|
-
buttons: store.contentStore.availableButtons || [],
|
|
9415
|
+
buttons: isInitializing ? [] : store.contentStore.availableButtons || [],
|
|
9326
9416
|
customLogo: store.contentStore.customLogo,
|
|
9327
9417
|
customHeaderElement: store.contentStore.customHeaderComponent,
|
|
9328
9418
|
breadcrumbs: store.contentStore.breadcrumbs,
|
|
@@ -9330,7 +9420,7 @@ var DivaCoreProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
9330
9420
|
allowHidePrices: store.contentStore.allowHidePrices,
|
|
9331
9421
|
showLogin: store.configurationStore.hasAuthentication
|
|
9332
9422
|
}),
|
|
9333
|
-
initializing:
|
|
9423
|
+
initializing: isInitializing,
|
|
9334
9424
|
loginMode: store.loginMode,
|
|
9335
9425
|
loading: store.loadingAndErrorStore.isLoading,
|
|
9336
9426
|
hidePrices: store.contentStore.hidePrices,
|
|
@@ -9345,7 +9435,7 @@ var DivaCoreProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
9345
9435
|
isFullscreenComponent: store.contentStore.isFullscreenComponentDefined,
|
|
9346
9436
|
isModalOpen: !!store.contentStore.modal,
|
|
9347
9437
|
enableSupport: !!store.configurationStore.enableSupport,
|
|
9348
|
-
defaultComponent: store.configurationStore.defaultComponent,
|
|
9438
|
+
defaultComponent: isInitializing ? undefined : store.configurationStore.defaultComponent,
|
|
9349
9439
|
currentComponent: store.contentStore.currentComponent,
|
|
9350
9440
|
sideMenuOpen: store.contentStore.sideMenuOpen
|
|
9351
9441
|
}),
|
|
@@ -10013,7 +10103,7 @@ var DrawerMenu$1 = observer(DrawerMenu);
|
|
|
10013
10103
|
function ownKeys$4(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
10014
10104
|
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$4(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$4(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10015
10105
|
var LazyModals$1 = /*#__PURE__*/React.lazy(function () {
|
|
10016
|
-
return import('./ModalsWrapper-
|
|
10106
|
+
return import('./ModalsWrapper-3639454b.js');
|
|
10017
10107
|
});
|
|
10018
10108
|
function Fullscreen(_ref) {
|
|
10019
10109
|
var inAbsoluteFullscreen = _ref.inAbsoluteFullscreen;
|
|
@@ -10473,10 +10563,10 @@ function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
|
|
|
10473
10563
|
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10474
10564
|
var LOG$2 = getLogger('Framework', 'Root');
|
|
10475
10565
|
var LazyAuth = /*#__PURE__*/React.lazy(function () {
|
|
10476
|
-
return import('./index-
|
|
10566
|
+
return import('./index-e23cde61.js');
|
|
10477
10567
|
});
|
|
10478
10568
|
var LazyModals = /*#__PURE__*/React.lazy(function () {
|
|
10479
|
-
return import('./ModalsWrapper-
|
|
10569
|
+
return import('./ModalsWrapper-3639454b.js');
|
|
10480
10570
|
});
|
|
10481
10571
|
function ContentComponent() {
|
|
10482
10572
|
var context = useDivaCoreContext();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as styleInject, u as useDivaCoreContext, g as getLogger } from './index-
|
|
1
|
+
import { s as styleInject, u as useDivaCoreContext, g as getLogger } from './index-4163e582.js';
|
|
2
2
|
import { forwardRef, useState, useRef, useEffect, useMemo } from 'react';
|
|
3
3
|
import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
|
|
4
4
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
package/build/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { c as AnalyticsHandler, A as AuthorizationHandler, e as ClientArticleHandler, C as Content, f as DivaMockProvider, D as DrawerMenuComponent, H as HelpButton, O as ONE_DAY_UNIX, d as OrganizationHandler, P as ProductHandler, R as RequestStatus, S as SupportHandler, b as default, g as getLogger, i as i18n, h as storyBookCoreMock, a as useDivaCore } from './index-
|
|
1
|
+
export { c as AnalyticsHandler, A as AuthorizationHandler, e as ClientArticleHandler, C as Content, f as DivaMockProvider, D as DrawerMenuComponent, H as HelpButton, O as ONE_DAY_UNIX, d as OrganizationHandler, P as ProductHandler, R as RequestStatus, S as SupportHandler, b as default, g as getLogger, i as i18n, h as storyBookCoreMock, a as useDivaCore } from './index-4163e582.js';
|
|
2
2
|
export { DivaError, default as DivaUtils } from '@crystaldesign/diva-utils';
|
|
3
3
|
export { Trans, useTranslation } from 'react-i18next';
|
|
4
4
|
export * from '@crystaldesign/basket-model';
|
|
@@ -80,6 +80,15 @@ export default class ApiHandler {
|
|
|
80
80
|
getOrganizationBySearch(userId: string, allowedOrganizationTypes: OrganizationType[], allowed?: string[], excluded?: string[], query?: string, skip?: number): Promise<any>;
|
|
81
81
|
getOrganizationParentByType(organizationId: string, type: 'SUPPLIER' | 'RETAILER'): Promise<any>;
|
|
82
82
|
getRetailerLocationsForArea(organizationId: string, location: google.maps.LatLng | undefined, radius: string): Promise<any>;
|
|
83
|
+
getOrganizationTree(userId: string): Promise<{
|
|
84
|
+
tree: {
|
|
85
|
+
_id: string;
|
|
86
|
+
displayName: string;
|
|
87
|
+
orgType: 'retailer' | 'retailerChannel' | 'supplier' | 'dealer' | 'association' | 'wrapper';
|
|
88
|
+
children?: any[];
|
|
89
|
+
}[];
|
|
90
|
+
totalAccessible: number;
|
|
91
|
+
}>;
|
|
83
92
|
private fetch;
|
|
84
93
|
}
|
|
85
94
|
//# sourceMappingURL=InternalApiHandler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InternalApiHandler.d.ts","sourceRoot":"","sources":["../../../../../src/handler/InternalApiHandler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE5E,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,MAAM,CAAC,OAAO,OAAO,UAAU;IACjB,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC,OAAO,KAAK,YAAY,GAEvB;IAED,OAAO,KAAK,cAAc,GAEzB;IAED,OAAO,KAAK,WAAW,GAEtB;IAED,OAAO,KAAK,cAAc,GAEzB;IAED,OAAO,KAAK,GAAG,GAEd;IAED,OAAO,KAAK,cAAc,GAEz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B,QAAQ,CAAC,EAAE,MAAM,EAAE,EACnB,KAAK,CAAC,EAAE,MAAM,EACd,IAAI,SAAI;IAgCJ,2BAA2B,CAAC,cAAc,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,GAAG,UAAU;IAkBjF,2BAA2B,CAAC,cAAc,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,IAAI,CAAC,MAAM,GAAG,SAAS,EAAE,MAAM,EAAE,MAAM;IAsB5G,mBAAmB,CACvB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC;QACT,IAAI,EAAE;YACJ,GAAG,EAAE,MAAM,CAAC;YACZ,WAAW,EAAE,MAAM,CAAC;YACpB,OAAO,EAAE,UAAU,GAAG,iBAAiB,GAAG,UAAU,GAAG,QAAQ,GAAG,aAAa,GAAG,SAAS,CAAC;YAC5F,QAAQ,CAAC,EAAE,GAAG,EAAE,CAAC;SAClB,EAAE,CAAC;QACJ,eAAe,EAAE,MAAM,CAAC;KACzB,CAAC;YAiBY,KAAK;CAcpB"}
|
|
@@ -52,6 +52,15 @@ export declare class OrganizationHandler {
|
|
|
52
52
|
childrenOrganizations?: undefined;
|
|
53
53
|
}>;
|
|
54
54
|
getOrganizationBySearch(query?: string, skip?: number): Promise<any>;
|
|
55
|
+
getOrganizationTree(): Promise<{
|
|
56
|
+
tree: {
|
|
57
|
+
_id: string;
|
|
58
|
+
displayName: string;
|
|
59
|
+
orgType: "retailer" | "retailerChannel" | "supplier" | "dealer" | "association" | "wrapper";
|
|
60
|
+
children?: any[];
|
|
61
|
+
}[];
|
|
62
|
+
totalAccessible: number;
|
|
63
|
+
}>;
|
|
55
64
|
getOrganizationDataById(organizationId: string): Promise<import("../..").OrganizationData | "FORBIDDEN" | undefined>;
|
|
56
65
|
getOrganizationParentByType(organizationId: string, type: 'SUPPLIER' | 'RETAILER'): Promise<any>;
|
|
57
66
|
getRetailerLocationsForArea(organizationId: string, location: google.maps.LatLng | undefined, radius: string): Promise<any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/handler/OrganizationHandler/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,qBAAa,mBAAmB;IAClB,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC,OAAO,KAAK,UAAU,GAErB;IAED,OAAO,KAAK,YAAY,GAEvB;IAED,OAAO,KAAK,IAAI,GAEf;IAED,OAAO,KAAK,wBAAwB,GAEnC;IAED,OAAO,KAAK,kBAAkB,GAE7B;IAED,OAAO,KAAK,qBAAqB,GAEhC;IAEK,wBAAwB,CAAC,cAAc,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/handler/OrganizationHandler/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,qBAAa,mBAAmB;IAClB,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC,OAAO,KAAK,UAAU,GAErB;IAED,OAAO,KAAK,YAAY,GAEvB;IAED,OAAO,KAAK,IAAI,GAEf;IAED,OAAO,KAAK,wBAAwB,GAEnC;IAED,OAAO,KAAK,kBAAkB,GAE7B;IAED,OAAO,KAAK,qBAAqB,GAEhC;IAEK,wBAAwB,CAAC,cAAc,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM;;;;gBAyEq7P,CAAC;;+BAA4D,CAAC;;;oBAA0C,CAAC;;;;;;IAzDloQ,wBAAwB,CAAC,cAAc,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,E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E,OAAO,CAAC,eAAe,CAAC,YAAA,EAC3C,MAAM,CAAC,EAAE,MAAM,YAAA;IASzB,IAAI,aAAa,CAAC,MAAM,EAAE,aAAa,EAGtC;IAED,IAAI,aAAa,IALS,aAAa,CAOtC;IAED,IAAI,aAAa,aAEhB;IAED,IAAI,kBAAkB,yBAOrB;IAED,IAAI,qBAAqB,yBAExB;IAED,IAAI,UAAU,gDAEb;IAED,IAAI,gBAAgB,
|
|
1
|
+
{"version":3,"file":"ConfigurationStore.d.ts","sourceRoot":"","sources":["../../../../../src/store/ConfigurationStore.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,SAAS,EACT,eAAe,EACf,2BAA2B,EAC3B,2BAA2B,EAC3B,aAAa,EACb,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EACjB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAa,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,SAAS,MAAM,aAAa,CAAC;AAMpC,MAAM,CAAC,OAAO,OAAO,kBAAkB;IAMnC,OAAO,CAAC,IAAI;IACZ,OAAO,CAAC,UAAU;IAClB,OAAO,CAAC,gBAAgB,CAAC;IACzB,OAAO,CAAC,MAAM,CAAC;IARjB,OAAO,CAAC,cAAc,CAAC,CAA4B;IACnD,OAAO,CAAC,kBAAkB,CAA+B;IAClD,uBAAuB,CAAC,EAAE;QAAE,YAAY,EAAE;YAAE,YAAY,EAAE,OAAO,CAAA;SAAE,CAAC;QAAC,UAAU,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAa;gBAGjH,IAAI,EAAE,SAAS,EACf,UAAU,EAAE,MAAM,EAClB,gBAAgB,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,YAAA,EAC3C,MAAM,CAAC,EAAE,MAAM,YAAA;IASzB,IAAI,aAAa,CAAC,MAAM,EAAE,aAAa,EAGtC;IAED,IAAI,aAAa,IALS,aAAa,CAOtC;IAED,IAAI,aAAa,aAEhB;IAED,IAAI,kBAAkB,yBAOrB;IAED,IAAI,qBAAqB,yBAExB;IAED,IAAI,UAAU,gDAEb;IAED,IAAI,gBAAgB,6CAcnB;IAED,IAAI,OAAO,2CAEV;IAED,IAAI,OAAO,+CAEV;IAED,IAAI,KAAK;;;;;;;;;;;;;;;;;;;;;;;MA0CR;IAED,OAAO,CAAC,uBAAuB;IAc/B,IAAI,UAAU,IAAI,2BAA2B,CAwB5C;IAED,IAAI,gBAAgB,IAAI,gBAAgB,CAOvC;IAED,IAAI,eAAe,IAAI,eAAe,CAMrC;IAED,IAAI,iBAAiB,YAEpB;IAED,IAAI,cAAc,IAAI,2BAA2B,CAchD;IAED,IAAI,aAAa,wBAEhB;IAED,IAAI,aAAa,wBAEhB;IAED,IAAI,iBAAiB,qDAEpB;IAED,IAAI,YAAY,YAEf;IAED,IAAI,aAAa,wBAEhB;IAED,IAAI,kBAAkB,wBAKrB;IAED,IAAI,SAAS,IAAI,SAAS,CAEzB;IAED,IAAI,sBAAsB,qBAEzB;IAED,IAAI,WAAW,gBA+Bd;IAED,IAAI,gBAAgB,uBAEnB;IAED,IAAI,wBAAwB,IAAI,gBAAgB,EAAE,CAOjD;IAED,uBAAuB;IAIjB,kBAAkB,CAAC,EACvB,UAAU,EACV,IAAI,EACJ,MAAM,EACN,cAAmD,GACpD,EAAE;QACD,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,IAAI,EAAE,MAAM,CAAC;QACb,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB;IAsDA,mBAAmB;CAsBrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentStore.d.ts","sourceRoot":"","sources":["../../../../../src/store/ContentStore.tsx"],"names":[],"mappings":"AAQA,OAAO,EACL,MAAM,EACN,UAAU,EACV,gBAAgB,EAChB,WAAW,EACX,SAAS,EACT,sBAAsB,EACtB,mBAAmB,EACnB,cAAc,EACd,SAAS,EA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