@burdenoff/microfe-headshotmarketing 2026.1029.5 → 2026.1029.6

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 (29) hide show
  1. package/dist/generated/wspace-operations.d.ts +119 -0
  2. package/dist/generated/wspace-operations.d.ts.map +1 -1
  3. package/dist/generated/wspace-operations.js +316 -256
  4. package/dist/generated/wspace-operations.js.map +1 -1
  5. package/dist/generated/wspace-types.js +25 -23
  6. package/dist/generated/wspace-types.js.map +1 -1
  7. package/dist/headshotmarketing/components/StatusBadge.d.ts.map +1 -1
  8. package/dist/headshotmarketing/components/StatusBadge.js +4 -1
  9. package/dist/headshotmarketing/components/StatusBadge.js.map +1 -1
  10. package/dist/headshotmarketing/pages/ads/AdPlatformConnectionsSection.d.ts +4 -0
  11. package/dist/headshotmarketing/pages/ads/AdPlatformConnectionsSection.d.ts.map +1 -0
  12. package/dist/headshotmarketing/pages/ads/AdPlatformConnectionsSection.js +342 -0
  13. package/dist/headshotmarketing/pages/ads/AdPlatformConnectionsSection.js.map +1 -0
  14. package/dist/headshotmarketing/pages/ads/AdPlatformSyncPanel.d.ts.map +1 -1
  15. package/dist/headshotmarketing/pages/ads/AdPlatformSyncPanel.js +129 -101
  16. package/dist/headshotmarketing/pages/ads/AdPlatformSyncPanel.js.map +1 -1
  17. package/dist/headshotmarketing/pages/ads/AdsPage.d.ts.map +1 -1
  18. package/dist/headshotmarketing/pages/ads/AdsPage.js +129 -127
  19. package/dist/headshotmarketing/pages/ads/AdsPage.js.map +1 -1
  20. package/dist/headshotmarketing/pages/ads/adConnect.d.ts +73 -0
  21. package/dist/headshotmarketing/pages/ads/adConnect.d.ts.map +1 -0
  22. package/dist/headshotmarketing/pages/ads/adConnect.js +154 -0
  23. package/dist/headshotmarketing/pages/ads/adConnect.js.map +1 -0
  24. package/dist/headshotmarketing/pages/ads/useAdPlatformConnect.d.ts +16 -0
  25. package/dist/headshotmarketing/pages/ads/useAdPlatformConnect.d.ts.map +1 -0
  26. package/dist/headshotmarketing/pages/ads/useAdPlatformConnect.js +83 -0
  27. package/dist/headshotmarketing/pages/ads/useAdPlatformConnect.js.map +1 -0
  28. package/dist/headshotmarketing/pages/social-media/AccountsPage.js +6 -6
  29. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"StatusBadge.d.ts","sourceRoot":"","sources":["../../../src/headshotmarketing/components/StatusBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AA6DhC,UAAU,gBAAgB;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAU5C,CAAC"}
1
+ {"version":3,"file":"StatusBadge.d.ts","sourceRoot":"","sources":["../../../src/headshotmarketing/components/StatusBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAiEhC,UAAU,gBAAgB;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAU5C,CAAC"}
@@ -39,7 +39,10 @@ var n = "bg-status-success-bg text-status-success-text border-status-success-bor
39
39
  synced: n,
40
40
  syncing: s,
41
41
  not_synced: o,
42
- succeeded: n
42
+ succeeded: n,
43
+ connected: n,
44
+ disconnected: o,
45
+ error: i
43
46
  }, l = ({ status: n, className: r }) => /* @__PURE__ */ t("span", {
44
47
  className: e("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-medium capitalize", c[n] || o, r),
45
48
  children: n.replace(/_/g, " ")
@@ -1 +1 @@
1
- {"version":3,"file":"StatusBadge.js","names":[],"sources":["../../../src/headshotmarketing/components/StatusBadge.tsx"],"sourcesContent":["import type { FC } from \"react\";\nimport { cn } from \"../utils/helpers\";\n\nconst SUCCESS =\n \"bg-status-success-bg text-status-success-text border-status-success-border\";\nconst WARNING =\n \"bg-status-warning-bg text-status-warning-text border-status-warning-border\";\nconst ERROR =\n \"bg-status-error-bg text-status-error-text border-status-error-border\";\nconst INFO =\n \"bg-status-info-bg text-status-info-text border-status-info-border\";\nconst NEUTRAL = \"bg-bg-sunken text-text-secondary border-border-subtle\";\nconst ACCENT =\n \"bg-[var(--color-accent-soft)] text-action-primary-bg border-border-seam\";\n\nconst statusStyles: Record<string, string> = {\n active: SUCCESS,\n paused: WARNING,\n completed: INFO,\n draft: NEUTRAL,\n scheduled: ACCENT,\n published: SUCCESS,\n failed: ERROR,\n archived: NEUTRAL,\n new: INFO,\n // AI tool execution lifecycle\n pending: NEUTRAL,\n running: ACCENT,\n // automation run + step log lifecycle\n waiting: WARNING,\n success: SUCCESS,\n skipped: NEUTRAL,\n contacted: WARNING,\n qualified: SUCCESS,\n unqualified: ERROR,\n converted: SUCCESS,\n lost: ERROR,\n // deal stages\n prospecting: INFO,\n qualification: WARNING,\n proposal: ACCENT,\n negotiation: ACCENT,\n closed_won: SUCCESS,\n closed_lost: ERROR,\n // event lifecycle + registration statuses\n registration_open: SUCCESS,\n registration_closed: WARNING,\n in_progress: ACCENT,\n cancelled: ERROR,\n registered: INFO,\n confirmed: SUCCESS,\n waitlisted: WARNING,\n checked_in: SUCCESS,\n no_show: ERROR,\n // external ad-network sync (BOFF-3463)\n synced: SUCCESS,\n syncing: ACCENT,\n not_synced: NEUTRAL,\n succeeded: SUCCESS,\n};\n\ninterface StatusBadgeProps {\n status: string;\n className?: string;\n}\n\nexport const StatusBadge: FC<StatusBadgeProps> = ({ status, className }) => (\n <span\n className={cn(\n \"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-medium capitalize\",\n statusStyles[status] || NEUTRAL,\n className,\n )}\n >\n {status.replace(/_/g, \" \")}\n </span>\n);\n"],"mappings":";;;AAGA,IAAM,IACJ,8EACI,IACJ,8EACI,IACJ,wEACI,IACJ,qEACI,IAAU,yDACV,IACJ,2EAEI,IAAuC;CAC3C,QAAQ;CACR,QAAQ;CACR,WAAW;CACX,OAAO;CACP,WAAW;CACX,WAAW;CACX,QAAQ;CACR,UAAU;CACV,KAAK;CAEL,SAAS;CACT,SAAS;CAET,SAAS;CACT,SAAS;CACT,SAAS;CACT,WAAW;CACX,WAAW;CACX,aAAa;CACb,WAAW;CACX,MAAM;CAEN,aAAa;CACb,eAAe;CACf,UAAU;CACV,aAAa;CACb,YAAY;CACZ,aAAa;CAEb,mBAAmB;CACnB,qBAAqB;CACrB,aAAa;CACb,WAAW;CACX,YAAY;CACZ,WAAW;CACX,YAAY;CACZ,YAAY;CACZ,SAAS;CAET,QAAQ;CACR,SAAS;CACT,YAAY;CACZ,WAAW;CACZ,EAOY,KAAqC,EAAE,WAAQ,mBAC1D,kBAAC,QAAD;CACE,WAAW,EACT,6FACA,EAAa,MAAW,GACxB,EACD;WAEA,EAAO,QAAQ,MAAM,IAAI;CACrB,CAAA"}
1
+ {"version":3,"file":"StatusBadge.js","names":[],"sources":["../../../src/headshotmarketing/components/StatusBadge.tsx"],"sourcesContent":["import type { FC } from \"react\";\nimport { cn } from \"../utils/helpers\";\n\nconst SUCCESS =\n \"bg-status-success-bg text-status-success-text border-status-success-border\";\nconst WARNING =\n \"bg-status-warning-bg text-status-warning-text border-status-warning-border\";\nconst ERROR =\n \"bg-status-error-bg text-status-error-text border-status-error-border\";\nconst INFO =\n \"bg-status-info-bg text-status-info-text border-status-info-border\";\nconst NEUTRAL = \"bg-bg-sunken text-text-secondary border-border-subtle\";\nconst ACCENT =\n \"bg-[var(--color-accent-soft)] text-action-primary-bg border-border-seam\";\n\nconst statusStyles: Record<string, string> = {\n active: SUCCESS,\n paused: WARNING,\n completed: INFO,\n draft: NEUTRAL,\n scheduled: ACCENT,\n published: SUCCESS,\n failed: ERROR,\n archived: NEUTRAL,\n new: INFO,\n // AI tool execution lifecycle\n pending: NEUTRAL,\n running: ACCENT,\n // automation run + step log lifecycle\n waiting: WARNING,\n success: SUCCESS,\n skipped: NEUTRAL,\n contacted: WARNING,\n qualified: SUCCESS,\n unqualified: ERROR,\n converted: SUCCESS,\n lost: ERROR,\n // deal stages\n prospecting: INFO,\n qualification: WARNING,\n proposal: ACCENT,\n negotiation: ACCENT,\n closed_won: SUCCESS,\n closed_lost: ERROR,\n // event lifecycle + registration statuses\n registration_open: SUCCESS,\n registration_closed: WARNING,\n in_progress: ACCENT,\n cancelled: ERROR,\n registered: INFO,\n confirmed: SUCCESS,\n waitlisted: WARNING,\n checked_in: SUCCESS,\n no_show: ERROR,\n // external ad-network sync (BOFF-3463)\n synced: SUCCESS,\n syncing: ACCENT,\n not_synced: NEUTRAL,\n succeeded: SUCCESS,\n // ad-platform connections (BOFF-10246)\n connected: SUCCESS,\n disconnected: NEUTRAL,\n error: ERROR,\n};\n\ninterface StatusBadgeProps {\n status: string;\n className?: string;\n}\n\nexport const StatusBadge: FC<StatusBadgeProps> = ({ status, className }) => (\n <span\n className={cn(\n \"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-medium capitalize\",\n statusStyles[status] || NEUTRAL,\n className,\n )}\n >\n {status.replace(/_/g, \" \")}\n </span>\n);\n"],"mappings":";;;AAGA,IAAM,IACJ,8EACI,IACJ,8EACI,IACJ,wEACI,IACJ,qEACI,IAAU,yDACV,IACJ,2EAEI,IAAuC;CAC3C,QAAQ;CACR,QAAQ;CACR,WAAW;CACX,OAAO;CACP,WAAW;CACX,WAAW;CACX,QAAQ;CACR,UAAU;CACV,KAAK;CAEL,SAAS;CACT,SAAS;CAET,SAAS;CACT,SAAS;CACT,SAAS;CACT,WAAW;CACX,WAAW;CACX,aAAa;CACb,WAAW;CACX,MAAM;CAEN,aAAa;CACb,eAAe;CACf,UAAU;CACV,aAAa;CACb,YAAY;CACZ,aAAa;CAEb,mBAAmB;CACnB,qBAAqB;CACrB,aAAa;CACb,WAAW;CACX,YAAY;CACZ,WAAW;CACX,YAAY;CACZ,YAAY;CACZ,SAAS;CAET,QAAQ;CACR,SAAS;CACT,YAAY;CACZ,WAAW;CAEX,WAAW;CACX,cAAc;CACd,OAAO;CACR,EAOY,KAAqC,EAAE,WAAQ,mBAC1D,kBAAC,QAAD;CACE,WAAW,EACT,6FACA,EAAa,MAAW,GACxB,EACD;WAEA,EAAO,QAAQ,MAAM,IAAI;CACrB,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+
3
+ export declare const AdPlatformConnectionsSection: FC;
4
+ //# sourceMappingURL=AdPlatformConnectionsSection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AdPlatformConnectionsSection.d.ts","sourceRoot":"","sources":["../../../../src/headshotmarketing/pages/ads/AdPlatformConnectionsSection.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAY,KAAK,EAAE,EAAkB,MAAM,OAAO,CAAC;AA+C1D,eAAO,MAAM,4BAA4B,EAAE,EAwb1C,CAAC"}
@@ -0,0 +1,342 @@
1
+ import { useCreateHeadshotmarketingAdPlatformConnectionMutation as e, useDeleteHeadshotmarketingAdPlatformConnectionMutation as t, useHeadshotmarketingAdPlatformConnectionsListQuery as n } from "../../../generated/wspace-operations.js";
2
+ import { formatDate as r } from "../../utils/helpers.js";
3
+ import { HeadshotmarketingAdPlatform as i } from "../../../generated/wspace-types.js";
4
+ import { StatusBadge as ee } from "../../components/StatusBadge.js";
5
+ import { Modal as a } from "../../components/Modal.js";
6
+ import { ConfirmDeleteDialog as o } from "../../components/ConfirmDeleteDialog.js";
7
+ import "../../components/index.js";
8
+ import { AD_CONNECT_PROVIDERS as s, WEBHOOK_PLATFORMS as c, adPlatformLabel as l, buildWebhookAdConnectionInput as u, describeConnectionContext as d, validateAdConnectValues as te, validateWebhookUrl as ne } from "./adConnect.js";
9
+ import { useAdPlatformConnect as re } from "./useAdPlatformConnect.js";
10
+ import { useState as f } from "react";
11
+ import { Link2 as p, Loader2 as m, Plug as h, Trash2 as g, Webhook as _ } from "lucide-react";
12
+ import { jsx as v, jsxs as y } from "react/jsx-runtime";
13
+ //#region src/headshotmarketing/pages/ads/AdPlatformConnectionsSection.tsx
14
+ var b = "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]", x = "inline-flex items-center gap-2 rounded-md border border-border-seam bg-gloss-card px-3 py-1.5 text-xs font-medium text-text-primary hover:bg-bg-sunken disabled:opacity-60", S = "inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 disabled:opacity-60";
15
+ function C(e, t) {
16
+ return e instanceof Error && e.message ? e.message : t;
17
+ }
18
+ function w(e) {
19
+ if (!e) return "";
20
+ try {
21
+ return new URL(e).host;
22
+ } catch {
23
+ return e;
24
+ }
25
+ }
26
+ var T = () => {
27
+ let { data: T, loading: E, error: D, refetch: O } = n({
28
+ variables: { pagination: { limit: 100 } },
29
+ fetchPolicy: "cache-and-network"
30
+ }), [ie, { loading: k }] = e(), [ae, { loading: oe }] = t(), { connecting: A, error: j, clearError: M, connect: N } = re(() => O()), [P, F] = f(null), [I, L] = f({}), [R, z] = f({}), [B, V] = f(!1), [H, U] = f(i.FacebookAds), [W, G] = f(""), [K, q] = f(null), [J, Y] = f(null), [se, X] = f(null), [Z, Q] = f(null), $ = T?.headshotmarketingAdPlatformConnections.items ?? [], ce = (e) => {
31
+ if (M(), Q(null), e.fields.length === 0) {
32
+ N(e, {}).then((t) => {
33
+ t && Q(`${e.label} connected.`);
34
+ });
35
+ return;
36
+ }
37
+ L({}), z({}), F(e);
38
+ }, le = (e) => {
39
+ if (e.preventDefault(), !P) return;
40
+ let t = te(P, I);
41
+ if (!t.ok) {
42
+ z(t.errors);
43
+ return;
44
+ }
45
+ let n = P;
46
+ F(null), N(n, t.metadata).then((e) => {
47
+ e && Q(`${n.label} connected.`);
48
+ });
49
+ }, ue = async (e) => {
50
+ e.preventDefault();
51
+ let t = ne(W);
52
+ if (t) {
53
+ q(t);
54
+ return;
55
+ }
56
+ q(null);
57
+ try {
58
+ await ie({ variables: { input: u({
59
+ platform: H,
60
+ webhookUrl: W
61
+ }) } }), V(!1), G(""), Q(`${l(H)} webhook relay added.`), await O();
62
+ } catch (e) {
63
+ q(C(e, "Could not add the webhook relay."));
64
+ }
65
+ }, de = async () => {
66
+ if (J) {
67
+ X(null);
68
+ try {
69
+ if (!(await ae({ variables: { id: J.id } })).data?.deleteHeadshotmarketingAdPlatformConnection) {
70
+ X("The connection was already removed."), await O();
71
+ return;
72
+ }
73
+ Q(`${l(J.platform)} disconnected.`), Y(null), await O();
74
+ } catch (e) {
75
+ X(C(e, "Could not disconnect."));
76
+ }
77
+ }
78
+ };
79
+ return /* @__PURE__ */ y("section", {
80
+ "aria-labelledby": "ad-platform-connections-heading",
81
+ "data-testid": "ad-platform-connections",
82
+ className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
83
+ children: [
84
+ /* @__PURE__ */ y("div", {
85
+ className: "mb-4 flex flex-wrap items-start justify-between gap-3",
86
+ children: [/* @__PURE__ */ y("div", {
87
+ className: "min-w-0",
88
+ children: [/* @__PURE__ */ y("h3", {
89
+ id: "ad-platform-connections-heading",
90
+ className: "flex items-center gap-2 text-sm font-semibold text-text-primary",
91
+ children: [/* @__PURE__ */ v(h, { className: "h-4 w-4 text-text-secondary" }), "Ad platform connections"]
92
+ }), /* @__PURE__ */ v("p", {
93
+ className: "mt-1 text-xs text-text-secondary",
94
+ children: "Connect an ad account to push budgets and read status and spend back. Sign-in tokens stay with the integrations service and are never shown here."
95
+ })]
96
+ }), /* @__PURE__ */ y("button", {
97
+ type: "button",
98
+ onClick: () => {
99
+ q(null), V(!0);
100
+ },
101
+ className: x,
102
+ children: [/* @__PURE__ */ v(_, { className: "h-3.5 w-3.5" }), "Add webhook relay"]
103
+ })]
104
+ }),
105
+ /* @__PURE__ */ v("div", {
106
+ className: "grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-4",
107
+ children: s.map((e) => {
108
+ let t = A === e.platform, n = $.filter((t) => t.platform === e.platform && t.mode === "API" && t.status === "CONNECTED").length;
109
+ return /* @__PURE__ */ y("div", {
110
+ className: "flex flex-col justify-between rounded-lg border border-border-subtle bg-bg-surface p-4",
111
+ children: [/* @__PURE__ */ y("div", { children: [
112
+ /* @__PURE__ */ v("p", {
113
+ className: "text-sm font-medium text-text-primary",
114
+ children: e.label
115
+ }),
116
+ /* @__PURE__ */ v("p", {
117
+ className: "mt-1 text-xs text-text-secondary",
118
+ children: e.description
119
+ }),
120
+ n > 0 && /* @__PURE__ */ y("p", {
121
+ className: "mt-2 text-xs font-medium text-status-success-text",
122
+ children: [n, " connected"]
123
+ })
124
+ ] }), /* @__PURE__ */ y("button", {
125
+ type: "button",
126
+ onClick: () => ce(e),
127
+ disabled: A !== null,
128
+ className: `${x} mt-3 self-start`,
129
+ children: [t ? /* @__PURE__ */ v(m, { className: "h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ v(p, { className: "h-3.5 w-3.5" }), t ? "Connecting…" : `Connect ${e.label}`]
130
+ })]
131
+ }, e.platform);
132
+ })
133
+ }),
134
+ j && /* @__PURE__ */ v("p", {
135
+ role: "alert",
136
+ className: "mt-3 text-sm text-status-error-text",
137
+ children: j
138
+ }),
139
+ Z && !j && /* @__PURE__ */ v("p", {
140
+ role: "status",
141
+ className: "mt-3 text-sm text-status-success-text",
142
+ children: Z
143
+ }),
144
+ /* @__PURE__ */ y("div", {
145
+ className: "mt-5",
146
+ children: [
147
+ /* @__PURE__ */ v("h4", {
148
+ className: "mb-2 text-xs font-semibold uppercase tracking-wide text-text-secondary",
149
+ children: "Connected"
150
+ }),
151
+ D && !T && /* @__PURE__ */ y("p", {
152
+ role: "alert",
153
+ className: "text-sm text-status-error-text",
154
+ children: ["Could not load connections: ", D.message]
155
+ }),
156
+ E && !T && /* @__PURE__ */ v("p", {
157
+ className: "text-sm text-text-secondary",
158
+ children: "Loading connections…"
159
+ }),
160
+ T && $.length === 0 && /* @__PURE__ */ v("p", {
161
+ className: "text-sm text-text-secondary",
162
+ children: "No ad platforms connected yet."
163
+ }),
164
+ $.length > 0 && /* @__PURE__ */ v("ul", {
165
+ className: "divide-y divide-border-subtle text-sm",
166
+ children: $.map((e) => {
167
+ let t = e.mode === "WEBHOOK" ? w(e.webhookUrl) : d(e.metadata);
168
+ return /* @__PURE__ */ y("li", {
169
+ className: "flex flex-wrap items-center justify-between gap-2 py-2",
170
+ children: [/* @__PURE__ */ y("div", {
171
+ className: "min-w-0",
172
+ children: [/* @__PURE__ */ y("p", {
173
+ className: "font-medium text-text-primary",
174
+ children: [l(e.platform), /* @__PURE__ */ y("span", {
175
+ className: "ml-2 text-xs font-normal text-text-secondary",
176
+ children: [
177
+ e.mode === "API" ? "Native API" : "Webhook relay",
178
+ " · added ",
179
+ r(e.createdAt, "relative")
180
+ ]
181
+ })]
182
+ }), t && /* @__PURE__ */ v("p", {
183
+ className: "mt-0.5 break-all text-xs text-text-secondary",
184
+ children: t
185
+ })]
186
+ }), /* @__PURE__ */ y("div", {
187
+ className: "flex shrink-0 items-center gap-2",
188
+ children: [/* @__PURE__ */ v(ee, { status: e.status.toLowerCase() }), /* @__PURE__ */ y("button", {
189
+ type: "button",
190
+ onClick: () => {
191
+ X(null), Y(e);
192
+ },
193
+ "aria-label": `Disconnect ${l(e.platform)}`,
194
+ className: x,
195
+ children: [/* @__PURE__ */ v(g, { className: "h-3.5 w-3.5" }), "Disconnect"]
196
+ })]
197
+ })]
198
+ }, e.id);
199
+ })
200
+ })
201
+ ]
202
+ }),
203
+ /* @__PURE__ */ v(a, {
204
+ open: P !== null,
205
+ onClose: () => F(null),
206
+ title: P ? `Connect ${P.label}` : "",
207
+ size: "sm",
208
+ children: P && /* @__PURE__ */ y("form", {
209
+ onSubmit: le,
210
+ className: "space-y-4",
211
+ noValidate: !0,
212
+ children: [
213
+ /* @__PURE__ */ y("p", {
214
+ className: "text-sm text-text-secondary",
215
+ children: [
216
+ "Tell us which account to sync, then sign in with",
217
+ " ",
218
+ P.label,
219
+ " in the popup."
220
+ ]
221
+ }),
222
+ P.fields.map((e) => /* @__PURE__ */ y("div", { children: [
223
+ /* @__PURE__ */ v("label", {
224
+ htmlFor: `ad-connect-${e.key}`,
225
+ className: "mb-1 block text-xs font-medium text-text-secondary",
226
+ children: e.label
227
+ }),
228
+ /* @__PURE__ */ v("input", {
229
+ id: `ad-connect-${e.key}`,
230
+ value: I[e.key] ?? "",
231
+ onChange: (t) => L((n) => ({
232
+ ...n,
233
+ [e.key]: t.target.value
234
+ })),
235
+ placeholder: e.placeholder,
236
+ "aria-invalid": !!R[e.key],
237
+ "aria-describedby": `ad-connect-${e.key}-help`,
238
+ className: b
239
+ }),
240
+ /* @__PURE__ */ v("p", {
241
+ id: `ad-connect-${e.key}-help`,
242
+ className: R[e.key] ? "mt-1 text-xs text-status-error-text" : "mt-1 text-xs text-text-secondary",
243
+ children: R[e.key] ?? e.help
244
+ })
245
+ ] }, e.key)),
246
+ /* @__PURE__ */ y("div", {
247
+ className: "flex justify-end gap-2",
248
+ children: [/* @__PURE__ */ v("button", {
249
+ type: "button",
250
+ onClick: () => F(null),
251
+ className: x,
252
+ children: "Cancel"
253
+ }), /* @__PURE__ */ v("button", {
254
+ type: "submit",
255
+ className: S,
256
+ children: "Continue to sign-in"
257
+ })]
258
+ })
259
+ ]
260
+ })
261
+ }),
262
+ /* @__PURE__ */ v(a, {
263
+ open: B,
264
+ onClose: () => V(!1),
265
+ title: "Add webhook relay",
266
+ size: "sm",
267
+ children: /* @__PURE__ */ y("form", {
268
+ onSubmit: (e) => void ue(e),
269
+ className: "space-y-4",
270
+ noValidate: !0,
271
+ children: [
272
+ /* @__PURE__ */ v("p", {
273
+ className: "text-sm text-text-secondary",
274
+ children: "Budget changes are posted to this URL, and the relay can post metrics back in. It must be a public https address."
275
+ }),
276
+ /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("label", {
277
+ htmlFor: "ad-webhook-platform",
278
+ className: "mb-1 block text-xs font-medium text-text-secondary",
279
+ children: "Platform"
280
+ }), /* @__PURE__ */ v("select", {
281
+ id: "ad-webhook-platform",
282
+ value: H,
283
+ onChange: (e) => U(e.target.value),
284
+ className: b,
285
+ children: c.map((e) => /* @__PURE__ */ v("option", {
286
+ value: e,
287
+ children: l(e)
288
+ }, e))
289
+ })] }),
290
+ /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("label", {
291
+ htmlFor: "ad-webhook-url",
292
+ className: "mb-1 block text-xs font-medium text-text-secondary",
293
+ children: "Relay URL"
294
+ }), /* @__PURE__ */ v("input", {
295
+ id: "ad-webhook-url",
296
+ type: "url",
297
+ value: W,
298
+ onChange: (e) => G(e.target.value),
299
+ placeholder: "https://hooks.example.com/ads",
300
+ "aria-invalid": !!K,
301
+ className: b
302
+ })] }),
303
+ K && /* @__PURE__ */ v("p", {
304
+ role: "alert",
305
+ className: "text-sm text-status-error-text",
306
+ children: K
307
+ }),
308
+ /* @__PURE__ */ y("div", {
309
+ className: "flex justify-end gap-2",
310
+ children: [/* @__PURE__ */ v("button", {
311
+ type: "button",
312
+ onClick: () => V(!1),
313
+ disabled: k,
314
+ className: x,
315
+ children: "Cancel"
316
+ }), /* @__PURE__ */ v("button", {
317
+ type: "submit",
318
+ disabled: k,
319
+ className: S,
320
+ children: k ? "Adding…" : "Add relay"
321
+ })]
322
+ })
323
+ ]
324
+ })
325
+ }),
326
+ /* @__PURE__ */ v(o, {
327
+ open: J !== null,
328
+ onClose: () => Y(null),
329
+ title: "Disconnect ad platform",
330
+ message: J ? `Disconnect ${l(J.platform)} (${J.mode === "API" ? "native API" : "webhook relay"})? Budget pushes and status sync through it stop, and an OAuth sign-in is revoked.` : "",
331
+ deleting: oe,
332
+ error: se,
333
+ onConfirm: () => void de(),
334
+ confirmLabel: "Disconnect"
335
+ })
336
+ ]
337
+ });
338
+ };
339
+ //#endregion
340
+ export { T as AdPlatformConnectionsSection };
341
+
342
+ //# sourceMappingURL=AdPlatformConnectionsSection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AdPlatformConnectionsSection.js","names":[],"sources":["../../../../src/headshotmarketing/pages/ads/AdPlatformConnectionsSection.tsx"],"sourcesContent":["/**\n * Ad platform connections (BOFF-10246)\n *\n * Lets a workspace connect Meta, Google Ads and LinkedIn Ads through the same\n * OAuth popup the social accounts use, binding each authorised connection as\n * an API-mode ad connection with the sync context the backend needs (Google:\n * customer ids; LinkedIn: ad account and currency). It also lists existing\n * connections, disconnects them, and adds/removes WEBHOOK relays for platforms\n * that post metrics in instead. Every state shown comes from the backend.\n *\n * @module headshotmarketing/pages/ads\n */\n\nimport { useState, type FC, type FormEvent } from \"react\";\nimport { Link2, Loader2, Plug, Trash2, Webhook } from \"lucide-react\";\nimport {\n useCreateHeadshotmarketingAdPlatformConnectionMutation,\n useDeleteHeadshotmarketingAdPlatformConnectionMutation,\n useHeadshotmarketingAdPlatformConnectionsListQuery,\n type HeadshotmarketingAdPlatformConnectionsListQuery,\n} from \"../../../generated/wspace-operations\";\nimport { HeadshotmarketingAdPlatform } from \"../../../generated/wspace-types\";\nimport { ConfirmDeleteDialog, Modal, StatusBadge } from \"../../components\";\nimport { formatDate } from \"../../utils/helpers\";\nimport {\n AD_CONNECT_PROVIDERS,\n WEBHOOK_PLATFORMS,\n adPlatformLabel,\n buildWebhookAdConnectionInput,\n describeConnectionContext,\n validateAdConnectValues,\n validateWebhookUrl,\n type AdConnectProvider,\n type AdConnectValues,\n} from \"./adConnect\";\nimport { useAdPlatformConnect } from \"./useAdPlatformConnect\";\n\ntype ConnectionRow =\n HeadshotmarketingAdPlatformConnectionsListQuery[\"headshotmarketingAdPlatformConnections\"][\"items\"][number];\n\nconst INPUT_CLASS =\n \"w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]\";\nconst SECONDARY_BUTTON =\n \"inline-flex items-center gap-2 rounded-md border border-border-seam bg-gloss-card px-3 py-1.5 text-xs font-medium text-text-primary hover:bg-bg-sunken disabled:opacity-60\";\nconst PRIMARY_BUTTON =\n \"inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 disabled:opacity-60\";\n\nfunction errorMessage(err: unknown, fallback: string): string {\n return err instanceof Error && err.message ? err.message : fallback;\n}\n\nfunction webhookHost(url?: string | null): string {\n if (!url) return \"\";\n try {\n return new URL(url).host;\n } catch {\n return url;\n }\n}\n\nexport const AdPlatformConnectionsSection: FC = () => {\n const { data, loading, error, refetch } =\n useHeadshotmarketingAdPlatformConnectionsListQuery({\n variables: { pagination: { limit: 100 } },\n fetchPolicy: \"cache-and-network\",\n });\n const [createConnection, { loading: creatingWebhook }] =\n useCreateHeadshotmarketingAdPlatformConnectionMutation();\n const [deleteConnection, { loading: deleting }] =\n useDeleteHeadshotmarketingAdPlatformConnectionMutation();\n\n const {\n connecting,\n error: connectError,\n clearError,\n connect,\n } = useAdPlatformConnect(() => refetch());\n\n // Context dialog for providers that need ids before the popup opens.\n const [contextProvider, setContextProvider] =\n useState<AdConnectProvider | null>(null);\n const [contextValues, setContextValues] = useState<AdConnectValues>({});\n const [contextErrors, setContextErrors] = useState<\n Partial<Record<string, string>>\n >({});\n\n // Webhook relay dialog.\n const [webhookOpen, setWebhookOpen] = useState(false);\n const [webhookPlatform, setWebhookPlatform] =\n useState<HeadshotmarketingAdPlatform>(\n HeadshotmarketingAdPlatform.FacebookAds,\n );\n const [webhookUrl, setWebhookUrl] = useState(\"\");\n const [webhookError, setWebhookError] = useState<string | null>(null);\n\n // Disconnect confirmation.\n const [pendingDelete, setPendingDelete] = useState<ConnectionRow | null>(\n null,\n );\n const [deleteError, setDeleteError] = useState<string | null>(null);\n const [notice, setNotice] = useState<string | null>(null);\n\n const connections: ConnectionRow[] =\n data?.headshotmarketingAdPlatformConnections.items ?? [];\n\n const startConnect = (provider: AdConnectProvider): void => {\n clearError();\n setNotice(null);\n if (provider.fields.length === 0) {\n void connect(provider, {}).then((ok) => {\n if (ok) setNotice(`${provider.label} connected.`);\n });\n return;\n }\n setContextValues({});\n setContextErrors({});\n setContextProvider(provider);\n };\n\n const submitContext = (event: FormEvent): void => {\n event.preventDefault();\n if (!contextProvider) return;\n const result = validateAdConnectValues(contextProvider, contextValues);\n if (!result.ok) {\n setContextErrors(result.errors);\n return;\n }\n const provider = contextProvider;\n setContextProvider(null);\n // Still inside the submit gesture, so the popup is not blocked.\n void connect(provider, result.metadata).then((ok) => {\n if (ok) setNotice(`${provider.label} connected.`);\n });\n };\n\n const submitWebhook = async (event: FormEvent): Promise<void> => {\n event.preventDefault();\n const problem = validateWebhookUrl(webhookUrl);\n if (problem) {\n setWebhookError(problem);\n return;\n }\n setWebhookError(null);\n try {\n await createConnection({\n variables: {\n input: buildWebhookAdConnectionInput({\n platform: webhookPlatform,\n webhookUrl,\n }),\n },\n });\n setWebhookOpen(false);\n setWebhookUrl(\"\");\n setNotice(`${adPlatformLabel(webhookPlatform)} webhook relay added.`);\n await refetch();\n } catch (err) {\n setWebhookError(errorMessage(err, \"Could not add the webhook relay.\"));\n }\n };\n\n const confirmDelete = async (): Promise<void> => {\n if (!pendingDelete) return;\n setDeleteError(null);\n try {\n const res = await deleteConnection({\n variables: { id: pendingDelete.id },\n });\n if (!res.data?.deleteHeadshotmarketingAdPlatformConnection) {\n setDeleteError(\"The connection was already removed.\");\n await refetch();\n return;\n }\n setNotice(`${adPlatformLabel(pendingDelete.platform)} disconnected.`);\n setPendingDelete(null);\n await refetch();\n } catch (err) {\n setDeleteError(errorMessage(err, \"Could not disconnect.\"));\n }\n };\n\n return (\n <section\n aria-labelledby=\"ad-platform-connections-heading\"\n data-testid=\"ad-platform-connections\"\n className=\"rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop\"\n >\n <div className=\"mb-4 flex flex-wrap items-start justify-between gap-3\">\n <div className=\"min-w-0\">\n <h3\n id=\"ad-platform-connections-heading\"\n className=\"flex items-center gap-2 text-sm font-semibold text-text-primary\"\n >\n <Plug className=\"h-4 w-4 text-text-secondary\" />\n Ad platform connections\n </h3>\n <p className=\"mt-1 text-xs text-text-secondary\">\n Connect an ad account to push budgets and read status and spend\n back. Sign-in tokens stay with the integrations service and are\n never shown here.\n </p>\n </div>\n <button\n type=\"button\"\n onClick={() => {\n setWebhookError(null);\n setWebhookOpen(true);\n }}\n className={SECONDARY_BUTTON}\n >\n <Webhook className=\"h-3.5 w-3.5\" />\n Add webhook relay\n </button>\n </div>\n\n <div className=\"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-4\">\n {AD_CONNECT_PROVIDERS.map((provider) => {\n const isConnecting = connecting === provider.platform;\n const live = connections.filter(\n (c) =>\n c.platform === provider.platform &&\n c.mode === \"API\" &&\n c.status === \"CONNECTED\",\n ).length;\n return (\n <div\n key={provider.platform}\n className=\"flex flex-col justify-between rounded-lg border border-border-subtle bg-bg-surface p-4\"\n >\n <div>\n <p className=\"text-sm font-medium text-text-primary\">\n {provider.label}\n </p>\n <p className=\"mt-1 text-xs text-text-secondary\">\n {provider.description}\n </p>\n {live > 0 && (\n <p className=\"mt-2 text-xs font-medium text-status-success-text\">\n {live} connected\n </p>\n )}\n </div>\n <button\n type=\"button\"\n onClick={() => startConnect(provider)}\n disabled={connecting !== null}\n className={`${SECONDARY_BUTTON} mt-3 self-start`}\n >\n {isConnecting ? (\n <Loader2 className=\"h-3.5 w-3.5 animate-spin\" />\n ) : (\n <Link2 className=\"h-3.5 w-3.5\" />\n )}\n {isConnecting ? \"Connecting…\" : `Connect ${provider.label}`}\n </button>\n </div>\n );\n })}\n </div>\n\n {connectError && (\n <p role=\"alert\" className=\"mt-3 text-sm text-status-error-text\">\n {connectError}\n </p>\n )}\n {notice && !connectError && (\n <p role=\"status\" className=\"mt-3 text-sm text-status-success-text\">\n {notice}\n </p>\n )}\n\n <div className=\"mt-5\">\n <h4 className=\"mb-2 text-xs font-semibold uppercase tracking-wide text-text-secondary\">\n Connected\n </h4>\n {error && !data && (\n <p role=\"alert\" className=\"text-sm text-status-error-text\">\n Could not load connections: {error.message}\n </p>\n )}\n {loading && !data && (\n <p className=\"text-sm text-text-secondary\">Loading connections…</p>\n )}\n {data && connections.length === 0 && (\n <p className=\"text-sm text-text-secondary\">\n No ad platforms connected yet.\n </p>\n )}\n {connections.length > 0 && (\n <ul className=\"divide-y divide-border-subtle text-sm\">\n {connections.map((connection) => {\n const detail =\n connection.mode === \"WEBHOOK\"\n ? webhookHost(connection.webhookUrl)\n : describeConnectionContext(connection.metadata);\n return (\n <li\n key={connection.id}\n className=\"flex flex-wrap items-center justify-between gap-2 py-2\"\n >\n <div className=\"min-w-0\">\n <p className=\"font-medium text-text-primary\">\n {adPlatformLabel(connection.platform)}\n <span className=\"ml-2 text-xs font-normal text-text-secondary\">\n {connection.mode === \"API\"\n ? \"Native API\"\n : \"Webhook relay\"}\n {\" · added \"}\n {formatDate(connection.createdAt, \"relative\")}\n </span>\n </p>\n {detail && (\n <p className=\"mt-0.5 break-all text-xs text-text-secondary\">\n {detail}\n </p>\n )}\n </div>\n <div className=\"flex shrink-0 items-center gap-2\">\n <StatusBadge status={connection.status.toLowerCase()} />\n <button\n type=\"button\"\n onClick={() => {\n setDeleteError(null);\n setPendingDelete(connection);\n }}\n aria-label={`Disconnect ${adPlatformLabel(connection.platform)}`}\n className={SECONDARY_BUTTON}\n >\n <Trash2 className=\"h-3.5 w-3.5\" />\n Disconnect\n </button>\n </div>\n </li>\n );\n })}\n </ul>\n )}\n </div>\n\n <Modal\n open={contextProvider !== null}\n onClose={() => setContextProvider(null)}\n title={contextProvider ? `Connect ${contextProvider.label}` : \"\"}\n size=\"sm\"\n >\n {contextProvider && (\n <form onSubmit={submitContext} className=\"space-y-4\" noValidate>\n <p className=\"text-sm text-text-secondary\">\n Tell us which account to sync, then sign in with{\" \"}\n {contextProvider.label} in the popup.\n </p>\n {contextProvider.fields.map((field) => (\n <div key={field.key}>\n <label\n htmlFor={`ad-connect-${field.key}`}\n className=\"mb-1 block text-xs font-medium text-text-secondary\"\n >\n {field.label}\n </label>\n <input\n id={`ad-connect-${field.key}`}\n value={contextValues[field.key] ?? \"\"}\n onChange={(e) =>\n setContextValues((prev) => ({\n ...prev,\n [field.key]: e.target.value,\n }))\n }\n placeholder={field.placeholder}\n aria-invalid={Boolean(contextErrors[field.key])}\n aria-describedby={`ad-connect-${field.key}-help`}\n className={INPUT_CLASS}\n />\n <p\n id={`ad-connect-${field.key}-help`}\n className={\n contextErrors[field.key]\n ? \"mt-1 text-xs text-status-error-text\"\n : \"mt-1 text-xs text-text-secondary\"\n }\n >\n {contextErrors[field.key] ?? field.help}\n </p>\n </div>\n ))}\n <div className=\"flex justify-end gap-2\">\n <button\n type=\"button\"\n onClick={() => setContextProvider(null)}\n className={SECONDARY_BUTTON}\n >\n Cancel\n </button>\n <button type=\"submit\" className={PRIMARY_BUTTON}>\n Continue to sign-in\n </button>\n </div>\n </form>\n )}\n </Modal>\n\n <Modal\n open={webhookOpen}\n onClose={() => setWebhookOpen(false)}\n title=\"Add webhook relay\"\n size=\"sm\"\n >\n <form\n onSubmit={(e) => void submitWebhook(e)}\n className=\"space-y-4\"\n noValidate\n >\n <p className=\"text-sm text-text-secondary\">\n Budget changes are posted to this URL, and the relay can post\n metrics back in. It must be a public https address.\n </p>\n <div>\n <label\n htmlFor=\"ad-webhook-platform\"\n className=\"mb-1 block text-xs font-medium text-text-secondary\"\n >\n Platform\n </label>\n <select\n id=\"ad-webhook-platform\"\n value={webhookPlatform}\n onChange={(e) =>\n setWebhookPlatform(\n e.target.value as HeadshotmarketingAdPlatform,\n )\n }\n className={INPUT_CLASS}\n >\n {WEBHOOK_PLATFORMS.map((platform) => (\n <option key={platform} value={platform}>\n {adPlatformLabel(platform)}\n </option>\n ))}\n </select>\n </div>\n <div>\n <label\n htmlFor=\"ad-webhook-url\"\n className=\"mb-1 block text-xs font-medium text-text-secondary\"\n >\n Relay URL\n </label>\n <input\n id=\"ad-webhook-url\"\n type=\"url\"\n value={webhookUrl}\n onChange={(e) => setWebhookUrl(e.target.value)}\n placeholder=\"https://hooks.example.com/ads\"\n aria-invalid={Boolean(webhookError)}\n className={INPUT_CLASS}\n />\n </div>\n {webhookError && (\n <p role=\"alert\" className=\"text-sm text-status-error-text\">\n {webhookError}\n </p>\n )}\n <div className=\"flex justify-end gap-2\">\n <button\n type=\"button\"\n onClick={() => setWebhookOpen(false)}\n disabled={creatingWebhook}\n className={SECONDARY_BUTTON}\n >\n Cancel\n </button>\n <button\n type=\"submit\"\n disabled={creatingWebhook}\n className={PRIMARY_BUTTON}\n >\n {creatingWebhook ? \"Adding…\" : \"Add relay\"}\n </button>\n </div>\n </form>\n </Modal>\n\n <ConfirmDeleteDialog\n open={pendingDelete !== null}\n onClose={() => setPendingDelete(null)}\n title=\"Disconnect ad platform\"\n message={\n pendingDelete\n ? `Disconnect ${adPlatformLabel(pendingDelete.platform)} (${\n pendingDelete.mode === \"API\" ? \"native API\" : \"webhook relay\"\n })? Budget pushes and status sync through it stop, and an OAuth sign-in is revoked.`\n : \"\"\n }\n deleting={deleting}\n error={deleteError}\n onConfirm={() => void confirmDelete()}\n confirmLabel=\"Disconnect\"\n />\n </section>\n );\n};\n"],"mappings":";;;;;;;;;;;;;AAwCA,IAAM,IACJ,wMACI,IACJ,8KACI,IACJ;AAEF,SAAS,EAAa,GAAc,GAA0B;AAC5D,QAAO,aAAe,SAAS,EAAI,UAAU,EAAI,UAAU;;AAG7D,SAAS,EAAY,GAA6B;AAChD,KAAI,CAAC,EAAK,QAAO;AACjB,KAAI;AACF,SAAO,IAAI,IAAI,EAAI,CAAC;SACd;AACN,SAAO;;;AAIX,IAAa,UAAyC;CACpD,IAAM,EAAE,SAAM,YAAS,UAAO,eAC5B,EAAmD;EACjD,WAAW,EAAE,YAAY,EAAE,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;OACL,OAAO;OACP,WAAW,MAAM,EAAc,EAAE,OAAO,MAAM;OAC9C,aAAY;OACZ,gBAAc,EAAQ;OACtB,WAAW;OACX,CAAA,CACE,EAAA,CAAA;MACL,KACC,kBAAC,KAAD;OAAG,MAAK;OAAQ,WAAU;iBACvB;OACC,CAAA;MAEN,kBAAC,OAAD;OAAK,WAAU;iBAAf,CACE,kBAAC,UAAD;QACE,MAAK;QACL,eAAe,EAAe,GAAM;QACpC,UAAU;QACV,WAAW;kBACZ;QAEQ,CAAA,EACT,kBAAC,UAAD;QACE,MAAK;QACL,UAAU;QACV,WAAW;kBAEV,IAAkB,YAAY;QACxB,CAAA,CACL;;MACD;;IACD,CAAA;GAER,kBAAC,GAAD;IACE,MAAM,MAAkB;IACxB,eAAe,EAAiB,KAAK;IACrC,OAAM;IACN,SACE,IACI,cAAc,EAAgB,EAAc,SAAS,CAAC,IACpD,EAAc,SAAS,QAAQ,eAAe,gBAC/C,sFACD;IAEI;IACV,OAAO;IACP,iBAAiB,KAAK,IAAe;IACrC,cAAa;IACb,CAAA;GACM"}
@@ -1 +1 @@
1
- {"version":3,"file":"AdPlatformSyncPanel.d.ts","sourceRoot":"","sources":["../../../../src/headshotmarketing/pages/ads/AdPlatformSyncPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAY,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAiB1C,UAAU,wBAAwB;IAChC,YAAY,EAAE,MAAM,CAAC;IACrB,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CAC1C;AAkCD,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,wBAAwB,CAqS5D,CAAC"}
1
+ {"version":3,"file":"AdPlatformSyncPanel.d.ts","sourceRoot":"","sources":["../../../../src/headshotmarketing/pages/ads/AdPlatformSyncPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAY,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAkB1C,UAAU,wBAAwB;IAChC,YAAY,EAAE,MAAM,CAAC;IACrB,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CAC1C;AAkCD,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,wBAAwB,CAuU5D,CAAC"}