@wexio/messenger-widget-react 1.4.0 → 1.5.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/CHANGELOG.md +127 -0
- package/README.md +2 -1
- package/dist/widget-react-3V_rXy9h2.js +2 -0
- package/dist/widget-react-3f61yzjR2.js +2 -0
- package/dist/widget-react-B-ZYj6cV2.js +2 -0
- package/dist/widget-react-B4Cru-SF.js +2 -0
- package/dist/widget-react-B5AYwhao.js +2 -0
- package/dist/widget-react-B6YWdHd3.js +2 -0
- package/dist/widget-react-BOjoaxsM2.js +2 -0
- package/dist/widget-react-BPFWT7Xe2.js +4 -0
- package/dist/widget-react-BSvxi-Z42.js +2 -0
- package/dist/widget-react-BbznnvpE2.js +2 -0
- package/dist/widget-react-Bebf7ovl.js +140 -0
- package/dist/widget-react-BrRmLgRl.js +163 -0
- package/dist/widget-react-BwK-nNjy2.js +2 -0
- package/dist/widget-react-BxEMz2N0.js +2 -0
- package/dist/widget-react-BzFUXA092.js +2 -0
- package/dist/widget-react-C-hnCqBf.js +2 -0
- package/dist/widget-react-C40Ha_9C.js +2 -0
- package/dist/widget-react-C7KHTFEo.js +2 -0
- package/dist/widget-react-CAfHMzrc2.js +2 -0
- package/dist/widget-react-CLJmIz_q.js +2 -0
- package/dist/widget-react-CLLhrdTm.js +2 -0
- package/dist/widget-react-CO7DyU51.js +201 -0
- package/dist/widget-react-CZoYXyup.js +2 -0
- package/dist/widget-react-C_NCNYY02.js +7 -0
- package/dist/widget-react-CnP2-ZB-.js +285 -0
- package/dist/widget-react-CuUeo68W.js +2 -0
- package/dist/widget-react-D2sqPDts.js +2 -0
- package/dist/widget-react-D5n4whHu2.js +2 -0
- package/dist/widget-react-D8W_ZdMH.js +2 -0
- package/dist/widget-react-DA0S6cIc.js +2 -0
- package/dist/widget-react-DE0LS-6-.js +2 -0
- package/dist/widget-react-DGh__emN.js +2 -0
- package/dist/widget-react-DIFOZ3QT.js +2 -0
- package/dist/widget-react-DJczk-Ax.js +2 -0
- package/dist/widget-react-DQJxxVB92.js +2 -0
- package/dist/widget-react-DS_ZoY1F.js +2 -0
- package/dist/widget-react-DUnaBOfT.js +10 -0
- package/dist/widget-react-DhLRmjli.js +2 -0
- package/dist/widget-react-Dl2PevZk.js +2 -0
- package/dist/widget-react-DmRVdLdI.js +2 -0
- package/dist/widget-react-DouawI6y.js +2 -0
- package/dist/widget-react-DozV7eMU2.js +2 -0
- package/dist/widget-react-Dpkdglv0.js +2 -0
- package/dist/widget-react-Dry9kqXE2.js +2 -0
- package/dist/widget-react-FX5W7RyV.js +4 -0
- package/dist/widget-react-G9X1DcTe.js +2 -0
- package/dist/widget-react-KAEA8ONo.js +2 -0
- package/dist/widget-react-Ov6re_Q9.js +2 -0
- package/dist/widget-react-XV6SIcqN2.js +2 -0
- package/dist/widget-react-XZ_nYDTj.js +2 -0
- package/dist/widget-react-oNTR-eNh.js +2 -0
- package/dist/widget-react-txPtcpni.js +2 -0
- package/dist/widget-react-zZBDvBBt2.js +2 -0
- package/dist/widget-react.js +50 -36283
- package/dist/widget-react.licenses.txt +3604 -0
- package/package.json +1 -1
- package/dist/widget-react--IUy5lNt.js +0 -510
- package/dist/widget-react-B7es3n1-.js +0 -32
- package/dist/widget-react-BAUpSGhZ.js +0 -1345
- package/dist/widget-react-BS9kUSRS.js +0 -255
- package/dist/widget-react-BT30ojz0.js +0 -371
- package/dist/widget-react-BXf2Ty8d.js +0 -364
- package/dist/widget-react-BgALABDe.js +0 -39
- package/dist/widget-react-BgunakAG.js +0 -566
- package/dist/widget-react-BkXA6ytR.js +0 -23856
- package/dist/widget-react-Bvtklo8g.js +0 -356
- package/dist/widget-react-BxEjM2it.js +0 -118
- package/dist/widget-react-CN_FIvMD.js +0 -834
- package/dist/widget-react-CTdz_dwX.js +0 -306
- package/dist/widget-react-Ck8JAYqT.js +0 -22122
- package/dist/widget-react-CyAVDflZ.js +0 -273
- package/dist/widget-react-DSAyUf2U.js +0 -229
- package/dist/widget-react-DbOJZl9F.js +0 -4932
- package/dist/widget-react-DgIxSjv7.js +0 -25
- package/dist/widget-react-Ds5J9FbQ.js +0 -27
- package/dist/widget-react-SI7deQTE.js +0 -35
- package/dist/widget-react-krPPnv02.js +0 -4438
- package/dist/widget-react-wSc9gIfG.js +0 -198
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
globalThis.process===void 0&&(globalThis.process={env:{},nextTick:function(e){setTimeout(e,0)},emit:function(){return!1}});import"react";import"react-dom";import"react/jsx-runtime";import"react-dom/client";var e={tabs:{home:`Domů`,messages:`Zprávy`,help:`Nápověda`,news:`Novinky`,profile:`Profil`},header:{close:`Zavřít`,back:`Zpět`,conversationSubtitle:`Pomůže vám i náš tým`,helpTitle:`Nápověda`,newsTitle:`Novinky`,expand:`Rozbalit widget`,collapse:`Sbalit widget`,messagesTitle:`Zprávy`,downloadTranscript:`Download transcript`,moreActions:`More`},launcher:{open:`Otevřít chat`,close:`Zavřít chat`,panel:`Chat`},tabError:{title:`Něco se pokazilo`,hint:`Tuto sekci se nepodařilo zobrazit.`,retry:`Zkusit znovu`},chunkError:{failed:`Couldn't load`,retry:`Retry`},home:{greetingHeadline:`Ahoj 👋`,greetingSubheadline:`Jak vám můžeme pomoci?`,askTitle:`Položit otázku`,askSubtitle:`Pomůže náš bot i tým`,recentMessageLabel:`Poslední zpráva`,recentMessageTitle:`Poslední zpráva`,recentMessageFromFallback:`Gaia`,recentMessageAgo:`4 h`,recentMessageSample:`Ahoj 👋 Děkujeme za zprávu - brzy se vám ozveme.`,featuredArticleLoading:`Doporučený článek`,featuredArticleTap:`Klepnutím otevřete`,featuredArticleEmpty:`Vyberte článek`,featuredArticleSetUp:`Nakonfigurujte tento blok v panelu`,featuredArticleDemoEyebrow:`Pioneer · Rezervujte si datum`,featuredArticleDemoHeadline:`8. října 2026`,featuredArticleDemoSubline:`San Francisco · Osobně + online`,featuredArticleDemoCta:`Zobrazit program`,seeAgenda:`Zobrazit program`,browseHelp:`Procházet nápovědu`,whatsNew:`Co je nového`,searchPlaceholder:`Hledat v nápovědě`,pinnedArticlesTitle:`Začněte tímto`,popularArticlesTitle:`Populární články`,pinnedArticleRow:`Připnutý článek {n}`,newsPreviewTitle:`Nejnovější novinky`,seeAll:`See all`,newsPreviewRow:`Aktualizace {n}`,myConversationsTitle:`Vaše konverzace`,myConversationsEmpty:`Zobrazit vaše konverzace`,teamStatusOnline:`Jsme online`,teamStatusReplyInstant:`Usually replies instantly`,teamStatusReplyMinutes:`Usually replies in a few minutes`,teamStatusReplyHours:`Usually replies within a few hours`,teamStatusReplyDay:`Usually replies within a day`,teamStatusAiOnline:`{name} can help right now`,teamStatusOperatorsBack:`Operators back {when}`,teamStatusOfflineUntil:`We're away, back {when}`,teamStatusOfflineSoon:`We're away, back soon`,recentMessageAttachment:`Attachment`},messages:{today:`Dnes`,yesterday:`Včera`,unreadMessages:`Nepřečtené zprávy`,emptyTitle:`Zatím žádné zprávy`,emptyBody:`Začněte konverzaci a náš tým vám odpoví zde.`,sendCta:`Poslat zprávu`,attach:`Připojit soubor`,commands:`Rychlé příkazy`,record:`Nahrát hlasovou zprávu`,stopRecording:`Zastavit nahrávání`,recording:`Nahrávám…`,uploading:`Nahrávám…`,uploadFailed:`Nahrávání selhalo`,voiceDenied:`Přístup k mikrofonu byl odepřen`,voiceUnsupported:`Tento prohlížeč nepodporuje nahrávání hlasu`,fileTooLarge:`Soubor je příliš velký (max. 10 MB)`,fileMimeNotAllowed:`Tento typ souboru není podporován`,emoji:`Vložit emoji`,cancelRecording:`Zrušit nahrávání`,pauseRecording:`Pozastavit nahrávání`,resumeRecording:`Pokračovat v nahrávání`,playPreview:`Přehrát nahrávku`,emojiPicker:`Výběr emoji`,emojiSearch:`Hledat…`,playAudio:`Přehrát`,pauseAudio:`Pauza`,openAudio:`Otevřít zvuk`,removeAttachment:`Odebrat`,aiAssistant:`AI asistent`,operator:`Operátor`,openImage:`Otevřít obrázek`,openPreview:`Otevřít náhled`,play:`Přehrát`,pause:`Pauza`,typing:`píše…`,aiThinking:`přemýšlí…`,aiSearching:`prohledává…`,typingSomeone:`Někdo`,signInToChat:`Přihlaste se prosím, abyste mohli začít konverzaci.`,signInUnavailable:`Přihlášení není momentálně dostupné.`,googleSignIn:`Přihlásit se přes Google`,googleUnavailable:`Google sign-in isn't available. Check your connection or ad blocker and try again.`,passkeySignIn:`Přihlásit se pomocí passkey`,passkeyRegister:`Poprvé? Nastavte passkey`,passkeyError:`Přihlášení se nezdařilo. Zkuste to znovu.`,passkeyNoCredential:`Na tomto zařízení zatím není žádný passkey — klepnutím na „Nastavte passkey“ ho vytvoříte.`,googleSignInDemo:`Pokračovat s Google`,connectingOperator:`Byl přiřazen operátor, počkejte prosím…`,assignment:{eta:{minutes:`Operátor odpoví přibližně za {minutes} min`,soft:`Obvykle odpovídáme do několika minut`,businessHours:`Tým se vrátí v {time}`}},withOperator:`Nyní si píšete s {name}`,operatorConnected:`Operátor připojen`,chatResolved:`Konverzace vyřešena`,chatResolvedByYou:`Konverzaci jste vyřešili vy`,chatResolvedByOperator:`Konverzaci vyřešil {name}`,resolveConversation:`Vyřešit konverzaci`,sources:`Zdroje`,moreSources:`+{count} další`,askQuestion:`Ask a question`,previewYou:`You: {text}`,threadsEmptyTitle:`No conversations yet`,threadsEmptyBody:`Start a conversation and it will show up here.`,format:{bold:`Bold`,italic:`Italic`,underline:`Underline`,strikethrough:`Strikethrough`,bulletList:`Bulleted list`,numberedList:`Numbered list`,link:`Link`,linkPlaceholder:`https://…`,linkSave:`Save`,linkCancel:`Cancel`,monospace:`Monospace`},queued:`Waiting for connection`,notDelivered:`Not delivered`,retry:`Retry`,offlineBanner:`You're offline`,backOnline:`Back online`,threadsErrorTitle:`Could not load your conversations`,threadsErrorBody:`Check your connection and try again.`,giphy:{title:`GIFs & Stickers`,searchPlaceholder:`Search GIPHY`,clear:`Clear`,tabGifs:`GIFs`,tabStickers:`Stickers`,error:`Couldn't load`,retry:`Retry`,empty:`No results`,poweredBy:`Powered by GIPHY`},scrollToLatest:`Scroll to latest`,conversationClosed:`This conversation is closed`,startNewConversation:`Start a new conversation`,conversationBlocked:`This conversation is blocked`,visitorBlocked:`You can no longer send messages`,conversationClosedTitle:`That's a wrap 👋`,conversationClosedHint:`This conversation is closed. Start a new one whenever you like.`},prechat:{title:`Než začneme`,subtitle:`Pár údajů, aby vám náš tým mohl pomoci rychleji.`,labelName:`Jméno`,labelEmail:`E-mail`,labelPhone:`Telefon`,labelCustom:`Podrobnosti`,required:`Povinné`,invalidEmail:`Zadejte platnou e-mailovou adresu`,invalidPhone:`Zadejte platné telefonní číslo`,submit:`Pokračovat`,submitFailed:`Odeslání se nezdařilo - zkuste to znovu.`},help:{searchPlaceholder:`Hledat v nápovědě`,emptyTitle:`Zatím žádné články`,emptyBody:`Váš operátor zatím nic nezveřejnil.`,back:`Zpět`,helpful:`Bylo to užitečné?`,yes:`Ano`,no:`Ne`,thanks:`Děkujeme za zpětnou vazbu.`,unresolvedCta:`Potřebujete další pomoc? Napište nám`,noResults:`Žádné výsledky`,articleNotFound:`Článek nebyl nalezen`,articleNotTranslated:`Tento článek zatím není dostupný ve vašem jazyce.`,writtenBy:`Autor: {names}`,relatedTitle:`Související články`,collectionsCount:`{count, plural, =0 {Žádné kolekce} one {# kolekce} few {# kolekce} many {# kolekce} other {# kolekcí}}`,articlesCount:`{count, plural, =0 {Žádné články} one {Články: #} few {Články: #} many {Články: #} other {Články: #}}`,authorsByline:`Autoři {first}{remaining, plural, =0 {} one { a # další} few { a # další} many { a # dalších} other { a # dalších}}`},news:{emptyTitle:`Zatím žádné novinky`,emptyBody:`Vracejte se sem pro novinky o produktu a oznámení.`,helpful:`Byl tento článek užitečný?`,yes:`Ano`,no:`Ne`,thanks:`Děkujeme za zpětnou vazbu.`,searchPlaceholder:`Hledat v novinkách`,noResults:`Žádné odpovídající příspěvky`,editedAt:`upraveno {when}`,articleNotFound:`Článek nebyl nalezen.`,articleNotTranslated:`Tento příspěvek zatím není dostupný ve vašem jazyce.`,readOriginal:`Přečíst originál`,relatedTitle:`Související`,writtenBy:`Autor: {names}`,unread:`Nepřečtené novinky`},reactions:{ariaLabel:`Reakce`,tapAria:`Reagovat: {emoji}`},languageSelector:{title:`Číst v jiném jazyce`,ariaLabel:`Jazyky článku`},branding:{poweredBy:`Pohání`,wexio:`Wexio`},sound:{mute:`Vypnout zvuky oznámení`,unmute:`Zapnout zvuky oznámení`},article:{tableOfContents:`Obsah`,tabFallback:`Karta {n}`},peek:{newMessage:`Nová zpráva`,dismiss:`Zavřít`,aiAssistant:`AI asistent`,operator:`Operátor`},lightbox:{mediaPreview:`Náhled média`,close:`Zavřít náhled`,previous:`Předchozí`,next:`Další`},authError:{turnstileTitle:`Nepodařilo se ověřit prohlížeč`,turnstileBody:`Nepodařilo se dokončit bezpečnostní kontrolu. Někdy je důvodem síť nebo blokátor reklam — zkuste to znovu nebo načtěte stránku.`,genericTitle:`Nepodařilo se připojit`,genericBody:`Při přihlašování se něco pokazilo. Zkuste to za chvíli znovu.`,retry:`Zkusit znovu`,dismiss:`Zavřít`},profile:{title:`Váš profil`,subtitle:`Aktualizujte své údaje a chování widgetu.`,uploadAvatar:`Změnit fotku`,removeAvatar:`Odebrat fotku`,avatarUploading:`Nahrávám…`,preferencesHeading:`Předvolby`,preferenceLanguage:`Jazyk`,preferenceDesktopNotifications:`Oznámení na ploše`,preferenceDesktopNotificationsHint:`Získejte systémové oznámení, když widget není aktivní.`,preferenceThemeMode:`Motiv`,themeAuto:`Podle systému`,themeLight:`Světlý`,themeDark:`Tmavý`,themeLocked:`Motiv nastavil operátor.`,pinnedHint:`Nastavil operátor — nelze upravovat.`,requiredHint:`Povinné`,invalidEmail:`Zadejte platnou e-mailovou adresu.`,invalidPhone:`Použijte mezinárodní formát, např. +14155552671.`,noFields:`Zatím tu není nic k úpravě.`,save:`Uložit změny`,saving:`Ukládám…`,cancel:`Zahodit`,saved:`Změny uloženy.`,loading:`Načítání profilu…`,loadError:`Nepodařilo se načíst profil. Zkuste to znovu.`,retry:`Opakovat`,errorFieldNotAllowed:`Toto pole nelze v tomto widgetu upravovat. Zkuste obnovit stránku.`,errorFieldPinned:`Toto pole je uzamčeno vaším účtem.`,errorFieldInvalid:`Některé hodnoty nejsou platné. Zkontrolujte zvýrazněná pole.`,errorThemeLocked:`Motiv uzamkl operátor.`,errorFeatureDisabled:`Úpravy profilu vypnul operátor.`,errorGeneric:`Nepodařilo se uložit změny. Zkuste to znovu.`,notificationsBlocked:`Oznámení jsou zablokována prohlížečem. Aktualizujte oprávnění webu, abyste je povolili.`,notificationsRequest:`Když se objeví výzva, povolte oznámení, abyste tuto funkci aktivovali.`,systemFields:{avatar:`Fotka`,wexioId:`Wexio ID`,telegramId:`Telegram ID`,whatsappId:`WhatsApp ID`,viberId:`Viber ID`,instagramId:`Instagram ID`,optInWhatsapp:`Souhlas s WhatsApp`,webVerified:`Ověřený návštěvník`,firstName:`Jméno`,lastName:`Příjmení`,username:`Uživatelské jméno`,language:`Jazyk`,email:`E-mail`,phone:`Telefon`,company:`Společnost`,location:`Lokalita`,isValid:`Platný účet`,chatStatus:`Stav chatu`,chatCategory:`Kategorie chatu`,priority:`Priorita`,leadSource:`Zdroj leadu`,leadStatus:`Stav leadu`,interestLevel:`Úroveň zájmu`,productInterest:`Zájem o produkt`,budgetRange:`Rozpočet`,purchaseTimeline:`Časový plán nákupu`,lastMessageSentAt:`Naposledy odesláno`,lastMessageReceivedAt:`Naposledy přijato`,lastSeenAt:`Naposledy viděn`,firstMessageReceivedAt:`První kontakt`,isBlocked:`Zablokovaný`,registrationDate:`Registrace`,aiAvailable:`Pomoc AI`,totalMessagesSent:`Odeslané zprávy`,totalMessagesReceived:`Přijaté zprávy`,totalAiMessagesSent:`Odeslané AI zprávy`,totalBotMessagesSent:`Odeslané bot zprávy`,totalUserMessagesSent:`Odeslané zprávy operátora`,flowCompletionRate:`Úspěšnost dokončení flow`,lastFlowCompleted:`Poslední dokončený flow`,totalFlowsStarted:`Spuštěné flow`,totalFlowsCompleted:`Dokončené flow`},systemFieldOptions:{chatStatus:{ISSUE:`Problém`,RESOLVED:`Vyřešeno`,PENDING:`Čeká`,IN_PROGRESS:`Probíhá`,CLOSED:`Uzavřeno`},chatCategory:{SALES:`Prodej`,SUPPORT:`Podpora`,BILLING:`Fakturace`,FEEDBACK:`Zpětná vazba`,GENERAL:`Obecné`,OTHER:`Jiné`},priority:{LOW:`Nízká`,MEDIUM:`Střední`,HIGH:`Vysoká`,URGENT:`Naléhavá`},leadStatus:{NEW:`Nový`,CONTACTED:`Kontaktován`,QUALIFIED:`Kvalifikovaný`,NEGOTIATING:`Jednání`,WON:`Získaný`,LOST:`Ztracený`},interestLevel:{LOW:`Nízká`,MEDIUM:`Střední`,HIGH:`Vysoká`,VERY_HIGH:`Velmi vysoká`}}},transcript:{title:`Conversation with {org}`,started:`Started on {when}`,exported:`Exported from {org} on {when}`,truncated:`Note: only the most recent messages are included.`,operator:`Operator`,you:`You`}};export{e as default};
|
|
2
|
+
//# sourceMappingURL=widget-react-CuUeo68W.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
globalThis.process===void 0&&(globalThis.process={env:{},nextTick:function(e){setTimeout(e,0)},emit:function(){return!1}});import"react";import"react-dom";import"react/jsx-runtime";import"react-dom/client";import{t as e}from"./widget-react-FX5W7RyV.js";var t=e(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),n=30;function r(e){if(!e||typeof requestAnimationFrame>`u`)return;let t=0,r=()=>{if(!e.isConnected||++t>n)return;let i=e.getRootNode().activeElement;if(!i||i===document.body)e.focus({preventScroll:!0});else if(i!==e&&!i.closest(`[role="dialog"]`))return;requestAnimationFrame(r)};requestAnimationFrame(r)}export{t as n,r as t};
|
|
2
|
+
//# sourceMappingURL=widget-react-D2sqPDts.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
globalThis.process===void 0&&(globalThis.process={env:{},nextTick:function(e){setTimeout(e,0)},emit:function(){return!1}});import"react";import"react-dom";import"react/jsx-runtime";import"react-dom/client";var e={tabs:{home:`首页`,messages:`消息`,help:`帮助`,news:`动态`,profile:`个人资料`},header:{close:`关闭`,back:`返回`,conversationSubtitle:`我们的团队也可以提供帮助`,helpTitle:`帮助`,newsTitle:`动态`,expand:`展开小部件`,collapse:`收起小部件`,messagesTitle:`消息`,downloadTranscript:`Download transcript`,moreActions:`More`},launcher:{open:`打开聊天`,close:`关闭聊天`,panel:`聊天`},tabError:{title:`出了点问题`,hint:`无法显示此部分。`,retry:`重试`},chunkError:{failed:`Couldn't load`,retry:`Retry`},home:{greetingHeadline:`你好 👋`,greetingSubheadline:`有什么可以帮您?`,askTitle:`提问`,askSubtitle:`我们的机器人和团队可以提供帮助`,recentMessageLabel:`最近消息`,recentMessageTitle:`最近消息`,recentMessageFromFallback:`Gaia`,recentMessageAgo:`4 小时前`,recentMessageSample:`你好 👋 感谢您的咨询 - 我们将很快回复您。`,featuredArticleLoading:`推荐文章`,featuredArticleTap:`点击阅读`,featuredArticleEmpty:`选择一篇文章`,featuredArticleSetUp:`在控制台中配置此模块`,featuredArticleDemoEyebrow:`Pioneer · 敬请期待`,featuredArticleDemoHeadline:`2026 年 10 月 8 日`,featuredArticleDemoSubline:`旧金山 · 现场 + 线上`,featuredArticleDemoCta:`查看发布日程`,seeAgenda:`查看发布日程`,browseHelp:`浏览帮助`,whatsNew:`新动态`,searchPlaceholder:`搜索帮助`,pinnedArticlesTitle:`请先阅读`,popularArticlesTitle:`热门文章`,pinnedArticleRow:`置顶文章 {n}`,newsPreviewTitle:`最新动态`,seeAll:`See all`,newsPreviewRow:`动态更新 {n}`,myConversationsTitle:`您的对话`,myConversationsEmpty:`查看您的对话`,teamStatusOnline:`我们在线`,teamStatusReplyInstant:`Usually replies instantly`,teamStatusReplyMinutes:`Usually replies in a few minutes`,teamStatusReplyHours:`Usually replies within a few hours`,teamStatusReplyDay:`Usually replies within a day`,teamStatusAiOnline:`{name} can help right now`,teamStatusOperatorsBack:`Operators back {when}`,teamStatusOfflineUntil:`We're away, back {when}`,teamStatusOfflineSoon:`We're away, back soon`,recentMessageAttachment:`Attachment`},messages:{today:`今天`,yesterday:`昨天`,unreadMessages:`未读消息`,emptyTitle:`暂无消息`,emptyBody:`开始对话,我们的团队将在这里回复您。`,sendCta:`给我们发消息`,attach:`附加文件`,commands:`快捷命令`,record:`录制语音消息`,stopRecording:`停止录音`,recording:`正在录音…`,uploading:`正在上传…`,uploadFailed:`上传失败`,voiceDenied:`麦克风访问被拒绝`,voiceUnsupported:`此浏览器不支持语音录制`,fileTooLarge:`文件过大(最大 10MB)`,fileMimeNotAllowed:`不支持此文件类型`,emoji:`插入表情符号`,cancelRecording:`取消录音`,pauseRecording:`暂停录音`,resumeRecording:`继续录音`,playPreview:`播放录音`,emojiPicker:`表情选择器`,emojiSearch:`搜索…`,playAudio:`播放`,pauseAudio:`暂停`,openAudio:`打开音频`,removeAttachment:`移除`,aiAssistant:`AI 助手`,operator:`客服`,openImage:`打开图片`,openPreview:`打开预览`,play:`播放`,pause:`暂停`,typing:`正在输入…`,aiThinking:`思考中…`,aiSearching:`浏览中…`,typingSomeone:`有人`,signInToChat:`请登录以开始对话。`,signInUnavailable:`登录暂时不可用。`,googleSignIn:`使用 Google 登录`,googleUnavailable:`Google sign-in isn't available. Check your connection or ad blocker and try again.`,passkeySignIn:`使用通行密钥登录`,passkeyRegister:`第一次? 设置通行密钥`,passkeyError:`无法登录。请重试。`,passkeyNoCredential:`此设备上还没有通行密钥 — 点击"设置通行密钥"创建一个。`,googleSignInDemo:`使用 Google 继续`,connectingOperator:`已分配客服,请稍候…`,assignment:{eta:{minutes:`客服将在约 {minutes} 分钟内回复`,soft:`我们通常会在几分钟内回复`,businessHours:`团队将在 {time} 恢复在线`}},withOperator:`您现在正在与 {name} 聊天`,operatorConnected:`客服已连接`,chatResolved:`对话已解决`,chatResolvedByYou:`您已解决此对话`,chatResolvedByOperator:`{name} 已解决此对话`,resolveConversation:`解决对话`,sources:`来源`,moreSources:`还有 {count} 个`,askQuestion:`Ask a question`,previewYou:`You: {text}`,threadsEmptyTitle:`No conversations yet`,threadsEmptyBody:`Start a conversation and it will show up here.`,format:{bold:`Bold`,italic:`Italic`,underline:`Underline`,strikethrough:`Strikethrough`,bulletList:`Bulleted list`,numberedList:`Numbered list`,link:`Link`,linkPlaceholder:`https://…`,linkSave:`Save`,linkCancel:`Cancel`,monospace:`Monospace`},queued:`Waiting for connection`,notDelivered:`Not delivered`,retry:`Retry`,offlineBanner:`You're offline`,backOnline:`Back online`,threadsErrorTitle:`Could not load your conversations`,threadsErrorBody:`Check your connection and try again.`,giphy:{title:`GIFs & Stickers`,searchPlaceholder:`Search GIPHY`,clear:`Clear`,tabGifs:`GIFs`,tabStickers:`Stickers`,error:`Couldn't load`,retry:`Retry`,empty:`No results`,poweredBy:`Powered by GIPHY`},scrollToLatest:`Scroll to latest`,conversationClosed:`This conversation is closed`,startNewConversation:`Start a new conversation`,conversationBlocked:`This conversation is blocked`,visitorBlocked:`You can no longer send messages`,conversationClosedTitle:`That's a wrap 👋`,conversationClosedHint:`This conversation is closed. Start a new one whenever you like.`},prechat:{title:`开始之前`,subtitle:`提供一些信息,让我们的团队能更快帮助您。`,labelName:`姓名`,labelEmail:`邮箱`,labelPhone:`电话`,labelCustom:`详情`,required:`必填`,invalidEmail:`请输入有效的邮箱地址`,invalidPhone:`请输入有效的电话号码`,submit:`继续`,submitFailed:`无法提交 - 请重试。`},help:{searchPlaceholder:`搜索帮助`,emptyTitle:`暂无文章`,emptyBody:`客服尚未发布任何内容。`,back:`返回`,helpful:`这篇文章对您有帮助吗?`,yes:`有`,no:`没有`,thanks:`感谢您的反馈。`,unresolvedCta:`仍需帮助? 给我们发消息`,noResults:`没有结果`,articleNotFound:`未找到文章`,articleNotTranslated:`此文章暂未提供您所用语言的版本。`,writtenBy:`作者: {names}`,relatedTitle:`相关文章`,collectionsCount:`{count, plural, =0 {无合集} other {# 个合集}}`,articlesCount:`{count, plural, =0 {无文章} other {文章: #}}`,authorsByline:`作者 {first}{remaining, plural, =0 {} other { 及其他 # 人}}`},news:{emptyTitle:`暂无更新`,emptyBody:`请回来这里查看产品动态和公告。`,helpful:`这篇文章对您有帮助吗?`,yes:`有`,no:`没有`,thanks:`感谢您的反馈。`,searchPlaceholder:`搜索动态`,noResults:`没有匹配的内容`,editedAt:`{when}编辑`,articleNotFound:`未找到文章。`,articleNotTranslated:`此文章暂未提供您所用语言的版本。`,readOriginal:`阅读原文`,relatedTitle:`相关`,writtenBy:`作者: {names}`,unread:`未读动态`},reactions:{ariaLabel:`回应`,tapAria:`用 {emoji} 回应`},languageSelector:{title:`用其他语言阅读`,ariaLabel:`文章语言`},branding:{poweredBy:`由以下提供支持:`,wexio:`Wexio`},sound:{mute:`静音通知声音`,unmute:`取消静音通知声音`},article:{tableOfContents:`目录`,tabFallback:`标签 {n}`},peek:{newMessage:`新消息`,dismiss:`关闭`,aiAssistant:`AI 助手`,operator:`客服`},lightbox:{mediaPreview:`媒体预览`,close:`关闭预览`,previous:`上一个`,next:`下一个`},authError:{turnstileTitle:`无法验证您的浏览器`,turnstileBody:`我们无法完成安全检查。有时是网络或广告拦截器问题 — 请重试或刷新页面。`,genericTitle:`无法连接`,genericBody:`登录时出现问题。请稍后重试。`,retry:`重试`,dismiss:`关闭`},profile:{title:`您的资料`,subtitle:`更新您的信息和小部件行为。`,uploadAvatar:`更换照片`,removeAvatar:`删除照片`,avatarUploading:`正在上传…`,preferencesHeading:`偏好设置`,preferenceLanguage:`语言`,preferenceDesktopNotifications:`桌面通知`,preferenceDesktopNotificationsHint:`当小部件未聚焦时接收系统通知。`,preferenceThemeMode:`主题`,themeAuto:`跟随系统`,themeLight:`浅色`,themeDark:`深色`,themeLocked:`主题由客服设置。`,pinnedHint:`由客服设置 — 不可编辑。`,requiredHint:`必填`,invalidEmail:`请输入有效的邮箱地址。`,invalidPhone:`请使用国际格式,例如 +14155552671。`,noFields:`这里暂时没有可编辑的内容。`,save:`保存更改`,saving:`正在保存…`,cancel:`放弃`,saved:`更改已保存。`,loading:`正在加载资料…`,loadError:`无法加载您的资料。请重试。`,retry:`重试`,errorFieldNotAllowed:`此字段在本小部件中不可编辑。请尝试刷新。`,errorFieldPinned:`此字段已被您的账户锁定。`,errorFieldInvalid:`某些值无效。请检查高亮字段。`,errorThemeLocked:`主题已被客服锁定。`,errorFeatureDisabled:`客服已关闭资料编辑功能。`,errorGeneric:`无法保存您的更改。请重试。`,notificationsBlocked:`浏览器已阻止通知。请更新站点权限以启用。`,notificationsRequest:`请在弹窗中允许通知以启用此功能。`,systemFields:{avatar:`照片`,wexioId:`Wexio ID`,telegramId:`Telegram ID`,whatsappId:`WhatsApp ID`,viberId:`Viber ID`,instagramId:`Instagram ID`,optInWhatsapp:`WhatsApp 订阅`,webVerified:`已验证访客`,firstName:`名`,lastName:`姓`,username:`用户名`,language:`语言`,email:`邮箱`,phone:`电话`,company:`公司`,location:`位置`,isValid:`账户有效`,chatStatus:`聊天状态`,chatCategory:`聊天类别`,priority:`优先级`,leadSource:`线索来源`,leadStatus:`线索状态`,interestLevel:`兴趣等级`,productInterest:`产品兴趣`,budgetRange:`预算`,purchaseTimeline:`采购时间`,lastMessageSentAt:`最后发送`,lastMessageReceivedAt:`最后接收`,lastSeenAt:`最后访问`,firstMessageReceivedAt:`首次联系`,isBlocked:`已屏蔽`,registrationDate:`注册日期`,aiAvailable:`AI 协助`,totalMessagesSent:`已发送消息`,totalMessagesReceived:`已接收消息`,totalAiMessagesSent:`AI 发送消息`,totalBotMessagesSent:`机器人发送消息`,totalUserMessagesSent:`客服发送消息`,flowCompletionRate:`流程完成率`,lastFlowCompleted:`最后完成的流程`,totalFlowsStarted:`已开始流程`,totalFlowsCompleted:`已完成流程`},systemFieldOptions:{chatStatus:{ISSUE:`问题`,RESOLVED:`已解决`,PENDING:`待处理`,IN_PROGRESS:`进行中`,CLOSED:`已关闭`},chatCategory:{SALES:`销售`,SUPPORT:`支持`,BILLING:`账单`,FEEDBACK:`反馈`,GENERAL:`通用`,OTHER:`其他`},priority:{LOW:`低`,MEDIUM:`中`,HIGH:`高`,URGENT:`紧急`},leadStatus:{NEW:`新建`,CONTACTED:`已联系`,QUALIFIED:`已认证`,NEGOTIATING:`协商中`,WON:`赢单`,LOST:`丢单`},interestLevel:{LOW:`低`,MEDIUM:`中`,HIGH:`高`,VERY_HIGH:`非常高`}}},transcript:{title:`Conversation with {org}`,started:`Started on {when}`,exported:`Exported from {org} on {when}`,truncated:`Note: only the most recent messages are included.`,operator:`Operator`,you:`You`}};export{e as default};
|
|
2
|
+
//# sourceMappingURL=widget-react-D5n4whHu2.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
globalThis.process===void 0&&(globalThis.process={env:{},nextTick:function(e){setTimeout(e,0)},emit:function(){return!1}});import"react";import"react-dom";import"react/jsx-runtime";import"react-dom/client";var e={tabs:{home:`Etusivu`,messages:`Viestit`,help:`Ohje`,news:`Uutiset`,profile:`Profiili`},header:{close:`Sulje`,back:`Takaisin`,conversationSubtitle:`Myös tiimimme voi auttaa`,helpTitle:`Ohje`,newsTitle:`Uutiset`,expand:`Laajenna widget`,collapse:`Pienennä widget`,messagesTitle:`Viestit`,downloadTranscript:`Download transcript`,moreActions:`More`},launcher:{open:`Avaa chat`,close:`Sulje chat`,panel:`Chat`},tabError:{title:`Jokin meni pieleen`,hint:`Tätä osiota ei voitu näyttää.`,retry:`Yritä uudelleen`},chunkError:{failed:`Couldn't load`,retry:`Retry`},home:{greetingHeadline:`Hei 👋`,greetingSubheadline:`Miten voimme auttaa?`,askTitle:`Esitä kysymys`,askSubtitle:`Bottimme ja tiimimme voivat auttaa`,recentMessageLabel:`Viimeisin viesti`,recentMessageTitle:`Viimeisin viesti`,recentMessageFromFallback:`Gaia`,recentMessageAgo:`4 t`,recentMessageSample:`Hei 👋 Kiitos yhteydenotosta - palaamme asiaan pian.`,featuredArticleLoading:`Nostettu artikkeli`,featuredArticleTap:`Avaa napauttamalla`,featuredArticleEmpty:`Valitse artikkeli`,featuredArticleSetUp:`Määritä tämä lohko hallintapaneelissa`,featuredArticleDemoEyebrow:`Pioneer · Merkitse kalenteriin`,featuredArticleDemoHeadline:`8. lokakuuta 2026`,featuredArticleDemoSubline:`San Francisco · Paikan päällä + virtuaalisesti`,featuredArticleDemoCta:`Katso ohjelma`,seeAgenda:`Katso ohjelma`,browseHelp:`Selaa ohjeita`,whatsNew:`Mitä uutta`,searchPlaceholder:`Hae ohjeista`,pinnedArticlesTitle:`Lue ensin nämä`,popularArticlesTitle:`Suositut artikkelit`,pinnedArticleRow:`Kiinnitetty artikkeli {n}`,newsPreviewTitle:`Viimeisimmät uutiset`,seeAll:`See all`,newsPreviewRow:`Uutispäivitys {n}`,myConversationsTitle:`Keskustelusi`,myConversationsEmpty:`Näytä keskustelusi`,teamStatusOnline:`Olemme paikalla`,teamStatusReplyInstant:`Usually replies instantly`,teamStatusReplyMinutes:`Usually replies in a few minutes`,teamStatusReplyHours:`Usually replies within a few hours`,teamStatusReplyDay:`Usually replies within a day`,teamStatusAiOnline:`{name} can help right now`,teamStatusOperatorsBack:`Operators back {when}`,teamStatusOfflineUntil:`We're away, back {when}`,teamStatusOfflineSoon:`We're away, back soon`,recentMessageAttachment:`Attachment`},messages:{today:`Tänään`,yesterday:`Eilen`,unreadMessages:`Lukemattomat viestit`,emptyTitle:`Ei vielä viestejä`,emptyBody:`Aloita keskustelu, niin tiimimme vastaa sinulle täällä.`,sendCta:`Lähetä meille viesti`,attach:`Liitä tiedosto`,commands:`Pikakomennot`,record:`Tallenna ääniviesti`,stopRecording:`Lopeta tallennus`,recording:`Tallennetaan…`,uploading:`Ladataan…`,uploadFailed:`Lataus epäonnistui`,voiceDenied:`Mikrofonin käyttö estetty`,voiceUnsupported:`Tämä selain ei tue äänitallennusta`,fileTooLarge:`Tiedosto on liian suuri (enintään 10 Mt)`,fileMimeNotAllowed:`Tämä tiedostotyyppi ei ole tuettu`,emoji:`Lisää emoji`,cancelRecording:`Peruuta tallennus`,pauseRecording:`Keskeytä tallennus`,resumeRecording:`Jatka tallennusta`,playPreview:`Toista tallenne`,emojiPicker:`Emoji-valitsin`,emojiSearch:`Hae…`,playAudio:`Toista`,pauseAudio:`Keskeytä`,openAudio:`Avaa ääni`,removeAttachment:`Poista`,aiAssistant:`Tekoälyavustaja`,operator:`Operaattori`,openImage:`Avaa kuva`,openPreview:`Avaa esikatselu`,play:`Toista`,pause:`Keskeytä`,typing:`kirjoittaa…`,aiThinking:`miettii…`,aiSearching:`selaa…`,typingSomeone:`Joku`,signInToChat:`Kirjaudu sisään aloittaaksesi keskustelun.`,signInUnavailable:`Kirjautuminen ei ole juuri nyt käytettävissä.`,googleSignIn:`Kirjaudu Googlella`,googleUnavailable:`Google sign-in isn't available. Check your connection or ad blocker and try again.`,passkeySignIn:`Kirjaudu passkeyllä`,passkeyRegister:`Ensimmäistä kertaa? Luo passkey`,passkeyError:`Kirjautuminen ei onnistunut. Yritä uudelleen.`,passkeyNoCredential:`Tällä laitteella ei vielä ole passkeytä — napauta ”Luo passkey” lisätäksesi sen.`,googleSignInDemo:`Jatka Googlella`,connectingOperator:`Operaattori on määritetty, odota hetki…`,assignment:{eta:{minutes:`Operaattori vastaa noin {minutes} min kuluttua`,soft:`Vastaamme yleensä muutamassa minuutissa`,businessHours:`Tiimi palaa {time}`}},withOperator:`Keskustelet nyt henkilön {name} kanssa`,operatorConnected:`Operaattori yhdistetty`,chatResolved:`Keskustelu ratkaistu`,chatResolvedByYou:`Ratkaisit keskustelun`,chatResolvedByOperator:`{name} ratkaisi keskustelun`,resolveConversation:`Ratkaise keskustelu`,sources:`Lähteet`,moreSources:`+{count} lisää`,askQuestion:`Ask a question`,previewYou:`You: {text}`,threadsEmptyTitle:`No conversations yet`,threadsEmptyBody:`Start a conversation and it will show up here.`,format:{bold:`Bold`,italic:`Italic`,underline:`Underline`,strikethrough:`Strikethrough`,bulletList:`Bulleted list`,numberedList:`Numbered list`,link:`Link`,linkPlaceholder:`https://…`,linkSave:`Save`,linkCancel:`Cancel`,monospace:`Monospace`},queued:`Waiting for connection`,notDelivered:`Not delivered`,retry:`Retry`,offlineBanner:`You're offline`,backOnline:`Back online`,threadsErrorTitle:`Could not load your conversations`,threadsErrorBody:`Check your connection and try again.`,giphy:{title:`GIFs & Stickers`,searchPlaceholder:`Search GIPHY`,clear:`Clear`,tabGifs:`GIFs`,tabStickers:`Stickers`,error:`Couldn't load`,retry:`Retry`,empty:`No results`,poweredBy:`Powered by GIPHY`},scrollToLatest:`Scroll to latest`,conversationClosed:`This conversation is closed`,startNewConversation:`Start a new conversation`,conversationBlocked:`This conversation is blocked`,visitorBlocked:`You can no longer send messages`,conversationClosedTitle:`That's a wrap 👋`,conversationClosedHint:`This conversation is closed. Start a new one whenever you like.`},prechat:{title:`Ennen kuin aloitamme`,subtitle:`Muutama tieto, jotta tiimimme voi auttaa sinua nopeammin.`,labelName:`Nimi`,labelEmail:`Sähköposti`,labelPhone:`Puhelin`,labelCustom:`Lisätiedot`,required:`Pakollinen`,invalidEmail:`Anna kelvollinen sähköpostiosoite`,invalidPhone:`Anna kelvollinen puhelinnumero`,submit:`Jatka`,submitFailed:`Lähetys epäonnistui - yritä uudelleen.`},help:{searchPlaceholder:`Hae ohjeista`,emptyTitle:`Ei vielä artikkeleita`,emptyBody:`Operaattorisi ei ole vielä julkaissut mitään.`,back:`Takaisin`,helpful:`Oliko tästä apua?`,yes:`Kyllä`,no:`Ei`,thanks:`Kiitos palautteesta.`,unresolvedCta:`Tarvitsetko vielä apua? Lähetä meille viesti`,noResults:`Ei tuloksia`,articleNotFound:`Artikkelia ei löytynyt`,articleNotTranslated:`Tämä artikkeli ei ole vielä saatavilla kielelläsi.`,writtenBy:`Kirjoittaja: {names}`,relatedTitle:`Liittyvät artikkelit`,collectionsCount:`{count, plural, =0 {Ei kokoelmia} one {# kokoelma} other {# kokoelmaa}}`,articlesCount:`{count, plural, =0 {Ei artikkeleita} one {Artikkeleita: #} other {Artikkeleita: #}}`,authorsByline:`Kirjoittajat {first}{remaining, plural, =0 {} one { ja # muu} other { ja # muuta}}`},news:{emptyTitle:`Ei vielä päivityksiä`,emptyBody:`Käy täällä lukemassa tuoteuutisia ja ilmoituksia.`,helpful:`Oliko artikkelista apua?`,yes:`Kyllä`,no:`Ei`,thanks:`Kiitos palautteesta.`,searchPlaceholder:`Hae uutisista`,noResults:`Ei osumia`,editedAt:`muokattu {when}`,articleNotFound:`Artikkelia ei löytynyt.`,articleNotTranslated:`Tämä julkaisu ei ole vielä saatavilla kielelläsi.`,readOriginal:`Lue alkuperäinen`,relatedTitle:`Aiheeseen liittyvää`,writtenBy:`Kirjoittaja: {names}`,unread:`Lukemattomat uutiset`},reactions:{ariaLabel:`Reaktiot`,tapAria:`Reagoi: {emoji}`},languageSelector:{title:`Lue toisella kielellä`,ariaLabel:`Artikkelin kielet`},branding:{poweredBy:`Tarjoaa`,wexio:`Wexio`},sound:{mute:`Mykistä ilmoitusäänet`,unmute:`Poista ilmoitusäänten mykistys`},article:{tableOfContents:`Sisällysluettelo`,tabFallback:`Välilehti {n}`},peek:{newMessage:`Uusi viesti`,dismiss:`Sulje`,aiAssistant:`Tekoälyavustaja`,operator:`Operaattori`},lightbox:{mediaPreview:`Median esikatselu`,close:`Sulje esikatselu`,previous:`Edellinen`,next:`Seuraava`},authError:{turnstileTitle:`Selaimen vahvistus epäonnistui`,turnstileBody:`Emme voineet suorittaa turvatarkistusta loppuun. Syynä on toisinaan verkko tai mainosten estäjä — yritä uudelleen tai päivitä sivu.`,genericTitle:`Yhteyden muodostaminen epäonnistui`,genericBody:`Jokin meni vikaan sisäänkirjautumisessa. Yritä hetken kuluttua uudelleen.`,retry:`Yritä uudelleen`,dismiss:`Sulje`},profile:{title:`Profiilisi`,subtitle:`Päivitä tietosi ja widgetin toiminta.`,uploadAvatar:`Vaihda kuva`,removeAvatar:`Poista kuva`,avatarUploading:`Ladataan…`,preferencesHeading:`Asetukset`,preferenceLanguage:`Kieli`,preferenceDesktopNotifications:`Työpöytäilmoitukset`,preferenceDesktopNotificationsHint:`Saa järjestelmäilmoitus, kun widget ei ole aktiivinen.`,preferenceThemeMode:`Teema`,themeAuto:`Järjestelmän mukaan`,themeLight:`Vaalea`,themeDark:`Tumma`,themeLocked:`Teema on operaattorin määrittämä.`,pinnedHint:`Operaattorin määrittämä — ei muokattavissa.`,requiredHint:`Pakollinen`,invalidEmail:`Anna kelvollinen sähköpostiosoite.`,invalidPhone:`Käytä kansainvälistä muotoa, esim. +14155552671.`,noFields:`Täällä ei ole vielä mitään muokattavaa.`,save:`Tallenna muutokset`,saving:`Tallennetaan…`,cancel:`Hylkää`,saved:`Muutokset tallennettu.`,loading:`Ladataan profiilia…`,loadError:`Profiilin lataus epäonnistui. Yritä uudelleen.`,retry:`Yritä uudelleen`,errorFieldNotAllowed:`Tätä kenttää ei voi muokata tässä widgetissä. Yritä päivittää sivu.`,errorFieldPinned:`Tämä kenttä on tilisi lukitsema.`,errorFieldInvalid:`Osa arvoista on virheellisiä. Tarkista korostetut kentät.`,errorThemeLocked:`Operaattori on lukinnut teeman.`,errorFeatureDisabled:`Operaattori on poistanut profiilin muokkauksen käytöstä.`,errorGeneric:`Muutosten tallennus epäonnistui. Yritä uudelleen.`,notificationsBlocked:`Selain estää ilmoitukset. Päivitä sivuston käyttöoikeudet ottaaksesi ne käyttöön.`,notificationsRequest:`Salli ilmoitukset, kun sitä pyydetään, ottaaksesi tämän käyttöön.`,systemFields:{avatar:`Kuva`,wexioId:`Wexio ID`,telegramId:`Telegram ID`,whatsappId:`WhatsApp ID`,viberId:`Viber ID`,instagramId:`Instagram ID`,optInWhatsapp:`WhatsApp-suostumus`,webVerified:`Vahvistettu kävijä`,firstName:`Etunimi`,lastName:`Sukunimi`,username:`Käyttäjänimi`,language:`Kieli`,email:`Sähköposti`,phone:`Puhelin`,company:`Yritys`,location:`Sijainti`,isValid:`Tili voimassa`,chatStatus:`Chatin tila`,chatCategory:`Chatin kategoria`,priority:`Prioriteetti`,leadSource:`Liidin lähde`,leadStatus:`Liidin tila`,interestLevel:`Kiinnostuksen taso`,productInterest:`Tuotekiinnostus`,budgetRange:`Budjetti`,purchaseTimeline:`Ostoaikataulu`,lastMessageSentAt:`Viimeksi lähetetty`,lastMessageReceivedAt:`Viimeksi vastaanotettu`,lastSeenAt:`Viimeksi nähty`,firstMessageReceivedAt:`Ensimmäinen kontakti`,isBlocked:`Estetty`,registrationDate:`Rekisteröity`,aiAvailable:`Tekoälyapu`,totalMessagesSent:`Lähetetyt viestit`,totalMessagesReceived:`Vastaanotetut viestit`,totalAiMessagesSent:`Lähetetyt tekoälyviestit`,totalBotMessagesSent:`Lähetetyt bottiviestit`,totalUserMessagesSent:`Lähetetyt operaattoriviestit`,flowCompletionRate:`Flowien suoritusaste`,lastFlowCompleted:`Viimeksi suoritettu flow`,totalFlowsStarted:`Aloitettuja floweja`,totalFlowsCompleted:`Suoritettuja floweja`},systemFieldOptions:{chatStatus:{ISSUE:`Ongelma`,RESOLVED:`Ratkaistu`,PENDING:`Odottaa`,IN_PROGRESS:`Käynnissä`,CLOSED:`Suljettu`},chatCategory:{SALES:`Myynti`,SUPPORT:`Tuki`,BILLING:`Laskutus`,FEEDBACK:`Palaute`,GENERAL:`Yleinen`,OTHER:`Muu`},priority:{LOW:`Matala`,MEDIUM:`Keskitaso`,HIGH:`Korkea`,URGENT:`Kiireellinen`},leadStatus:{NEW:`Uusi`,CONTACTED:`Otettu yhteyttä`,QUALIFIED:`Karsittu`,NEGOTIATING:`Neuvotteluissa`,WON:`Voitettu`,LOST:`Menetetty`},interestLevel:{LOW:`Matala`,MEDIUM:`Keskitaso`,HIGH:`Korkea`,VERY_HIGH:`Erittäin korkea`}}},transcript:{title:`Conversation with {org}`,started:`Started on {when}`,exported:`Exported from {org} on {when}`,truncated:`Note: only the most recent messages are included.`,operator:`Operator`,you:`You`}};export{e as default};
|
|
2
|
+
//# sourceMappingURL=widget-react-D8W_ZdMH.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
globalThis.process===void 0&&(globalThis.process={env:{},nextTick:function(e){setTimeout(e,0)},emit:function(){return!1}});import"react";import"react-dom";import"react/jsx-runtime";import"react-dom/client";import{C as e}from"./widget-react-FX5W7RyV.js";var t=e({article:()=>g,authError:()=>y,branding:()=>m,chunkError:()=>o,default:()=>S,header:()=>r,help:()=>u,home:()=>s,languageSelector:()=>p,launcher:()=>i,lightbox:()=>v,messages:()=>c,news:()=>d,peek:()=>_,prechat:()=>l,profile:()=>b,reactions:()=>f,sound:()=>h,tabError:()=>a,tabs:()=>n,transcript:()=>x}),n={home:`Home`,messages:`Messages`,help:`Help`,news:`News`,profile:`Profile`},r={close:`Close`,back:`Back`,conversationSubtitle:`Our team can also help`,helpTitle:`Help`,newsTitle:`News`,expand:`Expand widget`,collapse:`Collapse widget`,messagesTitle:`Messages`,downloadTranscript:`Download transcript`,moreActions:`More`},i={open:`Open chat`,close:`Close chat`,panel:`Chat`},a={title:`Something went wrong`,hint:`This section couldn't be shown.`,retry:`Try again`},o={failed:`Couldn't load`,retry:`Retry`},s={greetingHeadline:`Hi there 👋`,greetingSubheadline:`How can we help?`,askTitle:`Ask a question`,askSubtitle:`Our bot and team can help`,recentMessageLabel:`Recent message`,recentMessageTitle:`Recent message`,recentMessageFromFallback:`Gaia`,recentMessageAgo:`4h`,recentMessageSample:`Hi there 👋 Thanks for reaching out - we'll be right back with you.`,featuredArticleLoading:`Featured article`,featuredArticleTap:`Tap to read`,featuredArticleEmpty:`Pick an article`,featuredArticleSetUp:`Configure this block in your dashboard`,featuredArticleDemoEyebrow:`Pioneer · Save the date`,featuredArticleDemoHeadline:`October 8, 2026`,featuredArticleDemoSubline:`San Francisco · In-person + virtual`,featuredArticleDemoCta:`See the launch agenda`,seeAgenda:`See the launch agenda`,browseHelp:`Browse Help`,whatsNew:`What's new`,searchPlaceholder:`Search for help`,pinnedArticlesTitle:`Read these first`,popularArticlesTitle:`Popular articles`,pinnedArticleRow:`Pinned article {n}`,newsPreviewTitle:`Latest news`,seeAll:`See all`,newsPreviewRow:`News update {n}`,myConversationsTitle:`Your conversations`,myConversationsEmpty:`View your conversations`,teamStatusOnline:`We're online`,teamStatusReplyInstant:`Usually replies instantly`,teamStatusReplyMinutes:`Usually replies in a few minutes`,teamStatusReplyHours:`Usually replies within a few hours`,teamStatusReplyDay:`Usually replies within a day`,teamStatusAiOnline:`{name} can help right now`,teamStatusOperatorsBack:`Operators back {when}`,teamStatusOfflineUntil:`We're away, back {when}`,teamStatusOfflineSoon:`We're away, back soon`,recentMessageAttachment:`Attachment`},c={today:`Today`,yesterday:`Yesterday`,unreadMessages:`Unread messages`,emptyTitle:`No messages yet`,emptyBody:`Start a conversation and our team will get back to you here.`,sendCta:`Send us a message`,attach:`Attach a file`,commands:`Quick commands`,record:`Record a voice message`,stopRecording:`Stop recording`,recording:`Recording…`,uploading:`Uploading…`,uploadFailed:`Upload failed`,voiceDenied:`Microphone access denied`,voiceUnsupported:`Voice recording isn't supported in this browser`,fileTooLarge:`File is too large (max 10MB)`,fileMimeNotAllowed:`This file type isn't supported`,emoji:`Insert emoji`,cancelRecording:`Cancel recording`,pauseRecording:`Pause recording`,resumeRecording:`Resume recording`,playPreview:`Play recording`,emojiPicker:`Emoji picker`,emojiSearch:`Search…`,playAudio:`Play`,pauseAudio:`Pause`,openAudio:`Open audio`,removeAttachment:`Remove`,aiAssistant:`AI assistant`,operator:`Operator`,openImage:`Open image`,openPreview:`Open preview`,play:`Play`,pause:`Pause`,typing:`typing…`,aiThinking:`thinking…`,aiSearching:`browsing…`,typingSomeone:`Someone`,signInToChat:`Please sign in to start the conversation.`,signInUnavailable:`Sign-in is not available right now.`,googleSignIn:`Sign in with Google`,googleUnavailable:`Google sign-in isn't available. Check your connection or ad blocker and try again.`,passkeySignIn:`Sign in with a passkey`,passkeyRegister:`First time? Set up a passkey`,passkeyError:`Couldn't sign in. Please try again.`,passkeyNoCredential:`No passkey on this device yet — tap “Set up a passkey” to create one.`,googleSignInDemo:`Continue with Google`,connectingOperator:`An operator has been assigned, please wait…`,assignment:{eta:{minutes:`An operator will reply in about {minutes} min`,soft:`We usually reply within a few minutes`,businessHours:`The team will be back at {time}`}},withOperator:`You're now chatting with {name}`,operatorConnected:`Operator connected`,chatResolved:`Conversation resolved`,chatResolvedByYou:`Conversation resolved by you`,chatResolvedByOperator:`Conversation resolved by {name}`,resolveConversation:`Resolve conversation`,sources:`Sources`,moreSources:`+{count} more`,askQuestion:`Ask a question`,previewYou:`You: {text}`,threadsEmptyTitle:`No conversations yet`,threadsEmptyBody:`Start a conversation and it will show up here.`,format:{bold:`Bold`,italic:`Italic`,underline:`Underline`,strikethrough:`Strikethrough`,bulletList:`Bulleted list`,numberedList:`Numbered list`,link:`Link`,linkPlaceholder:`https://…`,linkSave:`Save`,linkCancel:`Cancel`,monospace:`Monospace`},queued:`Waiting for connection`,notDelivered:`Not delivered`,retry:`Retry`,offlineBanner:`You're offline`,backOnline:`Back online`,threadsErrorTitle:`Could not load your conversations`,threadsErrorBody:`Check your connection and try again.`,giphy:{title:`GIFs & Stickers`,searchPlaceholder:`Search GIPHY`,clear:`Clear`,tabGifs:`GIFs`,tabStickers:`Stickers`,error:`Couldn't load`,retry:`Retry`,empty:`No results`,poweredBy:`Powered by GIPHY`},scrollToLatest:`Scroll to latest`,conversationClosed:`This conversation is closed`,startNewConversation:`Start a new conversation`,conversationBlocked:`This conversation is blocked`,visitorBlocked:`You can no longer send messages`,conversationClosedTitle:`That's a wrap 👋`,conversationClosedHint:`This conversation is closed. Start a new one whenever you like.`},l={title:`Before we start`,subtitle:`A few quick details so our team can help you faster.`,labelName:`Name`,labelEmail:`Email`,labelPhone:`Phone`,labelCustom:`Details`,required:`Required`,invalidEmail:`Please enter a valid email`,invalidPhone:`Please enter a valid phone number`,submit:`Continue`,submitFailed:`Couldn't submit - please try again.`},u={searchPlaceholder:`Search for help`,emptyTitle:`No articles yet`,emptyBody:`Your operator hasn't published anything yet.`,back:`Back`,helpful:`Was this helpful?`,yes:`Yes`,no:`No`,thanks:`Thanks for the feedback.`,unresolvedCta:`Still need help? Message us`,noResults:`No results`,articleNotFound:`Article not found`,articleNotTranslated:`This article isn't available in your language yet.`,writtenBy:`Written by {names}`,relatedTitle:`Related articles`,collectionsCount:`{count, plural, =0 {No collections} one {# collection} other {# collections}}`,articlesCount:`{count, plural, =0 {No articles} one {Articles: #} other {Articles: #}}`,authorsByline:`Authors {first}{remaining, plural, =0 {} one { and # more} other { and # more}}`},d={unread:`Unread news`,emptyTitle:`No updates yet`,emptyBody:`Check back here for product news and announcements.`,helpful:`Was this article helpful?`,yes:`Yes`,no:`No`,thanks:`Thanks for the feedback.`,searchPlaceholder:`Search news`,noResults:`No matching posts`,editedAt:`edited {when}`,articleNotFound:`Article not found.`,articleNotTranslated:`This post isn't available in your language yet.`,readOriginal:`Read the original`,relatedTitle:`Related`,writtenBy:`Written by {names}`},f={ariaLabel:`Reactions`,tapAria:`React with {emoji}`},p={title:`Read in another language`,ariaLabel:`Article languages`},m={poweredBy:`Powered by`,wexio:`Wexio`},h={mute:`Mute notification sounds`,unmute:`Unmute notification sounds`},g={tableOfContents:`Table of contents`,tabFallback:`Tab {n}`},_={newMessage:`New message`,dismiss:`Dismiss`,aiAssistant:`AI assistant`,operator:`Operator`},v={mediaPreview:`Media preview`,close:`Close preview`,previous:`Previous`,next:`Next`},y={turnstileTitle:`Couldn't verify your browser`,turnstileBody:`We weren't able to complete the security check. This is sometimes a network or ad-blocker issue — try again, or reload the page.`,genericTitle:`Couldn't connect`,genericBody:`Something went wrong while signing you in. Please try again in a moment.`,retry:`Try again`,dismiss:`Dismiss`},b={title:`Your profile`,subtitle:`Update your info and how the widget behaves.`,uploadAvatar:`Change photo`,removeAvatar:`Remove photo`,avatarUploading:`Uploading…`,preferencesHeading:`Preferences`,preferenceLanguage:`Language`,preferenceDesktopNotifications:`Desktop notifications`,preferenceDesktopNotificationsHint:`Get a system notification when the widget isn't focused.`,preferenceThemeMode:`Theme`,themeAuto:`Match system`,themeLight:`Light`,themeDark:`Dark`,themeLocked:`Theme is set by the operator.`,pinnedHint:`Set by the operator — not editable.`,requiredHint:`Required`,invalidEmail:`Please enter a valid email address.`,invalidPhone:`Use international format, e.g. +14155552671.`,noFields:`There's nothing to edit here yet.`,save:`Save changes`,saving:`Saving…`,cancel:`Discard`,saved:`Changes saved.`,loading:`Loading profile…`,loadError:`Couldn't load your profile. Please try again.`,retry:`Retry`,errorFieldNotAllowed:`This field isn't editable in this widget. Try refreshing.`,errorFieldPinned:`This field is locked by your account.`,errorFieldInvalid:`Some values aren't valid. Check the highlighted fields.`,errorThemeLocked:`Theme is locked by the operator.`,errorFeatureDisabled:`Profile editing has been turned off by the operator.`,errorGeneric:`Couldn't save your changes. Please try again.`,notificationsBlocked:`Notifications are blocked by the browser. Update site permissions to enable.`,notificationsRequest:`Allow notifications when prompted to enable this.`,systemFields:{avatar:`Photo`,wexioId:`Wexio ID`,telegramId:`Telegram ID`,whatsappId:`WhatsApp ID`,viberId:`Viber ID`,instagramId:`Instagram ID`,optInWhatsapp:`WhatsApp opt-in`,webVerified:`Verified visitor`,firstName:`First name`,lastName:`Last name`,username:`Username`,language:`Language`,email:`Email`,phone:`Phone`,company:`Company`,location:`Location`,isValid:`Account valid`,chatStatus:`Chat status`,chatCategory:`Chat category`,priority:`Priority`,leadSource:`Lead source`,leadStatus:`Lead status`,interestLevel:`Interest level`,productInterest:`Product interest`,budgetRange:`Budget`,purchaseTimeline:`Purchase timeline`,lastMessageSentAt:`Last message sent`,lastMessageReceivedAt:`Last message received`,lastSeenAt:`Last seen`,firstMessageReceivedAt:`First contact`,isBlocked:`Blocked`,registrationDate:`Registered`,aiAvailable:`AI assistance`,totalMessagesSent:`Messages sent`,totalMessagesReceived:`Messages received`,totalAiMessagesSent:`AI messages sent`,totalBotMessagesSent:`Bot messages sent`,totalUserMessagesSent:`Operator messages sent`,flowCompletionRate:`Flow completion rate`,lastFlowCompleted:`Last completed flow`,totalFlowsStarted:`Flows started`,totalFlowsCompleted:`Flows completed`},systemFieldOptions:{chatStatus:{ISSUE:`Issue`,RESOLVED:`Resolved`,PENDING:`Pending`,IN_PROGRESS:`In progress`,CLOSED:`Closed`},chatCategory:{SALES:`Sales`,SUPPORT:`Support`,BILLING:`Billing`,FEEDBACK:`Feedback`,GENERAL:`General`,OTHER:`Other`},priority:{LOW:`Low`,MEDIUM:`Medium`,HIGH:`High`,URGENT:`Urgent`},leadStatus:{NEW:`New`,CONTACTED:`Contacted`,QUALIFIED:`Qualified`,NEGOTIATING:`Negotiating`,WON:`Won`,LOST:`Lost`},interestLevel:{LOW:`Low`,MEDIUM:`Medium`,HIGH:`High`,VERY_HIGH:`Very high`}}},x={title:`Conversation with {org}`,started:`Started on {when}`,exported:`Exported from {org} on {when}`,truncated:`Note: only the most recent messages are included.`,operator:`Operator`,you:`You`},S={tabs:n,header:r,launcher:i,tabError:a,chunkError:o,home:s,messages:c,prechat:l,help:u,news:d,reactions:f,languageSelector:p,branding:m,sound:h,article:g,peek:_,lightbox:v,authError:y,profile:b,transcript:x};export{t as n,S as t};
|
|
2
|
+
//# sourceMappingURL=widget-react-DA0S6cIc.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
globalThis.process===void 0&&(globalThis.process={env:{},nextTick:function(e){setTimeout(e,0)},emit:function(){return!1}});import"react";import"react-dom";import"react/jsx-runtime";import"react-dom/client";import{_ as e,i as t,n}from"./widget-react-FX5W7RyV.js";import{Ct as r,L as i,N as a,R as o,_ as s,a as c,b as l,i as u,n as d,t as f,y as p}from"./widget-react-CnP2-ZB-.js";import{n as m}from"./widget-react-DUnaBOfT.js";import{useCallback as h,useEffect as g,useMemo as _,useRef as v,useState as y}from"react";import{jsx as b,jsxs as x}from"react/jsx-runtime";function S(e){if(!e)return!1;let t=e.trimStart().slice(0,200);return/^<(?:[a-z!][^>]*|!--)/i.test(t)}var C=function(e){return e.HTML=`HTML`,e.MARKDOWN=`MARKDOWN`,e}({}),w=function(e){return e.HELP=`HELP`,e.NEWS=`NEWS`,e}({});function T(e,t){g(()=>{if(t)return e&&t(e),()=>t(null)},[e,t])}var E=`prose max-w-none text-sm leading-relaxed text-wx-fg [overflow-wrap:anywhere],[&_pre]:[overflow-wrap:normal],[&_p]:my-3 [&_strong]:font-semibold [&_em]:italic,[&_a]:text-wx-primary [&_a]:underline [&_a]:underline-offset-2,[&_a]:transition-opacity [&_a:hover]:opacity-70,[&_code]:rounded-[6px] [&_code]:bg-wx-bg-elevated [&_code]:px-1.5 [&_code]:py-0.5 [&_code]:font-mono [&_code]:text-[0.85em],[&_pre]:my-4 [&_pre]:overflow-x-auto [&_pre]:rounded-lg [&_pre]:border [&_pre]:border-wx-border,[&_pre]:bg-[#0f1115] [&_pre]:text-zinc-100 [&_pre]:p-4 [&_pre]:text-[12.5px] [&_pre]:leading-relaxed,[&_pre_code]:bg-transparent [&_pre_code]:p-0 [&_pre_code]:text-zinc-100,[&_.hljs-keyword]:text-violet-300 [&_.hljs-built_in]:text-violet-300 [&_.hljs-type]:text-violet-300,[&_.hljs-string]:text-emerald-300,[&_.hljs-number]:text-amber-300 [&_.hljs-literal]:text-amber-300,[&_.hljs-comment]:text-zinc-500 [&_.hljs-comment]:italic,[&_.hljs-attr]:text-sky-300 [&_.hljs-attribute]:text-sky-300,[&_.hljs-title]:text-zinc-100 [&_.hljs-title]:font-medium,[&_.hljs-tag]:text-rose-300 [&_.hljs-name]:text-rose-300,[&_h1]:mt-6 [&_h1]:mb-3 [&_h1]:text-xl [&_h1]:font-semibold [&_h1]:tracking-tight,[&_h2]:mt-5 [&_h2]:mb-2 [&_h2]:text-base [&_h2]:font-semibold [&_h2]:tracking-tight,[&_h3]:mt-4 [&_h3]:mb-1.5 [&_h3]:text-sm [&_h3]:font-semibold,[&_h1]:scroll-mt-16 [&_h2]:scroll-mt-16 [&_h3]:scroll-mt-16,[&_ul]:my-3 [&_ul]:list-disc [&_ul]:pl-5 [&_ul]:marker:text-wx-fg-subtle,[&_ol]:my-3 [&_ol]:list-decimal [&_ol]:pl-5 [&_ol]:marker:text-wx-fg-subtle,[&_li]:my-1,[&_ul[data-type=taskList]]:list-none! [&_ul[data-type=taskList]]:pl-0!,[&_ul[data-type=taskList]_li]:my-1.5 [&_ul[data-type=taskList]_li]:flex! [&_ul[data-type=taskList]_li]:items-start [&_ul[data-type=taskList]_li]:gap-2 [&_ul[data-type=taskList]_li]:pl-0,[&_ul[data-type=taskList]_li]:marker:content-none,[&_ul[data-type=taskList]_li>label]:m-0 [&_ul[data-type=taskList]_li>label]:inline-flex [&_ul[data-type=taskList]_li>label]:h-5 [&_ul[data-type=taskList]_li>label]:items-center [&_ul[data-type=taskList]_li>label]:shrink-0 [&_ul[data-type=taskList]_li>label]:select-none,[&_ul[data-type=taskList]_li>label]:pointer-events-none [&_ul[data-type=taskList]_li>label]:cursor-default,[&_ul[data-type=taskList]_input]:accent-wx-primary [&_ul[data-type=taskList]_input]:h-3.5 [&_ul[data-type=taskList]_input]:w-3.5,[&_ul[data-type=taskList]_li>label>span]:hidden,[&_ul[data-type=taskList]_li>div]:min-w-0 [&_ul[data-type=taskList]_li>div]:flex-1,[&_ul[data-type=taskList]_li>div>p]:my-0! [&_ul[data-type=taskList]_li>div>p]:leading-snug,[&_ul[data-type=taskList]_li[data-checked=true]>div]:text-wx-fg-muted [&_ul[data-type=taskList]_li[data-checked=true]>div]:line-through,[&_blockquote]:my-4 [&_blockquote]:border-l-2 [&_blockquote]:border-wx-primary/40,[&_blockquote]:pl-3 [&_blockquote]:italic [&_blockquote]:text-wx-fg-muted,[&_hr]:my-6 [&_hr]:border-wx-border,[&_img]:my-3 [&_img]:mx-auto [&_img]:block [&_img]:max-w-full,[&_figure]:my-5 [&_figure]:flex [&_figure]:flex-col [&_figure]:items-center [&_figure]:text-center,[&_figure_img]:my-0,[&_figcaption]:mt-2 [&_figcaption]:text-xs [&_figcaption]:italic [&_figcaption]:text-wx-fg-muted,[&_table]:my-3 [&_table]:w-full [&_table]:table-fixed [&_table]:border-collapse [&_table]:text-xs,[&_table]:overflow-hidden [&_table]:rounded-lg [&_table]:border [&_table]:border-wx-border,[&_thead]:bg-wx-bg-elevated,[&_th]:px-2.5 [&_th]:py-1.5 [&_th]:text-left [&_th]:font-medium [&_th]:text-wx-fg,[&_th]:border-b [&_th]:border-wx-border,[&_th+th]:border-l [&_th+th]:border-wx-border,[&_td]:px-2.5 [&_td]:py-1.5 [&_td]:text-wx-fg [&_td]:align-top,[&_td+td]:border-l [&_td+td]:border-wx-border,[&_tbody_tr]:border-t [&_tbody_tr]:border-wx-border,[&_tbody_tr:nth-child(odd)]:bg-wx-bg-elevated/40,[&_th_p]:my-0 [&_td_p]:my-0 [&_th_p]:inline [&_td_p]:inline,[&_details]:my-2 [&_details]:overflow-hidden [&_details]:rounded-lg [&_details]:border [&_details]:border-wx-border [&_details]:bg-wx-bg-elevated/40,[&_details+details]:mt-2,[&_summary]:relative [&_summary]:cursor-pointer [&_summary]:list-none [&_summary]:px-4 [&_summary]:py-3,[&_summary]:pr-10 [&_summary]:text-sm [&_summary]:font-medium [&_summary]:text-wx-fg,[&_summary::-webkit-details-marker]:hidden [&_summary::marker]:hidden,[&_summary]:after:absolute [&_summary]:after:right-4 [&_summary]:after:top-1/2,[&_summary]:after:-translate-y-1/2 [&_summary]:after:text-wx-fg-subtle,[&_summary]:after:text-base [&_summary]:after:leading-none,[&_summary]:after:transition-transform [&_summary]:after:content-['\\203A'],[&_details[open]_summary]:after:rotate-90,[&_details[open]_summary]:border-b [&_details[open]_summary]:border-wx-border,[&_details]:[&>:not(summary)]:px-4 [&_details]:[&>:not(summary)]:py-3,[&_details]:[&>:not(summary):first-of-type]:pt-3`.split(`,`).join(` `);function D({content:e,isHtml:t,markdownMarginClass:n}){return t?b(d,{html:e,className:`mt-0 ${E}`}):b(`div`,{className:`${n} ${E}`,children:b(c,{remarkPlugins:[u],children:e})})}function O({currentLocale:r,locales:i,allowedLocales:a,onSelect:o,className:c}){let u=e(`languageSelector`),[d,h]=y(!1),_=v(null);g(()=>{if(!d)return;let e=e=>{_.current&&!e.composedPath().includes(_.current)&&h(!1)},t=e=>{e.key===`Escape`&&h(!1)};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[d]);let S=a&&a.length>0?new Set(a.map(e=>e.split(`-`)[0].toLowerCase())):null,C=Array.from(new Set(i.filter(Boolean))).filter(e=>!S||S.has(e.split(`-`)[0].toLowerCase()));if(C.length<=1)return null;let w=r.split(`-`)[0].toLowerCase();return x(`div`,{ref:_,className:n(`relative`,c),children:[b(`p`,{className:`mb-1.5 text-xs font-semibold tracking-wide text-wx-fg-muted uppercase`,children:u(`title`)}),x(`button`,{type:`button`,onClick:()=>h(e=>!e),"aria-haspopup":`listbox`,"aria-expanded":d,"aria-label":u(`ariaLabel`),className:n(`flex w-full items-center gap-2 rounded-wx-sm border border-wx-border bg-wx-bg px-3 py-2`,`text-sm font-medium text-wx-fg transition-colors hover:bg-wx-bg-elevated`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-wx-primary`),children:[b(s,{size:15,className:`shrink-0 text-wx-fg-muted`}),b(`span`,{className:`min-w-0 flex-1 truncate text-left`,children:f(r)}),b(p,{size:15,className:n(`shrink-0 text-wx-fg-subtle transition-transform`,d&&`rotate-180`)})]}),b(m,{children:d&&b(t.ul,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},exit:{opacity:0,y:4},transition:{duration:.14},className:n(`absolute bottom-full left-0 z-20 mb-1 max-h-56 w-full overflow-auto`,`rounded-wx-sm border border-wx-border bg-wx-bg py-1 shadow-[0_12px_32px_rgba(0,0,0,0.16)]`),role:`listbox`,children:C.map(e=>{let t=e.split(`-`)[0].toLowerCase()===w;return b(`li`,{children:x(`button`,{type:`button`,role:`option`,"aria-selected":t,onClick:()=>{o(e),h(!1)},className:n(`flex w-full items-center gap-2 px-3 py-2 text-left text-sm transition-colors`,t?`font-semibold text-wx-primary`:`text-wx-fg hover:bg-wx-bg-elevated`),children:[b(`span`,{className:`min-w-0 flex-1 truncate`,children:f(e)}),t&&b(l,{size:15,className:`shrink-0 text-wx-primary`})]})},e)})})})]})}var k=(e,t)=>`wexio:reaction:${e}:${t}`,A=[{slotIndex:0,emoji:`🎉`},{slotIndex:1,emoji:`❤️`},{slotIndex:2,emoji:`👍`}],j={[w.NEWS]:`NewsPost`,[w.HELP]:`HelpArticle`};function M({surface:s,itemId:c,reactionCounts:l,viewerReaction:u,groupItemIds:d,readonly:f=!1,showCounts:p=!0,isDummy:m=!1,className:v}){let S=e(`reactions`),C=r(),{data:w,loading:T}=o({variables:{surface:s},fetchPolicy:`cache-first`,skip:m}),[E,{loading:D}]=i(),O=a(),M=_(()=>m?A:w?.visitorReactionSet?.slots??[],[m,w]),N=m?!0:w?.visitorReactionSet?.enabled??!0,P=k(s,c),[F,I]=y(null);g(()=>{if(!m){I(u??null);return}if(typeof window>`u`)return;let e=window.localStorage.getItem(P);I(e===null?null:Number(e))},[m,P,u]);let[L,R]=y({}),z=e=>(l?.[String(e)]??0)+(m?L[e]??0:0),B=h((e,t)=>{let n=j[s],r=d?.length?d:[c];for(let i of r){let r=C.cache.identify({__typename:n,_id:i});r&&C.cache.modify({id:r,fields:{viewerReaction:()=>t,reactionCounts:n=>{let r={...n??{}};return t!==null&&(r[t]=(r[t]??0)+1),e!==null&&(r[e]=Math.max(0,(r[e]??0)-1)),r}}})}},[C,s,d,c]),V=async e=>{if(f||D||F===e)return;let t=F;if(I(e),m){typeof window<`u`&&window.localStorage.setItem(P,String(e)),R(n=>({...n,[e]:(n[e]??0)+1,...t===null?{}:{[t]:(n[t]??0)-1}}));return}if(B(t,e),O){O.enqueue({op:`reaction`,semantics:`convergence`,convergenceKey:`reaction:${s}:${c}`,payload:{surface:s,itemId:c,slotIndex:e}});return}try{await E({variables:{input:{surface:s,itemId:c,slotIndex:e}}})}catch{B(e,t),I(t)}};return T||!N||M.length===0?null:b(`div`,{className:n(`flex flex-wrap items-center justify-center gap-2`,v),role:`group`,"aria-label":S(`ariaLabel`),children:M.map(e=>{let r=F===e.slotIndex,i=z(e.slotIndex);return x(t.button,{type:`button`,disabled:f||D,onClick:()=>void V(e.slotIndex),whileTap:{scale:.9},whileHover:{scale:1.06},transition:{type:`spring`,stiffness:400,damping:18},className:n(`flex items-center gap-1.5 rounded-full px-3 py-1.5 text-2xl leading-none transition-colors`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-wx-primary`,r?`bg-wx-primary/10 ring-1 ring-wx-primary/40`:`hover:bg-wx-bg-elevated`,f&&`cursor-default opacity-70`),"aria-pressed":r,"aria-label":S(`tapAria`,{emoji:e.emoji}),children:[b(`span`,{"aria-hidden":`true`,children:e.emoji}),p&&i>0&&b(`span`,{className:`text-xs font-medium text-wx-fg-muted`,children:i})]},e.slotIndex)})})}export{C as a,T as i,O as n,w as o,D as r,S as s,M as t};
|
|
2
|
+
//# sourceMappingURL=widget-react-DE0LS-6-.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
globalThis.process===void 0&&(globalThis.process={env:{},nextTick:function(e){setTimeout(e,0)},emit:function(){return!1}});import"react";import"react-dom";import"react/jsx-runtime";import"react-dom/client";var e={tabs:{home:`Kezdőlap`,messages:`Üzenetek`,help:`Súgó`,news:`Hírek`,profile:`Profil`},header:{close:`Bezárás`,back:`Vissza`,conversationSubtitle:`Csapatunk is segíthet`,helpTitle:`Súgó`,newsTitle:`Hírek`,expand:`Widget kibontása`,collapse:`Widget összecsukása`,messagesTitle:`Üzenetek`,downloadTranscript:`Download transcript`,moreActions:`More`},launcher:{open:`Csevegés megnyitása`,close:`Csevegés bezárása`,panel:`Csevegés`},tabError:{title:`Valami hiba történt`,hint:`Ezt a részt nem sikerült megjeleníteni.`,retry:`Próbálja újra`},chunkError:{failed:`Couldn't load`,retry:`Retry`},home:{greetingHeadline:`Üdv 👋`,greetingSubheadline:`Miben segíthetünk?`,askTitle:`Tegyél fel egy kérdést`,askSubtitle:`Botunk és csapatunk is segíthet`,recentMessageLabel:`Legutóbbi üzenet`,recentMessageTitle:`Legutóbbi üzenet`,recentMessageFromFallback:`Gaia`,recentMessageAgo:`4 ó`,recentMessageSample:`Üdv 👋 Köszönjük, hogy megkerestél — hamarosan jelentkezünk.`,featuredArticleLoading:`Kiemelt cikk`,featuredArticleTap:`Koppints az olvasáshoz`,featuredArticleEmpty:`Válassz cikket`,featuredArticleSetUp:`Állítsd be ezt a blokkot a vezérlőpulton`,featuredArticleDemoEyebrow:`Pioneer · Jegyezd fel a dátumot`,featuredArticleDemoHeadline:`2026. október 8.`,featuredArticleDemoSubline:`San Francisco · személyesen + online`,featuredArticleDemoCta:`Megnyitási program megtekintése`,seeAgenda:`Megnyitási program megtekintése`,browseHelp:`Súgó tallózása`,whatsNew:`Mi újság`,searchPlaceholder:`Keresés a súgóban`,pinnedArticlesTitle:`Először ezeket olvasd`,popularArticlesTitle:`Népszerű cikkek`,pinnedArticleRow:`Rögzített cikk {n}`,newsPreviewTitle:`Legfrissebb hírek`,seeAll:`See all`,newsPreviewRow:`Hírfrissítés {n}`,myConversationsTitle:`Beszélgetéseid`,myConversationsEmpty:`Beszélgetéseid megtekintése`,teamStatusOnline:`Online vagyunk`,teamStatusReplyInstant:`Usually replies instantly`,teamStatusReplyMinutes:`Usually replies in a few minutes`,teamStatusReplyHours:`Usually replies within a few hours`,teamStatusReplyDay:`Usually replies within a day`,teamStatusAiOnline:`{name} can help right now`,teamStatusOperatorsBack:`Operators back {when}`,teamStatusOfflineUntil:`We're away, back {when}`,teamStatusOfflineSoon:`We're away, back soon`,recentMessageAttachment:`Attachment`},messages:{today:`Ma`,yesterday:`Tegnap`,unreadMessages:`Olvasatlan üzenetek`,emptyTitle:`Még nincsenek üzenetek`,emptyBody:`Indíts beszélgetést, és csapatunk itt válaszol.`,sendCta:`Küldj nekünk üzenetet`,attach:`Fájl csatolása`,commands:`Gyors parancsok`,record:`Hangüzenet rögzítése`,stopRecording:`Felvétel leállítása`,recording:`Felvétel…`,uploading:`Feltöltés…`,uploadFailed:`A feltöltés nem sikerült`,voiceDenied:`A mikrofonhoz való hozzáférés megtagadva`,voiceUnsupported:`A hangrögzítés nem támogatott ebben a böngészőben`,fileTooLarge:`A fájl túl nagy (max. 10 MB)`,fileMimeNotAllowed:`Ez a fájltípus nem támogatott`,emoji:`Emoji beszúrása`,cancelRecording:`Felvétel megszakítása`,pauseRecording:`Felvétel szüneteltetése`,resumeRecording:`Felvétel folytatása`,playPreview:`Felvétel lejátszása`,emojiPicker:`Emoji-választó`,emojiSearch:`Keresés…`,playAudio:`Lejátszás`,pauseAudio:`Szünet`,openAudio:`Hang megnyitása`,removeAttachment:`Eltávolítás`,aiAssistant:`AI asszisztens`,operator:`Operátor`,openImage:`Kép megnyitása`,openPreview:`Előnézet megnyitása`,play:`Lejátszás`,pause:`Szünet`,typing:`ír…`,aiThinking:`gondolkodik…`,aiSearching:`keres…`,typingSomeone:`Valaki`,signInToChat:`Kérlek, jelentkezz be a beszélgetés megkezdéséhez.`,signInUnavailable:`A bejelentkezés jelenleg nem érhető el.`,googleSignIn:`Bejelentkezés Google-fiókkal`,googleUnavailable:`Google sign-in isn't available. Check your connection or ad blocker and try again.`,passkeySignIn:`Bejelentkezés passkey-jel`,passkeyRegister:`Először vagy itt? Hozz létre egy passkey-t`,passkeyError:`Nem sikerült bejelentkezni. Kérlek, próbáld újra.`,passkeyNoCredential:`Ezen az eszközön még nincs passkey — koppints a „Hozz létre egy passkey-t” opcióra a létrehozáshoz.`,googleSignInDemo:`Folytatás Google-fiókkal`,connectingOperator:`Egy operátor lett hozzárendelve, kérjük, várj…`,assignment:{eta:{minutes:`Egy munkatárs kb. {minutes} perc múlva válaszol`,soft:`Általában néhány percen belül válaszolunk`,businessHours:`A csapat {time} időpontban tér vissza`}},withOperator:`Mostantól {name} munkatárssal beszélgetsz`,operatorConnected:`Operátor csatlakozott`,chatResolved:`Beszélgetés lezárva`,chatResolvedByYou:`A beszélgetést te zártad le`,chatResolvedByOperator:`A beszélgetést {name} zárta le`,resolveConversation:`Beszélgetés lezárása`,sources:`Források`,moreSources:`+{count} további`,askQuestion:`Ask a question`,previewYou:`You: {text}`,threadsEmptyTitle:`No conversations yet`,threadsEmptyBody:`Start a conversation and it will show up here.`,format:{bold:`Bold`,italic:`Italic`,underline:`Underline`,strikethrough:`Strikethrough`,bulletList:`Bulleted list`,numberedList:`Numbered list`,link:`Link`,linkPlaceholder:`https://…`,linkSave:`Save`,linkCancel:`Cancel`,monospace:`Monospace`},queued:`Waiting for connection`,notDelivered:`Not delivered`,retry:`Retry`,offlineBanner:`You're offline`,backOnline:`Back online`,threadsErrorTitle:`Could not load your conversations`,threadsErrorBody:`Check your connection and try again.`,giphy:{title:`GIFs & Stickers`,searchPlaceholder:`Search GIPHY`,clear:`Clear`,tabGifs:`GIFs`,tabStickers:`Stickers`,error:`Couldn't load`,retry:`Retry`,empty:`No results`,poweredBy:`Powered by GIPHY`},scrollToLatest:`Scroll to latest`,conversationClosed:`This conversation is closed`,startNewConversation:`Start a new conversation`,conversationBlocked:`This conversation is blocked`,visitorBlocked:`You can no longer send messages`,conversationClosedTitle:`That's a wrap 👋`,conversationClosedHint:`This conversation is closed. Start a new one whenever you like.`},prechat:{title:`Mielőtt elkezdjük`,subtitle:`Néhány gyors adat, hogy csapatunk gyorsabban tudjon segíteni.`,labelName:`Név`,labelEmail:`E-mail`,labelPhone:`Telefon`,labelCustom:`Részletek`,required:`Kötelező`,invalidEmail:`Adj meg érvényes e-mail-címet`,invalidPhone:`Adj meg érvényes telefonszámot`,submit:`Folytatás`,submitFailed:`Nem sikerült elküldeni — próbáld újra.`},help:{searchPlaceholder:`Keresés a súgóban`,emptyTitle:`Még nincsenek cikkek`,emptyBody:`Az operátor még nem tett közzé semmit.`,back:`Vissza`,helpful:`Hasznos volt?`,yes:`Igen`,no:`Nem`,thanks:`Köszönjük a visszajelzést.`,unresolvedCta:`Még mindig segítségre van szükséged? Írj nekünk`,noResults:`Nincs találat`,articleNotFound:`A cikk nem található`,articleNotTranslated:`Ez a cikk még nem érhető el a nyelveden.`,writtenBy:`Írta: {names}`,relatedTitle:`Kapcsolódó cikkek`,collectionsCount:`{count, plural, =0 {Nincs gyűjtemény} one {# gyűjtemény} other {# gyűjtemény}}`,articlesCount:`{count, plural, =0 {Nincs cikk} one {Cikkek: #} other {Cikkek: #}}`,authorsByline:`Szerzők {first}{remaining, plural, =0 {} one { és további #} other { és további #}}`},news:{emptyTitle:`Még nincsenek frissítések`,emptyBody:`Nézz vissza ide termékhírekért és bejelentésekért.`,helpful:`Hasznos volt ez a cikk?`,yes:`Igen`,no:`Nem`,thanks:`Köszönjük a visszajelzést.`,searchPlaceholder:`Keresés a hírekben`,noResults:`Nincs találat`,editedAt:`szerkesztve: {when}`,articleNotFound:`A cikk nem található.`,articleNotTranslated:`Ez a bejegyzés még nem érhető el a nyelveden.`,readOriginal:`Eredeti elolvasása`,relatedTitle:`Kapcsolódó`,writtenBy:`Írta: {names}`,unread:`Olvasatlan hírek`},reactions:{ariaLabel:`Reakciók`,tapAria:`Reakció: {emoji}`},languageSelector:{title:`Olvasás más nyelven`,ariaLabel:`Cikk nyelvei`},branding:{poweredBy:`Üzemeltető:`,wexio:`Wexio`},sound:{mute:`Értesítési hangok némítása`,unmute:`Értesítési hangok bekapcsolása`},article:{tableOfContents:`Tartalomjegyzék`,tabFallback:`{n}. fül`},peek:{newMessage:`Új üzenet`,dismiss:`Bezárás`,aiAssistant:`AI asszisztens`,operator:`Operátor`},lightbox:{mediaPreview:`Média előnézet`,close:`Előnézet bezárása`,previous:`Előző`,next:`Következő`},authError:{turnstileTitle:`Nem sikerült ellenőrizni a böngésződet`,turnstileBody:`Nem tudtuk befejezni a biztonsági ellenőrzést. Ezt néha hálózati vagy reklámblokkoló okozza — próbáld újra vagy töltsd újra az oldalt.`,genericTitle:`Nem sikerült csatlakozni`,genericBody:`Valami hiba történt a bejelentkezés közben. Próbáld újra hamarosan.`,retry:`Próbáld újra`,dismiss:`Bezárás`},profile:{title:`A profilod`,subtitle:`Frissítsd az adataid, és állítsd be a widget viselkedését.`,uploadAvatar:`Fénykép cseréje`,removeAvatar:`Fénykép eltávolítása`,avatarUploading:`Feltöltés…`,preferencesHeading:`Beállítások`,preferenceLanguage:`Nyelv`,preferenceDesktopNotifications:`Asztali értesítések`,preferenceDesktopNotificationsHint:`Kapj rendszerértesítést, ha a widget nincs előtérben.`,preferenceThemeMode:`Téma`,themeAuto:`Mint a rendszer`,themeLight:`Világos`,themeDark:`Sötét`,themeLocked:`A témát az operátor állította be.`,pinnedHint:`Az operátor állította be — nem szerkeszthető.`,requiredHint:`Kötelező`,invalidEmail:`Adj meg érvényes e-mail-címet.`,invalidPhone:`Használj nemzetközi formátumot, pl. +14155552671.`,noFields:`Itt még nincs mit szerkeszteni.`,save:`Mentés`,saving:`Mentés…`,cancel:`Elvetés`,saved:`A módosítások elmentve.`,loading:`Profil betöltése…`,loadError:`A profil nem tölthető be. Próbáld újra.`,retry:`Újra`,errorFieldNotAllowed:`Ez a mező ebben a widgetben nem szerkeszthető. Próbáld újratölteni.`,errorFieldPinned:`Ezt a mezőt a fiókod zárolta.`,errorFieldInvalid:`Néhány érték érvénytelen. Ellenőrizd a kijelölt mezőket.`,errorThemeLocked:`A témát az operátor zárolta.`,errorFeatureDisabled:`A profilszerkesztést az operátor kikapcsolta.`,errorGeneric:`Nem sikerült menteni a módosításokat. Próbáld újra.`,notificationsBlocked:`Az értesítéseket a böngésző blokkolja. Frissítsd a webhely engedélyeit az engedélyezéshez.`,notificationsRequest:`Engedélyezd az értesítéseket, amikor megjelenik a kérés.`,systemFields:{avatar:`Fénykép`,wexioId:`Wexio ID`,telegramId:`Telegram ID`,whatsappId:`WhatsApp ID`,viberId:`Viber ID`,instagramId:`Instagram ID`,optInWhatsapp:`WhatsApp hozzájárulás`,webVerified:`Hitelesített látogató`,firstName:`Keresztnév`,lastName:`Vezetéknév`,username:`Felhasználónév`,language:`Nyelv`,email:`E-mail`,phone:`Telefon`,company:`Cég`,location:`Helyszín`,isValid:`Érvényes fiók`,chatStatus:`Csevegés állapota`,chatCategory:`Csevegés kategóriája`,priority:`Prioritás`,leadSource:`Lead forrása`,leadStatus:`Lead állapota`,interestLevel:`Érdeklődés szintje`,productInterest:`Termékérdeklődés`,budgetRange:`Keret`,purchaseTimeline:`Vásárlási időszak`,lastMessageSentAt:`Utolsó küldött üzenet`,lastMessageReceivedAt:`Utolsó kapott üzenet`,lastSeenAt:`Utoljára látva`,firstMessageReceivedAt:`Első kapcsolatfelvétel`,isBlocked:`Letiltva`,registrationDate:`Regisztráció`,aiAvailable:`AI segítség`,totalMessagesSent:`Küldött üzenetek`,totalMessagesReceived:`Fogadott üzenetek`,totalAiMessagesSent:`Küldött AI-üzenetek`,totalBotMessagesSent:`Küldött bot-üzenetek`,totalUserMessagesSent:`Küldött operátori üzenetek`,flowCompletionRate:`Flow befejezési arány`,lastFlowCompleted:`Utolsó befejezett flow`,totalFlowsStarted:`Megkezdett flow-k`,totalFlowsCompleted:`Befejezett flow-k`},systemFieldOptions:{chatStatus:{ISSUE:`Probléma`,RESOLVED:`Megoldva`,PENDING:`Függőben`,IN_PROGRESS:`Folyamatban`,CLOSED:`Lezárva`},chatCategory:{SALES:`Értékesítés`,SUPPORT:`Támogatás`,BILLING:`Számlázás`,FEEDBACK:`Visszajelzés`,GENERAL:`Általános`,OTHER:`Egyéb`},priority:{LOW:`Alacsony`,MEDIUM:`Közepes`,HIGH:`Magas`,URGENT:`Sürgős`},leadStatus:{NEW:`Új`,CONTACTED:`Megkeresve`,QUALIFIED:`Minősített`,NEGOTIATING:`Tárgyalás alatt`,WON:`Megnyerve`,LOST:`Elveszett`},interestLevel:{LOW:`Alacsony`,MEDIUM:`Közepes`,HIGH:`Magas`,VERY_HIGH:`Nagyon magas`}}},transcript:{title:`Conversation with {org}`,started:`Started on {when}`,exported:`Exported from {org} on {when}`,truncated:`Note: only the most recent messages are included.`,operator:`Operator`,you:`You`}};export{e as default};
|
|
2
|
+
//# sourceMappingURL=widget-react-DGh__emN.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
globalThis.process===void 0&&(globalThis.process={env:{},nextTick:function(e){setTimeout(e,0)},emit:function(){return!1}});import"react";import"react-dom";import"react/jsx-runtime";import"react-dom/client";var e={tabs:{home:`Home`,messages:`Messages`,help:`Help`,news:`News`,profile:`Profile`},header:{close:`Close`,back:`Back`,conversationSubtitle:`Our team can also help`,helpTitle:`Help`,newsTitle:`News`,expand:`Expand widget`,collapse:`Collapse widget`,messagesTitle:`Messages`,downloadTranscript:`Download transcript`,moreActions:`More`},launcher:{open:`Open chat`,close:`Close chat`,panel:`Chat`},tabError:{title:`Something went wrong`,hint:`This section couldn't be shown.`,retry:`Try again`},chunkError:{failed:`Couldn't load`,retry:`Retry`},home:{greetingHeadline:`Hi there 👋`,greetingSubheadline:`How can we help?`,askTitle:`Ask a question`,askSubtitle:`Our bot and team can help`,recentMessageLabel:`Recent message`,recentMessageTitle:`Recent message`,recentMessageFromFallback:`Gaia`,recentMessageAgo:`4h`,recentMessageSample:`Hi there 👋 Thanks for reaching out - we'll be right back with you.`,featuredArticleLoading:`Featured article`,featuredArticleTap:`Tap to read`,featuredArticleEmpty:`Pick an article`,featuredArticleSetUp:`Configure this block in your dashboard`,featuredArticleDemoEyebrow:`Pioneer · Save the date`,featuredArticleDemoHeadline:`October 8, 2026`,featuredArticleDemoSubline:`San Francisco · In-person + virtual`,featuredArticleDemoCta:`See the launch agenda`,seeAgenda:`See the launch agenda`,browseHelp:`Browse Help`,whatsNew:`What's new`,searchPlaceholder:`Search for help`,pinnedArticlesTitle:`Read these first`,popularArticlesTitle:`Popular articles`,pinnedArticleRow:`Pinned article {n}`,newsPreviewTitle:`Latest news`,seeAll:`See all`,newsPreviewRow:`News update {n}`,myConversationsTitle:`Your conversations`,myConversationsEmpty:`View your conversations`,teamStatusOnline:`We're online`,teamStatusReplyInstant:`Usually replies instantly`,teamStatusReplyMinutes:`Usually replies in a few minutes`,teamStatusReplyHours:`Usually replies within a few hours`,teamStatusReplyDay:`Usually replies within a day`,teamStatusAiOnline:`{name} can help right now`,teamStatusOperatorsBack:`Operators back {when}`,teamStatusOfflineUntil:`We're away, back {when}`,teamStatusOfflineSoon:`We're away, back soon`,recentMessageAttachment:`Attachment`},messages:{today:`Today`,yesterday:`Yesterday`,unreadMessages:`Unread messages`,emptyTitle:`No messages yet`,emptyBody:`Start a conversation and our team will get back to you here.`,sendCta:`Send us a message`,attach:`Attach a file`,commands:`Quick commands`,record:`Record a voice message`,stopRecording:`Stop recording`,recording:`Recording…`,uploading:`Uploading…`,uploadFailed:`Upload failed`,voiceDenied:`Microphone access denied`,voiceUnsupported:`Voice recording isn't supported in this browser`,fileTooLarge:`File is too large (max 10MB)`,fileMimeNotAllowed:`This file type isn't supported`,emoji:`Insert emoji`,cancelRecording:`Cancel recording`,pauseRecording:`Pause recording`,resumeRecording:`Resume recording`,playPreview:`Play recording`,emojiPicker:`Emoji picker`,emojiSearch:`Search…`,playAudio:`Play`,pauseAudio:`Pause`,openAudio:`Open audio`,removeAttachment:`Remove`,aiAssistant:`AI assistant`,operator:`Operator`,openImage:`Open image`,openPreview:`Open preview`,play:`Play`,pause:`Pause`,typing:`typing…`,aiThinking:`thinking…`,aiSearching:`browsing…`,typingSomeone:`Someone`,signInToChat:`Please sign in to start the conversation.`,signInUnavailable:`Sign-in is not available right now.`,googleSignIn:`Sign in with Google`,googleUnavailable:`Google sign-in isn't available. Check your connection or ad blocker and try again.`,passkeySignIn:`Sign in with a passkey`,passkeyRegister:`First time? Set up a passkey`,passkeyError:`Couldn't sign in. Please try again.`,passkeyNoCredential:`No passkey on this device yet — tap “Set up a passkey” to create one.`,googleSignInDemo:`Continue with Google`,connectingOperator:`An operator has been assigned, please wait…`,assignment:{eta:{minutes:`An operator will reply in about {minutes} min`,soft:`We usually reply within a few minutes`,businessHours:`The team will be back at {time}`}},withOperator:`You're now chatting with {name}`,operatorConnected:`Operator connected`,chatResolved:`Conversation resolved`,chatResolvedByYou:`Conversation resolved by you`,chatResolvedByOperator:`Conversation resolved by {name}`,resolveConversation:`Resolve conversation`,sources:`Sources`,moreSources:`+{count} more`,askQuestion:`Ask a question`,previewYou:`You: {text}`,threadsEmptyTitle:`No conversations yet`,threadsEmptyBody:`Start a conversation and it will show up here.`,format:{bold:`Bold`,italic:`Italic`,underline:`Underline`,strikethrough:`Strikethrough`,bulletList:`Bulleted list`,numberedList:`Numbered list`,link:`Link`,linkPlaceholder:`https://…`,linkSave:`Save`,linkCancel:`Cancel`,monospace:`Monospace`},queued:`Waiting for connection`,notDelivered:`Not delivered`,retry:`Retry`,offlineBanner:`You're offline`,backOnline:`Back online`,threadsErrorTitle:`Could not load your conversations`,threadsErrorBody:`Check your connection and try again.`,giphy:{title:`GIFs & Stickers`,searchPlaceholder:`Search GIPHY`,clear:`Clear`,tabGifs:`GIFs`,tabStickers:`Stickers`,error:`Couldn't load`,retry:`Retry`,empty:`No results`,poweredBy:`Powered by GIPHY`},scrollToLatest:`Scroll to latest`,conversationClosed:`This conversation is closed`,startNewConversation:`Start a new conversation`,conversationBlocked:`This conversation is blocked`,visitorBlocked:`You can no longer send messages`,conversationClosedTitle:`That's a wrap 👋`,conversationClosedHint:`This conversation is closed. Start a new one whenever you like.`},prechat:{title:`Before we start`,subtitle:`A few quick details so our team can help you faster.`,labelName:`Name`,labelEmail:`Email`,labelPhone:`Phone`,labelCustom:`Details`,required:`Required`,invalidEmail:`Please enter a valid email`,invalidPhone:`Please enter a valid phone number`,submit:`Continue`,submitFailed:`Couldn't submit - please try again.`},help:{searchPlaceholder:`Search for help`,emptyTitle:`No articles yet`,emptyBody:`Your operator hasn't published anything yet.`,back:`Back`,helpful:`Was this helpful?`,yes:`Yes`,no:`No`,thanks:`Thanks for the feedback.`,unresolvedCta:`Still need help? Message us`,noResults:`No results`,articleNotFound:`Article not found`,articleNotTranslated:`This article isn't available in your language yet.`,writtenBy:`Written by {names}`,relatedTitle:`Related articles`,collectionsCount:`{count, plural, =0 {No collections} one {# collection} other {# collections}}`,articlesCount:`{count, plural, =0 {No articles} one {Articles: #} other {Articles: #}}`,authorsByline:`Authors {first}{remaining, plural, =0 {} one { and # more} other { and # more}}`},news:{emptyTitle:`No updates yet`,emptyBody:`Check back here for product news and announcements.`,helpful:`Was this article helpful?`,yes:`Yes`,no:`No`,thanks:`Thanks for the feedback.`,searchPlaceholder:`Search news`,noResults:`No matching posts`,editedAt:`edited {when}`,articleNotFound:`Article not found.`,articleNotTranslated:`This post isn't available in your language yet.`,readOriginal:`Read the original`,relatedTitle:`Related`,writtenBy:`Written by {names}`,unread:`Unread news`},reactions:{ariaLabel:`Reactions`,tapAria:`React with {emoji}`},languageSelector:{title:`Read in another language`,ariaLabel:`Article languages`},branding:{poweredBy:`Powered by`,wexio:`Wexio`},sound:{mute:`Mute notification sounds`,unmute:`Unmute notification sounds`},article:{tableOfContents:`Table of contents`,tabFallback:`Tab {n}`},peek:{newMessage:`New message`,dismiss:`Dismiss`,aiAssistant:`AI assistant`,operator:`Operator`},lightbox:{mediaPreview:`Media preview`,close:`Close preview`,previous:`Previous`,next:`Next`},authError:{turnstileTitle:`Couldn't verify your browser`,turnstileBody:`We weren't able to complete the security check. This is sometimes a network or ad-blocker issue — try again, or reload the page.`,genericTitle:`Couldn't connect`,genericBody:`Something went wrong while signing you in. Please try again in a moment.`,retry:`Try again`,dismiss:`Dismiss`},profile:{title:`Your profile`,subtitle:`Update your info and how the widget behaves.`,uploadAvatar:`Change photo`,removeAvatar:`Remove photo`,avatarUploading:`Uploading…`,preferencesHeading:`Preferences`,preferenceLanguage:`Language`,preferenceDesktopNotifications:`Desktop notifications`,preferenceDesktopNotificationsHint:`Get a system notification when the widget isn't focused.`,preferenceThemeMode:`Theme`,themeAuto:`Match system`,themeLight:`Light`,themeDark:`Dark`,themeLocked:`Theme is set by the operator.`,pinnedHint:`Set by the operator — not editable.`,requiredHint:`Required`,invalidEmail:`Please enter a valid email address.`,invalidPhone:`Use international format, e.g. +14155552671.`,noFields:`There's nothing to edit here yet.`,save:`Save changes`,saving:`Saving…`,cancel:`Discard`,saved:`Changes saved.`,loading:`Loading profile…`,loadError:`Couldn't load your profile. Please try again.`,retry:`Retry`,errorFieldNotAllowed:`This field isn't editable in this widget. Try refreshing.`,errorFieldPinned:`This field is locked by your account.`,errorFieldInvalid:`Some values aren't valid. Check the highlighted fields.`,errorThemeLocked:`Theme is locked by the operator.`,errorFeatureDisabled:`Profile editing has been turned off by the operator.`,errorGeneric:`Couldn't save your changes. Please try again.`,notificationsBlocked:`Notifications are blocked by the browser. Update site permissions to enable.`,notificationsRequest:`Allow notifications when prompted to enable this.`,systemFields:{avatar:`Photo`,wexioId:`Wexio ID`,telegramId:`Telegram ID`,whatsappId:`WhatsApp ID`,viberId:`Viber ID`,instagramId:`Instagram ID`,optInWhatsapp:`WhatsApp opt-in`,webVerified:`Verified visitor`,firstName:`First name`,lastName:`Last name`,username:`Username`,language:`Language`,email:`Email`,phone:`Phone`,company:`Company`,location:`Location`,isValid:`Account valid`,chatStatus:`Chat status`,chatCategory:`Chat category`,priority:`Priority`,leadSource:`Lead source`,leadStatus:`Lead status`,interestLevel:`Interest level`,productInterest:`Product interest`,budgetRange:`Budget`,purchaseTimeline:`Purchase timeline`,lastMessageSentAt:`Last message sent`,lastMessageReceivedAt:`Last message received`,lastSeenAt:`Last seen`,firstMessageReceivedAt:`First contact`,isBlocked:`Blocked`,registrationDate:`Registered`,aiAvailable:`AI assistance`,totalMessagesSent:`Messages sent`,totalMessagesReceived:`Messages received`,totalAiMessagesSent:`AI messages sent`,totalBotMessagesSent:`Bot messages sent`,totalUserMessagesSent:`Operator messages sent`,flowCompletionRate:`Flow completion rate`,lastFlowCompleted:`Last completed flow`,totalFlowsStarted:`Flows started`,totalFlowsCompleted:`Flows completed`},systemFieldOptions:{chatStatus:{ISSUE:`Issue`,RESOLVED:`Resolved`,PENDING:`Pending`,IN_PROGRESS:`In progress`,CLOSED:`Closed`},chatCategory:{SALES:`Sales`,SUPPORT:`Support`,BILLING:`Billing`,FEEDBACK:`Feedback`,GENERAL:`General`,OTHER:`Other`},priority:{LOW:`Low`,MEDIUM:`Medium`,HIGH:`High`,URGENT:`Urgent`},leadStatus:{NEW:`New`,CONTACTED:`Contacted`,QUALIFIED:`Qualified`,NEGOTIATING:`Negotiating`,WON:`Won`,LOST:`Lost`},interestLevel:{LOW:`Low`,MEDIUM:`Medium`,HIGH:`High`,VERY_HIGH:`Very high`}}},transcript:{title:`Conversation with {org}`,started:`Started on {when}`,exported:`Exported from {org} on {when}`,truncated:`Note: only the most recent messages are included.`,operator:`Operator`,you:`You`}};export{e as default};
|
|
2
|
+
//# sourceMappingURL=widget-react-DIFOZ3QT.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
globalThis.process===void 0&&(globalThis.process={env:{},nextTick:function(e){setTimeout(e,0)},emit:function(){return!1}});import"react";import"react-dom";import"react/jsx-runtime";import"react-dom/client";function e(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))}var t=class{constructor(){this.listeners={}}on(e,t,n){if(this.listeners[e]||(this.listeners[e]=new Set),n?.once){let n=(...r)=>{this.un(e,n),t(...r)};return this.listeners[e].add(n),()=>this.un(e,n)}return this.listeners[e].add(t),()=>this.un(e,t)}un(e,t){var n;(n=this.listeners[e])==null||n.delete(t)}once(e,t){return this.on(e,t,{once:!0})}unAll(){this.listeners={}}emit(e,...t){this.listeners[e]&&this.listeners[e].forEach((e=>e(...t)))}},n={decode:function(t,n){return e(this,void 0,void 0,(function*(){let e=new AudioContext({sampleRate:n});try{return yield e.decodeAudioData(t)}finally{e.close()}}))},createBuffer:function(e,t){if(!e||e.length===0)throw Error(`channelData must be a non-empty array`);if(t<=0)throw Error(`duration must be greater than 0`);if(typeof e[0]==`number`&&(e=[e]),!e[0]||e[0].length===0)throw Error(`channelData must contain non-empty channel arrays`);(function(e){let t=e[0];if(t.some((e=>e>1||e<-1))){let n=t.length,r=0;for(let e=0;e<n;e++){let n=Math.abs(t[e]);n>r&&(r=n)}for(let t of e)for(let e=0;e<n;e++)t[e]/=r}})(e);let n=e.map((e=>e instanceof Float32Array?e:Float32Array.from(e)));return{duration:t,length:n[0].length,sampleRate:n[0].length/t,numberOfChannels:n.length,getChannelData:e=>{let t=n[e];if(!t)throw Error(`Channel ${e} not found`);return t},copyFromChannel:AudioBuffer.prototype.copyFromChannel,copyToChannel:AudioBuffer.prototype.copyToChannel}}};function r(e,t){let n=t.xmlns?document.createElementNS(t.xmlns,e):document.createElement(e);for(let[e,i]of Object.entries(t))if(e===`children`&&i)for(let[e,t]of Object.entries(i))t instanceof Node?n.appendChild(t):typeof t==`string`?n.appendChild(document.createTextNode(t)):n.appendChild(r(e,t));else e===`style`?Object.assign(n.style,i):e===`textContent`?n.textContent=i:n.setAttribute(e,i.toString());return n}function i(e,t,n){let i=r(e,t||{});return n?.appendChild(i),i}var a=Object.freeze({__proto__:null,createElement:i,default:i}),o={fetchBlob:function(t,n,r){return e(this,void 0,void 0,(function*(){let i=yield fetch(t,r);if(i.status>=400)throw Error(`Failed to fetch ${t}: ${i.status} (${i.statusText})`);return function(t,n){e(this,void 0,void 0,(function*(){if(!t.body||!t.headers)return;let e=t.body.getReader(),r=Number(t.headers.get(`Content-Length`))||0,i=0,a=e=>{i+=e?.length||0,n(Math.round(i/r*100))};try{for(;;){let t=yield e.read();if(t.done)break;a(t.value)}}catch(e){console.warn(`Progress tracking error:`,e)}}))}(i.clone(),n),i.blob()}))}};function s(e){let t=e,n=new Set;return{get value(){return t},set(e){Object.is(t,e)||(t=e,n.forEach((e=>e(t))))},update(e){this.set(e(t))},subscribe:e=>(n.add(e),()=>n.delete(e))}}function c(e,t){let n=s(e());return t.forEach((t=>t.subscribe((()=>{let t=e();Object.is(n.value,t)||n.set(t)})))),{get value(){return n.value},subscribe:e=>n.subscribe(e)}}function l(e,t){let n,r=()=>{n&&(n(),n=void 0),n=e()},i=t.map((e=>e.subscribe(r)));return r(),()=>{n&&(n(),n=void 0),i.forEach((e=>e()))}}var u=class extends t{get isPlayingSignal(){return this._isPlaying}get currentTimeSignal(){return this._currentTime}get durationSignal(){return this._duration}get volumeSignal(){return this._volume}get mutedSignal(){return this._muted}get playbackRateSignal(){return this._playbackRate}get seekingSignal(){return this._seeking}constructor(e){super(),this.isExternalMedia=!1,this.reactiveMediaEventCleanups=[],e.media?(this.media=e.media,this.isExternalMedia=!0):this.media=document.createElement(`audio`),this._isPlaying=s(!1),this._currentTime=s(0),this._duration=s(0),this._volume=s(this.media.volume),this._muted=s(this.media.muted),this._playbackRate=s(this.media.playbackRate||1),this._seeking=s(!1),this.setupReactiveMediaEvents(),e.mediaControls&&(this.media.controls=!0),e.autoplay&&(this.media.autoplay=!0),e.playbackRate!=null&&this.onMediaEvent(`canplay`,(()=>{e.playbackRate!=null&&(this.media.playbackRate=e.playbackRate)}),{once:!0})}setupReactiveMediaEvents(){this.reactiveMediaEventCleanups.push(this.onMediaEvent(`play`,(()=>{this._isPlaying.set(!0)}))),this.reactiveMediaEventCleanups.push(this.onMediaEvent(`pause`,(()=>{this._isPlaying.set(!1)}))),this.reactiveMediaEventCleanups.push(this.onMediaEvent(`ended`,(()=>{this._isPlaying.set(!1)}))),this.reactiveMediaEventCleanups.push(this.onMediaEvent(`timeupdate`,(()=>{this._currentTime.set(this.media.currentTime)}))),this.reactiveMediaEventCleanups.push(this.onMediaEvent(`durationchange`,(()=>{this._duration.set(this.media.duration||0)}))),this.reactiveMediaEventCleanups.push(this.onMediaEvent(`loadedmetadata`,(()=>{this._duration.set(this.media.duration||0)}))),this.reactiveMediaEventCleanups.push(this.onMediaEvent(`seeking`,(()=>{this._seeking.set(!0)}))),this.reactiveMediaEventCleanups.push(this.onMediaEvent(`seeked`,(()=>{this._seeking.set(!1)}))),this.reactiveMediaEventCleanups.push(this.onMediaEvent(`volumechange`,(()=>{this._volume.set(this.media.volume),this._muted.set(this.media.muted)}))),this.reactiveMediaEventCleanups.push(this.onMediaEvent(`ratechange`,(()=>{this._playbackRate.set(this.media.playbackRate)})))}onMediaEvent(e,t,n){return this.media.addEventListener(e,t,n),()=>this.media.removeEventListener(e,t,n)}getSrc(){return this.media.currentSrc||this.media.src||``}revokeSrc(){let e=this.getSrc();e.startsWith(`blob:`)&&URL.revokeObjectURL(e)}canPlayType(e){return this.media.canPlayType(e)!==``}setSrc(e,t){let n=this.getSrc();if(e&&n===e)return;this.revokeSrc();let r=t instanceof Blob&&(this.canPlayType(t.type)||!e)?URL.createObjectURL(t):e;if(n&&this.media.removeAttribute(`src`),r||e)try{this.media.src=r}catch{this.media.src=e}}destroy(){this.reactiveMediaEventCleanups.forEach((e=>e())),this.reactiveMediaEventCleanups=[],this.isExternalMedia||(this.media.pause(),this.revokeSrc(),this.media.removeAttribute(`src`),this.media.load(),this.media.remove())}setMediaElement(e){this.reactiveMediaEventCleanups.forEach((e=>e())),this.reactiveMediaEventCleanups=[],this.media=e,this.setupReactiveMediaEvents()}play(){return e(this,void 0,void 0,(function*(){try{return yield this.media.play()}catch(e){if(e instanceof DOMException&&e.name===`AbortError`)return;throw e}}))}pause(){this.media.pause()}isPlaying(){return!this.media.paused&&!this.media.ended}setTime(e){this.media.currentTime=Math.max(0,Math.min(e,this.getDuration()))}getDuration(){return this.media.duration}getCurrentTime(){return this.media.currentTime}getVolume(){return this.media.volume}setVolume(e){this.media.volume=e}getMuted(){return this.media.muted}setMuted(e){this.media.muted=e}getPlaybackRate(){return this.media.playbackRate}isSeeking(){return this.media.seeking}setPlaybackRate(e,t){t!=null&&(this.media.preservesPitch=t),this.media.playbackRate=e}getMediaElement(){return this.media}setSinkId(e){return this.media.setSinkId(e)}};function d({maxTop:e,maxBottom:t,halfHeight:n,vScale:r,barMinHeight:i=0,barAlign:a}){let o=Math.round(e*n*r),s=o+Math.round(t*n*r)||1;return s<i&&(s=i,a||(o=s/2)),{topHeight:o,totalHeight:s}}function f({barAlign:e,halfHeight:t,topHeight:n,totalHeight:r,canvasHeight:i}){return e===`top`?0:e===`bottom`?i-r:t-n}function p(e,t,n){let r=t-e.left,i=n-e.top;return[r/e.width,i/e.height]}function m(e){return!!(e.barWidth||e.barGap||e.barAlign)}function h(e,t){if(!m(t))return e;let n=t.barWidth||.5,r=n+(t.barGap||n/2);return r===0?e:Math.floor(e/r)*r}function g({scrollLeft:e,totalWidth:t,numCanvases:n}){if(t===0)return[0];let r=e/t,i=Math.floor(r*n);return[i-1,i,i+1]}function _(e){let t=e._cleanup;typeof t==`function`&&t()}function v(e){let t=s({scrollLeft:e.scrollLeft,scrollWidth:e.scrollWidth,clientWidth:e.clientWidth}),n=c((()=>function(e){let{scrollLeft:t,scrollWidth:n,clientWidth:r}=e;if(n===0)return{startX:0,endX:1};let i=t/n,a=(t+r)/n;return{startX:Math.max(0,Math.min(1,i)),endX:Math.max(0,Math.min(1,a))}}(t.value)),[t]),r=c((()=>function(e){return{left:e.scrollLeft,right:e.scrollLeft+e.clientWidth}}(t.value)),[t]),i=()=>{t.set({scrollLeft:e.scrollLeft,scrollWidth:e.scrollWidth,clientWidth:e.clientWidth})};return e.addEventListener(`scroll`,i,{passive:!0}),{scrollData:t,percentages:n,bounds:r,cleanup:()=>{e.removeEventListener(`scroll`,i),_(t)}}}var y=class extends t{constructor(e,t){super(),this.timeouts=[],this.isScrollable=!1,this.audioData=null,this.resizeObserver=null,this.lastContainerWidth=0,this.isDragging=!1,this.subscriptions=[],this.unsubscribeOnScroll=[],this.dragStream=null,this.scrollStream=null,this.containerInlinePadding=0,this.subscriptions=[],this.options=e;let n=this.parentFromOptionsContainer(e.container);this.parent=n;let[r,i]=this.initHtml();n.appendChild(r),this.container=r,this.scrollContainer=i.querySelector(`.scroll`),this.wrapper=i.querySelector(`.wrapper`),this.canvasWrapper=i.querySelector(`.canvases`),this.progressWrapper=i.querySelector(`.progress`),this.cursor=i.querySelector(`.cursor`),this.calculateInlinePadding(),t&&i.appendChild(t),this.initEvents()}parentFromOptionsContainer(e){let t;if(typeof e==`string`?t=document.querySelector(e):e instanceof HTMLElement&&(t=e),!t)throw Error(`Container not found`);return t}initEvents(){this.wrapper.addEventListener(`click`,(e=>{let[t,n]=p(this.wrapper.getBoundingClientRect(),e.clientX,e.clientY);this.emit(`click`,t,n)})),this.wrapper.addEventListener(`dblclick`,(e=>{let[t,n]=p(this.wrapper.getBoundingClientRect(),e.clientX,e.clientY);this.emit(`dblclick`,t,n)})),!0!==this.options.dragToSeek&&typeof this.options.dragToSeek!=`object`||this.initDrag(),this.scrollStream=v(this.scrollContainer);let e=l((()=>{let{startX:e,endX:t}=this.scrollStream.percentages.value,{left:n,right:r}=this.scrollStream.bounds.value;this.emit(`scroll`,e,t,n,r)}),[this.scrollStream.percentages,this.scrollStream.bounds]);if(this.subscriptions.push(e),typeof ResizeObserver==`function`){let e=this.createDelay(100);this.resizeObserver=new ResizeObserver((()=>{e().then((()=>this.onContainerResize())).catch((()=>{}))})),this.resizeObserver.observe(this.scrollContainer)}}onContainerResize(){let e=this.parent.clientWidth;this.calculateInlinePadding(),e===this.lastContainerWidth&&this.options.height!==`auto`||(this.lastContainerWidth=e,this.reRender(),this.emit(`resize`))}initDrag(){if(this.dragStream)return;this.dragStream=function(e,t={}){let{threshold:n=3,mouseButton:r=0,touchDelay:i=100}=t,a=s(null),o=new Map,c=matchMedia(`(pointer: coarse)`).matches,l=()=>{},u=t=>{if(t.button!==r||(o.set(t.pointerId,t),o.size>1))return;let s=t.clientX,u=t.clientY,d=!1,f=Date.now(),{left:p,top:m}=e.getBoundingClientRect(),h=e=>{if(e.defaultPrevented||o.size>1||c&&Date.now()-f<i)return;let t=e.clientX,r=e.clientY,l=t-s,h=r-u;(d||Math.abs(l)>n||Math.abs(h)>n)&&(e.preventDefault(),e.stopPropagation(),d||(a.set({type:`start`,x:s-p,y:u-m}),d=!0),a.set({type:`move`,x:t-p,y:r-m,deltaX:l,deltaY:h}),s=t,u=r)},g=e=>{if(o.delete(e.pointerId),d){let t=e.clientX,n=e.clientY;a.set({type:`end`,x:t-p,y:n-m})}l()},_=e=>{o.delete(e.pointerId),e.relatedTarget&&e.relatedTarget!==document.documentElement||g(e)},v=e=>{d&&(e.stopPropagation(),e.preventDefault())},y=e=>{e.defaultPrevented||o.size>1||d&&e.preventDefault()};document.addEventListener(`pointermove`,h),document.addEventListener(`pointerup`,g),document.addEventListener(`pointerout`,_),document.addEventListener(`pointercancel`,_),document.addEventListener(`touchmove`,y,{passive:!1}),document.addEventListener(`click`,v,{capture:!0}),l=()=>{document.removeEventListener(`pointermove`,h),document.removeEventListener(`pointerup`,g),document.removeEventListener(`pointerout`,_),document.removeEventListener(`pointercancel`,_),document.removeEventListener(`touchmove`,y),setTimeout((()=>{document.removeEventListener(`click`,v,{capture:!0})}),10)}};return e.addEventListener(`pointerdown`,u),{signal:a,cleanup:()=>{l(),e.removeEventListener(`pointerdown`,u),o.clear(),_(a)}}}(this.wrapper);let e=l((()=>{let e=this.dragStream.signal.value;if(!e)return;let t=this.wrapper.getBoundingClientRect().width,n=(r=e.x/t)<0?0:r>1?1:r;var r;e.type===`start`?(this.isDragging=!0,this.emit(`dragstart`,n)):e.type===`move`?this.emit(`drag`,n):e.type===`end`&&(this.isDragging=!1,this.emit(`dragend`,n))}),[this.dragStream.signal]);this.subscriptions.push(e)}calculateInlinePadding(){let{paddingLeft:e,paddingRight:t}=getComputedStyle(this.scrollContainer),n=parseFloat(e)+parseFloat(t);this.containerInlinePadding=Number.isNaN(n)?0:n}initHtml(){let e=document.createElement(`div`),t=e.attachShadow({mode:`open`}),n=this.options.cspNonce&&typeof this.options.cspNonce==`string`?this.options.cspNonce.replace(/"/g,``):``;return t.innerHTML=`\n <style${n?` nonce="${n}"`:``}>\n :host {\n user-select: none;\n min-width: 1px;\n }\n :host audio {\n display: block;\n width: 100%;\n }\n :host .scroll {\n overflow-x: auto;\n overflow-y: hidden;\n width: 100%;\n position: relative;\n }\n :host .noScrollbar {\n scrollbar-color: transparent;\n scrollbar-width: none;\n }\n :host .noScrollbar::-webkit-scrollbar {\n display: none;\n -webkit-appearance: none;\n }\n :host .wrapper {\n position: relative;\n overflow: visible;\n z-index: 2;\n }\n :host .canvases {\n min-height: ${this.getHeight(this.options.height,this.options.splitChannels)}px;\n pointer-events: none;\n }\n :host .canvases > div {\n position: relative;\n }\n :host canvas {\n display: block;\n position: absolute;\n top: 0;\n image-rendering: pixelated;\n }\n :host .progress {\n pointer-events: none;\n position: absolute;\n z-index: 2;\n top: 0;\n left: 0;\n width: 0;\n height: 100%;\n overflow: hidden;\n }\n :host .progress > div {\n position: relative;\n }\n :host .cursor {\n pointer-events: none;\n position: absolute;\n z-index: 5;\n top: 0;\n left: 0;\n height: 100%;\n border-radius: 2px;\n }\n </style>\n\n <div class="scroll" part="scroll">\n <div class="wrapper" part="wrapper">\n <div class="canvases" part="canvases"></div>\n <div class="progress" part="progress"></div>\n <div class="cursor" part="cursor"></div>\n </div>\n </div>\n `,[e,t]}setOptions(e){var t;if(this.options.container!==e.container){let t=this.parentFromOptionsContainer(e.container);t.appendChild(this.container),this.parent=t}!0===e.dragToSeek||typeof this.options.dragToSeek==`object`?this.initDrag():((t=this.dragStream)==null||t.cleanup(),this.dragStream=null),this.options=e,this.reRender()}getWrapper(){return this.wrapper}getWidth(){return this.scrollContainer.clientWidth-this.containerInlinePadding}getScroll(){return this.scrollContainer.scrollLeft}setScroll(e){this.scrollContainer.scrollLeft=e}setScrollPercentage(e){let{scrollWidth:t}=this.scrollContainer,n=t*e;this.setScroll(n)}destroy(){var e;this.subscriptions.forEach((e=>e())),this.container.remove(),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),(e=this.unsubscribeOnScroll)==null||e.forEach((e=>e())),this.unsubscribeOnScroll=[],this.dragStream&&(this.dragStream.cleanup(),this.dragStream=null),this.scrollStream&&(this.scrollStream.cleanup(),this.scrollStream=null)}createDelay(e=10){let t,n,r=()=>{t&&(clearTimeout(t),t=void 0),n&&(n(),n=void 0)};return this.timeouts.push(r),()=>new Promise(((i,a)=>{r(),n=a,t=setTimeout((()=>{t=void 0,n=void 0,i()}),e)}))}getHeight(e,t){let n=this.audioData?.numberOfChannels||1;return function({optionsHeight:e,optionsSplitChannels:t,parentHeight:n,numberOfChannels:r,defaultHeight:i=128}){if(e==null)return i;let a=Number(e);if(!isNaN(a))return a;if(e===`auto`){let e=n||i;return t?.every((e=>!e.overlay))?e/r:e}return i}({optionsHeight:e,optionsSplitChannels:t,parentHeight:this.parent.clientHeight,numberOfChannels:n,defaultHeight:128})}convertColorValues(e,t){return function(e,t,n){if(!Array.isArray(e))return e||``;if(e.length===0)return`#999`;if(e.length<2)return e[0]||``;let r=document.createElement(`canvas`),i=r.getContext(`2d`),a=n??r.height*t,o=i.createLinearGradient(0,0,0,a||t),s=1/(e.length-1);return e.forEach(((e,t)=>{o.addColorStop(t*s,e)})),o}(e,this.getPixelRatio(),t?.canvas.height)}getPixelRatio(){return e=window.devicePixelRatio,Math.max(1,e||1);var e}renderBarWaveform(e,t,n,r){let{width:i,height:a}=n.canvas,{halfHeight:o,barWidth:s,barRadius:c,barIndexScale:l,barSpacing:u,barMinHeight:p}=function({width:e,height:t,length:n,options:r,pixelRatio:i}){let a=t/2,o=r.barWidth?r.barWidth*i:1,s=r.barGap?r.barGap*i:r.barWidth?o/2:0,c=o+s||1;return{halfHeight:a,barWidth:o,barGap:s,barRadius:r.barRadius||0,barMinHeight:r.barMinHeight?r.barMinHeight*i:0,barIndexScale:n>0?e/c/n:0,barSpacing:c}}({width:i,height:a,length:(e[0]||[]).length,options:t,pixelRatio:this.getPixelRatio()}),m=function({channelData:e,barIndexScale:t,barSpacing:n,barWidth:r,halfHeight:i,vScale:a,canvasHeight:o,barAlign:s,barMinHeight:c}){let l=e[0]||[],u=e[1]||l,p=l.length,m=[],h=0,g=0,_=0;for(let e=0;e<=p;e++){let p=Math.round(e*t);if(p>h){let{topHeight:e,totalHeight:t}=d({maxTop:g,maxBottom:_,halfHeight:i,vScale:a,barMinHeight:c,barAlign:s}),l=f({barAlign:s,halfHeight:i,topHeight:e,totalHeight:t,canvasHeight:o});m.push({x:h*n,y:l,width:r,height:t}),h=p,g=0,_=0}let v=Math.abs(l[e]||0),y=Math.abs(u[e]||0);v>g&&(g=v),y>_&&(_=y)}return m}({channelData:e,barIndexScale:l,barSpacing:u,barWidth:s,halfHeight:o,vScale:r,canvasHeight:a,barAlign:t.barAlign,barMinHeight:p});n.beginPath();for(let e of m)c&&`roundRect`in n?n.roundRect(e.x,e.y,e.width,e.height,c):n.rect(e.x,e.y,e.width,e.height);n.fill(),n.closePath()}renderLineWaveform(e,t,n,r){let{width:i,height:a}=n.canvas,o=function({channelData:e,width:t,height:n,vScale:r}){let i=n/2,a=e[0]||[];return[a,e[1]||a].map(((e,n)=>{let a=e.length,o=a?t/a:0,s=i,c=n===0?-1:1,l=[{x:0,y:s}],u=0,d=0;for(let t=0;t<=a;t++){let n=Math.round(t*o);if(n>u){let e=s+(Math.round(d*i*r)||1)*c;l.push({x:u,y:e}),u=n,d=0}let a=Math.abs(e[t]||0);a>d&&(d=a)}return l.push({x:u,y:s}),l}))}({channelData:e,width:i,height:a,vScale:r});n.beginPath();for(let e of o)if(e.length){n.moveTo(e[0].x,e[0].y);for(let t=1;t<e.length;t++){let r=e[t];n.lineTo(r.x,r.y)}}n.fill(),n.closePath()}renderWaveform(e,t,n){if(n.fillStyle=this.convertColorValues(t.waveColor,n),t.renderFunction)return void t.renderFunction(e,n);let r=function({channelData:e,barHeight:t,normalize:n,maxPeak:r}){let i=t||1;if(!n)return i;let a=e[0];if(!a||a.length===0)return i;let o=r??0;if(!r)for(let e=0;e<a.length;e++){let t=a[e]??0,n=Math.abs(t);n>o&&(o=n)}return o?i/o:i}({channelData:e,barHeight:t.barHeight,normalize:t.normalize,maxPeak:t.maxPeak});m(t)?this.renderBarWaveform(e,t,n,r):this.renderLineWaveform(e,t,n,r)}renderSingleCanvas(e,t,n,r,i,a,o){let s=this.getPixelRatio(),c=document.createElement(`canvas`);c.width=Math.round(n*s),c.height=Math.round(r*s),c.style.width=`${n}px`,c.style.height=`${r}px`,c.style.left=`${Math.round(i)}px`,a.appendChild(c);let l=c.getContext(`2d`);if(t.renderFunction?(l.fillStyle=this.convertColorValues(t.waveColor,l),t.renderFunction(e,l)):this.renderWaveform(e,t,l),c.width>0&&c.height>0){let e=c.cloneNode(),n=e.getContext(`2d`);n.drawImage(c,0,0),n.globalCompositeOperation=`source-in`,n.fillStyle=this.convertColorValues(t.progressColor,n),n.fillRect(0,0,c.width,c.height),o.appendChild(e)}}renderMultiCanvas(e,t,n,r,i,a){let o=this.getPixelRatio(),{clientWidth:s}=this.scrollContainer,c=n/o,l=function({clientWidth:e,totalWidth:t,options:n}){return h(Math.min(8e3,e,t),n)}({clientWidth:s,totalWidth:c,options:t}),u={};if(l===0)return;let d=n=>{if(n<0||n>=f||u[n])return;u[n]=!0;let o=n*l,s=Math.min(c-o,l);if(s=h(s,t),s<=0)return;let d=function({channelData:e,offset:t,clampedWidth:n,totalWidth:r}){return e.map((e=>{let i=Math.floor(t/r*e.length),a=Math.floor((t+n)/r*e.length);return e.slice(i,a)}))}({channelData:e,offset:o,clampedWidth:s,totalWidth:c});this.renderSingleCanvas(d,t,s,r,o,i,a)},f=Math.ceil(c/l);if(!this.isScrollable){for(let e=0;e<f;e++)d(e);return}if(g({scrollLeft:this.scrollContainer.scrollLeft,totalWidth:c,numCanvases:f}).forEach((e=>d(e))),f>1){let e=this.on(`scroll`,(()=>{let{scrollLeft:e}=this.scrollContainer;Object.keys(u).length>10&&(i.innerHTML=``,a.innerHTML=``,u={}),g({scrollLeft:e,totalWidth:c,numCanvases:f}).forEach((e=>d(e)))}));this.unsubscribeOnScroll.push(e)}}renderChannel(e,t,n,r){var{overlay:i}=t,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(t,[`overlay`]);let o=document.createElement(`div`),s=this.getHeight(a.height,a.splitChannels);o.style.height=`${s}px`,i&&r>0&&(o.style.marginTop=`-${s}px`),this.canvasWrapper.style.minHeight=`${s}px`,this.canvasWrapper.appendChild(o);let c=o.cloneNode();this.progressWrapper.appendChild(c),this.renderMultiCanvas(e,a,n,s,o,c)}render(t){return e(this,void 0,void 0,(function*(){this.timeouts.forEach((e=>e())),this.timeouts=[],this.canvasWrapper.innerHTML=``,this.progressWrapper.innerHTML=``,this.options.width!=null&&(this.scrollContainer.style.width=typeof this.options.width==`number`?`${this.options.width}px`:this.options.width);let e=this.getPixelRatio(),n=this.scrollContainer.clientWidth-this.containerInlinePadding,{scrollWidth:r,isScrollable:i,useParentWidth:a,width:o}=function({duration:e,minPxPerSec:t=0,parentWidth:n,fillParent:r,pixelRatio:i}){let a=Math.ceil(e*t),o=a>n,s=!!(r&&!o);return{scrollWidth:a,isScrollable:o,useParentWidth:s,width:(s?n:a)*i}}({duration:t.duration,minPxPerSec:this.options.minPxPerSec||0,parentWidth:n,fillParent:this.options.fillParent,pixelRatio:e});if(this.isScrollable=i,this.wrapper.style.width=a?`100%`:`${r}px`,this.scrollContainer.style.overflowX=this.isScrollable?`auto`:`hidden`,this.scrollContainer.classList.toggle(`noScrollbar`,!!this.options.hideScrollbar),this.cursor.style.backgroundColor=`${this.options.cursorColor||this.options.progressColor}`,this.cursor.style.width=`${this.options.cursorWidth}px`,this.audioData=t,this.emit(`render`),this.options.splitChannels)for(let e=0;e<t.numberOfChannels;e++){let n=Object.assign(Object.assign({},this.options),this.options.splitChannels?.[e]);this.renderChannel([t.getChannelData(e)],n,o,e)}else{let e=[t.getChannelData(0)];t.numberOfChannels>1&&e.push(t.getChannelData(1)),this.renderChannel(e,this.options,o,0)}Promise.resolve().then((()=>this.emit(`rendered`)))}))}reRender(){if(this.unsubscribeOnScroll.forEach((e=>e())),this.unsubscribeOnScroll=[],!this.audioData)return;let{scrollWidth:e}=this.scrollContainer,{right:t}=this.progressWrapper.getBoundingClientRect();if(this.render(this.audioData),!this.isScrollable&&this.scrollContainer.scrollLeft)this.scrollContainer.scrollLeft=0;else if(this.isScrollable&&e!==this.scrollContainer.scrollWidth){let{right:e}=this.progressWrapper.getBoundingClientRect(),n=function(e){let t=2*e;return(t<0?Math.floor(t):Math.ceil(t))/2}(e-t);this.scrollContainer.scrollLeft+=n}}zoom(e){this.options.minPxPerSec=e,this.reRender()}scrollIntoView(e,t=!1){let{scrollLeft:n,scrollWidth:r,clientWidth:i}=this.scrollContainer,a=e*r,o=n,s=n+i,c=i/2;if(this.isDragging)a+30>s?this.scrollContainer.scrollLeft+=30:a-30<o&&(this.scrollContainer.scrollLeft-=30);else{(a<o||a>s)&&(this.scrollContainer.scrollLeft=a-(this.options.autoCenter?c:0));let e=a-n-c;if(t&&this.options.autoCenter&&e>0){let t=this.audioData?.duration;if(t===void 0||t<=0)return void(this.scrollContainer.scrollLeft+=e);let n=r/t;this.scrollContainer.scrollLeft+=n<=600?Math.min(e,10):e}}}renderProgress(e,t){if(isNaN(e))return;let n=100*e;this.canvasWrapper.style.clipPath=`polygon(${n}% 0%, 100% 0%, 100% 100%, ${n}% 100%)`,this.progressWrapper.style.width=`${n}%`,this.cursor.style.left=`${n}%`,this.cursor.style.transform=this.options.cursorWidth?`translateX(-${e*this.options.cursorWidth}px)`:``,this.isScrollable&&this.options.autoScroll&&this.audioData&&this.audioData.duration>0&&this.scrollIntoView(e,t)}exportImage(t,n,r){return e(this,void 0,void 0,(function*(){let e=this.canvasWrapper.querySelectorAll(`canvas`);if(!e.length)throw Error(`No waveform data`);if(r===`dataURL`){let r=Array.from(e).map((e=>e.toDataURL(t,n)));return Promise.resolve(r)}return Promise.all(Array.from(e).map((e=>new Promise(((r,i)=>{e.toBlob((e=>{e?r(e):i(Error(`Could not export image`))}),t,n)})))))}))}},b=class extends t{constructor(){super(...arguments),this.animationFrameId=null,this.isRunning=!1}start(){if(this.isRunning)return;this.isRunning=!0;let e=()=>{this.isRunning&&(this.emit(`tick`),this.animationFrameId=requestAnimationFrame(e))};e()}stop(){this.isRunning=!1,this.animationFrameId!==null&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=null)}destroy(){this.stop()}},x=class extends t{constructor(e=new AudioContext){super(),this.bufferNode=null,this.playStartTime=0,this.playbackPosition=0,this._muted=!1,this._playbackRate=1,this._duration=void 0,this.buffer=null,this.currentSrc=``,this.paused=!0,this.crossOrigin=null,this.seeking=!1,this.autoplay=!1,this.addEventListener=this.on,this.removeEventListener=this.un,this.audioContext=e,this.gainNode=this.audioContext.createGain(),this.gainNode.connect(this.audioContext.destination)}load(){return e(this,void 0,void 0,(function*(){}))}get src(){return this.currentSrc}set src(e){if(this.currentSrc=e,this._duration=void 0,!e)return this.buffer=null,void this.emit(`emptied`);fetch(e).then((t=>{if(t.status>=400)throw Error(`Failed to fetch ${e}: ${t.status} (${t.statusText})`);return t.arrayBuffer()})).then((t=>this.currentSrc===e?this.audioContext.decodeAudioData(t):null)).then((t=>{this.currentSrc===e&&(this.buffer=t,this.emit(`loadedmetadata`),this.emit(`canplay`),this.autoplay&&this.play())})).catch((e=>{console.error(`WebAudioPlayer load error:`,e)}))}_play(){if(!this.paused)return;this.paused=!1,this.bufferNode&&(this.bufferNode.onended=null,this.bufferNode.disconnect()),this.bufferNode=this.audioContext.createBufferSource(),this.buffer&&(this.bufferNode.buffer=this.buffer),this.bufferNode.playbackRate.value=this._playbackRate,this.bufferNode.connect(this.gainNode);let e=this.playbackPosition;(e>=this.duration||e<0)&&(e=0,this.playbackPosition=0),this.bufferNode.start(this.audioContext.currentTime,e),this.playStartTime=this.audioContext.currentTime,this.bufferNode.onended=()=>{this.currentTime>=this.duration&&(this.pause(),this.emit(`ended`))}}_pause(){var e;this.paused=!0,(e=this.bufferNode)==null||e.stop(),this.playbackPosition+=(this.audioContext.currentTime-this.playStartTime)*this._playbackRate}play(){return e(this,void 0,void 0,(function*(){this.paused&&(this._play(),this.emit(`play`))}))}pause(){this.paused||(this._pause(),this.emit(`pause`))}stopAt(e){let t=e-this.currentTime,n=this.bufferNode;n?.stop(this.audioContext.currentTime+t),n?.addEventListener(`ended`,(()=>{n===this.bufferNode&&(this.bufferNode=null,this.pause())}),{once:!0})}setSinkId(t){return e(this,void 0,void 0,(function*(){return this.audioContext.setSinkId(t)}))}get playbackRate(){return this._playbackRate}set playbackRate(e){let t=!this.paused;t&&this._pause(),this._playbackRate=e,t&&this._play(),this.bufferNode&&(this.bufferNode.playbackRate.value=e)}get currentTime(){return this.paused?this.playbackPosition:this.playbackPosition+(this.audioContext.currentTime-this.playStartTime)*this._playbackRate}set currentTime(e){let t=!this.paused;t&&this._pause(),this.playbackPosition=e,t&&this._play(),this.emit(`seeking`),this.emit(`timeupdate`)}get duration(){return this._duration??(this.buffer?.duration||0)}set duration(e){this._duration=e}get volume(){return this.gainNode.gain.value}set volume(e){this.gainNode.gain.value=e,this.emit(`volumechange`)}get muted(){return this._muted}set muted(e){this._muted!==e&&(this._muted=e,this._muted?this.gainNode.disconnect():this.gainNode.connect(this.audioContext.destination))}canPlayType(e){return/^(audio|video)\//.test(e)}getGainNode(){return this.gainNode}getChannelData(){let e=[];if(!this.buffer)return e;let t=this.buffer.numberOfChannels;for(let n=0;n<t;n++)e.push(this.buffer.getChannelData(n));return e}removeAttribute(e){switch(e){case`src`:this.src=``;break;case`playbackRate`:this.playbackRate=0;break;case`currentTime`:this.currentTime=0;break;case`duration`:this.duration=0;break;case`volume`:this.volume=0;break;case`muted`:this.muted=!1}}},S={waveColor:`#999`,progressColor:`#555`,cursorWidth:1,minPxPerSec:0,fillParent:!0,interact:!0,dragToSeek:!1,autoScroll:!0,autoCenter:!0,sampleRate:8e3},C=class t extends u{static create(e){return new t(e)}getState(){return this.wavesurferState}getRenderer(){return this.renderer}constructor(e){let t=e.media||(e.backend===`WebAudio`?new x:void 0);super({media:t,mediaControls:e.mediaControls,autoplay:e.autoplay,playbackRate:e.audioRate}),this.plugins=[],this.decodedData=null,this.stopAtPosition=null,this.subscriptions=[],this.mediaSubscriptions=[],this.abortController=null,this.reactiveCleanups=[],this.options=Object.assign({},S,e);let{state:n,actions:r}=function(e){let t=e?.currentTime??s(0),n=e?.duration??s(0),r=e?.isPlaying??s(!1),i=e?.isSeeking??s(!1),a=e?.volume??s(1),o=e?.playbackRate??s(1),l=s(null),u=s(null),d=s(``),f=s(0),p=s(0),m=c((()=>!r.value),[r]),h=c((()=>l.value!==null),[l]);return{state:{currentTime:t,duration:n,isPlaying:r,isPaused:m,isSeeking:i,volume:a,playbackRate:o,audioBuffer:l,peaks:u,url:d,zoom:f,scrollPosition:p,canPlay:h,isReady:c((()=>h.value&&n.value>0),[h,n]),progress:c((()=>t.value),[t]),progressPercent:c((()=>n.value>0?t.value/n.value:0),[t,n])},actions:{setCurrentTime:e=>{let r=Math.max(0,Math.min(n.value||1/0,e));t.set(r)},setDuration:e=>{n.set(Math.max(0,e))},setPlaying:e=>{r.set(e)},setSeeking:e=>{i.set(e)},setVolume:e=>{let t=Math.max(0,Math.min(1,e));a.set(t)},setPlaybackRate:e=>{let t=Math.max(.1,Math.min(16,e));o.set(t)},setAudioBuffer:e=>{l.set(e),e&&n.set(e.duration)},setPeaks:e=>{u.set(e)},setUrl:e=>{d.set(e)},setZoom:e=>{f.set(Math.max(0,e))},setScrollPosition:e=>{p.set(Math.max(0,e))}}}}({isPlaying:this.isPlayingSignal,currentTime:this.currentTimeSignal,duration:this.durationSignal,volume:this.volumeSignal,playbackRate:this.playbackRateSignal,isSeeking:this.seekingSignal});this.wavesurferState=n,this.wavesurferActions=r,this.timer=new b;let i=t?void 0:this.getMediaElement();this.renderer=new y(this.options,i),this.initPlayerEvents(),this.initRendererEvents(),this.initTimerEvents(),this.initReactiveState(),this.initPlugins();let a=this.options.url||this.getSrc()||``;Promise.resolve().then((()=>{this.emit(`init`);let{peaks:e,duration:t}=this.options;(a||e&&t)&&this.load(a,e,t).catch((e=>{this.emit(`error`,e instanceof Error?e:Error(String(e)))}))}))}updateProgress(e=this.getCurrentTime()){return this.renderer.renderProgress(e/this.getDuration(),this.isPlaying()),e}initTimerEvents(){this.subscriptions.push(this.timer.on(`tick`,(()=>{if(!this.isSeeking()){let e=this.updateProgress();this.emit(`timeupdate`,e),this.emit(`audioprocess`,e),this.stopAtPosition!=null&&this.isPlaying()&&e>=this.stopAtPosition&&this.pause()}})))}initReactiveState(){this.reactiveCleanups.push(function(e,t){let n=[];n.push(l((()=>{let n=e.isPlaying.value;t.emit(n?`play`:`pause`)}),[e.isPlaying])),n.push(l((()=>{let n=e.currentTime.value;t.emit(`timeupdate`,n),e.isPlaying.value&&t.emit(`audioprocess`,n)}),[e.currentTime,e.isPlaying])),n.push(l((()=>{e.isSeeking.value&&t.emit(`seeking`,e.currentTime.value)}),[e.isSeeking,e.currentTime]));let r=!1;n.push(l((()=>{e.isReady.value&&!r&&(r=!0,t.emit(`ready`,e.duration.value))}),[e.isReady,e.duration]));let i=!1;return n.push(l((()=>{let n=e.isPlaying.value,r=e.currentTime.value,a=e.duration.value,o=a>0&&r>=a;i&&!n&&o&&t.emit(`finish`),i=n&&o}),[e.isPlaying,e.currentTime,e.duration])),n.push(l((()=>{let n=e.zoom.value;n>0&&t.emit(`zoom`,n)}),[e.zoom])),()=>{n.forEach((e=>e()))}}(this.wavesurferState,{emit:this.emit.bind(this)}))}initPlayerEvents(){this.isPlaying()&&(this.emit(`play`),this.timer.start()),this.mediaSubscriptions.push(this.onMediaEvent(`timeupdate`,(()=>{let e=this.updateProgress();this.emit(`timeupdate`,e)})),this.onMediaEvent(`play`,(()=>{this.emit(`play`),this.timer.start()})),this.onMediaEvent(`pause`,(()=>{this.emit(`pause`),this.timer.stop(),this.stopAtPosition=null})),this.onMediaEvent(`emptied`,(()=>{this.timer.stop(),this.stopAtPosition=null})),this.onMediaEvent(`ended`,(()=>{this.emit(`timeupdate`,this.getDuration()),this.emit(`finish`),this.stopAtPosition=null})),this.onMediaEvent(`seeking`,(()=>{this.emit(`seeking`,this.getCurrentTime())})),this.onMediaEvent(`error`,(()=>{this.emit(`error`,this.getMediaElement().error??Error(`Media error`)),this.stopAtPosition=null})))}initRendererEvents(){this.subscriptions.push(this.renderer.on(`click`,((e,t)=>{this.options.interact&&(this.seekTo(e),this.emit(`interaction`,e*this.getDuration()),this.emit(`click`,e,t))})),this.renderer.on(`dblclick`,((e,t)=>{this.emit(`dblclick`,e,t)})),this.renderer.on(`scroll`,((e,t,n,r)=>{let i=this.getDuration();this.emit(`scroll`,e*i,t*i,n,r)})),this.renderer.on(`render`,(()=>{this.emit(`redraw`)})),this.renderer.on(`rendered`,(()=>{this.emit(`redrawcomplete`)})),this.renderer.on(`dragstart`,(e=>{this.emit(`dragstart`,e)})),this.renderer.on(`dragend`,(e=>{this.emit(`dragend`,e)})),this.renderer.on(`resize`,(()=>{this.emit(`resize`)})));{let e,t=this.renderer.on(`drag`,(t=>{if(!this.options.interact)return;this.renderer.renderProgress(t),clearTimeout(e);let n=0,r=this.options.dragToSeek;this.isPlaying()?n=0:!0===r?n=200:r&&typeof r==`object`&&(n=r.debounceTime??200),e=setTimeout((()=>{this.seekTo(t)}),n),this.emit(`interaction`,t*this.getDuration()),this.emit(`drag`,t)}));this.subscriptions.push((()=>{clearTimeout(e),t()}))}}initPlugins(){var e;(e=this.options.plugins)!=null&&e.length&&this.options.plugins.forEach((e=>{this.registerPlugin(e)}))}unsubscribePlayerEvents(){this.mediaSubscriptions.forEach((e=>e())),this.mediaSubscriptions=[]}setOptions(e){this.options=Object.assign({},this.options,e),e.duration&&!e.peaks&&(this.decodedData=n.createBuffer(this.exportPeaks(),e.duration)),e.peaks&&e.duration&&(this.decodedData=n.createBuffer(e.peaks,e.duration)),this.renderer.setOptions(this.options),e.audioRate&&this.setPlaybackRate(e.audioRate),e.mediaControls!=null&&(this.getMediaElement().controls=e.mediaControls)}registerPlugin(e){if(this.plugins.includes(e))return e;e._init(this),this.plugins.push(e);let t=e.once(`destroy`,(()=>{this.plugins=this.plugins.filter((t=>t!==e)),this.subscriptions=this.subscriptions.filter((e=>e!==t))}));return this.subscriptions.push(t),e}unregisterPlugin(e){this.plugins=this.plugins.filter((t=>t!==e)),e.destroy()}getWrapper(){return this.renderer.getWrapper()}getWidth(){return this.renderer.getWidth()}getScroll(){return this.renderer.getScroll()}setScroll(e){return this.renderer.setScroll(e)}setScrollTime(e){let t=e/this.getDuration();this.renderer.setScrollPercentage(t)}getActivePlugins(){return this.plugins}loadAudio(t,r,i,a){return e(this,void 0,void 0,(function*(){var e;if(this.emit(`load`,t),!this.options.media&&this.isPlaying()&&this.pause(),this.decodedData=null,this.stopAtPosition=null,(e=this.abortController)==null||e.abort(),this.abortController=null,!r&&!i){let e=this.options.fetchParams||{};window.AbortController&&!e.signal&&(this.abortController=new AbortController,e.signal=this.abortController.signal),r=yield o.fetchBlob(t,e=>this.emit(`loading`,e),e);let n=this.options.blobMimeType;n&&(r=new Blob([r],{type:n}))}this.setSrc(t,r);let s=yield new Promise((e=>{let t=a||this.getDuration();t?e(t):this.mediaSubscriptions.push(this.onMediaEvent(`loadedmetadata`,(()=>e(this.getDuration())),{once:!0}))}));if(!t&&!r){let e=this.getMediaElement();e instanceof x&&(e.duration=s)}if(i)this.decodedData=n.createBuffer(i,s||0);else if(r){let e=yield r.arrayBuffer();this.decodedData=yield n.decode(e,this.options.sampleRate)}this.decodedData&&(this.emit(`decode`,this.getDuration()),this.renderer.render(this.decodedData)),this.emit(`ready`,this.getDuration())}))}load(t,n,r){return e(this,void 0,void 0,(function*(){try{return yield this.loadAudio(t,void 0,n,r)}catch(e){throw this.emit(`error`,e),e}}))}loadBlob(t,n,r){return e(this,void 0,void 0,(function*(){try{return yield this.loadAudio(``,t,n,r)}catch(e){throw this.emit(`error`,e),e}}))}zoom(e){if(!this.decodedData)throw Error(`No audio loaded`);this.renderer.zoom(e),this.emit(`zoom`,e)}getDecodedData(){return this.decodedData}exportPeaks({channels:e=2,maxLength:t=8e3,precision:n=1e4}={}){if(!this.decodedData)throw Error(`The audio has not been decoded yet`);let r=Math.min(e,this.decodedData.numberOfChannels),i=[];for(let e=0;e<r;e++){let r=this.decodedData.getChannelData(e),a=[],o=r.length/t;for(let e=0;e<t;e++){let t=r.slice(Math.floor(e*o),Math.ceil((e+1)*o)),i=0;for(let e=0;e<t.length;e++){let n=t[e];Math.abs(n)>Math.abs(i)&&(i=n)}a.push(Math.round(i*n)/n)}i.push(a)}return i}getDuration(){let e=super.getDuration()||0;return e!==0&&e!==1/0||!this.decodedData||(e=this.decodedData.duration),e}toggleInteraction(e){this.options.interact=e}setTime(e){this.stopAtPosition=null,super.setTime(e),this.updateProgress(e),this.emit(`timeupdate`,e)}seekTo(e){let t=this.getDuration()*e;this.setTime(t)}play(t,n){let r=Object.create(null,{play:{get:()=>super.play}});return e(this,void 0,void 0,(function*(){t!=null&&this.setTime(t);let e=yield r.play.call(this);return n!=null&&(this.media instanceof x?this.media.stopAt(n):this.stopAtPosition=n),e}))}playPause(){return e(this,void 0,void 0,(function*(){return this.isPlaying()?this.pause():this.play()}))}stop(){this.pause(),this.setTime(0)}skip(e){this.setTime(this.getCurrentTime()+e)}empty(){this.load(``,[[0]],.001)}setMediaElement(e){this.unsubscribePlayerEvents(),super.setMediaElement(e),this.initPlayerEvents()}exportImage(){return e(this,arguments,void 0,(function*(e=`image/png`,t=1,n=`dataURL`){return this.renderer.exportImage(e,t,n)}))}destroy(){var e;this.emit(`destroy`),(e=this.abortController)==null||e.abort(),this.plugins.forEach((e=>e.destroy())),this.subscriptions.forEach((e=>e())),this.unsubscribePlayerEvents(),this.reactiveCleanups.forEach((e=>e())),this.reactiveCleanups=[],this.timer.destroy(),this.renderer.destroy(),super.destroy()}};C.BasePlugin=class extends t{constructor(e){super(),this.subscriptions=[],this.isDestroyed=!1,this.options=e}onInit(){}_init(e){this.isDestroyed&&(this.subscriptions=[],this.isDestroyed=!1),this.wavesurfer=e,this.onInit()}destroy(){this.emit(`destroy`),this.subscriptions.forEach((e=>e())),this.subscriptions=[],this.isDestroyed=!0,this.wavesurfer=void 0}},C.dom=a;export{C as t};
|
|
2
|
+
//# sourceMappingURL=widget-react-DJczk-Ax.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
globalThis.process===void 0&&(globalThis.process={env:{},nextTick:function(e){setTimeout(e,0)},emit:function(){return!1}});import"react";import"react-dom";import"react/jsx-runtime";import"react-dom/client";var e={tabs:{home:`Ana sayfa`,messages:`Mesajlar`,help:`Yardım`,news:`Haberler`,profile:`Profil`},header:{close:`Kapat`,back:`Geri`,conversationSubtitle:`Ekibimiz de yardımcı olabilir`,helpTitle:`Yardım`,newsTitle:`Haberler`,expand:`Widget'ı genişlet`,collapse:`Widget'ı küçült`,messagesTitle:`Mesajlar`,downloadTranscript:`Download transcript`,moreActions:`More`},launcher:{open:`Sohbeti aç`,close:`Sohbeti kapat`,panel:`Sohbet`},tabError:{title:`Bir şeyler ters gitti`,hint:`Bu bölüm gösterilemedi.`,retry:`Tekrar dene`},chunkError:{failed:`Couldn't load`,retry:`Retry`},home:{greetingHeadline:`Merhaba 👋`,greetingSubheadline:`Nasıl yardımcı olabiliriz?`,askTitle:`Soru sor`,askSubtitle:`Botumuz ve ekibimiz yardımcı olabilir`,recentMessageLabel:`Son mesaj`,recentMessageTitle:`Son mesaj`,recentMessageFromFallback:`Gaia`,recentMessageAgo:`4 sa`,recentMessageSample:`Merhaba 👋 Bize ulaştığın için teşekkürler — kısa süre içinde döneceğiz.`,featuredArticleLoading:`Öne çıkan makale`,featuredArticleTap:`Okumak için dokun`,featuredArticleEmpty:`Bir makale seç`,featuredArticleSetUp:`Bu bloğu panelinde yapılandır`,featuredArticleDemoEyebrow:`Pioneer · Tarihi not al`,featuredArticleDemoHeadline:`8 Ekim 2026`,featuredArticleDemoSubline:`San Francisco · Yüz yüze + çevrimiçi`,featuredArticleDemoCta:`Lansman programını gör`,seeAgenda:`Lansman programını gör`,browseHelp:`Yardıma göz at`,whatsNew:`Yenilikler`,searchPlaceholder:`Yardımda ara`,pinnedArticlesTitle:`Önce bunları oku`,popularArticlesTitle:`Popüler makaleler`,pinnedArticleRow:`Sabitlenmiş makale {n}`,newsPreviewTitle:`Son haberler`,seeAll:`See all`,newsPreviewRow:`Haber güncellemesi {n}`,myConversationsTitle:`Sohbetlerin`,myConversationsEmpty:`Sohbetlerini görüntüle`,teamStatusOnline:`Çevrimiçiyiz`,teamStatusReplyInstant:`Usually replies instantly`,teamStatusReplyMinutes:`Usually replies in a few minutes`,teamStatusReplyHours:`Usually replies within a few hours`,teamStatusReplyDay:`Usually replies within a day`,teamStatusAiOnline:`{name} can help right now`,teamStatusOperatorsBack:`Operators back {when}`,teamStatusOfflineUntil:`We're away, back {when}`,teamStatusOfflineSoon:`We're away, back soon`,recentMessageAttachment:`Attachment`},messages:{today:`Bugün`,yesterday:`Dün`,unreadMessages:`Okunmamış mesajlar`,emptyTitle:`Henüz mesaj yok`,emptyBody:`Bir sohbet başlat — ekibimiz buradan sana dönecek.`,sendCta:`Bize mesaj gönder`,attach:`Dosya ekle`,commands:`Hızlı komutlar`,record:`Sesli mesaj kaydet`,stopRecording:`Kaydı durdur`,recording:`Kaydediliyor…`,uploading:`Yükleniyor…`,uploadFailed:`Yükleme başarısız`,voiceDenied:`Mikrofon erişimi reddedildi`,voiceUnsupported:`Bu tarayıcı ses kaydını desteklemiyor`,fileTooLarge:`Dosya çok büyük (en fazla 10 MB)`,fileMimeNotAllowed:`Bu dosya türü desteklenmiyor`,emoji:`Emoji ekle`,cancelRecording:`Kaydı iptal et`,pauseRecording:`Kaydı duraklat`,resumeRecording:`Kaydı sürdür`,playPreview:`Kaydı oynat`,emojiPicker:`Emoji seçici`,emojiSearch:`Ara…`,playAudio:`Oynat`,pauseAudio:`Duraklat`,openAudio:`Sesi aç`,removeAttachment:`Kaldır`,aiAssistant:`AI asistan`,operator:`Operatör`,openImage:`Görseli aç`,openPreview:`Önizlemeyi aç`,play:`Oynat`,pause:`Duraklat`,typing:`yazıyor…`,aiThinking:`düşünüyor…`,aiSearching:`araştırıyor…`,typingSomeone:`Biri`,signInToChat:`Sohbete başlamak için lütfen giriş yap.`,signInUnavailable:`Giriş şu anda kullanılamıyor.`,googleSignIn:`Google ile giriş yap`,googleUnavailable:`Google sign-in isn't available. Check your connection or ad blocker and try again.`,passkeySignIn:`Passkey ile giriş yap`,passkeyRegister:`İlk kez mi? Bir passkey oluştur`,passkeyError:`Giriş yapılamadı. Lütfen tekrar dene.`,passkeyNoCredential:`Bu cihazda henüz passkey yok — eklemek için “Bir passkey oluştur”a dokun.`,googleSignInDemo:`Google ile devam et`,connectingOperator:`Bir operatör atandı, lütfen bekleyin…`,assignment:{eta:{minutes:`Bir operatör yaklaşık {minutes} dk içinde yanıt verecek`,soft:`Genellikle birkaç dakika içinde yanıt veriyoruz`,businessHours:`Ekip {time} itibarıyla geri dönecek`}},withOperator:`Şimdi {name} ile sohbet ediyorsunuz`,operatorConnected:`Operatör bağlandı`,chatResolved:`Görüşme çözüldü`,chatResolvedByYou:`Görüşmeyi siz çözdünüz`,chatResolvedByOperator:`Görüşmeyi {name} çözdü`,resolveConversation:`Görüşmeyi çöz`,sources:`Kaynaklar`,moreSources:`+{count} tane daha`,askQuestion:`Ask a question`,previewYou:`You: {text}`,threadsEmptyTitle:`No conversations yet`,threadsEmptyBody:`Start a conversation and it will show up here.`,format:{bold:`Bold`,italic:`Italic`,underline:`Underline`,strikethrough:`Strikethrough`,bulletList:`Bulleted list`,numberedList:`Numbered list`,link:`Link`,linkPlaceholder:`https://…`,linkSave:`Save`,linkCancel:`Cancel`,monospace:`Monospace`},queued:`Waiting for connection`,notDelivered:`Not delivered`,retry:`Retry`,offlineBanner:`You're offline`,backOnline:`Back online`,threadsErrorTitle:`Could not load your conversations`,threadsErrorBody:`Check your connection and try again.`,giphy:{title:`GIFs & Stickers`,searchPlaceholder:`Search GIPHY`,clear:`Clear`,tabGifs:`GIFs`,tabStickers:`Stickers`,error:`Couldn't load`,retry:`Retry`,empty:`No results`,poweredBy:`Powered by GIPHY`},scrollToLatest:`Scroll to latest`,conversationClosed:`This conversation is closed`,startNewConversation:`Start a new conversation`,conversationBlocked:`This conversation is blocked`,visitorBlocked:`You can no longer send messages`,conversationClosedTitle:`That's a wrap 👋`,conversationClosedHint:`This conversation is closed. Start a new one whenever you like.`},prechat:{title:`Başlamadan önce`,subtitle:`Ekibimizin sana daha hızlı yardım edebilmesi için birkaç bilgi.`,labelName:`İsim`,labelEmail:`E-posta`,labelPhone:`Telefon`,labelCustom:`Ayrıntılar`,required:`Zorunlu`,invalidEmail:`Lütfen geçerli bir e-posta gir`,invalidPhone:`Lütfen geçerli bir telefon numarası gir`,submit:`Devam et`,submitFailed:`Gönderilemedi — lütfen tekrar dene.`},help:{searchPlaceholder:`Yardımda ara`,emptyTitle:`Henüz makale yok`,emptyBody:`Operatörün henüz bir şey yayımlamadı.`,back:`Geri`,helpful:`Bu yararlı oldu mu?`,yes:`Evet`,no:`Hayır`,thanks:`Geri bildirim için teşekkürler.`,unresolvedCta:`Hâlâ yardıma ihtiyacın var mı? Bize yaz`,noResults:`Sonuç yok`,articleNotFound:`Makale bulunamadı`,articleNotTranslated:`Bu makale henüz senin dilinde mevcut değil.`,writtenBy:`Yazan: {names}`,relatedTitle:`İlgili makaleler`,collectionsCount:`{count, plural, =0 {Koleksiyon yok} one {# koleksiyon} other {# koleksiyon}}`,articlesCount:`{count, plural, =0 {Makale yok} one {Makale: #} other {Makale: #}}`,authorsByline:`Yazarlar {first}{remaining, plural, =0 {} one { ve # kişi daha} other { ve # kişi daha}}`},news:{unread:`Okunmamış haberler`,emptyTitle:`Henüz güncelleme yok`,emptyBody:`Ürün haberleri ve duyurular için buraya tekrar bak.`,helpful:`Bu makale yararlı oldu mu?`,yes:`Evet`,no:`Hayır`,thanks:`Geri bildirim için teşekkürler.`,searchPlaceholder:`Haberlerde ara`,noResults:`Eşleşen gönderi yok`,editedAt:`{when} tarihinde düzenlendi`,articleNotFound:`Makale bulunamadı.`,articleNotTranslated:`Bu gönderi henüz senin dilinde mevcut değil.`,readOriginal:`Orijinali oku`,relatedTitle:`İlgili`,writtenBy:`Yazan: {names}`},reactions:{ariaLabel:`Tepkiler`,tapAria:`{emoji} ile tepki ver`},languageSelector:{title:`Başka bir dilde oku`,ariaLabel:`Makale dilleri`},branding:{poweredBy:`Sağlayıcı:`,wexio:`Wexio`},sound:{mute:`Bildirim seslerini kapat`,unmute:`Bildirim seslerini aç`},article:{tableOfContents:`İçindekiler`,tabFallback:`Sekme {n}`},peek:{newMessage:`Yeni mesaj`,dismiss:`Kapat`,aiAssistant:`AI asistan`,operator:`Operatör`},lightbox:{mediaPreview:`Medya önizlemesi`,close:`Önizlemeyi kapat`,previous:`Önceki`,next:`Sonraki`},authError:{turnstileTitle:`Tarayıcın doğrulanamadı`,turnstileBody:`Güvenlik kontrolünü tamamlayamadık. Bu bazen bir ağ veya reklam engelleyici sorunudur — tekrar dene ya da sayfayı yenile.`,genericTitle:`Bağlanılamadı`,genericBody:`Giriş yapılırken bir sorun oluştu. Lütfen biraz sonra tekrar dene.`,retry:`Tekrar dene`,dismiss:`Kapat`},profile:{title:`Profilin`,subtitle:`Bilgilerini ve widget davranışını güncelle.`,uploadAvatar:`Fotoğrafı değiştir`,removeAvatar:`Fotoğrafı kaldır`,avatarUploading:`Yükleniyor…`,preferencesHeading:`Tercihler`,preferenceLanguage:`Dil`,preferenceDesktopNotifications:`Masaüstü bildirimleri`,preferenceDesktopNotificationsHint:`Widget odakta değilken bir sistem bildirimi al.`,preferenceThemeMode:`Tema`,themeAuto:`Sistemle aynı`,themeLight:`Açık`,themeDark:`Koyu`,themeLocked:`Tema operatör tarafından ayarlanmış.`,pinnedHint:`Operatör tarafından ayarlanmış — düzenlenemez.`,requiredHint:`Zorunlu`,invalidEmail:`Lütfen geçerli bir e-posta adresi gir.`,invalidPhone:`Uluslararası formatı kullan, örn. +14155552671.`,noFields:`Burada henüz düzenlenecek bir şey yok.`,save:`Değişiklikleri kaydet`,saving:`Kaydediliyor…`,cancel:`Vazgeç`,saved:`Değişiklikler kaydedildi.`,loading:`Profil yükleniyor…`,loadError:`Profilin yüklenemedi. Lütfen tekrar dene.`,retry:`Yeniden dene`,errorFieldNotAllowed:`Bu alan bu widget'ta düzenlenemez. Sayfayı yenilemeyi dene.`,errorFieldPinned:`Bu alan hesabın tarafından kilitlenmiş.`,errorFieldInvalid:`Bazı değerler geçerli değil. Vurgulanan alanları kontrol et.`,errorThemeLocked:`Tema operatör tarafından kilitlendi.`,errorFeatureDisabled:`Profil düzenleme operatör tarafından kapatıldı.`,errorGeneric:`Değişikliklerin kaydedilemedi. Lütfen tekrar dene.`,notificationsBlocked:`Bildirimler tarayıcı tarafından engellendi. Etkinleştirmek için site izinlerini güncelle.`,notificationsRequest:`Bunu etkinleştirmek için istendiğinde bildirimlere izin ver.`,systemFields:{avatar:`Fotoğraf`,wexioId:`Wexio ID`,telegramId:`Telegram ID`,whatsappId:`WhatsApp ID`,viberId:`Viber ID`,instagramId:`Instagram ID`,optInWhatsapp:`WhatsApp onayı`,webVerified:`Doğrulanmış ziyaretçi`,firstName:`Ad`,lastName:`Soyad`,username:`Kullanıcı adı`,language:`Dil`,email:`E-posta`,phone:`Telefon`,company:`Şirket`,location:`Konum`,isValid:`Hesap geçerli`,chatStatus:`Sohbet durumu`,chatCategory:`Sohbet kategorisi`,priority:`Öncelik`,leadSource:`Müşteri adayı kaynağı`,leadStatus:`Müşteri adayı durumu`,interestLevel:`İlgi düzeyi`,productInterest:`Ürün ilgisi`,budgetRange:`Bütçe`,purchaseTimeline:`Satın alma zaman çizelgesi`,lastMessageSentAt:`Son gönderilen mesaj`,lastMessageReceivedAt:`Son alınan mesaj`,lastSeenAt:`Son görülme`,firstMessageReceivedAt:`İlk iletişim`,isBlocked:`Engellendi`,registrationDate:`Kayıt tarihi`,aiAvailable:`AI desteği`,totalMessagesSent:`Gönderilen mesajlar`,totalMessagesReceived:`Alınan mesajlar`,totalAiMessagesSent:`Gönderilen AI mesajları`,totalBotMessagesSent:`Gönderilen bot mesajları`,totalUserMessagesSent:`Gönderilen operatör mesajları`,flowCompletionRate:`Akış tamamlama oranı`,lastFlowCompleted:`Son tamamlanan akış`,totalFlowsStarted:`Başlatılan akışlar`,totalFlowsCompleted:`Tamamlanan akışlar`},systemFieldOptions:{chatStatus:{ISSUE:`Sorun`,RESOLVED:`Çözüldü`,PENDING:`Beklemede`,IN_PROGRESS:`Devam ediyor`,CLOSED:`Kapatıldı`},chatCategory:{SALES:`Satış`,SUPPORT:`Destek`,BILLING:`Faturalama`,FEEDBACK:`Geri bildirim`,GENERAL:`Genel`,OTHER:`Diğer`},priority:{LOW:`Düşük`,MEDIUM:`Orta`,HIGH:`Yüksek`,URGENT:`Acil`},leadStatus:{NEW:`Yeni`,CONTACTED:`İletişime geçildi`,QUALIFIED:`Nitelikli`,NEGOTIATING:`Görüşülüyor`,WON:`Kazanıldı`,LOST:`Kaybedildi`},interestLevel:{LOW:`Düşük`,MEDIUM:`Orta`,HIGH:`Yüksek`,VERY_HIGH:`Çok yüksek`}}},transcript:{title:`Conversation with {org}`,started:`Started on {when}`,exported:`Exported from {org} on {when}`,truncated:`Note: only the most recent messages are included.`,operator:`Operator`,you:`You`}};export{e as default};
|
|
2
|
+
//# sourceMappingURL=widget-react-DQJxxVB92.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
globalThis.process===void 0&&(globalThis.process={env:{},nextTick:function(e){setTimeout(e,0)},emit:function(){return!1}});import"react";import"react-dom";import"react/jsx-runtime";import"react-dom/client";import{_ as e,n as t,y as n}from"./widget-react-FX5W7RyV.js";import{A as r,D as i,E as a,P as o,c as s,d as c,j as l,l as u,mt as d,rt as f,u as p,x as ee}from"./widget-react-CnP2-ZB-.js";import{d as te,g as ne,h as m,n as h,r as g}from"./widget-react-Bebf7ovl.js";import{i as _,n as v,o as y,r as b,s as x,t as S}from"./widget-react-DE0LS-6-.js";import{useEffect as C,useMemo as w,useRef as re,useState as ie}from"react";import{jsx as T,jsxs as E}from"react/jsx-runtime";var D=3;function ae(e,t,n=D){let r=e.find(e=>e.id===t),i=new Set((r?.tags??[]).map(e=>e.slug)),a=r?.category?.slug;return e.filter(e=>e.id!==t).map(e=>({n:e,score:(a&&e.category?.slug===a?1:0)+(e.tags??[]).filter(e=>i.has(e.slug)).length})).sort((e,t)=>t.score-e.score||t.n.publishedAt.localeCompare(e.n.publishedAt)).slice(0,n).map(({n:e})=>({id:e.id,title:e.title,coverImageUrl:e.coverImageUrl}))}function oe(e){if(!e||typeof e!=`object`)return null;let t=e,n=String(t._id??t.id??``);if(!n)return null;let r=t.coverImageUrl?.url,i=t.externalCoverImageUrl,a=typeof r==`string`?r:typeof i==`string`?i:void 0,o=Array.isArray(t.tags)?t.tags.map(e=>{if(!e||typeof e!=`object`)return null;let t=e.slug,n=e.label;return typeof t!=`string`||typeof n!=`string`?null:{slug:t,label:n}}).filter(e=>!!e):void 0,s=e=>{if(!Array.isArray(e))return;let t=[];for(let n of e)if(n){if(typeof n==`string`)t.push(n);else if(typeof n==`object`){let e=n._id??n.id;typeof e==`string`&&t.push(e)}}return t.length>0?t:void 0},c=Array.isArray(t.translations)?t.translations.map(e=>{if(!e||typeof e!=`object`)return null;let t=String(e._id??e.id??``),n=e.locale;return!t||typeof n!=`string`?null:{id:t,locale:n}}).filter(e=>!!e):void 0,l=Array.isArray(t.authors)?t.authors.map(e=>{if(!e||typeof e!=`object`)return null;let t=e.name;if(typeof t!=`string`)return null;let n=e._id,r=e.photo?.url;return{_id:String(n??t),name:t,photo:{url:typeof r==`string`?r:``}}}).filter(e=>!!e):void 0;return{id:n,title:typeof t.title==`string`?t.title:``,excerpt:typeof t.excerpt==`string`?t.excerpt:``,contentMarkdown:typeof t.contentMarkdown==`string`?t.contentMarkdown:void 0,bodyFormat:typeof t.bodyFormat==`string`?t.bodyFormat:void 0,coverImageUrl:a,publishedAt:typeof t.publishedAt==`string`?t.publishedAt:new Date().toISOString(),upstreamUpdatedAt:typeof t.upstreamUpdatedAt==`string`?t.upstreamUpdatedAt:void 0,sourceUrl:typeof t.sourceUrl==`string`?t.sourceUrl:void 0,reactionCounts:t.reactionCounts??null,viewerReaction:typeof t.viewerReaction==`number`?t.viewerReaction:null,tags:o,authors:l,categoryIds:s(t.categories),tagIds:s(t.tags),locale:typeof t.locale==`string`?t.locale:void 0,translations:c}}function se({currentId:t,currentCategoryIds:n,currentTagIds:r,previewPostsById:i,visitorRelatedRaw:a,isDummy:o,demoItems:s,onOpen:c}){let l=e(`news`),u=(()=>{if(o)return s??[];if(Array.isArray(a)&&a.length>0)return a.filter(e=>!!e&&typeof e==`object`).map(e=>{let t=e.coverImageUrl?.url??e.externalCoverImageUrl;return{id:String(e._id??e.id??``),title:typeof e.title==`string`?e.title:``,coverImageUrl:typeof t==`string`?t:void 0}}).filter(e=>e.id&&e.title);if(i&&Object.keys(i).length>0&&(n.length>0||r.length>0)){let e=new Set(n),a=new Set(r),o=[];for(let[n,r]of Object.entries(i)){if(n===t||!r||typeof r!=`object`)continue;let i=r,s=Array.isArray(i.categories)?i.categories:[],c=Array.isArray(i.tags)?i.tags:[],l=e=>{let t=new Set;for(let n of e)if(n&&typeof n==`object`){let e=n._id??n.id;typeof e==`string`&&t.add(e)}return t},u=l(s),d=l(c),f=0;for(let t of u)e.has(t)&&f++;for(let e of d)a.has(e)&&f++;if(f===0)continue;let p=i.coverImageUrl?.url??i.externalCoverImageUrl;o.push({id:n,title:typeof i.title==`string`?i.title:``,coverImageUrl:typeof p==`string`?p:void 0,overlap:f,publishedAt:typeof i.publishedAt==`string`?i.publishedAt:``})}return o.sort((e,t)=>t.overlap===e.overlap?t.publishedAt.localeCompare(e.publishedAt):t.overlap-e.overlap),o.slice(0,5).map(({id:e,title:t,coverImageUrl:n})=>({id:e,title:t,coverImageUrl:n}))}return[]})();return u.length===0?null:E(`section`,{className:`mt-6`,children:[T(`p`,{className:`mb-2 text-xs font-semibold tracking-wide text-wx-fg-muted uppercase`,children:l(`relatedTitle`)}),T(`ul`,{className:`flex flex-col gap-2`,children:u.map(e=>T(`li`,{children:E(`button`,{type:`button`,onClick:()=>c(e.id),className:`flex w-full items-center gap-3 rounded-wx-lg bg-wx-bg-elevated px-3 py-2 text-start transition-colors hover:bg-wx-bg-elevated/80 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-wx-primary`,children:[T(`span`,{className:`aspect-square w-12 shrink-0 rounded-wx-sm bg-cover bg-center`,style:e.coverImageUrl?{backgroundImage:`url(${e.coverImageUrl})`}:{background:`linear-gradient(135deg, #1e1f21, #121314)`},"aria-hidden":`true`}),T(`span`,{className:`min-w-0 flex-1 truncate text-sm font-medium text-wx-fg`,children:e.title})]})},e.id))})]})}function O({id:D,isDummy:O,onOpenRelated:A,onTitleResolved:j}){let M=e(`news`),N=r(),P=p(),F=n(),I=a(),{config:L}=ee(),R=L.messenger?.showRelatedNews??!0,z=L.messenger?.showReactionCounts??!0,{trackLinkClick:B}=s(),V=re(null),H=e=>{A?.(e)},[U,W]=ie(F),G=l(U,N),K=O?null:I.previewData?.newsPostsById?.[D],q=!!K,{data:ce,loading:le}=m({variables:{args:{id:D,locale:F}},skip:O||q||!D}),J=d().publicKey,Y=u(J&&!O&&!q&&D?o.newsPost(J,D,F):null,ce),{data:ue}=ne({variables:{postId:D,limit:5,locale:F},skip:O||q||!D||!R}),X=O?f(G).find(e=>e.id===D)??null:null,de=w(()=>O?ae(f(G),D):void 0,[O,G,D]),Z=X?{id:X.id,title:X.title,excerpt:X.excerpt,contentMarkdown:X.contentMarkdown,bodyFormat:`markdown`,coverImageUrl:X.coverImageUrl,coverGradient:X.coverGradient,publishedAt:X.publishedAt,upstreamUpdatedAt:X.upstreamUpdatedAt,tags:X.tags,authors:X.authors,category:X.category,locale:U}:oe(q?K:Y?.visitorNewsPost);if(_(Z?.title,j),C(()=>{O||q||!Z?.id||V.current!==Z.id&&(V.current=Z.id,B({url:`/news/${Z.id}`,targetType:`NEWS_POST`,targetRefId:Z.id}))},[Z?.id,O,q,B]),!Z)return le?T(k,{}):T(`div`,{className:`flex flex-1 items-center justify-center px-6 py-12 text-center`,children:T(`p`,{className:`text-sm text-wx-fg-muted`,children:M(`articleNotFound`)})});let fe=F.split(`-`)[0].toLowerCase(),Q=Z.locale?Z.locale.split(`-`)[0].toLowerCase():null;if(!O&&!q&&!L.contentLocaleFallback&&Q!==null&&Q!==fe)return T(`div`,{className:`flex flex-1 items-center justify-center px-6 py-12 text-center`,children:T(`p`,{className:`text-sm text-wx-fg-muted`,children:M(`articleNotTranslated`)})});let $=Z.coverGradient??[`#1e1f21`,`#121314`];return T(c,{followDirection:!0,className:`flex-1`,viewportRef:P,children:E(`div`,{className:`flex flex-col`,children:[T(`div`,{className:t(`relative w-full`),style:{aspectRatio:`16 / 9`,background:Z.coverImageUrl?`url(${Z.coverImageUrl}) center/cover`:`linear-gradient(135deg, ${$[0]}, ${$[1]})`},"aria-hidden":`true`}),E(`div`,{className:`flex flex-col gap-3 px-5 pt-5 pb-12 [overflow-wrap:anywhere]`,children:[Z.category&&T(`p`,{className:`text-[11px] font-semibold tracking-[0.14em] text-wx-primary uppercase`,children:Z.category.label}),E(`p`,{className:`flex items-center gap-2 text-xs text-wx-fg-subtle`,children:[T(`span`,{children:new Date(Z.publishedAt).toLocaleDateString(F,{month:`long`,day:`numeric`,year:`numeric`})}),g(Z)&&Z.upstreamUpdatedAt&&T(`span`,{className:`rounded-full bg-wx-bg-elevated px-1.5 py-0.5 text-[10px] font-medium text-wx-fg-muted`,title:new Date(Z.upstreamUpdatedAt).toLocaleString(F),children:M(`editedAt`,{when:h(Z.upstreamUpdatedAt)})})]}),T(`h2`,{className:`text-2xl leading-tight font-bold text-wx-fg`,children:Z.title}),Z.authors&&Z.authors.length>0&&E(`p`,{className:`flex items-center gap-2 text-xs text-wx-fg-muted`,children:[T(`span`,{className:`flex -space-x-1.5`,children:Z.authors.slice(0,3).map(e=>T(`span`,{className:`h-5 w-5 overflow-hidden rounded-full bg-wx-bg-elevated ring-1 ring-wx-bg`,"aria-hidden":`true`,children:T(`img`,{src:e.photo.url,alt:``,className:`h-full w-full object-cover`})},e._id))}),T(`span`,{children:M(`writtenBy`,{names:Z.authors.map(e=>e.name).join(`, `)})})]}),Z.tags&&Z.tags.length>0&&T(`div`,{className:`flex flex-wrap gap-1`,children:Z.tags.map(e=>T(`span`,{className:`rounded-full bg-wx-bg-elevated px-2 py-0.5 text-[11px] font-medium text-wx-fg-muted`,children:e.label},e.slug))}),Z.excerpt&&T(`p`,{className:`text-base leading-relaxed text-wx-fg-muted`,children:Z.excerpt}),Z.contentMarkdown&&T(b,{content:Z.contentMarkdown,isHtml:Z.bodyFormat===`html`||x(Z.contentMarkdown),markdownMarginClass:`mt-3`}),Z.sourceUrl&&E(`a`,{href:Z.sourceUrl,target:`_blank`,rel:`noopener noreferrer`,className:`mt-4 flex items-center justify-center gap-1.5 text-xs text-wx-primary underline underline-offset-2 transition-opacity hover:opacity-80`,children:[T(te,{size:12}),T(`span`,{children:M(`readOriginal`)})]}),R&&T(se,{currentId:Z.id,currentCategoryIds:Z.categoryIds??[],currentTagIds:Z.tagIds??[],previewPostsById:O?void 0:I.previewData?.newsPostsById,visitorRelatedRaw:ue?.visitorNewsRelated,isDummy:O,demoItems:de,onOpen:H}),Z.id&&T(S,{surface:y.NEWS,itemId:Z.id,reactionCounts:Z.reactionCounts??null,viewerReaction:Z.viewerReaction??null,groupItemIds:[Z.id,...(Z.translations??[]).map(e=>e.id)],isDummy:O,showCounts:z,className:`mt-6`}),T(v,{currentLocale:O?U:Z.locale??F,locales:O?[...i]:(Z.translations??[]).map(e=>e.locale),allowedLocales:O?void 0:L.supportedLocales,onSelect:O?e=>W(e):e=>{let t=(Z.translations??[]).find(t=>t.locale===e);t&&H(t.id)},className:`mt-6`})]})]})})}function k(){return T(c,{followDirection:!0,className:`flex-1`,viewportRef:p(),children:E(`div`,{className:`flex flex-col`,"aria-busy":`true`,"aria-live":`polite`,children:[T(`div`,{className:`w-full animate-pulse bg-wx-bg-elevated`,style:{aspectRatio:`16 / 9`}}),E(`div`,{className:`px-5 pt-5 pb-12`,children:[E(`div`,{className:`animate-pulse space-y-2.5`,children:[T(`div`,{className:`h-5 w-3/4 rounded-md bg-wx-bg-elevated`}),T(`div`,{className:`h-5 w-1/2 rounded-md bg-wx-bg-elevated`})]}),T(`div`,{className:`mt-4 flex items-center gap-2 animate-pulse`,children:T(`div`,{className:`h-3 w-24 rounded-md bg-wx-bg-elevated`})}),T(`div`,{className:`mt-6 space-y-2.5 animate-pulse`,children:[`w-full`,`w-11/12`,`w-10/12`,`w-full`,`w-9/12`,`w-7/12`].map((e,n)=>T(`div`,{className:t(`h-3 rounded-md bg-wx-bg-elevated`,e)},n))})]})]})})}export{O as NewsArticleView};
|
|
2
|
+
//# sourceMappingURL=widget-react-DS_ZoY1F.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
globalThis.process===void 0&&(globalThis.process={env:{},nextTick:function(e){setTimeout(e,0)},emit:function(){return!1}});import"react";import"react-dom";import"react/jsx-runtime";import"react-dom/client";import{c as e,g as t,h as n,m as r,o as i,p as a,s as o,t as s}from"./widget-react-FX5W7RyV.js";import*as c from"react";import{Children as l,isValidElement as u,useContext as d,useId as f,useInsertionEffect as p,useMemo as m,useRef as h,useState as g}from"react";import{Fragment as _,jsx as v}from"react/jsx-runtime";function y(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function b(...e){return t=>{let n=!1,r=e.map(e=>{let r=y(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():y(e[t],null)}}}}function x(...e){return c.useCallback(b(...e),e)}var S=class extends c.Component{getSnapshotBeforeUpdate(t){let n=this.props.childRef.current;if(e(n)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let t=n.offsetParent,r=e(t)&&t.offsetWidth||0,i=e(t)&&t.offsetHeight||0,a=getComputedStyle(n),o=this.props.sizeRef.current;o.height=parseFloat(a.height),o.width=parseFloat(a.width),o.top=n.offsetTop,o.left=n.offsetLeft,o.right=r-o.width-o.left,o.bottom=i-o.height-o.top}return null}componentDidUpdate(){}render(){return this.props.children}};function C({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:a}){let s=f(),l=h(null),u=h({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:m}=d(o),g=x(l,e.props?.ref??e?.ref);return p(()=>{let{width:e,height:o,top:c,left:d,right:f,bottom:p}=u.current;if(t||a===!1||!l.current||!e||!o)return;let h=n===`left`?`left: ${d}`:`right: ${f}`,g=r===`bottom`?`bottom: ${p}`:`top: ${c}`;l.current.dataset.motionPopId=s;let _=document.createElement(`style`);m&&(_.nonce=m);let v=i??document.head;return v.appendChild(_),_.sheet&&_.sheet.insertRule(`
|
|
2
|
+
[data-motion-pop-id="${s}"] {
|
|
3
|
+
position: absolute !important;
|
|
4
|
+
width: ${e}px !important;
|
|
5
|
+
height: ${o}px !important;
|
|
6
|
+
${h}px !important;
|
|
7
|
+
${g}px !important;
|
|
8
|
+
}
|
|
9
|
+
`),()=>{l.current?.removeAttribute(`data-motion-pop-id`),v.contains(_)&&v.removeChild(_)}},[t]),v(S,{isPresent:t,childRef:l,sizeRef:u,pop:a,children:a===!1?e:c.cloneElement(e,{ref:g})})}var w=({children:e,initial:t,isPresent:r,onExitComplete:i,custom:o,presenceAffectsLayout:s,mode:l,anchorX:u,anchorY:d,root:p})=>{let h=n(T),g=f(),_=!0,y=m(()=>(_=!1,{id:g,initial:t,isPresent:r,custom:o,onExitComplete:e=>{h.set(e,!0);for(let e of h.values())if(!e)return;i&&i()},register:e=>(h.set(e,!1),()=>h.delete(e))}),[r,h,i]);return s&&_&&(y={...y}),m(()=>{h.forEach((e,t)=>h.set(t,!1))},[r]),c.useEffect(()=>{!r&&!h.size&&i&&i()},[r]),e=v(C,{pop:l===`popLayout`,isPresent:r,anchorX:u,anchorY:d,root:p,children:e}),v(a.Provider,{value:y,children:e})};function T(){return new Map}var E=e=>e.key||``;function D(e){let t=[];return l.forEach(e,e=>{u(e)&&t.push(e)}),t}var O=({children:e,custom:a,initial:o=!0,onExitComplete:s,presenceAffectsLayout:c=!0,mode:l=`sync`,propagate:u=!1,anchorX:f=`left`,anchorY:p=`top`,root:y})=>{let[b,x]=i(u),S=m(()=>D(e),[e]),C=u&&!b?[]:S.map(E),T=h(!0),O=h(S),k=n(()=>new Map),A=h(new Set),[j,M]=g(S),[N,P]=g(S);r(()=>{T.current=!1,O.current=S;for(let e=0;e<N.length;e++){let t=E(N[e]);C.includes(t)?(k.delete(t),A.current.delete(t)):k.get(t)!==!0&&k.set(t,!1)}},[N,C.length,C.join(`-`)]);let F=[];if(S!==j){let e=[...S];for(let t=0;t<N.length;t++){let n=N[t],r=E(n);C.includes(r)||(e.splice(t,0,n),F.push(n))}return l===`wait`&&F.length&&(e=F),P(D(e)),M(S),null}let{forceRender:I}=d(t);return v(_,{children:N.map(e=>{let t=E(e),n=u&&!b?!1:S===N||C.includes(t);return v(w,{isPresent:n,initial:!T.current||o?void 0:!1,custom:a,presenceAffectsLayout:c,mode:l,root:y,onExitComplete:n?void 0:()=>{if(A.current.has(t))return;if(k.has(t))A.current.add(t),k.set(t,!0);else return;let e=!0;k.forEach(t=>{t||(e=!1)}),e&&(I?.(),P(O.current),u&&x?.(),s&&s())},anchorX:f,anchorY:p,children:e},t)})})},k=s(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]);export{O as n,k as t};
|
|
10
|
+
//# sourceMappingURL=widget-react-DUnaBOfT.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
globalThis.process===void 0&&(globalThis.process={env:{},nextTick:function(e){setTimeout(e,0)},emit:function(){return!1}});import"react";import"react-dom";import"react/jsx-runtime";import"react-dom/client";import{t as e}from"./widget-react-DJczk-Ax.js";import{memo as t,useEffect as n,useMemo as r,useRef as i,useState as a}from"react";import{jsx as o}from"react/jsx-runtime";function s(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function c(t,i){let[o,c]=a(null),l=r((()=>s(i,[`plugins`])),[i]),u=r((()=>Object.entries(l).flat()),[l]);return n((()=>{if(!t?.current)return;let n=e.create(Object.assign(Object.assign({},l),{plugins:i.plugins,container:t.current}));return c(n),()=>{n.destroy()}}),[t,i.plugins,...u]),o}var l=/^on([A-Z])/,u=e=>l.test(e);function d(e,t){n((()=>{if(!e)return;let n=Object.entries(t);if(!n.length)return;let r=n.map((([t,n])=>{let r=t.replace(l,((e,t)=>t.toLowerCase()));return e.on(r,((...t)=>n(e,...t)))}));return()=>{r.forEach((e=>e()))}}),[e,...r((()=>Object.entries(t).flat()),[t])])}t((e=>{let t=i(null),[n,a]=function(e){return r((()=>{let t=Object.assign({},e),n=Object.assign({},e);for(let e in t)u(e)?delete t[e]:delete n[e];return[t,n]}),[e])}(e);return d(c(t,n),a),o(`div`,{ref:t})}));function f(e){var{container:t}=e;let i=c(t,s(e,[`container`])),o=function(e){let[t,i]=a(!1),[o,s]=a(!1),[c,l]=a(!1),[u,d]=a(0);return n((()=>{if(!e)return;let t=[e.on(`load`,(()=>{i(!1),s(!1),d(0)})),e.on(`ready`,(()=>{i(!0),s(!1),l(!1),d(0)})),e.on(`finish`,(()=>{l(!0)})),e.on(`play`,(()=>{s(!0)})),e.on(`pause`,(()=>{s(!1)})),e.on(`timeupdate`,(()=>{d(e.getCurrentTime())})),e.on(`destroy`,(()=>{i(!1),s(!1)}))];return()=>{t.forEach((e=>e()))}}),[e]),r((()=>({isReady:t,isPlaying:o,hasFinished:c,currentTime:u})),[o,c,u,t])}(i);return r((()=>Object.assign(Object.assign({},o),{wavesurfer:i})),[o,i])}var p=class{constructor(){this.listeners={}}on(e,t,n){if(this.listeners[e]||(this.listeners[e]=new Set),n?.once){let n=(...r)=>{this.un(e,n),t(...r)};return this.listeners[e].add(n),()=>this.un(e,n)}return this.listeners[e].add(t),()=>this.un(e,t)}un(e,t){var n;(n=this.listeners[e])==null||n.delete(t)}once(e,t){return this.on(e,t,{once:!0})}unAll(){this.listeners={}}emit(e,...t){this.listeners[e]&&this.listeners[e].forEach((e=>e(...t)))}},m=class extends p{constructor(e){super(),this.subscriptions=[],this.isDestroyed=!1,this.options=e}onInit(){}_init(e){this.isDestroyed&&(this.subscriptions=[],this.isDestroyed=!1),this.wavesurfer=e,this.onInit()}destroy(){this.emit(`destroy`),this.subscriptions.forEach((e=>e())),this.subscriptions=[],this.isDestroyed=!0,this.wavesurfer=void 0}};function h(e,t){let n=t.xmlns?document.createElementNS(t.xmlns,e):document.createElement(e);for(let[e,r]of Object.entries(t))if(e===`children`&&r)for(let[e,t]of Object.entries(r))t instanceof Node?n.appendChild(t):typeof t==`string`?n.appendChild(document.createTextNode(t)):n.appendChild(h(e,t));else e===`style`?Object.assign(n.style,r):e===`textContent`?n.textContent=r:n.setAttribute(e,r.toString());return n}function g(e,t,n){let r=h(e,t||{});return n?.appendChild(r),r}function _(e,t){let n,r=()=>{n&&(n(),n=void 0),n=e()},i=t.map((e=>e.subscribe(r)));return r(),()=>{n&&(n(),n=void 0),i.forEach((e=>e()))}}function v(e,t){let n=function(e){let t=e,n=new Set;return{get value(){return t},set(e){Object.is(t,e)||(t=e,n.forEach((e=>e(t))))},update(e){this.set(e(t))},subscribe:e=>(n.add(e),()=>n.delete(e))}}(null),r=e=>{n.set(e)};return e.addEventListener(t,r),n._cleanup=()=>{e.removeEventListener(t,r)},n}var y={lineWidth:1,labelSize:11,labelPreferLeft:!1,formatTimeCallback:e=>`${Math.floor(e/60)}:${`0${Math.floor(e)%60}`.slice(-2)}`},b=class e extends m{constructor(e){super(e||{}),this.lastPointerPosition=null,this.options=Object.assign({},y,e),this.wrapper=g(`div`,{part:`hover`}),this.label=g(`span`,{part:`hover-label`},this.wrapper)}static create(t){return new e(t)}addUnits(e){return`${e}${typeof e==`number`?`px`:``}`}onInit(){if(!this.wavesurfer)throw Error(`WaveSurfer is not initialized`);let e=this.wavesurfer.options,t=this.options.lineColor||e.cursorColor||e.progressColor;Object.assign(this.wrapper.style,{position:`absolute`,zIndex:10,left:0,top:0,height:`100%`,pointerEvents:`none`,borderLeft:`${this.addUnits(this.options.lineWidth)} solid ${t}`,opacity:`0`,transition:`opacity .1s ease-in`}),Object.assign(this.label.style,{display:`block`,backgroundColor:this.options.labelBackground,color:this.options.labelColor,fontSize:`${this.addUnits(this.options.labelSize)}`,transition:`transform .1s ease-in`,padding:`2px 3px`});let n=this.wavesurfer.getWrapper();n.appendChild(this.wrapper);let r=this.wavesurfer.getState(),i=v(n,`pointermove`),a=v(n,`pointerleave`);this.subscriptions.push(_((()=>{let e=i.value;if(!e||!this.wavesurfer)return;this.lastPointerPosition={clientX:e.clientX,clientY:e.clientY};let t=this.wavesurfer.getWrapper().getBoundingClientRect(),{width:n}=t,a=e.clientX-t.left,o=Math.min(1,Math.max(0,a/n)),s=Math.min(n-this.options.lineWidth-1,a);this.wrapper.style.transform=`translateX(${s}px)`,this.wrapper.style.opacity=`1`;let c=r.duration.value;this.label.textContent=this.options.formatTimeCallback(c*o);let l=this.label.offsetWidth,u=this.options.labelPreferLeft?s-l>0:s+l>n;this.label.style.transform=u?`translateX(-${l+this.options.lineWidth}px)`:``,this.emit(`hover`,o)}),[i,r.duration])),this.subscriptions.push(_((()=>{a.value&&(this.wrapper.style.opacity=`0`,this.lastPointerPosition=null,this.wrapper.style.transform=``)}),[a]));let o=()=>{if(this.lastPointerPosition&&this.wavesurfer){let e=this.wavesurfer.getWrapper().getBoundingClientRect(),{width:t}=e,n=this.lastPointerPosition.clientX-e.left,i=Math.min(1,Math.max(0,n/t)),a=Math.min(t-this.options.lineWidth-1,n);this.wrapper.style.transform=`translateX(${a}px)`;let o=r.duration.value;this.label.textContent=this.options.formatTimeCallback(o*i);let s=this.label.offsetWidth,c=this.options.labelPreferLeft?a-s>0:a+s>t;this.label.style.transform=c?`translateX(-${s+this.options.lineWidth}px)`:``}};this.subscriptions.push(this.wavesurfer.on(`zoom`,o)),this.subscriptions.push(this.wavesurfer.on(`scroll`,o))}destroy(){super.destroy(),this.wrapper.remove()}};function x({src:e,onDark:t,containerRef:i,media:o,onState:s}){let[c,l]=a(null),[u,d]=a(!1);n(()=>{let e=i.current;if(!e)return;let n=getComputedStyle(e),r=n.getPropertyValue(`--wx-primary`).trim()||`#121314`,a=n.getPropertyValue(`--wx-primary-fg`).trim()||`#ffffff`,o=n.getPropertyValue(`--wx-fg-muted`).trim()||`#6b7280`;l(t?{wave:S(a,.35),progress:a,hoverLine:a}:{wave:o,progress:r,hoverLine:r})},[t,i]);let p=r(()=>c?[b.create({lineColor:c.hoverLine,lineWidth:1,labelBackground:c.hoverLine,labelColor:t?`#121314`:`#ffffff`,labelSize:`10px`})]:[],[c,t]),m=r(()=>({credentials:`omit`}),[]),h=c!==null&&!u,{wavesurfer:g,isReady:_,currentTime:v}=f({container:i,media:h?o:void 0,url:h?new URL(e,document.baseURI).href:void 0,waveColor:c?.wave,progressColor:c?.progress,cursorColor:c?.progress,barWidth:2,barRadius:2,cursorWidth:1,height:24,hideScrollbar:!0,plugins:p,fetchParams:m});return n(()=>{if(!g)return;let e=()=>d(!0);return g.on(`error`,e),()=>{g.un(`error`,e)}},[g]),n(()=>{s({ready:_,time:v,failed:u})},[_,v,u,s]),null}function S(e,t){let n=e.replace(`#`,``);return n.length===6?`rgba(${parseInt(n.substring(0,2),16)}, ${parseInt(n.substring(2,4),16)}, ${parseInt(n.substring(4,6),16)}, ${t})`:e}export{x as LiveWaveform};
|
|
2
|
+
//# sourceMappingURL=widget-react-DhLRmjli.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
globalThis.process===void 0&&(globalThis.process={env:{},nextTick:function(e){setTimeout(e,0)},emit:function(){return!1}});import"react";import"react-dom";import"react/jsx-runtime";import"react-dom/client";import{t as e}from"./widget-react-FX5W7RyV.js";var t=e(`send`,[[`path`,{d:`M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z`,key:`1ffxy3`}],[`path`,{d:`m21.854 2.147-10.94 10.939`,key:`12cjpa`}]]);export{t};
|
|
2
|
+
//# sourceMappingURL=widget-react-Dl2PevZk.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
globalThis.process===void 0&&(globalThis.process={env:{},nextTick:function(e){setTimeout(e,0)},emit:function(){return!1}});import"react";import"react-dom";import"react/jsx-runtime";import"react-dom/client";import{_ as e,i as t,n,t as r}from"./widget-react-FX5W7RyV.js";import{l as i,o as a,s as o}from"./widget-react-C-hnCqBf.js";import{t as s}from"./widget-react-Dl2PevZk.js";import{t as c}from"./widget-react-BxEMz2N0.js";import{t as l}from"./widget-react-DJczk-Ax.js";import{useEffect as u,useRef as d,useState as f}from"react";import{Fragment as p,jsx as m,jsxs as h}from"react/jsx-runtime";var g=r(`square`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]);function _(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))}var v=class{constructor(){this.listeners={}}on(e,t,n){if(this.listeners[e]||(this.listeners[e]=new Set),n?.once){let n=(...r)=>{this.un(e,n),t(...r)};return this.listeners[e].add(n),()=>this.un(e,n)}return this.listeners[e].add(t),()=>this.un(e,t)}un(e,t){var n;(n=this.listeners[e])==null||n.delete(t)}once(e,t){return this.on(e,t,{once:!0})}unAll(){this.listeners={}}emit(e,...t){this.listeners[e]&&this.listeners[e].forEach((e=>e(...t)))}},y=class extends v{constructor(e){super(),this.subscriptions=[],this.isDestroyed=!1,this.options=e}onInit(){}_init(e){this.isDestroyed&&(this.subscriptions=[],this.isDestroyed=!1),this.wavesurfer=e,this.onInit()}destroy(){this.emit(`destroy`),this.subscriptions.forEach((e=>e())),this.subscriptions=[],this.isDestroyed=!0,this.wavesurfer=void 0}},b=class extends v{constructor(){super(...arguments),this.animationFrameId=null,this.isRunning=!1}start(){if(this.isRunning)return;this.isRunning=!0;let e=()=>{this.isRunning&&(this.emit(`tick`),this.animationFrameId=requestAnimationFrame(e))};e()}stop(){this.isRunning=!1,this.animationFrameId!==null&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=null)}destroy(){this.stop()}},x=100,S=[`audio/webm`,`audio/wav`,`audio/mpeg`,`audio/mp4`,`audio/mp3`],C=class e extends y{constructor(e){var t,n,r;super(Object.assign(Object.assign({},e),{audioBitsPerSecond:e.audioBitsPerSecond??128e3,scrollingWaveform:(t=e.scrollingWaveform)!=null&&t,scrollingWaveformWindow:e.scrollingWaveformWindow??5,continuousWaveform:(n=e.continuousWaveform)!=null&&n,renderRecordedAudio:(r=e.renderRecordedAudio)==null||r,mediaRecorderTimeslice:e.mediaRecorderTimeslice??void 0})),this.stream=null,this.mediaRecorder=null,this.dataWindow=null,this.isWaveformPaused=!1,this.lastStartTime=0,this.lastDuration=0,this.duration=0,this.micStream=null,this.recordedBlobUrl=null,this.timer=new b,this.subscriptions.push(this.timer.on(`tick`,(()=>{let e=performance.now()-this.lastStartTime;this.duration=this.isPaused()?this.duration:this.lastDuration+e,this.emit(`record-progress`,this.duration)})))}static create(t){return new e(t||{})}renderMicStream(e){let t=new AudioContext,n=t.createMediaStreamSource(e),r=t.createAnalyser();n.connect(r),(this.options.continuousWaveform||this.options.scrollingWaveform)&&(r.fftSize=32);let i=r.frequencyBinCount,a=new Float32Array(i),o=0;this.wavesurfer&&(this.originalOptions??(this.originalOptions=Object.assign({},this.wavesurfer.options)),this.wavesurfer.options.interact=!1,this.options.scrollingWaveform&&(this.wavesurfer.options.cursorWidth=0,this.wavesurfer.options.normalize=!0,this.wavesurfer.options.maxPeak=1));let s=setInterval((()=>{if(!this.isWaveformPaused){if(r.getFloatTimeDomainData(a),this.options.scrollingWaveform){let e=Math.floor((this.options.scrollingWaveformWindow||0)*x),t=0;for(let e=0;e<i;e++){let n=Math.abs(a[e]);n>t&&(t=n)}this.dataWindow||(this.dataWindow=new Float32Array(e));let n=new Float32Array(e);if(this.dataWindow&&this.dataWindow.length>0){let t=e-1,r=this.dataWindow.slice(-t);n.set(r,0)}n[e-1]=t,this.dataWindow=n}else if(this.options.continuousWaveform){if(!this.dataWindow){let e=this.options.continuousWaveformDuration?Math.round(this.options.continuousWaveformDuration*x):(this.wavesurfer?.getWidth()??0)*window.devicePixelRatio;this.dataWindow=new Float32Array(e)}let e=0;for(let t=0;t<i;t++){let n=Math.abs(a[t]);n>e&&(e=n)}if(o+1>this.dataWindow.length){let e=new Float32Array(2*this.dataWindow.length);e.set(this.dataWindow,0),this.dataWindow=e}this.dataWindow[o]=e,o++}else this.dataWindow=a;if(this.wavesurfer){let e=(this.dataWindow?.length??0)/x;this.wavesurfer.load(``,[this.dataWindow],this.options.scrollingWaveform?this.options.scrollingWaveformWindow:e).then((()=>{this.wavesurfer&&this.options.continuousWaveform&&(this.wavesurfer.setTime(this.getDuration()/1e3),this.wavesurfer.options.minPxPerSec||this.wavesurfer.setOptions({minPxPerSec:this.wavesurfer.getWidth()/this.wavesurfer.getDuration()}))})).catch((e=>{console.error(`Error rendering real-time recording data:`,e)}))}}}),10);return{onDestroy:()=>{clearInterval(s),n?.disconnect(),t?.close()},onEnd:()=>{this.isWaveformPaused=!0,this.stopMic()}}}startMic(e){return _(this,void 0,void 0,(function*(){let t;this.micStream&&this.stopMic();try{t=yield navigator.mediaDevices.getUserMedia({audio:e==null||e})}catch(e){throw Error(`Error accessing the microphone: `+e.message)}let n=this.renderMicStream(t);return this.micStream=n,this.unsubscribeDestroy=this.once(`destroy`,n.onDestroy),this.unsubscribeRecordEnd=this.once(`record-end`,n.onEnd),this.stream=t,t}))}stopMic(){var e,t,n;(e=this.micStream)==null||e.onDestroy(),(t=this.unsubscribeDestroy)==null||t.call(this),(n=this.unsubscribeRecordEnd)==null||n.call(this),this.micStream=null,this.unsubscribeDestroy=void 0,this.unsubscribeRecordEnd=void 0,this.stream&&(this.stream.getTracks().forEach((e=>e.stop())),this.stream=null,this.mediaRecorder=null)}startRecording(e){return _(this,void 0,void 0,(function*(){let t=this.stream||(yield this.startMic(e));this.dataWindow=null;let n=this.mediaRecorder||new MediaRecorder(t,{mimeType:this.options.mimeType||S.find((e=>MediaRecorder.isTypeSupported(e))),audioBitsPerSecond:this.options.audioBitsPerSecond});this.mediaRecorder=n,this.stopRecording();let r=[];n.ondataavailable=e=>{e.data.size>0&&r.push(e.data),this.emit(`record-data-available`,e.data)};let i=e=>{var t;let i=new Blob(r,{type:n.mimeType});this.emit(e,i),this.options.renderRecordedAudio&&(this.applyOriginalOptionsIfNeeded(),this.recordedBlobUrl&&URL.revokeObjectURL(this.recordedBlobUrl),this.recordedBlobUrl=URL.createObjectURL(i),(t=this.wavesurfer)==null||t.load(this.recordedBlobUrl))};n.onpause=()=>i(`record-pause`),n.onstop=()=>i(`record-end`),n.start(this.options.mediaRecorderTimeslice),this.lastStartTime=performance.now(),this.lastDuration=0,this.duration=0,this.isWaveformPaused=!1,this.timer.start(),this.emit(`record-start`)}))}getDuration(){return this.duration}isRecording(){return this.mediaRecorder?.state===`recording`}isPaused(){return this.mediaRecorder?.state===`paused`}isActive(){return this.mediaRecorder?.state!==`inactive`}stopRecording(){var e;this.isActive()&&((e=this.mediaRecorder)==null||e.stop(),this.timer.stop())}pauseRecording(){var e,t;this.isRecording()&&(this.isWaveformPaused=!0,(e=this.mediaRecorder)==null||e.requestData(),(t=this.mediaRecorder)==null||t.pause(),this.timer.stop(),this.lastDuration=this.duration)}resumeRecording(){var e;this.isPaused()&&(this.isWaveformPaused=!1,(e=this.mediaRecorder)==null||e.resume(),this.timer.start(),this.lastStartTime=performance.now(),this.emit(`record-resume`))}static getAvailableAudioDevices(){return _(this,void 0,void 0,(function*(){return navigator.mediaDevices.enumerateDevices().then((e=>e.filter((e=>e.kind===`audioinput`))))}))}destroy(){this.applyOriginalOptionsIfNeeded(),super.destroy(),this.stopRecording(),this.stopMic(),this.recordedBlobUrl&&(URL.revokeObjectURL(this.recordedBlobUrl),this.recordedBlobUrl=null)}applyOriginalOptionsIfNeeded(){this.wavesurfer&&this.originalOptions&&(this.wavesurfer.setOptions(this.originalOptions),delete this.originalOptions)}};function w(e){let t=Math.max(0,e);return`${Math.floor(t/60)}:${(t%60).toString().padStart(2,`0`)}`}function T(){if(typeof MediaRecorder>`u`)return null;for(let e of[`audio/webm;codecs=opus`,`audio/webm`,`audio/mp4`,`audio/ogg`])if(MediaRecorder.isTypeSupported?.(e))return e;return null}async function E(e){return new Promise((t,n)=>{let r=new FileReader;r.onload=()=>{let e=r.result;if(typeof e!=`string`){n(Error(`FileReader returned non-string result`));return}let i=e.indexOf(`,`);t(i>=0?e.slice(i+1):e)},r.onerror=()=>n(r.error??Error(`read failed`)),r.readAsDataURL(e)})}function D(e){let t=e?.name??``,n=e?.message??``;return t===`NotAllowedError`||t===`PermissionDeniedError`?`denied`:t===`NotFoundError`||t===`NotReadableError`||t===`OverconstrainedError`||t===`SecurityError`||t===`AbortError`||t===`TypeError`||/not found|could not start|secure origin|not readable|in use/i.test(n)?`failed`:/permission|denied|not allowed/i.test(n)?`denied`:`failed`}function O({onComplete:r,onCancel:c,onError:_}){let v=e(`messages`),y=d(null),b=d(null),x=d(null),S=d(null),O=d([]),A=d(null),[j,M]=f(`recording`),[N,P]=f(0),[F,I]=f(!1),L=d(null),R=d(!1);return u(()=>{let e=y.current;if(!e)return;if(typeof window>`u`||!window.MediaRecorder){_(`unsupported`);return}let t=!1;R.current=!1;let n=getComputedStyle(e),r=n.getPropertyValue(`--wx-primary`).trim()||`#5b6cff`,i=n.getPropertyValue(`--wx-fg-muted`).trim()||`#6b7280`,a=l.create({container:e,waveColor:i,progressColor:r,cursorColor:r,cursorWidth:2,height:32,barWidth:2,barGap:2,barRadius:2,interact:!0,hideScrollbar:!0});b.current=a,a.on(`play`,()=>I(!0)),a.on(`pause`,()=>I(!1)),a.on(`finish`,()=>I(!1));let o=a.registerPlugin(C.create({continuousWaveform:!0,continuousWaveformDuration:60,renderRecordedAudio:!1}));x.current=o;let s=null,c=null;return o.startMic().then(e=>{if(t||R.current){try{e.getTracks().forEach(e=>{e.stop()})}catch{}try{o.stopMic()}catch{}return}let n=T(),r=n?new MediaRecorder(e,{mimeType:n}):new MediaRecorder(e);S.current=r,c=r,O.current=[],r.addEventListener(`dataavailable`,e=>{e.data&&e.data.size>0&&O.current.push(e.data)}),r.addEventListener(`stop`,()=>{if(t||R.current)return;try{o.stopMic()}catch{}s!==null&&(clearInterval(s),s=null,A.current=null);let e=r.mimeType||n||`audio/webm`,i=new Blob(O.current,{type:e});E(i).then(n=>{if(t||R.current)return;let r=e.includes(`mp4`)?`mp4`:`webm`;L.current={base64:n,mimetype:e.split(`;`)[0].trim(),size:i.size,filename:`voice-${Date.now()}.${r}`},a.loadBlob(i).then(()=>{if(!(t||R.current)){try{a.setOptions({interact:!0})}catch{}try{a.setTime(0)}catch{}}}).catch(()=>{}),M(`preview`)}).catch(()=>_(`failed`))}),r.start();let i=performance.now();s=window.setInterval(()=>{let e=performance.now()-i,t=Math.floor(e/1e3);P(e=>e===t?e:t)},250),A.current=s}).catch(e=>{t||_(D(e))}),()=>{t=!0,s!==null&&clearInterval(s);try{c?.state===`recording`&&c.stop()}catch{}try{o.stopMic()}catch{}a.destroy(),b.current===a&&(b.current=null),x.current===o&&(x.current=null),S.current===c&&(S.current=null)}},[]),h(t.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},transition:{duration:.18},className:n(`flex items-center gap-1.5 rounded-wx-lg border border-wx-border bg-wx-bg px-2 py-2`),children:[m(k,{Icon:i,onClick:()=>{R.current=!0;try{S.current?.state===`recording`&&S.current.stop()}catch{}try{x.current?.stopMic()}catch{}try{b.current?.pause()}catch{}c()},ariaLabel:v(`cancelRecording`),intent:`ghost`}),h(`div`,{className:`flex h-9 min-w-0 flex-1 items-center gap-2 rounded-full bg-wx-bg-elevated px-3`,children:[j===`recording`&&m(`span`,{"aria-hidden":`true`,className:`h-2 w-2 shrink-0 animate-pulse rounded-full bg-wx-danger`}),m(`div`,{ref:y,"aria-hidden":`true`,className:n(`min-w-0 flex-1 overflow-hidden`,j!==`preview`&&`pointer-events-none`)}),m(`span`,{className:`shrink-0 font-mono text-xs tabular-nums text-wx-fg-muted`,children:w(N)})]}),j===`recording`&&m(t.button,{type:`button`,onClick:()=>{try{S.current?.state===`recording`&&S.current.stop()}catch{}},"aria-label":v(`stopRecording`),whileHover:{scale:1.08},whileTap:{scale:.9},transition:{type:`spring`,stiffness:400,damping:22},className:n(`flex h-8 w-8 shrink-0 items-center justify-center rounded-full transition-colors`,`text-wx-fg-muted hover:bg-wx-bg-elevated hover:text-wx-fg`),children:m(g,{size:14})}),j===`preview`&&h(p,{children:[m(k,{Icon:F?a:o,onClick:()=>{let e=b.current;e&&(e.isPlaying()?e.pause():e.play())},ariaLabel:v(F?`pauseRecording`:`playPreview`),intent:`ghost`}),m(t.button,{type:`button`,onClick:()=>{let e=L.current;e&&r(e)},"aria-label":v(`sendCta`),whileHover:{scale:1.08},whileTap:{scale:.9},transition:{type:`spring`,stiffness:400,damping:22},className:n(`flex h-8 w-8 shrink-0 items-center justify-center rounded-full transition-colors`,`bg-wx-primary text-wx-primary-fg hover:bg-wx-primary-hover`),children:m(s,{size:14})})]})]},`voice-recorder`)}function k({Icon:e,onClick:r,ariaLabel:i,intent:a,size:o=16}){let s=c();return m(t.button,{type:`button`,onClick:r,"aria-label":i,whileHover:{scale:1.08},whileTap:{scale:.9},transition:{type:`spring`,stiffness:400,damping:22},...s.parentHandlers,className:n(`flex h-8 w-8 shrink-0 items-center justify-center rounded-full transition-colors`,a===`primary`?`bg-wx-primary text-wx-primary-fg hover:bg-wx-primary-hover`:`text-wx-fg-muted hover:bg-wx-bg-elevated hover:text-wx-fg`),children:m(e,{ref:s.iconRef,size:o})})}export{O as VoiceRecorderBar};
|
|
2
|
+
//# sourceMappingURL=widget-react-DmRVdLdI.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
globalThis.process===void 0&&(globalThis.process={env:{},nextTick:function(e){setTimeout(e,0)},emit:function(){return!1}});import"react";import"react-dom";import"react/jsx-runtime";import"react-dom/client";var e={tabs:{home:`Inicio`,messages:`Mensajes`,help:`Ayuda`,news:`Novedades`,profile:`Perfil`},header:{close:`Cerrar`,back:`Atrás`,conversationSubtitle:`Nuestro equipo también puede ayudarte`,helpTitle:`Ayuda`,newsTitle:`Novedades`,expand:`Ampliar widget`,collapse:`Contraer widget`,messagesTitle:`Mensajes`,downloadTranscript:`Download transcript`,moreActions:`More`},launcher:{open:`Abrir chat`,close:`Cerrar chat`,panel:`Chat`},tabError:{title:`Algo salió mal`,hint:`No se pudo mostrar esta sección.`,retry:`Reintentar`},chunkError:{failed:`Couldn't load`,retry:`Retry`},home:{greetingHeadline:`¡Hola! 👋`,greetingSubheadline:`¿En qué podemos ayudarte?`,askTitle:`Haz una pregunta`,askSubtitle:`Nuestro bot y nuestro equipo pueden ayudarte`,recentMessageLabel:`Mensaje reciente`,recentMessageTitle:`Mensaje reciente`,recentMessageFromFallback:`Gaia`,recentMessageAgo:`4 h`,recentMessageSample:`Hola 👋 Gracias por contactarnos: enseguida te respondemos.`,featuredArticleLoading:`Artículo destacado`,featuredArticleTap:`Toca para leer`,featuredArticleEmpty:`Elige un artículo`,featuredArticleSetUp:`Configura este bloque en tu panel`,featuredArticleDemoEyebrow:`Pioneer · Save the date`,featuredArticleDemoHeadline:`8 de octubre de 2026`,featuredArticleDemoSubline:`San Francisco · presencial + virtual`,featuredArticleDemoCta:`Ver la agenda del evento`,seeAgenda:`Ver la agenda del evento`,browseHelp:`Explorar la ayuda`,whatsNew:`Novedades`,searchPlaceholder:`Buscar en la ayuda`,pinnedArticlesTitle:`Lee esto primero`,popularArticlesTitle:`Artículos populares`,pinnedArticleRow:`Artículo fijado {n}`,newsPreviewTitle:`Últimas novedades`,seeAll:`See all`,newsPreviewRow:`Novedad {n}`,myConversationsTitle:`Tus conversaciones`,myConversationsEmpty:`Ver tus conversaciones`,teamStatusOnline:`Estamos en línea`,teamStatusReplyInstant:`Usually replies instantly`,teamStatusReplyMinutes:`Usually replies in a few minutes`,teamStatusReplyHours:`Usually replies within a few hours`,teamStatusReplyDay:`Usually replies within a day`,teamStatusAiOnline:`{name} can help right now`,teamStatusOperatorsBack:`Operators back {when}`,teamStatusOfflineUntil:`We're away, back {when}`,teamStatusOfflineSoon:`We're away, back soon`,recentMessageAttachment:`Attachment`},messages:{today:`Hoy`,yesterday:`Ayer`,unreadMessages:`Mensajes sin leer`,emptyTitle:`Aún no hay mensajes`,emptyBody:`Empieza una conversación y nuestro equipo te responderá aquí.`,sendCta:`Envíanos un mensaje`,attach:`Adjuntar un archivo`,commands:`Comandos rápidos`,record:`Grabar un mensaje de voz`,stopRecording:`Detener grabación`,recording:`Grabando…`,uploading:`Subiendo…`,uploadFailed:`Error al subir`,voiceDenied:`Acceso al micrófono denegado`,voiceUnsupported:`Este navegador no admite grabación de voz`,fileTooLarge:`El archivo es demasiado grande (máx. 10 MB)`,fileMimeNotAllowed:`Este tipo de archivo no es compatible`,emoji:`Insertar emoji`,cancelRecording:`Cancelar grabación`,pauseRecording:`Pausar grabación`,resumeRecording:`Reanudar grabación`,playPreview:`Reproducir grabación`,emojiPicker:`Selector de emojis`,emojiSearch:`Buscar…`,playAudio:`Reproducir`,pauseAudio:`Pausar`,openAudio:`Abrir audio`,removeAttachment:`Eliminar`,aiAssistant:`Asistente de IA`,operator:`Agente`,openImage:`Abrir imagen`,openPreview:`Abrir vista previa`,play:`Reproducir`,pause:`Pausar`,typing:`escribiendo…`,aiThinking:`pensando…`,aiSearching:`buscando…`,typingSomeone:`Alguien`,signInToChat:`Inicia sesión para empezar la conversación.`,signInUnavailable:`El inicio de sesión no está disponible ahora mismo.`,googleSignIn:`Iniciar sesión con Google`,googleUnavailable:`Google sign-in isn't available. Check your connection or ad blocker and try again.`,passkeySignIn:`Iniciar sesión con una passkey`,passkeyRegister:`¿Primera vez? Configurar una passkey`,passkeyError:`No se pudo iniciar sesión. Inténtalo de nuevo.`,passkeyNoCredential:`Aún no hay ninguna passkey en este dispositivo: toca «Configurar una passkey» para crear una.`,googleSignInDemo:`Continuar con Google`,connectingOperator:`Se ha asignado un agente, espera un momento…`,assignment:{eta:{minutes:`Un agente responderá en unos {minutes} min`,soft:`Normalmente respondemos en pocos minutos`,businessHours:`El equipo volverá a las {time}`}},withOperator:`Ahora estás chateando con {name}`,operatorConnected:`Agente conectado`,chatResolved:`Conversación resuelta`,chatResolvedByYou:`Conversación resuelta por ti`,chatResolvedByOperator:`Conversación resuelta por {name}`,resolveConversation:`Resolver conversación`,sources:`Fuentes`,moreSources:`+{count} más`,askQuestion:`Ask a question`,previewYou:`You: {text}`,threadsEmptyTitle:`No conversations yet`,threadsEmptyBody:`Start a conversation and it will show up here.`,format:{bold:`Bold`,italic:`Italic`,underline:`Underline`,strikethrough:`Strikethrough`,bulletList:`Bulleted list`,numberedList:`Numbered list`,link:`Link`,linkPlaceholder:`https://…`,linkSave:`Save`,linkCancel:`Cancel`,monospace:`Monospace`},queued:`Waiting for connection`,notDelivered:`Not delivered`,retry:`Retry`,offlineBanner:`You're offline`,backOnline:`Back online`,threadsErrorTitle:`Could not load your conversations`,threadsErrorBody:`Check your connection and try again.`,giphy:{title:`GIFs & Stickers`,searchPlaceholder:`Search GIPHY`,clear:`Clear`,tabGifs:`GIFs`,tabStickers:`Stickers`,error:`Couldn't load`,retry:`Retry`,empty:`No results`,poweredBy:`Powered by GIPHY`},scrollToLatest:`Scroll to latest`,conversationClosed:`This conversation is closed`,startNewConversation:`Start a new conversation`,conversationBlocked:`This conversation is blocked`,visitorBlocked:`You can no longer send messages`,conversationClosedTitle:`That's a wrap 👋`,conversationClosedHint:`This conversation is closed. Start a new one whenever you like.`},prechat:{title:`Antes de empezar`,subtitle:`Unos datos rápidos para que nuestro equipo te ayude antes.`,labelName:`Nombre`,labelEmail:`Correo electrónico`,labelPhone:`Teléfono`,labelCustom:`Detalles`,required:`Obligatorio`,invalidEmail:`Introduce un correo electrónico válido`,invalidPhone:`Introduce un número de teléfono válido`,submit:`Continuar`,submitFailed:`No se pudo enviar: inténtalo de nuevo.`},help:{searchPlaceholder:`Buscar en la ayuda`,emptyTitle:`Aún no hay artículos`,emptyBody:`Tu operador todavía no ha publicado nada.`,back:`Atrás`,helpful:`¿Te ha resultado útil?`,yes:`Sí`,no:`No`,thanks:`Gracias por tu opinión.`,unresolvedCta:`¿Sigues necesitando ayuda? Escríbenos`,noResults:`Sin resultados`,articleNotFound:`Artículo no encontrado`,articleNotTranslated:`Este artículo aún no está disponible en tu idioma.`,writtenBy:`Escrito por {names}`,relatedTitle:`Artículos relacionados`,collectionsCount:`{count, plural, =0 {Sin colecciones} one {# colección} other {# colecciones}}`,articlesCount:`{count, plural, =0 {Sin artículos} one {Artículos: #} other {Artículos: #}}`,authorsByline:`Autores {first}{remaining, plural, =0 {} one { y # más} other { y # más}}`},news:{emptyTitle:`Aún no hay novedades`,emptyBody:`Vuelve aquí para ver noticias del producto y anuncios.`,helpful:`¿Te ha resultado útil este artículo?`,yes:`Sí`,no:`No`,thanks:`Gracias por tu opinión.`,searchPlaceholder:`Buscar novedades`,noResults:`Sin publicaciones coincidentes`,editedAt:`editado {when}`,articleNotFound:`Artículo no encontrado.`,articleNotTranslated:`Esta publicación aún no está disponible en tu idioma.`,readOriginal:`Leer el original`,relatedTitle:`Relacionados`,writtenBy:`Escrito por {names}`,unread:`Novedades sin leer`},reactions:{ariaLabel:`Reacciones`,tapAria:`Reaccionar con {emoji}`},languageSelector:{title:`Leer en otro idioma`,ariaLabel:`Idiomas del artículo`},branding:{poweredBy:`Con tecnología de`,wexio:`Wexio`},sound:{mute:`Silenciar sonidos de notificación`,unmute:`Activar sonidos de notificación`},article:{tableOfContents:`Tabla de contenidos`,tabFallback:`Pestaña {n}`},peek:{newMessage:`Nuevo mensaje`,dismiss:`Descartar`,aiAssistant:`Asistente de IA`,operator:`Agente`},lightbox:{mediaPreview:`Vista previa del medio`,close:`Cerrar vista previa`,previous:`Anterior`,next:`Siguiente`},authError:{turnstileTitle:`No se pudo verificar tu navegador`,turnstileBody:`No hemos podido completar la comprobación de seguridad. A veces se debe a la red o a un bloqueador de anuncios: inténtalo de nuevo o recarga la página.`,genericTitle:`No se pudo conectar`,genericBody:`Algo ha fallado al iniciar tu sesión. Vuelve a intentarlo en un momento.`,retry:`Reintentar`,dismiss:`Descartar`},profile:{title:`Tu perfil`,subtitle:`Actualiza tus datos y la forma en que se comporta el widget.`,uploadAvatar:`Cambiar foto`,removeAvatar:`Quitar foto`,avatarUploading:`Subiendo…`,preferencesHeading:`Preferencias`,preferenceLanguage:`Idioma`,preferenceDesktopNotifications:`Notificaciones de escritorio`,preferenceDesktopNotificationsHint:`Recibe una notificación del sistema cuando el widget no esté en primer plano.`,preferenceThemeMode:`Tema`,themeAuto:`Como el sistema`,themeLight:`Claro`,themeDark:`Oscuro`,themeLocked:`El tema lo establece el operador.`,pinnedHint:`Establecido por el operador: no se puede editar.`,requiredHint:`Obligatorio`,invalidEmail:`Introduce una dirección de correo válida.`,invalidPhone:`Usa el formato internacional, p. ej. +34911234567.`,noFields:`Aún no hay nada que editar aquí.`,save:`Guardar cambios`,saving:`Guardando…`,cancel:`Descartar`,saved:`Cambios guardados.`,loading:`Cargando perfil…`,loadError:`No se pudo cargar tu perfil. Inténtalo de nuevo.`,retry:`Reintentar`,errorFieldNotAllowed:`Este campo no es editable en este widget. Prueba a refrescar.`,errorFieldPinned:`Este campo está bloqueado por tu cuenta.`,errorFieldInvalid:`Algunos valores no son válidos. Revisa los campos marcados.`,errorThemeLocked:`El tema está bloqueado por el operador.`,errorFeatureDisabled:`El operador ha desactivado la edición del perfil.`,errorGeneric:`No se pudieron guardar los cambios. Inténtalo de nuevo.`,notificationsBlocked:`El navegador bloquea las notificaciones. Actualiza los permisos del sitio para activarlas.`,notificationsRequest:`Permite las notificaciones cuando se te pida para activarlas.`,systemFields:{avatar:`Foto`,wexioId:`ID de Wexio`,telegramId:`ID de Telegram`,whatsappId:`ID de WhatsApp`,viberId:`ID de Viber`,instagramId:`ID de Instagram`,optInWhatsapp:`Consentimiento de WhatsApp`,webVerified:`Visitante verificado`,firstName:`Nombre`,lastName:`Apellidos`,username:`Nombre de usuario`,language:`Idioma`,email:`Correo electrónico`,phone:`Teléfono`,company:`Empresa`,location:`Ubicación`,isValid:`Cuenta válida`,chatStatus:`Estado del chat`,chatCategory:`Categoría del chat`,priority:`Prioridad`,leadSource:`Origen del lead`,leadStatus:`Estado del lead`,interestLevel:`Nivel de interés`,productInterest:`Interés en el producto`,budgetRange:`Presupuesto`,purchaseTimeline:`Plazo de compra`,lastMessageSentAt:`Último mensaje enviado`,lastMessageReceivedAt:`Último mensaje recibido`,lastSeenAt:`Última conexión`,firstMessageReceivedAt:`Primer contacto`,isBlocked:`Bloqueado`,registrationDate:`Registrado`,aiAvailable:`Asistencia de IA`,totalMessagesSent:`Mensajes enviados`,totalMessagesReceived:`Mensajes recibidos`,totalAiMessagesSent:`Mensajes enviados por IA`,totalBotMessagesSent:`Mensajes enviados por el bot`,totalUserMessagesSent:`Mensajes enviados por el agente`,flowCompletionRate:`Tasa de finalización de flujos`,lastFlowCompleted:`Último flujo completado`,totalFlowsStarted:`Flujos iniciados`,totalFlowsCompleted:`Flujos completados`},systemFieldOptions:{chatStatus:{ISSUE:`Incidencia`,RESOLVED:`Resuelto`,PENDING:`Pendiente`,IN_PROGRESS:`En curso`,CLOSED:`Cerrado`},chatCategory:{SALES:`Ventas`,SUPPORT:`Soporte`,BILLING:`Facturación`,FEEDBACK:`Opiniones`,GENERAL:`General`,OTHER:`Otro`},priority:{LOW:`Baja`,MEDIUM:`Media`,HIGH:`Alta`,URGENT:`Urgente`},leadStatus:{NEW:`Nuevo`,CONTACTED:`Contactado`,QUALIFIED:`Cualificado`,NEGOTIATING:`En negociación`,WON:`Ganado`,LOST:`Perdido`},interestLevel:{LOW:`Bajo`,MEDIUM:`Medio`,HIGH:`Alto`,VERY_HIGH:`Muy alto`}}},transcript:{title:`Conversation with {org}`,started:`Started on {when}`,exported:`Exported from {org} on {when}`,truncated:`Note: only the most recent messages are included.`,operator:`Operator`,you:`You`}};export{e as default};
|
|
2
|
+
//# sourceMappingURL=widget-react-DouawI6y.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
globalThis.process===void 0&&(globalThis.process={env:{},nextTick:function(e){setTimeout(e,0)},emit:function(){return!1}});import"react";import"react-dom";import"react/jsx-runtime";import"react-dom/client";var e={tabs:{home:`Início`,messages:`Mensagens`,help:`Ajuda`,news:`Novidades`,profile:`Perfil`},header:{close:`Fechar`,back:`Voltar`,conversationSubtitle:`A nossa equipa também pode ajudar`,helpTitle:`Ajuda`,newsTitle:`Novidades`,expand:`Expandir widget`,collapse:`Recolher widget`,messagesTitle:`Mensagens`,downloadTranscript:`Download transcript`,moreActions:`More`},launcher:{open:`Abrir chat`,close:`Fechar chat`,panel:`Chat`},tabError:{title:`Algo correu mal`,hint:`Não foi possível mostrar esta secção.`,retry:`Tentar novamente`},chunkError:{failed:`Couldn't load`,retry:`Retry`},home:{greetingHeadline:`Olá 👋`,greetingSubheadline:`Como podemos ajudar?`,askTitle:`Faça uma pergunta`,askSubtitle:`O nosso bot e a nossa equipa podem ajudar`,recentMessageLabel:`Mensagem recente`,recentMessageTitle:`Mensagem recente`,recentMessageFromFallback:`Gaia`,recentMessageAgo:`4 h`,recentMessageSample:`Olá 👋 Obrigado por contactar-nos — voltamos já a si.`,featuredArticleLoading:`Artigo em destaque`,featuredArticleTap:`Toque para ler`,featuredArticleEmpty:`Escolha um artigo`,featuredArticleSetUp:`Configure este bloco no seu painel`,featuredArticleDemoEyebrow:`Pioneer · Save the date`,featuredArticleDemoHeadline:`8 de outubro de 2026`,featuredArticleDemoSubline:`São Francisco · presencial + virtual`,featuredArticleDemoCta:`Ver a agenda do lançamento`,seeAgenda:`Ver a agenda do lançamento`,browseHelp:`Explorar a ajuda`,whatsNew:`Novidades`,searchPlaceholder:`Procurar na ajuda`,pinnedArticlesTitle:`Leia isto primeiro`,popularArticlesTitle:`Artigos populares`,pinnedArticleRow:`Artigo fixado {n}`,newsPreviewTitle:`Últimas novidades`,seeAll:`See all`,newsPreviewRow:`Novidade {n}`,myConversationsTitle:`As suas conversas`,myConversationsEmpty:`Ver as suas conversas`,teamStatusOnline:`Estamos online`,teamStatusReplyInstant:`Usually replies instantly`,teamStatusReplyMinutes:`Usually replies in a few minutes`,teamStatusReplyHours:`Usually replies within a few hours`,teamStatusReplyDay:`Usually replies within a day`,teamStatusAiOnline:`{name} can help right now`,teamStatusOperatorsBack:`Operators back {when}`,teamStatusOfflineUntil:`We're away, back {when}`,teamStatusOfflineSoon:`We're away, back soon`,recentMessageAttachment:`Attachment`},messages:{today:`Hoje`,yesterday:`Ontem`,unreadMessages:`Mensagens não lidas`,emptyTitle:`Ainda não há mensagens`,emptyBody:`Inicie uma conversa e a nossa equipa responder-lhe-á aqui.`,sendCta:`Envie-nos uma mensagem`,attach:`Anexar um ficheiro`,commands:`Comandos rápidos`,record:`Gravar uma mensagem de voz`,stopRecording:`Parar gravação`,recording:`A gravar…`,uploading:`A carregar…`,uploadFailed:`Falha ao carregar`,voiceDenied:`Acesso ao microfone negado`,voiceUnsupported:`Este navegador não suporta gravação de voz`,fileTooLarge:`O ficheiro é demasiado grande (máx. 10 MB)`,fileMimeNotAllowed:`Este tipo de ficheiro não é suportado`,emoji:`Inserir emoji`,cancelRecording:`Cancelar gravação`,pauseRecording:`Pausar gravação`,resumeRecording:`Retomar gravação`,playPreview:`Reproduzir gravação`,emojiPicker:`Seletor de emojis`,emojiSearch:`Procurar…`,playAudio:`Reproduzir`,pauseAudio:`Pausar`,openAudio:`Abrir áudio`,removeAttachment:`Remover`,aiAssistant:`Assistente de IA`,operator:`Agente`,openImage:`Abrir imagem`,openPreview:`Abrir pré-visualização`,play:`Reproduzir`,pause:`Pausar`,typing:`a escrever…`,aiThinking:`a pensar…`,aiSearching:`a procurar…`,typingSomeone:`Alguém`,signInToChat:`Inicie sessão para começar a conversa.`,signInUnavailable:`O início de sessão não está disponível neste momento.`,googleSignIn:`Iniciar sessão com Google`,googleUnavailable:`Google sign-in isn't available. Check your connection or ad blocker and try again.`,passkeySignIn:`Iniciar sessão com uma passkey`,passkeyRegister:`Primeira vez? Configure uma passkey`,passkeyError:`Não foi possível iniciar sessão. Tente novamente.`,passkeyNoCredential:`Ainda não há nenhuma passkey neste dispositivo — toque em «Configure uma passkey» para criar uma.`,googleSignInDemo:`Continuar com Google`,connectingOperator:`Foi-lhe atribuído um operador, aguarde…`,assignment:{eta:{minutes:`Um operador irá responder daqui a cerca de {minutes} min`,soft:`Normalmente respondemos em poucos minutos`,businessHours:`A equipa estará de volta às {time}`}},withOperator:`Está agora a conversar com {name}`,operatorConnected:`Operador ligado`,chatResolved:`Conversa resolvida`,chatResolvedByYou:`Conversa resolvida por si`,chatResolvedByOperator:`Conversa resolvida por {name}`,resolveConversation:`Resolver conversa`,sources:`Fontes`,moreSources:`+{count} mais`,askQuestion:`Ask a question`,previewYou:`You: {text}`,threadsEmptyTitle:`No conversations yet`,threadsEmptyBody:`Start a conversation and it will show up here.`,format:{bold:`Bold`,italic:`Italic`,underline:`Underline`,strikethrough:`Strikethrough`,bulletList:`Bulleted list`,numberedList:`Numbered list`,link:`Link`,linkPlaceholder:`https://…`,linkSave:`Save`,linkCancel:`Cancel`,monospace:`Monospace`},queued:`Waiting for connection`,notDelivered:`Not delivered`,retry:`Retry`,offlineBanner:`You're offline`,backOnline:`Back online`,threadsErrorTitle:`Could not load your conversations`,threadsErrorBody:`Check your connection and try again.`,giphy:{title:`GIFs & Stickers`,searchPlaceholder:`Search GIPHY`,clear:`Clear`,tabGifs:`GIFs`,tabStickers:`Stickers`,error:`Couldn't load`,retry:`Retry`,empty:`No results`,poweredBy:`Powered by GIPHY`},scrollToLatest:`Scroll to latest`,conversationClosed:`This conversation is closed`,startNewConversation:`Start a new conversation`,conversationBlocked:`This conversation is blocked`,visitorBlocked:`You can no longer send messages`,conversationClosedTitle:`That's a wrap 👋`,conversationClosedHint:`This conversation is closed. Start a new one whenever you like.`},prechat:{title:`Antes de começarmos`,subtitle:`Alguns dados rápidos para a nossa equipa ajudar mais depressa.`,labelName:`Nome`,labelEmail:`E-mail`,labelPhone:`Telemóvel`,labelCustom:`Detalhes`,required:`Obrigatório`,invalidEmail:`Introduza um e-mail válido`,invalidPhone:`Introduza um número de telemóvel válido`,submit:`Continuar`,submitFailed:`Não foi possível submeter — tente novamente.`},help:{searchPlaceholder:`Procurar na ajuda`,emptyTitle:`Ainda não há artigos`,emptyBody:`O seu operador ainda não publicou nada.`,back:`Voltar`,helpful:`Foi útil?`,yes:`Sim`,no:`Não`,thanks:`Obrigado pelo seu feedback.`,unresolvedCta:`Ainda precisa de ajuda? Escreva-nos`,noResults:`Sem resultados`,articleNotFound:`Artigo não encontrado`,articleNotTranslated:`Este artigo ainda não está disponível no seu idioma.`,writtenBy:`Escrito por {names}`,relatedTitle:`Artigos relacionados`,collectionsCount:`{count, plural, =0 {Sem coleções} one {# coleção} other {# coleções}}`,articlesCount:`{count, plural, =0 {Sem artigos} one {Artigos: #} other {Artigos: #}}`,authorsByline:`Autores {first}{remaining, plural, =0 {} one { e mais #} other { e mais #}}`},news:{emptyTitle:`Ainda não há atualizações`,emptyBody:`Volte aqui para ver novidades do produto e anúncios.`,helpful:`Este artigo foi útil?`,yes:`Sim`,no:`Não`,thanks:`Obrigado pelo seu feedback.`,searchPlaceholder:`Procurar nas novidades`,noResults:`Sem publicações correspondentes`,editedAt:`editado {when}`,articleNotFound:`Artigo não encontrado.`,articleNotTranslated:`Esta publicação ainda não está disponível no seu idioma.`,readOriginal:`Ler o original`,relatedTitle:`Relacionados`,writtenBy:`Escrito por {names}`,unread:`Novidades não lidas`},reactions:{ariaLabel:`Reações`,tapAria:`Reagir com {emoji}`},languageSelector:{title:`Ler noutro idioma`,ariaLabel:`Idiomas do artigo`},branding:{poweredBy:`Com tecnologia de`,wexio:`Wexio`},sound:{mute:`Silenciar sons de notificação`,unmute:`Ativar sons de notificação`},article:{tableOfContents:`Índice`,tabFallback:`Separador {n}`},peek:{newMessage:`Nova mensagem`,dismiss:`Dispensar`,aiAssistant:`Assistente de IA`,operator:`Agente`},lightbox:{mediaPreview:`Pré-visualização do conteúdo`,close:`Fechar pré-visualização`,previous:`Anterior`,next:`Seguinte`},authError:{turnstileTitle:`Não foi possível verificar o seu navegador`,turnstileBody:`Não conseguimos concluir a verificação de segurança. Por vezes é um problema de rede ou de bloqueador de anúncios — tente novamente ou recarregue a página.`,genericTitle:`Não foi possível ligar`,genericBody:`Algo correu mal ao iniciar a sua sessão. Tente novamente daqui a um momento.`,retry:`Tentar novamente`,dismiss:`Dispensar`},profile:{title:`O seu perfil`,subtitle:`Atualize os seus dados e o comportamento do widget.`,uploadAvatar:`Alterar fotografia`,removeAvatar:`Remover fotografia`,avatarUploading:`A carregar…`,preferencesHeading:`Preferências`,preferenceLanguage:`Idioma`,preferenceDesktopNotifications:`Notificações de ambiente de trabalho`,preferenceDesktopNotificationsHint:`Receba uma notificação do sistema quando o widget não estiver em primeiro plano.`,preferenceThemeMode:`Tema`,themeAuto:`Como o sistema`,themeLight:`Claro`,themeDark:`Escuro`,themeLocked:`O tema é definido pelo operador.`,pinnedHint:`Definido pelo operador — não editável.`,requiredHint:`Obrigatório`,invalidEmail:`Introduza um endereço de e-mail válido.`,invalidPhone:`Use o formato internacional, p. ex. +351912345678.`,noFields:`Ainda não há nada para editar aqui.`,save:`Guardar alterações`,saving:`A guardar…`,cancel:`Descartar`,saved:`Alterações guardadas.`,loading:`A carregar o perfil…`,loadError:`Não foi possível carregar o seu perfil. Tente novamente.`,retry:`Repetir`,errorFieldNotAllowed:`Este campo não é editável neste widget. Tente atualizar.`,errorFieldPinned:`Este campo está bloqueado pela sua conta.`,errorFieldInvalid:`Alguns valores não são válidos. Verifique os campos destacados.`,errorThemeLocked:`O tema está bloqueado pelo operador.`,errorFeatureDisabled:`O operador desativou a edição do perfil.`,errorGeneric:`Não foi possível guardar as alterações. Tente novamente.`,notificationsBlocked:`As notificações estão bloqueadas pelo navegador. Atualize as permissões do site para ativar.`,notificationsRequest:`Permita as notificações quando for solicitado para ativar isto.`,systemFields:{avatar:`Fotografia`,wexioId:`ID Wexio`,telegramId:`ID Telegram`,whatsappId:`ID WhatsApp`,viberId:`ID Viber`,instagramId:`ID Instagram`,optInWhatsapp:`Consentimento WhatsApp`,webVerified:`Visitante verificado`,firstName:`Nome próprio`,lastName:`Apelido`,username:`Nome de utilizador`,language:`Idioma`,email:`E-mail`,phone:`Telemóvel`,company:`Empresa`,location:`Localização`,isValid:`Conta válida`,chatStatus:`Estado do chat`,chatCategory:`Categoria do chat`,priority:`Prioridade`,leadSource:`Origem do lead`,leadStatus:`Estado do lead`,interestLevel:`Nível de interesse`,productInterest:`Interesse no produto`,budgetRange:`Orçamento`,purchaseTimeline:`Prazo de compra`,lastMessageSentAt:`Última mensagem enviada`,lastMessageReceivedAt:`Última mensagem recebida`,lastSeenAt:`Visto pela última vez`,firstMessageReceivedAt:`Primeiro contacto`,isBlocked:`Bloqueado`,registrationDate:`Registado`,aiAvailable:`Assistência de IA`,totalMessagesSent:`Mensagens enviadas`,totalMessagesReceived:`Mensagens recebidas`,totalAiMessagesSent:`Mensagens enviadas pela IA`,totalBotMessagesSent:`Mensagens enviadas pelo bot`,totalUserMessagesSent:`Mensagens enviadas pelo agente`,flowCompletionRate:`Taxa de conclusão de flows`,lastFlowCompleted:`Último flow concluído`,totalFlowsStarted:`Flows iniciados`,totalFlowsCompleted:`Flows concluídos`},systemFieldOptions:{chatStatus:{ISSUE:`Problema`,RESOLVED:`Resolvido`,PENDING:`Pendente`,IN_PROGRESS:`Em curso`,CLOSED:`Fechado`},chatCategory:{SALES:`Vendas`,SUPPORT:`Suporte`,BILLING:`Faturação`,FEEDBACK:`Comentários`,GENERAL:`Geral`,OTHER:`Outro`},priority:{LOW:`Baixa`,MEDIUM:`Média`,HIGH:`Alta`,URGENT:`Urgente`},leadStatus:{NEW:`Novo`,CONTACTED:`Contactado`,QUALIFIED:`Qualificado`,NEGOTIATING:`Em negociação`,WON:`Ganho`,LOST:`Perdido`},interestLevel:{LOW:`Baixo`,MEDIUM:`Médio`,HIGH:`Alto`,VERY_HIGH:`Muito alto`}}},transcript:{title:`Conversation with {org}`,started:`Started on {when}`,exported:`Exported from {org} on {when}`,truncated:`Note: only the most recent messages are included.`,operator:`Operator`,you:`You`}};export{e as default};
|
|
2
|
+
//# sourceMappingURL=widget-react-DozV7eMU2.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
globalThis.process===void 0&&(globalThis.process={env:{},nextTick:function(e){setTimeout(e,0)},emit:function(){return!1}});import"react";import"react-dom";import"react/jsx-runtime";import"react-dom/client";var e={tabs:{home:`الرئيسية`,messages:`الرسائل`,help:`المساعدة`,news:`الأخبار`,profile:`الملف الشخصي`},header:{close:`إغلاق`,back:`رجوع`,conversationSubtitle:`يمكن لفريقنا أيضًا مساعدتك`,helpTitle:`المساعدة`,newsTitle:`الأخبار`,expand:`توسيع الأداة`,collapse:`طي الأداة`,messagesTitle:`الرسائل`,downloadTranscript:`Download transcript`,moreActions:`More`},launcher:{open:`فتح المحادثة`,close:`إغلاق المحادثة`,panel:`الدردشة`},tabError:{title:`حدث خطأ ما`,hint:`تعذّر عرض هذا القسم.`,retry:`حاول مرة أخرى`},chunkError:{failed:`Couldn't load`,retry:`Retry`},home:{greetingHeadline:`مرحبًا 👋`,greetingSubheadline:`كيف يمكننا مساعدتك؟`,askTitle:`اطرح سؤالاً`,askSubtitle:`يمكن لروبوتنا وفريقنا مساعدتك`,recentMessageLabel:`رسالة حديثة`,recentMessageTitle:`رسالة حديثة`,recentMessageFromFallback:`Gaia`,recentMessageAgo:`4 س`,recentMessageSample:`مرحبًا 👋 شكرًا لتواصلك معنا - سنعود إليك على الفور.`,featuredArticleLoading:`مقال مميز`,featuredArticleTap:`اضغط للقراءة`,featuredArticleEmpty:`اختر مقالاً`,featuredArticleSetUp:`اضبط هذا القسم من لوحة التحكم`,featuredArticleDemoEyebrow:`Pioneer · احفظ التاريخ`,featuredArticleDemoHeadline:`8 أكتوبر 2026`,featuredArticleDemoSubline:`سان فرانسيسكو · حضوريًا + افتراضيًا`,featuredArticleDemoCta:`عرض جدول الإطلاق`,seeAgenda:`عرض جدول الإطلاق`,browseHelp:`تصفح المساعدة`,whatsNew:`ما الجديد`,searchPlaceholder:`ابحث في المساعدة`,pinnedArticlesTitle:`اقرأ هذه أولاً`,popularArticlesTitle:`المقالات الشائعة`,pinnedArticleRow:`مقال مثبّت {n}`,newsPreviewTitle:`أحدث الأخبار`,seeAll:`عرض الكل`,newsPreviewRow:`خبر {n}`,myConversationsTitle:`محادثاتك`,myConversationsEmpty:`عرض محادثاتك`,teamStatusOnline:`نحن متصلون`,teamStatusReplyInstant:`عادةً نرد فورًا`,teamStatusReplyMinutes:`عادةً نرد خلال دقائق قليلة`,teamStatusReplyHours:`عادةً نرد خلال بضع ساعات`,teamStatusReplyDay:`عادةً نرد خلال يوم`,teamStatusAiOnline:`{name} يمكنه المساعدة الآن`,teamStatusOperatorsBack:`يعود المشغّلون {when}`,teamStatusOfflineUntil:`نحن بعيدون، نعود {when}`,teamStatusOfflineSoon:`نحن بعيدون، نعود قريبًا`,recentMessageAttachment:`Attachment`},messages:{today:`اليوم`,yesterday:`أمس`,unreadMessages:`رسائل غير مقروءة`,emptyTitle:`لا توجد رسائل بعد`,emptyBody:`ابدأ محادثة وسيرد عليك فريقنا هنا.`,sendCta:`أرسل لنا رسالة`,attach:`إرفاق ملف`,commands:`أوامر سريعة`,record:`تسجيل رسالة صوتية`,stopRecording:`إيقاف التسجيل`,recording:`جارٍ التسجيل…`,uploading:`جارٍ الرفع…`,uploadFailed:`فشل الرفع`,voiceDenied:`تم رفض الوصول إلى الميكروفون`,voiceUnsupported:`التسجيل الصوتي غير مدعوم في هذا المتصفح`,fileTooLarge:`الملف كبير جدًا (الحد الأقصى 10 ميغابايت)`,fileMimeNotAllowed:`هذا النوع من الملفات غير مدعوم`,emoji:`إدراج رمز تعبيري`,cancelRecording:`إلغاء التسجيل`,pauseRecording:`إيقاف التسجيل مؤقتًا`,resumeRecording:`استئناف التسجيل`,playPreview:`تشغيل التسجيل`,emojiPicker:`منتقي الرموز التعبيرية`,emojiSearch:`بحث…`,playAudio:`تشغيل`,pauseAudio:`إيقاف مؤقت`,openAudio:`فتح الصوت`,removeAttachment:`إزالة`,aiAssistant:`مساعد AI`,operator:`المشغّل`,openImage:`فتح الصورة`,openPreview:`فتح المعاينة`,play:`تشغيل`,pause:`إيقاف مؤقت`,typing:`يكتب…`,aiThinking:`يفكر…`,aiSearching:`يتصفح…`,typingSomeone:`شخص ما`,signInToChat:`يرجى تسجيل الدخول لبدء المحادثة.`,signInUnavailable:`تسجيل الدخول غير متاح حاليًا.`,googleSignIn:`تسجيل الدخول باستخدام Google`,googleUnavailable:`Google sign-in isn't available. Check your connection or ad blocker and try again.`,passkeySignIn:`تسجيل الدخول باستخدام مفتاح المرور`,passkeyRegister:`أول مرة؟ أنشئ مفتاح مرور`,passkeyError:`تعذّر تسجيل الدخول. يرجى المحاولة مرة أخرى.`,passkeyNoCredential:`لا يوجد مفتاح مرور على هذا الجهاز بعد — اضغط «أنشئ مفتاح مرور» لإنشائه.`,googleSignInDemo:`المتابعة باستخدام Google`,connectingOperator:`تم تعيين مشغّل، يرجى الانتظار…`,assignment:{eta:{minutes:`سيرد أحد الموظفين خلال {minutes} دقيقة تقريبًا`,soft:`نرد عادةً خلال بضع دقائق`,businessHours:`سيعود الفريق في {time}`}},withOperator:`أنت الآن تتحدث مع {name}`,operatorConnected:`تم الاتصال بالمشغّل`,chatResolved:`تم حل المحادثة`,chatResolvedByYou:`تم حل المحادثة بواسطتك`,chatResolvedByOperator:`تم حل المحادثة بواسطة {name}`,resolveConversation:`حل المحادثة`,sources:`المصادر`,moreSources:`+{count} أخرى`,askQuestion:`Ask a question`,previewYou:`You: {text}`,threadsEmptyTitle:`No conversations yet`,threadsEmptyBody:`Start a conversation and it will show up here.`,format:{bold:`Bold`,italic:`Italic`,underline:`Underline`,strikethrough:`Strikethrough`,bulletList:`Bulleted list`,numberedList:`Numbered list`,link:`Link`,linkPlaceholder:`https://…`,linkSave:`Save`,linkCancel:`Cancel`,monospace:`Monospace`},queued:`Waiting for connection`,notDelivered:`Not delivered`,retry:`Retry`,offlineBanner:`You're offline`,backOnline:`Back online`,threadsErrorTitle:`Could not load your conversations`,threadsErrorBody:`Check your connection and try again.`,giphy:{title:`GIFs & Stickers`,searchPlaceholder:`Search GIPHY`,clear:`Clear`,tabGifs:`GIFs`,tabStickers:`Stickers`,error:`Couldn't load`,retry:`Retry`,empty:`No results`,poweredBy:`Powered by GIPHY`},scrollToLatest:`Scroll to latest`,conversationClosed:`This conversation is closed`,startNewConversation:`Start a new conversation`,conversationBlocked:`This conversation is blocked`,visitorBlocked:`You can no longer send messages`,conversationClosedTitle:`That's a wrap 👋`,conversationClosedHint:`This conversation is closed. Start a new one whenever you like.`},prechat:{title:`قبل أن نبدأ`,subtitle:`بعض المعلومات السريعة لمساعدتك بشكل أسرع.`,labelName:`الاسم`,labelEmail:`البريد الإلكتروني`,labelPhone:`الهاتف`,labelCustom:`التفاصيل`,required:`مطلوب`,invalidEmail:`يرجى إدخال بريد إلكتروني صالح`,invalidPhone:`يرجى إدخال رقم هاتف صالح`,submit:`متابعة`,submitFailed:`تعذّر الإرسال - يرجى المحاولة مرة أخرى.`},help:{searchPlaceholder:`ابحث في المساعدة`,emptyTitle:`لا توجد مقالات بعد`,emptyBody:`لم ينشر المشغّل أي محتوى بعد.`,back:`رجوع`,helpful:`هل كان هذا مفيدًا؟`,yes:`نعم`,no:`لا`,thanks:`شكرًا على ملاحظاتك.`,unresolvedCta:`ما زلت بحاجة إلى المساعدة؟ راسلنا`,noResults:`لا توجد نتائج`,articleNotFound:`لم يتم العثور على المقال`,articleNotTranslated:`هذا المقال غير متاح بلغتك بعد.`,writtenBy:`بقلم {names}`,relatedTitle:`مقالات ذات صلة`,collectionsCount:`{count, plural, zero {لا توجد مجموعات} one {مجموعة واحدة} two {مجموعتان} few {# مجموعات} many {# مجموعة} other {# مجموعة}}`,articlesCount:`{count, plural, zero {لا توجد مقالات} one {المقالات: #} two {المقالات: #} few {المقالات: #} many {المقالات: #} other {المقالات: #}}`,authorsByline:`المؤلفون {first}{remaining, plural, zero {} one { و# آخر} two { و# آخرَين} few { و# آخرين} many { و# آخرين} other { و# آخر}}`},news:{unread:`أخبار غير مقروءة`,emptyTitle:`لا توجد تحديثات بعد`,emptyBody:`عُد هنا للاطلاع على أخبار المنتج والإعلانات.`,helpful:`هل كان هذا المقال مفيدًا؟`,yes:`نعم`,no:`لا`,thanks:`شكرًا على ملاحظاتك.`,searchPlaceholder:`ابحث في الأخبار`,noResults:`لا توجد منشورات مطابقة`,editedAt:`تم التعديل {when}`,articleNotFound:`لم يتم العثور على المقال.`,articleNotTranslated:`هذا المنشور غير متاح بلغتك بعد.`,readOriginal:`اقرأ النص الأصلي`,relatedTitle:`ذات صلة`,writtenBy:`بقلم {names}`},reactions:{ariaLabel:`التفاعلات`,tapAria:`تفاعل بـ {emoji}`},languageSelector:{title:`اقرأ بلغة أخرى`,ariaLabel:`لغات المقال`},branding:{poweredBy:`مشغَّل بواسطة`,wexio:`Wexio`},sound:{mute:`كتم أصوات الإشعارات`,unmute:`تشغيل أصوات الإشعارات`},article:{tableOfContents:`جدول المحتويات`,tabFallback:`علامة تبويب {n}`},peek:{newMessage:`رسالة جديدة`,dismiss:`إغلاق`,aiAssistant:`مساعد AI`,operator:`المشغّل`},lightbox:{mediaPreview:`معاينة الوسائط`,close:`إغلاق المعاينة`,previous:`السابق`,next:`التالي`},authError:{turnstileTitle:`تعذّر التحقق من متصفحك`,turnstileBody:`لم نتمكن من إكمال التحقق الأمني. قد يكون ذلك بسبب الشبكة أو مانع الإعلانات — حاول مرة أخرى أو أعد تحميل الصفحة.`,genericTitle:`تعذّر الاتصال`,genericBody:`حدث خطأ ما أثناء تسجيل دخولك. يرجى المحاولة بعد قليل.`,retry:`حاول مرة أخرى`,dismiss:`إغلاق`},profile:{title:`ملفك الشخصي`,subtitle:`حدّث معلوماتك وطريقة عمل الأداة.`,uploadAvatar:`تغيير الصورة`,removeAvatar:`إزالة الصورة`,avatarUploading:`جارٍ الرفع…`,preferencesHeading:`التفضيلات`,preferenceLanguage:`اللغة`,preferenceDesktopNotifications:`إشعارات سطح المكتب`,preferenceDesktopNotificationsHint:`احصل على إشعار نظام عندما لا تكون الأداة في المقدمة.`,preferenceThemeMode:`المظهر`,themeAuto:`حسب النظام`,themeLight:`فاتح`,themeDark:`داكن`,themeLocked:`تم ضبط المظهر بواسطة المشغّل.`,pinnedHint:`تم ضبطه بواسطة المشغّل — غير قابل للتعديل.`,requiredHint:`مطلوب`,invalidEmail:`يرجى إدخال عنوان بريد إلكتروني صالح.`,invalidPhone:`استخدم التنسيق الدولي، مثل +14155552671.`,noFields:`لا يوجد شيء لتعديله هنا بعد.`,save:`حفظ التغييرات`,saving:`جارٍ الحفظ…`,cancel:`تجاهل`,saved:`تم حفظ التغييرات.`,loading:`جارٍ تحميل الملف الشخصي…`,loadError:`تعذّر تحميل ملفك الشخصي. يرجى المحاولة مرة أخرى.`,retry:`إعادة المحاولة`,errorFieldNotAllowed:`هذا الحقل غير قابل للتعديل في هذه الأداة. حاول تحديث الصفحة.`,errorFieldPinned:`هذا الحقل مقفل بواسطة حسابك.`,errorFieldInvalid:`بعض القيم غير صالحة. تحقق من الحقول المظللة.`,errorThemeLocked:`المظهر مقفل بواسطة المشغّل.`,errorFeatureDisabled:`تم تعطيل تعديل الملف الشخصي بواسطة المشغّل.`,errorGeneric:`تعذّر حفظ تغييراتك. يرجى المحاولة مرة أخرى.`,notificationsBlocked:`الإشعارات محظورة بواسطة المتصفح. حدّث أذونات الموقع لتفعيلها.`,notificationsRequest:`اسمح بالإشعارات عند طلب المتصفح لتفعيل هذه الميزة.`,systemFields:{avatar:`الصورة`,wexioId:`Wexio ID`,telegramId:`Telegram ID`,whatsappId:`WhatsApp ID`,viberId:`Viber ID`,instagramId:`Instagram ID`,optInWhatsapp:`موافقة WhatsApp`,webVerified:`زائر موثّق`,firstName:`الاسم الأول`,lastName:`اسم العائلة`,username:`اسم المستخدم`,language:`اللغة`,email:`البريد الإلكتروني`,phone:`الهاتف`,company:`الشركة`,location:`الموقع`,isValid:`حساب صالح`,chatStatus:`حالة المحادثة`,chatCategory:`فئة المحادثة`,priority:`الأولوية`,leadSource:`مصدر العميل المحتمل`,leadStatus:`حالة العميل المحتمل`,interestLevel:`مستوى الاهتمام`,productInterest:`الاهتمام بالمنتج`,budgetRange:`الميزانية`,purchaseTimeline:`موعد الشراء`,lastMessageSentAt:`آخر رسالة مُرسلة`,lastMessageReceivedAt:`آخر رسالة مستلمة`,lastSeenAt:`آخر ظهور`,firstMessageReceivedAt:`أول تواصل`,isBlocked:`محظور`,registrationDate:`تاريخ التسجيل`,aiAvailable:`مساعدة AI`,totalMessagesSent:`الرسائل المُرسلة`,totalMessagesReceived:`الرسائل المستلمة`,totalAiMessagesSent:`رسائل AI المُرسلة`,totalBotMessagesSent:`رسائل الروبوت المُرسلة`,totalUserMessagesSent:`رسائل المشغّل المُرسلة`,flowCompletionRate:`معدل اكتمال التدفقات`,lastFlowCompleted:`آخر تدفق مكتمل`,totalFlowsStarted:`التدفقات المبدوءة`,totalFlowsCompleted:`التدفقات المكتملة`},systemFieldOptions:{chatStatus:{ISSUE:`مشكلة`,RESOLVED:`تم الحل`,PENDING:`قيد الانتظار`,IN_PROGRESS:`قيد التنفيذ`,CLOSED:`مغلق`},chatCategory:{SALES:`مبيعات`,SUPPORT:`دعم`,BILLING:`فوترة`,FEEDBACK:`ملاحظات`,GENERAL:`عام`,OTHER:`أخرى`},priority:{LOW:`منخفضة`,MEDIUM:`متوسطة`,HIGH:`عالية`,URGENT:`عاجلة`},leadStatus:{NEW:`جديد`,CONTACTED:`تم التواصل`,QUALIFIED:`مؤهل`,NEGOTIATING:`قيد التفاوض`,WON:`ناجح`,LOST:`خاسر`},interestLevel:{LOW:`منخفض`,MEDIUM:`متوسط`,HIGH:`عالٍ`,VERY_HIGH:`عالٍ جدًا`}}},transcript:{title:`Conversation with {org}`,started:`Started on {when}`,exported:`Exported from {org} on {when}`,truncated:`Note: only the most recent messages are included.`,operator:`Operator`,you:`You`}};export{e as default};
|
|
2
|
+
//# sourceMappingURL=widget-react-Dpkdglv0.js.map
|