@burdenoff/microfe-headshotmarketing 2026.1029.3 → 2026.1029.5
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/generated/global-types.d.ts +6 -6
- package/dist/generated/global-types.d.ts.map +1 -1
- package/dist/generated/wspace-operations.d.ts +192 -0
- package/dist/generated/wspace-operations.d.ts.map +1 -1
- package/dist/generated/wspace-operations.js +351 -247
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.d.ts +91 -1
- package/dist/generated/wspace-types.d.ts.map +1 -1
- package/dist/generated/wspace-types.js.map +1 -1
- package/dist/headshotmarketing/components/StatusBadge.d.ts.map +1 -1
- package/dist/headshotmarketing/components/StatusBadge.js +5 -1
- package/dist/headshotmarketing/components/StatusBadge.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js +62 -57
- package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdPlatformSyncPanel.d.ts +10 -0
- package/dist/headshotmarketing/pages/ads/AdPlatformSyncPanel.d.ts.map +1 -0
- package/dist/headshotmarketing/pages/ads/AdPlatformSyncPanel.js +260 -0
- package/dist/headshotmarketing/pages/ads/AdPlatformSyncPanel.js.map +1 -0
- package/dist/headshotmarketing/pages/content/AIToolsPage.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/content/AIToolsPage.js +220 -267
- package/dist/headshotmarketing/pages/content/AIToolsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/seo/SeoToolsPage.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/seo/SeoToolsPage.js +150 -90
- package/dist/headshotmarketing/pages/seo/SeoToolsPage.js.map +1 -1
- package/dist/headshotmarketing/types/index.d.ts +9 -2
- package/dist/headshotmarketing/types/index.d.ts.map +1 -1
- package/dist/headshotmarketing/utils/aiToolOutput.d.ts +16 -0
- package/dist/headshotmarketing/utils/aiToolOutput.d.ts.map +1 -0
- package/dist/headshotmarketing/utils/aiToolOutput.js +62 -0
- package/dist/headshotmarketing/utils/aiToolOutput.js.map +1 -0
- package/dist/headshotmarketing/utils/seoMapper.d.ts +4 -0
- package/dist/headshotmarketing/utils/seoMapper.d.ts.map +1 -1
- package/dist/headshotmarketing/utils/seoMapper.js +38 -12
- package/dist/headshotmarketing/utils/seoMapper.js.map +1 -1
- package/package.json +1 -1
|
@@ -3,21 +3,22 @@ import { useHeadshotMarketing as t } from "../../context/HeadshotMarketingContex
|
|
|
3
3
|
import { cn as n, formatDate as r, formatNumber as i } from "../../utils/helpers.js";
|
|
4
4
|
import { HeadshotmarketingAiToolCategory as a, HeadshotmarketingContentItemType as o } from "../../../generated/wspace-types.js";
|
|
5
5
|
import { PageLayout as s } from "../../components/PageLayout.js";
|
|
6
|
-
import { EmptyState as
|
|
7
|
-
import { QueryStateBoundary as
|
|
6
|
+
import { EmptyState as c } from "../../components/EmptyState.js";
|
|
7
|
+
import { QueryStateBoundary as ee } from "../../components/QueryStateBoundary.js";
|
|
8
8
|
import "../../components/index.js";
|
|
9
|
-
import { useHeadshotmarketingBootstrap as
|
|
10
|
-
import { AIExecutionLedger as
|
|
11
|
-
import { ContentSubNav as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
9
|
+
import { useHeadshotmarketingBootstrap as te } from "../../hooks/useHeadshotmarketingBootstrap.js";
|
|
10
|
+
import { AIExecutionLedger as ne } from "./AIExecutionLedger.js";
|
|
11
|
+
import { ContentSubNav as re } from "./ContentSubNav.js";
|
|
12
|
+
import { toResultStrings as l } from "../../utils/aiToolOutput.js";
|
|
13
|
+
import { useEffect as ie, useMemo as u, useState as d } from "react";
|
|
14
|
+
import { Check as f, Clock as ae, Copy as oe, Cpu as se, FilePlus2 as p, GitBranch as m, Image as h, Languages as g, Loader2 as _, Mail as v, Megaphone as y, MessageSquare as b, Mic as ce, PenTool as x, ScanText as S, Search as C, Send as le, Sparkles as w, Video as T, Wand2 as ue, Zap as de } from "lucide-react";
|
|
14
15
|
import { useCopyToClipboard as fe } from "@burdenoff/fe-libs/shared/hooks";
|
|
15
|
-
import { gql as
|
|
16
|
+
import { gql as E } from "@apollo/client";
|
|
16
17
|
import { useMutation as pe } from "@apollo/client/react";
|
|
17
|
-
import { Fragment as
|
|
18
|
+
import { Fragment as D, jsx as O, jsxs as k } from "react/jsx-runtime";
|
|
18
19
|
import { GlassCard as me, PagePurpose as he, Select as ge, SelectContent as _e, SelectItem as ve, SelectTrigger as ye, SelectValue as be, Textarea as xe } from "@burdenoff/fe-libs/ui";
|
|
19
20
|
//#region src/headshotmarketing/pages/content/AIToolsPage.tsx
|
|
20
|
-
var Se =
|
|
21
|
+
var Se = E`
|
|
21
22
|
mutation HeadshotmarketingExecuteAITool(
|
|
22
23
|
$input: HeadshotmarketingExecuteAIToolInput!
|
|
23
24
|
) {
|
|
@@ -32,15 +33,15 @@ var Se = T`
|
|
|
32
33
|
createdAt
|
|
33
34
|
}
|
|
34
35
|
}
|
|
35
|
-
`,
|
|
36
|
-
[a.ContentGeneration]:
|
|
37
|
-
[a.Copywriting]:
|
|
38
|
-
[a.ImageGeneration]:
|
|
39
|
-
[a.SeoOptimization]:
|
|
40
|
-
[a.Summarization]:
|
|
41
|
-
[a.Translation]:
|
|
42
|
-
[a.VideoGeneration]:
|
|
43
|
-
[a.Other]:
|
|
36
|
+
`, A = {
|
|
37
|
+
[a.ContentGeneration]: x,
|
|
38
|
+
[a.Copywriting]: y,
|
|
39
|
+
[a.ImageGeneration]: h,
|
|
40
|
+
[a.SeoOptimization]: C,
|
|
41
|
+
[a.Summarization]: S,
|
|
42
|
+
[a.Translation]: g,
|
|
43
|
+
[a.VideoGeneration]: T,
|
|
44
|
+
[a.Other]: w
|
|
44
45
|
}, Ce = {
|
|
45
46
|
[a.ContentGeneration]: "Content",
|
|
46
47
|
[a.Copywriting]: "Copywriting",
|
|
@@ -53,9 +54,9 @@ var Se = T`
|
|
|
53
54
|
};
|
|
54
55
|
function we(e, t) {
|
|
55
56
|
let n = e.toLowerCase();
|
|
56
|
-
return n.includes("blog") ?
|
|
57
|
+
return n.includes("blog") ? x : n.includes("subject line") || n.includes("email") ? v : n.includes("caption") || n.includes("social") ? b : n.includes("ad copy") || n.includes("ad ") || n.includes("advert") ? y : n.includes("seo") || n.includes("meta") || n.includes("keyword") ? C : n.includes("alt") || n.includes("image") || n.includes("photo") ? h : n.includes("repurpose") || n.includes("remix") ? m : n.includes("voice") || n.includes("tone") ? ce : n.includes("translat") ? g : n.includes("summar") ? S : n.includes("video") || n.includes("script") ? T : A[t] ?? w;
|
|
57
58
|
}
|
|
58
|
-
function
|
|
59
|
+
function j(e, t) {
|
|
59
60
|
let n = e.toLowerCase();
|
|
60
61
|
if (n.includes("blog")) return o.BlogPost;
|
|
61
62
|
if (n.includes("caption") || n.includes("social")) return o.SocialPost;
|
|
@@ -69,79 +70,31 @@ function Te(e, t) {
|
|
|
69
70
|
default: return o.Other;
|
|
70
71
|
}
|
|
71
72
|
}
|
|
72
|
-
function
|
|
73
|
-
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
74
|
-
}
|
|
75
|
-
function j(e) {
|
|
76
|
-
if (typeof e == "string") return e;
|
|
77
|
-
if (A(e)) for (let t of [
|
|
78
|
-
"text",
|
|
79
|
-
"content",
|
|
80
|
-
"result",
|
|
81
|
-
"message"
|
|
82
|
-
]) {
|
|
83
|
-
let n = e[t];
|
|
84
|
-
if (typeof n == "string") return n;
|
|
85
|
-
}
|
|
86
|
-
return JSON.stringify(e);
|
|
87
|
-
}
|
|
88
|
-
function M(e) {
|
|
89
|
-
if (e == null) return [];
|
|
90
|
-
if (typeof e == "string") return e.trim() ? [e] : [];
|
|
91
|
-
if (Array.isArray(e)) return e.map(j);
|
|
92
|
-
if (A(e)) {
|
|
93
|
-
for (let t of [
|
|
94
|
-
"variations",
|
|
95
|
-
"results",
|
|
96
|
-
"choices",
|
|
97
|
-
"outputs",
|
|
98
|
-
"suggestions"
|
|
99
|
-
]) {
|
|
100
|
-
let n = e[t];
|
|
101
|
-
if (Array.isArray(n)) return n.map(j);
|
|
102
|
-
}
|
|
103
|
-
for (let t of [
|
|
104
|
-
"text",
|
|
105
|
-
"content",
|
|
106
|
-
"result",
|
|
107
|
-
"message",
|
|
108
|
-
"output",
|
|
109
|
-
"prompt",
|
|
110
|
-
"query",
|
|
111
|
-
"url"
|
|
112
|
-
]) {
|
|
113
|
-
let n = e[t];
|
|
114
|
-
if (typeof n == "string") return [n];
|
|
115
|
-
}
|
|
116
|
-
return [JSON.stringify(e, null, 2)];
|
|
117
|
-
}
|
|
118
|
-
return [String(e)];
|
|
119
|
-
}
|
|
120
|
-
function Ee(e, t) {
|
|
73
|
+
function Te(e, t) {
|
|
121
74
|
let n = e.split("\n").find((e) => e.trim())?.trim() ?? "";
|
|
122
75
|
return (n.length > 64 ? `${n.slice(0, 61)}…` : n) || `${t} draft`;
|
|
123
76
|
}
|
|
124
|
-
var
|
|
125
|
-
let { data:
|
|
77
|
+
var M = () => {
|
|
78
|
+
let { data: m, loading: h, error: g, refetch: v } = te(), { navigate: y, basePath: b } = t(), { copy: ce } = fe(), [x, { loading: S }] = pe(Se), [C] = e(), [T, E] = d(null), [A, M] = d(""), [Ee, De] = d(""), [N, P] = d([]), [F, I] = d(null), [Oe, L] = d(null), [R, ke] = d(null), [z, Ae] = d(null), [B, V] = d(/* @__PURE__ */ new Set()), [H, U] = d(null), W = u(() => m?.headshotmarketingAITools.items ?? [], [m]), G = u(() => m?.headshotmarketingAIToolExecutions.items ?? [], [m]), K = u(() => {
|
|
126
79
|
let e = /* @__PURE__ */ new Date();
|
|
127
80
|
return new Date(e.getFullYear(), e.getMonth(), 1).getTime();
|
|
128
|
-
}, []),
|
|
81
|
+
}, []), je = u(() => {
|
|
129
82
|
let e = /* @__PURE__ */ new Map();
|
|
130
|
-
for (let t of
|
|
83
|
+
for (let t of G) new Date(t.createdAt).getTime() >= K && e.set(t.toolId, (e.get(t.toolId) ?? 0) + 1);
|
|
131
84
|
return e;
|
|
132
|
-
}, [
|
|
85
|
+
}, [G, K]), Me = u(() => {
|
|
133
86
|
let e = 0;
|
|
134
|
-
for (let t of
|
|
87
|
+
for (let t of G) new Date(t.createdAt).getTime() >= K && (e += t.tokensUsed ?? 0);
|
|
135
88
|
return e;
|
|
136
|
-
}, [
|
|
89
|
+
}, [G, K]), Ne = u(() => G.filter((e) => new Date(e.createdAt).getTime() >= K).length, [G, K]), Pe = u(() => {
|
|
137
90
|
let e = /* @__PURE__ */ new Map();
|
|
138
|
-
for (let t of
|
|
91
|
+
for (let t of W) {
|
|
139
92
|
if (!t.model) continue;
|
|
140
93
|
let n = e.get(t.provider) ?? /* @__PURE__ */ new Set();
|
|
141
94
|
n.add(t.model), e.set(t.provider, n);
|
|
142
95
|
}
|
|
143
96
|
return e;
|
|
144
|
-
}, [
|
|
97
|
+
}, [W]), q = u(() => W.map((e) => ({
|
|
145
98
|
id: e.id,
|
|
146
99
|
name: e.name,
|
|
147
100
|
description: e.description ?? "",
|
|
@@ -151,117 +104,117 @@ var N = () => {
|
|
|
151
104
|
isAvailable: e.isEnabled,
|
|
152
105
|
icon: we(e.name, e.category),
|
|
153
106
|
inputType: e.category === a.SeoOptimization ? "url" : "text",
|
|
154
|
-
contentType:
|
|
155
|
-
monthlyUses:
|
|
156
|
-
})), [
|
|
157
|
-
|
|
158
|
-
!
|
|
159
|
-
}, [
|
|
160
|
-
let
|
|
161
|
-
if (!
|
|
162
|
-
let e = new Set(
|
|
163
|
-
return
|
|
164
|
-
}, [
|
|
165
|
-
|
|
166
|
-
},
|
|
167
|
-
if (!(!
|
|
168
|
-
|
|
107
|
+
contentType: j(e.name, e.category),
|
|
108
|
+
monthlyUses: je.get(e.id) ?? 0
|
|
109
|
+
})), [W, je]), Fe = u(() => new Map(q.map((e) => [e.id, e])), [q]), J = q.find((e) => e.id === T), Ie = q.filter((e) => e.isAvailable).length;
|
|
110
|
+
ie(() => {
|
|
111
|
+
!T && q.length > 0 && E((q.find((e) => e.isAvailable) ?? q[0]).id);
|
|
112
|
+
}, [T, q]);
|
|
113
|
+
let Y = u(() => {
|
|
114
|
+
if (!J) return [];
|
|
115
|
+
let e = new Set(Pe.get(J.provider) ?? []);
|
|
116
|
+
return J.model && e.add(J.model), Array.from(e);
|
|
117
|
+
}, [J, Pe]), X = Ee || J?.model || Y[0] || "", Le = (e) => {
|
|
118
|
+
E(e), P([]), I(null), L(null), U(null), M(""), De(""), V(/* @__PURE__ */ new Set());
|
|
119
|
+
}, Re = async () => {
|
|
120
|
+
if (!(!A.trim() || !J || !J.isAvailable)) {
|
|
121
|
+
L(null), U(null), V(/* @__PURE__ */ new Set());
|
|
169
122
|
try {
|
|
170
|
-
let e = (await
|
|
171
|
-
toolId:
|
|
172
|
-
input: { prompt:
|
|
173
|
-
metadata:
|
|
174
|
-
model:
|
|
175
|
-
provider:
|
|
176
|
-
} : { provider:
|
|
123
|
+
let e = (await x({ variables: { input: {
|
|
124
|
+
toolId: J.id,
|
|
125
|
+
input: { prompt: A.trim() },
|
|
126
|
+
metadata: X ? {
|
|
127
|
+
model: X,
|
|
128
|
+
provider: J.provider
|
|
129
|
+
} : { provider: J.provider }
|
|
177
130
|
} } })).data?.headshotmarketingExecuteAITool;
|
|
178
131
|
if (!e) throw Error("No response from the tool.");
|
|
179
|
-
e.status === "FAILED" ? (
|
|
132
|
+
e.status === "FAILED" ? (P([]), I(null), L(e.errorMessage ?? "The tool failed to generate a result. Please try again.")) : (P(l(e.output)), I({
|
|
180
133
|
tokensUsed: e.tokensUsed,
|
|
181
134
|
durationMs: e.durationMs
|
|
182
|
-
})), await
|
|
135
|
+
})), await v();
|
|
183
136
|
} catch (e) {
|
|
184
|
-
|
|
137
|
+
L(e instanceof Error ? e.message : "Generation failed.");
|
|
185
138
|
}
|
|
186
139
|
}
|
|
187
|
-
},
|
|
188
|
-
await ce(t),
|
|
189
|
-
},
|
|
140
|
+
}, Z = async (e, t) => {
|
|
141
|
+
await ce(t), ke(e), window.setTimeout(() => ke((t) => t === e ? null : t), 1500);
|
|
142
|
+
}, Q = async (e, t, n) => {
|
|
190
143
|
if (t.trim()) {
|
|
191
|
-
|
|
144
|
+
U(null), Ae(e);
|
|
192
145
|
try {
|
|
193
|
-
await
|
|
194
|
-
title:
|
|
146
|
+
await C({ variables: { input: {
|
|
147
|
+
title: Te(t, n?.name ?? "AI"),
|
|
195
148
|
body: t,
|
|
196
149
|
summary: t.replace(/\s+/g, " ").trim().slice(0, 180),
|
|
197
|
-
type: n ?
|
|
150
|
+
type: n ? j(n.name, n.category) : o.Other,
|
|
198
151
|
tags: ["ai-generated"],
|
|
199
152
|
metadata: {
|
|
200
153
|
source: "ai-tools",
|
|
201
154
|
toolId: n?.id ?? null,
|
|
202
155
|
provider: n?.provider ?? null,
|
|
203
|
-
model:
|
|
156
|
+
model: X || n?.model || null
|
|
204
157
|
}
|
|
205
|
-
} } }),
|
|
158
|
+
} } }), V((t) => new Set(t).add(e)), v();
|
|
206
159
|
} catch (e) {
|
|
207
|
-
|
|
160
|
+
U(e instanceof Error ? e.message : "Could not save draft.");
|
|
208
161
|
} finally {
|
|
209
|
-
|
|
162
|
+
Ae(null);
|
|
210
163
|
}
|
|
211
164
|
}
|
|
212
|
-
},
|
|
165
|
+
}, $ = N.join("\n\n"), ze = [
|
|
213
166
|
{
|
|
214
167
|
label: "Available tools",
|
|
215
|
-
value: String(
|
|
168
|
+
value: String(Ie),
|
|
216
169
|
icon: ue
|
|
217
170
|
},
|
|
218
171
|
{
|
|
219
172
|
label: "Generations this month",
|
|
220
|
-
value: i(
|
|
221
|
-
icon:
|
|
173
|
+
value: i(Ne),
|
|
174
|
+
icon: w
|
|
222
175
|
},
|
|
223
176
|
{
|
|
224
177
|
label: "Tokens this month",
|
|
225
|
-
value: i(
|
|
178
|
+
value: i(Me),
|
|
226
179
|
icon: de
|
|
227
180
|
}
|
|
228
181
|
];
|
|
229
|
-
return /* @__PURE__ */
|
|
182
|
+
return /* @__PURE__ */ k(s, {
|
|
230
183
|
title: "AI Tools",
|
|
231
184
|
description: "AI-powered marketing content and optimization tools",
|
|
232
185
|
children: [
|
|
233
|
-
/* @__PURE__ */
|
|
234
|
-
/* @__PURE__ */
|
|
186
|
+
/* @__PURE__ */ O(he, { children: "Let AI do the heavy lifting on content. Generate copy, headlines and ideas, rewrite or optimize what you have, and turn a rough brief into a polished draft in seconds — then save it straight to your content library to refine it in your brand voice." }),
|
|
187
|
+
/* @__PURE__ */ O(re, {
|
|
235
188
|
active: "ai-tools",
|
|
236
|
-
basePath:
|
|
237
|
-
navigate:
|
|
189
|
+
basePath: b,
|
|
190
|
+
navigate: y
|
|
238
191
|
}),
|
|
239
|
-
/* @__PURE__ */
|
|
240
|
-
loading:
|
|
241
|
-
error:
|
|
242
|
-
onRetry: () => void
|
|
243
|
-
hasData: !!
|
|
244
|
-
children:
|
|
192
|
+
/* @__PURE__ */ O(ee, {
|
|
193
|
+
loading: h,
|
|
194
|
+
error: g,
|
|
195
|
+
onRetry: () => void v(),
|
|
196
|
+
hasData: !!m,
|
|
197
|
+
children: q.length === 0 ? /* @__PURE__ */ O(c, {
|
|
245
198
|
illustration: "empty-generic",
|
|
246
199
|
title: "No AI tools available",
|
|
247
200
|
description: "AI tools will appear here once they're enabled for your workspace."
|
|
248
|
-
}) : /* @__PURE__ */
|
|
249
|
-
/* @__PURE__ */
|
|
201
|
+
}) : /* @__PURE__ */ k(D, { children: [
|
|
202
|
+
/* @__PURE__ */ O("div", {
|
|
250
203
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-3",
|
|
251
204
|
children: ze.map((e) => {
|
|
252
205
|
let t = e.icon;
|
|
253
|
-
return /* @__PURE__ */
|
|
206
|
+
return /* @__PURE__ */ k(me, {
|
|
254
207
|
treatment: "metric",
|
|
255
208
|
className: "flex items-center gap-3 p-4",
|
|
256
|
-
children: [/* @__PURE__ */
|
|
209
|
+
children: [/* @__PURE__ */ O("span", {
|
|
257
210
|
className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-action-primary-bg/10 text-primary",
|
|
258
|
-
children: /* @__PURE__ */
|
|
259
|
-
}), /* @__PURE__ */
|
|
211
|
+
children: /* @__PURE__ */ O(t, { className: "h-5 w-5" })
|
|
212
|
+
}), /* @__PURE__ */ k("span", {
|
|
260
213
|
className: "min-w-0",
|
|
261
|
-
children: [/* @__PURE__ */
|
|
214
|
+
children: [/* @__PURE__ */ O("span", {
|
|
262
215
|
className: "block text-xl font-bold leading-none text-text-primary",
|
|
263
216
|
children: e.value
|
|
264
|
-
}), /* @__PURE__ */
|
|
217
|
+
}), /* @__PURE__ */ O("span", {
|
|
265
218
|
className: "mt-1 block truncate text-xs text-text-secondary",
|
|
266
219
|
children: e.label
|
|
267
220
|
})]
|
|
@@ -269,43 +222,43 @@ var N = () => {
|
|
|
269
222
|
}, e.label);
|
|
270
223
|
})
|
|
271
224
|
}),
|
|
272
|
-
/* @__PURE__ */
|
|
225
|
+
/* @__PURE__ */ k("div", {
|
|
273
226
|
className: "grid grid-cols-1 gap-6 lg:grid-cols-[1fr_minmax(340px,380px)] xl:grid-cols-[1fr_400px]",
|
|
274
|
-
children: [/* @__PURE__ */
|
|
227
|
+
children: [/* @__PURE__ */ k("div", {
|
|
275
228
|
className: "min-w-0 space-y-6",
|
|
276
|
-
children: [/* @__PURE__ */
|
|
229
|
+
children: [/* @__PURE__ */ k("section", { children: [/* @__PURE__ */ O("h3", {
|
|
277
230
|
className: "mb-3 text-sm font-semibold text-text-primary",
|
|
278
231
|
children: "Choose a tool"
|
|
279
|
-
}), /* @__PURE__ */
|
|
232
|
+
}), /* @__PURE__ */ O("div", {
|
|
280
233
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 xl:grid-cols-3",
|
|
281
|
-
children:
|
|
282
|
-
let t = e.icon, r =
|
|
283
|
-
return /* @__PURE__ */
|
|
234
|
+
children: q.map((e) => {
|
|
235
|
+
let t = e.icon, r = T === e.id;
|
|
236
|
+
return /* @__PURE__ */ k("button", {
|
|
284
237
|
type: "button",
|
|
285
|
-
onClick: () =>
|
|
238
|
+
onClick: () => Le(e.id),
|
|
286
239
|
disabled: !e.isAvailable,
|
|
287
240
|
"aria-pressed": r,
|
|
288
241
|
className: n("group relative flex min-h-[44px] flex-col items-start rounded-card border p-4 text-left transition-[box-shadow,border-color,background-color] duration-200", r ? "border-primary bg-accent-wash shadow-elevation-2" : e.isAvailable ? "border-border-subtle bg-bg-surface hover:border-border-strong hover:shadow-elevation-2" : "cursor-not-allowed border-border-subtle bg-bg-sunken opacity-60"),
|
|
289
242
|
children: [
|
|
290
|
-
/* @__PURE__ */
|
|
291
|
-
/* @__PURE__ */
|
|
243
|
+
/* @__PURE__ */ O(w, { className: n("absolute right-3 top-3 h-4 w-4 transition-opacity", r ? "text-primary opacity-90" : "text-primary opacity-30 group-hover:opacity-60") }),
|
|
244
|
+
/* @__PURE__ */ O("span", {
|
|
292
245
|
className: n("flex h-10 w-10 items-center justify-center rounded-lg transition-colors", r ? "bg-action-primary-bg text-action-primary-text" : "bg-action-primary-bg/10 text-primary"),
|
|
293
|
-
children: /* @__PURE__ */
|
|
246
|
+
children: /* @__PURE__ */ O(t, { className: "h-5 w-5" })
|
|
294
247
|
}),
|
|
295
|
-
/* @__PURE__ */
|
|
248
|
+
/* @__PURE__ */ O("h4", {
|
|
296
249
|
className: "mt-3 pr-5 text-sm font-semibold text-text-primary",
|
|
297
250
|
children: e.name
|
|
298
251
|
}),
|
|
299
|
-
e.description && /* @__PURE__ */
|
|
252
|
+
e.description && /* @__PURE__ */ O("p", {
|
|
300
253
|
className: "mt-1 line-clamp-2 text-xs text-text-secondary",
|
|
301
254
|
children: e.description
|
|
302
255
|
}),
|
|
303
|
-
/* @__PURE__ */
|
|
256
|
+
/* @__PURE__ */ k("div", {
|
|
304
257
|
className: "mt-3 flex w-full items-center justify-between gap-2 text-xs",
|
|
305
|
-
children: [/* @__PURE__ */
|
|
258
|
+
children: [/* @__PURE__ */ O("span", {
|
|
306
259
|
className: "rounded-full bg-bg-sunken px-2 py-0.5 font-medium text-text-secondary",
|
|
307
260
|
children: Ce[e.category]
|
|
308
|
-
}), e.isAvailable ? /* @__PURE__ */
|
|
261
|
+
}), e.isAvailable ? /* @__PURE__ */ k("span", {
|
|
309
262
|
className: "text-text-secondary",
|
|
310
263
|
children: [
|
|
311
264
|
e.monthlyUses,
|
|
@@ -313,7 +266,7 @@ var N = () => {
|
|
|
313
266
|
e.monthlyUses === 1 ? "use" : "uses",
|
|
314
267
|
" this month"
|
|
315
268
|
]
|
|
316
|
-
}) : /* @__PURE__ */
|
|
269
|
+
}) : /* @__PURE__ */ O("span", {
|
|
317
270
|
className: "font-medium text-status-warning-text",
|
|
318
271
|
children: "Coming soon"
|
|
319
272
|
})]
|
|
@@ -321,208 +274,208 @@ var N = () => {
|
|
|
321
274
|
]
|
|
322
275
|
}, e.id);
|
|
323
276
|
})
|
|
324
|
-
})] }), /* @__PURE__ */
|
|
277
|
+
})] }), /* @__PURE__ */ k("section", { children: [/* @__PURE__ */ O("h3", {
|
|
325
278
|
className: "mb-3 text-sm font-semibold text-text-primary",
|
|
326
279
|
children: "Recent generations"
|
|
327
|
-
}),
|
|
280
|
+
}), G.length === 0 ? /* @__PURE__ */ O(c, {
|
|
328
281
|
illustration: "empty-generic",
|
|
329
282
|
title: "No generations yet",
|
|
330
283
|
description: "Run a tool and your recent AI generations will show up here."
|
|
331
|
-
}) : /* @__PURE__ */
|
|
284
|
+
}) : /* @__PURE__ */ O("div", {
|
|
332
285
|
className: "space-y-3",
|
|
333
|
-
children:
|
|
334
|
-
let t =
|
|
335
|
-
return /* @__PURE__ */
|
|
286
|
+
children: G.map((e) => {
|
|
287
|
+
let t = Fe.get(e.toolId), n = l(e.input)[0] ?? "—", i = l(e.output)[0] ?? "—", a = t?.icon ?? w, o = `gen-${e.id}`, s = B.has(o);
|
|
288
|
+
return /* @__PURE__ */ k("div", {
|
|
336
289
|
className: "rounded-card border border-border-seam bg-gloss-card p-4 shadow-pop",
|
|
337
290
|
children: [
|
|
338
|
-
/* @__PURE__ */
|
|
291
|
+
/* @__PURE__ */ k("div", {
|
|
339
292
|
className: "mb-2 flex items-center justify-between gap-2",
|
|
340
|
-
children: [/* @__PURE__ */
|
|
293
|
+
children: [/* @__PURE__ */ k("div", {
|
|
341
294
|
className: "flex min-w-0 items-center gap-2",
|
|
342
|
-
children: [/* @__PURE__ */
|
|
295
|
+
children: [/* @__PURE__ */ O(a, { className: "h-3.5 w-3.5 shrink-0 text-primary" }), /* @__PURE__ */ O("span", {
|
|
343
296
|
className: "truncate text-xs font-medium text-text-primary",
|
|
344
297
|
children: t?.name ?? "AI Tool"
|
|
345
298
|
})]
|
|
346
|
-
}), /* @__PURE__ */
|
|
299
|
+
}), /* @__PURE__ */ k("div", {
|
|
347
300
|
className: "flex shrink-0 items-center gap-1 text-xs text-text-secondary",
|
|
348
|
-
children: [/* @__PURE__ */
|
|
301
|
+
children: [/* @__PURE__ */ O(ae, { className: "h-3 w-3" }), /* @__PURE__ */ O("span", { children: r(e.createdAt, "relative") })]
|
|
349
302
|
})]
|
|
350
303
|
}),
|
|
351
|
-
/* @__PURE__ */
|
|
304
|
+
/* @__PURE__ */ k("p", {
|
|
352
305
|
className: "line-clamp-1 text-xs text-text-secondary",
|
|
353
306
|
children: ["Prompt: ", n]
|
|
354
307
|
}),
|
|
355
|
-
/* @__PURE__ */
|
|
308
|
+
/* @__PURE__ */ O("p", {
|
|
356
309
|
className: "mt-1 line-clamp-3 whitespace-pre-wrap text-sm text-text-primary",
|
|
357
310
|
children: i
|
|
358
311
|
}),
|
|
359
|
-
i !== "—" && /* @__PURE__ */
|
|
312
|
+
i !== "—" && /* @__PURE__ */ k("div", {
|
|
360
313
|
className: "mt-2 flex items-center gap-3",
|
|
361
|
-
children: [/* @__PURE__ */
|
|
314
|
+
children: [/* @__PURE__ */ O("button", {
|
|
362
315
|
type: "button",
|
|
363
|
-
onClick: () => void
|
|
316
|
+
onClick: () => void Z(o, i),
|
|
364
317
|
className: "inline-flex items-center gap-1 text-xs font-medium text-primary hover:underline",
|
|
365
|
-
children:
|
|
366
|
-
}), /* @__PURE__ */
|
|
318
|
+
children: R === o ? /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(f, { className: "h-3 w-3" }), " Copied"] }) : /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(oe, { className: "h-3 w-3" }), " Copy"] })
|
|
319
|
+
}), /* @__PURE__ */ O("button", {
|
|
367
320
|
type: "button",
|
|
368
|
-
onClick: () => void
|
|
369
|
-
disabled:
|
|
321
|
+
onClick: () => void Q(o, i, t),
|
|
322
|
+
disabled: z === o || s,
|
|
370
323
|
className: "inline-flex items-center gap-1 text-xs font-medium text-primary hover:underline disabled:opacity-60",
|
|
371
|
-
children:
|
|
372
|
-
/* @__PURE__ */
|
|
324
|
+
children: z === o ? /* @__PURE__ */ k(D, { children: [
|
|
325
|
+
/* @__PURE__ */ O(_, { className: "h-3 w-3 animate-spin" }),
|
|
373
326
|
" ",
|
|
374
327
|
"Saving"
|
|
375
|
-
] }) : s ? /* @__PURE__ */
|
|
328
|
+
] }) : s ? /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(f, { className: "h-3 w-3" }), " Saved"] }) : /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(p, { className: "h-3 w-3" }), " Save as draft"] })
|
|
376
329
|
})]
|
|
377
330
|
})
|
|
378
331
|
]
|
|
379
332
|
}, e.id);
|
|
380
333
|
})
|
|
381
334
|
})] })]
|
|
382
|
-
}), /* @__PURE__ */
|
|
335
|
+
}), /* @__PURE__ */ O("div", {
|
|
383
336
|
className: "lg:sticky lg:top-4 lg:self-start",
|
|
384
|
-
children: /* @__PURE__ */
|
|
337
|
+
children: /* @__PURE__ */ k(me, {
|
|
385
338
|
treatment: "glass",
|
|
386
339
|
glow: !0,
|
|
387
340
|
className: "p-5",
|
|
388
341
|
children: [
|
|
389
|
-
/* @__PURE__ */
|
|
342
|
+
/* @__PURE__ */ k("div", {
|
|
390
343
|
className: "mb-4 flex items-center gap-2",
|
|
391
|
-
children: [/* @__PURE__ */
|
|
344
|
+
children: [/* @__PURE__ */ O("span", {
|
|
392
345
|
className: "flex h-8 w-8 items-center justify-center rounded-lg bg-action-primary-bg/10 text-primary",
|
|
393
|
-
children: /* @__PURE__ */
|
|
394
|
-
}), /* @__PURE__ */
|
|
346
|
+
children: /* @__PURE__ */ O(ue, { className: "h-4 w-4" })
|
|
347
|
+
}), /* @__PURE__ */ k("div", {
|
|
395
348
|
className: "min-w-0",
|
|
396
|
-
children: [/* @__PURE__ */
|
|
349
|
+
children: [/* @__PURE__ */ O("h3", {
|
|
397
350
|
className: "truncate text-sm font-semibold text-text-primary",
|
|
398
|
-
children:
|
|
399
|
-
}),
|
|
351
|
+
children: J ? J.name : "AI Console"
|
|
352
|
+
}), J && /* @__PURE__ */ O("p", {
|
|
400
353
|
className: "truncate text-xs text-text-secondary",
|
|
401
|
-
children:
|
|
354
|
+
children: J.provider
|
|
402
355
|
})]
|
|
403
356
|
})]
|
|
404
357
|
}),
|
|
405
|
-
/* @__PURE__ */
|
|
358
|
+
/* @__PURE__ */ O("label", {
|
|
406
359
|
className: "mb-1.5 block text-xs font-medium text-text-secondary",
|
|
407
|
-
children:
|
|
360
|
+
children: J?.inputType === "url" ? "Page URL" : "Your prompt"
|
|
408
361
|
}),
|
|
409
|
-
/* @__PURE__ */
|
|
410
|
-
value:
|
|
411
|
-
onChange: (e) =>
|
|
412
|
-
disabled: !
|
|
413
|
-
placeholder:
|
|
362
|
+
/* @__PURE__ */ O(xe, {
|
|
363
|
+
value: A,
|
|
364
|
+
onChange: (e) => M(e.target.value),
|
|
365
|
+
disabled: !J?.isAvailable,
|
|
366
|
+
placeholder: J?.inputType === "url" ? "https://your-website.com/page" : "Describe what you want to generate… (Enter to generate, Shift+Enter for a new line)",
|
|
414
367
|
rows: 4,
|
|
415
368
|
className: "min-h-[112px] resize-y",
|
|
416
369
|
onKeyDown: (e) => {
|
|
417
|
-
e.key === "Enter" && !e.shiftKey && (e.preventDefault(),
|
|
370
|
+
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Re());
|
|
418
371
|
}
|
|
419
372
|
}),
|
|
420
|
-
/* @__PURE__ */
|
|
373
|
+
/* @__PURE__ */ k("div", {
|
|
421
374
|
className: "mt-3 flex flex-col gap-2 sm:flex-row",
|
|
422
|
-
children: [
|
|
423
|
-
value:
|
|
424
|
-
onValueChange:
|
|
425
|
-
disabled: !
|
|
426
|
-
children: [/* @__PURE__ */
|
|
375
|
+
children: [Y.length > 0 ? /* @__PURE__ */ k(ge, {
|
|
376
|
+
value: X,
|
|
377
|
+
onValueChange: De,
|
|
378
|
+
disabled: !J?.isAvailable,
|
|
379
|
+
children: [/* @__PURE__ */ O(ye, {
|
|
427
380
|
"aria-label": "Model",
|
|
428
381
|
className: "h-11 flex-1",
|
|
429
|
-
children: /* @__PURE__ */
|
|
382
|
+
children: /* @__PURE__ */ k("span", {
|
|
430
383
|
className: "flex items-center gap-2 truncate",
|
|
431
|
-
children: [/* @__PURE__ */
|
|
384
|
+
children: [/* @__PURE__ */ O(se, { className: "h-4 w-4 shrink-0 text-text-muted" }), /* @__PURE__ */ O(be, { placeholder: "Model" })]
|
|
432
385
|
})
|
|
433
|
-
}), /* @__PURE__ */
|
|
386
|
+
}), /* @__PURE__ */ O(_e, { children: Y.map((e) => /* @__PURE__ */ O(ve, {
|
|
434
387
|
value: e,
|
|
435
388
|
children: e
|
|
436
389
|
}, e)) })]
|
|
437
|
-
}) : /* @__PURE__ */
|
|
390
|
+
}) : /* @__PURE__ */ k("div", {
|
|
438
391
|
className: "flex h-11 flex-1 items-center gap-2 rounded-input border border-border-default bg-bg-surface px-3 text-sm text-text-secondary",
|
|
439
|
-
children: [/* @__PURE__ */
|
|
392
|
+
children: [/* @__PURE__ */ O(se, { className: "h-4 w-4 text-text-muted" }), /* @__PURE__ */ O("span", {
|
|
440
393
|
className: "truncate",
|
|
441
|
-
children:
|
|
394
|
+
children: J?.provider ?? "Default model"
|
|
442
395
|
})]
|
|
443
|
-
}), /* @__PURE__ */
|
|
396
|
+
}), /* @__PURE__ */ O("button", {
|
|
444
397
|
type: "button",
|
|
445
|
-
onClick: () => void
|
|
446
|
-
disabled:
|
|
447
|
-
className: n("inline-flex min-h-[44px] items-center justify-center gap-2 rounded-md px-5 text-sm font-semibold transition-colors sm:min-w-[132px]",
|
|
448
|
-
children:
|
|
398
|
+
onClick: () => void Re(),
|
|
399
|
+
disabled: S || !A.trim() || !J?.isAvailable,
|
|
400
|
+
className: n("inline-flex min-h-[44px] items-center justify-center gap-2 rounded-md px-5 text-sm font-semibold transition-colors sm:min-w-[132px]", S || !A.trim() || !J?.isAvailable ? "cursor-not-allowed bg-bg-sunken text-text-secondary" : "bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90"),
|
|
401
|
+
children: S ? /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(_, { className: "h-4 w-4 animate-spin" }), "Generating…"] }) : /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(le, { className: "h-4 w-4" }), "Generate"] })
|
|
449
402
|
})]
|
|
450
403
|
}),
|
|
451
|
-
|
|
404
|
+
Oe && /* @__PURE__ */ O("div", {
|
|
452
405
|
role: "alert",
|
|
453
406
|
className: "mt-3 rounded-md border border-status-error-border/30 bg-status-error-bg/10 px-3 py-2 text-sm text-status-error-text",
|
|
454
|
-
children:
|
|
407
|
+
children: Oe
|
|
455
408
|
}),
|
|
456
|
-
/* @__PURE__ */
|
|
409
|
+
/* @__PURE__ */ k("div", {
|
|
457
410
|
className: "mt-4 overflow-hidden rounded-card border border-border-seam bg-bg-surface",
|
|
458
411
|
children: [
|
|
459
|
-
/* @__PURE__ */
|
|
412
|
+
/* @__PURE__ */ k("div", {
|
|
460
413
|
className: "flex items-center justify-between border-b border-border-subtle px-3 py-2",
|
|
461
|
-
children: [/* @__PURE__ */
|
|
414
|
+
children: [/* @__PURE__ */ O("span", {
|
|
462
415
|
className: "text-xs font-semibold uppercase tracking-wide text-text-secondary",
|
|
463
416
|
children: "Generated"
|
|
464
|
-
}), /* @__PURE__ */
|
|
417
|
+
}), /* @__PURE__ */ k("div", {
|
|
465
418
|
className: "flex items-center gap-1",
|
|
466
|
-
children: [/* @__PURE__ */
|
|
419
|
+
children: [/* @__PURE__ */ O("button", {
|
|
467
420
|
type: "button",
|
|
468
|
-
onClick: () => void
|
|
469
|
-
disabled:
|
|
421
|
+
onClick: () => void Z("out-all", $),
|
|
422
|
+
disabled: N.length === 0,
|
|
470
423
|
className: "inline-flex min-h-[32px] items-center gap-1 rounded px-2 text-xs font-medium text-primary transition-colors hover:bg-bg-sunken disabled:opacity-40",
|
|
471
|
-
children:
|
|
472
|
-
}), /* @__PURE__ */
|
|
424
|
+
children: R === "out-all" ? /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(f, { className: "h-3.5 w-3.5" }), " Copied"] }) : /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(oe, { className: "h-3.5 w-3.5" }), " Copy"] })
|
|
425
|
+
}), /* @__PURE__ */ O("button", {
|
|
473
426
|
type: "button",
|
|
474
|
-
onClick: () => void
|
|
475
|
-
disabled:
|
|
427
|
+
onClick: () => void Q("out-all", $, J),
|
|
428
|
+
disabled: N.length === 0 || z === "out-all" || B.has("out-all"),
|
|
476
429
|
className: "inline-flex min-h-[32px] items-center gap-1 rounded px-2 text-xs font-medium text-primary transition-colors hover:bg-bg-sunken disabled:opacity-40",
|
|
477
|
-
children:
|
|
478
|
-
/* @__PURE__ */
|
|
430
|
+
children: z === "out-all" ? /* @__PURE__ */ k(D, { children: [
|
|
431
|
+
/* @__PURE__ */ O(_, { className: "h-3.5 w-3.5 animate-spin" }),
|
|
479
432
|
" ",
|
|
480
433
|
"Saving"
|
|
481
|
-
] }) :
|
|
434
|
+
] }) : B.has("out-all") ? /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(f, { className: "h-3.5 w-3.5" }), " Saved"] }) : /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(p, { className: "h-3.5 w-3.5" }), " Insert"] })
|
|
482
435
|
})]
|
|
483
436
|
})]
|
|
484
437
|
}),
|
|
485
|
-
/* @__PURE__ */
|
|
438
|
+
/* @__PURE__ */ O("div", {
|
|
486
439
|
className: "max-h-[340px] min-h-[148px] overflow-y-auto p-3",
|
|
487
|
-
children:
|
|
440
|
+
children: S ? /* @__PURE__ */ k("div", {
|
|
488
441
|
className: "flex h-[124px] flex-col items-center justify-center gap-2 text-text-secondary",
|
|
489
|
-
children: [/* @__PURE__ */
|
|
442
|
+
children: [/* @__PURE__ */ O(_, { className: "h-5 w-5 animate-spin" }), /* @__PURE__ */ O("span", {
|
|
490
443
|
className: "text-xs",
|
|
491
444
|
children: "Generating your content…"
|
|
492
445
|
})]
|
|
493
|
-
}) :
|
|
446
|
+
}) : N.length === 0 ? /* @__PURE__ */ k("div", {
|
|
494
447
|
className: "flex h-[124px] flex-col items-center justify-center gap-2 text-center text-text-secondary",
|
|
495
|
-
children: [/* @__PURE__ */
|
|
448
|
+
children: [/* @__PURE__ */ O(w, { className: "h-5 w-5 opacity-60" }), /* @__PURE__ */ O("span", {
|
|
496
449
|
className: "text-xs",
|
|
497
450
|
children: "Your generated content will appear here."
|
|
498
451
|
})]
|
|
499
|
-
}) : /* @__PURE__ */
|
|
452
|
+
}) : /* @__PURE__ */ O("div", {
|
|
500
453
|
className: "space-y-3",
|
|
501
|
-
children:
|
|
454
|
+
children: N.map((e, t) => {
|
|
502
455
|
let r = `out-${t}`;
|
|
503
|
-
return /* @__PURE__ */
|
|
504
|
-
className: n(
|
|
505
|
-
children: [
|
|
456
|
+
return /* @__PURE__ */ k("div", {
|
|
457
|
+
className: n(N.length > 1 && "rounded-md border border-border-subtle bg-bg-sunken p-3"),
|
|
458
|
+
children: [N.length > 1 && /* @__PURE__ */ k("div", {
|
|
506
459
|
className: "mb-1.5 flex items-center justify-between",
|
|
507
|
-
children: [/* @__PURE__ */
|
|
460
|
+
children: [/* @__PURE__ */ k("span", {
|
|
508
461
|
className: "text-xs font-medium text-text-secondary",
|
|
509
462
|
children: ["Variation ", t + 1]
|
|
510
|
-
}), /* @__PURE__ */
|
|
463
|
+
}), /* @__PURE__ */ k("div", {
|
|
511
464
|
className: "flex items-center gap-2",
|
|
512
|
-
children: [/* @__PURE__ */
|
|
465
|
+
children: [/* @__PURE__ */ O("button", {
|
|
513
466
|
type: "button",
|
|
514
|
-
onClick: () => void
|
|
467
|
+
onClick: () => void Z(r, e),
|
|
515
468
|
className: "text-xs font-medium text-primary hover:underline",
|
|
516
|
-
children:
|
|
517
|
-
}), /* @__PURE__ */
|
|
469
|
+
children: R === r ? "Copied" : "Copy"
|
|
470
|
+
}), /* @__PURE__ */ O("button", {
|
|
518
471
|
type: "button",
|
|
519
|
-
onClick: () => void
|
|
520
|
-
disabled:
|
|
472
|
+
onClick: () => void Q(r, e, J),
|
|
473
|
+
disabled: z === r || B.has(r),
|
|
521
474
|
className: "text-xs font-medium text-primary hover:underline disabled:opacity-60",
|
|
522
|
-
children:
|
|
475
|
+
children: z === r ? "Saving" : B.has(r) ? "Saved" : "Insert"
|
|
523
476
|
})]
|
|
524
477
|
})]
|
|
525
|
-
}), /* @__PURE__ */
|
|
478
|
+
}), /* @__PURE__ */ O("p", {
|
|
526
479
|
className: "whitespace-pre-wrap text-sm text-text-primary",
|
|
527
480
|
children: e
|
|
528
481
|
})]
|
|
@@ -530,45 +483,45 @@ var N = () => {
|
|
|
530
483
|
})
|
|
531
484
|
})
|
|
532
485
|
}),
|
|
533
|
-
(
|
|
486
|
+
(F || H) && /* @__PURE__ */ k("div", {
|
|
534
487
|
className: "flex items-center justify-between gap-2 border-t border-border-subtle px-3 py-2 text-xs",
|
|
535
|
-
children: [
|
|
488
|
+
children: [F ? /* @__PURE__ */ k("span", {
|
|
536
489
|
className: "flex items-center gap-3 text-text-secondary",
|
|
537
|
-
children: [
|
|
490
|
+
children: [F.durationMs != null && /* @__PURE__ */ k("span", {
|
|
538
491
|
className: "flex items-center gap-1",
|
|
539
492
|
children: [
|
|
540
|
-
/* @__PURE__ */
|
|
541
|
-
(
|
|
493
|
+
/* @__PURE__ */ O(ae, { className: "h-3 w-3" }),
|
|
494
|
+
(F.durationMs / 1e3).toFixed(1),
|
|
542
495
|
"s"
|
|
543
496
|
]
|
|
544
|
-
}),
|
|
497
|
+
}), F.tokensUsed != null && /* @__PURE__ */ k("span", {
|
|
545
498
|
className: "flex items-center gap-1",
|
|
546
499
|
children: [
|
|
547
|
-
/* @__PURE__ */
|
|
548
|
-
i(
|
|
500
|
+
/* @__PURE__ */ O(de, { className: "h-3 w-3" }),
|
|
501
|
+
i(F.tokensUsed),
|
|
549
502
|
" tokens"
|
|
550
503
|
]
|
|
551
504
|
})]
|
|
552
|
-
}) : /* @__PURE__ */
|
|
505
|
+
}) : /* @__PURE__ */ O("span", {}), H && /* @__PURE__ */ O("span", {
|
|
553
506
|
className: "text-status-error-text",
|
|
554
|
-
children:
|
|
507
|
+
children: H
|
|
555
508
|
})]
|
|
556
509
|
})
|
|
557
510
|
]
|
|
558
511
|
}),
|
|
559
|
-
|
|
512
|
+
B.size > 0 && /* @__PURE__ */ k("button", {
|
|
560
513
|
type: "button",
|
|
561
|
-
onClick: () =>
|
|
514
|
+
onClick: () => y(b + "/content"),
|
|
562
515
|
className: "mt-3 inline-flex items-center gap-1 text-xs font-medium text-primary hover:underline",
|
|
563
|
-
children: [/* @__PURE__ */
|
|
516
|
+
children: [/* @__PURE__ */ O(p, { className: "h-3.5 w-3.5" }), "View saved drafts in Content"]
|
|
564
517
|
})
|
|
565
518
|
]
|
|
566
519
|
})
|
|
567
520
|
})]
|
|
568
521
|
}),
|
|
569
|
-
/* @__PURE__ */
|
|
570
|
-
executions:
|
|
571
|
-
tools:
|
|
522
|
+
/* @__PURE__ */ O(ne, {
|
|
523
|
+
executions: G,
|
|
524
|
+
tools: W
|
|
572
525
|
})
|
|
573
526
|
] })
|
|
574
527
|
})
|
|
@@ -576,6 +529,6 @@ var N = () => {
|
|
|
576
529
|
});
|
|
577
530
|
};
|
|
578
531
|
//#endregion
|
|
579
|
-
export {
|
|
532
|
+
export { M as AIToolsPage };
|
|
580
533
|
|
|
581
534
|
//# sourceMappingURL=AIToolsPage.js.map
|