ai_co_discuss 0.3.2 → 0.3.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.
- package/README.md +2 -2
- package/README.zh-CN.md +2 -2
- package/package.json +1 -1
- package/web/modern.css +1 -1
- package/web/modern.js +379 -382
package/web/modern.js
CHANGED
|
@@ -18,7 +18,7 @@ function n(e) {
|
|
|
18
18
|
var r = {}, i = [], a = () => {}, o = () => !1, s = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), c = (e) => e.startsWith("onUpdate:"), l = Object.assign, u = (e, t) => {
|
|
19
19
|
let n = e.indexOf(t);
|
|
20
20
|
n > -1 && e.splice(n, 1);
|
|
21
|
-
}, d = Object.prototype.hasOwnProperty, f = (e, t) => d.call(e, t), p = Array.isArray, m = (e) => w(e) === "[object Map]", h = (e) => w(e) === "[object Set]", g = (e) => w(e) === "[object Date]", _ = (e) => w(e) === "[object RegExp]", v = (e) => typeof e == "function", y = (e) => typeof e == "string", b = (e) => typeof e == "symbol", x = (e) => typeof e == "object" && !!e, S = (e) => (x(e) || v(e)) && v(e.then) && v(e.catch), C = Object.prototype.toString, w = (e) => C.call(e), T = (e) => w(e).slice(8, -1),
|
|
21
|
+
}, d = Object.prototype.hasOwnProperty, f = (e, t) => d.call(e, t), p = Array.isArray, m = (e) => w(e) === "[object Map]", h = (e) => w(e) === "[object Set]", g = (e) => w(e) === "[object Date]", _ = (e) => w(e) === "[object RegExp]", v = (e) => typeof e == "function", y = (e) => typeof e == "string", b = (e) => typeof e == "symbol", x = (e) => typeof e == "object" && !!e, S = (e) => (x(e) || v(e)) && v(e.then) && v(e.catch), C = Object.prototype.toString, w = (e) => C.call(e), T = (e) => w(e).slice(8, -1), E = (e) => w(e) === "[object Object]", ee = (e) => y(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, D = /* @__PURE__ */ n(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"), O = (e) => {
|
|
22
22
|
let t = /* @__PURE__ */ Object.create(null);
|
|
23
23
|
return ((n) => t[n] || (t[n] = e(n)));
|
|
24
24
|
}, te = /-\w/g, ne = O((e) => e.replace(te, (e) => e.slice(1).toUpperCase())), re = /\B([A-Z])/g, ie = O((e) => e.replace(re, "-$1").toLowerCase()), ae = O((e) => e.charAt(0).toUpperCase() + e.slice(1)), oe = O((e) => e ? `on${ae(e)}` : ""), k = (e, t) => !Object.is(e, t), se = (e, ...t) => {
|
|
@@ -123,7 +123,7 @@ function Ce(e, t, n) {
|
|
|
123
123
|
function we(e, t) {
|
|
124
124
|
return e.findIndex((e) => Ce(e, t));
|
|
125
125
|
}
|
|
126
|
-
var Te = (e) => !!(e && e.__v_isRef === !0), P = (e) => y(e) ? e : e == null ? "" : p(e) || x(e) && (e.toString === C || !v(e.toString)) ? Te(e) ? P(e.value) : JSON.stringify(e, Ee, 2) : String(e), Ee = (e, t) => Te(t) ? Ee(e, t.value) : m(t) ? { [`Map(${t.size})`]: [...t.entries()].reduce((e, [t, n], r) => (e[De(t, r) + " =>"] = n, e), {}) } : h(t) ? { [`Set(${t.size})`]: [...t.values()].map((e) => De(e)) } : b(t) ? De(t) : x(t) && !p(t) && !
|
|
126
|
+
var Te = (e) => !!(e && e.__v_isRef === !0), P = (e) => y(e) ? e : e == null ? "" : p(e) || x(e) && (e.toString === C || !v(e.toString)) ? Te(e) ? P(e.value) : JSON.stringify(e, Ee, 2) : String(e), Ee = (e, t) => Te(t) ? Ee(e, t.value) : m(t) ? { [`Map(${t.size})`]: [...t.entries()].reduce((e, [t, n], r) => (e[De(t, r) + " =>"] = n, e), {}) } : h(t) ? { [`Set(${t.size})`]: [...t.values()].map((e) => De(e)) } : b(t) ? De(t) : x(t) && !p(t) && !E(t) ? String(t) : t, De = (e, t = "") => b(e) ? `Symbol(${e.description ?? t})` : e;
|
|
127
127
|
function Oe(e) {
|
|
128
128
|
return e == null ? "initial" : typeof e == "string" ? e === "" ? " " : e : String(e);
|
|
129
129
|
}
|
|
@@ -424,7 +424,7 @@ function dt(e, t, n, r, i, a) {
|
|
|
424
424
|
};
|
|
425
425
|
if (Ve(), t === "clear") o.forEach(s);
|
|
426
426
|
else {
|
|
427
|
-
let i = p(e), a = i &&
|
|
427
|
+
let i = p(e), a = i && ee(n);
|
|
428
428
|
if (i && n === "length") {
|
|
429
429
|
let e = Number(r);
|
|
430
430
|
o.forEach((t, n) => {
|
|
@@ -626,7 +626,7 @@ var Dt = class {
|
|
|
626
626
|
let o = Reflect.get(e, t, /* @__PURE__ */ ln(e) ? e : n);
|
|
627
627
|
if ((b(t) ? Tt.has(t) : wt(t)) || (r || ut(e, "get", t), i)) return o;
|
|
628
628
|
if (/* @__PURE__ */ ln(o)) {
|
|
629
|
-
let e = a &&
|
|
629
|
+
let e = a && ee(t) ? o : o.value;
|
|
630
630
|
return r && x(e) ? /* @__PURE__ */ Zt(e) : e;
|
|
631
631
|
}
|
|
632
632
|
return x(o) ? r ? /* @__PURE__ */ Zt(o) : /* @__PURE__ */ Yt(o) : o;
|
|
@@ -636,7 +636,7 @@ var Dt = class {
|
|
|
636
636
|
super(!1, e);
|
|
637
637
|
}
|
|
638
638
|
set(e, t, n, r) {
|
|
639
|
-
let i = e[t], a = p(e) &&
|
|
639
|
+
let i = e[t], a = p(e) && ee(t);
|
|
640
640
|
if (!this._isShallow) {
|
|
641
641
|
let e = /* @__PURE__ */ tn(i);
|
|
642
642
|
if (!/* @__PURE__ */ nn(n) && !/* @__PURE__ */ tn(n) && (i = /* @__PURE__ */ an(i), n = /* @__PURE__ */ an(n)), !a && /* @__PURE__ */ ln(i) && !/* @__PURE__ */ ln(n)) return e || (i.value = n), !0;
|
|
@@ -883,7 +883,7 @@ var bn = class {
|
|
|
883
883
|
constructor(e, t, n) {
|
|
884
884
|
this._object = e, this._defaultValue = n, this.__v_isRef = !0, this._value = void 0, this._key = b(t) ? t : String(t), this._raw = /* @__PURE__ */ an(e);
|
|
885
885
|
let r = !0, i = e;
|
|
886
|
-
if (!p(e) || b(this._key) || !
|
|
886
|
+
if (!p(e) || b(this._key) || !ee(this._key)) do
|
|
887
887
|
r = !/* @__PURE__ */ rn(i) || /* @__PURE__ */ nn(i);
|
|
888
888
|
while (r && (i = i.__v_raw));
|
|
889
889
|
this._shallow = r;
|
|
@@ -1036,7 +1036,7 @@ function Pn(e, t = Infinity, n) {
|
|
|
1036
1036
|
else if (h(e) || m(e)) e.forEach((e) => {
|
|
1037
1037
|
Pn(e, t, n);
|
|
1038
1038
|
});
|
|
1039
|
-
else if (
|
|
1039
|
+
else if (E(e)) {
|
|
1040
1040
|
for (let r in e) Pn(e[r], t, n);
|
|
1041
1041
|
for (let r of Object.getOwnPropertySymbols(e)) Object.prototype.propertyIsEnumerable.call(e, r) && Pn(e[r], t, n);
|
|
1042
1042
|
}
|
|
@@ -1752,39 +1752,39 @@ function yi(e) {
|
|
|
1752
1752
|
t.hasChildNodes() ? (f(t.firstChild, e, null, null, null), ir(), t._vnode = e) : (n(null, e, t), ir(), t._vnode = e);
|
|
1753
1753
|
}, f = (n, r, s, c, u, d = !1) => {
|
|
1754
1754
|
d ||= !!r.dynamicChildren;
|
|
1755
|
-
let b = vi(n) && n.data === "[", x = () => g(n, r, s, c, u, b), { type: S, ref: C, shapeFlag: w, patchFlag: T } = r,
|
|
1755
|
+
let b = vi(n) && n.data === "[", x = () => g(n, r, s, c, u, b), { type: S, ref: C, shapeFlag: w, patchFlag: T } = r, E = n.nodeType;
|
|
1756
1756
|
r.el = n, T === -2 && (d = !1, r.dynamicChildren = null);
|
|
1757
|
-
let
|
|
1757
|
+
let ee = null;
|
|
1758
1758
|
switch (S) {
|
|
1759
1759
|
case ss:
|
|
1760
|
-
|
|
1760
|
+
E === 3 ? (n.data !== r.children && (mi(), n.data = r.children), ee = a(n)) : r.children === "" ? (l(r.el = i(""), o(n), n), ee = n) : ee = x();
|
|
1761
1761
|
break;
|
|
1762
1762
|
case cs:
|
|
1763
|
-
y(n) ? (
|
|
1763
|
+
y(n) ? (ee = a(n), v(r.el = n.content.firstChild, n, s)) : ee = E !== 8 || b ? x() : a(n);
|
|
1764
1764
|
break;
|
|
1765
1765
|
case ls:
|
|
1766
|
-
if (b && (n = a(n),
|
|
1767
|
-
|
|
1766
|
+
if (b && (n = a(n), E = n.nodeType), E === 1 || E === 3) {
|
|
1767
|
+
ee = n;
|
|
1768
1768
|
let e = !r.children.length;
|
|
1769
|
-
for (let t = 0; t < r.staticCount; t++) e && (r.children +=
|
|
1770
|
-
return b ? a(
|
|
1769
|
+
for (let t = 0; t < r.staticCount; t++) e && (r.children += ee.nodeType === 1 ? ee.outerHTML : ee.data), t === r.staticCount - 1 && (r.anchor = ee), ee = a(ee);
|
|
1770
|
+
return b ? a(ee) : ee;
|
|
1771
1771
|
}
|
|
1772
1772
|
x();
|
|
1773
1773
|
break;
|
|
1774
1774
|
case H:
|
|
1775
|
-
|
|
1775
|
+
ee = b ? h(n, r, s, c, u, d) : x();
|
|
1776
1776
|
break;
|
|
1777
|
-
default: if (w & 1)
|
|
1777
|
+
default: if (w & 1) ee = (E !== 1 || r.type.toLowerCase() !== n.tagName.toLowerCase()) && !y(n) ? x() : p(n, r, s, c, u, d);
|
|
1778
1778
|
else if (w & 6) {
|
|
1779
1779
|
r.slotScopeIds = u;
|
|
1780
1780
|
let e = o(n);
|
|
1781
|
-
if (
|
|
1781
|
+
if (ee = b ? _(n) : vi(n) && n.data === "teleport start" ? _(n, n.data, "teleport end") : a(n), t(r, e, null, s, c, _i(e), d), (Li(r) || r.component.asyncDep) && !r.component.subTree) {
|
|
1782
1782
|
let t;
|
|
1783
|
-
b ? (t = q(ls), t.anchor =
|
|
1783
|
+
b ? (t = q(ls), t.anchor = ee ? ee.previousSibling : e.lastChild) : t = n.nodeType === 3 ? J("") : q(n.nodeType === 8 ? cs : "div"), t.el = n, r.component.subTree = t;
|
|
1784
1784
|
}
|
|
1785
|
-
} else w & 64 ?
|
|
1785
|
+
} else w & 64 ? ee = E === 8 ? r.type.hydrate(n, r, s, c, u, d, e, m) : x() : w & 128 && (ee = r.type.hydrate(n, r, s, c, _i(o(n)), u, d, e, f));
|
|
1786
1786
|
}
|
|
1787
|
-
return C != null && di(C, null, c, r),
|
|
1787
|
+
return C != null && di(C, null, c, r), ee;
|
|
1788
1788
|
}, p = (e, t, n, i, a, o) => {
|
|
1789
1789
|
o ||= !!t.dynamicChildren;
|
|
1790
1790
|
let { type: l, dynamicProps: u, props: d, patchFlag: f, shapeFlag: p, dirs: h, transition: g } = t, _ = l === "input" || l === "option", b = !!u;
|
|
@@ -2384,7 +2384,7 @@ var Ra = !0;
|
|
|
2384
2384
|
function za(e) {
|
|
2385
2385
|
let t = Ua(e), n = e.proxy, r = e.ctx;
|
|
2386
2386
|
Ra = !1, t.beforeCreate && Va(t.beforeCreate, e, "bc");
|
|
2387
|
-
let { data: i, computed: o, methods: s, watch: c, provide: l, inject: u, created: d, beforeMount: f, mounted: m, beforeUpdate: h, updated: g, activated: _, deactivated: y, beforeDestroy: b, beforeUnmount: S, destroyed: C, unmounted: w, render: T, renderTracked:
|
|
2387
|
+
let { data: i, computed: o, methods: s, watch: c, provide: l, inject: u, created: d, beforeMount: f, mounted: m, beforeUpdate: h, updated: g, activated: _, deactivated: y, beforeDestroy: b, beforeUnmount: S, destroyed: C, unmounted: w, render: T, renderTracked: E, renderTriggered: ee, errorCaptured: D, serverPrefetch: O, expose: te, inheritAttrs: ne, components: re, directives: ie, filters: ae } = t;
|
|
2388
2388
|
if (u && Ba(u, r, null), s) for (let e in s) {
|
|
2389
2389
|
let t = s[e];
|
|
2390
2390
|
v(t) && (r[e] = t.bind(n));
|
|
@@ -2416,7 +2416,7 @@ function za(e) {
|
|
|
2416
2416
|
function oe(e, t) {
|
|
2417
2417
|
p(t) ? t.forEach((t) => e(t.bind(n))) : t && e(t.bind(n));
|
|
2418
2418
|
}
|
|
2419
|
-
if (oe(Zi, f), oe(Qi, m), oe($i, h), oe(ea, g), oe(Ui, _), oe(Wi, y), oe(oa, D), oe(aa,
|
|
2419
|
+
if (oe(Zi, f), oe(Qi, m), oe($i, h), oe(ea, g), oe(Ui, _), oe(Wi, y), oe(oa, D), oe(aa, E), oe(ia, ee), oe(ta, S), oe(na, w), oe(ra, O), p(te)) {
|
|
2420
2420
|
if (te.length) {
|
|
2421
2421
|
let t = e.exposed ||= {};
|
|
2422
2422
|
te.forEach((e) => {
|
|
@@ -2952,7 +2952,7 @@ function zo(e, t) {
|
|
|
2952
2952
|
}
|
|
2953
2953
|
}, T = (e, t, n, r, i, a, s, u) => {
|
|
2954
2954
|
let d, f, { props: m, shapeFlag: h, transition: g, dirs: _ } = e;
|
|
2955
|
-
if (d = e.el = l(e.type, a, m && m.is, m), h & 8 ? p(d, e.children) : h & 16 &&
|
|
2955
|
+
if (d = e.el = l(e.type, a, m && m.is, m), h & 8 ? p(d, e.children) : h & 16 && ee(e.children, d, null, r, i, Bo(e, a), s, u), _ && yr(e, null, r, "created"), E(d, e, e.scopeId, s, r), m) {
|
|
2956
2956
|
for (let e in m) e !== "value" && !D(e) && c(d, e, null, m[e], a, r);
|
|
2957
2957
|
"value" in m && c(d, "value", null, m.value, a), (f = m.onVnodeBeforeMount) && Os(f, r, e);
|
|
2958
2958
|
}
|
|
@@ -2963,16 +2963,16 @@ function zo(e, t) {
|
|
|
2963
2963
|
f && Os(f, r, e), v && g.enter(d), _ && yr(e, null, r, "mounted");
|
|
2964
2964
|
} finally {}
|
|
2965
2965
|
}, i);
|
|
2966
|
-
},
|
|
2966
|
+
}, E = (e, t, n, r, i) => {
|
|
2967
2967
|
if (n && g(e, n), r) for (let t = 0; t < r.length; t++) g(e, r[t]);
|
|
2968
2968
|
if (i) {
|
|
2969
2969
|
let n = i.subTree;
|
|
2970
2970
|
if (t === n || Jo(n.type) && (n.ssContent === t || n.ssFallback === t)) {
|
|
2971
2971
|
let t = i.vnode;
|
|
2972
|
-
|
|
2972
|
+
E(e, t, t.scopeId, t.slotScopeIds, i.parent);
|
|
2973
2973
|
}
|
|
2974
2974
|
}
|
|
2975
|
-
},
|
|
2975
|
+
}, ee = (e, t, n, r, i, a, o, s, c = 0) => {
|
|
2976
2976
|
for (let l = c; l < e.length; l++) {
|
|
2977
2977
|
let c = e[l] = s ? Es(e[l]) : Ts(e[l]);
|
|
2978
2978
|
v(null, c, t, n, r, i, a, o, s);
|
|
@@ -3012,7 +3012,7 @@ function zo(e, t) {
|
|
|
3012
3012
|
}
|
|
3013
3013
|
}, re = (e, t, n, r, i, a, s, c, l) => {
|
|
3014
3014
|
let d = t.el = e ? e.el : u(""), f = t.anchor = e ? e.anchor : u(""), { patchFlag: p, dynamicChildren: m, slotScopeIds: h } = t;
|
|
3015
|
-
h && (c = c ? c.concat(h) : h), e == null ? (o(d, n, r), o(f, n, r),
|
|
3015
|
+
h && (c = c ? c.concat(h) : h), e == null ? (o(d, n, r), o(f, n, r), ee(t.children || [], n, f, i, a, s, c, l)) : p > 0 && p & 64 && m && e.dynamicChildren && e.dynamicChildren.length === m.length ? (te(e.dynamicChildren, m, n, i, a, s, c), (t.key != null || i && t === i.subTree) && Uo(e, t, !0)) : le(e, t, n, f, i, a, s, c, l);
|
|
3016
3016
|
}, ie = (e, t, n, r, i, a, o, s, c) => {
|
|
3017
3017
|
t.slotScopeIds = s, e == null ? t.shapeFlag & 512 ? i.ctx.activate(t, n, r, o, c) : ae(t, n, r, i, a, o, c) : oe(e, t, c);
|
|
3018
3018
|
}, ae = (e, t, n, r, i, a, o) => {
|
|
@@ -3091,7 +3091,7 @@ function zo(e, t) {
|
|
|
3091
3091
|
return;
|
|
3092
3092
|
}
|
|
3093
3093
|
}
|
|
3094
|
-
m & 8 ? (u & 16 && _e(l, i, a), d !== l && p(n, d)) : u & 16 ? m & 16 ? de(l, d, n, r, i, a, o, s, c) : _e(l, i, a, !0) : (u & 8 && p(n, ""), m & 16 &&
|
|
3094
|
+
m & 8 ? (u & 16 && _e(l, i, a), d !== l && p(n, d)) : u & 16 ? m & 16 ? de(l, d, n, r, i, a, o, s, c) : _e(l, i, a, !0) : (u & 8 && p(n, ""), m & 16 && ee(d, n, r, i, a, o, s, c));
|
|
3095
3095
|
}, ue = (e, t, n, r, a, o, s, c, l) => {
|
|
3096
3096
|
e ||= i, t ||= i;
|
|
3097
3097
|
let u = e.length, d = t.length, f = Math.min(u, d), p = 0;
|
|
@@ -3099,7 +3099,7 @@ function zo(e, t) {
|
|
|
3099
3099
|
let r = t[p] = l ? Es(t[p]) : Ts(t[p]);
|
|
3100
3100
|
v(e[p], r, n, null, a, o, s, c, l);
|
|
3101
3101
|
}
|
|
3102
|
-
u > d ? _e(e, a, o, !0, !1, f) :
|
|
3102
|
+
u > d ? _e(e, a, o, !0, !1, f) : ee(t, n, r, a, o, s, c, l, f);
|
|
3103
3103
|
}, de = (e, t, n, r, a, o, s, c, l) => {
|
|
3104
3104
|
let u = 0, d = t.length, f = e.length - 1, p = d - 1;
|
|
3105
3105
|
for (; u <= f && u <= p;) {
|
|
@@ -3234,7 +3234,7 @@ function zo(e, t) {
|
|
|
3234
3234
|
m: pe,
|
|
3235
3235
|
r: me,
|
|
3236
3236
|
mt: ae,
|
|
3237
|
-
mc:
|
|
3237
|
+
mc: ee,
|
|
3238
3238
|
pc: le,
|
|
3239
3239
|
pbc: te,
|
|
3240
3240
|
n: j,
|
|
@@ -3911,12 +3911,12 @@ function Ec(e) {
|
|
|
3911
3911
|
let t = {};
|
|
3912
3912
|
for (let n in e) n in xc || (t[n] = e[n]);
|
|
3913
3913
|
if (e.css === !1) return t;
|
|
3914
|
-
let { name: n = "v", type: r, duration: i, enterFromClass: a = `${n}-enter-from`, enterActiveClass: o = `${n}-enter-active`, enterToClass: s = `${n}-enter-to`, appearFromClass: c = a, appearActiveClass: u = o, appearToClass: d = s, leaveFromClass: f = `${n}-leave-from`, leaveActiveClass: p = `${n}-leave-active`, leaveToClass: m = `${n}-leave-to` } = e, h = Dc(i), g = h && h[0], _ = h && h[1], { onBeforeEnter: v, onEnter: y, onEnterCancelled: b, onLeave: x, onLeaveCancelled: S, onBeforeAppear: C = v, onAppear: w = y, onAppearCancelled: T = b } = t,
|
|
3914
|
+
let { name: n = "v", type: r, duration: i, enterFromClass: a = `${n}-enter-from`, enterActiveClass: o = `${n}-enter-active`, enterToClass: s = `${n}-enter-to`, appearFromClass: c = a, appearActiveClass: u = o, appearToClass: d = s, leaveFromClass: f = `${n}-leave-from`, leaveActiveClass: p = `${n}-leave-active`, leaveToClass: m = `${n}-leave-to` } = e, h = Dc(i), g = h && h[0], _ = h && h[1], { onBeforeEnter: v, onEnter: y, onEnterCancelled: b, onLeave: x, onLeaveCancelled: S, onBeforeAppear: C = v, onAppear: w = y, onAppearCancelled: T = b } = t, E = (e, t, n, r) => {
|
|
3915
3915
|
e._enterCancelled = r, Ac(e, t ? d : s), Ac(e, t ? u : o), n && n();
|
|
3916
|
-
},
|
|
3916
|
+
}, ee = (e, t) => {
|
|
3917
3917
|
e._isLeaving = !1, Ac(e, f), Ac(e, m), Ac(e, p), t && t();
|
|
3918
3918
|
}, D = (e) => (t, n) => {
|
|
3919
|
-
let i = e ? w : y, o = () =>
|
|
3919
|
+
let i = e ? w : y, o = () => E(t, e, n);
|
|
3920
3920
|
wc(i, [t, o]), jc(() => {
|
|
3921
3921
|
Ac(t, e ? c : a), kc(t, e ? d : s), Tc(i) || Nc(t, r, g, o);
|
|
3922
3922
|
});
|
|
@@ -3932,19 +3932,19 @@ function Ec(e) {
|
|
|
3932
3932
|
onAppear: D(!0),
|
|
3933
3933
|
onLeave(e, t) {
|
|
3934
3934
|
e._isLeaving = !0;
|
|
3935
|
-
let n = () =>
|
|
3935
|
+
let n = () => ee(e, t);
|
|
3936
3936
|
kc(e, f), e._enterCancelled ? (kc(e, p), Lc(e)) : (Lc(e), kc(e, p)), jc(() => {
|
|
3937
3937
|
e._isLeaving && (Ac(e, f), kc(e, m), Tc(x) || Nc(e, r, _, n));
|
|
3938
3938
|
}), wc(x, [e, n]);
|
|
3939
3939
|
},
|
|
3940
3940
|
onEnterCancelled(e) {
|
|
3941
|
-
|
|
3941
|
+
E(e, !1, void 0, !0), wc(b, [e]);
|
|
3942
3942
|
},
|
|
3943
3943
|
onAppearCancelled(e) {
|
|
3944
|
-
|
|
3944
|
+
E(e, !0, void 0, !0), wc(T, [e]);
|
|
3945
3945
|
},
|
|
3946
3946
|
onLeaveCancelled(e) {
|
|
3947
|
-
|
|
3947
|
+
ee(e), wc(S, [e]);
|
|
3948
3948
|
}
|
|
3949
3949
|
});
|
|
3950
3950
|
}
|
|
@@ -4224,7 +4224,7 @@ var bl = {};
|
|
|
4224
4224
|
// @__NO_SIDE_EFFECTS__
|
|
4225
4225
|
function xl(e, t, n) {
|
|
4226
4226
|
let r = /* @__PURE__ */ z(e, t);
|
|
4227
|
-
|
|
4227
|
+
E(r) && (r = l({}, r, t));
|
|
4228
4228
|
class i extends wl {
|
|
4229
4229
|
constructor(e) {
|
|
4230
4230
|
super(r, e, n);
|
|
@@ -4322,7 +4322,7 @@ var Sl = /* @__NO_SIDE_EFFECTS__ */ ((e, t) => /* @__PURE__ */ xl(e, t, xu)), Cl
|
|
|
4322
4322
|
return this._instance || (t.ce = (e) => {
|
|
4323
4323
|
this._instance = e, e.ce = this, e.isCE = !0;
|
|
4324
4324
|
let t = (e, t) => {
|
|
4325
|
-
this.dispatchEvent(new CustomEvent(e,
|
|
4325
|
+
this.dispatchEvent(new CustomEvent(e, E(t[0]) ? l({ detail: t }, t[0]) : { detail: t }));
|
|
4326
4326
|
};
|
|
4327
4327
|
e.emit = (e, ...n) => {
|
|
4328
4328
|
t(e, n), ie(e) !== e && t(ie(e), n);
|
|
@@ -10778,7 +10778,7 @@ var [yv, bv] = /*#__PURE__*/ gh("ListboxRoot"), [xv, Sv] = /*#__PURE__*/ gh("Lis
|
|
|
10778
10778
|
x.value = !1;
|
|
10779
10779
|
}, 1);
|
|
10780
10780
|
}
|
|
10781
|
-
let T = /* @__PURE__ */ F(null),
|
|
10781
|
+
let T = /* @__PURE__ */ F(null), E = /* @__PURE__ */ F(null), ee = /* @__PURE__ */ F(!1), D = /* @__PURE__ */ F(!1), O = Fp(), te = Fp(), ne = Fp();
|
|
10782
10782
|
function re() {
|
|
10783
10783
|
return d().map((e) => e.ref).filter((e) => e.dataset.disabled !== "");
|
|
10784
10784
|
}
|
|
@@ -10794,7 +10794,7 @@ var [yv, bv] = /*#__PURE__*/ gh("ListboxRoot"), [xv, Sv] = /*#__PURE__*/ gh("Lis
|
|
|
10794
10794
|
i("highlight", a);
|
|
10795
10795
|
}
|
|
10796
10796
|
function ae(e) {
|
|
10797
|
-
if (
|
|
10797
|
+
if (ee.value) ne.trigger(e);
|
|
10798
10798
|
else {
|
|
10799
10799
|
let t = d().find((t) => dv(t.value, e, r.by));
|
|
10800
10800
|
t && (T.value = t.ref, ie(t.ref));
|
|
@@ -10808,7 +10808,7 @@ var [yv, bv] = /*#__PURE__*/ gh("ListboxRoot"), [xv, Sv] = /*#__PURE__*/ gh("Lis
|
|
|
10808
10808
|
}
|
|
10809
10809
|
function k(e) {
|
|
10810
10810
|
if (S.value) {
|
|
10811
|
-
if (x.value = !0,
|
|
10811
|
+
if (x.value = !0, ee.value) te.trigger(e);
|
|
10812
10812
|
else {
|
|
10813
10813
|
let t = e.altKey || e.ctrlKey || e.metaKey;
|
|
10814
10814
|
if (t && e.key === "a" && a.value) {
|
|
@@ -10841,7 +10841,7 @@ var [yv, bv] = /*#__PURE__*/ gh("ListboxRoot"), [xv, Sv] = /*#__PURE__*/ gh("Lis
|
|
|
10841
10841
|
}
|
|
10842
10842
|
function ue(e) {
|
|
10843
10843
|
let t = T.value;
|
|
10844
|
-
t?.isConnected && (
|
|
10844
|
+
t?.isConnected && (E.value = t), T.value = null, i("leave", e);
|
|
10845
10845
|
}
|
|
10846
10846
|
function de(e) {
|
|
10847
10847
|
let t = new CustomEvent("listbox.entryFocus", {
|
|
@@ -10849,7 +10849,7 @@ var [yv, bv] = /*#__PURE__*/ gh("ListboxRoot"), [xv, Sv] = /*#__PURE__*/ gh("Lis
|
|
|
10849
10849
|
cancelable: !0
|
|
10850
10850
|
});
|
|
10851
10851
|
if (e.currentTarget?.dispatchEvent(t), i("entryFocus", t), !t.defaultPrevented) {
|
|
10852
|
-
if (
|
|
10852
|
+
if (E.value) ie(E.value);
|
|
10853
10853
|
else {
|
|
10854
10854
|
let e = re()?.[0];
|
|
10855
10855
|
ie(e);
|
|
@@ -10873,10 +10873,10 @@ var [yv, bv] = /*#__PURE__*/ gh("ListboxRoot"), [xv, Sv] = /*#__PURE__*/ gh("Lis
|
|
|
10873
10873
|
let e = !T.value && t === "prev" ? n.length - 1 : 0;
|
|
10874
10874
|
ie(n[e]);
|
|
10875
10875
|
}
|
|
10876
|
-
if (
|
|
10876
|
+
if (ee.value) return te.trigger(e);
|
|
10877
10877
|
}
|
|
10878
10878
|
function pe(e, t) {
|
|
10879
|
-
if (!
|
|
10879
|
+
if (!ee.value && r.selectionBehavior === "replace" && a.value && Array.isArray(C.value) && (!e.altKey && !e.ctrlKey && !e.metaKey || e.shiftKey) && e.shiftKey) {
|
|
10880
10880
|
let n = d().filter((e) => e.ref.dataset.disabled !== ""), r = n.find((e) => e.ref === t)?.value;
|
|
10881
10881
|
if (e.key === g.END ? r = n.at(-1)?.value : e.key === g.HOME && (r = n[0]?.value), !r || !b.value) return;
|
|
10882
10882
|
let i = mh(n.map((e) => e.value), b.value, r);
|
|
@@ -10885,7 +10885,7 @@ var [yv, bv] = /*#__PURE__*/ gh("ListboxRoot"), [xv, Sv] = /*#__PURE__*/ gh("Lis
|
|
|
10885
10885
|
}
|
|
10886
10886
|
async function A(e, t = !0) {
|
|
10887
10887
|
if (Lp) {
|
|
10888
|
-
if (await Qn(),
|
|
10888
|
+
if (await Qn(), ee.value) O.trigger({
|
|
10889
10889
|
event: e,
|
|
10890
10890
|
scroll: t
|
|
10891
10891
|
});
|
|
@@ -10921,7 +10921,7 @@ var [yv, bv] = /*#__PURE__*/ gh("ListboxRoot"), [xv, Sv] = /*#__PURE__*/ gh("Lis
|
|
|
10921
10921
|
disabled: c,
|
|
10922
10922
|
highlightOnHover: o,
|
|
10923
10923
|
highlightedElement: T,
|
|
10924
|
-
isVirtual:
|
|
10924
|
+
isVirtual: ee,
|
|
10925
10925
|
virtualFocusHook: O,
|
|
10926
10926
|
virtualKeydownHook: te,
|
|
10927
10927
|
virtualHighlightHook: ne,
|
|
@@ -12518,7 +12518,7 @@ var Xy = 50, Zy = async (e, t, n) => {
|
|
|
12518
12518
|
y: r
|
|
12519
12519
|
}, p = Py(i), m = My(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], S = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), C = S ? S[y] : 0;
|
|
12520
12520
|
(!C || !await (o.isElement == null ? void 0 : o.isElement(S))) && (C = s.floating[y] || a.floating[m]);
|
|
12521
|
-
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1,
|
|
12521
|
+
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = xy(d[_], T), ee = xy(d[v], T), D = C - h[m] - ee, O = C / 2 - h[m] / 2 + w, te = Dy(E, O, D), ne = !c.arrow && Ay(i) != null && O !== te && a.reference[m] / 2 - (O < E ? E : ee) - h[m] / 2 < 0, re = ne ? O < E ? O - E : O - D : 0;
|
|
12522
12522
|
return {
|
|
12523
12523
|
[p]: f[p] + re,
|
|
12524
12524
|
data: {
|
|
@@ -13422,9 +13422,9 @@ var wx = ["dir"], Tx = {
|
|
|
13422
13422
|
let T = Z(() => {
|
|
13423
13423
|
let e = x.value.arrow?.centerOffset !== 0;
|
|
13424
13424
|
return n.hideShiftedArrow && e;
|
|
13425
|
-
}),
|
|
13425
|
+
}), E = /* @__PURE__ */ F("");
|
|
13426
13426
|
return Tr(() => {
|
|
13427
|
-
o.value && (
|
|
13427
|
+
o.value && (E.value = window.getComputedStyle(o.value).zIndex);
|
|
13428
13428
|
}), Dx({
|
|
13429
13429
|
placedSide: C,
|
|
13430
13430
|
onArrowChange: (e) => l.value = e,
|
|
@@ -13440,7 +13440,7 @@ var wx = ["dir"], Tx = {
|
|
|
13440
13440
|
...I(v),
|
|
13441
13441
|
transform: I(b) ? I(v).transform : "translate(0, -200%)",
|
|
13442
13442
|
minWidth: "max-content",
|
|
13443
|
-
zIndex:
|
|
13443
|
+
zIndex: E.value,
|
|
13444
13444
|
"--reka-popper-transform-origin": [I(x).transformOrigin?.x, I(x).transformOrigin?.y].join(" "),
|
|
13445
13445
|
...I(x).hide?.referenceHidden && {
|
|
13446
13446
|
visibility: "hidden",
|
|
@@ -13707,14 +13707,14 @@ var [Mx, Nx] = /*#__PURE__*/ gh("ComboboxRoot"), Px = /* @__PURE__ */ z({
|
|
|
13707
13707
|
!e && r.resetSearchTermOnBlur && b.trigger();
|
|
13708
13708
|
}, 1));
|
|
13709
13709
|
}
|
|
13710
|
-
let b = Fp(), x = /* @__PURE__ */ F(!1), S = /* @__PURE__ */ F(!1), C = /* @__PURE__ */ F(), w = /* @__PURE__ */ F(), T = Z(() => a.value?.highlightedElement ?? void 0),
|
|
13710
|
+
let b = Fp(), x = /* @__PURE__ */ F(!1), S = /* @__PURE__ */ F(!1), C = /* @__PURE__ */ F(), w = /* @__PURE__ */ F(), T = Z(() => a.value?.highlightedElement ?? void 0), E = jx(v), ee = /* @__PURE__ */ F(/* @__PURE__ */ new Map()), D = /* @__PURE__ */ F(/* @__PURE__ */ new Map()), { contains: O } = ag({ sensitivity: "base" }), te = /* @__PURE__ */ F(""), ne = Z((e) => {
|
|
13711
13711
|
if (!te.value || r.ignoreFilter || S.value) return {
|
|
13712
|
-
count:
|
|
13712
|
+
count: ee.value.size,
|
|
13713
13713
|
items: e?.items ?? /* @__PURE__ */ new Map(),
|
|
13714
13714
|
groups: e?.groups ?? new Set(D.value.keys())
|
|
13715
13715
|
};
|
|
13716
13716
|
let t = 0, n = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Set();
|
|
13717
|
-
for (let [e, r] of
|
|
13717
|
+
for (let [e, r] of ee.value) {
|
|
13718
13718
|
let i = O(r, te.value);
|
|
13719
13719
|
n.set(e, +!!i), i && t++;
|
|
13720
13720
|
}
|
|
@@ -13742,7 +13742,7 @@ var [Mx, Nx] = /*#__PURE__*/ gh("ComboboxRoot"), Px = /* @__PURE__ */ z({
|
|
|
13742
13742
|
disabled: c,
|
|
13743
13743
|
open: v,
|
|
13744
13744
|
onOpenChange: y,
|
|
13745
|
-
...
|
|
13745
|
+
...E,
|
|
13746
13746
|
contentId: "",
|
|
13747
13747
|
isUserInputted: x,
|
|
13748
13748
|
isVirtual: S,
|
|
@@ -13754,7 +13754,7 @@ var [Mx, Nx] = /*#__PURE__*/ gh("ComboboxRoot"), Px = /* @__PURE__ */ z({
|
|
|
13754
13754
|
parentElement: o,
|
|
13755
13755
|
resetSearchTermOnSelect: u,
|
|
13756
13756
|
onResetSearchTerm: b.on,
|
|
13757
|
-
allItems:
|
|
13757
|
+
allItems: ee,
|
|
13758
13758
|
allGroups: D,
|
|
13759
13759
|
filterSearch: te,
|
|
13760
13760
|
filterState: ne,
|
|
@@ -13894,18 +13894,18 @@ var [Mx, Nx] = /*#__PURE__*/ gh("ComboboxRoot"), Px = /* @__PURE__ */ z({
|
|
|
13894
13894
|
!e && r.resetSearchTermOnBlur && v.trigger();
|
|
13895
13895
|
}, 1));
|
|
13896
13896
|
}
|
|
13897
|
-
let v = Fp(), y = /* @__PURE__ */ F(!1), b = /* @__PURE__ */ F(!1), x = /* @__PURE__ */ F(), S = /* @__PURE__ */ F(), C = Z(() => a.value?.highlightedElement ?? void 0), w = jx(h), T = /* @__PURE__ */ F(/* @__PURE__ */ new Map()),
|
|
13897
|
+
let v = Fp(), y = /* @__PURE__ */ F(!1), b = /* @__PURE__ */ F(!1), x = /* @__PURE__ */ F(), S = /* @__PURE__ */ F(), C = Z(() => a.value?.highlightedElement ?? void 0), w = jx(h), T = /* @__PURE__ */ F(/* @__PURE__ */ new Map()), E = /* @__PURE__ */ F(/* @__PURE__ */ new Map()), { contains: ee } = ag({ sensitivity: "base" }), D = /* @__PURE__ */ F(""), O = Z((e) => {
|
|
13898
13898
|
if (!D.value || r.ignoreFilter || b.value) return {
|
|
13899
13899
|
count: T.value.size,
|
|
13900
13900
|
items: e?.items ?? /* @__PURE__ */ new Map(),
|
|
13901
|
-
groups: e?.groups ?? new Set(
|
|
13901
|
+
groups: e?.groups ?? new Set(E.value.keys())
|
|
13902
13902
|
};
|
|
13903
13903
|
let t = 0, n = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Set();
|
|
13904
13904
|
for (let [e, r] of T.value) {
|
|
13905
|
-
let i =
|
|
13905
|
+
let i = ee(r, D.value);
|
|
13906
13906
|
n.set(e, +!!i), i && t++;
|
|
13907
13907
|
}
|
|
13908
|
-
for (let [e, t] of
|
|
13908
|
+
for (let [e, t] of E.value) for (let r of t) if (n.get(r) > 0) {
|
|
13909
13909
|
i.add(e);
|
|
13910
13910
|
break;
|
|
13911
13911
|
}
|
|
@@ -13942,7 +13942,7 @@ var [Mx, Nx] = /*#__PURE__*/ gh("ComboboxRoot"), Px = /* @__PURE__ */ z({
|
|
|
13942
13942
|
resetSearchTermOnSelect: /* @__PURE__ */ F(!1),
|
|
13943
13943
|
onResetSearchTerm: v.on,
|
|
13944
13944
|
allItems: T,
|
|
13945
|
-
allGroups:
|
|
13945
|
+
allGroups: E,
|
|
13946
13946
|
filterSearch: D,
|
|
13947
13947
|
filterState: O,
|
|
13948
13948
|
ignoreFilter: c,
|
|
@@ -15591,10 +15591,10 @@ var xS = tm(bS), [SS, CS] = /*#__PURE__*/ gh(["MenuRoot", "MenuSub"], "MenuConte
|
|
|
15591
15591
|
function T(e) {
|
|
15592
15592
|
return p.value === f.value?.side && G_(e, f.value?.area);
|
|
15593
15593
|
}
|
|
15594
|
-
async function
|
|
15594
|
+
async function E(e) {
|
|
15595
15595
|
r("openAutoFocus", e), !e.defaultPrevented && (e.preventDefault(), v.value?.focus({ preventScroll: !0 }));
|
|
15596
15596
|
}
|
|
15597
|
-
function
|
|
15597
|
+
function ee(e) {
|
|
15598
15598
|
if (e.defaultPrevented) return;
|
|
15599
15599
|
let t = e.target, n = t.closest("[data-reka-menu-content]") === e.currentTarget, r = ["input", "textarea"].includes(t.tagName.toLowerCase()), i = e.ctrlKey || e.altKey || e.metaKey, o = e.key.length === 1, s = Uh(e, _h(), v.value, {
|
|
15600
15600
|
loop: c.value,
|
|
@@ -15645,7 +15645,7 @@ var xS = tm(bS), [SS, CS] = /*#__PURE__*/ gh(["MenuRoot", "MenuSub"], "MenuConte
|
|
|
15645
15645
|
}), (e, t) => (U(), G(I(M_), {
|
|
15646
15646
|
"as-child": "",
|
|
15647
15647
|
trapped: I(o),
|
|
15648
|
-
onMountAutoFocus:
|
|
15648
|
+
onMountAutoFocus: E,
|
|
15649
15649
|
onUnmountAutoFocus: t[7] ||= (e) => r("closeAutoFocus", e)
|
|
15650
15650
|
}, {
|
|
15651
15651
|
default: L(() => [q(I(__), {
|
|
@@ -15693,7 +15693,7 @@ var xS = tm(bS), [SS, CS] = /*#__PURE__*/ gh(["MenuRoot", "MenuSub"], "MenuConte
|
|
|
15693
15693
|
sticky: e.sticky,
|
|
15694
15694
|
"hide-when-detached": e.hideWhenDetached,
|
|
15695
15695
|
reference: e.reference,
|
|
15696
|
-
onKeydown:
|
|
15696
|
+
onKeydown: ee,
|
|
15697
15697
|
onBlur: D,
|
|
15698
15698
|
onPointermove: O,
|
|
15699
15699
|
onPointerenter: te
|
|
@@ -20904,17 +20904,17 @@ var Uw = ["value"], [Ww, Gw] = /*#__PURE__*/ gh("SelectRoot"), Kw = /* @__PURE__
|
|
|
20904
20904
|
let r = t.right - o.right, i = window.innerWidth - n.right - r, a = window.innerWidth - e.right - i, s = e.width + a, c = Math.max(s, t.width), u = window.innerWidth - 10, d = hh(i, 10, Math.max(10, u - c));
|
|
20905
20905
|
l.value.style.minWidth = `${s}px`, l.value.style.right = `${d}px`;
|
|
20906
20906
|
}
|
|
20907
|
-
let c = i().map((e) => e.ref), u = window.innerHeight - 20, h = f.value.scrollHeight, g = window.getComputedStyle(d.value), _ = Number.parseInt(g.borderTopWidth, 10), v = Number.parseInt(g.paddingTop, 10), y = Number.parseInt(g.borderBottomWidth, 10), b = Number.parseInt(g.paddingBottom, 10), x = _ + v + h + b + y, S = Math.min(p.value.offsetHeight * 5, x), C = window.getComputedStyle(f.value), w = Number.parseInt(C.paddingTop, 10), T = Number.parseInt(C.paddingBottom, 10),
|
|
20908
|
-
if (te <=
|
|
20907
|
+
let c = i().map((e) => e.ref), u = window.innerHeight - 20, h = f.value.scrollHeight, g = window.getComputedStyle(d.value), _ = Number.parseInt(g.borderTopWidth, 10), v = Number.parseInt(g.paddingTop, 10), y = Number.parseInt(g.borderBottomWidth, 10), b = Number.parseInt(g.paddingBottom, 10), x = _ + v + h + b + y, S = Math.min(p.value.offsetHeight * 5, x), C = window.getComputedStyle(f.value), w = Number.parseInt(C.paddingTop, 10), T = Number.parseInt(C.paddingBottom, 10), E = e.top + e.height / 2 - 10, ee = u - E, D = p.value.offsetHeight / 2, O = p.value.offsetTop + D, te = _ + v + O, ne = x - te;
|
|
20908
|
+
if (te <= E) {
|
|
20909
20909
|
let e = p.value === c.at(-1);
|
|
20910
20910
|
l.value.style.bottom = "0px";
|
|
20911
|
-
let t = d.value.clientHeight - f.value.offsetTop - f.value.offsetHeight, n = te + Math.max(
|
|
20911
|
+
let t = d.value.clientHeight - f.value.offsetTop - f.value.offsetHeight, n = te + Math.max(ee, D + (e ? T : 0) + t + y);
|
|
20912
20912
|
l.value.style.height = `${n}px`;
|
|
20913
20913
|
} else {
|
|
20914
20914
|
let e = p.value === c[0];
|
|
20915
20915
|
l.value.style.top = "0px";
|
|
20916
|
-
let t = Math.max(
|
|
20917
|
-
l.value.style.height = `${t}px`, f.value.scrollTop = te -
|
|
20916
|
+
let t = Math.max(E, _ + f.value.offsetTop + (e ? w : 0) + D) + ne;
|
|
20917
|
+
l.value.style.height = `${t}px`, f.value.scrollTop = te - E + f.value.offsetTop;
|
|
20918
20918
|
}
|
|
20919
20919
|
l.value.style.margin = "10px 0", l.value.style.minHeight = `${S}px`, l.value.style.maxHeight = `${u}px`, r("placed"), requestAnimationFrame(() => s.value = !0);
|
|
20920
20920
|
}
|
|
@@ -24478,13 +24478,13 @@ var cD = sD(), lD = (e) => {
|
|
|
24478
24478
|
"full",
|
|
24479
24479
|
"auto",
|
|
24480
24480
|
...w()
|
|
24481
|
-
],
|
|
24481
|
+
], E = () => [
|
|
24482
24482
|
FO,
|
|
24483
24483
|
"none",
|
|
24484
24484
|
"subgrid",
|
|
24485
24485
|
ek,
|
|
24486
24486
|
KO
|
|
24487
|
-
],
|
|
24487
|
+
], ee = () => [
|
|
24488
24488
|
"auto",
|
|
24489
24489
|
{ span: [
|
|
24490
24490
|
"full",
|
|
@@ -24883,12 +24883,12 @@ var cD = sD(), lD = (e) => {
|
|
|
24883
24883
|
ek,
|
|
24884
24884
|
KO
|
|
24885
24885
|
] }],
|
|
24886
|
-
"grid-cols": [{ "grid-cols":
|
|
24887
|
-
"col-start-end": [{ col:
|
|
24886
|
+
"grid-cols": [{ "grid-cols": E() }],
|
|
24887
|
+
"col-start-end": [{ col: ee() }],
|
|
24888
24888
|
"col-start": [{ "col-start": D() }],
|
|
24889
24889
|
"col-end": [{ "col-end": D() }],
|
|
24890
|
-
"grid-rows": [{ "grid-rows":
|
|
24891
|
-
"row-start-end": [{ row:
|
|
24890
|
+
"grid-rows": [{ "grid-rows": E() }],
|
|
24891
|
+
"row-start-end": [{ row: ee() }],
|
|
24892
24892
|
"row-start": [{ "row-start": D() }],
|
|
24893
24893
|
"row-end": [{ "row-end": D() }],
|
|
24894
24894
|
"grid-flow": [{ "grid-flow": [
|
|
@@ -31323,13 +31323,13 @@ function FL(e) {
|
|
|
31323
31323
|
...i
|
|
31324
31324
|
};
|
|
31325
31325
|
}
|
|
31326
|
-
let { prevResolvedValues:
|
|
31326
|
+
let { prevResolvedValues: E } = i;
|
|
31327
31327
|
for (let t in {
|
|
31328
|
-
...
|
|
31328
|
+
...E,
|
|
31329
31329
|
...T
|
|
31330
31330
|
}) {
|
|
31331
31331
|
if (t in f) continue;
|
|
31332
|
-
let n = T[t], r =
|
|
31332
|
+
let n = T[t], r = E[t], a = Array.isArray(n) && Array.isArray(r) ? !NL(n, r) || x : n !== r;
|
|
31333
31333
|
if (a && n == null) d.add(t);
|
|
31334
31334
|
else if (a || n !== void 0 && d.has(t)) {
|
|
31335
31335
|
S = !0, d.delete(t) && (C = !0), i.needsAnimating[t] = !0;
|
|
@@ -35053,7 +35053,7 @@ var MV = {
|
|
|
35053
35053
|
"change"
|
|
35054
35054
|
],
|
|
35055
35055
|
setup(e, { expose: t, emit: n }) {
|
|
35056
|
-
let r = e, i = n, a = Aa(), o = AE("textarea", r), s = bm(o, "modelValue", i, { defaultValue: o.defaultValue }), c = Cm(), { emitFormFocus: l, emitFormBlur: u, emitFormInput: d, emitFormChange: f, size: p, color: m, id: h, name: g, highlight: _, disabled: v, ariaAttrs: y } = TA(r, { deferInputValidation: !0 }), b = Z(() => m.value ?? o.color), x = Z(() => _.value ?? o.highlight), S = Z(() => p.value ?? o.size), C = Z(() => v.value ?? o.disabled), { isLeading: w, isTrailing: T, leadingIconName:
|
|
35056
|
+
let r = e, i = n, a = Aa(), o = AE("textarea", r), s = bm(o, "modelValue", i, { defaultValue: o.defaultValue }), c = Cm(), { emitFormFocus: l, emitFormBlur: u, emitFormInput: d, emitFormChange: f, size: p, color: m, id: h, name: g, highlight: _, disabled: v, ariaAttrs: y } = TA(r, { deferInputValidation: !0 }), b = Z(() => m.value ?? o.color), x = Z(() => _.value ?? o.highlight), S = Z(() => p.value ?? o.size), C = Z(() => v.value ?? o.disabled), { isLeading: w, isTrailing: T, leadingIconName: E, trailingIconName: ee } = mA(o), D = Z(() => oA({
|
|
35057
35057
|
extend: BV,
|
|
35058
35058
|
...c.ui?.textarea || {}
|
|
35059
35059
|
})({
|
|
@@ -35139,9 +35139,9 @@ var MV = {
|
|
|
35139
35139
|
key: 0,
|
|
35140
35140
|
"data-slot": "leading",
|
|
35141
35141
|
class: j(D.value.leading({ class: I(o).ui?.leading }))
|
|
35142
|
-
}, [V(e.$slots, "leading", { ui: D.value }, () => [I(w) && I(
|
|
35142
|
+
}, [V(e.$slots, "leading", { ui: D.value }, () => [I(w) && I(E) ? (U(), G(sA, {
|
|
35143
35143
|
key: 0,
|
|
35144
|
-
name: I(
|
|
35144
|
+
name: I(E),
|
|
35145
35145
|
"data-slot": "leadingIcon",
|
|
35146
35146
|
class: j(D.value.leadingIcon({ class: I(o).ui?.leadingIcon }))
|
|
35147
35147
|
}, null, 8, ["name", "class"])) : I(o).avatar ? (U(), G(pA, X({
|
|
@@ -35155,9 +35155,9 @@ var MV = {
|
|
|
35155
35155
|
key: 1,
|
|
35156
35156
|
"data-slot": "trailing",
|
|
35157
35157
|
class: j(D.value.trailing({ class: I(o).ui?.trailing }))
|
|
35158
|
-
}, [V(e.$slots, "trailing", { ui: D.value }, () => [I(
|
|
35158
|
+
}, [V(e.$slots, "trailing", { ui: D.value }, () => [I(ee) ? (U(), G(sA, {
|
|
35159
35159
|
key: 0,
|
|
35160
|
-
name: I(
|
|
35160
|
+
name: I(ee),
|
|
35161
35161
|
"data-slot": "trailingIcon",
|
|
35162
35162
|
class: j(D.value.trailingIcon({ class: I(o).ui?.trailingIcon }))
|
|
35163
35163
|
}, null, 8, ["name", "class"])) : Y("", !0)])], 2)) : Y("", !0)
|
|
@@ -36335,16 +36335,16 @@ var MV = {
|
|
|
36335
36335
|
"change"
|
|
36336
36336
|
],
|
|
36337
36337
|
setup(e, { expose: t, emit: n }) {
|
|
36338
|
-
let r = e, i = n, a = Aa(), o = AE("input", r), s = bm(o, "modelValue", i, { defaultValue: o.defaultValue }), c = Cm(), { emitFormBlur: l, emitFormInput: u, emitFormChange: d, size: f, color: p, id: m, name: h, highlight: g, disabled: _, emitFormFocus: v, ariaAttrs: y } = TA(r, { deferInputValidation: !0 }), { orientation: b, size: x } = gA(r), { isLeading: S, isTrailing: C, leadingIconName: w, trailingIconName: T } = mA(o),
|
|
36338
|
+
let r = e, i = n, a = Aa(), o = AE("input", r), s = bm(o, "modelValue", i, { defaultValue: o.defaultValue }), c = Cm(), { emitFormBlur: l, emitFormInput: u, emitFormChange: d, size: f, color: p, id: m, name: h, highlight: g, disabled: _, emitFormFocus: v, ariaAttrs: y } = TA(r, { deferInputValidation: !0 }), { orientation: b, size: x } = gA(r), { isLeading: S, isTrailing: C, leadingIconName: w, trailingIconName: T } = mA(o), E = Z(() => p.value ?? o.color), ee = Z(() => g.value ?? o.highlight), D = Z(() => x.value ?? f.value ?? o.size), O = Z(() => _.value ?? o.disabled), te = Z(() => oA({
|
|
36339
36339
|
extend: qV,
|
|
36340
36340
|
...c.ui?.input || {}
|
|
36341
36341
|
})({
|
|
36342
36342
|
type: o.type,
|
|
36343
|
-
color:
|
|
36343
|
+
color: E.value,
|
|
36344
36344
|
variant: o.variant,
|
|
36345
36345
|
size: D.value,
|
|
36346
36346
|
loading: o.loading,
|
|
36347
|
-
highlight:
|
|
36347
|
+
highlight: ee.value,
|
|
36348
36348
|
fixed: o.fixed,
|
|
36349
36349
|
leading: S.value || !!o.avatar || !!a.leading,
|
|
36350
36350
|
trailing: C.value || !!a.trailing,
|
|
@@ -39032,7 +39032,7 @@ var _H = {
|
|
|
39032
39032
|
placeholder: c("selectMenu.search"),
|
|
39033
39033
|
variant: "none",
|
|
39034
39034
|
fixed: o.fixed
|
|
39035
|
-
})), { emitFormBlur: v, emitFormFocus: y, emitFormInput: b, emitFormChange: x, size: S, color: C, id: w, name: T, highlight:
|
|
39035
|
+
})), { emitFormBlur: v, emitFormFocus: y, emitFormInput: b, emitFormChange: x, size: S, color: C, id: w, name: T, highlight: E, disabled: ee, ariaAttrs: D } = TA(r), { orientation: O, size: te } = gA(r), { isLeading: ne, isTrailing: re, leadingIconName: ie, trailingIconName: ae } = mA(Z(() => ({
|
|
39036
39036
|
icon: o.icon,
|
|
39037
39037
|
leading: o.leading,
|
|
39038
39038
|
leadingIcon: o.leadingIcon,
|
|
@@ -39040,7 +39040,7 @@ var _H = {
|
|
|
39040
39040
|
trailingIcon: o.trailingIcon ?? l.ui.icons.chevronDown,
|
|
39041
39041
|
loading: o.loading,
|
|
39042
39042
|
loadingIcon: o.loadingIcon
|
|
39043
|
-
}))), oe = Z(() => C.value ?? o.color), k = Z(() =>
|
|
39043
|
+
}))), oe = Z(() => C.value ?? o.color), k = Z(() => E.value ?? o.highlight), se = Z(() => te.value ?? S.value ?? o.size), ce = Z(() => ee.value ?? o.disabled), [le, ue] = _m(), [de, fe] = _m({ props: {
|
|
39044
39044
|
item: {
|
|
39045
39045
|
type: [
|
|
39046
39046
|
Object,
|
|
@@ -39999,7 +39999,7 @@ var _H = {
|
|
|
39999
39999
|
sideOffset: 8,
|
|
40000
40000
|
collisionPadding: 8,
|
|
40001
40001
|
position: u.value
|
|
40002
|
-
})), f = /* @__PURE__ */ Sn(() => km(o.arrow, { rounded: !0 })), { emitFormChange: p, emitFormInput: m, emitFormBlur: h, emitFormFocus: g, size: _, color: v, id: y, name: b, highlight: x, disabled: S, ariaAttrs: C } = TA(r), { orientation: w, size: T } = gA(r), { isLeading:
|
|
40002
|
+
})), f = /* @__PURE__ */ Sn(() => km(o.arrow, { rounded: !0 })), { emitFormChange: p, emitFormInput: m, emitFormBlur: h, emitFormFocus: g, size: _, color: v, id: y, name: b, highlight: x, disabled: S, ariaAttrs: C } = TA(r), { orientation: w, size: T } = gA(r), { isLeading: E, isTrailing: ee, leadingIconName: D, trailingIconName: O } = mA(Z(() => ({
|
|
40003
40003
|
icon: o.icon,
|
|
40004
40004
|
leading: o.leading,
|
|
40005
40005
|
leadingIcon: o.leadingIcon,
|
|
@@ -40017,8 +40017,8 @@ var _H = {
|
|
|
40017
40017
|
loading: o.loading,
|
|
40018
40018
|
highlight: ne.value,
|
|
40019
40019
|
fixed: o.fixed,
|
|
40020
|
-
leading:
|
|
40021
|
-
trailing:
|
|
40020
|
+
leading: E.value || !!o.avatar || !!a.leading,
|
|
40021
|
+
trailing: ee.value || !!a.trailing,
|
|
40022
40022
|
fieldGroup: w.value,
|
|
40023
40023
|
position: u.value,
|
|
40024
40024
|
multiple: o.multiple
|
|
@@ -40099,7 +40099,7 @@ var _H = {
|
|
|
40099
40099
|
...I(C)
|
|
40100
40100
|
}, { onClick: (e) => me(n) }), {
|
|
40101
40101
|
default: L(() => [
|
|
40102
|
-
I(
|
|
40102
|
+
I(E) || I(o).avatar || a.leading ? (U(), W("span", {
|
|
40103
40103
|
key: 0,
|
|
40104
40104
|
"data-slot": "leading",
|
|
40105
40105
|
class: j(oe.value.leading({ class: I(o).ui?.leading }))
|
|
@@ -40107,7 +40107,7 @@ var _H = {
|
|
|
40107
40107
|
modelValue: e,
|
|
40108
40108
|
open: n,
|
|
40109
40109
|
ui: oe.value
|
|
40110
|
-
}, () => [I(
|
|
40110
|
+
}, () => [I(E) && I(D) ? (U(), G(sA, {
|
|
40111
40111
|
key: 0,
|
|
40112
40112
|
name: I(D),
|
|
40113
40113
|
"data-slot": "leadingIcon",
|
|
@@ -40131,7 +40131,7 @@ var _H = {
|
|
|
40131
40131
|
}, () => [J(P(r ?? I(o).placeholder ?? "\xA0"), 1)])]),
|
|
40132
40132
|
_: 2
|
|
40133
40133
|
}, 1032, ["data-slot", "class"]))), 128)),
|
|
40134
|
-
I(
|
|
40134
|
+
I(ee) || a.trailing ? (U(), W("span", {
|
|
40135
40135
|
key: 1,
|
|
40136
40136
|
"data-slot": "trailing",
|
|
40137
40137
|
class: j(oe.value.trailing({ class: I(o).ui?.trailing }))
|
|
@@ -42171,14 +42171,14 @@ var mU = /*#__PURE__*/ YH({
|
|
|
42171
42171
|
let t = Number(e.draft);
|
|
42172
42172
|
e.editing = !1, e.draft.trim() && Number.isFinite(t) && (O(e, t), D(e)), e.draft = String(e.selected);
|
|
42173
42173
|
}
|
|
42174
|
-
function
|
|
42174
|
+
function E(e, t, n) {
|
|
42175
42175
|
return e.hand === null ? t < e.min || t > e.max ? y(t - f(t, e.max, e.min), n, 8) : e.target === null ? -s * n : y(t - e.target, n, 4.5) : y(t - e.hand, n, 6);
|
|
42176
42176
|
}
|
|
42177
|
-
function
|
|
42177
|
+
function ee(e, t) {
|
|
42178
42178
|
let n = Math.ceil(t / .004166666666666667), r = t / n;
|
|
42179
42179
|
for (let t = 0; t < n; t++) {
|
|
42180
42180
|
e.hand === null && e.target === null && Math.abs(e.v) / s <= .5 && (e.target = f(Math.round(e.x + e.v / s), e.max, e.min));
|
|
42181
|
-
let t = e.x, n = e.v, i =
|
|
42181
|
+
let t = e.x, n = e.v, i = E(e, t, n), a = n + i * r / 2, o = E(e, t + n * r / 2, a), c = n + o * r / 2, l = E(e, t + a * r / 2, c), u = n + l * r, d = E(e, t + c * r, u);
|
|
42182
42182
|
e.x += r * (n + 2 * a + 2 * c + u) / 6, e.v += r * (i + 2 * o + 2 * l + d) / 6;
|
|
42183
42183
|
}
|
|
42184
42184
|
}
|
|
@@ -42195,7 +42195,7 @@ var mU = /*#__PURE__*/ YH({
|
|
|
42195
42195
|
let n = !1;
|
|
42196
42196
|
for (let e of l) {
|
|
42197
42197
|
if (_(e).unlimited || e.editing) continue;
|
|
42198
|
-
|
|
42198
|
+
ee(e, t);
|
|
42199
42199
|
let r = Math.abs(e.x - (e.target ?? p(e))) < .001 && Math.abs(e.v) < .01;
|
|
42200
42200
|
!e.pointer && r && O(e, p(e)), D(e), n ||= !!e.pointer || !r;
|
|
42201
42201
|
}
|
|
@@ -42785,12 +42785,12 @@ var mU = /*#__PURE__*/ YH({
|
|
|
42785
42785
|
}, {
|
|
42786
42786
|
value: "submitter",
|
|
42787
42787
|
label: "代发者整理"
|
|
42788
|
-
}], g = o("search-input"), _ = /* @__PURE__ */ F(null), v = /* @__PURE__ */ F(/* @__PURE__ */ new Set()), y = /* @__PURE__ */ new WeakMap(), b = Z(() => new Map(i.value.messages.map((e) => (y.has(e) || y.set(e, Rt(e)), [e.id, y.get(e)])))), x = /* @__PURE__ */ F(null), S = /* @__PURE__ */ F(!1), C = /* @__PURE__ */ F(null), w = /* @__PURE__ */ F(null), T = /* @__PURE__ */ F(null),
|
|
42788
|
+
}], g = o("search-input"), _ = /* @__PURE__ */ F(null), v = /* @__PURE__ */ F(/* @__PURE__ */ new Set()), y = /* @__PURE__ */ new WeakMap(), b = Z(() => new Map(i.value.messages.map((e) => (y.has(e) || y.set(e, Rt(e)), [e.id, y.get(e)])))), x = /* @__PURE__ */ F(null), S = /* @__PURE__ */ F(!1), C = /* @__PURE__ */ F(null), w = /* @__PURE__ */ F(null), T = /* @__PURE__ */ F(null), E = /* @__PURE__ */ F(null), ee = /* @__PURE__ */ F(!1), D = /* @__PURE__ */ F(!1), O = /* @__PURE__ */ F(null), te = /* @__PURE__ */ F(0), ne = /* @__PURE__ */ F(0), re = /* @__PURE__ */ F(0), ie = EV(), ae = {
|
|
42789
42789
|
type: "spring",
|
|
42790
42790
|
mass: 1,
|
|
42791
42791
|
stiffness: 604.0197893466687,
|
|
42792
42792
|
damping: 44.729801589453814
|
|
42793
|
-
}, oe = null, k = !1, se = TV(0, ae), ce = TV(0, ae), le = TV(0, ae), ue = CV(le, [0, 1], [.96, 1]), de = CV(le, [0, 1], [-8, 0]), fe = CV(le, [0, 1], [0, 1]), pe = Z(() => i.value.messages.find((e) => e.id === T.value)), me = Z(() => Jt.value.find((e) => e.messages.some((e) => e.id === T.value))), he = Z(() => me.value?.label), ge = Z(() => D.value ? Qt.value.findIndex((e) => e.key ===
|
|
42793
|
+
}, oe = null, k = !1, se = TV(0, ae), ce = TV(0, ae), le = TV(0, ae), ue = CV(le, [0, 1], [.96, 1]), de = CV(le, [0, 1], [-8, 0]), fe = CV(le, [0, 1], [0, 1]), pe = Z(() => i.value.messages.find((e) => e.id === T.value)), me = Z(() => Jt.value.find((e) => e.messages.some((e) => e.id === T.value))), he = Z(() => me.value?.label), ge = Z(() => D.value ? Qt.value.findIndex((e) => e.key === E.value) : -1), _e = /* @__PURE__ */ F(null), M = /* @__PURE__ */ F(!0), N = Z(() => i.value.room), ve = Z(() => ["pending", "notified"].includes(N.value?.current_turn?.status) && !["paused", "concluded"].includes(N.value.phase) ? N.value.current_turn : null), ye = (e) => e?.access === "manual" && e.manual_source !== "web" && e.status === "active", be = Z(() => (N.value.members || []).find((e) => e.name === ve.value?.expert)), xe = Z(() => N.value?.archived ? null : (N.value?.members || []).find((e) => ye(e) && !e.registered_at) || null), Se = Z(() => {
|
|
42794
42794
|
let e = be.value;
|
|
42795
42795
|
if (!ve.value || !e) return "";
|
|
42796
42796
|
let t = a.display_name(e.name);
|
|
@@ -43406,7 +43406,7 @@ var mU = /*#__PURE__*/ YH({
|
|
|
43406
43406
|
oe?.pointer === e.pointerId && (e.type === "pointercancel" && (k = !0), bn());
|
|
43407
43407
|
}
|
|
43408
43408
|
function mn(e, t) {
|
|
43409
|
-
["touch", "pen"].includes(t.pointerType) ? oe?.pointer === t.pointerId && Math.hypot(t.clientX - oe.x, t.clientY - oe.y) > nK && (k = !0, bn()) : t.type === "pointerenter" && S.value || (S.value = !1, (
|
|
43409
|
+
["touch", "pen"].includes(t.pointerType) ? oe?.pointer === t.pointerId && Math.hypot(t.clientX - oe.x, t.clientY - oe.y) > nK && (k = !0, bn()) : t.type === "pointerenter" && S.value || (S.value = !1, (E.value !== e.key || !D.value) && yn(e, t));
|
|
43410
43410
|
}
|
|
43411
43411
|
function hn(e, t) {
|
|
43412
43412
|
k && t.detail !== 0 ? (k = !1, t.preventDefault()) : rn(e.message.id);
|
|
@@ -43422,7 +43422,7 @@ var mU = /*#__PURE__*/ YH({
|
|
|
43422
43422
|
}
|
|
43423
43423
|
async function yn(e, t) {
|
|
43424
43424
|
let n = e.message, r = t.currentTarget.getBoundingClientRect(), i = x.value.getBoundingClientRect(), a = Math.min(RG, innerWidth - 24), o = i.right + VG;
|
|
43425
|
-
if (te.value = Math.max(BG, Math.min(o, innerWidth - a - BG)), T.value = n.id,
|
|
43425
|
+
if (te.value = Math.max(BG, Math.min(o, innerWidth - a - BG)), T.value = n.id, E.value = e.key, ee.value = e.round, D.value = !0, await Qn(), !D.value || E.value !== e.key) return;
|
|
43426
43426
|
re.value = O.value.scrollHeight + zG;
|
|
43427
43427
|
let s = (Math.max(r.top, i.top + eK) + Math.min(r.bottom, i.bottom - eK)) / 2 - re.value / 2;
|
|
43428
43428
|
ne.value = Math.max(BG, Math.min(s, innerHeight - re.value - BG));
|
|
@@ -43650,7 +43650,7 @@ var mU = /*#__PURE__*/ YH({
|
|
|
43650
43650
|
"aria-label": e.label,
|
|
43651
43651
|
tabindex: !e.round && e.message.id === (C.value || I(i).messages[0]?.id) ? 0 : -1,
|
|
43652
43652
|
"aria-current": !e.round && C.value === e.message.id ? "location" : void 0,
|
|
43653
|
-
"aria-describedby": D.value &&
|
|
43653
|
+
"aria-describedby": D.value && E.value === e.key ? "channel-navigation-preview" : void 0,
|
|
43654
43654
|
onPointerenter: (t) => mn(e, t),
|
|
43655
43655
|
onPointermove: (t) => mn(e, t),
|
|
43656
43656
|
onPointerdown: (t) => dn(e, t),
|
|
@@ -43696,7 +43696,7 @@ var mU = /*#__PURE__*/ YH({
|
|
|
43696
43696
|
ref: O,
|
|
43697
43697
|
class: "channel-nav-preview-content"
|
|
43698
43698
|
}, [
|
|
43699
|
-
|
|
43699
|
+
ee.value ? (U(), W("h3", HU, P(he.value), 1)) : Y("", !0),
|
|
43700
43700
|
K("div", UU, [
|
|
43701
43701
|
q(y, {
|
|
43702
43702
|
src: I(a).identities[pe.value.author]?.icon,
|
|
@@ -45510,7 +45510,7 @@ var mU = /*#__PURE__*/ YH({
|
|
|
45510
45510
|
required: a.required,
|
|
45511
45511
|
disabled: x.value
|
|
45512
45512
|
}));
|
|
45513
|
-
function
|
|
45513
|
+
function E(e) {
|
|
45514
45514
|
let t = new Event("change", { target: { value: e } });
|
|
45515
45515
|
i("change", t), l(), u();
|
|
45516
45516
|
}
|
|
@@ -45531,7 +45531,7 @@ var mU = /*#__PURE__*/ YH({
|
|
|
45531
45531
|
disabled: x.value,
|
|
45532
45532
|
"data-slot": "base",
|
|
45533
45533
|
class: T.value.base({ class: I(a).ui?.base }),
|
|
45534
|
-
"onUpdate:modelValue":
|
|
45534
|
+
"onUpdate:modelValue": E
|
|
45535
45535
|
}), {
|
|
45536
45536
|
default: L(({ state: e }) => [I(a).indicator === "hidden" ? Y("", !0) : (U(), G(I(_S), {
|
|
45537
45537
|
key: 0,
|
|
@@ -45711,10 +45711,10 @@ var mU = /*#__PURE__*/ YH({
|
|
|
45711
45711
|
let t = h ? c.x + c.v / (4 * Math.PI * YK) : c.hand;
|
|
45712
45712
|
c.hand = null, c.pointer = null, x(t);
|
|
45713
45713
|
}
|
|
45714
|
-
function
|
|
45714
|
+
function E(e) {
|
|
45715
45715
|
c.pointer === e.pointerId && (c.hand = null, c.pointer = null, c.target = s.value, b());
|
|
45716
45716
|
}
|
|
45717
|
-
function
|
|
45717
|
+
function ee(e) {
|
|
45718
45718
|
let t = {
|
|
45719
45719
|
ArrowRight: s.value + 1,
|
|
45720
45720
|
ArrowUp: s.value + 1,
|
|
@@ -45749,12 +45749,12 @@ var mU = /*#__PURE__*/ YH({
|
|
|
45749
45749
|
"aria-valuemax": o.value,
|
|
45750
45750
|
"aria-valuenow": s.value,
|
|
45751
45751
|
"aria-valuetext": e.items[s.value].label,
|
|
45752
|
-
onKeydown:
|
|
45752
|
+
onKeydown: ee,
|
|
45753
45753
|
onPointerdown: C,
|
|
45754
45754
|
onPointermove: w,
|
|
45755
45755
|
onPointerup: T,
|
|
45756
|
-
onPointercancel:
|
|
45757
|
-
onLostpointercapture:
|
|
45756
|
+
onPointercancel: E,
|
|
45757
|
+
onLostpointercapture: E
|
|
45758
45758
|
}, [
|
|
45759
45759
|
n[0] ||= K("span", {
|
|
45760
45760
|
class: "effort-slider-track",
|
|
@@ -46461,7 +46461,7 @@ var mU = /*#__PURE__*/ YH({
|
|
|
46461
46461
|
sideOffset: 8,
|
|
46462
46462
|
collisionPadding: 8,
|
|
46463
46463
|
position: "popper"
|
|
46464
|
-
})), x = /* @__PURE__ */ Sn(() => km(o.arrow, { rounded: !0 })), S = Z(() => typeof o.clear == "object" ? o.clear : {}), C = /* @__PURE__ */ Sn(() => o.virtualize ? km(typeof o.virtualize == "boolean" ? {} : o.virtualize, { estimateSize: gH(Se.value, pe.value ?? "md", o.descriptionKey, !!a["item-description"]) }) : !1), { emitFormBlur: w, emitFormFocus: T, emitFormChange:
|
|
46464
|
+
})), x = /* @__PURE__ */ Sn(() => km(o.arrow, { rounded: !0 })), S = Z(() => typeof o.clear == "object" ? o.clear : {}), C = /* @__PURE__ */ Sn(() => o.virtualize ? km(typeof o.virtualize == "boolean" ? {} : o.virtualize, { estimateSize: gH(Se.value, pe.value ?? "md", o.descriptionKey, !!a["item-description"]) }) : !1), { emitFormBlur: w, emitFormFocus: T, emitFormChange: E, emitFormInput: ee, size: D, color: O, id: te, name: ne, highlight: re, disabled: ie, ariaAttrs: ae } = TA(r), { orientation: oe, size: k } = gA(r), { isLeading: se, isTrailing: ce, leadingIconName: le, trailingIconName: ue } = mA(Z(() => ({
|
|
46465
46465
|
icon: o.icon,
|
|
46466
46466
|
leading: o.leading,
|
|
46467
46467
|
leadingIcon: o.leadingIcon,
|
|
@@ -46535,7 +46535,7 @@ var mU = /*#__PURE__*/ YH({
|
|
|
46535
46535
|
if (/* @__PURE__ */ an(o.modelValue) === e) return;
|
|
46536
46536
|
o.modelModifiers?.trim && (typeof e == "string" || e == null) && (e = e?.trim() ?? null), o.modelModifiers?.number && (e = Um(e)), o.modelModifiers?.nullable && (e ??= null), o.modelModifiers?.optional && !o.modelModifiers?.nullable && e !== null && (e ??= void 0);
|
|
46537
46537
|
let t = new Event("change", { target: { value: e } });
|
|
46538
|
-
i("change", t),
|
|
46538
|
+
i("change", t), E(), ee(), d.value ? s.value = String(e ?? "") : o.resetSearchTermOnSelect && (s.value = "");
|
|
46539
46539
|
}
|
|
46540
46540
|
function ke(e) {
|
|
46541
46541
|
d.value || (s.value = e);
|
|
@@ -47516,96 +47516,96 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
47516
47516
|
mass: 1,
|
|
47517
47517
|
stiffness: 270.0323764138049,
|
|
47518
47518
|
damping: 31.550710806760762
|
|
47519
|
-
}), s =
|
|
47519
|
+
}), s = /* @__PURE__ */ F(null), c = /* @__PURE__ */ F(null), l = /* @__PURE__ */ F(null), u = /* @__PURE__ */ F(!1), d = /* @__PURE__ */ F(!1), f = Z(() => i.value.launch.profiles[n.name] || {}), p = Z(() => a.launch_clients[n.name] || []), m = Z(() => n.choices.filter((e) => e !== "manual" || p.value.some((e) => e.value !== "api"))), h = Z(() => n.mode === "cli"), g = {
|
|
47520
47520
|
cli: "程序启动",
|
|
47521
47521
|
manual: "手动启动",
|
|
47522
47522
|
online: "网页"
|
|
47523
|
-
},
|
|
47523
|
+
}, _ = Z(() => h.value && f.value.adapter === "api"), v = /* @__PURE__ */ F({
|
|
47524
47524
|
state: "",
|
|
47525
47525
|
message: ""
|
|
47526
47526
|
});
|
|
47527
47527
|
R(() => [
|
|
47528
|
-
|
|
47529
|
-
|
|
47530
|
-
|
|
47531
|
-
|
|
47528
|
+
f.value.base_url,
|
|
47529
|
+
f.value.api_protocol,
|
|
47530
|
+
f.value.model,
|
|
47531
|
+
f.value.api_key_ref
|
|
47532
47532
|
], () => {
|
|
47533
|
-
|
|
47533
|
+
v.value = {
|
|
47534
47534
|
state: "",
|
|
47535
47535
|
message: ""
|
|
47536
47536
|
};
|
|
47537
47537
|
});
|
|
47538
|
-
async function
|
|
47539
|
-
|
|
47538
|
+
async function y() {
|
|
47539
|
+
v.value = {
|
|
47540
47540
|
state: "loading",
|
|
47541
47541
|
message: ""
|
|
47542
47542
|
};
|
|
47543
47543
|
try {
|
|
47544
|
-
await a.check_launch_api(n.name),
|
|
47544
|
+
await a.check_launch_api(n.name), v.value = {
|
|
47545
47545
|
state: "ok",
|
|
47546
47546
|
message: "检查通过:模型已响应"
|
|
47547
47547
|
};
|
|
47548
47548
|
} catch (e) {
|
|
47549
|
-
|
|
47549
|
+
v.value = {
|
|
47550
47550
|
state: "error",
|
|
47551
47551
|
message: e.message
|
|
47552
47552
|
};
|
|
47553
47553
|
}
|
|
47554
47554
|
}
|
|
47555
|
-
let
|
|
47555
|
+
let b = Z(() => !i.value.launch.available && i.value.launch.relay?.clients[a.platform_of(n.name)]), x = Z(() => p.value.find((e) => e.value === (b.value || f.value.adapter))?.label || (i.value.launch.relay && !i.value.launch.available ? "电脑上未配置" : "待选择 App / CLI")), S = Z(() => n.mode === "manual"), C = {
|
|
47556
47556
|
Codex: "已实测:消息实时显示在已开窗口。",
|
|
47557
47557
|
Gemini: "已实测:App 会话实时显示;agy CLI 窗口需重启才显示后台发言。",
|
|
47558
47558
|
Claude: "已实测:原窗口开着时消息实时送入;关闭后在后台续接同一会话。"
|
|
47559
|
-
},
|
|
47559
|
+
}, w = Z(() => C[a.platform_of(n.name)] || ""), T = Z(() => !!f.value.session_id), E = Z(() => h.value && p.value.length > 0 && !(i.value.launch.relay && !i.value.launch.available)), ee = Z(() => n.mode === "online" ? `设置 ${n.name} 的参与方式` : `配置 ${n.name} 的启动方式`), D = Z(() => a.launch_model_state(n.name, i.value.launch)), O = Z(() => !!(h.value && D.value.supported)), te = Z(() => O.value && he.value.length ? "补齐上方连接后,可在这里选择模型与思考强度。" : f.value.adapter ? "模型与思考强度在 App 原聊天中选择,本页不覆盖 App 设置。" : "先选择软件入口。支持启动参数的 CLI 可在这里设置模型与强度。"), ne = {
|
|
47560
47560
|
low: "Low",
|
|
47561
47561
|
medium: "Medium",
|
|
47562
47562
|
high: "High",
|
|
47563
47563
|
xhigh: "Extra High",
|
|
47564
47564
|
max: "Max",
|
|
47565
47565
|
ultra: "Ultra"
|
|
47566
|
-
},
|
|
47567
|
-
let e =
|
|
47566
|
+
}, re = Z(() => {
|
|
47567
|
+
let e = D.value.efforts;
|
|
47568
47568
|
return e?.length ? [{
|
|
47569
47569
|
label: "默认强度",
|
|
47570
47570
|
value: ""
|
|
47571
47571
|
}, ...e.map((e) => ({
|
|
47572
|
-
label:
|
|
47572
|
+
label: ne[e] || e,
|
|
47573
47573
|
value: e
|
|
47574
47574
|
}))] : null;
|
|
47575
|
-
}),
|
|
47576
|
-
...
|
|
47575
|
+
}), ie = Z(() => f.value.adapter === "antigravity_cli" && f.value.model ? "" : D.value.defaults?.effort), ae = Z(() => f.value.effort ? ne[f.value.effort] || f.value.effort : ie.value ? ne[ie.value] || ie.value : "默认"), oe = Z(() => h.value && a.launch_can_set_access(n.name, i.value.launch)), k = Z(() => n.mode === "online" || h.value && f.value.adapter === "api"), se = Z(() => h.value && f.value.adapter !== "api"), ce = Z(() => f.value.project_access || i.value.launch.workspace?.project_access || "read"), le = Z(() => n.mode === "online" ? "你转发回答 · 网页聊天" : n.mode === "manual" ? "你来启动 · 自主发言" : `程序启动 · ${T.value ? "续接会话" : f.value.adapter === "api" ? "调用 API" : "新会话"}`), ue = Z(() => n.mode === "online" ? "不可(网页只读)" : "不可(须本机唤醒)"), de = Z(() => [
|
|
47576
|
+
...h.value ? [{
|
|
47577
47577
|
label: "状态",
|
|
47578
47578
|
value: n.status.text,
|
|
47579
47579
|
tone: n.status.tone
|
|
47580
47580
|
}] : [],
|
|
47581
47581
|
{
|
|
47582
47582
|
label: "启动",
|
|
47583
|
-
value:
|
|
47583
|
+
value: le.value
|
|
47584
47584
|
},
|
|
47585
|
-
...
|
|
47585
|
+
...h.value ? [{
|
|
47586
47586
|
label: "软件",
|
|
47587
|
-
value:
|
|
47587
|
+
value: x.value
|
|
47588
47588
|
}] : [],
|
|
47589
|
-
...
|
|
47589
|
+
...O.value ? [{
|
|
47590
47590
|
label: "模型",
|
|
47591
|
-
value:
|
|
47591
|
+
value: f.value.model || D.value.defaults?.model || "软件默认模型"
|
|
47592
47592
|
}] : [],
|
|
47593
|
-
...
|
|
47593
|
+
...O.value && f.value.adapter !== "api" ? [{
|
|
47594
47594
|
label: "强度",
|
|
47595
|
-
value:
|
|
47595
|
+
value: ae.value
|
|
47596
47596
|
}] : [],
|
|
47597
|
-
...
|
|
47597
|
+
...oe.value ? [{
|
|
47598
47598
|
label: "项目",
|
|
47599
|
-
value: jq(
|
|
47600
|
-
}] :
|
|
47599
|
+
value: jq(ce.value)
|
|
47600
|
+
}] : k.value ? [{
|
|
47601
47601
|
label: "项目",
|
|
47602
47602
|
value: "不访问"
|
|
47603
47603
|
}] : [],
|
|
47604
47604
|
...n.hosting && !n.host && !n.hostable ? [{
|
|
47605
47605
|
label: "主持",
|
|
47606
|
-
value:
|
|
47606
|
+
value: ue.value
|
|
47607
47607
|
}] : []
|
|
47608
|
-
]),
|
|
47608
|
+
]), fe = {
|
|
47609
47609
|
executable: {
|
|
47610
47610
|
label: "路径",
|
|
47611
47611
|
placeholder: "可执行文件完整路径"
|
|
@@ -47618,67 +47618,67 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
47618
47618
|
label: "聊天",
|
|
47619
47619
|
placeholder: "Codex App 来源聊天 ID"
|
|
47620
47620
|
}
|
|
47621
|
-
},
|
|
47622
|
-
let e =
|
|
47623
|
-
return !
|
|
47624
|
-
},
|
|
47621
|
+
}, pe = /* @__PURE__ */ F([]), me = () => {
|
|
47622
|
+
let e = f.value.adapter;
|
|
47623
|
+
return !se.value || !e ? [] : (e === "antigravity" ? ["ipc_directory"] : e === "codex" ? ["executable", "source_thread_id"] : ["executable"]).filter((e) => !f.value[e]);
|
|
47624
|
+
}, he = Z(() => se.value ? [.../* @__PURE__ */ new Set([...pe.value, ...me()])].map((e) => ({
|
|
47625
47625
|
field: e,
|
|
47626
|
-
...
|
|
47626
|
+
...fe[e]
|
|
47627
47627
|
})) : []);
|
|
47628
|
-
function
|
|
47628
|
+
function ge() {
|
|
47629
47629
|
Qn(() => {
|
|
47630
|
-
document.activeElement ===
|
|
47630
|
+
document.activeElement === s.value && (d.value ? l : c).value?.focus({ preventScroll: !0 });
|
|
47631
47631
|
});
|
|
47632
47632
|
}
|
|
47633
|
-
function
|
|
47633
|
+
function _e(e) {
|
|
47634
47634
|
let t = e >= AJ / 2;
|
|
47635
|
-
|
|
47635
|
+
d.value !== t && (d.value = t, ge());
|
|
47636
47636
|
}
|
|
47637
|
-
let
|
|
47638
|
-
function
|
|
47639
|
-
(!e || E.value) && (
|
|
47640
|
-
profile: JSON.parse(JSON.stringify(
|
|
47637
|
+
let M = o.on("change", _e), N = o.on("animationComplete", ge), ve = null;
|
|
47638
|
+
function ye(e) {
|
|
47639
|
+
(!e || E.value) && (s.value?.focus({ preventScroll: !0 }), pe.value = e ? me() : [], e && !u.value && (ve = {
|
|
47640
|
+
profile: JSON.parse(JSON.stringify(f.value)),
|
|
47641
47641
|
mode: n.mode
|
|
47642
|
-
}),
|
|
47642
|
+
}), u.value = e);
|
|
47643
47643
|
}
|
|
47644
|
-
function
|
|
47645
|
-
|
|
47644
|
+
function be() {
|
|
47645
|
+
ve &&= (a.restore_launch_profile(n.name, ve.profile), ve.mode !== n.mode && r("mode", ve.mode), null), ye(!1);
|
|
47646
47646
|
}
|
|
47647
|
-
let
|
|
47648
|
-
function
|
|
47649
|
-
a.write_description_draft(n.name, e), t && a.save_description_template(n.name, e),
|
|
47647
|
+
let xe = Z(() => i.value && a.description_draft(n.name).trim()), Se = /* @__PURE__ */ F(!1), Ce = Z(() => xe.value ? `描述:${xe.value}` : "添加描述:擅长什么、适合分到什么工作");
|
|
47648
|
+
function we({ text: e, as_template: t }) {
|
|
47649
|
+
a.write_description_draft(n.name, e), t && a.save_description_template(n.name, e), Se.value = !1;
|
|
47650
47650
|
}
|
|
47651
|
-
let
|
|
47652
|
-
if (!
|
|
47653
|
-
let e = a.expert_presets().find((e) => e.name ===
|
|
47654
|
-
return [
|
|
47651
|
+
let Te = Z(() => i.value.launch.presets.some((e) => e.name === n.name)), Ee = /* @__PURE__ */ F(!1), De = /* @__PURE__ */ F(""), Oe = Z(() => De.value.trim()), ke = Z(() => !Oe.value || Oe.value === `${a.platform_of(n.name)}-`), Ae = Z(() => i.value && !ke.value ? a.preset_identity(n.name, Oe.value) : ""), je = Z(() => {
|
|
47652
|
+
if (!Ae.value) return "预设名称会显示在“预设”行和房间里,可以不带平台前缀。";
|
|
47653
|
+
let e = a.expert_presets().find((e) => e.name === Ae.value);
|
|
47654
|
+
return [Ae.value === Oe.value ? "" : `成员 ID:${Ae.value}`, e ? `将覆盖已有预设「${e.label || e.name}」` : ""].filter(Boolean).join(" · ") || "预设名称即成员 ID";
|
|
47655
47655
|
});
|
|
47656
|
-
function
|
|
47657
|
-
if (
|
|
47656
|
+
function Me() {
|
|
47657
|
+
if (Te.value) return a.save_expert_preset(n.name);
|
|
47658
47658
|
let e = new Set(a.expert_presets().map((e) => e.name)), t = a.platform_of(n.name), r = 1;
|
|
47659
47659
|
for (; e.has(a.preset_identity(n.name, `${t}-${r}`));) r += 1;
|
|
47660
|
-
|
|
47660
|
+
De.value = `${t}-${r}`, Ee.value = !0;
|
|
47661
47661
|
}
|
|
47662
|
-
async function
|
|
47663
|
-
|
|
47662
|
+
async function Ne() {
|
|
47663
|
+
ke.value || (await a.save_expert_preset(n.name, Oe.value), Ee.value = !1);
|
|
47664
47664
|
}
|
|
47665
|
-
let
|
|
47666
|
-
let e =
|
|
47667
|
-
return e ? e ===
|
|
47668
|
-
}),
|
|
47665
|
+
let Pe = Z(() => wq[f.value.adapter] || ""), Fe = Z(() => Object.hasOwn(f.value, "system_prompt")), Ie = Z(() => (Fe.value ? f.value.system_prompt : Pe.value).trim()), Le = Z(() => Ie.value ? `专属提示词(${Fe.value ? "自定义" : "软件预设"}):${Ie.value.split("\n")[0]}` : "专属提示词:未设置,点击添加"), Re = /* @__PURE__ */ F(!1), ze = /* @__PURE__ */ F(""), Be = Z(() => ze.value.trim() !== Ie.value), Ve = Z(() => {
|
|
47666
|
+
let e = ze.value.trim();
|
|
47667
|
+
return e ? e === Pe.value.trim() ? "与软件预设一致,预设更新时自动跟随" : Pe.value ? "已改写,不再跟随软件预设" : "只发给这位专家,Ctrl + Enter 保存" : Pe.value ? "留空:这位专家不使用预设,也没有专属提示词" : "留空表示不使用";
|
|
47668
|
+
}), He = Z(() => Pe.value && ze.value.trim() !== Pe.value.trim() ? {
|
|
47669
47669
|
tag: "软件预设",
|
|
47670
|
-
text:
|
|
47670
|
+
text: Pe.value,
|
|
47671
47671
|
action: "恢复预设"
|
|
47672
|
-
} : null),
|
|
47673
|
-
let e =
|
|
47672
|
+
} : null), Ue = Z(() => {
|
|
47673
|
+
let e = f.value.adapter;
|
|
47674
47674
|
if (!e || e === "api") return null;
|
|
47675
47675
|
let t = /Windows/.test(navigator.userAgent), r = t && e !== "claude" ? "codiscuss.cmd" : "codiscuss", a = t ? e === "codex_cli" ? Iq : `(本机装有 rg 时附加)${Iq}` : "", { prompt: o, instructions: s } = Lq({
|
|
47676
47676
|
name: n.name,
|
|
47677
47677
|
role: n.host ? "host" : "member",
|
|
47678
47678
|
discussion: !1,
|
|
47679
47679
|
profile: {
|
|
47680
|
-
...
|
|
47681
|
-
cwd: i.value.launch.workspace?.cwd ||
|
|
47680
|
+
...f.value,
|
|
47681
|
+
cwd: i.value.launch.workspace?.cwd || f.value.cwd
|
|
47682
47682
|
},
|
|
47683
47683
|
cli: r,
|
|
47684
47684
|
room: "{房间}",
|
|
@@ -47711,20 +47711,20 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
47711
47711
|
]
|
|
47712
47712
|
};
|
|
47713
47713
|
});
|
|
47714
|
+
function We() {
|
|
47715
|
+
ze.value = Ie.value, Re.value = !0;
|
|
47716
|
+
}
|
|
47714
47717
|
function Ge() {
|
|
47715
|
-
|
|
47718
|
+
let e = ze.value.trim();
|
|
47719
|
+
a.write_launch(n.name, "system_prompt", e === Pe.value.trim() ? null : e), Re.value = !1;
|
|
47716
47720
|
}
|
|
47717
47721
|
function Ke() {
|
|
47718
|
-
let e = Be.value.trim();
|
|
47719
|
-
a.write_launch(n.name, "system_prompt", e === Fe.value.trim() ? null : e), ze.value = !1;
|
|
47720
|
-
}
|
|
47721
|
-
function qe() {
|
|
47722
47722
|
a.write_launch(n.name, "model", ""), a.write_launch(n.name, "effort", "");
|
|
47723
47723
|
}
|
|
47724
|
-
function
|
|
47724
|
+
function qe(e) {
|
|
47725
47725
|
e === "cli" && a.default_launch_entry(n.name), e === "manual" && a.write_description_draft(n.name, ""), r("mode", e);
|
|
47726
47726
|
}
|
|
47727
|
-
function
|
|
47727
|
+
function Je(e) {
|
|
47728
47728
|
let t = {
|
|
47729
47729
|
ArrowLeft: -1,
|
|
47730
47730
|
ArrowUp: -1,
|
|
@@ -47733,43 +47733,40 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
47733
47733
|
};
|
|
47734
47734
|
if (!(e.key in t) && !["Home", "End"].includes(e.key)) return;
|
|
47735
47735
|
e.preventDefault();
|
|
47736
|
-
let r =
|
|
47737
|
-
|
|
47736
|
+
let r = m.value, i = r.indexOf(n.mode), a = e.key === "Home" ? r[0] : e.key === "End" ? r.at(-1) : r[(i + t[e.key] + r.length) % r.length];
|
|
47737
|
+
qe(a), e.currentTarget.querySelector(`[data-mode="${a}"]`)?.focus();
|
|
47738
|
+
}
|
|
47739
|
+
function Ye(e) {
|
|
47740
|
+
u.value && (e.stopPropagation(), e.preventDefault(), be());
|
|
47738
47741
|
}
|
|
47739
47742
|
function Xe(e) {
|
|
47740
|
-
|
|
47741
|
-
}
|
|
47742
|
-
|
|
47743
|
-
|
|
47744
|
-
}
|
|
47745
|
-
|
|
47746
|
-
e ? document.addEventListener("pointerdown", Ze, !0) : document.removeEventListener("pointerdown", Ze, !0);
|
|
47747
|
-
}), R([d, s], ([e, t]) => {
|
|
47748
|
-
let n = e ? AJ : 0;
|
|
47749
|
-
t ? (o.jump(n), _e()) : o.set(n);
|
|
47750
|
-
}), R(() => [
|
|
47751
|
-
te.value,
|
|
47743
|
+
Re.value || Se.value || Ee.value || s.value?.contains(e.target) || e.target.closest?.(jJ) || ye(!1);
|
|
47744
|
+
}
|
|
47745
|
+
return R(u, (e) => {
|
|
47746
|
+
e ? document.addEventListener("pointerdown", Xe, !0) : document.removeEventListener("pointerdown", Xe, !0);
|
|
47747
|
+
}), R(u, (e) => o.set(e ? AJ : 0)), R(() => [
|
|
47748
|
+
O.value,
|
|
47752
47749
|
i.value.launch.available,
|
|
47753
|
-
|
|
47750
|
+
f.value.adapter
|
|
47754
47751
|
], ([e, t]) => {
|
|
47755
47752
|
e && t && a.load_launch_models(n.name);
|
|
47756
47753
|
}, { immediate: !0 }), ta(() => {
|
|
47757
|
-
document.removeEventListener("pointerdown",
|
|
47754
|
+
document.removeEventListener("pointerdown", Xe, !0), M(), N(), o.stop();
|
|
47758
47755
|
}), (t, n) => {
|
|
47759
|
-
let
|
|
47756
|
+
let u = pA, b = sA, x = MA, C = bH, T = YV, ne = JH;
|
|
47760
47757
|
return U(), W("div", {
|
|
47761
47758
|
ref_key: "card",
|
|
47762
|
-
ref:
|
|
47759
|
+
ref: s,
|
|
47763
47760
|
class: j(["expert-card", {
|
|
47764
|
-
"is-configurable":
|
|
47761
|
+
"is-configurable": O.value,
|
|
47765
47762
|
"is-host": e.host,
|
|
47766
|
-
"is-static": !
|
|
47767
|
-
"is-manual":
|
|
47763
|
+
"is-static": !h.value,
|
|
47764
|
+
"is-manual": S.value
|
|
47768
47765
|
}]),
|
|
47769
47766
|
"data-identity": I(a).identities[e.name]?.style,
|
|
47770
|
-
"data-face":
|
|
47767
|
+
"data-face": d.value ? "back" : "front",
|
|
47771
47768
|
tabindex: "-1",
|
|
47772
|
-
onKeydown: fu(
|
|
47769
|
+
onKeydown: fu(Ye, ["esc"])
|
|
47773
47770
|
}, [
|
|
47774
47771
|
q(I(bV).div, {
|
|
47775
47772
|
class: "expert-card-turn",
|
|
@@ -47777,23 +47774,23 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
47777
47774
|
}, {
|
|
47778
47775
|
default: L(() => [K("div", {
|
|
47779
47776
|
class: "expert-card-face expert-card-front",
|
|
47780
|
-
inert:
|
|
47781
|
-
"aria-hidden":
|
|
47777
|
+
inert: d.value,
|
|
47778
|
+
"aria-hidden": d.value
|
|
47782
47779
|
}, [
|
|
47783
47780
|
(U(), G(da(E.value ? "button" : "div"), {
|
|
47784
47781
|
ref_key: "front_button",
|
|
47785
|
-
ref:
|
|
47782
|
+
ref: c,
|
|
47786
47783
|
type: E.value ? "button" : void 0,
|
|
47787
47784
|
class: j(["expert-card-open", {
|
|
47788
47785
|
"is-static": !E.value,
|
|
47789
|
-
"has-modes":
|
|
47786
|
+
"has-modes": m.value.length > 1
|
|
47790
47787
|
}]),
|
|
47791
|
-
"aria-label": E.value ?
|
|
47788
|
+
"aria-label": E.value ? ee.value : void 0,
|
|
47792
47789
|
title: E.value ? "点击翻面设置" : void 0,
|
|
47793
|
-
onClick: n[0] ||= (e) =>
|
|
47790
|
+
onClick: n[0] ||= (e) => ye(!0)
|
|
47794
47791
|
}, {
|
|
47795
47792
|
default: L(() => [
|
|
47796
|
-
K("span", Bq, [q(
|
|
47793
|
+
K("span", Bq, [q(u, {
|
|
47797
47794
|
src: I(a).identities[e.name]?.icon,
|
|
47798
47795
|
text: I(a).identities[e.name]?.initials,
|
|
47799
47796
|
alt: e.name,
|
|
@@ -47804,16 +47801,16 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
47804
47801
|
"text",
|
|
47805
47802
|
"alt",
|
|
47806
47803
|
"class"
|
|
47807
|
-
]), K("span", Vq, [
|
|
47804
|
+
]), K("span", Vq, [S.value ? (U(), W("span", Hq, [K("strong", { title: e.name }, P(I(a).display_name(e.name)) + "(手动)", 9, Uq), e.host && !e.hostable ? (U(), W("span", Wq, "主持")) : Y("", !0)])) : (U(), W("span", Gq, [K("strong", { title: I(a).member_label(e.name) === e.name ? void 0 : e.name }, P(I(a).member_label(e.name)), 9, Kq), e.host && !e.hostable ? (U(), W("span", qq, "主持")) : Y("", !0)])), xe.value ? (U(), W("small", {
|
|
47808
47805
|
key: 2,
|
|
47809
|
-
title:
|
|
47810
|
-
}, P(
|
|
47811
|
-
K("dl", Yq, [(U(!0), W(H, null, B(
|
|
47806
|
+
title: xe.value
|
|
47807
|
+
}, P(xe.value), 9, Jq)) : Y("", !0)])]),
|
|
47808
|
+
K("dl", Yq, [(U(!0), W(H, null, B(de.value, (e) => (U(), W("div", { key: e.label }, [K("dt", null, P(e.label), 1), K("dd", {
|
|
47812
47809
|
class: j(e.tone ? ["expert-card-status", `is-${e.tone}`] : ""),
|
|
47813
47810
|
title: e.value
|
|
47814
47811
|
}, [e.tone ? (U(), W("i", Zq)) : Y("", !0), J(P(e.value), 1)], 10, Xq)]))), 128))]),
|
|
47815
|
-
|
|
47816
|
-
E.value ? (U(), W("span", eJ, [q(
|
|
47812
|
+
S.value ? (U(), W("div", Qq, [n[17] ||= K("p", null, "会话自行注册后才算到场。", -1), w.value ? (U(), W("p", $q, P(w.value), 1)) : Y("", !0)])) : Y("", !0),
|
|
47813
|
+
E.value ? (U(), W("span", eJ, [q(b, { name: "i-lucide-settings-2" }), n[18] ||= J("设置", -1)])) : Y("", !0)
|
|
47817
47814
|
]),
|
|
47818
47815
|
_: 1
|
|
47819
47816
|
}, 8, [
|
|
@@ -47822,30 +47819,30 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
47822
47819
|
"aria-label",
|
|
47823
47820
|
"title"
|
|
47824
47821
|
])),
|
|
47825
|
-
|
|
47822
|
+
m.value.length > 1 ? (U(), W("div", {
|
|
47826
47823
|
key: 0,
|
|
47827
47824
|
class: "expert-card-modes expert-card-front-modes",
|
|
47828
47825
|
role: "radiogroup",
|
|
47829
47826
|
"aria-label": `${e.name} 启动方式`,
|
|
47830
|
-
onKeydown:
|
|
47831
|
-
}, [(U(!0), W(H, null, B(
|
|
47827
|
+
onKeydown: Je
|
|
47828
|
+
}, [(U(!0), W(H, null, B(m.value, (t) => (U(), W("button", {
|
|
47832
47829
|
key: t,
|
|
47833
47830
|
type: "button",
|
|
47834
47831
|
role: "radio",
|
|
47835
47832
|
"aria-checked": e.mode === t,
|
|
47836
47833
|
tabindex: e.mode === t ? 0 : -1,
|
|
47837
47834
|
"data-mode": t,
|
|
47838
|
-
onClick: (e) =>
|
|
47839
|
-
}, P(
|
|
47835
|
+
onClick: (e) => qe(t)
|
|
47836
|
+
}, P(g[t]), 9, nJ))), 128))], 40, tJ)) : Y("", !0),
|
|
47840
47837
|
K("span", rJ, [
|
|
47841
|
-
!E.value && !
|
|
47838
|
+
!E.value && !S.value ? (U(), W("button", {
|
|
47842
47839
|
key: 0,
|
|
47843
47840
|
type: "button",
|
|
47844
|
-
class: j({ "is-set":
|
|
47841
|
+
class: j({ "is-set": xe.value }),
|
|
47845
47842
|
"aria-label": `编辑 ${e.name} 的描述`,
|
|
47846
|
-
title:
|
|
47847
|
-
onClick: n[1] ||= (e) =>
|
|
47848
|
-
}, [q(
|
|
47843
|
+
title: Ce.value,
|
|
47844
|
+
onClick: n[1] ||= (e) => Se.value = !0
|
|
47845
|
+
}, [q(b, { name: "i-lucide-user-pen" })], 10, iJ)) : Y("", !0),
|
|
47849
47846
|
e.hostable ? (U(), W("button", {
|
|
47850
47847
|
key: 1,
|
|
47851
47848
|
type: "button",
|
|
@@ -47854,50 +47851,50 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
47854
47851
|
"aria-label": e.host ? `${e.name} 是主持人` : `设 ${e.name} 为主持人`,
|
|
47855
47852
|
title: e.host ? "主持人" : "设为主持人",
|
|
47856
47853
|
onClick: n[2] ||= (e) => r("host")
|
|
47857
|
-
}, [q(
|
|
47854
|
+
}, [q(b, { name: "i-lucide-crown" })], 8, aJ)) : Y("", !0),
|
|
47858
47855
|
K("button", {
|
|
47859
47856
|
type: "button",
|
|
47860
47857
|
"aria-label": `移出 ${e.name}`,
|
|
47861
47858
|
title: "移出",
|
|
47862
47859
|
onClick: n[3] ||= (e) => r("remove")
|
|
47863
|
-
}, [q(
|
|
47860
|
+
}, [q(b, { name: "i-lucide-x" })], 8, oJ)
|
|
47864
47861
|
])
|
|
47865
47862
|
], 8, zq), E.value ? (U(), W("div", {
|
|
47866
47863
|
key: 0,
|
|
47867
47864
|
class: "expert-card-face expert-card-back",
|
|
47868
|
-
inert: !
|
|
47869
|
-
"aria-hidden": !
|
|
47865
|
+
inert: !d.value,
|
|
47866
|
+
"aria-hidden": !d.value
|
|
47870
47867
|
}, [K("div", cJ, [
|
|
47871
47868
|
K("div", lJ, [K("strong", null, [J(P(I(a).member_label(e.name)), 1), n[19] ||= K("span", null, "设置", -1)]), K("span", uJ, [
|
|
47872
47869
|
K("button", {
|
|
47873
47870
|
type: "button",
|
|
47874
|
-
class: j(["expert-card-back-tool", { "is-set":
|
|
47871
|
+
class: j(["expert-card-back-tool", { "is-set": xe.value }]),
|
|
47875
47872
|
"aria-label": `编辑 ${e.name} 的描述`,
|
|
47876
|
-
title:
|
|
47877
|
-
onClick: n[4] ||= (e) =>
|
|
47878
|
-
}, [q(
|
|
47879
|
-
|
|
47873
|
+
title: Ce.value,
|
|
47874
|
+
onClick: n[4] ||= (e) => Se.value = !0
|
|
47875
|
+
}, [q(b, { name: "i-lucide-user-pen" })], 10, dJ),
|
|
47876
|
+
f.value.adapter ? (U(), W("button", {
|
|
47880
47877
|
key: 0,
|
|
47881
47878
|
type: "button",
|
|
47882
47879
|
class: j(["expert-card-back-tool", {
|
|
47883
|
-
"is-set":
|
|
47884
|
-
"is-own":
|
|
47880
|
+
"is-set": Ie.value,
|
|
47881
|
+
"is-own": Fe.value && Ie.value
|
|
47885
47882
|
}]),
|
|
47886
|
-
title:
|
|
47883
|
+
title: Le.value,
|
|
47887
47884
|
"aria-label": `编辑 ${e.name} 的专属提示词`,
|
|
47888
|
-
onClick:
|
|
47889
|
-
}, [q(
|
|
47890
|
-
|
|
47885
|
+
onClick: We
|
|
47886
|
+
}, [q(b, { name: "i-lucide-scroll-text" })], 10, fJ)) : Y("", !0),
|
|
47887
|
+
_.value ? (U(), G(x, {
|
|
47891
47888
|
key: 1,
|
|
47892
47889
|
icon: "i-lucide-zap",
|
|
47893
47890
|
"aria-label": `检查 ${e.name} 的 API 配置`,
|
|
47894
47891
|
title: "检查配置:发送一次极短请求,核对地址、密钥、协议与模型",
|
|
47895
47892
|
size: "xs",
|
|
47896
|
-
color:
|
|
47893
|
+
color: v.value.state === "ok" ? "success" : v.value.state === "error" ? "error" : "neutral",
|
|
47897
47894
|
variant: "ghost",
|
|
47898
|
-
loading:
|
|
47899
|
-
disabled: !
|
|
47900
|
-
onClick:
|
|
47895
|
+
loading: v.value.state === "loading",
|
|
47896
|
+
disabled: !f.value.api_key_ref || !f.value.model || !I(i).launch.available,
|
|
47897
|
+
onClick: y
|
|
47901
47898
|
}, null, 8, [
|
|
47902
47899
|
"aria-label",
|
|
47903
47900
|
"color",
|
|
@@ -47905,14 +47902,14 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
47905
47902
|
"disabled"
|
|
47906
47903
|
])) : Y("", !0)
|
|
47907
47904
|
])]),
|
|
47908
|
-
|
|
47905
|
+
_.value && v.value.message ? (U(), W("p", {
|
|
47909
47906
|
key: 0,
|
|
47910
|
-
role:
|
|
47907
|
+
role: v.value.state === "error" ? "alert" : "status",
|
|
47911
47908
|
class: "expert-card-check"
|
|
47912
|
-
}, P(
|
|
47913
|
-
|
|
47914
|
-
"model-value":
|
|
47915
|
-
items:
|
|
47909
|
+
}, P(v.value.message), 9, pJ)) : Y("", !0),
|
|
47910
|
+
h.value && p.value.length > 1 ? (U(), W("div", mJ, [n[20] ||= K("span", null, "接入", -1), q(C, {
|
|
47911
|
+
"model-value": f.value.adapter || "",
|
|
47912
|
+
items: p.value,
|
|
47916
47913
|
placeholder: "选择 API / App / CLI",
|
|
47917
47914
|
"aria-label": `${e.name} 软件入口`,
|
|
47918
47915
|
size: "xs",
|
|
@@ -47923,11 +47920,11 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
47923
47920
|
"items",
|
|
47924
47921
|
"aria-label"
|
|
47925
47922
|
])])) : Y("", !0),
|
|
47926
|
-
(U(!0), W(H, null, B(
|
|
47923
|
+
(U(!0), W(H, null, B(he.value, (t) => (U(), W("div", {
|
|
47927
47924
|
key: t.field,
|
|
47928
47925
|
class: "expert-card-field"
|
|
47929
|
-
}, [K("span", null, P(t.label), 1), q(
|
|
47930
|
-
"model-value":
|
|
47926
|
+
}, [K("span", null, P(t.label), 1), q(T, {
|
|
47927
|
+
"model-value": f.value[t.field] || "",
|
|
47931
47928
|
placeholder: t.placeholder,
|
|
47932
47929
|
"aria-label": `${e.name} ${t.placeholder}`,
|
|
47933
47930
|
size: "xs",
|
|
@@ -47939,26 +47936,26 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
47939
47936
|
"aria-label",
|
|
47940
47937
|
"onUpdate:modelValue"
|
|
47941
47938
|
])]))), 128)),
|
|
47942
|
-
|
|
47939
|
+
oe.value ? (U(), W("div", hJ, [n[21] ||= K("span", null, "项目", -1), K("div", {
|
|
47943
47940
|
class: "expert-card-modes",
|
|
47944
47941
|
role: "radiogroup",
|
|
47945
47942
|
"aria-label": `${e.name} 的项目文件权限`
|
|
47946
|
-
}, [(U(!0), W(H, null, B(I(Aq)(
|
|
47943
|
+
}, [(U(!0), W(H, null, B(I(Aq)(f.value.adapter), (t) => (U(), W("button", {
|
|
47947
47944
|
key: t.value,
|
|
47948
47945
|
type: "button",
|
|
47949
47946
|
role: "radio",
|
|
47950
47947
|
title: t.hint,
|
|
47951
|
-
"aria-checked":
|
|
47948
|
+
"aria-checked": ce.value === t.value,
|
|
47952
47949
|
onClick: (n) => I(a).write_launch(e.name, "project_access", t.value)
|
|
47953
47950
|
}, P(t.label), 9, _J))), 128))], 8, gJ)])) : Y("", !0),
|
|
47954
|
-
|
|
47951
|
+
_.value ? (U(), G(hq, {
|
|
47955
47952
|
key: 3,
|
|
47956
47953
|
name: e.name
|
|
47957
|
-
}, null, 8, ["name"])) :
|
|
47958
|
-
K("div", vJ, [n[22] ||= K("span", null, "模型", -1), q(
|
|
47959
|
-
"model-value":
|
|
47960
|
-
items:
|
|
47961
|
-
title:
|
|
47954
|
+
}, null, 8, ["name"])) : O.value && !he.value.length ? (U(), W(H, { key: 4 }, [
|
|
47955
|
+
K("div", vJ, [n[22] ||= K("span", null, "模型", -1), q(C, {
|
|
47956
|
+
"model-value": f.value.model || "__default__",
|
|
47957
|
+
items: D.value.items,
|
|
47958
|
+
title: D.value.source,
|
|
47962
47959
|
"aria-label": `${e.name} 使用的模型`,
|
|
47963
47960
|
size: "xs",
|
|
47964
47961
|
class: "w-full",
|
|
@@ -47969,71 +47966,71 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
47969
47966
|
"title",
|
|
47970
47967
|
"aria-label"
|
|
47971
47968
|
])]),
|
|
47972
|
-
|
|
47969
|
+
D.value.loading || D.value.error ? (U(), W("div", yJ, [K("span", null, P(D.value.loading ? "正在读取软件模型列表…" : D.value.error), 1), !D.value.loading && D.value.error && I(i).launch.available ? (U(), W("button", {
|
|
47973
47970
|
key: 0,
|
|
47974
47971
|
type: "button",
|
|
47975
47972
|
onClick: n[7] ||= (t) => I(a).load_launch_models(e.name, !0)
|
|
47976
47973
|
}, "重试")) : Y("", !0)])) : Y("", !0),
|
|
47977
|
-
|
|
47974
|
+
re.value ? (U(), W("div", bJ, [q(iq, {
|
|
47978
47975
|
caption: "强度",
|
|
47979
|
-
items:
|
|
47980
|
-
"model-value":
|
|
47976
|
+
items: re.value,
|
|
47977
|
+
"model-value": f.value.effort || "",
|
|
47981
47978
|
label: `${e.name} 的思考强度`,
|
|
47982
47979
|
"onUpdate:modelValue": n[8] ||= (t) => I(a).write_launch(e.name, "effort", t)
|
|
47983
47980
|
}, null, 8, [
|
|
47984
47981
|
"items",
|
|
47985
47982
|
"model-value",
|
|
47986
47983
|
"label"
|
|
47987
|
-
])])) : (U(), W("p", xJ, P(
|
|
47984
|
+
])])) : (U(), W("p", xJ, P(D.value.effort_note), 1)),
|
|
47988
47985
|
K("button", {
|
|
47989
47986
|
type: "button",
|
|
47990
47987
|
class: "expert-card-defaults",
|
|
47991
47988
|
title: "留空使用 CLI 默认值",
|
|
47992
47989
|
"aria-label": `恢复 ${e.name} 的默认模型与强度`,
|
|
47993
|
-
disabled: !
|
|
47994
|
-
onClick:
|
|
47990
|
+
disabled: !f.value.model && !f.value.effort,
|
|
47991
|
+
onClick: Ke
|
|
47995
47992
|
}, "恢复默认", 8, SJ)
|
|
47996
|
-
], 64)) : (U(), W("p", CJ, [q(
|
|
47993
|
+
], 64)) : (U(), W("p", CJ, [q(b, { name: e.mode === "online" ? "i-lucide-globe" : "i-lucide-monitor" }, null, 8, ["name"]), J(P(te.value), 1)]))
|
|
47997
47994
|
]), K("span", wJ, [
|
|
47998
|
-
I(i).launch.available ? (U(), W(H, { key: 0 }, [
|
|
47995
|
+
I(i).launch.available ? (U(), W(H, { key: 0 }, [Te.value ? (U(), W("button", {
|
|
47999
47996
|
key: 0,
|
|
48000
47997
|
type: "button",
|
|
48001
47998
|
class: "expert-card-flip is-cancel",
|
|
48002
47999
|
"aria-label": `删除预设「${e.name}」`,
|
|
48003
48000
|
title: "删除预设",
|
|
48004
48001
|
onClick: n[9] ||= (t) => I(a).delete_expert_preset(e.name)
|
|
48005
|
-
}, [q(
|
|
48002
|
+
}, [q(b, { name: "i-lucide-trash-2" })], 8, TJ)) : Y("", !0), K("button", {
|
|
48006
48003
|
type: "button",
|
|
48007
48004
|
class: "expert-card-flip is-cancel",
|
|
48008
|
-
"aria-label": `${
|
|
48005
|
+
"aria-label": `${Te.value ? "更新" : "存为"}预设「${e.name}」`,
|
|
48009
48006
|
title: "存下描述、提示词、项目权限、模型与强度,之后在“预设”行一键加入",
|
|
48010
|
-
onClick:
|
|
48011
|
-
}, P(
|
|
48007
|
+
onClick: Me
|
|
48008
|
+
}, P(Te.value ? "更新预设" : "存为预设"), 9, EJ)], 64)) : Y("", !0),
|
|
48012
48009
|
K("button", {
|
|
48013
48010
|
type: "button",
|
|
48014
48011
|
class: "expert-card-flip is-cancel",
|
|
48015
48012
|
"aria-label": `放弃 ${e.name} 的修改`,
|
|
48016
|
-
onClick:
|
|
48013
|
+
onClick: be
|
|
48017
48014
|
}, "取消", 8, DJ),
|
|
48018
48015
|
K("button", {
|
|
48019
48016
|
ref_key: "back_button",
|
|
48020
|
-
ref:
|
|
48017
|
+
ref: l,
|
|
48021
48018
|
type: "button",
|
|
48022
48019
|
class: "expert-card-flip is-done",
|
|
48023
48020
|
"aria-label": `保存并返回 ${e.name} 角色卡片`,
|
|
48024
|
-
onClick: n[10] ||= (e) =>
|
|
48025
|
-
}, [q(
|
|
48021
|
+
onClick: n[10] ||= (e) => ye(!1)
|
|
48022
|
+
}, [q(b, { name: "i-lucide-check" }), n[23] ||= J("完成", -1)], 8, OJ)
|
|
48026
48023
|
])], 8, sJ)) : Y("", !0)]),
|
|
48027
48024
|
_: 1
|
|
48028
48025
|
}, 8, ["style"]),
|
|
48029
48026
|
q(Sq, {
|
|
48030
|
-
open:
|
|
48031
|
-
"onUpdate:open": n[11] ||= (e) =>
|
|
48027
|
+
open: Se.value,
|
|
48028
|
+
"onUpdate:open": n[11] ||= (e) => Se.value = e,
|
|
48032
48029
|
name: e.name,
|
|
48033
48030
|
platform: I(a).platform_of(e.name),
|
|
48034
|
-
text:
|
|
48031
|
+
text: xe.value,
|
|
48035
48032
|
template: I(a).description_template(e.name),
|
|
48036
|
-
onSave:
|
|
48033
|
+
onSave: we
|
|
48037
48034
|
}, null, 8, [
|
|
48038
48035
|
"open",
|
|
48039
48036
|
"name",
|
|
@@ -48042,21 +48039,21 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
48042
48039
|
"template"
|
|
48043
48040
|
]),
|
|
48044
48041
|
q(bq, {
|
|
48045
|
-
open:
|
|
48046
|
-
"onUpdate:open": n[12] ||= (e) =>
|
|
48047
|
-
draft:
|
|
48048
|
-
"onUpdate:draft": n[13] ||= (e) =>
|
|
48042
|
+
open: Re.value,
|
|
48043
|
+
"onUpdate:open": n[12] ||= (e) => Re.value = e,
|
|
48044
|
+
draft: ze.value,
|
|
48045
|
+
"onUpdate:draft": n[13] ||= (e) => ze.value = e,
|
|
48049
48046
|
title: `${e.name} 的专属提示词`,
|
|
48050
48047
|
description: "只发给这位专家,补充它的做法与偏好;不改变权限和技能规则。",
|
|
48051
48048
|
label: `${e.name} 的专属提示词`,
|
|
48052
48049
|
placeholder: "例如:回答先给结论,控制在三段以内。",
|
|
48053
48050
|
max: I(Cq),
|
|
48054
48051
|
rows: 8,
|
|
48055
|
-
note:
|
|
48056
|
-
source:
|
|
48057
|
-
fixed:
|
|
48058
|
-
changed:
|
|
48059
|
-
onSave:
|
|
48052
|
+
note: Ve.value,
|
|
48053
|
+
source: He.value,
|
|
48054
|
+
fixed: Ue.value,
|
|
48055
|
+
changed: Be.value,
|
|
48056
|
+
onSave: Ge
|
|
48060
48057
|
}, null, 8, [
|
|
48061
48058
|
"open",
|
|
48062
48059
|
"draft",
|
|
@@ -48068,9 +48065,9 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
48068
48065
|
"fixed",
|
|
48069
48066
|
"changed"
|
|
48070
48067
|
]),
|
|
48071
|
-
q(
|
|
48072
|
-
open:
|
|
48073
|
-
"onUpdate:open": n[16] ||= (e) =>
|
|
48068
|
+
q(ne, {
|
|
48069
|
+
open: Ee.value,
|
|
48070
|
+
"onUpdate:open": n[16] ||= (e) => Ee.value = e,
|
|
48074
48071
|
title: "存为专家预设",
|
|
48075
48072
|
description: "存下描述、提示词、项目权限、模型与强度,之后在“预设”行一键加入。",
|
|
48076
48073
|
ui: {
|
|
@@ -48080,28 +48077,28 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
48080
48077
|
}, {
|
|
48081
48078
|
body: L(() => [K("form", {
|
|
48082
48079
|
class: "expert-card-naming",
|
|
48083
|
-
onSubmit: uu(
|
|
48080
|
+
onSubmit: uu(Ne, ["prevent"])
|
|
48084
48081
|
}, [
|
|
48085
|
-
q(
|
|
48086
|
-
modelValue:
|
|
48087
|
-
"onUpdate:modelValue": n[14] ||= (e) =>
|
|
48082
|
+
q(T, {
|
|
48083
|
+
modelValue: De.value,
|
|
48084
|
+
"onUpdate:modelValue": n[14] ||= (e) => De.value = e,
|
|
48088
48085
|
maxlength: 32,
|
|
48089
48086
|
autofocus: "",
|
|
48090
48087
|
class: "w-full",
|
|
48091
48088
|
"aria-label": "预设名称",
|
|
48092
48089
|
placeholder: "预设名称,如 评审官"
|
|
48093
48090
|
}, null, 8, ["modelValue"]),
|
|
48094
|
-
K("p", null, P(
|
|
48091
|
+
K("p", null, P(je.value), 1),
|
|
48095
48092
|
K("div", kJ, [q(x, {
|
|
48096
48093
|
label: "取消",
|
|
48097
48094
|
color: "neutral",
|
|
48098
48095
|
variant: "ghost",
|
|
48099
|
-
onClick: n[15] ||= (e) =>
|
|
48096
|
+
onClick: n[15] ||= (e) => Ee.value = !1
|
|
48100
48097
|
}), q(x, {
|
|
48101
48098
|
type: "submit",
|
|
48102
48099
|
label: "保存",
|
|
48103
48100
|
class: "channel-primary-button",
|
|
48104
|
-
disabled:
|
|
48101
|
+
disabled: ke.value
|
|
48105
48102
|
}, null, 8, ["disabled"])])
|
|
48106
48103
|
], 32)]),
|
|
48107
48104
|
_: 1
|
|
@@ -48109,7 +48106,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
48109
48106
|
], 42, Rq);
|
|
48110
48107
|
};
|
|
48111
48108
|
}
|
|
48112
|
-
}, [["__scopeId", "data-v-
|
|
48109
|
+
}, [["__scopeId", "data-v-ad411888"]]), NJ = {
|
|
48113
48110
|
key: 0,
|
|
48114
48111
|
class: "project-field"
|
|
48115
48112
|
}, PJ = ["disabled"], FJ = {
|
|
@@ -48185,14 +48182,14 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
48185
48182
|
path: ""
|
|
48186
48183
|
}, Qn(() => C.value?.inputRef?.focus());
|
|
48187
48184
|
}
|
|
48188
|
-
function
|
|
48185
|
+
function E(e) {
|
|
48189
48186
|
return String(e).split(/[\\/]+/).filter(Boolean).at(-1) || "";
|
|
48190
48187
|
}
|
|
48191
|
-
async function
|
|
48188
|
+
async function ee(e, t) {
|
|
48192
48189
|
x.value = t, S.value = "";
|
|
48193
48190
|
try {
|
|
48194
48191
|
let t = await r.browse_local_directory();
|
|
48195
|
-
t && (e.path = t, e.name.trim() || (e.name =
|
|
48192
|
+
t && (e.path = t, e.name.trim() || (e.name = E(t)));
|
|
48196
48193
|
} catch (e) {
|
|
48197
48194
|
S.value = e.message;
|
|
48198
48195
|
} finally {
|
|
@@ -48358,7 +48355,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
48358
48355
|
size: "xs",
|
|
48359
48356
|
"aria-label": "在本机选择文件夹",
|
|
48360
48357
|
loading: x.value === `row-${t}`,
|
|
48361
|
-
onClick: (n) =>
|
|
48358
|
+
onClick: (n) => ee(e, `row-${t}`)
|
|
48362
48359
|
}, null, 8, ["loading", "onClick"])]),
|
|
48363
48360
|
key: "0"
|
|
48364
48361
|
} : void 0]), 1032, ["modelValue", "onUpdate:modelValue"])]), q(f, {
|
|
@@ -48397,7 +48394,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
48397
48394
|
placeholder: "例如 D:\\Projects\\demo",
|
|
48398
48395
|
class: "w-full",
|
|
48399
48396
|
ui: { trailing: "pe-1" },
|
|
48400
|
-
onBlur: n[3] ||= (e) => !y.value.name.trim() && (y.value.name =
|
|
48397
|
+
onBlur: n[3] ||= (e) => !y.value.name.trim() && (y.value.name = E(y.value.path))
|
|
48401
48398
|
}, ha({ _: 2 }, [s.value ? {
|
|
48402
48399
|
name: "trailing",
|
|
48403
48400
|
fn: L(() => [q(f, {
|
|
@@ -48407,7 +48404,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
48407
48404
|
size: "xs",
|
|
48408
48405
|
"aria-label": "在本机选择文件夹",
|
|
48409
48406
|
loading: x.value === "add",
|
|
48410
|
-
onClick: n[1] ||= (e) =>
|
|
48407
|
+
onClick: n[1] ||= (e) => ee(y.value, "add")
|
|
48411
48408
|
}, null, 8, ["loading"])]),
|
|
48412
48409
|
key: "0"
|
|
48413
48410
|
} : void 0]), 1032, ["modelValue"])]),
|
|
@@ -48635,7 +48632,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
48635
48632
|
}
|
|
48636
48633
|
}
|
|
48637
48634
|
let T = Z(() => t.free ? "接入决策模型,推荐更适合回答的成员,由你一键采纳。" : "接入决策模型,自动安排插话回应与下一轮发言。");
|
|
48638
|
-
async function
|
|
48635
|
+
async function E() {
|
|
48639
48636
|
if (d.value.trim() && !p.value) {
|
|
48640
48637
|
p.value = !0, m.value = "";
|
|
48641
48638
|
try {
|
|
@@ -48648,7 +48645,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
48648
48645
|
}
|
|
48649
48646
|
}
|
|
48650
48647
|
return (t, a) => {
|
|
48651
|
-
let g = WV,
|
|
48648
|
+
let g = WV, ee = sA, D = pA, O = MA, te = oq, ne = YV;
|
|
48652
48649
|
return U(), W("div", QJ, [
|
|
48653
48650
|
K("div", null, [K("p", $J, [
|
|
48654
48651
|
a[5] ||= J("智能调度", -1),
|
|
@@ -48718,7 +48715,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
48718
48715
|
base: f.value ? "" : "scheduler-key-masked",
|
|
48719
48716
|
trailing: "pe-0.5"
|
|
48720
48717
|
},
|
|
48721
|
-
onChange:
|
|
48718
|
+
onChange: E
|
|
48722
48719
|
}, {
|
|
48723
48720
|
trailing: L(() => [q(O, {
|
|
48724
48721
|
icon: f.value ? "i-lucide-eye" : "i-lucide-eye-off",
|
|
@@ -48760,7 +48757,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
48760
48757
|
class: "scheduler-flip is-done",
|
|
48761
48758
|
"aria-label": "完成并返回决策模型卡片",
|
|
48762
48759
|
onClick: a[3] ||= (e) => h.value = !1
|
|
48763
|
-
}, [q(
|
|
48760
|
+
}, [q(ee, { name: "i-lucide-check" }), a[17] ||= J("完成", -1)])])], 64)) : (U(), W(H, { key: 0 }, [K("button", {
|
|
48764
48761
|
type: "button",
|
|
48765
48762
|
class: "scheduler-open",
|
|
48766
48763
|
"aria-label": "设置智能调度的决策模型",
|
|
@@ -48780,14 +48777,14 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
48780
48777
|
"class"
|
|
48781
48778
|
]), K("strong", null, P(x.value), 1)]),
|
|
48782
48779
|
K("dl", iY, [K("div", null, [a[10] ||= K("dt", null, "状态", -1), K("dd", { class: j(`is-${S.value.tone}`) }, [a[9] ||= K("i", { "aria-hidden": "true" }, null, -1), J(P(S.value.text), 1)], 2)]), K("div", null, [a[11] ||= K("dt", null, "模型", -1), K("dd", { title: i.value.model }, P(i.value.model || "未选择"), 9, aY)])]),
|
|
48783
|
-
K("span", oY, [q(
|
|
48780
|
+
K("span", oY, [q(ee, { name: "i-lucide-settings-2" }), a[12] ||= J("设置", -1)])
|
|
48784
48781
|
]), K("span", sY, [K("button", {
|
|
48785
48782
|
type: "button",
|
|
48786
48783
|
"aria-label": `移出决策模型 ${x.value}`,
|
|
48787
48784
|
title: "移出",
|
|
48788
48785
|
onClick: b
|
|
48789
|
-
}, [q(
|
|
48790
|
-
q(
|
|
48786
|
+
}, [q(ee, { name: "i-lucide-x" })], 8, cY)])], 64))], 2)) : (U(), W("div", nY, [
|
|
48787
|
+
q(ee, { name: "i-lucide-zap" }),
|
|
48791
48788
|
a[7] ||= K("strong", null, "决策模型槽位", -1),
|
|
48792
48789
|
a[8] ||= K("span", null, "只能放一个;从上方添加,再点其他会替换", -1)
|
|
48793
48790
|
]))])
|
|
@@ -48828,18 +48825,18 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
48828
48825
|
R(m, (e) => {
|
|
48829
48826
|
p.value = [...p.value.filter((t) => e.includes(t)), ...e.filter((e) => !p.value.includes(e))];
|
|
48830
48827
|
}, { immediate: !0 });
|
|
48831
|
-
let h = Z(() => [...m.value].sort((e, t) => p.value.indexOf(e) - p.value.indexOf(t))), g = (e) => h.value.filter((t) => i.platform_of(t) === e).length, _ = /* @__PURE__ */ F(null), v = Z(() => l("host")), y = Z(() => h.value.filter((e) => f.value[e] !== "online" && (!d.value || f.value[e] !== "manual"))), b = /* @__PURE__ */ F(null), x = Z(() => h.value.filter((e) => f.value[e] === "cli")), S = Z(() => x.value.length > 0 || te.value || T.value), C = Z(() => r.value.launch.available ? null : r.value.launch.relay), w = Z(() => r.value.launch.available || !!C.value), T = Z(() => r.value.launch.available ? !!r.value.launch.workspace.cwd : !!(C.value && r.value.launch.workspace.local_project)),
|
|
48828
|
+
let h = Z(() => [...m.value].sort((e, t) => p.value.indexOf(e) - p.value.indexOf(t))), g = (e) => h.value.filter((t) => i.platform_of(t) === e).length, _ = /* @__PURE__ */ F(null), v = Z(() => l("host")), y = Z(() => h.value.filter((e) => f.value[e] !== "online" && (!d.value || f.value[e] !== "manual"))), b = /* @__PURE__ */ F(null), x = Z(() => h.value.filter((e) => f.value[e] === "cli")), S = Z(() => x.value.length > 0 || te.value || T.value), C = Z(() => r.value.launch.available ? null : r.value.launch.relay), w = Z(() => r.value.launch.available || !!C.value), T = Z(() => r.value.launch.available ? !!r.value.launch.workspace.cwd : !!(C.value && r.value.launch.workspace.local_project)), E = (e) => {
|
|
48832
48829
|
if (C.value) return !!C.value.clients[i.platform_of(e)];
|
|
48833
48830
|
let t = r.value.launch.profiles[e] || {};
|
|
48834
48831
|
return t.adapter === "api" ? !!(t.base_url && t.api_protocol && t.api_key_ref && t.model) : !!(t.adapter && (t.adapter === "antigravity" ? t.ipc_directory : t.executable));
|
|
48835
|
-
},
|
|
48832
|
+
}, ee = Z(() => S.value && w.value), D = Z(() => h.value.length > 0 && x.value.every(E) && (!x.value.length || w.value)), O = Z(() => r.value.launch.available), te = Z(() => O.value && !!r.value.launch.scheduler?.enabled), ne = Z(() => r.value.launch.available ? "" : "连接本机服务后可开启"), re = Z(() => {
|
|
48836
48833
|
let e = r.value.launch.scheduler || {};
|
|
48837
48834
|
return O.value && e.enabled && !(e.provider && e.model && e.api_key_ref);
|
|
48838
48835
|
}), ie = Z(() => S.value && !w.value), ae = 0, oe = Z(() => {
|
|
48839
48836
|
if (d.value && f.value[v.value] !== "cli") return "开启讨论需要先添加一位由本机唤醒的主持人";
|
|
48840
48837
|
if (ie.value) return "先连接本机服务,或把成员改为手动启动";
|
|
48841
48838
|
if (d.value && !w.value) return "先连接本机服务";
|
|
48842
|
-
let e = x.value.filter((e) => !
|
|
48839
|
+
let e = x.value.filter((e) => !E(e));
|
|
48843
48840
|
return e.length && C.value ? `在电脑「${C.value.name}」上配置 ${e.join("、")}` : e.length ? `补齐 ${e.join("、")} 的接入配置` : re.value ? "补齐决策模型配置,或移出决策模型" : "";
|
|
48844
48841
|
}), k = Z(() => !D.value || !!oe.value || re.value || a.value === "create");
|
|
48845
48842
|
function se() {
|
|
@@ -48858,7 +48855,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
48858
48855
|
i.write_expert(NY, e, t), se();
|
|
48859
48856
|
}
|
|
48860
48857
|
function fe(e) {
|
|
48861
|
-
if (C.value) return
|
|
48858
|
+
if (C.value) return E(e) ? {
|
|
48862
48859
|
text: `由电脑「${C.value.name}」唤醒`,
|
|
48863
48860
|
tone: "ready"
|
|
48864
48861
|
} : {
|
|
@@ -48866,7 +48863,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
48866
48863
|
tone: "warn"
|
|
48867
48864
|
};
|
|
48868
48865
|
let t = r.value.launch.profiles[e]?.adapter === "api";
|
|
48869
|
-
return
|
|
48866
|
+
return E(e) ? {
|
|
48870
48867
|
text: t ? "已配置 API" : "已配置本机软件",
|
|
48871
48868
|
tone: "ready"
|
|
48872
48869
|
} : {
|
|
@@ -49056,7 +49053,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
49056
49053
|
default: L(() => [...s[15] ||= [J("建房后可在房间页修改。", -1)]]),
|
|
49057
49054
|
_: 1
|
|
49058
49055
|
}, 8, ["model-value"])])
|
|
49059
|
-
], 32), K("footer", kY, [
|
|
49056
|
+
], 32), K("footer", kY, [ee.value && I(r).launch.error ? (U(), W("p", AY, P(I(r).launch.error), 1)) : Y("", !0), K("div", jY, [
|
|
49060
49057
|
K("span", {
|
|
49061
49058
|
class: j(["create-summary", { "is-blocked": oe.value }]),
|
|
49062
49059
|
title: oe.value || _e.value,
|
|
@@ -49075,7 +49072,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
49075
49072
|
type: "submit",
|
|
49076
49073
|
form: "create-discussion-form",
|
|
49077
49074
|
class: "channel-primary-button",
|
|
49078
|
-
icon:
|
|
49075
|
+
icon: ee.value ? "i-lucide-play" : "i-lucide-plus",
|
|
49079
49076
|
label: d.value ? "创建并开启讨论" : S.value ? "创建并连接" : "创建协作房间",
|
|
49080
49077
|
disabled: k.value,
|
|
49081
49078
|
loading: I(a) === "create"
|
|
@@ -49557,14 +49554,14 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
49557
49554
|
function T(e) {
|
|
49558
49555
|
return n.value = "", l("room", e.id);
|
|
49559
49556
|
}
|
|
49560
|
-
async function
|
|
49557
|
+
async function E() {
|
|
49561
49558
|
let e = x.value;
|
|
49562
49559
|
e && !w(e) && (y.value = null, await l("manage_channel", {
|
|
49563
49560
|
id: e.id,
|
|
49564
49561
|
action: "delete"
|
|
49565
49562
|
}));
|
|
49566
49563
|
}
|
|
49567
|
-
async function
|
|
49564
|
+
async function ee() {
|
|
49568
49565
|
let e = v.value.filter((e) => !w(e));
|
|
49569
49566
|
b.value = !1;
|
|
49570
49567
|
for (let t of e) await l("manage_channel", {
|
|
@@ -49768,7 +49765,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
49768
49765
|
label: "全部删除",
|
|
49769
49766
|
color: "error",
|
|
49770
49767
|
size: "xs",
|
|
49771
|
-
onClick:
|
|
49768
|
+
onClick: ee
|
|
49772
49769
|
})
|
|
49773
49770
|
])) : Y("", !0),
|
|
49774
49771
|
I(o).directory_error ? (U(), W("p", iX, P(I(o).directory_error), 1)) : Y("", !0),
|
|
@@ -49830,7 +49827,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
49830
49827
|
color: "error",
|
|
49831
49828
|
size: "xs",
|
|
49832
49829
|
disabled: w(e),
|
|
49833
|
-
onClick:
|
|
49830
|
+
onClick: E
|
|
49834
49831
|
}, null, 8, ["disabled"])
|
|
49835
49832
|
])) : Y("", !0)]))), 128))])) : (U(), W("p", mX, P(m.value.length ? "没有匹配的存档房间" : "暂无已存档房间"), 1))])
|
|
49836
49833
|
])) : a.value === "delete-folder" ? (U(), W("form", {
|
|
@@ -51654,9 +51651,9 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
51654
51651
|
function T(e) {
|
|
51655
51652
|
if (!e.startsWith(UZ)) return C(e);
|
|
51656
51653
|
let t = g.value.find((t) => t.name === e.slice(7));
|
|
51657
|
-
t &&
|
|
51654
|
+
t && E(t);
|
|
51658
51655
|
}
|
|
51659
|
-
function
|
|
51656
|
+
function E(e) {
|
|
51660
51657
|
let t = r.unique_instance(e.name, /* @__PURE__ */ new Set([..._.value, ...d.value.map((e) => b.value.get(e) || e.name)]));
|
|
51661
51658
|
r.apply_expert_preset(t, e), d.value = [...d.value, {
|
|
51662
51659
|
id: ++f,
|
|
@@ -51665,7 +51662,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
51665
51662
|
preset: !0
|
|
51666
51663
|
}];
|
|
51667
51664
|
}
|
|
51668
|
-
async function
|
|
51665
|
+
async function ee() {
|
|
51669
51666
|
m.value = !0;
|
|
51670
51667
|
let e = [], r = new Map(b.value);
|
|
51671
51668
|
for (let t of [...y.value]) {
|
|
@@ -51738,7 +51735,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
51738
51735
|
key: 1,
|
|
51739
51736
|
class: "pb-invite",
|
|
51740
51737
|
"aria-label": "邀请专家",
|
|
51741
|
-
onSubmit: uu(
|
|
51738
|
+
onSubmit: uu(ee, ["prevent"])
|
|
51742
51739
|
}, [
|
|
51743
51740
|
q(ZJ, {
|
|
51744
51741
|
label: "选择 AI(可多选)",
|
|
@@ -52186,7 +52183,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
52186
52183
|
let { grip: t, pointer: n } = h.value;
|
|
52187
52184
|
h.value = null, document.removeEventListener("keydown", T, !0), t.hasPointerCapture(n) && t.releasePointerCapture(n);
|
|
52188
52185
|
}
|
|
52189
|
-
function
|
|
52186
|
+
function E(e) {
|
|
52190
52187
|
if (!h.value || y.value[e].state !== c.value) return "";
|
|
52191
52188
|
let t = b(e), { from: n, gap: r } = h.value, i = t === n ? "is-source" : "";
|
|
52192
52189
|
return r === n || r === n + 1 ? i : [
|
|
@@ -52195,7 +52192,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
52195
52192
|
r === h.value.order.movable.length && t === r - 1 ? "drop-after" : ""
|
|
52196
52193
|
].join(" ");
|
|
52197
52194
|
}
|
|
52198
|
-
function
|
|
52195
|
+
function ee(e, t, n) {
|
|
52199
52196
|
let r = t + n;
|
|
52200
52197
|
!l.value || r < 0 || r >= s.value.movable.length || (e.preventDefault(), !a.value && (f.value = !1, x(v(s.value.movable, t, r), s.value.movable[t], !0)));
|
|
52201
52198
|
}
|
|
@@ -52210,7 +52207,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
52210
52207
|
(U(!0), W(H, null, B(y.value, (t, r) => (U(), W(H, { key: t.key }, [t.outside ? (U(), W("li", sQ, [K("span", null, P(u[s.value.kind]), 1)])) : Y("", !0), K("li", {
|
|
52211
52208
|
class: j(["pb-member speaking-order-row", [
|
|
52212
52209
|
`is-${t.state}`,
|
|
52213
|
-
|
|
52210
|
+
E(r),
|
|
52214
52211
|
{ "is-movable": t.state === c.value && l.value }
|
|
52215
52212
|
]]),
|
|
52216
52213
|
"data-key": t.key,
|
|
@@ -52227,7 +52224,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
52227
52224
|
onPointerup: w,
|
|
52228
52225
|
onPointercancel: n[0] ||= (e) => w(e, !0),
|
|
52229
52226
|
onLostpointercapture: n[1] ||= (e) => w(e, !0),
|
|
52230
|
-
onKeydown: [fu((e) =>
|
|
52227
|
+
onKeydown: [fu((e) => ee(e, b(r), -1), ["up"]), fu((e) => ee(e, b(r), 1), ["down"])]
|
|
52231
52228
|
}, [K("span", uQ, P(t.place), 1), q(i, {
|
|
52232
52229
|
name: "i-lucide-grip-vertical",
|
|
52233
52230
|
class: "speaking-order-handle"
|
|
@@ -52450,11 +52447,11 @@ var CQ = { class: "progress-board is-docked" }, wQ = { class: "pb-header" }, TQ
|
|
|
52450
52447
|
title: "暂无成员",
|
|
52451
52448
|
detail: "在下方邀请 AI 加入"
|
|
52452
52449
|
};
|
|
52453
|
-
}),
|
|
52450
|
+
}), E = Z(() => {
|
|
52454
52451
|
let e = new Set((c.value.withdrawals || []).map((e) => e.message_id));
|
|
52455
52452
|
return (l.value.requests || []).filter((t) => !e.has(t.message_id));
|
|
52456
|
-
}),
|
|
52457
|
-
let e =
|
|
52453
|
+
}), ee = Z(() => {
|
|
52454
|
+
let e = E.value, t = e.filter((e) => e.status === "completed").length, n = l.value.executions || [];
|
|
52458
52455
|
return [{
|
|
52459
52456
|
label: "请求",
|
|
52460
52457
|
text: `${t} / ${e.length} 已回复`,
|
|
@@ -52465,7 +52462,7 @@ var CQ = { class: "progress-board is-docked" }, wQ = { class: "pb-header" }, TQ
|
|
|
52465
52462
|
ratio: null
|
|
52466
52463
|
}];
|
|
52467
52464
|
}), D = Z(() => {
|
|
52468
|
-
let e =
|
|
52465
|
+
let e = E.value.filter((e) => e.created_by === "user" && ["pending", "delivering"].includes(e.status)).at(-1);
|
|
52469
52466
|
if (!e) return "";
|
|
52470
52467
|
let n = (t.value.messages || []).find((t) => t.id === e.message_id);
|
|
52471
52468
|
return n ? n.text : `#${e.message_id}`;
|
|
@@ -52511,7 +52508,7 @@ var CQ = { class: "progress-board is-docked" }, wQ = { class: "pb-header" }, TQ
|
|
|
52511
52508
|
return R(() => c.value.id, () => {
|
|
52512
52509
|
se.value = !1;
|
|
52513
52510
|
}), (e, i) => {
|
|
52514
|
-
let a = MA, s = pA, g = sA,
|
|
52511
|
+
let a = MA, s = pA, g = sA, E = CH;
|
|
52515
52512
|
return U(), W("div", CQ, [
|
|
52516
52513
|
K("header", wQ, [K("strong", null, P(u.value ? "讨论进度" : "自由协作"), 1), K("span", TQ, P(f.value ? `${I(n).display_name(f.value.name)} 主持` : "无主持人"), 1)]),
|
|
52517
52514
|
u.value ? (U(), G(aQ, { key: 0 })) : (U(), W("section", {
|
|
@@ -52537,7 +52534,7 @@ var CQ = { class: "progress-board is-docked" }, wQ = { class: "pb-header" }, TQ
|
|
|
52537
52534
|
"disabled",
|
|
52538
52535
|
"onClick"
|
|
52539
52536
|
]))), 128))])) : Y("", !0),
|
|
52540
|
-
K("div", AQ, [(U(!0), W(H, null, B(
|
|
52537
|
+
K("div", AQ, [(U(!0), W(H, null, B(ee.value, (e) => (U(), W("div", {
|
|
52541
52538
|
key: e.label,
|
|
52542
52539
|
class: "pb-meter"
|
|
52543
52540
|
}, [K("div", jQ, [K("span", null, P(e.label), 1), K("b", null, P(e.text), 1)]), e.ratio === null ? Y("", !0) : (U(), W("div", MQ, [K("i", { style: A({ width: `${Math.min(100, Math.round(e.ratio * 100))}%` }) }, null, 4)]))]))), 128))])
|
|
@@ -52594,7 +52591,7 @@ var CQ = { class: "progress-board is-docked" }, wQ = { class: "pb-header" }, TQ
|
|
|
52594
52591
|
title: r.execution?.status === "failed" ? r.execution.result : void 0
|
|
52595
52592
|
}, P(v(r, e.state)), 9, zQ)], 2)
|
|
52596
52593
|
]),
|
|
52597
|
-
q(
|
|
52594
|
+
q(E, {
|
|
52598
52595
|
items: re(r),
|
|
52599
52596
|
content: { align: "end" },
|
|
52600
52597
|
ui: { content: "channel-menu" }
|
|
@@ -53017,7 +53014,7 @@ var CQ = { class: "progress-board is-docked" }, wQ = { class: "pb-header" }, TQ
|
|
|
53017
53014
|
hint: "App 成员的权限在 App 里设置"
|
|
53018
53015
|
} : { text: "—" };
|
|
53019
53016
|
}
|
|
53020
|
-
async function
|
|
53017
|
+
async function E(e, t) {
|
|
53021
53018
|
if (!(h.value || T(e).value === t)) {
|
|
53022
53019
|
h.value = e.name, b.value = {
|
|
53023
53020
|
tone: "",
|
|
@@ -53041,7 +53038,7 @@ var CQ = { class: "progress-board is-docked" }, wQ = { class: "pb-header" }, TQ
|
|
|
53041
53038
|
}
|
|
53042
53039
|
}
|
|
53043
53040
|
}
|
|
53044
|
-
let
|
|
53041
|
+
let ee = Z(() => p.value ? "—" : f.value.scheduler ? `${t.value.launch.scheduler_providers?.[f.value.scheduler.provider]?.label || f.value.scheduler.provider} · ${f.value.scheduler.model}` : "未开启");
|
|
53045
53042
|
function D(e) {
|
|
53046
53043
|
let [n, i, a] = SQ(C(e), {
|
|
53047
53044
|
view: t.value,
|
|
@@ -53181,7 +53178,7 @@ var CQ = { class: "progress-board is-docked" }, wQ = { class: "pb-header" }, TQ
|
|
|
53181
53178
|
"aria-checked": T(e).value === t.value,
|
|
53182
53179
|
title: t.hint,
|
|
53183
53180
|
disabled: !T(e).editable || !!h.value,
|
|
53184
|
-
onClick: (n) =>
|
|
53181
|
+
onClick: (n) => E(e, t.value)
|
|
53185
53182
|
}, P(t.label), 9, F$))), 128))], 10, P$)) : (U(), W("span", {
|
|
53186
53183
|
key: 1,
|
|
53187
53184
|
class: "overview-muted",
|
|
@@ -53232,7 +53229,7 @@ var CQ = { class: "progress-board is-docked" }, wQ = { class: "pb-header" }, TQ
|
|
|
53232
53229
|
]),
|
|
53233
53230
|
K("section", H$, [i[17] ||= K("h3", null, "协作设置", -1), K("dl", U$, [
|
|
53234
53231
|
K("div", null, [i[11] ||= K("dt", null, "主持人", -1), K("dd", null, P(u.value.host ? I(n).display_name(u.value.host) : "未指定"), 1)]),
|
|
53235
|
-
K("div", null, [i[12] ||= K("dt", null, "智能调度", -1), K("dd", null, P(
|
|
53232
|
+
K("div", null, [i[12] ||= K("dt", null, "智能调度", -1), K("dd", null, P(ee.value), 1)]),
|
|
53236
53233
|
u.value.free?.max_rounds ? (U(), W("div", W$, [i[13] ||= K("dt", null, "连续派活上限", -1), K("dd", null, [I(t).access?.can_manage ? (U(), W(H, { key: 0 }, [q(WK, {
|
|
53237
53234
|
"model-value": _.value,
|
|
53238
53235
|
disabled: g.value,
|
|
@@ -53810,7 +53807,7 @@ var D1 = {
|
|
|
53810
53807
|
8,
|
|
53811
53808
|
16,
|
|
53812
53809
|
32
|
|
53813
|
-
], s = typeof window < "u" && window.matchMedia?.("(hover: hover)").matches !== !1, c = /* @__PURE__ */ F(null), l = /* @__PURE__ */ F(0), u = null, d = Z(() => r.value.room?.id), f = /* @__PURE__ */ F(/* @__PURE__ */ new Map()), p = /* @__PURE__ */ F(null), m = /* @__PURE__ */ F(""), h = /* @__PURE__ */ F(Date.now()), g = /* @__PURE__ */ F(/* @__PURE__ */ new Set()), _ = /* @__PURE__ */ F(/* @__PURE__ */ new Map()), v = /* @__PURE__ */ F(null), y = /* @__PURE__ */ F(""), b = /* @__PURE__ */ F(null), x = /* @__PURE__ */ F(null), S = 0, C = 0, w = !1, T = 0,
|
|
53810
|
+
], s = typeof window < "u" && window.matchMedia?.("(hover: hover)").matches !== !1, c = /* @__PURE__ */ F(null), l = /* @__PURE__ */ F(0), u = null, d = Z(() => r.value.room?.id), f = /* @__PURE__ */ F(/* @__PURE__ */ new Map()), p = /* @__PURE__ */ F(null), m = /* @__PURE__ */ F(""), h = /* @__PURE__ */ F(Date.now()), g = /* @__PURE__ */ F(/* @__PURE__ */ new Set()), _ = /* @__PURE__ */ F(/* @__PURE__ */ new Map()), v = /* @__PURE__ */ F(null), y = /* @__PURE__ */ F(""), b = /* @__PURE__ */ F(null), x = /* @__PURE__ */ F(null), S = 0, C = 0, w = !1, T = 0, E = 0, ee = 0, D = 0, O = /* @__PURE__ */ Yt({
|
|
53814
53811
|
position: null,
|
|
53815
53812
|
playing: !1,
|
|
53816
53813
|
speed: 0
|
|
@@ -53892,7 +53889,7 @@ var D1 = {
|
|
|
53892
53889
|
}), R(c, (e, t) => {
|
|
53893
53890
|
t && u?.unobserve(t), e && u?.observe(e);
|
|
53894
53891
|
}), ta(() => {
|
|
53895
|
-
clearInterval(T), cancelAnimationFrame(
|
|
53892
|
+
clearInterval(T), cancelAnimationFrame(E), document.removeEventListener("pointerdown", ue), document.removeEventListener("keydown", de), u?.disconnect();
|
|
53896
53893
|
});
|
|
53897
53894
|
let fe = /* @__PURE__ */ F(q0), pe = Z(() => re.value ? p1(re.value, h.value) : {
|
|
53898
53895
|
list: [],
|
|
@@ -53957,16 +53954,16 @@ var D1 = {
|
|
|
53957
53954
|
value: e
|
|
53958
53955
|
}))]), Ne = Z(() => O.speed || je.value);
|
|
53959
53956
|
function Pe(e) {
|
|
53960
|
-
let t =
|
|
53961
|
-
|
|
53957
|
+
let t = ee ? Math.min(e - ee, 250) : 0;
|
|
53958
|
+
ee = e;
|
|
53962
53959
|
let n = Se.value.length <= L0 || e - D >= I0;
|
|
53963
53960
|
O.playing && (te += t * Ne.value, te >= ye.value.duration ? Object.assign(O, {
|
|
53964
53961
|
position: null,
|
|
53965
53962
|
playing: !1
|
|
53966
|
-
}) : n && (O.position = te)), ve.value && n && (h.value = Date.now()), n && (D = e),
|
|
53963
|
+
}) : n && (O.position = te)), ve.value && n && (h.value = Date.now()), n && (D = e), E = ve.value || O.playing ? requestAnimationFrame(Pe) : 0, E || (ee = 0);
|
|
53967
53964
|
}
|
|
53968
53965
|
R([ve, () => O.playing], () => {
|
|
53969
|
-
!
|
|
53966
|
+
!E && (ve.value || O.playing) && (E = requestAnimationFrame(Pe));
|
|
53970
53967
|
}, { immediate: !0 });
|
|
53971
53968
|
async function Fe() {
|
|
53972
53969
|
O.position === null ? (te = 0, He()) : te = O.position, Object.assign(O, {
|
|
@@ -54670,7 +54667,7 @@ var D1 = {
|
|
|
54670
54667
|
label: "宽",
|
|
54671
54668
|
width: 1240
|
|
54672
54669
|
}
|
|
54673
|
-
}, b = Ne(), x = /* @__PURE__ */ F(b.reading), S = /* @__PURE__ */ F(b.effects), C = /* @__PURE__ */ F(b.rail), w = /* @__PURE__ */ F(b.nav), T = /* @__PURE__ */ F(typeof window > "u" ? 728 : window.innerWidth),
|
|
54670
|
+
}, b = Ne(), x = /* @__PURE__ */ F(b.reading), S = /* @__PURE__ */ F(b.effects), C = /* @__PURE__ */ F(b.rail), w = /* @__PURE__ */ F(b.nav), T = /* @__PURE__ */ F(typeof window > "u" ? 728 : window.innerWidth), E = /* @__PURE__ */ F(b.collapsed), ee = /* @__PURE__ */ F(!0), D = /* @__PURE__ */ F(b.rail_collapsed), O = Z(() => T.value >= s4), te = Z(() => O.value && !E.value), ne = Z(() => t.value.tab === "discussion" && !D.value), re = Z(() => O.value && t.value.tab === "discussion" ? D.value ? "展开房间概览" : "收起房间概览" : "房间资料与参与者"), ie = Z(() => {
|
|
54674
54671
|
let e = document.createElement("template");
|
|
54675
54672
|
return e.innerHTML = o.value?.rendered_brief || "", e.content.textContent.replace(/\s+/g, " ").trim();
|
|
54676
54673
|
}), ae = /* @__PURE__ */ F(null), oe = /* @__PURE__ */ F(0), k = null, se = /* @__PURE__ */ F(null), ce = /* @__PURE__ */ F(null), le = Z(() => Math.min(r4, Math.max(n4, T.value - o4 - c4))), ue = Z(() => Math.min(w.value, le.value)), de = Z(() => ({
|
|
@@ -54684,9 +54681,9 @@ var D1 = {
|
|
|
54684
54681
|
}));
|
|
54685
54682
|
R(x, Fe), R(S, (e) => {
|
|
54686
54683
|
document.documentElement.dataset.effects = e, Fe();
|
|
54687
|
-
}, { immediate: !0 }), R(
|
|
54684
|
+
}, { immediate: !0 }), R(E, Fe), R(D, Fe), Qi(() => window.addEventListener("resize", Le)), ta(() => window.removeEventListener("resize", Le)), Qi(() => document.addEventListener("pointerdown", ze)), Qi(() => {
|
|
54688
54685
|
k = new ResizeObserver(([e]) => {
|
|
54689
|
-
|
|
54686
|
+
ee.value && (oe.value = Math.round(e.target.offsetHeight));
|
|
54690
54687
|
}), k.observe(ae.value);
|
|
54691
54688
|
}), ta(() => k?.disconnect()), ta(() => document.removeEventListener("pointerdown", ze));
|
|
54692
54689
|
let pe = Z({
|
|
@@ -54806,8 +54803,8 @@ var D1 = {
|
|
|
54806
54803
|
effects: S.value,
|
|
54807
54804
|
rail: C.value,
|
|
54808
54805
|
nav: w.value,
|
|
54809
|
-
collapsed:
|
|
54810
|
-
brief_collapsed:
|
|
54806
|
+
collapsed: E.value,
|
|
54807
|
+
brief_collapsed: ee.value,
|
|
54811
54808
|
rail_collapsed: D.value
|
|
54812
54809
|
}));
|
|
54813
54810
|
} catch {}
|
|
@@ -54819,10 +54816,10 @@ var D1 = {
|
|
|
54819
54816
|
T.value = window.innerWidth;
|
|
54820
54817
|
}
|
|
54821
54818
|
function Re() {
|
|
54822
|
-
|
|
54819
|
+
ee.value = !ee.value;
|
|
54823
54820
|
}
|
|
54824
54821
|
function ze(e) {
|
|
54825
|
-
!
|
|
54822
|
+
!ee.value && !e.target.closest?.(".channel-host-brief") && (ee.value = !0);
|
|
54826
54823
|
}
|
|
54827
54824
|
function Be(e) {
|
|
54828
54825
|
e.button === 0 && (e.preventDefault(), e.currentTarget.focus(), se.value = {
|
|
@@ -54972,7 +54969,7 @@ var D1 = {
|
|
|
54972
54969
|
K("header", l2, [
|
|
54973
54970
|
O.value ? (U(), G(D, {
|
|
54974
54971
|
key: 0,
|
|
54975
|
-
text:
|
|
54972
|
+
text: E.value ? "展开房间栏" : "收起房间栏"
|
|
54976
54973
|
}, {
|
|
54977
54974
|
default: L(() => [q(T, {
|
|
54978
54975
|
icon: "i-lucide-panel-left",
|
|
@@ -54980,10 +54977,10 @@ var D1 = {
|
|
|
54980
54977
|
variant: "ghost",
|
|
54981
54978
|
size: "sm",
|
|
54982
54979
|
class: "channel-desktop-nav channel-icon-button channel-panel-toggle",
|
|
54983
|
-
"aria-label":
|
|
54984
|
-
"aria-expanded": !
|
|
54980
|
+
"aria-label": E.value ? "展开房间栏" : "收起房间栏",
|
|
54981
|
+
"aria-expanded": !E.value,
|
|
54985
54982
|
"aria-controls": "channel-sidebar",
|
|
54986
|
-
onClick: r[3] ||= (e) =>
|
|
54983
|
+
onClick: r[3] ||= (e) => E.value = !E.value
|
|
54987
54984
|
}, null, 8, ["aria-label", "aria-expanded"])]),
|
|
54988
54985
|
_: 1
|
|
54989
54986
|
}, 8, ["text"])) : (U(), G(T, {
|
|
@@ -55142,20 +55139,20 @@ var D1 = {
|
|
|
55142
55139
|
}, null, 8, ["modelValue"])])) : Y("", !0),
|
|
55143
55140
|
o.value && !ge.value ? (U(), W("section", {
|
|
55144
55141
|
key: 2,
|
|
55145
|
-
class: j(["channel-host-brief", { "is-collapsed":
|
|
55142
|
+
class: j(["channel-host-brief", { "is-collapsed": ee.value }]),
|
|
55146
55143
|
"aria-label": "主持简报"
|
|
55147
55144
|
}, [K("div", b2, [K("div", x2, [K("button", {
|
|
55148
55145
|
type: "button",
|
|
55149
55146
|
class: "channel-brief-toggle",
|
|
55150
|
-
"aria-label":
|
|
55151
|
-
"aria-expanded": !
|
|
55147
|
+
"aria-label": ee.value ? "展开主持简报" : "收起主持简报",
|
|
55148
|
+
"aria-expanded": !ee.value,
|
|
55152
55149
|
"aria-controls": "channel-brief-content",
|
|
55153
55150
|
onClick: Re
|
|
55154
55151
|
}, [
|
|
55155
|
-
q(y, { name:
|
|
55156
|
-
K("strong", null, "主持简报" + P(
|
|
55157
|
-
|
|
55158
|
-
], 8, S2),
|
|
55152
|
+
q(y, { name: ee.value ? "i-lucide-chevron-right" : "i-lucide-chevron-down" }, null, 8, ["name"]),
|
|
55153
|
+
K("strong", null, "主持简报" + P(ee.value ? ":" : ""), 1),
|
|
55154
|
+
ee.value ? (U(), W("span", C2, P(ie.value), 1)) : Y("", !0)
|
|
55155
|
+
], 8, S2), ee.value ? Y("", !0) : (U(), G(T, {
|
|
55159
55156
|
key: 0,
|
|
55160
55157
|
label: "更新简报",
|
|
55161
55158
|
color: "neutral",
|
|
@@ -55166,7 +55163,7 @@ var D1 = {
|
|
|
55166
55163
|
}))]), vr(K("div", w2, [K("div", {
|
|
55167
55164
|
class: "channel-brief-text markdown-body",
|
|
55168
55165
|
innerHTML: o.value.rendered_brief
|
|
55169
|
-
}, null, 8, T2), K("div", E2, [K("span", D2, P(I(n).progress_speaker(o.value)), 1), K("small", null, P(I(n).brief_meta(o.value)), 1)])], 512), [[Vc, !
|
|
55166
|
+
}, null, 8, T2), K("div", E2, [K("span", D2, P(I(n).progress_speaker(o.value)), 1), K("small", null, P(I(n).brief_meta(o.value)), 1)])], 512), [[Vc, !ee.value]])])], 2)) : Y("", !0)
|
|
55170
55167
|
], 2), o.value ? (U(), W("div", {
|
|
55171
55168
|
key: 0,
|
|
55172
55169
|
class: j(["channel-body", { "channel-body-discussion": I(t).tab === "discussion" }])
|