@burdenoff/microfe-headshotmarketing 2026.1201.1 → 2026.1202.2

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 (161) 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/AssetUploadButton.js +35 -23
  4. package/dist/headshotmarketing/components/AssetUploadButton.js.map +1 -1
  5. package/dist/headshotmarketing/components/DataTable.js +33 -33
  6. package/dist/headshotmarketing/components/DataTable.js.map +1 -1
  7. package/dist/headshotmarketing/components/EmptyState.d.ts +15 -0
  8. package/dist/headshotmarketing/components/EmptyState.js +35 -15
  9. package/dist/headshotmarketing/components/EmptyState.js.map +1 -1
  10. package/dist/headshotmarketing/components/FilterBar.js +2 -2
  11. package/dist/headshotmarketing/components/FilterBar.js.map +1 -1
  12. package/dist/headshotmarketing/components/InfluencerModals.js +96 -95
  13. package/dist/headshotmarketing/components/InfluencerModals.js.map +1 -1
  14. package/dist/headshotmarketing/components/Pagination.js +38 -37
  15. package/dist/headshotmarketing/components/Pagination.js.map +1 -1
  16. package/dist/headshotmarketing/components/TagChipsInput.js +1 -1
  17. package/dist/headshotmarketing/components/TagChipsInput.js.map +1 -1
  18. package/dist/headshotmarketing/components/Toast.js +1 -1
  19. package/dist/headshotmarketing/components/Toast.js.map +1 -1
  20. package/dist/headshotmarketing/components/UploadAudienceSelect.d.ts +7 -0
  21. package/dist/headshotmarketing/components/UploadAudienceSelect.js +40 -0
  22. package/dist/headshotmarketing/components/UploadAudienceSelect.js.map +1 -0
  23. package/dist/headshotmarketing/hooks/useAssetUpload.d.ts +2 -19
  24. package/dist/headshotmarketing/hooks/useAssetUpload.js +38 -32
  25. package/dist/headshotmarketing/hooks/useAssetUpload.js.map +1 -1
  26. package/dist/headshotmarketing/pages/HomeMonthlyGoals.js.map +1 -1
  27. package/dist/headshotmarketing/pages/HomePage.js +10 -10
  28. package/dist/headshotmarketing/pages/HomePage.js.map +1 -1
  29. package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js +203 -203
  30. package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js.map +1 -1
  31. package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js +148 -148
  32. package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js.map +1 -1
  33. package/dist/headshotmarketing/pages/ads/AdCreativeTestsSection.js +74 -73
  34. package/dist/headshotmarketing/pages/ads/AdCreativeTestsSection.js.map +1 -1
  35. package/dist/headshotmarketing/pages/ads/AdCreativesPage.js +427 -412
  36. package/dist/headshotmarketing/pages/ads/AdCreativesPage.js.map +1 -1
  37. package/dist/headshotmarketing/pages/ads/AdPlatformConnectionsSection.js +111 -110
  38. package/dist/headshotmarketing/pages/ads/AdPlatformConnectionsSection.js.map +1 -1
  39. package/dist/headshotmarketing/pages/ads/AdPlatformSyncPanel.js +1 -1
  40. package/dist/headshotmarketing/pages/ads/AdPlatformSyncPanel.js.map +1 -1
  41. package/dist/headshotmarketing/pages/ads/AdsPage.js +6 -6
  42. package/dist/headshotmarketing/pages/ads/AdsPage.js.map +1 -1
  43. package/dist/headshotmarketing/pages/ads/AudiencesPage.js +49 -49
  44. package/dist/headshotmarketing/pages/ads/AudiencesPage.js.map +1 -1
  45. package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js +112 -112
  46. package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js.map +1 -1
  47. package/dist/headshotmarketing/pages/ads/CreateAudiencePage.js +57 -57
  48. package/dist/headshotmarketing/pages/ads/CreateAudiencePage.js.map +1 -1
  49. package/dist/headshotmarketing/pages/ai/AiOperationsPage.js +175 -174
  50. package/dist/headshotmarketing/pages/ai/AiOperationsPage.js.map +1 -1
  51. package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js +1 -1
  52. package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js.map +1 -1
  53. package/dist/headshotmarketing/pages/analytics/AttributionPage.js +129 -129
  54. package/dist/headshotmarketing/pages/analytics/AttributionPage.js.map +1 -1
  55. package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js +9 -9
  56. package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js.map +1 -1
  57. package/dist/headshotmarketing/pages/analytics/ReportScheduleDialog.js +95 -94
  58. package/dist/headshotmarketing/pages/analytics/ReportScheduleDialog.js.map +1 -1
  59. package/dist/headshotmarketing/pages/analytics/ReportsPage.js +4 -4
  60. package/dist/headshotmarketing/pages/analytics/ReportsPage.js.map +1 -1
  61. package/dist/headshotmarketing/pages/analytics/TouchpointLedgerCard.js +42 -41
  62. package/dist/headshotmarketing/pages/analytics/TouchpointLedgerCard.js.map +1 -1
  63. package/dist/headshotmarketing/pages/analytics/analyticsWidgets.js +132 -131
  64. package/dist/headshotmarketing/pages/analytics/analyticsWidgets.js.map +1 -1
  65. package/dist/headshotmarketing/pages/automation/AutomationPage.js +8 -8
  66. package/dist/headshotmarketing/pages/automation/AutomationPage.js.map +1 -1
  67. package/dist/headshotmarketing/pages/automation/TriggersPage.js +48 -48
  68. package/dist/headshotmarketing/pages/automation/TriggersPage.js.map +1 -1
  69. package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js +4 -3
  70. package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js.map +1 -1
  71. package/dist/headshotmarketing/pages/automation/WorkflowNodeConfigPanel.js +143 -142
  72. package/dist/headshotmarketing/pages/automation/WorkflowNodeConfigPanel.js.map +1 -1
  73. package/dist/headshotmarketing/pages/automation/WorkflowRunsPanel.js +79 -78
  74. package/dist/headshotmarketing/pages/automation/WorkflowRunsPanel.js.map +1 -1
  75. package/dist/headshotmarketing/pages/automation/WorkflowsPage.js +92 -92
  76. package/dist/headshotmarketing/pages/automation/WorkflowsPage.js.map +1 -1
  77. package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js +143 -143
  78. package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js.map +1 -1
  79. package/dist/headshotmarketing/pages/builder/SectionCanvasBlock.js +3 -3
  80. package/dist/headshotmarketing/pages/builder/SectionCanvasBlock.js.map +1 -1
  81. package/dist/headshotmarketing/pages/builder/SectionInspector.js +24 -23
  82. package/dist/headshotmarketing/pages/builder/SectionInspector.js.map +1 -1
  83. package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js +198 -193
  84. package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js.map +1 -1
  85. package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js +41 -41
  86. package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js.map +1 -1
  87. package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js +234 -229
  88. package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js.map +1 -1
  89. package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js +199 -187
  90. package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js.map +1 -1
  91. package/dist/headshotmarketing/pages/campaigns/CreateTemplateModal.js +46 -46
  92. package/dist/headshotmarketing/pages/campaigns/CreateTemplateModal.js.map +1 -1
  93. package/dist/headshotmarketing/pages/content/AIExecutionLedger.js +29 -29
  94. package/dist/headshotmarketing/pages/content/AIExecutionLedger.js.map +1 -1
  95. package/dist/headshotmarketing/pages/content/AIToolsPage.js +3 -3
  96. package/dist/headshotmarketing/pages/content/AIToolsPage.js.map +1 -1
  97. package/dist/headshotmarketing/pages/content/AssetLibraryPage.js +230 -220
  98. package/dist/headshotmarketing/pages/content/AssetLibraryPage.js.map +1 -1
  99. package/dist/headshotmarketing/pages/content/ContentCreationPage.js +431 -420
  100. package/dist/headshotmarketing/pages/content/ContentCreationPage.js.map +1 -1
  101. package/dist/headshotmarketing/pages/content/ContentDetailsPage.js +7 -7
  102. package/dist/headshotmarketing/pages/content/ContentDetailsPage.js.map +1 -1
  103. package/dist/headshotmarketing/pages/content/ContentLibraryCard.js +2 -2
  104. package/dist/headshotmarketing/pages/content/ContentLibraryCard.js.map +1 -1
  105. package/dist/headshotmarketing/pages/content/ContentPage.js +88 -88
  106. package/dist/headshotmarketing/pages/content/ContentPage.js.map +1 -1
  107. package/dist/headshotmarketing/pages/crm/ContactsPage.js +111 -111
  108. package/dist/headshotmarketing/pages/crm/ContactsPage.js.map +1 -1
  109. package/dist/headshotmarketing/pages/crm/CreateContactPage.js +59 -59
  110. package/dist/headshotmarketing/pages/crm/CreateContactPage.js.map +1 -1
  111. package/dist/headshotmarketing/pages/crm/CreateDealPage.js +86 -86
  112. package/dist/headshotmarketing/pages/crm/CreateDealPage.js.map +1 -1
  113. package/dist/headshotmarketing/pages/crm/CrmActions.js +93 -92
  114. package/dist/headshotmarketing/pages/crm/CrmActions.js.map +1 -1
  115. package/dist/headshotmarketing/pages/crm/CrmPage.js +4 -4
  116. package/dist/headshotmarketing/pages/crm/CrmPage.js.map +1 -1
  117. package/dist/headshotmarketing/pages/crm/LeadCreateModal.js +63 -62
  118. package/dist/headshotmarketing/pages/crm/LeadCreateModal.js.map +1 -1
  119. package/dist/headshotmarketing/pages/crm/LeadsPage.js +68 -68
  120. package/dist/headshotmarketing/pages/crm/LeadsPage.js.map +1 -1
  121. package/dist/headshotmarketing/pages/crm/PipelinePage.js +2 -2
  122. package/dist/headshotmarketing/pages/crm/PipelinePage.js.map +1 -1
  123. package/dist/headshotmarketing/pages/events/CreateEventPage.js +165 -165
  124. package/dist/headshotmarketing/pages/events/CreateEventPage.js.map +1 -1
  125. package/dist/headshotmarketing/pages/events/EventDetailsPage.js +255 -250
  126. package/dist/headshotmarketing/pages/events/EventDetailsPage.js.map +1 -1
  127. package/dist/headshotmarketing/pages/events/EventImageUpload.js +8 -2
  128. package/dist/headshotmarketing/pages/events/EventImageUpload.js.map +1 -1
  129. package/dist/headshotmarketing/pages/events/EventPagePreview.js +2 -2
  130. package/dist/headshotmarketing/pages/events/EventPagePreview.js.map +1 -1
  131. package/dist/headshotmarketing/pages/events/EventsPage.js +70 -70
  132. package/dist/headshotmarketing/pages/events/EventsPage.js.map +1 -1
  133. package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js +7 -7
  134. package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js.map +1 -1
  135. package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js +98 -98
  136. package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js.map +1 -1
  137. package/dist/headshotmarketing/pages/influencers/InfluencersPage.js +1 -1
  138. package/dist/headshotmarketing/pages/influencers/InfluencersPage.js.map +1 -1
  139. package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js +145 -140
  140. package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js.map +1 -1
  141. package/dist/headshotmarketing/pages/seo/SeoScorePanel.js +1 -1
  142. package/dist/headshotmarketing/pages/seo/SeoScorePanel.js.map +1 -1
  143. package/dist/headshotmarketing/pages/seo/SeoToolsPage.js +286 -286
  144. package/dist/headshotmarketing/pages/seo/SeoToolsPage.js.map +1 -1
  145. package/dist/headshotmarketing/pages/social-media/AccountsPage.js +171 -166
  146. package/dist/headshotmarketing/pages/social-media/AccountsPage.js.map +1 -1
  147. package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js +1 -1
  148. package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js.map +1 -1
  149. package/dist/headshotmarketing/pages/social-media/CreateAccountPage.js +1 -1
  150. package/dist/headshotmarketing/pages/social-media/CreateAccountPage.js.map +1 -1
  151. package/dist/headshotmarketing/pages/social-media/MediaDropZone.js +3 -3
  152. package/dist/headshotmarketing/pages/social-media/MediaDropZone.js.map +1 -1
  153. package/dist/headshotmarketing/pages/social-media/PostsPage.js +257 -252
  154. package/dist/headshotmarketing/pages/social-media/PostsPage.js.map +1 -1
  155. package/dist/headshotmarketing/pages/social-media/SocialComposerPreview.js +2 -2
  156. package/dist/headshotmarketing/pages/social-media/SocialComposerPreview.js.map +1 -1
  157. package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js +4 -4
  158. package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js.map +1 -1
  159. package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js +115 -115
  160. package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js.map +1 -1
  161. package/package.json +6 -4
@@ -1,24 +1,24 @@
1
1
  import { useDeleteHeadshotmarketingAdCampaignMutation as e, useUpdateHeadshotmarketingAdCampaignMutation as t } from "../../../generated/wspace-operations.js";
2
2
  import { HeadshotmarketingAdCampaignStatus as n } from "../../../generated/wspace-types.js";
3
- import { cn as ee, formatCurrency as r, formatDate as i, formatNumber as a, formatPercentage as o } from "../../utils/helpers.js";
4
- import { toAdCampaignModel as te, toAdCampaignStatusEnum as s, toAdCreativeModel as c, toAudienceModel as l } from "../../utils/adsMapper.js";
3
+ import { cn as r, formatCurrency as i, formatDate as a, formatNumber as o, formatPercentage as s } from "../../utils/helpers.js";
4
+ import { toAdCampaignModel as c, toAdCampaignStatusEnum as ee, toAdCreativeModel as l, toAudienceModel as u } from "../../utils/adsMapper.js";
5
5
  import "../../components/index.js";
6
- import { PageLayout as u } from "../../components/PageLayout.js";
7
- import { StatCard as d } from "../../components/StatCard.js";
6
+ import { PageLayout as d } from "../../components/PageLayout.js";
7
+ import { StatCard as f } from "../../components/StatCard.js";
8
+ import { EmptyState as te } from "../../components/EmptyState.js";
8
9
  import { StatusBadge as ne } from "../../components/StatusBadge.js";
9
- import { EmptyState as re } from "../../components/EmptyState.js";
10
- import { Modal as f } from "../../components/Modal.js";
11
- import { QueryStateBoundary as ie } from "../../components/QueryStateBoundary.js";
12
- import { TrackedLinksPanel as p } from "../../components/TrackedLinksPanel.js";
13
- import { useHeadshotMarketing as m } from "../../context/HeadshotMarketingContext.js";
14
- import { useHeadshotmarketingBootstrap as ae } from "../../hooks/useHeadshotmarketingBootstrap.js";
15
- import { AdPlatformSyncPanel as oe } from "./AdPlatformSyncPanel.js";
16
- import { AdBudgetAiPanel as h } from "./AdBudgetAiPanel.js";
17
- import { useMemo as g, useState as _ } from "react";
18
- import { ArrowLeft as v, Calendar as y, DollarSign as b, Eye as x, Link2 as S, MousePointerClick as C, Pause as se, Pencil as ce, Play as le, Target as ue, Trash2 as de, TrendingUp as fe } from "lucide-react";
19
- import { useParams as pe } from "react-router";
20
- import { Fragment as w, jsx as T, jsxs as E } from "react/jsx-runtime";
21
- import { EmphasisPanel as me, PagePurpose as he } from "@burdenoff/fe-libs/ui";
10
+ import { Modal as p } from "../../components/Modal.js";
11
+ import { QueryStateBoundary as re } from "../../components/QueryStateBoundary.js";
12
+ import { TrackedLinksPanel as m } from "../../components/TrackedLinksPanel.js";
13
+ import { useHeadshotMarketing as h } from "../../context/HeadshotMarketingContext.js";
14
+ import { useHeadshotmarketingBootstrap as g } from "../../hooks/useHeadshotmarketingBootstrap.js";
15
+ import { AdPlatformSyncPanel as _ } from "./AdPlatformSyncPanel.js";
16
+ import { AdBudgetAiPanel as v } from "./AdBudgetAiPanel.js";
17
+ import { useMemo as y, useState as b } from "react";
18
+ import { ArrowLeft as x, Calendar as ie, DollarSign as S, Eye as ae, Link2 as oe, MousePointerClick as se, Pause as ce, Pencil as le, Play as ue, Target as de, Trash2 as fe, TrendingUp as pe } from "lucide-react";
19
+ import { useParams as me } from "react-router";
20
+ import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
21
+ import { EmphasisPanel as he, PagePurpose as ge, ThemedSelect as E } from "@burdenoff/fe-libs/ui";
22
22
  // src/headshotmarketing/pages/ads/AdCampaignDetailsPage.tsx
23
23
  var D = {
24
24
  google_ads: "Google Ads",
@@ -33,36 +33,36 @@ function O(e) {
33
33
  return Number.isNaN(t.getTime()) ? "" : t.toISOString().slice(0, 10);
34
34
  }
35
35
  var k = () => {
36
- let { navigate: k, basePath: A } = m(), { adCampaignId: j } = pe(), { data: M, loading: N, error: P, refetch: F } = ae(), [I, L] = _(null), [R, z] = _(!1), [B, V] = _(null), [H, U] = _(null), [W, { loading: G }] = t(), [ge, { loading: K }] = e(), q = g(() => (M?.headshotmarketingAdCampaigns.items ?? []).find((e) => e.id === j) ?? null, [M?.headshotmarketingAdCampaigns.items, j]), J = q ? te(q) : null, Y = g(() => j ? (M?.headshotmarketingAdCreatives.items ?? []).filter((e) => e.adCampaignId === j).map((e) => c(e)) : [], [M?.headshotmarketingAdCreatives.items, j]), X = g(() => {
37
- if (!J) return [];
38
- let e = new Set(J.audiences);
39
- return (M?.headshotmarketingAudiences.items ?? []).filter((t) => e.has(t.id)).map((e) => l(e));
40
- }, [M?.headshotmarketingAudiences.items, J]), Z = () => k(A + "/ads/campaigns"), _e = async () => {
41
- if (j && J) {
42
- V(null);
36
+ let { navigate: k, basePath: A } = h(), { adCampaignId: j } = me(), { data: M, loading: N, error: P, refetch: F } = g(), [I, L] = b(null), [_e, R] = b(!1), [z, B] = b(null), [V, H] = b(null), [U, { loading: W }] = t(), [ve, { loading: G }] = e(), K = y(() => (M?.headshotmarketingAdCampaigns.items ?? []).find((e) => e.id === j) ?? null, [M?.headshotmarketingAdCampaigns.items, j]), q = K ? c(K) : null, J = y(() => j ? (M?.headshotmarketingAdCreatives.items ?? []).filter((e) => e.adCampaignId === j).map((e) => l(e)) : [], [M?.headshotmarketingAdCreatives.items, j]), Y = y(() => {
37
+ if (!q) return [];
38
+ let e = new Set(q.audiences);
39
+ return (M?.headshotmarketingAudiences.items ?? []).filter((t) => e.has(t.id)).map((e) => u(e));
40
+ }, [M?.headshotmarketingAudiences.items, q]), X = () => k(A + "/ads/campaigns"), Z = async () => {
41
+ if (j && q) {
42
+ B(null);
43
43
  try {
44
- await W({ variables: {
44
+ await U({ variables: {
45
45
  id: j,
46
- input: { status: J.status === "active" ? n.Paused : n.Active }
46
+ input: { status: q.status === "active" ? n.Paused : n.Active }
47
47
  } }), await F();
48
48
  } catch (e) {
49
- V(e instanceof Error ? e.message : "Failed to update campaign.");
49
+ B(e instanceof Error ? e.message : "Failed to update campaign.");
50
50
  }
51
51
  }
52
- }, ve = async () => {
52
+ }, ye = async () => {
53
53
  if (!j || !I) return;
54
54
  if (!I.name.trim()) {
55
- V("Campaign name is required.");
55
+ B("Campaign name is required.");
56
56
  return;
57
57
  }
58
- V(null);
58
+ B(null);
59
59
  let e = Number(I.totalBudget);
60
60
  try {
61
- await W({ variables: {
61
+ await U({ variables: {
62
62
  id: j,
63
63
  input: {
64
64
  name: I.name.trim(),
65
- status: s(I.status),
65
+ status: ee(I.status),
66
66
  bidStrategy: I.bidStrategy || null,
67
67
  totalBudget: I.totalBudget && Number.isFinite(e) ? e : null,
68
68
  startDate: I.startDate ? new Date(I.startDate).toISOString() : null,
@@ -70,220 +70,220 @@ var k = () => {
70
70
  }
71
71
  } }), L(null), await F();
72
72
  } catch (e) {
73
- V(e instanceof Error ? e.message : "Failed to save campaign.");
73
+ B(e instanceof Error ? e.message : "Failed to save campaign.");
74
74
  }
75
- }, ye = async () => {
75
+ }, be = async () => {
76
76
  if (j) {
77
- V(null);
77
+ B(null);
78
78
  try {
79
- await ge({ variables: { id: j } }), z(!1), await F(), Z();
79
+ await ve({ variables: { id: j } }), R(!1), await F(), X();
80
80
  } catch (e) {
81
- V(e instanceof Error ? e.message : "Failed to delete campaign.");
81
+ B(e instanceof Error ? e.message : "Failed to delete campaign.");
82
82
  }
83
83
  }
84
- }, be = () => {
85
- J && (V(null), L({
86
- name: J.name,
87
- status: J.status,
88
- totalBudget: J.budget.total > 0 ? String(J.budget.total) : "",
89
- bidStrategy: J.bidStrategy,
90
- startDate: O(J.startDate),
91
- endDate: O(J.endDate)
84
+ }, xe = () => {
85
+ q && (B(null), L({
86
+ name: q.name,
87
+ status: q.status,
88
+ totalBudget: q.budget.total > 0 ? String(q.budget.total) : "",
89
+ bidStrategy: q.bidStrategy,
90
+ startDate: O(q.startDate),
91
+ endDate: O(q.endDate)
92
92
  }));
93
93
  };
94
- if (!J) return /* @__PURE__ */ T(u, {
94
+ if (!q) return /* @__PURE__ */ w(d, {
95
95
  title: "Ad Campaign",
96
- children: /* @__PURE__ */ T(ie, {
96
+ children: /* @__PURE__ */ w(re, {
97
97
  loading: N,
98
98
  error: P,
99
99
  onRetry: F,
100
100
  hasData: !!M,
101
- children: /* @__PURE__ */ T(re, {
101
+ children: /* @__PURE__ */ w(te, {
102
102
  illustration: "empty-generic",
103
103
  title: "Campaign not found",
104
104
  description: "This ad campaign doesn't exist or has been removed.",
105
- action: /* @__PURE__ */ E("button", {
106
- onClick: Z,
105
+ action: /* @__PURE__ */ T("button", {
106
+ onClick: X,
107
107
  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",
108
- children: [/* @__PURE__ */ T(v, { className: "h-4 w-4" }), "Back to Campaigns"]
108
+ children: [/* @__PURE__ */ w(x, { className: "h-4 w-4" }), "Back to Campaigns"]
109
109
  })
110
110
  })
111
111
  })
112
112
  });
113
- let Q = J.budget.total > 0 ? Math.round(J.budget.spent / J.budget.total * 100) : 0, xe = J.status === "active", $ = G || K;
114
- return /* @__PURE__ */ E(u, {
115
- title: J.name,
116
- description: `${D[J.platform] ?? J.platform} · ${J.bidStrategy}`,
117
- actions: /* @__PURE__ */ E("div", {
113
+ let Q = q.budget.total > 0 ? Math.round(q.budget.spent / q.budget.total * 100) : 0, Se = q.status === "active", $ = W || G;
114
+ return /* @__PURE__ */ T(d, {
115
+ title: q.name,
116
+ description: `${D[q.platform] ?? q.platform} · ${q.bidStrategy}`,
117
+ actions: /* @__PURE__ */ T("div", {
118
118
  className: "flex flex-wrap items-center gap-2",
119
119
  children: [
120
- /* @__PURE__ */ T(ne, { status: J.status }),
121
- /* @__PURE__ */ E("button", {
122
- onClick: Z,
120
+ /* @__PURE__ */ w(ne, { status: q.status }),
121
+ /* @__PURE__ */ T("button", {
122
+ onClick: X,
123
123
  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",
124
- children: [/* @__PURE__ */ T(v, { className: "h-4 w-4" }), "Back"]
124
+ children: [/* @__PURE__ */ w(x, { className: "h-4 w-4" }), "Back"]
125
125
  }),
126
- /* @__PURE__ */ T("button", {
127
- onClick: () => void _e(),
126
+ /* @__PURE__ */ w("button", {
127
+ onClick: () => void Z(),
128
128
  disabled: $,
129
129
  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 disabled:opacity-60",
130
- children: xe ? /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T(se, { className: "h-4 w-4" }), "Pause"] }) : /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T(le, { className: "h-4 w-4" }), "Activate"] })
130
+ children: Se ? /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ w(ce, { className: "h-4 w-4" }), "Pause"] }) : /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ w(ue, { className: "h-4 w-4" }), "Activate"] })
131
131
  }),
132
- /* @__PURE__ */ E("button", {
133
- onClick: be,
132
+ /* @__PURE__ */ T("button", {
133
+ onClick: xe,
134
134
  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",
135
- children: [/* @__PURE__ */ T(ce, { className: "h-4 w-4" }), "Edit"]
135
+ children: [/* @__PURE__ */ w(le, { className: "h-4 w-4" }), "Edit"]
136
136
  }),
137
- /* @__PURE__ */ E("button", {
138
- onClick: () => z(!0),
137
+ /* @__PURE__ */ T("button", {
138
+ onClick: () => R(!0),
139
139
  disabled: $,
140
140
  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-status-error-text hover:bg-bg-sunken disabled:opacity-60",
141
- children: [/* @__PURE__ */ T(de, { className: "h-4 w-4" }), "Delete"]
141
+ children: [/* @__PURE__ */ w(fe, { className: "h-4 w-4" }), "Delete"]
142
142
  })
143
143
  ]
144
144
  }),
145
145
  children: [
146
- /* @__PURE__ */ T(he, { children: "Manage this ad campaign — review budget pacing and performance, adjust its schedule and bid strategy, pause or activate it, and see the creatives and audience it's running against." }),
147
- B && /* @__PURE__ */ T("div", {
146
+ /* @__PURE__ */ w(ge, { children: "Manage this ad campaign — review budget pacing and performance, adjust its schedule and bid strategy, pause or activate it, and see the creatives and audience it's running against." }),
147
+ z && /* @__PURE__ */ w("div", {
148
148
  role: "alert",
149
149
  className: "rounded-lg border border-status-error-border/30 bg-status-error-bg/10 px-4 py-3 text-sm text-status-error-text",
150
- children: B
150
+ children: z
151
151
  }),
152
- /* @__PURE__ */ T(me, { children: /* @__PURE__ */ E("div", {
152
+ /* @__PURE__ */ w(he, { children: /* @__PURE__ */ T("div", {
153
153
  className: "grid grid-cols-2 gap-4 sm:grid-cols-4",
154
154
  children: [
155
- /* @__PURE__ */ T(d, {
155
+ /* @__PURE__ */ w(f, {
156
156
  title: "Spend",
157
- value: r(J.metrics.spend),
158
- icon: /* @__PURE__ */ T(b, { className: "h-5 w-5" })
157
+ value: i(q.metrics.spend),
158
+ icon: /* @__PURE__ */ w(S, { className: "h-5 w-5" })
159
159
  }),
160
- /* @__PURE__ */ T(d, {
160
+ /* @__PURE__ */ w(f, {
161
161
  title: "Impressions",
162
- value: a(J.metrics.impressions),
163
- icon: /* @__PURE__ */ T(x, { className: "h-5 w-5" })
162
+ value: o(q.metrics.impressions),
163
+ icon: /* @__PURE__ */ w(ae, { className: "h-5 w-5" })
164
164
  }),
165
- /* @__PURE__ */ T(d, {
165
+ /* @__PURE__ */ w(f, {
166
166
  title: "Clicks",
167
- value: a(J.metrics.clicks),
168
- icon: /* @__PURE__ */ T(C, { className: "h-5 w-5" })
167
+ value: o(q.metrics.clicks),
168
+ icon: /* @__PURE__ */ w(se, { className: "h-5 w-5" })
169
169
  }),
170
- /* @__PURE__ */ T(d, {
170
+ /* @__PURE__ */ w(f, {
171
171
  title: "ROAS",
172
- value: `${J.metrics.roas.toFixed(1)}x`,
173
- icon: /* @__PURE__ */ T(fe, { className: "h-5 w-5" })
172
+ value: `${q.metrics.roas.toFixed(1)}x`,
173
+ icon: /* @__PURE__ */ w(pe, { className: "h-5 w-5" })
174
174
  })
175
175
  ]
176
176
  }) }),
177
- /* @__PURE__ */ E("div", {
177
+ /* @__PURE__ */ T("div", {
178
178
  className: "grid grid-cols-1 gap-6 lg:grid-cols-2",
179
- children: [/* @__PURE__ */ E("div", {
179
+ children: [/* @__PURE__ */ T("div", {
180
180
  className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
181
181
  children: [
182
- /* @__PURE__ */ E("h4", {
182
+ /* @__PURE__ */ T("h4", {
183
183
  className: "mb-3 flex items-center gap-2 text-sm font-semibold text-text-primary",
184
- children: [/* @__PURE__ */ T(b, { className: "h-4 w-4 text-text-secondary" }), "Budget"]
184
+ children: [/* @__PURE__ */ w(S, { className: "h-4 w-4 text-text-secondary" }), "Budget"]
185
185
  }),
186
- /* @__PURE__ */ E("div", {
186
+ /* @__PURE__ */ T("div", {
187
187
  className: "mb-1.5 flex items-center justify-between text-xs text-text-secondary",
188
188
  children: [
189
- /* @__PURE__ */ E("span", { children: [r(J.budget.spent), " spent"] }),
190
- /* @__PURE__ */ E("span", { children: [Q, "%"] }),
191
- /* @__PURE__ */ E("span", { children: [r(J.budget.total), " total"] })
189
+ /* @__PURE__ */ T("span", { children: [i(q.budget.spent), " spent"] }),
190
+ /* @__PURE__ */ T("span", { children: [Q, "%"] }),
191
+ /* @__PURE__ */ T("span", { children: [i(q.budget.total), " total"] })
192
192
  ]
193
193
  }),
194
- /* @__PURE__ */ T("div", {
194
+ /* @__PURE__ */ w("div", {
195
195
  className: "h-2.5 w-full rounded-full bg-bg-sunken",
196
- children: /* @__PURE__ */ T("div", {
197
- className: ee("h-2.5 rounded-full transition-all", Q >= 90 ? "bg-status-error-bg" : "bg-action-primary-bg"),
196
+ children: /* @__PURE__ */ w("div", {
197
+ className: r("h-2.5 rounded-full transition-all", Q >= 90 ? "bg-status-error-bg" : "bg-action-primary-bg"),
198
198
  style: { width: `${Math.min(Q, 100)}%` }
199
199
  })
200
200
  }),
201
- /* @__PURE__ */ E("p", {
201
+ /* @__PURE__ */ T("p", {
202
202
  className: "mt-3 text-xs text-text-secondary",
203
- children: ["Remaining: ", r(J.budget.remaining)]
203
+ children: ["Remaining: ", i(q.budget.remaining)]
204
204
  })
205
205
  ]
206
- }), /* @__PURE__ */ E("div", {
206
+ }), /* @__PURE__ */ T("div", {
207
207
  className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
208
- children: [/* @__PURE__ */ E("h4", {
208
+ children: [/* @__PURE__ */ T("h4", {
209
209
  className: "mb-3 flex items-center gap-2 text-sm font-semibold text-text-primary",
210
- children: [/* @__PURE__ */ T(y, { className: "h-4 w-4 text-text-secondary" }), "Schedule & settings"]
211
- }), /* @__PURE__ */ E("dl", {
210
+ children: [/* @__PURE__ */ w(ie, { className: "h-4 w-4 text-text-secondary" }), "Schedule & settings"]
211
+ }), /* @__PURE__ */ T("dl", {
212
212
  className: "space-y-2 text-sm",
213
213
  children: [
214
- /* @__PURE__ */ E("div", {
214
+ /* @__PURE__ */ T("div", {
215
215
  className: "flex items-center justify-between gap-4",
216
- children: [/* @__PURE__ */ T("dt", {
216
+ children: [/* @__PURE__ */ w("dt", {
217
217
  className: "text-text-secondary",
218
218
  children: "Platform"
219
- }), /* @__PURE__ */ T("dd", {
219
+ }), /* @__PURE__ */ w("dd", {
220
220
  className: "font-medium text-text-primary",
221
- children: D[J.platform] ?? J.platform
221
+ children: D[q.platform] ?? q.platform
222
222
  })]
223
223
  }),
224
- /* @__PURE__ */ E("div", {
224
+ /* @__PURE__ */ T("div", {
225
225
  className: "flex items-center justify-between gap-4",
226
- children: [/* @__PURE__ */ T("dt", {
226
+ children: [/* @__PURE__ */ w("dt", {
227
227
  className: "text-text-secondary",
228
228
  children: "Bid strategy"
229
- }), /* @__PURE__ */ T("dd", {
229
+ }), /* @__PURE__ */ w("dd", {
230
230
  className: "font-medium text-text-primary",
231
- children: J.bidStrategy
231
+ children: q.bidStrategy
232
232
  })]
233
233
  }),
234
- /* @__PURE__ */ E("div", {
234
+ /* @__PURE__ */ T("div", {
235
235
  className: "flex items-center justify-between gap-4",
236
- children: [/* @__PURE__ */ T("dt", {
236
+ children: [/* @__PURE__ */ w("dt", {
237
237
  className: "text-text-secondary",
238
238
  children: "Start"
239
- }), /* @__PURE__ */ T("dd", {
239
+ }), /* @__PURE__ */ w("dd", {
240
240
  className: "font-medium text-text-primary",
241
- children: i(J.startDate)
241
+ children: a(q.startDate)
242
242
  })]
243
243
  }),
244
- /* @__PURE__ */ E("div", {
244
+ /* @__PURE__ */ T("div", {
245
245
  className: "flex items-center justify-between gap-4",
246
- children: [/* @__PURE__ */ T("dt", {
246
+ children: [/* @__PURE__ */ w("dt", {
247
247
  className: "text-text-secondary",
248
248
  children: "End"
249
- }), /* @__PURE__ */ T("dd", {
249
+ }), /* @__PURE__ */ w("dd", {
250
250
  className: "font-medium text-text-primary",
251
- children: i(J.endDate)
251
+ children: a(q.endDate)
252
252
  })]
253
253
  }),
254
- /* @__PURE__ */ E("div", {
254
+ /* @__PURE__ */ T("div", {
255
255
  className: "flex items-center justify-between gap-4",
256
- children: [/* @__PURE__ */ T("dt", {
256
+ children: [/* @__PURE__ */ w("dt", {
257
257
  className: "text-text-secondary",
258
258
  children: "CTR"
259
- }), /* @__PURE__ */ T("dd", {
259
+ }), /* @__PURE__ */ w("dd", {
260
260
  className: "font-medium text-text-primary",
261
- children: o(J.metrics.ctr)
261
+ children: s(q.metrics.ctr)
262
262
  })]
263
263
  }),
264
- /* @__PURE__ */ E("div", {
264
+ /* @__PURE__ */ T("div", {
265
265
  className: "flex items-center justify-between gap-4",
266
- children: [/* @__PURE__ */ T("dt", {
266
+ children: [/* @__PURE__ */ w("dt", {
267
267
  className: "text-text-secondary",
268
268
  children: "CPC"
269
- }), /* @__PURE__ */ E("dd", {
269
+ }), /* @__PURE__ */ T("dd", {
270
270
  className: "font-medium text-text-primary",
271
- children: ["$", J.metrics.cpc.toFixed(2)]
271
+ children: ["$", q.metrics.cpc.toFixed(2)]
272
272
  })]
273
273
  })
274
274
  ]
275
275
  })]
276
276
  })]
277
277
  }),
278
- j && /* @__PURE__ */ T(h, {
278
+ j && /* @__PURE__ */ w(v, {
279
279
  adCampaignId: j,
280
280
  onApplied: F
281
281
  }),
282
- j && /* @__PURE__ */ T(oe, {
282
+ j && /* @__PURE__ */ w(_, {
283
283
  adCampaignId: j,
284
284
  onSynced: F
285
285
  }),
286
- j && /* @__PURE__ */ T(p, {
286
+ j && /* @__PURE__ */ w(m, {
287
287
  sourceType: "AD_CAMPAIGN",
288
288
  sourceId: j,
289
289
  allowCreate: !0,
@@ -291,115 +291,115 @@ var k = () => {
291
291
  description: "Create a tracked URL for this campaign's landing page and paste it as the ad destination. Clicks are counted here and attributed as AD_CLICK touchpoints.",
292
292
  emptyMessage: "No tracked links for this campaign yet. Enter the landing page URL above to create one."
293
293
  }),
294
- /* @__PURE__ */ E("div", {
294
+ /* @__PURE__ */ T("div", {
295
295
  className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
296
- children: [/* @__PURE__ */ E("h4", {
296
+ children: [/* @__PURE__ */ T("h4", {
297
297
  className: "mb-4 text-sm font-semibold text-text-primary",
298
298
  children: [
299
299
  "Creatives (",
300
- Y.length,
300
+ J.length,
301
301
  ")"
302
302
  ]
303
- }), Y.length > 0 ? /* @__PURE__ */ T("div", {
303
+ }), J.length > 0 ? /* @__PURE__ */ w("div", {
304
304
  className: "grid grid-cols-1 gap-3 sm:grid-cols-2",
305
- children: Y.map((e) => /* @__PURE__ */ E("div", {
305
+ children: J.map((e) => /* @__PURE__ */ T("div", {
306
306
  className: "rounded-md border border-border-subtle p-3",
307
307
  children: [
308
- /* @__PURE__ */ E("div", {
308
+ /* @__PURE__ */ T("div", {
309
309
  className: "mb-1 flex items-center justify-between gap-2",
310
- children: [/* @__PURE__ */ T("p", {
310
+ children: [/* @__PURE__ */ w("p", {
311
311
  className: "truncate text-sm font-medium text-text-primary",
312
312
  children: e.name
313
- }), /* @__PURE__ */ T("span", {
313
+ }), /* @__PURE__ */ w("span", {
314
314
  className: "shrink-0 rounded-full bg-bg-sunken px-2 py-0.5 text-[10px] font-medium capitalize text-text-secondary",
315
315
  children: e.type
316
316
  })]
317
317
  }),
318
- e.headline && /* @__PURE__ */ T("p", {
318
+ e.headline && /* @__PURE__ */ w("p", {
319
319
  className: "text-xs text-text-secondary",
320
320
  children: e.headline
321
321
  }),
322
- /* @__PURE__ */ E("div", {
322
+ /* @__PURE__ */ T("div", {
323
323
  className: "mt-2 flex flex-wrap gap-3 text-[11px] text-text-secondary",
324
324
  children: [
325
- /* @__PURE__ */ E("span", { children: [a(e.performance.impressions), " impr."] }),
326
- /* @__PURE__ */ E("span", { children: [a(e.performance.clicks), " clicks"] }),
327
- /* @__PURE__ */ E("span", { children: [o(e.performance.ctr), " CTR"] })
325
+ /* @__PURE__ */ T("span", { children: [o(e.performance.impressions), " impr."] }),
326
+ /* @__PURE__ */ T("span", { children: [o(e.performance.clicks), " clicks"] }),
327
+ /* @__PURE__ */ T("span", { children: [s(e.performance.ctr), " CTR"] })
328
328
  ]
329
329
  }),
330
- /* @__PURE__ */ E("button", {
330
+ /* @__PURE__ */ T("button", {
331
331
  type: "button",
332
- onClick: () => U({
332
+ onClick: () => H({
333
333
  id: e.id,
334
334
  name: e.name,
335
335
  landingPageUrl: e.landingPageUrl
336
336
  }),
337
337
  className: "mt-2 inline-flex items-center gap-1.5 rounded-md border border-border-subtle px-2 py-1 text-[11px] font-medium text-text-primary hover:bg-bg-sunken",
338
- children: [/* @__PURE__ */ T(S, { className: "h-3 w-3" }), "Tracked link"]
338
+ children: [/* @__PURE__ */ w(oe, { className: "h-3 w-3" }), "Tracked link"]
339
339
  })
340
340
  ]
341
341
  }, e.id))
342
- }) : /* @__PURE__ */ T("p", {
342
+ }) : /* @__PURE__ */ w("p", {
343
343
  className: "py-4 text-center text-sm text-text-secondary",
344
344
  children: "No creatives attached to this campaign yet."
345
345
  })]
346
346
  }),
347
- /* @__PURE__ */ E("div", {
347
+ /* @__PURE__ */ T("div", {
348
348
  className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
349
- children: [/* @__PURE__ */ E("h4", {
349
+ children: [/* @__PURE__ */ T("h4", {
350
350
  className: "mb-4 flex items-center gap-2 text-sm font-semibold text-text-primary",
351
351
  children: [
352
- /* @__PURE__ */ T(ue, { className: "h-4 w-4 text-text-secondary" }),
352
+ /* @__PURE__ */ w(de, { className: "h-4 w-4 text-text-secondary" }),
353
353
  "Audience (",
354
- X.length,
354
+ Y.length,
355
355
  ")"
356
356
  ]
357
- }), X.length > 0 ? /* @__PURE__ */ T("div", {
357
+ }), Y.length > 0 ? /* @__PURE__ */ w("div", {
358
358
  className: "space-y-3",
359
- children: X.map((e) => /* @__PURE__ */ E("div", {
359
+ children: Y.map((e) => /* @__PURE__ */ T("div", {
360
360
  className: "rounded-md border border-border-subtle p-3",
361
- children: [/* @__PURE__ */ E("div", {
361
+ children: [/* @__PURE__ */ T("div", {
362
362
  className: "flex items-center justify-between gap-2",
363
- children: [/* @__PURE__ */ T("p", {
363
+ children: [/* @__PURE__ */ w("p", {
364
364
  className: "text-sm font-medium text-text-primary",
365
365
  children: e.name
366
- }), /* @__PURE__ */ E("span", {
366
+ }), /* @__PURE__ */ T("span", {
367
367
  className: "text-xs text-text-secondary",
368
- children: [a(e.size), " people"]
368
+ children: [o(e.size), " people"]
369
369
  })]
370
- }), e.description && /* @__PURE__ */ T("p", {
370
+ }), e.description && /* @__PURE__ */ w("p", {
371
371
  className: "mt-1 text-xs text-text-secondary",
372
372
  children: e.description
373
373
  })]
374
374
  }, e.id))
375
- }) : /* @__PURE__ */ T("p", {
375
+ }) : /* @__PURE__ */ w("p", {
376
376
  className: "py-4 text-center text-sm text-text-secondary",
377
377
  children: "No audience is linked to this campaign."
378
378
  })]
379
379
  }),
380
- /* @__PURE__ */ T(f, {
380
+ /* @__PURE__ */ w(p, {
381
381
  open: I !== null,
382
382
  onClose: () => L(null),
383
383
  title: "Edit Campaign",
384
384
  description: "Update campaign details",
385
385
  size: "lg",
386
- footer: /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T("button", {
386
+ footer: /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ w("button", {
387
387
  onClick: () => L(null),
388
388
  className: "rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken",
389
389
  children: "Cancel"
390
- }), /* @__PURE__ */ T("button", {
391
- onClick: () => void ve(),
392
- disabled: G,
390
+ }), /* @__PURE__ */ w("button", {
391
+ onClick: () => void ye(),
392
+ disabled: W,
393
393
  className: "rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 disabled:opacity-60",
394
- children: G ? "Saving..." : "Save Changes"
394
+ children: W ? "Saving..." : "Save Changes"
395
395
  })] }),
396
- children: I && /* @__PURE__ */ E("div", {
396
+ children: I && /* @__PURE__ */ T("div", {
397
397
  className: "space-y-4",
398
398
  children: [
399
- /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
399
+ /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
400
400
  className: "mb-1.5 block text-sm font-medium text-text-primary",
401
401
  children: "Campaign Name"
402
- }), /* @__PURE__ */ T("input", {
402
+ }), /* @__PURE__ */ w("input", {
403
403
  type: "text",
404
404
  value: I.name,
405
405
  onChange: (e) => L({
@@ -408,12 +408,12 @@ var k = () => {
408
408
  }),
409
409
  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)]"
410
410
  })] }),
411
- /* @__PURE__ */ E("div", {
411
+ /* @__PURE__ */ T("div", {
412
412
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
413
- children: [/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
413
+ children: [/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
414
414
  className: "mb-1.5 block text-sm font-medium text-text-primary",
415
415
  children: "Status"
416
- }), /* @__PURE__ */ E("select", {
416
+ }), /* @__PURE__ */ T(E, {
417
417
  value: I.status,
418
418
  onChange: (e) => L({
419
419
  ...I,
@@ -421,27 +421,27 @@ var k = () => {
421
421
  }),
422
422
  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)]",
423
423
  children: [
424
- /* @__PURE__ */ T("option", {
424
+ /* @__PURE__ */ w("option", {
425
425
  value: "draft",
426
426
  children: "Draft"
427
427
  }),
428
- /* @__PURE__ */ T("option", {
428
+ /* @__PURE__ */ w("option", {
429
429
  value: "active",
430
430
  children: "Active"
431
431
  }),
432
- /* @__PURE__ */ T("option", {
432
+ /* @__PURE__ */ w("option", {
433
433
  value: "paused",
434
434
  children: "Paused"
435
435
  }),
436
- /* @__PURE__ */ T("option", {
436
+ /* @__PURE__ */ w("option", {
437
437
  value: "completed",
438
438
  children: "Completed"
439
439
  })
440
440
  ]
441
- })] }), /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
441
+ })] }), /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
442
442
  className: "mb-1.5 block text-sm font-medium text-text-primary",
443
443
  children: "Total Budget (USD)"
444
- }), /* @__PURE__ */ T("input", {
444
+ }), /* @__PURE__ */ w("input", {
445
445
  type: "number",
446
446
  value: I.totalBudget,
447
447
  onChange: (e) => L({
@@ -451,10 +451,10 @@ var k = () => {
451
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
452
  })] })]
453
453
  }),
454
- /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
454
+ /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
455
455
  className: "mb-1.5 block text-sm font-medium text-text-primary",
456
456
  children: "Bid Strategy"
457
- }), /* @__PURE__ */ T("input", {
457
+ }), /* @__PURE__ */ w("input", {
458
458
  type: "text",
459
459
  value: I.bidStrategy,
460
460
  onChange: (e) => L({
@@ -463,12 +463,12 @@ var k = () => {
463
463
  }),
464
464
  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)]"
465
465
  })] }),
466
- /* @__PURE__ */ E("div", {
466
+ /* @__PURE__ */ T("div", {
467
467
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
468
- children: [/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
468
+ children: [/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
469
469
  className: "mb-1.5 block text-sm font-medium text-text-primary",
470
470
  children: "Start Date"
471
- }), /* @__PURE__ */ T("input", {
471
+ }), /* @__PURE__ */ w("input", {
472
472
  type: "date",
473
473
  value: I.startDate,
474
474
  onChange: (e) => L({
@@ -476,10 +476,10 @@ var k = () => {
476
476
  startDate: e.target.value
477
477
  }),
478
478
  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)]"
479
- })] }), /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
479
+ })] }), /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
480
480
  className: "mb-1.5 block text-sm font-medium text-text-primary",
481
481
  children: "End Date"
482
- }), /* @__PURE__ */ T("input", {
482
+ }), /* @__PURE__ */ w("input", {
483
483
  type: "date",
484
484
  value: I.endDate,
485
485
  onChange: (e) => L({
@@ -492,44 +492,44 @@ var k = () => {
492
492
  ]
493
493
  })
494
494
  }),
495
- /* @__PURE__ */ T(f, {
496
- open: H !== null,
497
- onClose: () => U(null),
498
- title: H ? `Tracked link · ${H.name}` : "Tracked link",
495
+ /* @__PURE__ */ w(p, {
496
+ open: V !== null,
497
+ onClose: () => H(null),
498
+ title: V ? `Tracked link · ${V.name}` : "Tracked link",
499
499
  description: "Use the tracked URL as this creative's ad destination.",
500
500
  size: "lg",
501
- children: H && /* @__PURE__ */ T(p, {
501
+ children: V && /* @__PURE__ */ w(m, {
502
502
  sourceType: "AD_CREATIVE",
503
- sourceId: H.id,
503
+ sourceId: V.id,
504
504
  allowCreate: !0,
505
- defaultDestinationUrl: H.landingPageUrl,
505
+ defaultDestinationUrl: V.landingPageUrl,
506
506
  title: "Creative tracked links",
507
507
  emptyMessage: "No tracked links for this creative yet."
508
- }, H.id)
508
+ }, V.id)
509
509
  }),
510
- /* @__PURE__ */ T(f, {
511
- open: R,
512
- onClose: () => z(!1),
510
+ /* @__PURE__ */ w(p, {
511
+ open: _e,
512
+ onClose: () => R(!1),
513
513
  title: "Delete Campaign",
514
514
  size: "sm",
515
- footer: /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T("button", {
516
- onClick: () => z(!1),
515
+ footer: /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ w("button", {
516
+ onClick: () => R(!1),
517
517
  className: "rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken",
518
518
  children: "Cancel"
519
- }), /* @__PURE__ */ T("button", {
520
- onClick: () => void ye(),
521
- disabled: K,
519
+ }), /* @__PURE__ */ w("button", {
520
+ onClick: () => void be(),
521
+ disabled: G,
522
522
  className: "rounded-md bg-status-error-text px-4 py-2 text-sm font-medium text-background hover:opacity-90 disabled:opacity-60",
523
- children: K ? "Deleting..." : "Delete"
523
+ children: G ? "Deleting..." : "Delete"
524
524
  })] }),
525
- children: /* @__PURE__ */ E("p", {
525
+ children: /* @__PURE__ */ T("p", {
526
526
  className: "text-sm text-text-secondary",
527
527
  children: [
528
528
  "Are you sure you want to delete",
529
529
  " ",
530
- /* @__PURE__ */ T("span", {
530
+ /* @__PURE__ */ w("span", {
531
531
  className: "font-semibold text-text-primary",
532
- children: J.name
532
+ children: q.name
533
533
  }),
534
534
  "? This action cannot be undone."
535
535
  ]