yc-agent-ui 1.2.1 → 1.2.3

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 (138) hide show
  1. package/README.md +26 -5
  2. package/es/components/chart/src/chart-card.vue.d.ts +56 -10
  3. package/es/components/chart/src/chart-container.vue.d.ts +11 -1
  4. package/es/components/chart/src/theme.d.ts +1 -1
  5. package/es/components/dialog/index.d.ts +6 -6
  6. package/es/components/dialog/src/index.vue.d.ts +2 -2
  7. package/es/components/dialog-form/index.d.ts +6 -6
  8. package/es/components/dialog-form/src/index.vue.d.ts +6 -6
  9. package/es/components/display-item/index.d.ts +21 -21
  10. package/es/components/display-item/src/index.vue.d.ts +19 -19
  11. package/es/components/drawer-form/index.d.ts +18 -18
  12. package/es/components/drawer-form/src/index.vue.d.ts +10 -10
  13. package/es/components/form/index.d.ts +12 -12
  14. package/es/components/form/src/form-content.vue.d.ts +12 -12
  15. package/es/components/form/src/index.vue.d.ts +12 -12
  16. package/es/components/form-item/index.d.ts +12 -12
  17. package/es/components/form-item/src/index.vue.d.ts +10 -10
  18. package/es/components/page/index.d.ts +258 -258
  19. package/es/components/page/src/index.vue.d.ts +90 -90
  20. package/es/components/render/index.d.ts +1 -1
  21. package/es/components/render/src/index.vue.d.ts +1 -1
  22. package/es/components/search/index.d.ts +78 -78
  23. package/es/components/search/src/index.vue.d.ts +30 -30
  24. package/es/components/table/src/table-column.vue.d.ts +46 -46
  25. package/es/components/yc-ai-chat/index.d.ts +1 -0
  26. package/es/components/yc-ai-chat/src/bubble.vue.d.ts +1 -0
  27. package/es/components/yc-ai-chat/src/select.vue.d.ts +1 -0
  28. package/es/components/yc-ai-chat/src/sidebar.vue.d.ts +29 -2
  29. package/es/components/yc-ai-chat/src/studio.vue.d.ts +9 -0
  30. package/es/components/yc-ai-chat/src/type.d.ts +2 -0
  31. package/es/components/yc-plus-page/src/index.vue.d.ts +264 -264
  32. package/es/components/yc-select-v2/src/index.vue.d.ts +1 -1
  33. package/es/hooks/usePlusFormReset.d.ts +144 -144
  34. package/es/index.css +8 -8
  35. package/es/index.mjs +1 -0
  36. package/es/packages/components/chart/src/chart-card2.vue.mjs +9 -2
  37. package/es/packages/components/chart/src/chart-container2.vue.mjs +13 -1
  38. package/es/packages/components/chart/src/theme.mjs +18 -10
  39. package/es/packages/components/data-table/capability.mjs +1 -1
  40. package/es/packages/components/index.mjs +1 -0
  41. package/es/packages/components/yc-ai-chat/index.mjs +1 -0
  42. package/es/packages/components/yc-ai-chat/src/bubble2.vue.mjs +21 -13
  43. package/es/packages/components/yc-ai-chat/src/select2.vue.mjs +9 -4
  44. package/es/packages/components/yc-ai-chat/src/sender2.vue.mjs +5 -3
  45. package/es/packages/components/yc-ai-chat/src/sidebar2.vue.mjs +735 -150
  46. package/es/packages/components/yc-ai-chat/src/studio2.vue.mjs +452 -85
  47. package/es/packages/components/yc-gradient-card/capability.mjs +8 -8
  48. package/es/packages/components/yc-input/src/stepper-input2.vue.mjs +48 -24
  49. package/es/packages/registry/types.mjs +1 -1
  50. package/es/registry/types.d.ts +1 -1
  51. package/es/version.d.ts +1 -1
  52. package/es/version.mjs +1 -1
  53. package/index.css +1 -1
  54. package/index.js +5707 -1690
  55. package/index.min.js +41 -38
  56. package/index.min.mjs +38 -35
  57. package/index.mjs +5772 -1765
  58. package/lib/components/chart/src/chart-card.vue.d.ts +56 -10
  59. package/lib/components/chart/src/chart-container.vue.d.ts +11 -1
  60. package/lib/components/chart/src/theme.d.ts +1 -1
  61. package/lib/components/dialog/index.d.ts +6 -6
  62. package/lib/components/dialog/src/index.vue.d.ts +2 -2
  63. package/lib/components/dialog-form/index.d.ts +6 -6
  64. package/lib/components/dialog-form/src/index.vue.d.ts +6 -6
  65. package/lib/components/display-item/index.d.ts +21 -21
  66. package/lib/components/display-item/src/index.vue.d.ts +19 -19
  67. package/lib/components/drawer-form/index.d.ts +18 -18
  68. package/lib/components/drawer-form/src/index.vue.d.ts +10 -10
  69. package/lib/components/form/index.d.ts +12 -12
  70. package/lib/components/form/src/form-content.vue.d.ts +12 -12
  71. package/lib/components/form/src/index.vue.d.ts +12 -12
  72. package/lib/components/form-item/index.d.ts +12 -12
  73. package/lib/components/form-item/src/index.vue.d.ts +10 -10
  74. package/lib/components/page/index.d.ts +258 -258
  75. package/lib/components/page/src/index.vue.d.ts +90 -90
  76. package/lib/components/render/index.d.ts +1 -1
  77. package/lib/components/render/src/index.vue.d.ts +1 -1
  78. package/lib/components/search/index.d.ts +78 -78
  79. package/lib/components/search/src/index.vue.d.ts +30 -30
  80. package/lib/components/table/src/table-column.vue.d.ts +46 -46
  81. package/lib/components/yc-ai-chat/index.d.ts +1 -0
  82. package/lib/components/yc-ai-chat/src/bubble.vue.d.ts +1 -0
  83. package/lib/components/yc-ai-chat/src/select.vue.d.ts +1 -0
  84. package/lib/components/yc-ai-chat/src/sidebar.vue.d.ts +29 -2
  85. package/lib/components/yc-ai-chat/src/studio.vue.d.ts +9 -0
  86. package/lib/components/yc-ai-chat/src/type.d.ts +2 -0
  87. package/lib/components/yc-plus-page/src/index.vue.d.ts +264 -264
  88. package/lib/components/yc-select-v2/src/index.vue.d.ts +1 -1
  89. package/lib/hooks/usePlusFormReset.d.ts +144 -144
  90. package/lib/index.css +12 -12
  91. package/lib/index.js +41 -0
  92. package/lib/packages/components/chart/src/chart-card2.vue.js +9 -2
  93. package/lib/packages/components/chart/src/chart-container2.vue.js +13 -1
  94. package/lib/packages/components/chart/src/theme.js +18 -10
  95. package/lib/packages/components/data-table/capability.js +1 -1
  96. package/lib/packages/components/index.js +41 -0
  97. package/lib/packages/components/yc-ai-chat/index.js +41 -0
  98. package/lib/packages/components/yc-ai-chat/src/bubble2.vue.js +21 -13
  99. package/lib/packages/components/yc-ai-chat/src/select2.vue.js +9 -4
  100. package/lib/packages/components/yc-ai-chat/src/sender2.vue.js +5 -3
  101. package/lib/packages/components/yc-ai-chat/src/sidebar2.vue.js +734 -149
  102. package/lib/packages/components/yc-ai-chat/src/studio2.vue.js +451 -84
  103. package/lib/packages/components/yc-gradient-card/capability.js +8 -8
  104. package/lib/packages/components/yc-input/src/stepper-input2.vue.js +47 -23
  105. package/lib/packages/registry/types.js +1 -1
  106. package/lib/registry/types.d.ts +1 -1
  107. package/lib/version.d.ts +1 -1
  108. package/lib/version.js +1 -1
  109. package/locale/en.js +1 -1
  110. package/locale/en.min.js +1 -1
  111. package/locale/en.min.mjs +1 -1
  112. package/locale/en.mjs +1 -1
  113. package/locale/ja.js +1 -1
  114. package/locale/ja.min.js +1 -1
  115. package/locale/ja.min.mjs +1 -1
  116. package/locale/ja.mjs +1 -1
  117. package/locale/ko.js +1 -1
  118. package/locale/ko.min.js +1 -1
  119. package/locale/ko.min.mjs +1 -1
  120. package/locale/ko.mjs +1 -1
  121. package/locale/zh-cn.js +1 -1
  122. package/locale/zh-cn.min.js +1 -1
  123. package/locale/zh-cn.min.mjs +1 -1
  124. package/locale/zh-cn.mjs +1 -1
  125. package/locale/zh-tw.js +1 -1
  126. package/locale/zh-tw.min.js +1 -1
  127. package/locale/zh-tw.min.mjs +1 -1
  128. package/locale/zh-tw.mjs +1 -1
  129. package/package.json +1 -1
  130. package/theme-chalk/index.css +1 -1
  131. package/theme-chalk/plus-search.css +1 -1
  132. package/theme-chalk/plus-yc-ai-chat.css +1 -1
  133. package/theme-chalk/plus-yc-data-table.css +1 -1
  134. package/theme-chalk/plus-yc-property-table.css +1 -1
  135. package/theme-chalk/src/search.scss +93 -3
  136. package/theme-chalk/src/yc-ai-chat.scss +1281 -114
  137. package/theme-chalk/src/yc-data-table.scss +57 -42
  138. package/theme-chalk/src/yc-property-table.scss +35 -14
@@ -1,5 +1,4 @@
1
- import { defineComponent, ref, computed, openBlock, createElementBlock, createElementVNode, toDisplayString, withDirectives, vModelText, createCommentVNode, createBlock, unref, createSlots, withCtx, normalizeClass, withModifiers } from 'vue';
2
- import { Conversations } from 'vue-element-plus-x';
1
+ import { defineComponent, ref, computed, watch, onBeforeUnmount, openBlock, createElementBlock, createElementVNode, renderSlot, toDisplayString, withDirectives, vModelText, createCommentVNode, Fragment, renderList, normalizeClass, withModifiers, createBlock, Teleport, createVNode, Transition, withCtx, normalizeStyle, nextTick } from 'vue';
3
2
  import { formatChatSessionTime, groupChatSessionByDate } from './presets.mjs';
4
3
 
5
4
  const _hoisted_1 = {
@@ -8,34 +7,80 @@ const _hoisted_1 = {
8
7
  };
9
8
  const _hoisted_2 = { class: "yc-chat-sidebar__header rail-header" };
10
9
  const _hoisted_3 = ["disabled"];
11
- const _hoisted_4 = {
10
+ const _hoisted_4 = { class: "yc-chat-sidebar__create-icon" };
11
+ const _hoisted_5 = { class: "yc-chat-sidebar__create-label" };
12
+ const _hoisted_6 = {
12
13
  key: 0,
13
14
  class: "yc-chat-sidebar__search"
14
15
  };
15
- const _hoisted_5 = ["placeholder"];
16
- const _hoisted_6 = { class: "yc-chat-sidebar__body conversation-list" };
17
- const _hoisted_7 = {
16
+ const _hoisted_7 = ["placeholder"];
17
+ const _hoisted_8 = {
18
18
  key: 0,
19
19
  class: "yc-chat-sidebar__empty empty-hint"
20
20
  };
21
- const _hoisted_8 = {
21
+ const _hoisted_9 = {
22
22
  key: 1,
23
23
  class: "yc-chat-sidebar__empty empty-hint"
24
24
  };
25
- const _hoisted_9 = {
25
+ const _hoisted_10 = {
26
26
  key: 2,
27
27
  class: "yc-chat-sidebar__empty empty-hint"
28
28
  };
29
- const _hoisted_10 = {
29
+ const _hoisted_11 = {
30
30
  key: 3,
31
31
  class: "yc-chat-sidebar__empty empty-hint"
32
32
  };
33
- const _hoisted_11 = { class: "yc-chat-sidebar__item-main" };
34
- const _hoisted_12 = { class: "yc-chat-sidebar__item-title conversation-title" };
35
- const _hoisted_13 = { class: "yc-chat-sidebar__item-time conversation-time" };
36
- const _hoisted_14 = ["onClick"];
37
- const _hoisted_15 = { class: "yc-chat-sidebar__more" };
38
- const _hoisted_16 = ["disabled"];
33
+ const _hoisted_12 = {
34
+ key: 4,
35
+ class: "yc-chat-sidebar__groups"
36
+ };
37
+ const _hoisted_13 = {
38
+ key: 0,
39
+ class: "yc-chat-sidebar__archived-only-hint"
40
+ };
41
+ const _hoisted_14 = { class: "yc-chat-sidebar__group-label" };
42
+ const _hoisted_15 = { class: "yc-chat-sidebar__group-items" };
43
+ const _hoisted_16 = ["data-session-id", "title", "onClick"];
44
+ const _hoisted_17 = { class: "yc-chat-sidebar__item-title conversation-title" };
45
+ const _hoisted_18 = ["data-menu-trigger", "aria-expanded", "onClick"];
46
+ const _hoisted_19 = {
47
+ key: 1,
48
+ class: "yc-chat-sidebar__group yc-chat-sidebar__group--archived",
49
+ "data-testid": "archived-sessions-section"
50
+ };
51
+ const _hoisted_20 = ["aria-expanded"];
52
+ const _hoisted_21 = { class: "yc-chat-sidebar__archive-toggle-left" };
53
+ const _hoisted_22 = { class: "yc-chat-sidebar__archive-count" };
54
+ const _hoisted_23 = {
55
+ key: 0,
56
+ class: "yc-chat-sidebar__group-items"
57
+ };
58
+ const _hoisted_24 = ["data-session-id", "title", "onClick"];
59
+ const _hoisted_25 = { class: "yc-chat-sidebar__item-title conversation-title" };
60
+ const _hoisted_26 = ["data-menu-trigger", "aria-expanded", "onClick"];
61
+ const _hoisted_27 = {
62
+ key: 2,
63
+ class: "yc-chat-sidebar__more"
64
+ };
65
+ const _hoisted_28 = ["disabled"];
66
+ const _hoisted_29 = {
67
+ key: 0,
68
+ viewBox: "0 0 16 16",
69
+ fill: "none",
70
+ "aria-hidden": "true"
71
+ };
72
+ const _hoisted_30 = {
73
+ key: 1,
74
+ viewBox: "0 0 16 16",
75
+ fill: "none",
76
+ "aria-hidden": "true"
77
+ };
78
+ const _hoisted_31 = {
79
+ key: 2,
80
+ class: "yc-chat-sidebar__menu-divider",
81
+ role: "separator"
82
+ };
83
+ const _hoisted_32 = ["disabled"];
39
84
  var _sfc_main = /* @__PURE__ */ defineComponent({
40
85
  ...{
41
86
  name: "YcChatSidebar"
@@ -53,36 +98,162 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
53
98
  emptyText: { default: "\u6682\u65E0\u4F1A\u8BDD" },
54
99
  noResultText: { default: "\u6CA1\u6709\u5339\u914D\u7ED3\u679C" },
55
100
  searchPlaceholder: { default: "\u641C\u7D22" },
56
- untitledText: { default: "\u65B0\u4F1A\u8BDD" }
101
+ untitledText: { default: "\u65B0\u4F1A\u8BDD" },
102
+ archivedGroupTitle: { default: "\u5DF2\u5F52\u6863" },
103
+ showShare: { type: Boolean, default: true },
104
+ showArchive: { type: Boolean, default: true },
105
+ showDelete: { type: Boolean, default: true }
57
106
  },
58
- emits: ["select", "create", "delete", "load-more"],
107
+ emits: ["select", "create", "share", "archive", "unarchive", "delete", "action", "load-more"],
59
108
  setup(__props, { emit: __emit }) {
60
109
  const props = __props;
61
110
  const emit = __emit;
62
111
  const keyword = ref("");
63
- const filteredSessions = computed(() => {
64
- const query = keyword.value.trim().toLowerCase();
65
- if (!query) return props.sessions;
66
- return props.sessions.filter(
67
- (item) => (item.title || props.untitledText).toLowerCase().includes(query)
68
- );
69
- });
70
- const conversationItems = computed(
71
- () => filteredSessions.value.map((item) => ({
112
+ const archivedExpanded = ref(false);
113
+ const openMenuId = ref("");
114
+ const menuRef = ref(null);
115
+ const menuPosition = ref({ top: 0, left: 0 });
116
+ const normalizedSessions = computed(
117
+ () => props.sessions.map((item) => ({
72
118
  id: item.id,
73
- key: item.id,
74
119
  label: item.title || props.untitledText,
75
120
  group: groupChatSessionByDate(item.updatedAt),
76
- disabled: item.disabled,
77
- timeText: formatChatSessionTime(item.updatedAt)
121
+ disabled: Boolean(item.disabled),
122
+ archived: Boolean(item.archived),
123
+ timeText: item.updatedAt ? formatChatSessionTime(item.updatedAt) : ""
78
124
  }))
79
125
  );
80
- function handleChange(item) {
126
+ const filteredSessions = computed(() => {
127
+ const query = keyword.value.trim().toLowerCase();
128
+ if (!query) return normalizedSessions.value;
129
+ return normalizedSessions.value.filter(
130
+ (item) => item.label.toLowerCase().includes(query)
131
+ );
132
+ });
133
+ const activeSessions = computed(
134
+ () => filteredSessions.value.filter((item) => !item.archived)
135
+ );
136
+ const archivedSessions = computed(
137
+ () => filteredSessions.value.filter((item) => item.archived)
138
+ );
139
+ const activeGroups = computed(() => {
140
+ const groups = /* @__PURE__ */ new Map();
141
+ for (const item of activeSessions.value) {
142
+ const bucket = groups.get(item.group);
143
+ if (bucket) {
144
+ bucket.push(item);
145
+ } else {
146
+ groups.set(item.group, [item]);
147
+ }
148
+ }
149
+ return Array.from(groups.entries()).map(([name, items]) => ({ name, items }));
150
+ });
151
+ const showArchivedList = computed(
152
+ () => archivedExpanded.value || Boolean(keyword.value.trim()) || archivedSessions.value.some((item) => item.id === props.activeId)
153
+ );
154
+ const hasMenuActions = computed(
155
+ () => props.showShare || props.showArchive || props.showDelete
156
+ );
157
+ const activeMenuSession = computed(
158
+ () => {
159
+ var _a;
160
+ return (_a = normalizedSessions.value.find((item) => item.id === openMenuId.value)) != null ? _a : null;
161
+ }
162
+ );
163
+ const menuPositionStyle = computed(() => ({
164
+ top: `${menuPosition.value.top}px`,
165
+ left: `${menuPosition.value.left}px`
166
+ }));
167
+ function closeMenu() {
168
+ if (!openMenuId.value) return;
169
+ openMenuId.value = "";
170
+ }
171
+ function positionMenuNearTrigger(triggerEl) {
81
172
  var _a, _b;
82
- const nextId = String((_b = (_a = item == null ? void 0 : item.id) != null ? _a : item == null ? void 0 : item.key) != null ? _b : "");
173
+ const rect = triggerEl.getBoundingClientRect();
174
+ const menuWidth = ((_a = menuRef.value) == null ? void 0 : _a.offsetWidth) || 160;
175
+ const menuHeight = ((_b = menuRef.value) == null ? void 0 : _b.offsetHeight) || 148;
176
+ const viewportWidth = typeof window !== "undefined" ? window.innerWidth : 1280;
177
+ const viewportHeight = typeof window !== "undefined" ? window.innerHeight : 800;
178
+ let left = rect.right - menuWidth;
179
+ if (left + menuWidth > viewportWidth - 8) {
180
+ left = viewportWidth - menuWidth - 8;
181
+ }
182
+ if (left < 8) {
183
+ left = Math.min(rect.left, Math.max(8, viewportWidth - menuWidth - 8));
184
+ }
185
+ let top = rect.bottom + 4;
186
+ if (top + menuHeight > viewportHeight - 8 && rect.top - menuHeight - 4 >= 8) {
187
+ top = rect.top - menuHeight - 4;
188
+ }
189
+ menuPosition.value = { top: Math.round(top), left: Math.round(left) };
190
+ }
191
+ async function toggleMenu(item, event) {
192
+ if (!hasMenuActions.value) return;
193
+ if (openMenuId.value === item.id) {
194
+ closeMenu();
195
+ return;
196
+ }
197
+ const triggerEl = event.currentTarget;
198
+ openMenuId.value = item.id;
199
+ if (triggerEl) {
200
+ positionMenuNearTrigger(triggerEl);
201
+ await nextTick();
202
+ if (openMenuId.value === item.id) {
203
+ positionMenuNearTrigger(triggerEl);
204
+ }
205
+ }
206
+ }
207
+ function handleGlobalPointerDown(event) {
208
+ var _a;
209
+ if (!openMenuId.value) return;
210
+ const target = event.target;
211
+ if (target && ((_a = menuRef.value) == null ? void 0 : _a.contains(target))) return;
212
+ if (target instanceof Element && target.closest(`[data-menu-trigger="${openMenuId.value}"]`)) {
213
+ return;
214
+ }
215
+ closeMenu();
216
+ }
217
+ function handleGlobalKeydown(event) {
218
+ if (event.key === "Escape" && openMenuId.value) {
219
+ closeMenu();
220
+ }
221
+ }
222
+ watch(openMenuId, (nextId) => {
223
+ if (typeof window === "undefined") return;
83
224
  if (nextId) {
84
- emit("select", nextId);
225
+ window.addEventListener("mousedown", handleGlobalPointerDown, true);
226
+ window.addEventListener("keydown", handleGlobalKeydown);
227
+ window.addEventListener("resize", closeMenu);
228
+ } else {
229
+ window.removeEventListener("mousedown", handleGlobalPointerDown, true);
230
+ window.removeEventListener("keydown", handleGlobalKeydown);
231
+ window.removeEventListener("resize", closeMenu);
85
232
  }
233
+ });
234
+ onBeforeUnmount(() => {
235
+ if (typeof window === "undefined") return;
236
+ window.removeEventListener("mousedown", handleGlobalPointerDown, true);
237
+ window.removeEventListener("keydown", handleGlobalKeydown);
238
+ window.removeEventListener("resize", closeMenu);
239
+ });
240
+ function handleSelect(item) {
241
+ if (item.disabled) return;
242
+ closeMenu();
243
+ emit("select", item.id);
244
+ }
245
+ function triggerAction(action, item) {
246
+ if (!item) return;
247
+ if (action === "delete" && item.disabled) return;
248
+ closeMenu();
249
+ if (action === "share") emit("share", item.id);
250
+ else if (action === "archive") emit("archive", item.id);
251
+ else if (action === "unarchive") emit("unarchive", item.id);
252
+ else if (action === "delete") emit("delete", item.id);
253
+ emit("action", { action, id: item.id });
254
+ }
255
+ function itemTooltip(item) {
256
+ return item.timeText ? `${item.label} \xB7 ${item.timeText}` : item.label;
86
257
  }
87
258
  return (_ctx, _cache) => {
88
259
  return openBlock(), createElementBlock("aside", _hoisted_1, [
@@ -93,34 +264,38 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
93
264
  disabled: !__props.connected,
94
265
  onClick: _cache[0] || (_cache[0] = ($event) => emit("create"))
95
266
  }, [
96
- _cache[4] || (_cache[4] = createElementVNode(
97
- "svg",
98
- {
99
- viewBox: "0 0 16 16",
100
- fill: "none",
101
- "aria-hidden": "true"
102
- },
103
- [
104
- createElementVNode("path", {
105
- d: "M8 3.25V12.75M3.25 8H12.75",
106
- stroke: "currentColor",
107
- "stroke-width": "1.6",
108
- "stroke-linecap": "round"
109
- })
110
- ],
111
- -1
112
- /* CACHED */
113
- )),
267
+ createElementVNode("span", _hoisted_4, [
268
+ renderSlot(_ctx.$slots, "icon", {}, () => [
269
+ _cache[11] || (_cache[11] = createElementVNode(
270
+ "svg",
271
+ {
272
+ viewBox: "0 0 16 16",
273
+ fill: "none",
274
+ "aria-hidden": "true"
275
+ },
276
+ [
277
+ createElementVNode("path", {
278
+ d: "M8 3.25V12.75M3.25 8H12.75",
279
+ stroke: "currentColor",
280
+ "stroke-width": "1.6",
281
+ "stroke-linecap": "round"
282
+ })
283
+ ],
284
+ -1
285
+ /* CACHED */
286
+ ))
287
+ ])
288
+ ]),
114
289
  createElementVNode(
115
290
  "span",
116
- null,
291
+ _hoisted_5,
117
292
  toDisplayString(__props.createText),
118
293
  1
119
294
  /* TEXT */
120
295
  )
121
296
  ], 8, _hoisted_3),
122
- __props.connected && __props.sessions.length > 3 ? (openBlock(), createElementBlock("div", _hoisted_4, [
123
- _cache[5] || (_cache[5] = createElementVNode(
297
+ __props.connected && (__props.sessions.length > 2 || keyword.value) ? (openBlock(), createElementBlock("div", _hoisted_6, [
298
+ _cache[13] || (_cache[13] = createElementVNode(
124
299
  "svg",
125
300
  {
126
301
  viewBox: "0 0 16 16",
@@ -150,127 +325,537 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
150
325
  type: "text",
151
326
  placeholder: __props.searchPlaceholder,
152
327
  class: "yc-chat-sidebar__search-input"
153
- }, null, 8, _hoisted_5), [
328
+ }, null, 8, _hoisted_7), [
154
329
  [vModelText, keyword.value]
155
- ])
156
- ])) : createCommentVNode("v-if", true)
157
- ]),
158
- createElementVNode("div", _hoisted_6, [
159
- !__props.connected && __props.disconnectedText ? (openBlock(), createElementBlock(
160
- "div",
161
- _hoisted_7,
162
- toDisplayString(__props.disconnectedText),
163
- 1
164
- /* TEXT */
165
- )) : !__props.connected ? (openBlock(), createElementBlock(
166
- "div",
167
- _hoisted_8,
168
- toDisplayString(__props.emptyText),
169
- 1
170
- /* TEXT */
171
- )) : !__props.sessions.length && !__props.loading ? (openBlock(), createElementBlock(
172
- "div",
173
- _hoisted_9,
174
- toDisplayString(__props.emptyText),
175
- 1
176
- /* TEXT */
177
- )) : !conversationItems.value.length && keyword.value ? (openBlock(), createElementBlock(
178
- "div",
179
- _hoisted_10,
180
- toDisplayString(__props.noResultText),
181
- 1
182
- /* TEXT */
183
- )) : (openBlock(), createBlock(unref(Conversations), {
184
- key: 4,
185
- items: conversationItems.value,
186
- active: __props.activeId,
187
- "row-key": "id",
188
- "label-key": "label",
189
- groupable: true,
190
- "show-built-in-menu": false,
191
- style: { width: "100%", backgroundColor: "transparent", padding: "4px 8px" },
192
- onChange: handleChange
193
- }, createSlots({
194
- label: withCtx(({ item }) => [
330
+ ]),
331
+ keyword.value ? (openBlock(), createElementBlock("button", {
332
+ key: 0,
333
+ type: "button",
334
+ class: "yc-chat-sidebar__search-clear",
335
+ "aria-label": "\u6E05\u7A7A\u641C\u7D22",
336
+ onClick: _cache[2] || (_cache[2] = ($event) => keyword.value = "")
337
+ }, [..._cache[12] || (_cache[12] = [
195
338
  createElementVNode(
196
- "div",
339
+ "svg",
197
340
  {
198
- class: normalizeClass(["yc-chat-sidebar__item", { active: item.id === __props.activeId }])
341
+ viewBox: "0 0 14 14",
342
+ fill: "none",
343
+ "aria-hidden": "true"
199
344
  },
200
345
  [
201
- createElementVNode("div", _hoisted_11, [
346
+ createElementVNode("path", {
347
+ d: "M3.75 3.75L10.25 10.25M10.25 3.75L3.75 10.25",
348
+ stroke: "currentColor",
349
+ "stroke-width": "1.4",
350
+ "stroke-linecap": "round"
351
+ })
352
+ ],
353
+ -1
354
+ /* CACHED */
355
+ )
356
+ ])])) : createCommentVNode("v-if", true)
357
+ ])) : createCommentVNode("v-if", true)
358
+ ]),
359
+ createElementVNode(
360
+ "div",
361
+ {
362
+ class: "yc-chat-sidebar__body conversation-list",
363
+ onScrollPassive: closeMenu
364
+ },
365
+ [
366
+ !__props.connected && __props.disconnectedText ? (openBlock(), createElementBlock(
367
+ "div",
368
+ _hoisted_8,
369
+ toDisplayString(__props.disconnectedText),
370
+ 1
371
+ /* TEXT */
372
+ )) : !__props.connected ? (openBlock(), createElementBlock(
373
+ "div",
374
+ _hoisted_9,
375
+ toDisplayString(__props.emptyText),
376
+ 1
377
+ /* TEXT */
378
+ )) : !__props.sessions.length && !__props.loading ? (openBlock(), createElementBlock(
379
+ "div",
380
+ _hoisted_10,
381
+ toDisplayString(__props.emptyText),
382
+ 1
383
+ /* TEXT */
384
+ )) : !filteredSessions.value.length && keyword.value ? (openBlock(), createElementBlock(
385
+ "div",
386
+ _hoisted_11,
387
+ toDisplayString(__props.noResultText),
388
+ 1
389
+ /* TEXT */
390
+ )) : (openBlock(), createElementBlock("div", _hoisted_12, [
391
+ !activeGroups.value.length && archivedSessions.value.length && !keyword.value ? (openBlock(), createElementBlock("div", _hoisted_13, " \u8FD1\u671F\u4F1A\u8BDD\u5DF2\u5168\u90E8\u5F52\u6863 ")) : createCommentVNode("v-if", true),
392
+ (openBlock(true), createElementBlock(
393
+ Fragment,
394
+ null,
395
+ renderList(activeGroups.value, (group) => {
396
+ return openBlock(), createElementBlock("section", {
397
+ key: group.name,
398
+ class: "yc-chat-sidebar__group"
399
+ }, [
202
400
  createElementVNode(
203
401
  "div",
204
- _hoisted_12,
205
- toDisplayString(item.label),
402
+ _hoisted_14,
403
+ toDisplayString(group.name),
206
404
  1
207
405
  /* TEXT */
208
406
  ),
407
+ createElementVNode("div", _hoisted_15, [
408
+ (openBlock(true), createElementBlock(
409
+ Fragment,
410
+ null,
411
+ renderList(group.items, (item) => {
412
+ return openBlock(), createElementBlock("div", {
413
+ key: item.id,
414
+ class: normalizeClass(["yc-chat-sidebar__row el-conversations-item", {
415
+ active: item.id === __props.activeId,
416
+ "is-active": item.id === __props.activeId,
417
+ "is-menu-open": openMenuId.value === item.id,
418
+ "is-disabled": item.disabled
419
+ }]),
420
+ "data-session-id": item.id,
421
+ title: itemTooltip(item),
422
+ onClick: ($event) => handleSelect(item)
423
+ }, [
424
+ createElementVNode(
425
+ "span",
426
+ _hoisted_17,
427
+ toDisplayString(item.label),
428
+ 1
429
+ /* TEXT */
430
+ ),
431
+ hasMenuActions.value ? (openBlock(), createElementBlock("div", {
432
+ key: 0,
433
+ class: "yc-chat-sidebar__item-actions",
434
+ onClick: _cache[3] || (_cache[3] = withModifiers(() => {
435
+ }, ["stop"]))
436
+ }, [
437
+ createElementVNode("button", {
438
+ type: "button",
439
+ class: normalizeClass(["yc-chat-sidebar__more-trigger", { "is-open": openMenuId.value === item.id }]),
440
+ "data-menu-trigger": item.id,
441
+ "data-testid": "session-more-btn",
442
+ "aria-label": "\u66F4\u591A\u4F1A\u8BDD\u64CD\u4F5C",
443
+ "aria-haspopup": "menu",
444
+ "aria-expanded": openMenuId.value === item.id,
445
+ title: "\u66F4\u591A\u64CD\u4F5C",
446
+ onClick: withModifiers(($event) => toggleMenu(item, $event), ["stop"])
447
+ }, [..._cache[14] || (_cache[14] = [
448
+ createElementVNode(
449
+ "svg",
450
+ {
451
+ viewBox: "0 0 16 16",
452
+ fill: "none",
453
+ "aria-hidden": "true"
454
+ },
455
+ [
456
+ createElementVNode("circle", {
457
+ cx: "3.25",
458
+ cy: "8",
459
+ r: "1.25",
460
+ fill: "currentColor"
461
+ }),
462
+ createElementVNode("circle", {
463
+ cx: "8",
464
+ cy: "8",
465
+ r: "1.25",
466
+ fill: "currentColor"
467
+ }),
468
+ createElementVNode("circle", {
469
+ cx: "12.75",
470
+ cy: "8",
471
+ r: "1.25",
472
+ fill: "currentColor"
473
+ })
474
+ ],
475
+ -1
476
+ /* CACHED */
477
+ )
478
+ ])], 10, _hoisted_18)
479
+ ])) : createCommentVNode("v-if", true)
480
+ ], 10, _hoisted_16);
481
+ }),
482
+ 128
483
+ /* KEYED_FRAGMENT */
484
+ ))
485
+ ])
486
+ ]);
487
+ }),
488
+ 128
489
+ /* KEYED_FRAGMENT */
490
+ )),
491
+ archivedSessions.value.length ? (openBlock(), createElementBlock("section", _hoisted_19, [
492
+ createElementVNode("button", {
493
+ type: "button",
494
+ class: "yc-chat-sidebar__archive-toggle",
495
+ "data-testid": "archived-sessions-toggle",
496
+ "aria-expanded": showArchivedList.value,
497
+ onClick: _cache[4] || (_cache[4] = withModifiers(($event) => archivedExpanded.value = !archivedExpanded.value, ["stop"]))
498
+ }, [
499
+ createElementVNode("span", _hoisted_21, [
500
+ _cache[15] || (_cache[15] = createElementVNode(
501
+ "svg",
502
+ {
503
+ viewBox: "0 0 16 16",
504
+ fill: "none",
505
+ "aria-hidden": "true"
506
+ },
507
+ [
508
+ createElementVNode("rect", {
509
+ x: "2",
510
+ y: "2.75",
511
+ width: "12",
512
+ height: "3.25",
513
+ rx: "1",
514
+ stroke: "currentColor",
515
+ "stroke-width": "1.3"
516
+ }),
517
+ createElementVNode("path", {
518
+ d: "M3.25 6V12.25C3.25 12.8 3.7 13.25 4.25 13.25H11.75C12.3 13.25 12.75 12.8 12.75 12.25V6M6.5 8.75H9.5",
519
+ stroke: "currentColor",
520
+ "stroke-width": "1.3",
521
+ "stroke-linecap": "round"
522
+ })
523
+ ],
524
+ -1
525
+ /* CACHED */
526
+ )),
209
527
  createElementVNode(
210
- "div",
211
- _hoisted_13,
212
- toDisplayString(item.timeText),
528
+ "span",
529
+ null,
530
+ toDisplayString(__props.archivedGroupTitle),
531
+ 1
532
+ /* TEXT */
533
+ ),
534
+ createElementVNode(
535
+ "span",
536
+ _hoisted_22,
537
+ toDisplayString(archivedSessions.value.length),
213
538
  1
214
539
  /* TEXT */
215
540
  )
216
541
  ]),
217
- createElementVNode("div", {
218
- class: "yc-chat-sidebar__item-actions",
219
- onClick: _cache[2] || (_cache[2] = withModifiers(() => {
220
- }, ["stop"]))
542
+ (openBlock(), createElementBlock(
543
+ "svg",
544
+ {
545
+ class: normalizeClass(["yc-chat-sidebar__archive-chevron", { "is-expanded": showArchivedList.value }]),
546
+ viewBox: "0 0 16 16",
547
+ fill: "none",
548
+ "aria-hidden": "true"
549
+ },
550
+ [..._cache[16] || (_cache[16] = [
551
+ createElementVNode(
552
+ "path",
553
+ {
554
+ d: "M5.5 6.5L8 9L10.5 6.5",
555
+ stroke: "currentColor",
556
+ "stroke-width": "1.4",
557
+ "stroke-linecap": "round",
558
+ "stroke-linejoin": "round"
559
+ },
560
+ null,
561
+ -1
562
+ /* CACHED */
563
+ )
564
+ ])],
565
+ 2
566
+ /* CLASS */
567
+ ))
568
+ ], 8, _hoisted_20),
569
+ showArchivedList.value ? (openBlock(), createElementBlock("div", _hoisted_23, [
570
+ (openBlock(true), createElementBlock(
571
+ Fragment,
572
+ null,
573
+ renderList(archivedSessions.value, (item) => {
574
+ return openBlock(), createElementBlock("div", {
575
+ key: item.id,
576
+ class: normalizeClass(["yc-chat-sidebar__row yc-chat-sidebar__row--archived el-conversations-item", {
577
+ active: item.id === __props.activeId,
578
+ "is-active": item.id === __props.activeId,
579
+ "is-menu-open": openMenuId.value === item.id,
580
+ "is-disabled": item.disabled
581
+ }]),
582
+ "data-session-id": item.id,
583
+ title: itemTooltip(item),
584
+ onClick: ($event) => handleSelect(item)
585
+ }, [
586
+ createElementVNode(
587
+ "span",
588
+ _hoisted_25,
589
+ toDisplayString(item.label),
590
+ 1
591
+ /* TEXT */
592
+ ),
593
+ hasMenuActions.value ? (openBlock(), createElementBlock("div", {
594
+ key: 0,
595
+ class: "yc-chat-sidebar__item-actions",
596
+ onClick: _cache[5] || (_cache[5] = withModifiers(() => {
597
+ }, ["stop"]))
598
+ }, [
599
+ createElementVNode("button", {
600
+ type: "button",
601
+ class: normalizeClass(["yc-chat-sidebar__more-trigger", { "is-open": openMenuId.value === item.id }]),
602
+ "data-menu-trigger": item.id,
603
+ "data-testid": "session-more-btn",
604
+ "aria-label": "\u66F4\u591A\u4F1A\u8BDD\u64CD\u4F5C",
605
+ "aria-haspopup": "menu",
606
+ "aria-expanded": openMenuId.value === item.id,
607
+ title: "\u66F4\u591A\u64CD\u4F5C",
608
+ onClick: withModifiers(($event) => toggleMenu(item, $event), ["stop"])
609
+ }, [..._cache[17] || (_cache[17] = [
610
+ createElementVNode(
611
+ "svg",
612
+ {
613
+ viewBox: "0 0 16 16",
614
+ fill: "none",
615
+ "aria-hidden": "true"
616
+ },
617
+ [
618
+ createElementVNode("circle", {
619
+ cx: "3.25",
620
+ cy: "8",
621
+ r: "1.25",
622
+ fill: "currentColor"
623
+ }),
624
+ createElementVNode("circle", {
625
+ cx: "8",
626
+ cy: "8",
627
+ r: "1.25",
628
+ fill: "currentColor"
629
+ }),
630
+ createElementVNode("circle", {
631
+ cx: "12.75",
632
+ cy: "8",
633
+ r: "1.25",
634
+ fill: "currentColor"
635
+ })
636
+ ],
637
+ -1
638
+ /* CACHED */
639
+ )
640
+ ])], 10, _hoisted_26)
641
+ ])) : createCommentVNode("v-if", true)
642
+ ], 10, _hoisted_24);
643
+ }),
644
+ 128
645
+ /* KEYED_FRAGMENT */
646
+ ))
647
+ ])) : createCommentVNode("v-if", true)
648
+ ])) : createCommentVNode("v-if", true),
649
+ __props.hasMore ? (openBlock(), createElementBlock("div", _hoisted_27, [
650
+ createElementVNode("button", {
651
+ type: "button",
652
+ class: "yc-chat-sidebar__more-btn",
653
+ disabled: __props.loading,
654
+ onClick: _cache[6] || (_cache[6] = withModifiers(($event) => emit("load-more"), ["stop"]))
655
+ }, toDisplayString(__props.loading ? "\u52A0\u8F7D\u4E2D\u2026" : "\u52A0\u8F7D\u66F4\u591A"), 9, _hoisted_28)
656
+ ])) : createCommentVNode("v-if", true)
657
+ ]))
658
+ ],
659
+ 32
660
+ /* NEED_HYDRATION */
661
+ ),
662
+ (openBlock(), createBlock(Teleport, { to: "body" }, [
663
+ createVNode(Transition, { name: "yc-gemini-menu-pop" }, {
664
+ default: withCtx(() => [
665
+ activeMenuSession.value ? (openBlock(), createElementBlock(
666
+ "div",
667
+ {
668
+ key: 0,
669
+ ref_key: "menuRef",
670
+ ref: menuRef,
671
+ class: "yc-chat-sidebar__dropdown",
672
+ style: normalizeStyle(menuPositionStyle.value),
673
+ role: "menu",
674
+ "aria-label": "\u4F1A\u8BDD\u64CD\u4F5C\u83DC\u5355",
675
+ "data-testid": "session-action-menu",
676
+ onClick: _cache[10] || (_cache[10] = withModifiers(() => {
677
+ }, ["stop"]))
678
+ },
679
+ [
680
+ __props.showShare ? (openBlock(), createElementBlock("button", {
681
+ key: 0,
682
+ type: "button",
683
+ role: "menuitem",
684
+ class: "yc-chat-sidebar__menu-item",
685
+ "data-testid": "session-action-share",
686
+ onClick: _cache[7] || (_cache[7] = ($event) => triggerAction("share", activeMenuSession.value))
687
+ }, [..._cache[18] || (_cache[18] = [
688
+ createElementVNode(
689
+ "svg",
690
+ {
691
+ viewBox: "0 0 16 16",
692
+ fill: "none",
693
+ "aria-hidden": "true"
694
+ },
695
+ [
696
+ createElementVNode("circle", {
697
+ cx: "11.75",
698
+ cy: "3.5",
699
+ r: "1.75",
700
+ stroke: "currentColor",
701
+ "stroke-width": "1.35"
702
+ }),
703
+ createElementVNode("circle", {
704
+ cx: "4.25",
705
+ cy: "8",
706
+ r: "1.75",
707
+ stroke: "currentColor",
708
+ "stroke-width": "1.35"
709
+ }),
710
+ createElementVNode("circle", {
711
+ cx: "11.75",
712
+ cy: "12.5",
713
+ r: "1.75",
714
+ stroke: "currentColor",
715
+ "stroke-width": "1.35"
716
+ }),
717
+ createElementVNode("path", {
718
+ d: "M5.8 7.1L10.2 4.4M5.8 8.9L10.2 11.6",
719
+ stroke: "currentColor",
720
+ "stroke-width": "1.35",
721
+ "stroke-linecap": "round"
722
+ })
723
+ ],
724
+ -1
725
+ /* CACHED */
726
+ ),
727
+ createElementVNode(
728
+ "span",
729
+ null,
730
+ "\u5206\u4EAB",
731
+ -1
732
+ /* CACHED */
733
+ )
734
+ ])])) : createCommentVNode("v-if", true),
735
+ __props.showArchive ? (openBlock(), createElementBlock("button", {
736
+ key: 1,
737
+ type: "button",
738
+ role: "menuitem",
739
+ class: "yc-chat-sidebar__menu-item",
740
+ "data-testid": "session-action-archive",
741
+ onClick: _cache[8] || (_cache[8] = ($event) => triggerAction(
742
+ activeMenuSession.value.archived ? "unarchive" : "archive",
743
+ activeMenuSession.value
744
+ ))
221
745
  }, [
222
- createElementVNode("button", {
223
- type: "button",
224
- class: "yc-chat-sidebar__delete-btn",
225
- "aria-label": "\u5220\u9664\u4F1A\u8BDD",
226
- title: "\u5220\u9664\u4F1A\u8BDD",
227
- onClick: withModifiers(($event) => emit("delete", item.id), ["stop"])
228
- }, [..._cache[6] || (_cache[6] = [
746
+ !activeMenuSession.value.archived ? (openBlock(), createElementBlock("svg", _hoisted_29, [..._cache[19] || (_cache[19] = [
747
+ createElementVNode(
748
+ "rect",
749
+ {
750
+ x: "2",
751
+ y: "2.75",
752
+ width: "12",
753
+ height: "3.25",
754
+ rx: "1",
755
+ stroke: "currentColor",
756
+ "stroke-width": "1.35"
757
+ },
758
+ null,
759
+ -1
760
+ /* CACHED */
761
+ ),
762
+ createElementVNode(
763
+ "path",
764
+ {
765
+ d: "M3.25 6V12.25C3.25 12.8 3.7 13.25 4.25 13.25H11.75C12.3 13.25 12.75 12.8 12.75 12.25V6M8 7.75V11.25M6.5 9.85L8 11.35L9.5 9.85",
766
+ stroke: "currentColor",
767
+ "stroke-width": "1.35",
768
+ "stroke-linecap": "round",
769
+ "stroke-linejoin": "round"
770
+ },
771
+ null,
772
+ -1
773
+ /* CACHED */
774
+ )
775
+ ])])) : (openBlock(), createElementBlock("svg", _hoisted_30, [..._cache[20] || (_cache[20] = [
229
776
  createElementVNode(
230
- "svg",
777
+ "rect",
231
778
  {
232
- viewBox: "0 0 16 16",
233
- fill: "none",
234
- "aria-hidden": "true"
779
+ x: "2",
780
+ y: "2.75",
781
+ width: "12",
782
+ height: "3.25",
783
+ rx: "1",
784
+ stroke: "currentColor",
785
+ "stroke-width": "1.35"
235
786
  },
236
- [
237
- createElementVNode("path", {
238
- d: "M3.5 4.5H12.5M6.25 4.5V3.25C6.25 2.84 6.59 2.5 7 2.5H9C9.41 2.5 9.75 2.84 9.75 3.25V4.5M5 4.5L5.45 12.4C5.48 13.02 5.99 13.5 6.6 13.5H9.4C10.01 13.5 10.52 13.02 10.55 12.4L11 4.5",
239
- stroke: "currentColor",
240
- "stroke-width": "1.3",
241
- "stroke-linecap": "round",
242
- "stroke-linejoin": "round"
243
- })
244
- ],
787
+ null,
788
+ -1
789
+ /* CACHED */
790
+ ),
791
+ createElementVNode(
792
+ "path",
793
+ {
794
+ d: "M3.25 6V12.25C3.25 12.8 3.7 13.25 4.25 13.25H11.75C12.3 13.25 12.75 12.8 12.75 12.25V6M8 11.25V7.75M6.5 9.15L8 7.65L9.5 9.15",
795
+ stroke: "currentColor",
796
+ "stroke-width": "1.35",
797
+ "stroke-linecap": "round",
798
+ "stroke-linejoin": "round"
799
+ },
800
+ null,
245
801
  -1
246
802
  /* CACHED */
247
803
  )
248
- ])], 8, _hoisted_14)
249
- ])
804
+ ])])),
805
+ createElementVNode(
806
+ "span",
807
+ null,
808
+ toDisplayString(activeMenuSession.value.archived ? "\u53D6\u6D88\u5F52\u6863" : "\u5F52\u6863"),
809
+ 1
810
+ /* TEXT */
811
+ )
812
+ ])) : createCommentVNode("v-if", true),
813
+ __props.showDelete && (__props.showShare || __props.showArchive) ? (openBlock(), createElementBlock("div", _hoisted_31)) : createCommentVNode("v-if", true),
814
+ __props.showDelete ? (openBlock(), createElementBlock("button", {
815
+ key: 3,
816
+ type: "button",
817
+ role: "menuitem",
818
+ class: "yc-chat-sidebar__menu-item is-danger",
819
+ "data-testid": "session-action-delete",
820
+ disabled: activeMenuSession.value.disabled,
821
+ onClick: _cache[9] || (_cache[9] = ($event) => triggerAction("delete", activeMenuSession.value))
822
+ }, [..._cache[21] || (_cache[21] = [
823
+ createElementVNode(
824
+ "svg",
825
+ {
826
+ viewBox: "0 0 16 16",
827
+ fill: "none",
828
+ "aria-hidden": "true"
829
+ },
830
+ [
831
+ createElementVNode("path", {
832
+ d: "M3.25 4.5H12.75M6.25 4.5V3.25C6.25 2.84 6.59 2.5 7 2.5H9C9.41 2.5 9.75 2.84 9.75 3.25V4.5M4.85 4.5L5.3 12.35C5.34 13 5.88 13.5 6.53 13.5H9.47C10.12 13.5 10.66 13 10.7 12.35L11.15 4.5M6.75 7.25V10.75M9.25 7.25V10.75",
833
+ stroke: "currentColor",
834
+ "stroke-width": "1.35",
835
+ "stroke-linecap": "round",
836
+ "stroke-linejoin": "round"
837
+ })
838
+ ],
839
+ -1
840
+ /* CACHED */
841
+ ),
842
+ createElementVNode(
843
+ "span",
844
+ null,
845
+ "\u5220\u9664",
846
+ -1
847
+ /* CACHED */
848
+ )
849
+ ])], 8, _hoisted_32)) : createCommentVNode("v-if", true)
250
850
  ],
251
- 2
252
- /* CLASS */
253
- )
851
+ 4
852
+ /* STYLE */
853
+ )) : createCommentVNode("v-if", true)
254
854
  ]),
255
- _: 2
256
- /* DYNAMIC */
257
- }, [
258
- __props.hasMore ? {
259
- name: "load-more",
260
- fn: withCtx(() => [
261
- createElementVNode("div", _hoisted_15, [
262
- createElementVNode("button", {
263
- type: "button",
264
- class: "yc-chat-sidebar__more-btn",
265
- disabled: __props.loading,
266
- onClick: _cache[3] || (_cache[3] = ($event) => emit("load-more"))
267
- }, toDisplayString(__props.loading ? "\u52A0\u8F7D\u4E2D\u2026" : "\u52A0\u8F7D\u66F4\u591A"), 9, _hoisted_16)
268
- ])
269
- ]),
270
- key: "0"
271
- } : void 0
272
- ]), 1032, ["items", "active"]))
273
- ])
855
+ _: 1
856
+ /* STABLE */
857
+ })
858
+ ]))
274
859
  ]);
275
860
  };
276
861
  }