@crystaldesign/diva-core 26.3.0-rc.10 → 26.3.0-rc.12

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.
@@ -1,4 +1,4 @@
1
- import { s as styleInject, u as useDivaCoreContext } from './index-15e8c08f.js';
1
+ import { s as styleInject, u as useDivaCoreContext } from './index-c0669012.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-rc.10"};
48
+ const env = {"STAGE":"production","VERSION":"26.3.0-rc.12"};
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
- if (organization && dataStore.userHasPermission('retail') && organization.parentType == null && organization.type == null) {
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 _this$root$dataStore$, _this$root$dataStore$2;
2407
- return ((_this$root$dataStore$ = this.root.dataStore.organization) === null || _this$root$dataStore$ === void 0 ? void 0 : _this$root$dataStore$.type) == null && ((_this$root$dataStore$2 = this.root.dataStore.organization) === null || _this$root$dataStore$2 === void 0 ? void 0 : _this$root$dataStore$2.parentType) == null;
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$3, _this$root$dataStore$4, _config4, newTab, _config7, base, defaultComponent, canOpenDefault, settings, openModuleLables, _parameters, otherPrams, module, prevType, prevState, currentState, componentState;
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$3 = this.root.dataStore.organization.parentOrganizations) === null || _this$root$dataStore$3 === void 0 ? void 0 : _this$root$dataStore$3.find(function (o) {
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$4 = this.root.dataStore.organization.parentOrganizations) === null || _this$root$dataStore$4 === void 0 ? void 0 : _this$root$dataStore$4.find(function (o) {
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$5;
3037
+ var _this$root$dataStore$3;
2992
3038
  if (!this.visible) {
2993
3039
  return false;
2994
3040
  }
2995
- if (((_this$root$dataStore$5 = this.root.dataStore.organization) === null || _this$root$dataStore$5 === void 0 || (_this$root$dataStore$5 = _this$root$dataStore$5.settings) === null || _this$root$dataStore$5 === void 0 ? void 0 : _this$root$dataStore$5.hidePrices) !== undefined) {
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$6;
3011
- if ((_this$root$dataStore$6 = this.root.dataStore.organization) !== null && _this$root$dataStore$6 !== void 0 && (_this$root$dataStore$6 = _this$root$dataStore$6.settings) !== null && _this$root$dataStore$6 !== void 0 && _this$root$dataStore$6.hidePrices) {
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$7;
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$7 = this.root.dataStore.organization) !== null && _this$root$dataStore$7 !== void 0 && _this$root$dataStore$7._id) {
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
- userExists = this.root.dataStore.user;
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 = 12;
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.configurationStore.updateConfiguration();
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 18:
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
- throw new Error("Error from server while creating lead. HTTP status: ".concat(response.status));
6946
- case 9:
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);
@@ -9306,6 +9377,30 @@ var RootStore = /*#__PURE__*/function () {
9306
9377
  }]);
9307
9378
  }();
9308
9379
 
9380
+ 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; } } }; }
9381
+ 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; } }
9382
+ 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; }
9383
+ function canAccessOrganization(targetOrganizationId, tree) {
9384
+ var _iterator = _createForOfIteratorHelper(tree),
9385
+ _step;
9386
+ try {
9387
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
9388
+ var node = _step.value;
9389
+ if (node._id === targetOrganizationId) {
9390
+ return true;
9391
+ }
9392
+ if (node.children && canAccessOrganization(targetOrganizationId, node.children)) {
9393
+ return true;
9394
+ }
9395
+ }
9396
+ } catch (err) {
9397
+ _iterator.e(err);
9398
+ } finally {
9399
+ _iterator.f();
9400
+ }
9401
+ return false;
9402
+ }
9403
+
9309
9404
  var _excluded$1 = ["children"];
9310
9405
  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
9406
  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 +9449,9 @@ var DivaCoreProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
9354
9449
  logout: store.authorizationStore.logout.bind(store.authorizationStore),
9355
9450
  showLoginWindow: store.authorizationStore.showLogin.bind(store.authorizationStore),
9356
9451
  userHasPermission: store.dataStore.userHasPermission.bind(store.dataStore),
9452
+ canAccessOrganization: function canAccessOrganization$1(organizationId) {
9453
+ return canAccessOrganization(organizationId, store.dataStore.organizationTree.tree);
9454
+ },
9357
9455
  openFullscreen: store.contentStore.openFullscreen.bind(store.contentStore),
9358
9456
  closeFullscreen: store.contentStore.closeFullscreen.bind(store.contentStore),
9359
9457
  openDrawerMenu: store.contentStore.openDrawerMenu.bind(store.contentStore),
@@ -9375,6 +9473,7 @@ var DivaCoreProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
9375
9473
  availableLanguages: ((_store$configurationS = store.configurationStore.locales) === null || _store$configurationS === void 0 ? void 0 : _store$configurationS.available) || [],
9376
9474
  organization: store.dataStore.organization,
9377
9475
  organizationHierarchy: store.dataStore.organizationHirarchy,
9476
+ organizationTree: store.dataStore.organizationTree,
9378
9477
  user: store.dataStore.user,
9379
9478
  jwt: store.authorizationStore.zToken,
9380
9479
  nToken: store.authorizationStore.nToken,
@@ -9458,6 +9557,9 @@ var DivaCoreProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
9458
9557
  logout: store.authorizationStore.logout.bind(store.authorizationStore),
9459
9558
  showLoginWindow: store.authorizationStore.showLogin.bind(store.authorizationStore),
9460
9559
  userHasPermission: store.dataStore.userHasPermission.bind(store.dataStore),
9560
+ canAccessOrganization: function canAccessOrganization$1(organizationId) {
9561
+ return canAccessOrganization(organizationId, store.dataStore.organizationTree.tree);
9562
+ },
9461
9563
  openFullscreen: store.contentStore.openFullscreen.bind(store.contentStore),
9462
9564
  closeFullscreen: store.contentStore.closeFullscreen.bind(store.contentStore),
9463
9565
  openDrawerMenu: store.contentStore.openDrawerMenu.bind(store.contentStore),
@@ -9477,6 +9579,7 @@ var DivaCoreProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
9477
9579
  availableLanguages: ((_store$configurationS2 = store.configurationStore.locales) === null || _store$configurationS2 === void 0 ? void 0 : _store$configurationS2.available) || [],
9478
9580
  organization: store.dataStore.organization,
9479
9581
  organizationHierarchy: store.dataStore.organizationHirarchy,
9582
+ organizationTree: store.dataStore.organizationTree,
9480
9583
  user: store.dataStore.user,
9481
9584
  jwt: store.authorizationStore.zToken,
9482
9585
  nToken: store.authorizationStore.nToken,
@@ -10176,7 +10279,7 @@ var DrawerMenu$1 = observer(DrawerMenu);
10176
10279
  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
10280
  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
10281
  var LazyModals$1 = /*#__PURE__*/React.lazy(function () {
10179
- return import('./ModalsWrapper-9149842a.js');
10282
+ return import('./ModalsWrapper-13f8a2be.js');
10180
10283
  });
10181
10284
  function Fullscreen(_ref) {
10182
10285
  var inAbsoluteFullscreen = _ref.inAbsoluteFullscreen;
@@ -10636,10 +10739,10 @@ function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
10636
10739
  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
10740
  var LOG$2 = getLogger('Framework', 'Root');
10638
10741
  var LazyAuth = /*#__PURE__*/React.lazy(function () {
10639
- return import('./index-8ee2bde4.js');
10742
+ return import('./index-e298fa5f.js');
10640
10743
  });
10641
10744
  var LazyModals = /*#__PURE__*/React.lazy(function () {
10642
- return import('./ModalsWrapper-9149842a.js');
10745
+ return import('./ModalsWrapper-13f8a2be.js');
10643
10746
  });
10644
10747
  function ContentComponent() {
10645
10748
  var context = useDivaCoreContext();
@@ -10914,7 +11017,7 @@ function HelpButton(_ref) {
10914
11017
 
10915
11018
  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
11019
  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'];
11020
+ 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
11021
  function getRender(C) {
10919
11022
  return function (args) {
10920
11023
  return /*#__PURE__*/jsx(DivaMockProvider, {
@@ -11322,6 +11425,7 @@ var MockedRootStore = /*#__PURE__*/function () {
11322
11425
  key: "state",
11323
11426
  get: function get() {
11324
11427
  var _this2 = this,
11428
+ _this$data$organizati3,
11325
11429
  _this$data$loading,
11326
11430
  _this$data$hidePrices,
11327
11431
  _this$data$hideConfig,
@@ -11473,6 +11577,13 @@ var MockedRootStore = /*#__PURE__*/function () {
11473
11577
  throw new Error('Method not implemented.');
11474
11578
  }
11475
11579
  },
11580
+ canAccessOrganization: function canAccessOrganization$1(organizationId) {
11581
+ var _this2$data$organizat, _this2$data$organizat2;
11582
+ if (_this2.actions.canAccessOrganization) {
11583
+ return _this2.actions.canAccessOrganization(organizationId);
11584
+ }
11585
+ 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 : []);
11586
+ },
11476
11587
  openFullscreen: function openFullscreen(fullscreen) {
11477
11588
  if (_this2.actions.openFullscreen) {
11478
11589
  _this2.actions.openFullscreen(fullscreen);
@@ -11576,6 +11687,10 @@ var MockedRootStore = /*#__PURE__*/function () {
11576
11687
  initializing: this.initializing,
11577
11688
  organization: this.organization,
11578
11689
  organizationHierarchy: this.organizationHierarchy,
11690
+ organizationTree: (_this$data$organizati3 = this.data.organizationTree) !== null && _this$data$organizati3 !== void 0 ? _this$data$organizati3 : {
11691
+ tree: [],
11692
+ totalAccessible: 0
11693
+ },
11579
11694
  navigationConfiguration: this.navigationConfiguration,
11580
11695
  loading: (_this$data$loading = this.data.loading) !== null && _this$data$loading !== void 0 ? _this$data$loading : false,
11581
11696
  hidePrices: (_this$data$hidePrices = this.data.hidePrices) !== null && _this$data$hidePrices !== void 0 ? _this$data$hidePrices : false,
@@ -1,4 +1,4 @@
1
- import { s as styleInject, u as useDivaCoreContext, g as getLogger } from './index-15e8c08f.js';
1
+ import { s as styleInject, u as useDivaCoreContext, g as getLogger } from './index-c0669012.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';
@@ -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-15e8c08f.js';
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-c0669012.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"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,sBAAsB,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzG,cAAc,SAAS,CAAC;AAExB,eAAO,MAAM,YAAY,WAAW,CAAC;AAErC,qBAAa,gBAAgB;IACf,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC,OAAO,KAAK,gBAAgB,GAE3B;IAED,OAAO,KAAK,GAAG,GAEd;IAEK,gBAAgB,CAAC,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,GAAG,eAAe,GAAG,OAAO,CAAC,GAAG,CAAC;IAuB9E,kBAAkB,CACvB,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE;YAAE,SAAS,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE,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,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
+ {"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,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;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
@@ -1 +1 @@
1
- {"version":3,"file":"DataStore.d.ts","sourceRoot":"","sources":["../../../../../src/store/DataStore.ts"],"names":[],"mappings":"AAEA,OAAO,EAAa,SAAS,EAAE,MAAM,IAAI,CAAC;AAG1C,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAIhE,MAAM,CAAC,OAAO,OAAO,SAAS;IAUhB,OAAO,CAAC,IAAI;IATxB,OAAO,CAAC,sBAAsB,CAAC,CAAqB;IACpD,OAAO,CAAC,aAAa,CAAC,CAA+B;IACrD,OAAO,CAAC,KAAK,CAAC,CAAuB;IACrC,OAAO,CAAC,SAAS,CAAU;IAC3B,OAAO,CAAC,UAAU,CAAU;IAC5B,OAAO,CAAC,aAAa,CAAsC;IAC3D,OAAO,CAAC,YAAY,CAAgB;IACpC,OAAO,CAAC,oBAAoB,CAAgB;gBAExB,IAAI,EAAE,SAAS;IAYnC,IAAI,QAAQ,YAEX;IAED,IAAI,SAAS,YAEZ;IAED,IAAI,YAAY,IAgEe,gBAAgB,CA9D9C;IAED,IAAI,cAAc,WAEjB;IAED;;OAEG;IACH,IAAI,cAAc,aAEjB;IAED;;;;;OAKG;IACH,IAAI,oBAAoB;;;;;;;;;;;SAiBvB;IAED,IAAI,IAAI,IAAI,QAAQ,GAAG,SAAS,CAE/B;IAED,IAAI,IAAI,CAAC,IAAI,EAAE,QAAQ,GAAG,SAAS,EAUlC;IAED,IAAI,WAAW,CAAC,UAAU,EAAE,MAAM,E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,IAAI,EAAE,GAAG,CAAC;IAoC7E,oBAAoB,IAAI,SAAS,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,CAAC;CAc1D"}
@@ -6,7 +6,7 @@ import { MediaHandler } from '../handler/MediaHandler';
6
6
  import { ReportHandler } from '../handler/ReportHandler';
7
7
  import { AuthorizationHandler } from '../handler/AuthorizationHandler';
8
8
  import { ClientArticleHandler } from '../handler/ClientArticleHandler';
9
- import { Action, BreadcrumbParams, Component, ComponentDefinition, Modal, NavigationConfiguration, Event, EmailData, ApiConfigConfig, OrganizationData, UserData, UserRole, GoogleMapsConfig, CometChatConfig } from '../types';
9
+ import { Action, BreadcrumbParams, Component, ComponentDefinition, Modal, NavigationConfiguration, Event, EmailData, ApiConfigConfig, OrganizationData, OrganizationTreeResponse, UserData, UserRole, GoogleMapsConfig, CometChatConfig } from '../types';
10
10
  import RootStore from './RootStore';
11
11
  import { AdminHandler } from '../handler/AdminHandler';
12
12
  import { AnalyticsHandler } from '../handler/AnalyticsHandler';
@@ -44,6 +44,10 @@ export interface State {
44
44
  displayName: string;
45
45
  type?: string;
46
46
  }[];
47
+ /**
48
+ * Accessible organization tree for the authenticated user
49
+ */
50
+ organizationTree: OrganizationTreeResponse;
47
51
  /**
48
52
  * The currently logged in user
49
53
  */
@@ -257,6 +261,10 @@ export interface Actions {
257
261
  * Checks if the user has a certain permission
258
262
  */
259
263
  userHasPermission: (permission: string) => boolean;
264
+ /**
265
+ * Checks if an organization is accessible in the organization tree
266
+ */
267
+ canAccessOrganization: (organizationId: string) => boolean;
260
268
  /**
261
269
  * Open a fullscreen window
262
270
  */