@celljs/ta-web 4.21.0 → 4.23.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.
Files changed (191) hide show
  1. package/esm/browser/assistant/assistant-chat-list.js +5 -1
  2. package/esm/browser/assistant/assistant-conversation.js +1 -1
  3. package/esm/browser/assistant/assistant-initiative.d.ts +5 -1
  4. package/esm/browser/assistant/assistant-initiative.js +11 -3
  5. package/esm/browser/assistant/call-keeper.d.ts +2 -1
  6. package/esm/browser/assistant/call-keeper.js +4 -2
  7. package/esm/browser/assistant/call-screen.d.ts +1 -1
  8. package/esm/browser/assistant/call-turn-end.d.ts +11 -2
  9. package/esm/browser/assistant/call-turn-end.js +21 -5
  10. package/esm/browser/assistant/read-aloud.d.ts +1 -1
  11. package/esm/browser/assistant/realtime-voice.d.ts +1 -1
  12. package/esm/browser/assistant/voice-call-bar.d.ts +5 -2
  13. package/esm/browser/assistant/voice-call-bar.js +12 -0
  14. package/esm/browser/assistant/voice-call-protocol.d.ts +78 -0
  15. package/esm/browser/assistant/voice-call-protocol.js +2 -0
  16. package/esm/browser/assistant/voice-call.d.ts +17 -65
  17. package/esm/browser/assistant/voice-call.js +45 -1
  18. package/esm/browser/assistant/voice-reopen.d.ts +1 -1
  19. package/esm/browser/components/account-menu.js +28 -7
  20. package/esm/browser/components/chat-home-util.d.ts +13 -2
  21. package/esm/browser/components/chat-home-util.js +29 -0
  22. package/esm/browser/components/chat-home.d.ts +18 -4
  23. package/esm/browser/components/chat-home.js +11 -3
  24. package/esm/browser/components/chat-list.js +4 -2
  25. package/esm/browser/components/cloud-sign-in-view.d.ts +1 -1
  26. package/esm/browser/components/earlier-messages.d.ts +4 -0
  27. package/esm/browser/components/earlier-messages.js +10 -2
  28. package/esm/browser/components/host-view.d.ts +1 -1
  29. package/esm/browser/components/message-footer.d.ts +0 -2
  30. package/esm/browser/components/message-footer.js +1 -8
  31. package/esm/browser/components/message-images.d.ts +22 -0
  32. package/esm/browser/components/message-images.js +90 -1
  33. package/esm/browser/components/message-steps.js +9 -0
  34. package/esm/browser/components/message-user.js +8 -1
  35. package/esm/browser/components/partner-row-util.d.ts +28 -0
  36. package/esm/browser/components/partner-row-util.js +45 -0
  37. package/esm/browser/components/partner-row.d.ts +18 -0
  38. package/esm/browser/components/partner-row.js +60 -0
  39. package/esm/browser/components/profile-view.d.ts +2 -2
  40. package/esm/browser/components/profile-view.js +6 -3
  41. package/esm/browser/components/web-composer.d.ts +5 -2
  42. package/esm/browser/components/web-composer.js +10 -5
  43. package/esm/browser/extension/extension-view.js +2 -2
  44. package/esm/browser/extension/icons.js +4 -1
  45. package/esm/browser/extension/web-api-call.d.ts +45 -0
  46. package/esm/browser/extension/web-api-call.js +2 -0
  47. package/esm/browser/extension/web-api-components.d.ts +37 -2
  48. package/esm/browser/extension/web-api-contributions.d.ts +2 -31
  49. package/esm/browser/extension/web-api-home.d.ts +1 -0
  50. package/esm/browser/extension/web-api-partners.d.ts +112 -0
  51. package/esm/browser/extension/web-api-partners.js +2 -0
  52. package/esm/browser/extension/web-extension-api.d.ts +12 -15
  53. package/esm/browser/extension/web-extension-context.d.ts +2 -3
  54. package/esm/browser/extension/web-extension-context.js +7 -7
  55. package/esm/browser/extension/web-extension-protocol.d.ts +8 -2
  56. package/esm/browser/extension/web-extension-run.d.ts +2 -1
  57. package/esm/browser/extension/web-extension-run.js +1 -0
  58. package/esm/browser/extension/web-extensions-running.d.ts +2 -0
  59. package/esm/browser/extension/web-extensions-running.js +3 -0
  60. package/esm/browser/extension/web-extensions.d.ts +1 -1
  61. package/esm/browser/extension/web-home.d.ts +11 -19
  62. package/esm/browser/extension/web-home.js +15 -68
  63. package/esm/browser/extension/web-partners.d.ts +8 -0
  64. package/esm/browser/extension/web-partners.js +13 -0
  65. package/esm/browser/extension/web-row-board.d.ts +38 -0
  66. package/esm/browser/extension/web-row-board.js +79 -0
  67. package/esm/browser/i18n/locales.d.ts +28 -1
  68. package/esm/browser/i18n/messages-ja.js +27 -0
  69. package/esm/browser/i18n/messages-zh-tw.js +27 -0
  70. package/esm/browser/i18n/messages.d.ts +27 -0
  71. package/esm/browser/i18n/messages.js +54 -0
  72. package/esm/browser/index.d.ts +4 -0
  73. package/esm/browser/index.js +4 -0
  74. package/esm/browser/partners/group-picker.d.ts +18 -0
  75. package/esm/browser/partners/group-picker.js +81 -0
  76. package/esm/browser/partners/partners-extension.d.ts +14 -0
  77. package/esm/browser/partners/partners-extension.js +78 -0
  78. package/esm/browser/partners/partners-util.d.ts +32 -0
  79. package/esm/browser/partners/partners-util.js +68 -0
  80. package/esm/browser/partners/partners-view.d.ts +32 -0
  81. package/esm/browser/partners/partners-view.js +103 -0
  82. package/esm/browser/style/chat-list.d.ts +1 -1
  83. package/esm/browser/style/chat-list.js +21 -0
  84. package/esm/browser/style/conversation-column.d.ts +1 -1
  85. package/esm/browser/style/conversation-column.js +21 -0
  86. package/esm/browser/style/conversation.d.ts +1 -1
  87. package/esm/browser/style/conversation.js +2 -2
  88. package/esm/browser/style/layout.d.ts +1 -1
  89. package/esm/browser/style/layout.js +1 -1
  90. package/esm/browser/style/shell.d.ts +1 -1
  91. package/esm/browser/style/shell.js +1 -1
  92. package/esm/browser/util/image-shrink.d.ts +26 -0
  93. package/esm/browser/util/image-shrink.js +60 -0
  94. package/esm/browser/util/process.d.ts +7 -3
  95. package/esm/browser/util/process.js +18 -18
  96. package/lib/browser/assistant/assistant-chat-list.js +5 -1
  97. package/lib/browser/assistant/assistant-conversation.js +1 -1
  98. package/lib/browser/assistant/assistant-initiative.d.ts +5 -1
  99. package/lib/browser/assistant/assistant-initiative.js +11 -3
  100. package/lib/browser/assistant/call-keeper.d.ts +2 -1
  101. package/lib/browser/assistant/call-keeper.js +4 -2
  102. package/lib/browser/assistant/call-screen.d.ts +1 -1
  103. package/lib/browser/assistant/call-turn-end.d.ts +11 -2
  104. package/lib/browser/assistant/call-turn-end.js +22 -6
  105. package/lib/browser/assistant/read-aloud.d.ts +1 -1
  106. package/lib/browser/assistant/realtime-voice.d.ts +1 -1
  107. package/lib/browser/assistant/voice-call-bar.d.ts +5 -2
  108. package/lib/browser/assistant/voice-call-bar.js +12 -0
  109. package/lib/browser/assistant/voice-call-protocol.d.ts +79 -0
  110. package/lib/browser/assistant/voice-call-protocol.js +3 -0
  111. package/lib/browser/assistant/voice-call.d.ts +17 -65
  112. package/lib/browser/assistant/voice-call.js +45 -1
  113. package/lib/browser/assistant/voice-reopen.d.ts +1 -1
  114. package/lib/browser/components/account-menu.js +27 -6
  115. package/lib/browser/components/chat-home-util.d.ts +13 -2
  116. package/lib/browser/components/chat-home-util.js +29 -0
  117. package/lib/browser/components/chat-home.d.ts +18 -4
  118. package/lib/browser/components/chat-home.js +12 -3
  119. package/lib/browser/components/chat-list.js +4 -2
  120. package/lib/browser/components/cloud-sign-in-view.d.ts +1 -1
  121. package/lib/browser/components/earlier-messages.d.ts +4 -0
  122. package/lib/browser/components/earlier-messages.js +10 -2
  123. package/lib/browser/components/host-view.d.ts +1 -1
  124. package/lib/browser/components/message-footer.d.ts +0 -2
  125. package/lib/browser/components/message-footer.js +0 -8
  126. package/lib/browser/components/message-images.d.ts +22 -0
  127. package/lib/browser/components/message-images.js +92 -2
  128. package/lib/browser/components/message-steps.js +9 -0
  129. package/lib/browser/components/message-user.js +7 -0
  130. package/lib/browser/components/partner-row-util.d.ts +29 -0
  131. package/lib/browser/components/partner-row-util.js +48 -0
  132. package/lib/browser/components/partner-row.d.ts +19 -0
  133. package/lib/browser/components/partner-row.js +96 -0
  134. package/lib/browser/components/profile-view.d.ts +2 -2
  135. package/lib/browser/components/profile-view.js +6 -3
  136. package/lib/browser/components/web-composer.d.ts +5 -2
  137. package/lib/browser/components/web-composer.js +10 -5
  138. package/lib/browser/extension/extension-view.js +2 -2
  139. package/lib/browser/extension/icons.js +3 -0
  140. package/lib/browser/extension/web-api-call.d.ts +46 -0
  141. package/lib/browser/extension/web-api-call.js +3 -0
  142. package/lib/browser/extension/web-api-components.d.ts +37 -2
  143. package/lib/browser/extension/web-api-contributions.d.ts +2 -31
  144. package/lib/browser/extension/web-api-home.d.ts +1 -0
  145. package/lib/browser/extension/web-api-partners.d.ts +113 -0
  146. package/lib/browser/extension/web-api-partners.js +3 -0
  147. package/lib/browser/extension/web-extension-api.d.ts +12 -15
  148. package/lib/browser/extension/web-extension-context.d.ts +2 -3
  149. package/lib/browser/extension/web-extension-context.js +7 -7
  150. package/lib/browser/extension/web-extension-protocol.d.ts +8 -2
  151. package/lib/browser/extension/web-extension-run.d.ts +2 -1
  152. package/lib/browser/extension/web-extension-run.js +1 -0
  153. package/lib/browser/extension/web-extensions-running.d.ts +2 -0
  154. package/lib/browser/extension/web-extensions-running.js +3 -0
  155. package/lib/browser/extension/web-extensions.d.ts +1 -1
  156. package/lib/browser/extension/web-home.d.ts +11 -19
  157. package/lib/browser/extension/web-home.js +15 -68
  158. package/lib/browser/extension/web-partners.d.ts +9 -0
  159. package/lib/browser/extension/web-partners.js +17 -0
  160. package/lib/browser/extension/web-row-board.d.ts +39 -0
  161. package/lib/browser/extension/web-row-board.js +83 -0
  162. package/lib/browser/i18n/locales.d.ts +28 -1
  163. package/lib/browser/i18n/messages-ja.js +27 -0
  164. package/lib/browser/i18n/messages-zh-tw.js +27 -0
  165. package/lib/browser/i18n/messages.d.ts +27 -0
  166. package/lib/browser/i18n/messages.js +54 -0
  167. package/lib/browser/index.d.ts +4 -0
  168. package/lib/browser/index.js +4 -0
  169. package/lib/browser/partners/group-picker.d.ts +19 -0
  170. package/lib/browser/partners/group-picker.js +119 -0
  171. package/lib/browser/partners/partners-extension.d.ts +15 -0
  172. package/lib/browser/partners/partners-extension.js +114 -0
  173. package/lib/browser/partners/partners-util.d.ts +33 -0
  174. package/lib/browser/partners/partners-util.js +71 -0
  175. package/lib/browser/partners/partners-view.d.ts +33 -0
  176. package/lib/browser/partners/partners-view.js +144 -0
  177. package/lib/browser/style/chat-list.d.ts +1 -1
  178. package/lib/browser/style/chat-list.js +21 -0
  179. package/lib/browser/style/conversation-column.d.ts +1 -1
  180. package/lib/browser/style/conversation-column.js +21 -0
  181. package/lib/browser/style/conversation.d.ts +1 -1
  182. package/lib/browser/style/conversation.js +2 -2
  183. package/lib/browser/style/layout.d.ts +1 -1
  184. package/lib/browser/style/layout.js +1 -1
  185. package/lib/browser/style/shell.d.ts +1 -1
  186. package/lib/browser/style/shell.js +1 -1
  187. package/lib/browser/util/image-shrink.d.ts +27 -0
  188. package/lib/browser/util/image-shrink.js +63 -0
  189. package/lib/browser/util/process.d.ts +7 -3
  190. package/lib/browser/util/process.js +18 -18
  191. package/package.json +7 -7
@@ -0,0 +1,14 @@
1
+ import type { WebExtensionAPI } from '../extension/web-extension-api.js';
2
+ import { BuiltinWebExtension, TaWebExtensions } from '../extension/web-extension-protocol.js';
3
+ /**
4
+ * The partners (docs/design/ta-partners.md), as a built-in web extension: a list of the sidebar, after the double's,
5
+ * of those the user works with that every extension gives (registerPartners), drawn the same for all.
6
+ */
7
+ export declare class PartnersWebExtension implements BuiltinWebExtension {
8
+ readonly name = "partners";
9
+ readonly title = "ta.builtin.partners";
10
+ readonly description = "ta.builtin.partnersHint";
11
+ readonly icon: import("lucide-react").LucideIcon;
12
+ protected readonly extensions: TaWebExtensions;
13
+ readonly activate: (pi: WebExtensionAPI) => undefined;
14
+ }
@@ -0,0 +1,78 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ import { Autowired, Component } from '@celljs/core';
11
+ import { Users } from 'lucide-react';
12
+ import * as React from 'react';
13
+ import { PartnerRowUtil } from '../components/partner-row-util.js';
14
+ import { BuiltinWebExtension, TaWebExtensions } from '../extension/web-extension-protocol.js';
15
+ import { message } from '../i18n/messages.js';
16
+ import { PARTNERS_EXTENSION } from './group-picker.js';
17
+ import { PartnersHead, PartnersList, PartnersQuery } from './partners-view.js';
18
+ /**
19
+ * The partners (docs/design/ta-partners.md), as a built-in web extension: a list of the sidebar, after the double's,
20
+ * of those the user works with that every extension gives (registerPartners), drawn the same for all.
21
+ */
22
+ let PartnersWebExtension = class PartnersWebExtension {
23
+ constructor() {
24
+ this.name = PARTNERS_EXTENSION;
25
+ this.title = 'ta.builtin.partners';
26
+ this.description = 'ta.builtin.partnersHint';
27
+ this.icon = Users;
28
+ this.activate = (pi) => {
29
+ const host = this.extensions;
30
+ const context = {
31
+ host,
32
+ query: new PartnersQuery(),
33
+ useShownFile: () => {
34
+ var _a;
35
+ const shown = pi.ui.useSessionId();
36
+ const sessions = pi.ui.useSessions();
37
+ const read = () => !!host.state.page && !host.state.pageHidden;
38
+ const paged = React.useSyncExternalStore(listener => host.subscribe(() => listener()), read, read);
39
+ return paged || !shown ? undefined : (_a = sessions.find(session => session.sessionId === shown)) === null || _a === void 0 ? void 0 : _a.sessionFile;
40
+ },
41
+ };
42
+ pi.registerView(PARTNERS_EXTENSION, {
43
+ title: () => message(pi.ui.language, 'ta.builtin.partners'),
44
+ icon: Users,
45
+ head: () => React.createElement(PartnersHead, { context }),
46
+ render: () => React.createElement(PartnersList, { context }),
47
+ location: 'sidebar',
48
+ order: 80,
49
+ });
50
+ // A partner's conversation of pi (an agent's) is a row of the double's list as any conversation: its menu there
51
+ // has the partner's too, its info and what it does, as its row among the partners has.
52
+ pi.registerSessionMenu(session => {
53
+ var _a;
54
+ var _b;
55
+ const partner = session.sessionFile ? host.partners.partners().find(each => { var _a; return ((_a = each.chat) === null || _a === void 0 ? void 0 : _a.sessionFile) === session.sessionFile; }) : undefined;
56
+ if (!partner) {
57
+ return [];
58
+ }
59
+ const info = partner.info && {
60
+ key: `${partner.key}/info`,
61
+ label: message(pi.ui.language, PartnerRowUtil.infoLabel(partner.kind)),
62
+ run: () => void host.openHome({ key: partner.key, open: () => { var _a; return (_a = partner.info) === null || _a === void 0 ? void 0 : _a.call(partner); } }),
63
+ };
64
+ return [...(info ? [info] : []), ...((_b = (_a = partner.menu) === null || _a === void 0 ? void 0 : _a.call(partner).flat()) !== null && _b !== void 0 ? _b : [])];
65
+ });
66
+ return undefined;
67
+ };
68
+ }
69
+ };
70
+ __decorate([
71
+ Autowired({ id: TaWebExtensions, detached: true }),
72
+ __metadata("design:type", Object)
73
+ ], PartnersWebExtension.prototype, "extensions", void 0);
74
+ PartnersWebExtension = __decorate([
75
+ Component(BuiltinWebExtension)
76
+ ], PartnersWebExtension);
77
+ export { PartnersWebExtension };
78
+ //# sourceMappingURL=partners-extension.js.map
@@ -0,0 +1,32 @@
1
+ import type { WebPartnerEntry, WebPartnerKind } from '../extension/web-api-partners.js';
2
+ /** The kinds in the order the partners list them (docs/design/ta-partners.md). */
3
+ export declare const PARTNER_KINDS: readonly WebPartnerKind[];
4
+ /** A section of the page of the partners: those of a kind. */
5
+ export interface PartnerSection {
6
+ kind: WebPartnerKind;
7
+ partners: WebPartnerEntry[];
8
+ }
9
+ export declare namespace PartnersUtil {
10
+ /** Whether one is a partner already, not one asking, invited or waiting. */
11
+ function is(partner: Pick<WebPartnerEntry, 'status'>): boolean;
12
+ /** When something was last said with it, or 0. */
13
+ function at(partner: Pick<WebPartnerEntry, 'chat'>): number;
14
+ /** Whether it has the query (any case) in its name, what it is or what was said last; all match an empty one. */
15
+ function matches(partner: WebPartnerEntry, query: string): boolean;
16
+ /**
17
+ * The sections of the page, each kind once, in the order of {@link PARTNER_KINDS}, none empty: those that ask or
18
+ * are invited first, then by what was said last, the latest first, then by name.
19
+ */
20
+ function sections(partners: readonly WebPartnerEntry[], query?: string): PartnerSection[];
21
+ /**
22
+ * The conversations with partners that are none of pi (a chat of two, a group chat): rows of the double's list by
23
+ * their time, as the conversations of pi are. Those of pi are there already; those not partners yet have none.
24
+ */
25
+ function chats(partners: readonly WebPartnerEntry[]): WebPartnerEntry[];
26
+ /** Those the user may start a chat or a group chat with: their agents and friends. */
27
+ function pickable(partners: readonly WebPartnerEntry[]): WebPartnerEntry[];
28
+ /** The line under its name: what was said last, else what it is. */
29
+ function line(partner: WebPartnerEntry, waiting: string): string;
30
+ /** It wants the user to look: one asks or invites them, or something was said they have not seen. */
31
+ function unseen(partner: WebPartnerEntry): boolean;
32
+ }
@@ -0,0 +1,68 @@
1
+ /** The kinds in the order the partners list them (docs/design/ta-partners.md). */
2
+ export const PARTNER_KINDS = ['agent', 'friend', 'group'];
3
+ export var PartnersUtil;
4
+ (function (PartnersUtil) {
5
+ /** Whether one is a partner already, not one asking, invited or waiting. */
6
+ function is(partner) {
7
+ return !partner.status;
8
+ }
9
+ PartnersUtil.is = is;
10
+ /** When something was last said with it, or 0. */
11
+ function at(partner) {
12
+ var _a;
13
+ var _b;
14
+ return (_b = (_a = partner.chat) === null || _a === void 0 ? void 0 : _a.at) !== null && _b !== void 0 ? _b : 0;
15
+ }
16
+ PartnersUtil.at = at;
17
+ /** Whether it has the query (any case) in its name, what it is or what was said last; all match an empty one. */
18
+ function matches(partner, query) {
19
+ var _a;
20
+ const needle = query.trim().toLowerCase();
21
+ return !needle || [partner.name, partner.about, (_a = partner.chat) === null || _a === void 0 ? void 0 : _a.last].some(text => !!text && text.toLowerCase().includes(needle));
22
+ }
23
+ PartnersUtil.matches = matches;
24
+ /**
25
+ * The sections of the page, each kind once, in the order of {@link PARTNER_KINDS}, none empty: those that ask or
26
+ * are invited first, then by what was said last, the latest first, then by name.
27
+ */
28
+ function sections(partners, query = '') {
29
+ const order = (partner) => (partner.status === 'asking' || partner.status === 'invited' ? 0 : 1);
30
+ return PARTNER_KINDS.map(kind => ({
31
+ kind,
32
+ partners: partners
33
+ .filter(partner => partner.kind === kind && matches(partner, query))
34
+ .sort((a, b) => order(a) - order(b) || at(b) - at(a) || a.name.localeCompare(b.name)),
35
+ })).filter(section => section.partners.length > 0);
36
+ }
37
+ PartnersUtil.sections = sections;
38
+ /**
39
+ * The conversations with partners that are none of pi (a chat of two, a group chat): rows of the double's list by
40
+ * their time, as the conversations of pi are. Those of pi are there already; those not partners yet have none.
41
+ */
42
+ function chats(partners) {
43
+ return partners.filter(partner => is(partner) && !!partner.chat && !partner.chat.sessionFile && partner.chat.at !== undefined);
44
+ }
45
+ PartnersUtil.chats = chats;
46
+ /** Those the user may start a chat or a group chat with: their agents and friends. */
47
+ function pickable(partners) {
48
+ return partners.filter(partner => is(partner) && (partner.kind === 'agent' || partner.kind === 'friend'));
49
+ }
50
+ PartnersUtil.pickable = pickable;
51
+ /** The line under its name: what was said last, else what it is. */
52
+ function line(partner, waiting) {
53
+ var _a;
54
+ var _b, _c, _d, _e;
55
+ if (partner.status === 'waiting') {
56
+ return (_b = partner.about) !== null && _b !== void 0 ? _b : waiting;
57
+ }
58
+ return partner.status ? ((_c = partner.about) !== null && _c !== void 0 ? _c : '') : ((_e = (_d = (_a = partner.chat) === null || _a === void 0 ? void 0 : _a.last) !== null && _d !== void 0 ? _d : partner.about) !== null && _e !== void 0 ? _e : '');
59
+ }
60
+ PartnersUtil.line = line;
61
+ /** It wants the user to look: one asks or invites them, or something was said they have not seen. */
62
+ function unseen(partner) {
63
+ var _a;
64
+ return partner.status === 'asking' || partner.status === 'invited' || (!partner.status && !!((_a = partner.chat) === null || _a === void 0 ? void 0 : _a.unseen));
65
+ }
66
+ PartnersUtil.unseen = unseen;
67
+ })(PartnersUtil || (PartnersUtil = {}));
68
+ //# sourceMappingURL=partners-util.js.map
@@ -0,0 +1,32 @@
1
+ import * as React from 'react';
2
+ import type { WebPartnerEntry } from '../extension/web-api-partners.js';
3
+ import type { TaWebExtensions } from '../extension/web-extension-protocol.js';
4
+ /** What the head and the list of the partners share: the search. */
5
+ export declare class PartnersQuery {
6
+ protected current: string;
7
+ protected readonly listeners: Set<() => void>;
8
+ readonly get: () => string;
9
+ readonly subscribe: (listener: () => void) => (() => void);
10
+ set(query: string): void;
11
+ }
12
+ /** What the page of the partners reads of the page: the partners, what is in front, how one opens. */
13
+ export interface PartnersContext {
14
+ host: TaWebExtensions;
15
+ query: PartnersQuery;
16
+ /** The file of the conversation shown, while it is in front. */
17
+ useShownFile(): string | undefined;
18
+ }
19
+ export declare function usePartners(host: TaWebExtensions): readonly WebPartnerEntry[];
20
+ /** Whether a partner's conversation is what the user looks at: its page from it, or its conversation of pi. */
21
+ export declare function partnerShown(partner: WebPartnerEntry, shownKey: string | undefined, shownFile: string | undefined): boolean;
22
+ /** The search of the partners and their +: a group chat, then what each extension adds (an agent, a friend). */
23
+ export declare function PartnersHead({ context }: {
24
+ context: PartnersContext;
25
+ }): React.JSX.Element;
26
+ /**
27
+ * The partners (docs/design/ta-partners.md): those the user works with, as a messenger's contacts, in three sections,
28
+ * agents, friends and group chats, each the same row as its conversation in the double's list; one that asks first.
29
+ */
30
+ export declare function PartnersList({ context }: {
31
+ context: PartnersContext;
32
+ }): React.JSX.Element;
@@ -0,0 +1,103 @@
1
+ import { Plus, Search, X } from 'lucide-react';
2
+ import * as React from 'react';
3
+ import { ChatListUtil } from '../components/chat-list-util.js';
4
+ import { useContextMenu } from '../components/context-menu.js';
5
+ import { EmptyState } from '../components/empty-state.js';
6
+ import { Icon, IconButton } from '../components/icon.js';
7
+ import { PartnerRow } from '../components/partner-row.js';
8
+ import { WebHomeUtil } from '../extension/web-home.js';
9
+ import { useT } from '../i18n/use-t.js';
10
+ import { openGroupPicker } from './group-picker.js';
11
+ import { PartnersUtil } from './partners-util.js';
12
+ const SECTION_TITLES = {
13
+ agent: 'ta.partners.agents',
14
+ friend: 'ta.partners.friends',
15
+ group: 'ta.partners.groups',
16
+ };
17
+ /** What the head and the list of the partners share: the search. */
18
+ export class PartnersQuery {
19
+ constructor() {
20
+ this.current = '';
21
+ this.listeners = new Set();
22
+ this.get = () => this.current;
23
+ this.subscribe = (listener) => {
24
+ this.listeners.add(listener);
25
+ return () => this.listeners.delete(listener);
26
+ };
27
+ }
28
+ set(query) {
29
+ this.current = query;
30
+ for (const listener of this.listeners) {
31
+ listener();
32
+ }
33
+ }
34
+ }
35
+ export function usePartners(host) {
36
+ return React.useSyncExternalStore(host.partners.subscribe, host.partners.partners, host.partners.partners);
37
+ }
38
+ /** The key of the row (of the home, or a partner) whose page is in front. */
39
+ function useShownKey(host) {
40
+ const read = () => WebHomeUtil.shown(host.state);
41
+ return React.useSyncExternalStore(listener => host.subscribe(() => listener()), read, read);
42
+ }
43
+ /** Whether a partner's conversation is what the user looks at: its page from it, or its conversation of pi. */
44
+ export function partnerShown(partner, shownKey, shownFile) {
45
+ var _a;
46
+ return shownKey ? shownKey === partner.key : !!((_a = partner.chat) === null || _a === void 0 ? void 0 : _a.sessionFile) && partner.chat.sessionFile === shownFile;
47
+ }
48
+ /** The search of the partners and their +: a group chat, then what each extension adds (an agent, a friend). */
49
+ export function PartnersHead({ context }) {
50
+ const t = useT();
51
+ const { host, query } = context;
52
+ const value = React.useSyncExternalStore(query.subscribe, query.get, query.get);
53
+ const [menu, openMenu] = useContextMenu();
54
+ const items = () => {
55
+ const added = host.partners.sourceList().flatMap(({ extension, source }) => {
56
+ var _a;
57
+ var _b;
58
+ try {
59
+ return (_b = (_a = source.add) === null || _a === void 0 ? void 0 : _a.call(source)) !== null && _b !== void 0 ? _b : [];
60
+ }
61
+ catch (error) {
62
+ console.error(`The partners of the web extension ${extension} failed:`, error);
63
+ return [];
64
+ }
65
+ });
66
+ return [
67
+ { label: t('ta.partners.newGroup'), run: () => openGroupPicker(host) },
68
+ ...(added.length ? ['-'] : []),
69
+ ...added.map(item => ({ label: item.label, run: item.run, disabled: item.disabled, danger: item.danger })),
70
+ ];
71
+ };
72
+ return (React.createElement(React.Fragment, null,
73
+ React.createElement("label", { className: "ta-chats-search" },
74
+ React.createElement(Icon, { icon: Search, size: 15 }),
75
+ React.createElement("input", { value: value, placeholder: t('ta.partners.search'), "aria-label": t('ta.partners.search'), onChange: event => query.set(event.target.value) }),
76
+ value && React.createElement(IconButton, { className: "ta-chats-clear", icon: X, label: t('ta.partners.clear'), onClick: () => query.set('') })),
77
+ React.createElement(IconButton, { className: "ta-chats-add", icon: Plus, label: t('ta.partners.add'), "aria-haspopup": "menu", onClick: event => openMenu(event, items()) }),
78
+ menu));
79
+ }
80
+ /**
81
+ * The partners (docs/design/ta-partners.md): those the user works with, as a messenger's contacts, in three sections,
82
+ * agents, friends and group chats, each the same row as its conversation in the double's list; one that asks first.
83
+ */
84
+ export function PartnersList({ context }) {
85
+ const t = useT();
86
+ const { host, query } = context;
87
+ const partners = usePartners(host);
88
+ const value = React.useSyncExternalStore(query.subscribe, query.get, query.get);
89
+ const shownKey = useShownKey(host);
90
+ const shownFile = context.useShownFile();
91
+ const sections = React.useMemo(() => PartnersUtil.sections(partners, value), [partners, value]);
92
+ const now = Date.now();
93
+ const open = (partner) => host.openHome(partner);
94
+ return (React.createElement("div", { className: "ta-side-scroll ta-partners" },
95
+ partners.length === 0 && React.createElement(EmptyState, { title: t('ta.partners.empty'), hint: t('ta.partners.emptyHint') }),
96
+ partners.length > 0 && sections.length === 0 && React.createElement(EmptyState, { compact: true, title: t('ta.partners.noMatch') }),
97
+ sections.map(section => (React.createElement("section", { key: section.kind, className: "ta-chat-group", "aria-label": t(SECTION_TITLES[section.kind]) },
98
+ React.createElement("div", { className: "ta-chat-section-title" },
99
+ t(SECTION_TITLES[section.kind]),
100
+ React.createElement("span", { className: "ta-chat-group-count" }, section.partners.length)),
101
+ React.createElement("ul", { className: "ta-side-list" }, section.partners.map(partner => { var _a; return (React.createElement(PartnerRow, { key: partner.key, partner: partner, time: ((_a = partner.chat) === null || _a === void 0 ? void 0 : _a.at) && !partner.status ? ChatListUtil.clock(partner.chat.at, now) : '', selected: partnerShown(partner, shownKey, shownFile), open: open })); })))))));
102
+ }
103
+ //# sourceMappingURL=partners-view.js.map
@@ -1,2 +1,2 @@
1
1
  /** The list of chats: its search, its rows, the letters and faces of their groups. */
2
- export declare const CHAT_LIST_STYLE = "\n/* The list of chats: a search, then the chats by directory (a line each under the head of its group) or by day (each with the avatar of its directory) */\n.ta-chats { gap: 8px; }\n/* On a phone a folder opened is pushed over the list (PhoneStack): the same ground and spacing as the list. */\n.ta-chats > .ta-phone-stack > .ta-phone-stack-base, .ta-chats > .ta-phone-stack > .ta-phone-stack-top { gap: 8px; }\n.ta-chats > .ta-phone-stack > .ta-phone-stack-top { background: var(--ta-side); }\n.ta-chats-head { gap: 4px; padding: 0; margin-bottom: 0; }\n.ta-chats-search { flex: 1; min-width: 0; height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 4px 0 11px; border-radius: 10px; background: var(--ta-raised); color: var(--ta-muted); border: 1px solid transparent; transition: border-color 120ms, background 120ms; }\n.ta-chats-search:focus-within { border-color: var(--ta-border-field); background: var(--ta-input); }\n.ta-chats-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; color: var(--ta-text); padding: 0; font-size: calc(13.5px * var(--ta-font-scale)); }\n.ta-chats-search input::placeholder { color: var(--ta-muted); }\n.ta-chats-clear { width: 24px; height: 24px; }\n.ta-chips { display: flex; gap: 6px; flex: none; overflow-x: auto; scrollbar-width: none; margin: 0 -8px; padding: 0 8px 2px; }\n.ta-chips::-webkit-scrollbar { display: none; }\n.ta-chip-filter { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 28px; padding: 0 11px; border-radius: 14px; border: 1px solid var(--ta-border); background: transparent; color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); white-space: nowrap; transition: background 120ms, color 120ms, border-color 120ms; }\n.ta-chip-filter:hover { background: var(--ta-hover); color: var(--ta-text); }\n.ta-chip-filter[aria-selected='true'] { background: var(--ta-selected); border-color: transparent; color: var(--ta-text); font-weight: 500; }\n.ta-chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tone-ink); }\n.ta-chip-count { color: var(--ta-muted); font-variant-numeric: tabular-nums; font-weight: 400; }\n.ta-chat-section + .ta-chat-section { margin-top: 6px; }\n.ta-chats-view { width: 26px; height: 26px; border-radius: 7px; color: var(--ta-muted); }\n.ta-chats-view[aria-pressed='true'] { color: var(--ta-text); background: var(--ta-hover-strong); }\n.ta-chat-group + .ta-chat-group { margin-top: 4px; }\n.ta-chat-group-head { position: relative; display: flex; align-items: center; }\n.ta-chat-group-toggle { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 40px 0 10px; border: 0; border-radius: 10px; background: transparent; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); font-weight: 500; text-align: left; }\n.ta-chat-group-toggle:hover { background: var(--ta-hover); color: var(--ta-text); }\n.ta-chat-group-avatar { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 6px; background: var(--tone-tint); color: var(--tone-ink); font-size: 11px; font-weight: 600; }\n.ta-chat-group-toggle .ta-host-tag { margin-right: -3px; }\n.ta-chat-group-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-chat-group-count { flex: none; color: var(--ta-muted); font-weight: 400; font-variant-numeric: tabular-nums; }\n.ta-chat-group-chevron { flex: none; color: var(--ta-muted); transition: transform 150ms ease; }\n.ta-chat-group-toggle[aria-expanded='true'] .ta-chat-group-chevron { transform: rotate(90deg); }\n.ta-chat-group-add { position: absolute; right: 6px; top: 50%; width: 26px; height: 26px; transform: translateY(-50%); opacity: 0; }\n.ta-chat-group-head:hover .ta-chat-group-add, .ta-chat-group-add:focus-visible { opacity: 1; }\n.ta-chat-group-toggle .ta-chat-icon, .ta-chat-folder-head .ta-chat-icon { flex: none; border-radius: 6px; }\n.ta-chat-folder-head { flex: none; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 2px; border-bottom: 1px solid var(--ta-border); color: var(--ta-text); font-size: calc(14px * var(--ta-font-scale)); font-weight: 600; }\n.ta-chat-folder-back { width: 30px; height: 30px; flex: none; }\n.ta-chat-folder-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-chat-item.ta-compact { min-height: 34px; padding: 7px 10px 7px 38px; border-radius: 10px; }\n.ta-chat-row:has(.ta-chat-item.ta-compact) { border-radius: 10px; }\n.ta-compact .ta-chat-title { font-weight: 400; color: var(--ta-body); }\n.ta-chat-section-title { padding: 8px 10px 4px; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-chat-fold { display: flex; align-items: center; gap: 4px; width: 100%; margin-top: 8px; border: 0; border-radius: 8px; background: transparent; text-align: left; cursor: pointer; }\n.ta-chat-fold:hover { color: var(--ta-text); }\n.ta-chat-fold svg { transition: transform 0.15s ease; }\n.ta-chat-fold[aria-expanded=\"true\"] svg { transform: rotate(90deg); }\n.ta-chat-removed .ta-chat-item { opacity: 0.72; }\n.ta-chat-group .ta-chat-fold { margin-top: 0; padding-left: 14px; }\n.ta-chat-more { height: 1px; }\n/* Rows out of view are not laid out or painted (their menu opens in a portal, their actions within them). */\n.ta-chat-row { position: relative; border-radius: 12px; content-visibility: auto; contain-intrinsic-size: auto 60px; }\n.ta-chat-row:has(.ta-compact) { contain-intrinsic-size: auto 36px; }\n.ta-chat-row:hover { background: var(--ta-hover); }\n.ta-chat-row.ta-selected { background: var(--ta-selected); }\n.ta-chat-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 9px 10px; border: 0; border-radius: 12px; background: transparent; text-align: left; color: inherit; }\n.ta-chat-avatar { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--tone-tint); color: var(--tone-ink); font-size: 15px; font-weight: 600; }\n.ta-chat-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }\n.ta-chat-line { display: flex; align-items: center; gap: 8px; min-width: 0; }\n.ta-chat-title { flex: 1; min-width: 0; font-size: calc(14px * var(--ta-font-scale)); font-weight: 500; color: var(--ta-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-chat-time { flex: none; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); font-variant-numeric: tabular-nums; }\n.ta-chat-sub { flex: 1; min-width: 0; font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-chat-line .ta-spinner { width: 12px; height: 12px; }\n/* Someone to talk to: the double's face, or the face an extension draws for its agent, in place of a letter. */\n.ta-chat-face { flex: none; display: inline-grid; place-items: center; }\n/* A conversation of an extension that is no one to talk to (a brief, a question): its icon on a tile of its tint. */\n.ta-chat-icon { background: var(--ta-tile); color: var(--ta-tile-ink); }\n/* In a row of one line, in the room left of its title, under the letter of its group: the title stays where the others are. */\n.ta-compact .ta-chat-face { margin-left: -28px; }\n/* What goes on in it, at the end of a line: answering (a spinner, on the line under the title), a task that failed or was stopped. */\n.ta-chat-state { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); white-space: nowrap; }\n.ta-chat-state .ta-status { width: 8px; }\n.ta-chat-state.ta-failed { color: color-mix(in srgb, var(--ta-red) 85%, var(--ta-muted)); }\n/* Under the title, as a messaging app: the last thing said, or its directory; how a task ended, before it, as WeChat's [Draft]. */\n.ta-chat-dir { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; vertical-align: top; }\n.ta-chat-dir > svg { flex: none; }\n.ta-chat-flag { margin-right: 3px; }\n.ta-chat-flag.ta-replying { color: var(--ta-secondary); }\n.ta-chat-line > .ta-people { margin-left: 4px; }\n/* Out of the way of the button that takes a row out, as its words are. */\n.ta-chat-row:hover .ta-chat-item:not(.ta-compact) .ta-chat-line > .ta-people:last-child { margin-right: 28px; }\n.ta-chat-line .ta-people-face { box-shadow: none; background: none; }\n.ta-chat-line .ta-people-face + .ta-people-face { margin-left: -3px; }\n.ta-chat-flag.ta-failed { color: color-mix(in srgb, var(--ta-red) 85%, var(--ta-muted)); }\n.ta-chat-flag.ta-draft { color: var(--ta-red); }\n.ta-chat-flag.ta-waiting, .ta-chat-state.ta-waiting { color: color-mix(in srgb, var(--ta-blue) 85%, var(--ta-muted)); }\n/* Its directory, in place of its time while the pointer is on it. */\n.ta-chat-place { display: none; flex: 0 1 auto; align-items: center; gap: 4px; min-width: 0; max-width: 45%; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-chat-place > svg { flex: none; }\n.ta-chat-place > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n@media (hover: hover) {\n .ta-chat-row:hover .ta-chat-item:not(.ta-compact) .ta-chat-place { display: inline-flex; }\n .ta-chat-row:hover .ta-chat-item:not(.ta-compact) .ta-chat-time { display: none; }\n}\n.ta-chats-add { width: 36px; height: 36px; border-radius: 10px; background: var(--ta-raised); }\n/* On the line under the title, at its end; in the middle of a row of one line. */\n.ta-chat-delete { position: absolute; bottom: 7px; right: 8px; width: 26px; height: 26px; opacity: 0; }\n.ta-chat-row:has(.ta-compact) .ta-chat-delete { bottom: auto; top: 50%; width: 30px; height: 30px; transform: translateY(-50%); }\n.ta-chat-row:hover .ta-chat-item:not(.ta-compact) .ta-chat-sub { padding-right: 28px; }\n.ta-chat-delete:hover:not(:disabled) { color: var(--ta-red); }\n.ta-chat-row:hover .ta-chat-delete, .ta-chat-delete:focus-visible { opacity: 1; }\n/* Taken out, while ta serve closes it: its button stays, turning. */\n.ta-chat-row .ta-chat-delete.ta-icon-button.ta-busy { display: inline-grid; opacity: 1; }\n.ta-chat-row:hover .ta-compact .ta-chat-time, .ta-chat-row:hover .ta-chat-state { visibility: hidden; }\n/*\n * Unseen, as a messenger's unread: an amber dot on the corner of the avatar (before the time in a row of one line), as\n * the agents of the side bar have; it grows in and shrinks away. Cut out of the avatar by the color of the row.\n */\n.ta-chat-avatar-box { position: relative; display: inline-flex; flex: none; }\n.ta-chat-row { --ta-chat-bg: var(--ta-side); }\n.ta-chat-row:hover { --ta-chat-bg: var(--ta-hover); }\n.ta-chat-row.ta-selected { --ta-chat-bg: var(--ta-selected); }\n.ta-chat-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ta-yellow); transform: scale(0); opacity: 0; transition: transform 0.24s cubic-bezier(0.3, 1.5, 0.5, 1), opacity 0.18s ease; }\n.ta-chat-line > .ta-chat-dot:not(.ta-on) { width: 0; margin-left: -8px; }\n.ta-chat-avatar-box > .ta-chat-dot { position: absolute; right: -2px; bottom: -2px; z-index: 1; width: 12px; height: 12px; box-sizing: border-box; border: 2px solid var(--ta-chat-bg); }\n.ta-chat-dot.ta-on { transform: none; opacity: 1; }\n/* A conversation that waits for the user to decide: a blue ? in place of the amber dot, which seeing it does not take away. */\n.ta-chat-dot.ta-asks { display: grid; place-items: center; background: var(--ta-blue); color: #fff; font-size: 9px; font-weight: 700; line-height: 1; }\n.ta-chat-line > .ta-chat-dot.ta-asks { width: 13px; height: 13px; }\n.ta-chat-avatar-box > .ta-chat-dot.ta-asks { right: -3px; bottom: -3px; width: 17px; height: 17px; font-size: 10px; }\n/* Only those going on (the row of the double opened the list): a chip that clears it, its count beside its label. */\n.ta-chat-filter { display: flex; padding: 0 2px 2px; }\n.ta-chat-filter-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px 0 11px; border: 0; border-radius: 14px; background: var(--ta-chip); color: var(--ta-text); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); cursor: pointer; transition: background 120ms; }\n.ta-chat-filter-chip:hover { background: var(--ta-selected); }\n.ta-chat-filter-chip > svg { color: var(--ta-muted); }\n.ta-chat-filter-count { font-variant-numeric: tabular-nums; color: var(--ta-secondary); }\n/* How many wait for the user to decide, on the entry of the chats: over the corner of its icon. */\n.ta-asks-badge { position: absolute; top: 3px; right: 1px; z-index: 1; min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box; border-radius: 8px; background: var(--ta-blue); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; pointer-events: none; box-shadow: 0 0 0 2px var(--ta-side); }\n.ta-tabbar-icon > .ta-asks-badge { top: -5px; right: -11px; }\n@media (prefers-reduced-motion: reduce) { .ta-chat-dot { transition: opacity 0.18s ease; } }\n/* What came unseen reads as unread: in the color of the text, not muted. */\n.ta-chat-sub.ta-unseen { color: var(--ta-text); }\n/* Above the box: where a new conversation will work (ComposerBox's head), a pill of its directory. */\n.ta-console-head { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 0 0 6px; }\n.ta-console-head .ta-cwd-chip { max-width: min(100%, 360px); height: 26px; padding: 0 8px 0 7px; background: transparent; }\n.ta-console-head .ta-cwd-chip:hover { background: var(--ta-hover); }\n.ta-console-head .ta-cwd-chip .ta-ellipsis { flex: 0 1 auto; min-width: 0; max-width: none; }\n.ta-cwd-chip { display: inline-flex; align-items: center; gap: 5px; flex: none; max-width: 180px; overflow: hidden; height: 30px; padding: 0 9px 0 10px; border: 0; border-radius: 15px; background: var(--ta-hover); color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); transition: background 120ms, color 120ms; }\n.ta-cwd-chip:hover { background: var(--ta-hover-strong); color: var(--ta-text); }\n.ta-cwd-chip svg { flex: none; }\n@media (max-width: 600px) { .ta-cwd-chip { max-width: 120px; } }\n/* The letters of the list in hues of the agents' faces (yellow, blue, orange, green, violet, pink), drawn as tints of the theme (--ta-tint-<n>, style/tints.ts). */\n.ta-tone-0 { --tone-tint: var(--ta-tint-2); --tone-ink: var(--ta-tint-ink-2); }\n.ta-tone-1 { --tone-tint: var(--ta-tint-0); --tone-ink: var(--ta-tint-ink-0); }\n.ta-tone-2 { --tone-tint: var(--ta-tint-4); --tone-ink: var(--ta-tint-ink-4); }\n.ta-tone-3 { --tone-tint: var(--ta-tint-3); --tone-ink: var(--ta-tint-ink-3); }\n.ta-tone-4 { --tone-tint: var(--ta-tint-5); --tone-ink: var(--ta-tint-ink-5); }\n.ta-tone-5 { --tone-tint: var(--ta-tint-7); --tone-ink: var(--ta-tint-ink-7); }\n";
2
+ export declare const CHAT_LIST_STYLE = "\n/* The list of chats: a search, then the chats by directory (a line each under the head of its group) or by day (each with the avatar of its directory) */\n.ta-chats { gap: 8px; }\n/* On a phone a folder opened is pushed over the list (PhoneStack): the same ground and spacing as the list. */\n.ta-chats > .ta-phone-stack > .ta-phone-stack-base, .ta-chats > .ta-phone-stack > .ta-phone-stack-top { gap: 8px; }\n.ta-chats > .ta-phone-stack > .ta-phone-stack-top { background: var(--ta-side); }\n.ta-chats-head { gap: 4px; padding: 0; margin-bottom: 0; }\n.ta-chats-search { flex: 1; min-width: 0; height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 4px 0 11px; border-radius: 10px; background: var(--ta-raised); color: var(--ta-muted); border: 1px solid transparent; transition: border-color 120ms, background 120ms; }\n.ta-chats-search:focus-within { border-color: var(--ta-border-field); background: var(--ta-input); }\n.ta-chats-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; color: var(--ta-text); padding: 0; font-size: calc(13.5px * var(--ta-font-scale)); }\n.ta-chats-search input::placeholder { color: var(--ta-muted); }\n.ta-chats-clear { width: 24px; height: 24px; }\n.ta-chips { display: flex; gap: 6px; flex: none; overflow-x: auto; scrollbar-width: none; margin: 0 -8px; padding: 0 8px 2px; }\n.ta-chips::-webkit-scrollbar { display: none; }\n.ta-chip-filter { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 28px; padding: 0 11px; border-radius: 14px; border: 1px solid var(--ta-border); background: transparent; color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); white-space: nowrap; transition: background 120ms, color 120ms, border-color 120ms; }\n.ta-chip-filter:hover { background: var(--ta-hover); color: var(--ta-text); }\n.ta-chip-filter[aria-selected='true'] { background: var(--ta-selected); border-color: transparent; color: var(--ta-text); font-weight: 500; }\n.ta-chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tone-ink); }\n.ta-chip-count { color: var(--ta-muted); font-variant-numeric: tabular-nums; font-weight: 400; }\n.ta-chat-section + .ta-chat-section { margin-top: 6px; }\n.ta-chats-view { width: 26px; height: 26px; border-radius: 7px; color: var(--ta-muted); }\n.ta-chats-view[aria-pressed='true'] { color: var(--ta-text); background: var(--ta-hover-strong); }\n.ta-chat-group + .ta-chat-group { margin-top: 4px; }\n.ta-chat-group-head { position: relative; display: flex; align-items: center; }\n.ta-chat-group-toggle { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 40px 0 10px; border: 0; border-radius: 10px; background: transparent; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); font-weight: 500; text-align: left; }\n.ta-chat-group-toggle:hover { background: var(--ta-hover); color: var(--ta-text); }\n.ta-chat-group-avatar { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 6px; background: var(--tone-tint); color: var(--tone-ink); font-size: 11px; font-weight: 600; }\n.ta-chat-group-toggle .ta-host-tag { margin-right: -3px; }\n.ta-chat-group-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-chat-group-count { flex: none; color: var(--ta-muted); font-weight: 400; font-variant-numeric: tabular-nums; }\n.ta-chat-group-chevron { flex: none; color: var(--ta-muted); transition: transform 150ms ease; }\n.ta-chat-group-toggle[aria-expanded='true'] .ta-chat-group-chevron { transform: rotate(90deg); }\n.ta-chat-group-add { position: absolute; right: 6px; top: 50%; width: 26px; height: 26px; transform: translateY(-50%); opacity: 0; }\n.ta-chat-group-head:hover .ta-chat-group-add, .ta-chat-group-add:focus-visible { opacity: 1; }\n.ta-chat-group-toggle .ta-chat-icon, .ta-chat-folder-head .ta-chat-icon { flex: none; border-radius: 6px; }\n.ta-chat-folder-head { flex: none; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 2px; border-bottom: 1px solid var(--ta-border); color: var(--ta-text); font-size: calc(14px * var(--ta-font-scale)); font-weight: 600; }\n.ta-chat-folder-back { width: 30px; height: 30px; flex: none; }\n.ta-chat-folder-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-chat-item.ta-compact { min-height: 34px; padding: 7px 10px 7px 38px; border-radius: 10px; }\n.ta-chat-row:has(.ta-chat-item.ta-compact) { border-radius: 10px; }\n.ta-compact .ta-chat-title { font-weight: 400; color: var(--ta-body); }\n.ta-chat-section-title { padding: 8px 10px 4px; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-chat-fold { display: flex; align-items: center; gap: 4px; width: 100%; margin-top: 8px; border: 0; border-radius: 8px; background: transparent; text-align: left; cursor: pointer; }\n.ta-chat-fold:hover { color: var(--ta-text); }\n.ta-chat-fold svg { transition: transform 0.15s ease; }\n.ta-chat-fold[aria-expanded=\"true\"] svg { transform: rotate(90deg); }\n.ta-chat-removed .ta-chat-item { opacity: 0.72; }\n.ta-chat-group .ta-chat-fold { margin-top: 0; padding-left: 14px; }\n.ta-chat-more { height: 1px; }\n/* Rows out of view are not laid out or painted (their menu opens in a portal, their actions within them). */\n.ta-chat-row { position: relative; border-radius: 12px; content-visibility: auto; contain-intrinsic-size: auto 60px; }\n.ta-chat-row:has(.ta-compact) { contain-intrinsic-size: auto 36px; }\n.ta-chat-row:hover { background: var(--ta-hover); }\n.ta-chat-row.ta-selected { background: var(--ta-selected); }\n.ta-chat-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 9px 10px; border: 0; border-radius: 12px; background: transparent; text-align: left; color: inherit; }\n.ta-chat-avatar { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--tone-tint); color: var(--tone-ink); font-size: 15px; font-weight: 600; }\n.ta-chat-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }\n.ta-chat-line { display: flex; align-items: center; gap: 8px; min-width: 0; }\n.ta-chat-title { flex: 1; min-width: 0; font-size: calc(14px * var(--ta-font-scale)); font-weight: 500; color: var(--ta-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-chat-time { flex: none; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); font-variant-numeric: tabular-nums; }\n/* After the title, what it is (a group chat with friends): small, green, the title as short as it is so it sits beside it. */\n.ta-chat-title.ta-badged { flex: 0 1 auto; }\n.ta-chat-badge { flex: none; margin-right: auto; margin-left: -2px; height: calc(16px * var(--ta-font-scale)); padding: 0 5px; border-radius: 4px; background: color-mix(in oklab, var(--ta-green) 13%, transparent); color: var(--ta-green); font-size: calc(10.5px * var(--ta-font-scale)); font-weight: 500; line-height: calc(16px * var(--ta-font-scale)); white-space: nowrap; }\n.ta-chat-sub { flex: 1; min-width: 0; font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-chat-line .ta-spinner { width: 12px; height: 12px; }\n/* Someone to talk to: the double's face, or the face an extension draws for its agent, in place of a letter. */\n.ta-chat-face { flex: none; display: inline-grid; place-items: center; }\n/* A conversation of an extension that is no one to talk to (a brief, a question): its icon on a tile of its tint. */\n.ta-chat-icon { background: var(--ta-tile); color: var(--ta-tile-ink); }\n/* In a row of one line, in the room left of its title, under the letter of its group: the title stays where the others are. */\n.ta-compact .ta-chat-face { margin-left: -28px; }\n/* What goes on in it, at the end of a line: answering (a spinner, on the line under the title), a task that failed or was stopped. */\n.ta-chat-state { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); white-space: nowrap; }\n.ta-chat-state .ta-status { width: 8px; }\n.ta-chat-state.ta-failed { color: color-mix(in srgb, var(--ta-red) 85%, var(--ta-muted)); }\n/* Under the title, as a messaging app: the last thing said, or its directory; how a task ended, before it, as WeChat's [Draft]. */\n.ta-chat-dir { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; vertical-align: top; }\n.ta-chat-dir > svg { flex: none; }\n.ta-chat-flag { margin-right: 3px; }\n.ta-chat-flag.ta-replying { color: var(--ta-secondary); }\n.ta-chat-line > .ta-people { margin-left: 4px; }\n/* Out of the way of the button that takes a row out, as its words are. */\n.ta-chat-row:hover .ta-chat-item:not(.ta-compact) .ta-chat-line > .ta-people:last-child { margin-right: 28px; }\n.ta-chat-line .ta-people-face { box-shadow: none; background: none; }\n.ta-chat-line .ta-people-face + .ta-people-face { margin-left: -3px; }\n.ta-chat-flag.ta-failed { color: color-mix(in srgb, var(--ta-red) 85%, var(--ta-muted)); }\n.ta-chat-flag.ta-draft { color: var(--ta-red); }\n.ta-chat-flag.ta-waiting, .ta-chat-state.ta-waiting { color: color-mix(in srgb, var(--ta-blue) 85%, var(--ta-muted)); }\n/* Its directory, in place of its time while the pointer is on it. */\n.ta-chat-place { display: none; flex: 0 1 auto; align-items: center; gap: 4px; min-width: 0; max-width: 45%; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-chat-place > svg { flex: none; }\n.ta-chat-place > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n@media (hover: hover) {\n .ta-chat-row:hover .ta-chat-item:not(.ta-compact) .ta-chat-place { display: inline-flex; }\n .ta-chat-row:hover .ta-chat-item:not(.ta-compact) .ta-chat-time { display: none; }\n}\n.ta-chats-add { width: 36px; height: 36px; border-radius: 10px; background: var(--ta-raised); }\n/* On the line under the title, at its end; in the middle of a row of one line. */\n.ta-chat-delete { position: absolute; bottom: 7px; right: 8px; width: 26px; height: 26px; opacity: 0; }\n.ta-chat-row:has(.ta-compact) .ta-chat-delete { bottom: auto; top: 50%; width: 30px; height: 30px; transform: translateY(-50%); }\n.ta-chat-row:hover .ta-chat-item:not(.ta-compact) .ta-chat-sub { padding-right: 28px; }\n.ta-chat-delete:hover:not(:disabled) { color: var(--ta-red); }\n.ta-chat-row:hover .ta-chat-delete, .ta-chat-delete:focus-visible { opacity: 1; }\n/* Taken out, while ta serve closes it: its button stays, turning. */\n.ta-chat-row .ta-chat-delete.ta-icon-button.ta-busy { display: inline-grid; opacity: 1; }\n.ta-chat-row:hover .ta-compact .ta-chat-time, .ta-chat-row:hover .ta-chat-state { visibility: hidden; }\n/*\n * Unseen, as a messenger's unread: an amber dot on the corner of the avatar (before the time in a row of one line), as\n * the agents of the side bar have; it grows in and shrinks away. Cut out of the avatar by the color of the row.\n */\n.ta-chat-avatar-box { position: relative; display: inline-flex; flex: none; }\n.ta-chat-row { --ta-chat-bg: var(--ta-side); }\n.ta-chat-row:hover { --ta-chat-bg: var(--ta-hover); }\n.ta-chat-row.ta-selected { --ta-chat-bg: var(--ta-selected); }\n.ta-chat-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ta-yellow); transform: scale(0); opacity: 0; transition: transform 0.24s cubic-bezier(0.3, 1.5, 0.5, 1), opacity 0.18s ease; }\n.ta-chat-line > .ta-chat-dot:not(.ta-on) { width: 0; margin-left: -8px; }\n.ta-chat-avatar-box > .ta-chat-dot { position: absolute; right: -2px; bottom: -2px; z-index: 1; width: 12px; height: 12px; box-sizing: border-box; border: 2px solid var(--ta-chat-bg); }\n.ta-chat-dot.ta-on { transform: none; opacity: 1; }\n/* A conversation that waits for the user to decide: a blue ? in place of the amber dot, which seeing it does not take away. */\n.ta-chat-dot.ta-asks { display: grid; place-items: center; background: var(--ta-blue); color: #fff; font-size: 9px; font-weight: 700; line-height: 1; }\n.ta-chat-line > .ta-chat-dot.ta-asks { width: 13px; height: 13px; }\n.ta-chat-avatar-box > .ta-chat-dot.ta-asks { right: -3px; bottom: -3px; width: 17px; height: 17px; font-size: 10px; }\n/* Only those going on (the row of the double opened the list): a chip that clears it, its count beside its label. */\n.ta-chat-filter { display: flex; padding: 0 2px 2px; }\n.ta-chat-filter-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px 0 11px; border: 0; border-radius: 14px; background: var(--ta-chip); color: var(--ta-text); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); cursor: pointer; transition: background 120ms; }\n.ta-chat-filter-chip:hover { background: var(--ta-selected); }\n.ta-chat-filter-chip > svg { color: var(--ta-muted); }\n.ta-chat-filter-count { font-variant-numeric: tabular-nums; color: var(--ta-secondary); }\n/* How many wait for the user to decide, on the entry of the chats: over the corner of its icon. */\n.ta-asks-badge { position: absolute; top: 3px; right: 1px; z-index: 1; min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box; border-radius: 8px; background: var(--ta-blue); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; pointer-events: none; box-shadow: 0 0 0 2px var(--ta-side); }\n.ta-tabbar-icon > .ta-asks-badge { top: -5px; right: -11px; }\n@media (prefers-reduced-motion: reduce) { .ta-chat-dot { transition: opacity 0.18s ease; } }\n/* What came unseen reads as unread: in the color of the text, not muted. */\n.ta-chat-sub.ta-unseen { color: var(--ta-text); }\n/* Above the box: where a new conversation will work (ComposerBox's head), a pill of its directory. */\n.ta-console-head { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 0 0 6px; }\n.ta-console-head .ta-cwd-chip { max-width: min(100%, 360px); height: 26px; padding: 0 8px 0 7px; background: transparent; }\n.ta-console-head .ta-cwd-chip:hover { background: var(--ta-hover); }\n.ta-console-head .ta-cwd-chip .ta-ellipsis { flex: 0 1 auto; min-width: 0; max-width: none; }\n.ta-cwd-chip { display: inline-flex; align-items: center; gap: 5px; flex: none; max-width: 180px; overflow: hidden; height: 30px; padding: 0 9px 0 10px; border: 0; border-radius: 15px; background: var(--ta-hover); color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); transition: background 120ms, color 120ms; }\n.ta-cwd-chip:hover { background: var(--ta-hover-strong); color: var(--ta-text); }\n.ta-cwd-chip svg { flex: none; }\n@media (max-width: 600px) { .ta-cwd-chip { max-width: 120px; } }\n/* The letters of the list in hues of the agents' faces (yellow, blue, orange, green, violet, pink), drawn as tints of the theme (--ta-tint-<n>, style/tints.ts). */\n.ta-tone-0 { --tone-tint: var(--ta-tint-2); --tone-ink: var(--ta-tint-ink-2); }\n.ta-tone-1 { --tone-tint: var(--ta-tint-0); --tone-ink: var(--ta-tint-ink-0); }\n.ta-tone-2 { --tone-tint: var(--ta-tint-4); --tone-ink: var(--ta-tint-ink-4); }\n.ta-tone-3 { --tone-tint: var(--ta-tint-3); --tone-ink: var(--ta-tint-ink-3); }\n.ta-tone-4 { --tone-tint: var(--ta-tint-5); --tone-ink: var(--ta-tint-ink-5); }\n.ta-tone-5 { --tone-tint: var(--ta-tint-7); --tone-ink: var(--ta-tint-ink-7); }\n/* The partners (PartnersList): agents, friends and group chats, each a section under a small title, rows as the chats. */\n.ta-partners .ta-chat-section-title { display: flex; align-items: center; gap: 6px; }\n.ta-partners .ta-chat-group + .ta-chat-group { margin-top: 6px; }\n.ta-partner-online { position: absolute; left: -1px; bottom: -1px; z-index: 1; width: 10px; height: 10px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--ta-chat-bg); background: var(--ta-green); }\n/* Starting a chat (GroupPicker): agents and friends to tick, the one of a chat it starts from ticked already. */\n.ta-partner-pick { display: flex; flex-direction: column; gap: 10px; min-height: 0; }\n.ta-partner-pick-lead { margin: 0; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); }\n.ta-partner-pick-list { display: flex; flex-direction: column; gap: 2px; min-height: 0; max-height: min(56vh, 420px); margin: 0; padding: 0; overflow-y: auto; list-style: none; }\n.ta-partner-pick-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border: none; border-radius: 10px; background: transparent; color: var(--ta-text); font: inherit; text-align: left; cursor: pointer; }\n.ta-partner-pick-row:hover:not(:disabled) { background: var(--ta-hover); }\n.ta-partner-pick-row:disabled { cursor: default; }\n.ta-partner-pick-box { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; box-sizing: border-box; border: 1.5px solid var(--ta-border-field); border-radius: 50%; color: #fff; transition: background 0.12s, border-color 0.12s; }\n.ta-partner-pick-box.ta-on { border-color: var(--ta-green); background: var(--ta-green); }\n.ta-partner-pick-row:disabled .ta-partner-pick-box.ta-on { opacity: 0.5; }\n.ta-partner-pick-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-partner-pick-kind { flex: none; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.ta-partner-pick-error { margin: 0; color: var(--ta-red); font-size: calc(13px * var(--ta-font-scale)); }\n.ta-partner-pick-foot { display: flex; justify-content: flex-end; }\n";
@@ -59,6 +59,9 @@ export const CHAT_LIST_STYLE = `
59
59
  .ta-chat-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
60
60
  .ta-chat-title { flex: 1; min-width: 0; font-size: calc(14px * var(--ta-font-scale)); font-weight: 500; color: var(--ta-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
61
61
  .ta-chat-time { flex: none; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); font-variant-numeric: tabular-nums; }
62
+ /* After the title, what it is (a group chat with friends): small, green, the title as short as it is so it sits beside it. */
63
+ .ta-chat-title.ta-badged { flex: 0 1 auto; }
64
+ .ta-chat-badge { flex: none; margin-right: auto; margin-left: -2px; height: calc(16px * var(--ta-font-scale)); padding: 0 5px; border-radius: 4px; background: color-mix(in oklab, var(--ta-green) 13%, transparent); color: var(--ta-green); font-size: calc(10.5px * var(--ta-font-scale)); font-weight: 500; line-height: calc(16px * var(--ta-font-scale)); white-space: nowrap; }
62
65
  .ta-chat-sub { flex: 1; min-width: 0; font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
63
66
  .ta-chat-line .ta-spinner { width: 12px; height: 12px; }
64
67
  /* Someone to talk to: the double's face, or the face an extension draws for its agent, in place of a letter. */
@@ -146,5 +149,23 @@ export const CHAT_LIST_STYLE = `
146
149
  .ta-tone-3 { --tone-tint: var(--ta-tint-3); --tone-ink: var(--ta-tint-ink-3); }
147
150
  .ta-tone-4 { --tone-tint: var(--ta-tint-5); --tone-ink: var(--ta-tint-ink-5); }
148
151
  .ta-tone-5 { --tone-tint: var(--ta-tint-7); --tone-ink: var(--ta-tint-ink-7); }
152
+ /* The partners (PartnersList): agents, friends and group chats, each a section under a small title, rows as the chats. */
153
+ .ta-partners .ta-chat-section-title { display: flex; align-items: center; gap: 6px; }
154
+ .ta-partners .ta-chat-group + .ta-chat-group { margin-top: 6px; }
155
+ .ta-partner-online { position: absolute; left: -1px; bottom: -1px; z-index: 1; width: 10px; height: 10px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--ta-chat-bg); background: var(--ta-green); }
156
+ /* Starting a chat (GroupPicker): agents and friends to tick, the one of a chat it starts from ticked already. */
157
+ .ta-partner-pick { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
158
+ .ta-partner-pick-lead { margin: 0; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); }
159
+ .ta-partner-pick-list { display: flex; flex-direction: column; gap: 2px; min-height: 0; max-height: min(56vh, 420px); margin: 0; padding: 0; overflow-y: auto; list-style: none; }
160
+ .ta-partner-pick-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border: none; border-radius: 10px; background: transparent; color: var(--ta-text); font: inherit; text-align: left; cursor: pointer; }
161
+ .ta-partner-pick-row:hover:not(:disabled) { background: var(--ta-hover); }
162
+ .ta-partner-pick-row:disabled { cursor: default; }
163
+ .ta-partner-pick-box { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; box-sizing: border-box; border: 1.5px solid var(--ta-border-field); border-radius: 50%; color: #fff; transition: background 0.12s, border-color 0.12s; }
164
+ .ta-partner-pick-box.ta-on { border-color: var(--ta-green); background: var(--ta-green); }
165
+ .ta-partner-pick-row:disabled .ta-partner-pick-box.ta-on { opacity: 0.5; }
166
+ .ta-partner-pick-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
167
+ .ta-partner-pick-kind { flex: none; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }
168
+ .ta-partner-pick-error { margin: 0; color: var(--ta-red); font-size: calc(13px * var(--ta-font-scale)); }
169
+ .ta-partner-pick-foot { display: flex; justify-content: flex-end; }
149
170
  `;
150
171
  //# sourceMappingURL=chat-list.js.map
@@ -1,2 +1,2 @@
1
1
  /** The conversation column: the steps of a turn, the pictures of a message, the message box and its + menu, the messages waiting. */
2
- export declare const CONVERSATION_COLUMN_STYLE = "\n/* The conversation: the avatar's mark, the folded work, the message box, the account */\n.ta-avatar-marked { position: relative; display: inline-block; flex: none; }\n.ta-avatar-marked .ta-avatar { width: 100%; height: 100%; }\n.ta-avatar-mark { position: absolute; right: -6%; bottom: -6%; min-width: 1.6em; height: 1.6em; padding: 0 0.3em; border-radius: 0.8em; display: grid; place-items: center; background: var(--ta-raised); color: var(--ta-text); box-shadow: 0 0 0 1.5px var(--ta-main); font-weight: 600; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }\n.ta-working { color: var(--ta-secondary); font-weight: 400; font-size: calc(12.5px * var(--ta-font-scale)); }\n.ta-turn-head { display: flex; align-items: center; gap: 8px; min-height: 26px; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); }\n.ta-turn-head .ta-process-head { margin-left: 0; }\n/* What ta does, before the first step, where the head of the steps will say how many there are: its words in the same place. */\n.ta-turn-head > .ta-run-status { padding-left: 6px; }\n.ta-run-status { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); line-height: 1.4; }\n.ta-run-phase { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-run-tokens { display: inline-flex; align-items: center; gap: 8px; flex: none; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }\n.ta-run-tokens > span { display: inline-flex; align-items: center; gap: 1px; }\n/* Under the words of a turn its dot starts where they do: the dot is centred in its box, which starts a little before. */\n.ta-run-line { display: flex; min-width: 0; min-height: 22px; margin-top: -6px; }\n.ta-run-line > .ta-run-status > .ta-status { margin-left: -3px; }\n/* Under the steps of a turn the line is one more step: its dot under the avatar, folded or open; under the open ones at their pitch, on the string's line. */\n.ta-run-line.ta-run-steps { padding-left: 9px; }\n.ta-thread-item:has(> .ta-message > .ta-process > .ta-process-steps) + .ta-run-steps, .ta-msg-ta:has(> .ta-process > .ta-process-steps) + .ta-run-steps { margin-top: -18px; }\n/* There, a call it runs is already the last step, its dot breathing: the line would say it again. */\n.ta-thread-item:has(> .ta-message > .ta-process > .ta-process-steps) + .ta-run-steps:has(.ta-run-tool), .ta-msg-ta:has(> .ta-process > .ta-process-steps) + .ta-run-steps:has(.ta-run-tool) { display: none; }\n/* What waits for the user is a blue ?, apart from the blue dot that breathes while it works and the amber of something unseen. */\n.ta-status-waiting::before { content: '?'; width: 10px; height: 10px; background: var(--ta-blue); color: #fff; font-size: 8px; font-weight: 700; line-height: 10px; text-align: center; }\n/* On the head of a turn the face of ta already shows that it works. */\n.ta-turn-head .ta-run-status > .ta-status { display: none; }\n.ta-session { container-type: inline-size; }\n.ta-session-header .ta-session-title { min-width: 72px; }\n/* A narrow conversation (a phone, or beside an open editor): one line, the title keeps its room, the path gives way. */\n@container (max-width: 600px) {\n .ta-session-header { flex-wrap: nowrap; gap: 4px; padding-left: 12px; padding-right: 8px; }\n .ta-session-title .ta-path { display: none; }\n}\n/* A message of the user that has pictures: the pictures and the words in one bubble, the pictures first\n and within the bubble's padding. */\n.ta-bubble-media { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 4px; white-space: normal; }\n.ta-bubble-media .ta-bubble-text { align-self: stretch; padding: 2px 10px 5px; white-space: pre-wrap; word-break: break-word; }\n/* Pictures alone: the bubble is what they are, so it has no frame of its own. */\n.ta-bubble-media.ta-bubble-bare, .ta-msg-bubble.ta-bubble-bare { padding: 0; background: transparent; }\n/* One picture keeps its own shape, a few stand as squares of one size: the sizes of a message, not of a page. */\n.ta-user-images { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 4px; max-width: 100%; }\n/* Several: in columns as a gallery of a reply has them (GalleryUtil.columns), four in two rows of two. */\n.ta-user-images:not([data-count='1']) { display: grid; grid-template-columns: repeat(var(--ta-user-image-columns, 3), 80px); }\n.ta-user-image { padding: 0; border: 0; border-radius: 12px; background: transparent; line-height: 0; cursor: zoom-in; overflow: hidden; transition: opacity 120ms; }\n.ta-user-image:active { opacity: 0.8; }\n.ta-user-images .ta-thumb { display: block; width: 80px; height: 80px; object-fit: cover; border-radius: 12px; background: var(--ta-raised); }\n.ta-user-images[data-count='1'] .ta-thumb { width: auto; height: auto; max-width: 220px; max-height: 280px; object-fit: contain; }\n/* An image still on its way (its bytes come once shown, TaShownImage), in its place: of its size when known. */\n.ta-thumb-waiting { background: var(--ta-raised); animation: ta-shimmer-soft 1.6s ease-in-out infinite; }\n.ta-user-images[data-count='1'] .ta-thumb-waiting:not([style]) { width: 160px; height: 120px; }\n.ta-user-image:disabled { cursor: default; opacity: 1; }\n@keyframes ta-shimmer-soft { 50% { opacity: 0.6; } }\n/* Pictures on their own, without a bubble to hold them: at the edge of the message, as a bubble is. */\n.ta-message > .ta-user-images, .ta-msg-user > .ta-user-images { justify-content: flex-end; max-width: 78%; }\n.ta-thumb { display: block; width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--ta-border); background: var(--ta-raised); }\n.ta-process { display: flex; flex-direction: column; }\n.ta-process-head { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 6px; margin-left: -6px; border: 0; border-radius: 8px; background: transparent; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); transition: background 120ms, color 120ms; }\n@media (hover: hover) { .ta-process-head:hover { background: var(--ta-hover); color: var(--ta-secondary); } }\n.ta-process-active .ta-process-head { color: var(--ta-secondary); }\n.ta-process-chevron { transition: transform 150ms var(--ta-ease); }\n.ta-process-head[aria-expanded='true'] .ta-process-chevron { transform: rotate(90deg); }\n.ta-process-failed { color: var(--ta-muted); }\n/* The string of the steps runs under the middle of the avatar (24px wide): 12px in. */\n.ta-process-steps { position: relative; display: flex; flex-direction: column; gap: 2px; margin: 4px 0 4px 12px; padding: 2px 0 2px 13px; }\n/* The string runs from the first bead to the last, not past them. */\n.ta-process-steps::before { content: ''; position: absolute; left: -0.5px; top: calc(2px + 13px * var(--ta-font-scale)); bottom: calc(2px + 13px * var(--ta-font-scale)); width: 1px; background: var(--ta-border-muted); }\n/* The dots of the steps sit on the line, like beads on a string: each in a disc of the page's color that cuts the line. */\n.ta-process-steps .ta-status { position: absolute; left: -6px; border-radius: 50%; background: var(--ta-main); }\n/* A step of words is as high as a step of a tool when it has one line, its dot on the middle of that line: the steps keep one pitch. */\n.ta-step-text { color: var(--ta-secondary); font-size: calc(13.5px * var(--ta-font-scale)); line-height: 1.6; padding: calc(2.2px * var(--ta-font-scale)) 0; }\n.ta-step-text > .ta-status { margin-top: calc(0.8em - 6px); }\n.ta-step-toggle { display: flex; align-items: center; gap: 6px; width: calc(100% + 6px); min-width: 0; min-height: calc(26px * var(--ta-font-scale)); padding: 0 6px; margin-left: -6px; border: 0; border-radius: 6px; transition: background 120ms; background: transparent; text-align: left; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); }\n.ta-step-tag { flex: none; color: var(--ta-text); }\n.ta-step-preview { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-step-chevron { flex: none; transition: transform 150ms var(--ta-ease); }\n.ta-step-toggle[aria-expanded='true'] .ta-step-chevron { transform: rotate(90deg); }\n.ta-step-thinking .ta-thinking-text, .ta-step-summary .ta-thinking-text { color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); padding: 2px 0 4px; }\n.ta-console-box { flex-direction: column; align-items: stretch; gap: 6px; padding: 8px; }\n.ta-console-box.ta-dragging { border-color: var(--ta-border-focus); border-style: dashed; }\n/* The field and its controls: the field's line is 1.55 of its font and 5px above and under it (layout.ts),\n and each control stands centred on its last line, the half of what the line is higher than it under it\n (--ta-control: the height of the control, 30px unless it says). */\n.ta-console-row { display: flex; align-items: flex-end; gap: 6px; --ta-field-font: calc(14px * var(--ta-font-scale)); --ta-field-height: calc(var(--ta-field-font) * 1.55 + 10px); }\n.ta-console-row > :not(textarea) { margin-bottom: max(0px, calc((var(--ta-field-height) - var(--ta-control, 30px)) / 2)); }\n.ta-console-row .ta-attach { width: 30px; height: 30px; }\n/* As high as its button, which the row centres (a block would add the line under it). */\n.ta-plus { position: relative; flex: none; display: flex; }\n.ta-plus-button { border-radius: 50%; background: var(--ta-hover); color: var(--ta-secondary); }\n.ta-plus-button:hover, .ta-plus-button.ta-on { background: var(--ta-hover-strong); color: var(--ta-text); }\n.ta-plus-button svg { transition: transform 150ms var(--ta-ease); }\n.ta-plus-button.ta-on svg { transform: rotate(45deg); }\n.ta-plus-menu { position: absolute; left: -2px; bottom: calc(100% + 10px); z-index: 20; display: flex; flex-direction: column; width: min(340px, calc(100vw - 32px)); padding: 8px 6px 6px; border: 1px solid var(--ta-border); border-radius: 14px; background: var(--ta-side); box-shadow: var(--ta-shadow-pop); animation: ta-plus-in 140ms var(--ta-ease); }\n/* Every entry a tile, a page of four by two at a time (PlusMenuUtil.PAGE), as WeChat's + panel: more of them is another page to swipe to, never a taller menu. */\n.ta-plus-pages { display: flex; flex: none; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }\n.ta-plus-pages::-webkit-scrollbar { display: none; }\n.ta-plus-page { flex: 0 0 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, auto); align-content: start; gap: 4px 2px; scroll-snap-align: start; scroll-snap-stop: always; }\n.ta-plus-tile { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; padding: 6px 0 4px; border: 0; border-radius: 12px; background: none; color: var(--ta-text); font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }\n.ta-plus-tile-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--ta-hover); color: var(--ta-text); transition: background 120ms, color 120ms; }\n.ta-plus-tile-icon svg { width: 22px; height: 22px; stroke-width: 1.6; }\n/* A switch that is on: its icon lit in green. */\n.ta-plus-tile[aria-checked='true'] .ta-plus-tile-icon { background: color-mix(in srgb, var(--ta-green) 16%, transparent); color: var(--ta-green); }\n.ta-plus-tile:active:not(:disabled) .ta-plus-tile-icon { background: var(--ta-hover-strong); }\n@media (hover: hover) { .ta-plus-tile:hover:not(:disabled) .ta-plus-tile-icon { background: var(--ta-hover-strong); } }\n.ta-plus-tile:focus-visible { outline: none; background: var(--ta-hover); }\n.ta-plus-tile:disabled { opacity: 0.45; cursor: default; }\n.ta-plus-tile-label { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-width: 100%; padding: 0 2px; overflow: hidden; color: var(--ta-secondary); font-size: calc(11.5px * var(--ta-font-scale)); line-height: 1.3; text-align: center; text-wrap: balance; overflow-wrap: anywhere; }\n/* A setting or a switch: its label on one line, its value (the model, on or off) under it, quieter. */\n.ta-plus-valued .ta-plus-tile-label { -webkit-line-clamp: 1; }\n.ta-plus-tile-value { max-width: 100%; margin-top: -3px; padding: 0 2px; overflow: hidden; color: var(--ta-muted); font-size: calc(10.5px * var(--ta-font-scale)); line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }\n.ta-plus-dots { display: flex; flex: none; justify-content: center; gap: 2px; padding: 4px 0 0; }\n.ta-plus-dots button { position: relative; width: 16px; height: 12px; padding: 0; border: 0; background: none; cursor: pointer; }\n.ta-plus-dots button::after { content: ''; position: absolute; left: 5px; top: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--ta-hover-strong); transition: background 150ms; }\n.ta-plus-dots button.ta-on::after { background: var(--ta-secondary); }\n/* A list opened in the + menu, as every list to pick from (OptionList): a fixed width, that narrowing it does not change. */\n.ta-plus-list { width: 300px; }\n/*\n * On a phone the panel is under the box, in place of the keyboard, as WeChat's: part of the page, so the box and\n * the conversation rise with it as it unfolds and fall as it folds (the rows of a grid, from none of it to all).\n */\n.ta-plus-dock { display: grid; grid-template-rows: 1fr; animation: ta-plus-unfold 240ms var(--ta-ease) both; }\n.ta-plus-dock.ta-closing { animation: ta-plus-fold 200ms var(--ta-ease) both; }\n.ta-plus-dock-inner { min-height: 0; overflow: hidden; }\n/* One height whatever it shows (a page of tiles, the last page, a list), as the keyboard it stands for: the box does not move as one turns to another. */\n.ta-plus-dock .ta-plus-menu { position: static; box-sizing: border-box; width: auto; max-width: none; height: 240px; padding: 14px 0 0; border: 0; border-radius: 0; background: var(--ta-main); box-shadow: none; animation: none; }\n.ta-plus-dock .ta-plus-page { gap: 10px 2px; }\n.ta-plus-dock .ta-plus-dots { padding-top: 10px; }\n.ta-plus-dock .ta-plus-pages { flex: 1; min-height: 0; }\n/*\n * A list opened in the panel (the models) as the grouped lists of iOS: under a title with its way back, a search\n * on a raised field, the entries on a raised card of rounded corners with hairlines between them, each group's\n * name above its card and sticking on top on the page's color, the one picked checked on the right.\n */\n.ta-plus-dock .ta-plus-list { padding-top: 6px; }\n.ta-plus-dock .ta-plus-back { height: 34px; margin-bottom: 6px; padding: 0 2px; color: var(--ta-text); font-size: calc(15px * var(--ta-font-scale)); }\n.ta-plus-dock .ta-plus-back svg { color: var(--ta-secondary); }\n.ta-plus-dock .ta-pick { display: flex; flex-direction: column; flex: 1; min-height: 0; }\n.ta-plus-dock .ta-pick-search { height: 36px; margin-bottom: 2px; border-radius: 10px; background: var(--ta-raised); }\n.ta-plus-dock .ta-pick-list { flex: 1; min-height: 0; max-height: none; padding-bottom: 10px; }\n.ta-plus-dock .ta-pick-section + .ta-pick-section { margin-top: 0; }\n.ta-plus-dock .ta-pick-group { padding: 12px 14px 6px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); font-weight: 400; }\n.ta-plus-dock .ta-pick-list > .ta-pick-section:first-child > :first-child { margin-top: 8px; }\n.ta-plus-dock .ta-pick-list > .ta-pick-section:first-child > .ta-pick-group { margin-top: 0; padding-top: 6px; }\n.ta-plus-dock .ta-pick-item { min-height: 46px; padding: 0 14px; border-radius: 0; background: var(--ta-raised); }\n.ta-plus-dock .ta-pick-item + .ta-pick-item { box-shadow: inset 14px 0 0 var(--ta-raised), inset 0 0.5px 0 var(--ta-border); }\n.ta-plus-dock .ta-pick-group + .ta-pick-item, .ta-plus-dock .ta-pick-section > .ta-pick-item:first-child { border-top-left-radius: 12px; border-top-right-radius: 12px; }\n.ta-plus-dock .ta-pick-item:last-child { border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; }\n.ta-plus-dock .ta-pick-item[data-active='true']:not(:disabled) { background: var(--ta-raised); }\n.ta-plus-dock .ta-pick-item:active:not(:disabled) { background: var(--ta-hover-strong); }\n.ta-plus-dock .ta-pick-check { color: var(--ta-green); }\n@keyframes ta-plus-unfold { from { grid-template-rows: 0fr; opacity: 0; } }\n@keyframes ta-plus-fold { to { grid-template-rows: 0fr; opacity: 0; } }\n.ta-plus-back { display: flex; align-items: center; gap: 4px; width: 100%; height: 32px; margin-bottom: 4px; padding: 0 6px; border: 0; border-radius: 8px; background: none; color: var(--ta-secondary); font: inherit; font-size: calc(13px * var(--ta-font-scale)); font-weight: 600; cursor: pointer; }\n.ta-plus-back:hover { background: var(--ta-hover); color: var(--ta-text); }\n\n/* OptionList: wherever one of a list is picked (a model, a level), in the + menu or a popover of a field. */\n.ta-pick { display: flex; flex-direction: column; min-height: 0; background: inherit; }\n.ta-pick-search { display: flex; align-items: center; gap: 8px; flex: none; height: 34px; margin-bottom: 4px; padding: 0 10px; border-radius: 9px; background: var(--ta-hover); color: var(--ta-muted); cursor: text; }\n.ta-pick-search:focus-within { color: var(--ta-secondary); }\n.ta-pick-search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: none; color: var(--ta-text); font: inherit; font-size: calc(13px * var(--ta-font-scale)); outline: none; }\n.ta-pick-search input::placeholder { color: var(--ta-muted); }\n.ta-pick-list { position: relative; max-height: min(360px, 56vh); overflow-y: auto; background: inherit; }\n.ta-pick-section { background: inherit; }\n.ta-pick-section + .ta-pick-section { margin-top: 2px; }\n.ta-pick-group { position: sticky; top: 0; z-index: 1; padding: 8px 10px 4px; background: inherit; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); font-weight: 500; }\n.ta-pick-item { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--ta-text); font: inherit; font-size: calc(13.5px * var(--ta-font-scale)); text-align: left; cursor: pointer; }\n.ta-pick-item[data-active='true']:not(:disabled), .ta-pick-item:focus-visible { background: var(--ta-hover); outline: none; }\n.ta-pick-item:disabled { opacity: 0.45; cursor: default; }\n.ta-pick-item[aria-selected='true'] { font-weight: 500; }\n.ta-pick-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 18px; color: var(--ta-secondary); }\n.ta-pick-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-pick-detail { flex: none; max-width: 40%; overflow: hidden; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); text-overflow: ellipsis; white-space: nowrap; }\n.ta-pick-check { flex: none; color: var(--ta-accent); }\n.ta-popover { position: fixed; z-index: 95; padding: 6px; border: 1px solid var(--ta-border); border-radius: 14px; background: var(--ta-side); box-shadow: var(--ta-shadow-pop); animation: ta-plus-in 140ms var(--ta-ease); }\n.ta-model-popover { display: flex; flex-direction: column; }\n.ta-model-popover > .ta-pick, .ta-model-popover .ta-pick-list { flex: 1; min-height: 0; }\n/* The field that opens the list of the models (ModelPicker), as a select of the page. */\n.ta-model-field { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ta-text); text-align: left; cursor: pointer; }\n.ta-model-field > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-model-field > svg { flex: none; color: var(--ta-muted); transition: transform 150ms var(--ta-ease); }\n.ta-model-field.ta-on { border-color: var(--ta-border-focus); }\n.ta-model-field.ta-on > svg { transform: rotate(180deg); }\n.ta-model-field:disabled { cursor: default; opacity: 0.6; }\n.ta-model-field-default { color: var(--ta-secondary); }\n@keyframes ta-plus-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }\n.ta-console-composer textarea { padding: 5px 2px; }\n/* A long placeholder stays on one line, so the empty box keeps its height beside the controls of the +. */\n.ta-console-composer textarea:placeholder-shown { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n.ta-console-composer textarea::placeholder { text-overflow: ellipsis; }\n.ta-send-stop { background: var(--ta-text); color: var(--ta-main); }\n/* Stop pressed, the run not ended yet: a spinner in the colors of the button. */\n.ta-send-stopping { cursor: progress; }\n.ta-send-stopping .ta-spinner { border-color: color-mix(in srgb, var(--ta-main) 35%, transparent); border-top-color: var(--ta-main); }\n.ta-attachments { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 2px 0; }\n.ta-attachment { position: relative; }\n.ta-attachment .ta-thumb { width: 56px; height: 56px; }\n/* An image being read: a shimmer until its thumbnail paints over it, then a veil and a spinner until it can be sent. */\n.ta-attachment-loading .ta-thumb { background: linear-gradient(100deg, var(--ta-raised) 30%, var(--ta-hover) 50%, var(--ta-raised) 70%) 0 0 / 200% 100%; animation: ta-shimmer 1.2s linear infinite; }\n.ta-attachment-spinner { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--ta-main) 55%, transparent); animation: ta-fade 150ms; }\n.ta-attachment img.ta-thumb { animation: ta-fade 150ms; }\n.ta-attachment-remove { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--ta-border); background: var(--ta-raised); color: var(--ta-secondary); padding: 0; }\n.ta-attachment-remove:hover { color: var(--ta-text); }\n.ta-commands { max-height: 280px; overflow-y: auto; }\n.ta-command-label { flex: none; font-family: var(--ta-mono); font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-text); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-commands-note { right: auto; padding: 0; border-color: var(--ta-border-muted); box-shadow: none; }\n.ta-command-note { padding: 5px 10px; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); white-space: nowrap; }\n/* The messages waiting for the agent: a header with their count, then a line for each, its actions on hover. */\n.ta-queue { display: flex; flex-direction: column; margin: 0 14px; padding: 3px 4px; border-radius: 12px 12px 0 0; border: 1px solid var(--ta-border-field); border-bottom: 0; background: var(--ta-side); font-size: calc(13px * var(--ta-font-scale)); color: var(--ta-body); animation: ta-fade 120ms ease-out; }\n.ta-queue-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 4px 0 8px; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); }\n.ta-queue-all { border: 0; background: none; padding: 2px 4px; border-radius: 6px; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); transition: color 120ms, background 120ms; }\n.ta-queue-all:hover { color: var(--ta-text); background: var(--ta-hover); }\n.ta-queue-row { display: flex; align-items: center; gap: 8px; min-width: 0; height: 30px; padding: 0 2px 0 8px; border-radius: 8px; transition: background 120ms; }\n.ta-queue-row:hover { background: var(--ta-hover); }\n.ta-queue-kind { flex: none; display: inline-flex; align-items: center; gap: 4px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.ta-queue-row > .ta-origin { flex: none; max-width: 40%; }\n.ta-queue-row > .ta-origin .ta-origin-detail { display: none; }\n.ta-queue-text { flex: 1; min-width: 0; color: var(--ta-text); }\n.ta-queue-actions { flex: none; display: flex; gap: 2px; opacity: 0; transition: opacity 120ms; }\n.ta-queue-row:hover .ta-queue-actions, .ta-queue-actions:focus-within { opacity: 1; }\n.ta-queue-actions .ta-icon-button { width: 24px; height: 24px; border-radius: 6px; color: var(--ta-muted); }\n.ta-queue-actions .ta-icon-button:hover { background: var(--ta-hover-strong); color: var(--ta-text); }\n@media (hover: none) { .ta-queue-actions { opacity: 1; } }\n.ta-account { position: relative; display: grid; place-items: center; width: 40px; height: 40px; flex: none; }\n.ta-account-button { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; padding: 0; transition: background 150ms; }\n.ta-account-button:hover, .ta-account-button.ta-on { background: var(--ta-hover); }\n.ta-account-figure { flex: none; user-select: none; }\n.ta-account-dot { position: absolute; right: 5px; bottom: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--ta-yellow); box-shadow: 0 0 0 2px var(--ta-side); }\n.ta-account-menu { position: absolute; left: calc(100% + 10px); bottom: 0; z-index: 45; width: 248px; display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: 12px; border: 1px solid var(--ta-border); background: var(--ta-side); box-shadow: var(--ta-shadow-pop); animation: ta-fade 120ms ease-out; }\n.ta-account-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 8px 10px; min-width: 0; border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; text-align: left; transition: background 150ms; }\n.ta-account-head:hover, .ta-account-head:focus-visible { background: var(--ta-hover); }\n.ta-account-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; line-height: 1.35; }\n.ta-account-title { font-size: calc(13.5px * var(--ta-font-scale)); font-weight: 600; color: var(--ta-text); }\n.ta-account-sub { font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-account-service { display: flex; align-items: center; gap: 8px; height: 32px; margin: 0 2px 2px; padding: 0 10px; border-radius: 8px; background: var(--ta-raised); font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-secondary); }\n.ta-account-service-name { flex: 1; min-width: 0; }\n.ta-account-service-state { flex: none; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); font-variant-numeric: tabular-nums; }\n.ta-account-state { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--ta-muted); }\n.ta-account-state.ta-ok { background: var(--ta-green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ta-green) 18%, transparent); }\n.ta-account-state.ta-warn { background: var(--ta-yellow); }\n.ta-account-sep { height: 1px; margin: 4px 2px; background: var(--ta-border-muted); }\n.ta-account-item { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; text-align: left; font-size: calc(13px * var(--ta-font-scale)); color: var(--ta-text); }\n.ta-account-item > svg, .ta-account-item > .ta-icon { flex: none; color: var(--ta-secondary); }\n.ta-account-item:hover { background: var(--ta-hover); }\n.ta-account-item.ta-danger { color: var(--ta-red); }\n@media (max-width: 860px), (max-height: 500px) and (pointer: coarse) {\n .ta-account-menu { left: 0; bottom: calc(100% + 8px); width: min(300px, calc(100vw - 24px)); }\n .ta-message > .ta-user-images, .ta-msg-user > .ta-user-images { max-width: 88%; }\n}\n";
2
+ export declare const CONVERSATION_COLUMN_STYLE = "\n/* The conversation: the avatar's mark, the folded work, the message box, the account */\n.ta-avatar-marked { position: relative; display: inline-block; flex: none; }\n.ta-avatar-marked .ta-avatar { width: 100%; height: 100%; }\n.ta-avatar-mark { position: absolute; right: -6%; bottom: -6%; min-width: 1.6em; height: 1.6em; padding: 0 0.3em; border-radius: 0.8em; display: grid; place-items: center; background: var(--ta-raised); color: var(--ta-text); box-shadow: 0 0 0 1.5px var(--ta-main); font-weight: 600; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }\n.ta-working { color: var(--ta-secondary); font-weight: 400; font-size: calc(12.5px * var(--ta-font-scale)); }\n.ta-turn-head { display: flex; align-items: center; gap: 8px; min-height: 26px; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); }\n.ta-turn-head .ta-process-head { margin-left: 0; }\n/* What ta does, before the first step, where the head of the steps will say how many there are: its words in the same place. */\n.ta-turn-head > .ta-run-status { padding-left: 6px; }\n.ta-run-status { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); line-height: 1.4; }\n.ta-run-phase { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-run-tokens { display: inline-flex; align-items: center; gap: 8px; flex: none; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }\n.ta-run-tokens > span { display: inline-flex; align-items: center; gap: 1px; }\n/* Under the words of a turn its dot starts where they do: the dot is centred in its box, which starts a little before. */\n.ta-run-line { display: flex; min-width: 0; min-height: 22px; margin-top: -6px; }\n.ta-run-line > .ta-run-status > .ta-status { margin-left: -3px; }\n/* Under the steps of a turn the line is one more step: its dot under the avatar, folded or open; under the open ones at their pitch, on the string's line. */\n.ta-run-line.ta-run-steps { padding-left: 9px; }\n.ta-thread-item:has(> .ta-message > .ta-process > .ta-process-steps) + .ta-run-steps, .ta-msg-ta:has(> .ta-process > .ta-process-steps) + .ta-run-steps { margin-top: -18px; }\n/* There, a call it runs is already the last step, its dot breathing: the line would say it again. */\n.ta-thread-item:has(> .ta-message > .ta-process > .ta-process-steps) + .ta-run-steps:has(.ta-run-tool), .ta-msg-ta:has(> .ta-process > .ta-process-steps) + .ta-run-steps:has(.ta-run-tool) { display: none; }\n/* What waits for the user is a blue ?, apart from the blue dot that breathes while it works and the amber of something unseen. */\n.ta-status-waiting::before { content: '?'; width: 10px; height: 10px; background: var(--ta-blue); color: #fff; font-size: 8px; font-weight: 700; line-height: 10px; text-align: center; }\n/* On the head of a turn the face of ta already shows that it works. */\n.ta-turn-head .ta-run-status > .ta-status { display: none; }\n.ta-session { container-type: inline-size; }\n.ta-session-header .ta-session-title { min-width: 72px; }\n/* A narrow conversation (a phone, or beside an open editor): one line, the title keeps its room, the path gives way. */\n@container (max-width: 600px) {\n .ta-session-header { flex-wrap: nowrap; gap: 4px; padding-left: 12px; padding-right: 8px; }\n .ta-session-title .ta-path { display: none; }\n}\n/* A message of the user that has pictures: the pictures and the words in one bubble, the pictures first\n and within the bubble's padding. */\n.ta-bubble-media { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 4px; white-space: normal; }\n.ta-bubble-media .ta-bubble-text { align-self: stretch; padding: 2px 10px 5px; white-space: pre-wrap; word-break: break-word; }\n/* Pictures alone: the bubble is what they are, so it has no frame of its own. */\n.ta-bubble-media.ta-bubble-bare, .ta-msg-bubble.ta-bubble-bare { padding: 0; background: transparent; }\n/* One picture keeps its own shape, a few stand as squares of one size: the sizes of a message, not of a page. */\n.ta-user-images { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 4px; max-width: 100%; }\n/* Several: in columns as a gallery of a reply has them (GalleryUtil.columns), four in two rows of two. */\n.ta-user-images:not([data-count='1']) { display: grid; grid-template-columns: repeat(var(--ta-user-image-columns, 3), 80px); }\n.ta-user-image { padding: 0; border: 0; border-radius: 12px; background: transparent; line-height: 0; cursor: zoom-in; overflow: hidden; transition: opacity 120ms; }\n.ta-user-image:active { opacity: 0.8; }\n.ta-user-images .ta-thumb { display: block; width: 80px; height: 80px; object-fit: cover; border-radius: 12px; background: var(--ta-raised); }\n.ta-user-images[data-count='1'] .ta-thumb { width: auto; height: auto; max-width: 220px; max-height: 280px; object-fit: contain; }\n/* An image still on its way (its bytes come once shown, TaShownImage), in its place: of its size when known. */\n.ta-thumb-waiting { background: var(--ta-raised); animation: ta-shimmer-soft 1.6s ease-in-out infinite; }\n/* A picture of a chat still on its way (ChatImages): its tiny thumbnail, blurred, in its place. */\n.ta-thumb-blurred { display: block; overflow: hidden; background: var(--ta-raised); }\n.ta-thumb-blurred img { display: block; width: 100%; height: 100%; object-fit: cover; filter: blur(8px) saturate(1.1); transform: scale(1.15); }\n.ta-user-images[data-count='1'] .ta-thumb-blurred:not([style]) { width: 160px; height: 120px; }\n.ta-user-images[data-count='1'] .ta-thumb-waiting:not([style]) { width: 160px; height: 120px; }\n.ta-user-image:disabled { cursor: default; opacity: 1; }\n@keyframes ta-shimmer-soft { 50% { opacity: 0.6; } }\n/*\n * Pictures sent together, folded as WeChat folds them (ImageStack): the first in its shape, two peeking from behind it,\n * smaller and dimmer, a pill beside it to unfold them, on the side away from the edge the message keeps to.\n */\n.ta-image-stack { display: flex; align-items: center; justify-content: flex-end; gap: 14px; max-width: 100%; }\n.ta-user-other .ta-image-stack, .trm-msg .ta-image-stack, .tac-msg .ta-image-stack { flex-direction: row-reverse; }\n.ta-stack-cards { position: relative; display: block; margin: 0 18px 4px; padding: 0; border: 0; background: transparent; line-height: 0; cursor: zoom-in; }\n.ta-stack-cards:disabled { cursor: default; }\n.ta-stack-card { display: block; object-fit: cover; border-radius: 12px; background: var(--ta-raised); box-shadow: 0 1px 3px rgb(0 0 0 / 0.12); }\n.ta-stack-front { position: relative; z-index: 2; }\n.ta-stack-left, .ta-stack-right { position: absolute; inset: 0; z-index: 1; filter: brightness(0.82); }\n.ta-stack-left { transform: translateX(-30px) scale(0.86); }\n.ta-stack-right { transform: translateX(30px) scale(0.86); }\n.ta-stack-unfold, .ta-stack-fold { flex: none; padding: 7px 14px; border: 0; border-radius: 999px; background: var(--ta-raised); color: var(--ta-secondary); font: inherit; font-size: calc(13px * var(--ta-font-scale)); line-height: 1.3; cursor: pointer; white-space: nowrap; }\n.ta-stack-unfold:hover, .ta-stack-fold:hover { color: var(--ta-text); }\n.ta-stack-fold { grid-column: 1 / -1; justify-self: end; margin-top: 2px; padding: 4px 12px; font-size: calc(12px * var(--ta-font-scale)); }\n.ta-user-other .ta-stack-fold, .trm-msg .ta-stack-fold, .tac-msg .ta-stack-fold { justify-self: start; }\n/* Pictures on their own, without a bubble to hold them: at the edge of the message, as a bubble is. */\n.ta-message > .ta-user-images, .ta-msg-user > .ta-user-images { justify-content: flex-end; max-width: 78%; }\n.ta-thumb { display: block; width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--ta-border); background: var(--ta-raised); }\n.ta-process { display: flex; flex-direction: column; }\n.ta-process-head { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 6px; margin-left: -6px; border: 0; border-radius: 8px; background: transparent; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); transition: background 120ms, color 120ms; }\n@media (hover: hover) { .ta-process-head:hover { background: var(--ta-hover); color: var(--ta-secondary); } }\n.ta-process-active .ta-process-head { color: var(--ta-secondary); }\n.ta-process-chevron { transition: transform 150ms var(--ta-ease); }\n.ta-process-head[aria-expanded='true'] .ta-process-chevron { transform: rotate(90deg); }\n.ta-process-failed { color: var(--ta-muted); }\n/* The string of the steps runs under the middle of the avatar (24px wide): 12px in. */\n.ta-process-steps { position: relative; display: flex; flex-direction: column; gap: 2px; margin: 4px 0 4px 12px; padding: 2px 0 2px 13px; }\n/* The string runs from the first bead to the last, not past them. */\n.ta-process-steps::before { content: ''; position: absolute; left: -0.5px; top: calc(2px + 13px * var(--ta-font-scale)); bottom: calc(2px + 13px * var(--ta-font-scale)); width: 1px; background: var(--ta-border-muted); }\n/* The dots of the steps sit on the line, like beads on a string: each in a disc of the page's color that cuts the line. */\n.ta-process-steps .ta-status { position: absolute; left: -6px; border-radius: 50%; background: var(--ta-main); }\n/* A step of words is as high as a step of a tool when it has one line, its dot on the middle of that line: the steps keep one pitch. */\n.ta-step-text { color: var(--ta-secondary); font-size: calc(13.5px * var(--ta-font-scale)); line-height: 1.6; padding: calc(2.2px * var(--ta-font-scale)) 0; }\n.ta-step-text > .ta-status { margin-top: calc(0.8em - 6px); }\n.ta-step-toggle { display: flex; align-items: center; gap: 6px; width: calc(100% + 6px); min-width: 0; min-height: calc(26px * var(--ta-font-scale)); padding: 0 6px; margin-left: -6px; border: 0; border-radius: 6px; transition: background 120ms; background: transparent; text-align: left; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); }\n.ta-step-tag { flex: none; color: var(--ta-text); }\n.ta-step-preview { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-step-chevron { flex: none; transition: transform 150ms var(--ta-ease); }\n.ta-step-toggle[aria-expanded='true'] .ta-step-chevron { transform: rotate(90deg); }\n.ta-step-thinking .ta-thinking-text, .ta-step-summary .ta-thinking-text { color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); padding: 2px 0 4px; }\n.ta-console-box { flex-direction: column; align-items: stretch; gap: 6px; padding: 8px; }\n.ta-console-box.ta-dragging { border-color: var(--ta-border-focus); border-style: dashed; }\n/* The field and its controls: the field's line is 1.55 of its font and 5px above and under it (layout.ts),\n and each control stands centred on its last line, the half of what the line is higher than it under it\n (--ta-control: the height of the control, 30px unless it says). */\n.ta-console-row { display: flex; align-items: flex-end; gap: 6px; --ta-field-font: calc(14px * var(--ta-font-scale)); --ta-field-height: calc(var(--ta-field-font) * 1.55 + 10px); }\n.ta-console-row > :not(textarea) { margin-bottom: max(0px, calc((var(--ta-field-height) - var(--ta-control, 30px)) / 2)); }\n.ta-console-row .ta-attach { width: 30px; height: 30px; }\n/* As high as its button, which the row centres (a block would add the line under it). */\n.ta-plus { position: relative; flex: none; display: flex; }\n.ta-plus-button { border-radius: 50%; background: var(--ta-hover); color: var(--ta-secondary); }\n.ta-plus-button:hover, .ta-plus-button.ta-on { background: var(--ta-hover-strong); color: var(--ta-text); }\n.ta-plus-button svg { transition: transform 150ms var(--ta-ease); }\n.ta-plus-button.ta-on svg { transform: rotate(45deg); }\n.ta-plus-menu { position: absolute; left: -2px; bottom: calc(100% + 10px); z-index: 20; display: flex; flex-direction: column; width: min(340px, calc(100vw - 32px)); padding: 8px 6px 6px; border: 1px solid var(--ta-border); border-radius: 14px; background: var(--ta-side); box-shadow: var(--ta-shadow-pop); animation: ta-plus-in 140ms var(--ta-ease); }\n/* Every entry a tile, a page of four by two at a time (PlusMenuUtil.PAGE), as WeChat's + panel: more of them is another page to swipe to, never a taller menu. */\n.ta-plus-pages { display: flex; flex: none; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }\n.ta-plus-pages::-webkit-scrollbar { display: none; }\n.ta-plus-page { flex: 0 0 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, auto); align-content: start; gap: 4px 2px; scroll-snap-align: start; scroll-snap-stop: always; }\n.ta-plus-tile { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; padding: 6px 0 4px; border: 0; border-radius: 12px; background: none; color: var(--ta-text); font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }\n.ta-plus-tile-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--ta-hover); color: var(--ta-text); transition: background 120ms, color 120ms; }\n.ta-plus-tile-icon svg { width: 22px; height: 22px; stroke-width: 1.6; }\n/* A switch that is on: its icon lit in green. */\n.ta-plus-tile[aria-checked='true'] .ta-plus-tile-icon { background: color-mix(in srgb, var(--ta-green) 16%, transparent); color: var(--ta-green); }\n.ta-plus-tile:active:not(:disabled) .ta-plus-tile-icon { background: var(--ta-hover-strong); }\n@media (hover: hover) { .ta-plus-tile:hover:not(:disabled) .ta-plus-tile-icon { background: var(--ta-hover-strong); } }\n.ta-plus-tile:focus-visible { outline: none; background: var(--ta-hover); }\n.ta-plus-tile:disabled { opacity: 0.45; cursor: default; }\n.ta-plus-tile-label { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-width: 100%; padding: 0 2px; overflow: hidden; color: var(--ta-secondary); font-size: calc(11.5px * var(--ta-font-scale)); line-height: 1.3; text-align: center; text-wrap: balance; overflow-wrap: anywhere; }\n/* A setting or a switch: its label on one line, its value (the model, on or off) under it, quieter. */\n.ta-plus-valued .ta-plus-tile-label { -webkit-line-clamp: 1; }\n.ta-plus-tile-value { max-width: 100%; margin-top: -3px; padding: 0 2px; overflow: hidden; color: var(--ta-muted); font-size: calc(10.5px * var(--ta-font-scale)); line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }\n.ta-plus-dots { display: flex; flex: none; justify-content: center; gap: 2px; padding: 4px 0 0; }\n.ta-plus-dots button { position: relative; width: 16px; height: 12px; padding: 0; border: 0; background: none; cursor: pointer; }\n.ta-plus-dots button::after { content: ''; position: absolute; left: 5px; top: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--ta-hover-strong); transition: background 150ms; }\n.ta-plus-dots button.ta-on::after { background: var(--ta-secondary); }\n/* A list opened in the + menu, as every list to pick from (OptionList): a fixed width, that narrowing it does not change. */\n.ta-plus-list { width: 300px; }\n/*\n * On a phone the panel is under the box, in place of the keyboard, as WeChat's: part of the page, so the box and\n * the conversation rise with it as it unfolds and fall as it folds (the rows of a grid, from none of it to all).\n */\n.ta-plus-dock { display: grid; grid-template-rows: 1fr; animation: ta-plus-unfold 240ms var(--ta-ease) both; }\n.ta-plus-dock.ta-closing { animation: ta-plus-fold 200ms var(--ta-ease) both; }\n.ta-plus-dock-inner { min-height: 0; overflow: hidden; }\n/* One height whatever it shows (a page of tiles, the last page, a list), as the keyboard it stands for: the box does not move as one turns to another. */\n.ta-plus-dock .ta-plus-menu { position: static; box-sizing: border-box; width: auto; max-width: none; height: 240px; padding: 14px 0 0; border: 0; border-radius: 0; background: var(--ta-main); box-shadow: none; animation: none; }\n.ta-plus-dock .ta-plus-page { gap: 10px 2px; }\n.ta-plus-dock .ta-plus-dots { padding-top: 10px; }\n.ta-plus-dock .ta-plus-pages { flex: 1; min-height: 0; }\n/*\n * A list opened in the panel (the models) as the grouped lists of iOS: under a title with its way back, a search\n * on a raised field, the entries on a raised card of rounded corners with hairlines between them, each group's\n * name above its card and sticking on top on the page's color, the one picked checked on the right.\n */\n.ta-plus-dock .ta-plus-list { padding-top: 6px; }\n.ta-plus-dock .ta-plus-back { height: 34px; margin-bottom: 6px; padding: 0 2px; color: var(--ta-text); font-size: calc(15px * var(--ta-font-scale)); }\n.ta-plus-dock .ta-plus-back svg { color: var(--ta-secondary); }\n.ta-plus-dock .ta-pick { display: flex; flex-direction: column; flex: 1; min-height: 0; }\n.ta-plus-dock .ta-pick-search { height: 36px; margin-bottom: 2px; border-radius: 10px; background: var(--ta-raised); }\n.ta-plus-dock .ta-pick-list { flex: 1; min-height: 0; max-height: none; padding-bottom: 10px; }\n.ta-plus-dock .ta-pick-section + .ta-pick-section { margin-top: 0; }\n.ta-plus-dock .ta-pick-group { padding: 12px 14px 6px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); font-weight: 400; }\n.ta-plus-dock .ta-pick-list > .ta-pick-section:first-child > :first-child { margin-top: 8px; }\n.ta-plus-dock .ta-pick-list > .ta-pick-section:first-child > .ta-pick-group { margin-top: 0; padding-top: 6px; }\n.ta-plus-dock .ta-pick-item { min-height: 46px; padding: 0 14px; border-radius: 0; background: var(--ta-raised); }\n.ta-plus-dock .ta-pick-item + .ta-pick-item { box-shadow: inset 14px 0 0 var(--ta-raised), inset 0 0.5px 0 var(--ta-border); }\n.ta-plus-dock .ta-pick-group + .ta-pick-item, .ta-plus-dock .ta-pick-section > .ta-pick-item:first-child { border-top-left-radius: 12px; border-top-right-radius: 12px; }\n.ta-plus-dock .ta-pick-item:last-child { border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; }\n.ta-plus-dock .ta-pick-item[data-active='true']:not(:disabled) { background: var(--ta-raised); }\n.ta-plus-dock .ta-pick-item:active:not(:disabled) { background: var(--ta-hover-strong); }\n.ta-plus-dock .ta-pick-check { color: var(--ta-green); }\n@keyframes ta-plus-unfold { from { grid-template-rows: 0fr; opacity: 0; } }\n@keyframes ta-plus-fold { to { grid-template-rows: 0fr; opacity: 0; } }\n.ta-plus-back { display: flex; align-items: center; gap: 4px; width: 100%; height: 32px; margin-bottom: 4px; padding: 0 6px; border: 0; border-radius: 8px; background: none; color: var(--ta-secondary); font: inherit; font-size: calc(13px * var(--ta-font-scale)); font-weight: 600; cursor: pointer; }\n.ta-plus-back:hover { background: var(--ta-hover); color: var(--ta-text); }\n\n/* OptionList: wherever one of a list is picked (a model, a level), in the + menu or a popover of a field. */\n.ta-pick { display: flex; flex-direction: column; min-height: 0; background: inherit; }\n.ta-pick-search { display: flex; align-items: center; gap: 8px; flex: none; height: 34px; margin-bottom: 4px; padding: 0 10px; border-radius: 9px; background: var(--ta-hover); color: var(--ta-muted); cursor: text; }\n.ta-pick-search:focus-within { color: var(--ta-secondary); }\n.ta-pick-search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: none; color: var(--ta-text); font: inherit; font-size: calc(13px * var(--ta-font-scale)); outline: none; }\n.ta-pick-search input::placeholder { color: var(--ta-muted); }\n.ta-pick-list { position: relative; max-height: min(360px, 56vh); overflow-y: auto; background: inherit; }\n.ta-pick-section { background: inherit; }\n.ta-pick-section + .ta-pick-section { margin-top: 2px; }\n.ta-pick-group { position: sticky; top: 0; z-index: 1; padding: 8px 10px 4px; background: inherit; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); font-weight: 500; }\n.ta-pick-item { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--ta-text); font: inherit; font-size: calc(13.5px * var(--ta-font-scale)); text-align: left; cursor: pointer; }\n.ta-pick-item[data-active='true']:not(:disabled), .ta-pick-item:focus-visible { background: var(--ta-hover); outline: none; }\n.ta-pick-item:disabled { opacity: 0.45; cursor: default; }\n.ta-pick-item[aria-selected='true'] { font-weight: 500; }\n.ta-pick-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 18px; color: var(--ta-secondary); }\n.ta-pick-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-pick-detail { flex: none; max-width: 40%; overflow: hidden; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); text-overflow: ellipsis; white-space: nowrap; }\n.ta-pick-check { flex: none; color: var(--ta-accent); }\n.ta-popover { position: fixed; z-index: 95; padding: 6px; border: 1px solid var(--ta-border); border-radius: 14px; background: var(--ta-side); box-shadow: var(--ta-shadow-pop); animation: ta-plus-in 140ms var(--ta-ease); }\n.ta-model-popover { display: flex; flex-direction: column; }\n.ta-model-popover > .ta-pick, .ta-model-popover .ta-pick-list { flex: 1; min-height: 0; }\n/* The field that opens the list of the models (ModelPicker), as a select of the page. */\n.ta-model-field { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ta-text); text-align: left; cursor: pointer; }\n.ta-model-field > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-model-field > svg { flex: none; color: var(--ta-muted); transition: transform 150ms var(--ta-ease); }\n.ta-model-field.ta-on { border-color: var(--ta-border-focus); }\n.ta-model-field.ta-on > svg { transform: rotate(180deg); }\n.ta-model-field:disabled { cursor: default; opacity: 0.6; }\n.ta-model-field-default { color: var(--ta-secondary); }\n@keyframes ta-plus-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }\n.ta-console-composer textarea { padding: 5px 2px; }\n/* A long placeholder stays on one line, so the empty box keeps its height beside the controls of the +. */\n.ta-console-composer textarea:placeholder-shown { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n.ta-console-composer textarea::placeholder { text-overflow: ellipsis; }\n.ta-send-stop { background: var(--ta-text); color: var(--ta-main); }\n/* Stop pressed, the run not ended yet: a spinner in the colors of the button. */\n.ta-send-stopping { cursor: progress; }\n.ta-send-stopping .ta-spinner { border-color: color-mix(in srgb, var(--ta-main) 35%, transparent); border-top-color: var(--ta-main); }\n.ta-attachments { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 2px 0; }\n.ta-attachment { position: relative; }\n.ta-attachment .ta-thumb { width: 56px; height: 56px; }\n/* An image being read: a shimmer until its thumbnail paints over it, then a veil and a spinner until it can be sent. */\n.ta-attachment-loading .ta-thumb { background: linear-gradient(100deg, var(--ta-raised) 30%, var(--ta-hover) 50%, var(--ta-raised) 70%) 0 0 / 200% 100%; animation: ta-shimmer 1.2s linear infinite; }\n.ta-attachment-spinner { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--ta-main) 55%, transparent); animation: ta-fade 150ms; }\n.ta-attachment img.ta-thumb { animation: ta-fade 150ms; }\n.ta-attachment-remove { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--ta-border); background: var(--ta-raised); color: var(--ta-secondary); padding: 0; }\n.ta-attachment-remove:hover { color: var(--ta-text); }\n.ta-commands { max-height: 280px; overflow-y: auto; }\n.ta-command-label { flex: none; font-family: var(--ta-mono); font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-text); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-commands-note { right: auto; padding: 0; border-color: var(--ta-border-muted); box-shadow: none; }\n.ta-command-note { padding: 5px 10px; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); white-space: nowrap; }\n/* The messages waiting for the agent: a header with their count, then a line for each, its actions on hover. */\n.ta-queue { display: flex; flex-direction: column; margin: 0 14px; padding: 3px 4px; border-radius: 12px 12px 0 0; border: 1px solid var(--ta-border-field); border-bottom: 0; background: var(--ta-side); font-size: calc(13px * var(--ta-font-scale)); color: var(--ta-body); animation: ta-fade 120ms ease-out; }\n.ta-queue-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 4px 0 8px; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); }\n.ta-queue-all { border: 0; background: none; padding: 2px 4px; border-radius: 6px; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); transition: color 120ms, background 120ms; }\n.ta-queue-all:hover { color: var(--ta-text); background: var(--ta-hover); }\n.ta-queue-row { display: flex; align-items: center; gap: 8px; min-width: 0; height: 30px; padding: 0 2px 0 8px; border-radius: 8px; transition: background 120ms; }\n.ta-queue-row:hover { background: var(--ta-hover); }\n.ta-queue-kind { flex: none; display: inline-flex; align-items: center; gap: 4px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.ta-queue-row > .ta-origin { flex: none; max-width: 40%; }\n.ta-queue-row > .ta-origin .ta-origin-detail { display: none; }\n.ta-queue-text { flex: 1; min-width: 0; color: var(--ta-text); }\n.ta-queue-actions { flex: none; display: flex; gap: 2px; opacity: 0; transition: opacity 120ms; }\n.ta-queue-row:hover .ta-queue-actions, .ta-queue-actions:focus-within { opacity: 1; }\n.ta-queue-actions .ta-icon-button { width: 24px; height: 24px; border-radius: 6px; color: var(--ta-muted); }\n.ta-queue-actions .ta-icon-button:hover { background: var(--ta-hover-strong); color: var(--ta-text); }\n@media (hover: none) { .ta-queue-actions { opacity: 1; } }\n.ta-account { position: relative; display: grid; place-items: center; width: 40px; height: 40px; flex: none; }\n.ta-account-button { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; padding: 0; transition: background 150ms; }\n.ta-account-button:hover, .ta-account-button.ta-on { background: var(--ta-hover); }\n.ta-account-figure { flex: none; user-select: none; }\n.ta-account-dot { position: absolute; right: 5px; bottom: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--ta-yellow); box-shadow: 0 0 0 2px var(--ta-side); }\n.ta-account-menu { position: absolute; left: calc(100% + 10px); bottom: 0; z-index: 45; width: 248px; display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: 12px; border: 1px solid var(--ta-border); background: var(--ta-side); box-shadow: var(--ta-shadow-pop); animation: ta-fade 120ms ease-out; }\n.ta-account-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 8px 10px; min-width: 0; border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; text-align: left; transition: background 150ms; }\n.ta-account-head:hover, .ta-account-head:focus-visible { background: var(--ta-hover); }\n.ta-account-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; line-height: 1.35; }\n.ta-account-title { font-size: calc(13.5px * var(--ta-font-scale)); font-weight: 600; color: var(--ta-text); }\n.ta-account-sub { font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-account-service { display: flex; align-items: center; gap: 8px; height: 32px; margin: 0 2px 2px; padding: 0 10px; border-radius: 8px; background: var(--ta-raised); font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-secondary); }\n.ta-account-service-name { flex: 1; min-width: 0; }\n.ta-account-service-state { flex: none; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); font-variant-numeric: tabular-nums; }\n.ta-account-state { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--ta-muted); }\n.ta-account-state.ta-ok { background: var(--ta-green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ta-green) 18%, transparent); }\n.ta-account-state.ta-warn { background: var(--ta-yellow); }\n.ta-account-sep { height: 1px; margin: 4px 2px; background: var(--ta-border-muted); }\n.ta-account-item { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; text-align: left; font-size: calc(13px * var(--ta-font-scale)); color: var(--ta-text); }\n.ta-account-item > svg, .ta-account-item > .ta-icon { flex: none; color: var(--ta-secondary); }\n.ta-account-item:hover { background: var(--ta-hover); }\n.ta-account-item.ta-danger { color: var(--ta-red); }\n@media (max-width: 860px), (max-height: 500px) and (pointer: coarse) {\n .ta-account-menu { left: 0; bottom: calc(100% + 8px); width: min(300px, calc(100vw - 24px)); }\n .ta-message > .ta-user-images, .ta-msg-user > .ta-user-images { max-width: 88%; }\n}\n";
@@ -49,9 +49,30 @@ export const CONVERSATION_COLUMN_STYLE = `
49
49
  .ta-user-images[data-count='1'] .ta-thumb { width: auto; height: auto; max-width: 220px; max-height: 280px; object-fit: contain; }
50
50
  /* An image still on its way (its bytes come once shown, TaShownImage), in its place: of its size when known. */
51
51
  .ta-thumb-waiting { background: var(--ta-raised); animation: ta-shimmer-soft 1.6s ease-in-out infinite; }
52
+ /* A picture of a chat still on its way (ChatImages): its tiny thumbnail, blurred, in its place. */
53
+ .ta-thumb-blurred { display: block; overflow: hidden; background: var(--ta-raised); }
54
+ .ta-thumb-blurred img { display: block; width: 100%; height: 100%; object-fit: cover; filter: blur(8px) saturate(1.1); transform: scale(1.15); }
55
+ .ta-user-images[data-count='1'] .ta-thumb-blurred:not([style]) { width: 160px; height: 120px; }
52
56
  .ta-user-images[data-count='1'] .ta-thumb-waiting:not([style]) { width: 160px; height: 120px; }
53
57
  .ta-user-image:disabled { cursor: default; opacity: 1; }
54
58
  @keyframes ta-shimmer-soft { 50% { opacity: 0.6; } }
59
+ /*
60
+ * Pictures sent together, folded as WeChat folds them (ImageStack): the first in its shape, two peeking from behind it,
61
+ * smaller and dimmer, a pill beside it to unfold them, on the side away from the edge the message keeps to.
62
+ */
63
+ .ta-image-stack { display: flex; align-items: center; justify-content: flex-end; gap: 14px; max-width: 100%; }
64
+ .ta-user-other .ta-image-stack, .trm-msg .ta-image-stack, .tac-msg .ta-image-stack { flex-direction: row-reverse; }
65
+ .ta-stack-cards { position: relative; display: block; margin: 0 18px 4px; padding: 0; border: 0; background: transparent; line-height: 0; cursor: zoom-in; }
66
+ .ta-stack-cards:disabled { cursor: default; }
67
+ .ta-stack-card { display: block; object-fit: cover; border-radius: 12px; background: var(--ta-raised); box-shadow: 0 1px 3px rgb(0 0 0 / 0.12); }
68
+ .ta-stack-front { position: relative; z-index: 2; }
69
+ .ta-stack-left, .ta-stack-right { position: absolute; inset: 0; z-index: 1; filter: brightness(0.82); }
70
+ .ta-stack-left { transform: translateX(-30px) scale(0.86); }
71
+ .ta-stack-right { transform: translateX(30px) scale(0.86); }
72
+ .ta-stack-unfold, .ta-stack-fold { flex: none; padding: 7px 14px; border: 0; border-radius: 999px; background: var(--ta-raised); color: var(--ta-secondary); font: inherit; font-size: calc(13px * var(--ta-font-scale)); line-height: 1.3; cursor: pointer; white-space: nowrap; }
73
+ .ta-stack-unfold:hover, .ta-stack-fold:hover { color: var(--ta-text); }
74
+ .ta-stack-fold { grid-column: 1 / -1; justify-self: end; margin-top: 2px; padding: 4px 12px; font-size: calc(12px * var(--ta-font-scale)); }
75
+ .ta-user-other .ta-stack-fold, .trm-msg .ta-stack-fold, .tac-msg .ta-stack-fold { justify-self: start; }
55
76
  /* Pictures on their own, without a bubble to hold them: at the edge of the message, as a bubble is. */
56
77
  .ta-message > .ta-user-images, .ta-msg-user > .ta-user-images { justify-content: flex-end; max-width: 78%; }
57
78
  .ta-thumb { display: block; width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--ta-border); background: var(--ta-raised); }