@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.
- package/dist/generated/global-types.d.ts +3589 -380
- package/dist/generated/wspace-operations.d.ts +101 -3
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.d.ts +61782 -2332
- package/dist/generated/wspace-types.js.map +1 -1
- package/dist/headshotmarketing/components/EntityTagPicker.js +29 -28
- package/dist/headshotmarketing/components/EntityTagPicker.js.map +1 -1
- package/dist/headshotmarketing/components/InfluencerModals.js +264 -263
- package/dist/headshotmarketing/components/InfluencerModals.js.map +1 -1
- package/dist/headshotmarketing/components/QueryStateBoundary.js +31 -22
- package/dist/headshotmarketing/components/QueryStateBoundary.js.map +1 -1
- package/dist/headshotmarketing/components/StatusBadge.js +1 -1
- package/dist/headshotmarketing/components/StatusBadge.js.map +1 -1
- package/dist/headshotmarketing/components/Toast.js +3 -3
- package/dist/headshotmarketing/components/Toast.js.map +1 -1
- package/dist/headshotmarketing/components/TrackedLinksPanel.js +97 -96
- package/dist/headshotmarketing/components/TrackedLinksPanel.js.map +1 -1
- package/dist/headshotmarketing/hooks/useAssetUpload.js +41 -40
- package/dist/headshotmarketing/hooks/useAssetUpload.js.map +1 -1
- package/dist/headshotmarketing/pages/HomePage.js +6 -6
- package/dist/headshotmarketing/pages/HomePage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdBudgetAiPanel.js +47 -46
- package/dist/headshotmarketing/pages/ads/AdBudgetAiPanel.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js +66 -65
- package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js +273 -272
- package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCreativeTestsSection.js +3 -3
- package/dist/headshotmarketing/pages/ads/AdCreativeTestsSection.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCreativesPage.js +125 -124
- package/dist/headshotmarketing/pages/ads/AdCreativesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdPlatformConnectionsSection.js +33 -32
- package/dist/headshotmarketing/pages/ads/AdPlatformConnectionsSection.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdPlatformSyncPanel.js +108 -107
- package/dist/headshotmarketing/pages/ads/AdPlatformSyncPanel.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdReachEstimatePanel.js +65 -60
- package/dist/headshotmarketing/pages/ads/AdReachEstimatePanel.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdsPage.js +4 -4
- package/dist/headshotmarketing/pages/ads/AdsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AudiencesPage.js +287 -286
- package/dist/headshotmarketing/pages/ads/AudiencesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js +59 -54
- package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/CreateAudiencePage.js +96 -95
- package/dist/headshotmarketing/pages/ads/CreateAudiencePage.js.map +1 -1
- package/dist/headshotmarketing/pages/ai/AiDecisionCard.js +5 -5
- package/dist/headshotmarketing/pages/ai/AiDecisionCard.js.map +1 -1
- package/dist/headshotmarketing/pages/ai/AiOperationsPage.js +179 -178
- package/dist/headshotmarketing/pages/ai/AiOperationsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/ReportScheduleDialog.js +156 -151
- package/dist/headshotmarketing/pages/analytics/ReportScheduleDialog.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/ReportsPage.js +222 -217
- package/dist/headshotmarketing/pages/analytics/ReportsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/TouchpointLedgerCard.js +59 -58
- package/dist/headshotmarketing/pages/analytics/TouchpointLedgerCard.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/analyticsWidgets.js +152 -151
- package/dist/headshotmarketing/pages/analytics/analyticsWidgets.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/AutomationPage.js +34 -33
- package/dist/headshotmarketing/pages/automation/AutomationPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/TriggersPage.js +6 -6
- package/dist/headshotmarketing/pages/automation/TriggersPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowActions.js +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowActions.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js +235 -234
- package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowRunsPanel.js +24 -23
- package/dist/headshotmarketing/pages/automation/WorkflowRunsPanel.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowsPage.js +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/workflowBuilderModel.js +4 -4
- package/dist/headshotmarketing/pages/automation/workflowBuilderModel.js.map +1 -1
- package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js +339 -338
- package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignAiPanel.js +95 -94
- package/dist/headshotmarketing/pages/campaigns/CampaignAiPanel.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js +82 -81
- package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js +107 -106
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js +104 -103
- package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js +262 -261
- package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CreateTemplateModal.js +68 -67
- package/dist/headshotmarketing/pages/campaigns/CreateTemplateModal.js.map +1 -1
- package/dist/headshotmarketing/pages/content/AIToolsPage.js +204 -203
- package/dist/headshotmarketing/pages/content/AIToolsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/AssetLibraryPage.js +177 -176
- package/dist/headshotmarketing/pages/content/AssetLibraryPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentCreationPage.js +373 -372
- package/dist/headshotmarketing/pages/content/ContentCreationPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentDetailsPage.js +1 -1
- package/dist/headshotmarketing/pages/content/ContentDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentLibraryCard.js +4 -4
- package/dist/headshotmarketing/pages/content/ContentLibraryCard.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/ConvertLeadButton.js +51 -50
- package/dist/headshotmarketing/pages/crm/ConvertLeadButton.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CreateContactPage.js +100 -99
- package/dist/headshotmarketing/pages/crm/CreateContactPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CreateDealPage.js +134 -133
- package/dist/headshotmarketing/pages/crm/CreateDealPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CreatePipelineModal.js +66 -65
- package/dist/headshotmarketing/pages/crm/CreatePipelineModal.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CrmActions.js +229 -228
- package/dist/headshotmarketing/pages/crm/CrmActions.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/DealNextActionPanel.js +62 -61
- package/dist/headshotmarketing/pages/crm/DealNextActionPanel.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/LeadAiDecisionPanel.js +126 -125
- package/dist/headshotmarketing/pages/crm/LeadAiDecisionPanel.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/LeadCreateModal.js +93 -92
- package/dist/headshotmarketing/pages/crm/LeadCreateModal.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/PipelinePage.js +5 -5
- package/dist/headshotmarketing/pages/crm/PipelinePage.js.map +1 -1
- package/dist/headshotmarketing/pages/events/CreateEventPage.js +127 -126
- package/dist/headshotmarketing/pages/events/CreateEventPage.js.map +1 -1
- package/dist/headshotmarketing/pages/events/EventDetailsPage.js +76 -75
- package/dist/headshotmarketing/pages/events/EventDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js +8 -8
- package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencersPage.js +4 -4
- package/dist/headshotmarketing/pages/influencers/InfluencersPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js +4 -4
- package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/seo/SeoScorePanel.js +1 -1
- package/dist/headshotmarketing/pages/seo/SeoScorePanel.js.map +1 -1
- package/dist/headshotmarketing/pages/seo/SeoToolsPage.js +104 -103
- package/dist/headshotmarketing/pages/seo/SeoToolsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/AccountsPage.js +102 -101
- package/dist/headshotmarketing/pages/social-media/AccountsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/CreateAccountPage.js +59 -58
- package/dist/headshotmarketing/pages/social-media/CreateAccountPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/MediaDropZone.js +1 -1
- package/dist/headshotmarketing/pages/social-media/MediaDropZone.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/PostsPage.js +103 -102
- package/dist/headshotmarketing/pages/social-media/PostsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js +123 -122
- package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js +4 -4
- package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js.map +1 -1
- package/dist/headshotmarketing/utils/index.d.ts +1 -0
- package/dist/headshotmarketing/utils/readableError.d.ts +16 -0
- package/dist/headshotmarketing/utils/readableError.js +12 -0
- package/dist/headshotmarketing/utils/readableError.js.map +1 -0
- package/package.json +5 -3
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { HeadshotmarketingBootstrapDataDocument as e, useHeadshotmarketingCancelRegistrationMutation as t, useHeadshotmarketingCheckInAttendeeMutation as n, useHeadshotmarketingDeleteEventMutation as r, useHeadshotmarketingEventByIdQuery as ee, useHeadshotmarketingEventfullyManagedEventsQuery as te, useHeadshotmarketingLinkEventfullyManagedEventMutation as ne, useHeadshotmarketingSyncEventfullyManagedEventMutation as re, useHeadshotmarketingUnlinkEventfullyManagedEventMutation as i, useHeadshotmarketingUpdateEventMutation as a } from "../../../generated/wspace-operations.js";
|
|
2
2
|
import { HeadshotmarketingEventStatus as o, HeadshotmarketingEventSyncDirection as s, HeadshotmarketingEventType as c } from "../../../generated/wspace-types.js";
|
|
3
3
|
import "../../components/index.js";
|
|
4
|
-
import { formatNumber as l, formatPercentage as
|
|
5
|
-
import { PageLayout as
|
|
6
|
-
import { StatCard as
|
|
7
|
-
import { EmptyState as
|
|
8
|
-
import { StatusBadge as
|
|
9
|
-
import { Modal as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
4
|
+
import { formatNumber as l, formatPercentage as ie, joinPath as u } from "../../utils/helpers.js";
|
|
5
|
+
import { PageLayout as d } from "../../components/PageLayout.js";
|
|
6
|
+
import { StatCard as f } from "../../components/StatCard.js";
|
|
7
|
+
import { EmptyState as p } from "../../components/EmptyState.js";
|
|
8
|
+
import { StatusBadge as m } from "../../components/StatusBadge.js";
|
|
9
|
+
import { Modal as ae } from "../../components/Modal.js";
|
|
10
|
+
import { useHeadshotMarketing as oe } from "../../context/HeadshotMarketingContext.js";
|
|
11
|
+
import { QueryStateBoundary as se } from "../../components/QueryStateBoundary.js";
|
|
12
|
+
import { EntityTagPicker as ce } from "../../components/EntityTagPicker.js";
|
|
13
|
+
import { readableError as h } from "../../utils/readableError.js";
|
|
14
|
+
import { useMemo as le, useState as g } from "react";
|
|
15
|
+
import { ArrowLeft as _, ArrowUpRight as ue, CalendarClock as de, Check as fe, Clock as pe, Edit as me, Gauge as he, Link2 as v, MapPin as ge, RefreshCw as _e, Tag as ve, Ticket as ye, Trash2 as be, Unlink as xe, UserCheck as Se, Users as Ce, Video as y, X as b } from "lucide-react";
|
|
15
16
|
import { useParams as x } from "react-router";
|
|
16
17
|
import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
17
18
|
import { EmphasisPanel as T, PagePurpose as E, ThemedSelect as D, useConfirm as O } from "@burdenoff/fe-libs/ui";
|
|
@@ -113,17 +114,17 @@ function P(e, t) {
|
|
|
113
114
|
return new Intl.DateTimeFormat("en-US", r).format(n);
|
|
114
115
|
}
|
|
115
116
|
var F = () => {
|
|
116
|
-
let e = O(), { navigate: o, basePath: c } =
|
|
117
|
+
let e = O(), { navigate: o, basePath: c } = oe(), { eventId: F } = x(), { data: we, loading: Te, error: Ee, refetch: I } = ee({
|
|
117
118
|
skip: !F,
|
|
118
119
|
variables: F ? { id: F } : void 0
|
|
119
|
-
}), [
|
|
120
|
+
}), [De, { loading: L }] = a(), [Oe, { loading: ke }] = r(), [Ae, { loading: je }] = n(), [Me, { loading: Ne }] = t(), [Pe, { loading: Fe }] = ne(), [Ie, { loading: Le }] = i(), [Re, { loading: R }] = re(), z = te({
|
|
120
121
|
variables: {
|
|
121
122
|
limit: 50,
|
|
122
123
|
offset: 0
|
|
123
124
|
},
|
|
124
125
|
skip: !F,
|
|
125
126
|
fetchPolicy: "cache-and-network"
|
|
126
|
-
}), [
|
|
127
|
+
}), [ze, B] = g(!1), [V, H] = g(null), [U, W] = g(null), [G, Be] = g(""), [K, Ve] = g(s.Bidirectional), [q, J] = g(null), Y = we?.headshotmarketingEvent ?? null, X = () => o(u(c, "events")), He = () => {
|
|
127
128
|
Y && (W(null), H({
|
|
128
129
|
title: Y.title,
|
|
129
130
|
description: Y.description ?? "",
|
|
@@ -136,14 +137,14 @@ var F = () => {
|
|
|
136
137
|
virtualUrl: Y.virtualUrl ?? "",
|
|
137
138
|
maxAttendees: Y.maxAttendees ? String(Y.maxAttendees) : ""
|
|
138
139
|
}), B(!0));
|
|
139
|
-
},
|
|
140
|
+
}, Ue = async () => {
|
|
140
141
|
if (F && V) {
|
|
141
142
|
if (!V.title.trim()) W("Event title is required.");
|
|
142
143
|
else if (!V.startDate || !V.endDate) W("Start and end date/time are required.");
|
|
143
144
|
else {
|
|
144
145
|
W(null);
|
|
145
146
|
try {
|
|
146
|
-
await
|
|
147
|
+
await De({
|
|
147
148
|
variables: {
|
|
148
149
|
id: F,
|
|
149
150
|
input: {
|
|
@@ -162,11 +163,11 @@ var F = () => {
|
|
|
162
163
|
refetchQueries: k
|
|
163
164
|
}), B(!1), await I();
|
|
164
165
|
} catch (e) {
|
|
165
|
-
W(e
|
|
166
|
+
W(h(e, "Failed to update event."));
|
|
166
167
|
}
|
|
167
168
|
}
|
|
168
169
|
}
|
|
169
|
-
},
|
|
170
|
+
}, We = async () => {
|
|
170
171
|
if (F && Y && await e({
|
|
171
172
|
title: `Delete event "${Y.title}"?`,
|
|
172
173
|
description: "This cannot be undone.",
|
|
@@ -175,28 +176,28 @@ var F = () => {
|
|
|
175
176
|
})) {
|
|
176
177
|
W(null);
|
|
177
178
|
try {
|
|
178
|
-
await
|
|
179
|
+
await Oe({
|
|
179
180
|
variables: { id: F },
|
|
180
181
|
refetchQueries: k,
|
|
181
182
|
awaitRefetchQueries: !0
|
|
182
183
|
}), X();
|
|
183
184
|
} catch (e) {
|
|
184
|
-
W(e
|
|
185
|
+
W(h(e, "Failed to delete event."));
|
|
185
186
|
}
|
|
186
187
|
}
|
|
187
|
-
},
|
|
188
|
+
}, Ge = async (e) => {
|
|
188
189
|
W(null);
|
|
189
190
|
try {
|
|
190
|
-
await
|
|
191
|
+
await Ae({ variables: { registrationId: e } }), await I();
|
|
191
192
|
} catch (e) {
|
|
192
|
-
W(e
|
|
193
|
+
W(h(e, "Failed to check in attendee."));
|
|
193
194
|
}
|
|
194
|
-
},
|
|
195
|
+
}, Ke = async (e) => {
|
|
195
196
|
W(null);
|
|
196
197
|
try {
|
|
197
|
-
await
|
|
198
|
+
await Me({ variables: { registrationId: e } }), await I();
|
|
198
199
|
} catch (e) {
|
|
199
|
-
W(e
|
|
200
|
+
W(h(e, "Failed to cancel registration."));
|
|
200
201
|
}
|
|
201
202
|
}, Z = async (e) => {
|
|
202
203
|
if (F) {
|
|
@@ -204,30 +205,30 @@ var F = () => {
|
|
|
204
205
|
else {
|
|
205
206
|
W(null), J(null);
|
|
206
207
|
try {
|
|
207
|
-
await
|
|
208
|
+
await Pe({ variables: {
|
|
208
209
|
eventId: F,
|
|
209
210
|
eventfullyManagedEventId: e ? void 0 : G,
|
|
210
211
|
createRemoteIfMissing: e
|
|
211
212
|
} }), await I(), await z.refetch(), J("Event linked to EventfullyManaged.");
|
|
212
213
|
} catch (e) {
|
|
213
|
-
W(e
|
|
214
|
+
W(h(e, "Failed to link EventfullyManaged event."));
|
|
214
215
|
}
|
|
215
216
|
}
|
|
216
217
|
}
|
|
217
|
-
},
|
|
218
|
+
}, qe = async () => {
|
|
218
219
|
if (F) {
|
|
219
220
|
W(null), J(null);
|
|
220
221
|
try {
|
|
221
|
-
await
|
|
222
|
+
await Ie({ variables: { eventId: F } }), await I(), J("Event unlinked from EventfullyManaged.");
|
|
222
223
|
} catch (e) {
|
|
223
|
-
W(e
|
|
224
|
+
W(h(e, "Failed to unlink EventfullyManaged event."));
|
|
224
225
|
}
|
|
225
226
|
}
|
|
226
|
-
},
|
|
227
|
+
}, Je = async () => {
|
|
227
228
|
if (F) {
|
|
228
229
|
W(null), J(null);
|
|
229
230
|
try {
|
|
230
|
-
let e = await
|
|
231
|
+
let e = await Re({ variables: {
|
|
231
232
|
eventId: F,
|
|
232
233
|
direction: K
|
|
233
234
|
} });
|
|
@@ -235,33 +236,33 @@ var F = () => {
|
|
|
235
236
|
let t = e.data?.headshotmarketingSyncEventfullyManagedEvent;
|
|
236
237
|
t && J(`Synced (${t.direction}): ${t.speakersPulled} speakers pulled / ${t.speakersPushed} pushed, ${t.registrationsPulled} registrations pulled / ${t.registrationsPushed} pushed, ${t.contactsUpserted} CRM contacts upserted, ${t.checkInsPulled} check-ins pulled / ${t.checkInsPushed} pushed.`);
|
|
237
238
|
} catch (e) {
|
|
238
|
-
W(e
|
|
239
|
+
W(h(e, "Failed to sync with EventfullyManaged."));
|
|
239
240
|
}
|
|
240
241
|
}
|
|
241
|
-
},
|
|
242
|
-
return Y ? /* @__PURE__ */ w(
|
|
242
|
+
}, Ye = le(() => !Y || !Y.maxAttendees || Y.maxAttendees <= 0 ? 0 : Math.min(Y.registrationCount / Y.maxAttendees * 100, 100), [Y]), Q = z.data?.headshotmarketingEventfullyManagedEvents ?? [], $ = L || ke || je || Ne || Fe || Le || R;
|
|
243
|
+
return Y ? /* @__PURE__ */ w(d, {
|
|
243
244
|
title: Y.title,
|
|
244
245
|
description: Y.description || void 0,
|
|
245
246
|
actions: /* @__PURE__ */ w("div", {
|
|
246
247
|
className: "flex flex-wrap items-center gap-2",
|
|
247
248
|
children: [
|
|
248
|
-
/* @__PURE__ */ C(
|
|
249
|
+
/* @__PURE__ */ C(m, { status: Y.status.toLowerCase() }),
|
|
249
250
|
/* @__PURE__ */ w("button", {
|
|
250
251
|
onClick: X,
|
|
251
252
|
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",
|
|
252
253
|
children: [/* @__PURE__ */ C(_, { className: "h-4 w-4" }), "Back"]
|
|
253
254
|
}),
|
|
254
255
|
/* @__PURE__ */ w("button", {
|
|
255
|
-
onClick:
|
|
256
|
+
onClick: He,
|
|
256
257
|
disabled: $,
|
|
257
258
|
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 disabled:opacity-60",
|
|
258
|
-
children: [/* @__PURE__ */ C(
|
|
259
|
+
children: [/* @__PURE__ */ C(me, { className: "h-4 w-4" }), "Manage"]
|
|
259
260
|
}),
|
|
260
261
|
/* @__PURE__ */ w("button", {
|
|
261
|
-
onClick: () => void
|
|
262
|
+
onClick: () => void We(),
|
|
262
263
|
disabled: $,
|
|
263
264
|
className: "inline-flex items-center gap-2 rounded-md border border-status-error-border/40 bg-status-error-bg/10 px-3 py-2 text-sm font-medium text-status-error-text hover:bg-status-error-bg/20 disabled:opacity-60",
|
|
264
|
-
children: [/* @__PURE__ */ C(
|
|
265
|
+
children: [/* @__PURE__ */ C(be, { className: "h-4 w-4" }), "Delete"]
|
|
265
266
|
})
|
|
266
267
|
]
|
|
267
268
|
}),
|
|
@@ -274,32 +275,32 @@ var F = () => {
|
|
|
274
275
|
/* @__PURE__ */ C(T, { children: /* @__PURE__ */ w("div", {
|
|
275
276
|
className: "grid grid-cols-2 gap-4 lg:grid-cols-4",
|
|
276
277
|
children: [
|
|
277
|
-
/* @__PURE__ */ C(
|
|
278
|
+
/* @__PURE__ */ C(f, {
|
|
278
279
|
featured: !0,
|
|
279
280
|
title: "Registrations",
|
|
280
281
|
value: l(Y.registrationCount),
|
|
281
|
-
icon: /* @__PURE__ */ C(
|
|
282
|
+
icon: /* @__PURE__ */ C(ye, { className: "h-5 w-5" })
|
|
282
283
|
}),
|
|
283
|
-
/* @__PURE__ */ C(
|
|
284
|
+
/* @__PURE__ */ C(f, {
|
|
284
285
|
title: "Capacity",
|
|
285
286
|
value: Y.maxAttendees ? l(Y.maxAttendees) : "—",
|
|
286
|
-
icon: /* @__PURE__ */ C(
|
|
287
|
+
icon: /* @__PURE__ */ C(Ce, { className: "h-5 w-5" })
|
|
287
288
|
}),
|
|
288
|
-
/* @__PURE__ */ C(
|
|
289
|
+
/* @__PURE__ */ C(f, {
|
|
289
290
|
title: "Fill Rate",
|
|
290
|
-
value: Y.maxAttendees ?
|
|
291
|
-
icon: /* @__PURE__ */ C(
|
|
291
|
+
value: Y.maxAttendees ? ie(Ye, 0) : "N/A",
|
|
292
|
+
icon: /* @__PURE__ */ C(he, { className: "h-5 w-5" })
|
|
292
293
|
}),
|
|
293
|
-
/* @__PURE__ */ C(
|
|
294
|
+
/* @__PURE__ */ C(f, {
|
|
294
295
|
title: "Speakers",
|
|
295
296
|
value: Y.speakers.length,
|
|
296
|
-
icon: /* @__PURE__ */ C(
|
|
297
|
+
icon: /* @__PURE__ */ C(Se, { className: "h-5 w-5" })
|
|
297
298
|
})
|
|
298
299
|
]
|
|
299
300
|
}) }),
|
|
300
301
|
/* @__PURE__ */ C("div", {
|
|
301
302
|
className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
|
|
302
|
-
children: /* @__PURE__ */ C(
|
|
303
|
+
children: /* @__PURE__ */ C(ce, {
|
|
303
304
|
entityType: "HEADSHOTMARKETING_EVENT",
|
|
304
305
|
entityId: Y.id
|
|
305
306
|
})
|
|
@@ -324,7 +325,7 @@ var F = () => {
|
|
|
324
325
|
children: [
|
|
325
326
|
/* @__PURE__ */ w("div", {
|
|
326
327
|
className: "flex items-start gap-2 text-text-secondary",
|
|
327
|
-
children: [/* @__PURE__ */ C(
|
|
328
|
+
children: [/* @__PURE__ */ C(pe, { className: "mt-0.5 h-4 w-4 shrink-0" }), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
328
329
|
className: "text-text-primary",
|
|
329
330
|
children: P(Y.startDate, Y.timezone)
|
|
330
331
|
}), /* @__PURE__ */ w("p", {
|
|
@@ -338,17 +339,17 @@ var F = () => {
|
|
|
338
339
|
}),
|
|
339
340
|
/* @__PURE__ */ w("div", {
|
|
340
341
|
className: "flex items-center gap-2 text-text-secondary",
|
|
341
|
-
children: [Y.virtualUrl ? /* @__PURE__ */ C(y, { className: "h-4 w-4 shrink-0" }) : /* @__PURE__ */ C(
|
|
342
|
+
children: [Y.virtualUrl ? /* @__PURE__ */ C(y, { className: "h-4 w-4 shrink-0" }) : /* @__PURE__ */ C(ge, { className: "h-4 w-4 shrink-0" }), Y.virtualUrl && M(Y.virtualUrl) ? /* @__PURE__ */ w("a", {
|
|
342
343
|
href: Y.virtualUrl,
|
|
343
344
|
target: "_blank",
|
|
344
345
|
rel: "noopener noreferrer",
|
|
345
346
|
className: "inline-flex items-center gap-1 text-action-primary-bg hover:underline",
|
|
346
|
-
children: [Y.virtualUrl, /* @__PURE__ */ C(
|
|
347
|
+
children: [Y.virtualUrl, /* @__PURE__ */ C(ue, { className: "h-3.5 w-3.5" })]
|
|
347
348
|
}) : Y.virtualUrl ? /* @__PURE__ */ C("span", { children: Y.virtualUrl }) : /* @__PURE__ */ C("span", { children: Y.location || "Location TBD" })]
|
|
348
349
|
}),
|
|
349
350
|
Y.tags && Y.tags.length > 0 && /* @__PURE__ */ w("div", {
|
|
350
351
|
className: "flex flex-wrap items-center gap-1.5 pt-2",
|
|
351
|
-
children: [/* @__PURE__ */ C(
|
|
352
|
+
children: [/* @__PURE__ */ C(ve, { className: "h-3.5 w-3.5 text-text-secondary" }), Y.tags.map((e) => /* @__PURE__ */ C("span", {
|
|
352
353
|
className: "inline-flex items-center rounded-full bg-bg-sunken px-2.5 py-0.5 text-xs font-medium text-text-primary",
|
|
353
354
|
children: e
|
|
354
355
|
}, e))]
|
|
@@ -359,7 +360,7 @@ var F = () => {
|
|
|
359
360
|
className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
|
|
360
361
|
children: [/* @__PURE__ */ w("h4", {
|
|
361
362
|
className: "mb-4 flex items-center gap-2 text-sm font-semibold text-text-primary",
|
|
362
|
-
children: [/* @__PURE__ */ C(
|
|
363
|
+
children: [/* @__PURE__ */ C(de, { className: "h-4 w-4 text-text-secondary" }), "Type"]
|
|
363
364
|
}), /* @__PURE__ */ C("p", {
|
|
364
365
|
className: "text-sm text-text-primary",
|
|
365
366
|
children: j.find((e) => e.value === Y.type)?.label ?? Y.type
|
|
@@ -413,7 +414,7 @@ var F = () => {
|
|
|
413
414
|
}), /* @__PURE__ */ C("p", {
|
|
414
415
|
className: "text-xs text-text-secondary",
|
|
415
416
|
children: "Link this event to EventfullyManaged to synchronize metadata, speakers, registrations, CRM contacts, and check-ins."
|
|
416
|
-
})] }), Y.eventfullyManagedSyncStatus && /* @__PURE__ */ C(
|
|
417
|
+
})] }), Y.eventfullyManagedSyncStatus && /* @__PURE__ */ C(m, { status: Y.eventfullyManagedSyncStatus.toLowerCase() })]
|
|
417
418
|
}),
|
|
418
419
|
q && /* @__PURE__ */ C("div", {
|
|
419
420
|
role: "status",
|
|
@@ -447,7 +448,7 @@ var F = () => {
|
|
|
447
448
|
/* @__PURE__ */ w(D, {
|
|
448
449
|
"aria-label": "Sync direction",
|
|
449
450
|
value: K,
|
|
450
|
-
onChange: (e) =>
|
|
451
|
+
onChange: (e) => Ve(e.target.value),
|
|
451
452
|
className: "rounded-md border border-border-subtle bg-bg-surface px-2.5 py-1.5 text-xs text-text-primary",
|
|
452
453
|
children: [
|
|
453
454
|
/* @__PURE__ */ C("option", {
|
|
@@ -467,18 +468,18 @@ var F = () => {
|
|
|
467
468
|
/* @__PURE__ */ w("button", {
|
|
468
469
|
type: "button",
|
|
469
470
|
"data-testid": "eventfully-sync-now",
|
|
470
|
-
onClick: () => void
|
|
471
|
+
onClick: () => void Je(),
|
|
471
472
|
disabled: $,
|
|
472
473
|
className: "inline-flex items-center gap-1.5 rounded-md bg-action-primary-bg px-3 py-1.5 text-xs font-medium text-action-primary-text hover:bg-action-primary-bg/90 disabled:opacity-60",
|
|
473
|
-
children: [/* @__PURE__ */ C(
|
|
474
|
+
children: [/* @__PURE__ */ C(_e, { className: R ? "h-3.5 w-3.5 animate-spin" : "h-3.5 w-3.5" }), R ? "Syncing…" : "Sync Now"]
|
|
474
475
|
}),
|
|
475
476
|
/* @__PURE__ */ w("button", {
|
|
476
477
|
type: "button",
|
|
477
478
|
"data-testid": "eventfully-unlink",
|
|
478
|
-
onClick: () => void
|
|
479
|
+
onClick: () => void qe(),
|
|
479
480
|
disabled: $,
|
|
480
481
|
className: "inline-flex items-center gap-1.5 rounded-md border border-border-subtle px-3 py-1.5 text-xs font-medium text-text-primary hover:bg-bg-sunken disabled:opacity-60",
|
|
481
|
-
children: [/* @__PURE__ */ C(
|
|
482
|
+
children: [/* @__PURE__ */ C(xe, { className: "h-3.5 w-3.5" }), "Unlink"]
|
|
482
483
|
})
|
|
483
484
|
]
|
|
484
485
|
})]
|
|
@@ -488,7 +489,7 @@ var F = () => {
|
|
|
488
489
|
/* @__PURE__ */ w(D, {
|
|
489
490
|
"aria-label": "Select EventfullyManaged event",
|
|
490
491
|
value: G,
|
|
491
|
-
onChange: (e) =>
|
|
492
|
+
onChange: (e) => Be(e.target.value),
|
|
492
493
|
className: "min-w-[14rem] flex-1 rounded-md border border-border-subtle bg-bg-surface px-3 py-1.5 text-xs text-text-primary",
|
|
493
494
|
children: [/* @__PURE__ */ C("option", {
|
|
494
495
|
value: "",
|
|
@@ -580,19 +581,19 @@ var F = () => {
|
|
|
580
581
|
}),
|
|
581
582
|
/* @__PURE__ */ C("td", {
|
|
582
583
|
className: "py-2 pe-4",
|
|
583
|
-
children: /* @__PURE__ */ C(
|
|
584
|
+
children: /* @__PURE__ */ C(m, { status: t })
|
|
584
585
|
}),
|
|
585
586
|
/* @__PURE__ */ C("td", {
|
|
586
587
|
className: "py-2 pe-4",
|
|
587
588
|
children: /* @__PURE__ */ w("div", {
|
|
588
589
|
className: "flex items-center gap-2",
|
|
589
590
|
children: [n && /* @__PURE__ */ w("button", {
|
|
590
|
-
onClick: () => void
|
|
591
|
+
onClick: () => void Ge(e.id),
|
|
591
592
|
disabled: $,
|
|
592
593
|
className: "inline-flex items-center gap-1 rounded-md border border-border-subtle px-2 py-1 text-xs font-medium text-text-primary hover:bg-bg-sunken disabled:opacity-60",
|
|
593
|
-
children: [/* @__PURE__ */ C(
|
|
594
|
+
children: [/* @__PURE__ */ C(fe, { className: "h-3 w-3" }), "Check in"]
|
|
594
595
|
}), r && /* @__PURE__ */ w("button", {
|
|
595
|
-
onClick: () => void
|
|
596
|
+
onClick: () => void Ke(e.id),
|
|
596
597
|
disabled: $,
|
|
597
598
|
className: "inline-flex items-center gap-1 rounded-md border border-status-error-border/40 px-2 py-1 text-xs font-medium text-status-error-text hover:bg-status-error-bg/10 disabled:opacity-60",
|
|
598
599
|
children: [/* @__PURE__ */ C(b, { className: "h-3 w-3" }), "Cancel"]
|
|
@@ -605,8 +606,8 @@ var F = () => {
|
|
|
605
606
|
})
|
|
606
607
|
})]
|
|
607
608
|
}),
|
|
608
|
-
V && /* @__PURE__ */ C(
|
|
609
|
-
open:
|
|
609
|
+
V && /* @__PURE__ */ C(ae, {
|
|
610
|
+
open: ze,
|
|
610
611
|
onClose: () => B(!1),
|
|
611
612
|
title: "Manage Event",
|
|
612
613
|
description: "Update event details or move it through its lifecycle.",
|
|
@@ -616,7 +617,7 @@ var F = () => {
|
|
|
616
617
|
className: "rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken",
|
|
617
618
|
children: "Cancel"
|
|
618
619
|
}), /* @__PURE__ */ C("button", {
|
|
619
|
-
onClick: () => void
|
|
620
|
+
onClick: () => void Ue(),
|
|
620
621
|
disabled: L,
|
|
621
622
|
className: "rounded-md bg-foreground px-4 py-2 text-sm font-medium text-background hover:bg-foreground/90 disabled:opacity-60",
|
|
622
623
|
children: L ? "Saving..." : "Save Changes"
|
|
@@ -769,14 +770,14 @@ var F = () => {
|
|
|
769
770
|
})
|
|
770
771
|
})
|
|
771
772
|
]
|
|
772
|
-
}) : /* @__PURE__ */ C(
|
|
773
|
+
}) : /* @__PURE__ */ C(d, {
|
|
773
774
|
title: "Event Details",
|
|
774
|
-
children: /* @__PURE__ */ C(
|
|
775
|
-
loading:
|
|
776
|
-
error:
|
|
775
|
+
children: /* @__PURE__ */ C(se, {
|
|
776
|
+
loading: Te,
|
|
777
|
+
error: Ee,
|
|
777
778
|
onRetry: () => void I(),
|
|
778
779
|
hasData: !1,
|
|
779
|
-
children: /* @__PURE__ */ C(
|
|
780
|
+
children: /* @__PURE__ */ C(p, {
|
|
780
781
|
illustration: "empty-generic",
|
|
781
782
|
title: "Event not found",
|
|
782
783
|
description: "The event you're looking for doesn't exist or has been removed.",
|