@green-on-grey/ui-kit 1.6.0 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chat/AgentSettingsMenu.d.ts +57 -0
- package/dist/chat/index.d.ts +1 -0
- package/dist/chat.js +125 -65
- package/dist/chat.js.map +1 -1
- package/dist/components/Icon.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/locales/index.d.ts +55 -0
- package/dist/locales.js +55 -0
- package/dist/locales.js.map +1 -1
- package/dist/manifest.json +1 -1
- package/dist/{ui-DLi5afmc.js → ui-DvmjcG-d.js} +3 -2
- package/dist/ui-DvmjcG-d.js.map +1 -0
- package/package.json +1 -1
- package/dist/ui-DLi5afmc.js.map +0 -1
package/dist/locales/index.d.ts
CHANGED
|
@@ -92,6 +92,17 @@ export declare const resources: {
|
|
|
92
92
|
page: string;
|
|
93
93
|
};
|
|
94
94
|
};
|
|
95
|
+
agent: {
|
|
96
|
+
menu: string;
|
|
97
|
+
options: string;
|
|
98
|
+
model: string;
|
|
99
|
+
modelDefault: string;
|
|
100
|
+
noModels: string;
|
|
101
|
+
modelCompactWarn: string;
|
|
102
|
+
everywhere: string;
|
|
103
|
+
capImage: string;
|
|
104
|
+
capReasoning: string;
|
|
105
|
+
};
|
|
95
106
|
};
|
|
96
107
|
ru: {
|
|
97
108
|
loading: string;
|
|
@@ -184,6 +195,17 @@ export declare const resources: {
|
|
|
184
195
|
page: string;
|
|
185
196
|
};
|
|
186
197
|
};
|
|
198
|
+
agent: {
|
|
199
|
+
menu: string;
|
|
200
|
+
options: string;
|
|
201
|
+
model: string;
|
|
202
|
+
modelDefault: string;
|
|
203
|
+
noModels: string;
|
|
204
|
+
modelCompactWarn: string;
|
|
205
|
+
everywhere: string;
|
|
206
|
+
capImage: string;
|
|
207
|
+
capReasoning: string;
|
|
208
|
+
};
|
|
187
209
|
};
|
|
188
210
|
de: {
|
|
189
211
|
loading: string;
|
|
@@ -276,6 +298,17 @@ export declare const resources: {
|
|
|
276
298
|
page: string;
|
|
277
299
|
};
|
|
278
300
|
};
|
|
301
|
+
agent: {
|
|
302
|
+
menu: string;
|
|
303
|
+
options: string;
|
|
304
|
+
model: string;
|
|
305
|
+
modelDefault: string;
|
|
306
|
+
noModels: string;
|
|
307
|
+
modelCompactWarn: string;
|
|
308
|
+
everywhere: string;
|
|
309
|
+
capImage: string;
|
|
310
|
+
capReasoning: string;
|
|
311
|
+
};
|
|
279
312
|
};
|
|
280
313
|
es: {
|
|
281
314
|
loading: string;
|
|
@@ -368,6 +401,17 @@ export declare const resources: {
|
|
|
368
401
|
page: string;
|
|
369
402
|
};
|
|
370
403
|
};
|
|
404
|
+
agent: {
|
|
405
|
+
menu: string;
|
|
406
|
+
options: string;
|
|
407
|
+
model: string;
|
|
408
|
+
modelDefault: string;
|
|
409
|
+
noModels: string;
|
|
410
|
+
modelCompactWarn: string;
|
|
411
|
+
everywhere: string;
|
|
412
|
+
capImage: string;
|
|
413
|
+
capReasoning: string;
|
|
414
|
+
};
|
|
371
415
|
};
|
|
372
416
|
zh: {
|
|
373
417
|
loading: string;
|
|
@@ -460,6 +504,17 @@ export declare const resources: {
|
|
|
460
504
|
page: string;
|
|
461
505
|
};
|
|
462
506
|
};
|
|
507
|
+
agent: {
|
|
508
|
+
menu: string;
|
|
509
|
+
options: string;
|
|
510
|
+
model: string;
|
|
511
|
+
modelDefault: string;
|
|
512
|
+
noModels: string;
|
|
513
|
+
modelCompactWarn: string;
|
|
514
|
+
everywhere: string;
|
|
515
|
+
capImage: string;
|
|
516
|
+
capReasoning: string;
|
|
517
|
+
};
|
|
463
518
|
};
|
|
464
519
|
};
|
|
465
520
|
export type KitLanguage = keyof typeof resources;
|
package/dist/locales.js
CHANGED
|
@@ -90,6 +90,17 @@ var t = {
|
|
|
90
90
|
source: "Code",
|
|
91
91
|
page: "Page"
|
|
92
92
|
}
|
|
93
|
+
},
|
|
94
|
+
agent: {
|
|
95
|
+
menu: "Agent",
|
|
96
|
+
options: "Tone",
|
|
97
|
+
model: "Model",
|
|
98
|
+
modelDefault: "Default",
|
|
99
|
+
noModels: "No models granted — ask an administrator",
|
|
100
|
+
modelCompactWarn: "The context will be compacted before the next answer",
|
|
101
|
+
everywhere: "The change applies in every channel and connected service.",
|
|
102
|
+
capImage: "images",
|
|
103
|
+
capReasoning: "reasoning"
|
|
93
104
|
}
|
|
94
105
|
},
|
|
95
106
|
ru: {
|
|
@@ -180,6 +191,17 @@ var t = {
|
|
|
180
191
|
source: "Код",
|
|
181
192
|
page: "Страница"
|
|
182
193
|
}
|
|
194
|
+
},
|
|
195
|
+
agent: {
|
|
196
|
+
menu: "Агент",
|
|
197
|
+
options: "Тон",
|
|
198
|
+
model: "Модель",
|
|
199
|
+
modelDefault: "По умолчанию",
|
|
200
|
+
noModels: "Модели не выданы — обратитесь к администратору",
|
|
201
|
+
modelCompactWarn: "Контекст будет сжат перед следующим ответом",
|
|
202
|
+
everywhere: "Изменение действует во всех каналах и подключённых сервисах.",
|
|
203
|
+
capImage: "изображения",
|
|
204
|
+
capReasoning: "рассуждение"
|
|
183
205
|
}
|
|
184
206
|
},
|
|
185
207
|
de: {
|
|
@@ -270,6 +292,17 @@ var t = {
|
|
|
270
292
|
source: "Code",
|
|
271
293
|
page: "Seite"
|
|
272
294
|
}
|
|
295
|
+
},
|
|
296
|
+
agent: {
|
|
297
|
+
menu: "Agent",
|
|
298
|
+
options: "Ton",
|
|
299
|
+
model: "Modell",
|
|
300
|
+
modelDefault: "Standard",
|
|
301
|
+
noModels: "Keine Modelle freigegeben — wenden Sie sich an einen Administrator",
|
|
302
|
+
modelCompactWarn: "Der Kontext wird vor der nächsten Antwort komprimiert",
|
|
303
|
+
everywhere: "Die Änderung gilt in allen Kanälen und verbundenen Diensten.",
|
|
304
|
+
capImage: "Bilder",
|
|
305
|
+
capReasoning: "Reasoning"
|
|
273
306
|
}
|
|
274
307
|
},
|
|
275
308
|
es: {
|
|
@@ -360,6 +393,17 @@ var t = {
|
|
|
360
393
|
source: "Código",
|
|
361
394
|
page: "Página"
|
|
362
395
|
}
|
|
396
|
+
},
|
|
397
|
+
agent: {
|
|
398
|
+
menu: "Agente",
|
|
399
|
+
options: "Tono",
|
|
400
|
+
model: "Modelo",
|
|
401
|
+
modelDefault: "Predeterminado",
|
|
402
|
+
noModels: "No hay modelos disponibles: consulte a un administrador",
|
|
403
|
+
modelCompactWarn: "El contexto se compactará antes de la próxima respuesta",
|
|
404
|
+
everywhere: "El cambio se aplica en todos los canales y servicios conectados.",
|
|
405
|
+
capImage: "imágenes",
|
|
406
|
+
capReasoning: "razonamiento"
|
|
363
407
|
}
|
|
364
408
|
},
|
|
365
409
|
zh: {
|
|
@@ -450,6 +494,17 @@ var t = {
|
|
|
450
494
|
source: "代码",
|
|
451
495
|
page: "页面"
|
|
452
496
|
}
|
|
497
|
+
},
|
|
498
|
+
agent: {
|
|
499
|
+
menu: "智能体",
|
|
500
|
+
options: "语气",
|
|
501
|
+
model: "模型",
|
|
502
|
+
modelDefault: "默认",
|
|
503
|
+
noModels: "没有可用的模型——请联系管理员",
|
|
504
|
+
modelCompactWarn: "下次回答前将压缩上下文",
|
|
505
|
+
everywhere: "更改在所有渠道和已连接的服务中生效。",
|
|
506
|
+
capImage: "图片",
|
|
507
|
+
capReasoning: "推理"
|
|
453
508
|
}
|
|
454
509
|
}
|
|
455
510
|
};
|
package/dist/locales.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locales.js","names":["loading","cancel","create","close","remove","agentName","topbar","chat","loading","cancel","create","close","remove","agentName","topbar","chat","loading","cancel","create","close","remove","agentName","topbar","chat","loading","cancel","create","close","remove","agentName","topbar","chat","UIKIT_NS","resources","\"delete\"","\"sections\"","\"profile\"","\"title\"","\"conversations\"","\"conversation\"","\"topics\"","\"archive\"","\"noTopics\"","\"newTopic\"","\"topicTitle\"","\"topicHint\"","\"loadOlder\"","\"emptyTitle\"","\"placeholder\"","\"send\"","\"attach\"","\"typing\"","\"moreSteps\"","\"hideSteps\"","\"unread\"","\"retry\"","\"tooLarge\"","\"stop\"","\"voice\"","\"hold\"","\"recording\"","\"review\"","\"notRecognized\"","\"micDenied\"","\"unsupported\"","\"start\"","\"done\"","\"recognizing\"","\"recordingNow\"","\"failed\"","\"confirm\"","\"text\"","\"approve\"","\"reject\"","\"wait\"","\"starting\"","\"queued\"","\"palette\"","\"commands\"","\"skills\"","\"noSkills\"","\"empty\"","\"unknownCommand\"","\"sendAsText\"","\"skillPlaceholder\"","\"context\"","\"meter\"","\"full\"","\"compact\"","\"reset\"","\"waitTurn\"","\"event\"","\"details\"","\"files\"","\"open\"","\"download\"","\"save\"","\"notUtf8\"","\"rows\"","\"source\"","\"page\""],"sources":["../src/locales/en.json","../src/locales/ru.json","../src/locales/de.json","../src/locales/es.json","../src/locales/zh.json","../src/locales/index.ts"],"sourcesContent":["{\n \"loading\": \"Loading…\",\n \"cancel\": \"Cancel\",\n \"create\": \"Create\",\n \"close\": \"Close\",\n \"delete\": \"Delete\",\n \"remove\": \"Remove\",\n \"agentName\": \"Agent name\",\n \"topbar\": {\n \"sections\": \"Sections\",\n \"profile\": \"Profile\"\n },\n \"chat\": {\n \"title\": \"Chat\",\n \"conversations\": \"Conversations\",\n \"conversation\": \"Conversation\",\n \"topics\": \"Topics\",\n \"archive\": \"Archive\",\n \"noTopics\": \"No topics yet\",\n \"newTopic\": \"New topic\",\n \"topicTitle\": \"Topic\",\n \"topicHint\": \"A topic has its own history and the same memory and space.\",\n \"loadOlder\": \"Earlier messages\",\n \"emptyTitle\": \"Hi, I am {name}\",\n \"placeholder\": \"Message {name}…\",\n \"send\": \"Send\",\n \"attach\": \"Attach files\",\n \"typing\": \"The agent is typing\",\n \"moreSteps\": \"{count, plural, one {# more step} other {# more steps}}\",\n \"hideSteps\": \"Hide steps\",\n \"unread\": \"{count, plural, one {# unread answer} other {# unread answers}}\",\n \"retry\": \"Retry\",\n \"tooLarge\": \"The file is too large.\",\n \"stop\": \"Stop\",\n \"voice\": {\n \"hold\": \"Hold to record\",\n \"stop\": \"Stop recording\",\n \"recording\": \"Recording… {seconds} s\",\n \"review\": \"Check the transcript before sending\",\n \"notRecognized\": \"The speech was not recognized\",\n \"micDenied\": \"No access to the microphone\",\n \"unsupported\": \"Voice input is not supported in this browser\",\n \"start\": \"Record a voice message\",\n \"done\": \"Stop\",\n \"recognizing\": \"Recognizing…\",\n \"recordingNow\": \"Recording\",\n \"failed\": \"The voice message could not be recognized\",\n \"retry\": \"Retry\"\n },\n \"confirm\": {\n \"title\": \"Confirm the action\",\n \"text\": \"The agent wants to perform: {action}\",\n \"approve\": \"Execute\",\n \"reject\": \"Reject\"\n },\n \"wait\": {\n \"starting\": \"The agent is starting…\",\n \"queued\": \"{count, plural, =0 {In the queue · you are next} one {In the queue · # ahead of you} other {In the queue · # ahead of you}}\"\n },\n \"palette\": {\n \"title\": \"Commands and skills\",\n \"commands\": \"Commands\",\n \"skills\": \"Skills\",\n \"noSkills\": \"No skills are granted to you\",\n \"empty\": \"Nothing found\"\n },\n \"unknownCommand\": \"Unknown command {name}\",\n \"sendAsText\": \"Send as text\",\n \"skillPlaceholder\": \"What to do with the skill?\",\n \"context\": {\n \"meter\": \"Context: {used} of {total} tokens ({pct}%)\",\n \"full\": \"Answers get more expensive and the agent may get confused.\",\n \"compact\": \"Compact\",\n \"reset\": \"Start over\",\n \"waitTurn\": \"Wait for the answer or stop it\"\n },\n \"event\": {\n \"details\": \"Summary\"\n },\n \"files\": {\n \"open\": \"Open {name}\",\n \"download\": \"Download\",\n \"failed\": \"Could not open the file\",\n \"tooLarge\": \"The file is too large to preview — download it\",\n \"save\": \"Download {name}\",\n \"notUtf8\": \"The file is not in UTF-8 — download it\",\n \"rows\": \"Showing {shown} of {total, plural, one {# row} other {# rows}}\",\n \"source\": \"Code\",\n \"page\": \"Page\"\n }\n }\n}\n","{\n \"loading\": \"Загрузка…\",\n \"cancel\": \"Отмена\",\n \"create\": \"Создать\",\n \"close\": \"Закрыть\",\n \"delete\": \"Удалить\",\n \"remove\": \"Убрать\",\n \"agentName\": \"Имя агента\",\n \"topbar\": {\n \"sections\": \"Разделы\",\n \"profile\": \"Профиль\"\n },\n \"chat\": {\n \"title\": \"Чат\",\n \"conversations\": \"Разговоры\",\n \"conversation\": \"Разговор\",\n \"topics\": \"Темы\",\n \"archive\": \"Архив\",\n \"noTopics\": \"Тем пока нет\",\n \"newTopic\": \"Новая тема\",\n \"topicTitle\": \"Тема\",\n \"topicHint\": \"У темы своя история, а память и пространство — те же.\",\n \"loadOlder\": \"Более ранние сообщения\",\n \"emptyTitle\": \"Привет, я {name}\",\n \"placeholder\": \"Сообщение для {name}…\",\n \"send\": \"Отправить\",\n \"attach\": \"Прикрепить файлы\",\n \"typing\": \"Агент печатает\",\n \"moreSteps\": \"{count, plural, one {ещё # шаг} few {ещё # шага} many {ещё # шагов} other {ещё # шага}}\",\n \"hideSteps\": \"Скрыть шаги\",\n \"unread\": \"{count, plural, one {# непрочитанный ответ} few {# непрочитанных ответа} many {# непрочитанных ответов} other {# непрочитанных ответа}}\",\n \"retry\": \"Повторить\",\n \"tooLarge\": \"Файл слишком большой.\",\n \"stop\": \"Остановить\",\n \"voice\": {\n \"hold\": \"Удерживайте для записи\",\n \"stop\": \"Остановить запись\",\n \"recording\": \"Запись… {seconds} с\",\n \"review\": \"Проверьте расшифровку перед отправкой\",\n \"notRecognized\": \"Речь не распознана\",\n \"micDenied\": \"Нет доступа к микрофону\",\n \"unsupported\": \"Голосовой ввод не поддерживается этим браузером\",\n \"start\": \"Записать голосом\",\n \"done\": \"Стоп\",\n \"recognizing\": \"Распознаём…\",\n \"recordingNow\": \"Запись\",\n \"failed\": \"Не удалось распознать голосовое сообщение\",\n \"retry\": \"Повторить\"\n },\n \"confirm\": {\n \"title\": \"Подтвердите действие\",\n \"text\": \"Агент хочет выполнить: {action}\",\n \"approve\": \"Выполнить\",\n \"reject\": \"Отклонить\"\n },\n \"wait\": {\n \"starting\": \"Агент запускается…\",\n \"queued\": \"{count, plural, =0 {В очереди · вы следующий} other {В очереди · перед вами #}}\"\n },\n \"palette\": {\n \"title\": \"Команды и скиллы\",\n \"commands\": \"Команды\",\n \"skills\": \"Скиллы\",\n \"noSkills\": \"Вам не выдан ни один скилл\",\n \"empty\": \"Ничего не найдено\"\n },\n \"unknownCommand\": \"Неизвестная команда {name}\",\n \"sendAsText\": \"Отправить как текст\",\n \"skillPlaceholder\": \"Что сделать по скиллу?\",\n \"context\": {\n \"meter\": \"Контекст: {used} из {total} токенов ({pct} %)\",\n \"full\": \"Ответы дорожают, агент может путаться.\",\n \"compact\": \"Сжать\",\n \"reset\": \"Начать заново\",\n \"waitTurn\": \"Дождитесь ответа или остановите его\"\n },\n \"event\": {\n \"details\": \"Изложение\"\n },\n \"files\": {\n \"open\": \"Открыть {name}\",\n \"download\": \"Скачать\",\n \"failed\": \"Не удалось открыть файл\",\n \"tooLarge\": \"Файл слишком большой для просмотра — скачайте его\",\n \"save\": \"Скачать {name}\",\n \"notUtf8\": \"Файл не в кодировке UTF-8 — скачайте его\",\n \"rows\": \"Показаны {shown} из {total, plural, one {# строки} other {# строк}}\",\n \"source\": \"Код\",\n \"page\": \"Страница\"\n }\n }\n}\n","{\n \"loading\": \"Wird geladen…\",\n \"cancel\": \"Abbrechen\",\n \"create\": \"Erstellen\",\n \"close\": \"Schließen\",\n \"delete\": \"Löschen\",\n \"remove\": \"Entfernen\",\n \"agentName\": \"Name des Agenten\",\n \"topbar\": {\n \"sections\": \"Bereiche\",\n \"profile\": \"Profil\"\n },\n \"chat\": {\n \"title\": \"Chat\",\n \"conversations\": \"Gespräche\",\n \"conversation\": \"Gespräch\",\n \"topics\": \"Themen\",\n \"archive\": \"Archiv\",\n \"noTopics\": \"Noch keine Themen\",\n \"newTopic\": \"Neues Thema\",\n \"topicTitle\": \"Thema\",\n \"topicHint\": \"Ein Thema hat einen eigenen Verlauf, aber dasselbe Gedächtnis und denselben Arbeitsbereich.\",\n \"loadOlder\": \"Frühere Nachrichten\",\n \"emptyTitle\": \"Hallo, ich bin {name}\",\n \"placeholder\": \"Nachricht an {name}…\",\n \"send\": \"Senden\",\n \"attach\": \"Dateien anhängen\",\n \"typing\": \"Der Agent schreibt\",\n \"moreSteps\": \"{count, plural, one {# weiterer Schritt} other {# weitere Schritte}}\",\n \"hideSteps\": \"Schritte ausblenden\",\n \"unread\": \"{count, plural, one {# ungelesene Antwort} other {# ungelesene Antworten}}\",\n \"retry\": \"Wiederholen\",\n \"tooLarge\": \"Die Datei ist zu groß.\",\n \"stop\": \"Stoppen\",\n \"voice\": {\n \"hold\": \"Zum Aufnehmen gedrückt halten\",\n \"stop\": \"Aufnahme beenden\",\n \"recording\": \"Aufnahme… {seconds} s\",\n \"review\": \"Prüfen Sie die Transkription vor dem Senden\",\n \"notRecognized\": \"Die Sprache wurde nicht erkannt\",\n \"micDenied\": \"Kein Zugriff auf das Mikrofon\",\n \"unsupported\": \"Spracheingabe wird von diesem Browser nicht unterstützt\",\n \"start\": \"Sprachnachricht aufnehmen\",\n \"done\": \"Stopp\",\n \"recognizing\": \"Wird erkannt…\",\n \"recordingNow\": \"Aufnahme\",\n \"failed\": \"Die Sprachnachricht konnte nicht erkannt werden\",\n \"retry\": \"Wiederholen\"\n },\n \"confirm\": {\n \"title\": \"Aktion bestätigen\",\n \"text\": \"Der Agent möchte ausführen: {action}\",\n \"approve\": \"Ausführen\",\n \"reject\": \"Ablehnen\"\n },\n \"wait\": {\n \"starting\": \"Der Agent startet…\",\n \"queued\": \"{count, plural, =0 {In der Warteschlange · Sie sind als Nächstes dran} other {In der Warteschlange · # vor Ihnen}}\"\n },\n \"palette\": {\n \"title\": \"Befehle und Skills\",\n \"commands\": \"Befehle\",\n \"skills\": \"Skills\",\n \"noSkills\": \"Ihnen ist kein Skill freigegeben\",\n \"empty\": \"Nichts gefunden\"\n },\n \"unknownCommand\": \"Unbekannter Befehl {name}\",\n \"sendAsText\": \"Als Text senden\",\n \"skillPlaceholder\": \"Was soll mit dem Skill getan werden?\",\n \"context\": {\n \"meter\": \"Kontext: {used} von {total} Tokens ({pct} %)\",\n \"full\": \"Antworten werden teurer, der Agent kann durcheinanderkommen.\",\n \"compact\": \"Komprimieren\",\n \"reset\": \"Neu beginnen\",\n \"waitTurn\": \"Warten Sie auf die Antwort oder stoppen Sie sie\"\n },\n \"event\": {\n \"details\": \"Zusammenfassung\"\n },\n \"files\": {\n \"open\": \"{name} öffnen\",\n \"download\": \"Herunterladen\",\n \"failed\": \"Die Datei konnte nicht geöffnet werden\",\n \"tooLarge\": \"Die Datei ist zu groß für die Vorschau — bitte herunterladen\",\n \"save\": \"{name} herunterladen\",\n \"notUtf8\": \"Die Datei ist nicht in UTF-8 — bitte herunterladen\",\n \"rows\": \"{shown} von {total, plural, one {# Zeile} other {# Zeilen}} angezeigt\",\n \"source\": \"Code\",\n \"page\": \"Seite\"\n }\n }\n}\n","{\n \"loading\": \"Cargando…\",\n \"cancel\": \"Cancelar\",\n \"create\": \"Crear\",\n \"close\": \"Cerrar\",\n \"delete\": \"Eliminar\",\n \"remove\": \"Quitar\",\n \"agentName\": \"Nombre del agente\",\n \"topbar\": {\n \"sections\": \"Secciones\",\n \"profile\": \"Perfil\"\n },\n \"chat\": {\n \"title\": \"Chat\",\n \"conversations\": \"Conversaciones\",\n \"conversation\": \"Conversación\",\n \"topics\": \"Temas\",\n \"archive\": \"Archivo\",\n \"noTopics\": \"Aún no hay temas\",\n \"newTopic\": \"Nuevo tema\",\n \"topicTitle\": \"Tema\",\n \"topicHint\": \"Un tema tiene su propio historial y la misma memoria y espacio.\",\n \"loadOlder\": \"Mensajes anteriores\",\n \"emptyTitle\": \"Hola, soy {name}\",\n \"placeholder\": \"Mensaje para {name}…\",\n \"send\": \"Enviar\",\n \"attach\": \"Adjuntar archivos\",\n \"typing\": \"El agente está escribiendo\",\n \"moreSteps\": \"{count, plural, one {# paso más} other {# pasos más}}\",\n \"hideSteps\": \"Ocultar pasos\",\n \"unread\": \"{count, plural, one {# respuesta sin leer} other {# respuestas sin leer}}\",\n \"retry\": \"Reintentar\",\n \"tooLarge\": \"El archivo es demasiado grande.\",\n \"stop\": \"Detener\",\n \"voice\": {\n \"hold\": \"Mantenga pulsado para grabar\",\n \"stop\": \"Detener la grabación\",\n \"recording\": \"Grabando… {seconds} s\",\n \"review\": \"Revise la transcripción antes de enviar\",\n \"notRecognized\": \"No se reconoció la voz\",\n \"micDenied\": \"Sin acceso al micrófono\",\n \"unsupported\": \"Este navegador no admite la entrada de voz\",\n \"start\": \"Grabar un mensaje de voz\",\n \"done\": \"Detener\",\n \"recognizing\": \"Reconociendo…\",\n \"recordingNow\": \"Grabando\",\n \"failed\": \"No se pudo reconocer el mensaje de voz\",\n \"retry\": \"Reintentar\"\n },\n \"confirm\": {\n \"title\": \"Confirme la acción\",\n \"text\": \"El agente quiere ejecutar: {action}\",\n \"approve\": \"Ejecutar\",\n \"reject\": \"Rechazar\"\n },\n \"wait\": {\n \"starting\": \"El agente se está iniciando…\",\n \"queued\": \"{count, plural, =0 {En cola · usted es el siguiente} other {En cola · # por delante}}\"\n },\n \"palette\": {\n \"title\": \"Comandos y skills\",\n \"commands\": \"Comandos\",\n \"skills\": \"Skills\",\n \"noSkills\": \"No tiene skills disponibles\",\n \"empty\": \"No se encontró nada\"\n },\n \"unknownCommand\": \"Comando desconocido {name}\",\n \"sendAsText\": \"Enviar como texto\",\n \"skillPlaceholder\": \"¿Qué hacer con el skill?\",\n \"context\": {\n \"meter\": \"Contexto: {used} de {total} tokens ({pct} %)\",\n \"full\": \"Las respuestas se encarecen y el agente puede confundirse.\",\n \"compact\": \"Compactar\",\n \"reset\": \"Empezar de nuevo\",\n \"waitTurn\": \"Espere la respuesta o deténgala\"\n },\n \"event\": {\n \"details\": \"Resumen\"\n },\n \"files\": {\n \"open\": \"Abrir {name}\",\n \"download\": \"Descargar\",\n \"failed\": \"No se pudo abrir el archivo\",\n \"tooLarge\": \"El archivo es demasiado grande para la vista previa: descárguelo\",\n \"save\": \"Descargar {name}\",\n \"notUtf8\": \"El archivo no está en UTF-8: descárguelo\",\n \"rows\": \"Se muestran {shown} de {total, plural, one {# fila} other {# filas}}\",\n \"source\": \"Código\",\n \"page\": \"Página\"\n }\n }\n}\n","{\n \"loading\": \"加载中…\",\n \"cancel\": \"取消\",\n \"create\": \"创建\",\n \"close\": \"关闭\",\n \"delete\": \"删除\",\n \"remove\": \"移除\",\n \"agentName\": \"智能体名称\",\n \"topbar\": {\n \"sections\": \"栏目\",\n \"profile\": \"个人资料\"\n },\n \"chat\": {\n \"title\": \"聊天\",\n \"conversations\": \"对话\",\n \"conversation\": \"对话\",\n \"topics\": \"话题\",\n \"archive\": \"归档\",\n \"noTopics\": \"暂无话题\",\n \"newTopic\": \"新话题\",\n \"topicTitle\": \"话题\",\n \"topicHint\": \"话题有独立的历史记录,记忆和空间与主对话相同。\",\n \"loadOlder\": \"更早的消息\",\n \"emptyTitle\": \"你好,我是 {name}\",\n \"placeholder\": \"给 {name} 发消息…\",\n \"send\": \"发送\",\n \"attach\": \"附加文件\",\n \"typing\": \"智能体正在输入\",\n \"moreSteps\": \"{count, plural, other {另外 # 个步骤}}\",\n \"hideSteps\": \"隐藏步骤\",\n \"unread\": \"{count} 条未读回复\",\n \"retry\": \"重试\",\n \"tooLarge\": \"文件太大。\",\n \"stop\": \"停止\",\n \"voice\": {\n \"hold\": \"按住录音\",\n \"stop\": \"停止录音\",\n \"recording\": \"录音中… {seconds} 秒\",\n \"review\": \"发送前请检查转写文本\",\n \"notRecognized\": \"未能识别语音\",\n \"micDenied\": \"无法访问麦克风\",\n \"unsupported\": \"此浏览器不支持语音输入\",\n \"start\": \"录制语音\",\n \"done\": \"停止\",\n \"recognizing\": \"正在识别…\",\n \"recordingNow\": \"录音中\",\n \"failed\": \"无法识别语音消息\",\n \"retry\": \"重试\"\n },\n \"confirm\": {\n \"title\": \"确认操作\",\n \"text\": \"代理想要执行:{action}\",\n \"approve\": \"执行\",\n \"reject\": \"拒绝\"\n },\n \"wait\": {\n \"starting\": \"代理正在启动…\",\n \"queued\": \"{count, plural, =0 {排队中 · 您是下一位} other {排队中 · 前面还有 # 位}}\"\n },\n \"palette\": {\n \"title\": \"命令和技能\",\n \"commands\": \"命令\",\n \"skills\": \"技能\",\n \"noSkills\": \"您没有可用的技能\",\n \"empty\": \"未找到\"\n },\n \"unknownCommand\": \"未知命令 {name}\",\n \"sendAsText\": \"作为文本发送\",\n \"skillPlaceholder\": \"用这个技能做什么?\",\n \"context\": {\n \"meter\": \"上下文:{used} / {total} 个令牌({pct}%)\",\n \"full\": \"回答变得更贵,代理可能会混淆。\",\n \"compact\": \"压缩\",\n \"reset\": \"重新开始\",\n \"waitTurn\": \"请等待回答或停止它\"\n },\n \"event\": {\n \"details\": \"摘要\"\n },\n \"files\": {\n \"open\": \"打开 {name}\",\n \"download\": \"下载\",\n \"failed\": \"无法打开文件\",\n \"tooLarge\": \"文件太大,无法预览,请下载\",\n \"save\": \"下载 {name}\",\n \"notUtf8\": \"文件不是 UTF-8 编码,请下载\",\n \"rows\": \"显示 {total} 行中的 {shown} 行\",\n \"source\": \"代码\",\n \"page\": \"页面\"\n }\n }\n}\n","import en from \"./en.json\";\nimport ru from \"./ru.json\";\nimport de from \"./de.json\";\nimport es from \"./es.json\";\nimport zh from \"./zh.json\";\n\n/** Strings of the components in the five languages of the products. A product adds\n * them to its i18next instance under the namespace `uikit`. */\nexport const resources = { en, ru, de, es, zh };\nexport type KitLanguage = keyof typeof resources;\nexport { UIKIT_NS } from \"../i18n\";\n"],"mappings":";;;AKQA,IAAaiC,IAAY;CAAE,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAA;CAAI,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAA;CAAI,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAA;CAAI,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAA;CAAI,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAA;AAAG"}
|
|
1
|
+
{"version":3,"file":"locales.js","names":["loading","cancel","create","close","remove","agentName","topbar","chat","agent","loading","cancel","create","close","remove","agentName","topbar","chat","agent","loading","cancel","create","close","remove","agentName","topbar","chat","agent","loading","cancel","create","close","remove","agentName","topbar","chat","agent","UIKIT_NS","resources","\"delete\"","\"sections\"","\"profile\"","\"title\"","\"conversations\"","\"conversation\"","\"topics\"","\"archive\"","\"noTopics\"","\"newTopic\"","\"topicTitle\"","\"topicHint\"","\"loadOlder\"","\"emptyTitle\"","\"placeholder\"","\"send\"","\"attach\"","\"typing\"","\"moreSteps\"","\"hideSteps\"","\"unread\"","\"retry\"","\"tooLarge\"","\"stop\"","\"voice\"","\"hold\"","\"recording\"","\"review\"","\"notRecognized\"","\"micDenied\"","\"unsupported\"","\"start\"","\"done\"","\"recognizing\"","\"recordingNow\"","\"failed\"","\"confirm\"","\"text\"","\"approve\"","\"reject\"","\"wait\"","\"starting\"","\"queued\"","\"palette\"","\"commands\"","\"skills\"","\"noSkills\"","\"empty\"","\"unknownCommand\"","\"sendAsText\"","\"skillPlaceholder\"","\"context\"","\"meter\"","\"full\"","\"compact\"","\"reset\"","\"waitTurn\"","\"event\"","\"details\"","\"files\"","\"open\"","\"download\"","\"save\"","\"notUtf8\"","\"rows\"","\"source\"","\"page\"","\"menu\"","\"options\"","\"model\"","\"modelDefault\"","\"noModels\"","\"modelCompactWarn\"","\"everywhere\"","\"capImage\"","\"capReasoning\""],"sources":["../src/locales/en.json","../src/locales/ru.json","../src/locales/de.json","../src/locales/es.json","../src/locales/zh.json","../src/locales/index.ts"],"sourcesContent":["{\n \"loading\": \"Loading…\",\n \"cancel\": \"Cancel\",\n \"create\": \"Create\",\n \"close\": \"Close\",\n \"delete\": \"Delete\",\n \"remove\": \"Remove\",\n \"agentName\": \"Agent name\",\n \"topbar\": {\n \"sections\": \"Sections\",\n \"profile\": \"Profile\"\n },\n \"chat\": {\n \"title\": \"Chat\",\n \"conversations\": \"Conversations\",\n \"conversation\": \"Conversation\",\n \"topics\": \"Topics\",\n \"archive\": \"Archive\",\n \"noTopics\": \"No topics yet\",\n \"newTopic\": \"New topic\",\n \"topicTitle\": \"Topic\",\n \"topicHint\": \"A topic has its own history and the same memory and space.\",\n \"loadOlder\": \"Earlier messages\",\n \"emptyTitle\": \"Hi, I am {name}\",\n \"placeholder\": \"Message {name}…\",\n \"send\": \"Send\",\n \"attach\": \"Attach files\",\n \"typing\": \"The agent is typing\",\n \"moreSteps\": \"{count, plural, one {# more step} other {# more steps}}\",\n \"hideSteps\": \"Hide steps\",\n \"unread\": \"{count, plural, one {# unread answer} other {# unread answers}}\",\n \"retry\": \"Retry\",\n \"tooLarge\": \"The file is too large.\",\n \"stop\": \"Stop\",\n \"voice\": {\n \"hold\": \"Hold to record\",\n \"stop\": \"Stop recording\",\n \"recording\": \"Recording… {seconds} s\",\n \"review\": \"Check the transcript before sending\",\n \"notRecognized\": \"The speech was not recognized\",\n \"micDenied\": \"No access to the microphone\",\n \"unsupported\": \"Voice input is not supported in this browser\",\n \"start\": \"Record a voice message\",\n \"done\": \"Stop\",\n \"recognizing\": \"Recognizing…\",\n \"recordingNow\": \"Recording\",\n \"failed\": \"The voice message could not be recognized\",\n \"retry\": \"Retry\"\n },\n \"confirm\": {\n \"title\": \"Confirm the action\",\n \"text\": \"The agent wants to perform: {action}\",\n \"approve\": \"Execute\",\n \"reject\": \"Reject\"\n },\n \"wait\": {\n \"starting\": \"The agent is starting…\",\n \"queued\": \"{count, plural, =0 {In the queue · you are next} one {In the queue · # ahead of you} other {In the queue · # ahead of you}}\"\n },\n \"palette\": {\n \"title\": \"Commands and skills\",\n \"commands\": \"Commands\",\n \"skills\": \"Skills\",\n \"noSkills\": \"No skills are granted to you\",\n \"empty\": \"Nothing found\"\n },\n \"unknownCommand\": \"Unknown command {name}\",\n \"sendAsText\": \"Send as text\",\n \"skillPlaceholder\": \"What to do with the skill?\",\n \"context\": {\n \"meter\": \"Context: {used} of {total} tokens ({pct}%)\",\n \"full\": \"Answers get more expensive and the agent may get confused.\",\n \"compact\": \"Compact\",\n \"reset\": \"Start over\",\n \"waitTurn\": \"Wait for the answer or stop it\"\n },\n \"event\": {\n \"details\": \"Summary\"\n },\n \"files\": {\n \"open\": \"Open {name}\",\n \"download\": \"Download\",\n \"failed\": \"Could not open the file\",\n \"tooLarge\": \"The file is too large to preview — download it\",\n \"save\": \"Download {name}\",\n \"notUtf8\": \"The file is not in UTF-8 — download it\",\n \"rows\": \"Showing {shown} of {total, plural, one {# row} other {# rows}}\",\n \"source\": \"Code\",\n \"page\": \"Page\"\n }\n },\n \"agent\": {\n \"menu\": \"Agent\",\n \"options\": \"Tone\",\n \"model\": \"Model\",\n \"modelDefault\": \"Default\",\n \"noModels\": \"No models granted — ask an administrator\",\n \"modelCompactWarn\": \"The context will be compacted before the next answer\",\n \"everywhere\": \"The change applies in every channel and connected service.\",\n \"capImage\": \"images\",\n \"capReasoning\": \"reasoning\"\n }\n}\n","{\n \"loading\": \"Загрузка…\",\n \"cancel\": \"Отмена\",\n \"create\": \"Создать\",\n \"close\": \"Закрыть\",\n \"delete\": \"Удалить\",\n \"remove\": \"Убрать\",\n \"agentName\": \"Имя агента\",\n \"topbar\": {\n \"sections\": \"Разделы\",\n \"profile\": \"Профиль\"\n },\n \"chat\": {\n \"title\": \"Чат\",\n \"conversations\": \"Разговоры\",\n \"conversation\": \"Разговор\",\n \"topics\": \"Темы\",\n \"archive\": \"Архив\",\n \"noTopics\": \"Тем пока нет\",\n \"newTopic\": \"Новая тема\",\n \"topicTitle\": \"Тема\",\n \"topicHint\": \"У темы своя история, а память и пространство — те же.\",\n \"loadOlder\": \"Более ранние сообщения\",\n \"emptyTitle\": \"Привет, я {name}\",\n \"placeholder\": \"Сообщение для {name}…\",\n \"send\": \"Отправить\",\n \"attach\": \"Прикрепить файлы\",\n \"typing\": \"Агент печатает\",\n \"moreSteps\": \"{count, plural, one {ещё # шаг} few {ещё # шага} many {ещё # шагов} other {ещё # шага}}\",\n \"hideSteps\": \"Скрыть шаги\",\n \"unread\": \"{count, plural, one {# непрочитанный ответ} few {# непрочитанных ответа} many {# непрочитанных ответов} other {# непрочитанных ответа}}\",\n \"retry\": \"Повторить\",\n \"tooLarge\": \"Файл слишком большой.\",\n \"stop\": \"Остановить\",\n \"voice\": {\n \"hold\": \"Удерживайте для записи\",\n \"stop\": \"Остановить запись\",\n \"recording\": \"Запись… {seconds} с\",\n \"review\": \"Проверьте расшифровку перед отправкой\",\n \"notRecognized\": \"Речь не распознана\",\n \"micDenied\": \"Нет доступа к микрофону\",\n \"unsupported\": \"Голосовой ввод не поддерживается этим браузером\",\n \"start\": \"Записать голосом\",\n \"done\": \"Стоп\",\n \"recognizing\": \"Распознаём…\",\n \"recordingNow\": \"Запись\",\n \"failed\": \"Не удалось распознать голосовое сообщение\",\n \"retry\": \"Повторить\"\n },\n \"confirm\": {\n \"title\": \"Подтвердите действие\",\n \"text\": \"Агент хочет выполнить: {action}\",\n \"approve\": \"Выполнить\",\n \"reject\": \"Отклонить\"\n },\n \"wait\": {\n \"starting\": \"Агент запускается…\",\n \"queued\": \"{count, plural, =0 {В очереди · вы следующий} other {В очереди · перед вами #}}\"\n },\n \"palette\": {\n \"title\": \"Команды и скиллы\",\n \"commands\": \"Команды\",\n \"skills\": \"Скиллы\",\n \"noSkills\": \"Вам не выдан ни один скилл\",\n \"empty\": \"Ничего не найдено\"\n },\n \"unknownCommand\": \"Неизвестная команда {name}\",\n \"sendAsText\": \"Отправить как текст\",\n \"skillPlaceholder\": \"Что сделать по скиллу?\",\n \"context\": {\n \"meter\": \"Контекст: {used} из {total} токенов ({pct} %)\",\n \"full\": \"Ответы дорожают, агент может путаться.\",\n \"compact\": \"Сжать\",\n \"reset\": \"Начать заново\",\n \"waitTurn\": \"Дождитесь ответа или остановите его\"\n },\n \"event\": {\n \"details\": \"Изложение\"\n },\n \"files\": {\n \"open\": \"Открыть {name}\",\n \"download\": \"Скачать\",\n \"failed\": \"Не удалось открыть файл\",\n \"tooLarge\": \"Файл слишком большой для просмотра — скачайте его\",\n \"save\": \"Скачать {name}\",\n \"notUtf8\": \"Файл не в кодировке UTF-8 — скачайте его\",\n \"rows\": \"Показаны {shown} из {total, plural, one {# строки} other {# строк}}\",\n \"source\": \"Код\",\n \"page\": \"Страница\"\n }\n },\n \"agent\": {\n \"menu\": \"Агент\",\n \"options\": \"Тон\",\n \"model\": \"Модель\",\n \"modelDefault\": \"По умолчанию\",\n \"noModels\": \"Модели не выданы — обратитесь к администратору\",\n \"modelCompactWarn\": \"Контекст будет сжат перед следующим ответом\",\n \"everywhere\": \"Изменение действует во всех каналах и подключённых сервисах.\",\n \"capImage\": \"изображения\",\n \"capReasoning\": \"рассуждение\"\n }\n}\n","{\n \"loading\": \"Wird geladen…\",\n \"cancel\": \"Abbrechen\",\n \"create\": \"Erstellen\",\n \"close\": \"Schließen\",\n \"delete\": \"Löschen\",\n \"remove\": \"Entfernen\",\n \"agentName\": \"Name des Agenten\",\n \"topbar\": {\n \"sections\": \"Bereiche\",\n \"profile\": \"Profil\"\n },\n \"chat\": {\n \"title\": \"Chat\",\n \"conversations\": \"Gespräche\",\n \"conversation\": \"Gespräch\",\n \"topics\": \"Themen\",\n \"archive\": \"Archiv\",\n \"noTopics\": \"Noch keine Themen\",\n \"newTopic\": \"Neues Thema\",\n \"topicTitle\": \"Thema\",\n \"topicHint\": \"Ein Thema hat einen eigenen Verlauf, aber dasselbe Gedächtnis und denselben Arbeitsbereich.\",\n \"loadOlder\": \"Frühere Nachrichten\",\n \"emptyTitle\": \"Hallo, ich bin {name}\",\n \"placeholder\": \"Nachricht an {name}…\",\n \"send\": \"Senden\",\n \"attach\": \"Dateien anhängen\",\n \"typing\": \"Der Agent schreibt\",\n \"moreSteps\": \"{count, plural, one {# weiterer Schritt} other {# weitere Schritte}}\",\n \"hideSteps\": \"Schritte ausblenden\",\n \"unread\": \"{count, plural, one {# ungelesene Antwort} other {# ungelesene Antworten}}\",\n \"retry\": \"Wiederholen\",\n \"tooLarge\": \"Die Datei ist zu groß.\",\n \"stop\": \"Stoppen\",\n \"voice\": {\n \"hold\": \"Zum Aufnehmen gedrückt halten\",\n \"stop\": \"Aufnahme beenden\",\n \"recording\": \"Aufnahme… {seconds} s\",\n \"review\": \"Prüfen Sie die Transkription vor dem Senden\",\n \"notRecognized\": \"Die Sprache wurde nicht erkannt\",\n \"micDenied\": \"Kein Zugriff auf das Mikrofon\",\n \"unsupported\": \"Spracheingabe wird von diesem Browser nicht unterstützt\",\n \"start\": \"Sprachnachricht aufnehmen\",\n \"done\": \"Stopp\",\n \"recognizing\": \"Wird erkannt…\",\n \"recordingNow\": \"Aufnahme\",\n \"failed\": \"Die Sprachnachricht konnte nicht erkannt werden\",\n \"retry\": \"Wiederholen\"\n },\n \"confirm\": {\n \"title\": \"Aktion bestätigen\",\n \"text\": \"Der Agent möchte ausführen: {action}\",\n \"approve\": \"Ausführen\",\n \"reject\": \"Ablehnen\"\n },\n \"wait\": {\n \"starting\": \"Der Agent startet…\",\n \"queued\": \"{count, plural, =0 {In der Warteschlange · Sie sind als Nächstes dran} other {In der Warteschlange · # vor Ihnen}}\"\n },\n \"palette\": {\n \"title\": \"Befehle und Skills\",\n \"commands\": \"Befehle\",\n \"skills\": \"Skills\",\n \"noSkills\": \"Ihnen ist kein Skill freigegeben\",\n \"empty\": \"Nichts gefunden\"\n },\n \"unknownCommand\": \"Unbekannter Befehl {name}\",\n \"sendAsText\": \"Als Text senden\",\n \"skillPlaceholder\": \"Was soll mit dem Skill getan werden?\",\n \"context\": {\n \"meter\": \"Kontext: {used} von {total} Tokens ({pct} %)\",\n \"full\": \"Antworten werden teurer, der Agent kann durcheinanderkommen.\",\n \"compact\": \"Komprimieren\",\n \"reset\": \"Neu beginnen\",\n \"waitTurn\": \"Warten Sie auf die Antwort oder stoppen Sie sie\"\n },\n \"event\": {\n \"details\": \"Zusammenfassung\"\n },\n \"files\": {\n \"open\": \"{name} öffnen\",\n \"download\": \"Herunterladen\",\n \"failed\": \"Die Datei konnte nicht geöffnet werden\",\n \"tooLarge\": \"Die Datei ist zu groß für die Vorschau — bitte herunterladen\",\n \"save\": \"{name} herunterladen\",\n \"notUtf8\": \"Die Datei ist nicht in UTF-8 — bitte herunterladen\",\n \"rows\": \"{shown} von {total, plural, one {# Zeile} other {# Zeilen}} angezeigt\",\n \"source\": \"Code\",\n \"page\": \"Seite\"\n }\n },\n \"agent\": {\n \"menu\": \"Agent\",\n \"options\": \"Ton\",\n \"model\": \"Modell\",\n \"modelDefault\": \"Standard\",\n \"noModels\": \"Keine Modelle freigegeben — wenden Sie sich an einen Administrator\",\n \"modelCompactWarn\": \"Der Kontext wird vor der nächsten Antwort komprimiert\",\n \"everywhere\": \"Die Änderung gilt in allen Kanälen und verbundenen Diensten.\",\n \"capImage\": \"Bilder\",\n \"capReasoning\": \"Reasoning\"\n }\n}\n","{\n \"loading\": \"Cargando…\",\n \"cancel\": \"Cancelar\",\n \"create\": \"Crear\",\n \"close\": \"Cerrar\",\n \"delete\": \"Eliminar\",\n \"remove\": \"Quitar\",\n \"agentName\": \"Nombre del agente\",\n \"topbar\": {\n \"sections\": \"Secciones\",\n \"profile\": \"Perfil\"\n },\n \"chat\": {\n \"title\": \"Chat\",\n \"conversations\": \"Conversaciones\",\n \"conversation\": \"Conversación\",\n \"topics\": \"Temas\",\n \"archive\": \"Archivo\",\n \"noTopics\": \"Aún no hay temas\",\n \"newTopic\": \"Nuevo tema\",\n \"topicTitle\": \"Tema\",\n \"topicHint\": \"Un tema tiene su propio historial y la misma memoria y espacio.\",\n \"loadOlder\": \"Mensajes anteriores\",\n \"emptyTitle\": \"Hola, soy {name}\",\n \"placeholder\": \"Mensaje para {name}…\",\n \"send\": \"Enviar\",\n \"attach\": \"Adjuntar archivos\",\n \"typing\": \"El agente está escribiendo\",\n \"moreSteps\": \"{count, plural, one {# paso más} other {# pasos más}}\",\n \"hideSteps\": \"Ocultar pasos\",\n \"unread\": \"{count, plural, one {# respuesta sin leer} other {# respuestas sin leer}}\",\n \"retry\": \"Reintentar\",\n \"tooLarge\": \"El archivo es demasiado grande.\",\n \"stop\": \"Detener\",\n \"voice\": {\n \"hold\": \"Mantenga pulsado para grabar\",\n \"stop\": \"Detener la grabación\",\n \"recording\": \"Grabando… {seconds} s\",\n \"review\": \"Revise la transcripción antes de enviar\",\n \"notRecognized\": \"No se reconoció la voz\",\n \"micDenied\": \"Sin acceso al micrófono\",\n \"unsupported\": \"Este navegador no admite la entrada de voz\",\n \"start\": \"Grabar un mensaje de voz\",\n \"done\": \"Detener\",\n \"recognizing\": \"Reconociendo…\",\n \"recordingNow\": \"Grabando\",\n \"failed\": \"No se pudo reconocer el mensaje de voz\",\n \"retry\": \"Reintentar\"\n },\n \"confirm\": {\n \"title\": \"Confirme la acción\",\n \"text\": \"El agente quiere ejecutar: {action}\",\n \"approve\": \"Ejecutar\",\n \"reject\": \"Rechazar\"\n },\n \"wait\": {\n \"starting\": \"El agente se está iniciando…\",\n \"queued\": \"{count, plural, =0 {En cola · usted es el siguiente} other {En cola · # por delante}}\"\n },\n \"palette\": {\n \"title\": \"Comandos y skills\",\n \"commands\": \"Comandos\",\n \"skills\": \"Skills\",\n \"noSkills\": \"No tiene skills disponibles\",\n \"empty\": \"No se encontró nada\"\n },\n \"unknownCommand\": \"Comando desconocido {name}\",\n \"sendAsText\": \"Enviar como texto\",\n \"skillPlaceholder\": \"¿Qué hacer con el skill?\",\n \"context\": {\n \"meter\": \"Contexto: {used} de {total} tokens ({pct} %)\",\n \"full\": \"Las respuestas se encarecen y el agente puede confundirse.\",\n \"compact\": \"Compactar\",\n \"reset\": \"Empezar de nuevo\",\n \"waitTurn\": \"Espere la respuesta o deténgala\"\n },\n \"event\": {\n \"details\": \"Resumen\"\n },\n \"files\": {\n \"open\": \"Abrir {name}\",\n \"download\": \"Descargar\",\n \"failed\": \"No se pudo abrir el archivo\",\n \"tooLarge\": \"El archivo es demasiado grande para la vista previa: descárguelo\",\n \"save\": \"Descargar {name}\",\n \"notUtf8\": \"El archivo no está en UTF-8: descárguelo\",\n \"rows\": \"Se muestran {shown} de {total, plural, one {# fila} other {# filas}}\",\n \"source\": \"Código\",\n \"page\": \"Página\"\n }\n },\n \"agent\": {\n \"menu\": \"Agente\",\n \"options\": \"Tono\",\n \"model\": \"Modelo\",\n \"modelDefault\": \"Predeterminado\",\n \"noModels\": \"No hay modelos disponibles: consulte a un administrador\",\n \"modelCompactWarn\": \"El contexto se compactará antes de la próxima respuesta\",\n \"everywhere\": \"El cambio se aplica en todos los canales y servicios conectados.\",\n \"capImage\": \"imágenes\",\n \"capReasoning\": \"razonamiento\"\n }\n}\n","{\n \"loading\": \"加载中…\",\n \"cancel\": \"取消\",\n \"create\": \"创建\",\n \"close\": \"关闭\",\n \"delete\": \"删除\",\n \"remove\": \"移除\",\n \"agentName\": \"智能体名称\",\n \"topbar\": {\n \"sections\": \"栏目\",\n \"profile\": \"个人资料\"\n },\n \"chat\": {\n \"title\": \"聊天\",\n \"conversations\": \"对话\",\n \"conversation\": \"对话\",\n \"topics\": \"话题\",\n \"archive\": \"归档\",\n \"noTopics\": \"暂无话题\",\n \"newTopic\": \"新话题\",\n \"topicTitle\": \"话题\",\n \"topicHint\": \"话题有独立的历史记录,记忆和空间与主对话相同。\",\n \"loadOlder\": \"更早的消息\",\n \"emptyTitle\": \"你好,我是 {name}\",\n \"placeholder\": \"给 {name} 发消息…\",\n \"send\": \"发送\",\n \"attach\": \"附加文件\",\n \"typing\": \"智能体正在输入\",\n \"moreSteps\": \"{count, plural, other {另外 # 个步骤}}\",\n \"hideSteps\": \"隐藏步骤\",\n \"unread\": \"{count} 条未读回复\",\n \"retry\": \"重试\",\n \"tooLarge\": \"文件太大。\",\n \"stop\": \"停止\",\n \"voice\": {\n \"hold\": \"按住录音\",\n \"stop\": \"停止录音\",\n \"recording\": \"录音中… {seconds} 秒\",\n \"review\": \"发送前请检查转写文本\",\n \"notRecognized\": \"未能识别语音\",\n \"micDenied\": \"无法访问麦克风\",\n \"unsupported\": \"此浏览器不支持语音输入\",\n \"start\": \"录制语音\",\n \"done\": \"停止\",\n \"recognizing\": \"正在识别…\",\n \"recordingNow\": \"录音中\",\n \"failed\": \"无法识别语音消息\",\n \"retry\": \"重试\"\n },\n \"confirm\": {\n \"title\": \"确认操作\",\n \"text\": \"代理想要执行:{action}\",\n \"approve\": \"执行\",\n \"reject\": \"拒绝\"\n },\n \"wait\": {\n \"starting\": \"代理正在启动…\",\n \"queued\": \"{count, plural, =0 {排队中 · 您是下一位} other {排队中 · 前面还有 # 位}}\"\n },\n \"palette\": {\n \"title\": \"命令和技能\",\n \"commands\": \"命令\",\n \"skills\": \"技能\",\n \"noSkills\": \"您没有可用的技能\",\n \"empty\": \"未找到\"\n },\n \"unknownCommand\": \"未知命令 {name}\",\n \"sendAsText\": \"作为文本发送\",\n \"skillPlaceholder\": \"用这个技能做什么?\",\n \"context\": {\n \"meter\": \"上下文:{used} / {total} 个令牌({pct}%)\",\n \"full\": \"回答变得更贵,代理可能会混淆。\",\n \"compact\": \"压缩\",\n \"reset\": \"重新开始\",\n \"waitTurn\": \"请等待回答或停止它\"\n },\n \"event\": {\n \"details\": \"摘要\"\n },\n \"files\": {\n \"open\": \"打开 {name}\",\n \"download\": \"下载\",\n \"failed\": \"无法打开文件\",\n \"tooLarge\": \"文件太大,无法预览,请下载\",\n \"save\": \"下载 {name}\",\n \"notUtf8\": \"文件不是 UTF-8 编码,请下载\",\n \"rows\": \"显示 {total} 行中的 {shown} 行\",\n \"source\": \"代码\",\n \"page\": \"页面\"\n }\n },\n \"agent\": {\n \"menu\": \"智能体\",\n \"options\": \"语气\",\n \"model\": \"模型\",\n \"modelDefault\": \"默认\",\n \"noModels\": \"没有可用的模型——请联系管理员\",\n \"modelCompactWarn\": \"下次回答前将压缩上下文\",\n \"everywhere\": \"更改在所有渠道和已连接的服务中生效。\",\n \"capImage\": \"图片\",\n \"capReasoning\": \"推理\"\n }\n}\n","import en from \"./en.json\";\nimport ru from \"./ru.json\";\nimport de from \"./de.json\";\nimport es from \"./es.json\";\nimport zh from \"./zh.json\";\n\n/** Strings of the components in the five languages of the products. A product adds\n * them to its i18next instance under the namespace `uikit`. */\nexport const resources = { en, ru, de, es, zh };\nexport type KitLanguage = keyof typeof resources;\nexport { UIKIT_NS } from \"../i18n\";\n"],"mappings":";;;AKQA,IAAaqC,IAAY;CAAE,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAA;CAAI,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAA;CAAI,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAA;CAAI,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAA;CAAI,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAA;AAAG"}
|
package/dist/manifest.json
CHANGED
|
@@ -79,7 +79,8 @@ var l = {
|
|
|
79
79
|
pin: "<path d=\"M9 4h6l-1 6 4 4H6l4-4zM12 14v6\"/>",
|
|
80
80
|
edit: "<path d=\"M4 20h4L19 9l-4-4L4 16zM14 6l4 4\"/>",
|
|
81
81
|
image: "<rect x=\"3\" y=\"4\" width=\"18\" height=\"16\" rx=\"2\"/><circle cx=\"9\" cy=\"10\" r=\"2\"/><path d=\"m21 16-5-5-9 9\"/>",
|
|
82
|
-
compress: "<path d=\"M4 14h6v6M20 10h-6V4M14 10l7-7M3 21l7-7\"/>"
|
|
82
|
+
compress: "<path d=\"M4 14h6v6M20 10h-6V4M14 10l7-7M3 21l7-7\"/>",
|
|
83
|
+
chevrons: "<path d=\"m6 6 6 6-6 6M13 6l6 6-6 6\"/>"
|
|
83
84
|
};
|
|
84
85
|
function u({ name: e, size: n = 18, className: r = "" }) {
|
|
85
86
|
return /* @__PURE__ */ t("svg", {
|
|
@@ -310,4 +311,4 @@ function w(e, t) {
|
|
|
310
311
|
//#endregion
|
|
311
312
|
export { x as a, v as c, u as d, h as i, m as l, S as n, _ as o, C as r, w as s, b as t, d as u };
|
|
312
313
|
|
|
313
|
-
//# sourceMappingURL=ui-
|
|
314
|
+
//# sourceMappingURL=ui-DvmjcG-d.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-DvmjcG-d.js","names":["useKitT","PATHS","Icon","className","size","name","GitHubIcon","inline","out","re","last","m","i","text","tok","k","key","cells","row","c","Markdown","lines","blocks","n","line","body","h","Tag","head","rows","j","r","ri","ordered","items","it","para","Modal","ref","useRef","useEffect","onKey","onClose","wide","title","footer","ToastCtx","createContext","ToastProvider","toasts","setToasts","useState","next","dismiss","useCallback","ts","id","push","t","close","children","a","useToast","useContext","initials","parts","Avatar","cls","small","agent","variant","url","icon","Switch","on","onChange","label","Empty","Loading","useOutside","open"],"sources":["../src/components/Icon.tsx","../src/components/Markdown.tsx","../src/components/ui.tsx"],"sourcesContent":["// Icon set of the product family, rendered inline: the stroke icons of both products\n// (FTR.NAB.CMN-0005 design §2). Where the drawings differed, the one of Nabu is kept.\n\nconst PATHS = {\n user: '<circle cx=\"12\" cy=\"8\" r=\"4\"/><path d=\"M4 21c0-4 3.6-6 8-6s8 2 8 6\"/>',\n hash: '<path d=\"M5 9h14M5 15h14M10 4 8 20M16 4l-2 16\"/>',\n graph: '<circle cx=\"6\" cy=\"7\" r=\"2.5\"/><circle cx=\"18\" cy=\"6\" r=\"2.5\"/><circle cx=\"12\" cy=\"18\" r=\"2.5\"/><path d=\"M8.3 8l2.5 7.8M16 7.8l-3 8M8.5 6.8l7-.6\"/>',\n table: '<rect x=\"3\" y=\"4\" width=\"18\" height=\"16\" rx=\"2\"/><path d=\"M3 10h18M3 15h18M9 4v16\"/>',\n ext: '<path d=\"M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5\"/>',\n pause: '<path d=\"M8 5v14M16 5v14\"/>',\n search: '<circle cx=\"11\" cy=\"11\" r=\"7\"/><path d=\"m20 20-3.5-3.5\"/>',\n mail: '<rect x=\"3\" y=\"5\" width=\"18\" height=\"14\" rx=\"2\"/><path d=\"m4 7 8 6 8-6\"/>',\n archive: '<rect x=\"3\" y=\"4\" width=\"18\" height=\"5\" rx=\"1\"/><path d=\"M5 9v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V9M10 13h4\"/>',\n key: '<circle cx=\"8\" cy=\"15\" r=\"4\"/><path d=\"m11 12 9-9M16 7l3 3M14 9l2 2\"/>',\n gear: '<circle cx=\"12\" cy=\"12\" r=\"3\"/><path d=\"M12 3v3M12 18v3M3 12h3M18 12h3M5.6 5.6l2.1 2.1M16.3 16.3l2.1 2.1M5.6 18.4l2.1-2.1M16.3 7.7l2.1-2.1\"/>',\n mic: '<rect x=\"9\" y=\"3\" width=\"6\" height=\"11\" rx=\"3\"/><path d=\"M5 11a7 7 0 0 0 14 0M12 18v3\"/>',\n clip: '<path d=\"m21 11-8.5 8.5a5 5 0 0 1-7-7L14 4a3.5 3.5 0 0 1 5 5l-8.5 8.5a2 2 0 0 1-3-3L15 7\"/>',\n send: '<path d=\"M5 12h14M13 6l6 6-6 6\"/>',\n x: '<path d=\"M6 6l12 12M18 6 6 18\"/>',\n menu: '<path d=\"M4 7h16M4 12h16M4 17h16\"/>',\n check: '<path d=\"m5 12 5 5 9-10\"/>',\n lock: '<rect x=\"5\" y=\"11\" width=\"14\" height=\"10\" rx=\"2\"/><path d=\"M8 11V8a4 4 0 0 1 8 0v3\"/>',\n branch: '<circle cx=\"6\" cy=\"5\" r=\"2\"/><circle cx=\"6\" cy=\"19\" r=\"2\"/><circle cx=\"18\" cy=\"8\" r=\"2\"/><path d=\"M6 7v10M18 10c0 5-8 4-11 7\"/>',\n plus: '<path d=\"M12 5v14M5 12h14\"/>',\n back: '<path d=\"M19 12H5M11 6l-6 6 6 6\"/>',\n files: '<path d=\"M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z\"/><path d=\"M14 3v5h5\"/>',\n clock: '<circle cx=\"12\" cy=\"12\" r=\"8\"/><path d=\"M12 8v4l3 2\"/>',\n msg: '<path d=\"M4 5h16v11H9l-5 4z\"/>',\n out: '<path d=\"M15 4h4v16h-4M10 8l-4 4 4 4M6 12h10\"/>',\n users: '<circle cx=\"9\" cy=\"8\" r=\"3\"/><path d=\"M3 20a6 6 0 0 1 12 0M16 5a3 3 0 0 1 0 6M21 20a6 6 0 0 0-4-5.6\"/>',\n grid: '<rect x=\"4\" y=\"4\" width=\"7\" height=\"7\" rx=\"1\"/><rect x=\"13\" y=\"4\" width=\"7\" height=\"7\" rx=\"1\"/><rect x=\"4\" y=\"13\" width=\"7\" height=\"7\" rx=\"1\"/><rect x=\"13\" y=\"13\" width=\"7\" height=\"7\" rx=\"1\"/>',\n book: '<path d=\"M5 4h11a3 3 0 0 1 3 3v13H8a3 3 0 0 1-3-3z\"/><path d=\"M5 17a3 3 0 0 1 3-3h11\"/>',\n wrench: '<path d=\"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.8-3.8a6 6 0 0 1-7.9 7.9l-6.9 6.9a2.1 2.1 0 0 1-3-3l6.9-6.9a6 6 0 0 1 7.9-7.9z\"/>',\n upload: '<path d=\"M12 16V4M7 9l5-5 5 5M5 20h14\"/>',\n dots: '<circle cx=\"5\" cy=\"12\" r=\"1.3\"/><circle cx=\"12\" cy=\"12\" r=\"1.3\"/><circle cx=\"19\" cy=\"12\" r=\"1.3\"/>',\n trash: '<path d=\"M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13M10 11v6M14 11v6\"/>',\n cpu: '<rect x=\"7\" y=\"7\" width=\"10\" height=\"10\" rx=\"1.5\"/><rect x=\"10\" y=\"10\" width=\"4\" height=\"4\"/><path d=\"M10 3v4M14 3v4M10 17v4M14 17v4M3 10h4M3 14h4M17 10h4M17 14h4\"/>',\n alert: '<path d=\"M12 4 2 20h20z\"/><path d=\"M12 10v4M12 17v.5\"/>',\n sparkle: '<path d=\"M12 3v4M12 17v4M3 12h4M17 12h4M6 6l2.5 2.5M15.5 15.5 18 18M6 18l2.5-2.5M15.5 8.5 18 6\"/>',\n stop: '<rect x=\"7\" y=\"7\" width=\"10\" height=\"10\" rx=\"1.5\"/>',\n bulb: '<path d=\"M9 18h6M10 21h4M12 3a6 6 0 0 0-3.5 10.9c.6.5 1 1.2 1 2.1h5c0-.9.4-1.6 1-2.1A6 6 0 0 0 12 3z\"/>',\n bug: '<rect x=\"8\" y=\"7\" width=\"8\" height=\"12\" rx=\"4\"/><path d=\"M12 7V5M9 5l1.5 2M15 5l-1.5 2M4 11h4M16 11h4M4 17l4-2M20 17l-4-2\"/>',\n rocket: '<path d=\"M5 15c-1.5 1.5-2 4-2 6 2 0 4.5-.5 6-2M9 15l-3-3c1.5-5 5.5-8 12-9-1 6.5-4 10.5-9 12z\"/><circle cx=\"14.5\" cy=\"9.5\" r=\"1.5\"/>',\n undo: '<path d=\"M9 14 4 9l5-5\"/><path d=\"M4 9h10a6 6 0 0 1 0 12h-3\"/>',\n reset: '<path d=\"M3 12a9 9 0 1 0 3-6.7L3 8M3 3v5h5\"/>',\n flag: '<path d=\"M5 21V4M5 4h11l-2 4 2 4H5\"/>',\n code: '<path d=\"m8 8-4 4 4 4M16 8l4 4-4 4M13 5l-2 14\"/>',\n flask: '<path d=\"M9 3h6M10 3v6L5 19a1.5 1.5 0 0 0 1.3 2h11.4a1.5 1.5 0 0 0 1.3-2l-5-10V3\"/>',\n target: '<circle cx=\"12\" cy=\"12\" r=\"8\"/><circle cx=\"12\" cy=\"12\" r=\"4\"/><circle cx=\"12\" cy=\"12\" r=\".6\"/>',\n merge: '<circle cx=\"6\" cy=\"5\" r=\"2\"/><circle cx=\"6\" cy=\"19\" r=\"2\"/><circle cx=\"18\" cy=\"19\" r=\"2\"/><path d=\"M6 7v10M6 7c0 6 12 4 12 10\"/>',\n server: '<rect x=\"4\" y=\"4\" width=\"16\" height=\"7\" rx=\"1.5\"/><rect x=\"4\" y=\"13\" width=\"16\" height=\"7\" rx=\"1.5\"/><path d=\"M8 7.5h.01M8 16.5h.01\"/>',\n copy: '<rect x=\"9\" y=\"9\" width=\"11\" height=\"11\" rx=\"2\"/><path d=\"M5 15V5a2 2 0 0 1 2-2h8\"/>',\n briefcase: '<rect x=\"3\" y=\"7\" width=\"18\" height=\"13\" rx=\"2\"/><path d=\"M9 7V5a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2M3 13h18\"/>',\n smile: '<circle cx=\"12\" cy=\"12\" r=\"8\"/><path d=\"M8.5 14a4 4 0 0 0 7 0M9.5 10h.01M14.5 10h.01\"/>',\n bolt: '<path d=\"M13 3 5 14h6l-1 7 8-11h-6z\"/>',\n link: '<path d=\"M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1\"/><path d=\"M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1\"/>',\n refresh: '<path d=\"M20 11a8 8 0 0 0-14.5-4.5L4 8M4 4v4h4M4 13a8 8 0 0 0 14.5 4.5L20 16M20 20v-4h-4\"/>',\n // drawings for the avatar of an agent and the icons that came with Nabu\n tBusiness: '<rect x=\"3\" y=\"7\" width=\"18\" height=\"13\" rx=\"2\"/><path d=\"M9 7V5h6v2M3 12h18\"/>',\n tFriendly: '<circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"M8 14c1 1.5 2.4 2.2 4 2.2s3-.7 4-2.2M9 9.5h.01M15 9.5h.01\"/>',\n tBrief: '<path d=\"M13 3L5 13h6l-1 8 8-10h-6z\"/>',\n tMentor: '<path d=\"M3 6c3-1 6-1 9 1 3-2 6-2 9-1v13c-3-1-6-1-9 1-3-2-6-2-9-1zM12 7v13\"/>',\n tg: '<path d=\"M3 11l18-7-3 16-6-5-3 3v-5l9-7-11 6z\"/>',\n msg2: '<path d=\"M4 5h16v11H8l-4 4z\"/>',\n plug: '<path d=\"M9 3v5M15 3v5M6 8h12v3a6 6 0 0 1-12 0zM12 17v4\"/>',\n repeat: '<path d=\"M17 2l3 3-3 3M4 11V9a4 4 0 0 1 4-4h12M7 22l-3-3 3-3M20 13v2a4 4 0 0 1-4 4H4\"/>',\n shield: '<path d=\"M12 3l8 3v6c0 5-4 8-8 9-4-1-8-4-8-9V6z\"/>',\n box: '<path d=\"M3 7l9-4 9 4v10l-9 4-9-4zM3 7l9 4 9-4M12 11v10\"/>',\n brain: '<path d=\"M9 4a3 3 0 0 0-3 3 3 3 0 0 0-2 5 3 3 0 0 0 2 5 3 3 0 0 0 6 1V5a3 3 0 0 0-3-1zM15 4a3 3 0 0 1 3 3 3 3 0 0 1 2 5 3 3 0 0 1-2 5 3 3 0 0 1-6 1\"/>',\n chart: '<path d=\"M4 20h16M6 16l4-5 3 3 5-7\"/>',\n play: '<path d=\"M7 5l12 7-12 7z\"/>',\n spark: '<path d=\"M12 3l1.8 5.2L19 10l-5.2 1.8L12 17l-1.8-5.2L5 10l5.2-1.8z\"/>',\n tag: '<path d=\"M3 12V4h8l9 9-8 8z\"/><circle cx=\"7.5\" cy=\"8.5\" r=\"1.3\"/>',\n globe: '<circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18\"/>',\n download: '<path d=\"M12 4v12M7 11l5 5 5-5M5 20h14\"/>',\n pdf: '<path d=\"M6 3h9l4 4v14H6z\"/><path d=\"M15 3v4h4M9 12h6M9 15.5h6M9 19h3\"/>',\n markdown: '<rect x=\"3\" y=\"5\" width=\"18\" height=\"14\" rx=\"2\"/><path d=\"M7 15V9l2.5 3L12 9v6M16 9v6M14 13l2 2 2-2\"/>',\n source: '<path d=\"M6 3h9l4 4v14H6z\"/><path d=\"M15 3v4h4M10.5 11l-2 2.5 2 2.5M13.5 11l2 2.5-2 2.5\"/>',\n pin: '<path d=\"M9 4h6l-1 6 4 4H6l4-4zM12 14v6\"/>',\n edit: '<path d=\"M4 20h4L19 9l-4-4L4 16zM14 6l4 4\"/>',\n image: '<rect x=\"3\" y=\"4\" width=\"18\" height=\"16\" rx=\"2\"/><circle cx=\"9\" cy=\"10\" r=\"2\"/><path d=\"m21 16-5-5-9 9\"/>',\n compress: '<path d=\"M4 14h6v6M20 10h-6V4M14 10l7-7M3 21l7-7\"/>',\n // a double chevron to the right: a panel folds to the right edge (FTR.HMR.SPEC-0001 R8)\n chevrons: '<path d=\"m6 6 6 6-6 6M13 6l6 6-6 6\"/>',\n} as const;\n\nexport type IconName = keyof typeof PATHS;\n\nexport function Icon({ name, size = 18, className = \"\" }: { name: IconName; size?: number; className?: string }) {\n return (\n <svg\n className={`i ${className}`}\n viewBox=\"0 0 24 24\"\n style={{ width: size, height: size }}\n aria-hidden=\"true\"\n dangerouslySetInnerHTML={{ __html: PATHS[name] }}\n />\n );\n}\n\nexport function GitHubIcon() {\n return (\n <svg className=\"i\" viewBox=\"0 0 24 24\" aria-hidden=\"true\" style={{ fill: \"currentColor\", stroke: \"none\" }}>\n <path d=\"M12 2a10 10 0 0 0-3.2 19.5c.5.1.7-.2.7-.5v-1.7c-2.8.6-3.4-1.3-3.4-1.3-.5-1.2-1.1-1.5-1.1-1.5-.9-.6.1-.6.1-.6 1 .1 1.5 1 1.5 1 .9 1.5 2.4 1.1 2.9.8.1-.6.4-1.1.6-1.3-2.2-.3-4.6-1.1-4.6-5a3.9 3.9 0 0 1 1-2.7 3.6 3.6 0 0 1 .1-2.7s.8-.3 2.8 1a9.6 9.6 0 0 1 5 0c1.9-1.3 2.8-1 2.8-1 .5 1.4.2 2.4.1 2.7a3.9 3.9 0 0 1 1 2.7c0 3.9-2.4 4.7-4.6 5 .4.3.7.9.7 1.9V21c0 .3.2.6.7.5A10 10 0 0 0 12 2z\" />\n </svg>\n );\n}\n\n/** Names of all icons, for the showcase. */\nexport const ICON_NAMES = Object.keys(PATHS) as IconName[];\n","import type { ReactNode } from \"react\";\n\n// A small read-only Markdown renderer for answers of an agent and generated\n// documents: headings, paragraphs, lists, GFM tables, code fences,\n// bold, italic and inline code. It builds React elements (no raw HTML), so\n// content written by the agent cannot inject markup.\n\nfunction inline(text: string, key: string): ReactNode[] {\n const out: ReactNode[] = [];\n const re = /(`[^`]+`|\\*\\*[^*]+\\*\\*|\\*[^*]+\\*|_[^_]+_)/g;\n let last = 0;\n let m: RegExpExecArray | null;\n let i = 0;\n while ((m = re.exec(text))) {\n if (m.index > last) out.push(text.slice(last, m.index));\n const tok = m[0];\n const k = `${key}-${i++}`;\n if (tok.startsWith(\"`\")) out.push(<code key={k}>{tok.slice(1, -1)}</code>);\n else if (tok.startsWith(\"**\")) out.push(<b key={k}>{tok.slice(2, -2)}</b>);\n else out.push(<i key={k}>{tok.slice(1, -1)}</i>);\n last = m.index + tok.length;\n }\n if (last < text.length) out.push(text.slice(last));\n return out;\n}\n\nconst cells = (row: string) => row.trim().replace(/^\\||\\|$/g, \"\").split(\"|\").map((c) => c.trim());\n\nexport function Markdown({ text }: { text: string }) {\n const lines = text.replace(/\\r\\n/g, \"\\n\").split(\"\\n\");\n const blocks: ReactNode[] = [];\n let i = 0;\n let n = 0;\n while (i < lines.length) {\n const line = lines[i];\n const k = `b${n++}`;\n if (/^\\s*(```|~~~)/.test(line)) {\n const body: string[] = [];\n i++;\n while (i < lines.length && !/^\\s*(```|~~~)/.test(lines[i])) body.push(lines[i++]);\n i++;\n blocks.push(<pre key={k}><code>{body.join(\"\\n\")}</code></pre>);\n continue;\n }\n const h = /^(#{1,6})\\s+(.*)$/.exec(line);\n if (h) {\n const level = Math.min(6, h[1].length + 2);\n const Tag = `h${level}` as \"h3\";\n blocks.push(<Tag key={k}>{inline(h[2], k)}</Tag>);\n i++;\n continue;\n }\n if (line.trim().startsWith(\"|\") && i + 1 < lines.length && /^\\s*\\|?\\s*:?-{2,}/.test(lines[i + 1])) {\n const head = cells(line);\n i += 2;\n const rows: string[][] = [];\n while (i < lines.length && lines[i].trim().startsWith(\"|\")) rows.push(cells(lines[i++]));\n blocks.push(\n <table key={k} className=\"cov\">\n <thead><tr>{head.map((c, j) => <th key={j}>{inline(c, `${k}h${j}`)}</th>)}</tr></thead>\n <tbody>{rows.map((r, ri) => <tr key={ri}>{r.map((c, j) => <td key={j}>{inline(c, `${k}r${ri}c${j}`)}</td>)}</tr>)}</tbody>\n </table>,\n );\n continue;\n }\n if (/^\\s*([-*+]|\\d+[.)])\\s+/.test(line)) {\n const ordered = /^\\s*\\d/.test(line);\n const items: string[] = [];\n while (i < lines.length && /^\\s*([-*+]|\\d+[.)])\\s+/.test(lines[i])) items.push(lines[i++].replace(/^\\s*([-*+]|\\d+[.)])\\s+/, \"\"));\n const Tag = ordered ? \"ol\" : \"ul\";\n blocks.push(<Tag key={k}>{items.map((it, j) => <li key={j}>{inline(it, `${k}${j}`)}</li>)}</Tag>);\n continue;\n }\n if (!line.trim()) {\n i++;\n continue;\n }\n const para: string[] = [];\n while (i < lines.length && lines[i].trim() && !/^(#{1,6}\\s|\\s*(```|~~~|\\||[-*+]\\s|\\d+[.)]\\s))/.test(lines[i])) para.push(lines[i++]);\n if (para.length === 0) para.push(lines[i++]);\n blocks.push(<p key={k}>{inline(para.join(\" \"), k)}</p>);\n }\n return <div className=\"prose\">{blocks}</div>;\n}\n","import { createContext, useCallback, useContext, useEffect, useRef, useState, type ReactNode } from \"react\";\nimport { useKitT } from \"../i18n\";\nimport { Icon, type IconName } from \"./Icon\";\n\n// ─── Modal ─────────────────────────────────────────────────────────\n\nexport function Modal({ title, onClose, children, footer, wide = false }: {\n title: ReactNode; onClose: () => void; children: ReactNode; footer?: ReactNode; wide?: boolean;\n}) {\n const ref = useRef<HTMLDivElement>(null);\n useEffect(() => {\n const onKey = (e: KeyboardEvent) => e.key === \"Escape\" && onClose();\n document.addEventListener(\"keydown\", onKey);\n ref.current?.querySelector<HTMLElement>(\"input, textarea, select, button.primary\")?.focus();\n return () => document.removeEventListener(\"keydown\", onKey);\n }, [onClose]);\n return (\n <div className=\"overlay\" onMouseDown={(e) => e.target === e.currentTarget && onClose()}>\n <div className={`modal${wide ? \" wide\" : \"\"}`} role=\"dialog\" aria-modal=\"true\" ref={ref}>\n <header>{title}</header>\n <div className=\"mb\">{children}</div>\n {footer && <footer>{footer}</footer>}\n </div>\n </div>\n );\n}\n\n// ─── Toasts ────────────────────────────────────────────────────────\n\nexport interface ToastSpec {\n kind?: \"error\" | \"ok\" | \"info\";\n title: string;\n text?: ReactNode;\n actions?: { label: string; primary?: boolean; onClick: () => void }[];\n sticky?: boolean;\n}\n\nconst ToastCtx = createContext<(t: ToastSpec) => void>(() => {});\n\nexport function ToastProvider({ children }: { children: ReactNode }) {\n const [toasts, setToasts] = useState<(ToastSpec & { id: number })[]>([]);\n const next = useRef(1);\n const dismiss = useCallback((id: number) => setToasts((ts) => ts.filter((t) => t.id !== id)), []);\n const push = useCallback((t: ToastSpec) => {\n const id = next.current++;\n setToasts((ts) => [...ts.slice(-3), { ...t, id }]);\n if (!t.sticky && !t.actions) setTimeout(() => dismiss(id), 6000);\n }, [dismiss]);\n const close = useKitT()(\"close\");\n return (\n <ToastCtx.Provider value={push}>\n {children}\n <div className=\"toast-wrap\" aria-live=\"polite\">\n {toasts.map((t) => (\n <div key={t.id} className={`toast ${t.kind ?? \"info\"}`} role={t.kind === \"error\" ? \"alert\" : \"status\"}>\n <div className=\"row\" style={{ alignItems: \"flex-start\", flexWrap: \"nowrap\" }}>\n <div className=\"grow\">\n <b>{t.title}</b>\n {t.text && <span className=\"small t2\">{t.text}</span>}\n </div>\n <button className=\"iconbtn\" style={{ width: 24, height: 24 }} onClick={() => dismiss(t.id)} aria-label={close}>\n <Icon name=\"x\" size={14} />\n </button>\n </div>\n {t.actions && (\n <div className=\"acts\">\n {t.actions.map((a) => (\n <button key={a.label} className={`btn sm${a.primary ? \" primary\" : \"\"}`} onClick={() => { dismiss(t.id); a.onClick(); }}>\n {a.label}\n </button>\n ))}\n </div>\n )}\n </div>\n ))}\n </div>\n </ToastCtx.Provider>\n );\n}\n\nexport const useToast = () => useContext(ToastCtx);\n\n// ─── Small pieces ──────────────────────────────────────────────────\n\n/** Two letters of a name for an avatar without a picture. */\nexport function initials(name: string): string {\n const parts = name.trim().split(/\\s+/).filter(Boolean);\n if (parts.length === 0) return \"?\";\n if (parts.length === 1) return parts[0].slice(0, 2).toUpperCase();\n return (parts[0][0] + parts[1][0]).toUpperCase();\n}\n\n/** The avatar of a user or of an agent. What an agent looks like is decided by the\n * product (R7): it gives the icon and the colour variant — a class beside `.avatar.agent`. */\nexport function Avatar({ name, url, small, agent, icon, variant }: {\n name: string; url?: string | null; small?: boolean; agent?: boolean; icon?: IconName; variant?: string;\n}) {\n const cls = `avatar${small ? \" s\" : \"\"}${agent ? \" agent\" : \"\"}${agent && variant ? ` ${variant}` : \"\"}`;\n return (\n <span className={cls} aria-hidden=\"true\">\n {url ? <img src={url} alt=\"\" />\n : agent && icon ? <Icon name={icon} size={small ? 14 : 18} />\n : agent ? name.slice(0, 1).toUpperCase() : initials(name)}\n </span>\n );\n}\n\nexport function Switch({ on, onChange, label, disabled }: { on: boolean; onChange: (v: boolean) => void; label?: ReactNode; disabled?: boolean }) {\n return (\n <button type=\"button\" className=\"switch\" role=\"switch\" aria-checked={on} disabled={disabled} onClick={() => onChange(!on)}>\n <span className={`sw${on ? \" on\" : \"\"}`} />\n {label}\n </button>\n );\n}\n\nexport function Empty({ icon, title, children }: { icon: IconName; title: ReactNode; children?: ReactNode }) {\n return (\n <div className=\"empty dashed\">\n <div className=\"ic\"><Icon name={icon} /></div>\n <b>{title}</b>\n {children}\n </div>\n );\n}\n\nexport function Loading() {\n const t = useKitT();\n return <div className=\"loading\">{t(\"loading\")}</div>;\n}\n\n/** Popover menu closed by an outside click. */\nexport function useOutside<T extends HTMLElement>(open: boolean, close: () => void) {\n const ref = useRef<T>(null);\n useEffect(() => {\n if (!open) return;\n const h = (e: MouseEvent) => ref.current && !ref.current.contains(e.target as Node) && close();\n const k = (e: KeyboardEvent) => e.key === \"Escape\" && close();\n document.addEventListener(\"mousedown\", h);\n document.addEventListener(\"keydown\", k);\n return () => {\n document.removeEventListener(\"mousedown\", h);\n document.removeEventListener(\"keydown\", k);\n };\n }, [open, close]);\n return ref;\n}\n"],"mappings":";;;;AAGA,IAAMC,IAAQ;CACZ,MAAM;CACN,MAAM;CACN,OAAO;CACP,OAAO;CACP,KAAK;CACL,OAAO;CACP,QAAQ;CACR,MAAM;CACN,SAAS;CACT,KAAK;CACL,MAAM;CACN,KAAK;CACL,MAAM;CACN,MAAM;CACN,GAAG;CACH,MAAM;CACN,OAAO;CACP,MAAM;CACN,QAAQ;CACR,MAAM;CACN,MAAM;CACN,OAAO;CACP,OAAO;CACP,KAAK;CACL,KAAK;CACL,OAAO;CACP,MAAM;CACN,MAAM;CACN,Q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,aAAaW,CAAC,GAC3C,SAAS,oBAAoB,WAAWX,CAAC;EAC3C;CACF,GAAG,CAACiE,GAAMrB,CAAK,CAAC,GACTrB;AACT"}
|
package/package.json
CHANGED
package/dist/ui-DLi5afmc.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ui-DLi5afmc.js","names":["useKitT","PATHS","Icon","className","size","name","GitHubIcon","inline","out","re","last","m","i","text","tok","k","key","cells","row","c","Markdown","lines","blocks","n","line","body","h","Tag","head","rows","j","r","ri","ordered","items","it","para","Modal","ref","useRef","useEffect","onKey","onClose","wide","title","footer","ToastCtx","createContext","ToastProvider","toasts","setToasts","useState","next","dismiss","useCallback","ts","id","push","t","close","children","a","useToast","useContext","initials","parts","Avatar","cls","small","agent","variant","url","icon","Switch","on","onChange","label","Empty","Loading","useOutside","open"],"sources":["../src/components/Icon.tsx","../src/components/Markdown.tsx","../src/components/ui.tsx"],"sourcesContent":["// Icon set of the product family, rendered inline: the stroke icons of both products\n// (FTR.NAB.CMN-0005 design §2). Where the drawings differed, the one of Nabu is kept.\n\nconst PATHS = {\n user: '<circle cx=\"12\" cy=\"8\" r=\"4\"/><path d=\"M4 21c0-4 3.6-6 8-6s8 2 8 6\"/>',\n hash: '<path d=\"M5 9h14M5 15h14M10 4 8 20M16 4l-2 16\"/>',\n graph: '<circle cx=\"6\" cy=\"7\" r=\"2.5\"/><circle cx=\"18\" cy=\"6\" r=\"2.5\"/><circle cx=\"12\" cy=\"18\" r=\"2.5\"/><path d=\"M8.3 8l2.5 7.8M16 7.8l-3 8M8.5 6.8l7-.6\"/>',\n table: '<rect x=\"3\" y=\"4\" width=\"18\" height=\"16\" rx=\"2\"/><path d=\"M3 10h18M3 15h18M9 4v16\"/>',\n ext: '<path d=\"M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5\"/>',\n pause: '<path d=\"M8 5v14M16 5v14\"/>',\n search: '<circle cx=\"11\" cy=\"11\" r=\"7\"/><path d=\"m20 20-3.5-3.5\"/>',\n mail: '<rect x=\"3\" y=\"5\" width=\"18\" height=\"14\" rx=\"2\"/><path d=\"m4 7 8 6 8-6\"/>',\n archive: '<rect x=\"3\" y=\"4\" width=\"18\" height=\"5\" rx=\"1\"/><path d=\"M5 9v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V9M10 13h4\"/>',\n key: '<circle cx=\"8\" cy=\"15\" r=\"4\"/><path d=\"m11 12 9-9M16 7l3 3M14 9l2 2\"/>',\n gear: '<circle cx=\"12\" cy=\"12\" r=\"3\"/><path d=\"M12 3v3M12 18v3M3 12h3M18 12h3M5.6 5.6l2.1 2.1M16.3 16.3l2.1 2.1M5.6 18.4l2.1-2.1M16.3 7.7l2.1-2.1\"/>',\n mic: '<rect x=\"9\" y=\"3\" width=\"6\" height=\"11\" rx=\"3\"/><path d=\"M5 11a7 7 0 0 0 14 0M12 18v3\"/>',\n clip: '<path d=\"m21 11-8.5 8.5a5 5 0 0 1-7-7L14 4a3.5 3.5 0 0 1 5 5l-8.5 8.5a2 2 0 0 1-3-3L15 7\"/>',\n send: '<path d=\"M5 12h14M13 6l6 6-6 6\"/>',\n x: '<path d=\"M6 6l12 12M18 6 6 18\"/>',\n menu: '<path d=\"M4 7h16M4 12h16M4 17h16\"/>',\n check: '<path d=\"m5 12 5 5 9-10\"/>',\n lock: '<rect x=\"5\" y=\"11\" width=\"14\" height=\"10\" rx=\"2\"/><path d=\"M8 11V8a4 4 0 0 1 8 0v3\"/>',\n branch: '<circle cx=\"6\" cy=\"5\" r=\"2\"/><circle cx=\"6\" cy=\"19\" r=\"2\"/><circle cx=\"18\" cy=\"8\" r=\"2\"/><path d=\"M6 7v10M18 10c0 5-8 4-11 7\"/>',\n plus: '<path d=\"M12 5v14M5 12h14\"/>',\n back: '<path d=\"M19 12H5M11 6l-6 6 6 6\"/>',\n files: '<path d=\"M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z\"/><path d=\"M14 3v5h5\"/>',\n clock: '<circle cx=\"12\" cy=\"12\" r=\"8\"/><path d=\"M12 8v4l3 2\"/>',\n msg: '<path d=\"M4 5h16v11H9l-5 4z\"/>',\n out: '<path d=\"M15 4h4v16h-4M10 8l-4 4 4 4M6 12h10\"/>',\n users: '<circle cx=\"9\" cy=\"8\" r=\"3\"/><path d=\"M3 20a6 6 0 0 1 12 0M16 5a3 3 0 0 1 0 6M21 20a6 6 0 0 0-4-5.6\"/>',\n grid: '<rect x=\"4\" y=\"4\" width=\"7\" height=\"7\" rx=\"1\"/><rect x=\"13\" y=\"4\" width=\"7\" height=\"7\" rx=\"1\"/><rect x=\"4\" y=\"13\" width=\"7\" height=\"7\" rx=\"1\"/><rect x=\"13\" y=\"13\" width=\"7\" height=\"7\" rx=\"1\"/>',\n book: '<path d=\"M5 4h11a3 3 0 0 1 3 3v13H8a3 3 0 0 1-3-3z\"/><path d=\"M5 17a3 3 0 0 1 3-3h11\"/>',\n wrench: '<path d=\"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.8-3.8a6 6 0 0 1-7.9 7.9l-6.9 6.9a2.1 2.1 0 0 1-3-3l6.9-6.9a6 6 0 0 1 7.9-7.9z\"/>',\n upload: '<path d=\"M12 16V4M7 9l5-5 5 5M5 20h14\"/>',\n dots: '<circle cx=\"5\" cy=\"12\" r=\"1.3\"/><circle cx=\"12\" cy=\"12\" r=\"1.3\"/><circle cx=\"19\" cy=\"12\" r=\"1.3\"/>',\n trash: '<path d=\"M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13M10 11v6M14 11v6\"/>',\n cpu: '<rect x=\"7\" y=\"7\" width=\"10\" height=\"10\" rx=\"1.5\"/><rect x=\"10\" y=\"10\" width=\"4\" height=\"4\"/><path d=\"M10 3v4M14 3v4M10 17v4M14 17v4M3 10h4M3 14h4M17 10h4M17 14h4\"/>',\n alert: '<path d=\"M12 4 2 20h20z\"/><path d=\"M12 10v4M12 17v.5\"/>',\n sparkle: '<path d=\"M12 3v4M12 17v4M3 12h4M17 12h4M6 6l2.5 2.5M15.5 15.5 18 18M6 18l2.5-2.5M15.5 8.5 18 6\"/>',\n stop: '<rect x=\"7\" y=\"7\" width=\"10\" height=\"10\" rx=\"1.5\"/>',\n bulb: '<path d=\"M9 18h6M10 21h4M12 3a6 6 0 0 0-3.5 10.9c.6.5 1 1.2 1 2.1h5c0-.9.4-1.6 1-2.1A6 6 0 0 0 12 3z\"/>',\n bug: '<rect x=\"8\" y=\"7\" width=\"8\" height=\"12\" rx=\"4\"/><path d=\"M12 7V5M9 5l1.5 2M15 5l-1.5 2M4 11h4M16 11h4M4 17l4-2M20 17l-4-2\"/>',\n rocket: '<path d=\"M5 15c-1.5 1.5-2 4-2 6 2 0 4.5-.5 6-2M9 15l-3-3c1.5-5 5.5-8 12-9-1 6.5-4 10.5-9 12z\"/><circle cx=\"14.5\" cy=\"9.5\" r=\"1.5\"/>',\n undo: '<path d=\"M9 14 4 9l5-5\"/><path d=\"M4 9h10a6 6 0 0 1 0 12h-3\"/>',\n reset: '<path d=\"M3 12a9 9 0 1 0 3-6.7L3 8M3 3v5h5\"/>',\n flag: '<path d=\"M5 21V4M5 4h11l-2 4 2 4H5\"/>',\n code: '<path d=\"m8 8-4 4 4 4M16 8l4 4-4 4M13 5l-2 14\"/>',\n flask: '<path d=\"M9 3h6M10 3v6L5 19a1.5 1.5 0 0 0 1.3 2h11.4a1.5 1.5 0 0 0 1.3-2l-5-10V3\"/>',\n target: '<circle cx=\"12\" cy=\"12\" r=\"8\"/><circle cx=\"12\" cy=\"12\" r=\"4\"/><circle cx=\"12\" cy=\"12\" r=\".6\"/>',\n merge: '<circle cx=\"6\" cy=\"5\" r=\"2\"/><circle cx=\"6\" cy=\"19\" r=\"2\"/><circle cx=\"18\" cy=\"19\" r=\"2\"/><path d=\"M6 7v10M6 7c0 6 12 4 12 10\"/>',\n server: '<rect x=\"4\" y=\"4\" width=\"16\" height=\"7\" rx=\"1.5\"/><rect x=\"4\" y=\"13\" width=\"16\" height=\"7\" rx=\"1.5\"/><path d=\"M8 7.5h.01M8 16.5h.01\"/>',\n copy: '<rect x=\"9\" y=\"9\" width=\"11\" height=\"11\" rx=\"2\"/><path d=\"M5 15V5a2 2 0 0 1 2-2h8\"/>',\n briefcase: '<rect x=\"3\" y=\"7\" width=\"18\" height=\"13\" rx=\"2\"/><path d=\"M9 7V5a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2M3 13h18\"/>',\n smile: '<circle cx=\"12\" cy=\"12\" r=\"8\"/><path d=\"M8.5 14a4 4 0 0 0 7 0M9.5 10h.01M14.5 10h.01\"/>',\n bolt: '<path d=\"M13 3 5 14h6l-1 7 8-11h-6z\"/>',\n link: '<path d=\"M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1\"/><path d=\"M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1\"/>',\n refresh: '<path d=\"M20 11a8 8 0 0 0-14.5-4.5L4 8M4 4v4h4M4 13a8 8 0 0 0 14.5 4.5L20 16M20 20v-4h-4\"/>',\n // drawings for the avatar of an agent and the icons that came with Nabu\n tBusiness: '<rect x=\"3\" y=\"7\" width=\"18\" height=\"13\" rx=\"2\"/><path d=\"M9 7V5h6v2M3 12h18\"/>',\n tFriendly: '<circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"M8 14c1 1.5 2.4 2.2 4 2.2s3-.7 4-2.2M9 9.5h.01M15 9.5h.01\"/>',\n tBrief: '<path d=\"M13 3L5 13h6l-1 8 8-10h-6z\"/>',\n tMentor: '<path d=\"M3 6c3-1 6-1 9 1 3-2 6-2 9-1v13c-3-1-6-1-9 1-3-2-6-2-9-1zM12 7v13\"/>',\n tg: '<path d=\"M3 11l18-7-3 16-6-5-3 3v-5l9-7-11 6z\"/>',\n msg2: '<path d=\"M4 5h16v11H8l-4 4z\"/>',\n plug: '<path d=\"M9 3v5M15 3v5M6 8h12v3a6 6 0 0 1-12 0zM12 17v4\"/>',\n repeat: '<path d=\"M17 2l3 3-3 3M4 11V9a4 4 0 0 1 4-4h12M7 22l-3-3 3-3M20 13v2a4 4 0 0 1-4 4H4\"/>',\n shield: '<path d=\"M12 3l8 3v6c0 5-4 8-8 9-4-1-8-4-8-9V6z\"/>',\n box: '<path d=\"M3 7l9-4 9 4v10l-9 4-9-4zM3 7l9 4 9-4M12 11v10\"/>',\n brain: '<path d=\"M9 4a3 3 0 0 0-3 3 3 3 0 0 0-2 5 3 3 0 0 0 2 5 3 3 0 0 0 6 1V5a3 3 0 0 0-3-1zM15 4a3 3 0 0 1 3 3 3 3 0 0 1 2 5 3 3 0 0 1-2 5 3 3 0 0 1-6 1\"/>',\n chart: '<path d=\"M4 20h16M6 16l4-5 3 3 5-7\"/>',\n play: '<path d=\"M7 5l12 7-12 7z\"/>',\n spark: '<path d=\"M12 3l1.8 5.2L19 10l-5.2 1.8L12 17l-1.8-5.2L5 10l5.2-1.8z\"/>',\n tag: '<path d=\"M3 12V4h8l9 9-8 8z\"/><circle cx=\"7.5\" cy=\"8.5\" r=\"1.3\"/>',\n globe: '<circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18\"/>',\n download: '<path d=\"M12 4v12M7 11l5 5 5-5M5 20h14\"/>',\n pdf: '<path d=\"M6 3h9l4 4v14H6z\"/><path d=\"M15 3v4h4M9 12h6M9 15.5h6M9 19h3\"/>',\n markdown: '<rect x=\"3\" y=\"5\" width=\"18\" height=\"14\" rx=\"2\"/><path d=\"M7 15V9l2.5 3L12 9v6M16 9v6M14 13l2 2 2-2\"/>',\n source: '<path d=\"M6 3h9l4 4v14H6z\"/><path d=\"M15 3v4h4M10.5 11l-2 2.5 2 2.5M13.5 11l2 2.5-2 2.5\"/>',\n pin: '<path d=\"M9 4h6l-1 6 4 4H6l4-4zM12 14v6\"/>',\n edit: '<path d=\"M4 20h4L19 9l-4-4L4 16zM14 6l4 4\"/>',\n image: '<rect x=\"3\" y=\"4\" width=\"18\" height=\"16\" rx=\"2\"/><circle cx=\"9\" cy=\"10\" r=\"2\"/><path d=\"m21 16-5-5-9 9\"/>',\n compress: '<path d=\"M4 14h6v6M20 10h-6V4M14 10l7-7M3 21l7-7\"/>',\n} as const;\n\nexport type IconName = keyof typeof PATHS;\n\nexport function Icon({ name, size = 18, className = \"\" }: { name: IconName; size?: number; className?: string }) {\n return (\n <svg\n className={`i ${className}`}\n viewBox=\"0 0 24 24\"\n style={{ width: size, height: size }}\n aria-hidden=\"true\"\n dangerouslySetInnerHTML={{ __html: PATHS[name] }}\n />\n );\n}\n\nexport function GitHubIcon() {\n return (\n <svg className=\"i\" viewBox=\"0 0 24 24\" aria-hidden=\"true\" style={{ fill: \"currentColor\", stroke: \"none\" }}>\n <path d=\"M12 2a10 10 0 0 0-3.2 19.5c.5.1.7-.2.7-.5v-1.7c-2.8.6-3.4-1.3-3.4-1.3-.5-1.2-1.1-1.5-1.1-1.5-.9-.6.1-.6.1-.6 1 .1 1.5 1 1.5 1 .9 1.5 2.4 1.1 2.9.8.1-.6.4-1.1.6-1.3-2.2-.3-4.6-1.1-4.6-5a3.9 3.9 0 0 1 1-2.7 3.6 3.6 0 0 1 .1-2.7s.8-.3 2.8 1a9.6 9.6 0 0 1 5 0c1.9-1.3 2.8-1 2.8-1 .5 1.4.2 2.4.1 2.7a3.9 3.9 0 0 1 1 2.7c0 3.9-2.4 4.7-4.6 5 .4.3.7.9.7 1.9V21c0 .3.2.6.7.5A10 10 0 0 0 12 2z\" />\n </svg>\n );\n}\n\n/** Names of all icons, for the showcase. */\nexport const ICON_NAMES = Object.keys(PATHS) as IconName[];\n","import type { ReactNode } from \"react\";\n\n// A small read-only Markdown renderer for answers of an agent and generated\n// documents: headings, paragraphs, lists, GFM tables, code fences,\n// bold, italic and inline code. It builds React elements (no raw HTML), so\n// content written by the agent cannot inject markup.\n\nfunction inline(text: string, key: string): ReactNode[] {\n const out: ReactNode[] = [];\n const re = /(`[^`]+`|\\*\\*[^*]+\\*\\*|\\*[^*]+\\*|_[^_]+_)/g;\n let last = 0;\n let m: RegExpExecArray | null;\n let i = 0;\n while ((m = re.exec(text))) {\n if (m.index > last) out.push(text.slice(last, m.index));\n const tok = m[0];\n const k = `${key}-${i++}`;\n if (tok.startsWith(\"`\")) out.push(<code key={k}>{tok.slice(1, -1)}</code>);\n else if (tok.startsWith(\"**\")) out.push(<b key={k}>{tok.slice(2, -2)}</b>);\n else out.push(<i key={k}>{tok.slice(1, -1)}</i>);\n last = m.index + tok.length;\n }\n if (last < text.length) out.push(text.slice(last));\n return out;\n}\n\nconst cells = (row: string) => row.trim().replace(/^\\||\\|$/g, \"\").split(\"|\").map((c) => c.trim());\n\nexport function Markdown({ text }: { text: string }) {\n const lines = text.replace(/\\r\\n/g, \"\\n\").split(\"\\n\");\n const blocks: ReactNode[] = [];\n let i = 0;\n let n = 0;\n while (i < lines.length) {\n const line = lines[i];\n const k = `b${n++}`;\n if (/^\\s*(```|~~~)/.test(line)) {\n const body: string[] = [];\n i++;\n while (i < lines.length && !/^\\s*(```|~~~)/.test(lines[i])) body.push(lines[i++]);\n i++;\n blocks.push(<pre key={k}><code>{body.join(\"\\n\")}</code></pre>);\n continue;\n }\n const h = /^(#{1,6})\\s+(.*)$/.exec(line);\n if (h) {\n const level = Math.min(6, h[1].length + 2);\n const Tag = `h${level}` as \"h3\";\n blocks.push(<Tag key={k}>{inline(h[2], k)}</Tag>);\n i++;\n continue;\n }\n if (line.trim().startsWith(\"|\") && i + 1 < lines.length && /^\\s*\\|?\\s*:?-{2,}/.test(lines[i + 1])) {\n const head = cells(line);\n i += 2;\n const rows: string[][] = [];\n while (i < lines.length && lines[i].trim().startsWith(\"|\")) rows.push(cells(lines[i++]));\n blocks.push(\n <table key={k} className=\"cov\">\n <thead><tr>{head.map((c, j) => <th key={j}>{inline(c, `${k}h${j}`)}</th>)}</tr></thead>\n <tbody>{rows.map((r, ri) => <tr key={ri}>{r.map((c, j) => <td key={j}>{inline(c, `${k}r${ri}c${j}`)}</td>)}</tr>)}</tbody>\n </table>,\n );\n continue;\n }\n if (/^\\s*([-*+]|\\d+[.)])\\s+/.test(line)) {\n const ordered = /^\\s*\\d/.test(line);\n const items: string[] = [];\n while (i < lines.length && /^\\s*([-*+]|\\d+[.)])\\s+/.test(lines[i])) items.push(lines[i++].replace(/^\\s*([-*+]|\\d+[.)])\\s+/, \"\"));\n const Tag = ordered ? \"ol\" : \"ul\";\n blocks.push(<Tag key={k}>{items.map((it, j) => <li key={j}>{inline(it, `${k}${j}`)}</li>)}</Tag>);\n continue;\n }\n if (!line.trim()) {\n i++;\n continue;\n }\n const para: string[] = [];\n while (i < lines.length && lines[i].trim() && !/^(#{1,6}\\s|\\s*(```|~~~|\\||[-*+]\\s|\\d+[.)]\\s))/.test(lines[i])) para.push(lines[i++]);\n if (para.length === 0) para.push(lines[i++]);\n blocks.push(<p key={k}>{inline(para.join(\" \"), k)}</p>);\n }\n return <div className=\"prose\">{blocks}</div>;\n}\n","import { createContext, useCallback, useContext, useEffect, useRef, useState, type ReactNode } from \"react\";\nimport { useKitT } from \"../i18n\";\nimport { Icon, type IconName } from \"./Icon\";\n\n// ─── Modal ─────────────────────────────────────────────────────────\n\nexport function Modal({ title, onClose, children, footer, wide = false }: {\n title: ReactNode; onClose: () => void; children: ReactNode; footer?: ReactNode; wide?: boolean;\n}) {\n const ref = useRef<HTMLDivElement>(null);\n useEffect(() => {\n const onKey = (e: KeyboardEvent) => e.key === \"Escape\" && onClose();\n document.addEventListener(\"keydown\", onKey);\n ref.current?.querySelector<HTMLElement>(\"input, textarea, select, button.primary\")?.focus();\n return () => document.removeEventListener(\"keydown\", onKey);\n }, [onClose]);\n return (\n <div className=\"overlay\" onMouseDown={(e) => e.target === e.currentTarget && onClose()}>\n <div className={`modal${wide ? \" wide\" : \"\"}`} role=\"dialog\" aria-modal=\"true\" ref={ref}>\n <header>{title}</header>\n <div className=\"mb\">{children}</div>\n {footer && <footer>{footer}</footer>}\n </div>\n </div>\n );\n}\n\n// ─── Toasts ────────────────────────────────────────────────────────\n\nexport interface ToastSpec {\n kind?: \"error\" | \"ok\" | \"info\";\n title: string;\n text?: ReactNode;\n actions?: { label: string; primary?: boolean; onClick: () => void }[];\n sticky?: boolean;\n}\n\nconst ToastCtx = createContext<(t: ToastSpec) => void>(() => {});\n\nexport function ToastProvider({ children }: { children: ReactNode }) {\n const [toasts, setToasts] = useState<(ToastSpec & { id: number })[]>([]);\n const next = useRef(1);\n const dismiss = useCallback((id: number) => setToasts((ts) => ts.filter((t) => t.id !== id)), []);\n const push = useCallback((t: ToastSpec) => {\n const id = next.current++;\n setToasts((ts) => [...ts.slice(-3), { ...t, id }]);\n if (!t.sticky && !t.actions) setTimeout(() => dismiss(id), 6000);\n }, [dismiss]);\n const close = useKitT()(\"close\");\n return (\n <ToastCtx.Provider value={push}>\n {children}\n <div className=\"toast-wrap\" aria-live=\"polite\">\n {toasts.map((t) => (\n <div key={t.id} className={`toast ${t.kind ?? \"info\"}`} role={t.kind === \"error\" ? \"alert\" : \"status\"}>\n <div className=\"row\" style={{ alignItems: \"flex-start\", flexWrap: \"nowrap\" }}>\n <div className=\"grow\">\n <b>{t.title}</b>\n {t.text && <span className=\"small t2\">{t.text}</span>}\n </div>\n <button className=\"iconbtn\" style={{ width: 24, height: 24 }} onClick={() => dismiss(t.id)} aria-label={close}>\n <Icon name=\"x\" size={14} />\n </button>\n </div>\n {t.actions && (\n <div className=\"acts\">\n {t.actions.map((a) => (\n <button key={a.label} className={`btn sm${a.primary ? \" primary\" : \"\"}`} onClick={() => { dismiss(t.id); a.onClick(); }}>\n {a.label}\n </button>\n ))}\n </div>\n )}\n </div>\n ))}\n </div>\n </ToastCtx.Provider>\n );\n}\n\nexport const useToast = () => useContext(ToastCtx);\n\n// ─── Small pieces ──────────────────────────────────────────────────\n\n/** Two letters of a name for an avatar without a picture. */\nexport function initials(name: string): string {\n const parts = name.trim().split(/\\s+/).filter(Boolean);\n if (parts.length === 0) return \"?\";\n if (parts.length === 1) return parts[0].slice(0, 2).toUpperCase();\n return (parts[0][0] + parts[1][0]).toUpperCase();\n}\n\n/** The avatar of a user or of an agent. What an agent looks like is decided by the\n * product (R7): it gives the icon and the colour variant — a class beside `.avatar.agent`. */\nexport function Avatar({ name, url, small, agent, icon, variant }: {\n name: string; url?: string | null; small?: boolean; agent?: boolean; icon?: IconName; variant?: string;\n}) {\n const cls = `avatar${small ? \" s\" : \"\"}${agent ? \" agent\" : \"\"}${agent && variant ? ` ${variant}` : \"\"}`;\n return (\n <span className={cls} aria-hidden=\"true\">\n {url ? <img src={url} alt=\"\" />\n : agent && icon ? <Icon name={icon} size={small ? 14 : 18} />\n : agent ? name.slice(0, 1).toUpperCase() : initials(name)}\n </span>\n );\n}\n\nexport function Switch({ on, onChange, label, disabled }: { on: boolean; onChange: (v: boolean) => void; label?: ReactNode; disabled?: boolean }) {\n return (\n <button type=\"button\" className=\"switch\" role=\"switch\" aria-checked={on} disabled={disabled} onClick={() => onChange(!on)}>\n <span className={`sw${on ? \" on\" : \"\"}`} />\n {label}\n </button>\n );\n}\n\nexport function Empty({ icon, title, children }: { icon: IconName; title: ReactNode; children?: ReactNode }) {\n return (\n <div className=\"empty dashed\">\n <div className=\"ic\"><Icon name={icon} /></div>\n <b>{title}</b>\n {children}\n </div>\n );\n}\n\nexport function Loading() {\n const t = useKitT();\n return <div className=\"loading\">{t(\"loading\")}</div>;\n}\n\n/** Popover menu closed by an outside click. */\nexport function useOutside<T extends HTMLElement>(open: boolean, close: () => void) {\n const ref = useRef<T>(null);\n useEffect(() => {\n if (!open) return;\n const h = (e: MouseEvent) => ref.current && !ref.current.contains(e.target as Node) && close();\n const k = (e: KeyboardEvent) => e.key === \"Escape\" && close();\n document.addEventListener(\"mousedown\", h);\n document.addEventListener(\"keydown\", k);\n return () => {\n document.removeEventListener(\"mousedown\", h);\n document.removeEventListener(\"keydown\", k);\n };\n }, [open, close]);\n return ref;\n}\n"],"mappings":";;;;AAGA,IAAMC,IAAQ;CACZ,MAAM;CACN,MAAM;CACN,OAAO;CACP,OAAO;CACP,KAAK;CACL,OAAO;CACP,QAAQ;CACR,MAAM;CACN,SAAS;CACT,KAAK;CACL,MAAM;CACN,KAAK;CACL,MAAM;CACN,MAAM;CACN,GAAG;CACH,MAAM;CACN,OAAO;CACP,MAAM;CACN,QAAQ;CACR,MAAM;CACN,MAAM;CACN,OAAO;CACP,OAAO;CACP,KAAK;CACL,KAAK;CACL,OAAO;CACP,MAAM;CACN,MAAM;CACN,QAAQ;CACR,QAAQ;CACR,MAAM;CACN,OAAO;CACP,KAAK;CACL,OAAO;CACP,SAAS;CACT,MAAM;CACN,MAAM;CACN,KAAK;CACL,QAAQ;CACR,MAAM;CACN,OAAO;CACP,MAAM;CACN,MAAM;CACN,OAAO;CACP,QAAQ;CACR,OAAO;CACP,QAAQ;CACR,MAAM;CACN,WAAW;CACX,OAAO;CACP,MAAM;CACN,MAAM;CACN,SAAS;CAET,WAAW;CACX,WAAW;CACX,QAAQ;CACR,SAAS;CACT,IAAI;CACJ,MAAM;CACN,MAAM;CACN,QAAQ;CACR,QAAQ;CACR,KAAK;CACL,OAAO;CACP,OAAO;CACP,MAAM;CACN,OAAO;CACP,KAAK;CACL,OAAO;CACP,UAAU;CACV,KAAK;CACL,UAAU;CACV,QAAQ;CACR,KAAK;CACL,MAAM;CACN,OAAO;CACP,UAAU;AACZ;AAIA,SAAgBC,EAAK,EAAE,SAAM,UAAO,IAAI,eAAY,MAA6D;CAC/G,OACE,kBAAC,OAAD;EACE,WAAW,KAAKC;EAChB,SAAQ;EACR,OAAO;GAAE,OAAOC;GAAM,QAAQA;EAAK;EACnC,eAAY;EACZ,yBAAyB,EAAE,QAAQH,EAAMI,GAAM;CAChD,CAAA;AAEL;AAEA,SAAgBC,IAAa;CAC3B,OACE,kBAAC,OAAD;E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