@deepagents/react-input 7.0.1 → 7.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.js +198 -338
- package/dist/browser.js.map +1 -1
- package/package.json +2 -2
package/dist/browser.js
CHANGED
|
@@ -20,75 +20,60 @@ function A(e) {
|
|
|
20
20
|
return t;
|
|
21
21
|
}
|
|
22
22
|
function ie(e) {
|
|
23
|
-
let t = i(
|
|
24
|
-
|
|
25
|
-
for (let e = 0; e < 10; e += 1) t[e] = Symbol.for("react.memo_cache_sentinel");
|
|
26
|
-
t[0] = "ff64c26f614a2b4a1d99a67cfd97f6927ec1c8b1839c9778464af92c583cbfd2";
|
|
27
|
-
}
|
|
28
|
-
let n = A(e === void 0 ? "useComposer" : e), r;
|
|
29
|
-
t[1] !== n.activePopup || t[2] !== n.disabled || t[3] !== n.meta || t[4] !== n.suggestions ? (r = {
|
|
23
|
+
let t = i(9), n = A(e === void 0 ? "useComposer" : e), r;
|
|
24
|
+
t[0] !== n.activePopup || t[1] !== n.disabled || t[2] !== n.meta || t[3] !== n.suggestions ? (r = {
|
|
30
25
|
...n.meta,
|
|
31
26
|
disabled: n.disabled,
|
|
32
27
|
activePopup: n.activePopup,
|
|
33
28
|
suggestions: n.suggestions
|
|
34
|
-
}, t[
|
|
29
|
+
}, t[0] = n.activePopup, t[1] = n.disabled, t[2] = n.meta, t[3] = n.suggestions, t[4] = r) : r = t[4];
|
|
35
30
|
let a;
|
|
36
|
-
return t[
|
|
31
|
+
return t[5] !== n.actions || t[6] !== n.state || t[7] !== r ? (a = {
|
|
37
32
|
state: n.state,
|
|
38
33
|
actions: n.actions,
|
|
39
34
|
meta: r
|
|
40
|
-
}, t[
|
|
35
|
+
}, t[5] = n.actions, t[6] = n.state, t[7] = r, t[8] = a) : a = t[8], a;
|
|
41
36
|
}
|
|
42
37
|
//#endregion
|
|
43
38
|
//#region src/lib/ComposerAttachments.tsx
|
|
44
39
|
function ae(e) {
|
|
45
|
-
let t = i(
|
|
46
|
-
|
|
47
|
-
for (let e = 0; e < 24; e += 1) t[e] = Symbol.for("react.memo_cache_sentinel");
|
|
48
|
-
t[0] = "0874a3ce72c3b0b55f45cf95984b512c9a70cf4c101ad22eddfdde9f2622f302";
|
|
49
|
-
}
|
|
50
|
-
let n, r;
|
|
51
|
-
t[1] === e ? (n = t[2], r = t[3]) : ({className: n, ...r} = e, t[1] = e, t[2] = n, t[3] = r);
|
|
40
|
+
let t = i(23), n, r;
|
|
41
|
+
t[0] === e ? (n = t[1], r = t[2]) : ({className: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
|
|
52
42
|
let { state: a, attachedImages: o } = A("Composer.Attachments"), s = a.imageAttachments, c, l, u, d, f, p;
|
|
53
|
-
if (t[
|
|
43
|
+
if (t[3] !== o || t[4] !== n || t[5] !== r || t[6] !== a.imageAttachments) {
|
|
54
44
|
p = Symbol.for("react.early_return_sentinel");
|
|
55
45
|
bb0: {
|
|
56
46
|
let e;
|
|
57
|
-
t[
|
|
47
|
+
t[13] === o ? e = t[14] : (e = (e) => o.has(e.id), t[13] = o, t[14] = e);
|
|
58
48
|
let i = s.filter(e);
|
|
59
49
|
if (i.length === 0) {
|
|
60
50
|
p = null;
|
|
61
51
|
break bb0;
|
|
62
52
|
}
|
|
63
|
-
c = "list", l = "Attached files", t[
|
|
53
|
+
c = "list", l = "Attached files", t[15] === n ? u = t[16] : (u = _("flex flex-wrap gap-2", n), t[15] = n, t[16] = u), d = r, f = i.map(j);
|
|
64
54
|
}
|
|
65
|
-
t[
|
|
66
|
-
} else c = t[
|
|
55
|
+
t[3] = o, t[4] = n, t[5] = r, t[6] = a.imageAttachments, t[7] = c, t[8] = l, t[9] = u, t[10] = d, t[11] = f, t[12] = p;
|
|
56
|
+
} else c = t[7], l = t[8], u = t[9], d = t[10], f = t[11], p = t[12];
|
|
67
57
|
if (p !== Symbol.for("react.early_return_sentinel")) return p;
|
|
68
58
|
let m;
|
|
69
|
-
return t[
|
|
59
|
+
return t[17] !== c || t[18] !== l || t[19] !== u || t[20] !== d || t[21] !== f ? (m = /* @__PURE__ */ x("div", {
|
|
70
60
|
role: c,
|
|
71
61
|
"aria-label": l,
|
|
72
62
|
className: u,
|
|
73
63
|
...d,
|
|
74
64
|
children: f
|
|
75
|
-
}), t[
|
|
65
|
+
}), t[17] = c, t[18] = l, t[19] = u, t[20] = d, t[21] = f, t[22] = m) : m = t[22], m;
|
|
76
66
|
}
|
|
77
67
|
function j(e) {
|
|
78
68
|
return /* @__PURE__ */ x(M, { attachment: e }, e.id);
|
|
79
69
|
}
|
|
80
70
|
function M(e) {
|
|
81
|
-
let t = i(
|
|
82
|
-
|
|
83
|
-
for (let e = 0; e < 19; e += 1) t[e] = Symbol.for("react.memo_cache_sentinel");
|
|
84
|
-
t[0] = "0874a3ce72c3b0b55f45cf95984b512c9a70cf4c101ad22eddfdde9f2622f302";
|
|
85
|
-
}
|
|
86
|
-
let { attachment: n } = e, { id: r, placeholder: o, media: s } = n, { attachedImages: c, disabled: l, actions: u } = A("Composer.Attachments"), d;
|
|
87
|
-
t[1] !== c || t[2] !== r ? (d = c.get(r), t[1] = c, t[2] = r, t[3] = d) : d = t[3];
|
|
71
|
+
let t = i(18), { attachment: n } = e, { id: r, placeholder: o, media: s } = n, { attachedImages: c, disabled: l, actions: u } = A("Composer.Attachments"), d;
|
|
72
|
+
t[0] !== c || t[1] !== r ? (d = c.get(r), t[0] = c, t[1] = r, t[2] = d) : d = t[2];
|
|
88
73
|
let f = d;
|
|
89
74
|
if (!f) return null;
|
|
90
75
|
let p;
|
|
91
|
-
t[
|
|
76
|
+
t[3] !== f || t[4] !== s || t[5] !== o ? (p = s === "video" ? /* @__PURE__ */ x(F, {
|
|
92
77
|
placeholder: o,
|
|
93
78
|
file: f
|
|
94
79
|
}) : s === "audio" ? /* @__PURE__ */ x(L, {
|
|
@@ -98,50 +83,40 @@ function M(e) {
|
|
|
98
83
|
}) : /* @__PURE__ */ x(P, {
|
|
99
84
|
placeholder: o,
|
|
100
85
|
file: f
|
|
101
|
-
}), t[
|
|
86
|
+
}), t[3] = f, t[4] = s, t[5] = o, t[6] = p) : p = t[6];
|
|
102
87
|
let m = `Remove ${o}`, h;
|
|
103
|
-
t[
|
|
88
|
+
t[7] !== u || t[8] !== r ? (h = () => u.removeImageAttachment(r), t[7] = u, t[8] = r, t[9] = h) : h = t[9];
|
|
104
89
|
let g;
|
|
105
|
-
t[
|
|
90
|
+
t[10] === Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ x(y, {
|
|
106
91
|
"aria-hidden": !0,
|
|
107
92
|
className: "size-3"
|
|
108
|
-
}), t[
|
|
93
|
+
}), t[10] = g) : g = t[10];
|
|
109
94
|
let _;
|
|
110
|
-
t[
|
|
95
|
+
t[11] !== l || t[12] !== m || t[13] !== h ? (_ = /* @__PURE__ */ x(a, {
|
|
111
96
|
type: "button",
|
|
112
97
|
"aria-label": m,
|
|
113
98
|
disabled: l,
|
|
114
99
|
onClick: h,
|
|
115
100
|
className: "bg-background text-foreground border-border hover:bg-muted absolute -top-1.5 -right-1.5 flex size-5 items-center justify-center rounded-full border disabled:opacity-50",
|
|
116
101
|
children: g
|
|
117
|
-
}), t[
|
|
102
|
+
}), t[11] = l, t[12] = m, t[13] = h, t[14] = _) : _ = t[14];
|
|
118
103
|
let v;
|
|
119
|
-
return t[
|
|
104
|
+
return t[15] !== p || t[16] !== _ ? (v = /* @__PURE__ */ S("div", {
|
|
120
105
|
role: "listitem",
|
|
121
106
|
className: "relative",
|
|
122
107
|
children: [p, _]
|
|
123
|
-
}), t[
|
|
108
|
+
}), t[15] = p, t[16] = _, t[17] = v) : v = t[17], v;
|
|
124
109
|
}
|
|
125
110
|
function N(e) {
|
|
126
|
-
let t = i(
|
|
127
|
-
|
|
128
|
-
for (let e = 0; e < 4; e += 1) t[e] = Symbol.for("react.memo_cache_sentinel");
|
|
129
|
-
t[0] = "0874a3ce72c3b0b55f45cf95984b512c9a70cf4c101ad22eddfdde9f2622f302";
|
|
130
|
-
}
|
|
131
|
-
let [n, r] = g(null), a, o;
|
|
132
|
-
return t[1] === e ? (a = t[2], o = t[3]) : (a = () => {
|
|
111
|
+
let t = i(3), [n, r] = g(null), a, o;
|
|
112
|
+
return t[0] === e ? (a = t[1], o = t[2]) : (a = () => {
|
|
133
113
|
let t = URL.createObjectURL(e);
|
|
134
114
|
return r(t), () => URL.revokeObjectURL(t);
|
|
135
|
-
}, o = [e], t[
|
|
115
|
+
}, o = [e], t[0] = e, t[1] = a, t[2] = o), p(a, o), n;
|
|
136
116
|
}
|
|
137
117
|
function P(e) {
|
|
138
|
-
let t = i(
|
|
139
|
-
|
|
140
|
-
for (let e = 0; e < 6; e += 1) t[e] = Symbol.for("react.memo_cache_sentinel");
|
|
141
|
-
t[0] = "0874a3ce72c3b0b55f45cf95984b512c9a70cf4c101ad22eddfdde9f2622f302";
|
|
142
|
-
}
|
|
143
|
-
let { placeholder: n, file: r } = e, a = N(r), [o, s] = g(null), c;
|
|
144
|
-
return t[1] !== o || t[2] !== r || t[3] !== a || t[4] !== n ? (c = a === null ? null : a === o ? /* @__PURE__ */ x(L, {
|
|
118
|
+
let t = i(5), { placeholder: n, file: r } = e, a = N(r), [o, s] = g(null), c;
|
|
119
|
+
return t[0] !== o || t[1] !== r || t[2] !== a || t[3] !== n ? (c = a === null ? null : a === o ? /* @__PURE__ */ x(L, {
|
|
145
120
|
placeholder: n,
|
|
146
121
|
file: r,
|
|
147
122
|
glyph: "🖼"
|
|
@@ -151,38 +126,33 @@ function P(e) {
|
|
|
151
126
|
title: r.name,
|
|
152
127
|
className: "border-border size-16 rounded-md border object-cover",
|
|
153
128
|
onError: () => s(a)
|
|
154
|
-
}), t[
|
|
129
|
+
}), t[0] = o, t[1] = r, t[2] = a, t[3] = n, t[4] = c) : c = t[4], c;
|
|
155
130
|
}
|
|
156
131
|
function F(e) {
|
|
157
|
-
let t = i(
|
|
158
|
-
|
|
159
|
-
for (let e = 0; e < 12; e += 1) t[e] = Symbol.for("react.memo_cache_sentinel");
|
|
160
|
-
t[0] = "0874a3ce72c3b0b55f45cf95984b512c9a70cf4c101ad22eddfdde9f2622f302";
|
|
161
|
-
}
|
|
162
|
-
let { placeholder: n, file: r } = e, a = N(r), [o, s] = g(null), c = a ?? void 0, l;
|
|
163
|
-
t[1] === Symbol.for("react.memo_cache_sentinel") ? (l = (e) => s(e.currentTarget.duration), t[1] = l) : l = t[1];
|
|
132
|
+
let t = i(11), { placeholder: n, file: r } = e, a = N(r), [o, s] = g(null), c = a ?? void 0, l;
|
|
133
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (l = (e) => s(e.currentTarget.duration), t[0] = l) : l = t[0];
|
|
164
134
|
let u;
|
|
165
|
-
t[
|
|
135
|
+
t[1] === c ? u = t[2] : (u = /* @__PURE__ */ x("video", {
|
|
166
136
|
src: c,
|
|
167
137
|
muted: !0,
|
|
168
138
|
playsInline: !0,
|
|
169
139
|
preload: "metadata",
|
|
170
140
|
className: "size-full object-cover",
|
|
171
141
|
onLoadedMetadata: l
|
|
172
|
-
}), t[
|
|
142
|
+
}), t[1] = c, t[2] = u);
|
|
173
143
|
let d;
|
|
174
|
-
t[
|
|
144
|
+
t[3] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ x("span", {
|
|
175
145
|
"aria-hidden": !0,
|
|
176
146
|
className: "pointer-events-none absolute inset-0 flex items-center justify-center text-lg text-white drop-shadow",
|
|
177
147
|
children: "▶"
|
|
178
|
-
}), t[
|
|
148
|
+
}), t[3] = d) : d = t[3];
|
|
179
149
|
let f;
|
|
180
|
-
t[
|
|
150
|
+
t[4] === o ? f = t[5] : (f = o !== null && Number.isFinite(o) ? /* @__PURE__ */ x("span", {
|
|
181
151
|
className: "absolute right-0.5 bottom-0.5 rounded bg-black/70 px-1 text-[10px] leading-4 text-white",
|
|
182
152
|
children: I(o)
|
|
183
|
-
}) : null, t[
|
|
153
|
+
}) : null, t[4] = o, t[5] = f);
|
|
184
154
|
let p;
|
|
185
|
-
return t[
|
|
155
|
+
return t[6] !== r.name || t[7] !== n || t[8] !== u || t[9] !== f ? (p = /* @__PURE__ */ S("div", {
|
|
186
156
|
role: "img",
|
|
187
157
|
"aria-label": n,
|
|
188
158
|
title: r.name,
|
|
@@ -192,41 +162,36 @@ function F(e) {
|
|
|
192
162
|
d,
|
|
193
163
|
f
|
|
194
164
|
]
|
|
195
|
-
}), t[
|
|
165
|
+
}), t[6] = r.name, t[7] = n, t[8] = u, t[9] = f, t[10] = p) : p = t[10], p;
|
|
196
166
|
}
|
|
197
167
|
function I(e) {
|
|
198
168
|
let t = Math.round(e);
|
|
199
169
|
return `${Math.floor(t / 60)}:${String(t % 60).padStart(2, "0")}`;
|
|
200
170
|
}
|
|
201
171
|
function L(e) {
|
|
202
|
-
let t = i(
|
|
203
|
-
|
|
204
|
-
for (let e = 0; e < 13; e += 1) t[e] = Symbol.for("react.memo_cache_sentinel");
|
|
205
|
-
t[0] = "0874a3ce72c3b0b55f45cf95984b512c9a70cf4c101ad22eddfdde9f2622f302";
|
|
206
|
-
}
|
|
207
|
-
let { placeholder: n, file: r, glyph: a } = e, o;
|
|
208
|
-
t[1] === a ? o = t[2] : (o = /* @__PURE__ */ S("span", {
|
|
172
|
+
let t = i(12), { placeholder: n, file: r, glyph: a } = e, o;
|
|
173
|
+
t[0] === a ? o = t[1] : (o = /* @__PURE__ */ S("span", {
|
|
209
174
|
"aria-hidden": !0,
|
|
210
175
|
children: [a, " "]
|
|
211
|
-
}), t[
|
|
176
|
+
}), t[0] = a, t[1] = o);
|
|
212
177
|
let s = r.name || n, c;
|
|
213
|
-
t[
|
|
178
|
+
t[2] !== o || t[3] !== s ? (c = /* @__PURE__ */ S("span", {
|
|
214
179
|
className: "text-foreground truncate",
|
|
215
180
|
children: [o, s]
|
|
216
|
-
}), t[
|
|
181
|
+
}), t[2] = o, t[3] = s, t[4] = c) : c = t[4];
|
|
217
182
|
let l = r.type || "file", u;
|
|
218
|
-
t[
|
|
183
|
+
t[5] === l ? u = t[6] : (u = /* @__PURE__ */ x("span", {
|
|
219
184
|
className: "truncate",
|
|
220
185
|
children: l
|
|
221
|
-
}), t[
|
|
186
|
+
}), t[5] = l, t[6] = u);
|
|
222
187
|
let d;
|
|
223
|
-
return t[
|
|
188
|
+
return t[7] !== r.name || t[8] !== n || t[9] !== c || t[10] !== u ? (d = /* @__PURE__ */ S("div", {
|
|
224
189
|
role: "img",
|
|
225
190
|
"aria-label": n,
|
|
226
191
|
title: r.name,
|
|
227
192
|
className: "border-border bg-muted text-muted-foreground flex h-16 max-w-48 flex-col justify-center gap-0.5 rounded-md border px-2 text-xs",
|
|
228
193
|
children: [c, u]
|
|
229
|
-
}), t[
|
|
194
|
+
}), t[7] = r.name, t[8] = n, t[9] = c, t[10] = u, t[11] = d) : d = t[11], d;
|
|
230
195
|
}
|
|
231
196
|
//#endregion
|
|
232
197
|
//#region src/lib/ComposerVisibility.ts
|
|
@@ -1880,13 +1845,8 @@ function ar(e, t, n) {
|
|
|
1880
1845
|
//#endregion
|
|
1881
1846
|
//#region src/lib/Composer.tsx
|
|
1882
1847
|
function or(e) {
|
|
1883
|
-
let t = i(
|
|
1884
|
-
|
|
1885
|
-
for (let e = 0; e < 4; e += 1) t[e] = Symbol.for("react.memo_cache_sentinel");
|
|
1886
|
-
t[0] = "9ae3c6c82807e21b034b30a51f1a3eff9173f788fac3e1c522ab9e6c35923888";
|
|
1887
|
-
}
|
|
1888
|
-
let n = e.draftKey ?? "", r;
|
|
1889
|
-
return t[1] !== e || t[2] !== n ? (r = /* @__PURE__ */ x(cr, { ...e }, n), t[1] = e, t[2] = n, t[3] = r) : r = t[3], r;
|
|
1848
|
+
let t = i(3), n = e.draftKey ?? "", r;
|
|
1849
|
+
return t[0] !== e || t[1] !== n ? (r = /* @__PURE__ */ x(cr, { ...e }, n), t[0] = e, t[1] = n, t[2] = r) : r = t[2], r;
|
|
1890
1850
|
}
|
|
1891
1851
|
function sr(e) {
|
|
1892
1852
|
return typeof e == "object" && !!e && typeof e.then == "function";
|
|
@@ -2670,15 +2630,10 @@ function cr({ initialDraft: e, draftKey: t, disabled: n = !1, isTaskRunning: r =
|
|
|
2670
2630
|
});
|
|
2671
2631
|
}
|
|
2672
2632
|
function lr() {
|
|
2673
|
-
let e = i(
|
|
2674
|
-
|
|
2675
|
-
for (let t = 0; t < 3; t += 1) e[t] = Symbol.for("react.memo_cache_sentinel");
|
|
2676
|
-
e[0] = "9ae3c6c82807e21b034b30a51f1a3eff9173f788fac3e1c522ab9e6c35923888";
|
|
2677
|
-
}
|
|
2678
|
-
let t;
|
|
2679
|
-
e[1] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ x(hr, {}), e[1] = t) : t = e[1];
|
|
2633
|
+
let e = i(2), t;
|
|
2634
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ x(hr, {}), e[0] = t) : t = e[0];
|
|
2680
2635
|
let n;
|
|
2681
|
-
return e[
|
|
2636
|
+
return e[1] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ S(b, { children: [
|
|
2682
2637
|
t,
|
|
2683
2638
|
/* @__PURE__ */ S(ur, { children: [
|
|
2684
2639
|
/* @__PURE__ */ x(fr, {}),
|
|
@@ -2688,56 +2643,41 @@ function lr() {
|
|
|
2688
2643
|
] }),
|
|
2689
2644
|
/* @__PURE__ */ x(yr, {}),
|
|
2690
2645
|
/* @__PURE__ */ x(Sr, {})
|
|
2691
|
-
] }), e[
|
|
2646
|
+
] }), e[1] = n) : n = e[1], n;
|
|
2692
2647
|
}
|
|
2693
2648
|
function ur(e) {
|
|
2694
|
-
let t = i(
|
|
2695
|
-
|
|
2696
|
-
for (let e = 0; e < 9; e += 1) t[e] = Symbol.for("react.memo_cache_sentinel");
|
|
2697
|
-
t[0] = "9ae3c6c82807e21b034b30a51f1a3eff9173f788fac3e1c522ab9e6c35923888";
|
|
2698
|
-
}
|
|
2699
|
-
let n, r;
|
|
2700
|
-
t[1] === e ? (n = t[2], r = t[3]) : ({className: n, ...r} = e, t[1] = e, t[2] = n, t[3] = r);
|
|
2649
|
+
let t = i(8), n, r;
|
|
2650
|
+
t[0] === e ? (n = t[1], r = t[2]) : ({className: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
|
|
2701
2651
|
let a;
|
|
2702
|
-
t[
|
|
2652
|
+
t[3] === n ? a = t[4] : (a = _("space-y-2", n), t[3] = n, t[4] = a);
|
|
2703
2653
|
let o;
|
|
2704
|
-
return t[
|
|
2654
|
+
return t[5] !== r || t[6] !== a ? (o = /* @__PURE__ */ x("div", {
|
|
2705
2655
|
className: a,
|
|
2706
2656
|
...r
|
|
2707
|
-
}), t[
|
|
2657
|
+
}), t[5] = r, t[6] = a, t[7] = o) : o = t[7], o;
|
|
2708
2658
|
}
|
|
2709
2659
|
function dr(e) {
|
|
2710
|
-
let t = i(
|
|
2711
|
-
|
|
2712
|
-
for (let e = 0; e < 9; e += 1) t[e] = Symbol.for("react.memo_cache_sentinel");
|
|
2713
|
-
t[0] = "9ae3c6c82807e21b034b30a51f1a3eff9173f788fac3e1c522ab9e6c35923888";
|
|
2714
|
-
}
|
|
2715
|
-
let n, r;
|
|
2716
|
-
t[1] === e ? (n = t[2], r = t[3]) : ({className: n, ...r} = e, t[1] = e, t[2] = n, t[3] = r);
|
|
2660
|
+
let t = i(8), n, r;
|
|
2661
|
+
t[0] === e ? (n = t[1], r = t[2]) : ({className: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
|
|
2717
2662
|
let a;
|
|
2718
|
-
t[
|
|
2663
|
+
t[3] === n ? a = t[4] : (a = _("flex flex-wrap items-center gap-1.5", n), t[3] = n, t[4] = a);
|
|
2719
2664
|
let o;
|
|
2720
|
-
return t[
|
|
2665
|
+
return t[5] !== r || t[6] !== a ? (o = /* @__PURE__ */ x("div", {
|
|
2721
2666
|
className: a,
|
|
2722
2667
|
...r
|
|
2723
|
-
}), t[
|
|
2668
|
+
}), t[5] = r, t[6] = a, t[7] = o) : o = t[7], o;
|
|
2724
2669
|
}
|
|
2725
2670
|
function fr(e) {
|
|
2726
|
-
let t = i(
|
|
2727
|
-
|
|
2728
|
-
for (let e = 0; e < 15; e += 1) t[e] = Symbol.for("react.memo_cache_sentinel");
|
|
2729
|
-
t[0] = "9ae3c6c82807e21b034b30a51f1a3eff9173f788fac3e1c522ab9e6c35923888";
|
|
2730
|
-
}
|
|
2731
|
-
let n, r;
|
|
2732
|
-
t[1] === e ? (n = t[2], r = t[3]) : ({className: n, ...r} = e, t[1] = e, t[2] = n, t[3] = r);
|
|
2671
|
+
let t = i(14), n, r;
|
|
2672
|
+
t[0] === e ? (n = t[1], r = t[2]) : ({className: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
|
|
2733
2673
|
let { state: a } = A("Composer.RemoteImages");
|
|
2734
2674
|
if (a.remoteImages.length === 0) return null;
|
|
2735
2675
|
let o;
|
|
2736
|
-
t[
|
|
2676
|
+
t[3] === n ? o = t[4] : (o = _("border-border space-y-1 border-b pb-2 text-sm", n), t[3] = n, t[4] = o);
|
|
2737
2677
|
let s;
|
|
2738
|
-
if (t[
|
|
2678
|
+
if (t[5] !== a.remoteImages || t[6] !== a.selectedRemoteImageId) {
|
|
2739
2679
|
let e;
|
|
2740
|
-
t[
|
|
2680
|
+
t[8] === a.selectedRemoteImageId ? e = t[9] : (e = (e, t) => /* @__PURE__ */ S("div", {
|
|
2741
2681
|
className: _("flex h-6 items-center gap-2 rounded-sm px-2", a.selectedRemoteImageId === e.id ? "bg-primary text-primary-foreground" : "text-sky-500"),
|
|
2742
2682
|
children: [/* @__PURE__ */ S("span", {
|
|
2743
2683
|
className: "shrink-0",
|
|
@@ -2750,36 +2690,31 @@ function fr(e) {
|
|
|
2750
2690
|
className: "truncate text-xs opacity-70",
|
|
2751
2691
|
children: e.url
|
|
2752
2692
|
})]
|
|
2753
|
-
}, e.id), t[
|
|
2754
|
-
} else s = t[
|
|
2693
|
+
}, e.id), t[8] = a.selectedRemoteImageId, t[9] = e), s = a.remoteImages.map(e), t[5] = a.remoteImages, t[6] = a.selectedRemoteImageId, t[7] = s;
|
|
2694
|
+
} else s = t[7];
|
|
2755
2695
|
let c;
|
|
2756
|
-
return t[
|
|
2696
|
+
return t[10] !== r || t[11] !== o || t[12] !== s ? (c = /* @__PURE__ */ x("div", {
|
|
2757
2697
|
className: o,
|
|
2758
2698
|
...r,
|
|
2759
2699
|
children: s
|
|
2760
|
-
}), t[
|
|
2700
|
+
}), t[10] = r, t[11] = o, t[12] = s, t[13] = c) : c = t[13], c;
|
|
2761
2701
|
}
|
|
2762
2702
|
function pr(e) {
|
|
2763
|
-
let t = i(
|
|
2764
|
-
|
|
2765
|
-
for (let e = 0; e < 22; e += 1) t[e] = Symbol.for("react.memo_cache_sentinel");
|
|
2766
|
-
t[0] = "9ae3c6c82807e21b034b30a51f1a3eff9173f788fac3e1c522ab9e6c35923888";
|
|
2767
|
-
}
|
|
2768
|
-
let n, r, a, s;
|
|
2769
|
-
t[1] === e ? (n = t[2], r = t[3], a = t[4], s = t[5]) : ({className: n, onDrop: r, placeholder: s, ...a} = e, t[1] = e, t[2] = n, t[3] = r, t[4] = a, t[5] = s);
|
|
2703
|
+
let t = i(21), n, r, a, s;
|
|
2704
|
+
t[0] === e ? (n = t[1], r = t[2], a = t[3], s = t[4]) : ({className: n, onDrop: r, placeholder: s, ...a} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = a, t[4] = s);
|
|
2770
2705
|
let c = s === void 0 ? "Type a message or / for commands" : s, { state: l, disabled: u, meta: d, actions: f } = A("Composer.Editor"), p = u ? "" : void 0, m;
|
|
2771
|
-
t[
|
|
2706
|
+
t[5] !== f || t[6] !== r ? (m = (e) => {
|
|
2772
2707
|
r?.(e), !e.defaultPrevented && f.handleDrop(e.dataTransfer) && e.preventDefault();
|
|
2773
|
-
}, t[
|
|
2708
|
+
}, t[5] = f, t[6] = r, t[7] = m) : m = t[7];
|
|
2774
2709
|
let h;
|
|
2775
|
-
t[
|
|
2710
|
+
t[8] !== c || t[9] !== l.text.length ? (h = l.text.length === 0 ? /* @__PURE__ */ x("div", {
|
|
2776
2711
|
"data-slot": "composer-placeholder",
|
|
2777
2712
|
children: c
|
|
2778
|
-
}) : null, t[
|
|
2713
|
+
}) : null, t[8] = c, t[9] = l.text.length, t[10] = h) : h = t[10];
|
|
2779
2714
|
let g;
|
|
2780
|
-
t[
|
|
2715
|
+
t[11] === d.editor ? g = t[12] : (g = /* @__PURE__ */ x(o, { editor: d.editor }), t[11] = d.editor, t[12] = g);
|
|
2781
2716
|
let _;
|
|
2782
|
-
return t[
|
|
2717
|
+
return t[13] !== n || t[14] !== u || t[15] !== a || t[16] !== p || t[17] !== m || t[18] !== h || t[19] !== g ? (_ = /* @__PURE__ */ S("div", {
|
|
2783
2718
|
"data-slot": "composer-frame",
|
|
2784
2719
|
className: n,
|
|
2785
2720
|
"aria-disabled": u,
|
|
@@ -2787,113 +2722,98 @@ function pr(e) {
|
|
|
2787
2722
|
onDrop: m,
|
|
2788
2723
|
...a,
|
|
2789
2724
|
children: [h, g]
|
|
2790
|
-
}), t[
|
|
2725
|
+
}), t[13] = n, t[14] = u, t[15] = a, t[16] = p, t[17] = m, t[18] = h, t[19] = g, t[20] = _) : _ = t[20], _;
|
|
2791
2726
|
}
|
|
2792
2727
|
function mr(e) {
|
|
2793
|
-
let t = i(
|
|
2794
|
-
|
|
2795
|
-
for (let e = 0; e < 10; e += 1) t[e] = Symbol.for("react.memo_cache_sentinel");
|
|
2796
|
-
t[0] = "9ae3c6c82807e21b034b30a51f1a3eff9173f788fac3e1c522ab9e6c35923888";
|
|
2797
|
-
}
|
|
2798
|
-
let n, r;
|
|
2799
|
-
t[1] === e ? (n = t[2], r = t[3]) : ({className: n, ...r} = e, t[1] = e, t[2] = n, t[3] = r);
|
|
2728
|
+
let t = i(9), n, r;
|
|
2729
|
+
t[0] === e ? (n = t[1], r = t[2]) : ({className: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
|
|
2800
2730
|
let { state: a } = A("Composer.Error");
|
|
2801
2731
|
if (!a.error) return null;
|
|
2802
2732
|
let o;
|
|
2803
|
-
t[
|
|
2733
|
+
t[3] === n ? o = t[4] : (o = _("border-primary/30 bg-primary/10 text-primary rounded-md border px-3 py-2 text-xs", n), t[3] = n, t[4] = o);
|
|
2804
2734
|
let s;
|
|
2805
|
-
return t[
|
|
2735
|
+
return t[5] !== r || t[6] !== a.error || t[7] !== o ? (s = /* @__PURE__ */ x("div", {
|
|
2806
2736
|
className: o,
|
|
2807
2737
|
...r,
|
|
2808
2738
|
children: a.error
|
|
2809
|
-
}), t[
|
|
2739
|
+
}), t[5] = r, t[6] = a.error, t[7] = o, t[8] = s) : s = t[8], s;
|
|
2810
2740
|
}
|
|
2811
2741
|
function hr(e) {
|
|
2812
|
-
let t = i(
|
|
2813
|
-
|
|
2814
|
-
for (let e = 0; e < 26; e += 1) t[e] = Symbol.for("react.memo_cache_sentinel");
|
|
2815
|
-
t[0] = "9ae3c6c82807e21b034b30a51f1a3eff9173f788fac3e1c522ab9e6c35923888";
|
|
2816
|
-
}
|
|
2817
|
-
let n, r;
|
|
2818
|
-
t[1] === e ? (n = t[2], r = t[3]) : ({className: n, ...r} = e, t[1] = e, t[2] = n, t[3] = r);
|
|
2742
|
+
let t = i(25), n, r;
|
|
2743
|
+
t[0] === e ? (n = t[1], r = t[2]) : ({className: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
|
|
2819
2744
|
let { activePopup: a, suggestions: o, actions: s } = A("Composer.Popup"), { acceptSuggestion: c } = s;
|
|
2820
2745
|
if (!a) return null;
|
|
2821
2746
|
let l;
|
|
2822
|
-
t[
|
|
2747
|
+
t[3] === o ? l = t[4] : (l = o.some(gr), t[3] = o, t[4] = l);
|
|
2823
2748
|
let u = l, d;
|
|
2824
|
-
t[
|
|
2749
|
+
t[5] === n ? d = t[6] : (d = _("border-border bg-popover absolute inset-x-0 bottom-[calc(100%+0.5rem)] z-10 rounded-xl border shadow-lg", n), t[5] = n, t[6] = d);
|
|
2825
2750
|
let f;
|
|
2826
|
-
if (t[
|
|
2751
|
+
if (t[7] !== c || t[8] !== a || t[9] !== o || t[10] !== u) {
|
|
2827
2752
|
let e;
|
|
2828
|
-
t[
|
|
2753
|
+
t[12] !== c || t[13] !== a || t[14] !== u ? (e = (e, t) => /* @__PURE__ */ x(_r, {
|
|
2829
2754
|
selected: t === a.selectedIndex,
|
|
2830
2755
|
icon: u ? e.icon : null,
|
|
2831
2756
|
token: W(e),
|
|
2832
2757
|
takesArgs: e.supportsArgs === !0,
|
|
2833
2758
|
description: e.detail,
|
|
2834
2759
|
onMouseDown: () => c({ index: t })
|
|
2835
|
-
}, `item:${e.id}`), t[
|
|
2836
|
-
} else f = t[
|
|
2760
|
+
}, `item:${e.id}`), t[12] = c, t[13] = a, t[14] = u, t[15] = e) : e = t[15], f = o.map(e), t[7] = c, t[8] = a, t[9] = o, t[10] = u, t[11] = f;
|
|
2761
|
+
} else f = t[11];
|
|
2837
2762
|
let p;
|
|
2838
|
-
t[
|
|
2763
|
+
t[16] === o.length ? p = t[17] : (p = o.length === 0 ? /* @__PURE__ */ x("div", {
|
|
2839
2764
|
className: "text-muted-foreground px-2 py-1 text-[13px] leading-4",
|
|
2840
2765
|
children: "no matches"
|
|
2841
|
-
}) : null, t[
|
|
2766
|
+
}) : null, t[16] = o.length, t[17] = p);
|
|
2842
2767
|
let m;
|
|
2843
|
-
t[
|
|
2768
|
+
t[18] !== f || t[19] !== p ? (m = /* @__PURE__ */ S("div", {
|
|
2844
2769
|
className: "flex max-h-72 flex-col gap-1 overflow-y-auto p-1",
|
|
2845
2770
|
role: "listbox",
|
|
2846
2771
|
"aria-label": "Suggestions",
|
|
2847
2772
|
children: [f, p]
|
|
2848
|
-
}), t[
|
|
2773
|
+
}), t[18] = f, t[19] = p, t[20] = m) : m = t[20];
|
|
2849
2774
|
let h;
|
|
2850
|
-
return t[
|
|
2775
|
+
return t[21] !== r || t[22] !== d || t[23] !== m ? (h = /* @__PURE__ */ x("div", {
|
|
2851
2776
|
className: d,
|
|
2852
2777
|
...r,
|
|
2853
2778
|
children: m
|
|
2854
|
-
}), t[
|
|
2779
|
+
}), t[21] = r, t[22] = d, t[23] = m, t[24] = h) : h = t[24], h;
|
|
2855
2780
|
}
|
|
2856
2781
|
function gr(e) {
|
|
2857
2782
|
return e.icon;
|
|
2858
2783
|
}
|
|
2859
2784
|
function _r(e) {
|
|
2860
|
-
let t = i(
|
|
2861
|
-
|
|
2862
|
-
for (let e = 0; e < 24; e += 1) t[e] = Symbol.for("react.memo_cache_sentinel");
|
|
2863
|
-
t[0] = "9ae3c6c82807e21b034b30a51f1a3eff9173f788fac3e1c522ab9e6c35923888";
|
|
2864
|
-
}
|
|
2865
|
-
let { selected: n, icon: r, token: a, takesArgs: o, description: s, onMouseDown: c } = e, l = h(null), u, d;
|
|
2866
|
-
t[1] === n ? (u = t[2], d = t[3]) : (u = () => {
|
|
2785
|
+
let t = i(23), { selected: n, icon: r, token: a, takesArgs: o, description: s, onMouseDown: c } = e, l = h(null), u, d;
|
|
2786
|
+
t[0] === n ? (u = t[1], d = t[2]) : (u = () => {
|
|
2867
2787
|
n && l.current?.scrollIntoView({ block: "nearest" });
|
|
2868
|
-
}, d = [n], t[
|
|
2788
|
+
}, d = [n], t[0] = n, t[1] = u, t[2] = d), p(u, d);
|
|
2869
2789
|
let f = n ? "bg-accent text-foreground" : "text-foreground/80 hover:bg-accent/60", m;
|
|
2870
|
-
t[
|
|
2790
|
+
t[3] === f ? m = t[4] : (m = _("flex w-full items-center gap-2 rounded-md px-2 py-1 text-start text-[13px] leading-4 [&_svg]:size-4 [&_svg]:shrink-0", f), t[3] = f, t[4] = m);
|
|
2871
2791
|
let g;
|
|
2872
|
-
t[
|
|
2792
|
+
t[5] === c ? g = t[6] : (g = (e) => {
|
|
2873
2793
|
e.preventDefault(), c();
|
|
2874
|
-
}, t[
|
|
2794
|
+
}, t[5] = c, t[6] = g);
|
|
2875
2795
|
let v;
|
|
2876
|
-
t[
|
|
2796
|
+
t[7] === r ? v = t[8] : (v = r === null ? null : /* @__PURE__ */ x("span", {
|
|
2877
2797
|
className: "flex size-4 shrink-0 items-center justify-center",
|
|
2878
2798
|
children: r
|
|
2879
|
-
}), t[
|
|
2799
|
+
}), t[7] = r, t[8] = v);
|
|
2880
2800
|
let y;
|
|
2881
|
-
t[
|
|
2801
|
+
t[9] === a ? y = t[10] : (y = /* @__PURE__ */ x("span", {
|
|
2882
2802
|
className: "truncate",
|
|
2883
2803
|
children: a
|
|
2884
|
-
}), t[
|
|
2804
|
+
}), t[9] = a, t[10] = y);
|
|
2885
2805
|
let b;
|
|
2886
|
-
t[
|
|
2806
|
+
t[11] === o ? b = t[12] : (b = o ? /* @__PURE__ */ x("span", {
|
|
2887
2807
|
className: "text-muted-foreground shrink-0",
|
|
2888
2808
|
children: "args"
|
|
2889
|
-
}) : null, t[
|
|
2809
|
+
}) : null, t[11] = o, t[12] = b);
|
|
2890
2810
|
let C;
|
|
2891
|
-
t[
|
|
2811
|
+
t[13] === s ? C = t[14] : (C = /* @__PURE__ */ x("span", {
|
|
2892
2812
|
className: "text-muted-foreground truncate",
|
|
2893
2813
|
children: s
|
|
2894
|
-
}), t[
|
|
2814
|
+
}), t[13] = s, t[14] = C);
|
|
2895
2815
|
let w;
|
|
2896
|
-
return t[
|
|
2816
|
+
return t[15] !== n || t[16] !== m || t[17] !== g || t[18] !== v || t[19] !== y || t[20] !== b || t[21] !== C ? (w = /* @__PURE__ */ S("button", {
|
|
2897
2817
|
ref: l,
|
|
2898
2818
|
type: "button",
|
|
2899
2819
|
role: "option",
|
|
@@ -2906,7 +2826,7 @@ function _r(e) {
|
|
|
2906
2826
|
b,
|
|
2907
2827
|
C
|
|
2908
2828
|
]
|
|
2909
|
-
}), t[
|
|
2829
|
+
}), t[15] = n, t[16] = m, t[17] = g, t[18] = v, t[19] = y, t[20] = b, t[21] = C, t[22] = w) : w = t[22], w;
|
|
2910
2830
|
}
|
|
2911
2831
|
var vr = [
|
|
2912
2832
|
{
|
|
@@ -2937,24 +2857,19 @@ var vr = [
|
|
|
2937
2857
|
}
|
|
2938
2858
|
];
|
|
2939
2859
|
function yr(e) {
|
|
2940
|
-
let t = i(
|
|
2941
|
-
|
|
2942
|
-
for (let e = 0; e < 14; e += 1) t[e] = Symbol.for("react.memo_cache_sentinel");
|
|
2943
|
-
t[0] = "9ae3c6c82807e21b034b30a51f1a3eff9173f788fac3e1c522ab9e6c35923888";
|
|
2944
|
-
}
|
|
2945
|
-
let n, r;
|
|
2946
|
-
t[1] === e ? (n = t[2], r = t[3]) : ({className: n, ...r} = e, t[1] = e, t[2] = n, t[3] = r);
|
|
2860
|
+
let t = i(13), n, r;
|
|
2861
|
+
t[0] === e ? (n = t[1], r = t[2]) : ({className: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
|
|
2947
2862
|
let { state: a, actions: o } = A("Composer.Shortcuts"), { closeShortcuts: s } = o;
|
|
2948
2863
|
if (!a.shortcutsOpen || !fe(a)) return null;
|
|
2949
2864
|
let c;
|
|
2950
|
-
t[
|
|
2865
|
+
t[3] === n ? c = t[4] : (c = _("border-border bg-popover border-t px-3 py-3 text-xs", n), t[3] = n, t[4] = c);
|
|
2951
2866
|
let l;
|
|
2952
|
-
t[
|
|
2867
|
+
t[5] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ x("div", {
|
|
2953
2868
|
className: "text-foreground font-medium",
|
|
2954
2869
|
children: "Keyboard shortcuts"
|
|
2955
|
-
}), t[
|
|
2870
|
+
}), t[5] = l) : l = t[5];
|
|
2956
2871
|
let u;
|
|
2957
|
-
t[
|
|
2872
|
+
t[6] === s ? u = t[7] : (u = /* @__PURE__ */ S("div", {
|
|
2958
2873
|
className: "mb-3 flex items-center justify-between gap-3",
|
|
2959
2874
|
children: [l, /* @__PURE__ */ x("button", {
|
|
2960
2875
|
type: "button",
|
|
@@ -2962,20 +2877,20 @@ function yr(e) {
|
|
|
2962
2877
|
onClick: s,
|
|
2963
2878
|
children: "close"
|
|
2964
2879
|
})]
|
|
2965
|
-
}), t[
|
|
2880
|
+
}), t[6] = s, t[7] = u);
|
|
2966
2881
|
let d;
|
|
2967
|
-
t[
|
|
2882
|
+
t[8] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ x("div", {
|
|
2968
2883
|
className: "grid gap-3 sm:grid-cols-3",
|
|
2969
2884
|
children: vr.map(br)
|
|
2970
|
-
}), t[
|
|
2885
|
+
}), t[8] = d) : d = t[8];
|
|
2971
2886
|
let f;
|
|
2972
|
-
return t[
|
|
2887
|
+
return t[9] !== r || t[10] !== c || t[11] !== u ? (f = /* @__PURE__ */ S("div", {
|
|
2973
2888
|
role: "dialog",
|
|
2974
2889
|
"aria-label": "Keyboard shortcuts",
|
|
2975
2890
|
className: c,
|
|
2976
2891
|
...r,
|
|
2977
2892
|
children: [u, d]
|
|
2978
|
-
}), t[
|
|
2893
|
+
}), t[9] = r, t[10] = c, t[11] = u, t[12] = f) : f = t[12], f;
|
|
2979
2894
|
}
|
|
2980
2895
|
function br(e) {
|
|
2981
2896
|
return /* @__PURE__ */ S("div", {
|
|
@@ -3003,31 +2918,26 @@ function xr(e) {
|
|
|
3003
2918
|
}, `${t}-${n}`);
|
|
3004
2919
|
}
|
|
3005
2920
|
function Sr(e) {
|
|
3006
|
-
let t = i(
|
|
3007
|
-
|
|
3008
|
-
for (let e = 0; e < 31; e += 1) t[e] = Symbol.for("react.memo_cache_sentinel");
|
|
3009
|
-
t[0] = "9ae3c6c82807e21b034b30a51f1a3eff9173f788fac3e1c522ab9e6c35923888";
|
|
3010
|
-
}
|
|
3011
|
-
let n, r;
|
|
3012
|
-
t[1] === e ? (n = t[2], r = t[3]) : ({className: n, ...r} = e, t[1] = e, t[2] = n, t[3] = r);
|
|
2921
|
+
let t = i(30), n, r;
|
|
2922
|
+
t[0] === e ? (n = t[1], r = t[2]) : ({className: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
|
|
3013
2923
|
let { activePopup: a, state: o, commandTriggers: s } = A("Composer.Footer");
|
|
3014
2924
|
if (o.reverseSearch !== null) {
|
|
3015
2925
|
let e;
|
|
3016
|
-
t[
|
|
2926
|
+
t[3] === n ? e = t[4] : (e = _("border-border text-muted-foreground flex items-center gap-2 border-t px-3 py-2 text-[11px]", n), t[3] = n, t[4] = e);
|
|
3017
2927
|
let i, a;
|
|
3018
|
-
t[
|
|
2928
|
+
t[5] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ x("kbd", {
|
|
3019
2929
|
className: "border-border bg-muted text-foreground rounded border px-1.5 py-0.5 font-[inherit]",
|
|
3020
2930
|
children: "Ctrl R"
|
|
3021
|
-
}), a = /* @__PURE__ */ x("span", { children: "reverse-i-search:" }), t[
|
|
2931
|
+
}), a = /* @__PURE__ */ x("span", { children: "reverse-i-search:" }), t[5] = i, t[6] = a) : (i = t[5], a = t[6]);
|
|
3022
2932
|
let s = o.reverseSearch || "_", c;
|
|
3023
|
-
t[
|
|
2933
|
+
t[7] === s ? c = t[8] : (c = /* @__PURE__ */ x("span", {
|
|
3024
2934
|
className: "text-foreground",
|
|
3025
2935
|
children: s
|
|
3026
|
-
}), t[
|
|
2936
|
+
}), t[7] = s, t[8] = c);
|
|
3027
2937
|
let l, u, d, f;
|
|
3028
|
-
t[
|
|
2938
|
+
t[9] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ x("span", { children: "Ctrl R previous" }), u = /* @__PURE__ */ x("span", { children: "Ctrl S next" }), d = /* @__PURE__ */ x("span", { children: "Enter accept" }), f = /* @__PURE__ */ x("span", { children: "Esc cancel" }), t[9] = l, t[10] = u, t[11] = d, t[12] = f) : (l = t[9], u = t[10], d = t[11], f = t[12]);
|
|
3029
2939
|
let p;
|
|
3030
|
-
return t[
|
|
2940
|
+
return t[13] !== r || t[14] !== e || t[15] !== c ? (p = /* @__PURE__ */ S("div", {
|
|
3031
2941
|
className: e,
|
|
3032
2942
|
...r,
|
|
3033
2943
|
children: [
|
|
@@ -3039,10 +2949,10 @@ function Sr(e) {
|
|
|
3039
2949
|
d,
|
|
3040
2950
|
f
|
|
3041
2951
|
]
|
|
3042
|
-
}), t[
|
|
2952
|
+
}), t[13] = r, t[14] = e, t[15] = c, t[16] = p) : p = t[16], p;
|
|
3043
2953
|
}
|
|
3044
2954
|
let c;
|
|
3045
|
-
t[
|
|
2955
|
+
t[17] !== a || t[18] !== s || t[19] !== o.isTaskRunning || t[20] !== o.queueSubmissions ? (c = a !== null && s.includes(a.trigger) || a ? [
|
|
3046
2956
|
["Enter", "insert"],
|
|
3047
2957
|
["Tab", "insert"],
|
|
3048
2958
|
["Esc", "dismiss"]
|
|
@@ -3058,17 +2968,17 @@ function Sr(e) {
|
|
|
3058
2968
|
["Ctrl W", "word kill"],
|
|
3059
2969
|
["Alt B/F", "word move"],
|
|
3060
2970
|
["Ctrl Y", "yank"]
|
|
3061
|
-
], t[
|
|
2971
|
+
], t[17] = a, t[18] = s, t[19] = o.isTaskRunning, t[20] = o.queueSubmissions, t[21] = c) : c = t[21];
|
|
3062
2972
|
let l = c, u;
|
|
3063
|
-
t[
|
|
2973
|
+
t[22] === n ? u = t[23] : (u = _("border-border text-muted-foreground flex flex-wrap items-center gap-x-4 gap-y-1 border-t px-3 py-2 text-[11px]", n), t[22] = n, t[23] = u);
|
|
3064
2974
|
let d;
|
|
3065
|
-
t[
|
|
2975
|
+
t[24] === l ? d = t[25] : (d = l.map(Cr), t[24] = l, t[25] = d);
|
|
3066
2976
|
let f;
|
|
3067
|
-
return t[
|
|
2977
|
+
return t[26] !== r || t[27] !== u || t[28] !== d ? (f = /* @__PURE__ */ x("div", {
|
|
3068
2978
|
className: u,
|
|
3069
2979
|
...r,
|
|
3070
2980
|
children: d
|
|
3071
|
-
}), t[
|
|
2981
|
+
}), t[26] = r, t[27] = u, t[28] = d, t[29] = f) : f = t[29], f;
|
|
3072
2982
|
}
|
|
3073
2983
|
function Cr(e) {
|
|
3074
2984
|
let [t, n] = e;
|
|
@@ -3081,28 +2991,23 @@ function Cr(e) {
|
|
|
3081
2991
|
}, `${t}-${n}`);
|
|
3082
2992
|
}
|
|
3083
2993
|
function wr(e) {
|
|
3084
|
-
let t = i(
|
|
3085
|
-
|
|
3086
|
-
for (let e = 0; e < 20; e += 1) t[e] = Symbol.for("react.memo_cache_sentinel");
|
|
3087
|
-
t[0] = "9ae3c6c82807e21b034b30a51f1a3eff9173f788fac3e1c522ab9e6c35923888";
|
|
3088
|
-
}
|
|
3089
|
-
let n, r, a, o;
|
|
3090
|
-
t[1] === e ? (n = t[2], r = t[3], a = t[4], o = t[5]) : ({accept: a, multiple: o, disabled: n, ...r} = e, t[1] = e, t[2] = n, t[3] = r, t[4] = a, t[5] = o);
|
|
2994
|
+
let t = i(19), n, r, a, o;
|
|
2995
|
+
t[0] === e ? (n = t[1], r = t[2], a = t[3], o = t[4]) : ({accept: a, multiple: o, disabled: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = a, t[4] = o);
|
|
3091
2996
|
let s = a === void 0 ? "image/*,video/*,audio/*" : a, c = o === void 0 || o, { actions: l, disabled: u } = A("Composer.AttachFiles"), d = h(null), f;
|
|
3092
|
-
t[
|
|
2997
|
+
t[5] === Symbol.for("react.memo_cache_sentinel") ? (f = () => d.current?.click(), t[5] = f) : f = t[5];
|
|
3093
2998
|
let p;
|
|
3094
|
-
t[
|
|
2999
|
+
t[6] !== n || t[7] !== r ? (p = /* @__PURE__ */ x(Ar, {
|
|
3095
3000
|
action: f,
|
|
3096
3001
|
disabled: n,
|
|
3097
3002
|
...r
|
|
3098
|
-
}), t[
|
|
3003
|
+
}), t[6] = n, t[7] = r, t[8] = p) : p = t[8];
|
|
3099
3004
|
let m = u || n, g;
|
|
3100
|
-
t[
|
|
3005
|
+
t[9] === l ? g = t[10] : (g = (e) => {
|
|
3101
3006
|
let t = e.currentTarget;
|
|
3102
3007
|
t.files && l.attachImageFiles(t.files), t.value = "";
|
|
3103
|
-
}, t[
|
|
3008
|
+
}, t[9] = l, t[10] = g);
|
|
3104
3009
|
let _;
|
|
3105
|
-
t[
|
|
3010
|
+
t[11] !== s || t[12] !== c || t[13] !== m || t[14] !== g ? (_ = /* @__PURE__ */ x("input", {
|
|
3106
3011
|
ref: d,
|
|
3107
3012
|
type: "file",
|
|
3108
3013
|
accept: s,
|
|
@@ -3111,100 +3016,70 @@ function wr(e) {
|
|
|
3111
3016
|
hidden: !0,
|
|
3112
3017
|
disabled: m,
|
|
3113
3018
|
onChange: g
|
|
3114
|
-
}), t[
|
|
3019
|
+
}), t[11] = s, t[12] = c, t[13] = m, t[14] = g, t[15] = _) : _ = t[15];
|
|
3115
3020
|
let v;
|
|
3116
|
-
return t[
|
|
3021
|
+
return t[16] !== p || t[17] !== _ ? (v = /* @__PURE__ */ S(b, { children: [p, _] }), t[16] = p, t[17] = _, t[18] = v) : v = t[18], v;
|
|
3117
3022
|
}
|
|
3118
3023
|
function Tr(e) {
|
|
3119
|
-
let t = i(
|
|
3120
|
-
|
|
3121
|
-
for (let e = 0; e < 10; e += 1) t[e] = Symbol.for("react.memo_cache_sentinel");
|
|
3122
|
-
t[0] = "9ae3c6c82807e21b034b30a51f1a3eff9173f788fac3e1c522ab9e6c35923888";
|
|
3123
|
-
}
|
|
3124
|
-
let n, r;
|
|
3125
|
-
t[1] === e ? (n = t[2], r = t[3]) : ({url: r, ...n} = e, t[1] = e, t[2] = n, t[3] = r);
|
|
3024
|
+
let t = i(9), n, r;
|
|
3025
|
+
t[0] === e ? (n = t[1], r = t[2]) : ({url: r, ...n} = e, t[0] = e, t[1] = n, t[2] = r);
|
|
3126
3026
|
let { actions: a } = A("Composer.AddRemoteImage"), o;
|
|
3127
|
-
t[
|
|
3027
|
+
t[3] !== a || t[4] !== r ? (o = () => a.addRemoteImage(r), t[3] = a, t[4] = r, t[5] = o) : o = t[5];
|
|
3128
3028
|
let s;
|
|
3129
|
-
return t[
|
|
3029
|
+
return t[6] !== n || t[7] !== o ? (s = /* @__PURE__ */ x(Ar, {
|
|
3130
3030
|
action: o,
|
|
3131
3031
|
...n
|
|
3132
|
-
}), t[
|
|
3032
|
+
}), t[6] = n, t[7] = o, t[8] = s) : s = t[8], s;
|
|
3133
3033
|
}
|
|
3134
3034
|
function Er(e) {
|
|
3135
|
-
let t = i(
|
|
3136
|
-
|
|
3137
|
-
for (let e = 0; e < 10; e += 1) t[e] = Symbol.for("react.memo_cache_sentinel");
|
|
3138
|
-
t[0] = "9ae3c6c82807e21b034b30a51f1a3eff9173f788fac3e1c522ab9e6c35923888";
|
|
3139
|
-
}
|
|
3140
|
-
let n, r;
|
|
3141
|
-
t[1] === e ? (n = t[2], r = t[3]) : ({content: n, ...r} = e, t[1] = e, t[2] = n, t[3] = r);
|
|
3035
|
+
let t = i(9), n, r;
|
|
3036
|
+
t[0] === e ? (n = t[1], r = t[2]) : ({content: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
|
|
3142
3037
|
let { actions: a } = A("Composer.InsertPaste"), o;
|
|
3143
|
-
t[
|
|
3038
|
+
t[3] !== a || t[4] !== n ? (o = () => a.insertPaste(n), t[3] = a, t[4] = n, t[5] = o) : o = t[5];
|
|
3144
3039
|
let s;
|
|
3145
|
-
return t[
|
|
3040
|
+
return t[6] !== r || t[7] !== o ? (s = /* @__PURE__ */ x(Ar, {
|
|
3146
3041
|
action: o,
|
|
3147
3042
|
...r
|
|
3148
|
-
}), t[
|
|
3043
|
+
}), t[6] = r, t[7] = o, t[8] = s) : s = t[8], s;
|
|
3149
3044
|
}
|
|
3150
3045
|
function Dr(e) {
|
|
3151
|
-
let t = i(
|
|
3152
|
-
|
|
3153
|
-
for (let e = 0; e < 14; e += 1) t[e] = Symbol.for("react.memo_cache_sentinel");
|
|
3154
|
-
t[0] = "9ae3c6c82807e21b034b30a51f1a3eff9173f788fac3e1c522ab9e6c35923888";
|
|
3155
|
-
}
|
|
3156
|
-
let n, r, a, o;
|
|
3157
|
-
t[1] === e ? (n = t[2], r = t[3], a = t[4], o = t[5]) : ({href: n, label: r, metadata: a, ...o} = e, t[1] = e, t[2] = n, t[3] = r, t[4] = a, t[5] = o);
|
|
3046
|
+
let t = i(13), n, r, a, o;
|
|
3047
|
+
t[0] === e ? (n = t[1], r = t[2], a = t[3], o = t[4]) : ({href: n, label: r, metadata: a, ...o} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = a, t[4] = o);
|
|
3158
3048
|
let { actions: s } = A("Composer.InsertRichLink"), c;
|
|
3159
|
-
t[
|
|
3049
|
+
t[5] !== s || t[6] !== n || t[7] !== r || t[8] !== a ? (c = () => s.insertRichLink(n, r, a), t[5] = s, t[6] = n, t[7] = r, t[8] = a, t[9] = c) : c = t[9];
|
|
3160
3050
|
let l;
|
|
3161
|
-
return t[
|
|
3051
|
+
return t[10] !== o || t[11] !== c ? (l = /* @__PURE__ */ x(Ar, {
|
|
3162
3052
|
action: c,
|
|
3163
3053
|
...o
|
|
3164
|
-
}), t[
|
|
3054
|
+
}), t[10] = o, t[11] = c, t[12] = l) : l = t[12], l;
|
|
3165
3055
|
}
|
|
3166
3056
|
function Or(e) {
|
|
3167
|
-
let t = i(
|
|
3168
|
-
|
|
3169
|
-
for (let e = 0; e < 4; e += 1) t[e] = Symbol.for("react.memo_cache_sentinel");
|
|
3170
|
-
t[0] = "9ae3c6c82807e21b034b30a51f1a3eff9173f788fac3e1c522ab9e6c35923888";
|
|
3171
|
-
}
|
|
3172
|
-
let { actions: n } = A("Composer.Submit"), r;
|
|
3173
|
-
return t[1] !== n.submit || t[2] !== e ? (r = /* @__PURE__ */ x(Ar, {
|
|
3057
|
+
let t = i(3), { actions: n } = A("Composer.Submit"), r;
|
|
3058
|
+
return t[0] !== n.submit || t[1] !== e ? (r = /* @__PURE__ */ x(Ar, {
|
|
3174
3059
|
action: n.submit,
|
|
3175
3060
|
...e
|
|
3176
|
-
}), t[
|
|
3061
|
+
}), t[0] = n.submit, t[1] = e, t[2] = r) : r = t[2], r;
|
|
3177
3062
|
}
|
|
3178
3063
|
function kr(e) {
|
|
3179
|
-
let t = i(
|
|
3180
|
-
|
|
3181
|
-
for (let e = 0; e < 4; e += 1) t[e] = Symbol.for("react.memo_cache_sentinel");
|
|
3182
|
-
t[0] = "9ae3c6c82807e21b034b30a51f1a3eff9173f788fac3e1c522ab9e6c35923888";
|
|
3183
|
-
}
|
|
3184
|
-
let { actions: n } = A("Composer.Reset"), r;
|
|
3185
|
-
return t[1] !== n.reset || t[2] !== e ? (r = /* @__PURE__ */ x(Ar, {
|
|
3064
|
+
let t = i(3), { actions: n } = A("Composer.Reset"), r;
|
|
3065
|
+
return t[0] !== n.reset || t[1] !== e ? (r = /* @__PURE__ */ x(Ar, {
|
|
3186
3066
|
action: n.reset,
|
|
3187
3067
|
...e
|
|
3188
|
-
}), t[
|
|
3068
|
+
}), t[0] = n.reset, t[1] = e, t[2] = r) : r = t[2], r;
|
|
3189
3069
|
}
|
|
3190
3070
|
function Ar(e) {
|
|
3191
|
-
let t = i(
|
|
3192
|
-
|
|
3193
|
-
for (let e = 0; e < 13; e += 1) t[e] = Symbol.for("react.memo_cache_sentinel");
|
|
3194
|
-
t[0] = "9ae3c6c82807e21b034b30a51f1a3eff9173f788fac3e1c522ab9e6c35923888";
|
|
3195
|
-
}
|
|
3196
|
-
let n, r, o, s;
|
|
3197
|
-
t[1] === e ? (n = t[2], r = t[3], o = t[4], s = t[5]) : ({action: n, onClick: o, disabled: r, ...s} = e, t[1] = e, t[2] = n, t[3] = r, t[4] = o, t[5] = s);
|
|
3071
|
+
let t = i(12), n, r, o, s;
|
|
3072
|
+
t[0] === e ? (n = t[1], r = t[2], o = t[3], s = t[4]) : ({action: n, onClick: o, disabled: r, ...s} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = o, t[4] = s);
|
|
3198
3073
|
let { disabled: c } = A("Composer.ActionTrigger"), l = c || r, u;
|
|
3199
|
-
t[
|
|
3074
|
+
t[5] !== n || t[6] !== o ? (u = (e) => {
|
|
3200
3075
|
o?.(e), e.defaultPrevented || n();
|
|
3201
|
-
}, t[
|
|
3076
|
+
}, t[5] = n, t[6] = o, t[7] = u) : u = t[7];
|
|
3202
3077
|
let d;
|
|
3203
|
-
return t[
|
|
3078
|
+
return t[8] !== s || t[9] !== l || t[10] !== u ? (d = /* @__PURE__ */ x(a, {
|
|
3204
3079
|
...s,
|
|
3205
3080
|
disabled: l,
|
|
3206
3081
|
onClick: u
|
|
3207
|
-
}), t[
|
|
3082
|
+
}), t[8] = s, t[9] = l, t[10] = u, t[11] = d) : d = t[11], d;
|
|
3208
3083
|
}
|
|
3209
3084
|
function jr(e) {
|
|
3210
3085
|
if (e.metaKey) return !1;
|
|
@@ -3261,15 +3136,10 @@ var Ir = {
|
|
|
3261
3136
|
//#endregion
|
|
3262
3137
|
//#region src/lib/ComposerTokenText.tsx
|
|
3263
3138
|
function Lr(e) {
|
|
3264
|
-
let t = i(
|
|
3265
|
-
|
|
3266
|
-
for (let e = 0; e < 6; e += 1) t[e] = Symbol.for("react.memo_cache_sentinel");
|
|
3267
|
-
t[0] = "94e1ac73709344e6a5af4e6bafe6aaa4e81995e28eadf6d099e4831b99de6100";
|
|
3268
|
-
}
|
|
3269
|
-
let { text: n, elements: r } = e, a;
|
|
3270
|
-
t[1] !== r || t[2] !== n ? (a = zr(n, r).map(Rr), t[1] = r, t[2] = n, t[3] = a) : a = t[3];
|
|
3139
|
+
let t = i(5), { text: n, elements: r } = e, a;
|
|
3140
|
+
t[0] !== r || t[1] !== n ? (a = zr(n, r).map(Rr), t[0] = r, t[1] = n, t[2] = a) : a = t[2];
|
|
3271
3141
|
let o;
|
|
3272
|
-
return t[
|
|
3142
|
+
return t[3] === a ? o = t[4] : (o = /* @__PURE__ */ x(b, { children: a }), t[3] = a, t[4] = o), o;
|
|
3273
3143
|
}
|
|
3274
3144
|
function Rr(e) {
|
|
3275
3145
|
return e.element ? /* @__PURE__ */ x("span", {
|
|
@@ -3315,21 +3185,16 @@ function Br(e, t) {
|
|
|
3315
3185
|
//#endregion
|
|
3316
3186
|
//#region src/lib/PersistedPromptText.tsx
|
|
3317
3187
|
function Vr(e) {
|
|
3318
|
-
let t = i(
|
|
3319
|
-
if (t[0] !==
|
|
3320
|
-
for (let e = 0; e < 7; e += 1) t[e] = Symbol.for("react.memo_cache_sentinel");
|
|
3321
|
-
t[0] = "0620209ed8505320c04c301a7d38ac1b93a80f76786c87f900f8467d871fbb6b";
|
|
3322
|
-
}
|
|
3323
|
-
let { text: n } = e, a, o;
|
|
3324
|
-
if (t[1] !== n) {
|
|
3188
|
+
let t = i(6), { text: n } = e, a, o;
|
|
3189
|
+
if (t[0] !== n) {
|
|
3325
3190
|
let e = r(n);
|
|
3326
|
-
a = Wr, o = e.map(Hr), t[
|
|
3327
|
-
} else a = t[
|
|
3191
|
+
a = Wr, o = e.map(Hr), t[0] = n, t[1] = a, t[2] = o;
|
|
3192
|
+
} else a = t[1], o = t[2];
|
|
3328
3193
|
let s;
|
|
3329
|
-
return t[
|
|
3194
|
+
return t[3] !== a || t[4] !== o ? (s = /* @__PURE__ */ x("span", {
|
|
3330
3195
|
onCopy: a,
|
|
3331
3196
|
children: o
|
|
3332
|
-
}), t[
|
|
3197
|
+
}), t[3] = a, t[4] = o, t[5] = s) : s = t[5], s;
|
|
3333
3198
|
}
|
|
3334
3199
|
function Hr(e) {
|
|
3335
3200
|
switch (e.kind) {
|
|
@@ -3374,27 +3239,22 @@ function Hr(e) {
|
|
|
3374
3239
|
}
|
|
3375
3240
|
}
|
|
3376
3241
|
function Ur(e) {
|
|
3377
|
-
let t = i(
|
|
3378
|
-
|
|
3379
|
-
for (let e = 0; e < 10; e += 1) t[e] = Symbol.for("react.memo_cache_sentinel");
|
|
3380
|
-
t[0] = "0620209ed8505320c04c301a7d38ac1b93a80f76786c87f900f8467d871fbb6b";
|
|
3381
|
-
}
|
|
3382
|
-
let { name: n, source: r, skillId: a, title: o } = e, s = a ? void 0 : n, c;
|
|
3383
|
-
t[1] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ x(v, {
|
|
3242
|
+
let t = i(9), { name: n, source: r, skillId: a, title: o } = e, s = a ? void 0 : n, c;
|
|
3243
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ x(v, {
|
|
3384
3244
|
"aria-hidden": "true",
|
|
3385
3245
|
className: "size-3.5 self-center"
|
|
3386
|
-
}), t[
|
|
3246
|
+
}), t[0] = c) : c = t[0];
|
|
3387
3247
|
let l;
|
|
3388
|
-
t[
|
|
3248
|
+
t[1] === n ? l = t[2] : (l = /* @__PURE__ */ x("span", { children: n }), t[1] = n, t[2] = l);
|
|
3389
3249
|
let u;
|
|
3390
|
-
return t[
|
|
3250
|
+
return t[3] !== a || t[4] !== r || t[5] !== s || t[6] !== l || t[7] !== o ? (u = /* @__PURE__ */ S("span", {
|
|
3391
3251
|
"data-skill-id": a,
|
|
3392
3252
|
"data-skill-name": s,
|
|
3393
3253
|
"data-persisted-source": r,
|
|
3394
3254
|
title: o,
|
|
3395
3255
|
className: "text-primary inline-flex items-baseline gap-1",
|
|
3396
3256
|
children: [c, l]
|
|
3397
|
-
}), t[
|
|
3257
|
+
}), t[3] = a, t[4] = r, t[5] = s, t[6] = l, t[7] = o, t[8] = u) : u = t[8], u;
|
|
3398
3258
|
}
|
|
3399
3259
|
function Wr(e) {
|
|
3400
3260
|
let t = Br(e.currentTarget, window.getSelection());
|