@crystaldesign/diva-core 26.4.0-beta.8 → 26.4.0-rc.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/build/esm/{ModalsWrapper-c13376d5.js → ModalsWrapper-aff6c9a7.js} +1 -1
- package/build/esm/{index-19d9f8c1.js → index-3ba62396.js} +1 -1
- package/build/esm/{index-8745c2b6.js → index-b56af62f.js} +157 -41
- package/build/esm/index.js +1 -1
- package/build/types/core/src/handler/AnalyticsHandler/index.d.ts.map +1 -1
- package/build/types/core/src/handler/ClientArticleHandler/index.d.ts +1 -0
- package/build/types/core/src/handler/ClientArticleHandler/index.d.ts.map +1 -1
- package/build/types/core/src/store/AuthorizationStore.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/DataStore.d.ts +5 -1
- package/build/types/core/src/store/DataStore.d.ts.map +1 -1
- package/build/types/core/src/store/index.d.ts +9 -1
- package/build/types/core/src/store/index.d.ts.map +1 -1
- package/build/types/core/src/store/mock/divaCoreMockProvider.d.ts.map +1 -1
- package/build/types/core/src/store/mock/index.d.ts.map +1 -1
- package/build/types/core/src/types.d.ts +11 -0
- package/build/types/core/src/types.d.ts.map +1 -1
- package/build/types/core/src/utils/canAccessOrganization.d.ts +3 -0
- package/build/types/core/src/utils/canAccessOrganization.d.ts.map +1 -0
- 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-b56af62f.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';
|
|
@@ -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-b56af62f.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';
|
|
@@ -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.4.0-
|
|
48
|
+
const env = {"STAGE":"production","VERSION":"26.4.0-rc.0"};
|
|
49
49
|
try {
|
|
50
50
|
if (process) {
|
|
51
51
|
process.env = Object.assign({}, process.env);
|
|
@@ -1009,7 +1009,7 @@ var ConfigurationStore = /*#__PURE__*/function () {
|
|
|
1009
1009
|
}, {
|
|
1010
1010
|
key: "defaultComponent",
|
|
1011
1011
|
get: function get() {
|
|
1012
|
-
var _this$_configuration5, _this$_configuration6;
|
|
1012
|
+
var _this$_configuration5, _organization$type, _organization$type$to, _this$_configuration6;
|
|
1013
1013
|
var dataStore = this.root.dataStore;
|
|
1014
1014
|
var organization = dataStore === null || dataStore === void 0 ? void 0 : dataStore.organization;
|
|
1015
1015
|
if (organization && (_this$_configuration5 = this._configuration) !== null && _this$_configuration5 !== void 0 && _this$_configuration5.components.openSellerDefaultForRetailer && organization.type == 'RETAILER') {
|
|
@@ -1019,7 +1019,9 @@ var ConfigurationStore = /*#__PURE__*/function () {
|
|
|
1019
1019
|
};
|
|
1020
1020
|
}
|
|
1021
1021
|
}
|
|
1022
|
-
|
|
1022
|
+
var organizationType = organization === null || organization === void 0 || (_organization$type = organization.type) === null || _organization$type === void 0 || (_organization$type$to = _organization$type.toUpperCase) === null || _organization$type$to === void 0 ? void 0 : _organization$type$to.call(_organization$type);
|
|
1023
|
+
var isWrapperLikeOrganization = (organization === null || organization === void 0 ? void 0 : organization.parentType) == null && (organization === null || organization === void 0 ? void 0 : organization.type) == null || organizationType === 'SUPPLIER' || organizationType === 'SUPLIER';
|
|
1024
|
+
if (organization && dataStore.userHasPermission('retail') && isWrapperLikeOrganization) {
|
|
1023
1025
|
return {
|
|
1024
1026
|
type: 'ARCHIVE'
|
|
1025
1027
|
};
|
|
@@ -1479,6 +1481,7 @@ var DataStore = /*#__PURE__*/function () {
|
|
|
1479
1481
|
this.root = root;
|
|
1480
1482
|
_defineProperty(this, "_currentOrganizationId", undefined);
|
|
1481
1483
|
_defineProperty(this, "_organization", undefined);
|
|
1484
|
+
_defineProperty(this, "_organizationTree", DataStore.EMPTY_ORGANIZATION_TREE);
|
|
1482
1485
|
_defineProperty(this, "_user", undefined);
|
|
1483
1486
|
_defineProperty(this, "_isMobile", void 0);
|
|
1484
1487
|
_defineProperty(this, "_isFirefox", void 0);
|
|
@@ -1488,7 +1491,8 @@ var DataStore = /*#__PURE__*/function () {
|
|
|
1488
1491
|
makeAutoObservable(this, {
|
|
1489
1492
|
updateOrganizationInternal: flow,
|
|
1490
1493
|
updateOrganization: flow,
|
|
1491
|
-
getSessionGuidFlow: flow
|
|
1494
|
+
getSessionGuidFlow: flow,
|
|
1495
|
+
loadOrganizationTree: flow
|
|
1492
1496
|
});
|
|
1493
1497
|
this._isMobile = userAgentIsMobile();
|
|
1494
1498
|
var userAgent = navigator.userAgent.toLowerCase();
|
|
@@ -1529,6 +1533,11 @@ var DataStore = /*#__PURE__*/function () {
|
|
|
1529
1533
|
get: function get() {
|
|
1530
1534
|
return this._currentOrganizationId || '';
|
|
1531
1535
|
}
|
|
1536
|
+
}, {
|
|
1537
|
+
key: "organizationTree",
|
|
1538
|
+
get: function get() {
|
|
1539
|
+
return this._organizationTree;
|
|
1540
|
+
}
|
|
1532
1541
|
|
|
1533
1542
|
/**
|
|
1534
1543
|
* Returns the full list of parent organizations including the current organization
|
|
@@ -1849,8 +1858,45 @@ var DataStore = /*#__PURE__*/function () {
|
|
|
1849
1858
|
}
|
|
1850
1859
|
}, updateOrganizationInternal, this, [[2, 21, 24, 27]]);
|
|
1851
1860
|
})
|
|
1861
|
+
}, {
|
|
1862
|
+
key: "loadOrganizationTree",
|
|
1863
|
+
value: /*#__PURE__*/_regeneratorRuntime.mark(function loadOrganizationTree() {
|
|
1864
|
+
var organizationTree;
|
|
1865
|
+
return _regeneratorRuntime.wrap(function loadOrganizationTree$(_context6) {
|
|
1866
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
1867
|
+
case 0:
|
|
1868
|
+
if (!(!this.root.user || this.root.authorizationStore.loginState !== 'user')) {
|
|
1869
|
+
_context6.next = 3;
|
|
1870
|
+
break;
|
|
1871
|
+
}
|
|
1872
|
+
this._organizationTree = DataStore.EMPTY_ORGANIZATION_TREE;
|
|
1873
|
+
return _context6.abrupt("return");
|
|
1874
|
+
case 3:
|
|
1875
|
+
_context6.prev = 3;
|
|
1876
|
+
_context6.next = 6;
|
|
1877
|
+
return this.root.organizationHandler.getOrganizationTree();
|
|
1878
|
+
case 6:
|
|
1879
|
+
organizationTree = _context6.sent;
|
|
1880
|
+
this._organizationTree = organizationTree !== null && organizationTree !== void 0 ? organizationTree : DataStore.EMPTY_ORGANIZATION_TREE;
|
|
1881
|
+
_context6.next = 14;
|
|
1882
|
+
break;
|
|
1883
|
+
case 10:
|
|
1884
|
+
_context6.prev = 10;
|
|
1885
|
+
_context6.t0 = _context6["catch"](3);
|
|
1886
|
+
this._organizationTree = DataStore.EMPTY_ORGANIZATION_TREE;
|
|
1887
|
+
LOG$c.warn('Could not fetch organization tree');
|
|
1888
|
+
case 14:
|
|
1889
|
+
case "end":
|
|
1890
|
+
return _context6.stop();
|
|
1891
|
+
}
|
|
1892
|
+
}, loadOrganizationTree, this, [[3, 10]]);
|
|
1893
|
+
})
|
|
1852
1894
|
}]);
|
|
1853
1895
|
}();
|
|
1896
|
+
_defineProperty(DataStore, "EMPTY_ORGANIZATION_TREE", {
|
|
1897
|
+
tree: [],
|
|
1898
|
+
totalAccessible: 0
|
|
1899
|
+
});
|
|
1854
1900
|
|
|
1855
1901
|
function componentsEqual(c1, c2) {
|
|
1856
1902
|
if (!c1 && !c2) {
|
|
@@ -2112,9 +2158,9 @@ function updateCssThemeVariables (ref, theme) {
|
|
|
2112
2158
|
|
|
2113
2159
|
var _excluded$4 = ["openFrom"],
|
|
2114
2160
|
_excluded2$1 = ["onClose"];
|
|
2115
|
-
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
2116
|
-
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
2117
|
-
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
2161
|
+
function _createForOfIteratorHelper$1(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$1(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
2162
|
+
function _unsupportedIterableToArray$1(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$1(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1(r, a) : void 0; } }
|
|
2163
|
+
function _arrayLikeToArray$1(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
2118
2164
|
function ownKeys$a(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; }
|
|
2119
2165
|
function _objectSpread$a(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$a(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$a(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2120
2166
|
var LOG$9 = getLogger('Framework', 'ContentStore');
|
|
@@ -2403,8 +2449,8 @@ var ContentStore = /*#__PURE__*/function () {
|
|
|
2403
2449
|
}, {
|
|
2404
2450
|
key: "isWrapperOrganization",
|
|
2405
2451
|
get: function get() {
|
|
2406
|
-
var
|
|
2407
|
-
return (
|
|
2452
|
+
var organization = this.root.dataStore.organization;
|
|
2453
|
+
return (organization === null || organization === void 0 ? void 0 : organization.type) == null && (organization === null || organization === void 0 ? void 0 : organization.parentType) == null || (organization === null || organization === void 0 ? void 0 : organization.type) == 'SUPPLIER';
|
|
2408
2454
|
}
|
|
2409
2455
|
}, {
|
|
2410
2456
|
key: "isWrapperRestrictedAction",
|
|
@@ -2444,7 +2490,7 @@ var ContentStore = /*#__PURE__*/function () {
|
|
|
2444
2490
|
_config6,
|
|
2445
2491
|
_config8,
|
|
2446
2492
|
_config9;
|
|
2447
|
-
var _this$componentChange2, _this$componentChange3, _this$openInNewTab, _this$openInNewTab2, link, _window, _ref4, type, identifier, parameters, internal, route, openInFullscreen, keepOldState, config, parent, _this$root$dataStore
|
|
2493
|
+
var _this$componentChange2, _this$componentChange3, _this$openInNewTab, _this$openInNewTab2, link, _window, _ref4, type, identifier, parameters, internal, route, openInFullscreen, keepOldState, config, parent, _this$root$dataStore$, _this$root$dataStore$2, _config4, newTab, _config7, base, defaultComponent, canOpenDefault, settings, openModuleLables, _parameters, otherPrams, module, prevType, prevState, currentState, componentState;
|
|
2448
2494
|
return _regeneratorRuntime.wrap(function openComponent$(_context3) {
|
|
2449
2495
|
while (1) switch (_context3.prev = _context3.next) {
|
|
2450
2496
|
case 0:
|
|
@@ -2498,11 +2544,11 @@ var ContentStore = /*#__PURE__*/function () {
|
|
|
2498
2544
|
}
|
|
2499
2545
|
parent = undefined;
|
|
2500
2546
|
if (this.root.dataStore.organization.type == undefined && this.root.dataStore.organization.parentType == 'RETAILER') {
|
|
2501
|
-
parent = (_this$root$dataStore$
|
|
2547
|
+
parent = (_this$root$dataStore$ = this.root.dataStore.organization.parentOrganizations) === null || _this$root$dataStore$ === void 0 ? void 0 : _this$root$dataStore$.find(function (o) {
|
|
2502
2548
|
return o.type == 'RETAILER';
|
|
2503
2549
|
});
|
|
2504
2550
|
} else if (this.root.dataStore.organization.type == undefined && this.root.dataStore.organization.parentType == 'ASSOCIATION') {
|
|
2505
|
-
parent = (_this$root$dataStore$
|
|
2551
|
+
parent = (_this$root$dataStore$2 = this.root.dataStore.organization.parentOrganizations) === null || _this$root$dataStore$2 === void 0 ? void 0 : _this$root$dataStore$2.find(function (o) {
|
|
2506
2552
|
return o.type == 'ASSOCIATION';
|
|
2507
2553
|
});
|
|
2508
2554
|
}
|
|
@@ -2763,7 +2809,7 @@ var ContentStore = /*#__PURE__*/function () {
|
|
|
2763
2809
|
return component.settings;
|
|
2764
2810
|
}
|
|
2765
2811
|
if (component !== null && component !== void 0 && (_component$settings = component.settings) !== null && _component$settings !== void 0 && _component$settings.subComponents) {
|
|
2766
|
-
var _iterator = _createForOfIteratorHelper(component.settings.subComponents),
|
|
2812
|
+
var _iterator = _createForOfIteratorHelper$1(component.settings.subComponents),
|
|
2767
2813
|
_step;
|
|
2768
2814
|
try {
|
|
2769
2815
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -2888,7 +2934,7 @@ var ContentStore = /*#__PURE__*/function () {
|
|
|
2888
2934
|
return undefined;
|
|
2889
2935
|
}
|
|
2890
2936
|
var state = this.getState(this.visible);
|
|
2891
|
-
var _iterator2 = _createForOfIteratorHelper(this._breadcrumbs),
|
|
2937
|
+
var _iterator2 = _createForOfIteratorHelper$1(this._breadcrumbs),
|
|
2892
2938
|
_step2;
|
|
2893
2939
|
try {
|
|
2894
2940
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -2988,11 +3034,11 @@ var ContentStore = /*#__PURE__*/function () {
|
|
|
2988
3034
|
}, {
|
|
2989
3035
|
key: "allowHidePrices",
|
|
2990
3036
|
get: function get() {
|
|
2991
|
-
var _this$root$dataStore$
|
|
3037
|
+
var _this$root$dataStore$3;
|
|
2992
3038
|
if (!this.visible) {
|
|
2993
3039
|
return false;
|
|
2994
3040
|
}
|
|
2995
|
-
if (((_this$root$dataStore$
|
|
3041
|
+
if (((_this$root$dataStore$3 = this.root.dataStore.organization) === null || _this$root$dataStore$3 === void 0 || (_this$root$dataStore$3 = _this$root$dataStore$3.settings) === null || _this$root$dataStore$3 === void 0 ? void 0 : _this$root$dataStore$3.hidePrices) !== undefined) {
|
|
2996
3042
|
return this.root.dataStore.organization.settings.hidePrices.startsWith('DEFAULT');
|
|
2997
3043
|
}
|
|
2998
3044
|
return true;
|
|
@@ -3007,8 +3053,8 @@ var ContentStore = /*#__PURE__*/function () {
|
|
|
3007
3053
|
key: "hidePrices",
|
|
3008
3054
|
get: function get() {
|
|
3009
3055
|
if (this._hidePrices === undefined) {
|
|
3010
|
-
var _this$root$dataStore$
|
|
3011
|
-
if ((_this$root$dataStore$
|
|
3056
|
+
var _this$root$dataStore$4;
|
|
3057
|
+
if ((_this$root$dataStore$4 = this.root.dataStore.organization) !== null && _this$root$dataStore$4 !== void 0 && (_this$root$dataStore$4 = _this$root$dataStore$4.settings) !== null && _this$root$dataStore$4 !== void 0 && _this$root$dataStore$4.hidePrices) {
|
|
3012
3058
|
switch (this.root.dataStore.organization.settings.hidePrices) {
|
|
3013
3059
|
case 'DEFAULT_HIDDEN':
|
|
3014
3060
|
case 'ONLY_HIDDEN':
|
|
@@ -3544,7 +3590,7 @@ var ContentStore = /*#__PURE__*/function () {
|
|
|
3544
3590
|
key: "updateStateAfterLogout",
|
|
3545
3591
|
value: function updateStateAfterLogout() {
|
|
3546
3592
|
var _this11 = this;
|
|
3547
|
-
var _iterator3 = _createForOfIteratorHelper(this.state.entries()),
|
|
3593
|
+
var _iterator3 = _createForOfIteratorHelper$1(this.state.entries()),
|
|
3548
3594
|
_step3;
|
|
3549
3595
|
try {
|
|
3550
3596
|
var _loop = function _loop() {
|
|
@@ -3596,7 +3642,7 @@ var ContentStore = /*#__PURE__*/function () {
|
|
|
3596
3642
|
if (action.url) {
|
|
3597
3643
|
link = this.resoveUrl(action.url);
|
|
3598
3644
|
} else {
|
|
3599
|
-
var _this$root$dataStore$
|
|
3645
|
+
var _this$root$dataStore$5;
|
|
3600
3646
|
var _ref6 = action,
|
|
3601
3647
|
parameters = _ref6.parameters;
|
|
3602
3648
|
var url = new URL(baseUrl);
|
|
@@ -3605,7 +3651,7 @@ var ContentStore = /*#__PURE__*/function () {
|
|
|
3605
3651
|
return param[1] ? params.append(param[0], param[1]) : false;
|
|
3606
3652
|
});
|
|
3607
3653
|
params.append('lang', instance.language);
|
|
3608
|
-
if ((_this$root$dataStore$
|
|
3654
|
+
if ((_this$root$dataStore$5 = this.root.dataStore.organization) !== null && _this$root$dataStore$5 !== void 0 && _this$root$dataStore$5._id) {
|
|
3609
3655
|
params.append('organizationId', this.root.dataStore.organization._id);
|
|
3610
3656
|
}
|
|
3611
3657
|
link = url.href;
|
|
@@ -4660,11 +4706,13 @@ var AuthorizationStore = /*#__PURE__*/function () {
|
|
|
4660
4706
|
key: "updateAuthorizationData",
|
|
4661
4707
|
value: /*#__PURE__*/_regeneratorRuntime.mark(function updateAuthorizationData(zToken, zExpireBy, type, organizationId, parentOrganizations, permissions, user) {
|
|
4662
4708
|
var _this2 = this;
|
|
4663
|
-
var userExists, refreshTokenIn;
|
|
4709
|
+
var previousUser, userExists, userChanged, refreshTokenIn;
|
|
4664
4710
|
return _regeneratorRuntime.wrap(function updateAuthorizationData$(_context6) {
|
|
4665
4711
|
while (1) switch (_context6.prev = _context6.next) {
|
|
4666
4712
|
case 0:
|
|
4667
|
-
|
|
4713
|
+
previousUser = this.root.dataStore.user;
|
|
4714
|
+
userExists = previousUser;
|
|
4715
|
+
userChanged = (previousUser === null || previousUser === void 0 ? void 0 : previousUser._id) !== (user === null || user === void 0 ? void 0 : user._id);
|
|
4668
4716
|
this._zExpireBy = zExpireBy;
|
|
4669
4717
|
this.zToken = zToken;
|
|
4670
4718
|
this._loginState = type;
|
|
@@ -4672,19 +4720,25 @@ var AuthorizationStore = /*#__PURE__*/function () {
|
|
|
4672
4720
|
this.root.dataStore.permissions = permissions !== null && permissions !== void 0 ? permissions : [];
|
|
4673
4721
|
this.root.dataStore.parentOrganizations = parentOrganizations !== null && parentOrganizations !== void 0 ? parentOrganizations : [];
|
|
4674
4722
|
if (!(this.root.dataStore.organizationId != organizationId)) {
|
|
4675
|
-
_context6.next =
|
|
4723
|
+
_context6.next = 14;
|
|
4676
4724
|
break;
|
|
4677
4725
|
}
|
|
4678
|
-
_context6.next = 10;
|
|
4679
|
-
return this.root.dataStore.updateOrganizationInternal(organizationId);
|
|
4680
|
-
case 10:
|
|
4681
4726
|
_context6.next = 12;
|
|
4682
|
-
return this.root.
|
|
4727
|
+
return this.root.dataStore.updateOrganizationInternal(organizationId);
|
|
4683
4728
|
case 12:
|
|
4729
|
+
_context6.next = 14;
|
|
4730
|
+
return this.root.configurationStore.updateConfiguration();
|
|
4731
|
+
case 14:
|
|
4684
4732
|
if (this._loginState == 'user') {
|
|
4685
4733
|
this.root.browserStateStore.setStoredOrganization(organizationId);
|
|
4686
4734
|
}
|
|
4687
|
-
|
|
4735
|
+
if (!userChanged) {
|
|
4736
|
+
_context6.next = 18;
|
|
4737
|
+
break;
|
|
4738
|
+
}
|
|
4739
|
+
_context6.next = 18;
|
|
4740
|
+
return this.root.dataStore.loadOrganizationTree();
|
|
4741
|
+
case 18:
|
|
4688
4742
|
//clear token refresh timeout
|
|
4689
4743
|
if (this._timeout) {
|
|
4690
4744
|
clearTimeout(this._timeout);
|
|
@@ -4707,7 +4761,7 @@ var AuthorizationStore = /*#__PURE__*/function () {
|
|
|
4707
4761
|
//reset State only if it's not the first authorization
|
|
4708
4762
|
this.root.contentStore.resetState();
|
|
4709
4763
|
}
|
|
4710
|
-
case
|
|
4764
|
+
case 23:
|
|
4711
4765
|
case "end":
|
|
4712
4766
|
return _context6.stop();
|
|
4713
4767
|
}
|
|
@@ -6917,7 +6971,7 @@ var AnalyticsHandler = /*#__PURE__*/function () {
|
|
|
6917
6971
|
key: "createLead",
|
|
6918
6972
|
value: function () {
|
|
6919
6973
|
var _createLead = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(data) {
|
|
6920
|
-
var url, response;
|
|
6974
|
+
var url, response, message, body, err;
|
|
6921
6975
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
6922
6976
|
while (1) switch (_context2.prev = _context2.next) {
|
|
6923
6977
|
case 0:
|
|
@@ -6942,12 +6996,29 @@ var AnalyticsHandler = /*#__PURE__*/function () {
|
|
|
6942
6996
|
case 7:
|
|
6943
6997
|
return _context2.abrupt("return", _context2.sent);
|
|
6944
6998
|
case 8:
|
|
6945
|
-
|
|
6946
|
-
|
|
6999
|
+
message = "Error from server while creating lead. HTTP status: ".concat(response.status);
|
|
7000
|
+
_context2.prev = 9;
|
|
7001
|
+
_context2.next = 12;
|
|
7002
|
+
return response.json();
|
|
7003
|
+
case 12:
|
|
7004
|
+
body = _context2.sent;
|
|
7005
|
+
if (typeof (body === null || body === void 0 ? void 0 : body.error) === 'string') {
|
|
7006
|
+
message = body.error;
|
|
7007
|
+
}
|
|
7008
|
+
_context2.next = 18;
|
|
7009
|
+
break;
|
|
7010
|
+
case 16:
|
|
7011
|
+
_context2.prev = 16;
|
|
7012
|
+
_context2.t0 = _context2["catch"](9);
|
|
7013
|
+
case 18:
|
|
7014
|
+
err = new Error(message);
|
|
7015
|
+
err.status = response.status;
|
|
7016
|
+
throw err;
|
|
7017
|
+
case 21:
|
|
6947
7018
|
case "end":
|
|
6948
7019
|
return _context2.stop();
|
|
6949
7020
|
}
|
|
6950
|
-
}, _callee2, this);
|
|
7021
|
+
}, _callee2, this, [[9, 16]]);
|
|
6951
7022
|
}));
|
|
6952
7023
|
function createLead(_x2) {
|
|
6953
7024
|
return _createLead.apply(this, arguments);
|
|
@@ -8345,7 +8416,8 @@ var ClientArticleHandler = /*#__PURE__*/function () {
|
|
|
8345
8416
|
return axios.post(fullUrl, JSON.stringify({
|
|
8346
8417
|
products: data.products,
|
|
8347
8418
|
removedProductIds: data.removedProductIds,
|
|
8348
|
-
parentProductId: data.parentProductId
|
|
8419
|
+
parentProductId: data.parentProductId,
|
|
8420
|
+
syncEKText: data.syncEKText
|
|
8349
8421
|
}), {
|
|
8350
8422
|
headers: {
|
|
8351
8423
|
Authorization: 'Bearer ' + this.jwt,
|
|
@@ -9306,6 +9378,30 @@ var RootStore = /*#__PURE__*/function () {
|
|
|
9306
9378
|
}]);
|
|
9307
9379
|
}();
|
|
9308
9380
|
|
|
9381
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
9382
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
9383
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
9384
|
+
function canAccessOrganization(targetOrganizationId, tree) {
|
|
9385
|
+
var _iterator = _createForOfIteratorHelper(tree),
|
|
9386
|
+
_step;
|
|
9387
|
+
try {
|
|
9388
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
9389
|
+
var node = _step.value;
|
|
9390
|
+
if (node._id === targetOrganizationId) {
|
|
9391
|
+
return true;
|
|
9392
|
+
}
|
|
9393
|
+
if (node.children && canAccessOrganization(targetOrganizationId, node.children)) {
|
|
9394
|
+
return true;
|
|
9395
|
+
}
|
|
9396
|
+
}
|
|
9397
|
+
} catch (err) {
|
|
9398
|
+
_iterator.e(err);
|
|
9399
|
+
} finally {
|
|
9400
|
+
_iterator.f();
|
|
9401
|
+
}
|
|
9402
|
+
return false;
|
|
9403
|
+
}
|
|
9404
|
+
|
|
9309
9405
|
var _excluded$1 = ["children"];
|
|
9310
9406
|
function ownKeys$6(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; }
|
|
9311
9407
|
function _objectSpread$6(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$6(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$6(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -9354,6 +9450,9 @@ var DivaCoreProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
9354
9450
|
logout: store.authorizationStore.logout.bind(store.authorizationStore),
|
|
9355
9451
|
showLoginWindow: store.authorizationStore.showLogin.bind(store.authorizationStore),
|
|
9356
9452
|
userHasPermission: store.dataStore.userHasPermission.bind(store.dataStore),
|
|
9453
|
+
canAccessOrganization: function canAccessOrganization$1(organizationId) {
|
|
9454
|
+
return canAccessOrganization(organizationId, store.dataStore.organizationTree.tree);
|
|
9455
|
+
},
|
|
9357
9456
|
openFullscreen: store.contentStore.openFullscreen.bind(store.contentStore),
|
|
9358
9457
|
closeFullscreen: store.contentStore.closeFullscreen.bind(store.contentStore),
|
|
9359
9458
|
openDrawerMenu: store.contentStore.openDrawerMenu.bind(store.contentStore),
|
|
@@ -9375,6 +9474,7 @@ var DivaCoreProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
9375
9474
|
availableLanguages: ((_store$configurationS = store.configurationStore.locales) === null || _store$configurationS === void 0 ? void 0 : _store$configurationS.available) || [],
|
|
9376
9475
|
organization: store.dataStore.organization,
|
|
9377
9476
|
organizationHierarchy: store.dataStore.organizationHirarchy,
|
|
9477
|
+
organizationTree: store.dataStore.organizationTree,
|
|
9378
9478
|
user: store.dataStore.user,
|
|
9379
9479
|
jwt: store.authorizationStore.zToken,
|
|
9380
9480
|
nToken: store.authorizationStore.nToken,
|
|
@@ -9458,6 +9558,9 @@ var DivaCoreProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
9458
9558
|
logout: store.authorizationStore.logout.bind(store.authorizationStore),
|
|
9459
9559
|
showLoginWindow: store.authorizationStore.showLogin.bind(store.authorizationStore),
|
|
9460
9560
|
userHasPermission: store.dataStore.userHasPermission.bind(store.dataStore),
|
|
9561
|
+
canAccessOrganization: function canAccessOrganization$1(organizationId) {
|
|
9562
|
+
return canAccessOrganization(organizationId, store.dataStore.organizationTree.tree);
|
|
9563
|
+
},
|
|
9461
9564
|
openFullscreen: store.contentStore.openFullscreen.bind(store.contentStore),
|
|
9462
9565
|
closeFullscreen: store.contentStore.closeFullscreen.bind(store.contentStore),
|
|
9463
9566
|
openDrawerMenu: store.contentStore.openDrawerMenu.bind(store.contentStore),
|
|
@@ -9477,6 +9580,7 @@ var DivaCoreProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
9477
9580
|
availableLanguages: ((_store$configurationS2 = store.configurationStore.locales) === null || _store$configurationS2 === void 0 ? void 0 : _store$configurationS2.available) || [],
|
|
9478
9581
|
organization: store.dataStore.organization,
|
|
9479
9582
|
organizationHierarchy: store.dataStore.organizationHirarchy,
|
|
9583
|
+
organizationTree: store.dataStore.organizationTree,
|
|
9480
9584
|
user: store.dataStore.user,
|
|
9481
9585
|
jwt: store.authorizationStore.zToken,
|
|
9482
9586
|
nToken: store.authorizationStore.nToken,
|
|
@@ -9793,7 +9897,7 @@ var Spinner$1 = observer(Spinner);
|
|
|
9793
9897
|
var overlay$1 = "overlay-34l68";
|
|
9794
9898
|
var absoluteOverlay = "absolute-overlay-cG7uO";
|
|
9795
9899
|
var closeIcon = "close-icon-1kDyU";
|
|
9796
|
-
var css_248z$4 = ".overlay-34l68 {\n height: 100%;\n width: 100%;\n display: flex;\n background-color: #fff;\n z-index: 999;\n justify-content: center;\n align-items: center;\n position: absolute;\n}\n\n.absolute-overlay-cG7uO {\n height: 100% !important;\n}\n\n.absolute-overlay-cG7uO {\n background-color: #fff;\n position: fixed;\n top: 0px;\n right: 0px;\n bottom: 0px;\n left: 0px;\n overflow: hidden;\n z-index: 1000000;\n display: block;\n width: 100vw;\n}\n\n.diva-pseudo-fullscreen body {\n height: auto !important;\n}\n.diva-pseudo-fullscreen, .diva-pseudo-fullscreen body {\n overflow: hidden !important;\n}\n\n.close-icon-1kDyU {\n position: absolute;\n right: 32px;\n top: 32px;\n width: 50px;\n height: 40px;\n opacity: 0.3;\n z-index: 700;\n cursor: pointer;\n}\n\n.close-icon-1kDyU:before {\n transform: rotate(45deg);\n}\n\n.close-icon-1kDyU:after {\n transform: rotate(-45deg);\n}\n\n.close-icon-1kDyU:before,\n.close-icon-1kDyU:after {\n position: absolute;\n left: 23px;\n top: 5px;\n content: ' ';\n height: 33px;\n width: 3px;\n background-color: #4b4b4b;\n}\n\n.close-icon-1kDyU:hover {\n opacity: 0.8;\n transition: opacity 0.2s ease-in-out;\n}\n";
|
|
9900
|
+
var css_248z$4 = ".overlay-34l68 {\n height: 100%;\n width: 100%;\n display: flex;\n background-color: #fff;\n z-index: 999;\n justify-content: center;\n align-items: center;\n position: absolute;\n}\n\n.absolute-overlay-cG7uO {\n height: 100% !important;\n}\n\n.absolute-overlay-cG7uO {\n background-color: #fff;\n position: fixed;\n top: 0px;\n right: 0px;\n bottom: 0px;\n left: 0px;\n overflow: hidden;\n z-index: 1000000;\n display: block;\n width: 100vw;\n}\n\n.diva-pseudo-fullscreen body {\n height: auto !important;\n}\n.diva-pseudo-fullscreen, .diva-pseudo-fullscreen body {\n overflow: hidden !important;\n}\n\n.close-icon-1kDyU {\n position: absolute;\n right: 32px;\n top: 32px;\n width: 50px;\n height: 40px;\n opacity: 0.3;\n z-index: 700;\n cursor: pointer;\n}\n\n.close-icon-1kDyU:before {\n transform: rotate(45deg);\n}\n\n.close-icon-1kDyU:after {\n transform: rotate(-45deg);\n}\n\n.close-icon-1kDyU:before,\n.close-icon-1kDyU:after {\n position: absolute;\n left: 23px;\n top: 5px;\n content: ' ';\n height: 33px;\n width: 3px;\n background-color: #4b4b4b;\n}\n\n.close-icon-1kDyU:hover {\n opacity: 0.8;\n transition: opacity 0.2s ease-in-out;\n}\n\nbody.darkmode .close-icon-1kDyU:before,\nbody.darkmode .close-icon-1kDyU:after {\n background-color: #fff;\n}\n";
|
|
9797
9901
|
styleInject(css_248z$4);
|
|
9798
9902
|
|
|
9799
9903
|
var drawerContent = "drawer-content-3-85N";
|
|
@@ -9810,7 +9914,7 @@ var right = "right-p1mpA";
|
|
|
9810
9914
|
var top = "top-o1Wjp";
|
|
9811
9915
|
var bottomSpacer = "bottom-spacer-kdhiH";
|
|
9812
9916
|
var onSide = "on-side-JUQWn";
|
|
9813
|
-
var css_248z$3 = ".drawer-content-3-85N {\n outline: medium none invert;\n outline: initial;\n position: absolute;\n z-index: 14000;\n pointer-events: auto;\n opacity: 1;\n overscroll-behavior: contain;\n backface-visibility: hidden;\n -webkit-backface-visibility: hidden;\n transform: translateZ(0);\n -webkit-transform: translateZ(0);\n /* Optimize for smooth swiping animations */\n contain: layout style paint;\n}\n.MuiDrawer-anchorRight.MuiDrawer-root.MuiDrawer-modal.MuiModal-root,\n.MuiDrawer-anchorLeft.MuiDrawer-root.MuiDrawer-modal.MuiModal-root {\n position: absolute;\n}\n\n/* Fix for mobile browser address bar showing/hiding */\n@supports (height: 100dvh) {\n .drawer-content-3-85N {\n max-height: 100dvh;\n }\n}\n\n.overlay-vhpU9 {\n background-color: rgba(0, 0, 0, 0.4);\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n opacity: 0;\n animation: fadeIn-W2rJo 0.3s ease-in forwards;\n z-index: 10000;\n}\n\n@keyframes fadeIn-W2rJo {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n\n.drawer-handle-line-65wJw {\n width: calc(36px);\n height: 4px;\n background-color: rgba(234, 234, 234, 0.9);\n border-radius: 2px;\n}\n\n.drawer-handle-zhmPW {\n position: absolute;\n left: 50%;\n transform: translate(-50%, -32px);\n width: 40px;\n height: 40px;\n touch-action: none;\n display: flex;\n align-items: center;\n justify-content: center;\n border-top-right-radius: 10px;\n border-top-left-radius: 10px;\n cursor: grab;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n}\n\n.drawer-P-5-0 {\n display: flex;\n flex-direction: column;\n z-index: 20000;\n background-color: rgba(255, 255, 255, 0.95);\n overflow: hidden;\n flex: 1;\n min-height: 0;\n}\n\n.drawer-header-FOHFa {\n padding: 8px 32px;\n flex-shrink: 0;\n}\n\n.drawer-open #Diva-content-wrapper {\n overflow: visible !important;\n z-index: 3 !important;\n}\n\n.scroll-wrapper-f27j2 {\n overflow-y: auto;\n overflow-x: hidden;\n overscroll-behavior: contain;\n padding: 0px 32px;\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: center;\n gap: 12px;\n flex: 1;\n min-height: 0;\n /* Smooth scrolling on iOS */\n -webkit-overflow-scrolling: touch;\n /* Prevent pull-to-refresh interference */\n touch-action: pan-y;\n}\n\n.close-button-Tg2c5 {\n position: absolute;\n top: 18px;\n right: 18px;\n width: 32px;\n height: 32px;\n background: center / 70% no-repeat url(\"data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 height%3D%2248%22 viewBox%3D%220 -960 960 960%22 width%3D%2248%22 fill%3D%22%23ccc%22%3E%3Cpath d%3D%22m249-207-42-42 231-231-231-231 42-42 231 231 231-231 42 42-231 231 231 231-42 42-231-231-231 231Z%22%2F%3E%3C%2Fsvg%3E\");\n transition:\n border-color 0.2s ease-in,\n background-image 0.2s ease-in;\n cursor: pointer;\n z-index: 500;\n border: 1px solid transparent;\n border-radius: 50%;\n padding: 0px;\n}\n\n.close-button-Tg2c5:hover {\n background-image: url(\"data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 height%3D%2248%22 viewBox%3D%220 -960 960 960%22 width%3D%2248%22 fill%3D%22%23aaa%22%3E%3Cpath d%3D%22m249-207-42-42 231-231-231-231 42-42 231 231 231-231 42 42-231 231 231 231-42 42-231-231-231 231Z%22%2F%3E%3C%2Fsvg%3E\");\n border: 1px solid #aaa;\n}\n\n.bottom-VZZjn {\n bottom: 0;\n left: 0;\n right: 0;\n}\n\n.left-SicAa {\n left: 0;\n bottom: 0;\n top: 0;\n}\n\n.right-p1mpA {\n right: 0;\n bottom: 0;\n top: 0;\n}\n\n.top-o1Wjp {\n top: 0;\n left: 0;\n right: 0;\n}\n\nhtml body[data-scroll-locked] {\n position: static !important;\n}\n\n.bottom-spacer-kdhiH {\n min-height: 12px;\n}\n\n.on-side-JUQWn {\n width: 100%;\n}\n";
|
|
9917
|
+
var css_248z$3 = ".drawer-content-3-85N {\n outline: medium none invert;\n outline: initial;\n position: absolute;\n z-index: 14000;\n pointer-events: auto;\n opacity: 1;\n overscroll-behavior: contain;\n backface-visibility: hidden;\n -webkit-backface-visibility: hidden;\n transform: translateZ(0);\n -webkit-transform: translateZ(0);\n /* Optimize for smooth swiping animations */\n contain: layout style paint;\n font-family: var(--diva-typography-font-family);\n}\n.MuiDrawer-anchorRight.MuiDrawer-root.MuiDrawer-modal.MuiModal-root,\n.MuiDrawer-anchorLeft.MuiDrawer-root.MuiDrawer-modal.MuiModal-root {\n position: absolute;\n}\n\n/* Fix for mobile browser address bar showing/hiding */\n@supports (height: 100dvh) {\n .drawer-content-3-85N {\n max-height: 100dvh;\n }\n}\n\n.overlay-vhpU9 {\n background-color: rgba(0, 0, 0, 0.4);\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n opacity: 0;\n animation: fadeIn-W2rJo 0.3s ease-in forwards;\n z-index: 10000;\n}\n\n@keyframes fadeIn-W2rJo {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n\n.drawer-handle-line-65wJw {\n width: calc(36px);\n height: 4px;\n background-color: rgba(234, 234, 234, 0.9);\n border-radius: 2px;\n}\n\n.drawer-handle-zhmPW {\n position: absolute;\n left: 50%;\n transform: translate(-50%, -32px);\n width: 40px;\n height: 40px;\n touch-action: none;\n display: flex;\n align-items: center;\n justify-content: center;\n border-top-right-radius: 10px;\n border-top-left-radius: 10px;\n cursor: grab;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n}\n\n.drawer-P-5-0 {\n display: flex;\n flex-direction: column;\n z-index: 20000;\n background-color: rgba(255, 255, 255, 0.95);\n overflow: hidden;\n flex: 1;\n min-height: 0;\n}\n\n.drawer-header-FOHFa {\n padding: 8px 32px;\n flex-shrink: 0;\n}\n\n.drawer-open #Diva-content-wrapper {\n overflow: visible !important;\n z-index: 3 !important;\n}\n\n.scroll-wrapper-f27j2 {\n overflow-y: auto;\n overflow-x: hidden;\n overscroll-behavior: contain;\n padding: 0px 32px;\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: center;\n gap: 12px;\n flex: 1;\n min-height: 0;\n /* Smooth scrolling on iOS */\n -webkit-overflow-scrolling: touch;\n /* Prevent pull-to-refresh interference */\n touch-action: pan-y;\n}\n\n.close-button-Tg2c5 {\n position: absolute;\n top: 18px;\n right: 18px;\n width: 32px;\n height: 32px;\n background: center / 70% no-repeat url(\"data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 height%3D%2248%22 viewBox%3D%220 -960 960 960%22 width%3D%2248%22 fill%3D%22%23ccc%22%3E%3Cpath d%3D%22m249-207-42-42 231-231-231-231 42-42 231 231 231-231 42 42-231 231 231 231-42 42-231-231-231 231Z%22%2F%3E%3C%2Fsvg%3E\");\n transition:\n border-color 0.2s ease-in,\n background-image 0.2s ease-in;\n cursor: pointer;\n z-index: 500;\n border: 1px solid transparent;\n border-radius: 50%;\n padding: 0px;\n}\n\n.close-button-Tg2c5:hover {\n background-image: url(\"data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 height%3D%2248%22 viewBox%3D%220 -960 960 960%22 width%3D%2248%22 fill%3D%22%23aaa%22%3E%3Cpath d%3D%22m249-207-42-42 231-231-231-231 42-42 231 231 231-231 42 42-231 231 231 231-42 42-231-231-231 231Z%22%2F%3E%3C%2Fsvg%3E\");\n border: 1px solid #aaa;\n}\n\n.bottom-VZZjn {\n bottom: 0;\n left: 0;\n right: 0;\n}\n\n.left-SicAa {\n left: 0;\n bottom: 0;\n top: 0;\n}\n\n.right-p1mpA {\n right: 0;\n bottom: 0;\n top: 0;\n}\n\n.top-o1Wjp {\n top: 0;\n left: 0;\n right: 0;\n}\n\nhtml body[data-scroll-locked] {\n position: static !important;\n}\n\n.bottom-spacer-kdhiH {\n min-height: 12px;\n}\n\n.on-side-JUQWn {\n width: 100%;\n}\n";
|
|
9814
9918
|
styleInject(css_248z$3);
|
|
9815
9919
|
|
|
9816
9920
|
var useSwipeToDismiss = function useSwipeToDismiss(direction, onDismiss) {
|
|
@@ -10176,7 +10280,7 @@ var DrawerMenu$1 = observer(DrawerMenu);
|
|
|
10176
10280
|
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; }
|
|
10177
10281
|
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; }
|
|
10178
10282
|
var LazyModals$1 = /*#__PURE__*/React.lazy(function () {
|
|
10179
|
-
return import('./ModalsWrapper-
|
|
10283
|
+
return import('./ModalsWrapper-aff6c9a7.js');
|
|
10180
10284
|
});
|
|
10181
10285
|
function Fullscreen(_ref) {
|
|
10182
10286
|
var inAbsoluteFullscreen = _ref.inAbsoluteFullscreen;
|
|
@@ -10636,10 +10740,10 @@ function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
|
|
|
10636
10740
|
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; }
|
|
10637
10741
|
var LOG$2 = getLogger('Framework', 'Root');
|
|
10638
10742
|
var LazyAuth = /*#__PURE__*/React.lazy(function () {
|
|
10639
|
-
return import('./index-
|
|
10743
|
+
return import('./index-3ba62396.js');
|
|
10640
10744
|
});
|
|
10641
10745
|
var LazyModals = /*#__PURE__*/React.lazy(function () {
|
|
10642
|
-
return import('./ModalsWrapper-
|
|
10746
|
+
return import('./ModalsWrapper-aff6c9a7.js');
|
|
10643
10747
|
});
|
|
10644
10748
|
function ContentComponent() {
|
|
10645
10749
|
var context = useDivaCoreContext();
|
|
@@ -10914,7 +11018,7 @@ function HelpButton(_ref) {
|
|
|
10914
11018
|
|
|
10915
11019
|
function ownKeys$1(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; }
|
|
10916
11020
|
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10917
|
-
var actionFunctions = ['openComponent', 'closeComponentInFullscreen', 'setAbsoluteFullScreen', 'updateBreadcrumbs', 'openModal', 'closeModal', 'sendEmail', 'updateCustomLogo', 'updateCustomHeaderElement', 'toggleHidePrices', 'toggleHideConfigPricePreview', 'toggleLoading', 'changeLanguage', 'changeLoginMode', 'onEvent', 'subscribeEvents', 'unSubscribeEvents', 'setOrganization', 'getSessionGuid', 'getApi2AuthLoginData', 'logout', 'showLoginWindow', 'userHasPermission', 'openFullscreen', 'closeFullscreen', 'openDrawerMenu', 'closeDrawerMenu', 'updateHeaderInfos', 'openBanner', 'closeBanner', 'resolveComponent', 'openSnackBar', 'setComponentChange'];
|
|
11021
|
+
var actionFunctions = ['openComponent', 'closeComponentInFullscreen', 'setAbsoluteFullScreen', 'updateBreadcrumbs', 'openModal', 'closeModal', 'sendEmail', 'updateCustomLogo', 'updateCustomHeaderElement', 'toggleHidePrices', 'toggleHideConfigPricePreview', 'toggleLoading', 'changeLanguage', 'changeLoginMode', 'onEvent', 'subscribeEvents', 'unSubscribeEvents', 'setOrganization', 'getSessionGuid', 'getApi2AuthLoginData', 'logout', 'showLoginWindow', 'userHasPermission', 'canAccessOrganization', 'openFullscreen', 'closeFullscreen', 'openDrawerMenu', 'closeDrawerMenu', 'updateHeaderInfos', 'openBanner', 'closeBanner', 'resolveComponent', 'openSnackBar', 'setComponentChange'];
|
|
10918
11022
|
function getRender(C) {
|
|
10919
11023
|
return function (args) {
|
|
10920
11024
|
return /*#__PURE__*/jsx(DivaMockProvider, {
|
|
@@ -11322,6 +11426,7 @@ var MockedRootStore = /*#__PURE__*/function () {
|
|
|
11322
11426
|
key: "state",
|
|
11323
11427
|
get: function get() {
|
|
11324
11428
|
var _this2 = this,
|
|
11429
|
+
_this$data$organizati3,
|
|
11325
11430
|
_this$data$loading,
|
|
11326
11431
|
_this$data$hidePrices,
|
|
11327
11432
|
_this$data$hideConfig,
|
|
@@ -11473,6 +11578,13 @@ var MockedRootStore = /*#__PURE__*/function () {
|
|
|
11473
11578
|
throw new Error('Method not implemented.');
|
|
11474
11579
|
}
|
|
11475
11580
|
},
|
|
11581
|
+
canAccessOrganization: function canAccessOrganization$1(organizationId) {
|
|
11582
|
+
var _this2$data$organizat, _this2$data$organizat2;
|
|
11583
|
+
if (_this2.actions.canAccessOrganization) {
|
|
11584
|
+
return _this2.actions.canAccessOrganization(organizationId);
|
|
11585
|
+
}
|
|
11586
|
+
return canAccessOrganization(organizationId, (_this2$data$organizat = (_this2$data$organizat2 = _this2.data.organizationTree) === null || _this2$data$organizat2 === void 0 ? void 0 : _this2$data$organizat2.tree) !== null && _this2$data$organizat !== void 0 ? _this2$data$organizat : []);
|
|
11587
|
+
},
|
|
11476
11588
|
openFullscreen: function openFullscreen(fullscreen) {
|
|
11477
11589
|
if (_this2.actions.openFullscreen) {
|
|
11478
11590
|
_this2.actions.openFullscreen(fullscreen);
|
|
@@ -11576,6 +11688,10 @@ var MockedRootStore = /*#__PURE__*/function () {
|
|
|
11576
11688
|
initializing: this.initializing,
|
|
11577
11689
|
organization: this.organization,
|
|
11578
11690
|
organizationHierarchy: this.organizationHierarchy,
|
|
11691
|
+
organizationTree: (_this$data$organizati3 = this.data.organizationTree) !== null && _this$data$organizati3 !== void 0 ? _this$data$organizati3 : {
|
|
11692
|
+
tree: [],
|
|
11693
|
+
totalAccessible: 0
|
|
11694
|
+
},
|
|
11579
11695
|
navigationConfiguration: this.navigationConfiguration,
|
|
11580
11696
|
loading: (_this$data$loading = this.data.loading) !== null && _this$data$loading !== void 0 ? _this$data$loading : false,
|
|
11581
11697
|
hidePrices: (_this$data$hidePrices = this.data.hidePrices) !== null && _this$data$hidePrices !== void 0 ? _this$data$hidePrices : false,
|
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-b56af62f.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';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/handler/AnalyticsHandler/index.ts"],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AAK,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE,EAAE,CAAA;KAAE,EAAE,EACvE,QAAQ,EAAE,cAAc,EACxB,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE;qBAaf,MAAM,EAAE;cAAQ,MAAM,EAAE;eAAS,MAAM;cAAQ,MAAM;;IAD9E,OAAO,CAAC,OAAO;IAgBf,OAAO,CAAC,kBAAkB;IAoBnB,qBAAqB;IAIrB,sBAAsB;IAItB,sBAAsB;IAItB,kBAAkB;IAIlB,0BAA0B;IAIpB,UAAU,CAAC,IAAI,EAAE,UAAU;CA0BzC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/handler/ClientArticleHandler/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAGrE,MAAM,WAAW,iBAAiB;IAChC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,mBAAmB,EAAE,CAAC;IAChC,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/handler/ClientArticleHandler/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAGrE,MAAM,WAAW,iBAAiB;IAChC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,mBAAmB,EAAE,CAAC;IAChC,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,qBAAa,oBAAoB;IACnB,OAAO,CAAC,IA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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,
|
|
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,6CAiBnB;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,mB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G;IAEH,SAAS,2FAON,SAAS,KAAG,OAAO,CAAC,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC,CAuDrD;IAEF;;;OAGG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc;IAKtC;;;OAGG;IACH,SAAS,CAAC,IAAI,EAAE,MAAM;IAItB;;;OAGG;IACU,YAAY,CAAC,GAAG,EAAE,cAAc;IAS7C,OAAO,CAAC,QAAQ;IAWhB;;OAEG;IACH,IAAI,mBAAmB,6BA2BtB;IAED;;OAEG;IACH,IAAI,UAAU,UAwBb;IAED;;OAEG;IACH,IAAI,mBAAmB;;;;MAatB;IAED,IAAI,4BAA4B,YAE/B;IAED,IAAI,6BAA6B,YAEhC;IAED;;OAEG;IACH,IAAI,sBAAsB,aAEzB;IAED;;OAEG;IACH,IAAI,gBAAgB,gCAmBnB;IAED;;OAEG;IACH,IAAI,eAAe,yCAGlB;IAED;;OAEG;IACH,IAAI,mBAAmB,IAAI,UAAU,CAapC;IAED;;;OAGG;IACH,UAAU;IA2BV;;OAEG;IACH,uBAAuB;IAQvB;;;OAGG;IACH,OAAO,CAAC,sBAAsB;IAkB9B,OAAO,CAAC,SAAS;IAIjB;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IAsCpB;;;;OAIG;IACH,OAAO,CAAC,OAAO;IAaf;;;OAGG;IACH,OAAO,CAAC,QAAQ;IAOhB,OAAO,CAAC,YAAY,CAMlB;IAEF,OAAO,CAAC,cAAc;CAiBvB"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { LoginMode } from '..';
|
|
2
2
|
import RootStore from './RootStore';
|
|
3
|
-
import { OrganizationData, UserData, UserRole } from '../types';
|
|
3
|
+
import { OrganizationData, OrganizationTreeResponse, UserData, UserRole } from '../types';
|
|
4
4
|
export default class DataStore {
|
|
5
5
|
private root;
|
|
6
|
+
private static readonly EMPTY_ORGANIZATION_TREE;
|
|
6
7
|
private _currentOrganizationId?;
|
|
7
8
|
private _organization?;
|
|
9
|
+
private _organizationTree;
|
|
8
10
|
private _user?;
|
|
9
11
|
private _isMobile;
|
|
10
12
|
private _isFirefox;
|
|
@@ -16,6 +18,7 @@ export default class DataStore {
|
|
|
16
18
|
get isFirefox(): boolean;
|
|
17
19
|
get organization(): OrganizationData;
|
|
18
20
|
get organizationId(): string;
|
|
21
|
+
get organizationTree(): OrganizationTreeResponse;
|
|
19
22
|
/**
|
|
20
23
|
* Returns the full list of parent organizations including the current organization
|
|
21
24
|
*/
|
|
@@ -62,5 +65,6 @@ export default class DataStore {
|
|
|
62
65
|
* @param organizationId the id of the new organization
|
|
63
66
|
*/
|
|
64
67
|
updateOrganizationInternal(organizationId: string): Generator<any, void, any>;
|
|
68
|
+
loadOrganizationTree(): Generator<any, void, any>;
|
|
65
69
|
}
|
|
66
70
|
//# sourceMappingURL=DataStore.d.ts.map
|