@burdenoff/microfe-headshotmarketing 2026.1201.1 → 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 +2 -2
@@ -8,11 +8,12 @@ import { cn as f } from "../../utils/helpers.js";
8
8
  import { useState as p } from "react";
9
9
  import { AlertTriangle as m, Pencil as h, Trash2 as g } from "lucide-react";
10
10
  import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
11
+ import { ThemedSelect as b } from "@burdenoff/fe-libs/ui";
11
12
  // src/headshotmarketing/pages/crm/CrmActions.tsx
12
- var b = "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]", x = "block text-sm font-medium text-text-primary mb-1", S = ({ message: e }) => e ? /* @__PURE__ */ v("div", {
13
+ var x = "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]", S = "block text-sm font-medium text-text-primary mb-1", C = ({ message: e }) => e ? /* @__PURE__ */ v("div", {
13
14
  className: "rounded-lg border border-status-error-border/30 bg-status-error-bg/10 px-4 py-3 text-sm text-status-error-text",
14
15
  children: e
15
- }) : null, C = ({ open: e, onClose: t, title: n, description: r, saving: i, error: a, onSave: o, children: s }) => /* @__PURE__ */ v(l, {
16
+ }) : null, w = ({ open: e, onClose: t, title: n, description: r, saving: i, error: a, onSave: o, children: s }) => /* @__PURE__ */ v(l, {
16
17
  open: e,
17
18
  onClose: t,
18
19
  title: n,
@@ -32,9 +33,9 @@ var b = "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 t
32
33
  })] }),
33
34
  children: /* @__PURE__ */ y("div", {
34
35
  className: "space-y-4",
35
- children: [s, /* @__PURE__ */ v(S, { message: a })]
36
+ children: [s, /* @__PURE__ */ v(C, { message: a })]
36
37
  })
37
- }), w = ({ open: e, onClose: t, title: n, message: r, deleting: i, error: a, onConfirm: o }) => /* @__PURE__ */ y(l, {
38
+ }), T = ({ open: e, onClose: t, title: n, message: r, deleting: i, error: a, onConfirm: o }) => /* @__PURE__ */ y(l, {
38
39
  open: e,
39
40
  onClose: t,
40
41
  title: n,
@@ -62,10 +63,10 @@ var b = "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 t
62
63
  })]
63
64
  }), /* @__PURE__ */ v("div", {
64
65
  className: "mt-3",
65
- children: /* @__PURE__ */ v(S, { message: a })
66
+ children: /* @__PURE__ */ v(C, { message: a })
66
67
  })]
67
68
  });
68
- function T(e, t) {
69
+ function E(e, t) {
69
70
  return [{
70
71
  key: "edit",
71
72
  label: "Edit",
@@ -79,7 +80,7 @@ function T(e, t) {
79
80
  icon: /* @__PURE__ */ v(g, { className: "h-4 w-4" })
80
81
  }];
81
82
  }
82
- var E = ({ contact: t, onChanged: n }) => {
83
+ var D = ({ contact: t, onChanged: n }) => {
83
84
  let [i, a] = p(!1), [o, s] = p(!1), [c, l] = p({
84
85
  firstName: t.firstName,
85
86
  lastName: t.lastName,
@@ -88,7 +89,7 @@ var E = ({ contact: t, onChanged: n }) => {
88
89
  company: t.company,
89
90
  title: t.title,
90
91
  tags: t.tags
91
- }), [f, m] = p(null), [h, { loading: g }] = r(), [S, { loading: E }] = e(), D = () => {
92
+ }), [f, m] = p(null), [h, { loading: g }] = r(), [b, { loading: C }] = e(), D = () => {
92
93
  l({
93
94
  firstName: t.firstName,
94
95
  lastName: t.lastName,
@@ -122,7 +123,7 @@ var E = ({ contact: t, onChanged: n }) => {
122
123
  }, k = async () => {
123
124
  m(null);
124
125
  try {
125
- await S({ variables: { id: t.id } }), s(!1), n();
126
+ await b({ variables: { id: t.id } }), s(!1), n();
126
127
  } catch (e) {
127
128
  m(e instanceof Error ? e.message : "Failed to delete contact.");
128
129
  }
@@ -131,11 +132,11 @@ var E = ({ contact: t, onChanged: n }) => {
131
132
  /* @__PURE__ */ v(d, {
132
133
  id: `contact-actions-${t.id}`,
133
134
  buttonLabel: `Actions for ${t.firstName} ${t.lastName}`,
134
- items: T(D, () => {
135
+ items: E(D, () => {
135
136
  m(null), s(!0);
136
137
  })
137
138
  }),
138
- /* @__PURE__ */ y(C, {
139
+ /* @__PURE__ */ y(w, {
139
140
  open: i,
140
141
  onClose: () => a(!1),
141
142
  title: "Edit contact",
@@ -147,20 +148,20 @@ var E = ({ contact: t, onChanged: n }) => {
147
148
  /* @__PURE__ */ y("div", {
148
149
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
149
150
  children: [/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("label", {
150
- className: x,
151
+ className: S,
151
152
  children: "First name"
152
153
  }), /* @__PURE__ */ v("input", {
153
- className: b,
154
+ className: x,
154
155
  value: c.firstName,
155
156
  onChange: (e) => l((t) => ({
156
157
  ...t,
157
158
  firstName: e.target.value
158
159
  }))
159
160
  })] }), /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("label", {
160
- className: x,
161
+ className: S,
161
162
  children: "Last name"
162
163
  }), /* @__PURE__ */ v("input", {
163
- className: b,
164
+ className: x,
164
165
  value: c.lastName,
165
166
  onChange: (e) => l((t) => ({
166
167
  ...t,
@@ -171,21 +172,21 @@ var E = ({ contact: t, onChanged: n }) => {
171
172
  /* @__PURE__ */ y("div", {
172
173
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
173
174
  children: [/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("label", {
174
- className: x,
175
+ className: S,
175
176
  children: "Email"
176
177
  }), /* @__PURE__ */ v("input", {
177
178
  type: "email",
178
- className: b,
179
+ className: x,
179
180
  value: c.email,
180
181
  onChange: (e) => l((t) => ({
181
182
  ...t,
182
183
  email: e.target.value
183
184
  }))
184
185
  })] }), /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("label", {
185
- className: x,
186
+ className: S,
186
187
  children: "Phone"
187
188
  }), /* @__PURE__ */ v("input", {
188
- className: b,
189
+ className: x,
189
190
  value: c.phone,
190
191
  onChange: (e) => l((t) => ({
191
192
  ...t,
@@ -196,20 +197,20 @@ var E = ({ contact: t, onChanged: n }) => {
196
197
  /* @__PURE__ */ y("div", {
197
198
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
198
199
  children: [/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("label", {
199
- className: x,
200
+ className: S,
200
201
  children: "Company"
201
202
  }), /* @__PURE__ */ v("input", {
202
- className: b,
203
+ className: x,
203
204
  value: c.company,
204
205
  onChange: (e) => l((t) => ({
205
206
  ...t,
206
207
  company: e.target.value
207
208
  }))
208
209
  })] }), /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("label", {
209
- className: x,
210
+ className: S,
210
211
  children: "Title"
211
212
  }), /* @__PURE__ */ v("input", {
212
- className: b,
213
+ className: x,
213
214
  value: c.title,
214
215
  onChange: (e) => l((t) => ({
215
216
  ...t,
@@ -218,7 +219,7 @@ var E = ({ contact: t, onChanged: n }) => {
218
219
  })] })]
219
220
  }),
220
221
  /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("label", {
221
- className: x,
222
+ className: S,
222
223
  children: "Tags"
223
224
  }), /* @__PURE__ */ v(u, {
224
225
  value: c.tags,
@@ -229,17 +230,17 @@ var E = ({ contact: t, onChanged: n }) => {
229
230
  })] })
230
231
  ]
231
232
  }),
232
- /* @__PURE__ */ v(w, {
233
+ /* @__PURE__ */ v(T, {
233
234
  open: o,
234
235
  onClose: () => s(!1),
235
236
  title: "Delete contact",
236
237
  message: `Delete ${t.firstName} ${t.lastName}? This can’t be undone.`,
237
- deleting: E,
238
+ deleting: C,
238
239
  error: f,
239
240
  onConfirm: () => void k()
240
241
  })
241
242
  ] });
242
- }, D = [
243
+ }, O = [
243
244
  {
244
245
  value: o.Open,
245
246
  label: "Open"
@@ -257,29 +258,29 @@ var E = ({ contact: t, onChanged: n }) => {
257
258
  label: "Stale"
258
259
  }
259
260
  ];
260
- function O(e) {
261
+ function k(e) {
261
262
  return e === "closed_won" ? o.Won : e === "closed_lost" ? o.Lost : o.Open;
262
263
  }
263
- var k = ({ deal: e, onChanged: n }) => {
264
+ var A = ({ deal: e, onChanged: n }) => {
264
265
  let [r, a] = p(!1), [o, s] = p(!1), [c, l] = p(null), [m, h] = p({
265
266
  name: e.name,
266
267
  value: String(e.value ?? ""),
267
268
  probability: String(e.probability ?? ""),
268
269
  expectedCloseDate: e.expectedCloseDate ? e.expectedCloseDate.slice(0, 10) : "",
269
- status: O(e.stage),
270
+ status: k(e.stage),
270
271
  description: e.notes,
271
272
  tags: e.tags
272
- }), [g, { loading: S }] = i(), [E, { loading: k }] = t(), A = () => {
273
+ }), [g, { loading: C }] = i(), [D, { loading: A }] = t(), j = () => {
273
274
  h({
274
275
  name: e.name,
275
276
  value: String(e.value ?? ""),
276
277
  probability: String(e.probability ?? ""),
277
278
  expectedCloseDate: e.expectedCloseDate ? e.expectedCloseDate.slice(0, 10) : "",
278
- status: O(e.stage),
279
+ status: k(e.stage),
279
280
  description: e.notes,
280
281
  tags: e.tags
281
282
  }), l(null), a(!0);
282
- }, j = async () => {
283
+ }, M = async () => {
283
284
  if (!m.name.trim()) {
284
285
  l("Deal name is required.");
285
286
  return;
@@ -310,10 +311,10 @@ var k = ({ deal: e, onChanged: n }) => {
310
311
  l(e instanceof Error ? e.message : "Failed to update deal.");
311
312
  }
312
313
  }
313
- }, M = async () => {
314
+ }, N = async () => {
314
315
  l(null);
315
316
  try {
316
- await E({ variables: { id: e.id } }), s(!1), n();
317
+ await D({ variables: { id: e.id } }), s(!1), n();
317
318
  } catch (e) {
318
319
  l(e instanceof Error ? e.message : "Failed to delete deal.");
319
320
  }
@@ -322,24 +323,24 @@ var k = ({ deal: e, onChanged: n }) => {
322
323
  /* @__PURE__ */ v(d, {
323
324
  id: `deal-actions-${e.id}`,
324
325
  buttonLabel: `Actions for ${e.name}`,
325
- items: T(A, () => {
326
+ items: E(j, () => {
326
327
  l(null), s(!0);
327
328
  })
328
329
  }),
329
- /* @__PURE__ */ y(C, {
330
+ /* @__PURE__ */ y(w, {
330
331
  open: r,
331
332
  onClose: () => a(!1),
332
333
  title: "Edit deal",
333
334
  description: "Update this deal's details.",
334
- saving: S,
335
+ saving: C,
335
336
  error: c,
336
- onSave: () => void j(),
337
+ onSave: () => void M(),
337
338
  children: [
338
339
  /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("label", {
339
- className: x,
340
+ className: S,
340
341
  children: "Deal name"
341
342
  }), /* @__PURE__ */ v("input", {
342
- className: b,
343
+ className: x,
343
344
  value: m.name,
344
345
  onChange: (e) => h((t) => ({
345
346
  ...t,
@@ -349,24 +350,24 @@ var k = ({ deal: e, onChanged: n }) => {
349
350
  /* @__PURE__ */ y("div", {
350
351
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
351
352
  children: [/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("label", {
352
- className: x,
353
+ className: S,
353
354
  children: "Value ($)"
354
355
  }), /* @__PURE__ */ v("input", {
355
356
  type: "number",
356
- className: b,
357
+ className: x,
357
358
  value: m.value,
358
359
  onChange: (e) => h((t) => ({
359
360
  ...t,
360
361
  value: e.target.value
361
362
  }))
362
363
  })] }), /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("label", {
363
- className: x,
364
+ className: S,
364
365
  children: "Probability (%)"
365
366
  }), /* @__PURE__ */ v("input", {
366
367
  type: "number",
367
368
  min: "0",
368
369
  max: "100",
369
- className: b,
370
+ className: x,
370
371
  value: m.probability,
371
372
  onChange: (e) => h((t) => ({
372
373
  ...t,
@@ -377,25 +378,25 @@ var k = ({ deal: e, onChanged: n }) => {
377
378
  /* @__PURE__ */ y("div", {
378
379
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
379
380
  children: [/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("label", {
380
- className: x,
381
+ className: S,
381
382
  children: "Status"
382
- }), /* @__PURE__ */ v("select", {
383
- className: b,
383
+ }), /* @__PURE__ */ v(b, {
384
+ className: x,
384
385
  value: m.status,
385
386
  onChange: (e) => h((t) => ({
386
387
  ...t,
387
388
  status: e.target.value
388
389
  })),
389
- children: D.map((e) => /* @__PURE__ */ v("option", {
390
+ children: O.map((e) => /* @__PURE__ */ v("option", {
390
391
  value: e.value,
391
392
  children: e.label
392
393
  }, e.value))
393
394
  })] }), /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("label", {
394
- className: x,
395
+ className: S,
395
396
  children: "Expected close date"
396
397
  }), /* @__PURE__ */ v("input", {
397
398
  type: "date",
398
- className: b,
399
+ className: x,
399
400
  value: m.expectedCloseDate,
400
401
  onChange: (e) => h((t) => ({
401
402
  ...t,
@@ -404,11 +405,11 @@ var k = ({ deal: e, onChanged: n }) => {
404
405
  })] })]
405
406
  }),
406
407
  /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("label", {
407
- className: x,
408
+ className: S,
408
409
  children: "Description"
409
410
  }), /* @__PURE__ */ v("textarea", {
410
411
  rows: 3,
411
- className: f(b, "resize-none"),
412
+ className: f(x, "resize-none"),
412
413
  value: m.description,
413
414
  onChange: (e) => h((t) => ({
414
415
  ...t,
@@ -416,7 +417,7 @@ var k = ({ deal: e, onChanged: n }) => {
416
417
  }))
417
418
  })] }),
418
419
  /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("label", {
419
- className: x,
420
+ className: S,
420
421
  children: "Tags"
421
422
  }), /* @__PURE__ */ v(u, {
422
423
  value: m.tags,
@@ -427,17 +428,17 @@ var k = ({ deal: e, onChanged: n }) => {
427
428
  })] })
428
429
  ]
429
430
  }),
430
- /* @__PURE__ */ v(w, {
431
+ /* @__PURE__ */ v(T, {
431
432
  open: o,
432
433
  onClose: () => s(!1),
433
434
  title: "Delete deal",
434
435
  message: `Delete “${e.name}”? This can’t be undone.`,
435
- deleting: k,
436
+ deleting: A,
436
437
  error: c,
437
- onConfirm: () => void M()
438
+ onConfirm: () => void N()
438
439
  })
439
440
  ] });
440
- }, A = [
441
+ }, j = [
441
442
  {
442
443
  value: c.New,
443
444
  label: "New"
@@ -462,7 +463,7 @@ var k = ({ deal: e, onChanged: n }) => {
462
463
  value: c.Lost,
463
464
  label: "Lost"
464
465
  }
465
- ], j = [
466
+ ], M = [
466
467
  {
467
468
  value: s.Website,
468
469
  label: "Website"
@@ -496,7 +497,7 @@ var k = ({ deal: e, onChanged: n }) => {
496
497
  label: "Other"
497
498
  }
498
499
  ];
499
- function M(e) {
500
+ function N(e) {
500
501
  switch (e) {
501
502
  case "contacted": return c.Contacted;
502
503
  case "qualified": return c.Qualified;
@@ -504,26 +505,26 @@ function M(e) {
504
505
  default: return c.New;
505
506
  }
506
507
  }
507
- function N(e) {
508
- let t = e.trim().toUpperCase().replace(/[\s-]+/g, "_"), n = j.find((e) => e.value === t);
508
+ function P(e) {
509
+ let t = e.trim().toUpperCase().replace(/[\s-]+/g, "_"), n = M.find((e) => e.value === t);
509
510
  return n ? n.value : s.Other;
510
511
  }
511
- var P = ({ lead: e, onChanged: t }) => {
512
+ var F = ({ lead: e, onChanged: t }) => {
512
513
  let [r, i] = p(!1), [o, s] = p(!1), [c, l] = p(null), [u, m] = p({
513
514
  title: e.title,
514
- status: M(e.status),
515
- source: N(e.source),
515
+ status: N(e.status),
516
+ source: P(e.source),
516
517
  score: String(e.score ?? ""),
517
518
  description: e.notes
518
- }), [h, { loading: g }] = a(), [S, { loading: E }] = n(), D = () => {
519
+ }), [h, { loading: g }] = a(), [C, { loading: D }] = n(), O = () => {
519
520
  m({
520
521
  title: e.title,
521
- status: M(e.status),
522
- source: N(e.source),
522
+ status: N(e.status),
523
+ source: P(e.source),
523
524
  score: String(e.score ?? ""),
524
525
  description: e.notes
525
526
  }), l(null), i(!0);
526
- }, O = async () => {
527
+ }, k = async () => {
527
528
  if (!u.title.trim()) {
528
529
  l("Lead title is required.");
529
530
  return;
@@ -547,10 +548,10 @@ var P = ({ lead: e, onChanged: t }) => {
547
548
  l(e instanceof Error ? e.message : "Failed to update lead.");
548
549
  }
549
550
  }
550
- }, k = async () => {
551
+ }, A = async () => {
551
552
  l(null);
552
553
  try {
553
- await S({ variables: { id: e.id } }), s(!1), t();
554
+ await C({ variables: { id: e.id } }), s(!1), t();
554
555
  } catch (e) {
555
556
  l(e instanceof Error ? e.message : "Failed to delete lead.");
556
557
  }
@@ -559,24 +560,24 @@ var P = ({ lead: e, onChanged: t }) => {
559
560
  /* @__PURE__ */ v(d, {
560
561
  id: `lead-actions-${e.id}`,
561
562
  buttonLabel: `Actions for ${e.title}`,
562
- items: T(D, () => {
563
+ items: E(O, () => {
563
564
  l(null), s(!0);
564
565
  })
565
566
  }),
566
- /* @__PURE__ */ y(C, {
567
+ /* @__PURE__ */ y(w, {
567
568
  open: r,
568
569
  onClose: () => i(!1),
569
570
  title: "Edit lead",
570
571
  description: "Update this lead's stage and details.",
571
572
  saving: g,
572
573
  error: c,
573
- onSave: () => void O(),
574
+ onSave: () => void k(),
574
575
  children: [
575
576
  /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("label", {
576
- className: x,
577
+ className: S,
577
578
  children: "Title"
578
579
  }), /* @__PURE__ */ v("input", {
579
- className: b,
580
+ className: x,
580
581
  value: u.title,
581
582
  onChange: (e) => m((t) => ({
582
583
  ...t,
@@ -586,43 +587,43 @@ var P = ({ lead: e, onChanged: t }) => {
586
587
  /* @__PURE__ */ y("div", {
587
588
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
588
589
  children: [/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("label", {
589
- className: x,
590
+ className: S,
590
591
  children: "Status"
591
- }), /* @__PURE__ */ v("select", {
592
- className: b,
592
+ }), /* @__PURE__ */ v(b, {
593
+ className: x,
593
594
  value: u.status,
594
595
  onChange: (e) => m((t) => ({
595
596
  ...t,
596
597
  status: e.target.value
597
598
  })),
598
- children: A.map((e) => /* @__PURE__ */ v("option", {
599
+ children: j.map((e) => /* @__PURE__ */ v("option", {
599
600
  value: e.value,
600
601
  children: e.label
601
602
  }, e.value))
602
603
  })] }), /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("label", {
603
- className: x,
604
+ className: S,
604
605
  children: "Source"
605
- }), /* @__PURE__ */ v("select", {
606
- className: b,
606
+ }), /* @__PURE__ */ v(b, {
607
+ className: x,
607
608
  value: u.source,
608
609
  onChange: (e) => m((t) => ({
609
610
  ...t,
610
611
  source: e.target.value
611
612
  })),
612
- children: j.map((e) => /* @__PURE__ */ v("option", {
613
+ children: M.map((e) => /* @__PURE__ */ v("option", {
613
614
  value: e.value,
614
615
  children: e.label
615
616
  }, e.value))
616
617
  })] })]
617
618
  }),
618
619
  /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("label", {
619
- className: x,
620
+ className: S,
620
621
  children: "Score (0–100)"
621
622
  }), /* @__PURE__ */ v("input", {
622
623
  type: "number",
623
624
  min: "0",
624
625
  max: "100",
625
- className: b,
626
+ className: x,
626
627
  value: u.score,
627
628
  onChange: (e) => m((t) => ({
628
629
  ...t,
@@ -630,11 +631,11 @@ var P = ({ lead: e, onChanged: t }) => {
630
631
  }))
631
632
  })] }),
632
633
  /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("label", {
633
- className: x,
634
+ className: S,
634
635
  children: "Notes"
635
636
  }), /* @__PURE__ */ v("textarea", {
636
637
  rows: 3,
637
- className: f(b, "resize-none"),
638
+ className: f(x, "resize-none"),
638
639
  value: u.description,
639
640
  onChange: (e) => m((t) => ({
640
641
  ...t,
@@ -643,17 +644,17 @@ var P = ({ lead: e, onChanged: t }) => {
643
644
  })] })
644
645
  ]
645
646
  }),
646
- /* @__PURE__ */ v(w, {
647
+ /* @__PURE__ */ v(T, {
647
648
  open: o,
648
649
  onClose: () => s(!1),
649
650
  title: "Delete lead",
650
651
  message: `Delete “${e.title}”? This can’t be undone.`,
651
- deleting: E,
652
+ deleting: D,
652
653
  error: c,
653
- onConfirm: () => void k()
654
+ onConfirm: () => void A()
654
655
  })
655
656
  ] });
656
657
  };
657
- export { E as ContactActionsMenu, k as DealActionsMenu, P as LeadActionsMenu };
658
+ export { D as ContactActionsMenu, A as DealActionsMenu, F as LeadActionsMenu };
658
659
 
659
660
  //# sourceMappingURL=CrmActions.js.map