@burdenoff/microfe-headshotmarketing 2026.1124.3 → 2026.1202.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 (151) hide show
  1. package/dist/headshotmarketing/components/ActionMenu.js +1 -1
  2. package/dist/headshotmarketing/components/ActionMenu.js.map +1 -1
  3. package/dist/headshotmarketing/components/DataTable.js +33 -33
  4. package/dist/headshotmarketing/components/DataTable.js.map +1 -1
  5. package/dist/headshotmarketing/components/EmptyState.d.ts +15 -0
  6. package/dist/headshotmarketing/components/EmptyState.js +35 -15
  7. package/dist/headshotmarketing/components/EmptyState.js.map +1 -1
  8. package/dist/headshotmarketing/components/FilterBar.js +2 -2
  9. package/dist/headshotmarketing/components/FilterBar.js.map +1 -1
  10. package/dist/headshotmarketing/components/InfluencerModals.js +96 -95
  11. package/dist/headshotmarketing/components/InfluencerModals.js.map +1 -1
  12. package/dist/headshotmarketing/components/Pagination.js +38 -37
  13. package/dist/headshotmarketing/components/Pagination.js.map +1 -1
  14. package/dist/headshotmarketing/components/TagChipsInput.js +1 -1
  15. package/dist/headshotmarketing/components/TagChipsInput.js.map +1 -1
  16. package/dist/headshotmarketing/components/Toast.js +1 -1
  17. package/dist/headshotmarketing/components/Toast.js.map +1 -1
  18. package/dist/headshotmarketing/pages/HomeMonthlyGoals.js.map +1 -1
  19. package/dist/headshotmarketing/pages/HomePage.js +10 -10
  20. package/dist/headshotmarketing/pages/HomePage.js.map +1 -1
  21. package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js +203 -203
  22. package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js.map +1 -1
  23. package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js +148 -148
  24. package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js.map +1 -1
  25. package/dist/headshotmarketing/pages/ads/AdCreativeTestsSection.js +74 -73
  26. package/dist/headshotmarketing/pages/ads/AdCreativeTestsSection.js.map +1 -1
  27. package/dist/headshotmarketing/pages/ads/AdCreativesPage.js +369 -369
  28. package/dist/headshotmarketing/pages/ads/AdCreativesPage.js.map +1 -1
  29. package/dist/headshotmarketing/pages/ads/AdPlatformConnectionsSection.js +111 -110
  30. package/dist/headshotmarketing/pages/ads/AdPlatformConnectionsSection.js.map +1 -1
  31. package/dist/headshotmarketing/pages/ads/AdPlatformSyncPanel.js +1 -1
  32. package/dist/headshotmarketing/pages/ads/AdPlatformSyncPanel.js.map +1 -1
  33. package/dist/headshotmarketing/pages/ads/AdsPage.js +6 -6
  34. package/dist/headshotmarketing/pages/ads/AdsPage.js.map +1 -1
  35. package/dist/headshotmarketing/pages/ads/AudiencesPage.js +49 -49
  36. package/dist/headshotmarketing/pages/ads/AudiencesPage.js.map +1 -1
  37. package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js +112 -112
  38. package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js.map +1 -1
  39. package/dist/headshotmarketing/pages/ads/CreateAudiencePage.js +57 -57
  40. package/dist/headshotmarketing/pages/ads/CreateAudiencePage.js.map +1 -1
  41. package/dist/headshotmarketing/pages/ai/AiOperationsPage.js +175 -174
  42. package/dist/headshotmarketing/pages/ai/AiOperationsPage.js.map +1 -1
  43. package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js +1 -1
  44. package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js.map +1 -1
  45. package/dist/headshotmarketing/pages/analytics/AttributionPage.js +129 -129
  46. package/dist/headshotmarketing/pages/analytics/AttributionPage.js.map +1 -1
  47. package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js +9 -9
  48. package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js.map +1 -1
  49. package/dist/headshotmarketing/pages/analytics/ReportScheduleDialog.js +95 -94
  50. package/dist/headshotmarketing/pages/analytics/ReportScheduleDialog.js.map +1 -1
  51. package/dist/headshotmarketing/pages/analytics/ReportsPage.js +4 -4
  52. package/dist/headshotmarketing/pages/analytics/ReportsPage.js.map +1 -1
  53. package/dist/headshotmarketing/pages/analytics/TouchpointLedgerCard.js +42 -41
  54. package/dist/headshotmarketing/pages/analytics/TouchpointLedgerCard.js.map +1 -1
  55. package/dist/headshotmarketing/pages/analytics/analyticsWidgets.js +132 -131
  56. package/dist/headshotmarketing/pages/analytics/analyticsWidgets.js.map +1 -1
  57. package/dist/headshotmarketing/pages/automation/AutomationPage.js +8 -8
  58. package/dist/headshotmarketing/pages/automation/AutomationPage.js.map +1 -1
  59. package/dist/headshotmarketing/pages/automation/TriggersPage.js +48 -48
  60. package/dist/headshotmarketing/pages/automation/TriggersPage.js.map +1 -1
  61. package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js +4 -3
  62. package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js.map +1 -1
  63. package/dist/headshotmarketing/pages/automation/WorkflowNodeConfigPanel.js +143 -142
  64. package/dist/headshotmarketing/pages/automation/WorkflowNodeConfigPanel.js.map +1 -1
  65. package/dist/headshotmarketing/pages/automation/WorkflowRunsPanel.js +79 -78
  66. package/dist/headshotmarketing/pages/automation/WorkflowRunsPanel.js.map +1 -1
  67. package/dist/headshotmarketing/pages/automation/WorkflowsPage.js +92 -92
  68. package/dist/headshotmarketing/pages/automation/WorkflowsPage.js.map +1 -1
  69. package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js +143 -143
  70. package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js.map +1 -1
  71. package/dist/headshotmarketing/pages/builder/SectionCanvasBlock.js +3 -3
  72. package/dist/headshotmarketing/pages/builder/SectionCanvasBlock.js.map +1 -1
  73. package/dist/headshotmarketing/pages/builder/SectionInspector.js +24 -23
  74. package/dist/headshotmarketing/pages/builder/SectionInspector.js.map +1 -1
  75. package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js +198 -193
  76. package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js.map +1 -1
  77. package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js +41 -41
  78. package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js.map +1 -1
  79. package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js +234 -229
  80. package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js.map +1 -1
  81. package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js +134 -134
  82. package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js.map +1 -1
  83. package/dist/headshotmarketing/pages/campaigns/CreateTemplateModal.js +46 -46
  84. package/dist/headshotmarketing/pages/campaigns/CreateTemplateModal.js.map +1 -1
  85. package/dist/headshotmarketing/pages/content/AIExecutionLedger.js +29 -29
  86. package/dist/headshotmarketing/pages/content/AIExecutionLedger.js.map +1 -1
  87. package/dist/headshotmarketing/pages/content/AIToolsPage.js +3 -3
  88. package/dist/headshotmarketing/pages/content/AIToolsPage.js.map +1 -1
  89. package/dist/headshotmarketing/pages/content/AssetLibraryPage.js +230 -220
  90. package/dist/headshotmarketing/pages/content/AssetLibraryPage.js.map +1 -1
  91. package/dist/headshotmarketing/pages/content/ContentCreationPage.js +431 -420
  92. package/dist/headshotmarketing/pages/content/ContentCreationPage.js.map +1 -1
  93. package/dist/headshotmarketing/pages/content/ContentDetailsPage.js +7 -7
  94. package/dist/headshotmarketing/pages/content/ContentDetailsPage.js.map +1 -1
  95. package/dist/headshotmarketing/pages/content/ContentLibraryCard.js +2 -2
  96. package/dist/headshotmarketing/pages/content/ContentLibraryCard.js.map +1 -1
  97. package/dist/headshotmarketing/pages/content/ContentPage.js +88 -88
  98. package/dist/headshotmarketing/pages/content/ContentPage.js.map +1 -1
  99. package/dist/headshotmarketing/pages/crm/ContactsPage.js +111 -111
  100. package/dist/headshotmarketing/pages/crm/ContactsPage.js.map +1 -1
  101. package/dist/headshotmarketing/pages/crm/CreateContactPage.js +59 -59
  102. package/dist/headshotmarketing/pages/crm/CreateContactPage.js.map +1 -1
  103. package/dist/headshotmarketing/pages/crm/CreateDealPage.js +86 -86
  104. package/dist/headshotmarketing/pages/crm/CreateDealPage.js.map +1 -1
  105. package/dist/headshotmarketing/pages/crm/CrmActions.js +93 -92
  106. package/dist/headshotmarketing/pages/crm/CrmActions.js.map +1 -1
  107. package/dist/headshotmarketing/pages/crm/CrmPage.js +4 -4
  108. package/dist/headshotmarketing/pages/crm/CrmPage.js.map +1 -1
  109. package/dist/headshotmarketing/pages/crm/LeadCreateModal.js +63 -62
  110. package/dist/headshotmarketing/pages/crm/LeadCreateModal.js.map +1 -1
  111. package/dist/headshotmarketing/pages/crm/LeadsPage.js +68 -68
  112. package/dist/headshotmarketing/pages/crm/LeadsPage.js.map +1 -1
  113. package/dist/headshotmarketing/pages/crm/PipelinePage.js +2 -2
  114. package/dist/headshotmarketing/pages/crm/PipelinePage.js.map +1 -1
  115. package/dist/headshotmarketing/pages/events/CreateEventPage.js +165 -165
  116. package/dist/headshotmarketing/pages/events/CreateEventPage.js.map +1 -1
  117. package/dist/headshotmarketing/pages/events/EventDetailsPage.js +255 -250
  118. package/dist/headshotmarketing/pages/events/EventDetailsPage.js.map +1 -1
  119. package/dist/headshotmarketing/pages/events/EventPagePreview.js +2 -2
  120. package/dist/headshotmarketing/pages/events/EventPagePreview.js.map +1 -1
  121. package/dist/headshotmarketing/pages/events/EventsPage.js +70 -70
  122. package/dist/headshotmarketing/pages/events/EventsPage.js.map +1 -1
  123. package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js +7 -7
  124. package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js.map +1 -1
  125. package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js +98 -98
  126. package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js.map +1 -1
  127. package/dist/headshotmarketing/pages/influencers/InfluencersPage.js +1 -1
  128. package/dist/headshotmarketing/pages/influencers/InfluencersPage.js.map +1 -1
  129. package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js +145 -140
  130. package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js.map +1 -1
  131. package/dist/headshotmarketing/pages/seo/SeoScorePanel.js +1 -1
  132. package/dist/headshotmarketing/pages/seo/SeoScorePanel.js.map +1 -1
  133. package/dist/headshotmarketing/pages/seo/SeoToolsPage.js +286 -286
  134. package/dist/headshotmarketing/pages/seo/SeoToolsPage.js.map +1 -1
  135. package/dist/headshotmarketing/pages/social-media/AccountsPage.js +171 -166
  136. package/dist/headshotmarketing/pages/social-media/AccountsPage.js.map +1 -1
  137. package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js +1 -1
  138. package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js.map +1 -1
  139. package/dist/headshotmarketing/pages/social-media/CreateAccountPage.js +1 -1
  140. package/dist/headshotmarketing/pages/social-media/CreateAccountPage.js.map +1 -1
  141. package/dist/headshotmarketing/pages/social-media/MediaDropZone.js +2 -2
  142. package/dist/headshotmarketing/pages/social-media/MediaDropZone.js.map +1 -1
  143. package/dist/headshotmarketing/pages/social-media/PostsPage.js +257 -252
  144. package/dist/headshotmarketing/pages/social-media/PostsPage.js.map +1 -1
  145. package/dist/headshotmarketing/pages/social-media/SocialComposerPreview.js +2 -2
  146. package/dist/headshotmarketing/pages/social-media/SocialComposerPreview.js.map +1 -1
  147. package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js +4 -4
  148. package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js.map +1 -1
  149. package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js +115 -115
  150. package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js.map +1 -1
  151. package/package.json +6 -2
@@ -3,49 +3,49 @@ import { cn as r, formatCurrency as i, formatNumber as a } from "../../utils/hel
3
3
  import "../../components/index.js";
4
4
  import { PageLayout as ee } from "../../components/PageLayout.js";
5
5
  import { useHeadshotMarketing as te } from "../../context/HeadshotMarketingContext.js";
6
- import { AdPlatformChips as o, platformLabel as s, renderPlatformIcon as c } from "./AdPlatformChips.js";
7
- import { AdReachEstimatePanel as ne } from "./AdReachEstimatePanel.js";
8
- import { useCampaignOptions as re } from "../../hooks/useCampaignOptions.js";
9
- import { AD_AGE_RANGES as ie, AD_BID_STRATEGIES as ae, AD_CAMPAIGN_STEPS as l, AD_GENDERS as u, AD_INTEREST_OPTIONS as oe, AD_OBJECTIVES as se, EMPTY_AD_CAMPAIGN_FORM as ce, buildAdCampaignInput as le, deriveDailyBudget as d, isStepComplete as f, parseAmount as p, scheduleDays as m, validateAdCampaignForm as ue } from "./adCampaignStepper.js";
10
- import { useCallback as de, useEffect as fe, useRef as pe, useState as h } from "react";
11
- import { ArrowLeft as me, CalendarDays as he, Check as ge, Rocket as _e, Save as ve, Sparkles as ye, Target as be, Users as xe, Wallet as Se } from "lucide-react";
6
+ import { AdPlatformChips as ne, platformLabel as o, renderPlatformIcon as re } from "./AdPlatformChips.js";
7
+ import { AdReachEstimatePanel as ie } from "./AdReachEstimatePanel.js";
8
+ import { useCampaignOptions as ae } from "../../hooks/useCampaignOptions.js";
9
+ import { AD_AGE_RANGES as s, AD_BID_STRATEGIES as c, AD_CAMPAIGN_STEPS as l, AD_GENDERS as u, AD_INTEREST_OPTIONS as d, AD_OBJECTIVES as f, EMPTY_AD_CAMPAIGN_FORM as oe, buildAdCampaignInput as se, deriveDailyBudget as ce, isStepComplete as le, parseAmount as p, scheduleDays as ue, validateAdCampaignForm as de } from "./adCampaignStepper.js";
10
+ import { useCallback as fe, useEffect as pe, useRef as me, useState as m } from "react";
11
+ import { ArrowLeft as h, CalendarDays as he, Check as ge, Rocket as _e, Save as ve, Sparkles as ye, Target as be, Users as xe, Wallet as Se } from "lucide-react";
12
12
  import { useSearchParams as Ce } from "react-router";
13
13
  import { Fragment as we, jsx as g, jsxs as _ } from "react/jsx-runtime";
14
- import { EmphasisPanel as v, GlassCard as Te, PagePurpose as Ee } from "@burdenoff/fe-libs/ui";
14
+ import { EmphasisPanel as v, GlassCard as Te, PagePurpose as Ee, ThemedSelect as y } from "@burdenoff/fe-libs/ui";
15
15
  // src/headshotmarketing/pages/ads/CreateAdCampaignPage.tsx
16
- var y = "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] disabled:opacity-60", b = (e) => r("min-h-9 rounded-full border px-3 py-1.5 text-sm transition-colors", e ? "border-action-primary-bg bg-action-primary-bg text-action-primary-text" : "border-border-subtle text-text-primary hover:bg-bg-sunken"), x = (e) => `ad-create-step-${e}`, S = () => {
17
- let { navigate: v, basePath: x } = te(), [S] = Ce(), D = S.get("audienceId"), O = S.get("audienceName"), k = S.get("campaignId"), A = S.get("campaignName"), [De, { loading: j, error: Oe }] = t(), [ke, M] = h(null), [N, P] = h(null), [F, I] = h("platform"), [L, R] = h({
18
- ...ce,
19
- audienceId: D ?? "",
20
- campaignId: k ?? ""
21
- }), [z, Ae] = h(k ? {
22
- id: k,
23
- name: A || "Selected campaign"
24
- } : null), B = re(z), je = (e) => {
16
+ var b = "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] disabled:opacity-60", x = (e) => r("min-h-9 rounded-full border px-3 py-1.5 text-sm transition-colors", e ? "border-action-primary-bg bg-action-primary-bg text-action-primary-text" : "border-border-subtle text-text-primary hover:bg-bg-sunken"), S = (e) => `ad-create-step-${e}`, C = () => {
17
+ let { navigate: v, basePath: S } = te(), [C] = Ce(), O = C.get("audienceId"), k = C.get("audienceName"), A = C.get("campaignId"), De = C.get("campaignName"), [Oe, { loading: j, error: ke }] = t(), [Ae, M] = m(null), [N, P] = m(null), [F, I] = m("platform"), [L, R] = m({
18
+ ...oe,
19
+ audienceId: O ?? "",
20
+ campaignId: A ?? ""
21
+ }), [z, je] = m(A ? {
22
+ id: A,
23
+ name: De || "Selected campaign"
24
+ } : null), B = ae(z), Me = (e) => {
25
25
  let t = B.options.find((t) => t.id === e) ?? null;
26
- Ae(t), R((e) => ({
26
+ je(t), R((e) => ({
27
27
  ...e,
28
28
  campaignId: t?.id ?? ""
29
29
  }));
30
- }, V = pe({}), H = (e, t) => R((n) => ({
30
+ }, V = me({}), H = (e, t) => R((n) => ({
31
31
  ...n,
32
32
  [e]: t
33
33
  })), U = (e, t) => R((n) => ({
34
34
  ...n,
35
35
  [e]: n[e].includes(t) ? n[e].filter((e) => e !== t) : [...n[e], t]
36
- })), { data: Me, loading: W } = n({
36
+ })), { data: Ne, loading: W } = n({
37
37
  variables: {
38
38
  limit: 200,
39
39
  offset: 0,
40
40
  search: null
41
41
  },
42
42
  errorPolicy: "all"
43
- }), G = Me?.headshotmarketingAudiences.items ?? [], K = G.find((e) => e.id === L.audienceId) ?? (L.audienceId && O ? {
43
+ }), G = Ne?.headshotmarketingAudiences.items ?? [], K = G.find((e) => e.id === L.audienceId) ?? (L.audienceId && k ? {
44
44
  id: L.audienceId,
45
- name: O,
45
+ name: k,
46
46
  estimatedSize: null
47
47
  } : null);
48
- fe(() => {
48
+ pe(() => {
49
49
  if (typeof IntersectionObserver > "u") return;
50
50
  let e = new IntersectionObserver((e) => {
51
51
  let t = e.filter((e) => e.isIntersecting).sort((e, t) => e.boundingClientRect.top - t.boundingClientRect.top)[0]?.target.getAttribute("data-step");
@@ -57,34 +57,34 @@ var y = "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5
57
57
  for (let t of Object.values(V.current)) t && e.observe(t);
58
58
  return () => e.disconnect();
59
59
  }, []);
60
- let q = de((e) => {
60
+ let q = fe((e) => {
61
61
  I(e), V.current[e]?.scrollIntoView({
62
62
  behavior: "smooth",
63
63
  block: "start"
64
64
  });
65
65
  }, []), J = (e) => (t) => {
66
66
  t && (V.current[e] = t);
67
- }, Y = p(L.dailyBudget), X = p(L.totalBudget), Z = m(L), Q = async (t) => {
68
- let n = ue(L);
67
+ }, Y = p(L.dailyBudget), X = p(L.totalBudget), Z = ue(L), Q = async (t) => {
68
+ let n = de(L);
69
69
  if (n) M(n.message), q(n.step);
70
70
  else {
71
71
  M(null), P(t);
72
72
  try {
73
- await De({
74
- variables: { input: le(L, t) },
73
+ await Oe({
74
+ variables: { input: se(L, t) },
75
75
  refetchQueries: [{
76
76
  query: e,
77
77
  variables: { limit: 200 }
78
78
  }],
79
79
  awaitRefetchQueries: !0
80
- }), v(x + "/ads/campaigns");
80
+ }), v(S + "/ads/campaigns");
81
81
  } catch (e) {
82
82
  M(e instanceof Error ? e.message : "Failed to create ad campaign.");
83
83
  } finally {
84
84
  P(null);
85
85
  }
86
86
  }
87
- }, $ = ke ?? Oe?.message ?? null, Ne = l.findIndex((e) => e.key === F);
87
+ }, $ = Ae ?? ke?.message ?? null, Pe = l.findIndex((e) => e.key === F);
88
88
  return /* @__PURE__ */ _(ee, {
89
89
  title: "Create Ad Campaign",
90
90
  header: /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ _("nav", {
@@ -93,7 +93,7 @@ var y = "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5
93
93
  children: [
94
94
  /* @__PURE__ */ g("button", {
95
95
  type: "button",
96
- onClick: () => v(x + "/ads/campaigns"),
96
+ onClick: () => v(S + "/ads/campaigns"),
97
97
  className: "text-action-primary-bg hover:underline",
98
98
  children: "Ads"
99
99
  }),
@@ -116,7 +116,7 @@ var y = "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5
116
116
  children: /* @__PURE__ */ g("ol", {
117
117
  className: "flex min-w-max items-center gap-2",
118
118
  children: l.map((e, t) => {
119
- let n = f(e.key, L), i = e.key === F;
119
+ let n = le(e.key, L), i = e.key === F;
120
120
  return /* @__PURE__ */ _("li", {
121
121
  className: "flex items-center gap-2",
122
122
  children: [/* @__PURE__ */ _("button", {
@@ -130,7 +130,7 @@ var y = "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5
130
130
  }), e.label]
131
131
  }), t < l.length - 1 && /* @__PURE__ */ g("span", {
132
132
  "aria-hidden": "true",
133
- className: r("h-0.5 w-10 rounded-full sm:w-20", t < Ne || n ? "bg-action-primary-bg" : "bg-border-subtle")
133
+ className: r("h-0.5 w-10 rounded-full sm:w-20", t < Pe || n ? "bg-action-primary-bg" : "bg-border-subtle")
134
134
  })]
135
135
  }, e.key);
136
136
  })
@@ -141,13 +141,13 @@ var y = "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5
141
141
  children: [/* @__PURE__ */ _("div", {
142
142
  className: "min-w-0 space-y-6",
143
143
  children: [
144
- /* @__PURE__ */ _(C, {
144
+ /* @__PURE__ */ _(w, {
145
145
  step: "platform",
146
146
  index: 1,
147
147
  title: "Platform",
148
148
  register: J("platform"),
149
149
  children: [
150
- /* @__PURE__ */ g(w, {
150
+ /* @__PURE__ */ g(T, {
151
151
  label: "Campaign name",
152
152
  htmlFor: "ad-name",
153
153
  children: /* @__PURE__ */ g("input", {
@@ -156,17 +156,17 @@ var y = "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5
156
156
  value: L.name,
157
157
  onChange: (e) => H("name", e.target.value),
158
158
  placeholder: "e.g., Search - Brand Terms",
159
- className: y
159
+ className: b
160
160
  })
161
161
  }),
162
- /* @__PURE__ */ g(w, {
162
+ /* @__PURE__ */ g(T, {
163
163
  label: "Platform",
164
- children: /* @__PURE__ */ g(o, {
164
+ children: /* @__PURE__ */ g(ne, {
165
165
  value: L.platform,
166
166
  onChange: (e) => H("platform", e)
167
167
  })
168
168
  }),
169
- /* @__PURE__ */ g(w, {
169
+ /* @__PURE__ */ g(T, {
170
170
  label: "Platform campaign ID",
171
171
  optional: !0,
172
172
  htmlFor: "ad-platform-campaign-id",
@@ -177,35 +177,35 @@ var y = "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5
177
177
  value: L.platformCampaignId,
178
178
  onChange: (e) => H("platformCampaignId", e.target.value),
179
179
  placeholder: "e.g., 120200000001",
180
- className: y
180
+ className: b
181
181
  })
182
182
  })
183
183
  ]
184
184
  }),
185
- /* @__PURE__ */ _(C, {
185
+ /* @__PURE__ */ _(w, {
186
186
  step: "objective",
187
187
  index: 2,
188
188
  title: "Objective",
189
189
  register: J("objective"),
190
190
  children: [
191
- /* @__PURE__ */ g(w, {
191
+ /* @__PURE__ */ g(T, {
192
192
  label: "Objective",
193
193
  htmlFor: "ad-objective",
194
- children: /* @__PURE__ */ _("select", {
194
+ children: /* @__PURE__ */ _(y, {
195
195
  id: "ad-objective",
196
196
  value: L.objective,
197
197
  onChange: (e) => H("objective", e.target.value),
198
- className: y,
198
+ className: b,
199
199
  children: [/* @__PURE__ */ g("option", {
200
200
  value: "",
201
201
  children: "Select an objective"
202
- }), se.map((e) => /* @__PURE__ */ g("option", {
202
+ }), f.map((e) => /* @__PURE__ */ g("option", {
203
203
  value: e,
204
204
  children: e
205
205
  }, e))]
206
206
  })
207
207
  }),
208
- /* @__PURE__ */ _(w, {
208
+ /* @__PURE__ */ _(T, {
209
209
  label: "Marketing campaign",
210
210
  optional: !0,
211
211
  htmlFor: "ad-marketing-campaign",
@@ -220,13 +220,13 @@ var y = "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5
220
220
  placeholder: "Search campaigns…",
221
221
  value: B.search,
222
222
  onChange: (e) => B.setSearch(e.target.value),
223
- className: r(y, "sm:max-w-xs")
224
- }), /* @__PURE__ */ _("select", {
223
+ className: r(b, "sm:max-w-xs")
224
+ }), /* @__PURE__ */ _(y, {
225
225
  id: "ad-marketing-campaign",
226
226
  "data-testid": "ad-marketing-campaign",
227
227
  value: L.campaignId,
228
- onChange: (e) => je(e.target.value),
229
- className: y,
228
+ onChange: (e) => Me(e.target.value),
229
+ className: b,
230
230
  children: [/* @__PURE__ */ g("option", {
231
231
  value: "",
232
232
  children: B.loading && B.options.length === 0 ? "Loading campaigns…" : "Not linked to a marketing campaign"
@@ -251,7 +251,7 @@ var y = "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5
251
251
  })
252
252
  ]
253
253
  }),
254
- /* @__PURE__ */ g(w, {
254
+ /* @__PURE__ */ g(T, {
255
255
  label: "Description",
256
256
  optional: !0,
257
257
  htmlFor: "ad-description",
@@ -261,12 +261,12 @@ var y = "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5
261
261
  onChange: (e) => H("description", e.target.value),
262
262
  rows: 3,
263
263
  placeholder: "Describe your campaign goals...",
264
- className: r(y, "resize-none")
264
+ className: r(b, "resize-none")
265
265
  })
266
266
  })
267
267
  ]
268
268
  }),
269
- /* @__PURE__ */ _(C, {
269
+ /* @__PURE__ */ _(w, {
270
270
  step: "budget",
271
271
  index: 3,
272
272
  title: "Budget",
@@ -274,7 +274,7 @@ var y = "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5
274
274
  children: [
275
275
  /* @__PURE__ */ _("div", {
276
276
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
277
- children: [/* @__PURE__ */ g(w, {
277
+ children: [/* @__PURE__ */ g(T, {
278
278
  label: "Daily budget (USD)",
279
279
  htmlFor: "ad-daily-budget",
280
280
  children: /* @__PURE__ */ g("input", {
@@ -284,9 +284,9 @@ var y = "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5
284
284
  value: L.dailyBudget,
285
285
  onChange: (e) => H("dailyBudget", e.target.value),
286
286
  placeholder: "500",
287
- className: y
287
+ className: b
288
288
  })
289
- }), /* @__PURE__ */ g(w, {
289
+ }), /* @__PURE__ */ g(T, {
290
290
  label: "Total budget (USD)",
291
291
  htmlFor: "ad-total-budget",
292
292
  children: /* @__PURE__ */ g("input", {
@@ -296,28 +296,28 @@ var y = "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5
296
296
  value: L.totalBudget,
297
297
  onChange: (e) => H("totalBudget", e.target.value),
298
298
  placeholder: "15000",
299
- className: y
299
+ className: b
300
300
  })
301
301
  })]
302
302
  }),
303
303
  /* @__PURE__ */ _("div", {
304
304
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
305
- children: [/* @__PURE__ */ g(w, {
305
+ children: [/* @__PURE__ */ g(T, {
306
306
  label: "Bid strategy",
307
307
  htmlFor: "ad-bid-strategy",
308
- children: /* @__PURE__ */ g("select", {
308
+ children: /* @__PURE__ */ g(y, {
309
309
  id: "ad-bid-strategy",
310
310
  value: L.bidStrategy,
311
311
  onChange: (e) => H("bidStrategy", e.target.value),
312
- className: y,
313
- children: ae.map((e) => /* @__PURE__ */ g("option", {
312
+ className: b,
313
+ children: c.map((e) => /* @__PURE__ */ g("option", {
314
314
  value: e,
315
315
  children: e
316
316
  }, e))
317
317
  })
318
318
  }), /* @__PURE__ */ _("div", {
319
319
  className: "grid grid-cols-2 gap-3",
320
- children: [/* @__PURE__ */ g(w, {
320
+ children: [/* @__PURE__ */ g(T, {
321
321
  label: "Start date",
322
322
  htmlFor: "ad-start-date",
323
323
  children: /* @__PURE__ */ g("input", {
@@ -325,9 +325,9 @@ var y = "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5
325
325
  type: "date",
326
326
  value: L.startDate,
327
327
  onChange: (e) => H("startDate", e.target.value),
328
- className: y
328
+ className: b
329
329
  })
330
- }), /* @__PURE__ */ g(w, {
330
+ }), /* @__PURE__ */ g(T, {
331
331
  label: "End date",
332
332
  htmlFor: "ad-end-date",
333
333
  children: /* @__PURE__ */ g("input", {
@@ -335,7 +335,7 @@ var y = "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5
335
335
  type: "date",
336
336
  value: L.endDate,
337
337
  onChange: (e) => H("endDate", e.target.value),
338
- className: y
338
+ className: b
339
339
  })
340
340
  })]
341
341
  })]
@@ -346,23 +346,23 @@ var y = "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5
346
346
  })
347
347
  ]
348
348
  }),
349
- /* @__PURE__ */ _(C, {
349
+ /* @__PURE__ */ _(w, {
350
350
  step: "audience",
351
351
  index: 4,
352
352
  title: "Audience",
353
353
  register: J("audience"),
354
354
  children: [
355
- /* @__PURE__ */ g(w, {
355
+ /* @__PURE__ */ g(T, {
356
356
  label: "Saved audience",
357
357
  optional: !0,
358
358
  htmlFor: "ad-audience",
359
359
  hint: "Attach an audience you saved earlier, or set the targeting manually below.",
360
- children: /* @__PURE__ */ _("select", {
360
+ children: /* @__PURE__ */ _(y, {
361
361
  id: "ad-audience",
362
362
  value: L.audienceId,
363
363
  onChange: (e) => H("audienceId", e.target.value),
364
364
  disabled: W,
365
- className: y,
365
+ className: b,
366
366
  children: [/* @__PURE__ */ g("option", {
367
367
  value: "",
368
368
  children: W ? "Loading audiences…" : "No saved audience — target manually below"
@@ -372,20 +372,20 @@ var y = "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5
372
372
  }, e.id))]
373
373
  })
374
374
  }),
375
- /* @__PURE__ */ g(w, {
375
+ /* @__PURE__ */ g(T, {
376
376
  label: "Age range",
377
377
  children: /* @__PURE__ */ g("div", {
378
378
  className: "flex flex-wrap gap-2",
379
- children: ie.map((e) => /* @__PURE__ */ g("button", {
379
+ children: s.map((e) => /* @__PURE__ */ g("button", {
380
380
  type: "button",
381
381
  "aria-pressed": L.ages.includes(e),
382
382
  onClick: () => U("ages", e),
383
- className: b(L.ages.includes(e)),
383
+ className: x(L.ages.includes(e)),
384
384
  children: e
385
385
  }, e))
386
386
  })
387
387
  }),
388
- /* @__PURE__ */ g(w, {
388
+ /* @__PURE__ */ g(T, {
389
389
  label: "Gender",
390
390
  children: /* @__PURE__ */ g("div", {
391
391
  className: "flex flex-wrap gap-2",
@@ -393,12 +393,12 @@ var y = "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5
393
393
  type: "button",
394
394
  "aria-pressed": L.gender === e,
395
395
  onClick: () => H("gender", e),
396
- className: b(L.gender === e),
396
+ className: x(L.gender === e),
397
397
  children: e
398
398
  }, e))
399
399
  })
400
400
  }),
401
- /* @__PURE__ */ g(w, {
401
+ /* @__PURE__ */ g(T, {
402
402
  label: "Locations",
403
403
  htmlFor: "ad-locations",
404
404
  children: /* @__PURE__ */ g("input", {
@@ -407,25 +407,25 @@ var y = "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5
407
407
  value: L.locations,
408
408
  onChange: (e) => H("locations", e.target.value),
409
409
  placeholder: "Enter locations (comma-separated)",
410
- className: y
410
+ className: b
411
411
  })
412
412
  }),
413
- /* @__PURE__ */ g(w, {
413
+ /* @__PURE__ */ g(T, {
414
414
  label: "Interests",
415
415
  children: /* @__PURE__ */ g("div", {
416
416
  className: "flex flex-wrap gap-2",
417
- children: oe.map((e) => /* @__PURE__ */ g("button", {
417
+ children: d.map((e) => /* @__PURE__ */ g("button", {
418
418
  type: "button",
419
419
  "aria-pressed": L.interests.includes(e),
420
420
  onClick: () => U("interests", e),
421
- className: b(L.interests.includes(e)),
421
+ className: x(L.interests.includes(e)),
422
422
  children: e
423
423
  }, e))
424
424
  })
425
425
  })
426
426
  ]
427
427
  }),
428
- /* @__PURE__ */ g(C, {
428
+ /* @__PURE__ */ g(w, {
429
429
  step: "review",
430
430
  index: 5,
431
431
  title: "Review",
@@ -433,47 +433,47 @@ var y = "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5
433
433
  children: /* @__PURE__ */ _("div", {
434
434
  className: "space-y-3",
435
435
  children: [
436
- /* @__PURE__ */ g(T, {
436
+ /* @__PURE__ */ g(E, {
437
437
  label: "Name",
438
438
  value: L.name || "(Not set)"
439
439
  }),
440
- /* @__PURE__ */ g(T, {
440
+ /* @__PURE__ */ g(E, {
441
441
  label: "Platform",
442
- value: s(L.platform)
442
+ value: o(L.platform)
443
443
  }),
444
- /* @__PURE__ */ g(T, {
444
+ /* @__PURE__ */ g(E, {
445
445
  label: "Platform campaign ID",
446
446
  value: L.platformCampaignId.trim() || "Not linked"
447
447
  }),
448
- /* @__PURE__ */ g(T, {
448
+ /* @__PURE__ */ g(E, {
449
449
  label: "Marketing campaign",
450
450
  value: z?.name ?? "Not linked"
451
451
  }),
452
- /* @__PURE__ */ g(T, {
452
+ /* @__PURE__ */ g(E, {
453
453
  label: "Objective",
454
454
  value: L.objective || "(Not set)"
455
455
  }),
456
- /* @__PURE__ */ g(T, {
456
+ /* @__PURE__ */ g(E, {
457
457
  label: "Daily budget",
458
458
  value: Y ? i(Y) : "Not set"
459
459
  }),
460
- /* @__PURE__ */ g(T, {
460
+ /* @__PURE__ */ g(E, {
461
461
  label: "Total budget",
462
462
  value: X ? i(X) : "Not set"
463
463
  }),
464
- /* @__PURE__ */ g(T, {
464
+ /* @__PURE__ */ g(E, {
465
465
  label: "Bid strategy",
466
466
  value: L.bidStrategy
467
467
  }),
468
- /* @__PURE__ */ g(T, {
468
+ /* @__PURE__ */ g(E, {
469
469
  label: "Schedule",
470
470
  value: L.startDate && L.endDate ? `${L.startDate} to ${L.endDate}` : "(Not set)"
471
471
  }),
472
- /* @__PURE__ */ g(T, {
472
+ /* @__PURE__ */ g(E, {
473
473
  label: "Audience",
474
474
  value: K?.name ?? "Manual targeting"
475
475
  }),
476
- /* @__PURE__ */ g(T, {
476
+ /* @__PURE__ */ g(E, {
477
477
  label: "Targeting",
478
478
  value: [
479
479
  L.ages.join(", "),
@@ -494,9 +494,9 @@ var y = "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5
494
494
  ]
495
495
  }), /* @__PURE__ */ _("aside", {
496
496
  className: "h-fit space-y-4 lg:sticky lg:top-20",
497
- children: [/* @__PURE__ */ g(ne, {
497
+ children: [/* @__PURE__ */ g(ie, {
498
498
  audienceId: L.audienceId || null,
499
- dailyBudget: d(L),
499
+ dailyBudget: ce(L),
500
500
  platform: L.platform
501
501
  }), /* @__PURE__ */ _(Te, {
502
502
  treatment: "insight",
@@ -542,24 +542,24 @@ var y = "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5
542
542
  /* @__PURE__ */ _("dl", {
543
543
  className: "space-y-3 text-sm",
544
544
  children: [
545
- /* @__PURE__ */ g(E, {
546
- icon: c(L.platform, "h-4 w-4 shrink-0"),
545
+ /* @__PURE__ */ g(D, {
546
+ icon: re(L.platform, "h-4 w-4 shrink-0"),
547
547
  label: "Platform",
548
- value: s(L.platform)
548
+ value: o(L.platform)
549
549
  }),
550
- /* @__PURE__ */ g(E, {
550
+ /* @__PURE__ */ g(D, {
551
551
  icon: /* @__PURE__ */ g(be, { className: "h-4 w-4 shrink-0" }),
552
552
  label: "Objective",
553
553
  value: L.objective || "Not set",
554
554
  muted: !L.objective
555
555
  }),
556
- /* @__PURE__ */ g(E, {
556
+ /* @__PURE__ */ g(D, {
557
557
  icon: /* @__PURE__ */ g(Se, { className: "h-4 w-4 shrink-0" }),
558
558
  label: "Budget",
559
559
  value: Y ? `${i(Y)} / day` : X ? `${i(X)} total` : "Not set",
560
560
  muted: !Y && !X
561
561
  }),
562
- /* @__PURE__ */ g(E, {
562
+ /* @__PURE__ */ g(D, {
563
563
  icon: /* @__PURE__ */ g(he, { className: "h-4 w-4 shrink-0" }),
564
564
  label: "Schedule",
565
565
  value: Z ? `${Z} day${Z === 1 ? "" : "s"}` : "Not set",
@@ -575,9 +575,9 @@ var y = "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5
575
575
  className: "sticky bottom-0 z-10 -mx-1 flex flex-wrap items-center justify-between gap-3 border-t border-border-seam bg-bg-canvas/95 px-1 py-4 backdrop-blur",
576
576
  children: [/* @__PURE__ */ _("button", {
577
577
  type: "button",
578
- onClick: () => v(x + "/ads/campaigns"),
578
+ onClick: () => v(S + "/ads/campaigns"),
579
579
  className: "inline-flex min-h-11 items-center gap-2 rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken",
580
- children: [/* @__PURE__ */ g(me, { className: "h-4 w-4" }), "Back"]
580
+ children: [/* @__PURE__ */ g(h, { className: "h-4 w-4" }), "Back"]
581
581
  }), /* @__PURE__ */ _("div", {
582
582
  className: "flex items-center gap-2",
583
583
  children: [/* @__PURE__ */ _("button", {
@@ -597,16 +597,16 @@ var y = "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5
597
597
  })
598
598
  ]
599
599
  });
600
- }, C = ({ step: e, index: t, title: n, register: r, children: i }) => /* @__PURE__ */ g("section", {
601
- id: x(e),
600
+ }, w = ({ step: e, index: t, title: n, register: r, children: i }) => /* @__PURE__ */ g("section", {
601
+ id: S(e),
602
602
  "data-step": e,
603
603
  ref: r,
604
- "aria-labelledby": `${x(e)}-title`,
604
+ "aria-labelledby": `${S(e)}-title`,
605
605
  className: "scroll-mt-24",
606
606
  children: /* @__PURE__ */ _(v, {
607
607
  className: "space-y-5 p-6",
608
608
  children: [/* @__PURE__ */ _("h2", {
609
- id: `${x(e)}-title`,
609
+ id: `${S(e)}-title`,
610
610
  className: "flex items-center gap-2 text-base font-semibold text-text-primary",
611
611
  children: [/* @__PURE__ */ g("span", {
612
612
  className: "flex h-6 w-6 items-center justify-center rounded-full bg-bg-sunken text-xs text-text-secondary",
@@ -614,12 +614,12 @@ var y = "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5
614
614
  }), n]
615
615
  }), i]
616
616
  })
617
- }), w = ({ label: e, htmlFor: t, optional: n, hint: r, children: i }) => /* @__PURE__ */ _("div", { children: [
617
+ }), T = ({ label: e, htmlFor: t, optional: n, hint: r, children: i }) => /* @__PURE__ */ _("div", { children: [
618
618
  /* @__PURE__ */ _("label", {
619
619
  htmlFor: t,
620
620
  className: "mb-1.5 block text-sm font-medium text-text-primary",
621
621
  children: [e, n && /* @__PURE__ */ g("span", {
622
- className: "ml-1 font-normal text-text-secondary",
622
+ className: "ms-1 font-normal text-text-secondary",
623
623
  children: "(optional)"
624
624
  })]
625
625
  }),
@@ -628,25 +628,25 @@ var y = "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5
628
628
  className: "mt-1.5 text-xs text-text-secondary",
629
629
  children: r
630
630
  })
631
- ] }), T = ({ label: e, value: t, last: n }) => /* @__PURE__ */ _("div", {
631
+ ] }), E = ({ label: e, value: t, last: n }) => /* @__PURE__ */ _("div", {
632
632
  className: r("flex justify-between gap-4", !n && "border-b border-border-subtle pb-2"),
633
633
  children: [/* @__PURE__ */ g("span", {
634
634
  className: "text-sm text-text-secondary",
635
635
  children: e
636
636
  }), /* @__PURE__ */ g("span", {
637
- className: "text-right text-sm font-medium text-text-primary",
637
+ className: "text-end text-sm font-medium text-text-primary",
638
638
  children: t
639
639
  })]
640
- }), E = ({ icon: e, label: t, value: n, muted: i }) => /* @__PURE__ */ _("div", {
640
+ }), D = ({ icon: e, label: t, value: n, muted: i }) => /* @__PURE__ */ _("div", {
641
641
  className: "flex items-center justify-between gap-3",
642
642
  children: [/* @__PURE__ */ _("dt", {
643
643
  className: "flex items-center gap-2 text-text-secondary",
644
644
  children: [e, /* @__PURE__ */ g("span", { children: t })]
645
645
  }), /* @__PURE__ */ g("dd", {
646
- className: r("truncate text-right font-medium", i ? "text-text-secondary" : "text-text-primary"),
646
+ className: r("truncate text-end font-medium", i ? "text-text-secondary" : "text-text-primary"),
647
647
  children: n
648
648
  })]
649
649
  });
650
- export { S as CreateAdCampaignPage };
650
+ export { C as CreateAdCampaignPage };
651
651
 
652
652
  //# sourceMappingURL=CreateAdCampaignPage.js.map