@burdenoff/microfe-headshotmarketing 2026.625.1 → 2026.626.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 (89) hide show
  1. package/dist/headshotmarketing/components/DataTable.js +58 -53
  2. package/dist/headshotmarketing/components/DataTable.js.map +1 -1
  3. package/dist/headshotmarketing/pages/HomePage.js +146 -119
  4. package/dist/headshotmarketing/pages/HomePage.js.map +1 -1
  5. package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js +276 -219
  6. package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js.map +1 -1
  7. package/dist/headshotmarketing/pages/ads/AdCreativesPage.js +202 -146
  8. package/dist/headshotmarketing/pages/ads/AdCreativesPage.js.map +1 -1
  9. package/dist/headshotmarketing/pages/ads/AdsPage.js +138 -99
  10. package/dist/headshotmarketing/pages/ads/AdsPage.js.map +1 -1
  11. package/dist/headshotmarketing/pages/ads/AudiencesPage.js +173 -117
  12. package/dist/headshotmarketing/pages/ads/AudiencesPage.js.map +1 -1
  13. package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js +196 -194
  14. package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js.map +1 -1
  15. package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js +40 -38
  16. package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js.map +1 -1
  17. package/dist/headshotmarketing/pages/analytics/AnalyticsPage.js +123 -95
  18. package/dist/headshotmarketing/pages/analytics/AnalyticsPage.js.map +1 -1
  19. package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js +23 -21
  20. package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js.map +1 -1
  21. package/dist/headshotmarketing/pages/analytics/ReportsPage.js +95 -83
  22. package/dist/headshotmarketing/pages/analytics/ReportsPage.js.map +1 -1
  23. package/dist/headshotmarketing/pages/analytics/SocialAnalyticsPage.js +23 -21
  24. package/dist/headshotmarketing/pages/analytics/SocialAnalyticsPage.js.map +1 -1
  25. package/dist/headshotmarketing/pages/automation/AutomationPage.js +98 -59
  26. package/dist/headshotmarketing/pages/automation/AutomationPage.js.map +1 -1
  27. package/dist/headshotmarketing/pages/automation/TriggersPage.js +134 -97
  28. package/dist/headshotmarketing/pages/automation/TriggersPage.js.map +1 -1
  29. package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js +46 -44
  30. package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js.map +1 -1
  31. package/dist/headshotmarketing/pages/automation/WorkflowsPage.js +220 -137
  32. package/dist/headshotmarketing/pages/automation/WorkflowsPage.js.map +1 -1
  33. package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js +267 -262
  34. package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js.map +1 -1
  35. package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js +201 -173
  36. package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js.map +1 -1
  37. package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js +85 -91
  38. package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js.map +1 -1
  39. package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js +160 -147
  40. package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js.map +1 -1
  41. package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js +66 -64
  42. package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js.map +1 -1
  43. package/dist/headshotmarketing/pages/content/AIToolsPage.js +82 -74
  44. package/dist/headshotmarketing/pages/content/AIToolsPage.js.map +1 -1
  45. package/dist/headshotmarketing/pages/content/AssetLibraryPage.js +93 -48
  46. package/dist/headshotmarketing/pages/content/AssetLibraryPage.js.map +1 -1
  47. package/dist/headshotmarketing/pages/content/ContentAnalyticsPage.js +23 -21
  48. package/dist/headshotmarketing/pages/content/ContentAnalyticsPage.js.map +1 -1
  49. package/dist/headshotmarketing/pages/content/ContentCreationPage.js +39 -37
  50. package/dist/headshotmarketing/pages/content/ContentCreationPage.js.map +1 -1
  51. package/dist/headshotmarketing/pages/content/ContentPage.js +82 -75
  52. package/dist/headshotmarketing/pages/content/ContentPage.js.map +1 -1
  53. package/dist/headshotmarketing/pages/crm/ContactsPage.js +261 -213
  54. package/dist/headshotmarketing/pages/crm/ContactsPage.js.map +1 -1
  55. package/dist/headshotmarketing/pages/crm/CreateContactPage.js +64 -63
  56. package/dist/headshotmarketing/pages/crm/CreateContactPage.js.map +1 -1
  57. package/dist/headshotmarketing/pages/crm/CreateDealPage.js +77 -76
  58. package/dist/headshotmarketing/pages/crm/CreateDealPage.js.map +1 -1
  59. package/dist/headshotmarketing/pages/crm/CrmPage.js +162 -120
  60. package/dist/headshotmarketing/pages/crm/CrmPage.js.map +1 -1
  61. package/dist/headshotmarketing/pages/crm/LeadsPage.js +58 -51
  62. package/dist/headshotmarketing/pages/crm/LeadsPage.js.map +1 -1
  63. package/dist/headshotmarketing/pages/crm/PipelinePage.js +173 -157
  64. package/dist/headshotmarketing/pages/crm/PipelinePage.js.map +1 -1
  65. package/dist/headshotmarketing/pages/events/CreateEventPage.js +345 -340
  66. package/dist/headshotmarketing/pages/events/CreateEventPage.js.map +1 -1
  67. package/dist/headshotmarketing/pages/events/EventsPage.js +100 -87
  68. package/dist/headshotmarketing/pages/events/EventsPage.js.map +1 -1
  69. package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js +162 -147
  70. package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js.map +1 -1
  71. package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js +136 -87
  72. package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js.map +1 -1
  73. package/dist/headshotmarketing/pages/influencers/InfluencersPage.js +56 -28
  74. package/dist/headshotmarketing/pages/influencers/InfluencersPage.js.map +1 -1
  75. package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js +246 -184
  76. package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js.map +1 -1
  77. package/dist/headshotmarketing/pages/seo/SeoToolsPage.js +144 -111
  78. package/dist/headshotmarketing/pages/seo/SeoToolsPage.js.map +1 -1
  79. package/dist/headshotmarketing/pages/social-media/AccountsPage.js +27 -25
  80. package/dist/headshotmarketing/pages/social-media/AccountsPage.js.map +1 -1
  81. package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js +269 -242
  82. package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js.map +1 -1
  83. package/dist/headshotmarketing/pages/social-media/PostsPage.js +149 -137
  84. package/dist/headshotmarketing/pages/social-media/PostsPage.js.map +1 -1
  85. package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js +119 -118
  86. package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js.map +1 -1
  87. package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js +104 -76
  88. package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js.map +1 -1
  89. package/package.json +2 -2
@@ -6,55 +6,57 @@ import { PageLayout as o } from "../../components/PageLayout.js";
6
6
  import { StatCard as s } from "../../components/StatCard.js";
7
7
  import { DataTable as c } from "../../components/DataTable.js";
8
8
  import { StatusBadge as l } from "../../components/StatusBadge.js";
9
- import { FilterBar as u } from "../../components/FilterBar.js";
9
+ import { EmptyState as u } from "../../components/EmptyState.js";
10
+ import { FilterBar as d } from "../../components/FilterBar.js";
10
11
  import "../../components/index.js";
11
- import { useMemo as d, useState as f } from "react";
12
- import { DollarSign as p, Eye as m, FileText as h, LayoutGrid as g, List as _, Megaphone as v, MoreVertical as y, MousePointerClick as b, Plus as x, Target as S, TrendingUp as C } from "lucide-react";
13
- import { useI18n as w } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
14
- import { Fragment as T, jsx as E, jsxs as D } from "react/jsx-runtime";
12
+ import { useMemo as f, useState as p } from "react";
13
+ import { DollarSign as m, Eye as h, FileText as g, LayoutGrid as _, List as v, Megaphone as y, MoreVertical as b, MousePointerClick as x, Plus as S, Target as C, TrendingUp as w } from "lucide-react";
14
+ import { useI18n as T } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
15
+ import { Fragment as E, jsx as D, jsxs as O } from "react/jsx-runtime";
16
+ import { EmphasisPanel as k, PagePurpose as A } from "@burdenoff/fe-libs/ui";
15
17
  //#region src/headshotmarketing/pages/campaigns/CampaignsPage.tsx
16
- var O = () => {
17
- let { navigate: O, basePath: k } = e(), { t: A } = w(), j = (e, t) => {
18
- let n = A(e);
18
+ var j = () => {
19
+ let { navigate: j, basePath: M } = e(), { t: N } = T(), P = (e, t) => {
20
+ let n = N(e);
19
21
  return n === e ? t : n;
20
- }, { data: M } = t(), [N, P] = f(""), [F, I] = f("all"), [L, R] = f("all"), [z, B] = f("grid"), V = d(() => (M?.headshotmarketingCampaigns.items ?? []).map((e) => a(e)), [M?.headshotmarketingCampaigns.items]), H = d(() => V.filter((e) => {
21
- let t = !N || e.name.toLowerCase().includes(N.toLowerCase()) || e.description.toLowerCase().includes(N.toLowerCase()), n = F === "all" || e.status === F, r = L === "all" || e.type === L;
22
+ }, { data: F } = t(), [I, L] = p(""), [R, z] = p("all"), [B, V] = p("all"), [H, U] = p("grid"), W = f(() => (F?.headshotmarketingCampaigns.items ?? []).map((e) => a(e)), [F?.headshotmarketingCampaigns.items]), G = f(() => W.filter((e) => {
23
+ let t = !I || e.name.toLowerCase().includes(I.toLowerCase()) || e.description.toLowerCase().includes(I.toLowerCase()), n = R === "all" || e.status === R, r = B === "all" || e.type === B;
22
24
  return t && n && r;
23
25
  }), [
24
- V,
25
- N,
26
- F,
27
- L
28
- ]), U = d(() => V.reduce((e, t) => e + t.budget.total, 0), [V]), W = d(() => V.filter((e) => e.status === "active").length, [V]), G = d(() => V.reduce((e, t) => e + t.metrics.conversions, 0), [V]), K = d(() => {
29
- let e = V.filter((e) => e.metrics.roas > 0);
26
+ W,
27
+ I,
28
+ R,
29
+ B
30
+ ]), K = f(() => W.reduce((e, t) => e + t.budget.total, 0), [W]), q = f(() => W.filter((e) => e.status === "active").length, [W]), J = f(() => W.reduce((e, t) => e + t.metrics.conversions, 0), [W]), Y = f(() => {
31
+ let e = W.filter((e) => e.metrics.roas > 0);
30
32
  return e.length > 0 ? e.reduce((e, t) => e + t.metrics.roas, 0) / e.length : 0;
31
- }, [V]), q = [
33
+ }, [W]), X = [
32
34
  {
33
35
  key: "name",
34
- header: j("headshotmarketing.campaigns.table.columns.name", "Name"),
36
+ header: P("headshotmarketing.campaigns.table.columns.name", "Name"),
35
37
  sortable: !0
36
38
  },
37
39
  {
38
40
  key: "type",
39
- header: j("headshotmarketing.campaigns.table.columns.type", "Type"),
41
+ header: P("headshotmarketing.campaigns.table.columns.type", "Type"),
40
42
  sortable: !0,
41
- render: (e) => /* @__PURE__ */ E("span", {
43
+ render: (e) => /* @__PURE__ */ D("span", {
42
44
  className: "capitalize",
43
45
  children: e.type
44
46
  })
45
47
  },
46
48
  {
47
49
  key: "status",
48
- header: j("headshotmarketing.campaigns.table.columns.status", "Status"),
49
- render: (e) => /* @__PURE__ */ E(l, { status: e.status })
50
+ header: P("headshotmarketing.campaigns.table.columns.status", "Status"),
51
+ render: (e) => /* @__PURE__ */ D(l, { status: e.status })
50
52
  },
51
53
  {
52
54
  key: "budget",
53
- header: j("headshotmarketing.campaigns.table.columns.budget", "Budget"),
55
+ header: P("headshotmarketing.campaigns.table.columns.budget", "Budget"),
54
56
  sortable: !0,
55
- render: (e) => /* @__PURE__ */ D("div", {
57
+ render: (e) => /* @__PURE__ */ O("div", {
56
58
  className: "space-y-1",
57
- children: [/* @__PURE__ */ D("span", {
59
+ children: [/* @__PURE__ */ O("span", {
58
60
  className: "text-sm",
59
61
  children: [
60
62
  r(e.budget.spent),
@@ -62,9 +64,9 @@ var O = () => {
62
64
  " ",
63
65
  r(e.budget.total)
64
66
  ]
65
- }), /* @__PURE__ */ E("div", {
67
+ }), /* @__PURE__ */ D("div", {
66
68
  className: "h-1.5 w-20 rounded-full bg-bg-sunken",
67
- children: /* @__PURE__ */ E("div", {
69
+ children: /* @__PURE__ */ D("div", {
68
70
  className: "h-1.5 rounded-full bg-action-primary-bg",
69
71
  style: { width: `${Math.min(e.budget.spent / e.budget.total * 100, 100)}%` }
70
72
  })
@@ -73,295 +75,306 @@ var O = () => {
73
75
  },
74
76
  {
75
77
  key: "impressions",
76
- header: j("headshotmarketing.campaigns.table.columns.impressions", "Impressions"),
78
+ header: P("headshotmarketing.campaigns.table.columns.impressions", "Impressions"),
77
79
  sortable: !0,
78
80
  render: (e) => i(e.metrics.impressions)
79
81
  },
80
82
  {
81
83
  key: "clicks",
82
- header: j("headshotmarketing.campaigns.table.columns.clicks", "Clicks"),
84
+ header: P("headshotmarketing.campaigns.table.columns.clicks", "Clicks"),
83
85
  sortable: !0,
84
86
  render: (e) => i(e.metrics.clicks)
85
87
  },
86
88
  {
87
89
  key: "conversions",
88
- header: j("headshotmarketing.campaigns.table.columns.conversions", "Conversions"),
90
+ header: P("headshotmarketing.campaigns.table.columns.conversions", "Conversions"),
89
91
  sortable: !0,
90
92
  render: (e) => i(e.metrics.conversions)
91
93
  },
92
94
  {
93
95
  key: "roas",
94
- header: j("headshotmarketing.campaigns.table.columns.roas", "ROAS"),
96
+ header: P("headshotmarketing.campaigns.table.columns.roas", "ROAS"),
95
97
  sortable: !0,
96
98
  render: (e) => e.metrics.roas > 0 ? `${e.metrics.roas.toFixed(1)}x` : "-"
97
99
  }
98
- ], J = [
100
+ ], Z = [
99
101
  {
100
102
  value: "all",
101
- label: j("headshotmarketing.campaigns.filters.allStatuses", "All Statuses")
103
+ label: P("headshotmarketing.campaigns.filters.allStatuses", "All Statuses")
102
104
  },
103
105
  {
104
106
  value: "active",
105
- label: j("headshotmarketing.common.status.active", "Active")
107
+ label: P("headshotmarketing.common.status.active", "Active")
106
108
  },
107
109
  {
108
110
  value: "paused",
109
- label: j("headshotmarketing.common.status.paused", "Paused")
111
+ label: P("headshotmarketing.common.status.paused", "Paused")
110
112
  },
111
113
  {
112
114
  value: "completed",
113
- label: j("headshotmarketing.common.status.completed", "Completed")
115
+ label: P("headshotmarketing.common.status.completed", "Completed")
114
116
  },
115
117
  {
116
118
  value: "draft",
117
- label: j("headshotmarketing.common.status.draft", "Draft")
119
+ label: P("headshotmarketing.common.status.draft", "Draft")
118
120
  },
119
121
  {
120
122
  value: "scheduled",
121
- label: j("headshotmarketing.common.status.scheduled", "Scheduled")
123
+ label: P("headshotmarketing.common.status.scheduled", "Scheduled")
122
124
  }
123
- ], Y = [
125
+ ], Q = [
124
126
  {
125
127
  value: "all",
126
- label: j("headshotmarketing.campaigns.filters.allTypes", "All Types")
128
+ label: P("headshotmarketing.campaigns.filters.allTypes", "All Types")
127
129
  },
128
130
  {
129
131
  value: "email",
130
- label: j("headshotmarketing.common.types.email", "Email")
132
+ label: P("headshotmarketing.common.types.email", "Email")
131
133
  },
132
134
  {
133
135
  value: "social",
134
- label: j("headshotmarketing.common.types.social", "Social")
136
+ label: P("headshotmarketing.common.types.social", "Social")
135
137
  },
136
138
  {
137
139
  value: "ppc",
138
- label: j("headshotmarketing.common.types.ppc", "PPC")
140
+ label: P("headshotmarketing.common.types.ppc", "PPC")
139
141
  },
140
142
  {
141
143
  value: "display",
142
- label: j("headshotmarketing.common.types.display", "Display")
144
+ label: P("headshotmarketing.common.types.display", "Display")
143
145
  },
144
146
  {
145
147
  value: "video",
146
- label: j("headshotmarketing.common.types.video", "Video")
148
+ label: P("headshotmarketing.common.types.video", "Video")
147
149
  },
148
150
  {
149
151
  value: "influencer",
150
- label: j("headshotmarketing.common.types.influencer", "Influencer")
152
+ label: P("headshotmarketing.common.types.influencer", "Influencer")
151
153
  },
152
154
  {
153
155
  value: "content",
154
- label: j("headshotmarketing.common.types.content", "Content")
156
+ label: P("headshotmarketing.common.types.content", "Content")
155
157
  }
156
158
  ];
157
- return /* @__PURE__ */ D(o, {
158
- title: j("headshotmarketing.campaigns.title", "Campaigns"),
159
- actions: /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ D("button", {
160
- onClick: () => O(k + "/campaigns/templates"),
159
+ return /* @__PURE__ */ O(o, {
160
+ title: P("headshotmarketing.campaigns.title", "Campaigns"),
161
+ actions: /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ O("button", {
162
+ onClick: () => j(M + "/campaigns/templates"),
161
163
  className: "inline-flex items-center gap-2 rounded-md border border-border-seam bg-gloss-card shadow-pop px-3 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken",
162
- children: [/* @__PURE__ */ E(h, { className: "h-4 w-4" }), j("headshotmarketing.campaigns.actions.templates", "Templates")]
163
- }), /* @__PURE__ */ D("button", {
164
- onClick: () => O(k + "/campaigns/new"),
164
+ children: [/* @__PURE__ */ D(g, { className: "h-4 w-4" }), P("headshotmarketing.campaigns.actions.templates", "Templates")]
165
+ }), /* @__PURE__ */ O("button", {
166
+ onClick: () => j(M + "/campaigns/new"),
165
167
  className: "inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-3 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90",
166
- children: [/* @__PURE__ */ E(x, { className: "h-4 w-4" }), j("headshotmarketing.campaigns.actions.createCampaign", "Create Campaign")]
168
+ children: [/* @__PURE__ */ D(S, { className: "h-4 w-4" }), P("headshotmarketing.campaigns.actions.createCampaign", "Create Campaign")]
167
169
  })] }),
168
170
  children: [
169
- /* @__PURE__ */ D("div", {
171
+ /* @__PURE__ */ D(A, { children: P("headshotmarketing.campaigns.purpose", "Plan, launch and track every marketing campaign in one place — set budgets and goals, then watch spend, conversions and ROAS roll up here so you know what's working and where to reinvest.") }),
172
+ /* @__PURE__ */ D(k, { children: /* @__PURE__ */ O("div", {
170
173
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",
171
174
  children: [
172
- /* @__PURE__ */ E(s, {
173
- title: j("headshotmarketing.campaigns.stats.totalBudget", "Total Budget"),
174
- value: r(U),
175
- icon: /* @__PURE__ */ E(p, { className: "h-5 w-5" })
175
+ /* @__PURE__ */ D(s, {
176
+ title: P("headshotmarketing.campaigns.stats.totalBudget", "Total Budget"),
177
+ value: r(K),
178
+ icon: /* @__PURE__ */ D(m, { className: "h-5 w-5" })
176
179
  }),
177
- /* @__PURE__ */ E(s, {
178
- title: j("headshotmarketing.campaigns.stats.activeCampaigns", "Active Campaigns"),
179
- value: String(W),
180
- icon: /* @__PURE__ */ E(v, { className: "h-5 w-5" })
180
+ /* @__PURE__ */ D(s, {
181
+ title: P("headshotmarketing.campaigns.stats.activeCampaigns", "Active Campaigns"),
182
+ value: String(q),
183
+ icon: /* @__PURE__ */ D(y, { className: "h-5 w-5" })
181
184
  }),
182
- /* @__PURE__ */ E(s, {
183
- title: j("headshotmarketing.campaigns.stats.totalConversions", "Total Conversions"),
184
- value: i(G),
185
- icon: /* @__PURE__ */ E(S, { className: "h-5 w-5" })
185
+ /* @__PURE__ */ D(s, {
186
+ title: P("headshotmarketing.campaigns.stats.totalConversions", "Total Conversions"),
187
+ value: i(J),
188
+ icon: /* @__PURE__ */ D(C, { className: "h-5 w-5" })
186
189
  }),
187
- /* @__PURE__ */ E(s, {
188
- title: j("headshotmarketing.campaigns.stats.avgRoas", "Avg ROAS"),
189
- value: `${K.toFixed(1)}x`,
190
- icon: /* @__PURE__ */ E(C, { className: "h-5 w-5" })
190
+ /* @__PURE__ */ D(s, {
191
+ title: P("headshotmarketing.campaigns.stats.avgRoas", "Avg ROAS"),
192
+ value: `${Y.toFixed(1)}x`,
193
+ icon: /* @__PURE__ */ D(w, { className: "h-5 w-5" })
191
194
  })
192
195
  ]
193
- }),
194
- /* @__PURE__ */ E(u, {
195
- searchValue: N,
196
- onSearchChange: P,
197
- searchPlaceholder: j("headshotmarketing.campaigns.filters.searchPlaceholder", "Search campaigns..."),
198
- filters: /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E("select", {
199
- value: F,
200
- onChange: (e) => I(e.target.value),
196
+ }) }),
197
+ /* @__PURE__ */ D(d, {
198
+ searchValue: I,
199
+ onSearchChange: L,
200
+ searchPlaceholder: P("headshotmarketing.campaigns.filters.searchPlaceholder", "Search campaigns..."),
201
+ filters: /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D("select", {
202
+ value: R,
203
+ onChange: (e) => z(e.target.value),
201
204
  className: "rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
202
- children: J.map((e) => /* @__PURE__ */ E("option", {
205
+ children: Z.map((e) => /* @__PURE__ */ D("option", {
203
206
  value: e.value,
204
207
  children: e.label
205
208
  }, e.value))
206
- }), /* @__PURE__ */ E("select", {
207
- value: L,
208
- onChange: (e) => R(e.target.value),
209
+ }), /* @__PURE__ */ D("select", {
210
+ value: B,
211
+ onChange: (e) => V(e.target.value),
209
212
  className: "rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
210
- children: Y.map((e) => /* @__PURE__ */ E("option", {
213
+ children: Q.map((e) => /* @__PURE__ */ D("option", {
211
214
  value: e.value,
212
215
  children: e.label
213
216
  }, e.value))
214
217
  })] }),
215
- actions: /* @__PURE__ */ D("div", {
218
+ actions: /* @__PURE__ */ O("div", {
216
219
  className: "flex items-center gap-1 rounded-md border border-border-subtle p-0.5",
217
- children: [/* @__PURE__ */ E("button", {
218
- onClick: () => B("grid"),
219
- className: n("rounded p-1.5", z === "grid" ? "bg-action-primary-bg text-action-primary-text" : "text-text-secondary hover:text-text-primary"),
220
- children: /* @__PURE__ */ E(g, { className: "h-4 w-4" })
221
- }), /* @__PURE__ */ E("button", {
222
- onClick: () => B("table"),
223
- className: n("rounded p-1.5", z === "table" ? "bg-action-primary-bg text-action-primary-text" : "text-text-secondary hover:text-text-primary"),
224
- children: /* @__PURE__ */ E(_, { className: "h-4 w-4" })
220
+ children: [/* @__PURE__ */ D("button", {
221
+ onClick: () => U("grid"),
222
+ className: n("rounded p-1.5", H === "grid" ? "bg-action-primary-bg text-action-primary-text" : "text-text-secondary hover:text-text-primary"),
223
+ children: /* @__PURE__ */ D(_, { className: "h-4 w-4" })
224
+ }), /* @__PURE__ */ D("button", {
225
+ onClick: () => U("table"),
226
+ className: n("rounded p-1.5", H === "table" ? "bg-action-primary-bg text-action-primary-text" : "text-text-secondary hover:text-text-primary"),
227
+ children: /* @__PURE__ */ D(v, { className: "h-4 w-4" })
225
228
  })]
226
229
  })
227
230
  }),
228
- z === "grid" && /* @__PURE__ */ E("div", {
231
+ H === "grid" && G.length === 0 && /* @__PURE__ */ D(u, {
232
+ illustration: W.length === 0 ? "empty-generic" : "empty-search",
233
+ title: W.length === 0 ? P("headshotmarketing.campaigns.empty.title", "No campaigns yet") : P("headshotmarketing.campaigns.empty.filteredTitle", "No campaigns match your filters"),
234
+ description: W.length === 0 ? P("headshotmarketing.campaigns.empty.description", "Create your first campaign to start planning budgets, channels and goals.") : P("headshotmarketing.campaigns.empty.filtered", "Try adjusting your search or filters."),
235
+ action: W.length === 0 ? /* @__PURE__ */ O("button", {
236
+ onClick: () => j(M + "/campaigns/new"),
237
+ 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",
238
+ children: [/* @__PURE__ */ D(S, { className: "h-4 w-4" }), P("headshotmarketing.campaigns.actions.createCampaign", "Create Campaign")]
239
+ }) : void 0
240
+ }),
241
+ H === "grid" && G.length > 0 && /* @__PURE__ */ D("div", {
229
242
  className: "grid grid-cols-1 gap-4 lg:grid-cols-2",
230
- children: H.map((e) => {
243
+ children: G.map((e) => {
231
244
  let t = e.budget.total > 0 ? Math.min(e.budget.spent / e.budget.total * 100, 100) : 0;
232
- return /* @__PURE__ */ D("div", {
245
+ return /* @__PURE__ */ O("div", {
233
246
  className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop hover:shadow-md transition-shadow",
234
247
  children: [
235
- /* @__PURE__ */ D("div", {
248
+ /* @__PURE__ */ O("div", {
236
249
  className: "flex items-start justify-between mb-3",
237
- children: [/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("button", {
238
- onClick: () => O(k + "/campaigns/" + e.id),
250
+ children: [/* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("button", {
251
+ onClick: () => j(M + "/campaigns/" + e.id),
239
252
  className: "text-sm font-semibold text-text-primary hover:text-primary transition-colors text-left",
240
253
  children: e.name
241
- }), /* @__PURE__ */ D("div", {
254
+ }), /* @__PURE__ */ O("div", {
242
255
  className: "flex items-center gap-2 mt-1",
243
- children: [/* @__PURE__ */ E(l, { status: e.status }), /* @__PURE__ */ E("span", {
256
+ children: [/* @__PURE__ */ D(l, { status: e.status }), /* @__PURE__ */ D("span", {
244
257
  className: "inline-flex items-center rounded-full bg-bg-sunken px-2 py-0.5 text-xs font-medium text-text-secondary capitalize",
245
258
  children: e.type
246
259
  })]
247
- })] }), /* @__PURE__ */ E("button", {
260
+ })] }), /* @__PURE__ */ D("button", {
248
261
  className: "rounded-md p-1 text-text-secondary hover:text-text-primary hover:bg-bg-sunken",
249
- children: /* @__PURE__ */ E(y, { className: "h-4 w-4" })
262
+ children: /* @__PURE__ */ D(b, { className: "h-4 w-4" })
250
263
  })]
251
264
  }),
252
- /* @__PURE__ */ D("div", {
265
+ /* @__PURE__ */ O("div", {
253
266
  className: "mb-3",
254
- children: [/* @__PURE__ */ D("div", {
267
+ children: [/* @__PURE__ */ O("div", {
255
268
  className: "flex items-center justify-between text-xs text-text-secondary mb-1",
256
- children: [/* @__PURE__ */ D("span", { children: [r(e.budget.spent), " spent"] }), /* @__PURE__ */ D("span", { children: [r(e.budget.total), " total"] })]
257
- }), /* @__PURE__ */ E("div", {
269
+ children: [/* @__PURE__ */ O("span", { children: [r(e.budget.spent), " spent"] }), /* @__PURE__ */ O("span", { children: [r(e.budget.total), " total"] })]
270
+ }), /* @__PURE__ */ D("div", {
258
271
  className: "h-1.5 w-full rounded-full bg-bg-sunken",
259
- children: /* @__PURE__ */ E("div", {
272
+ children: /* @__PURE__ */ D("div", {
260
273
  className: n("h-1.5 rounded-full transition-all", t >= 90 ? "bg-status-error-bg" : "bg-action-primary-bg"),
261
274
  style: { width: `${t}%` }
262
275
  })
263
276
  })]
264
277
  }),
265
- /* @__PURE__ */ D("div", {
278
+ /* @__PURE__ */ O("div", {
266
279
  className: "grid grid-cols-4 gap-2 mb-3",
267
280
  children: [
268
- /* @__PURE__ */ D("div", {
281
+ /* @__PURE__ */ O("div", {
269
282
  className: "text-center",
270
283
  children: [
271
- /* @__PURE__ */ E("div", {
284
+ /* @__PURE__ */ D("div", {
272
285
  className: "flex items-center justify-center gap-1 text-text-secondary mb-0.5",
273
- children: /* @__PURE__ */ E(m, { className: "h-3 w-3" })
286
+ children: /* @__PURE__ */ D(h, { className: "h-3 w-3" })
274
287
  }),
275
- /* @__PURE__ */ E("p", {
288
+ /* @__PURE__ */ D("p", {
276
289
  className: "text-xs font-medium text-text-primary",
277
290
  children: i(e.metrics.impressions)
278
291
  }),
279
- /* @__PURE__ */ E("p", {
292
+ /* @__PURE__ */ D("p", {
280
293
  className: "text-[10px] text-text-secondary",
281
- children: j("headshotmarketing.campaigns.table.columns.impressions", "Impressions")
294
+ children: P("headshotmarketing.campaigns.table.columns.impressions", "Impressions")
282
295
  })
283
296
  ]
284
297
  }),
285
- /* @__PURE__ */ D("div", {
298
+ /* @__PURE__ */ O("div", {
286
299
  className: "text-center",
287
300
  children: [
288
- /* @__PURE__ */ E("div", {
301
+ /* @__PURE__ */ D("div", {
289
302
  className: "flex items-center justify-center gap-1 text-text-secondary mb-0.5",
290
- children: /* @__PURE__ */ E(b, { className: "h-3 w-3" })
303
+ children: /* @__PURE__ */ D(x, { className: "h-3 w-3" })
291
304
  }),
292
- /* @__PURE__ */ E("p", {
305
+ /* @__PURE__ */ D("p", {
293
306
  className: "text-xs font-medium text-text-primary",
294
307
  children: i(e.metrics.clicks)
295
308
  }),
296
- /* @__PURE__ */ E("p", {
309
+ /* @__PURE__ */ D("p", {
297
310
  className: "text-[10px] text-text-secondary",
298
- children: j("headshotmarketing.campaigns.table.columns.clicks", "Clicks")
311
+ children: P("headshotmarketing.campaigns.table.columns.clicks", "Clicks")
299
312
  })
300
313
  ]
301
314
  }),
302
- /* @__PURE__ */ D("div", {
315
+ /* @__PURE__ */ O("div", {
303
316
  className: "text-center",
304
317
  children: [
305
- /* @__PURE__ */ E("div", {
318
+ /* @__PURE__ */ D("div", {
306
319
  className: "flex items-center justify-center gap-1 text-text-secondary mb-0.5",
307
- children: /* @__PURE__ */ E(S, { className: "h-3 w-3" })
320
+ children: /* @__PURE__ */ D(C, { className: "h-3 w-3" })
308
321
  }),
309
- /* @__PURE__ */ E("p", {
322
+ /* @__PURE__ */ D("p", {
310
323
  className: "text-xs font-medium text-text-primary",
311
324
  children: i(e.metrics.conversions)
312
325
  }),
313
- /* @__PURE__ */ E("p", {
326
+ /* @__PURE__ */ D("p", {
314
327
  className: "text-[10px] text-text-secondary",
315
- children: j("headshotmarketing.campaigns.table.columns.conversions", "Conversions")
328
+ children: P("headshotmarketing.campaigns.table.columns.conversions", "Conversions")
316
329
  })
317
330
  ]
318
331
  }),
319
- /* @__PURE__ */ D("div", {
332
+ /* @__PURE__ */ O("div", {
320
333
  className: "text-center",
321
334
  children: [
322
- /* @__PURE__ */ E("div", {
335
+ /* @__PURE__ */ D("div", {
323
336
  className: "flex items-center justify-center gap-1 text-text-secondary mb-0.5",
324
- children: /* @__PURE__ */ E(C, { className: "h-3 w-3" })
337
+ children: /* @__PURE__ */ D(w, { className: "h-3 w-3" })
325
338
  }),
326
- /* @__PURE__ */ E("p", {
339
+ /* @__PURE__ */ D("p", {
327
340
  className: "text-xs font-medium text-text-primary",
328
341
  children: e.metrics.roas > 0 ? `${e.metrics.roas.toFixed(1)}x` : "-"
329
342
  }),
330
- /* @__PURE__ */ E("p", {
343
+ /* @__PURE__ */ D("p", {
331
344
  className: "text-[10px] text-text-secondary",
332
- children: j("headshotmarketing.campaigns.table.columns.roas", "ROAS")
345
+ children: P("headshotmarketing.campaigns.table.columns.roas", "ROAS")
333
346
  })
334
347
  ]
335
348
  })
336
349
  ]
337
350
  }),
338
- /* @__PURE__ */ D("div", {
351
+ /* @__PURE__ */ O("div", {
339
352
  className: "flex items-center gap-2 pt-3 border-t border-border-subtle",
340
- children: [/* @__PURE__ */ E("button", {
341
- onClick: () => O(k + "/campaigns/" + e.id),
353
+ children: [/* @__PURE__ */ D("button", {
354
+ onClick: () => j(M + "/campaigns/" + e.id),
342
355
  className: "flex-1 rounded-md border border-border-subtle px-3 py-1.5 text-xs font-medium text-text-primary hover:bg-bg-sunken transition-colors",
343
- children: j("headshotmarketing.campaigns.actions.viewDetails", "View Details")
344
- }), /* @__PURE__ */ E("button", {
345
- onClick: () => O(k + "/campaigns/" + e.id + "/edit"),
356
+ children: P("headshotmarketing.campaigns.actions.viewDetails", "View Details")
357
+ }), /* @__PURE__ */ D("button", {
358
+ onClick: () => j(M + "/campaigns/" + e.id + "/edit"),
346
359
  className: "flex-1 rounded-md bg-action-primary-bg px-3 py-1.5 text-xs font-medium text-action-primary-text hover:bg-action-primary-bg/90 transition-colors",
347
- children: j("headshotmarketing.common.edit", "Edit")
360
+ children: P("headshotmarketing.common.edit", "Edit")
348
361
  })]
349
362
  })
350
363
  ]
351
364
  }, e.id);
352
365
  })
353
366
  }),
354
- z === "table" && /* @__PURE__ */ E(c, {
355
- data: H,
356
- columns: q,
367
+ H === "table" && /* @__PURE__ */ D(c, {
368
+ data: G,
369
+ columns: X,
357
370
  pageSize: 10,
358
- onRowClick: (e) => O(k + "/campaigns/" + e.id),
359
- emptyMessage: j("headshotmarketing.campaigns.empty.filtered", "No campaigns match your filters")
371
+ onRowClick: (e) => j(M + "/campaigns/" + e.id),
372
+ emptyMessage: P("headshotmarketing.campaigns.empty.filtered", "No campaigns match your filters")
360
373
  })
361
374
  ]
362
375
  });
363
376
  };
364
377
  //#endregion
365
- export { O as CampaignsPage };
378
+ export { j as CampaignsPage };
366
379
 
367
380
  //# sourceMappingURL=CampaignsPage.js.map