@crystaldesign/diva-core 25.14.0-beta.1 → 25.14.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.
@@ -1,4 +1,4 @@
1
- import { s as styleInject, u as useDivaCoreContext } from './index-f7beb728.js';
1
+ import { s as styleInject, u as useDivaCoreContext } from './index-5c47a06e.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';
@@ -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.14.0-beta.1"};
49
+ const env = {"STAGE":"production","VERSION":"25.14.0-beta.10"};
50
50
  try {
51
51
  if (process) {
52
52
  process.env = Object.assign({}, process.env);
@@ -1066,7 +1066,7 @@ var ConfigurationStore = /*#__PURE__*/function () {
1066
1066
  decimalSeparator: ',',
1067
1067
  decimalsDigits: 2
1068
1068
  };
1069
- (_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.defaultCurrency;
1069
+ var currency = (_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.defaultCurrency;
1070
1070
  if ((_this$_configuration55 = this._configuration) !== null && _this$_configuration55 !== void 0 && _this$_configuration55.priceFormat) {
1071
1071
  var _this$_configuration56;
1072
1072
  if (Array.isArray((_this$_configuration56 = this._configuration) === null || _this$_configuration56 === void 0 ? void 0 : _this$_configuration56.priceFormat)) {
@@ -1075,17 +1075,17 @@ var ConfigurationStore = /*#__PURE__*/function () {
1075
1075
  var _this$root$dataStore$4;
1076
1076
  return pf.currency === ((_this$root$dataStore$4 = _this.root.dataStore.organization) === null || _this$root$dataStore$4 === void 0 ? void 0 : _this$root$dataStore$4.settings.defaultCurrency);
1077
1077
  })) !== null && _this$_configuration$6 !== void 0 ? _this$_configuration$6 : _objectSpread$d(_objectSpread$d({}, fallbackPriceFormat), {}, {
1078
- currency: this.root.dataStore.organization.settings.defaultCurrency
1078
+ currency: currency
1079
1079
  });
1080
1080
  } else {
1081
- var _this$_configuration58, _this$root$dataStore$5, _this$_configuration59;
1081
+ var _this$_configuration58, _this$_configuration59;
1082
1082
  return _objectSpread$d(_objectSpread$d({}, (_this$_configuration58 = this._configuration) === null || _this$_configuration58 === void 0 ? void 0 : _this$_configuration58.priceFormat), {}, {
1083
- currency: (_this$root$dataStore$5 = this.root.dataStore.organization.settings.defaultCurrency) !== null && _this$root$dataStore$5 !== void 0 ? _this$root$dataStore$5 : (_this$_configuration59 = this._configuration) === null || _this$_configuration59 === void 0 ? void 0 : _this$_configuration59.priceFormat.currency
1083
+ currency: currency !== null && currency !== void 0 ? currency : (_this$_configuration59 = this._configuration) === null || _this$_configuration59 === void 0 ? void 0 : _this$_configuration59.priceFormat.currency
1084
1084
  });
1085
1085
  }
1086
1086
  } else {
1087
1087
  return _objectSpread$d(_objectSpread$d({}, fallbackPriceFormat), {}, {
1088
- currency: this.root.dataStore.organization.settings.defaultCurrency
1088
+ currency: currency
1089
1089
  });
1090
1090
  }
1091
1091
  }
@@ -9659,7 +9659,7 @@ var DrawerMenu = observer(MobileDrawer);
9659
9659
  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; }
9660
9660
  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; }
9661
9661
  var LazyModals$1 = /*#__PURE__*/React.lazy(function () {
9662
- return import('./ModalsWrapper-95c170db.js');
9662
+ return import('./ModalsWrapper-e10c6d2e.js');
9663
9663
  });
9664
9664
  function Fullscreen(_ref) {
9665
9665
  var inAbsoluteFullscreen = _ref.inAbsoluteFullscreen;
@@ -10119,10 +10119,10 @@ function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
10119
10119
  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; }
10120
10120
  var LOG$2 = getLogger('Framework', 'Root');
10121
10121
  var LazyAuth = /*#__PURE__*/React.lazy(function () {
10122
- return import('./index-0fc0dc43.js');
10122
+ return import('./index-80b53700.js');
10123
10123
  });
10124
10124
  var LazyModals = /*#__PURE__*/React.lazy(function () {
10125
- return import('./ModalsWrapper-95c170db.js');
10125
+ return import('./ModalsWrapper-e10c6d2e.js');
10126
10126
  });
10127
10127
  function ContentComponent() {
10128
10128
  var context = useDivaCoreContext();
@@ -1,4 +1,4 @@
1
- import { s as styleInject, u as useDivaCoreContext, g as getLogger } from './index-f7beb728.js';
1
+ import { s as styleInject, u as useDivaCoreContext, g as getLogger } from './index-5c47a06e.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 { b as AnalyticsHandler, A as AuthorizationHandler, d as ClientArticleHandler, C as Content, e as DivaMockProvider, H as HelpButton, O as ONE_DAY_UNIX, c as OrganizationHandler, P as ProductHandler, R as RequestStatus, S as SupportHandler, D as default, g as getLogger, f as storyBookCoreMock, a as useDivaCore } from './index-f7beb728.js';
1
+ export { b as AnalyticsHandler, A as AuthorizationHandler, d as ClientArticleHandler, C as Content, e as DivaMockProvider, H as HelpButton, O as ONE_DAY_UNIX, c as OrganizationHandler, P as ProductHandler, R as RequestStatus, S as SupportHandler, D as default, g as getLogger, f as storyBookCoreMock, a as useDivaCore } from './index-5c47a06e.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';