@burdenoff/microfe-headshotmarketing 2026.703.1 → 2026.704.1

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 (137) hide show
  1. package/dist/generated/wspace-operations.js +970 -52
  2. package/dist/generated/wspace-operations.js.map +1 -1
  3. package/dist/generated/wspace-types.js +26 -10
  4. package/dist/generated/wspace-types.js.map +1 -1
  5. package/dist/headshotmarketing/HeadshotMarketingRoot.js +45 -44
  6. package/dist/headshotmarketing/HeadshotMarketingRoot.js.map +1 -1
  7. package/dist/headshotmarketing/HeadshotMarketingRoutes.js +20 -0
  8. package/dist/headshotmarketing/HeadshotMarketingRoutes.js.map +1 -1
  9. package/dist/headshotmarketing/components/ActionMenu.js +57 -0
  10. package/dist/headshotmarketing/components/ActionMenu.js.map +1 -0
  11. package/dist/headshotmarketing/components/AssetUploadButton.js +47 -0
  12. package/dist/headshotmarketing/components/AssetUploadButton.js.map +1 -0
  13. package/dist/headshotmarketing/components/FilterBar.js.map +1 -1
  14. package/dist/headshotmarketing/components/InfluencerModals.js +606 -0
  15. package/dist/headshotmarketing/components/InfluencerModals.js.map +1 -0
  16. package/dist/headshotmarketing/components/LoadingSkeleton.js +11 -1
  17. package/dist/headshotmarketing/components/LoadingSkeleton.js.map +1 -0
  18. package/dist/headshotmarketing/components/Modal.js +6 -3
  19. package/dist/headshotmarketing/components/Modal.js.map +1 -1
  20. package/dist/headshotmarketing/components/Pagination.js +117 -0
  21. package/dist/headshotmarketing/components/Pagination.js.map +1 -0
  22. package/dist/headshotmarketing/components/QueryStateBoundary.js +46 -0
  23. package/dist/headshotmarketing/components/QueryStateBoundary.js.map +1 -0
  24. package/dist/headshotmarketing/components/StatusBadge.js.map +1 -1
  25. package/dist/headshotmarketing/components/TagChipsInput.js +74 -0
  26. package/dist/headshotmarketing/components/TagChipsInput.js.map +1 -0
  27. package/dist/headshotmarketing/components/index.js +6 -0
  28. package/dist/headshotmarketing/context/HeadshotMarketingContext.js +26 -22
  29. package/dist/headshotmarketing/context/HeadshotMarketingContext.js.map +1 -1
  30. package/dist/headshotmarketing/context/HeadshotmarketingBootstrapContext.js +29 -0
  31. package/dist/headshotmarketing/context/HeadshotmarketingBootstrapContext.js.map +1 -0
  32. package/dist/headshotmarketing/hooks/index.js +4 -0
  33. package/dist/headshotmarketing/hooks/useAssetUpload.js +86 -0
  34. package/dist/headshotmarketing/hooks/useAssetUpload.js.map +1 -0
  35. package/dist/headshotmarketing/hooks/useHeadshotmarketingBootstrap.js +12 -0
  36. package/dist/headshotmarketing/hooks/useHeadshotmarketingBootstrap.js.map +1 -0
  37. package/dist/headshotmarketing/hooks/usePagination.js +53 -0
  38. package/dist/headshotmarketing/hooks/usePagination.js.map +1 -0
  39. package/dist/headshotmarketing/pages/HomePage.js +334 -301
  40. package/dist/headshotmarketing/pages/HomePage.js.map +1 -1
  41. package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js +522 -225
  42. package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js.map +1 -1
  43. package/dist/headshotmarketing/pages/ads/AdCreativesPage.js +749 -147
  44. package/dist/headshotmarketing/pages/ads/AdCreativesPage.js.map +1 -1
  45. package/dist/headshotmarketing/pages/ads/AdsPage.js +197 -188
  46. package/dist/headshotmarketing/pages/ads/AdsPage.js.map +1 -1
  47. package/dist/headshotmarketing/pages/ads/AudiencesPage.js +583 -147
  48. package/dist/headshotmarketing/pages/ads/AudiencesPage.js.map +1 -1
  49. package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js +218 -206
  50. package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js.map +1 -1
  51. package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js +244 -237
  52. package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js.map +1 -1
  53. package/dist/headshotmarketing/pages/analytics/AnalyticsPage.js +278 -272
  54. package/dist/headshotmarketing/pages/analytics/AnalyticsPage.js.map +1 -1
  55. package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js +197 -193
  56. package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js.map +1 -1
  57. package/dist/headshotmarketing/pages/analytics/ReportsPage.js +254 -295
  58. package/dist/headshotmarketing/pages/analytics/ReportsPage.js.map +1 -1
  59. package/dist/headshotmarketing/pages/analytics/SocialAnalyticsPage.js +221 -211
  60. package/dist/headshotmarketing/pages/analytics/SocialAnalyticsPage.js.map +1 -1
  61. package/dist/headshotmarketing/pages/automation/AutomationPage.js +239 -168
  62. package/dist/headshotmarketing/pages/automation/AutomationPage.js.map +1 -1
  63. package/dist/headshotmarketing/pages/automation/TriggersPage.js +150 -102
  64. package/dist/headshotmarketing/pages/automation/TriggersPage.js.map +1 -1
  65. package/dist/headshotmarketing/pages/automation/WorkflowActions.js +287 -0
  66. package/dist/headshotmarketing/pages/automation/WorkflowActions.js.map +1 -0
  67. package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js +56 -58
  68. package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js.map +1 -1
  69. package/dist/headshotmarketing/pages/automation/WorkflowsPage.js +211 -179
  70. package/dist/headshotmarketing/pages/automation/WorkflowsPage.js.map +1 -1
  71. package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js +444 -306
  72. package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js.map +1 -1
  73. package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js +290 -217
  74. package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js.map +1 -1
  75. package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js +189 -151
  76. package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js.map +1 -1
  77. package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js +417 -274
  78. package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js.map +1 -1
  79. package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js +345 -260
  80. package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js.map +1 -1
  81. package/dist/headshotmarketing/pages/content/AIToolsPage.js +261 -192
  82. package/dist/headshotmarketing/pages/content/AIToolsPage.js.map +1 -1
  83. package/dist/headshotmarketing/pages/content/AssetLibraryPage.js +213 -141
  84. package/dist/headshotmarketing/pages/content/AssetLibraryPage.js.map +1 -1
  85. package/dist/headshotmarketing/pages/content/ContentAnalyticsPage.js +242 -246
  86. package/dist/headshotmarketing/pages/content/ContentAnalyticsPage.js.map +1 -1
  87. package/dist/headshotmarketing/pages/content/ContentCreationPage.js +184 -136
  88. package/dist/headshotmarketing/pages/content/ContentCreationPage.js.map +1 -1
  89. package/dist/headshotmarketing/pages/content/ContentPage.js +208 -159
  90. package/dist/headshotmarketing/pages/content/ContentPage.js.map +1 -1
  91. package/dist/headshotmarketing/pages/crm/ContactsPage.js +336 -265
  92. package/dist/headshotmarketing/pages/crm/ContactsPage.js.map +1 -1
  93. package/dist/headshotmarketing/pages/crm/CreateContactPage.js +76 -87
  94. package/dist/headshotmarketing/pages/crm/CreateContactPage.js.map +1 -1
  95. package/dist/headshotmarketing/pages/crm/CreateDealPage.js +195 -196
  96. package/dist/headshotmarketing/pages/crm/CreateDealPage.js.map +1 -1
  97. package/dist/headshotmarketing/pages/crm/CrmActions.js +663 -0
  98. package/dist/headshotmarketing/pages/crm/CrmActions.js.map +1 -0
  99. package/dist/headshotmarketing/pages/crm/CrmPage.js +237 -207
  100. package/dist/headshotmarketing/pages/crm/CrmPage.js.map +1 -1
  101. package/dist/headshotmarketing/pages/crm/LeadsPage.js +168 -165
  102. package/dist/headshotmarketing/pages/crm/LeadsPage.js.map +1 -1
  103. package/dist/headshotmarketing/pages/crm/PipelinePage.js +189 -178
  104. package/dist/headshotmarketing/pages/crm/PipelinePage.js.map +1 -1
  105. package/dist/headshotmarketing/pages/events/CreateEventPage.js +188 -190
  106. package/dist/headshotmarketing/pages/events/CreateEventPage.js.map +1 -1
  107. package/dist/headshotmarketing/pages/events/EventsPage.js +256 -238
  108. package/dist/headshotmarketing/pages/events/EventsPage.js.map +1 -1
  109. package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js +195 -167
  110. package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js.map +1 -1
  111. package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js +280 -243
  112. package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js.map +1 -1
  113. package/dist/headshotmarketing/pages/influencers/InfluencersPage.js +186 -183
  114. package/dist/headshotmarketing/pages/influencers/InfluencersPage.js.map +1 -1
  115. package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js +303 -231
  116. package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js.map +1 -1
  117. package/dist/headshotmarketing/pages/seo/SeoToolsPage.js +460 -310
  118. package/dist/headshotmarketing/pages/seo/SeoToolsPage.js.map +1 -1
  119. package/dist/headshotmarketing/pages/social-media/AccountsPage.js +318 -104
  120. package/dist/headshotmarketing/pages/social-media/AccountsPage.js.map +1 -1
  121. package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js +266 -255
  122. package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js.map +1 -1
  123. package/dist/headshotmarketing/pages/social-media/PostsPage.js +365 -202
  124. package/dist/headshotmarketing/pages/social-media/PostsPage.js.map +1 -1
  125. package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js +321 -233
  126. package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js.map +1 -1
  127. package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js +324 -308
  128. package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js.map +1 -1
  129. package/dist/headshotmarketing/utils/adsMapper.js +74 -51
  130. package/dist/headshotmarketing/utils/adsMapper.js.map +1 -1
  131. package/dist/headshotmarketing/utils/helpers.js +11 -1
  132. package/dist/headshotmarketing/utils/helpers.js.map +1 -1
  133. package/dist/headshotmarketing/utils/influencerMapper.js +1 -0
  134. package/dist/headshotmarketing/utils/influencerMapper.js.map +1 -1
  135. package/package.json +1 -1
  136. package/dist/headshotmarketing/utils/reportMapper.js +0 -33
  137. package/dist/headshotmarketing/utils/reportMapper.js.map +0 -1
@@ -1,206 +1,642 @@
1
- import { useHeadshotMarketing as e } from "../../context/HeadshotMarketingContext.js";
2
- import { useHeadshotmarketingBootstrapDataQuery as t } from "../../../generated/wspace-operations.js";
3
- import { cn as n, formatNumber as r, formatPercentage as i } from "../../utils/helpers.js";
4
- import { toAudienceModel as a } from "../../utils/adsMapper.js";
5
- import { PageLayout as o } from "../../components/PageLayout.js";
6
- import { StatusBadge as s } from "../../components/StatusBadge.js";
7
- import { EmptyState as c } from "../../components/EmptyState.js";
1
+ import { useCreateHeadshotmarketingAudienceMutation as e, useDeleteHeadshotmarketingAudienceMutation as t, useHeadshotmarketingAudiencesListQuery as n, useUpdateHeadshotmarketingAudienceMutation as r } from "../../../generated/wspace-operations.js";
2
+ import { useHeadshotMarketing as i } from "../../context/HeadshotMarketingContext.js";
3
+ import { cn as a, formatNumber as o, formatPercentage as s } from "../../utils/helpers.js";
4
+ import { toAudienceModel as c } from "../../utils/adsMapper.js";
5
+ import { PageLayout as l } from "../../components/PageLayout.js";
6
+ import { StatusBadge as u } from "../../components/StatusBadge.js";
7
+ import { EmptyState as ee } from "../../components/EmptyState.js";
8
+ import { Modal as d } from "../../components/Modal.js";
9
+ import { QueryStateBoundary as te } from "../../components/QueryStateBoundary.js";
10
+ import { Pagination as ne } from "../../components/Pagination.js";
8
11
  import "../../components/index.js";
9
- import { useMemo as l, useState as u } from "react";
10
- import { Globe as d, MoreHorizontal as f, Plus as p, Target as m, Users as h } from "lucide-react";
11
- import { jsx as g, jsxs as _ } from "react/jsx-runtime";
12
- import { EmphasisPanel as v, PagePurpose as y } from "@burdenoff/fe-libs/ui";
12
+ import { useHeadshotmarketingBootstrap as re } from "../../hooks/useHeadshotmarketingBootstrap.js";
13
+ import { usePagination as ie } from "../../hooks/usePagination.js";
14
+ import { useEffect as f, useMemo as p, useState as m } from "react";
15
+ import { Globe as h, Megaphone as g, MoreHorizontal as _, Pencil as v, Plus as y, Target as b, Trash2 as x, Users as S } from "lucide-react";
16
+ import { useExclusiveMenu as C } from "@burdenoff/fe-libs/shared/hooks";
17
+ import { Fragment as w, jsx as T, jsxs as E } from "react/jsx-runtime";
18
+ import { EmphasisPanel as ae, PagePurpose as oe } from "@burdenoff/fe-libs/ui";
13
19
  //#region src/headshotmarketing/pages/ads/AudiencesPage.tsx
14
- var b = {
20
+ var D = {
15
21
  custom: "bg-status-info-bg text-status-info-text",
16
22
  lookalike: "bg-[var(--color-accent-soft)] text-action-primary-bg",
17
23
  saved: "bg-status-success-bg text-status-success-text",
18
24
  retargeting: "bg-status-warning-bg text-status-warning-text"
19
- }, x = {
25
+ }, O = {
20
26
  google_ads: "Google Ads",
21
27
  facebook: "Facebook",
22
28
  instagram: "Instagram",
23
29
  linkedin: "LinkedIn",
24
30
  twitter: "Twitter"
25
- }, S = () => {
26
- let { navigate: S } = e(), { data: C } = t({ variables: {
27
- limit: 200,
28
- offset: 0
29
- } }), [w, T] = u(""), E = l(() => (C?.headshotmarketingAudiences.items ?? []).map((e) => a(e)), [C?.headshotmarketingAudiences.items]), D = l(() => {
30
- if (!w) return E;
31
- let e = w.toLowerCase();
32
- return E.filter((t) => t.name.toLowerCase().includes(e) || t.description.toLowerCase().includes(e));
33
- }, [w, E]), O = l(() => {
34
- let e = E.filter((e) => e.status === "active").length, t = E.reduce((e, t) => e + t.size, 0), n = E.filter((e) => e.matchRate > 0), r = n.length > 0 ? n.reduce((e, t) => e + t.matchRate, 0) / n.length : 0;
31
+ }, k = [
32
+ "all",
33
+ "male",
34
+ "female"
35
+ ], A = {
36
+ name: "",
37
+ description: "",
38
+ estimatedSize: "",
39
+ isActive: !0,
40
+ ageMin: "18",
41
+ ageMax: "65",
42
+ genders: ["all"],
43
+ locations: "United States",
44
+ interests: "",
45
+ platform: "google_ads"
46
+ };
47
+ function j(e) {
48
+ let t = (e) => e.split(",").map((e) => e.trim()).filter(Boolean);
49
+ return {
50
+ ageMin: Number(e.ageMin) || 18,
51
+ ageMax: Number(e.ageMax) || 65,
52
+ genders: e.genders.length > 0 ? e.genders : ["all"],
53
+ locations: t(e.locations),
54
+ interests: t(e.interests),
55
+ platform: e.platform
56
+ };
57
+ }
58
+ var M = () => {
59
+ let { navigate: a, basePath: u } = i(), { data: h, refetch: g } = re(), [_, v] = m(""), [b, x] = m(""), [S, C] = m(null), [D, O] = m(!1), [k, M] = m(A), [P, F] = m(null), [I, L] = m(null), [R, z] = m(null), B = ie({ initialPageSize: 9 }), { limit: ce, offset: le, setPage: V, setTotal: H } = B;
60
+ f(() => {
61
+ let e = setTimeout(() => x(_), 300);
62
+ return () => clearTimeout(e);
63
+ }, [_]), f(() => {
64
+ V(1);
65
+ }, [b, V]);
66
+ let { data: U, loading: W, error: ue, refetch: G } = n({
67
+ variables: {
68
+ limit: ce,
69
+ offset: le,
70
+ search: b || null
71
+ },
72
+ errorPolicy: "all",
73
+ notifyOnNetworkStatusChange: !0
74
+ }), K = U?.headshotmarketingAudiences.total ?? 0;
75
+ f(() => {
76
+ H(K);
77
+ }, [K, H]);
78
+ let q = p(() => (U?.headshotmarketingAudiences.items ?? []).map((e) => c(e)), [U?.headshotmarketingAudiences.items]), J = p(() => {
79
+ let e = (h?.headshotmarketingAudiences.items ?? []).map((e) => c(e)), t = e.filter((e) => e.status === "active").length, n = e.reduce((e, t) => e + t.size, 0), r = e.filter((e) => e.matchRate > 0), i = r.length > 0 ? r.reduce((e, t) => e + t.matchRate, 0) / r.length : 0;
35
80
  return {
36
- total: E.length,
37
- active: e,
38
- totalReach: t,
39
- avgMatch: r
81
+ total: e.length,
82
+ active: t,
83
+ totalReach: n,
84
+ avgMatch: i
40
85
  };
41
- }, [E]);
42
- return /* @__PURE__ */ _(o, {
86
+ }, [h?.headshotmarketingAudiences.items]), [de, { loading: Y }] = e(), [X, { loading: Z }] = r(), [fe, { loading: Q }] = t(), $ = async () => {
87
+ await Promise.all([G(), g()]);
88
+ }, pe = async () => {
89
+ if (!k.name.trim()) {
90
+ z("Audience name is required.");
91
+ return;
92
+ }
93
+ z(null);
94
+ try {
95
+ await de({ variables: { input: {
96
+ name: k.name.trim(),
97
+ description: k.description || null,
98
+ estimatedSize: k.estimatedSize ? Number(k.estimatedSize) : null,
99
+ isActive: k.isActive,
100
+ targetingCriteria: j(k)
101
+ } } }), O(!1), M(A), await $();
102
+ } catch (e) {
103
+ z(e instanceof Error ? e.message : "Failed to create audience.");
104
+ }
105
+ }, me = (e) => {
106
+ C(null), z(null), F({
107
+ id: e.id,
108
+ form: {
109
+ name: e.name,
110
+ description: e.description,
111
+ estimatedSize: e.size > 0 ? String(e.size) : "",
112
+ isActive: e.status === "active",
113
+ ageMin: String(e.demographics.ageRange.min),
114
+ ageMax: String(e.demographics.ageRange.max),
115
+ genders: e.demographics.genders.length > 0 ? e.demographics.genders : ["all"],
116
+ locations: e.demographics.locations.join(", "),
117
+ interests: e.interests.join(", "),
118
+ platform: e.platform
119
+ }
120
+ });
121
+ }, he = async () => {
122
+ if (P) {
123
+ if (!P.form.name.trim()) {
124
+ z("Audience name is required.");
125
+ return;
126
+ }
127
+ z(null);
128
+ try {
129
+ await X({ variables: {
130
+ id: P.id,
131
+ input: {
132
+ name: P.form.name.trim(),
133
+ description: P.form.description || null,
134
+ estimatedSize: P.form.estimatedSize ? Number(P.form.estimatedSize) : null,
135
+ isActive: P.form.isActive,
136
+ targetingCriteria: j(P.form)
137
+ }
138
+ } }), F(null), await $();
139
+ } catch (e) {
140
+ z(e instanceof Error ? e.message : "Failed to save audience.");
141
+ }
142
+ }
143
+ }, ge = async () => {
144
+ if (I) {
145
+ z(null);
146
+ try {
147
+ await fe({ variables: { id: I.id } }), L(null), await $();
148
+ } catch (e) {
149
+ z(e instanceof Error ? e.message : "Failed to delete audience.");
150
+ }
151
+ }
152
+ }, _e = (e) => {
153
+ C(null), a(`${u}/ads/campaigns/new?${new URLSearchParams({
154
+ audienceId: e.id,
155
+ audienceName: e.name
156
+ }).toString()}`);
157
+ };
158
+ return /* @__PURE__ */ E(l, {
43
159
  title: "Audiences",
44
160
  description: "Create and manage your target audiences",
45
- actions: /* @__PURE__ */ _("button", {
161
+ actions: /* @__PURE__ */ E("button", {
162
+ onClick: () => {
163
+ z(null), M(A), O(!0);
164
+ },
46
165
  className: "inline-flex items-center gap-2 rounded-md bg-foreground px-4 py-2 text-sm font-medium text-background hover:bg-foreground/90",
47
- children: [/* @__PURE__ */ g(p, { className: "h-4 w-4" }), "Create Audience"]
166
+ children: [/* @__PURE__ */ T(y, { className: "h-4 w-4" }), "Create Audience"]
48
167
  }),
49
168
  children: [
50
- /* @__PURE__ */ g(y, { children: "Define and reuse the groups of people your ads should reach — custom lists, lookalikes and retargeting audiences. Save an audience once, then target it across any campaign and track how well it matches." }),
51
- /* @__PURE__ */ g(v, { children: /* @__PURE__ */ _("div", {
169
+ /* @__PURE__ */ T(oe, { children: "Define and reuse the groups of people your ads should reach — custom lists, lookalikes and retargeting audiences. Save an audience once, then target it across any campaign and track how well it matches." }),
170
+ /* @__PURE__ */ T(ae, { children: /* @__PURE__ */ E("div", {
52
171
  className: "grid grid-cols-2 gap-4 sm:grid-cols-4",
53
172
  children: [
54
- /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
173
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
55
174
  className: "text-xs text-text-secondary",
56
175
  children: "Audiences"
57
- }), /* @__PURE__ */ g("p", {
176
+ }), /* @__PURE__ */ T("p", {
58
177
  className: "text-2xl font-semibold text-text-primary",
59
- children: r(O.total)
178
+ children: o(J.total)
60
179
  })] }),
61
- /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
180
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
62
181
  className: "text-xs text-text-secondary",
63
182
  children: "Active"
64
- }), /* @__PURE__ */ g("p", {
183
+ }), /* @__PURE__ */ T("p", {
65
184
  className: "text-2xl font-semibold text-text-primary",
66
- children: r(O.active)
185
+ children: o(J.active)
67
186
  })] }),
68
- /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
187
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
69
188
  className: "text-xs text-text-secondary",
70
189
  children: "Total Reach"
71
- }), /* @__PURE__ */ g("p", {
190
+ }), /* @__PURE__ */ T("p", {
72
191
  className: "text-2xl font-semibold text-text-primary",
73
- children: r(O.totalReach)
192
+ children: o(J.totalReach)
74
193
  })] }),
75
- /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
194
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
76
195
  className: "text-xs text-text-secondary",
77
196
  children: "Avg Match Rate"
78
- }), /* @__PURE__ */ g("p", {
197
+ }), /* @__PURE__ */ T("p", {
79
198
  className: "text-2xl font-semibold text-text-primary",
80
- children: i(O.avgMatch, 0)
199
+ children: s(J.avgMatch, 0)
81
200
  })] })
82
201
  ]
83
202
  }) }),
84
- /* @__PURE__ */ g("div", {
203
+ /* @__PURE__ */ T("div", {
85
204
  className: "relative max-w-md",
86
- children: /* @__PURE__ */ g("input", {
205
+ children: /* @__PURE__ */ T("input", {
87
206
  type: "text",
88
- value: w,
89
- onChange: (e) => T(e.target.value),
207
+ value: _,
208
+ onChange: (e) => v(e.target.value),
90
209
  placeholder: "Search audiences...",
91
210
  className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
92
211
  })
93
212
  }),
94
- D.length === 0 && /* @__PURE__ */ g(c, {
95
- illustration: E.length === 0 ? "empty-people" : "empty-search",
96
- title: E.length === 0 ? "No audiences yet" : "No audiences match your search",
97
- description: E.length === 0 ? "Create your first audience to target the right people in your campaigns." : "Try a different search term.",
98
- action: E.length === 0 ? /* @__PURE__ */ _("button", {
99
- className: "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",
100
- children: [/* @__PURE__ */ g(p, { className: "h-4 w-4" }), "Create Audience"]
101
- }) : void 0
213
+ R && !D && !P && /* @__PURE__ */ T("div", {
214
+ role: "alert",
215
+ className: "rounded-lg border border-status-error-border/30 bg-status-error-bg/10 px-4 py-3 text-sm text-status-error-text",
216
+ children: R
217
+ }),
218
+ /* @__PURE__ */ T(te, {
219
+ loading: W,
220
+ error: ue,
221
+ onRetry: G,
222
+ hasData: !!U,
223
+ children: q.length === 0 ? /* @__PURE__ */ T(ee, {
224
+ illustration: K === 0 ? "empty-people" : "empty-search",
225
+ title: K === 0 ? "No audiences yet" : "No audiences match your search",
226
+ description: K === 0 ? "Create your first audience to target the right people in your campaigns." : "Try a different search term.",
227
+ action: K === 0 ? /* @__PURE__ */ E("button", {
228
+ onClick: () => {
229
+ z(null), M(A), O(!0);
230
+ },
231
+ className: "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",
232
+ children: [/* @__PURE__ */ T(y, { className: "h-4 w-4" }), "Create Audience"]
233
+ }) : void 0
234
+ }) : /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T("div", {
235
+ className: "grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3",
236
+ children: q.map((e) => /* @__PURE__ */ T(se, {
237
+ audience: e,
238
+ menuOpen: S === e.id,
239
+ onToggleMenu: () => C(S === e.id ? null : e.id),
240
+ onCloseMenu: () => C(null),
241
+ onEdit: () => me(e),
242
+ onDelete: () => {
243
+ C(null), L(e);
244
+ },
245
+ onUseInCampaign: () => _e(e)
246
+ }, e.id))
247
+ }), /* @__PURE__ */ T(ne, {
248
+ page: B.page,
249
+ pageSize: B.pageSize,
250
+ total: B.total,
251
+ onPageChange: B.setPage,
252
+ onPageSizeChange: B.setPageSize,
253
+ pageSizeOptions: [
254
+ 9,
255
+ 18,
256
+ 36
257
+ ],
258
+ disabled: W,
259
+ hideWhenSinglePage: !0
260
+ })] })
261
+ }),
262
+ /* @__PURE__ */ T(d, {
263
+ open: D,
264
+ onClose: () => O(!1),
265
+ title: "Create Audience",
266
+ description: "Define who your ads should reach",
267
+ size: "lg",
268
+ footer: /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T("button", {
269
+ onClick: () => O(!1),
270
+ className: "rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken",
271
+ children: "Cancel"
272
+ }), /* @__PURE__ */ T("button", {
273
+ onClick: pe,
274
+ disabled: Y,
275
+ className: "rounded-md bg-foreground px-4 py-2 text-sm font-medium text-background hover:bg-foreground/90 disabled:opacity-60",
276
+ children: Y ? "Creating..." : "Create Audience"
277
+ })] }),
278
+ children: /* @__PURE__ */ T(N, {
279
+ form: k,
280
+ onChange: M,
281
+ error: R
282
+ })
283
+ }),
284
+ /* @__PURE__ */ T(d, {
285
+ open: P !== null,
286
+ onClose: () => F(null),
287
+ title: "Edit Audience",
288
+ description: "Update audience targeting",
289
+ size: "lg",
290
+ footer: /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T("button", {
291
+ onClick: () => F(null),
292
+ className: "rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken",
293
+ children: "Cancel"
294
+ }), /* @__PURE__ */ T("button", {
295
+ onClick: he,
296
+ disabled: Z,
297
+ className: "rounded-md bg-foreground px-4 py-2 text-sm font-medium text-background hover:bg-foreground/90 disabled:opacity-60",
298
+ children: Z ? "Saving..." : "Save Changes"
299
+ })] }),
300
+ children: P && /* @__PURE__ */ T(N, {
301
+ form: P.form,
302
+ onChange: (e) => F({
303
+ ...P,
304
+ form: e
305
+ }),
306
+ error: R
307
+ })
102
308
  }),
103
- /* @__PURE__ */ g("div", {
104
- className: "grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3",
105
- children: D.map((e) => /* @__PURE__ */ _("div", {
106
- className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-5 space-y-4 hover:border-foreground/30 transition-colors",
309
+ /* @__PURE__ */ T(d, {
310
+ open: I !== null,
311
+ onClose: () => L(null),
312
+ title: "Delete Audience",
313
+ size: "sm",
314
+ footer: /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T("button", {
315
+ onClick: () => L(null),
316
+ className: "rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken",
317
+ children: "Cancel"
318
+ }), /* @__PURE__ */ T("button", {
319
+ onClick: ge,
320
+ disabled: Q,
321
+ className: "rounded-md bg-status-error-text px-4 py-2 text-sm font-medium text-background hover:opacity-90 disabled:opacity-60",
322
+ children: Q ? "Deleting..." : "Delete"
323
+ })] }),
324
+ children: /* @__PURE__ */ E("p", {
325
+ className: "text-sm text-text-secondary",
107
326
  children: [
108
- /* @__PURE__ */ _("div", {
109
- className: "flex items-start justify-between",
110
- children: [/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("h3", {
111
- className: "text-sm font-semibold text-text-primary",
112
- children: e.name
113
- }), /* @__PURE__ */ g("p", {
114
- className: "text-xs text-text-secondary mt-0.5",
115
- children: e.description
116
- })] }), /* @__PURE__ */ g("button", {
117
- className: "text-text-secondary hover:text-text-primary",
118
- children: /* @__PURE__ */ g(f, { className: "h-4 w-4" })
119
- })]
327
+ "Are you sure you want to delete",
328
+ " ",
329
+ /* @__PURE__ */ T("span", {
330
+ className: "font-semibold text-text-primary",
331
+ children: I?.name
120
332
  }),
121
- /* @__PURE__ */ _("div", {
122
- className: "flex items-center gap-2",
123
- children: [
124
- /* @__PURE__ */ g("span", {
125
- className: n("rounded-full px-2.5 py-0.5 text-xs font-medium capitalize", b[e.type]),
126
- children: e.type
127
- }),
128
- /* @__PURE__ */ g(s, { status: e.status }),
129
- /* @__PURE__ */ g("span", {
130
- className: "text-xs text-text-secondary",
131
- children: x[e.platform]
132
- })
133
- ]
333
+ "? This action cannot be undone."
334
+ ]
335
+ })
336
+ })
337
+ ]
338
+ });
339
+ }, N = ({ form: e, onChange: t, error: n }) => {
340
+ let r = (n) => {
341
+ let r = e.genders.includes(n) ? e.genders.filter((e) => e !== n) : [...e.genders, n];
342
+ t({
343
+ ...e,
344
+ genders: r
345
+ });
346
+ };
347
+ return /* @__PURE__ */ E("div", {
348
+ className: "space-y-4",
349
+ children: [
350
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
351
+ className: "mb-1.5 block text-sm font-medium text-text-primary",
352
+ children: "Name"
353
+ }), /* @__PURE__ */ T("input", {
354
+ type: "text",
355
+ value: e.name,
356
+ onChange: (n) => t({
357
+ ...e,
358
+ name: n.target.value
359
+ }),
360
+ placeholder: "e.g., Returning Visitors — US",
361
+ className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
362
+ })] }),
363
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
364
+ className: "mb-1.5 block text-sm font-medium text-text-primary",
365
+ children: "Description"
366
+ }), /* @__PURE__ */ T("textarea", {
367
+ value: e.description,
368
+ onChange: (n) => t({
369
+ ...e,
370
+ description: n.target.value
371
+ }),
372
+ rows: 2,
373
+ className: "w-full resize-none rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
374
+ })] }),
375
+ /* @__PURE__ */ E("div", {
376
+ className: "grid grid-cols-1 gap-4 sm:grid-cols-3",
377
+ children: [
378
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
379
+ className: "mb-1.5 block text-sm font-medium text-text-primary",
380
+ children: "Estimated Size"
381
+ }), /* @__PURE__ */ T("input", {
382
+ type: "number",
383
+ value: e.estimatedSize,
384
+ onChange: (n) => t({
385
+ ...e,
386
+ estimatedSize: n.target.value
387
+ }),
388
+ className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
389
+ })] }),
390
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
391
+ className: "mb-1.5 block text-sm font-medium text-text-primary",
392
+ children: "Age Min"
393
+ }), /* @__PURE__ */ T("input", {
394
+ type: "number",
395
+ value: e.ageMin,
396
+ onChange: (n) => t({
397
+ ...e,
398
+ ageMin: n.target.value
399
+ }),
400
+ className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
401
+ })] }),
402
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
403
+ className: "mb-1.5 block text-sm font-medium text-text-primary",
404
+ children: "Age Max"
405
+ }), /* @__PURE__ */ T("input", {
406
+ type: "number",
407
+ value: e.ageMax,
408
+ onChange: (n) => t({
409
+ ...e,
410
+ ageMax: n.target.value
411
+ }),
412
+ className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
413
+ })] })
414
+ ]
415
+ }),
416
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
417
+ className: "mb-1.5 block text-sm font-medium text-text-primary",
418
+ children: "Gender"
419
+ }), /* @__PURE__ */ T("div", {
420
+ className: "flex flex-wrap gap-2",
421
+ children: k.map((t) => /* @__PURE__ */ T("button", {
422
+ type: "button",
423
+ onClick: () => r(t),
424
+ className: a("rounded-full border px-4 py-1.5 text-sm capitalize transition-colors", e.genders.includes(t) ? "border-foreground bg-foreground text-background" : "border-border-subtle text-text-primary hover:bg-bg-sunken"),
425
+ children: t
426
+ }, t))
427
+ })] }),
428
+ /* @__PURE__ */ E("div", {
429
+ className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
430
+ children: [/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
431
+ className: "mb-1.5 block text-sm font-medium text-text-primary",
432
+ children: "Locations"
433
+ }), /* @__PURE__ */ T("input", {
434
+ type: "text",
435
+ value: e.locations,
436
+ onChange: (n) => t({
437
+ ...e,
438
+ locations: n.target.value
439
+ }),
440
+ placeholder: "Comma-separated",
441
+ className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
442
+ })] }), /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
443
+ className: "mb-1.5 block text-sm font-medium text-text-primary",
444
+ children: "Platform"
445
+ }), /* @__PURE__ */ E("select", {
446
+ value: e.platform,
447
+ onChange: (n) => t({
448
+ ...e,
449
+ platform: n.target.value
450
+ }),
451
+ className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
452
+ children: [
453
+ /* @__PURE__ */ T("option", {
454
+ value: "google_ads",
455
+ children: "Google Ads"
134
456
  }),
135
- /* @__PURE__ */ _("div", {
136
- className: "flex items-center gap-2",
137
- children: [
138
- /* @__PURE__ */ g(h, { className: "h-4 w-4 text-text-secondary" }),
139
- /* @__PURE__ */ g("span", {
140
- className: "text-sm font-medium text-text-primary",
141
- children: r(e.size)
142
- }),
143
- /* @__PURE__ */ g("span", {
144
- className: "text-xs text-text-secondary",
145
- children: "people"
146
- }),
147
- e.matchRate > 0 && /* @__PURE__ */ _("span", {
148
- className: "ml-auto text-xs text-text-secondary",
149
- children: ["Match: ", i(e.matchRate, 0)]
150
- })
151
- ]
457
+ /* @__PURE__ */ T("option", {
458
+ value: "facebook",
459
+ children: "Facebook"
152
460
  }),
153
- /* @__PURE__ */ _("div", {
154
- className: "space-y-2",
155
- children: [/* @__PURE__ */ _("div", {
156
- className: "flex items-center gap-2 text-xs text-text-secondary",
157
- children: [
158
- /* @__PURE__ */ g(m, { className: "h-3.5 w-3.5" }),
159
- /* @__PURE__ */ _("span", { children: [
160
- "Ages ",
161
- e.demographics.ageRange.min,
162
- "-",
163
- e.demographics.ageRange.max
164
- ] }),
165
- /* @__PURE__ */ g("span", { children: "·" }),
166
- /* @__PURE__ */ g("span", { children: e.demographics.genders.join(", ") })
167
- ]
168
- }), /* @__PURE__ */ _("div", {
169
- className: "flex items-center gap-2 text-xs text-text-secondary",
170
- children: [/* @__PURE__ */ g(d, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ g("span", { children: e.demographics.locations.join(", ") })]
171
- })]
461
+ /* @__PURE__ */ T("option", {
462
+ value: "instagram",
463
+ children: "Instagram"
172
464
  }),
173
- /* @__PURE__ */ _("div", {
174
- className: "flex flex-wrap gap-1",
175
- children: [e.interests.slice(0, 4).map((e) => /* @__PURE__ */ g("span", {
176
- className: "rounded-full border border-border-subtle px-2 py-0.5 text-[10px] text-text-secondary",
177
- children: e
178
- }, e)), e.interests.length > 4 && /* @__PURE__ */ _("span", {
179
- className: "text-[10px] text-text-secondary",
180
- children: [
181
- "+",
182
- e.interests.length - 4,
183
- " more"
184
- ]
185
- })]
465
+ /* @__PURE__ */ T("option", {
466
+ value: "linkedin",
467
+ children: "LinkedIn"
186
468
  }),
187
- /* @__PURE__ */ _("div", {
188
- className: "flex items-center gap-2 pt-2 border-t border-border-subtle",
189
- children: [/* @__PURE__ */ g("button", {
190
- className: "flex-1 rounded-md border border-border-subtle py-1.5 text-xs font-medium text-text-primary hover:bg-bg-sunken",
191
- children: "Edit"
192
- }), /* @__PURE__ */ g("button", {
193
- className: "flex-1 rounded-md border border-border-subtle py-1.5 text-xs font-medium text-text-primary hover:bg-bg-sunken",
194
- children: "Use in Campaign"
195
- })]
469
+ /* @__PURE__ */ T("option", {
470
+ value: "twitter",
471
+ children: "Twitter"
196
472
  })
197
473
  ]
198
- }, e.id))
474
+ })] })]
475
+ }),
476
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
477
+ className: "mb-1.5 block text-sm font-medium text-text-primary",
478
+ children: "Interests"
479
+ }), /* @__PURE__ */ T("input", {
480
+ type: "text",
481
+ value: e.interests,
482
+ onChange: (n) => t({
483
+ ...e,
484
+ interests: n.target.value
485
+ }),
486
+ placeholder: "Comma-separated interests",
487
+ className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
488
+ })] }),
489
+ /* @__PURE__ */ E("label", {
490
+ className: "flex items-center gap-2 text-sm text-text-primary",
491
+ children: [/* @__PURE__ */ T("input", {
492
+ type: "checkbox",
493
+ checked: e.isActive,
494
+ onChange: (n) => t({
495
+ ...e,
496
+ isActive: n.target.checked
497
+ }),
498
+ className: "h-4 w-4 rounded border-border-subtle"
499
+ }), "Active"]
500
+ }),
501
+ n && /* @__PURE__ */ T("p", {
502
+ className: "text-sm text-status-error-text",
503
+ children: n
199
504
  })
200
505
  ]
201
506
  });
202
- };
507
+ }, se = ({ audience: e, menuOpen: t, onToggleMenu: n, onCloseMenu: r, onEdit: i, onDelete: c, onUseInCampaign: l }) => (C(`audience-${e.id}`, t, r), /* @__PURE__ */ E("div", {
508
+ className: "space-y-4 rounded-lg border border-border-seam bg-gloss-card shadow-pop p-5 transition-colors hover:border-foreground/30",
509
+ children: [
510
+ /* @__PURE__ */ E("div", {
511
+ className: "flex items-start justify-between gap-2",
512
+ children: [/* @__PURE__ */ E("div", {
513
+ className: "min-w-0",
514
+ children: [/* @__PURE__ */ T("h3", {
515
+ className: "text-sm font-semibold text-text-primary",
516
+ children: e.name
517
+ }), /* @__PURE__ */ T("p", {
518
+ className: "mt-0.5 text-xs text-text-secondary",
519
+ children: e.description
520
+ })]
521
+ }), /* @__PURE__ */ E("div", {
522
+ className: "relative shrink-0",
523
+ children: [/* @__PURE__ */ T("button", {
524
+ onClick: n,
525
+ "aria-haspopup": "menu",
526
+ "aria-expanded": t,
527
+ "aria-label": "Audience actions",
528
+ className: "text-text-secondary hover:text-text-primary",
529
+ children: /* @__PURE__ */ T(_, { className: "h-4 w-4" })
530
+ }), t && /* @__PURE__ */ E("div", {
531
+ role: "menu",
532
+ className: "absolute right-0 top-6 z-20 w-44 rounded-md border border-border-seam bg-gloss-card py-1 shadow-lg",
533
+ children: [
534
+ /* @__PURE__ */ E("button", {
535
+ role: "menuitem",
536
+ onClick: i,
537
+ className: "flex w-full items-center gap-2 px-4 py-2 text-left text-sm text-text-primary hover:bg-bg-sunken",
538
+ children: [/* @__PURE__ */ T(v, { className: "h-3.5 w-3.5" }), "Edit"]
539
+ }),
540
+ /* @__PURE__ */ E("button", {
541
+ role: "menuitem",
542
+ onClick: l,
543
+ className: "flex w-full items-center gap-2 px-4 py-2 text-left text-sm text-text-primary hover:bg-bg-sunken",
544
+ children: [/* @__PURE__ */ T(g, { className: "h-3.5 w-3.5" }), "Use in Campaign"]
545
+ }),
546
+ /* @__PURE__ */ E("button", {
547
+ role: "menuitem",
548
+ onClick: c,
549
+ className: "flex w-full items-center gap-2 px-4 py-2 text-left text-sm text-status-error-text hover:bg-bg-sunken",
550
+ children: [/* @__PURE__ */ T(x, { className: "h-3.5 w-3.5" }), "Delete"]
551
+ })
552
+ ]
553
+ })]
554
+ })]
555
+ }),
556
+ /* @__PURE__ */ E("div", {
557
+ className: "flex flex-wrap items-center gap-2",
558
+ children: [
559
+ /* @__PURE__ */ T("span", {
560
+ className: a("rounded-full px-2.5 py-0.5 text-xs font-medium capitalize", D[e.type]),
561
+ children: e.type
562
+ }),
563
+ /* @__PURE__ */ T(u, { status: e.status }),
564
+ /* @__PURE__ */ T("span", {
565
+ className: "text-xs text-text-secondary",
566
+ children: O[e.platform]
567
+ })
568
+ ]
569
+ }),
570
+ /* @__PURE__ */ E("div", {
571
+ className: "flex items-center gap-2",
572
+ children: [
573
+ /* @__PURE__ */ T(S, { className: "h-4 w-4 text-text-secondary" }),
574
+ /* @__PURE__ */ T("span", {
575
+ className: "text-sm font-medium text-text-primary",
576
+ children: o(e.size)
577
+ }),
578
+ /* @__PURE__ */ T("span", {
579
+ className: "text-xs text-text-secondary",
580
+ children: "people"
581
+ }),
582
+ e.matchRate > 0 && /* @__PURE__ */ E("span", {
583
+ className: "ml-auto text-xs text-text-secondary",
584
+ children: ["Match: ", s(e.matchRate, 0)]
585
+ })
586
+ ]
587
+ }),
588
+ /* @__PURE__ */ E("div", {
589
+ className: "space-y-2",
590
+ children: [/* @__PURE__ */ E("div", {
591
+ className: "flex items-center gap-2 text-xs text-text-secondary",
592
+ children: [
593
+ /* @__PURE__ */ T(b, { className: "h-3.5 w-3.5" }),
594
+ /* @__PURE__ */ E("span", { children: [
595
+ "Ages ",
596
+ e.demographics.ageRange.min,
597
+ "-",
598
+ e.demographics.ageRange.max
599
+ ] }),
600
+ /* @__PURE__ */ T("span", { children: "·" }),
601
+ /* @__PURE__ */ T("span", {
602
+ className: "capitalize",
603
+ children: e.demographics.genders.join(", ")
604
+ })
605
+ ]
606
+ }), /* @__PURE__ */ E("div", {
607
+ className: "flex items-center gap-2 text-xs text-text-secondary",
608
+ children: [/* @__PURE__ */ T(h, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ T("span", { children: e.demographics.locations.join(", ") })]
609
+ })]
610
+ }),
611
+ /* @__PURE__ */ E("div", {
612
+ className: "flex flex-wrap gap-1",
613
+ children: [e.interests.slice(0, 4).map((e) => /* @__PURE__ */ T("span", {
614
+ className: "rounded-full border border-border-subtle px-2 py-0.5 text-[10px] text-text-secondary",
615
+ children: e
616
+ }, e)), e.interests.length > 4 && /* @__PURE__ */ E("span", {
617
+ className: "text-[10px] text-text-secondary",
618
+ children: [
619
+ "+",
620
+ e.interests.length - 4,
621
+ " more"
622
+ ]
623
+ })]
624
+ }),
625
+ /* @__PURE__ */ E("div", {
626
+ className: "flex flex-wrap items-center gap-2 border-t border-border-subtle pt-2",
627
+ children: [/* @__PURE__ */ T("button", {
628
+ onClick: i,
629
+ className: "flex-1 rounded-md border border-border-subtle py-1.5 text-xs font-medium text-text-primary hover:bg-bg-sunken",
630
+ children: "Edit"
631
+ }), /* @__PURE__ */ T("button", {
632
+ onClick: l,
633
+ className: "flex-1 rounded-md border border-border-subtle py-1.5 text-xs font-medium text-text-primary hover:bg-bg-sunken",
634
+ children: "Use in Campaign"
635
+ })]
636
+ })
637
+ ]
638
+ }));
203
639
  //#endregion
204
- export { S as AudiencesPage };
640
+ export { M as AudiencesPage };
205
641
 
206
642
  //# sourceMappingURL=AudiencesPage.js.map