@opentiny/tiny-robot 0.3.1-alpha.3 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index5.js ADDED
@@ -0,0 +1,161 @@
1
+ import { onMounted as U, nextTick as B, h as C, defineComponent as _, render as R, onBeforeUnmount as D, Teleport as W, computed as h, ref as E, createBlock as F, openBlock as g, Transition as j, normalizeProps as q, guardReactiveProps as L, withCtx as Z, createElementBlock as G, createCommentVNode as J, renderSlot as K, useSlots as Q, watch as X, useAttrs as Y, resolveDynamicComponent as ee, unref as S, mergeProps as k, createVNode as te } from "vue";
2
+ import { a as oe, c as re, e as ne } from "./index4.js";
3
+ import { t as u } from "./utils.js";
4
+ import { _ as N } from "./_plugin-vue_export-helper.js";
5
+ import { u as se } from "./useSlotRefs.js";
6
+ const pe = _({
7
+ setup: (r) => () => C(W, r.propsFactory(), r.vnodeFactory()),
8
+ props: ["propsFactory", "vnodeFactory"]
9
+ });
10
+ function ae(r, n) {
11
+ let e = null, t = null, s = !1;
12
+ U(() => {
13
+ B(() => {
14
+ s || (t = document.createElement("div"), e = C(pe, { propsFactory: r, vnodeFactory: n }), R(e, t));
15
+ });
16
+ }), D(() => {
17
+ s = !0, B(() => {
18
+ t && (R(null, t), t.remove(), e = null, t = null);
19
+ });
20
+ });
21
+ }
22
+ function ce(r, n) {
23
+ return h(() => {
24
+ var v;
25
+ if (n instanceof HTMLElement)
26
+ return n;
27
+ const e = n, t = oe(r), s = (v = t == null ? void 0 : t.getRootNode) == null ? void 0 : v.call(t), i = s instanceof ShadowRoot, d = i ? s : document.body;
28
+ if (e) {
29
+ if (!i && e === "body")
30
+ return document.body;
31
+ const f = d.querySelector(e);
32
+ if (f instanceof Node) return f;
33
+ }
34
+ return d;
35
+ });
36
+ }
37
+ const ie = /* @__PURE__ */ _({
38
+ __name: "Popper",
39
+ props: {
40
+ show: { type: Boolean },
41
+ transitionProps: {}
42
+ },
43
+ setup(r, { expose: n }) {
44
+ const e = E(null);
45
+ return n({
46
+ popperRef: e
47
+ }), (t, s) => (g(), F(j, q(L(r.transitionProps)), {
48
+ default: Z(() => [
49
+ r.show ? (g(), G("div", {
50
+ key: 0,
51
+ class: "tr-base-popper",
52
+ ref_key: "popperRef",
53
+ ref: e
54
+ }, [
55
+ K(t.$slots, "default", {}, void 0, !0)
56
+ ], 512)) : J("", !0)
57
+ ]),
58
+ _: 3
59
+ }, 16));
60
+ }
61
+ }), le = /* @__PURE__ */ N(ie, [["__scopeId", "data-v-25c13ab7"]]), ue = /* @__PURE__ */ _({
62
+ inheritAttrs: !1,
63
+ __name: "index",
64
+ props: {
65
+ appendTo: {},
66
+ offset: {},
67
+ placement: {
68
+ default: "top-center"
69
+ },
70
+ preventOverflow: {
71
+ type: Boolean
72
+ },
73
+ show: {
74
+ type: Boolean
75
+ },
76
+ transitionProps: {},
77
+ triggerEvents: {}
78
+ },
79
+ setup(r, {
80
+ expose: n
81
+ }) {
82
+ const e = r, t = Q(), {
83
+ vnodes: s,
84
+ ref: i,
85
+ setRef: d
86
+ } = se(t.trigger), v = (o = {}) => {
87
+ const p = {};
88
+ for (const [c, a] of Object.entries(o))
89
+ /^on[A-Z]/.test(c) && typeof a == "function" && (p[c] = a);
90
+ return p;
91
+ }, f = E(null), b = h(() => {
92
+ var o;
93
+ return ((o = f.value) == null ? void 0 : o.popperRef) || null;
94
+ }), m = h(() => {
95
+ var o, p;
96
+ return typeof e.offset == "number" ? {
97
+ mainAxis: e.offset,
98
+ crossAxis: 0
99
+ } : {
100
+ mainAxis: ((o = e.offset) == null ? void 0 : o.mainAxis) ?? 0,
101
+ crossAxis: ((p = e.offset) == null ? void 0 : p.crossAxis) ?? 0
102
+ };
103
+ }), {
104
+ top: $,
105
+ bottom: O,
106
+ left: w,
107
+ right: V,
108
+ width: z,
109
+ update: A
110
+ } = re(i), {
111
+ width: x,
112
+ height: P
113
+ } = ne(b, void 0, {
114
+ box: "border-box"
115
+ }), H = h(() => {
116
+ const {
117
+ placement: o,
118
+ preventOverflow: p
119
+ } = e, c = {}, a = (l, y) => {
120
+ if (!p) {
121
+ c[l] = y;
122
+ return;
123
+ }
124
+ const T = u(l === "top" ? P.value : x.value);
125
+ l === "top" ? c[l] = `clamp(var(--tr-base-popper-min-top), ${y}, calc(var(--tr-base-popper-max-bottom) - ${T}))` : l === "left" && (c[l] = `clamp(var(--tr-base-popper-min-left), ${y}, calc(var(--tr-base-popper-max-right) - ${T}))`);
126
+ };
127
+ return o.includes("top") && a("top", u($.value - P.value - m.value.mainAxis)), o.includes("bottom") && a("top", u(O.value + m.value.mainAxis)), o.includes("left") && a("left", u(w.value + m.value.crossAxis)), o.includes("right") && a("left", u(V.value - x.value + m.value.crossAxis)), o.includes("center") && a("left", u(w.value + z.value / 2 - x.value / 2 + m.value.crossAxis)), c;
128
+ });
129
+ X(() => e.show, (o) => {
130
+ o && A();
131
+ }, {
132
+ flush: "post"
133
+ });
134
+ const I = ce(i, e.appendTo), M = Y();
135
+ return ae(() => ({
136
+ to: I.value
137
+ }), () => te(le, k({
138
+ ref: f,
139
+ show: e.show,
140
+ transitionProps: e.transitionProps,
141
+ style: H.value
142
+ }, M), {
143
+ default: () => {
144
+ var o;
145
+ return [(o = t.content) == null ? void 0 : o.call(t)];
146
+ }
147
+ })), n({
148
+ triggerRef: i,
149
+ popperRef: b,
150
+ update: A
151
+ }), (o, p) => (g(), F(ee(S(s)[0]), k({
152
+ ref: S(d)
153
+ }, v(e.triggerEvents)), null, 16));
154
+ }
155
+ }), fe = /* @__PURE__ */ N(ue, [["__scopeId", "data-v-f1e25842"]]);
156
+ fe.name = "TrBasePopper";
157
+ export {
158
+ fe as B,
159
+ ae as c,
160
+ ce as u
161
+ };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as g, ref as b, useModel as k, watch as O, onUnmounted as R, createElementBlock as _, openBlock as v, createElementVNode as t, withDirectives as c, vModelText as f, createVNode as y, unref as D, createCommentVNode as $ } from "vue";
2
2
  import { TinyRadioGroup as E } from "@opentiny/vue";
3
- import { e as L } from "../index3.js";
3
+ import { f as L } from "../index4.js";
4
4
  import { _ as T } from "../_plugin-vue_export-helper.js";
5
5
  const M = { class: "form-editor__container" }, S = { class: "form-editor__item" }, F = { class: "form-editor__item" }, I = { class: "form-editor__item" }, N = { class: "form-editor__item" }, H = { class: "form-editor__item" }, w = { class: "form-editor__item" }, A = ["src"], C = "https://res.hc-cdn.com/tinyui-design/1.1.0.20250526191525/home/images/tiny-ng.svg", P = /* @__PURE__ */ g({
6
6
  __name: "FormEditor",
@@ -1,9 +1,9 @@
1
- import { defineComponent as q, ref as V, computed as g, createElementBlock as n, openBlock as a, normalizeClass as G, createElementVNode as s, createBlock as k, createCommentVNode as v, toDisplayString as x, renderSlot as D, Fragment as F, unref as d, createVNode as _, withCtx as T, Transition as K, withDirectives as pe, renderList as N, vShow as ge, mergeModels as J, useModel as ae, watch as H, normalizeStyle as me, createTextVNode as _e } from "vue";
1
+ import { defineComponent as q, ref as V, computed as g, createElementBlock as n, openBlock as a, normalizeClass as G, createElementVNode as s, createBlock as k, createCommentVNode as v, toDisplayString as x, renderSlot as U, Fragment as F, unref as d, createVNode as m, withCtx as T, Transition as K, withDirectives as pe, renderList as N, vShow as ge, mergeModels as J, useModel as ae, watch as H, normalizeStyle as _e, createTextVNode as me } from "vue";
2
2
  import { TinyPopconfirm as ve, TinySwitch as X, TinyTabs as fe, TinyTabItem as Y, TinyInput as Z, TinyBaseSelect as he, TinyOption as ye } from "@opentiny/vue";
3
3
  import { IconArrowRight as ke, IconArrowDown as be, IconDelete as Te, IconClose as oe, IconEmptySearch as Ce, IconPlus as Pe, IconSearch as ee } from "@opentiny/tiny-robot-svgs";
4
4
  import { _ as z } from "../_plugin-vue_export-helper.js";
5
5
  import { _ as we } from "../no-data.js";
6
- import { o as xe } from "../index3.js";
6
+ import { o as xe } from "../index4.js";
7
7
  import Se from "../mcp-add-form/index.js";
8
8
  const $e = { class: "plugin-card__main" }, Be = ["src"], Ve = { class: "plugin-card__content" }, Ae = { class: "plugin-card__info" }, Fe = { class: "plugin-card__name" }, Me = {
9
9
  key: 0,
@@ -35,20 +35,20 @@ const $e = { class: "plugin-card__main" }, Be = ["src"], Ve = { class: "plugin-c
35
35
  }, S = g(() => {
36
36
  if (!h.value)
37
37
  return { checked: e.plugin.enabled || !1, indeterminate: !1 };
38
- const c = e.plugin.tools.filter((y) => y.enabled), m = e.plugin.tools.length;
39
- return c.length === 0 ? { checked: !1, indeterminate: !1 } : c.length === m ? { checked: !0, indeterminate: !1 } : { checked: !0, indeterminate: !0 };
38
+ const c = e.plugin.tools.filter((y) => y.enabled), _ = e.plugin.tools.length;
39
+ return c.length === 0 ? { checked: !1, indeterminate: !1 } : c.length === _ ? { checked: !0, indeterminate: !1 } : { checked: !0, indeterminate: !0 };
40
40
  }), Q = (c) => {
41
- h.value && e.plugin.tools.forEach((m) => {
42
- m.enabled !== c && (m.enabled = c, r("toggle-tool", m.id, c));
41
+ h.value && e.plugin.tools.forEach((_) => {
42
+ _.enabled !== c && (_.enabled = c, r("toggle-tool", _.id, c));
43
43
  }), r("toggle-plugin", c);
44
- }, R = (c, m) => {
45
- r("toggle-tool", c, m);
46
- }, I = () => {
44
+ }, R = (c, _) => {
45
+ r("toggle-tool", c, _);
46
+ }, D = () => {
47
47
  r("delete-plugin");
48
- }, $ = g(() => e.plugin.addState || "idle"), E = (c) => {
48
+ }, $ = g(() => e.plugin.addState || "idle"), I = (c) => {
49
49
  $.value === "idle" && r("add-plugin", c);
50
- }, L = (c) => c ? "关闭插件" : "打开插件";
51
- return (c, m) => (a(), n("div", {
50
+ }, E = (c) => c ? "关闭插件" : "打开插件";
51
+ return (c, _) => (a(), n("div", {
52
52
  class: G(["plugin-card", C.value])
53
53
  }, [
54
54
  s("div", $e, [
@@ -67,7 +67,7 @@ const $e = { class: "plugin-card__main" }, Be = ["src"], Ve = { class: "plugin-c
67
67
  }, x(i.plugin.description), 9, De)
68
68
  ]),
69
69
  s("div", Ie, [
70
- D(c.$slots, "actions", {
70
+ U(c.$slots, "actions", {
71
71
  plugin: i.plugin,
72
72
  expanded: u.value,
73
73
  mode: i.mode
@@ -78,7 +78,7 @@ const $e = { class: "plugin-card__main" }, Be = ["src"], Ve = { class: "plugin-c
78
78
  class: "plugin-card__expand",
79
79
  onClick: w
80
80
  }, [
81
- D(c.$slots, "expand-icon", { expanded: u.value }, () => [
81
+ U(c.$slots, "expand-icon", { expanded: u.value }, () => [
82
82
  u.value ? (a(), k(d(be), {
83
83
  key: 1,
84
84
  class: "common-icon"
@@ -89,37 +89,37 @@ const $e = { class: "plugin-card__main" }, Be = ["src"], Ve = { class: "plugin-c
89
89
  ], !0)
90
90
  ])) : v("", !0),
91
91
  s("div", Ee, [
92
- _(d(ve), {
92
+ m(d(ve), {
93
93
  title: "确定移除该插件吗?",
94
94
  style: { height: "16px" },
95
95
  type: "info",
96
- onConfirm: I,
96
+ onConfirm: D,
97
97
  trigger: "click"
98
98
  }, {
99
99
  reference: T(() => [
100
- D(c.$slots, "delete-icon", {}, () => [
100
+ U(c.$slots, "delete-icon", {}, () => [
101
101
  s("span", Le, [
102
- _(d(Te), { class: "common-icon delete" })
102
+ m(d(Te), { class: "common-icon delete" })
103
103
  ])
104
104
  ], !0)
105
105
  ]),
106
106
  _: 3
107
107
  }),
108
- _(d(X), {
109
- title: L(S.value.checked),
108
+ m(d(X), {
109
+ title: E(S.value.checked),
110
110
  "model-value": S.value.checked,
111
111
  indeterminate: S.value.indeterminate,
112
112
  "onUpdate:modelValue": Q
113
113
  }, null, 8, ["title", "model-value", "indeterminate"])
114
114
  ])
115
115
  ], 64)) : i.mode === "market" ? (a(), n("div", Ue, [
116
- D(c.$slots, "add-button", {}, () => [
116
+ U(c.$slots, "add-button", {}, () => [
117
117
  s("div", {
118
118
  class: G(["plugin-card__add-button", {
119
119
  "plugin-card__add-button--loading": $.value === "loading",
120
120
  "plugin-card__add-button--added": $.value === "added"
121
121
  }]),
122
- onClick: m[0] || (m[0] = (y) => E(i.plugin))
122
+ onClick: _[0] || (_[0] = (y) => I(i.plugin))
123
123
  }, [
124
124
  $.value === "idle" ? (a(), n("span", Ne, "添加")) : $.value === "loading" ? (a(), n("span", Oe, "添加中")) : (a(), n("span", qe, "已添加"))
125
125
  ], 2)
@@ -134,15 +134,15 @@ const $e = { class: "plugin-card__main" }, Be = ["src"], Ve = { class: "plugin-c
134
134
  }, {
135
135
  default: T(() => [
136
136
  pe(s("div", ze, [
137
- m[2] || (m[2] = s("div", { class: "plugin-card__divider" }, null, -1)),
137
+ _[2] || (_[2] = s("div", { class: "plugin-card__divider" }, null, -1)),
138
138
  (a(!0), n(F, null, N(i.plugin.tools, (y, A) => {
139
- var U;
139
+ var L;
140
140
  return a(), n("div", {
141
141
  key: y.id,
142
142
  class: "plugin-card__tool-item"
143
143
  }, [
144
144
  s("div", Qe, [
145
- m[1] || (m[1] = s("div", { class: "plugin-card__icon plugin-card__icon--placeholder" }, null, -1)),
145
+ _[1] || (_[1] = s("div", { class: "plugin-card__icon plugin-card__icon--placeholder" }, null, -1)),
146
146
  s("div", Re, [
147
147
  s("div", je, [
148
148
  s("span", He, x(y.name), 1)
@@ -153,14 +153,14 @@ const $e = { class: "plugin-card__main" }, Be = ["src"], Ve = { class: "plugin-c
153
153
  }, x(y.description), 9, Ge)
154
154
  ]),
155
155
  s("div", Je, [
156
- _(d(X), {
157
- title: L(y.enabled),
156
+ m(d(X), {
157
+ title: E(y.enabled),
158
158
  "model-value": y.enabled,
159
159
  "onUpdate:modelValue": (j) => R(y.id, j)
160
160
  }, null, 8, ["title", "model-value", "onUpdate:modelValue"])
161
161
  ])
162
162
  ]),
163
- A < (((U = i.plugin.tools) == null ? void 0 : U.length) || 0) - 1 ? (a(), n("div", Ke)) : v("", !0)
163
+ A < (((L = i.plugin.tools) == null ? void 0 : L.length) || 0) - 1 ? (a(), n("div", Ke)) : v("", !0)
164
164
  ]);
165
165
  }), 128))
166
166
  ], 512), [
@@ -193,7 +193,7 @@ const $e = { class: "plugin-card__main" }, Be = ["src"], Ve = { class: "plugin-c
193
193
  };
194
194
  return (C, w) => (a(), n(F, null, [
195
195
  r.value ? (a(), n("div", Xe)) : v("", !0),
196
- _(K, { name: "plugin-editor" }, {
196
+ m(K, { name: "plugin-editor" }, {
197
197
  default: T(() => [
198
198
  r.value ? (a(), n("div", {
199
199
  key: 0,
@@ -203,12 +203,12 @@ const $e = { class: "plugin-card__main" }, Be = ["src"], Ve = { class: "plugin-c
203
203
  }, [
204
204
  s("div", Ye, [
205
205
  w[0] || (w[0] = s("h3", { class: "plugin-editor__title" }, "添加插件", -1)),
206
- _(d(oe), {
206
+ m(d(oe), {
207
207
  class: "plugin-editor__close",
208
208
  onClick: f
209
209
  })
210
210
  ]),
211
- _(d(Se), {
211
+ m(d(Se), {
212
212
  onConfirm: h,
213
213
  onCancel: f
214
214
  })
@@ -259,10 +259,10 @@ const $e = { class: "plugin-card__main" }, Be = ["src"], Ve = { class: "plugin-c
259
259
  }, gt = {
260
260
  key: 0,
261
261
  style: { width: "168px" }
262
- }, mt = {
262
+ }, _t = {
263
263
  key: 1,
264
264
  style: { width: "264px", "flex-shrink": "0" }
265
- }, _t = {
265
+ }, mt = {
266
266
  key: 1,
267
267
  class: "mcp-server-picker__content-list"
268
268
  }, vt = {
@@ -319,7 +319,7 @@ const $e = { class: "plugin-card__main" }, Be = ["src"], Ve = { class: "plugin-c
319
319
  ), H(u, (t, o) => {
320
320
  t !== o && r("tab-change", t);
321
321
  });
322
- const I = g(() => S.value.filter((t) => e.installedSearchFn(f.value, t))), $ = g(() => {
322
+ const D = g(() => S.value.filter((t) => e.installedSearchFn(f.value, t))), $ = g(() => {
323
323
  const { category: t, search: o } = {
324
324
  category: C.value,
325
325
  search: h.value
@@ -328,11 +328,11 @@ const $e = { class: "plugin-card__main" }, Be = ["src"], Ve = { class: "plugin-c
328
328
  return P && B;
329
329
  };
330
330
  return Q.value.filter(p);
331
- }), E = g(() => u.value === "installed" ? I.value.length > 0 : $.value.length > 0);
331
+ }), I = g(() => u.value === "installed" ? D.value.length > 0 : $.value.length > 0);
332
332
  H(C, (t) => {
333
333
  r("market-category-change", t);
334
334
  });
335
- const L = (t, o) => {
335
+ const E = (t, o) => {
336
336
  var p;
337
337
  e.allowPluginToggle && (r("plugin-toggle", t, o), (p = t.tools) != null && p.length && (o ? t.tools.filter((P) => P.enabled).length === 0 && t.tools.forEach((P) => {
338
338
  r("tool-toggle", t, P.id, !0);
@@ -345,11 +345,11 @@ const $e = { class: "plugin-card__main" }, Be = ["src"], Ve = { class: "plugin-c
345
345
  const P = t.tools.filter((M) => M.id !== o).some((M) => M.enabled), B = p || P;
346
346
  t.enabled !== B && r("plugin-toggle", t, B);
347
347
  }
348
- }, m = (t) => {
348
+ }, _ = (t) => {
349
349
  e.allowPluginDelete && r("plugin-delete", t);
350
350
  }, y = (t) => {
351
351
  e.allowPluginAdd && r("plugin-add", t);
352
- }, A = V(!1), U = () => {
352
+ }, A = V(!1), L = () => {
353
353
  A.value = !0;
354
354
  }, j = (t, o) => {
355
355
  r("plugin-create", t, o), A.value = !1;
@@ -408,28 +408,27 @@ const $e = { class: "plugin-card__main" }, Be = ["src"], Ve = { class: "plugin-c
408
408
  ne.value ? (a(), n("div", {
409
409
  key: 0,
410
410
  class: G(["mcp-server-picker", [`popup-type-${((p = e.popupConfig) == null ? void 0 : p.type) || "fixed"}`, W.value]]),
411
- style: me(se.value)
411
+ style: _e(se.value)
412
412
  }, [
413
413
  s("div", nt, [
414
414
  s("div", it, x(e.title), 1),
415
415
  s("div", st, [
416
- D(t.$slots, "header-actions", {}, void 0, !0),
417
416
  e.showCustomAddButton ? (a(), n("div", {
418
417
  key: 0,
419
418
  class: "mcp-server-picker__header-right-item",
420
- onClick: U
419
+ onClick: L
421
420
  }, [
422
- _(d(Pe), { class: "mcp-server-picker__icon" }),
421
+ m(d(Pe), { class: "mcp-server-picker__icon" }),
423
422
  s("span", null, x(e.customAddButtonText), 1)
424
423
  ])) : v("", !0),
425
- _(d(oe), {
424
+ m(d(oe), {
426
425
  class: "mcp-server-picker__header-right-close",
427
426
  onClick: ie
428
427
  })
429
428
  ])
430
429
  ]),
431
430
  s("div", rt, [
432
- _(d(fe), {
431
+ m(d(fe), {
433
432
  modelValue: u.value,
434
433
  "onUpdate:modelValue": o[3] || (o[3] = (l) => u.value = l)
435
434
  }, {
@@ -441,28 +440,28 @@ const $e = { class: "plugin-card__main" }, Be = ["src"], Ve = { class: "plugin-c
441
440
  }, {
442
441
  default: T(() => [
443
442
  e.enableSearch ? (a(), n("div", dt, [
444
- _(d(Z), {
443
+ m(d(Z), {
445
444
  modelValue: f.value,
446
445
  "onUpdate:modelValue": o[0] || (o[0] = (l) => f.value = l),
447
446
  placeholder: e.searchPlaceholder
448
447
  }, {
449
448
  suffix: T(() => [
450
- _(d(ee), { class: "mcp-server-picker__icon" })
449
+ m(d(ee), { class: "mcp-server-picker__icon" })
451
450
  ]),
452
451
  _: 1
453
452
  }, 8, ["modelValue", "placeholder"])
454
453
  ])) : v("", !0),
455
- E.value ? (a(), n("div", ct, [
456
- e.loading ? (a(), n("div", ut, "加载中...")) : (a(!0), n(F, { key: 1 }, N(I.value, (l) => {
454
+ I.value ? (a(), n("div", ct, [
455
+ e.loading ? (a(), n("div", ut, "加载中...")) : (a(!0), n(F, { key: 1 }, N(D.value, (l) => {
457
456
  var P;
458
457
  return a(), k(d(te), {
459
458
  key: l.id,
460
459
  plugin: l,
461
460
  mode: "installed",
462
461
  expandable: !!((P = l.tools) != null && P.length),
463
- onTogglePlugin: (B) => L(l, B),
462
+ onTogglePlugin: (B) => E(l, B),
464
463
  onToggleTool: (B, M) => c(l, B, M),
465
- onDeletePlugin: () => m(l)
464
+ onDeletePlugin: () => _(l)
466
465
  }, null, 8, ["plugin", "expandable", "onTogglePlugin", "onToggleTool", "onDeletePlugin"]);
467
466
  }), 128))
468
467
  ])) : (a(), k(d(le), {
@@ -480,7 +479,7 @@ const $e = { class: "plugin-card__main" }, Be = ["src"], Ve = { class: "plugin-c
480
479
  default: T(() => [
481
480
  e.enableSearch || e.enableMarketCategoryFilter ? (a(), n("div", pt, [
482
481
  e.enableMarketCategoryFilter ? (a(), n("div", gt, [
483
- _(d(he), {
482
+ m(d(he), {
484
483
  modelValue: C.value,
485
484
  "onUpdate:modelValue": o[1] || (o[1] = (l) => C.value = l),
486
485
  placeholder: e.marketCategoryPlaceholder,
@@ -494,7 +493,7 @@ const $e = { class: "plugin-card__main" }, Be = ["src"], Ve = { class: "plugin-c
494
493
  class: "mcp-server-picker__content-market-header-select-option"
495
494
  }, {
496
495
  default: T(() => [
497
- _e(x(l.label), 1)
496
+ me(x(l.label), 1)
498
497
  ]),
499
498
  _: 2
500
499
  }, 1032, ["label", "value"]))), 128))
@@ -502,20 +501,20 @@ const $e = { class: "plugin-card__main" }, Be = ["src"], Ve = { class: "plugin-c
502
501
  _: 1
503
502
  }, 8, ["modelValue", "placeholder"])
504
503
  ])) : v("", !0),
505
- e.enableSearch ? (a(), n("div", mt, [
506
- _(d(Z), {
504
+ e.enableSearch ? (a(), n("div", _t, [
505
+ m(d(Z), {
507
506
  modelValue: h.value,
508
507
  "onUpdate:modelValue": o[2] || (o[2] = (l) => h.value = l),
509
508
  placeholder: w.value
510
509
  }, {
511
510
  suffix: T(() => [
512
- _(d(ee), { class: "mcp-server-picker__icon" })
511
+ m(d(ee), { class: "mcp-server-picker__icon" })
513
512
  ]),
514
513
  _: 1
515
514
  }, 8, ["modelValue", "placeholder"])
516
515
  ])) : v("", !0)
517
516
  ])) : v("", !0),
518
- E.value ? (a(), n("div", _t, [
517
+ I.value ? (a(), n("div", mt, [
519
518
  e.marketLoading ? (a(), n("div", vt, "加载中...")) : (a(!0), n(F, { key: 1 }, N($.value, (l) => (a(), k(d(te), {
520
519
  key: l.id,
521
520
  plugin: l,
@@ -535,7 +534,7 @@ const $e = { class: "plugin-card__main" }, Be = ["src"], Ve = { class: "plugin-c
535
534
  _: 1
536
535
  }, 8, ["modelValue"])
537
536
  ]),
538
- _(d(et), {
537
+ m(d(et), {
539
538
  visible: A.value,
540
539
  "onUpdate:visible": o[4] || (o[4] = (l) => A.value = l),
541
540
  onConfirm: j
@@ -543,10 +542,10 @@ const $e = { class: "plugin-card__main" }, Be = ["src"], Ve = { class: "plugin-c
543
542
  ], 6)) : v("", !0)
544
543
  ];
545
544
  }),
546
- _: 3
545
+ _: 1
547
546
  }, 8, ["name"]));
548
547
  }
549
- }), O = /* @__PURE__ */ z(ft, [["__scopeId", "data-v-1708103a"]]);
548
+ }), O = /* @__PURE__ */ z(ft, [["__scopeId", "data-v-7f8cfb42"]]);
550
549
  O.name = "McpServerPicker";
551
550
  const ht = function(i) {
552
551
  i.component(O.name, O);