@burdenoff/microfe-headshotmarketing 2026.1029.4 → 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.
Files changed (27) hide show
  1. package/dist/generated/global-types.d.ts +6 -6
  2. package/dist/generated/global-types.d.ts.map +1 -1
  3. package/dist/generated/wspace-operations.d.ts +186 -0
  4. package/dist/generated/wspace-operations.d.ts.map +1 -1
  5. package/dist/generated/wspace-operations.js +345 -245
  6. package/dist/generated/wspace-operations.js.map +1 -1
  7. package/dist/generated/wspace-types.d.ts +91 -1
  8. package/dist/generated/wspace-types.d.ts.map +1 -1
  9. package/dist/generated/wspace-types.js.map +1 -1
  10. package/dist/headshotmarketing/components/StatusBadge.d.ts.map +1 -1
  11. package/dist/headshotmarketing/components/StatusBadge.js +5 -1
  12. package/dist/headshotmarketing/components/StatusBadge.js.map +1 -1
  13. package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.d.ts.map +1 -1
  14. package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js +62 -57
  15. package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js.map +1 -1
  16. package/dist/headshotmarketing/pages/ads/AdPlatformSyncPanel.d.ts +10 -0
  17. package/dist/headshotmarketing/pages/ads/AdPlatformSyncPanel.d.ts.map +1 -0
  18. package/dist/headshotmarketing/pages/ads/AdPlatformSyncPanel.js +260 -0
  19. package/dist/headshotmarketing/pages/ads/AdPlatformSyncPanel.js.map +1 -0
  20. package/dist/headshotmarketing/pages/content/AIToolsPage.d.ts.map +1 -1
  21. package/dist/headshotmarketing/pages/content/AIToolsPage.js +220 -267
  22. package/dist/headshotmarketing/pages/content/AIToolsPage.js.map +1 -1
  23. package/dist/headshotmarketing/utils/aiToolOutput.d.ts +16 -0
  24. package/dist/headshotmarketing/utils/aiToolOutput.d.ts.map +1 -0
  25. package/dist/headshotmarketing/utils/aiToolOutput.js +62 -0
  26. package/dist/headshotmarketing/utils/aiToolOutput.js.map +1 -0
  27. 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 ee } from "../../components/EmptyState.js";
7
- import { QueryStateBoundary as te } from "../../components/QueryStateBoundary.js";
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 ne } from "../../hooks/useHeadshotmarketingBootstrap.js";
10
- import { AIExecutionLedger as re } from "./AIExecutionLedger.js";
11
- import { ContentSubNav as ie } from "./ContentSubNav.js";
12
- import { useEffect as ae, useMemo as c, useState as l } from "react";
13
- import { Check as u, Clock as d, Copy as oe, Cpu as se, FilePlus2 as f, GitBranch as p, Image as m, Languages as h, Loader2 as g, Mail as _, Megaphone as v, MessageSquare as y, Mic as ce, PenTool as b, ScanText as x, Search as S, Send as le, Sparkles as C, Video as w, Wand2 as ue, Zap as de } from "lucide-react";
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 T } from "@apollo/client";
16
+ import { gql as E } from "@apollo/client";
16
17
  import { useMutation as pe } from "@apollo/client/react";
17
- import { Fragment as E, jsx as D, jsxs as O } from "react/jsx-runtime";
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 = T`
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
- `, k = {
36
- [a.ContentGeneration]: b,
37
- [a.Copywriting]: v,
38
- [a.ImageGeneration]: m,
39
- [a.SeoOptimization]: S,
40
- [a.Summarization]: x,
41
- [a.Translation]: h,
42
- [a.VideoGeneration]: w,
43
- [a.Other]: C
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") ? b : n.includes("subject line") || n.includes("email") ? _ : n.includes("caption") || n.includes("social") ? y : n.includes("ad copy") || n.includes("ad ") || n.includes("advert") ? v : n.includes("seo") || n.includes("meta") || n.includes("keyword") ? S : n.includes("alt") || n.includes("image") || n.includes("photo") ? m : n.includes("repurpose") || n.includes("remix") ? p : n.includes("voice") || n.includes("tone") ? ce : n.includes("translat") ? h : n.includes("summar") ? x : n.includes("video") || n.includes("script") ? w : k[t] ?? C;
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 Te(e, t) {
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 A(e) {
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 N = () => {
125
- let { data: p, loading: m, error: h, refetch: _ } = ne(), { navigate: v, basePath: y } = t(), { copy: ce } = fe(), [b, { loading: x }] = pe(Se), [S] = e(), [w, T] = l(null), [k, A] = l(""), [j, N] = l(""), [P, F] = l([]), [I, L] = l(null), [De, R] = l(null), [z, Oe] = l(null), [B, ke] = l(null), [V, H] = l(/* @__PURE__ */ new Set()), [U, W] = l(null), G = c(() => p?.headshotmarketingAITools.items ?? [], [p]), K = c(() => p?.headshotmarketingAIToolExecutions.items ?? [], [p]), q = c(() => {
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
- }, []), Ae = c(() => {
81
+ }, []), je = u(() => {
129
82
  let e = /* @__PURE__ */ new Map();
130
- for (let t of K) new Date(t.createdAt).getTime() >= q && e.set(t.toolId, (e.get(t.toolId) ?? 0) + 1);
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
- }, [K, q]), je = c(() => {
85
+ }, [G, K]), Me = u(() => {
133
86
  let e = 0;
134
- for (let t of K) new Date(t.createdAt).getTime() >= q && (e += t.tokensUsed ?? 0);
87
+ for (let t of G) new Date(t.createdAt).getTime() >= K && (e += t.tokensUsed ?? 0);
135
88
  return e;
136
- }, [K, q]), Me = c(() => K.filter((e) => new Date(e.createdAt).getTime() >= q).length, [K, q]), Ne = c(() => {
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 G) {
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
- }, [G]), J = c(() => G.map((e) => ({
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: Te(e.name, e.category),
155
- monthlyUses: Ae.get(e.id) ?? 0
156
- })), [G, Ae]), Pe = c(() => new Map(J.map((e) => [e.id, e])), [J]), Y = J.find((e) => e.id === w), Fe = J.filter((e) => e.isAvailable).length;
157
- ae(() => {
158
- !w && J.length > 0 && T((J.find((e) => e.isAvailable) ?? J[0]).id);
159
- }, [w, J]);
160
- let X = c(() => {
161
- if (!Y) return [];
162
- let e = new Set(Ne.get(Y.provider) ?? []);
163
- return Y.model && e.add(Y.model), Array.from(e);
164
- }, [Y, Ne]), Z = j || Y?.model || X[0] || "", Ie = (e) => {
165
- T(e), F([]), L(null), R(null), W(null), A(""), N(""), H(/* @__PURE__ */ new Set());
166
- }, Le = async () => {
167
- if (!(!k.trim() || !Y || !Y.isAvailable)) {
168
- R(null), W(null), H(/* @__PURE__ */ new Set());
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 b({ variables: { input: {
171
- toolId: Y.id,
172
- input: { prompt: k.trim() },
173
- metadata: Z ? {
174
- model: Z,
175
- provider: Y.provider
176
- } : { provider: Y.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" ? (F([]), L(null), R(e.errorMessage ?? "The tool failed to generate a result. Please try again.")) : (F(M(e.output)), L({
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
- R(e instanceof Error ? e.message : "Generation failed.");
137
+ L(e instanceof Error ? e.message : "Generation failed.");
185
138
  }
186
139
  }
187
- }, Q = async (e, t) => {
188
- await ce(t), Oe(e), window.setTimeout(() => Oe((t) => t === e ? null : t), 1500);
189
- }, $ = async (e, t, n) => {
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
- W(null), ke(e);
144
+ U(null), Ae(e);
192
145
  try {
193
- await S({ variables: { input: {
194
- title: Ee(t, n?.name ?? "AI"),
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 ? Te(n.name, n.category) : o.Other,
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: Z || n?.model || null
156
+ model: X || n?.model || null
204
157
  }
205
- } } }), H((t) => new Set(t).add(e)), _();
158
+ } } }), V((t) => new Set(t).add(e)), v();
206
159
  } catch (e) {
207
- W(e instanceof Error ? e.message : "Could not save draft.");
160
+ U(e instanceof Error ? e.message : "Could not save draft.");
208
161
  } finally {
209
- ke(null);
162
+ Ae(null);
210
163
  }
211
164
  }
212
- }, Re = P.join("\n\n"), ze = [
165
+ }, $ = N.join("\n\n"), ze = [
213
166
  {
214
167
  label: "Available tools",
215
- value: String(Fe),
168
+ value: String(Ie),
216
169
  icon: ue
217
170
  },
218
171
  {
219
172
  label: "Generations this month",
220
- value: i(Me),
221
- icon: C
173
+ value: i(Ne),
174
+ icon: w
222
175
  },
223
176
  {
224
177
  label: "Tokens this month",
225
- value: i(je),
178
+ value: i(Me),
226
179
  icon: de
227
180
  }
228
181
  ];
229
- return /* @__PURE__ */ O(s, {
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__ */ D(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." }),
234
- /* @__PURE__ */ D(ie, {
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: y,
237
- navigate: v
189
+ basePath: b,
190
+ navigate: y
238
191
  }),
239
- /* @__PURE__ */ D(te, {
240
- loading: m,
241
- error: h,
242
- onRetry: () => void _(),
243
- hasData: !!p,
244
- children: J.length === 0 ? /* @__PURE__ */ D(ee, {
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__ */ O(E, { children: [
249
- /* @__PURE__ */ D("div", {
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__ */ O(me, {
206
+ return /* @__PURE__ */ k(me, {
254
207
  treatment: "metric",
255
208
  className: "flex items-center gap-3 p-4",
256
- children: [/* @__PURE__ */ D("span", {
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__ */ D(t, { className: "h-5 w-5" })
259
- }), /* @__PURE__ */ O("span", {
211
+ children: /* @__PURE__ */ O(t, { className: "h-5 w-5" })
212
+ }), /* @__PURE__ */ k("span", {
260
213
  className: "min-w-0",
261
- children: [/* @__PURE__ */ D("span", {
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__ */ D("span", {
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__ */ O("div", {
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__ */ O("div", {
227
+ children: [/* @__PURE__ */ k("div", {
275
228
  className: "min-w-0 space-y-6",
276
- children: [/* @__PURE__ */ O("section", { children: [/* @__PURE__ */ D("h3", {
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__ */ D("div", {
232
+ }), /* @__PURE__ */ O("div", {
280
233
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2 xl:grid-cols-3",
281
- children: J.map((e) => {
282
- let t = e.icon, r = w === e.id;
283
- return /* @__PURE__ */ O("button", {
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: () => Ie(e.id),
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__ */ D(C, { 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") }),
291
- /* @__PURE__ */ D("span", {
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__ */ D(t, { className: "h-5 w-5" })
246
+ children: /* @__PURE__ */ O(t, { className: "h-5 w-5" })
294
247
  }),
295
- /* @__PURE__ */ D("h4", {
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__ */ D("p", {
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__ */ O("div", {
256
+ /* @__PURE__ */ k("div", {
304
257
  className: "mt-3 flex w-full items-center justify-between gap-2 text-xs",
305
- children: [/* @__PURE__ */ D("span", {
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__ */ O("span", {
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__ */ D("span", {
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__ */ O("section", { children: [/* @__PURE__ */ D("h3", {
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
- }), K.length === 0 ? /* @__PURE__ */ D(ee, {
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__ */ D("div", {
284
+ }) : /* @__PURE__ */ O("div", {
332
285
  className: "space-y-3",
333
- children: K.map((e) => {
334
- let t = Pe.get(e.toolId), n = M(e.input)[0] ?? "—", i = M(e.output)[0] ?? "—", a = t?.icon ?? C, o = `gen-${e.id}`, s = V.has(o);
335
- return /* @__PURE__ */ O("div", {
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__ */ O("div", {
291
+ /* @__PURE__ */ k("div", {
339
292
  className: "mb-2 flex items-center justify-between gap-2",
340
- children: [/* @__PURE__ */ O("div", {
293
+ children: [/* @__PURE__ */ k("div", {
341
294
  className: "flex min-w-0 items-center gap-2",
342
- children: [/* @__PURE__ */ D(a, { className: "h-3.5 w-3.5 shrink-0 text-primary" }), /* @__PURE__ */ D("span", {
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__ */ O("div", {
299
+ }), /* @__PURE__ */ k("div", {
347
300
  className: "flex shrink-0 items-center gap-1 text-xs text-text-secondary",
348
- children: [/* @__PURE__ */ D(d, { className: "h-3 w-3" }), /* @__PURE__ */ D("span", { children: r(e.createdAt, "relative") })]
301
+ children: [/* @__PURE__ */ O(ae, { className: "h-3 w-3" }), /* @__PURE__ */ O("span", { children: r(e.createdAt, "relative") })]
349
302
  })]
350
303
  }),
351
- /* @__PURE__ */ O("p", {
304
+ /* @__PURE__ */ k("p", {
352
305
  className: "line-clamp-1 text-xs text-text-secondary",
353
306
  children: ["Prompt: ", n]
354
307
  }),
355
- /* @__PURE__ */ D("p", {
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__ */ O("div", {
312
+ i !== "—" && /* @__PURE__ */ k("div", {
360
313
  className: "mt-2 flex items-center gap-3",
361
- children: [/* @__PURE__ */ D("button", {
314
+ children: [/* @__PURE__ */ O("button", {
362
315
  type: "button",
363
- onClick: () => void Q(o, i),
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: z === o ? /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D(u, { className: "h-3 w-3" }), " Copied"] }) : /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D(oe, { className: "h-3 w-3" }), " Copy"] })
366
- }), /* @__PURE__ */ D("button", {
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 $(o, i, t),
369
- disabled: B === o || s,
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: B === o ? /* @__PURE__ */ O(E, { children: [
372
- /* @__PURE__ */ D(g, { className: "h-3 w-3 animate-spin" }),
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__ */ O(E, { children: [/* @__PURE__ */ D(u, { className: "h-3 w-3" }), " Saved"] }) : /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D(f, { className: "h-3 w-3" }), " Save as draft"] })
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__ */ D("div", {
335
+ }), /* @__PURE__ */ O("div", {
383
336
  className: "lg:sticky lg:top-4 lg:self-start",
384
- children: /* @__PURE__ */ O(me, {
337
+ children: /* @__PURE__ */ k(me, {
385
338
  treatment: "glass",
386
339
  glow: !0,
387
340
  className: "p-5",
388
341
  children: [
389
- /* @__PURE__ */ O("div", {
342
+ /* @__PURE__ */ k("div", {
390
343
  className: "mb-4 flex items-center gap-2",
391
- children: [/* @__PURE__ */ D("span", {
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__ */ D(ue, { className: "h-4 w-4" })
394
- }), /* @__PURE__ */ O("div", {
346
+ children: /* @__PURE__ */ O(ue, { className: "h-4 w-4" })
347
+ }), /* @__PURE__ */ k("div", {
395
348
  className: "min-w-0",
396
- children: [/* @__PURE__ */ D("h3", {
349
+ children: [/* @__PURE__ */ O("h3", {
397
350
  className: "truncate text-sm font-semibold text-text-primary",
398
- children: Y ? Y.name : "AI Console"
399
- }), Y && /* @__PURE__ */ D("p", {
351
+ children: J ? J.name : "AI Console"
352
+ }), J && /* @__PURE__ */ O("p", {
400
353
  className: "truncate text-xs text-text-secondary",
401
- children: Y.provider
354
+ children: J.provider
402
355
  })]
403
356
  })]
404
357
  }),
405
- /* @__PURE__ */ D("label", {
358
+ /* @__PURE__ */ O("label", {
406
359
  className: "mb-1.5 block text-xs font-medium text-text-secondary",
407
- children: Y?.inputType === "url" ? "Page URL" : "Your prompt"
360
+ children: J?.inputType === "url" ? "Page URL" : "Your prompt"
408
361
  }),
409
- /* @__PURE__ */ D(xe, {
410
- value: k,
411
- onChange: (e) => A(e.target.value),
412
- disabled: !Y?.isAvailable,
413
- placeholder: Y?.inputType === "url" ? "https://your-website.com/page" : "Describe what you want to generate… (Enter to generate, Shift+Enter for a new line)",
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(), Le());
370
+ e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Re());
418
371
  }
419
372
  }),
420
- /* @__PURE__ */ O("div", {
373
+ /* @__PURE__ */ k("div", {
421
374
  className: "mt-3 flex flex-col gap-2 sm:flex-row",
422
- children: [X.length > 0 ? /* @__PURE__ */ O(ge, {
423
- value: Z,
424
- onValueChange: N,
425
- disabled: !Y?.isAvailable,
426
- children: [/* @__PURE__ */ D(ye, {
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__ */ O("span", {
382
+ children: /* @__PURE__ */ k("span", {
430
383
  className: "flex items-center gap-2 truncate",
431
- children: [/* @__PURE__ */ D(se, { className: "h-4 w-4 shrink-0 text-text-muted" }), /* @__PURE__ */ D(be, { placeholder: "Model" })]
384
+ children: [/* @__PURE__ */ O(se, { className: "h-4 w-4 shrink-0 text-text-muted" }), /* @__PURE__ */ O(be, { placeholder: "Model" })]
432
385
  })
433
- }), /* @__PURE__ */ D(_e, { children: X.map((e) => /* @__PURE__ */ D(ve, {
386
+ }), /* @__PURE__ */ O(_e, { children: Y.map((e) => /* @__PURE__ */ O(ve, {
434
387
  value: e,
435
388
  children: e
436
389
  }, e)) })]
437
- }) : /* @__PURE__ */ O("div", {
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__ */ D(se, { className: "h-4 w-4 text-text-muted" }), /* @__PURE__ */ D("span", {
392
+ children: [/* @__PURE__ */ O(se, { className: "h-4 w-4 text-text-muted" }), /* @__PURE__ */ O("span", {
440
393
  className: "truncate",
441
- children: Y?.provider ?? "Default model"
394
+ children: J?.provider ?? "Default model"
442
395
  })]
443
- }), /* @__PURE__ */ D("button", {
396
+ }), /* @__PURE__ */ O("button", {
444
397
  type: "button",
445
- onClick: () => void Le(),
446
- disabled: x || !k.trim() || !Y?.isAvailable,
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]", x || !k.trim() || !Y?.isAvailable ? "cursor-not-allowed bg-bg-sunken text-text-secondary" : "bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90"),
448
- children: x ? /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D(g, { className: "h-4 w-4 animate-spin" }), "Generating…"] }) : /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D(le, { className: "h-4 w-4" }), "Generate"] })
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
- De && /* @__PURE__ */ D("div", {
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: De
407
+ children: Oe
455
408
  }),
456
- /* @__PURE__ */ O("div", {
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__ */ O("div", {
412
+ /* @__PURE__ */ k("div", {
460
413
  className: "flex items-center justify-between border-b border-border-subtle px-3 py-2",
461
- children: [/* @__PURE__ */ D("span", {
414
+ children: [/* @__PURE__ */ O("span", {
462
415
  className: "text-xs font-semibold uppercase tracking-wide text-text-secondary",
463
416
  children: "Generated"
464
- }), /* @__PURE__ */ O("div", {
417
+ }), /* @__PURE__ */ k("div", {
465
418
  className: "flex items-center gap-1",
466
- children: [/* @__PURE__ */ D("button", {
419
+ children: [/* @__PURE__ */ O("button", {
467
420
  type: "button",
468
- onClick: () => void Q("out-all", Re),
469
- disabled: P.length === 0,
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: z === "out-all" ? /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D(u, { className: "h-3.5 w-3.5" }), " Copied"] }) : /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D(oe, { className: "h-3.5 w-3.5" }), " Copy"] })
472
- }), /* @__PURE__ */ D("button", {
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 $("out-all", Re, Y),
475
- disabled: P.length === 0 || B === "out-all" || V.has("out-all"),
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: B === "out-all" ? /* @__PURE__ */ O(E, { children: [
478
- /* @__PURE__ */ D(g, { className: "h-3.5 w-3.5 animate-spin" }),
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
- ] }) : V.has("out-all") ? /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D(u, { className: "h-3.5 w-3.5" }), " Saved"] }) : /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D(f, { className: "h-3.5 w-3.5" }), " Insert"] })
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__ */ D("div", {
438
+ /* @__PURE__ */ O("div", {
486
439
  className: "max-h-[340px] min-h-[148px] overflow-y-auto p-3",
487
- children: x ? /* @__PURE__ */ O("div", {
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__ */ D(g, { className: "h-5 w-5 animate-spin" }), /* @__PURE__ */ D("span", {
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
- }) : P.length === 0 ? /* @__PURE__ */ O("div", {
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__ */ D(C, { className: "h-5 w-5 opacity-60" }), /* @__PURE__ */ D("span", {
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__ */ D("div", {
452
+ }) : /* @__PURE__ */ O("div", {
500
453
  className: "space-y-3",
501
- children: P.map((e, t) => {
454
+ children: N.map((e, t) => {
502
455
  let r = `out-${t}`;
503
- return /* @__PURE__ */ O("div", {
504
- className: n(P.length > 1 && "rounded-md border border-border-subtle bg-bg-sunken p-3"),
505
- children: [P.length > 1 && /* @__PURE__ */ O("div", {
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__ */ O("span", {
460
+ children: [/* @__PURE__ */ k("span", {
508
461
  className: "text-xs font-medium text-text-secondary",
509
462
  children: ["Variation ", t + 1]
510
- }), /* @__PURE__ */ O("div", {
463
+ }), /* @__PURE__ */ k("div", {
511
464
  className: "flex items-center gap-2",
512
- children: [/* @__PURE__ */ D("button", {
465
+ children: [/* @__PURE__ */ O("button", {
513
466
  type: "button",
514
- onClick: () => void Q(r, e),
467
+ onClick: () => void Z(r, e),
515
468
  className: "text-xs font-medium text-primary hover:underline",
516
- children: z === r ? "Copied" : "Copy"
517
- }), /* @__PURE__ */ D("button", {
469
+ children: R === r ? "Copied" : "Copy"
470
+ }), /* @__PURE__ */ O("button", {
518
471
  type: "button",
519
- onClick: () => void $(r, e, Y),
520
- disabled: B === r || V.has(r),
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: B === r ? "Saving" : V.has(r) ? "Saved" : "Insert"
475
+ children: z === r ? "Saving" : B.has(r) ? "Saved" : "Insert"
523
476
  })]
524
477
  })]
525
- }), /* @__PURE__ */ D("p", {
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
- (I || U) && /* @__PURE__ */ O("div", {
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: [I ? /* @__PURE__ */ O("span", {
488
+ children: [F ? /* @__PURE__ */ k("span", {
536
489
  className: "flex items-center gap-3 text-text-secondary",
537
- children: [I.durationMs != null && /* @__PURE__ */ O("span", {
490
+ children: [F.durationMs != null && /* @__PURE__ */ k("span", {
538
491
  className: "flex items-center gap-1",
539
492
  children: [
540
- /* @__PURE__ */ D(d, { className: "h-3 w-3" }),
541
- (I.durationMs / 1e3).toFixed(1),
493
+ /* @__PURE__ */ O(ae, { className: "h-3 w-3" }),
494
+ (F.durationMs / 1e3).toFixed(1),
542
495
  "s"
543
496
  ]
544
- }), I.tokensUsed != null && /* @__PURE__ */ O("span", {
497
+ }), F.tokensUsed != null && /* @__PURE__ */ k("span", {
545
498
  className: "flex items-center gap-1",
546
499
  children: [
547
- /* @__PURE__ */ D(de, { className: "h-3 w-3" }),
548
- i(I.tokensUsed),
500
+ /* @__PURE__ */ O(de, { className: "h-3 w-3" }),
501
+ i(F.tokensUsed),
549
502
  " tokens"
550
503
  ]
551
504
  })]
552
- }) : /* @__PURE__ */ D("span", {}), U && /* @__PURE__ */ D("span", {
505
+ }) : /* @__PURE__ */ O("span", {}), H && /* @__PURE__ */ O("span", {
553
506
  className: "text-status-error-text",
554
- children: U
507
+ children: H
555
508
  })]
556
509
  })
557
510
  ]
558
511
  }),
559
- V.size > 0 && /* @__PURE__ */ O("button", {
512
+ B.size > 0 && /* @__PURE__ */ k("button", {
560
513
  type: "button",
561
- onClick: () => v(y + "/content"),
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__ */ D(f, { className: "h-3.5 w-3.5" }), "View saved drafts in Content"]
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__ */ D(re, {
570
- executions: K,
571
- tools: G
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 { N as AIToolsPage };
532
+ export { M as AIToolsPage };
580
533
 
581
534
  //# sourceMappingURL=AIToolsPage.js.map