@crystaldesign/diva-core 24.13.0-beta.2 → 24.13.0-beta.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/esm/{ModalsWrapper-27fde194.js → ModalsWrapper-4f503fc1.js} +1 -1
- package/build/esm/{index-5e9d96bc.js → index-44e11b1a.js} +216 -96
- package/build/esm/{index-4401806b.js → index-91182320.js} +1 -1
- package/build/esm/index.js +1 -1
- package/build/types/core/src/externalTypes.d.ts +0 -6
- package/build/types/core/src/externalTypes.d.ts.map +1 -1
- package/build/types/core/src/handler/ProductHandler/index.d.ts +11 -1
- package/build/types/core/src/handler/ProductHandler/index.d.ts.map +1 -1
- package/build/types/core/src/store/ConfigurationStore.d.ts.map +1 -1
- package/build/types/core/src/store/index.d.ts +9 -0
- package/build/types/core/src/store/index.d.ts.map +1 -1
- package/build/umd/266.diva-core.umd.min.js +1 -1
- package/build/umd/721.diva-core.umd.min.js +5 -5
- package/build/umd/944.diva-core.umd.min.js +1 -1
- package/build/umd/diva-core.umd.min.js +1 -1
- package/build/umd/report.html +4 -5
- package/package.json +10 -10
|
@@ -43,7 +43,7 @@ import { actions } from '@storybook/addon-actions';
|
|
|
43
43
|
import * as Styles from '@material-ui/styles';
|
|
44
44
|
|
|
45
45
|
(function() {
|
|
46
|
-
const env = {"STAGE":"production","VERSION":"24.13.0-beta.
|
|
46
|
+
const env = {"STAGE":"production","VERSION":"24.13.0-beta.21"};
|
|
47
47
|
try {
|
|
48
48
|
if (process) {
|
|
49
49
|
process.env = Object.assign({}, process.env);
|
|
@@ -120,8 +120,8 @@ function baseUrl() {
|
|
|
120
120
|
return urlParts[urlParts.length - 2] + '.' + urlParts[urlParts.length - 1];
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
function ownKeys$
|
|
124
|
-
function _objectSpread$
|
|
123
|
+
function ownKeys$i(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; }
|
|
124
|
+
function _objectSpread$i(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$i(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$i(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
125
125
|
var _existingLogger = new Map();
|
|
126
126
|
var _apmInitialized = false;
|
|
127
127
|
var _onErrorEvent = function _onErrorEvent() {};
|
|
@@ -202,9 +202,9 @@ var ApplicationLogger = /*#__PURE__*/function () {
|
|
|
202
202
|
this.transactions["delete"](eventId);
|
|
203
203
|
event.end = end;
|
|
204
204
|
var cleanLabels = this.cleanLabels(labels);
|
|
205
|
-
event.event.labels = _objectSpread$
|
|
205
|
+
event.event.labels = _objectSpread$i(_objectSpread$i({}, event.event.labels), cleanLabels);
|
|
206
206
|
if (event.event.span) {
|
|
207
|
-
event.event.span.addLabels(_objectSpread$
|
|
207
|
+
event.event.span.addLabels(_objectSpread$i(_objectSpread$i(_objectSpread$i({}, event.event.labels), cleanLabels), {}, {
|
|
208
208
|
eventId: eventId
|
|
209
209
|
}));
|
|
210
210
|
event.event.span.end();
|
|
@@ -212,7 +212,7 @@ var ApplicationLogger = /*#__PURE__*/function () {
|
|
|
212
212
|
clearTimeout(event.event.warningTimeout);
|
|
213
213
|
clearTimeout(event.event.errorTimeout);
|
|
214
214
|
this.debug("Transaction ".concat(event.event.type, " (").concat(event.event.message, ") took ").concat(Math.floor(end - event.start), "ms"));
|
|
215
|
-
DivaUtils.businessMetrics.logEvent(event.event.type, this.module, event.event.message, _objectSpread$
|
|
215
|
+
DivaUtils.businessMetrics.logEvent(event.event.type, this.module, event.event.message, _objectSpread$i(_objectSpread$i(_objectSpread$i({}, event.event.labels), cleanLabels), {}, {
|
|
216
216
|
eventId: eventId,
|
|
217
217
|
status: event.event.timeout ? 'TIMEOUT' : 'SUCCESS',
|
|
218
218
|
eventDuration: Math.floor(end - event.start),
|
|
@@ -247,9 +247,9 @@ var ApplicationLogger = /*#__PURE__*/function () {
|
|
|
247
247
|
}
|
|
248
248
|
event.end = end;
|
|
249
249
|
var cleanLabels = this.cleanLabels(labels);
|
|
250
|
-
event.event.labels = _objectSpread$
|
|
250
|
+
event.event.labels = _objectSpread$i(_objectSpread$i({}, event.event.labels), cleanLabels);
|
|
251
251
|
if (event.event.span) {
|
|
252
|
-
event.event.span.addLabels(_objectSpread$
|
|
252
|
+
event.event.span.addLabels(_objectSpread$i(_objectSpread$i(_objectSpread$i({}, event.event.labels), cleanLabels), {}, {
|
|
253
253
|
eventId: eventId
|
|
254
254
|
}));
|
|
255
255
|
event.event.span.end();
|
|
@@ -257,7 +257,7 @@ var ApplicationLogger = /*#__PURE__*/function () {
|
|
|
257
257
|
clearTimeout(event.event.warningTimeout);
|
|
258
258
|
clearTimeout(event.event.errorTimeout);
|
|
259
259
|
this.debug("Transaction ".concat(event.event.type, " (").concat(event.event.message, ") failed after ").concat(Math.floor(end - event.start), "ms"));
|
|
260
|
-
DivaUtils.businessMetrics.logEvent(event.event.type, this.module, event.event.message, _objectSpread$
|
|
260
|
+
DivaUtils.businessMetrics.logEvent(event.event.type, this.module, event.event.message, _objectSpread$i(_objectSpread$i(_objectSpread$i({}, event.event.labels), cleanLabels), {}, {
|
|
261
261
|
error: code,
|
|
262
262
|
errorMessage: message,
|
|
263
263
|
eventId: eventId,
|
|
@@ -356,7 +356,7 @@ var ApplicationLogger = /*#__PURE__*/function () {
|
|
|
356
356
|
_onErrorEvent(_error.message, _error.name);
|
|
357
357
|
|
|
358
358
|
//for apm we spread the custom object directly on the error object, so that the are added to APM as custom attributes
|
|
359
|
-
var forApm = _objectSpread$
|
|
359
|
+
var forApm = _objectSpread$i(_objectSpread$i({}, _error), _error.custom);
|
|
360
360
|
(_getApmInstance = getApmInstance()) === null || _getApmInstance === void 0 || _getApmInstance.captureError(forApm);
|
|
361
361
|
}
|
|
362
362
|
}, {
|
|
@@ -430,8 +430,8 @@ if (typeof __webpack_public_path__ !== 'undefined') {
|
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
432
|
|
|
433
|
-
function ownKeys$
|
|
434
|
-
function _objectSpread$
|
|
433
|
+
function ownKeys$h(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; }
|
|
434
|
+
function _objectSpread$h(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$h(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$h(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
435
435
|
function _callSuper$2(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$2() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
436
436
|
function _isNativeReflectConstruct$2() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$2 = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
437
437
|
var LOG$e = getLogger('Framework', 'webcomponent');
|
|
@@ -655,14 +655,14 @@ var CoreWrapper = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
655
655
|
if (!components) {
|
|
656
656
|
return /*#__PURE__*/jsx(Fragment, {});
|
|
657
657
|
}
|
|
658
|
-
return /*#__PURE__*/jsx(DivaCore, _objectSpread$
|
|
658
|
+
return /*#__PURE__*/jsx(DivaCore, _objectSpread$h(_objectSpread$h({}, props), {}, {
|
|
659
659
|
components: components,
|
|
660
660
|
ref: ref
|
|
661
661
|
}));
|
|
662
662
|
});
|
|
663
663
|
|
|
664
664
|
//we have to externalize the materialUI styling here, so that also in UMD the same instance is used
|
|
665
|
-
window.MaterialUIStyles = _objectSpread$
|
|
665
|
+
window.MaterialUIStyles = _objectSpread$h(_objectSpread$h({}, Styles), CoreStyles);
|
|
666
666
|
if (!window.customElements.get('diva-framework')) {
|
|
667
667
|
window.customElements.define('diva-framework', DivaFramework);
|
|
668
668
|
}
|
|
@@ -753,8 +753,8 @@ var defaultTheme = {
|
|
|
753
753
|
}
|
|
754
754
|
};
|
|
755
755
|
|
|
756
|
-
function ownKeys$
|
|
757
|
-
function _objectSpread$
|
|
756
|
+
function ownKeys$g(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; }
|
|
757
|
+
function _objectSpread$g(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$g(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$g(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
758
758
|
var LOG$d = getLogger('Framework', 'ConfigurationStore');
|
|
759
759
|
var ConfigurationStore = /*#__PURE__*/function () {
|
|
760
760
|
function ConfigurationStore(root, identifier, defaultApiConfig, domain) {
|
|
@@ -912,7 +912,7 @@ var ConfigurationStore = /*#__PURE__*/function () {
|
|
|
912
912
|
key: "authentication",
|
|
913
913
|
get: function get() {
|
|
914
914
|
var _this$_configuration$, _this$_configuration32, _this$_configuration33, _this$_configuration34, _this$_configuration35, _this$_configuration36, _this$_configuration37, _this$_configuration38, _this$_configuration39, _this$_configuration40, _this$_configuration$2, _this$_configuration41;
|
|
915
|
-
return _objectSpread$
|
|
915
|
+
return _objectSpread$g(_objectSpread$g({}, (_this$_configuration$ = (_this$_configuration32 = this._configuration) === null || _this$_configuration32 === void 0 ? void 0 : _this$_configuration32.authentication) !== null && _this$_configuration$ !== void 0 ? _this$_configuration$ : {}), {}, {
|
|
916
916
|
loginMethods: {
|
|
917
917
|
google: (_this$_configuration33 = this._configuration) !== null && _this$_configuration33 !== void 0 && (_this$_configuration33 = _this$_configuration33.authentication) !== null && _this$_configuration33 !== void 0 && _this$_configuration33.loginMethods ? (_this$_configuration34 = this._configuration) === null || _this$_configuration34 === void 0 || (_this$_configuration34 = _this$_configuration34.authentication) === null || _this$_configuration34 === void 0 ? void 0 : _this$_configuration34.loginMethods.google : true,
|
|
918
918
|
microsoft: (_this$_configuration35 = this._configuration) !== null && _this$_configuration35 !== void 0 && (_this$_configuration35 = _this$_configuration35.authentication) !== null && _this$_configuration35 !== void 0 && _this$_configuration35.loginMethods ? (_this$_configuration36 = this._configuration) === null || _this$_configuration36 === void 0 || (_this$_configuration36 = _this$_configuration36.authentication) === null || _this$_configuration36 === void 0 ? void 0 : _this$_configuration36.loginMethods.microsoft : true,
|
|
@@ -982,12 +982,12 @@ var ConfigurationStore = /*#__PURE__*/function () {
|
|
|
982
982
|
var _this$_configuration50;
|
|
983
983
|
if ((_this$_configuration50 = this._configuration) !== null && _this$_configuration50 !== void 0 && _this$_configuration50.priceFormat) {
|
|
984
984
|
var _this$_configuration51, _this$root$dataStore$, _this$root$dataStore$2, _this$_configuration52;
|
|
985
|
-
return _objectSpread$
|
|
985
|
+
return _objectSpread$g(_objectSpread$g({}, (_this$_configuration51 = this._configuration) === null || _this$_configuration51 === void 0 ? void 0 : _this$_configuration51.priceFormat), {}, {
|
|
986
986
|
currency: (_this$root$dataStore$ = (_this$root$dataStore$2 = this.root.dataStore.organization) === null || _this$root$dataStore$2 === void 0 ? void 0 : _this$root$dataStore$2.settings.defaultCurrency) !== null && _this$root$dataStore$ !== void 0 ? _this$root$dataStore$ : (_this$_configuration52 = this._configuration) === null || _this$_configuration52 === void 0 ? void 0 : _this$_configuration52.priceFormat.currency
|
|
987
987
|
});
|
|
988
988
|
} else {
|
|
989
989
|
var _this$root$dataStore$3, _this$root$dataStore$4;
|
|
990
|
-
return _objectSpread$
|
|
990
|
+
return _objectSpread$g(_objectSpread$g({}, DivaUtils.defaultPriceFormat), {}, {
|
|
991
991
|
currency: (_this$root$dataStore$3 = (_this$root$dataStore$4 = this.root.dataStore.organization) === null || _this$root$dataStore$4 === void 0 ? void 0 : _this$root$dataStore$4.settings.defaultCurrency) !== null && _this$root$dataStore$3 !== void 0 ? _this$root$dataStore$3 : DivaUtils.defaultPriceFormat.currency
|
|
992
992
|
});
|
|
993
993
|
}
|
|
@@ -1215,8 +1215,8 @@ function userAgentIsMobile() {
|
|
|
1215
1215
|
return !!md.mobile();
|
|
1216
1216
|
}
|
|
1217
1217
|
|
|
1218
|
-
function ownKeys$
|
|
1219
|
-
function _objectSpread$
|
|
1218
|
+
function ownKeys$f(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; }
|
|
1219
|
+
function _objectSpread$f(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$f(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$f(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1220
1220
|
var LOG$c = getLogger('Framework', 'DataStore');
|
|
1221
1221
|
var DataStore = /*#__PURE__*/function () {
|
|
1222
1222
|
function DataStore(root) {
|
|
@@ -1254,8 +1254,8 @@ var DataStore = /*#__PURE__*/function () {
|
|
|
1254
1254
|
key: "organization",
|
|
1255
1255
|
get: function get() {
|
|
1256
1256
|
var _settings$defaultCurr, _settings;
|
|
1257
|
-
return this._organization ? _objectSpread$
|
|
1258
|
-
settings: _objectSpread$
|
|
1257
|
+
return this._organization ? _objectSpread$f(_objectSpread$f({}, this._organization), {}, {
|
|
1258
|
+
settings: _objectSpread$f(_objectSpread$f({}, this._organization.settings), {}, {
|
|
1259
1259
|
defaultCurrency: (_settings$defaultCurr = (_settings = this._organization.settings) === null || _settings === void 0 ? void 0 : _settings.defaultCurrency) !== null && _settings$defaultCurr !== void 0 ? _settings$defaultCurr : '€'
|
|
1260
1260
|
})
|
|
1261
1261
|
}) : this._organization;
|
|
@@ -1296,7 +1296,7 @@ var DataStore = /*#__PURE__*/function () {
|
|
|
1296
1296
|
return [].concat(_toConsumableArray(((_this$_organization$p = (_this$_organization$p2 = this._organization.parentOrganizations) === null || _this$_organization$p2 === void 0 ? void 0 : _this$_organization$p2.filter(function (org) {
|
|
1297
1297
|
return _this._parentOrganizations.includes(org._id);
|
|
1298
1298
|
})) !== null && _this$_organization$p !== void 0 ? _this$_organization$p : []).map(function (org) {
|
|
1299
|
-
return _objectSpread$
|
|
1299
|
+
return _objectSpread$f(_objectSpread$f({}, org), {}, {
|
|
1300
1300
|
type: org.type != 'SUPPLIER' ? org.parentType : undefined //supplier should not be accessed directly, only its children, so the simpliest solution is to remove here the type
|
|
1301
1301
|
});
|
|
1302
1302
|
}).reverse()), [{
|
|
@@ -1737,29 +1737,29 @@ var link = "link-s-Rcm";
|
|
|
1737
1737
|
var css_248z$6 = ".auth-y9j9- {\n height: 100%;\n width: 100%;\n display: flex;\n background-color: rgba(255, 255, 255);\n z-index: 3;\n justify-content: center;\n align-items: center;\n position: absolute;\n}\n\n.login-box-Zu-QM {\n padding: 20px;\n width: 400px;\n margin: 50px auto auto auto;\n letter-spacing: 1px;\n position: relative;\n font-family: Arial, Helvetica, sans-serif;\n}\n\n.logo-container-Gujpy {\n background-repeat: no-repeat;\n background-position: center;\n background-size: contain;\n margin-bottom: 50px;\n}\n\n.success-7n9-D {\n width: 100%;\n padding: 12px;\n border-radius: 4px;\n margin: 15px 0;\n box-sizing: border-box;\n background-color: rgb(228, 244, 228);\n color: rgb(17, 97, 73);\n border: rgb(195, 231, 202) solid 1px;\n border-left: solid 4px;\n line-height: 20px;\n font-size: 16px;\n position: relative;\n}\n\n.success-7n9-D span {\n width: 30px;\n height: 100%;\n float: left;\n background-repeat: no-repeat;\n background-image: url(\"data:image/svg+xml,%3Csvg fill%3D%22rgb(19%2C 170%2C 82)%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 height%3D%2230px%22 width%3D%2230px%22 viewBox%3D%220 0 24 24%22 %3E%3Cpath fill-rule%3D%22evenodd%22 clip-rule%3D%22evenodd%22 d%3D%22M8 15A7 7 0 108 1a7 7 0 000 14zm2.448-10.104a.997.997 0 111.508 1.306l-4.572 5.28a1 1 0 01-1.64-.07l-1.82-2.868a1 1 0 111.69-1.07l1.1 1.734 3.734-4.312z%22 fill%3D%22currentColor%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E\");\n position: absolute;\n}\n\n.success-7n9-D div {\n text-align: justify;\n margin-left: 30px;\n}\n\n.error-gJyOw {\n width: 100%;\n padding: 12px;\n border-radius: 4px;\n margin: 15px 0;\n box-sizing: border-box;\n background-color: rgb(252, 235, 226);\n color: rgb(207, 74, 34);\n border: rgb(249, 211, 197) solid 1px;\n border-left: solid 4px;\n line-height: 20px;\n font-size: 16px;\n position: relative;\n}\n\n.error-gJyOw span {\n width: 30px;\n height: 100%;\n float: left;\n background-repeat: no-repeat;\n background-image: url(\"data:image/svg+xml,%3Csvg fill%3D%22rgb(207%2C 74%2C 34)%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 height%3D%2230px%22 width%3D%2230px%22 viewBox%3D%220 0 24 24%22 %3E%3Cpath d%3D%22M8.8639 2.51357C8.49039 1.82881 7.50961 1.82881 7.1361 2.51357L1.12218 13.5388C0.763263 14.1968 1.23814 15 1.98608 15H14.0139C14.7619 15 15.2367 14.1968 14.8778 13.5388L8.8639 2.51357ZM7 6C7 5.44772 7.44772 5 8 5C8.55228 5 9 5.44772 9 6V10C9 10.5523 8.55228 11 8 11C7.44772 11 7 10.5523 7 10V6ZM9 13C9 13.5523 8.55228 14 8 14C7.44772 14 7 13.5523 7 13C7 12.4477 7.44772 12 8 12C8.55228 12 9 12.4477 9 13Z%22 %3E%3C%2Fpath%3E%3C%2Fsvg%3E\");\n position: absolute;\n}\n\n.error-gJyOw div {\n text-align: justify;\n margin-left: 30px;\n}\n.auth-button-nvUhU {\n width: 100%;\n padding: 12px;\n border-radius: 4px;\n margin: 15px 0;\n opacity: 0.85;\n font-size: 17px;\n line-height: 22px;\n cursor: pointer;\n box-sizing: border-box;\n background-color: var(--diva-theme-palette-primary-main);\n text-align: center;\n color: var(--diva-theme-palette-primary-contrast-text);\n}\n\n.auth-button-nvUhU:hover {\n opacity: 1;\n}\n\n.button-disabled-GS-ox {\n opacity: 0.3;\n cursor: auto;\n cursor: initial;\n}\n.button-disabled-GS-ox:hover {\n opacity: 0.3;\n}\n\n.social-button-p5pUa div {\n width: 30px;\n height: 22px;\n float: left;\n background-repeat: no-repeat;\n background-size: contain;\n background-position: center;\n filter: brightness(0) invert(1);\n}\n\n.google-WhFJU {\n background-color: #dd4b39;\n color: white;\n}\n\n.google-WhFJU div {\n background-image: url(\"data:image/svg+xml,%3C%3Fxml version%3D%221.0%22%3F%3E%3Csvg fill%3D%22%23000000%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 viewBox%3D%220 0 24 24%22 %3E %3Cpath d%3D%22M12.545%2C10.239v3.821h5.445c-0.712%2C2.315-2.647%2C3.972-5.445%2C3.972c-3.332%2C0-6.033-2.701-6.033-6.032 s2.701-6.032%2C6.033-6.032c1.498%2C0%2C2.866%2C0.549%2C3.921%2C1.453l2.814-2.814C17.503%2C2.988%2C15.139%2C2%2C12.545%2C2 C7.021%2C2%2C2.543%2C6.477%2C2.543%2C12s4.478%2C10%2C10.002%2C10c8.396%2C0%2C10.249-7.85%2C9.426-11.748L12.545%2C10.239z%22%2F%3E%3C%2Fsvg%3E\");\n}\n\n.microsoft-e3GYR {\n background-color: #00a4ef;\n color: white;\n}\n\n.microsoft-e3GYR div {\n background-image: url(\"data:image/svg+xml,%3Csvg fill%3D%22%23000000%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 viewBox%3D%220 0 50 50%22%3E%3Cpath d%3D%22M19.852 7.761l-15 2.25C4.362 10.085 4 10.505 4 11v12c0 .553.448 1 1 1h15c.552 0 1-.447 1-1V8.75c0-.291-.127-.567-.348-.758C20.432 7.803 20.139 7.721 19.852 7.761zM45.652 4.242c-.22-.189-.512-.271-.801-.231l-21 3.15C23.362 7.235 23 7.655 23 8.15V23c0 .553.448 1 1 1h21c.552 0 1-.447 1-1V5C46 4.709 45.873 4.433 45.652 4.242zM20 26H5c-.552 0-1 .447-1 1v12c0 .495.362.915.852.989l15 2.25c.05.007.099.011.148.011.238 0 .47-.085.652-.242C20.873 41.817 21 41.541 21 41.25V27C21 26.447 20.552 26 20 26zM45 26H24c-.552 0-1 .447-1 1v14.85c0 .495.362.915.852.989l21 3.15C44.901 45.996 44.951 46 45 46c.238 0 .47-.085.652-.242C45.873 45.567 46 45.291 46 45V27C46 26.447 45.552 26 45 26z%22%2F%3E%3C%2Fsvg%3E\");\n}\n\n.separator-Hg6fH {\n display: flex;\n align-items: center;\n text-align: center;\n color: rgb(184, 196, 194);\n}\n\n.separator-Hg6fH::before,\n.separator-Hg6fH::after {\n content: '';\n flex: 1;\n border-bottom: 1px solid rgb(184, 196, 194);\n}\n\n.separator-Hg6fH:not(:empty)::before {\n margin-right: 0.25em;\n}\n\n.separator-Hg6fH:not(:empty)::after {\n margin-left: 0.25em;\n}\n\n.input--Dl8e {\n width: 100%;\n padding: 1em;\n border: solid 1px rgba(0, 0, 0, 0.1);\n border-radius: 0.3em;\n outline: none;\n margin: 15px 0;\n box-sizing: border-box;\n}\n\n.input--Dl8e:hover,\n.input--Dl8e:focus,\n.input--Dl8e:active {\n border: solid 1px var(--diva-theme-palette-primary-main);\n}\n\n.input--Dl8e::-moz-placeholder {\n color: rgba(0, 0, 0, 0.25);\n}\n\n.input--Dl8e::placeholder {\n color: rgba(0, 0, 0, 0.25);\n}\n\n.input--Dl8e.readonly-uw66l {\n border: solid 1px rgba(0, 0, 0, 0.1);\n color: rgba(0, 0, 0, 0.25);\n}\n\n.reset-input-ERpB4 {\n position: relative;\n}\n\n.reset-input-ERpB4:after {\n content: '';\n position: absolute;\n right: 10px;\n top: 0;\n bottom: 0;\n width: 20px;\n background: url(\"data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 %3F%3E%3C!DOCTYPE svg PUBLIC '-%2F%2FW3C%2F%2FDTD SVG 1.1%2F%2FEN' 'http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd'%3E%3Csvg id%3D%22Layer_1%22 style%3D%22enable-background%3Anew 0 0 512 512%3B%22 version%3D%221.1%22 viewBox%3D%220 0 512 512%22 width%3D%22512px%22 xml%3Aspace%3D%22preserve%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%3Cg%3E%3Cpath d%3D%22M256%2C33C132.3%2C33%2C32%2C133.3%2C32%2C257c0%2C123.7%2C100.3%2C224%2C224%2C224c123.7%2C0%2C224-100.3%2C224-224C480%2C133.3%2C379.7%2C33%2C256%2C33z M364.3%2C332.5c1.5%2C1.5%2C2.3%2C3.5%2C2.3%2C5.6c0%2C2.1-0.8%2C4.2-2.3%2C5.6l-21.6%2C21.7c-1.6%2C1.6-3.6%2C2.3-5.6%2C2.3c-2%2C0-4.1-0.8-5.6-2.3L256%2C289.8 l-75.4%2C75.7c-1.5%2C1.6-3.6%2C2.3-5.6%2C2.3c-2%2C0-4.1-0.8-5.6-2.3l-21.6-21.7c-1.5-1.5-2.3-3.5-2.3-5.6c0-2.1%2C0.8-4.2%2C2.3-5.6l75.7-76 l-75.9-75c-3.1-3.1-3.1-8.2%2C0-11.3l21.6-21.7c1.5-1.5%2C3.5-2.3%2C5.6-2.3c2.1%2C0%2C4.1%2C0.8%2C5.6%2C2.3l75.7%2C74.7l75.7-74.7 c1.5-1.5%2C3.5-2.3%2C5.6-2.3c2.1%2C0%2C4.1%2C0.8%2C5.6%2C2.3l21.6%2C21.7c3.1%2C3.1%2C3.1%2C8.2%2C0%2C11.3l-75.9%2C75L364.3%2C332.5z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E\") center / contain no-repeat;\n cursor: pointer;\n opacity: 0.7;\n}\n\n.link-s-Rcm {\n color: var(--diva-theme-palette-primary-main);\n cursor: pointer;\n display: inline-block;\n}\n";
|
|
1738
1738
|
styleInject(css_248z$6);
|
|
1739
1739
|
|
|
1740
|
-
var _excluded$
|
|
1741
|
-
function ownKeys$
|
|
1742
|
-
function _objectSpread$
|
|
1740
|
+
var _excluded$7 = ["className", "disabled", "children"];
|
|
1741
|
+
function ownKeys$e(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; }
|
|
1742
|
+
function _objectSpread$e(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$e(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$e(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1743
1743
|
function Button (_ref) {
|
|
1744
1744
|
var className = _ref.className,
|
|
1745
1745
|
disabled = _ref.disabled,
|
|
1746
1746
|
children = _ref.children,
|
|
1747
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1748
|
-
return /*#__PURE__*/jsx("div", _objectSpread$
|
|
1747
|
+
props = _objectWithoutProperties(_ref, _excluded$7);
|
|
1748
|
+
return /*#__PURE__*/jsx("div", _objectSpread$e(_objectSpread$e({
|
|
1749
1749
|
className: classnames(authButton, className, disabled ? buttonDisabled : undefined)
|
|
1750
1750
|
}, props), {}, {
|
|
1751
1751
|
children: children
|
|
1752
1752
|
}));
|
|
1753
1753
|
}
|
|
1754
1754
|
|
|
1755
|
-
var _excluded$
|
|
1756
|
-
function ownKeys$
|
|
1757
|
-
function _objectSpread$
|
|
1755
|
+
var _excluded$6 = ["className", "readOnly"];
|
|
1756
|
+
function ownKeys$d(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; }
|
|
1757
|
+
function _objectSpread$d(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$d(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$d(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1758
1758
|
var Input = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
1759
1759
|
var className = _ref.className,
|
|
1760
1760
|
readOnly = _ref.readOnly,
|
|
1761
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1762
|
-
return /*#__PURE__*/jsx("input", _objectSpread$
|
|
1761
|
+
props = _objectWithoutProperties(_ref, _excluded$6);
|
|
1762
|
+
return /*#__PURE__*/jsx("input", _objectSpread$d({
|
|
1763
1763
|
ref: ref,
|
|
1764
1764
|
className: classnames(input, readOnly ? readonly : undefined, className),
|
|
1765
1765
|
readOnly: readOnly,
|
|
@@ -1929,17 +1929,17 @@ function Fallback () {
|
|
|
1929
1929
|
return /*#__PURE__*/jsx(Fragment, {});
|
|
1930
1930
|
}
|
|
1931
1931
|
|
|
1932
|
-
var _excluded$
|
|
1933
|
-
function ownKeys$
|
|
1934
|
-
function _objectSpread$
|
|
1932
|
+
var _excluded$5 = ["children"];
|
|
1933
|
+
function ownKeys$c(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; }
|
|
1934
|
+
function _objectSpread$c(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$c(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$c(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1935
1935
|
var LOG$a = getLogger('Framework', 'root');
|
|
1936
1936
|
var DivaCore = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
1937
1937
|
var children = _ref.children,
|
|
1938
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1938
|
+
props = _objectWithoutProperties(_ref, _excluded$5);
|
|
1939
1939
|
useEffect(function () {
|
|
1940
1940
|
LOG$a.successTransaction('UNTIL_RENDER');
|
|
1941
1941
|
}, []);
|
|
1942
|
-
return /*#__PURE__*/jsx(DivaCoreProvider, _objectSpread$
|
|
1942
|
+
return /*#__PURE__*/jsx(DivaCoreProvider, _objectSpread$c(_objectSpread$c({}, props), {}, {
|
|
1943
1943
|
ref: ref,
|
|
1944
1944
|
children: /*#__PURE__*/jsx(ContentWrapper, {
|
|
1945
1945
|
children: /*#__PURE__*/jsx(Fragment, {
|
|
@@ -2063,13 +2063,13 @@ function updateCssThemeVariables (ref, theme) {
|
|
|
2063
2063
|
ref.style.setProperty('font-family', theme.typography.fontFamily);
|
|
2064
2064
|
}
|
|
2065
2065
|
|
|
2066
|
-
var _excluded$
|
|
2066
|
+
var _excluded$4 = ["openFrom"],
|
|
2067
2067
|
_excluded2$1 = ["onClose"];
|
|
2068
2068
|
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; } } }; }
|
|
2069
2069
|
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; } }
|
|
2070
2070
|
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; }
|
|
2071
|
-
function ownKeys$
|
|
2072
|
-
function _objectSpread$
|
|
2071
|
+
function ownKeys$b(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; }
|
|
2072
|
+
function _objectSpread$b(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$b(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$b(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2073
2073
|
var LOG$9 = getLogger('Framework', 'ContentStore');
|
|
2074
2074
|
var ContentStore = /*#__PURE__*/function () {
|
|
2075
2075
|
function ContentStore(components, root) {
|
|
@@ -2330,7 +2330,7 @@ var ContentStore = /*#__PURE__*/function () {
|
|
|
2330
2330
|
case 41:
|
|
2331
2331
|
openModuleLables = undefined;
|
|
2332
2332
|
if (parameters) {
|
|
2333
|
-
_parameters = parameters, _parameters.openFrom, otherPrams = _objectWithoutProperties(_parameters, _excluded$
|
|
2333
|
+
_parameters = parameters, _parameters.openFrom, otherPrams = _objectWithoutProperties(_parameters, _excluded$4);
|
|
2334
2334
|
openModuleLables = parameters;
|
|
2335
2335
|
parameters = otherPrams;
|
|
2336
2336
|
}
|
|
@@ -2341,8 +2341,8 @@ var ContentStore = /*#__PURE__*/function () {
|
|
|
2341
2341
|
currentState = this.state.get(config.type);
|
|
2342
2342
|
componentState = {};
|
|
2343
2343
|
componentState.settings = toJS(settings);
|
|
2344
|
-
componentState.parameters = _objectSpread$
|
|
2345
|
-
componentState.internal = _objectSpread$
|
|
2344
|
+
componentState.parameters = _objectSpread$b(_objectSpread$b({}, keepOldState && currentState ? currentState.parameters : {}), parameters);
|
|
2345
|
+
componentState.internal = _objectSpread$b(_objectSpread$b({}, keepOldState && currentState ? currentState.internal : {}), internal);
|
|
2346
2346
|
componentState.path = route;
|
|
2347
2347
|
this.state.set(config.type, componentState);
|
|
2348
2348
|
this.visible = config.type;
|
|
@@ -2894,7 +2894,7 @@ var ContentStore = /*#__PURE__*/function () {
|
|
|
2894
2894
|
onClose = _ref3$onClose === void 0 ? this.closeSideMenu.bind(this) : _ref3$onClose,
|
|
2895
2895
|
sideMenu = _objectWithoutProperties(_ref3, _excluded2$1);
|
|
2896
2896
|
if (sideMenu.open === undefined) sideMenu.open = (_this$_sideMenu$open = (_this$_sideMenu = this._sideMenu) === null || _this$_sideMenu === void 0 ? void 0 : _this$_sideMenu.open) !== null && _this$_sideMenu$open !== void 0 ? _this$_sideMenu$open : false;
|
|
2897
|
-
this._sideMenu = _objectSpread$
|
|
2897
|
+
this._sideMenu = _objectSpread$b(_objectSpread$b({}, sideMenu), {}, {
|
|
2898
2898
|
onClose: onClose
|
|
2899
2899
|
});
|
|
2900
2900
|
}
|
|
@@ -2905,7 +2905,7 @@ var ContentStore = /*#__PURE__*/function () {
|
|
|
2905
2905
|
}, {
|
|
2906
2906
|
key: "closeSideMenu",
|
|
2907
2907
|
value: function closeSideMenu() {
|
|
2908
|
-
if (this._sideMenu) this._sideMenu = _objectSpread$
|
|
2908
|
+
if (this._sideMenu) this._sideMenu = _objectSpread$b(_objectSpread$b({}, this._sideMenu), {}, {
|
|
2909
2909
|
open: false
|
|
2910
2910
|
});
|
|
2911
2911
|
}
|
|
@@ -2962,7 +2962,7 @@ var ContentStore = /*#__PURE__*/function () {
|
|
|
2962
2962
|
type: barrier.type,
|
|
2963
2963
|
currentEmail: (_this$root$dataStore$5 = this.root.dataStore.user) === null || _this$root$dataStore$5 === void 0 ? void 0 : _this$root$dataStore$5.mainEmail,
|
|
2964
2964
|
actions: (_barrier$actions = barrier.actions) === null || _barrier$actions === void 0 ? void 0 : _barrier$actions.map(function (a) {
|
|
2965
|
-
return _objectSpread$
|
|
2965
|
+
return _objectSpread$b(_objectSpread$b({}, a), {}, {
|
|
2966
2966
|
onClick: function () {
|
|
2967
2967
|
var _onClick = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(email) {
|
|
2968
2968
|
var _this7$root$dataStore;
|
|
@@ -3112,7 +3112,7 @@ var ContentStore = /*#__PURE__*/function () {
|
|
|
3112
3112
|
key: "getState",
|
|
3113
3113
|
value: function getState(type) {
|
|
3114
3114
|
var state = this.state.get(type);
|
|
3115
|
-
return state ? _objectSpread$
|
|
3115
|
+
return state ? _objectSpread$b(_objectSpread$b({}, state), {}, {
|
|
3116
3116
|
isVisible: this.isVisible(type)
|
|
3117
3117
|
}) : {
|
|
3118
3118
|
settings: {}
|
|
@@ -4142,8 +4142,8 @@ var BrowserStateStore = /*#__PURE__*/function () {
|
|
|
4142
4142
|
}]);
|
|
4143
4143
|
}();
|
|
4144
4144
|
|
|
4145
|
-
function ownKeys$
|
|
4146
|
-
function _objectSpread$
|
|
4145
|
+
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; }
|
|
4146
|
+
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; }
|
|
4147
4147
|
var LOG$6 = getLogger('Framework', 'AuthorizationStore');
|
|
4148
4148
|
var AuthorizationStore = /*#__PURE__*/function () {
|
|
4149
4149
|
function AuthorizationStore(root) {
|
|
@@ -4201,7 +4201,7 @@ var AuthorizationStore = /*#__PURE__*/function () {
|
|
|
4201
4201
|
if (debug) {
|
|
4202
4202
|
this._state = {
|
|
4203
4203
|
type: 'LOGIN',
|
|
4204
|
-
loginMethods: _objectSpread$
|
|
4204
|
+
loginMethods: _objectSpread$a(_objectSpread$a({}, loginMethods), {}, {
|
|
4205
4205
|
standard: true
|
|
4206
4206
|
}),
|
|
4207
4207
|
organizationId: organizationId
|
|
@@ -4633,7 +4633,7 @@ var AuthorizationStore = /*#__PURE__*/function () {
|
|
|
4633
4633
|
}]);
|
|
4634
4634
|
}();
|
|
4635
4635
|
|
|
4636
|
-
var _excluded$
|
|
4636
|
+
var _excluded$3 = ["kind", "type"],
|
|
4637
4637
|
_excluded2 = ["type"];
|
|
4638
4638
|
var ApiHandler = /*#__PURE__*/function () {
|
|
4639
4639
|
function ApiHandler(root) {
|
|
@@ -4766,7 +4766,7 @@ var ApiHandler = /*#__PURE__*/function () {
|
|
|
4766
4766
|
content = _ref2.content, organizationIds = _ref2.organizationIds;
|
|
4767
4767
|
url = "".concat(this.messageService, "/mail/");
|
|
4768
4768
|
if (content.type == 'other') {
|
|
4769
|
-
kind = content.kind, content.type, rest = _objectWithoutProperties(content, _excluded$
|
|
4769
|
+
kind = content.kind, content.type, rest = _objectWithoutProperties(content, _excluded$3);
|
|
4770
4770
|
url += kind;
|
|
4771
4771
|
body = rest;
|
|
4772
4772
|
} else {
|
|
@@ -6550,7 +6550,7 @@ var AdminHandler = /*#__PURE__*/function () {
|
|
|
6550
6550
|
}]);
|
|
6551
6551
|
}();
|
|
6552
6552
|
|
|
6553
|
-
var _excluded$
|
|
6553
|
+
var _excluded$2 = ["path"];
|
|
6554
6554
|
var ONE_DAY_UNIX = 86400000;
|
|
6555
6555
|
var AnalyticsHandler = /*#__PURE__*/function () {
|
|
6556
6556
|
function AnalyticsHandler(root) {
|
|
@@ -6575,7 +6575,7 @@ var AnalyticsHandler = /*#__PURE__*/function () {
|
|
|
6575
6575
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
6576
6576
|
while (1) switch (_context.prev = _context.next) {
|
|
6577
6577
|
case 0:
|
|
6578
|
-
path = _ref.path, props = _objectWithoutProperties(_ref, _excluded$
|
|
6578
|
+
path = _ref.path, props = _objectWithoutProperties(_ref, _excluded$2);
|
|
6579
6579
|
url = new URL(this.analyticsService + path);
|
|
6580
6580
|
this.addBaseParamsToUrl(url, props);
|
|
6581
6581
|
_context.prev = 3;
|
|
@@ -6903,8 +6903,8 @@ var RequestStatus = /*#__PURE__*/function (RequestStatus) {
|
|
|
6903
6903
|
return RequestStatus;
|
|
6904
6904
|
}({});
|
|
6905
6905
|
|
|
6906
|
-
function ownKeys$
|
|
6907
|
-
function _objectSpread$
|
|
6906
|
+
function ownKeys$9(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; }
|
|
6907
|
+
function _objectSpread$9(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$9(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$9(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6908
6908
|
var SupportHandler = /*#__PURE__*/function () {
|
|
6909
6909
|
function SupportHandler(root) {
|
|
6910
6910
|
_classCallCheck(this, SupportHandler);
|
|
@@ -6987,7 +6987,7 @@ var SupportHandler = /*#__PURE__*/function () {
|
|
|
6987
6987
|
Authorization: 'Bearer ' + this.jwt,
|
|
6988
6988
|
'Content-Type': 'application/json'
|
|
6989
6989
|
},
|
|
6990
|
-
body: JSON.stringify(_objectSpread$
|
|
6990
|
+
body: JSON.stringify(_objectSpread$9({
|
|
6991
6991
|
divaNr: divaNr
|
|
6992
6992
|
}, participantEmail && {
|
|
6993
6993
|
participantEmail: participantEmail
|
|
@@ -8096,8 +8096,8 @@ var ClientArticleHandler = /*#__PURE__*/function () {
|
|
|
8096
8096
|
}]);
|
|
8097
8097
|
}();
|
|
8098
8098
|
|
|
8099
|
-
function ownKeys$
|
|
8100
|
-
function _objectSpread$
|
|
8099
|
+
function ownKeys$8(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; }
|
|
8100
|
+
function _objectSpread$8(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$8(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$8(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8101
8101
|
getLogger('Framework', 'ConetentItemHandler');
|
|
8102
8102
|
var ContentItemHandler = /*#__PURE__*/function () {
|
|
8103
8103
|
function ContentItemHandler(root) {
|
|
@@ -8147,7 +8147,7 @@ var ContentItemHandler = /*#__PURE__*/function () {
|
|
|
8147
8147
|
_context.prev = 1;
|
|
8148
8148
|
_context.next = 4;
|
|
8149
8149
|
return axios.get(fullUrl, {
|
|
8150
|
-
headers: _objectSpread$
|
|
8150
|
+
headers: _objectSpread$8({}, this.getHeaders())
|
|
8151
8151
|
});
|
|
8152
8152
|
case 4:
|
|
8153
8153
|
res = _context.sent;
|
|
@@ -8196,8 +8196,8 @@ var ContentItemHandler = /*#__PURE__*/function () {
|
|
|
8196
8196
|
}]);
|
|
8197
8197
|
}();
|
|
8198
8198
|
|
|
8199
|
-
function ownKeys$
|
|
8200
|
-
function _objectSpread$
|
|
8199
|
+
function ownKeys$7(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; }
|
|
8200
|
+
function _objectSpread$7(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$7(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$7(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8201
8201
|
var LOGINMODE_LOCALSTORAGE_KEY = 'diva-login-mode';
|
|
8202
8202
|
var LOG$4 = getLogger('Framework', 'root');
|
|
8203
8203
|
var RootStore = /*#__PURE__*/function () {
|
|
@@ -8252,7 +8252,7 @@ var RootStore = /*#__PURE__*/function () {
|
|
|
8252
8252
|
});
|
|
8253
8253
|
this._onEvent = onEvent;
|
|
8254
8254
|
//be compatible with the deprecated configProvider setting
|
|
8255
|
-
var apiConfig = defaultApiConfig ? _objectSpread$
|
|
8255
|
+
var apiConfig = defaultApiConfig ? _objectSpread$7({}, defaultApiConfig) : {};
|
|
8256
8256
|
!apiConfig.adminService && configProvider ? apiConfig.adminService = configProvider : false;
|
|
8257
8257
|
this.dataStore = new DataStore(this);
|
|
8258
8258
|
this.authorizationStore = new AuthorizationStore(this);
|
|
@@ -8627,7 +8627,7 @@ var RootStore = /*#__PURE__*/function () {
|
|
|
8627
8627
|
});
|
|
8628
8628
|
|
|
8629
8629
|
//async load locales data
|
|
8630
|
-
initLocalesResult = init(_objectSpread$
|
|
8630
|
+
initLocalesResult = init(_objectSpread$7(_objectSpread$7({}, this.configurationStore.locales), {}, {
|
|
8631
8631
|
defaultLng: initalLanguage,
|
|
8632
8632
|
apiConfig: this.configurationStore.apiConfig
|
|
8633
8633
|
}));
|
|
@@ -8914,14 +8914,14 @@ var RootStore = /*#__PURE__*/function () {
|
|
|
8914
8914
|
}]);
|
|
8915
8915
|
}();
|
|
8916
8916
|
|
|
8917
|
-
var _excluded = ["children"];
|
|
8918
|
-
function ownKeys$
|
|
8919
|
-
function _objectSpread$
|
|
8917
|
+
var _excluded$1 = ["children"];
|
|
8918
|
+
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; }
|
|
8919
|
+
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; }
|
|
8920
8920
|
var coreContext = /*#__PURE__*/createContext(null);
|
|
8921
8921
|
var DivaCoreProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
8922
8922
|
var _store$configurationS;
|
|
8923
8923
|
var children = _ref.children,
|
|
8924
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
8924
|
+
props = _objectWithoutProperties(_ref, _excluded$1);
|
|
8925
8925
|
var store = useMemo(function () {
|
|
8926
8926
|
return new RootStore(props);
|
|
8927
8927
|
}, []);
|
|
@@ -8968,7 +8968,8 @@ var DivaCoreProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
8968
8968
|
openBanner: store.contentStore.openBanner.bind(store.contentStore),
|
|
8969
8969
|
closeBanner: store.contentStore.closeBanner.bind(store.contentStore),
|
|
8970
8970
|
resolveComponent: store.contentStore.resolveComponent.bind(store.contentStore),
|
|
8971
|
-
openSnackBar: store.contentStore.openSnackBar.bind(store.contentStore)
|
|
8971
|
+
openSnackBar: store.contentStore.openSnackBar.bind(store.contentStore),
|
|
8972
|
+
fetchConfiguration: store.configurationStore.fetchConfiguration.bind(store.configurationStore)
|
|
8972
8973
|
},
|
|
8973
8974
|
state: toJS({
|
|
8974
8975
|
isMobile: store.dataStore.isMobile,
|
|
@@ -8980,7 +8981,7 @@ var DivaCoreProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
8980
8981
|
user: store.dataStore.user,
|
|
8981
8982
|
jwt: store.authorizationStore.zToken,
|
|
8982
8983
|
nToken: store.authorizationStore.nToken,
|
|
8983
|
-
navigationConfiguration: _objectSpread$
|
|
8984
|
+
navigationConfiguration: _objectSpread$6(_objectSpread$6({}, store.configurationStore.navigation), {}, {
|
|
8984
8985
|
buttons: store.contentStore.availableButtons || [],
|
|
8985
8986
|
customHeaderElement: store.contentStore.customHeaderComponent,
|
|
8986
8987
|
customLogo: store.contentStore.customLogo,
|
|
@@ -9061,7 +9062,8 @@ var DivaCoreProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
9061
9062
|
openBanner: store.contentStore.openBanner.bind(store.contentStore),
|
|
9062
9063
|
closeBanner: store.contentStore.closeBanner.bind(store.contentStore),
|
|
9063
9064
|
resolveComponent: store.contentStore.resolveComponent.bind(store.contentStore),
|
|
9064
|
-
openSnackBar: store.contentStore.openSnackBar.bind(store.contentStore)
|
|
9065
|
+
openSnackBar: store.contentStore.openSnackBar.bind(store.contentStore),
|
|
9066
|
+
fetchConfiguration: store.configurationStore.fetchConfiguration.bind(store.configurationStore)
|
|
9065
9067
|
},
|
|
9066
9068
|
state: toJS({
|
|
9067
9069
|
availableComponents: store.contentStore.availableComponentList,
|
|
@@ -9075,7 +9077,7 @@ var DivaCoreProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
9075
9077
|
isFirefox: store.dataStore.isFirefox,
|
|
9076
9078
|
googleMapsConfig: store.configurationStore.googleMapsconfig,
|
|
9077
9079
|
cometChatConfig: store.configurationStore.cometchatConfig,
|
|
9078
|
-
navigationConfiguration: _objectSpread$
|
|
9080
|
+
navigationConfiguration: _objectSpread$6(_objectSpread$6({}, store.configurationStore.navigation), {}, {
|
|
9079
9081
|
buttons: store.contentStore.availableButtons || [],
|
|
9080
9082
|
customLogo: store.contentStore.customLogo,
|
|
9081
9083
|
customHeaderElement: store.contentStore.customHeaderComponent,
|
|
@@ -9370,8 +9372,8 @@ var mobileBcGroup = "mobile-bc-group-6v8wI";
|
|
|
9370
9372
|
var css_248z$3 = ".side-menu-2Fgdm {\n width: 100%;\n max-width: 400px;\n height: 100%;\n background-color: #f2f2f2;\n position: absolute;\n bottom: 0;\n transition: transform 0.3s cubic-bezier(0, 0.52, 0, 1);\n box-sizing: border-box;\n}\n\n.left-side-menu-L42L3 {\n left: 0px;\n}\n\n.right-side-menu-Akk-Y {\n right: 0px;\n}\n\n.wrapper-jJaXo {\n height: 100%;\n display: flex;\n flex-direction: column;\n}\n\n.scroller-ZnoJy {\n height: 100%;\n}\n\n.title-WOjYJ {\n font-size: 22px;\n margin: 20px;\n}\n\n.hide-left-4bzTL {\n transform: translate(-960px, 0);\n}\n.hide-right-IOmlC {\n transform: translate(960px, 0);\n}\n\n.show-Z8M2h {\n transform: translate(0, 0);\n overflow: hidden;\n}\n\n.close-icon-NJkeP {\n position: absolute;\n top: 16px;\n right: 16px;\n opacity: 0.3;\n width: 32px;\n height: 32px;\n z-index: 300;\n width: 50px;\n height: 40px;\n cursor: pointer;\n}\n\n.close-icon-NJkeP:before {\n transform: rotate(45deg);\n}\n\n.close-icon-NJkeP:after {\n transform: rotate(-45deg);\n}\n\n.close-icon-NJkeP:before,\n.close-icon-NJkeP:after {\n position: absolute;\n right: 15px;\n content: ' ';\n height: 33px;\n width: 3px;\n background-color: #4b4b4b;\n}\n\n.close-icon-NJkeP:hover {\n opacity: 0.8;\n transition: opacity 0.2s ease-in-out;\n}\n\n.mobile-bc-group-6v8wI {\n display: flex;\n border-top: 0.8px solid #b6b6b7;\n padding: 12px 16px;\n border-bottom: 0.8px solid #b6b6b7;\n margin-top: 40px;\n overflow: auto;\n -ms-overflow-style: none; /* IE and Edge */\n scrollbar-width: none; /* Firefox */\n}\n\n.mobile-bc-group-6v8wI::-webkit-scrollbar {\n display: none;\n}\n";
|
|
9371
9373
|
styleInject(css_248z$3);
|
|
9372
9374
|
|
|
9373
|
-
function ownKeys$
|
|
9374
|
-
function _objectSpread$
|
|
9375
|
+
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; }
|
|
9376
|
+
function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$5(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$5(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
9375
9377
|
var SideMenu = function SideMenu() {
|
|
9376
9378
|
var _contentStore$sideMen, _contentStore$sideMen5, _contentStore$sideMen6, _contentStore$headerI, _contentStore$headerI2, _contentStore$sideMen7, _contentStore$sideMen8, _contentStore$sideMen9, _contentStore$sideMen10;
|
|
9377
9379
|
var _useDivaCoreContext = useDivaCoreContext(),
|
|
@@ -9405,8 +9407,8 @@ var SideMenu = function SideMenu() {
|
|
|
9405
9407
|
var hide = ((_contentStore$sideMen6 = contentStore.sideMenu) === null || _contentStore$sideMen6 === void 0 ? void 0 : _contentStore$sideMen6.side) == 'right' ? hideRight : hideLeft;
|
|
9406
9408
|
if (!contentStore.sideMenu) return /*#__PURE__*/jsx(Fragment, {});
|
|
9407
9409
|
var height = (_contentStore$headerI = (_contentStore$headerI2 = contentStore.headerInfos.HeaderElement) === null || _contentStore$headerI2 === void 0 ? void 0 : _contentStore$headerI2.getBoundingClientRect().height) !== null && _contentStore$headerI !== void 0 ? _contentStore$headerI : 0;
|
|
9408
|
-
return /*#__PURE__*/jsxs("div", _objectSpread$
|
|
9409
|
-
style: _objectSpread$
|
|
9410
|
+
return /*#__PURE__*/jsxs("div", _objectSpread$5(_objectSpread$5({}, swipeHandler), {}, {
|
|
9411
|
+
style: _objectSpread$5(_objectSpread$5({}, contentStore.sideMenu.style), {}, {
|
|
9410
9412
|
width: hiddenDelayed ? '0px' : undefined,
|
|
9411
9413
|
backgroundColor: contentStore.sideMenu.backgroundColor,
|
|
9412
9414
|
height: (_contentStore$sideMen7 = contentStore.sideMenu) !== null && _contentStore$sideMen7 !== void 0 && _contentStore$sideMen7.showCoreHeader ? 'calc(100% - ' + height + 'px)' : undefined,
|
|
@@ -9431,10 +9433,10 @@ var SideMenu = function SideMenu() {
|
|
|
9431
9433
|
};
|
|
9432
9434
|
var SideMenu$1 = observer(SideMenu);
|
|
9433
9435
|
|
|
9434
|
-
function ownKeys$
|
|
9435
|
-
function _objectSpread$
|
|
9436
|
+
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; }
|
|
9437
|
+
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; }
|
|
9436
9438
|
var LazyModals$1 = /*#__PURE__*/React.lazy(function () {
|
|
9437
|
-
return import('./ModalsWrapper-
|
|
9439
|
+
return import('./ModalsWrapper-4f503fc1.js');
|
|
9438
9440
|
});
|
|
9439
9441
|
function Fullscreen() {
|
|
9440
9442
|
var _useDivaCoreContext = useDivaCoreContext(),
|
|
@@ -9529,7 +9531,7 @@ function Fullscreen() {
|
|
|
9529
9531
|
style: isMobile ? (_c$state$absoluteFull = c.state.absoluteFullscreenStyle) === null || _c$state$absoluteFull === void 0 ? void 0 : _c$state$absoluteFull.mobile : (_c$state$absoluteFull2 = c.state.absoluteFullscreenStyle) === null || _c$state$absoluteFull2 === void 0 ? void 0 : _c$state$absoluteFull2.desktop,
|
|
9530
9532
|
children: [/*#__PURE__*/jsx(Spinner$1, {}), /*#__PURE__*/jsx(SideMenu$1, {}), configurationStore.enableModals && /*#__PURE__*/jsx(LazyModals$1, {}), /*#__PURE__*/jsx(Suspense, {
|
|
9531
9533
|
fallback: /*#__PURE__*/jsx(Fallback, {}),
|
|
9532
|
-
children: /*#__PURE__*/jsx(C, _objectSpread$
|
|
9534
|
+
children: /*#__PURE__*/jsx(C, _objectSpread$4({}, c.state))
|
|
9533
9535
|
})]
|
|
9534
9536
|
});
|
|
9535
9537
|
}
|
|
@@ -9877,14 +9879,14 @@ function BigSnackBarComponent(_ref2) {
|
|
|
9877
9879
|
}
|
|
9878
9880
|
var SnackBar = observer(DivaSnackBar);
|
|
9879
9881
|
|
|
9880
|
-
function ownKeys$
|
|
9881
|
-
function _objectSpread$
|
|
9882
|
+
function ownKeys$3(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; }
|
|
9883
|
+
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; }
|
|
9882
9884
|
var LOG$2 = getLogger('Framework', 'Root');
|
|
9883
9885
|
var LazyAuth = /*#__PURE__*/React.lazy(function () {
|
|
9884
|
-
return import('./index-
|
|
9886
|
+
return import('./index-91182320.js');
|
|
9885
9887
|
});
|
|
9886
9888
|
var LazyModals = /*#__PURE__*/React.lazy(function () {
|
|
9887
|
-
return import('./ModalsWrapper-
|
|
9889
|
+
return import('./ModalsWrapper-4f503fc1.js');
|
|
9888
9890
|
});
|
|
9889
9891
|
function ContentComponent() {
|
|
9890
9892
|
var context = useDivaCoreContext();
|
|
@@ -9918,7 +9920,7 @@ function ContentComponent() {
|
|
|
9918
9920
|
id: "Diva-component-wrapper",
|
|
9919
9921
|
children: /*#__PURE__*/jsx(Suspense, {
|
|
9920
9922
|
fallback: /*#__PURE__*/jsx(Fallback, {}),
|
|
9921
|
-
children: /*#__PURE__*/jsx(C, _objectSpread$
|
|
9923
|
+
children: /*#__PURE__*/jsx(C, _objectSpread$3({}, context.contentStore.getState(c.name)))
|
|
9922
9924
|
})
|
|
9923
9925
|
}, c.name);
|
|
9924
9926
|
})]
|
|
@@ -9927,6 +9929,9 @@ function ContentComponent() {
|
|
|
9927
9929
|
}
|
|
9928
9930
|
var Content = observer(ContentComponent);
|
|
9929
9931
|
|
|
9932
|
+
var _excluded = ["refs"];
|
|
9933
|
+
function ownKeys$2(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; }
|
|
9934
|
+
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
9930
9935
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
9931
9936
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
9932
9937
|
var LOG$1 = getLogger('Framework', 'ProductHandler');
|
|
@@ -9982,25 +9987,28 @@ var ProductHandler = /*#__PURE__*/function (_ProductHandlerAbstra) {
|
|
|
9982
9987
|
}, {
|
|
9983
9988
|
key: "saveProductMedia",
|
|
9984
9989
|
value: function () {
|
|
9985
|
-
var _saveProductMedia = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(productmedia, organizationId) {
|
|
9986
|
-
var file;
|
|
9990
|
+
var _saveProductMedia = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(productmedia, organizationId, refCount, refIds) {
|
|
9991
|
+
var file, refs;
|
|
9987
9992
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
9988
9993
|
while (1) switch (_context.prev = _context.next) {
|
|
9989
9994
|
case 0:
|
|
9990
9995
|
if (!productmedia.file) {
|
|
9991
|
-
_context.next =
|
|
9996
|
+
_context.next = 7;
|
|
9992
9997
|
break;
|
|
9993
9998
|
}
|
|
9994
9999
|
file = productmedia.file;
|
|
9995
10000
|
if (!file) {
|
|
9996
|
-
_context.next =
|
|
10001
|
+
_context.next = 7;
|
|
9997
10002
|
break;
|
|
9998
10003
|
}
|
|
9999
10004
|
_context.next = 5;
|
|
10000
10005
|
return file.save({
|
|
10001
|
-
organizationId: organizationId
|
|
10006
|
+
organizationId: organizationId,
|
|
10007
|
+
refCount: refCount,
|
|
10008
|
+
refIds: refIds
|
|
10002
10009
|
});
|
|
10003
10010
|
case 5:
|
|
10011
|
+
refs = _context.sent;
|
|
10004
10012
|
return _context.abrupt("return", {
|
|
10005
10013
|
url: file.url,
|
|
10006
10014
|
thumbnail: file.thumbnail,
|
|
@@ -10009,21 +10017,117 @@ var ProductHandler = /*#__PURE__*/function (_ProductHandlerAbstra) {
|
|
|
10009
10017
|
functionType: file.functionType,
|
|
10010
10018
|
description: file.description,
|
|
10011
10019
|
name: file.fileName,
|
|
10012
|
-
"class": productmedia["class"]
|
|
10020
|
+
"class": productmedia["class"],
|
|
10021
|
+
refs: refs
|
|
10013
10022
|
});
|
|
10014
|
-
case 6:
|
|
10015
|
-
return _context.abrupt("return", undefined);
|
|
10016
10023
|
case 7:
|
|
10024
|
+
return _context.abrupt("return", undefined);
|
|
10025
|
+
case 8:
|
|
10017
10026
|
case "end":
|
|
10018
10027
|
return _context.stop();
|
|
10019
10028
|
}
|
|
10020
10029
|
}, _callee);
|
|
10021
10030
|
}));
|
|
10022
|
-
function saveProductMedia(_x, _x2) {
|
|
10031
|
+
function saveProductMedia(_x, _x2, _x3, _x4) {
|
|
10023
10032
|
return _saveProductMedia.apply(this, arguments);
|
|
10024
10033
|
}
|
|
10025
10034
|
return saveProductMedia;
|
|
10026
10035
|
}()
|
|
10036
|
+
}, {
|
|
10037
|
+
key: "saveMedias",
|
|
10038
|
+
value: function () {
|
|
10039
|
+
var _saveMedias = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(mediasToSave, organizationId) {
|
|
10040
|
+
var groupedMedias, mediasForProduct, _loop, i, _i, group, saved, media, refs, tmpRefs, tmpMedia, j, _refs, productId;
|
|
10041
|
+
return _regeneratorRuntime.wrap(function _callee2$(_context3) {
|
|
10042
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
10043
|
+
case 0:
|
|
10044
|
+
groupedMedias = [];
|
|
10045
|
+
mediasForProduct = {};
|
|
10046
|
+
_loop = /*#__PURE__*/_regeneratorRuntime.mark(function _loop() {
|
|
10047
|
+
var toSave, group;
|
|
10048
|
+
return _regeneratorRuntime.wrap(function _loop$(_context2) {
|
|
10049
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
10050
|
+
case 0:
|
|
10051
|
+
toSave = mediasToSave[i];
|
|
10052
|
+
group = toSave.media.url && groupedMedias.find(function (m) {
|
|
10053
|
+
var _toSave$media$file, _m$media$file;
|
|
10054
|
+
return m.media.url === toSave.media.url && ((_toSave$media$file = toSave.media.file) === null || _toSave$media$file === void 0 ? void 0 : _toSave$media$file.state) == ((_m$media$file = m.media.file) === null || _m$media$file === void 0 ? void 0 : _m$media$file.state);
|
|
10055
|
+
});
|
|
10056
|
+
if (group) {
|
|
10057
|
+
group.ids.push(toSave.id);
|
|
10058
|
+
if (group.refIds && toSave.media.ref) group.refIds.push(toSave.media.ref);
|
|
10059
|
+
} else {
|
|
10060
|
+
groupedMedias.push({
|
|
10061
|
+
ids: [toSave.id],
|
|
10062
|
+
media: toSave.media,
|
|
10063
|
+
refIds: toSave.media.ref ? [toSave.media.ref] : undefined
|
|
10064
|
+
});
|
|
10065
|
+
}
|
|
10066
|
+
case 3:
|
|
10067
|
+
case "end":
|
|
10068
|
+
return _context2.stop();
|
|
10069
|
+
}
|
|
10070
|
+
}, _loop);
|
|
10071
|
+
});
|
|
10072
|
+
i = 0;
|
|
10073
|
+
case 4:
|
|
10074
|
+
if (!(i < mediasToSave.length)) {
|
|
10075
|
+
_context3.next = 9;
|
|
10076
|
+
break;
|
|
10077
|
+
}
|
|
10078
|
+
return _context3.delegateYield(_loop(), "t0", 6);
|
|
10079
|
+
case 6:
|
|
10080
|
+
i++;
|
|
10081
|
+
_context3.next = 4;
|
|
10082
|
+
break;
|
|
10083
|
+
case 9:
|
|
10084
|
+
_i = 0;
|
|
10085
|
+
case 10:
|
|
10086
|
+
if (!(_i < groupedMedias.length)) {
|
|
10087
|
+
_context3.next = 22;
|
|
10088
|
+
break;
|
|
10089
|
+
}
|
|
10090
|
+
group = groupedMedias[_i];
|
|
10091
|
+
_context3.next = 14;
|
|
10092
|
+
return this.saveProductMedia(group.media, organizationId, group.ids.length, group.refIds);
|
|
10093
|
+
case 14:
|
|
10094
|
+
saved = _context3.sent;
|
|
10095
|
+
media = void 0;
|
|
10096
|
+
refs = void 0;
|
|
10097
|
+
if (!saved) {
|
|
10098
|
+
media = group.media;
|
|
10099
|
+
refs = group.refIds;
|
|
10100
|
+
} else {
|
|
10101
|
+
tmpRefs = saved.refs, tmpMedia = _objectWithoutProperties(saved, _excluded);
|
|
10102
|
+
refs = tmpRefs;
|
|
10103
|
+
media = tmpMedia;
|
|
10104
|
+
}
|
|
10105
|
+
for (j = 0; j < group.ids.length; j++) {
|
|
10106
|
+
productId = group.ids[j];
|
|
10107
|
+
if (!mediasForProduct[productId]) mediasForProduct[productId] = {
|
|
10108
|
+
medias: []
|
|
10109
|
+
};
|
|
10110
|
+
mediasForProduct[productId].medias.push(_objectSpread$2(_objectSpread$2({}, media), {}, {
|
|
10111
|
+
ref: (_refs = refs) === null || _refs === void 0 ? void 0 : _refs[j]
|
|
10112
|
+
}));
|
|
10113
|
+
}
|
|
10114
|
+
case 19:
|
|
10115
|
+
_i++;
|
|
10116
|
+
_context3.next = 10;
|
|
10117
|
+
break;
|
|
10118
|
+
case 22:
|
|
10119
|
+
return _context3.abrupt("return", mediasForProduct);
|
|
10120
|
+
case 23:
|
|
10121
|
+
case "end":
|
|
10122
|
+
return _context3.stop();
|
|
10123
|
+
}
|
|
10124
|
+
}, _callee2, this);
|
|
10125
|
+
}));
|
|
10126
|
+
function saveMedias(_x5, _x6) {
|
|
10127
|
+
return _saveMedias.apply(this, arguments);
|
|
10128
|
+
}
|
|
10129
|
+
return saveMedias;
|
|
10130
|
+
}()
|
|
10027
10131
|
}]);
|
|
10028
10132
|
}(ProductHandlerAbstract);
|
|
10029
10133
|
|
|
@@ -10671,6 +10775,22 @@ var MockedRootStore = /*#__PURE__*/function () {
|
|
|
10671
10775
|
} else {
|
|
10672
10776
|
throw new Error('Method not implemented.');
|
|
10673
10777
|
}
|
|
10778
|
+
},
|
|
10779
|
+
fetchConfiguration: function fetchConfiguration(_ref6) {
|
|
10780
|
+
var identifier = _ref6.identifier,
|
|
10781
|
+
type = _ref6.type,
|
|
10782
|
+
domain = _ref6.domain,
|
|
10783
|
+
organizationId = _ref6.organizationId;
|
|
10784
|
+
if (_this2.actions.fetchConfiguration) {
|
|
10785
|
+
_this2.actions.fetchConfiguration({
|
|
10786
|
+
identifier: identifier,
|
|
10787
|
+
type: type,
|
|
10788
|
+
domain: domain,
|
|
10789
|
+
organizationId: organizationId
|
|
10790
|
+
});
|
|
10791
|
+
} else {
|
|
10792
|
+
throw new Error('Method not implemented.');
|
|
10793
|
+
}
|
|
10674
10794
|
}
|
|
10675
10795
|
},
|
|
10676
10796
|
state: _objectSpread(_objectSpread({}, this.data), {}, {
|