@rqmii_immersive/agent-react-sdk 5.1.3 → 5.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ui.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { A as oe, u as ba, g as Ke, j as de, h as ue, i as aa, l as ta, k as na, R as ka, c as fa } from "./RqmiiCloudAvatarPlayer-BL7GVcr_.js";
2
- import { E as ni, d as ii } from "./RqmiiCloudAvatarPlayer-BL7GVcr_.js";
3
- import { jsx as n, jsxs as f, Fragment as Ae } from "react/jsx-runtime";
2
+ import { E as oi, d as ri } from "./RqmiiCloudAvatarPlayer-BL7GVcr_.js";
3
+ import { jsx as n, jsxs as f, Fragment as Le } from "react/jsx-runtime";
4
4
  import I, { useContext as va, createContext as ya, forwardRef as ia, createElement as Pe, useState as v, useEffect as j, useRef as _, useLayoutEffect as Oe, useCallback as re, useMemo as ee } from "react";
5
5
  const Fa = {
6
6
  sendMessage: "Stuur 'n boodskap",
@@ -88,6 +88,49 @@ const Fa = {
88
88
  leadFormEmail: "Email",
89
89
  leadFormPhone: "Telefoni",
90
90
  leadFormMessage: "Mesazhi juaj"
91
+ }, Ea = {
92
+ sendMessage: "اكتب رسالة",
93
+ send: "إرسال",
94
+ close: "إغلاق",
95
+ minimize: "تصغير",
96
+ maximize: "تكبير",
97
+ call: "اتصل",
98
+ listening: "يستمع",
99
+ processing: "يعالج",
100
+ talkToInterrupt: "تحدث للمقاطعة",
101
+ startVoice: "بدء الصوت",
102
+ stopVoice: "إيقاف الصوت",
103
+ endCall: "إنهاء المكالمة",
104
+ openChat: "فتح المحادثة",
105
+ connectionFailed: "فشل الاتصال",
106
+ retry: "إعادة المحاولة",
107
+ loading: "جار التحميل",
108
+ creditsExhausted: "نفذ الرصيد",
109
+ creditsExhaustedDetail: "نفذ رصيد هذه الجلسة.",
110
+ consentTitle: "الموافقة على الخصوصية",
111
+ consentBody: "بالمتابعة، أنت توافق على جمع ومعالجة بياناتك كما هو موضح في",
112
+ consentAccept: "قبول",
113
+ consentDecline: "رفض",
114
+ consentTermsLink: "شروط الخدمة",
115
+ consentPrivacyLink: "سياسة الخصوصية",
116
+ refresh: "تحديث",
117
+ ratingQuestion: "كيف كانت هذه المحادثة؟",
118
+ ratingThankYou: "شكرًا على ملاحظاتك!",
119
+ youEnded: "لقد أنهيت المحادثة",
120
+ agentEnded: "أنهى الوكيل المحادثة",
121
+ sessionIdLabel: "المعرّف:",
122
+ tellUsMore: "أخبرنا المزيد",
123
+ feedbackSubtitle: "تساعدنا ملاحظاتك في تحسين خدمتنا ودعمك بشكل أفضل في المستقبل.",
124
+ feedbackPlaceholder: "أخبرنا المزيد عن تجربتك…",
125
+ submit: "إرسال",
126
+ leadFormTitle: "معلومات التواصل",
127
+ leadFormSuccess: "شكرًا لك! تم إرسال بياناتك.",
128
+ leadFormRequiredError: "يرجى تعبئة جميع الحقول المطلوبة.",
129
+ leadFormGenericError: "حدث خطأ ما. حاول مرة أخرى.",
130
+ leadFormName: "الاسم",
131
+ leadFormEmail: "البريد الإلكتروني",
132
+ leadFormPhone: "رقم الهاتف",
133
+ leadFormMessage: "رسالتك"
91
134
  }, za = {
92
135
  sendMessage: "اكتب رسالة",
93
136
  send: "إرسال",
@@ -131,7 +174,50 @@ const Fa = {
131
174
  leadFormEmail: "البريد الإلكتروني",
132
175
  leadFormPhone: "رقم الهاتف",
133
176
  leadFormMessage: "رسالتك"
134
- }, Ea = {
177
+ }, Sa = {
178
+ sendMessage: "اكتب رسالة",
179
+ send: "إرسال",
180
+ close: "إغلاق",
181
+ minimize: "تصغير",
182
+ maximize: "تكبير",
183
+ call: "اتصل",
184
+ listening: "يستمع",
185
+ processing: "يعالج",
186
+ talkToInterrupt: "تحدث للمقاطعة",
187
+ startVoice: "بدء الصوت",
188
+ stopVoice: "إيقاف الصوت",
189
+ endCall: "إنهاء المكالمة",
190
+ openChat: "فتح المحادثة",
191
+ connectionFailed: "فشل الاتصال",
192
+ retry: "إعادة المحاولة",
193
+ loading: "جار التحميل",
194
+ creditsExhausted: "نفذ الرصيد",
195
+ creditsExhaustedDetail: "نفذ رصيد هذه الجلسة.",
196
+ consentTitle: "الموافقة على الخصوصية",
197
+ consentBody: "بالمتابعة، أنت توافق على جمع ومعالجة بياناتك كما هو موضح في",
198
+ consentAccept: "قبول",
199
+ consentDecline: "رفض",
200
+ consentTermsLink: "شروط الخدمة",
201
+ consentPrivacyLink: "سياسة الخصوصية",
202
+ refresh: "تحديث",
203
+ ratingQuestion: "كيف كانت هذه المحادثة؟",
204
+ ratingThankYou: "شكرًا على ملاحظاتك!",
205
+ youEnded: "لقد أنهيت المحادثة",
206
+ agentEnded: "أنهى الوكيل المحادثة",
207
+ sessionIdLabel: "المعرّف:",
208
+ tellUsMore: "أخبرنا المزيد",
209
+ feedbackSubtitle: "تساعدنا ملاحظاتك في تحسين خدمتنا ودعمك بشكل أفضل في المستقبل.",
210
+ feedbackPlaceholder: "أخبرنا المزيد عن تجربتك…",
211
+ submit: "إرسال",
212
+ leadFormTitle: "معلومات التواصل",
213
+ leadFormSuccess: "شكرًا لك! تم إرسال بياناتك.",
214
+ leadFormRequiredError: "يرجى تعبئة جميع الحقول المطلوبة.",
215
+ leadFormGenericError: "حدث خطأ ما. حاول مرة أخرى.",
216
+ leadFormName: "الاسم",
217
+ leadFormEmail: "البريد الإلكتروني",
218
+ leadFormPhone: "رقم الهاتف",
219
+ leadFormMessage: "رسالتك"
220
+ }, xa = {
135
221
  sendMessage: "Mesaj göndər",
136
222
  send: "Göndər",
137
223
  close: "Bağla",
@@ -174,7 +260,7 @@ const Fa = {
174
260
  leadFormEmail: "E-poçt",
175
261
  leadFormPhone: "Telefon",
176
262
  leadFormMessage: "Mesajınız"
177
- }, Sa = {
263
+ }, Pa = {
178
264
  sendMessage: "Bidali mezua",
179
265
  send: "Bidali",
180
266
  close: "Itxi",
@@ -217,7 +303,7 @@ const Fa = {
217
303
  leadFormEmail: "Helbide elektronikoa",
218
304
  leadFormPhone: "Telefonoa",
219
305
  leadFormMessage: "Zure mezua"
220
- }, xa = {
306
+ }, Ma = {
221
307
  sendMessage: "Адправіць паведамленне",
222
308
  send: "Адправіць",
223
309
  close: "Зачыніць",
@@ -260,7 +346,7 @@ const Fa = {
260
346
  leadFormEmail: "Электронная пошта",
261
347
  leadFormPhone: "Тэлефон",
262
348
  leadFormMessage: "Ваша паведамленне"
263
- }, Pa = {
349
+ }, Ca = {
264
350
  sendMessage: "একটি বার্তা পাঠান",
265
351
  send: "পাঠান",
266
352
  close: "বন্ধ করুন",
@@ -303,7 +389,7 @@ const Fa = {
303
389
  leadFormEmail: "ইমেইল",
304
390
  leadFormPhone: "ফোন",
305
391
  leadFormMessage: "আপনার বার্তা"
306
- }, Ma = {
392
+ }, wa = {
307
393
  sendMessage: "Pošalji poruku",
308
394
  send: "Pošalji",
309
395
  close: "Zatvori",
@@ -346,7 +432,7 @@ const Fa = {
346
432
  leadFormEmail: "E-mail",
347
433
  leadFormPhone: "Telefon",
348
434
  leadFormMessage: "Vaša poruka"
349
- }, Ca = {
435
+ }, La = {
350
436
  sendMessage: "Изпрати съобщение",
351
437
  send: "Изпрати",
352
438
  close: "Затвори",
@@ -389,7 +475,7 @@ const Fa = {
389
475
  leadFormEmail: "Имейл",
390
476
  leadFormPhone: "Телефон",
391
477
  leadFormMessage: "Вашето съобщение"
392
- }, wa = {
478
+ }, Aa = {
393
479
  sendMessage: "Enviar un missatge",
394
480
  send: "Enviar",
395
481
  close: "Tancar",
@@ -432,7 +518,7 @@ const Fa = {
432
518
  leadFormEmail: "Correu electrònic",
433
519
  leadFormPhone: "Telèfon",
434
520
  leadFormMessage: "El teu missatge"
435
- }, Aa = {
521
+ }, Va = {
436
522
  sendMessage: "发送消息",
437
523
  send: "发送",
438
524
  close: "关闭",
@@ -475,7 +561,7 @@ const Fa = {
475
561
  leadFormEmail: "电子邮箱",
476
562
  leadFormPhone: "电话",
477
563
  leadFormMessage: "您的留言"
478
- }, La = {
564
+ }, ja = {
479
565
  sendMessage: "Pošalji poruku",
480
566
  send: "Pošalji",
481
567
  close: "Zatvori",
@@ -518,7 +604,7 @@ const Fa = {
518
604
  leadFormEmail: "E-mail",
519
605
  leadFormPhone: "Telefon",
520
606
  leadFormMessage: "Vaša poruka"
521
- }, Va = {
607
+ }, Ia = {
522
608
  sendMessage: "Poslat zprávu",
523
609
  send: "Odeslat",
524
610
  close: "Zavřít",
@@ -561,7 +647,7 @@ const Fa = {
561
647
  leadFormEmail: "E-mail",
562
648
  leadFormPhone: "Telefon",
563
649
  leadFormMessage: "Vaše zpráva"
564
- }, ja = {
650
+ }, Da = {
565
651
  sendMessage: "Send en besked",
566
652
  send: "Send",
567
653
  close: "Luk",
@@ -604,7 +690,7 @@ const Fa = {
604
690
  leadFormEmail: "E-mail",
605
691
  leadFormPhone: "Telefon",
606
692
  leadFormMessage: "Din besked"
607
- }, Ia = {
693
+ }, qa = {
608
694
  sendMessage: "Stuur een bericht",
609
695
  send: "Verzenden",
610
696
  close: "Sluiten",
@@ -647,7 +733,7 @@ const Fa = {
647
733
  leadFormEmail: "E-mail",
648
734
  leadFormPhone: "Telefoon",
649
735
  leadFormMessage: "Uw bericht"
650
- }, Da = {
736
+ }, Na = {
651
737
  sendMessage: "Send a message",
652
738
  send: "Send",
653
739
  close: "Close",
@@ -690,7 +776,7 @@ const Fa = {
690
776
  leadFormEmail: "Email",
691
777
  leadFormPhone: "Phone",
692
778
  leadFormMessage: "Your message"
693
- }, qa = {
779
+ }, _a = {
694
780
  sendMessage: "Saada sõnum",
695
781
  send: "Saada",
696
782
  close: "Sulge",
@@ -733,7 +819,7 @@ const Fa = {
733
819
  leadFormEmail: "E-post",
734
820
  leadFormPhone: "Telefon",
735
821
  leadFormMessage: "Teie sõnum"
736
- }, Na = {
822
+ }, Ra = {
737
823
  sendMessage: "Lähetä viesti",
738
824
  send: "Lähetä",
739
825
  close: "Sulje",
@@ -776,7 +862,7 @@ const Fa = {
776
862
  leadFormEmail: "Sähköposti",
777
863
  leadFormPhone: "Puhelin",
778
864
  leadFormMessage: "Viestisi"
779
- }, _a = {
865
+ }, Ba = {
780
866
  sendMessage: "Envoyer un message",
781
867
  send: "Envoyer",
782
868
  close: "Fermer",
@@ -819,7 +905,7 @@ const Fa = {
819
905
  leadFormEmail: "E-mail",
820
906
  leadFormPhone: "Téléphone",
821
907
  leadFormMessage: "Votre message"
822
- }, Ra = {
908
+ }, Ga = {
823
909
  sendMessage: "Enviar unha mensaxe",
824
910
  send: "Enviar",
825
911
  close: "Pechar",
@@ -862,7 +948,7 @@ const Fa = {
862
948
  leadFormEmail: "Correo electrónico",
863
949
  leadFormPhone: "Teléfono",
864
950
  leadFormMessage: "A túa mensaxe"
865
- }, Ba = {
951
+ }, Ua = {
866
952
  sendMessage: "Nachricht senden",
867
953
  send: "Senden",
868
954
  close: "Schließen",
@@ -905,7 +991,7 @@ const Fa = {
905
991
  leadFormEmail: "E-Mail",
906
992
  leadFormPhone: "Telefon",
907
993
  leadFormMessage: "Ihre Nachricht"
908
- }, Ga = {
994
+ }, Ka = {
909
995
  sendMessage: "Αποστολή μηνύματος",
910
996
  send: "Αποστολή",
911
997
  close: "Κλείσιμο",
@@ -948,7 +1034,7 @@ const Fa = {
948
1034
  leadFormEmail: "E-mail",
949
1035
  leadFormPhone: "Τηλέφωνο",
950
1036
  leadFormMessage: "Το μήνυμά σας"
951
- }, Ua = {
1037
+ }, Oa = {
952
1038
  sendMessage: "સંદેશ મોકલો",
953
1039
  send: "મોકલો",
954
1040
  close: "બંધ કરો",
@@ -991,7 +1077,7 @@ const Fa = {
991
1077
  leadFormEmail: "ઇમેઇલ",
992
1078
  leadFormPhone: "ફોન",
993
1079
  leadFormMessage: "તમારો સંદેશ"
994
- }, Ka = {
1080
+ }, Ya = {
995
1081
  sendMessage: "संदेश भेजें",
996
1082
  send: "भेजें",
997
1083
  close: "बंद करें",
@@ -1034,7 +1120,7 @@ const Fa = {
1034
1120
  leadFormEmail: "ईमेल",
1035
1121
  leadFormPhone: "फ़ोन",
1036
1122
  leadFormMessage: "आपका संदेश"
1037
- }, Oa = {
1123
+ }, Qa = {
1038
1124
  sendMessage: "Üzenet küldése",
1039
1125
  send: "Küldés",
1040
1126
  close: "Bezárás",
@@ -1077,7 +1163,7 @@ const Fa = {
1077
1163
  leadFormEmail: "E-mail",
1078
1164
  leadFormPhone: "Telefon",
1079
1165
  leadFormMessage: "Üzenete"
1080
- }, Ya = {
1166
+ }, Ha = {
1081
1167
  sendMessage: "Kirim pesan",
1082
1168
  send: "Kirim",
1083
1169
  close: "Tutup",
@@ -1120,7 +1206,7 @@ const Fa = {
1120
1206
  leadFormEmail: "Email",
1121
1207
  leadFormPhone: "Telepon",
1122
1208
  leadFormMessage: "Pesan Anda"
1123
- }, Qa = {
1209
+ }, Wa = {
1124
1210
  sendMessage: "Invia un messaggio",
1125
1211
  send: "Invia",
1126
1212
  close: "Chiudi",
@@ -1163,7 +1249,7 @@ const Fa = {
1163
1249
  leadFormEmail: "E-mail",
1164
1250
  leadFormPhone: "Telefono",
1165
1251
  leadFormMessage: "Il tuo messaggio"
1166
- }, Ha = {
1252
+ }, $a = {
1167
1253
  sendMessage: "メッセージを送信",
1168
1254
  send: "送信",
1169
1255
  close: "閉じる",
@@ -1206,7 +1292,7 @@ const Fa = {
1206
1292
  leadFormEmail: "メールアドレス",
1207
1293
  leadFormPhone: "電話番号",
1208
1294
  leadFormMessage: "メッセージ"
1209
- }, Wa = {
1295
+ }, Za = {
1210
1296
  sendMessage: "ಸಂದೇಶ ಕಳುಹಿಸಿ",
1211
1297
  send: "ಕಳುಹಿಸಿ",
1212
1298
  close: "ಮುಚ್ಚಿ",
@@ -1249,7 +1335,7 @@ const Fa = {
1249
1335
  leadFormEmail: "ಇಮೇಲ್",
1250
1336
  leadFormPhone: "ಫೋನ್",
1251
1337
  leadFormMessage: "ನಿಮ್ಮ ಸಂದೇಶ"
1252
- }, Za = {
1338
+ }, Ja = {
1253
1339
  sendMessage: "Хабарлама жіберу",
1254
1340
  send: "Жіберу",
1255
1341
  close: "Жабу",
@@ -1292,7 +1378,7 @@ const Fa = {
1292
1378
  leadFormEmail: "Электрондық пошта",
1293
1379
  leadFormPhone: "Телефон",
1294
1380
  leadFormMessage: "Сіздің хабарламаңыз"
1295
- }, $a = {
1381
+ }, Xa = {
1296
1382
  sendMessage: "메시지 보내기",
1297
1383
  send: "보내기",
1298
1384
  close: "닫기",
@@ -1335,7 +1421,7 @@ const Fa = {
1335
1421
  leadFormEmail: "이메일",
1336
1422
  leadFormPhone: "전화번호",
1337
1423
  leadFormMessage: "메시지"
1338
- }, Ja = {
1424
+ }, et = {
1339
1425
  sendMessage: "Sūtīt ziņojumu",
1340
1426
  send: "Sūtīt",
1341
1427
  close: "Aizvērt",
@@ -1378,7 +1464,7 @@ const Fa = {
1378
1464
  leadFormEmail: "E-pasts",
1379
1465
  leadFormPhone: "Tālrunis",
1380
1466
  leadFormMessage: "Jūsu ziņojums"
1381
- }, Xa = {
1467
+ }, at = {
1382
1468
  sendMessage: "Siųsti žinutę",
1383
1469
  send: "Siųsti",
1384
1470
  close: "Uždaryti",
@@ -1421,7 +1507,7 @@ const Fa = {
1421
1507
  leadFormEmail: "El. paštas",
1422
1508
  leadFormPhone: "Telefonas",
1423
1509
  leadFormMessage: "Jūsų žinutė"
1424
- }, et = {
1510
+ }, tt = {
1425
1511
  sendMessage: "Испрати порака",
1426
1512
  send: "Испрати",
1427
1513
  close: "Затвори",
@@ -1464,7 +1550,7 @@ const Fa = {
1464
1550
  leadFormEmail: "Е-пошта",
1465
1551
  leadFormPhone: "Телефон",
1466
1552
  leadFormMessage: "Вашата порака"
1467
- }, at = {
1553
+ }, nt = {
1468
1554
  sendMessage: "Hantar mesej",
1469
1555
  send: "Hantar",
1470
1556
  close: "Tutup",
@@ -1507,7 +1593,7 @@ const Fa = {
1507
1593
  leadFormEmail: "E-mel",
1508
1594
  leadFormPhone: "Telefon",
1509
1595
  leadFormMessage: "Mesej anda"
1510
- }, tt = {
1596
+ }, it = {
1511
1597
  sendMessage: "ഒരു സന്ദേശം അയയ്‌ക്കുക",
1512
1598
  send: "അയയ്‌ക്കുക",
1513
1599
  close: "അടയ്‌ക്കുക",
@@ -1550,7 +1636,7 @@ const Fa = {
1550
1636
  leadFormEmail: "ഇമെയിൽ",
1551
1637
  leadFormPhone: "ഫോൺ",
1552
1638
  leadFormMessage: "നിങ്ങളുടെ സന്ദേശം"
1553
- }, nt = {
1639
+ }, ot = {
1554
1640
  sendMessage: "संदेश पाठवा",
1555
1641
  send: "पाठवा",
1556
1642
  close: "बंद करा",
@@ -1593,7 +1679,7 @@ const Fa = {
1593
1679
  leadFormEmail: "ईमेल",
1594
1680
  leadFormPhone: "फोन",
1595
1681
  leadFormMessage: "तुमचा संदेश"
1596
- }, it = {
1682
+ }, rt = {
1597
1683
  sendMessage: "Send en melding",
1598
1684
  send: "Send",
1599
1685
  close: "Lukk",
@@ -1636,7 +1722,7 @@ const Fa = {
1636
1722
  leadFormEmail: "E-post",
1637
1723
  leadFormPhone: "Telefon",
1638
1724
  leadFormMessage: "Din melding"
1639
- }, ot = {
1725
+ }, st = {
1640
1726
  sendMessage: "پیامی بنویسید",
1641
1727
  send: "ارسال",
1642
1728
  close: "بستن",
@@ -1679,7 +1765,7 @@ const Fa = {
1679
1765
  leadFormEmail: "ایمیل",
1680
1766
  leadFormPhone: "تلفن",
1681
1767
  leadFormMessage: "پیام شما"
1682
- }, rt = {
1768
+ }, lt = {
1683
1769
  sendMessage: "Wyślij wiadomość",
1684
1770
  send: "Wyślij",
1685
1771
  close: "Zamknij",
@@ -1722,7 +1808,7 @@ const Fa = {
1722
1808
  leadFormEmail: "E-mail",
1723
1809
  leadFormPhone: "Telefon",
1724
1810
  leadFormMessage: "Twoja wiadomość"
1725
- }, st = {
1811
+ }, ct = {
1726
1812
  sendMessage: "Enviar mensagem",
1727
1813
  send: "Enviar",
1728
1814
  close: "Fechar",
@@ -1765,7 +1851,7 @@ const Fa = {
1765
1851
  leadFormEmail: "E-mail",
1766
1852
  leadFormPhone: "Telefone",
1767
1853
  leadFormMessage: "Sua mensagem"
1768
- }, lt = {
1854
+ }, dt = {
1769
1855
  sendMessage: "ਇੱਕ ਸੁਨੇਹਾ ਭੇਜੋ",
1770
1856
  send: "ਭੇਜੋ",
1771
1857
  close: "ਬੰਦ ਕਰੋ",
@@ -1808,7 +1894,7 @@ const Fa = {
1808
1894
  leadFormEmail: "ਈਮੇਲ",
1809
1895
  leadFormPhone: "ਫ਼ੋਨ",
1810
1896
  leadFormMessage: "ਤੁਹਾਡਾ ਸੁਨੇਹਾ"
1811
- }, ct = {
1897
+ }, ut = {
1812
1898
  sendMessage: "Trimite un mesaj",
1813
1899
  send: "Trimite",
1814
1900
  close: "Închide",
@@ -1851,7 +1937,7 @@ const Fa = {
1851
1937
  leadFormEmail: "E-mail",
1852
1938
  leadFormPhone: "Telefon",
1853
1939
  leadFormMessage: "Mesajul dumneavoastră"
1854
- }, dt = {
1940
+ }, mt = {
1855
1941
  sendMessage: "Отправить сообщение",
1856
1942
  send: "Отправить",
1857
1943
  close: "Закрыть",
@@ -1894,7 +1980,7 @@ const Fa = {
1894
1980
  leadFormEmail: "Электронная почта",
1895
1981
  leadFormPhone: "Телефон",
1896
1982
  leadFormMessage: "Ваше сообщение"
1897
- }, ut = {
1983
+ }, ht = {
1898
1984
  sendMessage: "Пошаљи поруку",
1899
1985
  send: "Пошаљи",
1900
1986
  close: "Затвори",
@@ -1937,7 +2023,7 @@ const Fa = {
1937
2023
  leadFormEmail: "Имејл",
1938
2024
  leadFormPhone: "Телефон",
1939
2025
  leadFormMessage: "Ваша порука"
1940
- }, mt = {
2026
+ }, gt = {
1941
2027
  sendMessage: "Poslať správu",
1942
2028
  send: "Odoslať",
1943
2029
  close: "Zavrieť",
@@ -1980,7 +2066,7 @@ const Fa = {
1980
2066
  leadFormEmail: "E-mail",
1981
2067
  leadFormPhone: "Telefón",
1982
2068
  leadFormMessage: "Vaša správa"
1983
- }, ht = {
2069
+ }, pt = {
1984
2070
  sendMessage: "Pošlji sporočilo",
1985
2071
  send: "Pošlji",
1986
2072
  close: "Zapri",
@@ -2023,7 +2109,7 @@ const Fa = {
2023
2109
  leadFormEmail: "E-pošta",
2024
2110
  leadFormPhone: "Telefon",
2025
2111
  leadFormMessage: "Vaše sporočilo"
2026
- }, gt = {
2112
+ }, bt = {
2027
2113
  sendMessage: "Enviar un mensaje",
2028
2114
  send: "Enviar",
2029
2115
  close: "Cerrar",
@@ -2066,7 +2152,7 @@ const Fa = {
2066
2152
  leadFormEmail: "Correo electrónico",
2067
2153
  leadFormPhone: "Teléfono",
2068
2154
  leadFormMessage: "Tu mensaje"
2069
- }, pt = {
2155
+ }, kt = {
2070
2156
  sendMessage: "Tuma ujumbe",
2071
2157
  send: "Tuma",
2072
2158
  close: "Funga",
@@ -2109,7 +2195,7 @@ const Fa = {
2109
2195
  leadFormEmail: "Barua pepe",
2110
2196
  leadFormPhone: "Simu",
2111
2197
  leadFormMessage: "Ujumbe wako"
2112
- }, bt = {
2198
+ }, ft = {
2113
2199
  sendMessage: "Skicka ett meddelande",
2114
2200
  send: "Skicka",
2115
2201
  close: "Stäng",
@@ -2152,7 +2238,7 @@ const Fa = {
2152
2238
  leadFormEmail: "E-post",
2153
2239
  leadFormPhone: "Telefon",
2154
2240
  leadFormMessage: "Ditt meddelande"
2155
- }, kt = {
2241
+ }, vt = {
2156
2242
  sendMessage: "Magpadala ng mensahe",
2157
2243
  send: "Ipadala",
2158
2244
  close: "Isara",
@@ -2195,7 +2281,7 @@ const Fa = {
2195
2281
  leadFormEmail: "Email",
2196
2282
  leadFormPhone: "Telepono",
2197
2283
  leadFormMessage: "Ang iyong mensahe"
2198
- }, ft = {
2284
+ }, yt = {
2199
2285
  sendMessage: "ஒரு செய்தி அனுப்பவும்",
2200
2286
  send: "அனுப்பு",
2201
2287
  close: "மூடு",
@@ -2238,7 +2324,7 @@ const Fa = {
2238
2324
  leadFormEmail: "மின்னஞ்சல்",
2239
2325
  leadFormPhone: "தொலைபேசி",
2240
2326
  leadFormMessage: "உங்கள் செய்தி"
2241
- }, vt = {
2327
+ }, Ft = {
2242
2328
  sendMessage: "సందేశం పంపండి",
2243
2329
  send: "పంపు",
2244
2330
  close: "మూసివేయండి",
@@ -2281,7 +2367,7 @@ const Fa = {
2281
2367
  leadFormEmail: "ఇమెయిల్",
2282
2368
  leadFormPhone: "ఫోన్",
2283
2369
  leadFormMessage: "మీ సందేశం"
2284
- }, yt = {
2370
+ }, Tt = {
2285
2371
  sendMessage: "ส่งข้อความ",
2286
2372
  send: "ส่ง",
2287
2373
  close: "ปิด",
@@ -2324,7 +2410,7 @@ const Fa = {
2324
2410
  leadFormEmail: "อีเมล",
2325
2411
  leadFormPhone: "โทรศัพท์",
2326
2412
  leadFormMessage: "ข้อความของคุณ"
2327
- }, Ft = {
2413
+ }, Et = {
2328
2414
  sendMessage: "Mesaj gönder",
2329
2415
  send: "Gönder",
2330
2416
  close: "Kapat",
@@ -2367,7 +2453,7 @@ const Fa = {
2367
2453
  leadFormEmail: "E-posta",
2368
2454
  leadFormPhone: "Telefon",
2369
2455
  leadFormMessage: "Mesajınız"
2370
- }, Tt = {
2456
+ }, zt = {
2371
2457
  sendMessage: "Надіслати повідомлення",
2372
2458
  send: "Надіслати",
2373
2459
  close: "Закрити",
@@ -2410,7 +2496,7 @@ const Fa = {
2410
2496
  leadFormEmail: "Електронна пошта",
2411
2497
  leadFormPhone: "Телефон",
2412
2498
  leadFormMessage: "Ваше повідомлення"
2413
- }, zt = {
2499
+ }, St = {
2414
2500
  sendMessage: "پیغام بھیجیں",
2415
2501
  send: "بھیجیں",
2416
2502
  close: "بند کریں",
@@ -2453,7 +2539,7 @@ const Fa = {
2453
2539
  leadFormEmail: "ای میل",
2454
2540
  leadFormPhone: "فون",
2455
2541
  leadFormMessage: "آپ کا پیغام"
2456
- }, Et = {
2542
+ }, xt = {
2457
2543
  sendMessage: "Gửi tin nhắn",
2458
2544
  send: "Gửi",
2459
2545
  close: "Đóng",
@@ -2496,7 +2582,7 @@ const Fa = {
2496
2582
  leadFormEmail: "Email",
2497
2583
  leadFormPhone: "Điện thoại",
2498
2584
  leadFormMessage: "Tin nhắn của bạn"
2499
- }, St = {
2585
+ }, Pt = {
2500
2586
  sendMessage: "Anfon neges",
2501
2587
  send: "Anfon",
2502
2588
  close: "Cau",
@@ -2542,67 +2628,70 @@ const Fa = {
2542
2628
  }, Ye = {
2543
2629
  af: Fa,
2544
2630
  sq: Ta,
2545
- ar: za,
2546
- az: Ea,
2547
- eu: Sa,
2548
- be: xa,
2549
- bn: Pa,
2550
- bs: Ma,
2551
- bg: Ca,
2552
- ca: wa,
2553
- zh: Aa,
2554
- hr: La,
2555
- cs: Va,
2556
- da: ja,
2557
- nl: Ia,
2558
- en: Da,
2559
- et: qa,
2560
- fi: Na,
2561
- fr: _a,
2562
- gl: Ra,
2563
- de: Ba,
2564
- el: Ga,
2565
- gu: Ua,
2566
- hi: Ka,
2567
- hu: Oa,
2568
- id: Ya,
2569
- it: Qa,
2570
- ja: Ha,
2571
- kn: Wa,
2572
- kk: Za,
2573
- ko: $a,
2574
- lv: Ja,
2575
- lt: Xa,
2576
- mk: et,
2577
- ms: at,
2578
- ml: tt,
2579
- mr: nt,
2580
- no: it,
2581
- fa: ot,
2582
- pl: rt,
2583
- pt: st,
2584
- pa: lt,
2585
- ro: ct,
2586
- ru: dt,
2587
- sr: ut,
2588
- sk: mt,
2589
- sl: ht,
2590
- es: gt,
2591
- sw: pt,
2592
- sv: bt,
2593
- tl: kt,
2594
- ta: ft,
2595
- te: vt,
2596
- th: yt,
2597
- tr: Ft,
2598
- uk: Tt,
2599
- ur: zt,
2600
- vi: Et,
2601
- cy: St
2631
+ ar: Ea,
2632
+ "ar-eg": za,
2633
+ "ar-sa": Sa,
2634
+ az: xa,
2635
+ eu: Pa,
2636
+ be: Ma,
2637
+ bn: Ca,
2638
+ bs: wa,
2639
+ bg: La,
2640
+ ca: Aa,
2641
+ zh: Va,
2642
+ hr: ja,
2643
+ cs: Ia,
2644
+ da: Da,
2645
+ nl: qa,
2646
+ en: Na,
2647
+ et: _a,
2648
+ fi: Ra,
2649
+ fr: Ba,
2650
+ gl: Ga,
2651
+ de: Ua,
2652
+ el: Ka,
2653
+ gu: Oa,
2654
+ hi: Ya,
2655
+ hu: Qa,
2656
+ id: Ha,
2657
+ it: Wa,
2658
+ ja: $a,
2659
+ kn: Za,
2660
+ kk: Ja,
2661
+ ko: Xa,
2662
+ lv: et,
2663
+ lt: at,
2664
+ mk: tt,
2665
+ ms: nt,
2666
+ ml: it,
2667
+ mr: ot,
2668
+ no: rt,
2669
+ fa: st,
2670
+ pl: lt,
2671
+ pt: ct,
2672
+ pa: dt,
2673
+ ro: ut,
2674
+ ru: mt,
2675
+ sr: ht,
2676
+ sk: gt,
2677
+ sl: pt,
2678
+ es: bt,
2679
+ sw: kt,
2680
+ sv: ft,
2681
+ tl: vt,
2682
+ ta: yt,
2683
+ te: Ft,
2684
+ th: Tt,
2685
+ tr: Et,
2686
+ uk: zt,
2687
+ ur: St,
2688
+ vi: xt,
2689
+ cy: Pt
2602
2690
  }, Me = [
2603
2691
  { value: "af", label: "Afrikaans", dir: "ltr" },
2604
2692
  { value: "sq", label: "Shqip", dir: "ltr" },
2605
- { value: "ar", label: "العربية", dir: "rtl" },
2693
+ { value: "ar-eg", label: "العربية (مصر)", dir: "rtl" },
2694
+ { value: "ar-sa", label: "العربية (السعودية)", dir: "rtl" },
2606
2695
  { value: "az", label: "Azərbaycan", dir: "ltr" },
2607
2696
  { value: "eu", label: "Euskara", dir: "ltr" },
2608
2697
  { value: "be", label: "Беларуская", dir: "ltr" },
@@ -2670,7 +2759,7 @@ function F(e, a) {
2670
2759
  }
2671
2760
  function be(e, a = "en") {
2672
2761
  const t = Array.isArray(e) ? e.filter((i) => Qe.includes(i)) : [];
2673
- return !t.includes(a) && Qe.includes(a) && t.unshift(a), t.length ? [...new Set(t)] : ["ar"];
2762
+ return !t.includes(a) && Qe.includes(a) && t.unshift(a), t.length ? [...new Set(t)] : ["ar-sa"];
2674
2763
  }
2675
2764
  const We = {
2676
2765
  id: null,
@@ -2693,11 +2782,11 @@ const We = {
2693
2782
  };
2694
2783
  function pe(e) {
2695
2784
  if (!e) return We;
2696
- const a = e, t = a.agent_type || a.agentType || oe.TEXT, i = typeof a.use_text == "boolean" ? a.use_text : typeof a.useText == "boolean" ? a.useText : t !== oe.VOICE, r = typeof a.use_voice == "boolean" ? a.use_voice : typeof a.useVoice == "boolean" ? a.useVoice : t === oe.TEXT_AND_VOICE || t === oe.CLOUD_AVATAR || t === oe.DESKTOP_AVATAR, o = a.conversation || a.agent_customization?.conversation || {}, s = a.speech || a.agent_customization?.speech || {}, c = o.default_language || "en", d = be(o.languages, c), l = a.widget || a.agent_customization?.widget || null, m = l?.appearance, u = l?.behavior, h = l, z = typeof m?.hide_branding == "boolean" ? !m.hide_branding : typeof m?.show_branding == "boolean" ? m.show_branding : !0, k = h ? {
2785
+ const a = e, t = a.agent_type || a.agentType || oe.TEXT, i = typeof a.use_text == "boolean" ? a.use_text : typeof a.useText == "boolean" ? a.useText : t !== oe.VOICE, r = typeof a.use_voice == "boolean" ? a.use_voice : typeof a.useVoice == "boolean" ? a.useVoice : t === oe.TEXT_AND_VOICE || t === oe.CLOUD_AVATAR || t === oe.DESKTOP_AVATAR, o = a.conversation || a.agent_customization?.conversation || {}, s = a.speech || a.agent_customization?.speech || {}, c = o.default_language || "en", d = be(o.languages, c), l = a.widget || a.agent_customization?.widget || null, m = l?.appearance, u = l?.behavior, h = l, E = typeof m?.hide_branding == "boolean" ? !m.hide_branding : typeof m?.show_branding == "boolean" ? m.show_branding : !0, k = h ? {
2697
2786
  appearance: {
2698
2787
  brand_color: m?.brand_color,
2699
2788
  position: m?.position || "right",
2700
- show_branding: z,
2789
+ show_branding: E,
2701
2790
  footer_content: m?.footer_content || {}
2702
2791
  },
2703
2792
  behavior: {
@@ -2707,8 +2796,8 @@ function pe(e) {
2707
2796
  welcome_bubble_sound_enabled: typeof u?.welcome_bubble_sound_enabled == "boolean" ? u.welcome_bubble_sound_enabled : !1,
2708
2797
  typing_indicator_enabled: typeof u?.typing_indicator_enabled == "boolean" ? u.typing_indicator_enabled : !0
2709
2798
  }
2710
- } : void 0, y = a.consent || a.consent_config || null, E = o.welcome_message || o.welcomeMessage || a.welcome_message || a.welcomeMessage || {}, T = Object.fromEntries(
2711
- Object.entries(E).filter(([, p]) => typeof p == "string").map(([p, S]) => [p, S.slice(0, 1e3)])
2799
+ } : void 0, y = a.consent || a.consent_config || null, z = o.welcome_message || o.welcomeMessage || a.welcome_message || a.welcomeMessage || {}, T = Object.fromEntries(
2800
+ Object.entries(z).filter(([, p]) => typeof p == "string").map(([p, S]) => [p, S.slice(0, 1e3)])
2712
2801
  ), g = typeof a.allow_interrupt == "boolean" ? a.allow_interrupt : typeof s.allow_interrupt == "boolean" ? s.allow_interrupt : !0, b = typeof a.allow_welcome_message_interrupt == "boolean" ? a.allow_welcome_message_interrupt : typeof s.allow_welcome_message_interrupt == "boolean" ? s.allow_welcome_message_interrupt : !1;
2713
2802
  return {
2714
2803
  id: a.id || null,
@@ -2740,7 +2829,7 @@ function pe(e) {
2740
2829
  } : void 0
2741
2830
  };
2742
2831
  }
2743
- async function xt({
2832
+ async function Mt({
2744
2833
  restUrl: e,
2745
2834
  identifier: a,
2746
2835
  withCredentials: t = !1,
@@ -2781,7 +2870,7 @@ async function xt({
2781
2870
  welcome_message: o.welcome_message
2782
2871
  });
2783
2872
  }
2784
- async function $n({ restUrl: e, apiKey: a, agentId: t, signal: i }) {
2873
+ async function Xn({ restUrl: e, apiKey: a, agentId: t, signal: i }) {
2785
2874
  if (!e) throw new Error("Missing restUrl");
2786
2875
  const r = a || t;
2787
2876
  if (!r) throw new Error("Provide one of apiKey or agentId");
@@ -2805,7 +2894,7 @@ async function $n({ restUrl: e, apiKey: a, agentId: t, signal: i }) {
2805
2894
  }
2806
2895
  return pe(await o.json());
2807
2896
  }
2808
- function Pt(e, a) {
2897
+ function Ct(e, a) {
2809
2898
  if (!a) return e;
2810
2899
  let { useVoice: t, useText: i } = e;
2811
2900
  return typeof a.use_voice == "boolean" && (t = a.use_voice), typeof a.use_text == "boolean" && (i = a.use_text), t === e.useVoice && i === e.useText ? e : { ...e, useVoice: t, useText: i };
@@ -2826,14 +2915,14 @@ const oa = (...e) => e.filter((a, t, i) => !!a && a.trim() !== "" && i.indexOf(a
2826
2915
  * This source code is licensed under the ISC license.
2827
2916
  * See the LICENSE file in the root directory of this source tree.
2828
2917
  */
2829
- const Mt = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
2918
+ const wt = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
2830
2919
  /**
2831
2920
  * @license lucide-react v1.24.0 - ISC
2832
2921
  *
2833
2922
  * This source code is licensed under the ISC license.
2834
2923
  * See the LICENSE file in the root directory of this source tree.
2835
2924
  */
2836
- const Ct = (e) => e.replace(
2925
+ const Lt = (e) => e.replace(
2837
2926
  /^([A-Z])|[\s-_]+(\w)/g,
2838
2927
  (a, t, i) => i ? i.toUpperCase() : t.toLowerCase()
2839
2928
  );
@@ -2843,8 +2932,8 @@ const Ct = (e) => e.replace(
2843
2932
  * This source code is licensed under the ISC license.
2844
2933
  * See the LICENSE file in the root directory of this source tree.
2845
2934
  */
2846
- const Ze = (e) => {
2847
- const a = Ct(e);
2935
+ const $e = (e) => {
2936
+ const a = Lt(e);
2848
2937
  return a.charAt(0).toUpperCase() + a.slice(1);
2849
2938
  };
2850
2939
  /**
@@ -2870,20 +2959,20 @@ var xe = {
2870
2959
  * This source code is licensed under the ISC license.
2871
2960
  * See the LICENSE file in the root directory of this source tree.
2872
2961
  */
2873
- const wt = (e) => {
2962
+ const At = (e) => {
2874
2963
  for (const a in e)
2875
2964
  if (a.startsWith("aria-") || a === "role" || a === "title")
2876
2965
  return !0;
2877
2966
  return !1;
2878
- }, At = ya({}), Lt = () => va(At), Vt = ia(
2967
+ }, Vt = ya({}), jt = () => va(Vt), It = ia(
2879
2968
  ({ color: e, size: a, strokeWidth: t, absoluteStrokeWidth: i, className: r = "", children: o, iconNode: s, ...c }, d) => {
2880
2969
  const {
2881
2970
  size: l = 24,
2882
2971
  strokeWidth: m = 2,
2883
2972
  absoluteStrokeWidth: u = !1,
2884
2973
  color: h = "currentColor",
2885
- className: z = ""
2886
- } = Lt() ?? {}, k = i ?? u ? Number(t ?? m) * 24 / Number(a ?? l) : t ?? m;
2974
+ className: E = ""
2975
+ } = jt() ?? {}, k = i ?? u ? Number(t ?? m) * 24 / Number(a ?? l) : t ?? m;
2887
2976
  return Pe(
2888
2977
  "svg",
2889
2978
  {
@@ -2893,12 +2982,12 @@ const wt = (e) => {
2893
2982
  height: a ?? l ?? xe.height,
2894
2983
  stroke: e ?? h,
2895
2984
  strokeWidth: k,
2896
- className: oa("lucide", z, r),
2897
- ...!o && !wt(c) && { "aria-hidden": "true" },
2985
+ className: oa("lucide", E, r),
2986
+ ...!o && !At(c) && { "aria-hidden": "true" },
2898
2987
  ...c
2899
2988
  },
2900
2989
  [
2901
- ...s.map(([y, E]) => Pe(y, E)),
2990
+ ...s.map(([y, z]) => Pe(y, z)),
2902
2991
  ...Array.isArray(o) ? o : [o]
2903
2992
  ]
2904
2993
  );
@@ -2912,18 +3001,18 @@ const wt = (e) => {
2912
3001
  */
2913
3002
  const Y = (e, a) => {
2914
3003
  const t = ia(
2915
- ({ className: i, ...r }, o) => Pe(Vt, {
3004
+ ({ className: i, ...r }, o) => Pe(It, {
2916
3005
  ref: o,
2917
3006
  iconNode: a,
2918
3007
  className: oa(
2919
- `lucide-${Mt(Ze(e))}`,
3008
+ `lucide-${wt($e(e))}`,
2920
3009
  `lucide-${e}`,
2921
3010
  i
2922
3011
  ),
2923
3012
  ...r
2924
3013
  })
2925
3014
  );
2926
- return t.displayName = Ze(e), t;
3015
+ return t.displayName = $e(e), t;
2927
3016
  };
2928
3017
  /**
2929
3018
  * @license lucide-react v1.24.0 - ISC
@@ -2931,94 +3020,94 @@ const Y = (e, a) => {
2931
3020
  * This source code is licensed under the ISC license.
2932
3021
  * See the LICENSE file in the root directory of this source tree.
2933
3022
  */
2934
- const jt = [
3023
+ const Dt = [
2935
3024
  ["path", { d: "m5 12 7-7 7 7", key: "hav0vg" }],
2936
3025
  ["path", { d: "M12 19V5", key: "x0mq9r" }]
2937
- ], It = Y("arrow-up", jt);
3026
+ ], qt = Y("arrow-up", Dt);
2938
3027
  /**
2939
3028
  * @license lucide-react v1.24.0 - ISC
2940
3029
  *
2941
3030
  * This source code is licensed under the ISC license.
2942
3031
  * See the LICENSE file in the root directory of this source tree.
2943
3032
  */
2944
- const Dt = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], qt = Y("chevron-left", Dt);
3033
+ const Nt = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], _t = Y("chevron-left", Nt);
2945
3034
  /**
2946
3035
  * @license lucide-react v1.24.0 - ISC
2947
3036
  *
2948
3037
  * This source code is licensed under the ISC license.
2949
3038
  * See the LICENSE file in the root directory of this source tree.
2950
3039
  */
2951
- const Nt = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], ra = Y("chevron-down", Nt);
3040
+ const Rt = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], ra = Y("chevron-down", Rt);
2952
3041
  /**
2953
3042
  * @license lucide-react v1.24.0 - ISC
2954
3043
  *
2955
3044
  * This source code is licensed under the ISC license.
2956
3045
  * See the LICENSE file in the root directory of this source tree.
2957
3046
  */
2958
- const _t = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], Rt = Y("chevron-up", _t);
3047
+ const Bt = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], Gt = Y("chevron-up", Bt);
2959
3048
  /**
2960
3049
  * @license lucide-react v1.24.0 - ISC
2961
3050
  *
2962
3051
  * This source code is licensed under the ISC license.
2963
3052
  * See the LICENSE file in the root directory of this source tree.
2964
3053
  */
2965
- const Bt = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], ye = Y("loader-circle", Bt);
3054
+ const Ut = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], ye = Y("loader-circle", Ut);
2966
3055
  /**
2967
3056
  * @license lucide-react v1.24.0 - ISC
2968
3057
  *
2969
3058
  * This source code is licensed under the ISC license.
2970
3059
  * See the LICENSE file in the root directory of this source tree.
2971
3060
  */
2972
- const Gt = [
3061
+ const Kt = [
2973
3062
  ["path", { d: "M15 3h6v6", key: "1q9fwt" }],
2974
3063
  ["path", { d: "m21 3-7 7", key: "1l2asr" }],
2975
3064
  ["path", { d: "m3 21 7-7", key: "tjx5ai" }],
2976
3065
  ["path", { d: "M9 21H3v-6", key: "wtvkvv" }]
2977
- ], Ut = Y("maximize-2", Gt);
3066
+ ], Ot = Y("maximize-2", Kt);
2978
3067
  /**
2979
3068
  * @license lucide-react v1.24.0 - ISC
2980
3069
  *
2981
3070
  * This source code is licensed under the ISC license.
2982
3071
  * See the LICENSE file in the root directory of this source tree.
2983
3072
  */
2984
- const Kt = [
3073
+ const Yt = [
2985
3074
  ["path", { d: "M12 19v3", key: "npa21l" }],
2986
3075
  ["path", { d: "M15 9.34V5a3 3 0 0 0-5.68-1.33", key: "1gzdoj" }],
2987
3076
  ["path", { d: "M16.95 16.95A7 7 0 0 1 5 12v-2", key: "cqa7eg" }],
2988
3077
  ["path", { d: "M18.89 13.23A7 7 0 0 0 19 12v-2", key: "16hl24" }],
2989
3078
  ["path", { d: "m2 2 20 20", key: "1ooewy" }],
2990
3079
  ["path", { d: "M9 9v3a3 3 0 0 0 5.12 2.12", key: "r2i35w" }]
2991
- ], Le = Y("mic-off", Kt);
3080
+ ], Ae = Y("mic-off", Yt);
2992
3081
  /**
2993
3082
  * @license lucide-react v1.24.0 - ISC
2994
3083
  *
2995
3084
  * This source code is licensed under the ISC license.
2996
3085
  * See the LICENSE file in the root directory of this source tree.
2997
3086
  */
2998
- const Ot = [
3087
+ const Qt = [
2999
3088
  ["path", { d: "M12 19v3", key: "npa21l" }],
3000
3089
  ["path", { d: "M19 10v2a7 7 0 0 1-14 0v-2", key: "1vc78b" }],
3001
3090
  ["rect", { x: "9", y: "2", width: "6", height: "13", rx: "3", key: "s6n7sd" }]
3002
- ], Fe = Y("mic", Ot);
3091
+ ], Fe = Y("mic", Qt);
3003
3092
  /**
3004
3093
  * @license lucide-react v1.24.0 - ISC
3005
3094
  *
3006
3095
  * This source code is licensed under the ISC license.
3007
3096
  * See the LICENSE file in the root directory of this source tree.
3008
3097
  */
3009
- const Yt = [
3098
+ const Ht = [
3010
3099
  ["path", { d: "m14 10 7-7", key: "oa77jy" }],
3011
3100
  ["path", { d: "M20 10h-6V4", key: "mjg0md" }],
3012
3101
  ["path", { d: "m3 21 7-7", key: "tjx5ai" }],
3013
3102
  ["path", { d: "M4 14h6v6", key: "rmj7iw" }]
3014
- ], Te = Y("minimize-2", Yt);
3103
+ ], Te = Y("minimize-2", Ht);
3015
3104
  /**
3016
3105
  * @license lucide-react v1.24.0 - ISC
3017
3106
  *
3018
3107
  * This source code is licensed under the ISC license.
3019
3108
  * See the LICENSE file in the root directory of this source tree.
3020
3109
  */
3021
- const Qt = [
3110
+ const Wt = [
3022
3111
  [
3023
3112
  "path",
3024
3113
  {
@@ -3034,14 +3123,14 @@ const Qt = [
3034
3123
  key: "10hv5p"
3035
3124
  }
3036
3125
  ]
3037
- ], Ve = Y("phone-off", Qt);
3126
+ ], Ve = Y("phone-off", Wt);
3038
3127
  /**
3039
3128
  * @license lucide-react v1.24.0 - ISC
3040
3129
  *
3041
3130
  * This source code is licensed under the ISC license.
3042
3131
  * See the LICENSE file in the root directory of this source tree.
3043
3132
  */
3044
- const Ht = [
3133
+ const $t = [
3045
3134
  [
3046
3135
  "path",
3047
3136
  {
@@ -3049,24 +3138,24 @@ const Ht = [
3049
3138
  key: "9njp5v"
3050
3139
  }
3051
3140
  ]
3052
- ], je = Y("phone", Ht);
3141
+ ], je = Y("phone", $t);
3053
3142
  /**
3054
3143
  * @license lucide-react v1.24.0 - ISC
3055
3144
  *
3056
3145
  * This source code is licensed under the ISC license.
3057
3146
  * See the LICENSE file in the root directory of this source tree.
3058
3147
  */
3059
- const Wt = [
3148
+ const Zt = [
3060
3149
  ["path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "1357e3" }],
3061
3150
  ["path", { d: "M3 3v5h5", key: "1xhq8a" }]
3062
- ], Zt = Y("rotate-ccw", Wt);
3151
+ ], Jt = Y("rotate-ccw", Zt);
3063
3152
  /**
3064
3153
  * @license lucide-react v1.24.0 - ISC
3065
3154
  *
3066
3155
  * This source code is licensed under the ISC license.
3067
3156
  * See the LICENSE file in the root directory of this source tree.
3068
3157
  */
3069
- const $t = [
3158
+ const Xt = [
3070
3159
  [
3071
3160
  "path",
3072
3161
  {
@@ -3074,17 +3163,17 @@ const $t = [
3074
3163
  key: "r04s7s"
3075
3164
  }
3076
3165
  ]
3077
- ], Jt = Y("star", $t);
3166
+ ], en = Y("star", Xt);
3078
3167
  /**
3079
3168
  * @license lucide-react v1.24.0 - ISC
3080
3169
  *
3081
3170
  * This source code is licensed under the ISC license.
3082
3171
  * See the LICENSE file in the root directory of this source tree.
3083
3172
  */
3084
- const Xt = [
3173
+ const an = [
3085
3174
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
3086
3175
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
3087
- ], Ie = Y("x", Xt), $e = [
3176
+ ], Ie = Y("x", an), Ze = [
3088
3177
  () => import("./charachter1-D0qJg166.js").then((e) => e.default),
3089
3178
  () => import("./charachter2-B5ArG_dI.js").then((e) => e.default),
3090
3179
  () => import("./charachter3-DX1Okqyw.js").then((e) => e.default),
@@ -3094,32 +3183,32 @@ const Xt = [
3094
3183
  () => import("./charachter7-DWEpJWjS.js").then((e) => e.default),
3095
3184
  () => import("./charachter8-C3UF8oSz.js").then((e) => e.default)
3096
3185
  ];
3097
- function en(e = 1) {
3186
+ function tn(e = 1) {
3098
3187
  const a = Math.max(0, Number(e || 1) - 1);
3099
- return ($e[a] || $e[0])();
3188
+ return (Ze[a] || Ze[0])();
3100
3189
  }
3101
3190
  const ne = () => {
3102
- }, an = 767;
3103
- function tn() {
3104
- return typeof window < "u" && window.innerWidth <= an;
3191
+ }, nn = 767;
3192
+ function on() {
3193
+ return typeof window < "u" && window.innerWidth <= nn;
3105
3194
  }
3106
3195
  function V(...e) {
3107
3196
  return e.filter(Boolean).join(" ");
3108
3197
  }
3109
3198
  function W(e) {
3110
- return ["ar", "fa", "ur", "he"].includes(e) ? "rqmii-chat-font-ar" : "rqmii-chat-font-latin";
3199
+ return e.startsWith("ar") || ["fa", "ur", "he"].includes(e) ? "rqmii-chat-font-ar" : "rqmii-chat-font-latin";
3111
3200
  }
3112
3201
  function Je(e) {
3113
- return e === "ar" ? "rqmii-chat-font-ar" : "rqmii-chat-font-latin";
3202
+ return e.startsWith("ar") ? "rqmii-chat-font-ar" : "rqmii-chat-font-latin";
3114
3203
  }
3115
3204
  function se(e) {
3116
- return ["ar", "fa", "ur", "he"].includes(e) ? "rtl" : "ltr";
3205
+ return e.startsWith("ar") || ["fa", "ur", "he"].includes(e) ? "rtl" : "ltr";
3117
3206
  }
3118
3207
  function De(e) {
3119
3208
  const a = Math.floor(e / 60).toString().padStart(2, "0"), t = (e % 60).toString().padStart(2, "0");
3120
3209
  return `${a}:${t}`;
3121
3210
  }
3122
- function nn(e = !0) {
3211
+ function rn(e = !0) {
3123
3212
  const [a, t] = v(0);
3124
3213
  return j(() => {
3125
3214
  if (!e) return;
@@ -3127,7 +3216,7 @@ function nn(e = !0) {
3127
3216
  return () => clearInterval(i);
3128
3217
  }, [e]), a;
3129
3218
  }
3130
- function on() {
3219
+ function sn() {
3131
3220
  const [e, a] = v(null);
3132
3221
  return j(() => {
3133
3222
  const t = window.visualViewport;
@@ -3138,7 +3227,7 @@ function on() {
3138
3227
  };
3139
3228
  }, []), e;
3140
3229
  }
3141
- function rn(e, a) {
3230
+ function ln(e, a) {
3142
3231
  const t = _([]);
3143
3232
  t.current = e.match(/\S+\s*/g) || [e];
3144
3233
  const [i, r] = v(
@@ -3156,9 +3245,9 @@ function rn(e, a) {
3156
3245
  return () => clearInterval(o);
3157
3246
  }, [e, a]), t.current.slice(0, i).join("");
3158
3247
  }
3159
- const sn = I.lazy(() => import("./Orb-BLYExpBk.js").then((e) => ({ default: e.RqmiiOrb })));
3160
- function ln(e) {
3161
- return e?.faceIndex === 0 && e.faceImageUrl ? e.faceImageUrl : e?.faceIndex === 9 ? null : en(e?.faceIndex || 1);
3248
+ const cn = I.lazy(() => import("./Orb-BLYExpBk.js").then((e) => ({ default: e.RqmiiOrb })));
3249
+ function dn(e) {
3250
+ return e?.faceIndex === 0 && e.faceImageUrl ? e.faceImageUrl : e?.faceIndex === 9 ? null : tn(e?.faceIndex || 1);
3162
3251
  }
3163
3252
  const qe = I.memo(function({ language: a, languages: t, onChange: i }) {
3164
3253
  const [r, o] = v(!1), s = _(null), c = He(a), d = be(t, a).map((l) => He(l)).filter(Boolean);
@@ -3199,13 +3288,13 @@ const qe = I.memo(function({ language: a, languages: t, onChange: i }) {
3199
3288
  const o = a?.faceIndex === 9, [s, c] = v(null), [d, l] = v(!s);
3200
3289
  return j(() => {
3201
3290
  let m = !1;
3202
- const u = ln(a);
3291
+ const u = dn(a);
3203
3292
  return typeof u == "string" ? (c(u), l(!1)) : u instanceof Promise ? u.then((h) => {
3204
3293
  m || (c(h), l(!1));
3205
3294
  }) : c(null), () => {
3206
3295
  m = !0;
3207
3296
  };
3208
- }, [a?.faceIndex, a?.faceImageUrl]), /* @__PURE__ */ n("div", { className: V("rqmii-agent-avatar", `rqmii-agent-avatar--${t}`, i && "is-active", o && "is-orb", r), children: o ? /* @__PURE__ */ n(I.Suspense, { fallback: null, children: /* @__PURE__ */ n(sn, { className: "rqmii-agent-avatar-orb" }) }) : s ? /* @__PURE__ */ n(
3297
+ }, [a?.faceIndex, a?.faceImageUrl]), /* @__PURE__ */ n("div", { className: V("rqmii-agent-avatar", `rqmii-agent-avatar--${t}`, i && "is-active", o && "is-orb", r), children: o ? /* @__PURE__ */ n(I.Suspense, { fallback: null, children: /* @__PURE__ */ n(cn, { className: "rqmii-agent-avatar-orb" }) }) : s ? /* @__PURE__ */ n(
3209
3298
  "img",
3210
3299
  {
3211
3300
  src: s,
@@ -3217,7 +3306,7 @@ const qe = I.memo(function({ language: a, languages: t, onChange: i }) {
3217
3306
  }), sa = I.memo(function({ agent: a, onClick: t, className: i = "", position: r = "fixed", active: o = !1 }) {
3218
3307
  return /* @__PURE__ */ n("button", { type: "button", className: V("rqmii-chat-open-button", r === "fixed" && "is-fixed", i), onClick: t, "aria-label": "Open chat", children: /* @__PURE__ */ n(J, { agent: a, size: "button", active: o }) });
3219
3308
  });
3220
- function cn() {
3309
+ function un() {
3221
3310
  try {
3222
3311
  const e = window.AudioContext || window.webkitAudioContext;
3223
3312
  if (!e) return;
@@ -3228,12 +3317,12 @@ function cn() {
3228
3317
  } catch {
3229
3318
  }
3230
3319
  }
3231
- const dn = I.memo(function({ message: a, delaySeconds: t, soundEnabled: i, language: r, buttonPosition: o = "right", onClick: s }) {
3320
+ const mn = I.memo(function({ message: a, delaySeconds: t, soundEnabled: i, language: r, buttonPosition: o = "right", onClick: s }) {
3232
3321
  const [c, d] = v(!1), l = a.trim();
3233
3322
  return j(() => {
3234
3323
  if (!l) return;
3235
3324
  const u = setTimeout(() => {
3236
- d(!0), i && cn();
3325
+ d(!0), i && un();
3237
3326
  }, Math.max(0, t) * 1e3);
3238
3327
  return () => clearTimeout(u);
3239
3328
  }, [l, t, i]), !c || !l ? null : /* @__PURE__ */ n(
@@ -3247,7 +3336,7 @@ const dn = I.memo(function({ message: a, delaySeconds: t, soundEnabled: i, langu
3247
3336
  children: l
3248
3337
  }
3249
3338
  );
3250
- }), ze = I.memo(function({ language: a, placeholder: t, onSend: i, disabled: r = !1, variant: o = "text" }) {
3339
+ }), Ee = I.memo(function({ language: a, placeholder: t, onSend: i, disabled: r = !1, variant: o = "text" }) {
3251
3340
  const [s, c] = v(""), d = _(null), l = 168, m = () => {
3252
3341
  const u = s.trim();
3253
3342
  !u || r || (i(u), c(""), d.current && (d.current.style.height = "auto"));
@@ -3272,32 +3361,32 @@ const dn = I.memo(function({ message: a, delaySeconds: t, soundEnabled: i, langu
3272
3361
  }
3273
3362
  }
3274
3363
  ),
3275
- /* @__PURE__ */ n("button", { type: "button", onClick: m, disabled: !s.trim() || r, "aria-label": F(a, "send"), children: /* @__PURE__ */ n(It, { size: 20 }) })
3364
+ /* @__PURE__ */ n("button", { type: "button", onClick: m, disabled: !s.trim() || r, "aria-label": F(a, "send"), children: /* @__PURE__ */ n(qt, { size: 20 }) })
3276
3365
  ] });
3277
- }), un = I.memo(function({ text: a, streaming: t }) {
3278
- const i = rn(a, t);
3279
- return /* @__PURE__ */ n(Ae, { children: i });
3280
- }), Ce = 133, mn = Ce + 44, hn = 767, ge = 36, gn = 8, Xe = ge + gn;
3281
- function pn() {
3282
- return typeof window > "u" ? Ce : window.innerWidth <= hn ? mn : Ce;
3366
+ }), hn = I.memo(function({ text: a, streaming: t }) {
3367
+ const i = ln(a, t);
3368
+ return /* @__PURE__ */ n(Le, { children: i });
3369
+ }), Ce = 133, gn = Ce + 44, pn = 767, ge = 36, bn = 8, Xe = ge + bn;
3370
+ function kn() {
3371
+ return typeof window > "u" ? Ce : window.innerWidth <= pn ? gn : Ce;
3283
3372
  }
3284
- function bn(e) {
3373
+ function fn(e) {
3285
3374
  return e === "rtl" ? "right" : "left";
3286
3375
  }
3287
- function kn(e, a, t, i) {
3376
+ function vn(e, a, t, i) {
3288
3377
  if (!e.length) return null;
3289
3378
  const r = Math.max(...e.map((s) => s.offsetTop)), o = e.filter((s) => s.offsetTop >= r - 0.5);
3290
3379
  return t === "right" ? o.find((s) => s.offsetLeft + s.offsetWidth > a - i) || null : o.find((s) => s.offsetLeft < i) || null;
3291
3380
  }
3292
3381
  function ea(e, a, t, i) {
3293
3382
  for (let r = 0; r < 2; r++) {
3294
- const o = kn(e, a, t, i);
3383
+ const o = vn(e, a, t, i);
3295
3384
  if (!o) break;
3296
3385
  t === "right" ? o.style.marginRight = `${i}px` : o.style.marginLeft = `${i}px`, o.style.maxWidth = `calc(100% - ${i}px)`;
3297
3386
  }
3298
3387
  }
3299
- const fn = I.memo(function({ suggestions: a, language: t, onClick: i }) {
3300
- const [r, o] = v(!1), [s, c] = v(!1), [d, l] = v(null), [m, u] = v(null), h = _(null), z = _([]), k = se(t || "en"), y = bn(k), E = (T) => {
3388
+ const yn = I.memo(function({ suggestions: a, language: t, onClick: i }) {
3389
+ const [r, o] = v(!1), [s, c] = v(!1), [d, l] = v(null), [m, u] = v(null), h = _(null), E = _([]), k = se(t || "en"), y = fn(k), z = (T) => {
3301
3390
  T.forEach((g) => {
3302
3391
  g && (g.style.maxWidth = "", g.style.marginRight = "", g.style.marginLeft = "");
3303
3392
  });
@@ -3306,20 +3395,20 @@ const fn = I.memo(function({ suggestions: a, language: t, onClick: i }) {
3306
3395
  const T = h.current;
3307
3396
  if (!T || r) return;
3308
3397
  const g = () => {
3309
- const p = z.current;
3310
- E(p);
3311
- const S = T.clientWidth, x = pn(), P = () => {
3312
- for (let A = 0; A < p.length; A++) {
3313
- const w = p[A];
3398
+ const p = E.current;
3399
+ z(p);
3400
+ const S = T.clientWidth, x = kn(), P = () => {
3401
+ for (let L = 0; L < p.length; L++) {
3402
+ const w = p[L];
3314
3403
  if (w && w.offsetTop + w.offsetHeight > x + 0.5)
3315
- return A;
3404
+ return L;
3316
3405
  }
3317
3406
  return null;
3318
3407
  };
3319
3408
  let C = P();
3320
3409
  if (C !== null)
3321
- for (let A = 0; A <= p.length; A++) {
3322
- E(p);
3410
+ for (let L = 0; L <= p.length; L++) {
3411
+ z(p);
3323
3412
  const w = p.slice(0, C).filter((D) => !!D);
3324
3413
  ea(w, S, y, Xe);
3325
3414
  const M = P();
@@ -3327,7 +3416,7 @@ const fn = I.memo(function({ suggestions: a, language: t, onClick: i }) {
3327
3416
  C = M;
3328
3417
  }
3329
3418
  if (l(C), c(C !== null), C !== null) {
3330
- const A = p.slice(0, C).filter((M) => !!M), w = A.length ? Math.max(...A.map((M) => M.offsetTop + M.offsetHeight)) : ge;
3419
+ const L = p.slice(0, C).filter((M) => !!M), w = L.length ? Math.max(...L.map((M) => M.offsetTop + M.offsetHeight)) : ge;
3331
3420
  u(w - ge);
3332
3421
  } else
3333
3422
  u(null);
@@ -3335,16 +3424,16 @@ const fn = I.memo(function({ suggestions: a, language: t, onClick: i }) {
3335
3424
  g();
3336
3425
  const b = typeof ResizeObserver < "u" ? new ResizeObserver(g) : null;
3337
3426
  return b?.observe(T), () => {
3338
- b?.disconnect(), E(z.current);
3427
+ b?.disconnect(), z(E.current);
3339
3428
  };
3340
3429
  }, [a, r, y]), Oe(() => {
3341
3430
  const T = h.current;
3342
3431
  if (!T || !r) return;
3343
- const g = z.current.filter((p) => !!p);
3344
- E(z.current), ea(g, T.clientWidth, y, Xe);
3432
+ const g = E.current.filter((p) => !!p);
3433
+ z(E.current), ea(g, T.clientWidth, y, Xe);
3345
3434
  const b = g.length ? Math.max(...g.map((p) => p.offsetTop + p.offsetHeight)) : ge;
3346
3435
  return u(b - ge), () => {
3347
- E(z.current);
3436
+ z(E.current);
3348
3437
  };
3349
3438
  }, [r, a, y]), a.length ? /* @__PURE__ */ n("div", { className: V("rqmii-suggested-messages", r && "is-expanded", s && "has-overflow"), dir: k, children: /* @__PURE__ */ f("div", { ref: h, className: V("rqmii-suggested-messages-inner", r ? "is-expanded" : "is-collapsed"), children: [
3350
3439
  a.map((T, g) => {
@@ -3353,7 +3442,7 @@ const fn = I.memo(function({ suggestions: a, language: t, onClick: i }) {
3353
3442
  "button",
3354
3443
  {
3355
3444
  ref: (p) => {
3356
- z.current[g] = p;
3445
+ E.current[g] = p;
3357
3446
  },
3358
3447
  type: "button",
3359
3448
  className: "rqmii-suggested-message",
@@ -3375,11 +3464,11 @@ const fn = I.memo(function({ suggestions: a, language: t, onClick: i }) {
3375
3464
  onClick: () => o((T) => (T && h.current && (h.current.scrollTop = 0), !T)),
3376
3465
  "aria-label": r ? "Show less" : "Show more",
3377
3466
  "aria-expanded": r,
3378
- children: r ? /* @__PURE__ */ n(Rt, { size: 14 }) : /* @__PURE__ */ n(ra, { size: 14 })
3467
+ children: r ? /* @__PURE__ */ n(Gt, { size: 14 }) : /* @__PURE__ */ n(ra, { size: 14 })
3379
3468
  }
3380
3469
  )
3381
3470
  ] }) }) : null;
3382
- }), vn = I.memo(function({ language: a }) {
3471
+ }), Fn = I.memo(function({ language: a }) {
3383
3472
  const t = se(a || "en");
3384
3473
  return /* @__PURE__ */ n("div", { className: "rqmii-chat-message-row", children: /* @__PURE__ */ f("div", { className: "rqmii-chat-message rqmii-chat-typing-indicator", dir: t, children: [
3385
3474
  /* @__PURE__ */ n("span", { className: "rqmii-chat-typing-dot" }),
@@ -3387,20 +3476,20 @@ const fn = I.memo(function({ suggestions: a, language: t, onClick: i }) {
3387
3476
  /* @__PURE__ */ n("span", { className: "rqmii-chat-typing-dot" })
3388
3477
  ] }) });
3389
3478
  });
3390
- function yn(e) {
3479
+ function Tn(e) {
3391
3480
  return e === "message";
3392
3481
  }
3393
- const Fn = {
3482
+ const En = {
3394
3483
  name: "leadFormName",
3395
3484
  email: "leadFormEmail",
3396
3485
  phone: "leadFormPhone",
3397
3486
  message: "leadFormMessage"
3398
- }, Tn = I.memo(function({ messageId: a, form: t, language: i, textDirection: r, formSubmitted: o }) {
3399
- const s = ba(), [c, d] = v({}), [l, m] = v(!1), [u, h] = v(!!o), [z, k] = v(null), y = t.title || F(i, "leadFormTitle"), E = (b) => {
3400
- const p = Fn[b.key];
3487
+ }, zn = I.memo(function({ messageId: a, form: t, language: i, textDirection: r, formSubmitted: o }) {
3488
+ const s = ba(), [c, d] = v({}), [l, m] = v(!1), [u, h] = v(!!o), [E, k] = v(null), y = t.title || F(i, "leadFormTitle"), z = (b) => {
3489
+ const p = En[b.key];
3401
3490
  return `${p ? F(i, p) : b.label}${b.required ? "*" : ""}`;
3402
3491
  }, T = (b, p) => {
3403
- d((S) => ({ ...S, [b]: p })), z && k(null);
3492
+ d((S) => ({ ...S, [b]: p })), E && k(null);
3404
3493
  }, g = async (b) => {
3405
3494
  if (b.preventDefault(), l || u) return;
3406
3495
  if (t.fields.some((x) => x.required && !c[x.key]?.trim())) {
@@ -3428,8 +3517,8 @@ const Fn = {
3428
3517
  return u ? /* @__PURE__ */ n("div", { className: "rqmii-chat-message-row rqmii-chat-lead-form-row", children: /* @__PURE__ */ n("div", { className: "rqmii-chat-lead-form rqmii-chat-lead-form--done", dir: r, children: /* @__PURE__ */ n("div", { className: "rqmii-chat-lead-form-success", children: F(i, "leadFormSuccess") }) }) }) : /* @__PURE__ */ n("div", { className: "rqmii-chat-message-row rqmii-chat-lead-form-row", children: /* @__PURE__ */ f("form", { className: "rqmii-chat-lead-form", dir: r, onSubmit: g, children: [
3429
3518
  /* @__PURE__ */ n("div", { className: "rqmii-chat-lead-form-title", children: y }),
3430
3519
  t.fields.map((b) => {
3431
- const p = E(b), S = b.type === "email" ? "email" : b.type === "date" ? "date" : "text";
3432
- return yn(b.key) ? /* @__PURE__ */ n(
3520
+ const p = z(b), S = b.type === "email" ? "email" : b.type === "date" ? "date" : "text";
3521
+ return Tn(b.key) ? /* @__PURE__ */ n(
3433
3522
  "textarea",
3434
3523
  {
3435
3524
  className: "rqmii-chat-lead-form-input rqmii-chat-lead-form-textarea",
@@ -3453,14 +3542,14 @@ const Fn = {
3453
3542
  b.key
3454
3543
  );
3455
3544
  }),
3456
- z && /* @__PURE__ */ n("div", { className: "rqmii-chat-lead-form-error", children: z }),
3545
+ E && /* @__PURE__ */ n("div", { className: "rqmii-chat-lead-form-error", children: E }),
3457
3546
  /* @__PURE__ */ n("button", { type: "submit", className: "rqmii-chat-lead-form-submit", disabled: l, children: l ? F(i, "loading") : F(i, "submit") })
3458
3547
  ] }) });
3459
- }), zn = I.memo(function({ message: a, textDirection: t, language: i }) {
3548
+ }), Sn = I.memo(function({ message: a, textDirection: t, language: i }) {
3460
3549
  if (a.role === "lead_form" && a.form)
3461
- return /* @__PURE__ */ n(Tn, { messageId: a.id, form: a.form, language: i, textDirection: t, formSubmitted: a.formSubmitted });
3550
+ return /* @__PURE__ */ n(zn, { messageId: a.id, form: a.form, language: i, textDirection: t, formSubmitted: a.formSubmitted });
3462
3551
  const r = a.role === "user" || a.sender === "user";
3463
- return /* @__PURE__ */ n("div", { className: V("rqmii-chat-message-row", r && "is-user"), children: /* @__PURE__ */ n("div", { className: "rqmii-chat-message", dir: t, children: /* @__PURE__ */ n(un, { text: a.text, streaming: a.streaming }) }) });
3552
+ return /* @__PURE__ */ n("div", { className: V("rqmii-chat-message-row", r && "is-user"), children: /* @__PURE__ */ n("div", { className: "rqmii-chat-message", dir: t, children: /* @__PURE__ */ n(hn, { text: a.text, streaming: a.streaming }) }) });
3464
3553
  }), Ne = I.memo(function({ messages: a, partialTranscript: t, language: i, showTypingIndicator: r }) {
3465
3554
  const o = _(null), s = se(i || "en"), c = _(a.length);
3466
3555
  return j(() => {
@@ -3468,8 +3557,8 @@ const Fn = {
3468
3557
  const d = a.length !== c.current;
3469
3558
  c.current = a.length, o.current.scrollIntoView({ behavior: d ? "smooth" : "instant", block: "end" });
3470
3559
  }, [a, t]), /* @__PURE__ */ f("div", { className: "rqmii-chat-messages", children: [
3471
- a.map((d) => /* @__PURE__ */ n(zn, { message: d, textDirection: s, language: i || "en" }, d.id || `${d.role}-${d.text}`)),
3472
- r && /* @__PURE__ */ n(vn, { language: i }),
3560
+ a.map((d) => /* @__PURE__ */ n(Sn, { message: d, textDirection: s, language: i || "en" }, d.id || `${d.role}-${d.text}`)),
3561
+ r && /* @__PURE__ */ n(Fn, { language: i }),
3473
3562
  t && /* @__PURE__ */ n("div", { className: "rqmii-chat-message-row is-user is-partial", children: /* @__PURE__ */ n("div", { className: "rqmii-chat-message", dir: s, children: t }) }),
3474
3563
  /* @__PURE__ */ n("div", { ref: o })
3475
3564
  ] });
@@ -3478,14 +3567,14 @@ const Fn = {
3478
3567
  i && /* @__PURE__ */ n("button", { type: "button", className: "rqmii-error-close", onClick: i, children: "×" }),
3479
3568
  /* @__PURE__ */ n("p", { children: a || F(r, "connectionFailed") }),
3480
3569
  t && /* @__PURE__ */ f("button", { type: "button", className: "rqmii-chat-retry", onClick: t, children: [
3481
- /* @__PURE__ */ n(Zt, { size: 16 }),
3570
+ /* @__PURE__ */ n(Jt, { size: 16 }),
3482
3571
  /* @__PURE__ */ n("span", { children: F(r, "retry") })
3483
3572
  ] })
3484
3573
  ] });
3485
- }), En = 5;
3574
+ }), xn = 5;
3486
3575
  function ca({ rating: e, onRate: a, readonly: t, size: i = 28 }) {
3487
3576
  const [r, o] = v(0), s = r || e;
3488
- return /* @__PURE__ */ n("div", { className: "rqmii-chat-rating-stars", role: "radiogroup", children: Array.from({ length: En }, (c, d) => {
3577
+ return /* @__PURE__ */ n("div", { className: "rqmii-chat-rating-stars", role: "radiogroup", children: Array.from({ length: xn }, (c, d) => {
3489
3578
  const l = d + 1, m = l <= s;
3490
3579
  return /* @__PURE__ */ n(
3491
3580
  "button",
@@ -3499,13 +3588,13 @@ function ca({ rating: e, onRate: a, readonly: t, size: i = 28 }) {
3499
3588
  onMouseEnter: () => !t && o(l),
3500
3589
  onMouseLeave: () => !t && o(0),
3501
3590
  onClick: () => !t && a?.(l),
3502
- children: /* @__PURE__ */ n(Jt, { size: i, fill: m ? "currentColor" : "none" })
3591
+ children: /* @__PURE__ */ n(en, { size: i, fill: m ? "currentColor" : "none" })
3503
3592
  },
3504
3593
  l
3505
3594
  );
3506
3595
  }) });
3507
3596
  }
3508
- function Sn({
3597
+ function Pn({
3509
3598
  language: e,
3510
3599
  rating: a,
3511
3600
  endedBy: t,
@@ -3530,7 +3619,7 @@ function Sn({
3530
3619
  ] })
3531
3620
  ] });
3532
3621
  }
3533
- function xn({
3622
+ function Mn({
3534
3623
  agent: e,
3535
3624
  language: a,
3536
3625
  rating: t,
@@ -3550,7 +3639,7 @@ function xn({
3550
3639
  };
3551
3640
  return /* @__PURE__ */ f("div", { className: V("rqmii-chat-panel rqmii-chat-panel--feedback", W(a)), dir: se(a), children: [
3552
3641
  /* @__PURE__ */ f("div", { className: "rqmii-chat-topbar", children: [
3553
- /* @__PURE__ */ n("button", { type: "button", className: "rqmii-chat-circle-button", onClick: i, "aria-label": "Back", children: /* @__PURE__ */ n(qt, { size: 20 }) }),
3642
+ /* @__PURE__ */ n("button", { type: "button", className: "rqmii-chat-circle-button", onClick: i, "aria-label": "Back", children: /* @__PURE__ */ n(_t, { size: 20 }) }),
3554
3643
  /* @__PURE__ */ n("button", { type: "button", className: "rqmii-chat-circle-button", onClick: r, "aria-label": F(a, "minimize"), children: /* @__PURE__ */ n(Te, { size: 20 }) })
3555
3644
  ] }),
3556
3645
  /* @__PURE__ */ f("div", { className: "rqmii-chat-feedback-body", children: [
@@ -3573,7 +3662,7 @@ function xn({
3573
3662
  /* @__PURE__ */ n(le, { language: a, agent: e })
3574
3663
  ] });
3575
3664
  }
3576
- const Pn = I.lazy(() => import("./RqmiiCloudAvatarPlayer-BL7GVcr_.js").then((e) => e.e).then((e) => ({ default: e.RqmiiCloudAvatarPlayer })));
3665
+ const Cn = I.lazy(() => import("./RqmiiCloudAvatarPlayer-BL7GVcr_.js").then((e) => e.e).then((e) => ({ default: e.RqmiiCloudAvatarPlayer })));
3577
3666
  function me(e) {
3578
3667
  if (!(e == null || typeof window > "u" || window.innerWidth >= 768))
3579
3668
  return {
@@ -3581,9 +3670,9 @@ function me(e) {
3581
3670
  bottom: 0
3582
3671
  };
3583
3672
  }
3584
- const Mn = I.memo(function({ agent: a, language: t, languages: i, onLanguageChange: r, onClose: o, onSend: s, isVoiceEnabled: c = !1, isAudioPlaying: d = !1, isVoiceSetupLoading: l = !1, onStartVoice: m, visualViewportHeight: u, disabled: h = !1, error: z, suggestions: k, onSuggestionClick: y, compact: E = !1 }) {
3585
- const T = me(u), g = E ? "start" : "hero", b = k && k.length > 0;
3586
- return /* @__PURE__ */ f("div", { className: V("rqmii-chat-panel rqmii-chat-panel--start", E && "rqmii-chat-panel--start-compact", W(t)), style: T, children: [
3673
+ const wn = I.memo(function({ agent: a, language: t, languages: i, onLanguageChange: r, onClose: o, onSend: s, isVoiceEnabled: c = !1, isAudioPlaying: d = !1, isVoiceSetupLoading: l = !1, onStartVoice: m, visualViewportHeight: u, disabled: h = !1, error: E, suggestions: k, onSuggestionClick: y, compact: z = !1 }) {
3674
+ const T = me(u), g = z ? "start" : "hero", b = k && k.length > 0;
3675
+ return /* @__PURE__ */ f("div", { className: V("rqmii-chat-panel rqmii-chat-panel--start", z && "rqmii-chat-panel--start-compact", W(t)), style: T, children: [
3587
3676
  /* @__PURE__ */ f("div", { className: "rqmii-chat-topbar", children: [
3588
3677
  /* @__PURE__ */ n("span", {}),
3589
3678
  /* @__PURE__ */ f("div", { className: "rqmii-chat-topbar-actions", children: [
@@ -3592,18 +3681,18 @@ const Mn = I.memo(function({ agent: a, language: t, languages: i, onLanguageChan
3592
3681
  ] })
3593
3682
  ] }),
3594
3683
  /* @__PURE__ */ f("div", { className: "rqmii-chat-start-body", children: [
3595
- c ? /* @__PURE__ */ f("div", { className: V("rqmii-chat-call-avatar-wrap", E && "is-compact"), children: [
3684
+ c ? /* @__PURE__ */ f("div", { className: V("rqmii-chat-call-avatar-wrap", z && "is-compact"), children: [
3596
3685
  /* @__PURE__ */ n(J, { agent: a, size: g, active: d }),
3597
- /* @__PURE__ */ n("button", { type: "button", className: V("rqmii-chat-call-button", E && "is-compact"), onClick: m, disabled: l, "aria-label": F(t, "startVoice"), children: l ? /* @__PURE__ */ n(ye, { className: "rqmii-chat-spin", size: E ? 18 : 24 }) : /* @__PURE__ */ n(je, { size: E ? 18 : 24 }) })
3686
+ /* @__PURE__ */ n("button", { type: "button", className: V("rqmii-chat-call-button", z && "is-compact"), onClick: m, disabled: l, "aria-label": F(t, "startVoice"), children: l ? /* @__PURE__ */ n(ye, { className: "rqmii-chat-spin", size: z ? 18 : 24 }) : /* @__PURE__ */ n(je, { size: z ? 18 : 24 }) })
3598
3687
  ] }) : /* @__PURE__ */ n(J, { agent: a, size: g }),
3599
3688
  /* @__PURE__ */ n("div", { className: "rqmii-chat-agent-name", children: a.name }),
3600
- z && /* @__PURE__ */ n("div", { className: "rqmii-chat-error-text", children: z })
3689
+ E && /* @__PURE__ */ n("div", { className: "rqmii-chat-error-text", children: E })
3601
3690
  ] }),
3602
- b && /* @__PURE__ */ n("div", { className: "rqmii-chat-start-suggestions", children: /* @__PURE__ */ n(fn, { suggestions: k, language: t, onClick: (p) => y?.(p) }) }),
3603
- /* @__PURE__ */ n(ze, { language: t, onSend: s, disabled: h }),
3691
+ b && /* @__PURE__ */ n("div", { className: "rqmii-chat-start-suggestions", children: /* @__PURE__ */ n(yn, { suggestions: k, language: t, onClick: (p) => y?.(p) }) }),
3692
+ /* @__PURE__ */ n(Ee, { language: t, onSend: s, disabled: h }),
3604
3693
  /* @__PURE__ */ n(le, { language: t, agent: a })
3605
3694
  ] });
3606
- }), Cn = I.memo(function({ agent: a, language: t, languages: i, onLanguageChange: r, onClose: o, onStartVoice: s, isVoiceSetupLoading: c = !1, isAudioPlaying: d, visualViewportHeight: l }) {
3695
+ }), Ln = I.memo(function({ agent: a, language: t, languages: i, onLanguageChange: r, onClose: o, onStartVoice: s, isVoiceSetupLoading: c = !1, isAudioPlaying: d, visualViewportHeight: l }) {
3607
3696
  const m = me(l);
3608
3697
  return /* @__PURE__ */ f("div", { className: V("rqmii-chat-panel rqmii-chat-panel--voice-start", W(t)), style: m, children: [
3609
3698
  /* @__PURE__ */ f("div", { className: "rqmii-chat-topbar", children: [
@@ -3626,8 +3715,8 @@ const Mn = I.memo(function({ agent: a, language: t, languages: i, onLanguageChan
3626
3715
  ] }),
3627
3716
  /* @__PURE__ */ n(le, { language: t, agent: a })
3628
3717
  ] });
3629
- }), wn = I.memo(function({ agent: a, language: t, onEndSession: i, onMinimize: r, messages: o, partialTranscript: s, onSend: c, isAudioPlaying: d, isVoiceEnabled: l, onToggleVoice: m, isListening: u, isSpeaking: h, isLoading: z, isAgentThinking: k, isAgentSpeaking: y, onStartVoice: E, elapsed: T, visualViewportHeight: g, waitingForResponse: b }) {
3630
- const p = da({ language: t, isListening: u, isLoading: z, isSpeaking: h, isAudioPlaying: d, isAgentThinking: k, isAgentSpeaking: y, persistentListening: !1 }), S = me(g);
3718
+ }), An = I.memo(function({ agent: a, language: t, onEndSession: i, onMinimize: r, messages: o, partialTranscript: s, onSend: c, isAudioPlaying: d, isVoiceEnabled: l, onToggleVoice: m, isListening: u, isSpeaking: h, isLoading: E, isAgentThinking: k, isAgentSpeaking: y, onStartVoice: z, elapsed: T, visualViewportHeight: g, waitingForResponse: b }) {
3719
+ const p = da({ language: t, isListening: u, isLoading: E, isSpeaking: h, isAudioPlaying: d, isAgentThinking: k, isAgentSpeaking: y, persistentListening: !1 }), S = me(g);
3631
3720
  return /* @__PURE__ */ f("div", { className: V("rqmii-chat-panel rqmii-chat-panel--conversation", W(t)), style: S, children: [
3632
3721
  /* @__PURE__ */ f("div", { className: "rqmii-chat-header", children: [
3633
3722
  /* @__PURE__ */ n(J, { agent: a, size: "header", active: d }),
@@ -3635,17 +3724,17 @@ const Mn = I.memo(function({ agent: a, language: t, languages: i, onLanguageChan
3635
3724
  /* @__PURE__ */ n("div", { className: "rqmii-chat-header-spacer" }),
3636
3725
  /* @__PURE__ */ f("div", { className: "rqmii-chat-header-actions", children: [
3637
3726
  r && /* @__PURE__ */ n("button", { type: "button", className: "rqmii-chat-circle-button", onClick: r, "aria-label": F(t, "minimize"), children: /* @__PURE__ */ n(Te, { size: 20 }) }),
3638
- l && /* @__PURE__ */ n("button", { type: "button", className: V("rqmii-chat-circle-button", h && "is-active"), onClick: m, "aria-label": u ? F(t, "stopVoice") : F(t, "startVoice"), children: u ? /* @__PURE__ */ n(Fe, { size: 20 }) : /* @__PURE__ */ n(Le, { size: 20 }) }),
3727
+ l && /* @__PURE__ */ n("button", { type: "button", className: V("rqmii-chat-circle-button", h && "is-active"), onClick: m, "aria-label": u ? F(t, "stopVoice") : F(t, "startVoice"), children: u ? /* @__PURE__ */ n(Fe, { size: 20 }) : /* @__PURE__ */ n(Ae, { size: 20 }) }),
3639
3728
  /* @__PURE__ */ n("button", { type: "button", className: "rqmii-chat-circle-button is-danger", onClick: i, "aria-label": F(t, "endCall"), children: /* @__PURE__ */ n(Ve, { size: 20 }) })
3640
3729
  ] })
3641
3730
  ] }),
3642
3731
  /* @__PURE__ */ n(Ne, { messages: o, partialTranscript: s, language: t, showTypingIndicator: b }),
3643
3732
  l && /* @__PURE__ */ n("div", { className: "rqmii-chat-session-counter", children: De(T) }),
3644
- /* @__PURE__ */ n(ze, { language: t, onSend: c }),
3733
+ /* @__PURE__ */ n(Ee, { language: t, onSend: c }),
3645
3734
  /* @__PURE__ */ n(le, { language: t, agent: a })
3646
3735
  ] });
3647
- }), An = I.memo(function({ agent: a, language: t, onEndSession: i, onMinimize: r, isListening: o, isLoading: s, isSpeaking: c, isAudioPlaying: d, isAgentThinking: l, isAgentSpeaking: m, onToggleVoice: u, elapsed: h, visualViewportHeight: z }) {
3648
- const k = da({ language: t, isListening: o, isLoading: s, isSpeaking: c, isAudioPlaying: d, isAgentThinking: l, isAgentSpeaking: m, persistentListening: !0 }), y = me(z);
3736
+ }), Vn = I.memo(function({ agent: a, language: t, onEndSession: i, onMinimize: r, isListening: o, isLoading: s, isSpeaking: c, isAudioPlaying: d, isAgentThinking: l, isAgentSpeaking: m, onToggleVoice: u, elapsed: h, visualViewportHeight: E }) {
3737
+ const k = da({ language: t, isListening: o, isLoading: s, isSpeaking: c, isAudioPlaying: d, isAgentThinking: l, isAgentSpeaking: m, persistentListening: !0 }), y = me(E);
3649
3738
  return /* @__PURE__ */ f("div", { className: V("rqmii-chat-panel rqmii-chat-panel--voice-call", W(t)), style: y, children: [
3650
3739
  /* @__PURE__ */ f("div", { className: "rqmii-chat-call-status", children: [
3651
3740
  /* @__PURE__ */ n("span", { className: V("rqmii-chat-live-dot", o && "is-live") }),
@@ -3657,7 +3746,7 @@ const Mn = I.memo(function({ agent: a, language: t, languages: i, onLanguageChan
3657
3746
  /* @__PURE__ */ n("div", { className: "rqmii-chat-agent-name", children: a.name }),
3658
3747
  /* @__PURE__ */ n("div", { className: V("rqmii-chat-status-pill", !k && "is-empty"), children: k || F(t, "listening") }),
3659
3748
  /* @__PURE__ */ f("div", { className: "rqmii-chat-voice-actions", children: [
3660
- /* @__PURE__ */ n("button", { type: "button", className: V("rqmii-chat-circle-button", c && "is-active"), onClick: u, children: o ? /* @__PURE__ */ n(Fe, { size: 20 }) : /* @__PURE__ */ n(Le, { size: 20 }) }),
3749
+ /* @__PURE__ */ n("button", { type: "button", className: V("rqmii-chat-circle-button", c && "is-active"), onClick: u, children: o ? /* @__PURE__ */ n(Fe, { size: 20 }) : /* @__PURE__ */ n(Ae, { size: 20 }) }),
3661
3750
  /* @__PURE__ */ n("button", { type: "button", className: "rqmii-chat-circle-button is-danger", onClick: i, "aria-label": F(t, "endCall"), children: /* @__PURE__ */ n(Ve, { size: 20 }) })
3662
3751
  ] })
3663
3752
  ] }),
@@ -3667,18 +3756,18 @@ const Mn = I.memo(function({ agent: a, language: t, languages: i, onLanguageChan
3667
3756
  function da({ language: e, isListening: a, isLoading: t, isSpeaking: i, isAudioPlaying: r, isAgentThinking: o, isAgentSpeaking: s, persistentListening: c = !1 }) {
3668
3757
  return t ? F(e, "loading") : i ? F(e, "listening") : r || s ? F(e, "talkToInterrupt") : o ? F(e, "processing") : a && c ? F(e, "listening") : null;
3669
3758
  }
3670
- const Ln = I.memo(function({ agent: a, language: t, onRestore: i, onClose: r, isListening: o, isAudioPlaying: s, isSpeaking: c, onToggleVoice: d, elapsed: l, visualViewportHeight: m, variant: u = "voice" }) {
3671
- const h = me(m), z = u === "text";
3759
+ const jn = I.memo(function({ agent: a, language: t, onRestore: i, onClose: r, isListening: o, isAudioPlaying: s, isSpeaking: c, onToggleVoice: d, elapsed: l, visualViewportHeight: m, variant: u = "voice" }) {
3760
+ const h = me(m), E = u === "text";
3672
3761
  return /* @__PURE__ */ f("div", { className: V("rqmii-chat-minimized", W(t)), style: h, children: [
3673
3762
  /* @__PURE__ */ n(J, { agent: a, size: "minimized", active: s }),
3674
- !z && /* @__PURE__ */ n("span", { className: "rqmii-chat-minimized-time", children: De(l) }),
3763
+ !E && /* @__PURE__ */ n("span", { className: "rqmii-chat-minimized-time", children: De(l) }),
3675
3764
  /* @__PURE__ */ f("div", { className: "rqmii-chat-minimized-actions", children: [
3676
- /* @__PURE__ */ n("button", { type: "button", className: "rqmii-chat-circle-button", onClick: i, "aria-label": F(t, "maximize"), children: /* @__PURE__ */ n(Ut, { size: 20 }) }),
3677
- !z && /* @__PURE__ */ n("button", { type: "button", className: V("rqmii-chat-circle-button", c && "is-active"), onClick: d, "aria-label": o ? F(t, "stopVoice") : F(t, "startVoice"), children: o ? /* @__PURE__ */ n(Fe, { size: 20 }) : /* @__PURE__ */ n(Le, { size: 20 }) }),
3765
+ /* @__PURE__ */ n("button", { type: "button", className: "rqmii-chat-circle-button", onClick: i, "aria-label": F(t, "maximize"), children: /* @__PURE__ */ n(Ot, { size: 20 }) }),
3766
+ !E && /* @__PURE__ */ n("button", { type: "button", className: V("rqmii-chat-circle-button", c && "is-active"), onClick: d, "aria-label": o ? F(t, "stopVoice") : F(t, "startVoice"), children: o ? /* @__PURE__ */ n(Fe, { size: 20 }) : /* @__PURE__ */ n(Ae, { size: 20 }) }),
3678
3767
  /* @__PURE__ */ n("button", { type: "button", className: "rqmii-chat-circle-button is-danger", onClick: r, "aria-label": F(t, "endCall"), children: /* @__PURE__ */ n(Ve, { size: 20 }) })
3679
3768
  ] })
3680
3769
  ] });
3681
- }), Vn = I.memo(function({
3770
+ }), In = I.memo(function({
3682
3771
  agent: a,
3683
3772
  language: t,
3684
3773
  languages: i,
@@ -3691,22 +3780,22 @@ const Ln = I.memo(function({ agent: a, language: t, onRestore: i, onClose: r, is
3691
3780
  isVoiceSetupLoading: m = !1,
3692
3781
  visualViewportHeight: u,
3693
3782
  rating: h,
3694
- endedBy: z,
3783
+ endedBy: E,
3695
3784
  sessionId: k,
3696
3785
  ratingInteractive: y,
3697
- showTellUsMore: E,
3786
+ showTellUsMore: z,
3698
3787
  onRate: T,
3699
3788
  onTellUsMore: g
3700
3789
  }) {
3701
3790
  const b = me(u), p = k && a.widget?.behavior?.post_chat_rating_enabled ? /* @__PURE__ */ n(
3702
- Sn,
3791
+ Pn,
3703
3792
  {
3704
3793
  language: t,
3705
3794
  rating: h,
3706
- endedBy: z,
3795
+ endedBy: E,
3707
3796
  sessionId: k,
3708
3797
  interactive: y,
3709
- showTellUsMore: E,
3798
+ showTellUsMore: z,
3710
3799
  onRate: T,
3711
3800
  onTellUsMore: g
3712
3801
  }
@@ -3752,14 +3841,14 @@ const Ln = I.memo(function({ agent: a, language: t, onRestore: i, onClose: r, is
3752
3841
  ] }),
3753
3842
  /* @__PURE__ */ n(Ne, { messages: o, language: t }),
3754
3843
  p,
3755
- x && /* @__PURE__ */ n(ze, { language: t, onSend: l }),
3844
+ x && /* @__PURE__ */ n(Ee, { language: t, onSend: l }),
3756
3845
  /* @__PURE__ */ n(le, { language: t, agent: a })
3757
3846
  ] });
3758
3847
  }), ua = I.memo(function({ agent: a, language: t, onClose: i }) {
3759
3848
  const { streamingUrl: r, isCloudStreamConnected: o, cloudStreamError: s } = Ke(), { isAvatarSpeaking: c } = Ke(), { messages: d, sendTextMessage: l } = de();
3760
3849
  return /* @__PURE__ */ f("div", { className: V("rqmii-avatar-panel", W(t)), children: [
3761
3850
  /* @__PURE__ */ f("div", { className: "rqmii-avatar-stream", children: [
3762
- /* @__PURE__ */ n(I.Suspense, { fallback: /* @__PURE__ */ n("div", { className: "rqmii-avatar-overlay", children: F(t, "loading") }), children: /* @__PURE__ */ n(Pn, { autoConnect: !0, muted: !1 }) }),
3851
+ /* @__PURE__ */ n(I.Suspense, { fallback: /* @__PURE__ */ n("div", { className: "rqmii-avatar-overlay", children: F(t, "loading") }), children: /* @__PURE__ */ n(Cn, { autoConnect: !0, muted: !1 }) }),
3763
3852
  !r && /* @__PURE__ */ n("div", { className: "rqmii-avatar-overlay", children: F(t, "loading") }),
3764
3853
  s && /* @__PURE__ */ n("div", { className: "rqmii-avatar-overlay", children: F(t, "connectionFailed") }),
3765
3854
  /* @__PURE__ */ f("div", { className: "rqmii-avatar-controls", children: [
@@ -3771,12 +3860,12 @@ const Ln = I.memo(function({ agent: a, language: t, onRestore: i, onClose: r, is
3771
3860
  ] }),
3772
3861
  a.useText && /* @__PURE__ */ f("div", { className: "rqmii-avatar-sidebar", children: [
3773
3862
  /* @__PURE__ */ n(Ne, { messages: d, language: t }),
3774
- /* @__PURE__ */ n(ze, { language: t, onSend: l, variant: "compact" }),
3863
+ /* @__PURE__ */ n(Ee, { language: t, onSend: l, variant: "compact" }),
3775
3864
  /* @__PURE__ */ n(le, { language: t, agent: a })
3776
3865
  ] })
3777
3866
  ] });
3778
3867
  });
3779
- function jn({ language: e, config: a, onAccept: t, onDecline: i }) {
3868
+ function Dn({ language: e, config: a, onAccept: t, onDecline: i }) {
3780
3869
  const r = a?.title?.[e] || F(e, "consentTitle"), o = a?.body?.[e] || F(e, "consentBody"), s = a?.acceptLabel?.[e] || F(e, "consentAccept"), c = a?.declineLabel?.[e] || F(e, "consentDecline"), d = a?.termsUrl?.[e], l = a?.privacyUrl?.[e];
3781
3870
  return /* @__PURE__ */ f("div", { className: "rqmii-chat-panel rqmii-chat-panel--start", style: { justifyContent: "space-between" }, children: [
3782
3871
  /* @__PURE__ */ f("div", { style: { flex: 1, display: "flex", flexDirection: "column", justifyContent: "center", padding: "24px", gap: "16px" }, children: [
@@ -3820,10 +3909,10 @@ function jn({ language: e, config: a, onAccept: t, onDecline: i }) {
3820
3909
  ] })
3821
3910
  ] });
3822
3911
  }
3823
- function In(e) {
3912
+ function qn(e) {
3824
3913
  return e ? typeof e == "string" ? e : typeof e == "object" && typeof e.text == "string" ? e.text : "" : "";
3825
3914
  }
3826
- function Dn(e) {
3915
+ function Nn(e) {
3827
3916
  return e === "text" || e === "voice" || e === "text_and_voice";
3828
3917
  }
3829
3918
  const _e = I.memo(function({
@@ -3839,15 +3928,15 @@ const _e = I.memo(function({
3839
3928
  chatKind: m,
3840
3929
  sdk: u,
3841
3930
  renderPanel: h,
3842
- messagesRef: z,
3931
+ messagesRef: E,
3843
3932
  initialText: k,
3844
3933
  autoStartVoice: y
3845
3934
  }) {
3846
- const [E, T] = v(!1), g = m || ve(a), [b, p] = v(() => g === "voice" && u.isSessionReady || g === "voice" && !!y), [S, x] = v(() => (g === "text" || g === "text_and_voice") && u.isSessionReady || !!k || g === "text_and_voice" && !!y), [P, C] = v(!1), [A, w] = v(!1), [M, D] = v(null), Z = nn(g === "voice" && b || g === "text_and_voice" && S), q = on(), B = a.consent?.enabled && !E && !l, N = Dn(g), { events: U } = ue();
3935
+ const [z, T] = v(!1), g = m || ve(a), [b, p] = v(() => g === "voice" && u.isSessionReady || g === "voice" && !!y), [S, x] = v(() => (g === "text" || g === "text_and_voice") && u.isSessionReady || !!k || g === "text_and_voice" && !!y), [P, C] = v(!1), [L, w] = v(!1), [M, D] = v(null), $ = rn(g === "voice" && b || g === "text_and_voice" && S), q = sn(), B = a.consent?.enabled && !z && !l, N = Nn(g), { events: U } = ue();
3847
3936
  j(() => {
3848
3937
  if (!U) return;
3849
3938
  const O = () => {
3850
- N && tn() && C(!0);
3939
+ N && on() && C(!0);
3851
3940
  }, H = () => {
3852
3941
  N && C(!1);
3853
3942
  };
@@ -3855,7 +3944,7 @@ const _e = I.memo(function({
3855
3944
  U.off("minimize_chat", O), U.off("maximize_chat", H);
3856
3945
  };
3857
3946
  }, [U, N]);
3858
- const K = () => T(!0), $ = () => {
3947
+ const K = () => T(!0), Z = () => {
3859
3948
  s ? s() : o();
3860
3949
  }, ae = (O) => {
3861
3950
  r(O), l || u.changeSessionLanguage(O);
@@ -3867,22 +3956,22 @@ const _e = I.memo(function({
3867
3956
  u.sendTextMessage(O);
3868
3957
  }, [d, u]);
3869
3958
  j(() => {
3870
- z && (z.current = u.messages);
3959
+ E && (E.current = u.messages);
3871
3960
  });
3872
3961
  const Q = _(!1);
3873
3962
  j(() => {
3874
3963
  Q.current || (k ? (Q.current = !0, te(k)) : y && (Q.current = !0, D(null), w(!0), u.isVoiceActive || u.startVoice()));
3875
3964
  }, []), j(() => {
3876
- A && u.isSessionReady && (w(!1), g === "voice" ? p(!0) : x(!0));
3877
- }, [A, u.isSessionReady, g]), j(() => {
3878
- A && u.error && (w(!1), D(u.error));
3879
- }, [A, u.error]);
3965
+ L && u.isSessionReady && (w(!1), g === "voice" ? p(!0) : x(!0));
3966
+ }, [L, u.isSessionReady, g]), j(() => {
3967
+ L && u.error && (w(!1), D(u.error));
3968
+ }, [L, u.error]);
3880
3969
  const ie = re(() => {
3881
3970
  D(null), w(!0), u.isVoiceActive || u.startVoice();
3882
3971
  }, [u]);
3883
3972
  if (u.error && !l && (S || b)) return /* @__PURE__ */ n(la, { message: u.error, language: t, onClose: o });
3884
3973
  if (B)
3885
- return /* @__PURE__ */ n(jn, { language: t, config: a.consent, onAccept: K, onDecline: $ });
3974
+ return /* @__PURE__ */ n(Dn, { language: t, config: a.consent, onAccept: K, onDecline: Z });
3886
3975
  const R = {
3887
3976
  agent: a,
3888
3977
  language: t,
@@ -3898,30 +3987,30 @@ const _e = I.memo(function({
3898
3987
  voiceStarted: b,
3899
3988
  conversationStarted: S,
3900
3989
  isMinimized: P,
3901
- elapsed: Z,
3990
+ elapsed: $,
3902
3991
  setVoiceStarted: p,
3903
3992
  setConversationStarted: x
3904
3993
  };
3905
- return h ? /* @__PURE__ */ n(Ae, { children: h(R) }) : /* @__PURE__ */ n(qn, { ...R, connecting: A, connectError: M, visualViewportHeight: q, onCloseWidget: s ?? o, initiateVoice: ie, onSendSuggestion: (O) => {
3994
+ return h ? /* @__PURE__ */ n(Le, { children: h(R) }) : /* @__PURE__ */ n(_n, { ...R, connecting: L, connectError: M, visualViewportHeight: q, onCloseWidget: s ?? o, initiateVoice: ie, onSendSuggestion: (O) => {
3906
3995
  D(null), w(!0), u.sendSuggestion?.(O);
3907
3996
  } });
3908
- }), qn = I.memo(function({ agent: a, language: t, languages: i, chatKind: r, sdk: o, onLanguageChange: s, onClose: c, onMinimize: d, onRestore: l, onSend: m, voiceStarted: u, conversationStarted: h, isMinimized: z, elapsed: k, setVoiceStarted: y, setConversationStarted: E, visualViewportHeight: T, connecting: g = !1, connectError: b = null, onCloseWidget: p, initiateVoice: S, onSendSuggestion: x }) {
3909
- const P = a.widget?.behavior?.typing_indicator_enabled ?? !0, C = r === "text" ? o.waitingForResponse && P : !1, A = o.messages;
3997
+ }), _n = I.memo(function({ agent: a, language: t, languages: i, chatKind: r, sdk: o, onLanguageChange: s, onClose: c, onMinimize: d, onRestore: l, onSend: m, voiceStarted: u, conversationStarted: h, isMinimized: E, elapsed: k, setVoiceStarted: y, setConversationStarted: z, visualViewportHeight: T, connecting: g = !1, connectError: b = null, onCloseWidget: p, initiateVoice: S, onSendSuggestion: x }) {
3998
+ const P = a.widget?.behavior?.typing_indicator_enabled ?? !0, C = r === "text" ? o.waitingForResponse && P : !1, L = o.messages;
3910
3999
  if (r === "avatar") return /* @__PURE__ */ n(ua, { agent: a, language: t, onClose: c });
3911
- if (z)
3912
- return /* @__PURE__ */ n(Ln, { agent: a, language: t, onRestore: l, onClose: c, isListening: o.isVoiceActive, isAudioPlaying: o.isAudioPlaying, isSpeaking: o.vad.isSpeaking, onToggleVoice: o.toggleVoice, elapsed: k, visualViewportHeight: T, variant: r === "text" ? "text" : "voice" });
4000
+ if (E)
4001
+ return /* @__PURE__ */ n(jn, { agent: a, language: t, onRestore: l, onClose: c, isListening: o.isVoiceActive, isAudioPlaying: o.isAudioPlaying, isSpeaking: o.vad.isSpeaking, onToggleVoice: o.toggleVoice, elapsed: k, visualViewportHeight: T, variant: r === "text" ? "text" : "voice" });
3913
4002
  if (r === "voice" && u)
3914
- return /* @__PURE__ */ n(An, { agent: a, language: t, onEndSession: c, onMinimize: d, isListening: o.isVoiceActive, isLoading: o.vad.isLoading, isSpeaking: o.vad.isSpeaking, isAudioPlaying: o.isAudioPlaying, isAgentThinking: o.isAgentThinking, isAgentSpeaking: o.isAgentSpeaking, onToggleVoice: o.toggleVoice, elapsed: k, visualViewportHeight: T });
4003
+ return /* @__PURE__ */ n(Vn, { agent: a, language: t, onEndSession: c, onMinimize: d, isListening: o.isVoiceActive, isLoading: o.vad.isLoading, isSpeaking: o.vad.isSpeaking, isAudioPlaying: o.isAudioPlaying, isAgentThinking: o.isAgentThinking, isAgentSpeaking: o.isAgentSpeaking, onToggleVoice: o.toggleVoice, elapsed: k, visualViewportHeight: T });
3915
4004
  if (r === "voice")
3916
- return /* @__PURE__ */ n(Cn, { agent: a, language: t, languages: i, onLanguageChange: s, onClose: p, isAudioPlaying: o.isAudioPlaying, isVoiceSetupLoading: o.isVoiceSetupLoading || g, onStartVoice: S, visualViewportHeight: T });
4005
+ return /* @__PURE__ */ n(Ln, { agent: a, language: t, languages: i, onLanguageChange: s, onClose: p, isAudioPlaying: o.isAudioPlaying, isVoiceSetupLoading: o.isVoiceSetupLoading || g, onStartVoice: S, visualViewportHeight: T });
3917
4006
  if (!h && (o.messages.length === 0 || g)) {
3918
4007
  const w = a.conversation?.suggested_messages?.[t]?.filter((G) => G.trim()) || void 0, M = (G) => {
3919
4008
  o.sendSuggestion ? x(G) : m?.(G);
3920
4009
  }, D = r === "text_and_voice" || ve(a) === "text_and_voice";
3921
- return /* @__PURE__ */ n(Mn, { agent: a, language: t, languages: i, onLanguageChange: s, onClose: p, onSend: m, isVoiceEnabled: D, isAudioPlaying: o.isAudioPlaying, isVoiceSetupLoading: o.isVoiceSetupLoading || g, onStartVoice: S, visualViewportHeight: T, disabled: g, error: b || void 0, suggestions: w, onSuggestionClick: M, compact: !!w });
4010
+ return /* @__PURE__ */ n(wn, { agent: a, language: t, languages: i, onLanguageChange: s, onClose: p, onSend: m, isVoiceEnabled: D, isAudioPlaying: o.isAudioPlaying, isVoiceSetupLoading: o.isVoiceSetupLoading || g, onStartVoice: S, visualViewportHeight: T, disabled: g, error: b || void 0, suggestions: w, onSuggestionClick: M, compact: !!w });
3922
4011
  }
3923
- return /* @__PURE__ */ n(wn, { agent: a, language: t, onEndSession: c, messages: A, partialTranscript: In(o.partialTranscript), onSend: m, isAudioPlaying: o.isAudioPlaying, isVoiceEnabled: r === "text_and_voice", isListening: o.isVoiceActive, isSpeaking: o.vad.isSpeaking, isLoading: o.vad.isLoading, isAgentThinking: o.isAgentThinking, isAgentSpeaking: o.isAgentSpeaking, onToggleVoice: o.toggleVoice, onStartVoice: o.startVoice, onMinimize: d, elapsed: k, visualViewportHeight: T, waitingForResponse: C });
3924
- }), Nn = { isListening: !1, isLoading: !1, isSpeaking: !1, toggle: async () => !1 };
4012
+ return /* @__PURE__ */ n(An, { agent: a, language: t, onEndSession: c, messages: L, partialTranscript: qn(o.partialTranscript), onSend: m, isAudioPlaying: o.isAudioPlaying, isVoiceEnabled: r === "text_and_voice", isListening: o.isVoiceActive, isSpeaking: o.vad.isSpeaking, isLoading: o.vad.isLoading, isAgentThinking: o.isAgentThinking, isAgentSpeaking: o.isAgentSpeaking, onToggleVoice: o.toggleVoice, onStartVoice: o.startVoice, onMinimize: d, elapsed: k, visualViewportHeight: T, waitingForResponse: C });
4013
+ }), Rn = { isListening: !1, isLoading: !1, isSpeaking: !1, toggle: async () => !1 };
3925
4014
  function ma({ isSessionReady: e, sendTextMessage: a, messages: t }) {
3926
4015
  const [i, r] = v(null), [o, s] = v(null), c = re(() => {
3927
4016
  r((d) => (d && (e ? a(d) : s(d)), null));
@@ -3944,9 +4033,9 @@ function Re({ isSessionReady: e, signalClientReady: a }) {
3944
4033
  e ? (s.current = !0, a(d)) : (o(d), i(!0));
3945
4034
  }, [e, a]) };
3946
4035
  }
3947
- const _n = 300;
3948
- function Rn(e) {
3949
- const { isPreview: a = !1, ...t } = e, { messages: i, sendTextMessage: r, emitUserMessage: o, addLocalMessage: s, clearMessages: c } = de(), { changeSessionLanguage: d, clearSessionHistory: l, signalClientReady: m, error: u, isSessionReady: h, isAgentThinking: z, isAgentSpeaking: k } = ue(), y = _(!1), E = _(null), T = _(!1), [g, b] = v(!1), [p, S] = v(null), [x, P] = v(!1), C = _(i.length);
4036
+ const Bn = 300;
4037
+ function Gn(e) {
4038
+ const { isPreview: a = !1, ...t } = e, { messages: i, sendTextMessage: r, emitUserMessage: o, addLocalMessage: s, clearMessages: c } = de(), { changeSessionLanguage: d, clearSessionHistory: l, signalClientReady: m, error: u, isSessionReady: h, isAgentThinking: E, isAgentSpeaking: k } = ue(), y = _(!1), z = _(null), T = _(!1), [g, b] = v(!1), [p, S] = v(null), [x, P] = v(!1), C = _(i.length);
3950
4039
  j(() => {
3951
4040
  if (i.length > C.current) {
3952
4041
  const q = i[i.length - 1];
@@ -3957,17 +4046,17 @@ function Rn(e) {
3957
4046
  P(!1);
3958
4047
  }, [])), j(() => {
3959
4048
  if (!h || !g || T.current) return;
3960
- const q = E.current;
4049
+ const q = z.current;
3961
4050
  if (q === null) return;
3962
- T.current = !0, E.current = null, s("user", q), S(null);
4051
+ T.current = !0, z.current = null, s("user", q), S(null);
3963
4052
  const B = e.agent.welcomeMessages?.[e.language];
3964
4053
  m(B ? { welcomeMessage: B } : void 0);
3965
4054
  const N = setTimeout(() => {
3966
4055
  o(q), P(!0);
3967
- }, _n);
4056
+ }, Bn);
3968
4057
  return () => clearTimeout(N);
3969
4058
  }, [h, g, m, o, s]);
3970
- const A = ee(() => p ? [{ id: "first-user", role: "user", text: p }, ...i] : i, [p, i]), w = re(() => {
4059
+ const L = ee(() => p ? [{ id: "first-user", role: "user", text: p }, ...i] : i, [p, i]), w = re(() => {
3971
4060
  S(null), c();
3972
4061
  }, [c]), M = {
3973
4062
  emitClientReady: m,
@@ -3983,7 +4072,7 @@ function Rn(e) {
3983
4072
  isVoiceActive: !1,
3984
4073
  chatKind: "text"
3985
4074
  }, D = (q, B) => {
3986
- e.onSessionStart?.(), y.current ? (P(!0), B.sendMessage(q)) : (y.current = !0, S(q), E.current = q, b(!0), P(!0));
4075
+ e.onSessionStart?.(), y.current ? (P(!0), B.sendMessage(q)) : (y.current = !0, S(q), z.current = q, b(!0), P(!0));
3987
4076
  }, G = (q) => {
3988
4077
  e.onTextSend ? e.onTextSend(q, M) : D(q, M);
3989
4078
  };
@@ -3994,7 +4083,7 @@ function Rn(e) {
3994
4083
  isPreview: a,
3995
4084
  chatKind: "text",
3996
4085
  sdk: {
3997
- messages: A,
4086
+ messages: L,
3998
4087
  sendTextMessage: G,
3999
4088
  clearMessages: w,
4000
4089
  clearSessionHistory: l,
@@ -4002,12 +4091,12 @@ function Rn(e) {
4002
4091
  partialTranscript: null,
4003
4092
  changeSessionLanguage: d,
4004
4093
  error: u,
4005
- isAgentThinking: z,
4094
+ isAgentThinking: E,
4006
4095
  isAgentSpeaking: k,
4007
4096
  isVoiceSetupLoading: !1,
4008
4097
  isVoiceActive: !1,
4009
4098
  isSessionReady: h,
4010
- vad: Nn,
4099
+ vad: Rn,
4011
4100
  startVoice: ne,
4012
4101
  prepareVoice: ne,
4013
4102
  toggleVoice: ne,
@@ -4018,11 +4107,11 @@ function Rn(e) {
4018
4107
  }
4019
4108
  );
4020
4109
  }
4021
- function Bn(e) {
4022
- const { isPreview: a = !1, ...t } = e, { messages: i, sendTextMessage: r, clearMessages: o } = de(), { isAudioPlaying: s, partialTranscript: c } = ta(), { changeSessionLanguage: d, clearSessionHistory: l, signalClientReady: m, error: u, isSessionReady: h, isAgentThinking: z, isAgentSpeaking: k } = ue(), { setPendingWelcomeText: y, setPendingMessage: E } = ma({ isSessionReady: h, sendTextMessage: r, messages: i }), { emitClientReady: T } = Re({ isSessionReady: h, signalClientReady: m }), [g, b] = v(!1), p = na({
4110
+ function Un(e) {
4111
+ const { isPreview: a = !1, ...t } = e, { messages: i, sendTextMessage: r, clearMessages: o } = de(), { isAudioPlaying: s, partialTranscript: c } = ta(), { changeSessionLanguage: d, clearSessionHistory: l, signalClientReady: m, error: u, isSessionReady: h, isAgentThinking: E, isAgentSpeaking: k } = ue(), { setPendingWelcomeText: y, setPendingMessage: z } = ma({ isSessionReady: h, sendTextMessage: r, messages: i }), { emitClientReady: T } = Re({ isSessionReady: h, signalClientReady: m }), [g, b] = v(!1), p = na({
4023
4112
  enabled: !0,
4024
4113
  preloadStream: !1
4025
- }), { isLoading: S, isListening: x, toggle: P } = p, C = S, A = x || g;
4114
+ }), { isLoading: S, isListening: x, toggle: P } = p, C = S, L = x || g;
4026
4115
  j(() => {
4027
4116
  !g || !h || S || x || P();
4028
4117
  }, [g, h, S, x, P]);
@@ -4031,7 +4120,7 @@ function Bn(e) {
4031
4120
  }, M = {
4032
4121
  emitClientReady: T,
4033
4122
  sendMessage: (N) => {
4034
- h ? r(N) : E(N);
4123
+ h ? r(N) : z(N);
4035
4124
  },
4036
4125
  queueForWelcome: (N) => y(N),
4037
4126
  enableVoice: () => b(!0),
@@ -4041,7 +4130,7 @@ function Bn(e) {
4041
4130
  language: e.language,
4042
4131
  isSessionReady: h,
4043
4132
  supportsVoice: !0,
4044
- isVoiceActive: A,
4133
+ isVoiceActive: L,
4045
4134
  chatKind: "voice"
4046
4135
  }, D = (N) => {
4047
4136
  w(), N.enableVoice();
@@ -4066,10 +4155,10 @@ function Bn(e) {
4066
4155
  partialTranscript: c,
4067
4156
  changeSessionLanguage: d,
4068
4157
  error: u,
4069
- isAgentThinking: z,
4158
+ isAgentThinking: E,
4070
4159
  isAgentSpeaking: k,
4071
4160
  isVoiceSetupLoading: C,
4072
- isVoiceActive: A,
4161
+ isVoiceActive: L,
4073
4162
  isSessionReady: h,
4074
4163
  vad: p,
4075
4164
  startVoice: () => {
@@ -4085,13 +4174,13 @@ function Bn(e) {
4085
4174
  }
4086
4175
  );
4087
4176
  }
4088
- const Gn = 300;
4089
- function Un(e) {
4090
- const { isPreview: a = !1, ...t } = e, { messages: i, sendTextMessage: r, emitUserMessage: o, addLocalMessage: s, clearMessages: c } = de(), { isAudioPlaying: d, partialTranscript: l } = ta(), { changeSessionLanguage: m, clearSessionHistory: u, signalClientReady: h, error: z, isSessionReady: k, isAgentThinking: y, isAgentSpeaking: E } = ue(), { emitClientReady: T } = Re({ isSessionReady: k, signalClientReady: h }), [g, b] = v(!1), p = _(null), [S, x] = v(!1), P = _(null), [C, A] = v(!1), w = _(!1), M = _(!1), D = _(!1), [G, Z] = v(null), [q, B] = v(!1), N = _(i.length);
4177
+ const Kn = 300;
4178
+ function On(e) {
4179
+ const { isPreview: a = !1, ...t } = e, { messages: i, sendTextMessage: r, emitUserMessage: o, addLocalMessage: s, clearMessages: c } = de(), { isAudioPlaying: d, partialTranscript: l } = ta(), { changeSessionLanguage: m, clearSessionHistory: u, signalClientReady: h, error: E, isSessionReady: k, isAgentThinking: y, isAgentSpeaking: z } = ue(), { emitClientReady: T } = Re({ isSessionReady: k, signalClientReady: h }), [g, b] = v(!1), p = _(null), [S, x] = v(!1), P = _(null), [C, L] = v(!1), w = _(!1), M = _(!1), D = _(!1), [G, $] = v(null), [q, B] = v(!1), N = _(i.length);
4091
4180
  j(() => {
4092
4181
  if (i.length > N.current) {
4093
- const L = i[i.length - 1];
4094
- L.role === "assistant" && L.streaming && B(!1);
4182
+ const A = i[i.length - 1];
4183
+ A.role === "assistant" && A.streaming && B(!1);
4095
4184
  }
4096
4185
  N.current = i.length;
4097
4186
  }, [i]), aa("message_rate_limited", re(() => {
@@ -4100,68 +4189,68 @@ function Un(e) {
4100
4189
  const U = na({
4101
4190
  enabled: !0,
4102
4191
  preloadStream: !1
4103
- }), { isLoading: K, isListening: $, toggle: ae } = U, te = K, Q = $ || g;
4192
+ }), { isLoading: K, isListening: Z, toggle: ae } = U, te = K, Q = Z || g;
4104
4193
  j(() => {
4105
- !g || !k || K || $ || ae();
4106
- }, [g, k, K, $, ae]), j(() => {
4194
+ !g || !k || K || Z || ae();
4195
+ }, [g, k, K, Z, ae]), j(() => {
4107
4196
  if (!k || !S || D.current) return;
4108
- const L = p.current;
4109
- if (L === null) return;
4110
- D.current = !0, p.current = null, s("user", L), Z(null);
4197
+ const A = p.current;
4198
+ if (A === null) return;
4199
+ D.current = !0, p.current = null, s("user", A), $(null);
4111
4200
  const X = e.agent.welcomeMessages?.[e.language];
4112
4201
  h(X ? { welcomeMessage: X } : void 0);
4113
4202
  const Se = setTimeout(() => {
4114
- o(L), B(!0);
4115
- }, Gn);
4203
+ o(A), B(!0);
4204
+ }, Kn);
4116
4205
  return () => clearTimeout(Se);
4117
4206
  }, [k, S, h, o, s]), j(() => {
4118
4207
  if (!k || !C || w.current) return;
4119
- const L = P.current;
4120
- L !== null && (w.current = !0, P.current = null, s("user", L), o(L), B(!0), A(!1));
4208
+ const A = P.current;
4209
+ A !== null && (w.current = !0, P.current = null, s("user", A), o(A), B(!0), L(!1));
4121
4210
  }, [k, C, o, s]);
4122
4211
  const ie = ee(() => G ? [{ id: "first-user", role: "user", text: G }, ...i] : i, [G, i]), R = re(() => {
4123
- Z(null), M.current = !1, D.current = !1, c();
4212
+ $(null), M.current = !1, D.current = !1, c();
4124
4213
  }, [c]), O = () => {
4125
4214
  e.onSessionStart?.();
4126
4215
  }, H = {
4127
- emitClientReady: (L) => {
4128
- D.current = !0, M.current = !0, T(L);
4216
+ emitClientReady: (A) => {
4217
+ D.current = !0, M.current = !0, T(A);
4129
4218
  },
4130
- sendMessage: (L) => {
4131
- r(L);
4219
+ sendMessage: (A) => {
4220
+ r(A);
4132
4221
  },
4133
4222
  queueForWelcome: () => {
4134
4223
  },
4135
4224
  enableVoice: () => b(!0),
4136
4225
  disableVoice: () => {
4137
- b(!1), $ && ae();
4226
+ b(!1), Z && ae();
4138
4227
  },
4139
4228
  language: e.language,
4140
4229
  isSessionReady: k,
4141
4230
  supportsVoice: !0,
4142
4231
  isVoiceActive: Q,
4143
4232
  chatKind: "text_and_voice"
4144
- }, ce = (L, X) => {
4145
- O(), !M.current && !D.current ? (M.current = !0, e.onStartText?.(), Z(L), p.current = L, x(!0), B(!0)) : (M.current = !0, B(!0), X.sendMessage(L));
4146
- }, ke = (L) => {
4147
- O(), M.current = !0, D.current = !0, e.onStartVoice?.(), L.enableVoice();
4233
+ }, ce = (A, X) => {
4234
+ O(), !M.current && !D.current ? (M.current = !0, e.onStartText?.(), $(A), p.current = A, x(!0), B(!0)) : (M.current = !0, B(!0), X.sendMessage(A));
4235
+ }, ke = (A) => {
4236
+ O(), M.current = !0, D.current = !0, e.onStartVoice?.(), A.enableVoice();
4148
4237
  const X = e.agent.welcomeMessages?.[e.language];
4149
- L.emitClientReady(X ? { welcomeMessage: X } : void 0);
4150
- }, fe = (L) => {
4151
- L.isVoiceActive ? L.disableVoice() : L.enableVoice();
4152
- }, Ee = {
4238
+ A.emitClientReady(X ? { welcomeMessage: X } : void 0);
4239
+ }, fe = (A) => {
4240
+ A.isVoiceActive ? A.disableVoice() : A.enableVoice();
4241
+ }, ze = {
4153
4242
  messages: ie,
4154
- sendTextMessage: (L) => {
4155
- e.onTextSend ? e.onTextSend(L, H) : ce(L, H);
4243
+ sendTextMessage: (A) => {
4244
+ e.onTextSend ? e.onTextSend(A, H) : ce(A, H);
4156
4245
  },
4157
4246
  clearMessages: R,
4158
4247
  clearSessionHistory: u,
4159
4248
  isAudioPlaying: d,
4160
4249
  partialTranscript: l,
4161
4250
  changeSessionLanguage: m,
4162
- error: z,
4251
+ error: E,
4163
4252
  isAgentThinking: y,
4164
- isAgentSpeaking: E,
4253
+ isAgentSpeaking: z,
4165
4254
  isVoiceSetupLoading: te,
4166
4255
  isVoiceActive: Q,
4167
4256
  isSessionReady: k,
@@ -4176,8 +4265,8 @@ function Un(e) {
4176
4265
  },
4177
4266
  signalClientReady: h,
4178
4267
  waitingForResponse: q,
4179
- sendSuggestion: (L) => {
4180
- O(), M.current = !0, D.current = !0, e.onStartVoice?.(), b(!0), P.current = L, A(!0);
4268
+ sendSuggestion: (A) => {
4269
+ O(), M.current = !0, D.current = !0, e.onStartVoice?.(), b(!0), P.current = A, L(!0);
4181
4270
  }
4182
4271
  };
4183
4272
  return /* @__PURE__ */ n(
@@ -4186,15 +4275,15 @@ function Un(e) {
4186
4275
  ...t,
4187
4276
  isPreview: a,
4188
4277
  chatKind: e.textOnly ? "text" : "text_and_voice",
4189
- sdk: Ee
4278
+ sdk: ze
4190
4279
  }
4191
4280
  );
4192
4281
  }
4193
- function Kn(e) {
4194
- const { isPreview: a = !1, agent: t, language: i, languages: r, onLanguageChange: o, onEndSession: s, onMinimize: c, messages: d, onSendMessage: l } = e, m = s || c || ne, { messages: u, sendTextMessage: h, clearMessages: z } = de(), { changeSessionLanguage: k, clearSessionHistory: y, signalClientReady: E, error: T, isSessionReady: g, isAgentThinking: b, isAgentSpeaking: p } = ue();
4195
- return ma({ isSessionReady: g, sendTextMessage: h, messages: u }), Re({ isSessionReady: g, signalClientReady: E }), T && !a ? /* @__PURE__ */ n(la, { message: T, language: i, onClose: m }) : /* @__PURE__ */ n(ua, { agent: t, language: i, onClose: m });
4282
+ function Yn(e) {
4283
+ const { isPreview: a = !1, agent: t, language: i, languages: r, onLanguageChange: o, onEndSession: s, onMinimize: c, messages: d, onSendMessage: l } = e, m = s || c || ne, { messages: u, sendTextMessage: h, clearMessages: E } = de(), { changeSessionLanguage: k, clearSessionHistory: y, signalClientReady: z, error: T, isSessionReady: g, isAgentThinking: b, isAgentSpeaking: p } = ue();
4284
+ return ma({ isSessionReady: g, sendTextMessage: h, messages: u }), Re({ isSessionReady: g, signalClientReady: z }), T && !a ? /* @__PURE__ */ n(la, { message: T, language: i, onClose: m }) : /* @__PURE__ */ n(ua, { agent: t, language: i, onClose: m });
4196
4285
  }
4197
- function Jn({ agent: e, defaultOpen: a = !1, className: t = "", preview: i = !1, ChatBoxComponent: r }) {
4286
+ function ei({ agent: e, defaultOpen: a = !1, className: t = "", preview: i = !1, ChatBoxComponent: r }) {
4198
4287
  const [o, s] = I.useState(a), [c, d] = I.useState(e.defaultLanguage), l = ee(() => be(e.languages, e.defaultLanguage), [e.defaultLanguage, e.languages]);
4199
4288
  return I.useEffect(() => {
4200
4289
  d(e.defaultLanguage);
@@ -4203,33 +4292,33 @@ function Jn({ agent: e, defaultOpen: a = !1, className: t = "", preview: i = !1,
4203
4292
  o && /* @__PURE__ */ n(r, { agent: e, language: c, languages: l, onLanguageChange: d, onClose: () => s(!1), isPreview: i })
4204
4293
  ] });
4205
4294
  }
4206
- function On({ restUrl: e, identifier: a, fallbackAgent: t, withCredentials: i = !1, children: r, onError: o }) {
4295
+ function Qn({ restUrl: e, identifier: a, fallbackAgent: t, withCredentials: i = !1, children: r, onError: o }) {
4207
4296
  const [s, c] = v(() => t ? pe(t) : null), [d, l] = v(null);
4208
4297
  return j(() => {
4209
4298
  t && (c(pe(t)), l(null));
4210
4299
  }, [t]), j(() => {
4211
4300
  if (!a || t) return;
4212
4301
  const m = new AbortController();
4213
- return l(null), xt({ restUrl: e, identifier: a, withCredentials: i, signal: m.signal }).then(c).catch((u) => {
4302
+ return l(null), Mt({ restUrl: e, identifier: a, withCredentials: i, signal: m.signal }).then(c).catch((u) => {
4214
4303
  m.signal.aborted || (l(u), o?.(u));
4215
4304
  }), () => m.abort();
4216
- }, [t, a, o, e, i]), d ? /* @__PURE__ */ n("div", { className: "rqmii-chat-panel rqmii-chat-panel--error", children: d.message || "Could not load agent" }) : s ? /* @__PURE__ */ n(Ae, { children: r(s) }) : /* @__PURE__ */ n("div", { className: "rqmii-chat-panel rqmii-chat-panel--error", children: "Loading" });
4305
+ }, [t, a, o, e, i]), d ? /* @__PURE__ */ n("div", { className: "rqmii-chat-panel rqmii-chat-panel--error", children: d.message || "Could not load agent" }) : s ? /* @__PURE__ */ n(Le, { children: r(s) }) : /* @__PURE__ */ n("div", { className: "rqmii-chat-panel rqmii-chat-panel--error", children: "Loading" });
4217
4306
  }
4218
- function we({ agent: e, language: a, languages: t, onLanguageChange: i, onEndSession: r, onMinimize: o, onStartText: s, onStartVoice: c, textOnly: d, messages: l, onSendMessage: m, isPreview: u, onSessionStart: h, initialText: z, autoStartVoice: k }) {
4219
- const y = ve(e), E = { agent: e, language: a, languages: t, onLanguageChange: i, onEndSession: r, onMinimize: o, messages: l, onSendMessage: m, isPreview: u, onSessionStart: h, initialText: z, autoStartVoice: k };
4307
+ function we({ agent: e, language: a, languages: t, onLanguageChange: i, onEndSession: r, onMinimize: o, onStartText: s, onStartVoice: c, textOnly: d, messages: l, onSendMessage: m, isPreview: u, onSessionStart: h, initialText: E, autoStartVoice: k }) {
4308
+ const y = ve(e), z = { agent: e, language: a, languages: t, onLanguageChange: i, onEndSession: r, onMinimize: o, messages: l, onSendMessage: m, isPreview: u, onSessionStart: h, initialText: E, autoStartVoice: k };
4220
4309
  switch (y) {
4221
4310
  case "avatar":
4222
- return /* @__PURE__ */ n(Kn, { ...E });
4311
+ return /* @__PURE__ */ n(Yn, { ...z });
4223
4312
  case "voice":
4224
- return /* @__PURE__ */ n(Bn, { ...E });
4313
+ return /* @__PURE__ */ n(Un, { ...z });
4225
4314
  case "text_and_voice":
4226
- return /* @__PURE__ */ n(Un, { ...E, onStartText: s, onStartVoice: c, textOnly: d });
4315
+ return /* @__PURE__ */ n(On, { ...z, onStartText: s, onStartVoice: c, textOnly: d });
4227
4316
  case "text":
4228
4317
  default:
4229
- return /* @__PURE__ */ n(Rn, { ...E });
4318
+ return /* @__PURE__ */ n(Gn, { ...z });
4230
4319
  }
4231
4320
  }
4232
- function Yn({
4321
+ function Hn({
4233
4322
  agent: e,
4234
4323
  language: a,
4235
4324
  languages: t,
@@ -4244,21 +4333,21 @@ function Yn({
4244
4333
  onStartText: u,
4245
4334
  onStartVoice: h
4246
4335
  }) {
4247
- const { connectionState: z, isConnected: k, isSessionTerminated: y, creditExhausted: E, session: T, endSession: g, submitFeedback: b, interrupt: p } = ue(), { messages: S } = de(), x = _(!1), P = _(null), [C, A] = v(null), [w, M] = v(0), [D, G] = v(!1), [Z, q] = v(!1), [B, N] = v(!1);
4336
+ const { connectionState: E, isConnected: k, isSessionTerminated: y, creditExhausted: z, session: T, endSession: g, submitFeedback: b, interrupt: p } = ue(), { messages: S } = de(), x = _(!1), P = _(null), [C, L] = v(null), [w, M] = v(0), [D, G] = v(!1), [$, q] = v(!1), [B, N] = v(!1);
4248
4337
  j(() => {
4249
4338
  k && (x.current = !0);
4250
4339
  }, [k]), j(() => {
4251
4340
  if (C) return;
4252
4341
  let R = null;
4253
- y || z === "ended" ? R = P.current === "user" ? "user_ended" : "terminated" : z === "failed" ? E ? R = "credits_exhausted" : x.current ? R = "connection_lost" : R = "failed" : E && (R = "credits_exhausted"), R && A({
4342
+ y || E === "ended" ? R = P.current === "user" ? "user_ended" : "terminated" : E === "failed" ? z ? R = "credits_exhausted" : x.current ? R = "connection_lost" : R = "failed" : z && (R = "credits_exhausted"), R && L({
4254
4343
  sessionId: T.sessionId,
4255
4344
  endedBy: P.current ?? "agent",
4256
4345
  reason: R
4257
4346
  });
4258
- }, [y, z, E, T.sessionId, C]);
4347
+ }, [y, E, z, T.sessionId, C]);
4259
4348
  const U = () => {
4260
4349
  P.current = "user", p(), g();
4261
- }, K = C?.sessionId ?? null, $ = (R) => {
4350
+ }, K = C?.sessionId ?? null, Z = (R) => {
4262
4351
  D || (M(R), K && b({ sessionId: K, rating: R, endedBy: C?.endedBy }).catch(() => {
4263
4352
  }), B || (N(!0), q(!0)));
4264
4353
  }, ae = async (R) => {
@@ -4270,7 +4359,7 @@ function Yn({
4270
4359
  G(!0), q(!1);
4271
4360
  };
4272
4361
  if (!o)
4273
- return /* @__PURE__ */ n(sa, { agent: e, onClick: s, active: z === "connected" });
4362
+ return /* @__PURE__ */ n(sa, { agent: e, onClick: s, active: E === "connected" });
4274
4363
  const te = ve(e), Q = e.agentType === "cloud_avatar" || e.agentType === "desktop_avatar", ie = i === "text";
4275
4364
  return Q ? /* @__PURE__ */ n(
4276
4365
  we,
@@ -4286,8 +4375,8 @@ function Yn({
4286
4375
  onStartVoice: h,
4287
4376
  textOnly: ie
4288
4377
  }
4289
- ) : C ? Z && K ? /* @__PURE__ */ n(
4290
- xn,
4378
+ ) : C ? $ && K ? /* @__PURE__ */ n(
4379
+ Mn,
4291
4380
  {
4292
4381
  agent: e,
4293
4382
  language: a,
@@ -4297,7 +4386,7 @@ function Yn({
4297
4386
  onSubmit: ae
4298
4387
  }
4299
4388
  ) : /* @__PURE__ */ n(
4300
- Vn,
4389
+ In,
4301
4390
  {
4302
4391
  agent: e,
4303
4392
  language: a,
@@ -4313,7 +4402,7 @@ function Yn({
4313
4402
  sessionId: K,
4314
4403
  ratingInteractive: !D,
4315
4404
  showTellUsMore: B && !D,
4316
- onRate: $,
4405
+ onRate: Z,
4317
4406
  onTellUsMore: () => q(!0)
4318
4407
  }
4319
4408
  ) : /* @__PURE__ */ n(
@@ -4334,11 +4423,11 @@ function Yn({
4334
4423
  }
4335
4424
  );
4336
4425
  }
4337
- function Xn({ wsUrl: e, restUrl: a, apiKey: t, agentId: i, agent: r, language: o, defaultOpen: s = !1, open: c, className: d = "", pcmOptions: l, debug: m = !1, withCredentials: u = !1, onError: h, onInitialized: z, config: k, clientTools: y, onMinimize: E, onOpen: T }) {
4426
+ function ai({ wsUrl: e, restUrl: a, apiKey: t, agentId: i, agent: r, language: o, defaultOpen: s = !1, open: c, className: d = "", pcmOptions: l, debug: m = !1, withCredentials: u = !1, onError: h, onInitialized: E, config: k, clientTools: y, onMinimize: z, onOpen: T }) {
4338
4427
  if ([!!t, !!i].filter(Boolean).length > 1)
4339
4428
  throw new Error("RqmiiAgentChat: only one of apiKey, or agentId may be provided");
4340
- return /* @__PURE__ */ n(On, { restUrl: a, identifier: t || i, fallbackAgent: r, withCredentials: u, onError: h, children: (p) => /* @__PURE__ */ n(
4341
- Qn,
4429
+ return /* @__PURE__ */ n(Qn, { restUrl: a, identifier: t || i, fallbackAgent: r, withCredentials: u, onError: h, children: (p) => /* @__PURE__ */ n(
4430
+ Wn,
4342
4431
  {
4343
4432
  wsUrl: e,
4344
4433
  restUrl: a,
@@ -4353,17 +4442,17 @@ function Xn({ wsUrl: e, restUrl: a, apiKey: t, agentId: i, agent: r, language: o
4353
4442
  debug: m,
4354
4443
  withCredentials: u,
4355
4444
  onError: h,
4356
- onInitialized: z,
4445
+ onInitialized: E,
4357
4446
  config: k,
4358
4447
  clientTools: y,
4359
- onMinimize: E,
4448
+ onMinimize: z,
4360
4449
  onOpen: T
4361
4450
  }
4362
4451
  ) });
4363
4452
  }
4364
- function Qn({ wsUrl: e, restUrl: a, apiKey: t, agentId: i, agent: r, language: o, defaultOpen: s, open: c, className: d, pcmOptions: l, debug: m, withCredentials: u, onError: h, onInitialized: z, config: k, clientTools: y, onMinimize: E, onOpen: T }) {
4365
- const [g, b] = v(s), p = c !== void 0 ? c : g, [S, x] = v(!1), [P, C] = v(o || r.defaultLanguage), [A, w] = v("idle"), [M, D] = v(0), [G, Z] = v(null), [q, B] = v(!1), N = r.agentType === "cloud_avatar" || r.agentType === "desktop_avatar", U = N, K = r.widget?.behavior, $ = r.welcomeMessages?.[P] || "", ae = !p && !q && !U && !!K?.welcome_bubble_enabled && !!$.trim(), te = ee(() => be(r.languages, r.defaultLanguage), [r.defaultLanguage, r.languages]), Q = ee(() => A === "text" ? { ...k ?? {}, use_voice: !1, use_text: !0 } : k, [k, A]), ie = ee(
4366
- () => Pt(r, Q),
4453
+ function Wn({ wsUrl: e, restUrl: a, apiKey: t, agentId: i, agent: r, language: o, defaultOpen: s, open: c, className: d, pcmOptions: l, debug: m, withCredentials: u, onError: h, onInitialized: E, config: k, clientTools: y, onMinimize: z, onOpen: T }) {
4454
+ const [g, b] = v(s), p = c !== void 0 ? c : g, [S, x] = v(!1), [P, C] = v(o || r.defaultLanguage), [L, w] = v("idle"), [M, D] = v(0), [G, $] = v(null), [q, B] = v(!1), N = r.agentType === "cloud_avatar" || r.agentType === "desktop_avatar", U = N, K = r.widget?.behavior, Z = r.welcomeMessages?.[P] || "", ae = !p && !q && !U && !!K?.welcome_bubble_enabled && !!Z.trim(), te = ee(() => be(r.languages, r.defaultLanguage), [r.defaultLanguage, r.languages]), Q = ee(() => L === "text" ? { ...k ?? {}, use_voice: !1, use_text: !0 } : k, [k, L]), ie = ee(
4455
+ () => Ct(r, Q),
4367
4456
  [r, Q]
4368
4457
  ), R = !U && ie.useVoice, O = N ? p : S, H = ee(() => ({
4369
4458
  ...t ? { apiKey: t } : {},
@@ -4380,16 +4469,16 @@ function Qn({ wsUrl: e, restUrl: a, apiKey: t, agentId: i, agent: r, language: o
4380
4469
  w("idle"), h(he);
4381
4470
  } : (he) => {
4382
4471
  w("idle");
4383
- }, [h]), Ee = () => {
4472
+ }, [h]), ze = () => {
4384
4473
  w("text"), x(!0);
4385
- }, L = () => {
4474
+ }, A = () => {
4386
4475
  w("voice"), x(!0);
4387
4476
  }, X = () => {
4388
- c === void 0 && b(!1), E?.();
4477
+ c === void 0 && b(!1), z?.();
4389
4478
  }, Se = () => {
4390
4479
  c === void 0 && b(!0), B(!0), T?.();
4391
4480
  }, ha = (he, ga) => {
4392
- Z(he === "text" ? { mode: "text", text: ga ?? "" } : { mode: "voice" }), w(he), x(!0), D((pa) => pa + 1);
4481
+ $(he === "text" ? { mode: "text", text: ga ?? "" } : { mode: "voice" }), w(he), x(!0), D((pa) => pa + 1);
4393
4482
  };
4394
4483
  return /* @__PURE__ */ n(
4395
4484
  fa,
@@ -4403,13 +4492,13 @@ function Qn({ wsUrl: e, restUrl: a, apiKey: t, agentId: i, agent: r, language: o
4403
4492
  debug: m,
4404
4493
  withCredentials: u,
4405
4494
  onError: Ue,
4406
- onInitialized: z,
4495
+ onInitialized: E,
4407
4496
  clientTools: y,
4408
4497
  children: /* @__PURE__ */ f("div", { className: V("rqmii-chat-surface", r.widget?.appearance?.position === "left" && "rqmii-position-left", d), dir: "ltr", children: [
4409
4498
  ae && /* @__PURE__ */ n(
4410
- dn,
4499
+ mn,
4411
4500
  {
4412
- message: $,
4501
+ message: Z,
4413
4502
  delaySeconds: K?.welcome_bubble_delay_seconds ?? 3,
4414
4503
  soundEnabled: !!K?.welcome_bubble_sound_enabled,
4415
4504
  language: P,
@@ -4418,12 +4507,12 @@ function Qn({ wsUrl: e, restUrl: a, apiKey: t, agentId: i, agent: r, language: o
4418
4507
  }
4419
4508
  ),
4420
4509
  /* @__PURE__ */ n(
4421
- Yn,
4510
+ Hn,
4422
4511
  {
4423
4512
  agent: r,
4424
4513
  language: P,
4425
4514
  languages: te,
4426
- startMode: A,
4515
+ startMode: L,
4427
4516
  directive: G,
4428
4517
  open: p,
4429
4518
  onOpen: Se,
@@ -4431,8 +4520,8 @@ function Qn({ wsUrl: e, restUrl: a, apiKey: t, agentId: i, agent: r, language: o
4431
4520
  onMinimize: X,
4432
4521
  onStartNewSession: ha,
4433
4522
  onSessionStart: () => x(!0),
4434
- onStartText: Ee,
4435
- onStartVoice: L
4523
+ onStartText: ze,
4524
+ onStartVoice: A
4436
4525
  }
4437
4526
  )
4438
4527
  ] })
@@ -4440,7 +4529,7 @@ function Qn({ wsUrl: e, restUrl: a, apiKey: t, agentId: i, agent: r, language: o
4440
4529
  M
4441
4530
  );
4442
4531
  }
4443
- function ei({ agent: e, language: a, open: t = !0, className: i = "", messages: r, onSendMessage: o, onClose: s }) {
4532
+ function ti({ agent: e, language: a, open: t = !0, className: i = "", messages: r, onSendMessage: o, onClose: s }) {
4444
4533
  const c = ee(() => pe(e), [e]), [d, l] = v(t), [m, u] = v(a || c.defaultLanguage), h = ee(() => be(c.languages, c.defaultLanguage), [c.defaultLanguage, c.languages]);
4445
4534
  return j(() => {
4446
4535
  a && u(a);
@@ -4466,29 +4555,29 @@ function ei({ agent: e, language: a, open: t = !0, className: i = "", messages:
4466
4555
  ) : null }) });
4467
4556
  }
4468
4557
  export {
4469
- jn as ConsentDialog,
4470
- Vn as EndedChatPanel,
4471
- ni as EpicPixelStreamingPlayer,
4472
- xn as FeedbackPanel,
4473
- $e as RQMII_BUILTIN_FACES,
4558
+ Dn as ConsentDialog,
4559
+ In as EndedChatPanel,
4560
+ oi as EpicPixelStreamingPlayer,
4561
+ Mn as FeedbackPanel,
4562
+ Ze as RQMII_BUILTIN_FACES,
4474
4563
  Me as RQMII_CHAT_LANGUAGES,
4475
4564
  Qe as RQMII_CHAT_LANGUAGE_VALUES,
4476
- Sn as RatingBar,
4565
+ Pn as RatingBar,
4477
4566
  J as RqmiiAgentAvatar,
4478
- Xn as RqmiiAgentChat,
4479
- ei as RqmiiAgentChatPreview,
4567
+ ai as RqmiiAgentChat,
4568
+ ti as RqmiiAgentChatPreview,
4480
4569
  fa as RqmiiAgentRoom,
4481
- Kn as RqmiiAvatarChatBox,
4570
+ Yn as RqmiiAvatarChatBox,
4482
4571
  le as RqmiiChatFooter,
4483
4572
  sa as RqmiiChatOpenButton,
4484
- Jn as RqmiiChatSurface,
4485
- ii as RqmiiCloudAvatarPlayer,
4486
- Un as RqmiiTextAndVoiceChatBox,
4487
- Rn as RqmiiTextChatBox,
4488
- Bn as RqmiiVoiceChatBox,
4489
- $n as fetchAgentConfig,
4490
- xt as fetchAgentCustomization,
4491
- en as getBuiltinFace,
4573
+ ei as RqmiiChatSurface,
4574
+ ri as RqmiiCloudAvatarPlayer,
4575
+ On as RqmiiTextAndVoiceChatBox,
4576
+ Gn as RqmiiTextChatBox,
4577
+ Un as RqmiiVoiceChatBox,
4578
+ Xn as fetchAgentConfig,
4579
+ Mt as fetchAgentCustomization,
4580
+ tn as getBuiltinFace,
4492
4581
  He as getChatLanguage,
4493
4582
  F as getChatText,
4494
4583
  be as normalizeChatLanguages,