wi-chat 0.6.1 → 0.6.2

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 (59) hide show
  1. package/dist/core/index.cjs +1 -1
  2. package/dist/core/index.js +273 -261
  3. package/dist/core/useChat.d.ts +61 -12
  4. package/dist/index.cjs +1 -1
  5. package/dist/index.d.ts +1 -1
  6. package/dist/index.js +33 -33
  7. package/dist/mobile-ui/chat/ChatContainer.vue.d.ts +6 -6
  8. package/dist/mobile-ui/chat/ChatMessagesView.vue.d.ts +6 -6
  9. package/dist/mobile-ui/index.cjs +1 -1
  10. package/dist/mobile-ui/index.js +104 -104
  11. package/dist/mobile-ui/inputbox/Inputbox.vue.d.ts +5 -5
  12. package/dist/page-context/index.js +2 -4
  13. package/dist/parser/answerCom/actionExecute/actionProtocol.d.ts +1 -7
  14. package/dist/parser/answerCom/actionExecute/clarification.d.ts +15 -3
  15. package/dist/parser/answerCom/actionExecute/constants.d.ts +10 -0
  16. package/dist/parser/answerCom/actionExecute/parseCollectClarifications.d.ts +3 -2
  17. package/dist/parser/answerCom/actionExecute/parseHostAction.d.ts +3 -2
  18. package/dist/parser/answerCom/actionExecute/types.d.ts +3 -3
  19. package/dist/parser/index.cjs +2 -2
  20. package/dist/parser/index.d.ts +2 -2
  21. package/dist/parser/index.js +216 -258
  22. package/dist/parser/registry.d.ts +1 -1
  23. package/dist/renderers/aiAnswer/AiAnswerBubble.vue.d.ts +4 -4
  24. package/dist/renderers/clarification/ClarificationCard.vue.d.ts +3 -3
  25. package/dist/renderers/deepThinking/DeepThinkingSteps.vue.d.ts +4 -4
  26. package/dist/renderers/hostAction/HostActionStatus.vue.d.ts +3 -3
  27. package/dist/renderers/iframePage/IframePage.vue.d.ts +3 -3
  28. package/dist/renderers/index.cjs +1 -1
  29. package/dist/renderers/index.js +484 -498
  30. package/dist/renderers/knowledgeStream/KnowledgeStreamResult.vue.d.ts +3 -3
  31. package/dist/renderers/outputFile/OutputFile.vue.d.ts +3 -3
  32. package/dist/renderers/style.css +1 -1
  33. package/dist/request/index.cjs +2 -2
  34. package/dist/request/index.js +6 -13
  35. package/dist/request/ws.d.ts +3 -3
  36. package/dist/right-panel/RightPanel.vue.d.ts +6 -6
  37. package/dist/right-panel/RightPanelIcon.vue.d.ts +4 -4
  38. package/dist/right-panel/RightPanelTabs.vue.d.ts +5 -5
  39. package/dist/right-panel/index.cjs +1 -1
  40. package/dist/right-panel/index.js +397 -416
  41. package/dist/right-panel/panels/newtab/NewTabPanel.vue.d.ts +4 -4
  42. package/dist/right-panel/panels/web/WebPanel.vue.d.ts +3 -3
  43. package/dist/right-panel/shared/BrowserToolbar.vue.d.ts +3 -3
  44. package/dist/right-panel/shared/RightPanelToolList.vue.d.ts +5 -5
  45. package/dist/theme/index.js +2 -4
  46. package/dist/tools/index.cjs +2 -2
  47. package/dist/tools/index.js +10 -19
  48. package/dist/tools/markdown/MarkdownContent.vue.d.ts +5 -5
  49. package/dist/tools/useAutoScroll.d.ts +3 -3
  50. package/dist/web-ui/attach/AttachmentCard.vue.d.ts +6 -6
  51. package/dist/web-ui/attach/AttachmentList.vue.d.ts +6 -6
  52. package/dist/web-ui/chat/ChatContainer.vue.d.ts +6 -6
  53. package/dist/web-ui/chat/ChatMessagesView.vue.d.ts +6 -6
  54. package/dist/web-ui/envswitch/EnvSwitch.vue.d.ts +5 -5
  55. package/dist/web-ui/index.cjs +1 -1
  56. package/dist/web-ui/index.js +630 -635
  57. package/dist/web-ui/inputbox/Inputbox.vue.d.ts +7 -7
  58. package/dist/web-ui/recordset/RecordsetTable.vue.d.ts +4 -4
  59. package/package.json +2 -1
@@ -1,5 +1,5 @@
1
- import { defineComponent as G, computed as y, openBlock as h, createElementBlock as v, Fragment as B, renderList as Q, createElementVNode as d, normalizeClass as se, createVNode as M, toDisplayString as z, createCommentVNode as P, withModifiers as le, ref as R, watch as V, withDirectives as be, vModelText as Ae, normalizeStyle as fe, unref as me, createBlock as we, createTextVNode as We, pushScopeId as re, popScopeId as ce, onMounted as ye, onUnmounted as Te, shallowReactive as Ne, reactive as ke, nextTick as Oe, resolveDynamicComponent as Ue, vShow as De } from "vue";
2
- const _e = {
1
+ import { defineComponent as G, computed as y, openBlock as h, createElementBlock as v, Fragment as B, renderList as Q, createElementVNode as u, normalizeClass as le, createVNode as $, toDisplayString as R, createCommentVNode as P, withModifiers as se, ref as E, watch as V, withDirectives as ve, vModelText as Le, normalizeStyle as ge, unref as _e, createBlock as be, createTextVNode as Ce, onMounted as fe, onUnmounted as me, shallowReactive as Se, reactive as we, nextTick as Ae, resolveDynamicComponent as We, vShow as Ne } from "vue";
2
+ const pe = {
3
3
  /** 地球:网页标签页与推荐站点缺省图标 */
4
4
  globe: [
5
5
  "M12 3a9 9 0 1 0 0 18a9 9 0 1 0 0-18",
@@ -47,18 +47,18 @@ const _e = {
47
47
  maximize: ["M4 9V4h5", "M20 9V4h-5", "M4 15v5h5", "M20 15v5h-5"],
48
48
  /** 还原(四角向内) */
49
49
  restore: ["M9 4v5H4", "M15 4v5h5", "M9 20v-5H4", "M15 20v-5h5"]
50
- }, Be = ["width", "height"], Ge = ["d"], Fe = /* @__PURE__ */ G({
50
+ }, Oe = ["width", "height"], Ue = ["d"], De = /* @__PURE__ */ G({
51
51
  __name: "RightPanelIcon",
52
52
  props: {
53
53
  name: { default: "globe" },
54
54
  size: { default: 16 }
55
55
  },
56
56
  setup(t) {
57
- const e = t, n = y(() => _e[e.name] ?? _e.globe);
58
- return (l, o) => (h(), v("svg", {
57
+ const e = t, n = y(() => pe[e.name] ?? pe.globe);
58
+ return (d, o) => (h(), v("svg", {
59
59
  class: "wi-right-panel__icon",
60
- width: l.size,
61
- height: l.size,
60
+ width: t.size,
61
+ height: t.size,
62
62
  viewBox: "0 0 24 24",
63
63
  fill: "none",
64
64
  stroke: "currentColor",
@@ -67,21 +67,21 @@ const _e = {
67
67
  "stroke-linejoin": "round",
68
68
  "aria-hidden": "true"
69
69
  }, [
70
- (h(!0), v(B, null, Q(n.value, (s, _) => (h(), v("path", {
71
- key: _,
72
- d: s
73
- }, null, 8, Ge))), 128))
74
- ], 8, Be));
70
+ (h(!0), v(B, null, Q(n.value, (l, g) => (h(), v("path", {
71
+ key: g,
72
+ d: l
73
+ }, null, 8, Ue))), 128))
74
+ ], 8, Oe));
75
75
  }
76
76
  }), F = (t, e) => {
77
77
  const n = t.__vccOpts || t;
78
- for (const [l, o] of e)
79
- n[l] = o;
78
+ for (const [d, o] of e)
79
+ n[d] = o;
80
80
  return n;
81
- }, E = /* @__PURE__ */ F(Fe, [["__scopeId", "data-v-5a35fd97"]]), He = { class: "wi-right-panel__tabs" }, Ke = { class: "wi-right-panel__tabs-list" }, Ve = ["title", "onClick"], je = { class: "wi-right-panel__tab-title" }, Xe = {
81
+ }, I = /* @__PURE__ */ F(De, [["__scopeId", "data-v-5a35fd97"]]), Be = { class: "wi-right-panel__tabs" }, Ge = { class: "wi-right-panel__tabs-list" }, Fe = ["title", "onClick"], He = { class: "wi-right-panel__tab-title" }, Ke = {
82
82
  key: 0,
83
83
  class: "wi-right-panel__tab-loading"
84
- }, qe = ["onClick"], Je = ["title"], Qe = /* @__PURE__ */ G({
84
+ }, Ve = ["onClick"], je = ["title"], Xe = /* @__PURE__ */ G({
85
85
  __name: "RightPanelTabs",
86
86
  props: {
87
87
  tabs: {},
@@ -91,183 +91,183 @@ const _e = {
91
91
  emits: ["select", "close", "add", "toggle-maximize", "collapse"],
92
92
  setup(t, { emit: e }) {
93
93
  const n = e;
94
- return (l, o) => (h(), v("div", He, [
95
- d("div", Ke, [
96
- (h(!0), v(B, null, Q(l.tabs, (s) => (h(), v("button", {
97
- key: s.id,
94
+ return (d, o) => (h(), v("div", Be, [
95
+ u("div", Ge, [
96
+ (h(!0), v(B, null, Q(t.tabs, (l) => (h(), v("button", {
97
+ key: l.id,
98
98
  type: "button",
99
- class: se(["wi-right-panel__tab", { "is-active": s.id === l.activeId }]),
100
- title: s.title,
101
- onClick: (_) => n("select", s.id)
99
+ class: le(["wi-right-panel__tab", { "is-active": l.id === t.activeId }]),
100
+ title: l.title,
101
+ onClick: (g) => n("select", l.id)
102
102
  }, [
103
- M(E, {
104
- name: s.icon || "globe",
103
+ $(I, {
104
+ name: l.icon || "globe",
105
105
  size: 14
106
106
  }, null, 8, ["name"]),
107
- d("span", je, z(s.title), 1),
108
- s.loading ? (h(), v("span", Xe)) : P("", !0),
109
- d("span", {
107
+ u("span", He, R(l.title), 1),
108
+ l.loading ? (h(), v("span", Ke)) : P("", !0),
109
+ u("span", {
110
110
  class: "wi-right-panel__tab-close",
111
111
  title: "关闭标签页",
112
- onClick: le((_) => n("close", s.id), ["stop"])
112
+ onClick: se((g) => n("close", l.id), ["stop"])
113
113
  }, [
114
- M(E, {
114
+ $(I, {
115
115
  name: "close",
116
116
  size: 12
117
117
  })
118
- ], 8, qe)
119
- ], 10, Ve))), 128))
118
+ ], 8, Ve)
119
+ ], 10, Fe))), 128))
120
120
  ]),
121
- d("button", {
121
+ u("button", {
122
122
  type: "button",
123
123
  class: "wi-right-panel__tab-action",
124
124
  title: "新建标签页 Ctrl+Shift+B",
125
- onClick: o[0] || (o[0] = (s) => n("add"))
125
+ onClick: o[0] || (o[0] = (l) => n("add"))
126
126
  }, [
127
- M(E, {
127
+ $(I, {
128
128
  name: "plus",
129
129
  size: 15
130
130
  })
131
131
  ]),
132
- d("button", {
132
+ u("button", {
133
133
  type: "button",
134
134
  class: "wi-right-panel__tab-action wi-right-panel__tab-action--maximize",
135
- title: l.maximized ? "还原面板" : "最大化面板",
136
- onClick: o[1] || (o[1] = (s) => n("toggle-maximize"))
135
+ title: t.maximized ? "还原面板" : "最大化面板",
136
+ onClick: o[1] || (o[1] = (l) => n("toggle-maximize"))
137
137
  }, [
138
- M(E, {
139
- name: l.maximized ? "restore" : "maximize",
138
+ $(I, {
139
+ name: t.maximized ? "restore" : "maximize",
140
140
  size: 15
141
141
  }, null, 8, ["name"])
142
- ], 8, Je),
143
- d("button", {
142
+ ], 8, je),
143
+ u("button", {
144
144
  type: "button",
145
145
  class: "wi-right-panel__tab-action wi-right-panel__tab-action--collapse",
146
146
  title: "收起侧边栏",
147
- onClick: o[2] || (o[2] = (s) => n("collapse"))
147
+ onClick: o[2] || (o[2] = (l) => n("collapse"))
148
148
  }, [
149
- M(E, {
149
+ $(I, {
150
150
  name: "sidebar",
151
151
  size: 15
152
152
  })
153
153
  ])
154
154
  ]));
155
155
  }
156
- }), Ye = /* @__PURE__ */ F(Qe, [["__scopeId", "data-v-0f712f34"]]), $e = () => typeof window > "u" ? {} : window, Me = () => {
156
+ }), qe = /* @__PURE__ */ F(Xe, [["__scopeId", "data-v-0f712f34"]]), ye = () => typeof window > "u" ? {} : window, Te = () => {
157
157
  var e;
158
- const t = $e();
158
+ const t = ye();
159
159
  return !!((e = t.electronApp) != null && e.isElectron) || !!t.wiElectron || !!t.wiChatDesktop;
160
- }, Ze = { class: "wi-right-panel__toolbar" }, et = ["disabled"], tt = ["disabled"], nt = {
160
+ }, Je = { class: "wi-right-panel__toolbar" }, Qe = ["disabled"], Ye = ["disabled"], Ze = {
161
161
  key: 0,
162
162
  class: "wi-right-panel__address-loading"
163
- }, at = ["disabled"], it = /* @__PURE__ */ G({
163
+ }, et = ["disabled"], tt = /* @__PURE__ */ G({
164
164
  __name: "BrowserToolbar",
165
165
  props: {
166
166
  tab: {},
167
167
  panel: {}
168
168
  },
169
169
  setup(t) {
170
- const e = t, n = y(() => e.panel.canGoBack.value), l = y(() => e.panel.canGoForward.value), o = R(""), s = R();
170
+ const e = t, n = y(() => e.panel.canGoBack.value), d = y(() => e.panel.canGoForward.value), o = E(""), l = E();
171
171
  V(
172
172
  () => e.tab.url,
173
- (g) => {
174
- o.value = g ?? "";
173
+ (f) => {
174
+ o.value = f ?? "";
175
175
  },
176
176
  { immediate: !0 }
177
177
  );
178
- const _ = () => {
179
- const g = o.value.trim();
180
- g && e.panel.navigate(g);
178
+ const g = () => {
179
+ const f = o.value.trim();
180
+ f && e.panel.navigate(f);
181
181
  }, T = () => {
182
- const g = e.tab.url;
183
- !g || typeof window > "u" || window.open(g, "_blank", "noopener,noreferrer");
182
+ const f = e.tab.url;
183
+ !f || typeof window > "u" || window.open(f, "_blank", "noopener,noreferrer");
184
184
  };
185
- return (g, w) => (h(), v("div", Ze, [
186
- d("button", {
185
+ return (f, w) => (h(), v("div", Je, [
186
+ u("button", {
187
187
  type: "button",
188
188
  class: "wi-right-panel__tool",
189
189
  disabled: !n.value,
190
190
  title: "后退",
191
- onClick: w[0] || (w[0] = (b) => g.panel.goBack())
191
+ onClick: w[0] || (w[0] = (m) => t.panel.goBack())
192
192
  }, [
193
- M(E, {
193
+ $(I, {
194
194
  name: "arrow-left",
195
195
  size: 15
196
196
  })
197
- ], 8, et),
198
- d("button", {
197
+ ], 8, Qe),
198
+ u("button", {
199
199
  type: "button",
200
200
  class: "wi-right-panel__tool",
201
- disabled: !l.value,
201
+ disabled: !d.value,
202
202
  title: "前进",
203
- onClick: w[1] || (w[1] = (b) => g.panel.goForward())
203
+ onClick: w[1] || (w[1] = (m) => t.panel.goForward())
204
204
  }, [
205
- M(E, {
205
+ $(I, {
206
206
  name: "arrow-right",
207
207
  size: 15
208
208
  })
209
- ], 8, tt),
210
- d("button", {
209
+ ], 8, Ye),
210
+ u("button", {
211
211
  type: "button",
212
212
  class: "wi-right-panel__tool",
213
213
  title: "刷新",
214
- onClick: w[2] || (w[2] = (b) => g.panel.reload())
214
+ onClick: w[2] || (w[2] = (m) => t.panel.reload())
215
215
  }, [
216
- M(E, {
216
+ $(I, {
217
217
  name: "reload",
218
218
  size: 15
219
219
  })
220
220
  ]),
221
- d("form", {
221
+ u("form", {
222
222
  class: "wi-right-panel__address",
223
- onSubmit: le(_, ["prevent"])
223
+ onSubmit: se(g, ["prevent"])
224
224
  }, [
225
- M(E, {
225
+ $(I, {
226
226
  class: "wi-right-panel__address-icon",
227
227
  name: "search",
228
228
  size: 13
229
229
  }),
230
- be(d("input", {
230
+ ve(u("input", {
231
231
  ref_key: "inputRef",
232
- ref: s,
233
- "onUpdate:modelValue": w[3] || (w[3] = (b) => o.value = b),
232
+ ref: l,
233
+ "onUpdate:modelValue": w[3] || (w[3] = (m) => o.value = m),
234
234
  class: "wi-right-panel__address-input",
235
235
  type: "text",
236
236
  placeholder: "搜索或输入网址",
237
237
  spellcheck: "false",
238
238
  autocomplete: "off"
239
239
  }, null, 512), [
240
- [Ae, o.value]
240
+ [Le, o.value]
241
241
  ]),
242
- g.tab.loading ? (h(), v("span", nt)) : P("", !0)
242
+ t.tab.loading ? (h(), v("span", Ze)) : P("", !0)
243
243
  ], 32),
244
- d("button", {
244
+ u("button", {
245
245
  type: "button",
246
246
  class: "wi-right-panel__tool",
247
- disabled: !g.tab.url,
247
+ disabled: !t.tab.url,
248
248
  title: "在新窗口打开",
249
249
  onClick: T
250
250
  }, [
251
- M(E, {
251
+ $(I, {
252
252
  name: "external",
253
253
  size: 15
254
254
  })
255
- ], 8, at)
255
+ ], 8, et)
256
256
  ]));
257
257
  }
258
- }), Ie = /* @__PURE__ */ F(it, [["__scopeId", "data-v-89af1cad"]]), ot = {
258
+ }), ke = /* @__PURE__ */ F(tt, [["__scopeId", "data-v-89af1cad"]]), nt = {
259
259
  key: 0,
260
260
  class: "wi-right-panel__section"
261
- }, st = {
261
+ }, at = {
262
262
  key: 0,
263
263
  class: "wi-right-panel__section-title"
264
- }, lt = ["title", "onClick"], rt = { class: "wi-right-panel__tool-card-label" }, ct = {
264
+ }, it = ["title", "onClick"], ot = { class: "wi-right-panel__tool-card-label" }, lt = {
265
265
  key: 0,
266
266
  class: "wi-right-panel__tool-card-tag"
267
- }, dt = {
267
+ }, st = {
268
268
  key: 1,
269
269
  class: "wi-right-panel__tool-card-shortcut"
270
- }, ut = /* @__PURE__ */ G({
270
+ }, rt = /* @__PURE__ */ G({
271
271
  __name: "RightPanelToolList",
272
272
  props: {
273
273
  tools: {},
@@ -276,33 +276,33 @@ const _e = {
276
276
  },
277
277
  emits: ["tool-click"],
278
278
  setup(t, { emit: e }) {
279
- const n = e, l = (o) => {
279
+ const n = e, d = (o) => {
280
280
  n("tool-click", o);
281
281
  };
282
- return (o, s) => o.tools.length ? (h(), v("section", ot, [
283
- o.title ? (h(), v("h4", st, z(o.title), 1)) : P("", !0),
284
- d("div", {
282
+ return (o, l) => t.tools.length ? (h(), v("section", nt, [
283
+ t.title ? (h(), v("h4", at, R(t.title), 1)) : P("", !0),
284
+ u("div", {
285
285
  class: "wi-right-panel__tools",
286
- style: fe({ gridTemplateColumns: `repeat(${o.columns}, minmax(0, 1fr))` })
286
+ style: ge({ gridTemplateColumns: `repeat(${t.columns}, minmax(0, 1fr))` })
287
287
  }, [
288
- (h(!0), v(B, null, Q(o.tools, (_) => (h(), v("button", {
289
- key: _.key,
288
+ (h(!0), v(B, null, Q(t.tools, (g) => (h(), v("button", {
289
+ key: g.key,
290
290
  type: "button",
291
- class: se(["wi-right-panel__tool-card", { "is-disabled": _.disabled }]),
292
- title: _.description ?? _.label,
293
- onClick: (T) => l(_)
291
+ class: le(["wi-right-panel__tool-card", { "is-disabled": g.disabled }]),
292
+ title: g.description ?? g.label,
293
+ onClick: (T) => d(g)
294
294
  }, [
295
- M(E, {
296
- name: _.icon,
295
+ $(I, {
296
+ name: g.icon,
297
297
  size: 16
298
298
  }, null, 8, ["name"]),
299
- d("span", rt, z(_.label), 1),
300
- _.disabled ? (h(), v("span", ct, "即将支持")) : _.shortcut ? (h(), v("span", dt, z(_.shortcut), 1)) : P("", !0)
301
- ], 10, lt))), 128))
299
+ u("span", ot, R(g.label), 1),
300
+ g.disabled ? (h(), v("span", lt, "即将支持")) : g.shortcut ? (h(), v("span", st, R(g.shortcut), 1)) : P("", !0)
301
+ ], 10, it))), 128))
302
302
  ], 4)
303
303
  ])) : P("", !0);
304
304
  }
305
- }), pt = /* @__PURE__ */ F(ut, [["__scopeId", "data-v-edb8e61a"]]), ht = [], vt = [
305
+ }), ct = /* @__PURE__ */ F(rt, [["__scopeId", "data-v-edb8e61a"]]), dt = [], ut = [
306
306
  {
307
307
  title: "地图 Demo · OpenLayers",
308
308
  url: "https://openlayers.org/",
@@ -313,10 +313,10 @@ const _e = {
313
313
  url: "http://127.0.0.1:8890",
314
314
  description: "本机开发服务"
315
315
  }
316
- ], _t = (t) => (re("data-v-1d433f71"), t = t(), ce(), t), gt = { class: "wi-right-panel__newtab" }, bt = { class: "wi-right-panel__newtab-body" }, ft = { class: "wi-right-panel__hero" }, mt = { class: "wi-right-panel__hero-title" }, wt = { class: "wi-right-panel__hero-desc" }, yt = {
316
+ ], pt = { class: "wi-right-panel__newtab" }, ht = { class: "wi-right-panel__newtab-body" }, vt = { class: "wi-right-panel__hero" }, gt = { class: "wi-right-panel__hero-title" }, _t = { class: "wi-right-panel__hero-desc" }, bt = {
317
317
  key: 0,
318
318
  class: "wi-right-panel__section"
319
- }, Tt = /* @__PURE__ */ _t(() => /* @__PURE__ */ d("h4", { class: "wi-right-panel__section-title" }, "推荐", -1)), kt = { class: "wi-right-panel__recommendations" }, $t = ["title", "onClick"], Mt = { class: "wi-right-panel__recommendation-icon" }, It = { class: "wi-right-panel__recommendation-title" }, Et = /* @__PURE__ */ G({
319
+ }, ft = { class: "wi-right-panel__recommendations" }, mt = ["title", "onClick"], wt = { class: "wi-right-panel__recommendation-icon" }, yt = { class: "wi-right-panel__recommendation-title" }, Tt = /* @__PURE__ */ G({
320
320
  __name: "NewTabPanel",
321
321
  props: {
322
322
  tab: {},
@@ -324,72 +324,71 @@ const _e = {
324
324
  },
325
325
  emits: ["tool-click"],
326
326
  setup(t, { emit: e }) {
327
- const n = t, l = e, o = y(() => n.panel.options.tools ?? ht), s = y(() => n.panel.options.recommendations ?? vt), _ = Me() ? "在这里打开网页或终端,与对话并行使用;每个标签页都会各自保留页面状态。" : "在这里打开网页,与对话并行使用;每个标签页都会各自保留页面状态。", T = (b) => {
328
- l("tool-click", b);
329
- }, g = (b) => {
330
- n.panel.navigate(b.url, b.title);
331
- }, w = (b) => b.trim().charAt(0).toUpperCase() || "·";
332
- return (b, S) => (h(), v("div", gt, [
333
- M(Ie, {
334
- tab: b.tab,
335
- panel: b.panel
327
+ const n = t, d = e, o = y(() => n.panel.options.tools ?? dt), l = y(() => n.panel.options.recommendations ?? ut), g = Te() ? "在这里打开网页或终端,与对话并行使用;每个标签页都会各自保留页面状态。" : "在这里打开网页,与对话并行使用;每个标签页都会各自保留页面状态。", T = (m) => {
328
+ d("tool-click", m);
329
+ }, f = (m) => {
330
+ n.panel.navigate(m.url, m.title);
331
+ }, w = (m) => m.trim().charAt(0).toUpperCase() || "·";
332
+ return (m, z) => (h(), v("div", pt, [
333
+ $(ke, {
334
+ tab: t.tab,
335
+ panel: t.panel
336
336
  }, null, 8, ["tab", "panel"]),
337
- d("div", bt, [
338
- d("section", ft, [
339
- d("h3", mt, z(b.panel.options.newTabTitle), 1),
340
- d("p", wt, z(me(_)), 1)
337
+ u("div", ht, [
338
+ u("section", vt, [
339
+ u("h3", gt, R(t.panel.options.newTabTitle), 1),
340
+ u("p", _t, R(_e(g)), 1)
341
341
  ]),
342
- M(pt, {
342
+ $(ct, {
343
343
  tools: o.value,
344
344
  onToolClick: T
345
345
  }, null, 8, ["tools"]),
346
- s.value.length ? (h(), v("section", yt, [
347
- Tt,
348
- d("div", kt, [
349
- (h(!0), v(B, null, Q(s.value, ($) => (h(), v("button", {
350
- key: $.url,
346
+ l.value.length ? (h(), v("section", bt, [
347
+ z[0] || (z[0] = u("h4", { class: "wi-right-panel__section-title" }, "推荐", -1)),
348
+ u("div", ft, [
349
+ (h(!0), v(B, null, Q(l.value, (M) => (h(), v("button", {
350
+ key: M.url,
351
351
  type: "button",
352
352
  class: "wi-right-panel__recommendation",
353
- title: $.description ?? $.url,
354
- onClick: (m) => g($)
353
+ title: M.description ?? M.url,
354
+ onClick: (b) => f(M)
355
355
  }, [
356
- d("span", Mt, [
357
- $.icon ? (h(), we(E, {
356
+ u("span", wt, [
357
+ M.icon ? (h(), be(I, {
358
358
  key: 0,
359
- name: $.icon,
359
+ name: M.icon,
360
360
  size: 17
361
361
  }, null, 8, ["name"])) : (h(), v(B, { key: 1 }, [
362
- We(z(w($.title)), 1)
362
+ Ce(R(w(M.title)), 1)
363
363
  ], 64))
364
364
  ]),
365
- d("span", It, z($.title), 1)
366
- ], 8, $t))), 128))
365
+ u("span", yt, R(M.title), 1)
366
+ ], 8, mt))), 128))
367
367
  ])
368
368
  ])) : P("", !0)
369
369
  ])
370
370
  ]));
371
371
  }
372
- }), Rt = /* @__PURE__ */ F(Et, [["__scopeId", "data-v-1d433f71"]]), zt = {
372
+ }), kt = /* @__PURE__ */ F(Tt, [["__scopeId", "data-v-1d433f71"]]), Mt = {
373
373
  type: "newtab",
374
374
  defaultTitle: "新建标签页",
375
375
  icon: "newtab",
376
- component: Rt
377
- }, Pt = "persist:wi-right-panel", St = () => {
378
- var n, l, o;
379
- if (typeof window > "u" || typeof document > "u")
380
- return !1;
381
- const t = $e();
382
- return !!((n = t.electronApp) != null && n.isElectron) || !!t.wiElectron ? ((l = t.wiElectron) == null ? void 0 : l.rightPanelWebviewEnabled) === !0 || ((o = t.electronApp) == null ? void 0 : o.rightPanelWebviewEnabled) === !0 : !1;
383
- }, Lt = (t) => t || (St() ? "webview" : "iframe"), Ct = (t, e = Pt) => {
376
+ component: kt
377
+ }, $t = "persist:wi-right-panel", xt = () => {
378
+ var n, d, o;
379
+ if (typeof window > "u" || typeof document > "u") return !1;
380
+ const t = ye();
381
+ return !!((n = t.electronApp) != null && n.isElectron) || !!t.wiElectron ? ((d = t.wiElectron) == null ? void 0 : d.rightPanelWebviewEnabled) === !0 || ((o = t.electronApp) == null ? void 0 : o.rightPanelWebviewEnabled) === !0 : !1;
382
+ }, It = (t) => t || (xt() ? "webview" : "iframe"), Et = (t, e = $t) => {
384
383
  const n = document.createElement("webview");
385
384
  return n.className = "wi-right-panel__webview", n.style.display = "flex", n.style.width = "100%", n.style.height = "100%", n.style.background = "#fff", n.setAttribute("partition", e), t && n.setAttribute("src", t), n;
386
- }, xt = (t) => (re("data-v-4ee42504"), t = t(), ce(), t), At = { class: "wi-right-panel__web" }, Wt = {
385
+ }, Rt = { class: "wi-right-panel__web" }, zt = {
387
386
  key: 0,
388
387
  class: "wi-right-panel__frame-hint"
389
- }, Nt = /* @__PURE__ */ xt(() => /* @__PURE__ */ d("span", null, "部分网站禁止被内嵌;若页面空白或显示禁止图标,请点右上角在新窗口打开。", -1)), Ot = { class: "wi-right-panel__web-body" }, Ut = ["src", "title"], Dt = {
388
+ }, Pt = { class: "wi-right-panel__web-body" }, Lt = ["src", "title"], Ct = {
390
389
  key: 2,
391
390
  class: "wi-right-panel__blocked"
392
- }, Bt = { class: "wi-right-panel__blocked-title" }, Gt = { class: "wi-right-panel__blocked-desc" }, Ft = /* @__PURE__ */ G({
391
+ }, St = { class: "wi-right-panel__blocked-title" }, At = { class: "wi-right-panel__blocked-desc" }, Wt = /* @__PURE__ */ G({
393
392
  __name: "WebPanel",
394
393
  props: {
395
394
  tab: {},
@@ -397,26 +396,26 @@ const _e = {
397
396
  runtime: {}
398
397
  },
399
398
  setup(t) {
400
- const e = t, n = Lt(e.runtime) === "webview", l = y(() => `${e.tab.id}-${e.tab.reloadKey ?? 0}`), o = R(!1), s = () => {
401
- o.value = !1, e.panel.reload(), n || b();
402
- }, _ = () => {
399
+ const e = t, n = It(e.runtime) === "webview", d = y(() => `${e.tab.id}-${e.tab.reloadKey ?? 0}`), o = E(!1), l = () => {
400
+ o.value = !1, e.panel.reload(), n || m();
401
+ }, g = () => {
403
402
  const i = e.tab.url;
404
403
  !i || typeof window > "u" || window.open(i, "_blank", "noopener,noreferrer");
405
- }, T = R(!1);
406
- let g;
404
+ }, T = E(!1);
405
+ let f;
407
406
  const w = () => {
408
- g && clearTimeout(g), g = void 0;
407
+ f && clearTimeout(f), f = void 0;
409
408
  };
410
- function b() {
411
- w(), T.value = !1, o.value = !1, g = setTimeout(() => {
409
+ function m() {
410
+ w(), T.value = !1, o.value = !1, f = setTimeout(() => {
412
411
  T.value || (o.value = !0);
413
412
  }, 8e3);
414
413
  }
415
- const S = (i) => {
416
- var u, k;
414
+ const z = (i) => {
415
+ var s, k;
417
416
  T.value = !0, o.value = !1, w(), e.panel.updateTab(e.tab.id, { loading: !1 });
418
417
  try {
419
- const D = (k = (u = i.target.contentDocument) == null ? void 0 : u.title) == null ? void 0 : k.trim();
418
+ const D = (k = (s = i.target.contentDocument) == null ? void 0 : s.title) == null ? void 0 : k.trim();
420
419
  D && e.panel.updateTab(e.tab.id, { title: D });
421
420
  } catch {
422
421
  }
@@ -424,113 +423,111 @@ const _e = {
424
423
  V(
425
424
  () => e.tab.url,
426
425
  (i) => {
427
- !i || n || (e.panel.updateTab(e.tab.id, { loading: !0 }), b());
426
+ !i || n || (e.panel.updateTab(e.tab.id, { loading: !0 }), m());
428
427
  }
429
428
  );
430
- const $ = R();
431
- let m = null;
432
- const C = R(e.tab.url ?? "");
433
- let x = "";
429
+ const M = E();
430
+ let b = null;
431
+ const C = E(e.tab.url ?? "");
432
+ let S = "";
434
433
  const W = (i) => {
435
434
  if (i) {
436
- if (!m) {
437
- x = i;
435
+ if (!b) {
436
+ S = i;
438
437
  return;
439
438
  }
440
- i !== C.value && (C.value = i, e.panel.updateTab(e.tab.id, { loading: !0 }), m.setAttribute("src", i));
439
+ i !== C.value && (C.value = i, e.panel.updateTab(e.tab.id, { loading: !0 }), b.setAttribute("src", i));
441
440
  }
442
441
  }, H = () => {
443
442
  o.value = !1, e.panel.updateTab(e.tab.id, { loading: !0 });
444
443
  }, X = () => {
445
444
  e.panel.updateTab(e.tab.id, { loading: !1 });
446
445
  }, N = (i) => {
447
- const u = i;
448
- u.isMainFrame === !1 || !u.url || u.url === "about:blank" || (C.value = u.url, e.panel.recordNavigation(u.url, void 0, e.tab.id));
446
+ const s = i;
447
+ s.isMainFrame === !1 || !s.url || s.url === "about:blank" || (C.value = s.url, e.panel.recordNavigation(s.url, void 0, e.tab.id));
449
448
  }, O = (i) => {
450
- const u = i;
451
- u.title && e.panel.updateTab(e.tab.id, { title: u.title });
449
+ const s = i;
450
+ s.title && e.panel.updateTab(e.tab.id, { title: s.title });
452
451
  }, q = (i) => {
453
- const u = i;
454
- u.isMainFrame === !1 || !u.errorCode || u.errorCode === -3 || (o.value = !0, e.panel.updateTab(e.tab.id, { loading: !1 }));
452
+ const s = i;
453
+ s.isMainFrame === !1 || !s.errorCode || s.errorCode === -3 || (o.value = !0, e.panel.updateTab(e.tab.id, { loading: !1 }));
455
454
  }, U = () => {
456
- if (!m)
457
- return;
458
- const i = typeof m.getURL == "function" ? m.getURL() : m.getAttribute("src") || "";
459
- if (i && (C.value = i), e.panel.updateTab(e.tab.id, { loading: !1 }), x) {
460
- const u = x;
461
- x = "", W(u);
455
+ if (!b) return;
456
+ const i = typeof b.getURL == "function" ? b.getURL() : b.getAttribute("src") || "";
457
+ if (i && (C.value = i), e.panel.updateTab(e.tab.id, { loading: !1 }), S) {
458
+ const s = S;
459
+ S = "", W(s);
462
460
  }
463
461
  }, K = () => {
464
- if (!n || !$.value)
465
- return;
466
- const i = Ct(e.tab.url ?? "");
467
- m = i, i.addEventListener("did-start-loading", H), i.addEventListener("did-stop-loading", X), i.addEventListener("did-navigate", N), i.addEventListener("did-navigate-in-page", N), i.addEventListener("page-title-updated", O), i.addEventListener("did-fail-load", q), i.addEventListener("dom-ready", U), $.value.replaceChildren(i);
462
+ if (!n || !M.value) return;
463
+ const i = Et(e.tab.url ?? "");
464
+ b = i, i.addEventListener("did-start-loading", H), i.addEventListener("did-stop-loading", X), i.addEventListener("did-navigate", N), i.addEventListener("did-navigate-in-page", N), i.addEventListener("page-title-updated", O), i.addEventListener("did-fail-load", q), i.addEventListener("dom-ready", U), M.value.replaceChildren(i);
468
465
  };
469
466
  return V(
470
467
  () => e.tab.url,
471
468
  (i) => {
472
469
  !i || !n || W(i);
473
470
  }
474
- ), ye(() => {
475
- n ? K() : b();
476
- }), Te(() => {
477
- w(), m && (m.remove(), m = null);
478
- }), (i, u) => (h(), v("div", At, [
479
- M(Ie, {
480
- tab: i.tab,
481
- panel: i.panel
471
+ ), fe(() => {
472
+ n ? K() : m();
473
+ }), me(() => {
474
+ w(), b && (b.remove(), b = null);
475
+ }), (i, s) => (h(), v("div", Rt, [
476
+ $(ke, {
477
+ tab: t.tab,
478
+ panel: t.panel
482
479
  }, null, 8, ["tab", "panel"]),
483
- n ? P("", !0) : (h(), v("div", Wt, [
484
- M(E, {
480
+ n ? P("", !0) : (h(), v("div", zt, [
481
+ $(I, {
485
482
  name: "alert",
486
483
  size: 12
487
484
  }),
488
- Nt
485
+ s[0] || (s[0] = u("span", null, "部分网站禁止被内嵌;若页面空白或显示禁止图标,请点右上角在新窗口打开。", -1))
489
486
  ])),
490
- d("div", Ot, [
487
+ u("div", Pt, [
491
488
  n ? (h(), v("div", {
492
489
  key: 0,
493
490
  ref_key: "webviewHostRef",
494
- ref: $,
491
+ ref: M,
495
492
  class: "wi-right-panel__webview-host"
496
- }, null, 512)) : i.tab.url ? (h(), v("iframe", {
497
- key: l.value,
493
+ }, null, 512)) : t.tab.url ? (h(), v("iframe", {
494
+ key: d.value,
498
495
  class: "wi-right-panel__iframe",
499
- src: i.tab.url,
500
- title: i.tab.title,
496
+ src: t.tab.url,
497
+ title: t.tab.title,
501
498
  referrerpolicy: "no-referrer",
502
- onLoad: S
503
- }, null, 40, Ut)) : P("", !0),
504
- o.value ? (h(), v("div", Dt, [
505
- M(E, {
499
+ onLoad: z
500
+ }, null, 40, Lt)) : P("", !0),
501
+ o.value ? (h(), v("div", Ct, [
502
+ $(I, {
506
503
  name: "alert",
507
504
  size: 30
508
505
  }),
509
- d("p", Bt, z(n ? "页面加载失败" : "该页面可能不允许被嵌入"), 1),
510
- d("p", Gt, z(n ? "请检查网络或地址是否正确,也可以在新窗口打开。" : "部分网站会通过 X-Frame-Options / CSP 禁止在 iframe 中打开,可在新窗口访问。"), 1),
511
- d("div", { class: "wi-right-panel__blocked-actions" }, [
512
- d("button", {
506
+ u("p", St, R(n ? "页面加载失败" : "该页面可能不允许被嵌入"), 1),
507
+ u("p", At, R(n ? "请检查网络或地址是否正确,也可以在新窗口打开。" : "部分网站会通过 X-Frame-Options / CSP 禁止在 iframe 中打开,可在新窗口访问。"), 1),
508
+ u("div", { class: "wi-right-panel__blocked-actions" }, [
509
+ u("button", {
513
510
  type: "button",
514
511
  class: "wi-right-panel__ghost-button",
515
- onClick: s
512
+ onClick: l
516
513
  }, "重试"),
517
- d("button", {
514
+ u("button", {
518
515
  type: "button",
519
516
  class: "wi-right-panel__primary-button",
520
- onClick: _
517
+ onClick: g
521
518
  }, "在新窗口打开")
522
519
  ])
523
520
  ])) : P("", !0)
524
521
  ])
525
522
  ]));
526
523
  }
527
- }), Ht = /* @__PURE__ */ F(Ft, [["__scopeId", "data-v-4ee42504"]]), Kt = {
524
+ }), Nt = /* @__PURE__ */ F(Wt, [["__scopeId", "data-v-4ee42504"]]), Ot = {
528
525
  type: "web",
529
526
  defaultTitle: "网页",
530
527
  icon: "globe",
531
- component: Ht
532
- }, Ee = [zt, Kt], Re = (t = []) => {
533
- const e = Ne(/* @__PURE__ */ new Map());
528
+ component: Nt
529
+ }, Me = [Mt, Ot], $e = (t = []) => {
530
+ const e = Se(/* @__PURE__ */ new Map());
534
531
  return t.forEach((n) => e.set(n.type, n)), {
535
532
  register(n) {
536
533
  return e.set(n.type, n), () => {
@@ -544,12 +541,12 @@ const _e = {
544
541
  return Array.from(e.values());
545
542
  }
546
543
  };
547
- }, de = Re(Ee), bn = (t, e = de) => e.register(t), fn = (t, e = de) => e.get(t), ze = "https://www.bing.com/search?q={q}", Vt = Math.random().toString(36).slice(2, 8), jt = {
544
+ }, re = $e(Me), sn = (t, e = re) => e.register(t), rn = (t, e = re) => e.get(t), xe = "https://www.bing.com/search?q={q}", Ut = Math.random().toString(36).slice(2, 8), Dt = {
548
545
  initialWidth: 480,
549
546
  minWidth: 360,
550
547
  maxWidth: 900,
551
548
  maxTabs: 10,
552
- searchUrlTemplate: ze,
549
+ searchUrlTemplate: xe,
553
550
  defaultTabType: "newtab",
554
551
  newTabTitle: "新建标签页"
555
552
  }, Z = (t) => {
@@ -558,134 +555,124 @@ const _e = {
558
555
  } catch {
559
556
  return t;
560
557
  }
561
- }, ae = (t, e = ze) => {
558
+ }, ae = (t, e = xe) => {
562
559
  const n = (t ?? "").trim();
563
- if (!n || /^(javascript|data|vbscript|file|about):/i.test(n))
564
- return "";
565
- if (/^https?:\/\//i.test(n))
566
- return n;
560
+ if (!n || /^(javascript|data|vbscript|file|about):/i.test(n)) return "";
561
+ if (/^https?:\/\//i.test(n)) return n;
567
562
  if (/^([\w-]+\.)*[\w-]+(:\d+)?(\/\S*)?$/i.test(n)) {
568
563
  if (/^localhost(:\d+)?(\/.*)?$/i.test(n) || /^(\d{1,3}\.){3}\d{1,3}(:\d+)?(\/.*)?$/i.test(n))
569
564
  return `http://${n}`;
570
- if (/^[\w.-]+:\d+/.test(n))
571
- return `http://${n}`;
572
- if (/^([\w-]+\.)+[a-z]{2,}(:\d+)?(\/.*)?$/i.test(n))
573
- return `https://${n}`;
565
+ if (/^[\w.-]+:\d+/.test(n)) return `http://${n}`;
566
+ if (/^([\w-]+\.)+[a-z]{2,}(:\d+)?(\/.*)?$/i.test(n)) return `https://${n}`;
574
567
  }
575
568
  return e.replace("{q}", encodeURIComponent(n));
576
- }, Xt = (t = {}) => {
577
- const e = ke({
578
- ...jt,
569
+ }, Bt = (t = {}) => {
570
+ const e = we({
571
+ ...Dt,
579
572
  ...Object.fromEntries(Object.entries(t).filter(([a, r]) => a !== "registry" && r !== void 0))
580
- }), n = t.registry ?? Re(Ee), l = R(!1), o = R([]), s = R(""), _ = R(!1), T = R(!1);
581
- let g = 0;
582
- const w = () => `right-panel-${++g}-${Vt}`, b = () => typeof window > "u" ? e.maxWidth : Math.min(e.maxWidth, Math.max(e.minWidth, window.innerWidth * 0.7)), S = (a) => {
583
- const r = b();
573
+ }), n = t.registry ?? $e(Me), d = E(!1), o = E([]), l = E(""), g = E(!1), T = E(!1);
574
+ let f = 0;
575
+ const w = () => `right-panel-${++f}-${Ut}`, m = () => typeof window > "u" ? e.maxWidth : Math.min(e.maxWidth, Math.max(e.minWidth, window.innerWidth * 0.7)), z = (a) => {
576
+ const r = m();
584
577
  return Math.round(Math.min(Math.max(a, e.minWidth), r));
585
- }, $ = R(S(t.initialWidth ?? e.initialWidth)), m = y(() => o.value.find((a) => a.id === s.value) ?? null), C = y(() => {
578
+ }, M = E(z(t.initialWidth ?? e.initialWidth)), b = y(() => o.value.find((a) => a.id === l.value) ?? null), C = y(() => {
586
579
  var a;
587
- return (((a = m.value) == null ? void 0 : a.historyIndex) ?? -1) > 0;
588
- }), x = y(() => {
589
- const a = m.value;
580
+ return (((a = b.value) == null ? void 0 : a.historyIndex) ?? -1) > 0;
581
+ }), S = y(() => {
582
+ const a = b.value;
590
583
  return !!a && a.historyIndex >= 0 && a.historyIndex < a.history.length - 1;
591
584
  }), W = () => {
592
- l.value = !0;
585
+ d.value = !0;
593
586
  }, H = () => {
594
- l.value = !1, _.value = !1;
587
+ d.value = !1, g.value = !1;
595
588
  }, X = () => {
596
- l.value = !l.value, l.value || (_.value = !1);
589
+ d.value = !d.value, d.value || (g.value = !1);
597
590
  }, N = (a) => {
598
- _.value = a, a && (l.value = !0);
599
- }, O = () => N(!_.value), q = (a) => {
600
- $.value = S(a);
591
+ g.value = a, a && (d.value = !0);
592
+ }, O = () => N(!g.value), q = (a) => {
593
+ M.value = z(a);
601
594
  }, U = (a) => {
602
- var ve;
603
- const r = typeof a == "string" ? { type: a } : a ?? {}, f = r.type ?? e.defaultTabType, c = n.get(f);
595
+ var ue;
596
+ const r = typeof a == "string" ? { type: a } : a ?? {}, _ = r.type ?? e.defaultTabType, c = n.get(_);
604
597
  if (c != null && c.singleton) {
605
- const ne = o.value.find((xe) => xe.type === f);
598
+ const ne = o.value.find((Pe) => Pe.type === _);
606
599
  if (ne)
607
- return s.value = ne.id, l.value = !0, ne;
600
+ return l.value = ne.id, d.value = !0, ne;
608
601
  }
609
- if (o.value.length >= e.maxTabs)
610
- return null;
611
- const p = ((ve = c == null ? void 0 : c.createTab) == null ? void 0 : ve.call(c, r)) ?? {}, I = r.url ?? p.url ?? "", Y = w(), te = {
602
+ if (o.value.length >= e.maxTabs) return null;
603
+ const p = ((ue = c == null ? void 0 : c.createTab) == null ? void 0 : ue.call(c, r)) ?? {}, x = r.url ?? p.url ?? "", Y = w(), te = {
612
604
  ...p,
613
605
  id: Y,
614
- type: f,
615
- title: r.title ?? p.title ?? (c == null ? void 0 : c.defaultTitle) ?? f,
616
- icon: r.icon ?? p.icon ?? (c == null ? void 0 : c.icon) ?? (f === "newtab" ? "newtab" : "globe"),
617
- url: I || void 0,
606
+ type: _,
607
+ title: r.title ?? p.title ?? (c == null ? void 0 : c.defaultTitle) ?? _,
608
+ icon: r.icon ?? p.icon ?? (c == null ? void 0 : c.icon) ?? (_ === "newtab" ? "newtab" : "globe"),
609
+ url: x || void 0,
618
610
  // 调用方传入的 data 优先于面板定义 createTab 的默认 data
619
611
  data: r.data ?? p.data,
620
- history: I ? [I] : [],
621
- historyIndex: I ? 0 : -1,
612
+ history: x ? [x] : [],
613
+ historyIndex: x ? 0 : -1,
622
614
  loading: !1,
623
615
  reloadKey: 0
624
616
  };
625
- return I && !r.title && !p.title && (te.title = Z(I)), o.value.push(te), r.activate !== !1 && (s.value = Y), l.value = !0, te;
617
+ return x && !r.title && !p.title && (te.title = Z(x)), o.value.push(te), r.activate !== !1 && (l.value = Y), d.value = !0, te;
626
618
  }, K = (a, r) => {
627
- const f = ae(a, e.searchUrlTemplate);
628
- return f ? U({ type: "web", url: f, title: r }) : null;
629
- }, i = (a) => !!a && (a.type === "web" || a.type === "newtab"), u = (a, r) => {
630
- const f = ae(a, e.searchUrlTemplate);
631
- if (!f)
632
- return;
633
- const c = m.value;
619
+ const _ = ae(a, e.searchUrlTemplate);
620
+ return _ ? U({ type: "web", url: _, title: r }) : null;
621
+ }, i = (a) => !!a && (a.type === "web" || a.type === "newtab"), s = (a, r) => {
622
+ const _ = ae(a, e.searchUrlTemplate);
623
+ if (!_) return;
624
+ const c = b.value;
634
625
  if (!i(c)) {
635
- U({ type: "web", url: f, title: r });
626
+ U({ type: "web", url: _, title: r });
636
627
  return;
637
628
  }
638
- if (c.url === f) {
629
+ if (c.url === _) {
639
630
  c.reloadKey = (c.reloadKey ?? 0) + 1, c.loading = !0;
640
631
  return;
641
632
  }
642
633
  const p = c.history.slice(0, c.historyIndex + 1);
643
- p.push(f), c.type = "web", c.icon = "globe", c.url = f, c.title = r ?? Z(f), c.history = p, c.historyIndex = p.length - 1, c.loading = !0;
634
+ p.push(_), c.type = "web", c.icon = "globe", c.url = _, c.title = r ?? Z(_), c.history = p, c.historyIndex = p.length - 1, c.loading = !0;
644
635
  }, k = (a) => {
645
- u(a);
636
+ s(a);
646
637
  }, A = (a) => {
647
638
  const r = o.value.findIndex((c) => c.id === a);
648
- if (r < 0)
649
- return;
639
+ if (r < 0) return;
650
640
  if (o.value.splice(r, 1), !o.value.length) {
651
- s.value = "", H();
641
+ l.value = "", H();
652
642
  return;
653
643
  }
654
- if (s.value !== a)
655
- return;
656
- const f = o.value[r] ?? o.value[r - 1] ?? null;
657
- s.value = (f == null ? void 0 : f.id) ?? "";
644
+ if (l.value !== a) return;
645
+ const _ = o.value[r] ?? o.value[r - 1] ?? null;
646
+ l.value = (_ == null ? void 0 : _.id) ?? "";
658
647
  }, D = (a) => {
659
- o.value.some((r) => r.id === a) && (s.value = a);
648
+ o.value.some((r) => r.id === a) && (l.value = a);
660
649
  }, ee = (a, r) => {
661
- const f = o.value.find((c) => c.id === a);
662
- f && Object.assign(f, r);
663
- }, Ce = (a, r, f) => {
650
+ const _ = o.value.find((c) => c.id === a);
651
+ _ && Object.assign(_, r);
652
+ }, ze = (a, r, _) => {
664
653
  const c = ae(a, e.searchUrlTemplate);
665
- if (!c)
666
- return;
667
- const p = f ? o.value.find((Y) => Y.id === f) : m.value;
668
- if (!p || p.type !== "web" && p.type !== "newtab")
669
- return;
654
+ if (!c) return;
655
+ const p = _ ? o.value.find((Y) => Y.id === _) : b.value;
656
+ if (!p || p.type !== "web" && p.type !== "newtab") return;
670
657
  if (p.url === c) {
671
658
  r && (p.title = r);
672
659
  return;
673
660
  }
674
- const I = p.history.slice(0, p.historyIndex + 1);
675
- I.push(c), p.type === "newtab" && (p.type = "web", p.icon = "globe"), p.url = c, p.title = r ?? Z(c), p.history = I, p.historyIndex = I.length - 1;
676
- }, he = (a) => {
677
- const r = m.value;
661
+ const x = p.history.slice(0, p.historyIndex + 1);
662
+ x.push(c), p.type === "newtab" && (p.type = "web", p.icon = "globe"), p.url = c, p.title = r ?? Z(c), p.history = x, p.historyIndex = x.length - 1;
663
+ }, de = (a) => {
664
+ const r = b.value;
678
665
  !r || a < 0 || a >= r.history.length || (r.historyIndex = a, r.url = r.history[a], r.title = Z(r.url), r.loading = !0);
679
666
  };
680
667
  return {
681
- isOpen: l,
682
- width: $,
683
- maximized: _,
668
+ isOpen: d,
669
+ width: M,
670
+ maximized: g,
684
671
  tabs: o,
685
- activeTabId: s,
686
- activeTab: m,
672
+ activeTabId: l,
673
+ activeTab: b,
687
674
  canGoBack: C,
688
- canGoForward: x,
675
+ canGoForward: S,
689
676
  isRestoring: T,
690
677
  options: e,
691
678
  registry: n,
@@ -701,22 +688,22 @@ const _e = {
701
688
  closeTab: A,
702
689
  activateTab: D,
703
690
  updateTab: ee,
704
- navigate: u,
705
- recordNavigation: Ce,
691
+ navigate: s,
692
+ recordNavigation: ze,
706
693
  goBack: () => {
707
- const a = m.value;
708
- a && he(a.historyIndex - 1);
694
+ const a = b.value;
695
+ a && de(a.historyIndex - 1);
709
696
  },
710
697
  goForward: () => {
711
- const a = m.value;
712
- a && he(a.historyIndex + 1);
698
+ const a = b.value;
699
+ a && de(a.historyIndex + 1);
713
700
  },
714
701
  reload: () => {
715
- const a = m.value;
702
+ const a = b.value;
716
703
  a && (a.reloadKey = (a.reloadKey ?? 0) + 1, a.loading = !0);
717
704
  },
718
705
  reset: () => {
719
- o.value = [], s.value = "", l.value = !1, _.value = !1, $.value = S(e.initialWidth);
706
+ o.value = [], l.value = "", d.value = !1, g.value = !1, M.value = z(e.initialWidth);
720
707
  },
721
708
  snapshot: () => o.value.map((a) => ({
722
709
  id: a.id,
@@ -731,42 +718,42 @@ const _e = {
731
718
  restore: (a, r) => {
732
719
  var c;
733
720
  T.value = !0, o.value = (a ?? []).map((p) => {
734
- var I;
721
+ var x;
735
722
  return {
736
723
  ...p,
737
724
  history: [...p.history ?? []],
738
- historyIndex: Math.min(Math.max(p.historyIndex ?? -1, -1), (((I = p.history) == null ? void 0 : I.length) ?? 0) - 1),
725
+ historyIndex: Math.min(Math.max(p.historyIndex ?? -1, -1), (((x = p.history) == null ? void 0 : x.length) ?? 0) - 1),
739
726
  data: p.data ? { ...p.data } : void 0,
740
727
  loading: !1,
741
728
  reloadKey: 0
742
729
  };
743
730
  }), o.value.forEach((p) => {
744
- const I = /^right-panel-(\d+)(?:-|$)/.exec(p.id);
745
- I && (g = Math.max(g, Number(I[1])));
731
+ const x = /^right-panel-(\d+)(?:-|$)/.exec(p.id);
732
+ x && (f = Math.max(f, Number(x[1])));
746
733
  });
747
- const f = r && o.value.some((p) => p.id === r) ? r : ((c = o.value[0]) == null ? void 0 : c.id) ?? "";
748
- s.value = f, Oe(() => {
734
+ const _ = r && o.value.some((p) => p.id === r) ? r : ((c = o.value[0]) == null ? void 0 : c.id) ?? "";
735
+ l.value = _, Ae(() => {
749
736
  T.value = !1;
750
737
  });
751
738
  }
752
739
  };
753
740
  };
754
741
  let ie;
755
- const j = () => (ie || (ie = Xt({ registry: de })), ie), mn = (t) => {
742
+ const j = () => (ie || (ie = Bt({ registry: re })), ie), cn = (t) => {
756
743
  const e = j();
757
744
  Object.assign(e.options, t), typeof t.initialWidth == "number" && e.setWidth(t.initialWidth);
758
- }, wn = () => {
745
+ }, dn = () => {
759
746
  j().reset();
760
- }, ue = (t) => (re("data-v-752ff3da"), t = t(), ce(), t), qt = { class: "wi-right-panel__body" }, Jt = {
747
+ }, Gt = { class: "wi-right-panel__body" }, Ft = {
761
748
  key: 1,
762
749
  class: "wi-right-panel__unknown"
763
- }, Qt = { class: "wi-right-panel__unknown-title" }, Yt = /* @__PURE__ */ ue(() => /* @__PURE__ */ d("p", { class: "wi-right-panel__unknown-desc" }, "请先通过 registerRightPanel 注册该类型的面板组件。", -1)), Zt = {
750
+ }, Ht = { class: "wi-right-panel__unknown-title" }, Kt = {
764
751
  key: 1,
765
752
  class: "wi-right-panel__lazy"
766
- }, en = { class: "wi-right-panel__lazy-title" }, tn = /* @__PURE__ */ ue(() => /* @__PURE__ */ d("p", { class: "wi-right-panel__lazy-desc" }, "点击标签页加载内容", -1)), nn = {
753
+ }, Vt = { class: "wi-right-panel__lazy-title" }, jt = {
767
754
  key: 0,
768
755
  class: "wi-right-panel__empty"
769
- }, an = { class: "wi-right-panel__empty-icon" }, on = /* @__PURE__ */ ue(() => /* @__PURE__ */ d("p", { class: "wi-right-panel__empty-title" }, "还没有打开任何标签页", -1)), sn = { class: "wi-right-panel__empty-desc" }, ln = /* @__PURE__ */ G({
756
+ }, Xt = { class: "wi-right-panel__empty-icon" }, qt = { class: "wi-right-panel__empty-desc" }, Jt = /* @__PURE__ */ G({
770
757
  __name: "RightPanel",
771
758
  props: {
772
759
  panel: {},
@@ -774,95 +761,93 @@ const j = () => (ie || (ie = Xt({ registry: de })), ie), mn = (t) => {
774
761
  },
775
762
  emits: ["tool-click"],
776
763
  setup(t, { expose: e, emit: n }) {
777
- const l = t, o = n, s = y(() => l.panel ?? j()), _ = Me() ? "在这里打开网页或终端,与对话并行使用。" : "在这里打开网页,与对话并行使用。", T = y(() => s.value.isOpen.value), g = y(() => s.value.width.value), w = y(() => s.value.maximized.value), b = y(() => s.value.tabs.value), S = y(() => s.value.activeTabId.value), $ = y(() => b.value.map((i) => ({ tab: i, definition: s.value.registry.get(i.type) }))), m = ke(/* @__PURE__ */ new Set());
764
+ const d = t, o = n, l = y(() => d.panel ?? j()), g = Te() ? "在这里打开网页或终端,与对话并行使用。" : "在这里打开网页,与对话并行使用。", T = y(() => l.value.isOpen.value), f = y(() => l.value.width.value), w = y(() => l.value.maximized.value), m = y(() => l.value.tabs.value), z = y(() => l.value.activeTabId.value), M = y(() => m.value.map((i) => ({ tab: i, definition: l.value.registry.get(i.type) }))), b = we(/* @__PURE__ */ new Set());
778
765
  V(
779
- S,
766
+ z,
780
767
  (i) => {
781
- i && m.add(i);
768
+ i && b.add(i);
782
769
  },
783
770
  { immediate: !0 }
784
771
  ), V(
785
- () => b.value.map((i) => i.id).join("|"),
772
+ () => m.value.map((i) => i.id).join("|"),
786
773
  () => {
787
- const i = new Set(b.value.map((u) => u.id));
788
- Array.from(m).forEach((u) => {
789
- i.has(u) || m.delete(u);
774
+ const i = new Set(m.value.map((s) => s.id));
775
+ Array.from(b).forEach((s) => {
776
+ i.has(s) || b.delete(s);
790
777
  });
791
778
  }
792
779
  );
793
- const C = (i) => s.value.activateTab(i), x = (i) => s.value.closeTab(i), W = () => s.value.addTab(), H = () => s.value.close(), X = () => s.value.toggleMaximized(), N = (i) => o("tool-click", i), O = R(!1), q = (i) => {
794
- if (typeof window > "u")
795
- return;
780
+ const C = (i) => l.value.activateTab(i), S = (i) => l.value.closeTab(i), W = () => l.value.addTab(), H = () => l.value.close(), X = () => l.value.toggleMaximized(), N = (i) => o("tool-click", i), O = E(!1), q = (i) => {
781
+ if (typeof window > "u") return;
796
782
  O.value = !0;
797
- const u = i.clientX, k = g.value, A = (ee) => {
798
- s.value.setWidth(k + (u - ee.clientX));
783
+ const s = i.clientX, k = f.value, A = (ee) => {
784
+ l.value.setWidth(k + (s - ee.clientX));
799
785
  }, D = () => {
800
786
  O.value = !1, window.removeEventListener("pointermove", A), window.removeEventListener("pointerup", D);
801
787
  };
802
788
  window.addEventListener("pointermove", A), window.addEventListener("pointerup", D);
803
- }, U = () => s.value.setWidth(s.value.options.initialWidth), K = (i) => {
804
- if (!l.enableShortcut || !(i.ctrlKey || i.metaKey) || !i.shiftKey || i.key.toLowerCase() !== "b")
805
- return;
806
- const u = i.target, k = u == null ? void 0 : u.tagName;
807
- k === "INPUT" || k === "TEXTAREA" || u != null && u.isContentEditable || (i.preventDefault(), s.value.addTab());
789
+ }, U = () => l.value.setWidth(l.value.options.initialWidth), K = (i) => {
790
+ if (!d.enableShortcut || !(i.ctrlKey || i.metaKey) || !i.shiftKey || i.key.toLowerCase() !== "b") return;
791
+ const s = i.target, k = s == null ? void 0 : s.tagName;
792
+ k === "INPUT" || k === "TEXTAREA" || s != null && s.isContentEditable || (i.preventDefault(), l.value.addTab());
808
793
  };
809
- return ye(() => window.addEventListener("keydown", K)), Te(() => window.removeEventListener("keydown", K)), e({ panel: s }), (i, u) => T.value ? (h(), v("aside", {
794
+ return fe(() => window.addEventListener("keydown", K)), me(() => window.removeEventListener("keydown", K)), e({ panel: l }), (i, s) => T.value ? (h(), v("aside", {
810
795
  key: 0,
811
- class: se(["wi-right-panel", { "is-resizing": O.value, "is-maximized": w.value }]),
812
- style: fe(w.value ? void 0 : { width: `${g.value}px` })
796
+ class: le(["wi-right-panel", { "is-resizing": O.value, "is-maximized": w.value }]),
797
+ style: ge(w.value ? void 0 : { width: `${f.value}px` })
813
798
  }, [
814
799
  w.value ? P("", !0) : (h(), v("span", {
815
800
  key: 0,
816
801
  class: "wi-right-panel__resizer",
817
802
  title: "拖拽调整宽度,双击恢复默认",
818
- onPointerdown: le(q, ["stop", "prevent"]),
803
+ onPointerdown: se(q, ["stop", "prevent"]),
819
804
  onDblclick: U
820
805
  }, null, 32)),
821
- M(Ye, {
822
- tabs: b.value,
823
- "active-id": S.value,
806
+ $(qe, {
807
+ tabs: m.value,
808
+ "active-id": z.value,
824
809
  maximized: w.value,
825
810
  onSelect: C,
826
- onClose: x,
811
+ onClose: S,
827
812
  onAdd: W,
828
813
  onCollapse: H,
829
814
  onToggleMaximize: X
830
815
  }, null, 8, ["tabs", "active-id", "maximized"]),
831
- d("div", qt, [
832
- (h(!0), v(B, null, Q($.value, (k) => {
816
+ u("div", Gt, [
817
+ (h(!0), v(B, null, Q(M.value, (k) => {
833
818
  var A;
834
- return be((h(), v("div", {
819
+ return ve((h(), v("div", {
835
820
  key: k.tab.id,
836
821
  class: "wi-right-panel__view"
837
822
  }, [
838
- m.has(k.tab.id) ? (h(), v(B, { key: 0 }, [
839
- k.definition ? (h(), we(Ue((A = k.definition) == null ? void 0 : A.component), {
823
+ b.has(k.tab.id) ? (h(), v(B, { key: 0 }, [
824
+ k.definition ? (h(), be(We((A = k.definition) == null ? void 0 : A.component), {
840
825
  key: `${k.tab.id}-${k.tab.reloadKey ?? 0}`,
841
826
  tab: k.tab,
842
- panel: s.value,
827
+ panel: l.value,
843
828
  onToolClick: N
844
- }, null, 40, ["tab", "panel"])) : (h(), v("div", Jt, [
845
- d("p", Qt, "未注册的面板类型:" + z(k.tab.type), 1),
846
- Yt
829
+ }, null, 40, ["tab", "panel"])) : (h(), v("div", Ft, [
830
+ u("p", Ht, "未注册的面板类型:" + R(k.tab.type), 1),
831
+ s[0] || (s[0] = u("p", { class: "wi-right-panel__unknown-desc" }, "请先通过 registerRightPanel 注册该类型的面板组件。", -1))
847
832
  ]))
848
- ], 64)) : (h(), v("div", Zt, [
849
- d("p", en, z(k.tab.title), 1),
850
- tn
833
+ ], 64)) : (h(), v("div", Kt, [
834
+ u("p", Vt, R(k.tab.title), 1),
835
+ s[1] || (s[1] = u("p", { class: "wi-right-panel__lazy-desc" }, "点击标签页加载内容", -1))
851
836
  ]))
852
837
  ])), [
853
- [De, k.tab.id === S.value]
838
+ [Ne, k.tab.id === z.value]
854
839
  ]);
855
840
  }), 128)),
856
- b.value.length ? P("", !0) : (h(), v("div", nn, [
857
- d("span", an, [
858
- M(E, {
841
+ m.value.length ? P("", !0) : (h(), v("div", jt, [
842
+ u("span", Xt, [
843
+ $(I, {
859
844
  name: "newtab",
860
845
  size: 30
861
846
  })
862
847
  ]),
863
- on,
864
- d("p", sn, z(me(_)), 1),
865
- d("button", {
848
+ s[2] || (s[2] = u("p", { class: "wi-right-panel__empty-title" }, "还没有打开任何标签页", -1)),
849
+ u("p", qt, R(_e(g)), 1),
850
+ u("button", {
866
851
  type: "button",
867
852
  class: "wi-right-panel__empty-button",
868
853
  onClick: W
@@ -871,14 +856,12 @@ const j = () => (ie || (ie = Xt({ registry: de })), ie), mn = (t) => {
871
856
  ])
872
857
  ], 6)) : P("", !0);
873
858
  }
874
- }), yn = /* @__PURE__ */ F(ln, [["__scopeId", "data-v-752ff3da"]]), oe = "wi-chat:right-panel-scope:", rn = () => ({
859
+ }), un = /* @__PURE__ */ F(Jt, [["__scopeId", "data-v-752ff3da"]]), oe = "wi-chat:right-panel-scope:", Qt = () => ({
875
860
  load(t) {
876
- if (typeof localStorage > "u")
877
- return null;
861
+ if (typeof localStorage > "u") return null;
878
862
  try {
879
863
  const e = localStorage.getItem(oe + t);
880
- if (!e)
881
- return null;
864
+ if (!e) return null;
882
865
  const n = JSON.parse(e);
883
866
  return Array.isArray(n == null ? void 0 : n.tabs) ? n : null;
884
867
  } catch {
@@ -899,54 +882,52 @@ const j = () => (ie || (ie = Xt({ registry: de })), ie), mn = (t) => {
899
882
  } catch {
900
883
  }
901
884
  }
902
- }), J = R("");
903
- let L = rn(), pe = !0, ge = !1;
904
- const Pe = /* @__PURE__ */ new Set(), Tn = (t = {}) => {
905
- "storage" in t && (L = t.storage ?? null), typeof t.persist == "boolean" && (pe = t.persist);
906
- }, kn = () => J.value, Se = (t) => {
885
+ }), J = E("");
886
+ let L = Qt(), ce = !0, he = !1;
887
+ const Ie = /* @__PURE__ */ new Set(), pn = (t = {}) => {
888
+ "storage" in t && (L = t.storage ?? null), typeof t.persist == "boolean" && (ce = t.persist);
889
+ }, hn = () => J.value, Ee = (t) => {
907
890
  const e = J.value;
908
- if (!pe || !L || !e)
909
- return;
891
+ if (!ce || !L || !e) return;
910
892
  const n = t.snapshot();
911
- !n.length && !Pe.has(e) || L.save(e, {
893
+ !n.length && !Ie.has(e) || L.save(e, {
912
894
  scopeId: e,
913
895
  tabs: n,
914
896
  activeTabId: t.activeTabId.value,
915
897
  savedAt: Date.now()
916
898
  });
917
- }, cn = (t) => {
918
- ge || (ge = !0, V([t.tabs, t.activeTabId], () => Se(t), { deep: !0, flush: "post" }));
919
- }, $n = (t, e = j()) => {
920
- cn(e);
899
+ }, Yt = (t) => {
900
+ he || (he = !0, V([t.tabs, t.activeTabId], () => Ee(t), { deep: !0, flush: "post" }));
901
+ }, vn = (t, e = j()) => {
902
+ Yt(e);
921
903
  const n = String(t ?? "").trim();
922
- if (n === J.value)
923
- return;
924
- if (Se(e), J.value = n, !n) {
904
+ if (n === J.value) return;
905
+ if (Ee(e), J.value = n, !n) {
925
906
  e.restore([]);
926
907
  return;
927
908
  }
928
- const l = pe && L ? L.load(n) : null;
929
- Pe.add(n), e.restore((l == null ? void 0 : l.tabs) ?? [], l == null ? void 0 : l.activeTabId);
930
- }, Mn = (t = J.value) => {
909
+ const d = ce && L ? L.load(n) : null;
910
+ Ie.add(n), e.restore((d == null ? void 0 : d.tabs) ?? [], d == null ? void 0 : d.activeTabId);
911
+ }, gn = (t = J.value) => {
931
912
  !t || !(L != null && L.clear) || L.clear(t);
932
- }, Le = (t, e) => ({
913
+ }, Re = (t, e) => ({
933
914
  id: t.id,
934
915
  type: t.type,
935
916
  title: t.title,
936
917
  icon: t.icon,
937
918
  url: t.url,
938
919
  active: t.id === e
939
- }), In = (t = {}) => {
920
+ }), _n = (t = {}) => {
940
921
  const e = t.panel ?? j(), n = y(() => {
941
922
  const T = e.activeTabId.value;
942
- return e.tabs.value.map((g) => Le(g, T));
943
- }), l = y(() => n.value.length > 0), o = y(() => n.value.length), s = y(() => e.activeTabId.value), _ = y(() => e.isOpen.value);
923
+ return e.tabs.value.map((f) => Re(f, T));
924
+ }), d = y(() => n.value.length > 0), o = y(() => n.value.length), l = y(() => e.activeTabId.value), g = y(() => e.isOpen.value);
944
925
  return {
945
926
  tabs: n,
946
- hasTabs: l,
927
+ hasTabs: d,
947
928
  tabCount: o,
948
- activeTabId: s,
949
- isOpen: _,
929
+ activeTabId: l,
930
+ isOpen: g,
950
931
  activateTab(T) {
951
932
  e.activateTab(T), e.open();
952
933
  },
@@ -960,45 +941,45 @@ const Pe = /* @__PURE__ */ new Set(), Tn = (t = {}) => {
960
941
  e.toggle();
961
942
  }
962
943
  };
963
- }, En = (t = j()) => {
944
+ }, bn = (t = j()) => {
964
945
  const e = t.activeTabId.value;
965
- return t.tabs.value.map((n) => Le(n, e));
946
+ return t.tabs.value.map((n) => Re(n, e));
966
947
  };
967
948
  export {
968
- Ee as BUILTIN_RIGHT_PANELS,
969
- Ie as BrowserToolbar,
970
- vt as DEFAULT_NEW_TAB_RECOMMENDATIONS,
971
- ht as DEFAULT_NEW_TAB_TOOLS,
972
- ze as DEFAULT_SEARCH_URL_TEMPLATE,
973
- _e as RIGHT_PANEL_ICONS,
949
+ Me as BUILTIN_RIGHT_PANELS,
950
+ ke as BrowserToolbar,
951
+ ut as DEFAULT_NEW_TAB_RECOMMENDATIONS,
952
+ dt as DEFAULT_NEW_TAB_TOOLS,
953
+ xe as DEFAULT_SEARCH_URL_TEMPLATE,
954
+ pe as RIGHT_PANEL_ICONS,
974
955
  oe as RIGHT_PANEL_SCOPE_STORAGE_PREFIX,
975
- yn as RightPanel,
976
- E as RightPanelIcon,
977
- Ye as RightPanelTabs,
978
- pt as RightPanelToolList,
979
- Pt as WEBVIEW_PARTITION,
980
- St as canUseWebview,
981
- Mn as clearRightPanelScope,
982
- mn as configureRightPanel,
983
- Tn as configureRightPanelScope,
984
- rn as createLocalStorageRightPanelScopeStorage,
985
- Xt as createRightPanel,
986
- Re as createRightPanelRegistry,
987
- de as defaultRightPanelRegistry,
988
- fn as getRightPanelDefinition,
989
- kn as getRightPanelScope,
990
- Me as isDesktopRuntime,
991
- En as listRightPanelTabs,
992
- zt as newTabPanelDefinition,
993
- $e as readElectronBridge,
994
- bn as registerRightPanel,
995
- wn as resetRightPanel,
956
+ un as RightPanel,
957
+ I as RightPanelIcon,
958
+ qe as RightPanelTabs,
959
+ ct as RightPanelToolList,
960
+ $t as WEBVIEW_PARTITION,
961
+ xt as canUseWebview,
962
+ gn as clearRightPanelScope,
963
+ cn as configureRightPanel,
964
+ pn as configureRightPanelScope,
965
+ Qt as createLocalStorageRightPanelScopeStorage,
966
+ Bt as createRightPanel,
967
+ $e as createRightPanelRegistry,
968
+ re as defaultRightPanelRegistry,
969
+ rn as getRightPanelDefinition,
970
+ hn as getRightPanelScope,
971
+ Te as isDesktopRuntime,
972
+ bn as listRightPanelTabs,
973
+ Mt as newTabPanelDefinition,
974
+ ye as readElectronBridge,
975
+ sn as registerRightPanel,
976
+ dn as resetRightPanel,
996
977
  Z as resolveRightPanelTitle,
997
978
  ae as resolveRightPanelUrl,
998
- Lt as resolveWebRuntime,
999
- $n as setRightPanelScope,
979
+ It as resolveWebRuntime,
980
+ vn as setRightPanelScope,
1000
981
  j as useRightPanel,
1001
- In as useRightPanelTabs,
1002
- Kt as webPanelDefinition
982
+ _n as useRightPanelTabs,
983
+ Ot as webPanelDefinition
1003
984
  };
1004
985
  //# sourceMappingURL=index.js.map