@crystaldesign/diva-core 25.11.0-rc.9 → 25.12.0-beta.10

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.
@@ -46,7 +46,7 @@ import { actions } from '@storybook/addon-actions';
46
46
  import * as Styles from '@mui/styles';
47
47
 
48
48
  (function() {
49
- const env = {"STAGE":"production","VERSION":"25.11.0-rc.9"};
49
+ const env = {"STAGE":"production","VERSION":"25.12.0-beta.10"};
50
50
  try {
51
51
  if (process) {
52
52
  process.env = Object.assign({}, process.env);
@@ -1610,15 +1610,14 @@ var DataStore = /*#__PURE__*/function () {
1610
1610
  }]);
1611
1611
  }();
1612
1612
 
1613
- var instance = i18n.createInstance().use(HttpApi);
1613
+ var instance = i18n.createInstance().use(HttpApi).use(LanguageDetector);
1614
1614
  function init(_ref) {
1615
- var apiConfig = _ref.apiConfig,
1616
- language = _ref.language;
1615
+ var apiConfig = _ref.apiConfig;
1617
1616
  if (instance.isInitialized) {
1618
1617
  return Promise.resolve();
1619
1618
  } else if (instance.isInitializing) {
1620
1619
  return new Promise(function (resolve, reject) {
1621
- instance.on('initialized', function () {
1620
+ instance.on('loaded', function () {
1622
1621
  resolve();
1623
1622
  });
1624
1623
  instance.on('failedLoading', function (error) {
@@ -1626,20 +1625,10 @@ function init(_ref) {
1626
1625
  });
1627
1626
  });
1628
1627
  }
1629
- var loadPath = "".concat(apiConfig.adminService, "/locales?lng={{lng}}&ns={{ns}}");
1630
-
1631
- //if the language is not fixed by parameter, use the language detector
1632
- if (!language) {
1633
- var languageDetector = new LanguageDetector();
1634
- instance.use(languageDetector);
1635
- }
1636
1628
  return new Promise(function (resolve, reject) {
1637
- instance.on('initialized', function () {
1638
- resolve();
1639
- });
1640
- instance.init({
1629
+ var loadPath = "".concat(apiConfig.adminService, "/locales?lng={{lng}}&ns={{ns}}");
1630
+ var initOptions = {
1641
1631
  debug: false,
1642
- lng: language,
1643
1632
  defaultNS: 'default',
1644
1633
  fallbackNS: 'default',
1645
1634
  ns: ['default'],
@@ -1656,8 +1645,12 @@ function init(_ref) {
1656
1645
  loadPath: loadPath,
1657
1646
  crossDomain: true
1658
1647
  }
1659
- }, function (error) {
1660
- if (error) reject(error);
1648
+ };
1649
+ instance.init(initOptions, function (error) {
1650
+ if (error) {
1651
+ reject(error);
1652
+ }
1653
+ resolve();
1661
1654
  });
1662
1655
  });
1663
1656
  }
@@ -1995,97 +1988,6 @@ var ContentStore = /*#__PURE__*/function () {
1995
1988
  });
1996
1989
  }
1997
1990
  });
1998
- /**
1999
- * Sends an email and if specified opens an input dialog before sending
2000
- */
2001
- _defineProperty(this, "sendEmail", /*#__PURE__*/function () {
2002
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(_ref) {
2003
- var dialogText, showDialog, callback, content, mailSendCallback, dialogAcceptMailSend, accepted, _content$language$toU, _content$language;
2004
- return _regeneratorRuntime.wrap(function _callee$(_context) {
2005
- while (1) switch (_context.prev = _context.next) {
2006
- case 0:
2007
- dialogText = _ref.dialogText, showDialog = _ref.showDialog, callback = _ref.callback, content = _ref.content, mailSendCallback = _ref.mailSendCallback, dialogAcceptMailSend = _ref.dialogAcceptMailSend;
2008
- accepted = showDialog === false;
2009
- if (!(showDialog !== false)) {
2010
- _context.next = 5;
2011
- break;
2012
- }
2013
- _context.next = 5;
2014
- return new Promise(function (resolve) {
2015
- return _this.openModal({
2016
- reject: true,
2017
- accept: true,
2018
- text: dialogText ? _this.root.t(dialogText, {
2019
- to: content.to
2020
- }) : _this.root.t('email.question.default', {
2021
- to: content.to
2022
- }),
2023
- callback: function callback(accept) {
2024
- accepted = !!accept;
2025
- resolve();
2026
- }
2027
- });
2028
- });
2029
- case 5:
2030
- if (accepted) {
2031
- _context.next = 7;
2032
- break;
2033
- }
2034
- return _context.abrupt("return", 'aborted');
2035
- case 7:
2036
- if (showDialog !== false) _this.root.loadingAndErrorStore.toggleLoading('sendingEmail');
2037
- _context.prev = 8;
2038
- content.language = (_content$language$toU = (_content$language = content.language) === null || _content$language === void 0 ? void 0 : _content$language.toUpperCase()) !== null && _content$language$toU !== void 0 ? _content$language$toU : instance.language.toUpperCase();
2039
- _context.next = 12;
2040
- return _this.root.apiHandler.sendEmail({
2041
- content: content,
2042
- organizationIds: _this.root.dataStore.fullParentList
2043
- });
2044
- case 12:
2045
- if (callback) {
2046
- callback(true);
2047
- } else {
2048
- if (showDialog !== false) {
2049
- _this.openModal({
2050
- text: _this.root.t('email.send.success'),
2051
- accept: dialogAcceptMailSend !== null && dialogAcceptMailSend !== void 0 ? dialogAcceptMailSend : true,
2052
- reject: dialogAcceptMailSend ? true : false,
2053
- callback: function callback(accept) {
2054
- if (accept && mailSendCallback) {
2055
- mailSendCallback === null || mailSendCallback === void 0 || mailSendCallback();
2056
- }
2057
- }
2058
- });
2059
- }
2060
- }
2061
- if (showDialog !== false) _this.root.loadingAndErrorStore.toggleLoading('sendingEmail');
2062
- return _context.abrupt("return", 'success');
2063
- case 17:
2064
- _context.prev = 17;
2065
- _context.t0 = _context["catch"](8);
2066
- LOG$9.error(_context.t0);
2067
- if (callback) {
2068
- callback(false);
2069
- } else {
2070
- if (showDialog !== false) {
2071
- _this.openModal({
2072
- text: _this.root.t('email.send.error'),
2073
- accept: true
2074
- });
2075
- }
2076
- }
2077
- if (showDialog !== false) _this.root.loadingAndErrorStore.toggleLoading('sendingEmail');
2078
- return _context.abrupt("return", 'error');
2079
- case 23:
2080
- case "end":
2081
- return _context.stop();
2082
- }
2083
- }, _callee, null, [[8, 17]]);
2084
- }));
2085
- return function (_x) {
2086
- return _ref2.apply(this, arguments);
2087
- };
2088
- }());
2089
1991
  this.root = root;
2090
1992
  this.configuration = components;
2091
1993
  if (window.customElements.get('model-viewer')) this._modelViewerHasLoaded = true;
@@ -2111,6 +2013,7 @@ var ContentStore = /*#__PURE__*/function () {
2111
2013
  _currentlyRendered: false,
2112
2014
  openComponent: flow,
2113
2015
  openComponentInFullscreen: flow,
2016
+ sendEmail: flow,
2114
2017
  getState: false
2115
2018
  });
2116
2019
  reaction(function () {
@@ -2136,22 +2039,22 @@ var ContentStore = /*#__PURE__*/function () {
2136
2039
  return _createClass(ContentStore, [{
2137
2040
  key: "loadModelViewer",
2138
2041
  value: function () {
2139
- var _loadModelViewer = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
2140
- return _regeneratorRuntime.wrap(function _callee2$(_context2) {
2141
- while (1) switch (_context2.prev = _context2.next) {
2042
+ var _loadModelViewer = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
2043
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
2044
+ while (1) switch (_context.prev = _context.next) {
2142
2045
  case 0:
2143
2046
  if (!(!this._modelViewerHasLoaded && !window.customElements.get('model-viewer'))) {
2144
- _context2.next = 4;
2047
+ _context.next = 4;
2145
2048
  break;
2146
2049
  }
2147
2050
  this._modelViewerHasLoaded = true;
2148
- _context2.next = 4;
2051
+ _context.next = 4;
2149
2052
  return import('@google/model-viewer');
2150
2053
  case 4:
2151
2054
  case "end":
2152
- return _context2.stop();
2055
+ return _context.stop();
2153
2056
  }
2154
- }, _callee2, this);
2057
+ }, _callee, this);
2155
2058
  }));
2156
2059
  function loadModelViewer() {
2157
2060
  return _loadModelViewer.apply(this, arguments);
@@ -2166,10 +2069,10 @@ var ContentStore = /*#__PURE__*/function () {
2166
2069
  return action.url;
2167
2070
  }
2168
2071
  var config = undefined;
2169
- var _ref3 = action,
2170
- type = _ref3.type,
2171
- parameters = _ref3.parameters,
2172
- route = _ref3.route;
2072
+ var _ref = action,
2073
+ type = _ref.type,
2074
+ parameters = _ref.parameters,
2075
+ route = _ref.route;
2173
2076
  if (type) {
2174
2077
  config = this.availableComponents.find(function (c) {
2175
2078
  return c.type == type;
@@ -2208,21 +2111,21 @@ var ContentStore = /*#__PURE__*/function () {
2208
2111
  _config6,
2209
2112
  _config8,
2210
2113
  _config9;
2211
- 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, settings, openModuleLables, _parameters, otherPrams, module, prevType, prevState, currentState, componentState;
2212
- return _regeneratorRuntime.wrap(function openComponent$(_context3) {
2213
- while (1) switch (_context3.prev = _context3.next) {
2114
+ var _this$componentChange2, _this$componentChange3, _this$openInNewTab, _this$openInNewTab2, link, _window, _ref2, type, identifier, parameters, internal, route, openInFullscreen, keepOldState, config, parent, _this$root$dataStore$, _this$root$dataStore$2, _config4, newTab, _config7, base, settings, openModuleLables, _parameters, otherPrams, module, prevType, prevState, currentState, componentState;
2115
+ return _regeneratorRuntime.wrap(function openComponent$(_context2) {
2116
+ while (1) switch (_context2.prev = _context2.next) {
2214
2117
  case 0:
2215
2118
  if (!((_this$componentChange = this.componentChange) !== null && _this$componentChange !== void 0 && _this$componentChange.isBlocked)) {
2216
- _context3.next = 3;
2119
+ _context2.next = 3;
2217
2120
  break;
2218
2121
  }
2219
2122
  (_this$componentChange2 = this.componentChange) === null || _this$componentChange2 === void 0 || (_this$componentChange3 = _this$componentChange2.callback) === null || _this$componentChange3 === void 0 || _this$componentChange3.call(_this$componentChange2);
2220
- return _context3.abrupt("return");
2123
+ return _context2.abrupt("return");
2221
2124
  case 3:
2222
2125
  this.root.loadingAndErrorStore.toggleLoading('openComponent');
2223
2126
  LOG$9.debug('openComponent', toJS(action));
2224
2127
  if (!action.url) {
2225
- _context3.next = 10;
2128
+ _context2.next = 10;
2226
2129
  break;
2227
2130
  }
2228
2131
  LOG$9.businessEvent('onOpenModule', action.openInNewTab ? 'OpenUrlNewTab' : 'OpenUrl', "Open link ".concat(action.url), {
@@ -2235,16 +2138,16 @@ var ContentStore = /*#__PURE__*/function () {
2235
2138
  window.location.href = this.resoveUrl(action.url);
2236
2139
  }
2237
2140
  this.root.loadingAndErrorStore.toggleLoading('openComponent');
2238
- return _context3.abrupt("return");
2141
+ return _context2.abrupt("return");
2239
2142
  case 10:
2240
- _ref4 = action, type = _ref4.type, identifier = _ref4.identifier, parameters = _ref4.parameters, internal = _ref4.internal, route = _ref4.route, openInFullscreen = _ref4.openInFullscreen, keepOldState = _ref4.keepOldState;
2143
+ _ref2 = action, type = _ref2.type, identifier = _ref2.identifier, parameters = _ref2.parameters, internal = _ref2.internal, route = _ref2.route, openInFullscreen = _ref2.openInFullscreen, keepOldState = _ref2.keepOldState;
2241
2144
  config = undefined;
2242
2145
  if (!openInFullscreen) {
2243
- _context3.next = 15;
2146
+ _context2.next = 15;
2244
2147
  break;
2245
2148
  }
2246
2149
  this.openComponentInFullscreen(action);
2247
- return _context3.abrupt("return");
2150
+ return _context2.abrupt("return");
2248
2151
  case 15:
2249
2152
  if (type) {
2250
2153
  config = this.availableComponents.find(function (c) {
@@ -2256,7 +2159,7 @@ var ContentStore = /*#__PURE__*/function () {
2256
2159
  });
2257
2160
  }
2258
2161
  if (!(((_config2 = config) === null || _config2 === void 0 ? void 0 : _config2.type) == 'CATEGORY_MANAGER' || ((_config3 = config) === null || _config3 === void 0 ? void 0 : _config3.type) == 'ASSORTMENT_MANAGER')) {
2259
- _context3.next = 23;
2162
+ _context2.next = 23;
2260
2163
  break;
2261
2164
  }
2262
2165
  parent = undefined;
@@ -2270,7 +2173,7 @@ var ContentStore = /*#__PURE__*/function () {
2270
2173
  });
2271
2174
  }
2272
2175
  if (!parent) {
2273
- _context3.next = 23;
2176
+ _context2.next = 23;
2274
2177
  break;
2275
2178
  }
2276
2179
  this.openModal({
@@ -2294,30 +2197,30 @@ var ContentStore = /*#__PURE__*/function () {
2294
2197
  }
2295
2198
  });
2296
2199
  this.root.loadingAndErrorStore.toggleLoading('openComponent');
2297
- return _context3.abrupt("return");
2200
+ return _context2.abrupt("return");
2298
2201
  case 23:
2299
2202
  newTab = action.openInNewTab || ((_config6 = config) === null || _config6 === void 0 ? void 0 : _config6.openInNewTab);
2300
2203
  if (!newTab) {
2301
- _context3.next = 29;
2204
+ _context2.next = 29;
2302
2205
  break;
2303
2206
  }
2304
2207
  base = typeof action.openInNewTab == 'string' ? action.openInNewTab : window.origin;
2305
2208
  this.openInNewTab(action, "".concat(base).concat(((_config7 = config) === null || _config7 === void 0 ? void 0 : _config7.route) || ''));
2306
2209
  this.root.loadingAndErrorStore.toggleLoading('openComponent');
2307
- return _context3.abrupt("return");
2210
+ return _context2.abrupt("return");
2308
2211
  case 29:
2309
2212
  if (!(!this.root.dataStore.user && !this.isPublic(action))) {
2310
- _context3.next = 35;
2213
+ _context2.next = 35;
2311
2214
  break;
2312
2215
  }
2313
2216
  LOG$9.debug("Component is restricted, open login form");
2314
2217
  this._restrictedComponent = action;
2315
2218
  this.root.authorizationStore.showLogin();
2316
2219
  this.root.loadingAndErrorStore.toggleLoading('openComponent');
2317
- return _context3.abrupt("return");
2220
+ return _context2.abrupt("return");
2318
2221
  case 35:
2319
2222
  if (config) {
2320
- _context3.next = 40;
2223
+ _context2.next = 40;
2321
2224
  break;
2322
2225
  }
2323
2226
  this._restrictedComponent = action;
@@ -2328,7 +2231,7 @@ var ContentStore = /*#__PURE__*/function () {
2328
2231
  action: toJS(action)
2329
2232
  }
2330
2233
  }), 'CORE_0005');
2331
- return _context3.abrupt("return");
2234
+ return _context2.abrupt("return");
2332
2235
  case 40:
2333
2236
  settings = undefined;
2334
2237
  if (config.settings) {
@@ -2382,7 +2285,7 @@ var ContentStore = /*#__PURE__*/function () {
2382
2285
  this.root.loadingAndErrorStore.toggleLoading('openComponent');
2383
2286
  case 59:
2384
2287
  case "end":
2385
- return _context3.stop();
2288
+ return _context2.stop();
2386
2289
  }
2387
2290
  }, openComponent, this);
2388
2291
  })
@@ -2391,8 +2294,8 @@ var ContentStore = /*#__PURE__*/function () {
2391
2294
  value: /*#__PURE__*/_regeneratorRuntime.mark(function openComponentInFullscreen(component) {
2392
2295
  var _config10, _config11;
2393
2296
  var type, parameters, internal, route, config, settings, module, componentState;
2394
- return _regeneratorRuntime.wrap(function openComponentInFullscreen$(_context4) {
2395
- while (1) switch (_context4.prev = _context4.next) {
2297
+ return _regeneratorRuntime.wrap(function openComponentInFullscreen$(_context3) {
2298
+ while (1) switch (_context3.prev = _context3.next) {
2396
2299
  case 0:
2397
2300
  LOG$9.debug('openComponentInFullscreen', toJS(component));
2398
2301
  this.root.loadingAndErrorStore.setError(undefined);
@@ -2409,7 +2312,7 @@ var ContentStore = /*#__PURE__*/function () {
2409
2312
  });
2410
2313
  }
2411
2314
  if (config) {
2412
- _context4.next = 10;
2315
+ _context3.next = 10;
2413
2316
  break;
2414
2317
  }
2415
2318
  this._restrictedComponent = component;
@@ -2420,24 +2323,24 @@ var ContentStore = /*#__PURE__*/function () {
2420
2323
  component: toJS(component)
2421
2324
  }
2422
2325
  }), 'CORE_0005');
2423
- return _context4.abrupt("return");
2326
+ return _context3.abrupt("return");
2424
2327
  case 10:
2425
2328
  settings = undefined;
2426
2329
  if (!config.settings) {
2427
- _context4.next = 15;
2330
+ _context3.next = 15;
2428
2331
  break;
2429
2332
  }
2430
2333
  settings = config.settings;
2431
- _context4.next = 18;
2334
+ _context3.next = 18;
2432
2335
  break;
2433
2336
  case 15:
2434
- _context4.next = 17;
2337
+ _context3.next = 17;
2435
2338
  return this.root.configurationStore.fetchConfiguration({
2436
2339
  identifier: config.identifier,
2437
2340
  type: config.type
2438
2341
  });
2439
2342
  case 17:
2440
- settings = _context4.sent;
2343
+ settings = _context3.sent;
2441
2344
  case 18:
2442
2345
  module = this.mapTypeToModule((_config10 = config) === null || _config10 === void 0 ? void 0 : _config10.type);
2443
2346
  LOG$9.businessEvent('onOpenModule', module, "Open module ".concat((_config11 = config) === null || _config11 === void 0 ? void 0 : _config11.type));
@@ -2454,7 +2357,7 @@ var ContentStore = /*#__PURE__*/function () {
2454
2357
  this.root.loadingAndErrorStore.toggleLoading('openComponent');
2455
2358
  case 24:
2456
2359
  case "end":
2457
- return _context4.stop();
2360
+ return _context3.stop();
2458
2361
  }
2459
2362
  }, openComponentInFullscreen, this);
2460
2363
  })
@@ -2916,11 +2819,11 @@ var ContentStore = /*#__PURE__*/function () {
2916
2819
  */
2917
2820
  }, {
2918
2821
  key: "openDrawerMenu",
2919
- value: function openDrawerMenu(_ref5) {
2822
+ value: function openDrawerMenu(_ref3) {
2920
2823
  var _this$_drawerMenu, _this$_drawerMenu2, _this$_drawerMenu$onC, _this$_drawerMenu3, _this$_drawerMenu$ope, _this$_drawerMenu4;
2921
- var _ref5$onClose = _ref5.onClose,
2922
- onClose = _ref5$onClose === void 0 ? this.closeDrawerMenu.bind(this) : _ref5$onClose,
2923
- drawerMenu = _objectWithoutProperties(_ref5, _excluded2$1);
2824
+ var _ref3$onClose = _ref3.onClose,
2825
+ onClose = _ref3$onClose === void 0 ? this.closeDrawerMenu.bind(this) : _ref3$onClose,
2826
+ drawerMenu = _objectWithoutProperties(_ref3, _excluded2$1);
2924
2827
  if ((_this$_drawerMenu = this._drawerMenu) !== null && _this$_drawerMenu !== void 0 && _this$_drawerMenu.id && drawerMenu !== null && drawerMenu !== void 0 && drawerMenu.id && drawerMenu.id !== ((_this$_drawerMenu2 = this._drawerMenu) === null || _this$_drawerMenu2 === void 0 ? void 0 : _this$_drawerMenu2.id)) (_this$_drawerMenu$onC = (_this$_drawerMenu3 = this._drawerMenu).onClose) === null || _this$_drawerMenu$onC === void 0 || _this$_drawerMenu$onC.call(_this$_drawerMenu3);
2925
2828
  if (drawerMenu.open === undefined) drawerMenu.open = (_this$_drawerMenu$ope = (_this$_drawerMenu4 = this._drawerMenu) === null || _this$_drawerMenu4 === void 0 ? void 0 : _this$_drawerMenu4.open) !== null && _this$_drawerMenu$ope !== void 0 ? _this$_drawerMenu$ope : false;
2926
2829
  this._drawerMenu = _objectSpread$a(_objectSpread$a({}, drawerMenu), {}, {
@@ -2967,14 +2870,113 @@ var ContentStore = /*#__PURE__*/function () {
2967
2870
  value: function bannerInLocalStorage(banner) {
2968
2871
  return this.root.browserStateStore.bannerInLocalStorage(banner);
2969
2872
  }
2873
+
2874
+ /**
2875
+ * Sends an email and if specified opens an input dialog before sending
2876
+ */
2970
2877
  }, {
2971
- key: "getState",
2972
- value:
2878
+ key: "sendEmail",
2879
+ value: function sendEmail(_ref4) {
2880
+ var _this7 = this;
2881
+ var dialogText = _ref4.dialogText,
2882
+ showDialog = _ref4.showDialog,
2883
+ callback = _ref4.callback,
2884
+ content = _ref4.content,
2885
+ mailSendCallback = _ref4.mailSendCallback,
2886
+ dialogAcceptMailSend = _ref4.dialogAcceptMailSend;
2887
+ return /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
2888
+ var accepted, _content$language$toU, _content$language;
2889
+ return _regeneratorRuntime.wrap(function _callee2$(_context4) {
2890
+ while (1) switch (_context4.prev = _context4.next) {
2891
+ case 0:
2892
+ accepted = showDialog === false;
2893
+ if (!(showDialog !== false)) {
2894
+ _context4.next = 4;
2895
+ break;
2896
+ }
2897
+ _context4.next = 4;
2898
+ return new Promise(function (resolve) {
2899
+ return _this7.openModal({
2900
+ reject: true,
2901
+ accept: true,
2902
+ text: dialogText ? _this7.root.t(dialogText, {
2903
+ to: content.to
2904
+ }) : _this7.root.t('email.question.default', {
2905
+ to: content.to
2906
+ }),
2907
+ callback: function callback(accept) {
2908
+ accepted = !!accept;
2909
+ resolve();
2910
+ }
2911
+ });
2912
+ });
2913
+ case 4:
2914
+ if (accepted) {
2915
+ _context4.next = 6;
2916
+ break;
2917
+ }
2918
+ return _context4.abrupt("return");
2919
+ case 6:
2920
+ if (showDialog !== false) _this7.root.loadingAndErrorStore.toggleLoading('sendingEmail');
2921
+ _context4.prev = 7;
2922
+ content.language = (_content$language$toU = (_content$language = content.language) === null || _content$language === void 0 ? void 0 : _content$language.toUpperCase()) !== null && _content$language$toU !== void 0 ? _content$language$toU : instance.language.toUpperCase();
2923
+ _context4.next = 11;
2924
+ return _this7.root.apiHandler.sendEmail({
2925
+ content: content,
2926
+ organizationIds: _this7.root.dataStore.fullParentList
2927
+ });
2928
+ case 11:
2929
+ if (callback) {
2930
+ callback(true);
2931
+ } else {
2932
+ if (showDialog !== false) {
2933
+ _this7.openModal({
2934
+ text: _this7.root.t('email.send.success'),
2935
+ accept: dialogAcceptMailSend !== null && dialogAcceptMailSend !== void 0 ? dialogAcceptMailSend : true,
2936
+ reject: dialogAcceptMailSend ? true : false,
2937
+ callback: function callback(accept) {
2938
+ if (accept && mailSendCallback) {
2939
+ mailSendCallback === null || mailSendCallback === void 0 || mailSendCallback();
2940
+ }
2941
+ }
2942
+ });
2943
+ }
2944
+ }
2945
+ _context4.next = 18;
2946
+ break;
2947
+ case 14:
2948
+ _context4.prev = 14;
2949
+ _context4.t0 = _context4["catch"](7);
2950
+ LOG$9.error(_context4.t0);
2951
+ if (callback) {
2952
+ callback(false);
2953
+ } else {
2954
+ if (showDialog !== false) {
2955
+ _this7.openModal({
2956
+ text: _this7.root.t('email.send.error'),
2957
+ accept: true
2958
+ });
2959
+ }
2960
+ }
2961
+ case 18:
2962
+ _context4.prev = 18;
2963
+ if (showDialog !== false) _this7.root.loadingAndErrorStore.toggleLoading('sendingEmail');
2964
+ return _context4.finish(18);
2965
+ case 21:
2966
+ case "end":
2967
+ return _context4.stop();
2968
+ }
2969
+ }, _callee2, null, [[7, 14, 18, 21]]);
2970
+ })();
2971
+ }
2972
+
2973
2973
  /**
2974
2974
  * Retruns the current state of the named component
2975
2975
  * @param type
2976
2976
  */
2977
- function getState(type) {
2977
+ }, {
2978
+ key: "getState",
2979
+ value: function getState(type) {
2978
2980
  var state = this.state.get(type);
2979
2981
  return state ? _objectSpread$a(_objectSpread$a({}, state), {}, {
2980
2982
  isVisible: this.isVisible(type)
@@ -3024,7 +3026,7 @@ var ContentStore = /*#__PURE__*/function () {
3024
3026
  }
3025
3027
  }, _callee3, this);
3026
3028
  }));
3027
- function setContainer(_x2) {
3029
+ function setContainer(_x) {
3028
3030
  return _setContainer.apply(this, arguments);
3029
3031
  }
3030
3032
  return setContainer;
@@ -3054,10 +3056,10 @@ var ContentStore = /*#__PURE__*/function () {
3054
3056
  key: "availableComponents",
3055
3057
  get: function get() {
3056
3058
  var _this$root,
3057
- _this7 = this;
3059
+ _this8 = this;
3058
3060
  return (_this$root = this.root) === null || _this$root === void 0 ? void 0 : _this$root.configurationStore.components.filter(function (component) {
3059
3061
  //the component must be passed to diva core
3060
- if (!_this7.configuration.find(function (config) {
3062
+ if (!_this8.configuration.find(function (config) {
3061
3063
  return config.name == component.type;
3062
3064
  })) {
3063
3065
  return false;
@@ -3068,11 +3070,11 @@ var ContentStore = /*#__PURE__*/function () {
3068
3070
  return true;
3069
3071
  }
3070
3072
  //if the user is not logged in the component must be public
3071
- if (!_this7.root.dataStore.user) {
3073
+ if (!_this8.root.dataStore.user) {
3072
3074
  return false;
3073
3075
  }
3074
3076
  //if there is a permission specified, the user must have it
3075
- return component.permission ? _this7.root.dataStore.userHasPermission(component.permission) : true;
3077
+ return component.permission ? _this8.root.dataStore.userHasPermission(component.permission) : true;
3076
3078
  });
3077
3079
  }
3078
3080
 
@@ -3082,14 +3084,14 @@ var ContentStore = /*#__PURE__*/function () {
3082
3084
  }, {
3083
3085
  key: "components",
3084
3086
  get: function get() {
3085
- var _this8 = this;
3087
+ var _this9 = this;
3086
3088
  var componentDefinitionToRender = this.configuration.filter(function (config) {
3087
3089
  //there must be a state present in order for the component to be rendered
3088
- if (!_this8.state.has(config.name)) {
3090
+ if (!_this9.state.has(config.name)) {
3089
3091
  return false;
3090
3092
  }
3091
3093
  //the component must be contained in the available components list in order to be rendered
3092
- return _this8.availableComponents.find(function (component) {
3094
+ return _this9.availableComponents.find(function (component) {
3093
3095
  return component.type == config.name;
3094
3096
  });
3095
3097
  });
@@ -3097,7 +3099,7 @@ var ContentStore = /*#__PURE__*/function () {
3097
3099
  //when a new component is added we have to make sure that for the currently open components the existing instance is reused
3098
3100
  //withTransaction creates a new instance if APM is active, so we would loose the state of currently open components
3099
3101
  componentDefinitionToRender.forEach(function (cmp) {
3100
- var toRender = _this8._currentlyRendered.find(function (c) {
3102
+ var toRender = _this9._currentlyRendered.find(function (c) {
3101
3103
  return c.name == cmp.name;
3102
3104
  });
3103
3105
  if (!toRender) {
@@ -3118,10 +3120,10 @@ var ContentStore = /*#__PURE__*/function () {
3118
3120
  }, {
3119
3121
  key: "fullscreenComponent",
3120
3122
  get: function get() {
3121
- var _this9 = this;
3123
+ var _this10 = this;
3122
3124
  var component = this.availableComponents.find(function (component) {
3123
- var _this9$_fullscreenCom;
3124
- return component.type == ((_this9$_fullscreenCom = _this9._fullscreenComponent) === null || _this9$_fullscreenCom === void 0 ? void 0 : _this9$_fullscreenCom.key);
3125
+ var _this10$_fullscreenCo;
3126
+ return component.type == ((_this10$_fullscreenCo = _this10._fullscreenComponent) === null || _this10$_fullscreenCo === void 0 ? void 0 : _this10$_fullscreenCo.key);
3125
3127
  });
3126
3128
  var cmp = this.configuration.find(function (config) {
3127
3129
  return (component === null || component === void 0 ? void 0 : component.type) == config.name;
@@ -3168,24 +3170,24 @@ var ContentStore = /*#__PURE__*/function () {
3168
3170
  key: "availableButtons",
3169
3171
  get: function get() {
3170
3172
  var _this$root$configurat,
3171
- _this10 = this;
3173
+ _this11 = this;
3172
3174
  return (_this$root$configurat = this.root.configurationStore.navigation) === null || _this$root$configurat === void 0 ? void 0 : _this$root$configurat.buttons.filter(function (button) {
3173
3175
  //if component is public it can be displayed
3174
3176
  if (button.isPublic) {
3175
3177
  return true;
3176
3178
  }
3177
3179
  //if the user is not logged in the component must be public
3178
- if (!_this10.root.dataStore.user) {
3180
+ if (!_this11.root.dataStore.user) {
3179
3181
  return false;
3180
3182
  }
3181
3183
 
3182
3184
  //if the button is opening a component, the component must be availalbe
3183
- if (button.action.type && !_this10.availableComponentList.includes(button.action.type)) {
3185
+ if (button.action.type && !_this11.availableComponentList.includes(button.action.type)) {
3184
3186
  return false;
3185
3187
  }
3186
3188
 
3187
3189
  //if there is a permission specified, the user must have it
3188
- return button.permission ? _this10.root.dataStore.userHasPermission(button.permission) : true;
3190
+ return button.permission ? _this11.root.dataStore.userHasPermission(button.permission) : true;
3189
3191
  });
3190
3192
  }
3191
3193
 
@@ -3270,7 +3272,7 @@ var ContentStore = /*#__PURE__*/function () {
3270
3272
  }, {
3271
3273
  key: "updateStateAfterLogout",
3272
3274
  value: function updateStateAfterLogout() {
3273
- var _this11 = this;
3275
+ var _this12 = this;
3274
3276
  var _iterator3 = _createForOfIteratorHelper(this.state.entries()),
3275
3277
  _step3;
3276
3278
  try {
@@ -3278,19 +3280,19 @@ var ContentStore = /*#__PURE__*/function () {
3278
3280
  var _step3$value = _slicedToArray(_step3.value, 2),
3279
3281
  type = _step3$value[0],
3280
3282
  component = _step3$value[1];
3281
- var config = _this11.root.configurationStore.components.find(function (c) {
3283
+ var config = _this12.root.configurationStore.components.find(function (c) {
3282
3284
  return c.type == type;
3283
3285
  });
3284
3286
  if (!(config !== null && config !== void 0 && config.isPublic)) {
3285
- _this11.state["delete"](type);
3286
- if (_this11.visible == type) {
3287
- _this11.visible = undefined;
3288
- _this11._restrictedComponent = {
3287
+ _this12.state["delete"](type);
3288
+ if (_this12.visible == type) {
3289
+ _this12.visible = undefined;
3290
+ _this12._restrictedComponent = {
3289
3291
  type: type,
3290
3292
  parameters: component.parameters,
3291
3293
  internal: component.internal
3292
3294
  };
3293
- _this11.root.authorizationStore.showLogin();
3295
+ _this12.root.authorizationStore.showLogin();
3294
3296
  }
3295
3297
  }
3296
3298
  };
@@ -3324,8 +3326,8 @@ var ContentStore = /*#__PURE__*/function () {
3324
3326
  link = this.resoveUrl(action.url);
3325
3327
  } else {
3326
3328
  var _this$root$dataStore$5;
3327
- var _ref6 = action,
3328
- parameters = _ref6.parameters;
3329
+ var _ref5 = action,
3330
+ parameters = _ref5.parameters;
3329
3331
  var url = new URL(baseUrl);
3330
3332
  var params = url.searchParams;
3331
3333
  Object.entries(parameters || {}).forEach(function (param) {
@@ -3667,20 +3669,11 @@ var BrowserStateStore = /*#__PURE__*/function () {
3667
3669
  };
3668
3670
  state.organization = (_searchParams$get = searchParams.get('organizationId')) !== null && _searchParams$get !== void 0 ? _searchParams$get : undefined;
3669
3671
  searchParams["delete"]('organizationId');
3670
-
3671
- //for backwards compatibilty, if the channelId is set in the url, use that one as organization and update the url in the browser
3672
- if (searchParams.get('channelId')) {
3673
- state.organization = searchParams.get('channelId');
3674
- searchParams["delete"]('channelId');
3675
- currentUrl.searchParams.set('organizationId', state.organization);
3676
- currentUrl.searchParams["delete"]('channelId');
3677
- }
3678
3672
  authdataString = searchParams.get('authdata') || undefined;
3679
3673
  if (authdataString) {
3680
3674
  state.authdata = JSON.parse(atob(authdataString));
3681
- if ((_state$authdata = state.authdata) !== null && _state$authdata !== void 0 && _state$authdata.organizationId && state.organization != state.authdata.organizationId) {
3675
+ if ((_state$authdata = state.authdata) !== null && _state$authdata !== void 0 && _state$authdata.organizationId) {
3682
3676
  state.organization = state.authdata.organizationId;
3683
- currentUrl.searchParams.set('organizationId', state.organization);
3684
3677
  }
3685
3678
  }
3686
3679
  searchParams["delete"]('lang');
@@ -3692,7 +3685,7 @@ var BrowserStateStore = /*#__PURE__*/function () {
3692
3685
  currentUrl.searchParams["delete"]('authdata');
3693
3686
  history.replaceState(null, '', currentUrl.href);
3694
3687
  return _context.abrupt("return", state);
3695
- case 19:
3688
+ case 18:
3696
3689
  case "end":
3697
3690
  return _context.stop();
3698
3691
  }
@@ -8045,7 +8038,6 @@ var RootStore = /*#__PURE__*/function () {
8045
8038
  _defineProperty(this, "_onEvent", void 0);
8046
8039
  _defineProperty(this, "events", []);
8047
8040
  _defineProperty(this, "_initializing", true);
8048
- _defineProperty(this, "_initializingLocalization", true);
8049
8041
  _defineProperty(this, "_loginMode", (_ref2 = localStorage.getItem(LOGINMODE_LOCALSTORAGE_KEY)) !== null && _ref2 !== void 0 ? _ref2 : 'offline');
8050
8042
  _defineProperty(this, "_apiHandler", void 0);
8051
8043
  _defineProperty(this, "_productHandler", void 0);
@@ -8060,7 +8052,6 @@ var RootStore = /*#__PURE__*/function () {
8060
8052
  _defineProperty(this, "_initalComponent", void 0);
8061
8053
  makeObservable(this, {
8062
8054
  _initializing: observable,
8063
- _initializingLocalization: observable,
8064
8055
  _loginMode: observable,
8065
8056
  changeLanguage: action,
8066
8057
  changeLoginMode: action,
@@ -8092,12 +8083,10 @@ var RootStore = /*#__PURE__*/function () {
8092
8083
  var _this$configurationSt, _this$configurationSt2;
8093
8084
  return {
8094
8085
  namespace: (_this$configurationSt = _this.configurationStore.locales) === null || _this$configurationSt === void 0 ? void 0 : _this$configurationSt.namespace,
8095
- languages: (_this$configurationSt2 = _this.configurationStore.locales) === null || _this$configurationSt2 === void 0 ? void 0 : _this$configurationSt2.available,
8096
- initializingLocalization: _this.initializingLocalization
8086
+ languages: (_this$configurationSt2 = _this.configurationStore.locales) === null || _this$configurationSt2 === void 0 ? void 0 : _this$configurationSt2.available
8097
8087
  };
8098
8088
  }, function (value, prev) {
8099
- var _value$languages, _prev$languages;
8100
- if (!instance.isInitialized || value.namespace == prev.namespace && JSON.stringify((_value$languages = value.languages) !== null && _value$languages !== void 0 ? _value$languages : []) == JSON.stringify((_prev$languages = prev.languages) !== null && _prev$languages !== void 0 ? _prev$languages : [])) return;
8089
+ if (!instance.isInitialized || value.namespace == prev.namespace && value.languages == prev.languages) return;
8101
8090
  if (value.namespace) changeNamespace(value.namespace);else changeNamespace('default');
8102
8091
  if (value.languages && !value.languages.includes(instance.language)) {
8103
8092
  instance.changeLanguage(value.languages[0]);
@@ -8213,22 +8202,6 @@ var RootStore = /*#__PURE__*/function () {
8213
8202
  return this._initializing || !this.dataStore.organizationId;
8214
8203
  }
8215
8204
 
8216
- /**
8217
- * Is true if the application is still initializing the localization
8218
- */
8219
- }, {
8220
- key: "initializingLocalization",
8221
- get: function get() {
8222
- return this._initializingLocalization;
8223
- }
8224
- /**
8225
- * Sets the initializingLocalization flag
8226
- * @param value the new value
8227
- */,
8228
- set: function set(value) {
8229
- this._initializingLocalization = value;
8230
- }
8231
-
8232
8205
  /**
8233
8206
  * Triggers an event from outside of the application
8234
8207
  * @param event the event
@@ -8389,7 +8362,7 @@ var RootStore = /*#__PURE__*/function () {
8389
8362
  value: (function () {
8390
8363
  var _initialize = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(telemetry, identifier, organizationId, domain, language, component, analyticsProps) {
8391
8364
  var _this4 = this;
8392
- var _this$_initalComponen, _this$_initalComponen2, _configuration$pwa, _this$contentStore$cu, urlState, storedOrganization, initialOrganization, initAuthPromise, afterInitPromise, configuration, header, manifest, verifyEmailToken, authObject, _authObject$code, _urlState$component, _authObject$code2, _authObject$code3, _authObject$code4, _authObject$additiona, _authObject$additiona2, _this$configurationSt5, email, _this$contentStore$cu2;
8365
+ var _this$_initalComponen, _this$_initalComponen2, _configuration$pwa, _this$contentStore$cu, urlState, storedOrganization, initialOrganization, initAuthPromise, localizationPromise, configuration, header, manifest, verifyEmailToken, authObject, _authObject$code, _urlState$component, _authObject$code2, _authObject$code3, _authObject$code4, _authObject$additiona, _authObject$additiona2, _this$configurationSt5, email, _this$contentStore$cu2;
8393
8366
  return _regeneratorRuntime.wrap(function _callee$(_context) {
8394
8367
  while (1) switch (_context.prev = _context.next) {
8395
8368
  case 0:
@@ -8428,9 +8401,8 @@ var RootStore = /*#__PURE__*/function () {
8428
8401
  message: 'loading Config',
8429
8402
  eventId: 'LOAD_CONFIG'
8430
8403
  });
8431
- afterInitPromise = init({
8432
- apiConfig: this.configurationStore.apiConfig,
8433
- language: language
8404
+ localizationPromise = init({
8405
+ apiConfig: this.configurationStore.apiConfig
8434
8406
  }); //load core configuration based on initaly available information
8435
8407
  _context.next = 15;
8436
8408
  return this.configurationStore.fetchConfiguration({
@@ -8473,8 +8445,7 @@ var RootStore = /*#__PURE__*/function () {
8473
8445
  }
8474
8446
  });
8475
8447
  });
8476
- afterInitPromise.then(function () {
8477
- _this4.initializingLocalization = false;
8448
+ localizationPromise.then(function () {
8478
8449
  var warningText = _this4.t('init.deploymentwarntext', '');
8479
8450
  if (warningText.trim() !== '' && _this4.doShowInitWarnBanner) {
8480
8451
  var _this4$contentStore;
@@ -9320,7 +9291,7 @@ var bottom = "bottom-VZZjn";
9320
9291
  var top = "top-o1Wjp";
9321
9292
  var bottomSpacer = "bottom-spacer-kdhiH";
9322
9293
  var onSide = "on-side-JUQWn";
9323
- var css_248z$3 = ".drawer-wrapper-QY9a7 {\n transition:\n opacity 0.3s ease,\n transform 0.5s cubic-bezier(0.32, 0.72, 0, 1) !important;\n}\n\n.drawer-wrapper-QY9a7 {\n outline: medium none invert;\n outline: initial;\n position: fixed;\n width: 100%;\n z-index: 14000;\n pointer-events: auto;\n opacity: 1;\n}\n\n.drawer-wrapper-QY9a7.vaul-dragging {\n transition: opacity 0.3s ease !important;\n}\n\n[data-state='closed'].drawer-wrapper-QY9a7.left-SicAa,\n[data-state='closed'].drawer-wrapper-QY9a7.right-p1mpA {\n opacity: 0;\n}\n\ndiv.handle-5tzN- {\n background: transparent;\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%, -10px);\n width: 40px;\n height: 40px;\n touch-action: inherit;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.drawer-P-5-0 {\n display: flex;\n flex-direction: column;\n border-top-left-radius: 10px;\n border-top-right-radius: 10px;\n border: 0px solid #e4e4e7;\n border-bottom: none;\n border-top-width: 1px;\n z-index: 2000000;\n box-shadow: 0 -5px 16px rgba(0, 0, 0, 0.1);\n background-color: rgba(255, 255, 255, 0.95);\n}\n\n.drawer-header-FOHFa {\n padding: 8px 32px;\n}\n\n.drawer-open #Diva-content-wrapper {\n overflow: visible !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}\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 right: 0;\n left: 0;\n}\n\n.left-SicAa,\n.right-p1mpA {\n bottom: 0;\n}\n.right-p1mpA {\n right: 0;\n}\n\n.top-o1Wjp {\n top: 0;\n right: 0;\n left: 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";
9294
+ var css_248z$3 = ".drawer-wrapper-QY9a7 {\n transition:\n opacity 0.3s ease,\n transform 0.5s cubic-bezier(0.32, 0.72, 0, 1) !important;\n}\n\n.drawer-wrapper-QY9a7 {\n outline: medium none invert;\n outline: initial;\n position: fixed;\n width: 100%;\n z-index: 14000;\n pointer-events: auto;\n opacity: 1;\n}\n\n.drawer-wrapper-QY9a7.vaul-dragging {\n transition: opacity 0.3s ease !important;\n}\n\n[data-state='closed'].drawer-wrapper-QY9a7.left-SicAa,\n[data-state='closed'].drawer-wrapper-QY9a7.right-p1mpA {\n opacity: 0;\n}\n\ndiv.handle-5tzN- {\n background: transparent;\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%, -10px);\n width: 40px;\n height: 40px;\n touch-action: inherit;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.drawer-P-5-0 {\n display: flex;\n flex-direction: column;\n border-top-left-radius: 10px;\n border-top-right-radius: 10px;\n border: 0px solid #e4e4e7;\n border-bottom: none;\n border-top-width: 1px;\n z-index: 2000000;\n box-shadow: 0 -5px 16px rgba(0, 0, 0, 0.1);\n background-color: rgba(255, 255, 255, 0.95);\n}\n\n.drawer-header-FOHFa {\n padding: 8px 32px;\n}\n\n.drawer-open #Diva-content-wrapper {\n overflow: visible !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}\n\n.close-button-Tg2c5 {\n position: absolute;\n top: 18px;\n right: 18px;\n width: 32px;\n height: 32px;\n background-color: transparent;\n border: none;\n cursor: pointer;\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%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 background-repeat: no-repeat;\n background-position: center center;\n background-size: 70%;\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 right: 0;\n left: 0;\n}\n\n.left-SicAa,\n.right-p1mpA {\n bottom: 0;\n}\n.right-p1mpA {\n right: 0;\n}\n\n.top-o1Wjp {\n top: 0;\n right: 0;\n left: 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";
9324
9295
  styleInject(css_248z$3);
9325
9296
 
9326
9297
  function ownKeys$5(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; }
@@ -9432,7 +9403,7 @@ var MobileDrawer = function MobileDrawer(_ref) {
9432
9403
  }), /*#__PURE__*/jsxs("div", {
9433
9404
  className: classnames(drawer, ['left', 'right'].includes(direction) ? onSide : undefined),
9434
9405
  onTouchMove: function onTouchMove(e) {
9435
- if (!e.target.closest('.diva-stop-swipe-detection')) e.stopPropagation();
9406
+ return e.stopPropagation();
9436
9407
  },
9437
9408
  style: _objectSpread$5({
9438
9409
  height: contentHeight,
@@ -9462,7 +9433,7 @@ var DrawerMenu = observer(MobileDrawer);
9462
9433
  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; }
9463
9434
  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; }
9464
9435
  var LazyModals$1 = /*#__PURE__*/React.lazy(function () {
9465
- return import('./ModalsWrapper-9700e8b5.js');
9436
+ return import('./ModalsWrapper-520b6262.js');
9466
9437
  });
9467
9438
  function Fullscreen(_ref) {
9468
9439
  var inAbsoluteFullscreen = _ref.inAbsoluteFullscreen;
@@ -9920,10 +9891,10 @@ function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
9920
9891
  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; }
9921
9892
  var LOG$2 = getLogger('Framework', 'Root');
9922
9893
  var LazyAuth = /*#__PURE__*/React.lazy(function () {
9923
- return import('./index-0b782da5.js');
9894
+ return import('./index-1c3fc16d.js');
9924
9895
  });
9925
9896
  var LazyModals = /*#__PURE__*/React.lazy(function () {
9926
- return import('./ModalsWrapper-9700e8b5.js');
9897
+ return import('./ModalsWrapper-520b6262.js');
9927
9898
  });
9928
9899
  function ContentComponent() {
9929
9900
  var context = useDivaCoreContext();
@@ -10662,7 +10633,7 @@ var MockedRootStore = /*#__PURE__*/function () {
10662
10633
  },
10663
10634
  sendEmail: function sendEmail(data) {
10664
10635
  if (_this2.actions.sendEmail) {
10665
- return _this2.actions.sendEmail(data);
10636
+ _this2.actions.sendEmail(data);
10666
10637
  } else {
10667
10638
  throw new Error('Method not implemented.');
10668
10639
  }