@seamly/web-ui 24.5.0 → 25.1.0-beta.1
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/dist/lib/index.debug.js +2129 -1810
- package/build/dist/lib/index.debug.js.map +1 -1
- package/build/dist/lib/index.debug.min.js +1 -1
- package/build/dist/lib/index.debug.min.js.LICENSE.txt +49 -7
- package/build/dist/lib/index.debug.min.js.map +1 -1
- package/build/dist/lib/index.js +732 -398
- package/build/dist/lib/index.js.map +1 -1
- package/build/dist/lib/index.min.js +1 -1
- package/build/dist/lib/index.min.js.LICENSE.txt +16 -1
- package/build/dist/lib/index.min.js.map +1 -1
- package/build/dist/lib/style-guide.js +305 -93
- package/build/dist/lib/style-guide.js.map +1 -1
- package/build/dist/lib/style-guide.min.js +1 -1
- package/build/dist/lib/style-guide.min.js.map +1 -1
- package/build/dist/lib/styles-default-implementation.css +1 -1
- package/build/dist/lib/styles.css +1 -1
- package/package.json +27 -38
- package/src/javascripts/core/api/api.types.ts +3 -0
- package/src/javascripts/core/api/asyncapi.types.ts +292 -69
- package/src/javascripts/core/api/channel.types.ts +301 -69
- package/src/javascripts/core/api/conversation-connector.ts +1 -3
- package/src/javascripts/core/api/errors/seamly-api-error.ts +0 -1
- package/src/javascripts/core/api/errors/seamly-base-error.ts +1 -1
- package/src/javascripts/core/api/index.ts +7 -7
- package/src/javascripts/core/api/utils.ts +0 -1
- package/src/javascripts/core/domains/app/actions.ts +1 -1
- package/src/javascripts/core/domains/app/hooks.ts +1 -1
- package/src/javascripts/core/domains/config/hooks.ts +1 -1
- package/src/javascripts/core/domains/config/selectors.ts +1 -1
- package/src/javascripts/core/domains/config/slice.ts +2 -2
- package/src/javascripts/core/domains/forms/context.ts +1 -1
- package/src/javascripts/core/domains/forms/hooks.ts +12 -12
- package/src/javascripts/core/domains/forms/provider.tsx +9 -9
- package/src/javascripts/core/domains/i18n/actions.ts +1 -1
- package/src/javascripts/core/domains/i18n/hooks.ts +3 -3
- package/src/javascripts/core/domains/interrupt/hooks.ts +1 -1
- package/src/javascripts/core/domains/store/index.ts +2 -2
- package/src/javascripts/core/domains/store/slice.ts +47 -34
- package/src/javascripts/core/domains/store/store.types.ts +3 -7
- package/src/javascripts/core/domains/translations/components/options-button.tsx +2 -2
- package/src/javascripts/core/domains/translations/components/options-dialog/index.tsx +1 -1
- package/src/javascripts/core/domains/translations/components/options-dialog/translation-option.tsx +1 -1
- package/src/javascripts/core/domains/translations/components/options-dialog/translation-options.tsx +2 -2
- package/src/javascripts/core/domains/translations/components/translation-status.tsx +1 -1
- package/src/javascripts/core/domains/translations/hooks.ts +2 -2
- package/src/javascripts/core/domains/translations/middleware.ts +4 -2
- package/src/javascripts/core/domains/visibility/actions.ts +2 -2
- package/src/javascripts/core/domains/visibility/hooks.ts +5 -5
- package/src/javascripts/core/lib/debug.ts +1 -1
- package/src/javascripts/core/lib/engine/index.tsx +5 -5
- package/src/javascripts/core/lib/external-api/index.ts +6 -6
- package/src/javascripts/core/lib/mutex.ts +0 -1
- package/src/javascripts/core/lib/split-url-params.ts +1 -1
- package/src/javascripts/core/lib/store/index.ts +0 -1
- package/src/javascripts/core/lib/store/providers/app-storage.js +4 -7
- package/src/javascripts/core/lib/store/providers/app-storage.ts +4 -6
- package/src/javascripts/core/ui/components/app-options/index.tsx +1 -1
- package/src/javascripts/core/ui/components/chat-status/index.tsx +1 -1
- package/src/javascripts/core/ui/components/conversation/component-filter.tsx +1 -3
- package/src/javascripts/core/ui/components/conversation/conversation.tsx +9 -11
- package/src/javascripts/core/ui/components/conversation/event/card-component.tsx +3 -3
- package/src/javascripts/core/ui/components/conversation/event/carousel-component/components/pagination.tsx +1 -1
- package/src/javascripts/core/ui/components/conversation/event/carousel-component/index.tsx +1 -1
- package/src/javascripts/core/ui/components/conversation/event/chat-scroll/chat-scroll-provider.tsx +1 -1
- package/src/javascripts/core/ui/components/conversation/event/choice-prompt.tsx +5 -5
- package/src/javascripts/core/ui/components/conversation/event/conversation-suggestions.tsx +1 -1
- package/src/javascripts/core/ui/components/conversation/event/divider/variants/new-translation.tsx +3 -3
- package/src/javascripts/core/ui/components/conversation/event/divider/variants/time-indicator.tsx +1 -1
- package/src/javascripts/core/ui/components/conversation/event/event-participant.tsx +1 -1
- package/src/javascripts/core/ui/components/conversation/event/event.tsx +1 -1
- package/src/javascripts/core/ui/components/conversation/event/image-lightbox.tsx +1 -1
- package/src/javascripts/core/ui/components/conversation/event/image.tsx +2 -2
- package/src/javascripts/core/ui/components/conversation/event/participant.tsx +1 -1
- package/src/javascripts/core/ui/components/conversation/event/splash.tsx +0 -1
- package/src/javascripts/core/ui/components/conversation/event/text.tsx +2 -2
- package/src/javascripts/core/ui/components/conversation/event/upload.tsx +3 -3
- package/src/javascripts/core/ui/components/conversation/event/video.tsx +2 -2
- package/src/javascripts/core/ui/components/conversation/event-divider.tsx +1 -1
- package/src/javascripts/core/ui/components/conversation/message-container.tsx +2 -4
- package/src/javascripts/core/ui/components/conversation/use-chat-scroll.ts +3 -3
- package/src/javascripts/core/ui/components/core/seamly-activity-monitor.tsx +1 -1
- package/src/javascripts/core/ui/components/core/seamly-api-context.ts +1 -1
- package/src/javascripts/core/ui/components/core/seamly-core.tsx +3 -3
- package/src/javascripts/core/ui/components/core/seamly-event-subscriber.ts +9 -7
- package/src/javascripts/core/ui/components/core/seamly-file-upload.tsx +2 -3
- package/src/javascripts/core/ui/components/core/seamly-initializer.tsx +1 -1
- package/src/javascripts/core/ui/components/core/seamly-instance-functions-loader.ts +3 -3
- package/src/javascripts/core/ui/components/core/seamly-live-region.tsx +1 -1
- package/src/javascripts/core/ui/components/core/seamly-new-notifications.ts +1 -1
- package/src/javascripts/core/ui/components/core/seamly-read-state.ts +1 -1
- package/src/javascripts/core/ui/components/entry/entry-container.tsx +8 -3
- package/src/javascripts/core/ui/components/entry/text-entry/hooks.ts +21 -14
- package/src/javascripts/core/ui/components/entry/text-entry/index.tsx +1 -1
- package/src/javascripts/core/ui/components/entry/text-entry/text-entry-form.tsx +1 -1
- package/src/javascripts/core/ui/components/entry/upload/file-upload-form.tsx +1 -1
- package/src/javascripts/core/ui/components/entry/upload/index.tsx +1 -1
- package/src/javascripts/core/ui/components/entry/upload-toggle.tsx +2 -1
- package/src/javascripts/core/ui/components/form-controls/error.tsx +1 -1
- package/src/javascripts/core/ui/components/form-controls/file-input.tsx +1 -1
- package/src/javascripts/core/ui/components/form-controls/input.tsx +1 -1
- package/src/javascripts/core/ui/components/form-controls/wrapper.tsx +1 -1
- package/src/javascripts/core/ui/components/layout/agent-info.tsx +1 -1
- package/src/javascripts/core/ui/components/layout/chat-frame.tsx +1 -1
- package/src/javascripts/core/ui/components/layout/chat.tsx +8 -6
- package/src/javascripts/core/ui/components/layout/continue-chat-messages.tsx +1 -1
- package/src/javascripts/core/ui/components/layout/header.tsx +1 -1
- package/src/javascripts/core/ui/components/layout/interrupt.tsx +1 -1
- package/src/javascripts/core/ui/components/layout/pre-chat-messages.tsx +1 -1
- package/src/javascripts/core/ui/components/options/options-button.tsx +1 -3
- package/src/javascripts/core/ui/components/options/options-frame.tsx +1 -1
- package/src/javascripts/core/ui/components/options/transcript/index.tsx +1 -1
- package/src/javascripts/core/ui/components/suggestions/index.tsx +2 -2
- package/src/javascripts/core/ui/components/suggestions/suggestions-list.tsx +1 -1
- package/src/javascripts/core/ui/components/view/index.tsx +3 -3
- package/src/javascripts/core/ui/components/view/window-view/collapse-button.tsx +10 -1
- package/src/javascripts/core/ui/components/view/window-view/window-open-button.tsx +9 -3
- package/src/javascripts/core/ui/components/widgets/in-out-transition.tsx +2 -2
- package/src/javascripts/core/ui/components/widgets/lightbox.tsx +1 -1
- package/src/javascripts/core/ui/hooks/file-upload-hooks.ts +1 -1
- package/src/javascripts/core/ui/hooks/focus-helper-hooks.ts +6 -1
- package/src/javascripts/core/ui/hooks/seamly-entry-hooks.ts +1 -1
- package/src/javascripts/core/ui/hooks/seamly-option-hooks.ts +1 -1
- package/src/javascripts/core/ui/hooks/seamly-state-hooks.ts +9 -4
- package/src/javascripts/core/ui/hooks/use-debounce.ts +1 -1
- package/src/javascripts/core/ui/hooks/use-interval.ts +0 -1
- package/src/javascripts/core/ui/hooks/use-notifications.ts +2 -3
- package/src/javascripts/core/ui/hooks/use-seamly-chat.ts +2 -2
- package/src/javascripts/core/ui/hooks/use-seamly-commands.ts +2 -2
- package/src/javascripts/core/ui/hooks/use-seamly-conversation.ts +1 -1
- package/src/javascripts/core/ui/hooks/use-seamly-idle-detach-countdown.ts +15 -10
- package/src/javascripts/core/ui/hooks/use-session-expired-command.ts +1 -1
- package/src/javascripts/core/ui/hooks/use-single-file-upload.ts +1 -1
- package/src/javascripts/core/ui/hooks/utility-hooks.ts +1 -2
- package/src/javascripts/core/ui/utils/seamly-utils.ts +0 -2
- package/src/javascripts/core/ui/utils/validations.ts +1 -2
- package/src/javascripts/style-guide/components/app.tsx +2 -2
- package/src/javascripts/style-guide/components/static-core.tsx +2 -2
- package/src/javascripts/style-guide/components/view.tsx +1 -1
- package/src/javascripts/style-guide/state-helpers/index.ts +0 -2
- package/src/javascripts/style-guide/states.ts +5 -42
- package/src/javascripts/style-guide/style-guide-engine.tsx +1 -1
- package/src/stylesheets/5-components/_message-body.scss +0 -10
- package/src/stylesheets/6-default-implementation/_hover.scss +0 -7
- package/src/stylesheets/styles.scss +0 -1
- package/webpack/config.common.js +4 -11
- package/webpack/config.dev.js +0 -1
- package/webpack/config.package.js +5 -7
- package/webpack/config.site.js +2 -4
- package/webpack/config.test.js +1 -2
- package/webpack/defaults.js +0 -1
- package/webpack/parts/babel-loader-browser-plugins.js +0 -1
- package/webpack/parts/dev-server.js +0 -1
- package/src/javascripts/core/ui/components/conversation/event/cta.tsx +0 -54
- package/src/stylesheets/5-components/_message-cta.scss +0 -17
|
@@ -196,6 +196,22 @@ module.exports = !fails(function () {
|
|
|
196
196
|
});
|
|
197
197
|
|
|
198
198
|
|
|
199
|
+
/***/ }),
|
|
200
|
+
|
|
201
|
+
/***/ 655:
|
|
202
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
var classof = __webpack_require__(6955);
|
|
206
|
+
|
|
207
|
+
var $String = String;
|
|
208
|
+
|
|
209
|
+
module.exports = function (argument) {
|
|
210
|
+
if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
|
|
211
|
+
return $String(argument);
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
|
|
199
215
|
/***/ }),
|
|
200
216
|
|
|
201
217
|
/***/ 679:
|
|
@@ -212,6 +228,25 @@ module.exports = function (it, Prototype) {
|
|
|
212
228
|
};
|
|
213
229
|
|
|
214
230
|
|
|
231
|
+
/***/ }),
|
|
232
|
+
|
|
233
|
+
/***/ 684:
|
|
234
|
+
/***/ ((module) => {
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
// Should throw an error on invalid iterator
|
|
238
|
+
// https://issues.chromium.org/issues/336839115
|
|
239
|
+
module.exports = function (methodName, argument) {
|
|
240
|
+
// eslint-disable-next-line es/no-iterator -- required for testing
|
|
241
|
+
var method = typeof Iterator == 'function' && Iterator.prototype[methodName];
|
|
242
|
+
if (method) try {
|
|
243
|
+
method.call({ next: null }, argument).next();
|
|
244
|
+
} catch (error) {
|
|
245
|
+
return true;
|
|
246
|
+
}
|
|
247
|
+
};
|
|
248
|
+
|
|
249
|
+
|
|
215
250
|
/***/ }),
|
|
216
251
|
|
|
217
252
|
/***/ 741:
|
|
@@ -384,6 +419,29 @@ module.exports = function (argument) {
|
|
|
384
419
|
};
|
|
385
420
|
|
|
386
421
|
|
|
422
|
+
/***/ }),
|
|
423
|
+
|
|
424
|
+
/***/ 1385:
|
|
425
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
426
|
+
|
|
427
|
+
|
|
428
|
+
var iteratorClose = __webpack_require__(9539);
|
|
429
|
+
|
|
430
|
+
module.exports = function (iters, kind, value) {
|
|
431
|
+
for (var i = iters.length - 1; i >= 0; i--) {
|
|
432
|
+
if (iters[i] === undefined) continue;
|
|
433
|
+
try {
|
|
434
|
+
value = iteratorClose(iters[i].iterator, kind, value);
|
|
435
|
+
} catch (error) {
|
|
436
|
+
kind = 'throw';
|
|
437
|
+
value = error;
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
if (kind === 'throw') throw value;
|
|
441
|
+
return value;
|
|
442
|
+
};
|
|
443
|
+
|
|
444
|
+
|
|
387
445
|
/***/ }),
|
|
388
446
|
|
|
389
447
|
/***/ 1454:
|
|
@@ -419,10 +477,15 @@ var getIteratorDirect = __webpack_require__(1767);
|
|
|
419
477
|
var createIteratorProxy = __webpack_require__(9462);
|
|
420
478
|
var callWithSafeIterationClosing = __webpack_require__(6319);
|
|
421
479
|
var iteratorClose = __webpack_require__(9539);
|
|
480
|
+
var iteratorHelperThrowsOnInvalidIterator = __webpack_require__(684);
|
|
422
481
|
var iteratorHelperWithoutClosingOnEarlyError = __webpack_require__(4549);
|
|
423
482
|
var IS_PURE = __webpack_require__(6395);
|
|
424
483
|
|
|
425
|
-
var
|
|
484
|
+
var MAP_WITHOUT_THROWING_ON_INVALID_ITERATOR = !IS_PURE && !iteratorHelperThrowsOnInvalidIterator('map', function () { /* empty */ });
|
|
485
|
+
var mapWithoutClosingOnEarlyError = !IS_PURE && !MAP_WITHOUT_THROWING_ON_INVALID_ITERATOR
|
|
486
|
+
&& iteratorHelperWithoutClosingOnEarlyError('map', TypeError);
|
|
487
|
+
|
|
488
|
+
var FORCED = IS_PURE || MAP_WITHOUT_THROWING_ON_INVALID_ITERATOR || mapWithoutClosingOnEarlyError;
|
|
426
489
|
|
|
427
490
|
var IteratorProxy = createIteratorProxy(function () {
|
|
428
491
|
var iterator = this.iterator;
|
|
@@ -433,7 +496,7 @@ var IteratorProxy = createIteratorProxy(function () {
|
|
|
433
496
|
|
|
434
497
|
// `Iterator.prototype.map` method
|
|
435
498
|
// https://tc39.es/ecma262/#sec-iterator.prototype.map
|
|
436
|
-
$({ target: 'Iterator', proto: true, real: true, forced:
|
|
499
|
+
$({ target: 'Iterator', proto: true, real: true, forced: FORCED }, {
|
|
437
500
|
map: function map(mapper) {
|
|
438
501
|
anObject(this);
|
|
439
502
|
try {
|
|
@@ -458,7 +521,7 @@ $({ target: 'Iterator', proto: true, real: true, forced: IS_PURE || mapWithoutCl
|
|
|
458
521
|
|
|
459
522
|
|
|
460
523
|
// `GetIteratorDirect(obj)` abstract operation
|
|
461
|
-
// https://tc39.es/
|
|
524
|
+
// https://tc39.es/ecma262/#sec-getiteratordirect
|
|
462
525
|
module.exports = function (obj) {
|
|
463
526
|
return {
|
|
464
527
|
iterator: obj,
|
|
@@ -667,9 +730,14 @@ var createIteratorProxy = __webpack_require__(9462);
|
|
|
667
730
|
var callWithSafeIterationClosing = __webpack_require__(6319);
|
|
668
731
|
var IS_PURE = __webpack_require__(6395);
|
|
669
732
|
var iteratorClose = __webpack_require__(9539);
|
|
733
|
+
var iteratorHelperThrowsOnInvalidIterator = __webpack_require__(684);
|
|
670
734
|
var iteratorHelperWithoutClosingOnEarlyError = __webpack_require__(4549);
|
|
671
735
|
|
|
672
|
-
var
|
|
736
|
+
var FILTER_WITHOUT_THROWING_ON_INVALID_ITERATOR = !IS_PURE && !iteratorHelperThrowsOnInvalidIterator('filter', function () { /* empty */ });
|
|
737
|
+
var filterWithoutClosingOnEarlyError = !IS_PURE && !FILTER_WITHOUT_THROWING_ON_INVALID_ITERATOR
|
|
738
|
+
&& iteratorHelperWithoutClosingOnEarlyError('filter', TypeError);
|
|
739
|
+
|
|
740
|
+
var FORCED = IS_PURE || FILTER_WITHOUT_THROWING_ON_INVALID_ITERATOR || filterWithoutClosingOnEarlyError;
|
|
673
741
|
|
|
674
742
|
var IteratorProxy = createIteratorProxy(function () {
|
|
675
743
|
var iterator = this.iterator;
|
|
@@ -687,7 +755,7 @@ var IteratorProxy = createIteratorProxy(function () {
|
|
|
687
755
|
|
|
688
756
|
// `Iterator.prototype.filter` method
|
|
689
757
|
// https://tc39.es/ecma262/#sec-iterator.prototype.filter
|
|
690
|
-
$({ target: 'Iterator', proto: true, real: true, forced:
|
|
758
|
+
$({ target: 'Iterator', proto: true, real: true, forced: FORCED }, {
|
|
691
759
|
filter: function filter(predicate) {
|
|
692
760
|
anObject(this);
|
|
693
761
|
try {
|
|
@@ -764,7 +832,7 @@ module.exports = function (iterable, unboundFunction, options) {
|
|
|
764
832
|
var iterator, iterFn, index, length, result, next, step;
|
|
765
833
|
|
|
766
834
|
var stop = function (condition) {
|
|
767
|
-
if (iterator) iteratorClose(iterator, 'normal'
|
|
835
|
+
if (iterator) iteratorClose(iterator, 'normal');
|
|
768
836
|
return new Result(true, condition);
|
|
769
837
|
};
|
|
770
838
|
|
|
@@ -896,6 +964,20 @@ var POLYFILL = isForced.POLYFILL = 'P';
|
|
|
896
964
|
module.exports = isForced;
|
|
897
965
|
|
|
898
966
|
|
|
967
|
+
/***/ }),
|
|
968
|
+
|
|
969
|
+
/***/ 2812:
|
|
970
|
+
/***/ ((module) => {
|
|
971
|
+
|
|
972
|
+
|
|
973
|
+
var $TypeError = TypeError;
|
|
974
|
+
|
|
975
|
+
module.exports = function (passed, required) {
|
|
976
|
+
if (passed < required) throw new $TypeError('Not enough arguments');
|
|
977
|
+
return passed;
|
|
978
|
+
};
|
|
979
|
+
|
|
980
|
+
|
|
899
981
|
/***/ }),
|
|
900
982
|
|
|
901
983
|
/***/ 2839:
|
|
@@ -920,7 +1002,7 @@ var uncurryThis = __webpack_require__(9504);
|
|
|
920
1002
|
|
|
921
1003
|
var id = 0;
|
|
922
1004
|
var postfix = Math.random();
|
|
923
|
-
var toString = uncurryThis(1.
|
|
1005
|
+
var toString = uncurryThis(1.1.toString);
|
|
924
1006
|
|
|
925
1007
|
module.exports = function (key) {
|
|
926
1008
|
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
|
@@ -1244,6 +1326,62 @@ module.exports =
|
|
|
1244
1326
|
(function () { return this; })() || Function('return this')();
|
|
1245
1327
|
|
|
1246
1328
|
|
|
1329
|
+
/***/ }),
|
|
1330
|
+
|
|
1331
|
+
/***/ 4603:
|
|
1332
|
+
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
|
1333
|
+
|
|
1334
|
+
|
|
1335
|
+
var defineBuiltIn = __webpack_require__(6840);
|
|
1336
|
+
var uncurryThis = __webpack_require__(9504);
|
|
1337
|
+
var toString = __webpack_require__(655);
|
|
1338
|
+
var validateArgumentsLength = __webpack_require__(2812);
|
|
1339
|
+
|
|
1340
|
+
var $URLSearchParams = URLSearchParams;
|
|
1341
|
+
var URLSearchParamsPrototype = $URLSearchParams.prototype;
|
|
1342
|
+
var append = uncurryThis(URLSearchParamsPrototype.append);
|
|
1343
|
+
var $delete = uncurryThis(URLSearchParamsPrototype['delete']);
|
|
1344
|
+
var forEach = uncurryThis(URLSearchParamsPrototype.forEach);
|
|
1345
|
+
var push = uncurryThis([].push);
|
|
1346
|
+
var params = new $URLSearchParams('a=1&a=2&b=3');
|
|
1347
|
+
|
|
1348
|
+
params['delete']('a', 1);
|
|
1349
|
+
// `undefined` case is a Chromium 117 bug
|
|
1350
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=14222
|
|
1351
|
+
params['delete']('b', undefined);
|
|
1352
|
+
|
|
1353
|
+
if (params + '' !== 'a=2') {
|
|
1354
|
+
defineBuiltIn(URLSearchParamsPrototype, 'delete', function (name /* , value */) {
|
|
1355
|
+
var length = arguments.length;
|
|
1356
|
+
var $value = length < 2 ? undefined : arguments[1];
|
|
1357
|
+
if (length && $value === undefined) return $delete(this, name);
|
|
1358
|
+
var entries = [];
|
|
1359
|
+
forEach(this, function (v, k) { // also validates `this`
|
|
1360
|
+
push(entries, { key: k, value: v });
|
|
1361
|
+
});
|
|
1362
|
+
validateArgumentsLength(length, 1);
|
|
1363
|
+
var key = toString(name);
|
|
1364
|
+
var value = toString($value);
|
|
1365
|
+
var index = 0;
|
|
1366
|
+
var dindex = 0;
|
|
1367
|
+
var found = false;
|
|
1368
|
+
var entriesLength = entries.length;
|
|
1369
|
+
var entry;
|
|
1370
|
+
while (index < entriesLength) {
|
|
1371
|
+
entry = entries[index++];
|
|
1372
|
+
if (found || entry.key === key) {
|
|
1373
|
+
found = true;
|
|
1374
|
+
$delete(this, entry.key);
|
|
1375
|
+
} else dindex++;
|
|
1376
|
+
}
|
|
1377
|
+
while (dindex < entriesLength) {
|
|
1378
|
+
entry = entries[dindex++];
|
|
1379
|
+
if (!(entry.key === key && entry.value === value)) append(this, entry.key, entry.value);
|
|
1380
|
+
}
|
|
1381
|
+
}, { enumerable: true, unsafe: true });
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
|
|
1247
1385
|
/***/ }),
|
|
1248
1386
|
|
|
1249
1387
|
/***/ 4659:
|
|
@@ -1868,6 +2006,41 @@ module.exports = function (fn) {
|
|
|
1868
2006
|
};
|
|
1869
2007
|
|
|
1870
2008
|
|
|
2009
|
+
/***/ }),
|
|
2010
|
+
|
|
2011
|
+
/***/ 7566:
|
|
2012
|
+
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
|
2013
|
+
|
|
2014
|
+
|
|
2015
|
+
var defineBuiltIn = __webpack_require__(6840);
|
|
2016
|
+
var uncurryThis = __webpack_require__(9504);
|
|
2017
|
+
var toString = __webpack_require__(655);
|
|
2018
|
+
var validateArgumentsLength = __webpack_require__(2812);
|
|
2019
|
+
|
|
2020
|
+
var $URLSearchParams = URLSearchParams;
|
|
2021
|
+
var URLSearchParamsPrototype = $URLSearchParams.prototype;
|
|
2022
|
+
var getAll = uncurryThis(URLSearchParamsPrototype.getAll);
|
|
2023
|
+
var $has = uncurryThis(URLSearchParamsPrototype.has);
|
|
2024
|
+
var params = new $URLSearchParams('a=1');
|
|
2025
|
+
|
|
2026
|
+
// `undefined` case is a Chromium 117 bug
|
|
2027
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=14222
|
|
2028
|
+
if (params.has('a', 2) || !params.has('a', undefined)) {
|
|
2029
|
+
defineBuiltIn(URLSearchParamsPrototype, 'has', function has(name /* , value */) {
|
|
2030
|
+
var length = arguments.length;
|
|
2031
|
+
var $value = length < 2 ? undefined : arguments[1];
|
|
2032
|
+
if (length && $value === undefined) return $has(this, name);
|
|
2033
|
+
var values = getAll(this, name); // also validates `this`
|
|
2034
|
+
validateArgumentsLength(length, 1);
|
|
2035
|
+
var value = toString($value);
|
|
2036
|
+
var index = 0;
|
|
2037
|
+
while (index < values.length) {
|
|
2038
|
+
if (values[index++] === value) return true;
|
|
2039
|
+
} return false;
|
|
2040
|
+
}, { enumerable: true, unsafe: true });
|
|
2041
|
+
}
|
|
2042
|
+
|
|
2043
|
+
|
|
1871
2044
|
/***/ }),
|
|
1872
2045
|
|
|
1873
2046
|
/***/ 7588:
|
|
@@ -1921,10 +2094,10 @@ var SHARED = '__core-js_shared__';
|
|
|
1921
2094
|
var store = module.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});
|
|
1922
2095
|
|
|
1923
2096
|
(store.versions || (store.versions = [])).push({
|
|
1924
|
-
version: '3.
|
|
2097
|
+
version: '3.45.1',
|
|
1925
2098
|
mode: IS_PURE ? 'pure' : 'global',
|
|
1926
2099
|
copyright: '© 2014-2025 Denis Pushkarev (zloirock.ru)',
|
|
1927
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
2100
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.45.1/LICENSE',
|
|
1928
2101
|
source: 'https://github.com/zloirock/core-js'
|
|
1929
2102
|
});
|
|
1930
2103
|
|
|
@@ -2291,6 +2464,34 @@ module.exports = DESCRIPTORS && fails(function () {
|
|
|
2291
2464
|
});
|
|
2292
2465
|
|
|
2293
2466
|
|
|
2467
|
+
/***/ }),
|
|
2468
|
+
|
|
2469
|
+
/***/ 8721:
|
|
2470
|
+
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
|
2471
|
+
|
|
2472
|
+
|
|
2473
|
+
var DESCRIPTORS = __webpack_require__(3724);
|
|
2474
|
+
var uncurryThis = __webpack_require__(9504);
|
|
2475
|
+
var defineBuiltInAccessor = __webpack_require__(2106);
|
|
2476
|
+
|
|
2477
|
+
var URLSearchParamsPrototype = URLSearchParams.prototype;
|
|
2478
|
+
var forEach = uncurryThis(URLSearchParamsPrototype.forEach);
|
|
2479
|
+
|
|
2480
|
+
// `URLSearchParams.prototype.size` getter
|
|
2481
|
+
// https://github.com/whatwg/url/pull/734
|
|
2482
|
+
if (DESCRIPTORS && !('size' in URLSearchParamsPrototype)) {
|
|
2483
|
+
defineBuiltInAccessor(URLSearchParamsPrototype, 'size', {
|
|
2484
|
+
get: function size() {
|
|
2485
|
+
var count = 0;
|
|
2486
|
+
forEach(this, function () { count++; });
|
|
2487
|
+
return count;
|
|
2488
|
+
},
|
|
2489
|
+
configurable: true,
|
|
2490
|
+
enumerable: true
|
|
2491
|
+
});
|
|
2492
|
+
}
|
|
2493
|
+
|
|
2494
|
+
|
|
2294
2495
|
/***/ }),
|
|
2295
2496
|
|
|
2296
2497
|
/***/ 8727:
|
|
@@ -2473,10 +2674,13 @@ var getMethod = __webpack_require__(5966);
|
|
|
2473
2674
|
var IteratorPrototype = (__webpack_require__(7657).IteratorPrototype);
|
|
2474
2675
|
var createIterResultObject = __webpack_require__(2529);
|
|
2475
2676
|
var iteratorClose = __webpack_require__(9539);
|
|
2677
|
+
var iteratorCloseAll = __webpack_require__(1385);
|
|
2476
2678
|
|
|
2477
2679
|
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
2478
2680
|
var ITERATOR_HELPER = 'IteratorHelper';
|
|
2479
2681
|
var WRAP_FOR_VALID_ITERATOR = 'WrapForValidIterator';
|
|
2682
|
+
var NORMAL = 'normal';
|
|
2683
|
+
var THROW = 'throw';
|
|
2480
2684
|
var setInternalState = InternalStateModule.set;
|
|
2481
2685
|
|
|
2482
2686
|
var createIteratorProxyPrototype = function (IS_ITERATOR) {
|
|
@@ -2507,11 +2711,16 @@ var createIteratorProxyPrototype = function (IS_ITERATOR) {
|
|
|
2507
2711
|
return returnMethod ? call(returnMethod, iterator) : createIterResultObject(undefined, true);
|
|
2508
2712
|
}
|
|
2509
2713
|
if (state.inner) try {
|
|
2510
|
-
iteratorClose(state.inner.iterator,
|
|
2714
|
+
iteratorClose(state.inner.iterator, NORMAL);
|
|
2511
2715
|
} catch (error) {
|
|
2512
|
-
return iteratorClose(iterator,
|
|
2716
|
+
return iteratorClose(iterator, THROW, error);
|
|
2513
2717
|
}
|
|
2514
|
-
if (
|
|
2718
|
+
if (state.openIters) try {
|
|
2719
|
+
iteratorCloseAll(state.openIters, NORMAL);
|
|
2720
|
+
} catch (error) {
|
|
2721
|
+
return iteratorClose(iterator, THROW, error);
|
|
2722
|
+
}
|
|
2723
|
+
if (iterator) iteratorClose(iterator, NORMAL);
|
|
2515
2724
|
return createIterResultObject(undefined, true);
|
|
2516
2725
|
}
|
|
2517
2726
|
});
|
|
@@ -2776,6 +2985,12 @@ var esnext_iterator_constructor = __webpack_require__(8992);
|
|
|
2776
2985
|
var esnext_iterator_find = __webpack_require__(2577);
|
|
2777
2986
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.iterator.reduce.js
|
|
2778
2987
|
var esnext_iterator_reduce = __webpack_require__(8872);
|
|
2988
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.url-search-params.delete.js
|
|
2989
|
+
var web_url_search_params_delete = __webpack_require__(4603);
|
|
2990
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.url-search-params.has.js
|
|
2991
|
+
var web_url_search_params_has = __webpack_require__(7566);
|
|
2992
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.url-search-params.size.js
|
|
2993
|
+
var web_url_search_params_size = __webpack_require__(8721);
|
|
2779
2994
|
;// external "preact/hooks"
|
|
2780
2995
|
const hooks_namespaceObject = require("preact/hooks");
|
|
2781
2996
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.iterator.map.js
|
|
@@ -2793,8 +3008,7 @@ const payloadTypes = {
|
|
|
2793
3008
|
translation: 'translation',
|
|
2794
3009
|
message: 'message',
|
|
2795
3010
|
countdown: 'countdown',
|
|
2796
|
-
upload: 'upload'
|
|
2797
|
-
cta: 'cta'
|
|
3011
|
+
upload: 'upload'
|
|
2798
3012
|
};
|
|
2799
3013
|
const defaultTranslatedBody = {
|
|
2800
3014
|
direction: 'to_translation_locale',
|
|
@@ -2804,7 +3018,6 @@ const defaultTranslatedBody = {
|
|
|
2804
3018
|
};
|
|
2805
3019
|
function addTranslationData(event) {
|
|
2806
3020
|
switch (event.payload.type) {
|
|
2807
|
-
case payloadTypes.cta:
|
|
2808
3021
|
case payloadTypes.image:
|
|
2809
3022
|
case payloadTypes.text:
|
|
2810
3023
|
case payloadTypes.choicePrompt:
|
|
@@ -3217,34 +3430,6 @@ const splashMessage = {
|
|
|
3217
3430
|
}
|
|
3218
3431
|
}
|
|
3219
3432
|
};
|
|
3220
|
-
const ctaMessage = {
|
|
3221
|
-
type: 'message',
|
|
3222
|
-
payload: {
|
|
3223
|
-
body: {
|
|
3224
|
-
description: 'Thanks for chatting!\n\nMore info about our <strong>products</strong>?',
|
|
3225
|
-
buttonLink: 'https://seamly.ai',
|
|
3226
|
-
buttonText: 'View website',
|
|
3227
|
-
buttonNewTab: true
|
|
3228
|
-
},
|
|
3229
|
-
type: 'cta',
|
|
3230
|
-
fromClient: false,
|
|
3231
|
-
fromHistory: true,
|
|
3232
|
-
id: 'f5351010-0def-452d-818f-ca22ac61792z',
|
|
3233
|
-
messageStatus: 'read',
|
|
3234
|
-
participant: 'agent',
|
|
3235
|
-
service: {
|
|
3236
|
-
meta: {
|
|
3237
|
-
additions: {
|
|
3238
|
-
hideFeedback: 'true'
|
|
3239
|
-
}
|
|
3240
|
-
},
|
|
3241
|
-
name: 'bot',
|
|
3242
|
-
serviceSessionId: '3942159e-9878-469e-9120-f44fd6be0f35'
|
|
3243
|
-
},
|
|
3244
|
-
transactionId: 'd0cc13da-337a-4108-9db1-cb8a3b3a1446',
|
|
3245
|
-
transactionLast: false
|
|
3246
|
-
}
|
|
3247
|
-
};
|
|
3248
3433
|
const longTextMessage = {
|
|
3249
3434
|
type: 'message',
|
|
3250
3435
|
payload: {
|
|
@@ -3917,7 +4102,7 @@ const standardState = {
|
|
|
3917
4102
|
...choicePromptMessage.payload,
|
|
3918
4103
|
id: `${choicePromptMessage.payload.id}XXX`
|
|
3919
4104
|
}
|
|
3920
|
-
}, longTextMessage, participantTransferMessage, userMessage, textMessageBoldItalicUnderline, userMessageWithLinks, newTopicDivider, imageMessage, fileDownloadAgentMessageById, fileDownloadAgentMessageByUrl, fileDownloadAgentMessageImage, deletedFileDownloadAgentMessage, userMessageLong, videoMessage, textMessageWithLinks, textMessageWithLongLink, imageMessageWithLightbox, fileDownloadUserMessageImage, emptyUrlFileDownloadUserMessage, textMesageWithBullets, textMesageWithOrderedList, choicePromptMessage
|
|
4105
|
+
}, longTextMessage, participantTransferMessage, userMessage, textMessageBoldItalicUnderline, userMessageWithLinks, newTopicDivider, imageMessage, fileDownloadAgentMessageById, fileDownloadAgentMessageByUrl, fileDownloadAgentMessageImage, deletedFileDownloadAgentMessage, userMessageLong, videoMessage, textMessageWithLinks, textMessageWithLongLink, imageMessageWithLightbox, fileDownloadUserMessageImage, emptyUrlFileDownloadUserMessage, textMesageWithBullets, textMesageWithOrderedList, choicePromptMessage]
|
|
3921
4106
|
},
|
|
3922
4107
|
userMessages: {
|
|
3923
4108
|
category: categoryKeys.messages,
|
|
@@ -3956,14 +4141,6 @@ const standardState = {
|
|
|
3956
4141
|
participantInfo,
|
|
3957
4142
|
events: [shortTextMessage, longTextMessage, textMessageBoldItalicUnderline, textMessageWithLinks, textMessageWithLongLink, textMesageWithBullets, textMesageWithOrderedList]
|
|
3958
4143
|
},
|
|
3959
|
-
ctaMessages: {
|
|
3960
|
-
category: categoryKeys.messages,
|
|
3961
|
-
headingText: 'CTA (call to action) messages',
|
|
3962
|
-
description: '',
|
|
3963
|
-
...baseState,
|
|
3964
|
-
participantInfo,
|
|
3965
|
-
events: [ctaMessage]
|
|
3966
|
-
},
|
|
3967
4144
|
imageVideoMessages: {
|
|
3968
4145
|
category: categoryKeys.messages,
|
|
3969
4146
|
headingText: 'Download, image and video messages',
|
|
@@ -4802,7 +4979,7 @@ const standardState = {
|
|
|
4802
4979
|
...choicePromptMessage.payload,
|
|
4803
4980
|
id: `${choicePromptMessage.payload.id}XXX`
|
|
4804
4981
|
}
|
|
4805
|
-
}, longTextMessage, userMessage, textMessageBoldItalicUnderline, newTopicDivider, newTranslationDividerStartTwo, newTranslationDividerStop, imageMessage, fileDownloadAgentMessageById, fileDownloadAgentMessageByUrl, fileDownloadAgentMessageImage, deletedFileDownloadAgentMessage, userMessageLong, videoMessage, textMessageWithLinks, textMessageWithLongLink, imageMessageWithLightbox, fileDownloadUserMessageImage, emptyUrlFileDownloadUserMessage, textMesageWithBullets, textMesageWithOrderedList, choicePromptMessage,
|
|
4982
|
+
}, longTextMessage, userMessage, textMessageBoldItalicUnderline, newTopicDivider, newTranslationDividerStartTwo, newTranslationDividerStop, imageMessage, fileDownloadAgentMessageById, fileDownloadAgentMessageByUrl, fileDownloadAgentMessageImage, deletedFileDownloadAgentMessage, userMessageLong, videoMessage, textMessageWithLinks, textMessageWithLongLink, imageMessageWithLightbox, fileDownloadUserMessageImage, emptyUrlFileDownloadUserMessage, textMesageWithBullets, textMesageWithOrderedList, choicePromptMessage, newTranslationDividerStop].map(addTranslationData),
|
|
4806
4983
|
translations: {
|
|
4807
4984
|
...translationsSlice,
|
|
4808
4985
|
currentLocale: 'nl',
|
|
@@ -4816,7 +4993,7 @@ const standardState = {
|
|
|
4816
4993
|
id: `${choicePromptMessage.payload.id}XXX`
|
|
4817
4994
|
}
|
|
4818
4995
|
}, longTextMessage, userMessage, textMessageBoldItalicUnderline, newTopicDivider].map(p => p.payload.id),
|
|
4819
|
-
[newTranslationDividerStartTwo.payload.id]: [imageMessage, fileDownloadAgentMessageById, fileDownloadAgentMessageByUrl, fileDownloadAgentMessageImage, deletedFileDownloadAgentMessage, userMessageLong, videoMessage, textMessageWithLinks, textMessageWithLongLink, imageMessageWithLightbox, fileDownloadUserMessageImage, emptyUrlFileDownloadUserMessage, textMesageWithBullets, textMesageWithOrderedList, choicePromptMessage
|
|
4996
|
+
[newTranslationDividerStartTwo.payload.id]: [imageMessage, fileDownloadAgentMessageById, fileDownloadAgentMessageByUrl, fileDownloadAgentMessageImage, deletedFileDownloadAgentMessage, userMessageLong, videoMessage, textMessageWithLinks, textMessageWithLongLink, imageMessageWithLightbox, fileDownloadUserMessageImage, emptyUrlFileDownloadUserMessage, textMesageWithBullets, textMesageWithOrderedList, choicePromptMessage].map(p => p.payload.id)
|
|
4820
4997
|
},
|
|
4821
4998
|
languages: [{
|
|
4822
4999
|
locale: 'nl',
|
|
@@ -4936,7 +5113,7 @@ const inlineInterface = {
|
|
|
4936
5113
|
},
|
|
4937
5114
|
minimizedInlinePrechat: {
|
|
4938
5115
|
category: categoryKeys.minimizedInline,
|
|
4939
|
-
headingText: 'Inline minimized with
|
|
5116
|
+
headingText: 'Inline minimized with collapsed chat messages',
|
|
4940
5117
|
description: '',
|
|
4941
5118
|
inline: {
|
|
4942
5119
|
...baseState,
|
|
@@ -4953,7 +5130,7 @@ const inlineInterface = {
|
|
|
4953
5130
|
},
|
|
4954
5131
|
minimizedInlinePrechatSuggestions: {
|
|
4955
5132
|
category: categoryKeys.minimizedInline,
|
|
4956
|
-
headingText: 'Inline minimized with
|
|
5133
|
+
headingText: 'Inline minimized with collapsed chat messages & suggestions',
|
|
4957
5134
|
description: '',
|
|
4958
5135
|
inline: {
|
|
4959
5136
|
...baseState,
|
|
@@ -5146,7 +5323,7 @@ const getStateObj = (layoutModes, customComponentEventBodies) => {
|
|
|
5146
5323
|
...standardWindowStates,
|
|
5147
5324
|
minimizedWindowPrechat: {
|
|
5148
5325
|
category: categoryKeys.minimizedWindow,
|
|
5149
|
-
headingText: 'Minimized with
|
|
5326
|
+
headingText: 'Minimized with collapsed chat messages',
|
|
5150
5327
|
description: '',
|
|
5151
5328
|
window: {
|
|
5152
5329
|
...baseState,
|
|
@@ -5165,7 +5342,7 @@ const getStateObj = (layoutModes, customComponentEventBodies) => {
|
|
|
5165
5342
|
},
|
|
5166
5343
|
minimizedWindowPrechatDelayed: {
|
|
5167
5344
|
category: categoryKeys.minimizedWindow,
|
|
5168
|
-
headingText: 'Minimized with delayed
|
|
5345
|
+
headingText: 'Minimized with delayed collapsed chat messages',
|
|
5169
5346
|
description: '',
|
|
5170
5347
|
window: {
|
|
5171
5348
|
...baseState,
|
|
@@ -5188,7 +5365,7 @@ const getStateObj = (layoutModes, customComponentEventBodies) => {
|
|
|
5188
5365
|
},
|
|
5189
5366
|
minimizedWindowPrechatDisabled: {
|
|
5190
5367
|
category: categoryKeys.minimizedWindow,
|
|
5191
|
-
headingText: 'Minimized with disabled
|
|
5368
|
+
headingText: 'Minimized with disabled collapsed chat messages',
|
|
5192
5369
|
description: '',
|
|
5193
5370
|
window: {
|
|
5194
5371
|
...baseState,
|
|
@@ -5400,7 +5577,8 @@ function isDate(val) {
|
|
|
5400
5577
|
}
|
|
5401
5578
|
function kindOf(val) {
|
|
5402
5579
|
let typeOfVal = typeof val;
|
|
5403
|
-
if (false)
|
|
5580
|
+
if (false) // removed by dead control flow
|
|
5581
|
+
{}
|
|
5404
5582
|
return typeOfVal;
|
|
5405
5583
|
}
|
|
5406
5584
|
|
|
@@ -5600,14 +5778,16 @@ function combineReducers(reducers) {
|
|
|
5600
5778
|
const finalReducers = {};
|
|
5601
5779
|
for (let i = 0; i < reducerKeys.length; i++) {
|
|
5602
5780
|
const key = reducerKeys[i];
|
|
5603
|
-
if (false)
|
|
5781
|
+
if (false) // removed by dead control flow
|
|
5782
|
+
{}
|
|
5604
5783
|
if (typeof reducers[key] === "function") {
|
|
5605
5784
|
finalReducers[key] = reducers[key];
|
|
5606
5785
|
}
|
|
5607
5786
|
}
|
|
5608
5787
|
const finalReducerKeys = Object.keys(finalReducers);
|
|
5609
5788
|
let unexpectedKeyCache;
|
|
5610
|
-
if (false)
|
|
5789
|
+
if (false) // removed by dead control flow
|
|
5790
|
+
{}
|
|
5611
5791
|
let shapeAssertionError;
|
|
5612
5792
|
try {
|
|
5613
5793
|
assertReducerShape(finalReducers);
|
|
@@ -5618,7 +5798,8 @@ function combineReducers(reducers) {
|
|
|
5618
5798
|
if (shapeAssertionError) {
|
|
5619
5799
|
throw shapeAssertionError;
|
|
5620
5800
|
}
|
|
5621
|
-
if (false)
|
|
5801
|
+
if (false) // removed by dead control flow
|
|
5802
|
+
{}
|
|
5622
5803
|
let hasChanged = false;
|
|
5623
5804
|
const nextState = {};
|
|
5624
5805
|
for (let i = 0; i < finalReducerKeys.length; i++) {
|
|
@@ -5814,15 +5995,10 @@ function createActionCreatorInvariantMiddleware(options = {}) {
|
|
|
5814
5995
|
if (true) {
|
|
5815
5996
|
return () => (next) => (action) => next(action);
|
|
5816
5997
|
}
|
|
5817
|
-
|
|
5818
|
-
|
|
5819
|
-
|
|
5820
|
-
|
|
5821
|
-
if (isActionCreator2(action)) {
|
|
5822
|
-
console.warn(getMessage(action.type));
|
|
5823
|
-
}
|
|
5824
|
-
return next(action);
|
|
5825
|
-
};
|
|
5998
|
+
// removed by dead control flow
|
|
5999
|
+
|
|
6000
|
+
// removed by dead control flow
|
|
6001
|
+
|
|
5826
6002
|
}
|
|
5827
6003
|
|
|
5828
6004
|
// src/utils.ts
|
|
@@ -5951,7 +6127,8 @@ function detectMutations(isImmutable, ignoredPaths = [], trackedProperty, obj, s
|
|
|
5951
6127
|
function createImmutableStateInvariantMiddleware(options = {}) {
|
|
5952
6128
|
if (true) {
|
|
5953
6129
|
return () => (next) => (action) => next(action);
|
|
5954
|
-
} else
|
|
6130
|
+
} else // removed by dead control flow
|
|
6131
|
+
{ var stringify, getSerialize; }
|
|
5955
6132
|
}
|
|
5956
6133
|
|
|
5957
6134
|
// src/serializableStateInvariantMiddleware.ts
|
|
@@ -6014,7 +6191,8 @@ function isNestedFrozen(value) {
|
|
|
6014
6191
|
function createSerializableStateInvariantMiddleware(options = {}) {
|
|
6015
6192
|
if (true) {
|
|
6016
6193
|
return () => (next) => (action) => next(action);
|
|
6017
|
-
} else
|
|
6194
|
+
} else // removed by dead control flow
|
|
6195
|
+
{}
|
|
6018
6196
|
}
|
|
6019
6197
|
|
|
6020
6198
|
// src/getDefaultMiddleware.ts
|
|
@@ -6036,7 +6214,8 @@ var buildGetDefaultMiddleware = () => function getDefaultMiddleware(options) {
|
|
|
6036
6214
|
middlewareArray.push(withExtraArgument(thunk.extraArgument));
|
|
6037
6215
|
}
|
|
6038
6216
|
}
|
|
6039
|
-
if (false)
|
|
6217
|
+
if (false) // removed by dead control flow
|
|
6218
|
+
{}
|
|
6040
6219
|
return middlewareArray;
|
|
6041
6220
|
};
|
|
6042
6221
|
|
|
@@ -6135,16 +6314,20 @@ function configureStore(options) {
|
|
|
6135
6314
|
} else {
|
|
6136
6315
|
throw new Error( true ? redux_toolkit_modern_formatProdErrorMessage(1) : 0);
|
|
6137
6316
|
}
|
|
6138
|
-
if (false)
|
|
6317
|
+
if (false) // removed by dead control flow
|
|
6318
|
+
{}
|
|
6139
6319
|
let finalMiddleware;
|
|
6140
6320
|
if (typeof middleware === "function") {
|
|
6141
6321
|
finalMiddleware = middleware(getDefaultMiddleware);
|
|
6142
|
-
if (false)
|
|
6322
|
+
if (false) // removed by dead control flow
|
|
6323
|
+
{}
|
|
6143
6324
|
} else {
|
|
6144
6325
|
finalMiddleware = getDefaultMiddleware();
|
|
6145
6326
|
}
|
|
6146
|
-
if (false)
|
|
6147
|
-
|
|
6327
|
+
if (false) // removed by dead control flow
|
|
6328
|
+
{}
|
|
6329
|
+
if (false) // removed by dead control flow
|
|
6330
|
+
{}
|
|
6148
6331
|
let finalCompose = compose;
|
|
6149
6332
|
if (devTools) {
|
|
6150
6333
|
finalCompose = composeWithDevTools({
|
|
@@ -6155,11 +6338,15 @@ function configureStore(options) {
|
|
|
6155
6338
|
}
|
|
6156
6339
|
const middlewareEnhancer = applyMiddleware(...finalMiddleware);
|
|
6157
6340
|
const getDefaultEnhancers = buildGetDefaultEnhancers(middlewareEnhancer);
|
|
6158
|
-
if (false)
|
|
6341
|
+
if (false) // removed by dead control flow
|
|
6342
|
+
{}
|
|
6159
6343
|
let storeEnhancers = typeof enhancers === "function" ? enhancers(getDefaultEnhancers) : getDefaultEnhancers();
|
|
6160
|
-
if (false)
|
|
6161
|
-
|
|
6162
|
-
if (false)
|
|
6344
|
+
if (false) // removed by dead control flow
|
|
6345
|
+
{}
|
|
6346
|
+
if (false) // removed by dead control flow
|
|
6347
|
+
{}
|
|
6348
|
+
if (false) // removed by dead control flow
|
|
6349
|
+
{}
|
|
6163
6350
|
const composedEnhancer = finalCompose(...storeEnhancers);
|
|
6164
6351
|
return createStore(rootReducer, preloadedState, composedEnhancer);
|
|
6165
6352
|
}
|
|
@@ -6174,7 +6361,8 @@ function executeReducerBuilderCallback(builderCallback) {
|
|
|
6174
6361
|
let defaultCaseReducer;
|
|
6175
6362
|
const builder = {
|
|
6176
6363
|
addCase(typeOrActionCreator, reducer) {
|
|
6177
|
-
if (false)
|
|
6364
|
+
if (false) // removed by dead control flow
|
|
6365
|
+
{}
|
|
6178
6366
|
const type = typeof typeOrActionCreator === "string" ? typeOrActionCreator : typeOrActionCreator.type;
|
|
6179
6367
|
if (!type) {
|
|
6180
6368
|
throw new Error( true ? redux_toolkit_modern_formatProdErrorMessage(28) : 0);
|
|
@@ -6185,8 +6373,21 @@ function executeReducerBuilderCallback(builderCallback) {
|
|
|
6185
6373
|
actionsMap[type] = reducer;
|
|
6186
6374
|
return builder;
|
|
6187
6375
|
},
|
|
6376
|
+
addAsyncThunk(asyncThunk, reducers) {
|
|
6377
|
+
if (false) // removed by dead control flow
|
|
6378
|
+
{}
|
|
6379
|
+
if (reducers.pending) actionsMap[asyncThunk.pending.type] = reducers.pending;
|
|
6380
|
+
if (reducers.rejected) actionsMap[asyncThunk.rejected.type] = reducers.rejected;
|
|
6381
|
+
if (reducers.fulfilled) actionsMap[asyncThunk.fulfilled.type] = reducers.fulfilled;
|
|
6382
|
+
if (reducers.settled) actionMatchers.push({
|
|
6383
|
+
matcher: asyncThunk.settled,
|
|
6384
|
+
reducer: reducers.settled
|
|
6385
|
+
});
|
|
6386
|
+
return builder;
|
|
6387
|
+
},
|
|
6188
6388
|
addMatcher(matcher, reducer) {
|
|
6189
|
-
if (false)
|
|
6389
|
+
if (false) // removed by dead control flow
|
|
6390
|
+
{}
|
|
6190
6391
|
actionMatchers.push({
|
|
6191
6392
|
matcher,
|
|
6192
6393
|
reducer
|
|
@@ -6194,7 +6395,8 @@ function executeReducerBuilderCallback(builderCallback) {
|
|
|
6194
6395
|
return builder;
|
|
6195
6396
|
},
|
|
6196
6397
|
addDefaultCase(reducer) {
|
|
6197
|
-
if (false)
|
|
6398
|
+
if (false) // removed by dead control flow
|
|
6399
|
+
{}
|
|
6198
6400
|
defaultCaseReducer = reducer;
|
|
6199
6401
|
return builder;
|
|
6200
6402
|
}
|
|
@@ -6208,7 +6410,8 @@ function isStateFunction(x) {
|
|
|
6208
6410
|
return typeof x === "function";
|
|
6209
6411
|
}
|
|
6210
6412
|
function createReducer(initialState, mapOrBuilderCallback) {
|
|
6211
|
-
if (false)
|
|
6413
|
+
if (false) // removed by dead control flow
|
|
6414
|
+
{}
|
|
6212
6415
|
let [actionsMap, finalActionMatchers, finalDefaultCaseReducer] = executeReducerBuilderCallback(mapOrBuilderCallback);
|
|
6213
6416
|
let getInitialState;
|
|
6214
6417
|
if (isStateFunction(initialState)) {
|
|
@@ -6564,7 +6767,8 @@ function buildCreateSlice({
|
|
|
6564
6767
|
if (!name) {
|
|
6565
6768
|
throw new Error( true ? redux_toolkit_modern_formatProdErrorMessage(11) : 0);
|
|
6566
6769
|
}
|
|
6567
|
-
if (typeof process !== "undefined" && "production" === "development")
|
|
6770
|
+
if (typeof process !== "undefined" && "production" === "development") // removed by dead control flow
|
|
6771
|
+
{}
|
|
6568
6772
|
const reducers = (typeof options.reducers === "function" ? options.reducers(buildReducerCreators()) : options.reducers) || {};
|
|
6569
6773
|
const reducerNames = Object.keys(reducers);
|
|
6570
6774
|
const context = {
|
|
@@ -6615,7 +6819,8 @@ function buildCreateSlice({
|
|
|
6615
6819
|
}
|
|
6616
6820
|
});
|
|
6617
6821
|
function buildReducer() {
|
|
6618
|
-
if (false)
|
|
6822
|
+
if (false) // removed by dead control flow
|
|
6823
|
+
{}
|
|
6619
6824
|
const [extraReducers = {}, actionMatchers = [], defaultCaseReducer = void 0] = typeof options.extraReducers === "function" ? executeReducerBuilderCallback(options.extraReducers) : [options.extraReducers];
|
|
6620
6825
|
const finalCaseReducers = {
|
|
6621
6826
|
...extraReducers,
|
|
@@ -6654,7 +6859,8 @@ function buildCreateSlice({
|
|
|
6654
6859
|
if (typeof sliceState === "undefined") {
|
|
6655
6860
|
if (injected) {
|
|
6656
6861
|
sliceState = getOrInsertComputed(injectedStateCache, selectSlice, getInitialState);
|
|
6657
|
-
} else if (false)
|
|
6862
|
+
} else if (false) // removed by dead control flow
|
|
6863
|
+
{}
|
|
6658
6864
|
}
|
|
6659
6865
|
return sliceState;
|
|
6660
6866
|
}
|
|
@@ -6708,7 +6914,8 @@ function wrapSelector(selector, selectState, getInitialState, injected) {
|
|
|
6708
6914
|
if (typeof sliceState === "undefined") {
|
|
6709
6915
|
if (injected) {
|
|
6710
6916
|
sliceState = getInitialState();
|
|
6711
|
-
} else if (false)
|
|
6917
|
+
} else if (false) // removed by dead control flow
|
|
6918
|
+
{}
|
|
6712
6919
|
}
|
|
6713
6920
|
return selector(sliceState, ...args);
|
|
6714
6921
|
}
|
|
@@ -6895,7 +7102,8 @@ function createStateOperator(mutator) {
|
|
|
6895
7102
|
|
|
6896
7103
|
function selectIdValue(entity, selectId) {
|
|
6897
7104
|
const key = selectId(entity);
|
|
6898
|
-
if (false)
|
|
7105
|
+
if (false) // removed by dead control flow
|
|
7106
|
+
{}
|
|
6899
7107
|
return key;
|
|
6900
7108
|
}
|
|
6901
7109
|
function ensureEntitiesArray(entities) {
|
|
@@ -7737,7 +7945,8 @@ function combineSlices(...slices) {
|
|
|
7737
7945
|
} = slice;
|
|
7738
7946
|
const currentReducer = reducerMap[reducerPath];
|
|
7739
7947
|
if (!config.overrideExisting && currentReducer && currentReducer !== reducerToInject) {
|
|
7740
|
-
if (typeof process !== "undefined" && "production" === "development")
|
|
7948
|
+
if (typeof process !== "undefined" && "production" === "development") // removed by dead control flow
|
|
7949
|
+
{}
|
|
7741
7950
|
return combinedReducer;
|
|
7742
7951
|
}
|
|
7743
7952
|
if (config.overrideExisting && currentReducer !== reducerToInject) {
|
|
@@ -7937,6 +8146,9 @@ const StyleGuideView = ({
|
|
|
7937
8146
|
|
|
7938
8147
|
|
|
7939
8148
|
|
|
8149
|
+
|
|
8150
|
+
|
|
8151
|
+
|
|
7940
8152
|
const H = ({
|
|
7941
8153
|
tag,
|
|
7942
8154
|
id,
|