@seamly/web-ui 21.0.3-beta.1 → 21.0.3-beta.2

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.
@@ -1198,7 +1198,7 @@ function createDispatchHook(context = Context_ReactReduxContext) {
1198
1198
  * }
1199
1199
  */
1200
1200
 
1201
- const useDispatch = /*#__PURE__*/createDispatchHook();
1201
+ const useDispatch_useDispatch = /*#__PURE__*/createDispatchHook();
1202
1202
  ;// CONCATENATED MODULE: ./node_modules/react-redux/es/exports.js
1203
1203
 
1204
1204
 
@@ -2251,7 +2251,7 @@ const formatter = new MessageFormatter('en-GB', {
2251
2251
  plural: pluralTypeHandler,
2252
2252
  select: selectTypeHandler
2253
2253
  });
2254
- function useI18n() {
2254
+ function hooks_useI18n() {
2255
2255
  const translations = useSelector_useSelector(selectTranslations);
2256
2256
  const locale = useSelector_useSelector(selectLocale);
2257
2257
  const initialLocale = useSelector_useSelector(selectors_selectInitialLocale);
@@ -2335,7 +2335,7 @@ const css_className = (...classes) => classes.flat().map(c => {
2335
2335
  const PrivacyDisclaimer = () => {
2336
2336
  const {
2337
2337
  t
2338
- } = useI18n();
2338
+ } = hooks_useI18n();
2339
2339
  const {
2340
2340
  showDisclaimer
2341
2341
  } = useConfig();
@@ -2377,7 +2377,7 @@ const useSeamlyConversationUrl = () => {
2377
2377
  }
2378
2378
  return null;
2379
2379
  };
2380
- const useSeamlyHasConversation = () => {
2380
+ const seamly_api_hooks_useSeamlyHasConversation = () => {
2381
2381
  const api = seamly_api_hooks_useSeamlyApiContext();
2382
2382
  const hasConversation = (0,hooks_.useCallback)(() => {
2383
2383
  return api.hasConversation();
@@ -5386,7 +5386,7 @@ const selectEvents = es_createSelector(selectEventsWithSuggestion, selectors_sel
5386
5386
  });
5387
5387
  return mappedEvents;
5388
5388
  });
5389
- const useEvents = () => useSelector_useSelector(selectEvents);
5389
+ const seamly_state_hooks_useEvents = () => useSelector_useSelector(selectEvents);
5390
5390
  const selectEventIds = es_createSelector(selectEvents, events => {
5391
5391
  return events.map(event => event.payload.id);
5392
5392
  });
@@ -5436,7 +5436,7 @@ const useEntryTextLimit = () => {
5436
5436
  limit: limit !== null ? limit : null
5437
5437
  };
5438
5438
  };
5439
- const useSeamlyLayoutMode = () => {
5439
+ const seamly_state_hooks_useSeamlyLayoutMode = () => {
5440
5440
  const {
5441
5441
  layoutMode
5442
5442
  } = useConfig();
@@ -5487,7 +5487,7 @@ const calculateVisibility = ({
5487
5487
  const selectVisibility = es_createSelector(({
5488
5488
  visibility
5489
5489
  }) => visibility, state => state.visibility);
5490
- const selectShowInlineView = es_createSelector(({
5490
+ const selectors_selectShowInlineView = es_createSelector(({
5491
5491
  visibility
5492
5492
  }) => visibility, state => state.showInlineView);
5493
5493
  ;// CONCATENATED MODULE: ./src/javascripts/domains/visibility/actions.ts
@@ -6276,7 +6276,7 @@ const {
6276
6276
  setHeaderTitle,
6277
6277
  setHistory: slice_setHistory,
6278
6278
  setInitialState: slice_setInitialState,
6279
- setIsLoading,
6279
+ setIsLoading: slice_setIsLoading,
6280
6280
  setLoadedImageEventIds,
6281
6281
  setParticipant,
6282
6282
  setSeamlyContainerElement,
@@ -6312,7 +6312,7 @@ const useSeamlyContainerElement = () => {
6312
6312
  const {
6313
6313
  seamlyContainerElement
6314
6314
  } = useSeamlyStateContext();
6315
- const dispatch = useDispatch();
6315
+ const dispatch = useDispatch_useDispatch();
6316
6316
  const dispatchSeamlyContainerElement = (0,hooks_.useCallback)(element => {
6317
6317
  dispatch(setSeamlyContainerElement(element));
6318
6318
  }, [dispatch]);
@@ -6413,7 +6413,7 @@ const useFileUploads = () => {
6413
6413
  const {
6414
6414
  currentUploads
6415
6415
  } = useSeamlyStateContext();
6416
- const dispatch = useDispatch();
6416
+ const dispatch = useDispatch_useDispatch();
6417
6417
  const upload = useSeamlyFileUploadContext();
6418
6418
  const uploadFile = (0,hooks_.useCallback)(file => {
6419
6419
  upload(file);
@@ -6437,7 +6437,7 @@ const SeamlyLiveRegionContext = (0,external_preact_.createContext)(null);
6437
6437
 
6438
6438
 
6439
6439
  const useSeamlyLiveRegionContext = () => (0,hooks_.useContext)(SeamlyLiveRegionContext);
6440
- const useLiveRegion = () => {
6440
+ const live_region_hooks_useLiveRegion = () => {
6441
6441
  const sendMessage = useSeamlyLiveRegionContext();
6442
6442
  const sendPolite = (0,hooks_.useCallback)(messageText => {
6443
6443
  if (!messageText) return;
@@ -6472,7 +6472,7 @@ function seamly_option_hooks_defineProperty(obj, key, value) { if (key in obj) {
6472
6472
  const useSeamlyOptions = () => {
6473
6473
  const {
6474
6474
  t
6475
- } = useI18n();
6475
+ } = hooks_useI18n();
6476
6476
  const {
6477
6477
  options
6478
6478
  } = useSeamlyStateContext();
@@ -6498,7 +6498,7 @@ const useSeamlyOptions = () => {
6498
6498
  available: optionsObj[option].enabled
6499
6499
  }));
6500
6500
  const allowOptionSelection = cobrowsing || sendTranscript;
6501
- const dispatch = useDispatch();
6501
+ const dispatch = useDispatch_useDispatch();
6502
6502
  const {
6503
6503
  get,
6504
6504
  set
@@ -7317,7 +7317,7 @@ function store_createStore({
7317
7317
  });
7318
7318
  return store;
7319
7319
  }
7320
- const useAppDispatch = useDispatch;
7320
+ const useAppDispatch = useDispatch_useDispatch;
7321
7321
  ;// CONCATENATED MODULE: ./src/javascripts/domains/visibility/hooks.ts
7322
7322
 
7323
7323
 
@@ -7328,7 +7328,7 @@ const useAppDispatch = useDispatch;
7328
7328
 
7329
7329
 
7330
7330
 
7331
- const useVisibility = () => {
7331
+ const hooks_useVisibility = () => {
7332
7332
  const dispatch = useAppDispatch();
7333
7333
  const visible = useSelector_useSelector(selectVisibility);
7334
7334
  const isVisible = visible ? visible !== visibilityStates.hidden : false;
@@ -7384,11 +7384,11 @@ const useIntersect = ({
7384
7384
  };
7385
7385
  };
7386
7386
  const useShowInlineView = () => {
7387
- const dispatch = useDispatch();
7387
+ const dispatch = useDispatch_useDispatch();
7388
7388
  const {
7389
7389
  connectWhenInView
7390
7390
  } = useConfig();
7391
- const showInlineView = useSelector_useSelector(selectShowInlineView);
7391
+ const showInlineView = useSelector_useSelector(selectors_selectShowInlineView);
7392
7392
  const {
7393
7393
  containerRef,
7394
7394
  isVisible
@@ -7425,17 +7425,17 @@ function use_seamly_commands_defineProperty(obj, key, value) { if (key in obj) {
7425
7425
 
7426
7426
 
7427
7427
 
7428
- const useSeamlyCommands = () => {
7428
+ const use_seamly_commands_useSeamlyCommands = () => {
7429
7429
  const api = seamly_api_hooks_useSeamlyApiContext();
7430
7430
  const appConfig = useConfig();
7431
- const dispatch = useDispatch();
7431
+ const dispatch = useDispatch_useDispatch();
7432
7432
  const eventBus = (0,hooks_.useContext)(SeamlyEventBusContext);
7433
7433
  const userHasResponded = useUserHasResponded();
7434
- const hasConversation = useSeamlyHasConversation();
7434
+ const hasConversation = seamly_api_hooks_useSeamlyHasConversation();
7435
7435
  const {
7436
7436
  visible: visibility,
7437
7437
  setVisibility
7438
- } = useVisibility();
7438
+ } = hooks_useVisibility();
7439
7439
  const unreadMessageCount = useSeamlyUnreadCount();
7440
7440
  const emitEvent = (0,hooks_.useCallback)((...args) => {
7441
7441
  eventBus.emit(...args);
@@ -7591,7 +7591,7 @@ const useSeamlyCommands = () => {
7591
7591
  apiConfigReady: api.configReady
7592
7592
  };
7593
7593
  };
7594
- /* harmony default export */ const use_seamly_commands = (useSeamlyCommands);
7594
+ /* harmony default export */ const use_seamly_commands = (use_seamly_commands_useSeamlyCommands);
7595
7595
  ;// CONCATENATED MODULE: ./src/javascripts/ui/hooks/use-seamly-chat.js
7596
7596
 
7597
7597
 
@@ -7617,23 +7617,23 @@ const useSeamlyChat = () => {
7617
7617
  isOpen,
7618
7618
  isVisible
7619
7619
  } = useVisibility();
7620
- const showInlineView = useSelector_useSelector(selectShowInlineView);
7620
+ const showInlineView = useSelector(selectShowInlineView);
7621
7621
  const dispatch = useDispatch();
7622
- const spinnerTimeout = (0,hooks_.useRef)(null);
7622
+ const spinnerTimeout = useRef(null);
7623
7623
  const {
7624
7624
  start,
7625
7625
  connect,
7626
7626
  apiConfigReady,
7627
7627
  apiConnected
7628
- } = use_seamly_commands();
7628
+ } = useSeamlyCommands();
7629
7629
  const hasConversation = useSeamlyHasConversation();
7630
- const prevIsOpen = (0,hooks_.useRef)(null);
7631
- const prevIsVisible = (0,hooks_.useRef)(null);
7632
- const connectCalled = (0,hooks_.useRef)(false);
7630
+ const prevIsOpen = useRef(null);
7631
+ const prevIsVisible = useRef(null);
7632
+ const connectCalled = useRef(false);
7633
7633
  const {
7634
7634
  sendAssertive
7635
7635
  } = useLiveRegion();
7636
- (0,hooks_.useEffect)(() => {
7636
+ useEffect(() => {
7637
7637
  if (isVisible) {
7638
7638
  // Wait for the live containers to stabilise in the DOM before injecting
7639
7639
  // the message or some screen readers will swallow it.
@@ -7642,7 +7642,7 @@ const useSeamlyChat = () => {
7642
7642
  }, 500);
7643
7643
  }
7644
7644
  }, [isVisible, sendAssertive, t]);
7645
- (0,hooks_.useEffect)(() => {
7645
+ useEffect(() => {
7646
7646
  if (isVisible !== prevIsVisible.current) {
7647
7647
  prevIsOpen.current = isOpen;
7648
7648
  prevIsVisible.current = isVisible;
@@ -7658,7 +7658,7 @@ const useSeamlyChat = () => {
7658
7658
  prevIsOpen.current = isOpen;
7659
7659
  prevIsVisible.current = isVisible;
7660
7660
  }, [isOpen, isVisible, sendAssertive, t]);
7661
- (0,hooks_.useEffect)(() => {
7661
+ useEffect(() => {
7662
7662
  // This delays the start of the loading inidicator we set when we initialise
7663
7663
  // the application. This is done to only avoid BSOD on initial load if DCX is slow.
7664
7664
  spinnerTimeout.current = setTimeout(() => {
@@ -7668,7 +7668,7 @@ const useSeamlyChat = () => {
7668
7668
  clearTimeout(spinnerTimeout.current);
7669
7669
  };
7670
7670
  }, [dispatch]);
7671
- (0,hooks_.useEffect)(() => {
7671
+ useEffect(() => {
7672
7672
  if (events.length) {
7673
7673
  spinnerTimeout.current = setTimeout(() => {
7674
7674
  dispatch(setIsLoading(false));
@@ -7678,14 +7678,14 @@ const useSeamlyChat = () => {
7678
7678
  clearTimeout(spinnerTimeout.current);
7679
7679
  };
7680
7680
  }, [events, dispatch]);
7681
- (0,hooks_.useEffect)(() => {
7681
+ useEffect(() => {
7682
7682
  // This is needed to reset the ref to allow connect and start to happen again.
7683
7683
  // Mostly due to Interrupt situations and a reset being called.
7684
7684
  if (!apiConfigReady || !apiConnected) {
7685
7685
  connectCalled.current = false;
7686
7686
  }
7687
7687
  }, [apiConfigReady, apiConnected]);
7688
- const connectAndStart = (0,hooks_.useCallback)(async () => {
7688
+ const connectAndStart = useCallback(async () => {
7689
7689
  // We don't connect if we are already connected to the api to avoid multiple in-flight connection processes.
7690
7690
  if (!apiConnected) {
7691
7691
  connectCalled.current = true;
@@ -7697,7 +7697,7 @@ const useSeamlyChat = () => {
7697
7697
  start();
7698
7698
  }
7699
7699
  }, [apiConnected, connect, isApp, isInline, isOpen, isVisible, start]);
7700
- (0,hooks_.useEffect)(() => {
7700
+ useEffect(() => {
7701
7701
  // We dont't connect or start when the apiConfig is not ready yet.
7702
7702
  // We also keep track of whether start has been called to avoid multiple in-flight connection processes.
7703
7703
  // We check if the window view is not open and no conversation is started yet.
@@ -7714,7 +7714,7 @@ const useSeamlyChat = () => {
7714
7714
  connectAndStart();
7715
7715
  }, [apiConfigReady, connectAndStart, dispatch, hasConversation, isInline, isOpen, isWindow, isVisible, showInlineView]);
7716
7716
  };
7717
- /* harmony default export */ const use_seamly_chat = (useSeamlyChat);
7717
+ /* harmony default export */ const use_seamly_chat = ((/* unused pure expression or super */ null && (useSeamlyChat)));
7718
7718
  ;// CONCATENATED MODULE: ./src/javascripts/ui/hooks/use-seamly-idle-detach-countdown.js
7719
7719
  function use_seamly_idle_detach_countdown_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
7720
7720
  function use_seamly_idle_detach_countdown_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? use_seamly_idle_detach_countdown_ownKeys(Object(source), !0).forEach(function (key) { use_seamly_idle_detach_countdown_defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : use_seamly_idle_detach_countdown_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
@@ -7731,13 +7731,13 @@ function use_seamly_idle_detach_countdown_defineProperty(obj, key, value) { if (
7731
7731
 
7732
7732
 
7733
7733
  const useSeamlyIdleDetachCountdown = () => {
7734
- const dispatch = useDispatch();
7734
+ const dispatch = useDispatch_useDispatch();
7735
7735
  const {
7736
7736
  idleDetachCountdown
7737
7737
  } = useSeamlyStateContext();
7738
7738
  const {
7739
7739
  isOpen: isSeamlyOpen
7740
- } = useVisibility();
7740
+ } = hooks_useVisibility();
7741
7741
  const stableState = (0,hooks_.useRef)({});
7742
7742
  stableState.current = {
7743
7743
  hasCountdown: idleDetachCountdown.hasCountdown,
@@ -7752,11 +7752,11 @@ const useSeamlyIdleDetachCountdown = () => {
7752
7752
  } = use_seamly_commands();
7753
7753
  const {
7754
7754
  t
7755
- } = useI18n();
7755
+ } = hooks_useI18n();
7756
7756
  const {
7757
7757
  sendAssertive,
7758
7758
  sendPolite
7759
- } = useLiveRegion();
7759
+ } = live_region_hooks_useLiveRegion();
7760
7760
  const sendAssertiveIfOpen = (0,hooks_.useCallback)(text => {
7761
7761
  const {
7762
7762
  isOpen
@@ -7848,17 +7848,17 @@ const useSeamlyIdleDetachCountdown = () => {
7848
7848
 
7849
7849
 
7850
7850
  const useSeamlyResumeConversationPrompt = () => {
7851
- const dispatch = useDispatch();
7851
+ const dispatch = useDispatch_useDispatch();
7852
7852
  const hasPrompt = useSeamlyStateContext().resumeConversationPrompt;
7853
7853
  const {
7854
7854
  sendAction
7855
7855
  } = use_seamly_commands();
7856
7856
  const {
7857
7857
  t
7858
- } = useI18n();
7858
+ } = hooks_useI18n();
7859
7859
  const {
7860
7860
  sendAssertive
7861
- } = useLiveRegion();
7861
+ } = live_region_hooks_useLiveRegion();
7862
7862
  const continueChat = () => {
7863
7863
  sendAction({
7864
7864
  type: actionTypes.dismiss,
@@ -7979,7 +7979,7 @@ function useTranslations() {
7979
7979
  const {
7980
7980
  sendAction
7981
7981
  } = use_seamly_commands();
7982
- const dispatch = useDispatch();
7982
+ const dispatch = useDispatch_useDispatch();
7983
7983
  const enableTranslations = (0,hooks_.useCallback)((locale, source = sourceTypes.translationChoice) => {
7984
7984
  sendAction({
7985
7985
  type: actionTypes.setTranslation,
@@ -8073,7 +8073,7 @@ const useTranslationProposal = () => {
8073
8073
  isActive,
8074
8074
  languages
8075
8075
  } = useTranslations();
8076
- const dispatch = useDispatch();
8076
+ const dispatch = useDispatch_useDispatch();
8077
8077
  const {
8078
8078
  sendAction
8079
8079
  } = use_seamly_commands();
@@ -8085,10 +8085,10 @@ const useTranslationProposal = () => {
8085
8085
  } = useTranslations();
8086
8086
  const {
8087
8087
  isOpen
8088
- } = useVisibility();
8088
+ } = hooks_useVisibility();
8089
8089
  const {
8090
8090
  locale
8091
- } = useI18n();
8091
+ } = hooks_useI18n();
8092
8092
  const proposedLocale = translationProposal === null || translationProposal === void 0 ? void 0 : translationProposal.proposedLocale;
8093
8093
  const proposedLocaleNativeName = useLocaleNativeName(proposedLocale);
8094
8094
  const showProposal = (0,hooks_.useMemo)(() => translationProposal !== null && !isActive && isOpen && locale !== proposedLocale && languages.some(language => language.locale === proposedLocale), [translationProposal, isActive, isOpen, locale, proposedLocale, languages]);
@@ -8124,7 +8124,7 @@ const EventParticipant = ({
8124
8124
  }) => {
8125
8125
  const {
8126
8126
  t
8127
- } = useI18n();
8127
+ } = hooks_useI18n();
8128
8128
  const {
8129
8129
  fromClient,
8130
8130
  participant: participantId
@@ -8384,7 +8384,7 @@ function CarouselMessageSlide({
8384
8384
  }) {
8385
8385
  const {
8386
8386
  t
8387
- } = useI18n();
8387
+ } = hooks_useI18n();
8388
8388
  return (0,jsx_runtime_namespaceObject.jsx)("div", {
8389
8389
  className: css_className('carousel-item', `carousel-item--${slide.type}`),
8390
8390
  role: "group",
@@ -8534,7 +8534,7 @@ function CarouselControls({
8534
8534
  }) {
8535
8535
  const {
8536
8536
  t
8537
- } = useI18n();
8537
+ } = hooks_useI18n();
8538
8538
  const itemCount = items.length;
8539
8539
  const handlePrevious = () => {
8540
8540
  onChange((currentIndex - 1 + itemCount) % itemCount);
@@ -8822,7 +8822,7 @@ const ChoicePrompt = _ref => {
8822
8822
  props = choice_prompt_objectWithoutProperties(_ref, choice_prompt_excluded);
8823
8823
  const {
8824
8824
  t
8825
- } = useI18n();
8825
+ } = hooks_useI18n();
8826
8826
  const descriptorId = useGeneratedId();
8827
8827
  const {
8828
8828
  body,
@@ -8973,7 +8973,7 @@ const ConversationSuggestions = _ref => {
8973
8973
  } = _ref,
8974
8974
  props = conversation_suggestions_objectWithoutProperties(_ref, conversation_suggestions_excluded);
8975
8975
  const [isExpanded, setIsExpanded] = (0,hooks_.useState)(true);
8976
- const dispatch = useDispatch();
8976
+ const dispatch = useDispatch_useDispatch();
8977
8977
  const userHasResponded = useUserHasResponded();
8978
8978
  const {
8979
8979
  sendAction,
@@ -8986,10 +8986,10 @@ const ConversationSuggestions = _ref => {
8986
8986
  const {
8987
8987
  showSuggestions
8988
8988
  } = useConfig();
8989
- const events = useEvents();
8989
+ const events = seamly_state_hooks_useEvents();
8990
8990
  const {
8991
8991
  t
8992
- } = useI18n();
8992
+ } = hooks_useI18n();
8993
8993
  const headingText = t('suggestions.headingText');
8994
8994
  const footerText = t('suggestions.footerText');
8995
8995
 
@@ -9176,7 +9176,7 @@ const Divider = ({
9176
9176
  }) => {
9177
9177
  const {
9178
9178
  t
9179
- } = useI18n();
9179
+ } = hooks_useI18n();
9180
9180
  const {
9181
9181
  subtype
9182
9182
  } = event.payload.body;
@@ -9207,8 +9207,8 @@ const NewTranslationDivider = ({
9207
9207
  }) => {
9208
9208
  const {
9209
9209
  t
9210
- } = useI18n();
9211
- const events = useEvents();
9210
+ } = hooks_useI18n();
9211
+ const events = seamly_state_hooks_useEvents();
9212
9212
  const {
9213
9213
  body: {
9214
9214
  restartButtonText,
@@ -9223,7 +9223,7 @@ const NewTranslationDivider = ({
9223
9223
  enableTranslations
9224
9224
  } = useTranslations();
9225
9225
  const translatedEventGroups = useSelector_useSelector(state => state.translations.translatedEventGroups);
9226
- const dispatch = useDispatch();
9226
+ const dispatch = useDispatch_useDispatch();
9227
9227
  const toggleTranslations = (0,hooks_.useCallback)(() => {
9228
9228
  if (!translatedEventGroups[id]) {
9229
9229
  dispatch(disableEventsTranslation({
@@ -9305,7 +9305,7 @@ const timeFormatOptions = {
9305
9305
  const useFormattedDate = date => {
9306
9306
  const {
9307
9307
  t
9308
- } = useI18n();
9308
+ } = hooks_useI18n();
9309
9309
  const config = useConfig();
9310
9310
  const locale = config?.context?.locale ?? [];
9311
9311
  const eventDate = new Date(date);
@@ -10659,7 +10659,7 @@ const Lightbox = ({
10659
10659
  const focusContainer = (0,hooks_.useRef)(null);
10660
10660
  const {
10661
10661
  t
10662
- } = useI18n();
10662
+ } = hooks_useI18n();
10663
10663
 
10664
10664
  // TODO: Change incorrect usage of css modifiers
10665
10665
  const defaultClassNames = [`app--layout-${layoutMode}`, `namespace--${namespace}`];
@@ -10733,7 +10733,7 @@ const ImageLightbox = ({
10733
10733
  }) => {
10734
10734
  const {
10735
10735
  t
10736
- } = useI18n();
10736
+ } = hooks_useI18n();
10737
10737
  const [showLightBox, setShowLightBox] = (0,hooks_.useState)(false);
10738
10738
  const onOpenLightboxHandler = () => {
10739
10739
  setShowLightBox(true);
@@ -10790,7 +10790,7 @@ const Image = _ref => {
10790
10790
  isZoomable
10791
10791
  } = body;
10792
10792
  const [showLighbox, setShowLightbox] = (0,hooks_.useState)(false);
10793
- const dispatch = useDispatch();
10793
+ const dispatch = useDispatch_useDispatch();
10794
10794
  const handleOnLoad = () => {
10795
10795
  dispatch(setLoadedImageEventIds(event.payload.id));
10796
10796
  setShowLightbox(true);
@@ -10934,7 +10934,7 @@ const Translation = _ref => {
10934
10934
  props = translation_objectWithoutProperties(_ref, translation_excluded);
10935
10935
  const {
10936
10936
  t
10937
- } = useI18n();
10937
+ } = hooks_useI18n();
10938
10938
  const {
10939
10939
  body
10940
10940
  } = useTranslatedEventData(event);
@@ -10982,7 +10982,7 @@ const Upload = _ref => {
10982
10982
  props = upload_objectWithoutProperties(_ref, upload_excluded);
10983
10983
  const {
10984
10984
  t
10985
- } = useI18n();
10985
+ } = hooks_useI18n();
10986
10986
  const {
10987
10987
  body
10988
10988
  } = useTranslatedEventData(event);
@@ -11182,7 +11182,7 @@ const Event = ({ event, newParticipant }) => {
11182
11182
  containerRef: ref,
11183
11183
  freezeOnceVisible: true,
11184
11184
  });
11185
- const dispatch = useDispatch();
11185
+ const dispatch = useDispatch_useDispatch();
11186
11186
  const [Component, SubComponent] = use_event_component_mapping(event);
11187
11187
  (0,compat_namespaceObject.useEffect)(() => {
11188
11188
  if (isVisible && (unreadIds === null || unreadIds === void 0 ? void 0 : unreadIds.includes(event.payload.id))) {
@@ -11261,7 +11261,7 @@ const Loader = () => {
11261
11261
 
11262
11262
 
11263
11263
  const Events = () => {
11264
- const events = useEvents();
11264
+ const events = seamly_state_hooks_useEvents();
11265
11265
  let prevParticipant = null;
11266
11266
  return ((0,jsx_runtime_namespaceObject.jsx)(jsx_runtime_namespaceObject.Fragment, { children: events.map((event) => {
11267
11267
  const { type, payload } = event;
@@ -11280,9 +11280,9 @@ const Events = () => {
11280
11280
  }) }));
11281
11281
  };
11282
11282
  const Conversation = () => {
11283
- const { t } = useI18n();
11283
+ const { t } = hooks_useI18n();
11284
11284
  const isLoading = useSeamlyIsLoading();
11285
- const { isOpen } = useVisibility();
11285
+ const { isOpen } = hooks_useVisibility();
11286
11286
  const skiplinkTargetId = useSkiplink();
11287
11287
  const focusSkiplinkTarget = useSkiplinkTargetFocusing();
11288
11288
  const onClickHandler = (e) => {
@@ -11308,7 +11308,7 @@ const selectError = es_createSelector(({
11308
11308
  function useInterrupt() {
11309
11309
  const {
11310
11310
  t
11311
- } = useI18n();
11311
+ } = hooks_useI18n();
11312
11312
  const error = useSelector_useSelector(selectError);
11313
11313
  const hasInterrupt = Boolean(error);
11314
11314
  const meta = (0,hooks_.useMemo)(() => {
@@ -11355,11 +11355,11 @@ const DeprecatedToggleButton = ({
11355
11355
  }) => {
11356
11356
  const {
11357
11357
  t
11358
- } = useI18n();
11358
+ } = hooks_useI18n();
11359
11359
  const titleId = useGeneratedId();
11360
11360
  const {
11361
11361
  isOpen
11362
- } = useVisibility();
11362
+ } = hooks_useVisibility();
11363
11363
  const prevIsOpen = (0,hooks_.useRef)(null);
11364
11364
  const buttonRef = (0,hooks_.useRef)(null);
11365
11365
  const lastEventRef = (0,hooks_.useRef)();
@@ -11462,7 +11462,7 @@ const Prompt = ({
11462
11462
  const IdleDetachWarning = () => {
11463
11463
  const {
11464
11464
  t
11465
- } = useI18n();
11465
+ } = hooks_useI18n();
11466
11466
  const focusSkiplinkTarget = useSkiplinkTargetFocusing();
11467
11467
  const sendActivity = use_seamly_activity_event_handler();
11468
11468
  const {
@@ -11532,7 +11532,7 @@ const IdleDetachWarning = () => {
11532
11532
  const ResumeConversationPrompt = () => {
11533
11533
  const {
11534
11534
  t
11535
- } = useI18n();
11535
+ } = hooks_useI18n();
11536
11536
  const sendActivity = use_seamly_activity_event_handler();
11537
11537
  const {
11538
11538
  name: currentAgentName
@@ -11643,7 +11643,7 @@ const useSeamlyEntry = () => {
11643
11643
  options: entryOptions,
11644
11644
  optionsOverride: entryOptionsOverride
11645
11645
  } = useSeamlyStateContext().entryMeta;
11646
- const dispatch = useDispatch();
11646
+ const dispatch = useDispatch_useDispatch();
11647
11647
  const activeEntry = userSelected || active || defaultEntry;
11648
11648
  const activeEntryOptions = entryOptionsOverride[activeEntry] || entryOptions[activeEntry] || {};
11649
11649
  const dispatchBlockAutoEntrySwitch = (0,hooks_.useCallback)(value => {
@@ -11760,7 +11760,7 @@ function useValidations(values, validationSchema) {
11760
11760
  };
11761
11761
  }
11762
11762
  function useFormControl(name) {
11763
- const dispatch = useDispatch();
11763
+ const dispatch = useDispatch_useDispatch();
11764
11764
  const {
11765
11765
  formId,
11766
11766
  updateControlValue,
@@ -11841,7 +11841,7 @@ var provider_rest = (undefined && undefined.__rest) || function (s, e) {
11841
11841
 
11842
11842
  function FormProvider(_a) {
11843
11843
  var { children, formId, persistData, onError, onSubmit, validationSchema } = _a, props = provider_rest(_a, ["children", "formId", "persistData", "onError", "onSubmit", "validationSchema"]);
11844
- const dispatch = useDispatch();
11844
+ const dispatch = useDispatch_useDispatch();
11845
11845
  const values = useSelector_useSelector((store) => getFormValuesByFormId(store, { formId }));
11846
11846
  const [isSubmitted, setIsSubmitted] = (0,hooks_.useState)(false);
11847
11847
  const [externalErrors, setExternalErrors] = (0,hooks_.useState)({});
@@ -12093,10 +12093,10 @@ function Input(_ref) {
12093
12093
  function useCharacterLimit(controlName) {
12094
12094
  const {
12095
12095
  t
12096
- } = useI18n();
12096
+ } = hooks_useI18n();
12097
12097
  const {
12098
12098
  sendAssertive
12099
- } = useLiveRegion();
12099
+ } = live_region_hooks_useLiveRegion();
12100
12100
  const {
12101
12101
  hasLimit,
12102
12102
  limit
@@ -12147,10 +12147,10 @@ function TextEntryForm({
12147
12147
  }) {
12148
12148
  const {
12149
12149
  t
12150
- } = useI18n();
12150
+ } = hooks_useI18n();
12151
12151
  const {
12152
12152
  sendAssertive
12153
- } = useLiveRegion();
12153
+ } = live_region_hooks_useLiveRegion();
12154
12154
  const {
12155
12155
  emitEvent
12156
12156
  } = use_seamly_commands();
@@ -12255,7 +12255,7 @@ function TextEntry(_ref) {
12255
12255
  const {
12256
12256
  isOpen,
12257
12257
  setVisibility
12258
- } = useVisibility();
12258
+ } = hooks_useVisibility();
12259
12259
  const skipLinkId = useSkiplink();
12260
12260
  const focusSkipLinkTarget = useSkiplinkTargetFocusing();
12261
12261
  const {
@@ -12293,7 +12293,7 @@ function TextEntry(_ref) {
12293
12293
  const UploadProgress = () => {
12294
12294
  const {
12295
12295
  t
12296
- } = useI18n();
12296
+ } = hooks_useI18n();
12297
12297
  const {
12298
12298
  currentUploads
12299
12299
  } = useFileUploads();
@@ -12512,7 +12512,7 @@ function FileInputForm({
12512
12512
  }) {
12513
12513
  const {
12514
12514
  t
12515
- } = useI18n();
12515
+ } = hooks_useI18n();
12516
12516
  const [{
12517
12517
  value: fileList
12518
12518
  }] = useFormControl(controlName);
@@ -12567,11 +12567,11 @@ const fileInputName = 'fileList';
12567
12567
  const upload_Upload = () => {
12568
12568
  const {
12569
12569
  t
12570
- } = useI18n();
12570
+ } = hooks_useI18n();
12571
12571
  const {
12572
12572
  sendPolite,
12573
12573
  sendAssertive
12574
- } = useLiveRegion();
12574
+ } = live_region_hooks_useLiveRegion();
12575
12575
  const skiplinkTargetId = useSkiplink();
12576
12576
  const focusSkiplinkTarget = useSkiplinkTargetFocusing();
12577
12577
  // This hook should be refactored at some point
@@ -12809,7 +12809,7 @@ const InOutTransition = ({
12809
12809
  const UploadToggle = () => {
12810
12810
  const {
12811
12811
  t
12812
- } = useI18n();
12812
+ } = hooks_useI18n();
12813
12813
  const {
12814
12814
  showFileUpload,
12815
12815
  serviceAllowsUploads
@@ -12824,7 +12824,7 @@ const UploadToggle = () => {
12824
12824
  const uploadButton = (0,hooks_.useRef)(null);
12825
12825
  const {
12826
12826
  sendPolite
12827
- } = useLiveRegion();
12827
+ } = live_region_hooks_useLiveRegion();
12828
12828
  const hasAgent = !!useSeamlyCurrentAgent();
12829
12829
  (0,hooks_.useEffect)(() => {
12830
12830
  const focusFn = () => {
@@ -12901,7 +12901,7 @@ function entry_container_defineProperty(obj, key, value) { if (key in obj) { Obj
12901
12901
  const EntryContainer = () => {
12902
12902
  const {
12903
12903
  isOpen
12904
- } = useVisibility();
12904
+ } = hooks_useVisibility();
12905
12905
  const entryContainer = (0,hooks_.useRef)(null);
12906
12906
  const {
12907
12907
  hasCountdown
@@ -12979,7 +12979,7 @@ const EntryContainer = () => {
12979
12979
  const AgentInfo = () => {
12980
12980
  const {
12981
12981
  t
12982
- } = useI18n();
12982
+ } = hooks_useI18n();
12983
12983
  const {
12984
12984
  title,
12985
12985
  subTitle
@@ -12987,7 +12987,7 @@ const AgentInfo = () => {
12987
12987
  const unreadMessageCount = useSeamlyUnreadCount();
12988
12988
  const {
12989
12989
  isOpen
12990
- } = useVisibility();
12990
+ } = hooks_useVisibility();
12991
12991
  const currentAgent = useSeamlyCurrentAgent();
12992
12992
  const {
12993
12993
  hasInterrupt
@@ -13060,10 +13060,10 @@ const Suggestions = ({
13060
13060
  // generic hooks
13061
13061
  const {
13062
13062
  isInline
13063
- } = useSeamlyLayoutMode();
13063
+ } = seamly_state_hooks_useSeamlyLayoutMode();
13064
13064
  const {
13065
13065
  t
13066
- } = useI18n();
13066
+ } = hooks_useI18n();
13067
13067
  const {
13068
13068
  sendAction,
13069
13069
  addMessageBubble
@@ -13071,7 +13071,7 @@ const Suggestions = ({
13071
13071
  const {
13072
13072
  isOpen,
13073
13073
  setVisibility
13074
- } = useVisibility();
13074
+ } = hooks_useVisibility();
13075
13075
  const {
13076
13076
  showSuggestions
13077
13077
  } = useConfig();
@@ -13081,7 +13081,7 @@ const Suggestions = ({
13081
13081
  const containerRef = (0,hooks_.useRef)(null);
13082
13082
  const {
13083
13083
  sendPolite
13084
- } = useLiveRegion();
13084
+ } = live_region_hooks_useLiveRegion();
13085
13085
  // interrupt & countdown hooks
13086
13086
  const {
13087
13087
  hasInterrupt
@@ -13217,19 +13217,19 @@ const Chat = (0,compat_namespaceObject.forwardRef)(({
13217
13217
  isOpen,
13218
13218
  isVisible,
13219
13219
  setVisibility
13220
- } = useVisibility();
13220
+ } = hooks_useVisibility();
13221
13221
  const {
13222
13222
  namespace,
13223
13223
  layoutMode
13224
13224
  } = useConfig();
13225
13225
  const {
13226
13226
  isInline
13227
- } = useSeamlyLayoutMode();
13227
+ } = seamly_state_hooks_useSeamlyLayoutMode();
13228
13228
  const appContainerClassNames = useSeamlyAppContainerClassNames();
13229
13229
  const userHasResponded = useUserHasResponded();
13230
13230
  const {
13231
13231
  t
13232
- } = useI18n();
13232
+ } = hooks_useI18n();
13233
13233
  const defaultClassNames = ['chat', `chat--layout-${layoutMode}`, `namespace--${namespace}`];
13234
13234
  const classNames = [...defaultClassNames, ...appContainerClassNames, givenClassName];
13235
13235
  if (!isOpen && layoutMode !== 'app') {
@@ -13339,7 +13339,7 @@ function TranscriptForm({
13339
13339
  }) {
13340
13340
  const {
13341
13341
  t
13342
- } = useI18n();
13342
+ } = hooks_useI18n();
13343
13343
  return (0,jsx_runtime_namespaceObject.jsxs)(form_controls_form, {
13344
13344
  noValidate: "true",
13345
13345
  className: css_className('options__form'),
@@ -13383,7 +13383,7 @@ const Transcript = () => {
13383
13383
  } = useOptionButton();
13384
13384
  const {
13385
13385
  t
13386
- } = useI18n();
13386
+ } = hooks_useI18n();
13387
13387
  const transcriptDescriptionId = useGeneratedId();
13388
13388
  const {
13389
13389
  sendAction
@@ -13473,7 +13473,7 @@ const Options = () => {
13473
13473
  const OptionsButton = () => {
13474
13474
  const {
13475
13475
  t
13476
- } = useI18n();
13476
+ } = hooks_useI18n();
13477
13477
  const {
13478
13478
  menuOptions,
13479
13479
  showOption,
@@ -13691,7 +13691,7 @@ const TranslationOption = ({ label, checked, description, onChange, id, }) => {
13691
13691
 
13692
13692
  const TranslationOptions = ({ onChange, describedById, }) => {
13693
13693
  const { context: { locale: defaultLocale }, } = useConfig();
13694
- const { t } = useI18n();
13694
+ const { t } = hooks_useI18n();
13695
13695
  const { focusContainer } = useTranslationsContainer();
13696
13696
  const { languages, currentLocale, enableTranslations, disableTranslations } = useTranslations();
13697
13697
  const handleChange = ({ locale }) => () => {
@@ -13730,7 +13730,7 @@ const TranslationOptions = ({ onChange, describedById, }) => {
13730
13730
 
13731
13731
 
13732
13732
  function TranslationsOptionsDialog({ onClose, position, }) {
13733
- const { t } = useI18n();
13733
+ const { t } = hooks_useI18n();
13734
13734
  const descriptionId = useGeneratedId();
13735
13735
  return ((0,jsx_runtime_namespaceObject.jsx)(options_frame, Object.assign({ onCancel: onClose, headingText: t('translations.menu.title'), cancelButtonText: t('translations.settings.cancelButtonText'), description: t('translations.menu.description'), descriptionId: descriptionId, position: position, disableButtonFocusing: true }, { children: (0,jsx_runtime_namespaceObject.jsx)(translation_options, { describedById: descriptionId, onChange: onClose }) })));
13736
13736
  }
@@ -13804,7 +13804,7 @@ function AppOptions() {
13804
13804
  const {
13805
13805
  t,
13806
13806
  locale
13807
- } = useI18n();
13807
+ } = hooks_useI18n();
13808
13808
  const localeNativeName = useLocaleNativeName(locale);
13809
13809
  if (!isTranslationsAvailable && (!allowOptionSelection || !menuOptions.length) || hasInterrupt) {
13810
13810
  return null;
@@ -13845,8 +13845,8 @@ function AppOptions() {
13845
13845
 
13846
13846
  const UnreadMessagesButton = () => {
13847
13847
  const { scrollToRef, unreadIds } = (0,hooks_.useContext)(chat_scroll_context);
13848
- const { isMinimized } = useVisibility();
13849
- const { t } = useI18n();
13848
+ const { isMinimized } = hooks_useVisibility();
13849
+ const { t } = hooks_useI18n();
13850
13850
  return ((0,jsx_runtime_namespaceObject.jsx)(in_out_transition, Object.assign({ isActive: !!unreadIds.length && !isMinimized }, { children: (0,jsx_runtime_namespaceObject.jsx)("div", Object.assign({ className: css_className('unread-messages') }, { children: (0,jsx_runtime_namespaceObject.jsxs)("button", Object.assign({ type: "button", className: css_className('button', 'button--primary'), onClick: scrollToRef }, { children: [t('message.unreadMessagesCount', { unreadCount: unreadIds.length }), (0,jsx_runtime_namespaceObject.jsx)(layout_icon, { name: "chevronDown", size: "32", alt: "" })] })) })) })));
13851
13851
  };
13852
13852
  /* harmony default export */ const unread_messages_button = (UnreadMessagesButton);
@@ -13904,11 +13904,11 @@ const useChatScroll = eventRefs => {
13904
13904
  const containerRef = (0,hooks_.useRef)();
13905
13905
  const [hasScrolledToBottom, setHasScrolledToBottom] = (0,hooks_.useState)(true);
13906
13906
  const unreadIds = useSelector_useSelector(selectUnreadEventIds);
13907
- const events = useEvents();
13907
+ const events = seamly_state_hooks_useEvents();
13908
13908
  const isLoading = useSeamlyIsLoading();
13909
13909
  const {
13910
13910
  isOpen
13911
- } = useVisibility();
13911
+ } = hooks_useVisibility();
13912
13912
  const loadedImageEventIds = useLoadedImageEventIds();
13913
13913
  const isLastEventFromClient = useSelector_useSelector(state => state.state.isLastEventFromClient);
13914
13914
  (0,hooks_.useEffect)(() => {
@@ -13974,7 +13974,7 @@ const useChatScroll = eventRefs => {
13974
13974
 
13975
13975
 
13976
13976
  const ChatScrollProvider = ({ children }) => {
13977
- const events = useEvents();
13977
+ const events = seamly_state_hooks_useEvents();
13978
13978
  const eventRefs = (0,hooks_.useMemo)(() => events.reduce((acc, value) => {
13979
13979
  acc[value.payload.id] = (0,external_preact_.createRef)();
13980
13980
  return acc;
@@ -14000,14 +14000,14 @@ const ChatScrollProvider = ({ children }) => {
14000
14000
  const CollapseButton = () => {
14001
14001
  const {
14002
14002
  t
14003
- } = useI18n();
14003
+ } = hooks_useI18n();
14004
14004
  const {
14005
14005
  isOpen,
14006
14006
  closeChat
14007
- } = useVisibility();
14007
+ } = hooks_useVisibility();
14008
14008
  const {
14009
14009
  isWindow
14010
- } = useSeamlyLayoutMode();
14010
+ } = seamly_state_hooks_useSeamlyLayoutMode();
14011
14011
  return isOpen && isWindow ? (0,jsx_runtime_namespaceObject.jsx)("button", {
14012
14012
  type: "button",
14013
14013
  className: css_className('button', 'collapse-button'),
@@ -14040,7 +14040,7 @@ const ChatStatus = ({ children, handleClose, title, closeButtonText, srCloseButt
14040
14040
 
14041
14041
 
14042
14042
  function TranslationChatStatus() {
14043
- const { t } = useI18n();
14043
+ const { t } = hooks_useI18n();
14044
14044
  const { id } = useTranslationsContainer();
14045
14045
  const { hasInterrupt } = useInterrupt();
14046
14046
  const { disableTranslations, currentLocale } = useTranslations();
@@ -14118,7 +14118,7 @@ function ChatFrame({
14118
14118
  } = useInterrupt();
14119
14119
  const {
14120
14120
  isOpen
14121
- } = useVisibility();
14121
+ } = hooks_useVisibility();
14122
14122
  if (hasInterrupt) {
14123
14123
  if (isOpen) {
14124
14124
  return (0,jsx_runtime_namespaceObject.jsx)(InterruptComponent, chat_frame_objectSpread({}, meta));
@@ -14153,7 +14153,7 @@ const Header = ({
14153
14153
  const closeButton = (0,hooks_.useRef)(null);
14154
14154
  const {
14155
14155
  t
14156
- } = useI18n();
14156
+ } = hooks_useI18n();
14157
14157
  return (0,jsx_runtime_namespaceObject.jsxs)("header", {
14158
14158
  className: css_className('chat__header'),
14159
14159
  children: [children, (0,jsx_runtime_namespaceObject.jsx)("div", {
@@ -14194,7 +14194,7 @@ const Interrupt = ({
14194
14194
  const headingId = useGeneratedId();
14195
14195
  const {
14196
14196
  sendPolite
14197
- } = useLiveRegion();
14197
+ } = live_region_hooks_useLiveRegion();
14198
14198
  const focusSkiplinkTarget = useSkiplinkTargetFocusing();
14199
14199
  const isExpiredError = originalError.name === 'SeamlySessionExpiredError';
14200
14200
  (0,hooks_.useEffect)(() => {
@@ -14282,7 +14282,7 @@ function PreChatMessages() {
14282
14282
  } = useInterrupt();
14283
14283
  const {
14284
14284
  isOpen
14285
- } = useVisibility();
14285
+ } = hooks_useVisibility();
14286
14286
  const isVisible = !(hasInterrupt || !preChatEvents?.length || isOpen);
14287
14287
  return isVisible && (0,jsx_runtime_namespaceObject.jsx)("ul", {
14288
14288
  className: css_className('pre-chat-messages', `pre-chat-messages--${layoutMode}`),
@@ -14319,7 +14319,7 @@ const InlineView = () => {
14319
14319
  } = useShowInlineView();
14320
14320
  const {
14321
14321
  isOpen
14322
- } = useVisibility();
14322
+ } = hooks_useVisibility();
14323
14323
  const {
14324
14324
  hasInterrupt,
14325
14325
  meta
@@ -14384,15 +14384,15 @@ const ButtonIcon = () => {
14384
14384
  const WindowOpenButton = ({
14385
14385
  onClick
14386
14386
  }) => {
14387
- const hasConversation = useSeamlyHasConversation();
14387
+ const hasConversation = seamly_api_hooks_useSeamlyHasConversation();
14388
14388
  const {
14389
14389
  t
14390
- } = useI18n();
14390
+ } = hooks_useI18n();
14391
14391
  const ariaLabel = hasConversation() ? t('window.openButton.srContinue') : t('window.openButton.srStart');
14392
14392
  const focusSkiplinkTarget = useSkiplinkTargetFocusing();
14393
14393
  const {
14394
14394
  isOpen
14395
- } = useVisibility();
14395
+ } = hooks_useVisibility();
14396
14396
  const count = useSeamlyUnreadCount();
14397
14397
  const handleClick = (0,hooks_.useCallback)(() => {
14398
14398
  onClick();
@@ -14436,11 +14436,11 @@ const WindowView = () => {
14436
14436
  const {
14437
14437
  isOpen,
14438
14438
  openChat
14439
- } = useVisibility();
14439
+ } = hooks_useVisibility();
14440
14440
  const userHasResponded = useUserHasResponded();
14441
14441
  const {
14442
14442
  t
14443
- } = useI18n();
14443
+ } = hooks_useI18n();
14444
14444
  const continueChatText = t('window.chat.continue');
14445
14445
  const continueChatEvent = (0,hooks_.useMemo)(() => ({
14446
14446
  payload: {
@@ -14511,12 +14511,12 @@ const View = ({
14511
14511
  const {
14512
14512
  isOpen,
14513
14513
  isVisible
14514
- } = useVisibility();
14514
+ } = hooks_useVisibility();
14515
14515
  const appContainerClassNames = useSeamlyAppContainerClassNames();
14516
14516
  const userHasResponded = useUserHasResponded();
14517
14517
  const {
14518
14518
  locale
14519
- } = useI18n();
14519
+ } = hooks_useI18n();
14520
14520
  const ViewComponent = ViewComponentsMap[layoutMode];
14521
14521
  const containerElementRef = (0,hooks_.useCallback)(container => {
14522
14522
  setSeamlyContainerElement(container);
@@ -14579,7 +14579,7 @@ function deprecated_chat_frame_ChatFrame({
14579
14579
  } = useInterrupt();
14580
14580
  const {
14581
14581
  isOpen
14582
- } = useVisibility();
14582
+ } = hooks_useVisibility();
14583
14583
  if (hasInterrupt) {
14584
14584
  if (isOpen) {
14585
14585
  return (0,jsx_runtime_namespaceObject.jsx)(InterruptComponent, deprecated_chat_frame_objectSpread({}, meta));
@@ -14625,7 +14625,7 @@ function faq_objectWithoutPropertiesLoose(source, excluded) { if (source == null
14625
14625
  const Faq = () => {
14626
14626
  const {
14627
14627
  t
14628
- } = useI18n();
14628
+ } = hooks_useI18n();
14629
14629
  const {
14630
14630
  sendAction,
14631
14631
  addMessageBubble
@@ -14634,7 +14634,7 @@ const Faq = () => {
14634
14634
  const focusSkiplinkTarget = useSkiplinkTargetFocusing();
14635
14635
  const {
14636
14636
  sendPolite
14637
- } = useLiveRegion();
14637
+ } = live_region_hooks_useLiveRegion();
14638
14638
  const {
14639
14639
  hasInterrupt
14640
14640
  } = useInterrupt();
@@ -14670,7 +14670,7 @@ const Faq = () => {
14670
14670
  const prevHasFaqs = (0,hooks_.useRef)(false);
14671
14671
  const {
14672
14672
  isInline
14673
- } = useSeamlyLayoutMode();
14673
+ } = seamly_state_hooks_useSeamlyLayoutMode();
14674
14674
  const userHasResponded = useUserHasResponded();
14675
14675
  const hideForWindow = !isInline && userHasResponded;
14676
14676
  const prevHideForWindow = (0,hooks_.useRef)(hideForWindow);
@@ -14779,7 +14779,7 @@ const DeprecatedAppFrame = ({
14779
14779
  isOpen,
14780
14780
  isVisible,
14781
14781
  setVisibility
14782
- } = useVisibility();
14782
+ } = hooks_useVisibility();
14783
14783
  const {
14784
14784
  zIndex,
14785
14785
  showFaq,
@@ -14787,12 +14787,12 @@ const DeprecatedAppFrame = ({
14787
14787
  } = useConfig();
14788
14788
  const {
14789
14789
  isInline
14790
- } = useSeamlyLayoutMode();
14790
+ } = seamly_state_hooks_useSeamlyLayoutMode();
14791
14791
  const appContainerClassNames = useSeamlyAppContainerClassNames();
14792
14792
  const userHasResponded = useUserHasResponded();
14793
14793
  const {
14794
14794
  locale
14795
- } = useI18n();
14795
+ } = hooks_useI18n();
14796
14796
  const containerElementRef = (0,hooks_.useCallback)(container => {
14797
14797
  setSeamlyContainerElement(container);
14798
14798
  }, [setSeamlyContainerElement]);
@@ -14846,7 +14846,6 @@ const DeprecatedAppFrame = ({
14846
14846
 
14847
14847
 
14848
14848
 
14849
-
14850
14849
  const ShowInlineView = ({
14851
14850
  children
14852
14851
  }) => {
@@ -14860,12 +14859,11 @@ const ShowInlineView = ({
14860
14859
  });
14861
14860
  };
14862
14861
  const DeprecatedView = () => {
14863
- use_seamly_chat();
14864
14862
  const {
14865
14863
  isVisible,
14866
14864
  openChat,
14867
14865
  closeChat
14868
- } = useVisibility();
14866
+ } = hooks_useVisibility();
14869
14867
  return isVisible && (0,jsx_runtime_namespaceObject.jsx)(ShowInlineView, {
14870
14868
  children: (0,jsx_runtime_namespaceObject.jsxs)(deprecated_app_frame, {
14871
14869
  children: [(0,jsx_runtime_namespaceObject.jsx)(deprecated_toggle_button, {