@seamly/web-ui 20.8.0-alpha.1 → 20.8.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.
Files changed (46) hide show
  1. package/build/dist/lib/index.debug.js +46 -46
  2. package/build/dist/lib/index.debug.min.js +1 -1
  3. package/build/dist/lib/index.debug.min.js.LICENSE.txt +1 -1
  4. package/build/dist/lib/index.js +351 -260
  5. package/build/dist/lib/index.min.js +1 -1
  6. package/build/dist/lib/standalone.js +542 -252
  7. package/build/dist/lib/standalone.min.js +1 -1
  8. package/build/dist/lib/style-guide.js +156 -69
  9. package/build/dist/lib/style-guide.min.js +1 -1
  10. package/build/dist/lib/styles.css +1 -1
  11. package/package.json +1 -1
  12. package/src/javascripts/config.types.ts +1 -0
  13. package/src/javascripts/domains/config/slice.ts +2 -0
  14. package/src/javascripts/domains/i18n/slice.ts +0 -3
  15. package/src/javascripts/domains/store/slice.ts +16 -13
  16. package/src/javascripts/domains/store/store.types.ts +12 -1
  17. package/src/javascripts/domains/translations/hooks.ts +54 -48
  18. package/src/javascripts/domains/translations/selectors.ts +12 -0
  19. package/src/javascripts/domains/translations/slice.ts +70 -17
  20. package/src/javascripts/domains/translations/translations.types.ts +8 -1
  21. package/src/javascripts/schema.ts +3 -10
  22. package/src/javascripts/style-guide/components/app.js +2 -2
  23. package/src/javascripts/style-guide/states.js +61 -3
  24. package/src/javascripts/ui/components/conversation/conversation.js +7 -3
  25. package/src/javascripts/ui/components/conversation/event/card-message.js +1 -1
  26. package/src/javascripts/ui/components/conversation/event/carousel-message/index.js +1 -1
  27. package/src/javascripts/ui/components/conversation/event/choice-prompt.js +1 -1
  28. package/src/javascripts/ui/components/conversation/event/conversation-suggestions.js +9 -2
  29. package/src/javascripts/ui/components/conversation/event/cta.js +1 -1
  30. package/src/javascripts/ui/components/conversation/event/divider/variants/new-translation.js +39 -3
  31. package/src/javascripts/ui/components/conversation/event/image.js +1 -1
  32. package/src/javascripts/ui/components/conversation/event/participant.js +1 -1
  33. package/src/javascripts/ui/components/conversation/event/splash.js +1 -1
  34. package/src/javascripts/ui/components/conversation/event/text.js +1 -1
  35. package/src/javascripts/ui/components/conversation/event/translation.js +1 -1
  36. package/src/javascripts/ui/components/conversation/event/upload.js +1 -1
  37. package/src/javascripts/ui/components/conversation/event/video.js +1 -1
  38. package/src/javascripts/ui/components/conversation/message-container.js +1 -23
  39. package/src/javascripts/ui/components/core/seamly-event-subscriber.js +3 -2
  40. package/src/javascripts/ui/components/faq/faq.js +3 -1
  41. package/src/javascripts/ui/components/options/options-button.js +3 -1
  42. package/src/javascripts/ui/components/suggestions/index.js +5 -2
  43. package/src/javascripts/ui/hooks/seamly-state-hooks.js +6 -0
  44. package/src/stylesheets/5-components/_message-carousel.scss +10 -8
  45. package/CHANGELOG.md +0 -987
  46. package/src/javascripts/domains/translations/selectors.js +0 -11
@@ -7261,13 +7261,14 @@ exports.initialConfigState = _Object$assign(_Object$assign({}, config_1.defaultC
7261
7261
  connectWhenInView: true,
7262
7262
  showDisclaimer: false,
7263
7263
  showFaq: false,
7264
+ showSuggestions: true,
7264
7265
  customComponents: {},
7265
7266
  defaults: {
7266
7267
  visible: null
7267
7268
  },
7268
7269
  preChatEvents: []
7269
7270
  });
7270
- const configKeys = ['hideOnNoUserResponse', 'connectWhenInView', 'showDisclaimer', 'showFaq', 'namespace', 'customComponents', 'defaults', 'layoutMode', 'api', 'zIndex', 'context', 'appContainerClassNames', 'messages', 'visible', 'visibilityCallback', 'errorCallback', 'agentParticipant', 'userParticipant', 'startChatIcon'];
7271
+ const configKeys = ['hideOnNoUserResponse', 'connectWhenInView', 'showDisclaimer', 'showFaq', 'showSuggestions', 'namespace', 'customComponents', 'defaults', 'layoutMode', 'api', 'zIndex', 'context', 'appContainerClassNames', 'messages', 'visible', 'visibilityCallback', 'errorCallback', 'agentParticipant', 'userParticipant', 'startChatIcon'];
7271
7272
 
7272
7273
  const updateState = (state, config) => {
7273
7274
  const _a = (0, general_utils_1.pick)(config, configKeys),
@@ -8016,11 +8017,9 @@ exports.setTranslations = exports.setInitialLocale = exports.i18nSlice = void 0;
8016
8017
 
8017
8018
  const toolkit_1 = __webpack_require__(40575);
8018
8019
 
8019
- const actions_1 = __webpack_require__(64134);
8020
-
8021
- const actions_2 = __webpack_require__(60915);
8020
+ const actions_1 = __webpack_require__(60915);
8022
8021
 
8023
- const actions_3 = __webpack_require__(30059);
8022
+ const actions_2 = __webpack_require__(30059);
8024
8023
 
8025
8024
  const initialState = {
8026
8025
  translations: {
@@ -8059,22 +8058,17 @@ exports.i18nSlice = (0, toolkit_1.createSlice)({
8059
8058
  },
8060
8059
  extraReducers: builder => {
8061
8060
  // Add reducers for additional action types here, and handle loading state as needed
8062
- builder.addCase(actions_2.initializeConfig.fulfilled, (state, _ref2) => {
8061
+ builder.addCase(actions_1.initializeConfig.fulfilled, (state, _ref2) => {
8063
8062
  let {
8064
8063
  payload
8065
8064
  } = _ref2;
8066
8065
  state.initialLocale = payload.locale;
8067
- }).addCase(actions_1.initializeApp.fulfilled, (state, _ref3) => {
8068
- let {
8069
- payload
8070
- } = _ref3;
8071
- state.locale = payload.locale;
8072
- }).addCase(actions_3.setLocale.fulfilled, (state, _ref4) => {
8066
+ }).addCase(actions_2.setLocale.fulfilled, (state, _ref3) => {
8073
8067
  var _context, _context2;
8074
8068
 
8075
8069
  let {
8076
8070
  payload
8077
- } = _ref4;
8071
+ } = _ref3;
8078
8072
 
8079
8073
  if (!(payload === null || payload === void 0 ? void 0 : payload.translations)) {
8080
8074
  state.isLoading = false;
@@ -8478,7 +8472,7 @@ _Object$defineProperty(exports, "__esModule", {
8478
8472
  value: true
8479
8473
  });
8480
8474
 
8481
- exports.stopIdleDetachCountdownCounter = exports.showOption = exports.setUserSelectedOptions = exports.setUserSelectedOption = exports.setUserEntryType = exports.setUploadProgress = exports.setUploadError = exports.setUploadComplete = exports.setServiceEntryMetadata = exports.setServiceDataItem = exports.setSeamlyContainerElement = exports.setParticipant = exports.setLoadedImageEventIds = exports.setIsLoading = exports.setInitialState = exports.setHistory = exports.setHeaderTitle = exports.setHeaderSubTitle = exports.setFeatures = exports.setFeatureEnabledState = exports.setEventsRead = exports.setBlockAutoEntrySwitch = exports.setActiveService = exports.setActiveEntryType = exports.resetHistoryLoadedFlag = exports.registerUpload = exports.initResumeConversationPrompt = exports.initIdleDetachCountdown = exports.hideOption = exports.decrementIdleDetachCountdownCounter = exports.clearResumeConversationPrompt = exports.clearIdleDetachCountdown = exports.clearFeatures = exports.clearEvents = exports.clearAllUploads = exports.addEvent = exports.ackEvent = exports.storeSlice = exports.initialStoreState = exports.mergeHistory = exports.isUnreadMessage = void 0;
8475
+ exports.stopIdleDetachCountdownCounter = exports.showOption = exports.setUserSelectedOptions = exports.setUserSelectedOption = exports.setUserEntryType = exports.setUploadProgress = exports.setUploadError = exports.setUploadComplete = exports.setServiceEntryMetadata = exports.setServiceDataItem = exports.setSeamlyContainerElement = exports.setParticipant = exports.setLoadedImageEventIds = exports.setIsLoading = exports.setInitialState = exports.setHistory = exports.setHeaderTitle = exports.setHeaderSubTitle = exports.setFeatures = exports.setFeatureEnabledState = exports.setEventsRead = exports.setBlockAutoEntrySwitch = exports.setActiveService = exports.setActiveEntryType = exports.resetHistoryLoadedFlag = exports.registerUpload = exports.initResumeConversationPrompt = exports.initIdleDetachCountdown = exports.hideOption = exports.decrementIdleDetachCountdownCounter = exports.clearResumeConversationPrompt = exports.clearIdleDetachCountdown = exports.clearFeatures = exports.clearEvents = exports.clearAllUploads = exports.addEvent = exports.ackEvent = exports.storeSlice = exports.initialStoreState = exports.mergeHistory = exports.orderHistory = exports.isUnreadMessage = void 0;
8482
8476
 
8483
8477
  const toolkit_1 = __webpack_require__(40575);
8484
8478
 
@@ -8518,6 +8512,8 @@ const orderHistory = events => {
8518
8512
  });
8519
8513
  };
8520
8514
 
8515
+ exports.orderHistory = orderHistory;
8516
+
8521
8517
  const mergeHistory = (stateEvents, historyEvents) => {
8522
8518
  var _context;
8523
8519
 
@@ -8532,7 +8528,7 @@ const mergeHistory = (stateEvents, historyEvents) => {
8532
8528
  // the normal merging logic there is no added effect.
8533
8529
  ).call(_context);
8534
8530
 
8535
- return orderHistory([...newHistoryEvents, ...newStateEvents]);
8531
+ return (0, exports.orderHistory)([...newHistoryEvents, ...newStateEvents]);
8536
8532
  };
8537
8533
 
8538
8534
  exports.mergeHistory = mergeHistory;
@@ -8734,7 +8730,8 @@ exports.storeSlice = (0, toolkit_1.createSlice)({
8734
8730
  if (matchedEvent) {
8735
8731
  var _context4;
8736
8732
 
8737
- state.events = orderHistory(_mapInstanceProperty(_context4 = state.events).call(_context4, m => m.payload.id === matchedEvent.payload.id ? _Object$assign(_Object$assign({}, m), {
8733
+ state.events = (0, exports.orderHistory)( //@ts-ignore
8734
+ _mapInstanceProperty(_context4 = state.events).call(_context4, m => m.payload.id === matchedEvent.payload.id ? _Object$assign(_Object$assign({}, m), {
8738
8735
  payload: _Object$assign(_Object$assign({}, m.payload), {
8739
8736
  id,
8740
8737
  occurredAt
@@ -8806,9 +8803,11 @@ exports.storeSlice = (0, toolkit_1.createSlice)({
8806
8803
  }
8807
8804
 
8808
8805
  const {
8809
- entry,
8810
- uploads
8806
+ entry
8811
8807
  } = activeServiceSettings;
8808
+ const {
8809
+ upload
8810
+ } = entry.options;
8812
8811
  const historyNewEntryMeta = calculateNewEntryMeta(_Object$assign(_Object$assign(_Object$assign({}, state.entryMeta), entry), {
8813
8812
  active: entry.default || seamly_utils_1.payloadTypes.text,
8814
8813
  options: _Object$assign({}, entry && entry.options ? entry.options : {})
@@ -8825,7 +8824,7 @@ exports.storeSlice = (0, toolkit_1.createSlice)({
8825
8824
  const entryType = ((_a = lastParticipantEventPayload === null || lastParticipantEventPayload === void 0 ? void 0 : lastParticipantEventPayload.entry) === null || _a === void 0 ? void 0 : _a.type) || {};
8826
8825
  newFeatures = _Object$assign(_Object$assign({}, newFeatures), {
8827
8826
  uploads: {
8828
- enabled: !!(uploads && uploads.enabled),
8827
+ enabled: !!(upload && upload.enabled),
8829
8828
  enabledFromEntry: entryType === seamly_utils_1.entryTypes.upload
8830
8829
  }
8831
8830
  });
@@ -8918,8 +8917,8 @@ exports.storeSlice = (0, toolkit_1.createSlice)({
8918
8917
  payload
8919
8918
  } = _ref11;
8920
8919
 
8921
- if (state.serviceInfo.activeServiceSessionId !== payload.activeServiceSessionId) {
8922
- state.serviceInfo.activeServiceSessionId = payload.activeServiceSessionId;
8920
+ if (state.serviceInfo.activeServiceSessionId !== payload) {
8921
+ state.serviceInfo.activeServiceSessionId = payload;
8923
8922
  }
8924
8923
  },
8925
8924
  setHeaderTitle: (state, _ref12) => {
@@ -9145,7 +9144,7 @@ _Object$defineProperty(exports, "__esModule", {
9145
9144
 
9146
9145
  exports.useLocaleNativeName = exports.useTranslationsContainer = exports.useTranslatedEventData = exports.useTranslations = void 0;
9147
9146
 
9148
- const selectors_1 = __webpack_require__(85238);
9147
+ const selectors_1 = __webpack_require__(86787);
9149
9148
 
9150
9149
  const slice_1 = __webpack_require__(90841);
9151
9150
 
@@ -9162,7 +9161,7 @@ function useTranslations() {
9162
9161
  sendAction
9163
9162
  } = (0, seamly_hooks_1.useSeamlyCommands)();
9164
9163
  const dispatch = (0, react_redux_1.useDispatch)();
9165
- const enableTranslations = (0, seamly_hooks_1.useStableCallback)(locale => {
9164
+ const enableTranslations = (0, hooks_1.useCallback)(locale => {
9166
9165
  sendAction({
9167
9166
  type: seamly_utils_1.actionTypes.setTranslation,
9168
9167
  body: {
@@ -9171,18 +9170,15 @@ function useTranslations() {
9171
9170
  }
9172
9171
  });
9173
9172
  dispatch((0, slice_1.enableTranslation)(locale));
9174
- }, // eslint-disable-next-line @typescript-eslint/ban-ts-comment
9175
- // @ts-ignore
9176
- [sendAction, dispatch]);
9177
- const disableTranslations = (0, seamly_hooks_1.useStableCallback)(() => {
9173
+ }, [sendAction, dispatch]);
9174
+ const disableTranslations = (0, hooks_1.useCallback)(() => {
9178
9175
  sendAction({
9179
9176
  type: seamly_utils_1.actionTypes.setTranslation,
9180
9177
  body: {
9181
9178
  enabled: false
9182
9179
  }
9183
9180
  });
9184
- dispatch((0, slice_1.disableTranslation)()); // eslint-disable-next-line @typescript-eslint/ban-ts-comment
9185
- // @ts-ignore
9181
+ dispatch((0, slice_1.disableTranslation)());
9186
9182
  }, [sendAction, dispatch]);
9187
9183
  const {
9188
9184
  languages,
@@ -9207,54 +9203,49 @@ function useTranslations() {
9207
9203
 
9208
9204
  exports.useTranslations = useTranslations;
9209
9205
 
9210
- function useTranslatedEventData(_ref2) {
9211
- let {
9212
- payload
9213
- } = _ref2;
9214
- const payloadId = payload === null || payload === void 0 ? void 0 : payload.id;
9215
- let body;
9216
- let translatedBody;
9217
-
9218
- switch (payload === null || payload === void 0 ? void 0 : payload.type) {
9219
- case 'participant':
9220
- body = payload.participant.introduction;
9221
- translatedBody = payload.participant.translatedIntroduction;
9222
- break;
9206
+ function useTranslatedEventData(channelEvent) {
9207
+ const getTranslations = () => {
9208
+ var _a, _b, _c;
9223
9209
 
9224
- default:
9225
- body = payload === null || payload === void 0 ? void 0 : payload.body;
9226
- translatedBody = payload === null || payload === void 0 ? void 0 : payload.translatedBody;
9227
- }
9210
+ if (!channelEvent.payload) return {
9211
+ body: undefined,
9212
+ translatedBody: undefined
9213
+ };
9228
9214
 
9229
- const hasTranslation = !!translatedBody;
9230
- const isTranslated = (0, react_redux_1.useSelector)(store => // @ts-ignore
9231
- (0, selectors_1.getIsPayloadTranslated)(store, payloadId));
9232
- const dispatch = (0, react_redux_1.useDispatch)();
9233
- const toggleTranslation = (0, seamly_hooks_1.useStableCallback)(() => {
9234
- if (isTranslated) {
9235
- dispatch((0, slice_1.disableEvent)(payloadId));
9236
- } else {
9237
- dispatch((0, slice_1.enableEvent)(payloadId));
9238
- } // eslint-disable-next-line @typescript-eslint/ban-ts-comment
9239
- // @ts-ignore
9215
+ if (channelEvent.type === 'participant') {
9216
+ return {
9217
+ body: (_a = channelEvent.payload) === null || _a === void 0 ? void 0 : _a.participant.introduction,
9218
+ translatedBody: (_c = (_b = channelEvent.payload) === null || _b === void 0 ? void 0 : _b.participant) === null || _c === void 0 ? void 0 : _c.translatedIntroduction
9219
+ };
9220
+ }
9221
+
9222
+ return {
9223
+ body: channelEvent.payload.body,
9224
+ translatedBody: channelEvent.payload.translatedBody
9225
+ };
9226
+ };
9240
9227
 
9241
- }, [isTranslated, payloadId, dispatch]);
9242
- return [hasTranslation && isTranslated ? translatedBody === null || translatedBody === void 0 ? void 0 : translatedBody.data : body, {
9228
+ const {
9229
+ translatedBody,
9230
+ body
9231
+ } = getTranslations();
9232
+ const hasTranslation = !!translatedBody;
9233
+ const isTranslated = (0, react_redux_1.useSelector)((0, selectors_1.selectIsTranslated)(channelEvent));
9234
+ return {
9235
+ body: hasTranslation && isTranslated ? translatedBody === null || translatedBody === void 0 ? void 0 : translatedBody.data : body,
9243
9236
  hasTranslation,
9244
9237
  isTranslated: isTranslated && hasTranslation,
9245
- toggleTranslation,
9246
- translatedBy: translatedBody === null || translatedBody === void 0 ? void 0 : translatedBody.translatedBy,
9247
9238
  locale: translatedBody === null || translatedBody === void 0 ? void 0 : translatedBody.locale
9248
- }];
9239
+ };
9249
9240
  }
9250
9241
 
9251
9242
  exports.useTranslatedEventData = useTranslatedEventData;
9252
9243
 
9253
9244
  function useTranslationsContainer() {
9254
- const id = (0, react_redux_1.useSelector)(_ref3 => {
9245
+ const id = (0, react_redux_1.useSelector)(_ref2 => {
9255
9246
  let {
9256
9247
  translations
9257
- } = _ref3;
9248
+ } = _ref2;
9258
9249
  return translations.containerId;
9259
9250
  });
9260
9251
  const focusContainer = (0, seamly_hooks_1.useElementFocusingById)(id);
@@ -9281,7 +9272,7 @@ exports.useLocaleNativeName = useLocaleNativeName;
9281
9272
 
9282
9273
  /***/ }),
9283
9274
 
9284
- /***/ 90841:
9275
+ /***/ 86787:
9285
9276
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
9286
9277
 
9287
9278
  "use strict";
@@ -9289,8 +9280,50 @@ exports.useLocaleNativeName = useLocaleNativeName;
9289
9280
 
9290
9281
  var _Object$defineProperty = __webpack_require__(96718);
9291
9282
 
9283
+ var _everyInstanceProperty = __webpack_require__(2250);
9284
+
9285
+ var _Object$values = __webpack_require__(3665);
9286
+
9292
9287
  var _includesInstanceProperty = __webpack_require__(58118);
9293
9288
 
9289
+ _Object$defineProperty(exports, "__esModule", {
9290
+ value: true
9291
+ });
9292
+
9293
+ exports.selectIsTranslated = void 0;
9294
+
9295
+ const toolkit_1 = __webpack_require__(40575);
9296
+
9297
+ const selectIsTranslated = channelEvent => (0, toolkit_1.createSelector)(store => store.translations.translatedEventGroups, translatedEventGroups => {
9298
+ var _context;
9299
+
9300
+ return _everyInstanceProperty(_context = _Object$values(translatedEventGroups)).call(_context, value => {
9301
+ var _a;
9302
+
9303
+ return !_includesInstanceProperty(value).call(value, (_a = channelEvent === null || channelEvent === void 0 ? void 0 : channelEvent.payload) === null || _a === void 0 ? void 0 : _a.id);
9304
+ });
9305
+ });
9306
+
9307
+ exports.selectIsTranslated = selectIsTranslated;
9308
+
9309
+ /***/ }),
9310
+
9311
+ /***/ 90841:
9312
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
9313
+
9314
+ "use strict";
9315
+
9316
+
9317
+ var _Object$defineProperty = __webpack_require__(96718);
9318
+
9319
+ var _reduceInstanceProperty = __webpack_require__(24282);
9320
+
9321
+ var _spliceInstanceProperty = __webpack_require__(39940);
9322
+
9323
+ var _Object$entries = __webpack_require__(2018);
9324
+
9325
+ var _mapInstanceProperty = __webpack_require__(97606);
9326
+
9294
9327
  var _filterInstanceProperty = __webpack_require__(14418);
9295
9328
 
9296
9329
  var _a;
@@ -9299,7 +9332,7 @@ _Object$defineProperty(exports, "__esModule", {
9299
9332
  value: true
9300
9333
  });
9301
9334
 
9302
- exports.disableEvent = exports.enableEvent = exports.disableTranslation = exports.enableTranslation = exports.translationSlice = exports.translationsInitialState = void 0;
9335
+ exports.disableEventsTranslation = exports.enableEventsTranslation = exports.disableTranslation = exports.enableTranslation = exports.translationSlice = exports.translationsInitialState = void 0;
9303
9336
 
9304
9337
  const toolkit_1 = __webpack_require__(40575);
9305
9338
 
@@ -9307,22 +9340,69 @@ const actions_1 = __webpack_require__(64134);
9307
9340
 
9308
9341
  const actions_2 = __webpack_require__(60915);
9309
9342
 
9343
+ const slice_1 = __webpack_require__(11153);
9344
+
9310
9345
  exports.translationsInitialState = {
9311
9346
  isActive: false,
9312
9347
  currentLocale: undefined,
9313
9348
  isAvailable: false,
9314
9349
  languages: [],
9315
- originalPayloadIds: [],
9316
- containerId: (0, toolkit_1.nanoid)()
9350
+ containerId: (0, toolkit_1.nanoid)(),
9351
+ translatedEventGroups: {}
9317
9352
  };
9353
+
9354
+ const getLastGroupId = (events, id) => {
9355
+ var _context, _context2;
9356
+
9357
+ const eventGroup = _reduceInstanceProperty(_context = [...events]).call(_context, (acc, _ref, _index, arr) => {
9358
+ let {
9359
+ payload
9360
+ } = _ref;
9361
+
9362
+ var _a;
9363
+
9364
+ if (acc[id]) {
9365
+ // Splice to break early (make the reducer think we are done)
9366
+ // This is needed to avoid events of other groups from being added to the array.
9367
+ // @ts-ignore
9368
+ if ((payload === null || payload === void 0 ? void 0 : payload.type) === 'divider' && ((_a = payload === null || payload === void 0 ? void 0 : payload.body) === null || _a === void 0 ? void 0 : _a.translationEnabled)) {
9369
+ _spliceInstanceProperty(arr).call(arr, 0);
9370
+
9371
+ return acc;
9372
+ }
9373
+
9374
+ acc[id].push(payload.id);
9375
+ }
9376
+
9377
+ if (payload.id === id) acc[id] = [];
9378
+ return acc;
9379
+ }, {});
9380
+
9381
+ const [[groupId, eventIds]] = _Object$entries(eventGroup);
9382
+
9383
+ const lastGroupId = _mapInstanceProperty(_context2 = _filterInstanceProperty(events //@ts-ignore
9384
+ ).call(events //@ts-ignore
9385
+ , event => {
9386
+ var _a;
9387
+
9388
+ return ((_a = event.payload) === null || _a === void 0 ? void 0 : _a.type) === 'divider';
9389
+ })).call(_context2, event => event.payload.id).at(-1);
9390
+
9391
+ return {
9392
+ lastGroupId,
9393
+ groupId,
9394
+ eventIds
9395
+ };
9396
+ };
9397
+
9318
9398
  exports.translationSlice = (0, toolkit_1.createSlice)({
9319
9399
  name: 'translation',
9320
9400
  initialState: exports.translationsInitialState,
9321
9401
  reducers: {
9322
- enableTranslation: (state, _ref) => {
9402
+ enableTranslation: (state, _ref2) => {
9323
9403
  let {
9324
9404
  payload
9325
- } = _ref;
9405
+ } = _ref2;
9326
9406
  state.isActive = true;
9327
9407
  state.currentLocale = payload;
9328
9408
  },
@@ -9330,48 +9410,50 @@ exports.translationSlice = (0, toolkit_1.createSlice)({
9330
9410
  state.isActive = false;
9331
9411
  state.currentLocale = undefined;
9332
9412
  },
9333
- enableEvent: (state, _ref2) => {
9334
- var _context, _context2;
9335
-
9413
+ enableEventsTranslation: (state, _ref3) => {
9336
9414
  let {
9337
- payload
9338
- } = _ref2;
9339
-
9340
- if (!_includesInstanceProperty(_context = state.originalPayloadIds).call(_context, payload)) {
9341
- return;
9342
- }
9343
-
9344
- state.originalPayloadIds = _filterInstanceProperty(_context2 = state.originalPayloadIds).call(_context2, id => id !== payload);
9415
+ payload: {
9416
+ events,
9417
+ id
9418
+ }
9419
+ } = _ref3;
9420
+ delete state.translatedEventGroups[id];
9421
+ const {
9422
+ lastGroupId
9423
+ } = getLastGroupId(events, id);
9424
+ state.lastGroupId = lastGroupId;
9345
9425
  },
9346
- disableEvent: (state, _ref3) => {
9347
- var _context3;
9348
-
9426
+ disableEventsTranslation: (state, _ref4) => {
9349
9427
  let {
9350
- payload
9351
- } = _ref3;
9352
-
9353
- if (_includesInstanceProperty(_context3 = state.originalPayloadIds).call(_context3, payload)) {
9354
- return;
9355
- }
9356
-
9357
- state.originalPayloadIds.push(payload);
9428
+ payload: {
9429
+ events,
9430
+ id
9431
+ }
9432
+ } = _ref4;
9433
+ const {
9434
+ lastGroupId,
9435
+ groupId,
9436
+ eventIds
9437
+ } = getLastGroupId(events, id);
9438
+ state.lastGroupId = lastGroupId;
9439
+ state.translatedEventGroups[groupId] = eventIds;
9358
9440
  }
9359
9441
  },
9360
9442
  extraReducers: builder => {
9361
- builder.addCase(actions_1.initializeApp.fulfilled, (state, _ref4) => {
9443
+ builder.addCase(actions_1.initializeApp.fulfilled, (state, _ref5) => {
9362
9444
  let {
9363
9445
  payload
9364
- } = _ref4;
9446
+ } = _ref5;
9365
9447
 
9366
9448
  var _a, _b;
9367
9449
 
9368
9450
  if (!((_b = (_a = payload.config) === null || _a === void 0 ? void 0 : _a.context) === null || _b === void 0 ? void 0 : _b.translationLocale)) return;
9369
9451
  state.isActive = true;
9370
9452
  state.currentLocale = payload.locale;
9371
- }).addCase(actions_2.initializeConfig.fulfilled, (state, _ref5) => {
9453
+ }).addCase(actions_2.initializeConfig.fulfilled, (state, _ref6) => {
9372
9454
  let {
9373
9455
  payload
9374
- } = _ref5;
9456
+ } = _ref6;
9375
9457
 
9376
9458
  var _a;
9377
9459
 
@@ -9379,10 +9461,18 @@ exports.translationSlice = (0, toolkit_1.createSlice)({
9379
9461
  if (!feature) return;
9380
9462
  state.isAvailable = feature.enabled === true;
9381
9463
  state.languages = feature.languages;
9464
+ }).addCase(slice_1.addEvent, (state, _ref7) => {
9465
+ let {
9466
+ payload
9467
+ } = _ref7;
9468
+
9469
+ if (state.translatedEventGroups[state.lastGroupId]) {
9470
+ state.translatedEventGroups[state.lastGroupId].push(payload.payload.id);
9471
+ }
9382
9472
  });
9383
9473
  }
9384
9474
  });
9385
- _a = exports.translationSlice.actions, exports.enableTranslation = _a.enableTranslation, exports.disableTranslation = _a.disableTranslation, exports.enableEvent = _a.enableEvent, exports.disableEvent = _a.disableEvent;
9475
+ _a = exports.translationSlice.actions, exports.enableTranslation = _a.enableTranslation, exports.disableTranslation = _a.disableTranslation, exports.enableEventsTranslation = _a.enableEventsTranslation, exports.disableEventsTranslation = _a.disableEventsTranslation;
9386
9476
  exports["default"] = exports.translationSlice.reducer;
9387
9477
 
9388
9478
  /***/ }),
@@ -12566,7 +12656,7 @@ class API {
12566
12656
  return {
12567
12657
  clientName: "@seamly/web-ui",
12568
12658
  clientVariant: this.layoutMode,
12569
- clientVersion: "20.8.0-alpha.1",
12659
+ clientVersion: "20.8.0-beta.1",
12570
12660
  currentUrl: window.location.toString(),
12571
12661
  screenResolution: `${window.screen.width}x${window.screen.height}`,
12572
12662
  timezone: getTimeZone(),
@@ -12809,35 +12899,6 @@ function createI18nMiddleware(_ref) {
12809
12899
 
12810
12900
  /***/ }),
12811
12901
 
12812
- /***/ 85238:
12813
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
12814
-
12815
- "use strict";
12816
- __webpack_require__.r(__webpack_exports__);
12817
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12818
- /* harmony export */ "getIsPayloadTranslated": function() { return /* binding */ getIsPayloadTranslated; },
12819
- /* harmony export */ "getOriginalPayloadIds": function() { return /* binding */ getOriginalPayloadIds; }
12820
- /* harmony export */ });
12821
- /* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(58118);
12822
- /* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_0__);
12823
- /* harmony import */ var _reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(20573);
12824
-
12825
-
12826
- const getOriginalPayloadIds = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_1__.createSelector)(_ref => {
12827
- let {
12828
- translations
12829
- } = _ref;
12830
- return translations;
12831
- }, _ref2 => {
12832
- let {
12833
- originalPayloadIds
12834
- } = _ref2;
12835
- return originalPayloadIds;
12836
- });
12837
- const getIsPayloadTranslated = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_1__.createSelector)([getOriginalPayloadIds, (_, payloadId) => payloadId], (payloadIds, payloadId) => !_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_0___default()(payloadIds).call(payloadIds, payloadId));
12838
-
12839
- /***/ }),
12840
-
12841
12902
  /***/ 12629:
12842
12903
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
12843
12904
 
@@ -13282,12 +13343,14 @@ const SeamlyEventSubscriber = _ref => {
13282
13343
  eventPayload = (0,objectWithoutProperties/* default */.Z)(payload, _excluded);
13283
13344
 
13284
13345
  const {
13285
- uploads,
13286
13346
  entry
13287
13347
  } = serviceSettings;
13348
+ const {
13349
+ upload
13350
+ } = entry.options;
13288
13351
  dispatch((0,store_slice.setFeatureEnabledState)({
13289
13352
  key: seamly_utils.featureKeys.uploads,
13290
- enabled: !!(uploads && uploads.enabled)
13353
+ enabled: !!(upload && upload.enabled)
13291
13354
  }));
13292
13355
  dispatch((0,store_slice.setServiceEntryMetadata)(entry));
13293
13356
  dispatch((0,store_slice.setActiveService)(payload.serviceSessionId));
@@ -16184,7 +16247,9 @@ const Image = _ref => {
16184
16247
  } = _ref,
16185
16248
  props = (0,objectWithoutProperties/* default */.Z)(_ref, _excluded);
16186
16249
 
16187
- const [body] = (0,translations_hooks.useTranslatedEventData)(event);
16250
+ const {
16251
+ body
16252
+ } = (0,translations_hooks.useTranslatedEventData)(event);
16188
16253
  const {
16189
16254
  description,
16190
16255
  url,
@@ -16246,7 +16311,9 @@ const Video = _ref => {
16246
16311
  } = _ref,
16247
16312
  props = (0,objectWithoutProperties/* default */.Z)(_ref, video_excluded);
16248
16313
 
16249
- const [body] = (0,translations_hooks.useTranslatedEventData)(event);
16314
+ const {
16315
+ body
16316
+ } = (0,translations_hooks.useTranslatedEventData)(event);
16250
16317
  const {
16251
16318
  description,
16252
16319
  url
@@ -16305,6 +16372,8 @@ const Divider = _ref => {
16305
16372
  };
16306
16373
 
16307
16374
  /* harmony default export */ var variants_default = (Divider);
16375
+ // EXTERNAL MODULE: ./src/javascripts/domains/translations/slice.ts
16376
+ var translations_slice = __webpack_require__(90841);
16308
16377
  ;// CONCATENATED MODULE: ./src/javascripts/ui/components/conversation/event/divider/variants/new-translation.js
16309
16378
 
16310
16379
 
@@ -16313,6 +16382,11 @@ const Divider = _ref => {
16313
16382
 
16314
16383
 
16315
16384
 
16385
+
16386
+
16387
+
16388
+
16389
+
16316
16390
  const NewTranslationDivider = _ref => {
16317
16391
  let {
16318
16392
  event
@@ -16320,15 +16394,35 @@ const NewTranslationDivider = _ref => {
16320
16394
  const {
16321
16395
  t
16322
16396
  } = (0,i18n_hooks.useI18n)();
16397
+ const events = (0,seamly_hooks.useEvents)();
16323
16398
  const {
16324
- translationEnabled,
16325
- translationLocale,
16326
- text
16327
- } = event.payload.body;
16399
+ body: {
16400
+ translationEnabled,
16401
+ translationLocale,
16402
+ text
16403
+ },
16404
+ id
16405
+ } = event.payload;
16328
16406
  const {
16329
16407
  enableTranslations
16330
16408
  } = (0,translations_hooks.useTranslations)();
16331
16409
  const localeNativeName = (0,translations_hooks.useLocaleNativeName)(translationLocale);
16410
+ const translatedEventGroups = (0,es.useSelector)(state => state.translations.translatedEventGroups);
16411
+ const dispatch = (0,es.useDispatch)();
16412
+ const toggleTranslations = (0,hooks_module.useCallback)(() => {
16413
+ if (!translatedEventGroups[id]) {
16414
+ dispatch((0,translations_slice.disableEventsTranslation)({
16415
+ events,
16416
+ id
16417
+ }));
16418
+ return;
16419
+ }
16420
+
16421
+ dispatch((0,translations_slice.enableEventsTranslation)({
16422
+ events,
16423
+ id
16424
+ }));
16425
+ }, [dispatch, events, id, translatedEventGroups]);
16332
16426
 
16333
16427
  const handleRestartButtonclick = () => {
16334
16428
  enableTranslations(translationLocale);
@@ -16342,10 +16436,17 @@ const NewTranslationDivider = _ref => {
16342
16436
  children: t(translationEnabled ? 'translations.divider.startText' : 'translations.divider.stopText', {
16343
16437
  language: localeNativeName
16344
16438
  })
16345
- }), translationEnabled ? (0,jsxRuntime_module.jsx)("p", {
16346
- children: text
16439
+ }), translationEnabled ? (0,jsxRuntime_module.jsxs)(jsxRuntime_module.Fragment, {
16440
+ children: [(0,jsxRuntime_module.jsx)("p", {
16441
+ children: text
16442
+ }), (0,jsxRuntime_module.jsx)("button", {
16443
+ className: (0,css.className)('button', 'button--secondary'),
16444
+ onClick: toggleTranslations,
16445
+ children: t(!translatedEventGroups[id] ? 'translations.toggle.hideTranslationsButtonText' : 'translations.toggle.showTranslationsButtonText')
16446
+ })]
16347
16447
  }) : (0,jsxRuntime_module.jsx)("button", {
16348
16448
  className: (0,css.className)('button', 'button--secondary'),
16449
+ "data-testid": "restartTranslationButton",
16349
16450
  onClick: handleRestartButtonclick,
16350
16451
  children: t('translations.divider.restartButtonText')
16351
16452
  })]
@@ -16423,7 +16524,9 @@ const Translation = _ref => {
16423
16524
  const {
16424
16525
  t
16425
16526
  } = (0,i18n_hooks.useI18n)();
16426
- const [body] = (0,translations_hooks.useTranslatedEventData)(event);
16527
+ const {
16528
+ body
16529
+ } = (0,translations_hooks.useTranslatedEventData)(event);
16427
16530
  return (0,jsxRuntime_module.jsx)(message_container["default"], translation_objectSpread(translation_objectSpread({
16428
16531
  type: "text",
16429
16532
  event: event
@@ -16445,7 +16548,9 @@ const Participant = _ref => {
16445
16548
  const {
16446
16549
  participant
16447
16550
  } = event.payload;
16448
- const [introduction] = (0,translations_hooks.useTranslatedEventData)(event);
16551
+ const {
16552
+ body: introduction
16553
+ } = (0,translations_hooks.useTranslatedEventData)(event);
16449
16554
 
16450
16555
  if (!introduction) {
16451
16556
  return null;
@@ -16494,7 +16599,9 @@ const Splash = _ref => {
16494
16599
  const {
16495
16600
  payload
16496
16601
  } = event;
16497
- const [body] = (0,translations_hooks.useTranslatedEventData)(event);
16602
+ const {
16603
+ body
16604
+ } = (0,translations_hooks.useTranslatedEventData)(event);
16498
16605
  const eventClick = (0,use_event_link_click_handler/* default */.Z)(payload.id);
16499
16606
  return (0,jsxRuntime_module.jsx)(message_container["default"], splash_objectSpread(splash_objectSpread({
16500
16607
  type: "splash",
@@ -16563,7 +16670,9 @@ const Upload = _ref2 => {
16563
16670
  const {
16564
16671
  t
16565
16672
  } = (0,i18n_hooks.useI18n)();
16566
- const [body] = (0,translations_hooks.useTranslatedEventData)(event);
16673
+ const {
16674
+ body
16675
+ } = (0,translations_hooks.useTranslatedEventData)(event);
16567
16676
  const {
16568
16677
  fromClient
16569
16678
  } = event.payload;
@@ -16614,7 +16723,9 @@ const Cta = _ref => {
16614
16723
  let {
16615
16724
  event
16616
16725
  } = _ref;
16617
- const [body] = (0,translations_hooks.useTranslatedEventData)(event);
16726
+ const {
16727
+ body
16728
+ } = (0,translations_hooks.useTranslatedEventData)(event);
16618
16729
  const eventClick = (0,use_event_link_click_handler/* default */.Z)(event.payload.id);
16619
16730
  const {
16620
16731
  emitEvent
@@ -17040,7 +17151,9 @@ const CarouselMessage = _ref => {
17040
17151
  let {
17041
17152
  event
17042
17153
  } = _ref;
17043
- const [body] = (0,translations_hooks.useTranslatedEventData)(event);
17154
+ const {
17155
+ body
17156
+ } = (0,translations_hooks.useTranslatedEventData)(event);
17044
17157
  const slides = body.cards;
17045
17158
  return (0,jsxRuntime_module.jsx)(message_container["default"], {
17046
17159
  event: event,
@@ -17080,7 +17193,9 @@ const CardMessage = _ref => {
17080
17193
  let {
17081
17194
  event
17082
17195
  } = _ref;
17083
- const [body] = (0,translations_hooks.useTranslatedEventData)(event);
17196
+ const {
17197
+ body
17198
+ } = (0,translations_hooks.useTranslatedEventData)(event);
17084
17199
  const descriptionId = (0,seamly_hooks.useGeneratedId)();
17085
17200
  return (0,jsxRuntime_module.jsx)(message_container["default"], {
17086
17201
  type: "card",
@@ -17130,13 +17245,16 @@ function conversation_suggestions_objectSpread(target) { for (var i = 1; i < arg
17130
17245
 
17131
17246
 
17132
17247
 
17248
+
17133
17249
 
17134
17250
 
17135
17251
  const useSuggestions = event => {
17136
17252
  const {
17137
17253
  payload
17138
17254
  } = event;
17139
- const [suggestions] = (0,translations_hooks.useTranslatedEventData)(event);
17255
+ const {
17256
+ body: suggestions
17257
+ } = (0,translations_hooks.useTranslatedEventData)(event);
17140
17258
  return {
17141
17259
  suggestions,
17142
17260
  payload
@@ -17160,6 +17278,9 @@ const ConversationSuggestions = _ref => {
17160
17278
  suggestions,
17161
17279
  payload
17162
17280
  } = useSuggestions(event);
17281
+ const {
17282
+ showSuggestions
17283
+ } = (0,hooks.useConfig)();
17163
17284
  const events = (0,seamly_hooks.useEvents)();
17164
17285
  const {
17165
17286
  t
@@ -17196,7 +17317,7 @@ const ConversationSuggestions = _ref => {
17196
17317
  addMessageBubble(question);
17197
17318
  }, [dispatch, sendAction, payload.id, addMessageBubble]);
17198
17319
 
17199
- if (!isExpanded || userHasResponded || !hasLastTransactionEvent) {
17320
+ if (!isExpanded || userHasResponded || !hasLastTransactionEvent || !showSuggestions) {
17200
17321
  return null;
17201
17322
  }
17202
17323
 
@@ -17370,6 +17491,8 @@ const PrivacyDisclaimer = () => {
17370
17491
  };
17371
17492
 
17372
17493
  /* harmony default export */ var privacy_disclaimer = (PrivacyDisclaimer);
17494
+ // EXTERNAL MODULE: ./src/javascripts/ui/hooks/focus-helper-hooks.js
17495
+ var focus_helper_hooks = __webpack_require__(68956);
17373
17496
  // EXTERNAL MODULE: ./src/javascripts/ui/hooks/seamly-hooks.js + 2 modules
17374
17497
  var seamly_hooks = __webpack_require__(82849);
17375
17498
  // EXTERNAL MODULE: ./src/javascripts/ui/hooks/seamly-state-hooks.js
@@ -17484,6 +17607,7 @@ const Loader = () => {
17484
17607
 
17485
17608
 
17486
17609
 
17610
+
17487
17611
  const Events = () => {
17488
17612
  const events = (0,seamly_state_hooks.useEvents)();
17489
17613
  let prevParticipant = null;
@@ -17528,11 +17652,15 @@ const Conversation = () => {
17528
17652
  const skiplinkTargetId = (0,seamly_hooks.useSkiplink)();
17529
17653
  const focusSkiplinkTarget = (0,seamly_hooks.useSkiplinkTargetFocusing)();
17530
17654
  const loadedImageEventIds = (0,seamly_state_hooks.useLoadedImageEventIds)();
17531
- (0,hooks_module.useEffect)(() => {
17655
+ (0,hooks_module.useLayoutEffect)(() => {
17532
17656
  const containerElement = chatBodyContainer.current;
17533
17657
 
17534
17658
  if (containerElement) {
17535
- containerElement.scrollTop = containerElement.scrollHeight;
17659
+ requestAnimationFrame(async () => {
17660
+ await (0,focus_helper_hooks/* timeout */.Vs)(30); // Wait for next frame tick
17661
+
17662
+ containerElement.scrollTop = containerElement.scrollHeight;
17663
+ });
17536
17664
  }
17537
17665
  }, [events, isLoading, isOpen, loadedImageEventIds]);
17538
17666
 
@@ -17739,7 +17867,9 @@ const useChoicePrompt = event => {
17739
17867
  activeServiceSessionId
17740
17868
  } = (0,ui_hooks_seamly_hooks__WEBPACK_IMPORTED_MODULE_13__.useSeamlyServiceInfo)();
17741
17869
  const lastEventId = (0,ui_hooks_seamly_hooks__WEBPACK_IMPORTED_MODULE_13__.useLastMessageEventId)();
17742
- const [body] = (0,domains_translations_hooks__WEBPACK_IMPORTED_MODULE_18__.useTranslatedEventData)(event);
17870
+ const {
17871
+ body
17872
+ } = (0,domains_translations_hooks__WEBPACK_IMPORTED_MODULE_18__.useTranslatedEventData)(event);
17743
17873
  const {
17744
17874
  service
17745
17875
  } = payload;
@@ -18162,7 +18292,9 @@ const Text = _ref => {
18162
18292
  } = _ref,
18163
18293
  props = (0,_babel_runtime_corejs3_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z)(_ref, _excluded);
18164
18294
 
18165
- const [body] = (0,domains_translations_hooks__WEBPACK_IMPORTED_MODULE_12__.useTranslatedEventData)(event);
18295
+ const {
18296
+ body
18297
+ } = (0,domains_translations_hooks__WEBPACK_IMPORTED_MODULE_12__.useTranslatedEventData)(event);
18166
18298
  const eventClick = (0,_hooks_use_event_link_click_handler__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z)(event.payload.id);
18167
18299
  const containerProps = (0,preact_hooks__WEBPACK_IMPORTED_MODULE_10__.useMemo)(() => {
18168
18300
  if (event.payload.optimisticallyInjected) {
@@ -18219,13 +18351,11 @@ __webpack_require__.r(__webpack_exports__);
18219
18351
  /* harmony import */ var ui_hooks_component_helper_hooks__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(53357);
18220
18352
  /* harmony import */ var domains_translations_hooks__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(32108);
18221
18353
  /* harmony import */ var domains_translations_hooks__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(domains_translations_hooks__WEBPACK_IMPORTED_MODULE_12__);
18222
- /* harmony import */ var domains_i18n_hooks__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(50546);
18223
- /* harmony import */ var domains_i18n_hooks__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(domains_i18n_hooks__WEBPACK_IMPORTED_MODULE_13__);
18224
- /* harmony import */ var _event_event_participant__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(37409);
18225
- /* harmony import */ var preact_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(16584);
18354
+ /* harmony import */ var _event_event_participant__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(37409);
18355
+ /* harmony import */ var preact_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(16584);
18226
18356
 
18227
18357
 
18228
- const _excluded = ["showParticipant", "showTranslationToggle", "event", "type", "modifiers", "children", "bodyProps", "info"];
18358
+ const _excluded = ["showParticipant", "event", "type", "modifiers", "children", "bodyProps", "info"];
18229
18359
 
18230
18360
  function ownKeys(object, enumerableOnly) { var keys = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_2___default()(object); if ((_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_3___default())) { var symbols = _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_3___default()(object); enumerableOnly && (symbols = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_4___default()(symbols).call(symbols, function (sym) { return _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_5___default()(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
18231
18361
 
@@ -18247,11 +18377,9 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
18247
18377
 
18248
18378
 
18249
18379
 
18250
-
18251
18380
  function MessageContainer(_ref) {
18252
18381
  let {
18253
18382
  showParticipant = true,
18254
- showTranslationToggle = true,
18255
18383
  event,
18256
18384
  type,
18257
18385
  modifiers,
@@ -18263,14 +18391,10 @@ function MessageContainer(_ref) {
18263
18391
 
18264
18392
  const classNames = (0,ui_hooks_component_helper_hooks__WEBPACK_IMPORTED_MODULE_11__/* .useSeamlyMessageContainerClassNames */ .j)(event);
18265
18393
  const {
18266
- t
18267
- } = (0,domains_i18n_hooks__WEBPACK_IMPORTED_MODULE_13__.useI18n)();
18268
- const [, {
18269
18394
  hasTranslation,
18270
18395
  isTranslated,
18271
- toggleTranslation,
18272
18396
  locale
18273
- }] = (0,domains_translations_hooks__WEBPACK_IMPORTED_MODULE_12__.useTranslatedEventData)(event);
18397
+ } = (0,domains_translations_hooks__WEBPACK_IMPORTED_MODULE_12__.useTranslatedEventData)(event);
18274
18398
 
18275
18399
  if (type) {
18276
18400
  classNames.push(`message--type-${type}`);
@@ -18304,27 +18428,20 @@ function MessageContainer(_ref) {
18304
18428
  });
18305
18429
  }
18306
18430
 
18307
- return (0,preact_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)(preact_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.Fragment, {
18308
- children: (0,preact_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsxs)("div", _objectSpread(_objectSpread({
18431
+ return (0,preact_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)(preact_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.Fragment, {
18432
+ children: (0,preact_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsxs)("div", _objectSpread(_objectSpread({
18309
18433
  className: (0,lib_css__WEBPACK_IMPORTED_MODULE_10__.className)(classNames)
18310
18434
  }, props), {}, {
18311
- children: [showParticipant && (0,preact_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)(_event_event_participant__WEBPACK_IMPORTED_MODULE_14__["default"], {
18435
+ children: [showParticipant && (0,preact_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)(_event_event_participant__WEBPACK_IMPORTED_MODULE_13__["default"], {
18312
18436
  eventPayload: event.payload
18313
- }), (0,preact_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)("div", _objectSpread(_objectSpread({
18437
+ }), (0,preact_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)("div", _objectSpread(_objectSpread({
18314
18438
  className: (0,lib_css__WEBPACK_IMPORTED_MODULE_10__.className)('message__body')
18315
18439
  }, bodyProps), {}, {
18316
18440
  children: children
18317
- })), info && (0,preact_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)("div", {
18441
+ })), info && (0,preact_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)("div", {
18318
18442
  "aria-hidden": "true",
18319
18443
  className: (0,lib_css__WEBPACK_IMPORTED_MODULE_10__.className)('message__info'),
18320
18444
  children: info
18321
- }), showTranslationToggle && hasTranslation && (0,preact_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)("div", {
18322
- className: (0,lib_css__WEBPACK_IMPORTED_MODULE_10__.className)('message__translation-info'),
18323
- children: (0,preact_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)("button", {
18324
- className: (0,lib_css__WEBPACK_IMPORTED_MODULE_10__.className)('message__translation-toggle', 'button', 'button--secondary'),
18325
- onClick: toggleTranslation,
18326
- children: t(isTranslated ? 'translations.toggle.hideButtonText' : 'translations.toggle.showButtonText')
18327
- })
18328
18445
  })]
18329
18446
  }))
18330
18447
  });
@@ -20475,7 +20592,7 @@ const OptionsButton = () => {
20475
20592
  (0,hooks_module.useEffect)(() => {
20476
20593
  if (menuIsOpen && !prevMenuIsOpen.current) {
20477
20594
  requestAnimationFrame(async () => {
20478
- await (0,focus_helper_hooks/* timeout */.Vs)(180); // Wait for next 3 frame ticks
20595
+ await (0,focus_helper_hooks/* timeout */.Vs)(60); // Wait for next frame tick
20479
20596
 
20480
20597
  const firstActiveOptionIndex = find_index_default()(menuOptions).call(menuOptions, option => option.available);
20481
20598
 
@@ -21547,30 +21664,33 @@ const Interrupt = _ref => {
21547
21664
  /* harmony import */ var _babel_runtime_corejs3_core_js_stable_set_timeout__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(87198);
21548
21665
  /* harmony import */ var _babel_runtime_corejs3_core_js_stable_set_timeout__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_set_timeout__WEBPACK_IMPORTED_MODULE_0__);
21549
21666
  /* harmony import */ var domains_app_hooks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(79279);
21550
- /* harmony import */ var domains_i18n_hooks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(50546);
21551
- /* harmony import */ var domains_i18n_hooks__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(domains_i18n_hooks__WEBPACK_IMPORTED_MODULE_2__);
21552
- /* harmony import */ var domains_interrupt_hooks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(88877);
21553
- /* harmony import */ var domains_interrupt_hooks__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(domains_interrupt_hooks__WEBPACK_IMPORTED_MODULE_3__);
21554
- /* harmony import */ var domains_translations_hooks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(32108);
21555
- /* harmony import */ var domains_translations_hooks__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(domains_translations_hooks__WEBPACK_IMPORTED_MODULE_4__);
21556
- /* harmony import */ var domains_visibility_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(12629);
21557
- /* harmony import */ var domains_visibility_hooks__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(33742);
21558
- /* harmony import */ var domains_visibility_hooks__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(domains_visibility_hooks__WEBPACK_IMPORTED_MODULE_6__);
21559
- /* harmony import */ var lib_css__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(35567);
21560
- /* harmony import */ var preact_hooks__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(30396);
21561
- /* harmony import */ var ui_components_suggestions_suggestions_list__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(32841);
21562
- /* harmony import */ var ui_components_widgets_in_out_transition__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(21433);
21563
- /* harmony import */ var ui_hooks_focus_helper_hooks__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(68956);
21564
- /* harmony import */ var ui_hooks_live_region_hooks__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(26639);
21565
- /* harmony import */ var ui_hooks_seamly_state_hooks__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(14809);
21566
- /* harmony import */ var ui_hooks_use_seamly_commands__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(4431);
21567
- /* harmony import */ var ui_hooks_use_seamly_idle_detach_countdown__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(21154);
21568
- /* harmony import */ var ui_hooks_use_seamly_resume_conversation_prompt__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(61256);
21569
- /* harmony import */ var ui_hooks_utility_hooks__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(25029);
21570
- /* harmony import */ var ui_utils_general_utils__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(64959);
21571
- /* harmony import */ var ui_utils_seamly_utils__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(45740);
21572
- /* harmony import */ var ui_utils_seamly_utils__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(ui_utils_seamly_utils__WEBPACK_IMPORTED_MODULE_19__);
21573
- /* harmony import */ var preact_jsx_runtime__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(16584);
21667
+ /* harmony import */ var domains_config_hooks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(26065);
21668
+ /* harmony import */ var domains_config_hooks__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(domains_config_hooks__WEBPACK_IMPORTED_MODULE_2__);
21669
+ /* harmony import */ var domains_i18n_hooks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(50546);
21670
+ /* harmony import */ var domains_i18n_hooks__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(domains_i18n_hooks__WEBPACK_IMPORTED_MODULE_3__);
21671
+ /* harmony import */ var domains_interrupt_hooks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(88877);
21672
+ /* harmony import */ var domains_interrupt_hooks__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(domains_interrupt_hooks__WEBPACK_IMPORTED_MODULE_4__);
21673
+ /* harmony import */ var domains_translations_hooks__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(32108);
21674
+ /* harmony import */ var domains_translations_hooks__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(domains_translations_hooks__WEBPACK_IMPORTED_MODULE_5__);
21675
+ /* harmony import */ var domains_visibility_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(12629);
21676
+ /* harmony import */ var domains_visibility_hooks__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(33742);
21677
+ /* harmony import */ var domains_visibility_hooks__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(domains_visibility_hooks__WEBPACK_IMPORTED_MODULE_7__);
21678
+ /* harmony import */ var lib_css__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(35567);
21679
+ /* harmony import */ var preact_hooks__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(30396);
21680
+ /* harmony import */ var ui_components_suggestions_suggestions_list__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(32841);
21681
+ /* harmony import */ var ui_components_widgets_in_out_transition__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(21433);
21682
+ /* harmony import */ var ui_hooks_focus_helper_hooks__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(68956);
21683
+ /* harmony import */ var ui_hooks_live_region_hooks__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(26639);
21684
+ /* harmony import */ var ui_hooks_seamly_state_hooks__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(14809);
21685
+ /* harmony import */ var ui_hooks_use_seamly_commands__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(4431);
21686
+ /* harmony import */ var ui_hooks_use_seamly_idle_detach_countdown__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(21154);
21687
+ /* harmony import */ var ui_hooks_use_seamly_resume_conversation_prompt__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(61256);
21688
+ /* harmony import */ var ui_hooks_utility_hooks__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(25029);
21689
+ /* harmony import */ var ui_utils_general_utils__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(64959);
21690
+ /* harmony import */ var ui_utils_seamly_utils__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(45740);
21691
+ /* harmony import */ var ui_utils_seamly_utils__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(ui_utils_seamly_utils__WEBPACK_IMPORTED_MODULE_20__);
21692
+ /* harmony import */ var preact_jsx_runtime__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(16584);
21693
+
21574
21694
 
21575
21695
 
21576
21696
 
@@ -21601,64 +21721,69 @@ const Suggestions = _ref => {
21601
21721
  // generic hooks
21602
21722
  const {
21603
21723
  isInline
21604
- } = (0,ui_hooks_seamly_state_hooks__WEBPACK_IMPORTED_MODULE_13__.useSeamlyLayoutMode)();
21724
+ } = (0,ui_hooks_seamly_state_hooks__WEBPACK_IMPORTED_MODULE_14__.useSeamlyLayoutMode)();
21605
21725
  const {
21606
21726
  t
21607
- } = (0,domains_i18n_hooks__WEBPACK_IMPORTED_MODULE_2__.useI18n)();
21727
+ } = (0,domains_i18n_hooks__WEBPACK_IMPORTED_MODULE_3__.useI18n)();
21608
21728
  const {
21609
21729
  sendAction,
21610
21730
  addMessageBubble
21611
- } = (0,ui_hooks_use_seamly_commands__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z)();
21731
+ } = (0,ui_hooks_use_seamly_commands__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .Z)();
21612
21732
  const {
21613
21733
  isOpen,
21614
21734
  setVisibility
21615
- } = (0,domains_visibility_hooks__WEBPACK_IMPORTED_MODULE_6__.useVisibility)(); // a11y hooks
21735
+ } = (0,domains_visibility_hooks__WEBPACK_IMPORTED_MODULE_7__.useVisibility)();
21736
+ const {
21737
+ showSuggestions
21738
+ } = (0,domains_config_hooks__WEBPACK_IMPORTED_MODULE_2__.useConfig)(); // a11y hooks
21616
21739
 
21617
- const sectionId = (0,ui_hooks_utility_hooks__WEBPACK_IMPORTED_MODULE_17__/* .useGeneratedId */ .I8)();
21618
- const focusSkiplinkTarget = (0,ui_hooks_focus_helper_hooks__WEBPACK_IMPORTED_MODULE_11__/* .useSkiplinkTargetFocusing */ .MI)();
21619
- const containerRef = (0,preact_hooks__WEBPACK_IMPORTED_MODULE_8__.useRef)(null);
21740
+ const sectionId = (0,ui_hooks_utility_hooks__WEBPACK_IMPORTED_MODULE_18__/* .useGeneratedId */ .I8)();
21741
+ const focusSkiplinkTarget = (0,ui_hooks_focus_helper_hooks__WEBPACK_IMPORTED_MODULE_12__/* .useSkiplinkTargetFocusing */ .MI)();
21742
+ const containerRef = (0,preact_hooks__WEBPACK_IMPORTED_MODULE_9__.useRef)(null);
21620
21743
  const {
21621
21744
  sendPolite
21622
- } = (0,ui_hooks_live_region_hooks__WEBPACK_IMPORTED_MODULE_12__/* .useLiveRegion */ .t)(); // interrupt & countdown hooks
21745
+ } = (0,ui_hooks_live_region_hooks__WEBPACK_IMPORTED_MODULE_13__/* .useLiveRegion */ .t)(); // interrupt & countdown hooks
21623
21746
 
21624
21747
  const {
21625
21748
  hasInterrupt
21626
- } = (0,domains_interrupt_hooks__WEBPACK_IMPORTED_MODULE_3__.useInterrupt)();
21749
+ } = (0,domains_interrupt_hooks__WEBPACK_IMPORTED_MODULE_4__.useInterrupt)();
21627
21750
  const {
21628
21751
  hasCountdown,
21629
21752
  endCountdown
21630
- } = (0,ui_hooks_use_seamly_idle_detach_countdown__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .Z)();
21753
+ } = (0,ui_hooks_use_seamly_idle_detach_countdown__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z)();
21631
21754
  const {
21632
21755
  hasPrompt,
21633
21756
  continueChat
21634
- } = (0,ui_hooks_use_seamly_resume_conversation_prompt__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z)(); // data hooks
21757
+ } = (0,ui_hooks_use_seamly_resume_conversation_prompt__WEBPACK_IMPORTED_MODULE_17__/* ["default"] */ .Z)(); // data hooks
21635
21758
 
21636
21759
  const userHasResponded = (0,domains_app_hooks__WEBPACK_IMPORTED_MODULE_1__/* .useUserHasResponded */ .h)();
21637
- const payload = (0,ui_hooks_seamly_state_hooks__WEBPACK_IMPORTED_MODULE_13__.useSeamlyServiceData)('suggestion');
21638
- const [eventBody] = (0,domains_translations_hooks__WEBPACK_IMPORTED_MODULE_4__.useTranslatedEventData)({
21760
+ const payload = (0,ui_hooks_seamly_state_hooks__WEBPACK_IMPORTED_MODULE_14__.useSeamlyServiceData)('suggestion');
21761
+ const {
21762
+ body: eventBody
21763
+ } = (0,domains_translations_hooks__WEBPACK_IMPORTED_MODULE_5__.useTranslatedEventData)({
21639
21764
  payload
21640
21765
  });
21641
- const suggestions = (0,preact_hooks__WEBPACK_IMPORTED_MODULE_8__.useMemo)(() => payload && !hasInterrupt ? eventBody : [], [payload, hasInterrupt, eventBody]);
21642
- const prevSuggestions = (0,preact_hooks__WEBPACK_IMPORTED_MODULE_8__.useRef)(null);
21643
- const prevHasSuggestions = (0,preact_hooks__WEBPACK_IMPORTED_MODULE_8__.useRef)(false);
21644
- const previousRenderedSuggestions = (0,preact_hooks__WEBPACK_IMPORTED_MODULE_8__.useRef)([]);
21766
+ const suggestions = (0,preact_hooks__WEBPACK_IMPORTED_MODULE_9__.useMemo)(() => payload && !hasInterrupt ? eventBody : [], [payload, hasInterrupt, eventBody]);
21767
+ const prevSuggestions = (0,preact_hooks__WEBPACK_IMPORTED_MODULE_9__.useRef)(null);
21768
+ const prevHasSuggestions = (0,preact_hooks__WEBPACK_IMPORTED_MODULE_9__.useRef)(false);
21769
+ const previousRenderedSuggestions = (0,preact_hooks__WEBPACK_IMPORTED_MODULE_9__.useRef)([]);
21645
21770
  const hasSuggestions = !!suggestions.length;
21646
21771
  const hideSuggestions = isInline ? (userHasResponded || isOpen) && !isAside : userHasResponded;
21647
- const prevHideSuggestions = (0,preact_hooks__WEBPACK_IMPORTED_MODULE_8__.useRef)(hideSuggestions);
21648
- const showSuggestionsContainer = hasSuggestions && !hideSuggestions;
21772
+ const prevHideSuggestions = (0,preact_hooks__WEBPACK_IMPORTED_MODULE_9__.useRef)(hideSuggestions);
21773
+ const showSuggestionsContainer = hasSuggestions && !hideSuggestions && showSuggestions;
21649
21774
  const renderedSuggestions = hasSuggestions ? suggestions : previousRenderedSuggestions.current;
21650
21775
  previousRenderedSuggestions.current = renderedSuggestions;
21651
- const suggestionsClassNames = (0,preact_hooks__WEBPACK_IMPORTED_MODULE_8__.useMemo)(() => {
21776
+ const suggestionsClassNames = (0,preact_hooks__WEBPACK_IMPORTED_MODULE_9__.useMemo)(() => {
21652
21777
  const classNames = ['suggestions'];
21653
21778
 
21654
21779
  if (isAside) {
21655
21780
  classNames.push('suggestions--aside');
21656
21781
  }
21657
21782
 
21658
- return (0,lib_css__WEBPACK_IMPORTED_MODULE_7__.className)(classNames);
21783
+ return (0,lib_css__WEBPACK_IMPORTED_MODULE_8__.className)(classNames);
21659
21784
  }, [isAside]); // click handler
21660
21785
 
21661
- const handleClick = (0,preact_hooks__WEBPACK_IMPORTED_MODULE_8__.useCallback)(_ref2 => {
21786
+ const handleClick = (0,preact_hooks__WEBPACK_IMPORTED_MODULE_9__.useCallback)(_ref2 => {
21662
21787
  let {
21663
21788
  id,
21664
21789
  question
@@ -21674,7 +21799,7 @@ const Suggestions = _ref => {
21674
21799
 
21675
21800
 
21676
21801
  sendAction({
21677
- type: ui_utils_seamly_utils__WEBPACK_IMPORTED_MODULE_19__.actionTypes.custom,
21802
+ type: ui_utils_seamly_utils__WEBPACK_IMPORTED_MODULE_20__.actionTypes.custom,
21678
21803
  originMessage: payload.id,
21679
21804
  body: {
21680
21805
  type: 'faqclick',
@@ -21687,12 +21812,12 @@ const Suggestions = _ref => {
21687
21812
  addMessageBubble(question);
21688
21813
 
21689
21814
  if (!isOpen) {
21690
- setVisibility(domains_visibility_constants__WEBPACK_IMPORTED_MODULE_5__.visibilityStates.open);
21815
+ setVisibility(domains_visibility_constants__WEBPACK_IMPORTED_MODULE_6__.visibilityStates.open);
21691
21816
  }
21692
21817
 
21693
21818
  focusSkiplinkTarget();
21694
21819
  }, [addMessageBubble, continueChat, endCountdown, focusSkiplinkTarget, hasCountdown, hasPrompt, payload, sendAction, setVisibility, isOpen]);
21695
- (0,preact_hooks__WEBPACK_IMPORTED_MODULE_8__.useEffect)(() => {
21820
+ (0,preact_hooks__WEBPACK_IMPORTED_MODULE_9__.useEffect)(() => {
21696
21821
  if (prevSuggestions.current !== suggestions && !hideSuggestions) {
21697
21822
  if (hasSuggestions) {
21698
21823
  const politeText = prevHasSuggestions.current ? t('suggestions.srUpdatedText') : t('suggestions.srAvailableText');
@@ -21708,10 +21833,10 @@ const Suggestions = _ref => {
21708
21833
  }
21709
21834
 
21710
21835
  if (!prevHideSuggestions.current && hideSuggestions) {
21711
- (0,ui_utils_general_utils__WEBPACK_IMPORTED_MODULE_18__.runIfElementContainsOrHasFocus)(containerRef.current, focusSkiplinkTarget);
21836
+ (0,ui_utils_general_utils__WEBPACK_IMPORTED_MODULE_19__.runIfElementContainsOrHasFocus)(containerRef.current, focusSkiplinkTarget);
21712
21837
  sendPolite(t('suggestions.srUnavailableText'));
21713
21838
  } else if (!hasSuggestions && prevHasSuggestions.current) {
21714
- (0,ui_utils_general_utils__WEBPACK_IMPORTED_MODULE_18__.runIfElementContainsOrHasFocus)(containerRef.current, focusSkiplinkTarget);
21839
+ (0,ui_utils_general_utils__WEBPACK_IMPORTED_MODULE_19__.runIfElementContainsOrHasFocus)(containerRef.current, focusSkiplinkTarget);
21715
21840
  }
21716
21841
 
21717
21842
  prevHasSuggestions.current = hasSuggestions;
@@ -21720,22 +21845,22 @@ const Suggestions = _ref => {
21720
21845
  const headingText = t('suggestions.headingText');
21721
21846
  const footerText = t('suggestions.footerText');
21722
21847
  const ContainerElement = headingText ? 'section' : 'div';
21723
- return (0,preact_jsx_runtime__WEBPACK_IMPORTED_MODULE_20__.jsx)(ui_components_widgets_in_out_transition__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z, {
21848
+ return (0,preact_jsx_runtime__WEBPACK_IMPORTED_MODULE_21__.jsx)(ui_components_widgets_in_out_transition__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z, {
21724
21849
  isActive: showSuggestionsContainer,
21725
- transitionStartState: ui_components_widgets_in_out_transition__WEBPACK_IMPORTED_MODULE_10__/* .transitionStartStates.notRendered */ .I.notRendered,
21726
- children: (0,preact_jsx_runtime__WEBPACK_IMPORTED_MODULE_20__.jsxs)(ContainerElement, {
21850
+ transitionStartState: ui_components_widgets_in_out_transition__WEBPACK_IMPORTED_MODULE_11__/* .transitionStartStates.notRendered */ .I.notRendered,
21851
+ children: (0,preact_jsx_runtime__WEBPACK_IMPORTED_MODULE_21__.jsxs)(ContainerElement, {
21727
21852
  className: suggestionsClassNames,
21728
21853
  "aria-labelledby": headingText ? sectionId : null,
21729
21854
  ref: containerRef,
21730
- children: [headingText && (0,preact_jsx_runtime__WEBPACK_IMPORTED_MODULE_20__.jsx)("p", {
21855
+ children: [headingText && (0,preact_jsx_runtime__WEBPACK_IMPORTED_MODULE_21__.jsx)("p", {
21731
21856
  id: sectionId,
21732
- className: (0,lib_css__WEBPACK_IMPORTED_MODULE_7__.className)('suggestions__heading'),
21857
+ className: (0,lib_css__WEBPACK_IMPORTED_MODULE_8__.className)('suggestions__heading'),
21733
21858
  children: headingText
21734
- }), !!renderedSuggestions.length && (0,preact_jsx_runtime__WEBPACK_IMPORTED_MODULE_20__.jsx)(ui_components_suggestions_suggestions_list__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z, {
21859
+ }), !!renderedSuggestions.length && (0,preact_jsx_runtime__WEBPACK_IMPORTED_MODULE_21__.jsx)(ui_components_suggestions_suggestions_list__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z, {
21735
21860
  suggestions: renderedSuggestions,
21736
21861
  onClickSuggestion: handleClick
21737
- }), footerText && !isOpen && (0,preact_jsx_runtime__WEBPACK_IMPORTED_MODULE_20__.jsx)("p", {
21738
- className: (0,lib_css__WEBPACK_IMPORTED_MODULE_7__.className)('suggestions__footer'),
21862
+ }), footerText && !isOpen && (0,preact_jsx_runtime__WEBPACK_IMPORTED_MODULE_21__.jsx)("p", {
21863
+ className: (0,lib_css__WEBPACK_IMPORTED_MODULE_8__.className)('suggestions__footer'),
21739
21864
  children: footerText
21740
21865
  })]
21741
21866
  })
@@ -22028,7 +22153,9 @@ const Faq = () => {
22028
22153
  continueChat
22029
22154
  } = (0,use_seamly_resume_conversation_prompt/* default */.Z)();
22030
22155
  const lastFaqEventPayload = (0,seamly_state_hooks.useSeamlyServiceData)('suggestion');
22031
- const [eventBody] = (0,translations_hooks.useTranslatedEventData)({
22156
+ const {
22157
+ body: eventBody
22158
+ } = (0,translations_hooks.useTranslatedEventData)({
22032
22159
  payload: lastFaqEventPayload
22033
22160
  });
22034
22161
  const faqs = (0,hooks_module.useMemo)(() => {
@@ -23475,11 +23602,13 @@ const useSeamlyEventStream = (nextFn, filterFn) => {
23475
23602
  "use strict";
23476
23603
  __webpack_require__.r(__webpack_exports__);
23477
23604
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
23605
+ /* harmony export */ "selectEventIds": function() { return /* binding */ selectEventIds; },
23478
23606
  /* harmony export */ "selectEvents": function() { return /* binding */ selectEvents; },
23479
23607
  /* harmony export */ "selectEventsWithSuggestion": function() { return /* binding */ selectEventsWithSuggestion; },
23480
23608
  /* harmony export */ "selectState": function() { return /* binding */ selectState; },
23481
23609
  /* harmony export */ "useEntryTextLimit": function() { return /* binding */ useEntryTextLimit; },
23482
23610
  /* harmony export */ "useEvents": function() { return /* binding */ useEvents; },
23611
+ /* harmony export */ "useEventsIds": function() { return /* binding */ useEventsIds; },
23483
23612
  /* harmony export */ "useLastMessageEventId": function() { return /* binding */ useLastMessageEventId; },
23484
23613
  /* harmony export */ "useLoadedImageEventIds": function() { return /* binding */ useLoadedImageEventIds; },
23485
23614
  /* harmony export */ "useSeamlyCurrentAgent": function() { return /* binding */ useSeamlyCurrentAgent; },
@@ -23509,17 +23638,19 @@ __webpack_require__.r(__webpack_exports__);
23509
23638
  /* harmony import */ var _babel_runtime_corejs3_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(44845);
23510
23639
  /* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_for_each__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(86);
23511
23640
  /* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_for_each__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_for_each__WEBPACK_IMPORTED_MODULE_8__);
23641
+ /* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(97606);
23642
+ /* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_9__);
23512
23643
  /* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(14418);
23513
23644
  /* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_7__);
23514
- /* harmony import */ var domains_config_selectors__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(84788);
23515
- /* harmony import */ var domains_config_selectors__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(domains_config_selectors__WEBPACK_IMPORTED_MODULE_9__);
23516
- /* harmony import */ var ui_utils_general_utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(64959);
23517
- /* harmony import */ var _reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(20573);
23518
- /* harmony import */ var domains_app_selectors__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(25865);
23519
- /* harmony import */ var domains_app_selectors__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(domains_app_selectors__WEBPACK_IMPORTED_MODULE_11__);
23520
- /* harmony import */ var domains_config_hooks__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(26065);
23521
- /* harmony import */ var domains_config_hooks__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(domains_config_hooks__WEBPACK_IMPORTED_MODULE_12__);
23522
- /* harmony import */ var react_redux__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(36113);
23645
+ /* harmony import */ var domains_config_selectors__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(84788);
23646
+ /* harmony import */ var domains_config_selectors__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(domains_config_selectors__WEBPACK_IMPORTED_MODULE_10__);
23647
+ /* harmony import */ var ui_utils_general_utils__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(64959);
23648
+ /* harmony import */ var _reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(20573);
23649
+ /* harmony import */ var domains_app_selectors__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(25865);
23650
+ /* harmony import */ var domains_app_selectors__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(domains_app_selectors__WEBPACK_IMPORTED_MODULE_12__);
23651
+ /* harmony import */ var domains_config_hooks__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(26065);
23652
+ /* harmony import */ var domains_config_hooks__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(domains_config_hooks__WEBPACK_IMPORTED_MODULE_13__);
23653
+ /* harmony import */ var react_redux__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(36113);
23523
23654
 
23524
23655
 
23525
23656
 
@@ -23540,14 +23671,15 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
23540
23671
 
23541
23672
 
23542
23673
 
23674
+
23543
23675
  const selectState = _ref => {
23544
23676
  let {
23545
23677
  state
23546
23678
  } = _ref;
23547
23679
  return state;
23548
23680
  };
23549
- const useSeamlyStateContext = () => (0,react_redux__WEBPACK_IMPORTED_MODULE_13__.useSelector)(selectState);
23550
- const selectEventsWithSuggestion = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_14__.createSelector)(selectState, domains_config_selectors__WEBPACK_IMPORTED_MODULE_9__.selectConfig, domains_app_selectors__WEBPACK_IMPORTED_MODULE_11__.selectUserHasResponded, (_ref2, config, hasUserResponded) => {
23681
+ const useSeamlyStateContext = () => (0,react_redux__WEBPACK_IMPORTED_MODULE_14__.useSelector)(selectState);
23682
+ const selectEventsWithSuggestion = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_15__.createSelector)(selectState, domains_config_selectors__WEBPACK_IMPORTED_MODULE_10__.selectConfig, domains_app_selectors__WEBPACK_IMPORTED_MODULE_12__.selectUserHasResponded, (_ref2, config, hasUserResponded) => {
23551
23683
  var _serviceData$suggesti;
23552
23684
 
23553
23685
  let {
@@ -23565,7 +23697,7 @@ const selectEventsWithSuggestion = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_
23565
23697
  };
23566
23698
  return [...events, suggestionsEvent];
23567
23699
  });
23568
- const selectEvents = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_14__.createSelector)(selectEventsWithSuggestion, domains_config_selectors__WEBPACK_IMPORTED_MODULE_9__.selectConfig, (events, config) => {
23700
+ const selectEvents = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_15__.createSelector)(selectEventsWithSuggestion, domains_config_selectors__WEBPACK_IMPORTED_MODULE_10__.selectConfig, (events, config) => {
23569
23701
  var _config$messages;
23570
23702
 
23571
23703
  const {
@@ -23587,7 +23719,7 @@ const selectEvents = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_14__.createSel
23587
23719
  timeIndicator: event.payload.occurredAt
23588
23720
  })); // else check if diff is greater than threshold
23589
23721
  } else {
23590
- const timeIndicator = previousEvent && (0,ui_utils_general_utils__WEBPACK_IMPORTED_MODULE_10__.microsecondsToMilliseconds)(event.payload.occurredAt - previousEvent.payload.occurredAt) >= threshold ? event.payload.occurredAt : undefined;
23722
+ const timeIndicator = previousEvent && (0,ui_utils_general_utils__WEBPACK_IMPORTED_MODULE_11__.microsecondsToMilliseconds)(event.payload.occurredAt - previousEvent.payload.occurredAt) >= threshold ? event.payload.occurredAt : undefined;
23591
23723
  mappedEvents.push(_objectSpread(_objectSpread({}, event), {}, {
23592
23724
  timeIndicator
23593
23725
  }));
@@ -23598,7 +23730,11 @@ const selectEvents = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_14__.createSel
23598
23730
 
23599
23731
  return mappedEvents;
23600
23732
  });
23601
- const useEvents = () => (0,react_redux__WEBPACK_IMPORTED_MODULE_13__.useSelector)(selectEvents);
23733
+ const useEvents = () => (0,react_redux__WEBPACK_IMPORTED_MODULE_14__.useSelector)(selectEvents);
23734
+ const selectEventIds = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_15__.createSelector)(selectEvents, events => {
23735
+ return _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_9___default()(events).call(events, event => event.payload.id);
23736
+ });
23737
+ const useEventsIds = () => (0,react_redux__WEBPACK_IMPORTED_MODULE_14__.useSelector)(selectEventIds);
23602
23738
  const useSeamlyIsLoading = () => useSeamlyStateContext().isLoading;
23603
23739
  const useSeamlyHeaderData = () => useSeamlyStateContext().headerTitles;
23604
23740
  const useSeamlyUnreadCount = () => useSeamlyStateContext().unreadEvents;
@@ -23606,14 +23742,14 @@ const useLoadedImageEventIds = () => useSeamlyStateContext().loadedImageEventIds
23606
23742
  const useSkiplink = () => useSeamlyStateContext().skiplinkTargetId;
23607
23743
  const useSeamlyParticipant = participantId => useSeamlyStateContext().participantInfo.participants[participantId];
23608
23744
  const useSeamlyServiceInfo = () => useSeamlyStateContext().serviceInfo;
23609
- const selectLastMessageEventId = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_14__.createSelector)(selectEvents, events => {
23745
+ const selectLastMessageEventId = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_15__.createSelector)(selectEvents, events => {
23610
23746
  var _filteredEvents;
23611
23747
 
23612
23748
  const filteredEvents = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_7___default()(events).call(events, event => event.type === 'message');
23613
23749
 
23614
23750
  return (_filteredEvents = filteredEvents[filteredEvents.length - 1]) === null || _filteredEvents === void 0 ? void 0 : _filteredEvents.payload.id;
23615
23751
  });
23616
- const useLastMessageEventId = () => (0,react_redux__WEBPACK_IMPORTED_MODULE_13__.useSelector)(selectLastMessageEventId);
23752
+ const useLastMessageEventId = () => (0,react_redux__WEBPACK_IMPORTED_MODULE_14__.useSelector)(selectLastMessageEventId);
23617
23753
  const useSeamlyIsHistoryLoaded = () => useSeamlyStateContext().historyLoaded;
23618
23754
  const useSeamlyCurrentAgent = () => {
23619
23755
  const {
@@ -23649,7 +23785,7 @@ const useEntryTextLimit = () => {
23649
23785
  const useSeamlyLayoutMode = () => {
23650
23786
  const {
23651
23787
  layoutMode
23652
- } = (0,domains_config_hooks__WEBPACK_IMPORTED_MODULE_12__.useConfig)();
23788
+ } = (0,domains_config_hooks__WEBPACK_IMPORTED_MODULE_13__.useConfig)();
23653
23789
  return {
23654
23790
  isInline: layoutMode === 'inline',
23655
23791
  isWindow: layoutMode === 'window',
@@ -25281,6 +25417,17 @@ var entryVirtual = __webpack_require__(35703);
25281
25417
  module.exports = entryVirtual('Array').sort;
25282
25418
 
25283
25419
 
25420
+ /***/ }),
25421
+
25422
+ /***/ 78209:
25423
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
25424
+
25425
+ __webpack_require__(98611);
25426
+ var entryVirtual = __webpack_require__(35703);
25427
+
25428
+ module.exports = entryVirtual('Array').splice;
25429
+
25430
+
25284
25431
  /***/ }),
25285
25432
 
25286
25433
  /***/ 81103:
@@ -25576,6 +25723,22 @@ module.exports = function (it) {
25576
25723
  };
25577
25724
 
25578
25725
 
25726
+ /***/ }),
25727
+
25728
+ /***/ 18339:
25729
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
25730
+
25731
+ var isPrototypeOf = __webpack_require__(7046);
25732
+ var method = __webpack_require__(78209);
25733
+
25734
+ var ArrayPrototype = Array.prototype;
25735
+
25736
+ module.exports = function (it) {
25737
+ var own = it.splice;
25738
+ return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.splice) ? method : own;
25739
+ };
25740
+
25741
+
25579
25742
  /***/ }),
25580
25743
 
25581
25744
  /***/ 62774:
@@ -26429,6 +26592,41 @@ module.exports = {
26429
26592
  };
26430
26593
 
26431
26594
 
26595
+ /***/ }),
26596
+
26597
+ /***/ 89779:
26598
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
26599
+
26600
+ "use strict";
26601
+
26602
+ var DESCRIPTORS = __webpack_require__(55746);
26603
+ var isArray = __webpack_require__(1052);
26604
+
26605
+ var $TypeError = TypeError;
26606
+ // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
26607
+ var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
26608
+
26609
+ // Safari < 13 does not throw an error in this case
26610
+ var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !function () {
26611
+ // makes no sense without proper strict mode support
26612
+ if (this !== undefined) return true;
26613
+ try {
26614
+ // eslint-disable-next-line es-x/no-object-defineproperty -- safe
26615
+ Object.defineProperty([], 'length', { writable: false }).length = 1;
26616
+ } catch (error) {
26617
+ return error instanceof TypeError;
26618
+ }
26619
+ }();
26620
+
26621
+ module.exports = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
26622
+ if (isArray(O) && !getOwnPropertyDescriptor(O, 'length').writable) {
26623
+ throw $TypeError('Cannot set read only .length');
26624
+ } return O.length = length;
26625
+ } : function (O, length) {
26626
+ return O.length = length;
26627
+ };
26628
+
26629
+
26432
26630
  /***/ }),
26433
26631
 
26434
26632
  /***/ 15790:
@@ -31180,6 +31378,81 @@ $({ target: 'Array', proto: true, forced: FORCED }, {
31180
31378
  });
31181
31379
 
31182
31380
 
31381
+ /***/ }),
31382
+
31383
+ /***/ 98611:
31384
+ /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
31385
+
31386
+ "use strict";
31387
+
31388
+ var $ = __webpack_require__(76887);
31389
+ var toObject = __webpack_require__(89678);
31390
+ var toAbsoluteIndex = __webpack_require__(59413);
31391
+ var toIntegerOrInfinity = __webpack_require__(62435);
31392
+ var lengthOfArrayLike = __webpack_require__(10623);
31393
+ var setArrayLength = __webpack_require__(89779);
31394
+ var doesNotExceedSafeInteger = __webpack_require__(66796);
31395
+ var arraySpeciesCreate = __webpack_require__(64692);
31396
+ var createProperty = __webpack_require__(55449);
31397
+ var deletePropertyOrThrow = __webpack_require__(15863);
31398
+ var arrayMethodHasSpeciesSupport = __webpack_require__(50568);
31399
+
31400
+ var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('splice');
31401
+
31402
+ var max = Math.max;
31403
+ var min = Math.min;
31404
+
31405
+ // `Array.prototype.splice` method
31406
+ // https://tc39.es/ecma262/#sec-array.prototype.splice
31407
+ // with adding support of @@species
31408
+ $({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
31409
+ splice: function splice(start, deleteCount /* , ...items */) {
31410
+ var O = toObject(this);
31411
+ var len = lengthOfArrayLike(O);
31412
+ var actualStart = toAbsoluteIndex(start, len);
31413
+ var argumentsLength = arguments.length;
31414
+ var insertCount, actualDeleteCount, A, k, from, to;
31415
+ if (argumentsLength === 0) {
31416
+ insertCount = actualDeleteCount = 0;
31417
+ } else if (argumentsLength === 1) {
31418
+ insertCount = 0;
31419
+ actualDeleteCount = len - actualStart;
31420
+ } else {
31421
+ insertCount = argumentsLength - 2;
31422
+ actualDeleteCount = min(max(toIntegerOrInfinity(deleteCount), 0), len - actualStart);
31423
+ }
31424
+ doesNotExceedSafeInteger(len + insertCount - actualDeleteCount);
31425
+ A = arraySpeciesCreate(O, actualDeleteCount);
31426
+ for (k = 0; k < actualDeleteCount; k++) {
31427
+ from = actualStart + k;
31428
+ if (from in O) createProperty(A, k, O[from]);
31429
+ }
31430
+ A.length = actualDeleteCount;
31431
+ if (insertCount < actualDeleteCount) {
31432
+ for (k = actualStart; k < len - actualDeleteCount; k++) {
31433
+ from = k + actualDeleteCount;
31434
+ to = k + insertCount;
31435
+ if (from in O) O[to] = O[from];
31436
+ else deletePropertyOrThrow(O, to);
31437
+ }
31438
+ for (k = len; k > len - actualDeleteCount + insertCount; k--) deletePropertyOrThrow(O, k - 1);
31439
+ } else if (insertCount > actualDeleteCount) {
31440
+ for (k = len - actualDeleteCount; k > actualStart; k--) {
31441
+ from = k + actualDeleteCount - 1;
31442
+ to = k + insertCount - 1;
31443
+ if (from in O) O[to] = O[from];
31444
+ else deletePropertyOrThrow(O, to);
31445
+ }
31446
+ }
31447
+ for (k = 0; k < insertCount; k++) {
31448
+ O[k + actualStart] = arguments[k + 2];
31449
+ }
31450
+ setArrayLength(O, len - actualDeleteCount + insertCount);
31451
+ return A;
31452
+ }
31453
+ });
31454
+
31455
+
31183
31456
  /***/ }),
31184
31457
 
31185
31458
  /***/ 1107:
@@ -33164,6 +33437,16 @@ var parent = __webpack_require__(69355);
33164
33437
  module.exports = parent;
33165
33438
 
33166
33439
 
33440
+ /***/ }),
33441
+
33442
+ /***/ 2348:
33443
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
33444
+
33445
+ var parent = __webpack_require__(18339);
33446
+
33447
+ module.exports = parent;
33448
+
33449
+
33167
33450
  /***/ }),
33168
33451
 
33169
33452
  /***/ 76361:
@@ -39042,6 +39325,13 @@ module.exports = __webpack_require__(62856);
39042
39325
 
39043
39326
  /***/ }),
39044
39327
 
39328
+ /***/ 39940:
39329
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
39330
+
39331
+ module.exports = __webpack_require__(2348);
39332
+
39333
+ /***/ }),
39334
+
39045
39335
  /***/ 81607:
39046
39336
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
39047
39337