@burdenoff/microfe-headshotmarketing 2026.1205.1 → 2026.1206.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 (144) hide show
  1. package/dist/generated/global-types.d.ts +3589 -380
  2. package/dist/generated/wspace-operations.d.ts +101 -3
  3. package/dist/generated/wspace-operations.js.map +1 -1
  4. package/dist/generated/wspace-types.d.ts +61782 -2332
  5. package/dist/generated/wspace-types.js.map +1 -1
  6. package/dist/headshotmarketing/components/EntityTagPicker.js +29 -28
  7. package/dist/headshotmarketing/components/EntityTagPicker.js.map +1 -1
  8. package/dist/headshotmarketing/components/InfluencerModals.js +264 -263
  9. package/dist/headshotmarketing/components/InfluencerModals.js.map +1 -1
  10. package/dist/headshotmarketing/components/QueryStateBoundary.js +31 -22
  11. package/dist/headshotmarketing/components/QueryStateBoundary.js.map +1 -1
  12. package/dist/headshotmarketing/components/StatusBadge.js +1 -1
  13. package/dist/headshotmarketing/components/StatusBadge.js.map +1 -1
  14. package/dist/headshotmarketing/components/Toast.js +3 -3
  15. package/dist/headshotmarketing/components/Toast.js.map +1 -1
  16. package/dist/headshotmarketing/components/TrackedLinksPanel.js +97 -96
  17. package/dist/headshotmarketing/components/TrackedLinksPanel.js.map +1 -1
  18. package/dist/headshotmarketing/hooks/useAssetUpload.js +41 -40
  19. package/dist/headshotmarketing/hooks/useAssetUpload.js.map +1 -1
  20. package/dist/headshotmarketing/pages/HomePage.js +6 -6
  21. package/dist/headshotmarketing/pages/HomePage.js.map +1 -1
  22. package/dist/headshotmarketing/pages/ads/AdBudgetAiPanel.js +47 -46
  23. package/dist/headshotmarketing/pages/ads/AdBudgetAiPanel.js.map +1 -1
  24. package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js +66 -65
  25. package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js.map +1 -1
  26. package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js +273 -272
  27. package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js.map +1 -1
  28. package/dist/headshotmarketing/pages/ads/AdCreativeTestsSection.js +3 -3
  29. package/dist/headshotmarketing/pages/ads/AdCreativeTestsSection.js.map +1 -1
  30. package/dist/headshotmarketing/pages/ads/AdCreativesPage.js +125 -124
  31. package/dist/headshotmarketing/pages/ads/AdCreativesPage.js.map +1 -1
  32. package/dist/headshotmarketing/pages/ads/AdPlatformConnectionsSection.js +33 -32
  33. package/dist/headshotmarketing/pages/ads/AdPlatformConnectionsSection.js.map +1 -1
  34. package/dist/headshotmarketing/pages/ads/AdPlatformSyncPanel.js +108 -107
  35. package/dist/headshotmarketing/pages/ads/AdPlatformSyncPanel.js.map +1 -1
  36. package/dist/headshotmarketing/pages/ads/AdReachEstimatePanel.js +65 -60
  37. package/dist/headshotmarketing/pages/ads/AdReachEstimatePanel.js.map +1 -1
  38. package/dist/headshotmarketing/pages/ads/AdsPage.js +4 -4
  39. package/dist/headshotmarketing/pages/ads/AdsPage.js.map +1 -1
  40. package/dist/headshotmarketing/pages/ads/AudiencesPage.js +287 -286
  41. package/dist/headshotmarketing/pages/ads/AudiencesPage.js.map +1 -1
  42. package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js +59 -54
  43. package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js.map +1 -1
  44. package/dist/headshotmarketing/pages/ads/CreateAudiencePage.js +96 -95
  45. package/dist/headshotmarketing/pages/ads/CreateAudiencePage.js.map +1 -1
  46. package/dist/headshotmarketing/pages/ai/AiDecisionCard.js +5 -5
  47. package/dist/headshotmarketing/pages/ai/AiDecisionCard.js.map +1 -1
  48. package/dist/headshotmarketing/pages/ai/AiOperationsPage.js +179 -178
  49. package/dist/headshotmarketing/pages/ai/AiOperationsPage.js.map +1 -1
  50. package/dist/headshotmarketing/pages/analytics/ReportScheduleDialog.js +156 -151
  51. package/dist/headshotmarketing/pages/analytics/ReportScheduleDialog.js.map +1 -1
  52. package/dist/headshotmarketing/pages/analytics/ReportsPage.js +222 -217
  53. package/dist/headshotmarketing/pages/analytics/ReportsPage.js.map +1 -1
  54. package/dist/headshotmarketing/pages/analytics/TouchpointLedgerCard.js +59 -58
  55. package/dist/headshotmarketing/pages/analytics/TouchpointLedgerCard.js.map +1 -1
  56. package/dist/headshotmarketing/pages/analytics/analyticsWidgets.js +152 -151
  57. package/dist/headshotmarketing/pages/analytics/analyticsWidgets.js.map +1 -1
  58. package/dist/headshotmarketing/pages/automation/AutomationPage.js +34 -33
  59. package/dist/headshotmarketing/pages/automation/AutomationPage.js.map +1 -1
  60. package/dist/headshotmarketing/pages/automation/TriggersPage.js +6 -6
  61. package/dist/headshotmarketing/pages/automation/TriggersPage.js.map +1 -1
  62. package/dist/headshotmarketing/pages/automation/WorkflowActions.js +1 -1
  63. package/dist/headshotmarketing/pages/automation/WorkflowActions.js.map +1 -1
  64. package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js +235 -234
  65. package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js.map +1 -1
  66. package/dist/headshotmarketing/pages/automation/WorkflowRunsPanel.js +24 -23
  67. package/dist/headshotmarketing/pages/automation/WorkflowRunsPanel.js.map +1 -1
  68. package/dist/headshotmarketing/pages/automation/WorkflowsPage.js +1 -1
  69. package/dist/headshotmarketing/pages/automation/WorkflowsPage.js.map +1 -1
  70. package/dist/headshotmarketing/pages/automation/workflowBuilderModel.js +4 -4
  71. package/dist/headshotmarketing/pages/automation/workflowBuilderModel.js.map +1 -1
  72. package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js +339 -338
  73. package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js.map +1 -1
  74. package/dist/headshotmarketing/pages/campaigns/CampaignAiPanel.js +95 -94
  75. package/dist/headshotmarketing/pages/campaigns/CampaignAiPanel.js.map +1 -1
  76. package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js +82 -81
  77. package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js.map +1 -1
  78. package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js +107 -106
  79. package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js.map +1 -1
  80. package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js +104 -103
  81. package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js.map +1 -1
  82. package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js +262 -261
  83. package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js.map +1 -1
  84. package/dist/headshotmarketing/pages/campaigns/CreateTemplateModal.js +68 -67
  85. package/dist/headshotmarketing/pages/campaigns/CreateTemplateModal.js.map +1 -1
  86. package/dist/headshotmarketing/pages/content/AIToolsPage.js +204 -203
  87. package/dist/headshotmarketing/pages/content/AIToolsPage.js.map +1 -1
  88. package/dist/headshotmarketing/pages/content/AssetLibraryPage.js +177 -176
  89. package/dist/headshotmarketing/pages/content/AssetLibraryPage.js.map +1 -1
  90. package/dist/headshotmarketing/pages/content/ContentCreationPage.js +373 -372
  91. package/dist/headshotmarketing/pages/content/ContentCreationPage.js.map +1 -1
  92. package/dist/headshotmarketing/pages/content/ContentDetailsPage.js +1 -1
  93. package/dist/headshotmarketing/pages/content/ContentDetailsPage.js.map +1 -1
  94. package/dist/headshotmarketing/pages/content/ContentLibraryCard.js +4 -4
  95. package/dist/headshotmarketing/pages/content/ContentLibraryCard.js.map +1 -1
  96. package/dist/headshotmarketing/pages/crm/ConvertLeadButton.js +51 -50
  97. package/dist/headshotmarketing/pages/crm/ConvertLeadButton.js.map +1 -1
  98. package/dist/headshotmarketing/pages/crm/CreateContactPage.js +100 -99
  99. package/dist/headshotmarketing/pages/crm/CreateContactPage.js.map +1 -1
  100. package/dist/headshotmarketing/pages/crm/CreateDealPage.js +134 -133
  101. package/dist/headshotmarketing/pages/crm/CreateDealPage.js.map +1 -1
  102. package/dist/headshotmarketing/pages/crm/CreatePipelineModal.js +66 -65
  103. package/dist/headshotmarketing/pages/crm/CreatePipelineModal.js.map +1 -1
  104. package/dist/headshotmarketing/pages/crm/CrmActions.js +229 -228
  105. package/dist/headshotmarketing/pages/crm/CrmActions.js.map +1 -1
  106. package/dist/headshotmarketing/pages/crm/DealNextActionPanel.js +62 -61
  107. package/dist/headshotmarketing/pages/crm/DealNextActionPanel.js.map +1 -1
  108. package/dist/headshotmarketing/pages/crm/LeadAiDecisionPanel.js +126 -125
  109. package/dist/headshotmarketing/pages/crm/LeadAiDecisionPanel.js.map +1 -1
  110. package/dist/headshotmarketing/pages/crm/LeadCreateModal.js +93 -92
  111. package/dist/headshotmarketing/pages/crm/LeadCreateModal.js.map +1 -1
  112. package/dist/headshotmarketing/pages/crm/PipelinePage.js +5 -5
  113. package/dist/headshotmarketing/pages/crm/PipelinePage.js.map +1 -1
  114. package/dist/headshotmarketing/pages/events/CreateEventPage.js +127 -126
  115. package/dist/headshotmarketing/pages/events/CreateEventPage.js.map +1 -1
  116. package/dist/headshotmarketing/pages/events/EventDetailsPage.js +76 -75
  117. package/dist/headshotmarketing/pages/events/EventDetailsPage.js.map +1 -1
  118. package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js +8 -8
  119. package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js.map +1 -1
  120. package/dist/headshotmarketing/pages/influencers/InfluencersPage.js +4 -4
  121. package/dist/headshotmarketing/pages/influencers/InfluencersPage.js.map +1 -1
  122. package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js +4 -4
  123. package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js.map +1 -1
  124. package/dist/headshotmarketing/pages/seo/SeoScorePanel.js +1 -1
  125. package/dist/headshotmarketing/pages/seo/SeoScorePanel.js.map +1 -1
  126. package/dist/headshotmarketing/pages/seo/SeoToolsPage.js +104 -103
  127. package/dist/headshotmarketing/pages/seo/SeoToolsPage.js.map +1 -1
  128. package/dist/headshotmarketing/pages/social-media/AccountsPage.js +102 -101
  129. package/dist/headshotmarketing/pages/social-media/AccountsPage.js.map +1 -1
  130. package/dist/headshotmarketing/pages/social-media/CreateAccountPage.js +59 -58
  131. package/dist/headshotmarketing/pages/social-media/CreateAccountPage.js.map +1 -1
  132. package/dist/headshotmarketing/pages/social-media/MediaDropZone.js +1 -1
  133. package/dist/headshotmarketing/pages/social-media/MediaDropZone.js.map +1 -1
  134. package/dist/headshotmarketing/pages/social-media/PostsPage.js +103 -102
  135. package/dist/headshotmarketing/pages/social-media/PostsPage.js.map +1 -1
  136. package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js +123 -122
  137. package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js.map +1 -1
  138. package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js +4 -4
  139. package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js.map +1 -1
  140. package/dist/headshotmarketing/utils/index.d.ts +1 -0
  141. package/dist/headshotmarketing/utils/readableError.d.ts +16 -0
  142. package/dist/headshotmarketing/utils/readableError.js +12 -0
  143. package/dist/headshotmarketing/utils/readableError.js.map +1 -0
  144. package/package.json +5 -3
@@ -3,12 +3,13 @@ import { HeadshotmarketingInfluencerCampaignStatus as i, HeadshotmarketingInflue
3
3
  import { EMPTY_INFLUENCER_FORM as o, INFLUENCER_PLATFORM_OPTIONS as s, INFLUENCER_TIER_OPTIONS as c, buildInfluencerInput as l } from "../pages/influencers/createInfluencerForm.js";
4
4
  import { cn as u, formatNumber as d, formatPercentage as f } from "../utils/helpers.js";
5
5
  import { Modal as p } from "./Modal.js";
6
- import { useEffect as m, useMemo as h, useState as g } from "react";
7
- import { Loader2 as _, Save as v, Star as y } from "lucide-react";
8
- import { Fragment as b, jsx as x, jsxs as S } from "react/jsx-runtime";
9
- import { ThemedSelect as C } from "@burdenoff/fe-libs/ui";
6
+ import { readableError as m } from "../utils/readableError.js";
7
+ import { useEffect as h, useMemo as g, useState as _ } from "react";
8
+ import { Loader2 as v, Save as y, Star as b } from "lucide-react";
9
+ import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
10
+ import { ThemedSelect as w } from "@burdenoff/fe-libs/ui";
10
11
  // src/headshotmarketing/components/InfluencerModals.tsx
11
- var w = "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)]", T = "block text-sm font-medium text-text-primary mb-1", E = [
12
+ var T = "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)]", E = "block text-sm font-medium text-text-primary mb-1", D = [
12
13
  {
13
14
  value: a.Prospect,
14
15
  label: "Prospect"
@@ -33,7 +34,7 @@ var w = "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 t
33
34
  value: a.Ended,
34
35
  label: "Ended"
35
36
  }
36
- ], D = [
37
+ ], O = [
37
38
  {
38
39
  value: i.Proposed,
39
40
  label: "Proposed"
@@ -55,211 +56,211 @@ var w = "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 t
55
56
  label: "Cancelled"
56
57
  }
57
58
  ];
58
- function O(e) {
59
+ function k(e) {
59
60
  if (!e) return null;
60
61
  let t = new Date(e);
61
62
  return Number.isNaN(t.getTime()) ? null : t.toISOString();
62
63
  }
63
- var k = ({ onCancel: e, onSubmit: t, submitLabel: n, loading: r, disabled: i }) => /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x("button", {
64
+ var A = ({ onCancel: e, onSubmit: t, submitLabel: n, loading: r, disabled: i }) => /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S("button", {
64
65
  type: "button",
65
66
  onClick: e,
66
67
  className: "rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken",
67
68
  children: "Cancel"
68
- }), /* @__PURE__ */ S("button", {
69
+ }), /* @__PURE__ */ C("button", {
69
70
  type: "button",
70
71
  onClick: t,
71
72
  disabled: r || i,
72
73
  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 disabled:opacity-60",
73
- children: [r ? /* @__PURE__ */ x(_, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ x(v, { className: "h-4 w-4" }), n]
74
+ children: [r ? /* @__PURE__ */ S(v, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ S(y, { className: "h-4 w-4" }), n]
74
75
  })] });
75
- function A({ message: e }) {
76
- return e ? /* @__PURE__ */ x("div", {
76
+ function j({ message: e }) {
77
+ return e ? /* @__PURE__ */ S("div", {
77
78
  className: "rounded-lg border border-status-error-border/30 bg-status-error-bg/10 px-4 py-3 text-sm text-status-error-text",
78
79
  children: e
79
80
  }) : null;
80
81
  }
81
- var j = ({ open: e, onClose: n, onCompleted: r }) => {
82
- let [i, { loading: a }] = t(), [d, f] = g(null), [h, _] = g(o);
83
- m(() => {
84
- e && (f(null), _(o));
82
+ var M = ({ open: e, onClose: n, onCompleted: r }) => {
83
+ let [i, { loading: a }] = t(), [d, f] = _(null), [g, v] = _(o);
84
+ h(() => {
85
+ e && (f(null), v(o));
85
86
  }, [e]);
86
- let v = (e, t) => {
87
- _((n) => ({
87
+ let y = (e, t) => {
88
+ v((n) => ({
88
89
  ...n,
89
90
  [e]: t
90
91
  }));
91
- }, y = async () => {
92
- let e = l(h);
92
+ }, b = async () => {
93
+ let e = l(g);
93
94
  if (!e.ok) f(e.error);
94
95
  else {
95
96
  f(null);
96
97
  try {
97
98
  await i({ variables: { input: e.input } }), await r?.(), n();
98
99
  } catch (e) {
99
- f(e instanceof Error ? e.message : "Failed to add influencer.");
100
+ f(m(e, "Failed to add influencer."));
100
101
  }
101
102
  }
102
103
  };
103
- return /* @__PURE__ */ x(p, {
104
+ return /* @__PURE__ */ S(p, {
104
105
  open: e,
105
106
  onClose: n,
106
107
  title: "Add Influencer",
107
108
  description: "Add a creator to your directory so it's ready for relationships and campaigns.",
108
109
  size: "lg",
109
- footer: /* @__PURE__ */ x(k, {
110
+ footer: /* @__PURE__ */ S(A, {
110
111
  onCancel: n,
111
- onSubmit: () => void y(),
112
+ onSubmit: () => void b(),
112
113
  submitLabel: a ? "Adding..." : "Add Influencer",
113
114
  loading: a
114
115
  }),
115
- children: /* @__PURE__ */ S("div", {
116
+ children: /* @__PURE__ */ C("div", {
116
117
  className: "space-y-4",
117
118
  children: [
118
- /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
119
- className: T,
119
+ /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
120
+ className: E,
120
121
  children: "Name"
121
- }), /* @__PURE__ */ x("input", {
122
+ }), /* @__PURE__ */ S("input", {
122
123
  type: "text",
123
- value: h.name,
124
- onChange: (e) => v("name", e.target.value),
124
+ value: g.name,
125
+ onChange: (e) => y("name", e.target.value),
125
126
  placeholder: "e.g. Ava Rivera",
126
- className: w
127
+ className: T
127
128
  })] }),
128
- /* @__PURE__ */ S("div", {
129
+ /* @__PURE__ */ C("div", {
129
130
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
130
- children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
131
- className: T,
131
+ children: [/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
132
+ className: E,
132
133
  children: "Tier"
133
- }), /* @__PURE__ */ x(C, {
134
- value: h.tier,
135
- onChange: (e) => v("tier", e.target.value),
136
- className: w,
137
- children: c.map((e) => /* @__PURE__ */ x("option", {
134
+ }), /* @__PURE__ */ S(w, {
135
+ value: g.tier,
136
+ onChange: (e) => y("tier", e.target.value),
137
+ className: T,
138
+ children: c.map((e) => /* @__PURE__ */ S("option", {
138
139
  value: e.value,
139
140
  children: e.label
140
141
  }, e.value))
141
- })] }), /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
142
- className: T,
142
+ })] }), /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
143
+ className: E,
143
144
  children: "Location"
144
- }), /* @__PURE__ */ x("input", {
145
+ }), /* @__PURE__ */ S("input", {
145
146
  type: "text",
146
- value: h.location,
147
- onChange: (e) => v("location", e.target.value),
147
+ value: g.location,
148
+ onChange: (e) => y("location", e.target.value),
148
149
  placeholder: "e.g. Los Angeles",
149
- className: w
150
+ className: T
150
151
  })] })]
151
152
  }),
152
- /* @__PURE__ */ S("div", {
153
+ /* @__PURE__ */ C("div", {
153
154
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
154
- children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
155
- className: T,
155
+ children: [/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
156
+ className: E,
156
157
  children: "Platform"
157
- }), /* @__PURE__ */ S(C, {
158
- value: h.platform,
159
- onChange: (e) => v("platform", e.target.value),
160
- className: w,
161
- children: [/* @__PURE__ */ x("option", {
158
+ }), /* @__PURE__ */ C(w, {
159
+ value: g.platform,
160
+ onChange: (e) => y("platform", e.target.value),
161
+ className: T,
162
+ children: [/* @__PURE__ */ S("option", {
162
163
  value: "",
163
164
  children: "No platform"
164
- }), s.map((e) => /* @__PURE__ */ x("option", {
165
+ }), s.map((e) => /* @__PURE__ */ S("option", {
165
166
  value: e.key,
166
167
  children: e.label
167
168
  }, e.key))]
168
- })] }), /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
169
- className: T,
169
+ })] }), /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
170
+ className: E,
170
171
  children: "Handle"
171
- }), /* @__PURE__ */ x("input", {
172
+ }), /* @__PURE__ */ S("input", {
172
173
  type: "text",
173
- value: h.handle,
174
- onChange: (e) => v("handle", e.target.value),
174
+ value: g.handle,
175
+ onChange: (e) => y("handle", e.target.value),
175
176
  placeholder: "@handle",
176
- className: w
177
+ className: T
177
178
  })] })]
178
179
  }),
179
- /* @__PURE__ */ S("div", {
180
+ /* @__PURE__ */ C("div", {
180
181
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
181
- children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
182
- className: T,
182
+ children: [/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
183
+ className: E,
183
184
  children: "Total Followers"
184
- }), /* @__PURE__ */ x("input", {
185
+ }), /* @__PURE__ */ S("input", {
185
186
  type: "number",
186
187
  min: 0,
187
188
  step: 1e3,
188
189
  inputMode: "numeric",
189
- value: h.totalFollowers,
190
- onChange: (e) => v("totalFollowers", e.target.value),
190
+ value: g.totalFollowers,
191
+ onChange: (e) => y("totalFollowers", e.target.value),
191
192
  placeholder: "250000",
192
- className: w
193
- })] }), /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
194
- className: T,
193
+ className: T
194
+ })] }), /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
195
+ className: E,
195
196
  children: "Engagement Rate (%)"
196
- }), /* @__PURE__ */ x("input", {
197
+ }), /* @__PURE__ */ S("input", {
197
198
  type: "number",
198
199
  min: 0,
199
200
  max: 100,
200
201
  step: .1,
201
202
  inputMode: "decimal",
202
- value: h.engagementRate,
203
- onChange: (e) => v("engagementRate", e.target.value),
203
+ value: g.engagementRate,
204
+ onChange: (e) => y("engagementRate", e.target.value),
204
205
  placeholder: "4.2",
205
- className: w
206
+ className: T
206
207
  })] })]
207
208
  }),
208
- /* @__PURE__ */ S("div", { children: [
209
- /* @__PURE__ */ x("label", {
210
- className: T,
209
+ /* @__PURE__ */ C("div", { children: [
210
+ /* @__PURE__ */ S("label", {
211
+ className: E,
211
212
  children: "Niches"
212
213
  }),
213
- /* @__PURE__ */ x("input", {
214
+ /* @__PURE__ */ S("input", {
214
215
  type: "text",
215
- value: h.niches,
216
- onChange: (e) => v("niches", e.target.value),
216
+ value: g.niches,
217
+ onChange: (e) => y("niches", e.target.value),
217
218
  placeholder: "Fashion, Beauty, Lifestyle",
218
- className: w
219
+ className: T
219
220
  }),
220
- /* @__PURE__ */ x("p", {
221
+ /* @__PURE__ */ S("p", {
221
222
  className: "mt-1 text-xs text-text-secondary",
222
223
  children: "Separate multiple niches with commas."
223
224
  })
224
225
  ] }),
225
- /* @__PURE__ */ S("div", {
226
+ /* @__PURE__ */ C("div", {
226
227
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
227
- children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
228
- className: T,
228
+ children: [/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
229
+ className: E,
229
230
  children: "Email"
230
- }), /* @__PURE__ */ x("input", {
231
+ }), /* @__PURE__ */ S("input", {
231
232
  type: "email",
232
- value: h.email,
233
- onChange: (e) => v("email", e.target.value),
233
+ value: g.email,
234
+ onChange: (e) => y("email", e.target.value),
234
235
  placeholder: "creator@example.com",
235
- className: w
236
- })] }), /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
237
- className: T,
236
+ className: T
237
+ })] }), /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
238
+ className: E,
238
239
  children: "Phone"
239
- }), /* @__PURE__ */ x("input", {
240
+ }), /* @__PURE__ */ S("input", {
240
241
  type: "tel",
241
- value: h.phone,
242
- onChange: (e) => v("phone", e.target.value),
242
+ value: g.phone,
243
+ onChange: (e) => y("phone", e.target.value),
243
244
  placeholder: "+1 555 123 4567",
244
- className: w
245
+ className: T
245
246
  })] })]
246
247
  }),
247
- /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
248
- className: T,
248
+ /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
249
+ className: E,
249
250
  children: "Bio"
250
- }), /* @__PURE__ */ x("textarea", {
251
- value: h.bio,
252
- onChange: (e) => v("bio", e.target.value),
251
+ }), /* @__PURE__ */ S("textarea", {
252
+ value: g.bio,
253
+ onChange: (e) => y("bio", e.target.value),
253
254
  rows: 3,
254
255
  placeholder: "Short description of the creator…",
255
- className: u(w, "resize-none")
256
+ className: u(T, "resize-none")
256
257
  })] }),
257
- /* @__PURE__ */ x(A, { message: d })
258
+ /* @__PURE__ */ S(j, { message: d })
258
259
  ]
259
260
  })
260
261
  });
261
- }, M = ({ open: t, onClose: n, influencers: r, defaultInfluencerId: a, onCompleted: o }) => {
262
- let [s, { loading: c }] = e(), [l, d] = g(null), [f, h] = g({
262
+ }, N = ({ open: t, onClose: n, influencers: r, defaultInfluencerId: a, onCompleted: o }) => {
263
+ let [s, { loading: c }] = e(), [l, d] = _(null), [f, g] = _({
263
264
  influencerId: "",
264
265
  name: "",
265
266
  description: "",
@@ -268,8 +269,8 @@ var j = ({ open: e, onClose: n, onCompleted: r }) => {
268
269
  startDate: "",
269
270
  endDate: ""
270
271
  });
271
- m(() => {
272
- t && (d(null), h({
272
+ h(() => {
273
+ t && (d(null), g({
273
274
  influencerId: a ?? r[0]?.id ?? "",
274
275
  name: "",
275
276
  description: "",
@@ -283,7 +284,7 @@ var j = ({ open: e, onClose: n, onCompleted: r }) => {
283
284
  a,
284
285
  r
285
286
  ]);
286
- let _ = async () => {
287
+ let v = async () => {
287
288
  if (!f.influencerId) d("Select an influencer for this campaign.");
288
289
  else if (!f.name.trim()) d("Campaign name is required.");
289
290
  else {
@@ -296,148 +297,148 @@ var j = ({ open: e, onClose: n, onCompleted: r }) => {
296
297
  status: f.status,
297
298
  compensation: f.compensation ? Number(f.compensation) : null,
298
299
  compensationType: f.compensation ? "flat" : null,
299
- startDate: O(f.startDate),
300
- endDate: O(f.endDate)
300
+ startDate: k(f.startDate),
301
+ endDate: k(f.endDate)
301
302
  } } }), await o?.(), n();
302
303
  } catch (e) {
303
- d(e instanceof Error ? e.message : "Failed to create campaign.");
304
+ d(m(e, "Failed to create campaign."));
304
305
  }
305
306
  }
306
307
  };
307
- return /* @__PURE__ */ x(p, {
308
+ return /* @__PURE__ */ S(p, {
308
309
  open: t,
309
310
  onClose: n,
310
311
  title: "Create Influencer Campaign",
311
312
  description: "Brief a creator and start tracking deliverables.",
312
313
  size: "lg",
313
- footer: /* @__PURE__ */ x(k, {
314
+ footer: /* @__PURE__ */ S(A, {
314
315
  onCancel: n,
315
- onSubmit: () => void _(),
316
+ onSubmit: () => void v(),
316
317
  submitLabel: c ? "Creating..." : "Create Campaign",
317
318
  loading: c
318
319
  }),
319
- children: /* @__PURE__ */ S("div", {
320
+ children: /* @__PURE__ */ C("div", {
320
321
  className: "space-y-4",
321
322
  children: [
322
- /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
323
- className: T,
323
+ /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
324
+ className: E,
324
325
  children: "Influencer"
325
- }), /* @__PURE__ */ S(C, {
326
+ }), /* @__PURE__ */ C(w, {
326
327
  value: f.influencerId,
327
- onChange: (e) => h((t) => ({
328
+ onChange: (e) => g((t) => ({
328
329
  ...t,
329
330
  influencerId: e.target.value
330
331
  })),
331
- className: w,
332
- children: [/* @__PURE__ */ x("option", {
332
+ className: T,
333
+ children: [/* @__PURE__ */ S("option", {
333
334
  value: "",
334
335
  children: "Select an influencer…"
335
- }), r.map((e) => /* @__PURE__ */ x("option", {
336
+ }), r.map((e) => /* @__PURE__ */ S("option", {
336
337
  value: e.id,
337
338
  children: e.name
338
339
  }, e.id))]
339
340
  })] }),
340
- /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
341
- className: T,
341
+ /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
342
+ className: E,
342
343
  children: "Campaign Name"
343
- }), /* @__PURE__ */ x("input", {
344
+ }), /* @__PURE__ */ S("input", {
344
345
  type: "text",
345
346
  value: f.name,
346
- onChange: (e) => h((t) => ({
347
+ onChange: (e) => g((t) => ({
347
348
  ...t,
348
349
  name: e.target.value
349
350
  })),
350
351
  placeholder: "Spring product launch",
351
- className: w
352
+ className: T
352
353
  })] }),
353
- /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
354
- className: T,
354
+ /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
355
+ className: E,
355
356
  children: "Brief / Guidelines"
356
- }), /* @__PURE__ */ x("textarea", {
357
+ }), /* @__PURE__ */ S("textarea", {
357
358
  value: f.description,
358
- onChange: (e) => h((t) => ({
359
+ onChange: (e) => g((t) => ({
359
360
  ...t,
360
361
  description: e.target.value
361
362
  })),
362
363
  rows: 3,
363
364
  placeholder: "What should the creator produce?",
364
- className: u(w, "resize-none")
365
+ className: u(T, "resize-none")
365
366
  })] }),
366
- /* @__PURE__ */ S("div", {
367
+ /* @__PURE__ */ C("div", {
367
368
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
368
- children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
369
- className: T,
369
+ children: [/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
370
+ className: E,
370
371
  children: "Compensation ($)"
371
- }), /* @__PURE__ */ x("input", {
372
+ }), /* @__PURE__ */ S("input", {
372
373
  type: "number",
373
374
  min: 0,
374
375
  value: f.compensation,
375
- onChange: (e) => h((t) => ({
376
+ onChange: (e) => g((t) => ({
376
377
  ...t,
377
378
  compensation: e.target.value
378
379
  })),
379
380
  placeholder: "2500",
380
- className: w
381
- })] }), /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
382
- className: T,
381
+ className: T
382
+ })] }), /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
383
+ className: E,
383
384
  children: "Status"
384
- }), /* @__PURE__ */ x(C, {
385
+ }), /* @__PURE__ */ S(w, {
385
386
  value: f.status,
386
- onChange: (e) => h((t) => ({
387
+ onChange: (e) => g((t) => ({
387
388
  ...t,
388
389
  status: e.target.value
389
390
  })),
390
- className: w,
391
- children: D.map((e) => /* @__PURE__ */ x("option", {
391
+ className: T,
392
+ children: O.map((e) => /* @__PURE__ */ S("option", {
392
393
  value: e.value,
393
394
  children: e.label
394
395
  }, e.value))
395
396
  })] })]
396
397
  }),
397
- /* @__PURE__ */ S("div", {
398
+ /* @__PURE__ */ C("div", {
398
399
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
399
- children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
400
- className: T,
400
+ children: [/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
401
+ className: E,
401
402
  children: "Start Date"
402
- }), /* @__PURE__ */ x("input", {
403
+ }), /* @__PURE__ */ S("input", {
403
404
  type: "date",
404
405
  value: f.startDate,
405
- onChange: (e) => h((t) => ({
406
+ onChange: (e) => g((t) => ({
406
407
  ...t,
407
408
  startDate: e.target.value
408
409
  })),
409
- className: w
410
- })] }), /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
411
- className: T,
410
+ className: T
411
+ })] }), /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
412
+ className: E,
412
413
  children: "End Date"
413
- }), /* @__PURE__ */ x("input", {
414
+ }), /* @__PURE__ */ S("input", {
414
415
  type: "date",
415
416
  value: f.endDate,
416
- onChange: (e) => h((t) => ({
417
+ onChange: (e) => g((t) => ({
417
418
  ...t,
418
419
  endDate: e.target.value
419
420
  })),
420
- className: w
421
+ className: T
421
422
  })] })]
422
423
  }),
423
- /* @__PURE__ */ x(A, { message: l })
424
+ /* @__PURE__ */ S(j, { message: l })
424
425
  ]
425
426
  })
426
427
  });
427
- }, N = ({ open: e, onClose: t, influencers: r, existingInfluencerIds: i, defaultInfluencerId: o, defaultStatus: s = a.Outreach, onCompleted: c }) => {
428
- let [l, { loading: d }] = n(), [f, _] = g(null), [v, y] = g({
428
+ }, P = ({ open: e, onClose: t, influencers: r, existingInfluencerIds: i, defaultInfluencerId: o, defaultStatus: s = a.Outreach, onCompleted: c }) => {
429
+ let [l, { loading: d }] = n(), [f, v] = _(null), [y, b] = _({
429
430
  influencerId: "",
430
431
  status: s,
431
432
  rating: "",
432
433
  notes: ""
433
- }), D = h(() => new Set(i), [i]), O = h(() => r.filter((e) => e.id === o || !D.has(e.id)), [
434
+ }), O = g(() => new Set(i), [i]), k = g(() => r.filter((e) => e.id === o || !O.has(e.id)), [
434
435
  r,
435
- D,
436
+ O,
436
437
  o
437
438
  ]);
438
- m(() => {
439
- e && (_(null), y({
440
- influencerId: o ?? O[0]?.id ?? "",
439
+ h(() => {
440
+ e && (v(null), b({
441
+ influencerId: o ?? k[0]?.id ?? "",
441
442
  status: s,
442
443
  rating: "",
443
444
  notes: ""
@@ -446,88 +447,88 @@ var j = ({ open: e, onClose: n, onCompleted: r }) => {
446
447
  e,
447
448
  o,
448
449
  s,
449
- O
450
+ k
450
451
  ]);
451
- let j = async () => {
452
- if (!v.influencerId) _("Select an influencer to add.");
452
+ let M = async () => {
453
+ if (!y.influencerId) v("Select an influencer to add.");
453
454
  else {
454
- _(null);
455
+ v(null);
455
456
  try {
456
457
  await l({ variables: { input: {
457
- influencerId: v.influencerId,
458
- status: v.status,
459
- notes: v.notes.trim() || null,
460
- rating: v.rating ? Number(v.rating) : null,
458
+ influencerId: y.influencerId,
459
+ status: y.status,
460
+ notes: y.notes.trim() || null,
461
+ rating: y.rating ? Number(y.rating) : null,
461
462
  firstContactDate: (/* @__PURE__ */ new Date()).toISOString()
462
463
  } } }), await c?.(), t();
463
464
  } catch (e) {
464
- _(e instanceof Error ? e.message : "Failed to add relationship.");
465
+ v(m(e, "Failed to add relationship."));
465
466
  }
466
467
  }
467
468
  };
468
- return /* @__PURE__ */ x(p, {
469
+ return /* @__PURE__ */ S(p, {
469
470
  open: e,
470
471
  onClose: t,
471
472
  title: "Add Influencer Relationship",
472
473
  description: "Track a creator partnership in your roster.",
473
474
  size: "md",
474
- footer: /* @__PURE__ */ x(k, {
475
+ footer: /* @__PURE__ */ S(A, {
475
476
  onCancel: t,
476
- onSubmit: () => void j(),
477
+ onSubmit: () => void M(),
477
478
  submitLabel: d ? "Adding..." : "Add Relationship",
478
479
  loading: d,
479
- disabled: O.length === 0
480
+ disabled: k.length === 0
480
481
  }),
481
- children: /* @__PURE__ */ S("div", {
482
+ children: /* @__PURE__ */ C("div", {
482
483
  className: "space-y-4",
483
- children: [O.length === 0 ? /* @__PURE__ */ x("p", {
484
+ children: [k.length === 0 ? /* @__PURE__ */ S("p", {
484
485
  className: "text-sm text-text-secondary",
485
486
  children: "Every influencer already has a relationship. Add influencers from Discovery first."
486
- }) : /* @__PURE__ */ S(b, { children: [
487
- /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
488
- className: T,
487
+ }) : /* @__PURE__ */ C(x, { children: [
488
+ /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
489
+ className: E,
489
490
  children: "Influencer"
490
- }), /* @__PURE__ */ S(C, {
491
- value: v.influencerId,
492
- onChange: (e) => y((t) => ({
491
+ }), /* @__PURE__ */ C(w, {
492
+ value: y.influencerId,
493
+ onChange: (e) => b((t) => ({
493
494
  ...t,
494
495
  influencerId: e.target.value
495
496
  })),
496
- className: w,
497
- children: [/* @__PURE__ */ x("option", {
497
+ className: T,
498
+ children: [/* @__PURE__ */ S("option", {
498
499
  value: "",
499
500
  children: "Select an influencer…"
500
- }), O.map((e) => /* @__PURE__ */ x("option", {
501
+ }), k.map((e) => /* @__PURE__ */ S("option", {
501
502
  value: e.id,
502
503
  children: e.name
503
504
  }, e.id))]
504
505
  })] }),
505
- /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
506
- className: T,
506
+ /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
507
+ className: E,
507
508
  children: "Status"
508
- }), /* @__PURE__ */ x(C, {
509
- value: v.status,
510
- onChange: (e) => y((t) => ({
509
+ }), /* @__PURE__ */ S(w, {
510
+ value: y.status,
511
+ onChange: (e) => b((t) => ({
511
512
  ...t,
512
513
  status: e.target.value
513
514
  })),
514
- className: w,
515
- children: E.map((e) => /* @__PURE__ */ x("option", {
515
+ className: T,
516
+ children: D.map((e) => /* @__PURE__ */ S("option", {
516
517
  value: e.value,
517
518
  children: e.label
518
519
  }, e.value))
519
520
  })] }),
520
- /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
521
- className: T,
521
+ /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
522
+ className: E,
522
523
  children: "Rating (1-5)"
523
- }), /* @__PURE__ */ S(C, {
524
- value: v.rating,
525
- onChange: (e) => y((t) => ({
524
+ }), /* @__PURE__ */ C(w, {
525
+ value: y.rating,
526
+ onChange: (e) => b((t) => ({
526
527
  ...t,
527
528
  rating: e.target.value
528
529
  })),
529
- className: w,
530
- children: [/* @__PURE__ */ x("option", {
530
+ className: T,
531
+ children: [/* @__PURE__ */ S("option", {
531
532
  value: "",
532
533
  children: "Not rated"
533
534
  }), [
@@ -536,46 +537,46 @@ var j = ({ open: e, onClose: n, onCompleted: r }) => {
536
537
  3,
537
538
  4,
538
539
  5
539
- ].map((e) => /* @__PURE__ */ x("option", {
540
+ ].map((e) => /* @__PURE__ */ S("option", {
540
541
  value: e,
541
542
  children: e
542
543
  }, e))]
543
544
  })] }),
544
- /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
545
- className: T,
545
+ /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
546
+ className: E,
546
547
  children: "Notes"
547
- }), /* @__PURE__ */ x("textarea", {
548
- value: v.notes,
549
- onChange: (e) => y((t) => ({
548
+ }), /* @__PURE__ */ S("textarea", {
549
+ value: y.notes,
550
+ onChange: (e) => b((t) => ({
550
551
  ...t,
551
552
  notes: e.target.value
552
553
  })),
553
554
  rows: 3,
554
555
  placeholder: "Context on this partnership…",
555
- className: u(w, "resize-none")
556
+ className: u(T, "resize-none")
556
557
  })] })
557
- ] }), /* @__PURE__ */ x(A, { message: f })]
558
+ ] }), /* @__PURE__ */ S(j, { message: f })]
558
559
  })
559
560
  });
560
- }, P = {
561
+ }, F = {
561
562
  active: a.Active,
562
563
  pending: a.Outreach,
563
564
  inactive: a.Paused,
564
565
  blocked: a.Ended
565
- }, F = ({ open: e, onClose: t, relationship: n, onCompleted: i }) => {
566
- let [o, { loading: s }] = r(), [c, l] = g(null), [d, f] = g({
566
+ }, I = ({ open: e, onClose: t, relationship: n, onCompleted: i }) => {
567
+ let [o, { loading: s }] = r(), [c, l] = _(null), [d, f] = _({
567
568
  status: a.Active,
568
569
  rating: "",
569
570
  notes: ""
570
571
  });
571
- m(() => {
572
+ h(() => {
572
573
  e && n && (l(null), f({
573
- status: P[n.status],
574
+ status: F[n.status],
574
575
  rating: n.averageROI ? String(n.averageROI) : "",
575
576
  notes: n.notes ?? ""
576
577
  }));
577
578
  }, [e, n]);
578
- let h = async () => {
579
+ let g = async () => {
579
580
  if (n) {
580
581
  l(null);
581
582
  try {
@@ -589,51 +590,51 @@ var j = ({ open: e, onClose: n, onCompleted: r }) => {
589
590
  }
590
591
  } }), await i?.(), t();
591
592
  } catch (e) {
592
- l(e instanceof Error ? e.message : "Failed to update relationship.");
593
+ l(m(e, "Failed to update relationship."));
593
594
  }
594
595
  }
595
596
  };
596
- return /* @__PURE__ */ x(p, {
597
+ return /* @__PURE__ */ S(p, {
597
598
  open: e,
598
599
  onClose: t,
599
600
  title: "Edit Relationship",
600
601
  description: n?.influencerName,
601
602
  size: "md",
602
- footer: /* @__PURE__ */ x(k, {
603
+ footer: /* @__PURE__ */ S(A, {
603
604
  onCancel: t,
604
- onSubmit: () => void h(),
605
+ onSubmit: () => void g(),
605
606
  submitLabel: s ? "Saving..." : "Save Changes",
606
607
  loading: s
607
608
  }),
608
- children: /* @__PURE__ */ S("div", {
609
+ children: /* @__PURE__ */ C("div", {
609
610
  className: "space-y-4",
610
611
  children: [
611
- /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
612
- className: T,
612
+ /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
613
+ className: E,
613
614
  children: "Status"
614
- }), /* @__PURE__ */ x(C, {
615
+ }), /* @__PURE__ */ S(w, {
615
616
  value: d.status,
616
617
  onChange: (e) => f((t) => ({
617
618
  ...t,
618
619
  status: e.target.value
619
620
  })),
620
- className: w,
621
- children: E.map((e) => /* @__PURE__ */ x("option", {
621
+ className: T,
622
+ children: D.map((e) => /* @__PURE__ */ S("option", {
622
623
  value: e.value,
623
624
  children: e.label
624
625
  }, e.value))
625
626
  })] }),
626
- /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
627
- className: T,
627
+ /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
628
+ className: E,
628
629
  children: "Rating (1-5)"
629
- }), /* @__PURE__ */ S(C, {
630
+ }), /* @__PURE__ */ C(w, {
630
631
  value: d.rating,
631
632
  onChange: (e) => f((t) => ({
632
633
  ...t,
633
634
  rating: e.target.value
634
635
  })),
635
- className: w,
636
- children: [/* @__PURE__ */ x("option", {
636
+ className: T,
637
+ children: [/* @__PURE__ */ S("option", {
637
638
  value: "",
638
639
  children: "Not rated"
639
640
  }), [
@@ -642,15 +643,15 @@ var j = ({ open: e, onClose: n, onCompleted: r }) => {
642
643
  3,
643
644
  4,
644
645
  5
645
- ].map((e) => /* @__PURE__ */ x("option", {
646
+ ].map((e) => /* @__PURE__ */ S("option", {
646
647
  value: e,
647
648
  children: e
648
649
  }, e))]
649
650
  })] }),
650
- /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
651
- className: T,
651
+ /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
652
+ className: E,
652
653
  children: "Notes"
653
- }), /* @__PURE__ */ x("textarea", {
654
+ }), /* @__PURE__ */ S("textarea", {
654
655
  value: d.notes,
655
656
  onChange: (e) => f((t) => ({
656
657
  ...t,
@@ -658,103 +659,103 @@ var j = ({ open: e, onClose: n, onCompleted: r }) => {
658
659
  })),
659
660
  rows: 4,
660
661
  placeholder: "Relationship notes…",
661
- className: u(w, "resize-none")
662
+ className: u(T, "resize-none")
662
663
  })] }),
663
- /* @__PURE__ */ x(A, { message: c })
664
+ /* @__PURE__ */ S(j, { message: c })
664
665
  ]
665
666
  })
666
667
  });
667
- }, I = ({ open: e, onClose: t, influencer: n }) => n ? /* @__PURE__ */ x(p, {
668
+ }, L = ({ open: e, onClose: t, influencer: n }) => n ? /* @__PURE__ */ S(p, {
668
669
  open: e,
669
670
  onClose: t,
670
671
  title: n.name,
671
672
  description: n.handle,
672
673
  size: "md",
673
- children: /* @__PURE__ */ S("div", {
674
+ children: /* @__PURE__ */ C("div", {
674
675
  className: "space-y-4",
675
676
  children: [
676
- /* @__PURE__ */ S("div", {
677
+ /* @__PURE__ */ C("div", {
677
678
  className: "flex flex-wrap items-center gap-2",
678
679
  children: [
679
- /* @__PURE__ */ x("span", {
680
+ /* @__PURE__ */ S("span", {
680
681
  className: "rounded-full bg-bg-sunken px-2.5 py-0.5 text-xs font-medium capitalize text-text-primary",
681
682
  children: n.tier
682
683
  }),
683
- n.platforms.map((e) => /* @__PURE__ */ x("span", {
684
+ n.platforms.map((e) => /* @__PURE__ */ S("span", {
684
685
  className: "rounded-full bg-bg-sunken px-2.5 py-0.5 text-xs font-medium capitalize text-text-primary",
685
686
  children: e
686
687
  }, e)),
687
- n.rating > 0 && /* @__PURE__ */ S("span", {
688
+ n.rating > 0 && /* @__PURE__ */ C("span", {
688
689
  className: "inline-flex items-center gap-1 text-xs font-medium text-text-primary",
689
- children: [/* @__PURE__ */ x(y, { className: "h-3 w-3 text-status-warning-text fill-[var(--color-status-warning)]" }), n.rating.toFixed(1)]
690
+ children: [/* @__PURE__ */ S(b, { className: "h-3 w-3 text-status-warning-text fill-[var(--color-status-warning)]" }), n.rating.toFixed(1)]
690
691
  })
691
692
  ]
692
693
  }),
693
- n.bio && /* @__PURE__ */ x("p", {
694
+ n.bio && /* @__PURE__ */ S("p", {
694
695
  className: "text-sm text-text-secondary",
695
696
  children: n.bio
696
697
  }),
697
- /* @__PURE__ */ S("div", {
698
+ /* @__PURE__ */ C("div", {
698
699
  className: "grid grid-cols-2 gap-3 text-center",
699
- children: [/* @__PURE__ */ S("div", {
700
+ children: [/* @__PURE__ */ C("div", {
700
701
  className: "rounded-md bg-bg-sunken/50 py-3",
701
- children: [/* @__PURE__ */ x("p", {
702
+ children: [/* @__PURE__ */ S("p", {
702
703
  className: "text-sm font-bold text-text-primary",
703
704
  children: d(n.followers)
704
- }), /* @__PURE__ */ x("p", {
705
+ }), /* @__PURE__ */ S("p", {
705
706
  className: "text-[10px] text-text-secondary",
706
707
  children: "Followers"
707
708
  })]
708
- }), /* @__PURE__ */ S("div", {
709
+ }), /* @__PURE__ */ C("div", {
709
710
  className: "rounded-md bg-bg-sunken/50 py-3",
710
- children: [/* @__PURE__ */ x("p", {
711
+ children: [/* @__PURE__ */ S("p", {
711
712
  className: "text-sm font-bold text-text-primary",
712
713
  children: f(n.engagementRate)
713
- }), /* @__PURE__ */ x("p", {
714
+ }), /* @__PURE__ */ S("p", {
714
715
  className: "text-[10px] text-text-secondary",
715
716
  children: "Engagement rate"
716
717
  })]
717
718
  })]
718
719
  }),
719
- /* @__PURE__ */ S("dl", {
720
+ /* @__PURE__ */ C("dl", {
720
721
  className: "space-y-2 text-sm",
721
722
  children: [
722
- /* @__PURE__ */ S("div", {
723
+ /* @__PURE__ */ C("div", {
723
724
  className: "flex justify-between gap-4",
724
- children: [/* @__PURE__ */ x("dt", {
725
+ children: [/* @__PURE__ */ S("dt", {
725
726
  className: "text-text-secondary",
726
727
  children: "Location"
727
- }), /* @__PURE__ */ x("dd", {
728
+ }), /* @__PURE__ */ S("dd", {
728
729
  className: "text-text-primary",
729
730
  children: n.location
730
731
  })]
731
732
  }),
732
- n.email && /* @__PURE__ */ S("div", {
733
+ n.email && /* @__PURE__ */ C("div", {
733
734
  className: "flex justify-between gap-4",
734
- children: [/* @__PURE__ */ x("dt", {
735
+ children: [/* @__PURE__ */ S("dt", {
735
736
  className: "text-text-secondary",
736
737
  children: "Email"
737
- }), /* @__PURE__ */ x("dd", {
738
+ }), /* @__PURE__ */ S("dd", {
738
739
  className: "truncate text-text-primary",
739
740
  children: n.email
740
741
  })]
741
742
  }),
742
- n.phone && /* @__PURE__ */ S("div", {
743
+ n.phone && /* @__PURE__ */ C("div", {
743
744
  className: "flex justify-between gap-4",
744
- children: [/* @__PURE__ */ x("dt", {
745
+ children: [/* @__PURE__ */ S("dt", {
745
746
  className: "text-text-secondary",
746
747
  children: "Phone"
747
- }), /* @__PURE__ */ x("dd", {
748
+ }), /* @__PURE__ */ S("dd", {
748
749
  className: "truncate text-text-primary",
749
750
  children: n.phone
750
751
  })]
751
752
  }),
752
- n.niche.length > 0 && /* @__PURE__ */ S("div", {
753
+ n.niche.length > 0 && /* @__PURE__ */ C("div", {
753
754
  className: "flex justify-between gap-4",
754
- children: [/* @__PURE__ */ x("dt", {
755
+ children: [/* @__PURE__ */ S("dt", {
755
756
  className: "text-text-secondary",
756
757
  children: "Niches"
757
- }), /* @__PURE__ */ x("dd", {
758
+ }), /* @__PURE__ */ S("dd", {
758
759
  className: "text-end text-text-primary",
759
760
  children: n.niche.join(", ")
760
761
  })]
@@ -764,6 +765,6 @@ var j = ({ open: e, onClose: n, onCompleted: r }) => {
764
765
  ]
765
766
  })
766
767
  }) : null;
767
- export { N as AddInfluencerRelationshipModal, M as CreateInfluencerCampaignModal, j as CreateInfluencerModal, F as EditInfluencerRelationshipModal, I as InfluencerDetailsModal };
768
+ export { P as AddInfluencerRelationshipModal, N as CreateInfluencerCampaignModal, M as CreateInfluencerModal, I as EditInfluencerRelationshipModal, L as InfluencerDetailsModal };
768
769
 
769
770
  //# sourceMappingURL=InfluencerModals.js.map