@burdenoff/microfe-headshotmarketing 2026.1201.1 → 2026.1202.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/headshotmarketing/components/ActionMenu.js +1 -1
- package/dist/headshotmarketing/components/ActionMenu.js.map +1 -1
- package/dist/headshotmarketing/components/AssetUploadButton.js +35 -23
- package/dist/headshotmarketing/components/AssetUploadButton.js.map +1 -1
- package/dist/headshotmarketing/components/DataTable.js +33 -33
- package/dist/headshotmarketing/components/DataTable.js.map +1 -1
- package/dist/headshotmarketing/components/EmptyState.d.ts +15 -0
- package/dist/headshotmarketing/components/EmptyState.js +35 -15
- package/dist/headshotmarketing/components/EmptyState.js.map +1 -1
- package/dist/headshotmarketing/components/FilterBar.js +2 -2
- package/dist/headshotmarketing/components/FilterBar.js.map +1 -1
- package/dist/headshotmarketing/components/InfluencerModals.js +96 -95
- package/dist/headshotmarketing/components/InfluencerModals.js.map +1 -1
- package/dist/headshotmarketing/components/Pagination.js +38 -37
- package/dist/headshotmarketing/components/Pagination.js.map +1 -1
- package/dist/headshotmarketing/components/TagChipsInput.js +1 -1
- package/dist/headshotmarketing/components/TagChipsInput.js.map +1 -1
- package/dist/headshotmarketing/components/Toast.js +1 -1
- package/dist/headshotmarketing/components/Toast.js.map +1 -1
- package/dist/headshotmarketing/components/UploadAudienceSelect.d.ts +7 -0
- package/dist/headshotmarketing/components/UploadAudienceSelect.js +40 -0
- package/dist/headshotmarketing/components/UploadAudienceSelect.js.map +1 -0
- package/dist/headshotmarketing/hooks/useAssetUpload.d.ts +2 -19
- package/dist/headshotmarketing/hooks/useAssetUpload.js +38 -32
- package/dist/headshotmarketing/hooks/useAssetUpload.js.map +1 -1
- package/dist/headshotmarketing/pages/HomeMonthlyGoals.js.map +1 -1
- package/dist/headshotmarketing/pages/HomePage.js +10 -10
- package/dist/headshotmarketing/pages/HomePage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js +203 -203
- package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js +148 -148
- package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCreativeTestsSection.js +74 -73
- package/dist/headshotmarketing/pages/ads/AdCreativeTestsSection.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCreativesPage.js +427 -412
- package/dist/headshotmarketing/pages/ads/AdCreativesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdPlatformConnectionsSection.js +111 -110
- package/dist/headshotmarketing/pages/ads/AdPlatformConnectionsSection.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdPlatformSyncPanel.js +1 -1
- package/dist/headshotmarketing/pages/ads/AdPlatformSyncPanel.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdsPage.js +6 -6
- package/dist/headshotmarketing/pages/ads/AdsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AudiencesPage.js +49 -49
- package/dist/headshotmarketing/pages/ads/AudiencesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js +112 -112
- package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/CreateAudiencePage.js +57 -57
- package/dist/headshotmarketing/pages/ads/CreateAudiencePage.js.map +1 -1
- package/dist/headshotmarketing/pages/ai/AiOperationsPage.js +175 -174
- package/dist/headshotmarketing/pages/ai/AiOperationsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js +1 -1
- package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/AttributionPage.js +129 -129
- package/dist/headshotmarketing/pages/analytics/AttributionPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js +9 -9
- package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/ReportScheduleDialog.js +95 -94
- package/dist/headshotmarketing/pages/analytics/ReportScheduleDialog.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/ReportsPage.js +4 -4
- package/dist/headshotmarketing/pages/analytics/ReportsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/TouchpointLedgerCard.js +42 -41
- package/dist/headshotmarketing/pages/analytics/TouchpointLedgerCard.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/analyticsWidgets.js +132 -131
- package/dist/headshotmarketing/pages/analytics/analyticsWidgets.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/AutomationPage.js +8 -8
- package/dist/headshotmarketing/pages/automation/AutomationPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/TriggersPage.js +48 -48
- package/dist/headshotmarketing/pages/automation/TriggersPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js +4 -3
- package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowNodeConfigPanel.js +143 -142
- package/dist/headshotmarketing/pages/automation/WorkflowNodeConfigPanel.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowRunsPanel.js +79 -78
- package/dist/headshotmarketing/pages/automation/WorkflowRunsPanel.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowsPage.js +92 -92
- package/dist/headshotmarketing/pages/automation/WorkflowsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js +143 -143
- package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js.map +1 -1
- package/dist/headshotmarketing/pages/builder/SectionCanvasBlock.js +3 -3
- package/dist/headshotmarketing/pages/builder/SectionCanvasBlock.js.map +1 -1
- package/dist/headshotmarketing/pages/builder/SectionInspector.js +24 -23
- package/dist/headshotmarketing/pages/builder/SectionInspector.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js +198 -193
- package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js +41 -41
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js +234 -229
- package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js +199 -187
- package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CreateTemplateModal.js +46 -46
- package/dist/headshotmarketing/pages/campaigns/CreateTemplateModal.js.map +1 -1
- package/dist/headshotmarketing/pages/content/AIExecutionLedger.js +29 -29
- package/dist/headshotmarketing/pages/content/AIExecutionLedger.js.map +1 -1
- package/dist/headshotmarketing/pages/content/AIToolsPage.js +3 -3
- package/dist/headshotmarketing/pages/content/AIToolsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/AssetLibraryPage.js +230 -220
- package/dist/headshotmarketing/pages/content/AssetLibraryPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentCreationPage.js +431 -420
- package/dist/headshotmarketing/pages/content/ContentCreationPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentDetailsPage.js +7 -7
- package/dist/headshotmarketing/pages/content/ContentDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentLibraryCard.js +2 -2
- package/dist/headshotmarketing/pages/content/ContentLibraryCard.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentPage.js +88 -88
- package/dist/headshotmarketing/pages/content/ContentPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/ContactsPage.js +111 -111
- package/dist/headshotmarketing/pages/crm/ContactsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CreateContactPage.js +59 -59
- package/dist/headshotmarketing/pages/crm/CreateContactPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CreateDealPage.js +86 -86
- package/dist/headshotmarketing/pages/crm/CreateDealPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CrmActions.js +93 -92
- package/dist/headshotmarketing/pages/crm/CrmActions.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CrmPage.js +4 -4
- package/dist/headshotmarketing/pages/crm/CrmPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/LeadCreateModal.js +63 -62
- package/dist/headshotmarketing/pages/crm/LeadCreateModal.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/LeadsPage.js +68 -68
- package/dist/headshotmarketing/pages/crm/LeadsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/PipelinePage.js +2 -2
- package/dist/headshotmarketing/pages/crm/PipelinePage.js.map +1 -1
- package/dist/headshotmarketing/pages/events/CreateEventPage.js +165 -165
- package/dist/headshotmarketing/pages/events/CreateEventPage.js.map +1 -1
- package/dist/headshotmarketing/pages/events/EventDetailsPage.js +255 -250
- package/dist/headshotmarketing/pages/events/EventDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/events/EventImageUpload.js +8 -2
- package/dist/headshotmarketing/pages/events/EventImageUpload.js.map +1 -1
- package/dist/headshotmarketing/pages/events/EventPagePreview.js +2 -2
- package/dist/headshotmarketing/pages/events/EventPagePreview.js.map +1 -1
- package/dist/headshotmarketing/pages/events/EventsPage.js +70 -70
- package/dist/headshotmarketing/pages/events/EventsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js +7 -7
- package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js +98 -98
- package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencersPage.js +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencersPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js +145 -140
- 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 +286 -286
- package/dist/headshotmarketing/pages/seo/SeoToolsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/AccountsPage.js +171 -166
- package/dist/headshotmarketing/pages/social-media/AccountsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js +1 -1
- package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/CreateAccountPage.js +1 -1
- package/dist/headshotmarketing/pages/social-media/CreateAccountPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/MediaDropZone.js +3 -3
- package/dist/headshotmarketing/pages/social-media/MediaDropZone.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/PostsPage.js +257 -252
- package/dist/headshotmarketing/pages/social-media/PostsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/SocialComposerPreview.js +2 -2
- package/dist/headshotmarketing/pages/social-media/SocialComposerPreview.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js +4 -4
- package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js +115 -115
- package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js.map +1 -1
- package/package.json +6 -4
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { HeadshotmarketingBootstrapDataDocument as e, useHeadshotmarketingCancelRegistrationMutation as t, useHeadshotmarketingCheckInAttendeeMutation as n, useHeadshotmarketingDeleteEventMutation as r, useHeadshotmarketingEventByIdQuery as i, useHeadshotmarketingUpdateEventMutation as a } from "../../../generated/wspace-operations.js";
|
|
2
2
|
import { HeadshotmarketingEventStatus as o, HeadshotmarketingEventType as s } from "../../../generated/wspace-types.js";
|
|
3
3
|
import "../../components/index.js";
|
|
4
|
-
import { formatNumber as c, formatPercentage as
|
|
5
|
-
import { PageLayout as
|
|
6
|
-
import { StatCard as
|
|
4
|
+
import { formatNumber as c, formatPercentage as ee, joinPath as te } from "../../utils/helpers.js";
|
|
5
|
+
import { PageLayout as l } from "../../components/PageLayout.js";
|
|
6
|
+
import { StatCard as u } from "../../components/StatCard.js";
|
|
7
|
+
import { EmptyState as d } from "../../components/EmptyState.js";
|
|
7
8
|
import { StatusBadge as f } from "../../components/StatusBadge.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { EmphasisPanel as k, PagePurpose as A } from "@burdenoff/fe-libs/ui";
|
|
9
|
+
import { Modal as p } from "../../components/Modal.js";
|
|
10
|
+
import { QueryStateBoundary as m } from "../../components/QueryStateBoundary.js";
|
|
11
|
+
import { useHeadshotMarketing as h } from "../../context/HeadshotMarketingContext.js";
|
|
12
|
+
import { useMemo as g, useState as _ } from "react";
|
|
13
|
+
import { ArrowLeft as v, ArrowUpRight as y, CalendarClock as b, Check as x, Clock as ne, Edit as re, Gauge as ie, MapPin as ae, Tag as oe, Ticket as se, Trash2 as ce, UserCheck as S, Users as C, Video as w, X as T } from "lucide-react";
|
|
14
|
+
import { useParams as E } from "react-router";
|
|
15
|
+
import { Fragment as D, jsx as O, jsxs as k } from "react/jsx-runtime";
|
|
16
|
+
import { EmphasisPanel as A, PagePurpose as j, ThemedSelect as M, useConfirm as N } from "@burdenoff/fe-libs/ui";
|
|
17
17
|
// src/headshotmarketing/pages/events/EventDetailsPage.tsx
|
|
18
|
-
var
|
|
18
|
+
var P = [{ query: e }], F = [
|
|
19
19
|
{
|
|
20
20
|
value: o.Draft,
|
|
21
21
|
label: "Draft"
|
|
@@ -44,7 +44,7 @@ var j = [{ query: e }], M = [
|
|
|
44
44
|
value: o.Cancelled,
|
|
45
45
|
label: "Cancelled"
|
|
46
46
|
}
|
|
47
|
-
],
|
|
47
|
+
], I = [
|
|
48
48
|
{
|
|
49
49
|
value: s.Webinar,
|
|
50
50
|
label: "Webinar"
|
|
@@ -78,7 +78,7 @@ var j = [{ query: e }], M = [
|
|
|
78
78
|
label: "Other"
|
|
79
79
|
}
|
|
80
80
|
];
|
|
81
|
-
function
|
|
81
|
+
function L(e) {
|
|
82
82
|
try {
|
|
83
83
|
let t = new URL(e);
|
|
84
84
|
return t.protocol === "http:" || t.protocol === "https:";
|
|
@@ -86,13 +86,13 @@ function P(e) {
|
|
|
86
86
|
return !1;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function R(e) {
|
|
90
90
|
let t = new Date(e);
|
|
91
91
|
if (Number.isNaN(t.getTime())) return "";
|
|
92
92
|
let n = (e) => String(e).padStart(2, "0");
|
|
93
93
|
return `${t.getFullYear()}-${n(t.getMonth() + 1)}-${n(t.getDate())}T${n(t.getHours())}:${n(t.getMinutes())}`;
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function z(e, t) {
|
|
96
96
|
let n = new Date(e);
|
|
97
97
|
if (Number.isNaN(n.getTime())) return "Date to be announced";
|
|
98
98
|
let r = {
|
|
@@ -111,228 +111,233 @@ function I(e, t) {
|
|
|
111
111
|
} catch {}
|
|
112
112
|
return new Intl.DateTimeFormat("en-US", r).format(n);
|
|
113
113
|
}
|
|
114
|
-
var
|
|
115
|
-
let { navigate:
|
|
116
|
-
skip: !
|
|
117
|
-
variables:
|
|
118
|
-
}), [
|
|
119
|
-
|
|
120
|
-
title:
|
|
121
|
-
description:
|
|
122
|
-
type:
|
|
123
|
-
status:
|
|
124
|
-
startDate:
|
|
125
|
-
endDate:
|
|
126
|
-
timezone:
|
|
127
|
-
location:
|
|
128
|
-
virtualUrl:
|
|
129
|
-
maxAttendees:
|
|
130
|
-
}),
|
|
131
|
-
},
|
|
132
|
-
if (
|
|
133
|
-
if (!
|
|
134
|
-
else if (!
|
|
114
|
+
var B = () => {
|
|
115
|
+
let e = N(), { navigate: o, basePath: s } = h(), { eventId: B } = E(), { data: V, loading: le, error: H, refetch: U } = i({
|
|
116
|
+
skip: !B,
|
|
117
|
+
variables: B ? { id: B } : void 0
|
|
118
|
+
}), [W, { loading: G }] = a(), [ue, { loading: de }] = r(), [fe, { loading: pe }] = n(), [me, { loading: he }] = t(), [ge, K] = _(!1), [q, J] = _(null), [Y, X] = _(null), Z = V?.headshotmarketingEvent ?? null, Q = () => o(te(s, "events")), _e = () => {
|
|
119
|
+
Z && (X(null), J({
|
|
120
|
+
title: Z.title,
|
|
121
|
+
description: Z.description ?? "",
|
|
122
|
+
type: Z.type,
|
|
123
|
+
status: Z.status,
|
|
124
|
+
startDate: R(Z.startDate),
|
|
125
|
+
endDate: R(Z.endDate),
|
|
126
|
+
timezone: Z.timezone ?? "",
|
|
127
|
+
location: Z.location ?? "",
|
|
128
|
+
virtualUrl: Z.virtualUrl ?? "",
|
|
129
|
+
maxAttendees: Z.maxAttendees ? String(Z.maxAttendees) : ""
|
|
130
|
+
}), K(!0));
|
|
131
|
+
}, ve = async () => {
|
|
132
|
+
if (B && q) {
|
|
133
|
+
if (!q.title.trim()) X("Event title is required.");
|
|
134
|
+
else if (!q.startDate || !q.endDate) X("Start and end date/time are required.");
|
|
135
135
|
else {
|
|
136
|
-
|
|
136
|
+
X(null);
|
|
137
137
|
try {
|
|
138
|
-
await
|
|
138
|
+
await W({
|
|
139
139
|
variables: {
|
|
140
|
-
id:
|
|
140
|
+
id: B,
|
|
141
141
|
input: {
|
|
142
|
-
title:
|
|
143
|
-
description:
|
|
144
|
-
type:
|
|
145
|
-
status:
|
|
146
|
-
startDate: new Date(
|
|
147
|
-
endDate: new Date(
|
|
148
|
-
timezone:
|
|
149
|
-
location:
|
|
150
|
-
virtualUrl:
|
|
151
|
-
maxAttendees:
|
|
142
|
+
title: q.title.trim(),
|
|
143
|
+
description: q.description || null,
|
|
144
|
+
type: q.type,
|
|
145
|
+
status: q.status,
|
|
146
|
+
startDate: new Date(q.startDate).toISOString(),
|
|
147
|
+
endDate: new Date(q.endDate).toISOString(),
|
|
148
|
+
timezone: q.timezone || null,
|
|
149
|
+
location: q.location || null,
|
|
150
|
+
virtualUrl: q.virtualUrl || null,
|
|
151
|
+
maxAttendees: q.maxAttendees ? Number(q.maxAttendees) : null
|
|
152
152
|
}
|
|
153
153
|
},
|
|
154
|
-
refetchQueries:
|
|
155
|
-
}),
|
|
154
|
+
refetchQueries: P
|
|
155
|
+
}), K(!1), await U();
|
|
156
156
|
} catch (e) {
|
|
157
|
-
|
|
157
|
+
X(e instanceof Error ? e.message : "Failed to update event.");
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
|
-
},
|
|
162
|
-
if (
|
|
163
|
-
|
|
161
|
+
}, ye = async () => {
|
|
162
|
+
if (B && Z && await e({
|
|
163
|
+
title: `Delete event "${Z.title}"?`,
|
|
164
|
+
description: "This cannot be undone.",
|
|
165
|
+
tone: "danger",
|
|
166
|
+
confirmLabel: "Delete event"
|
|
167
|
+
})) {
|
|
168
|
+
X(null);
|
|
164
169
|
try {
|
|
165
|
-
await
|
|
166
|
-
variables: { id:
|
|
167
|
-
refetchQueries:
|
|
170
|
+
await ue({
|
|
171
|
+
variables: { id: B },
|
|
172
|
+
refetchQueries: P,
|
|
168
173
|
awaitRefetchQueries: !0
|
|
169
|
-
}),
|
|
174
|
+
}), Q();
|
|
170
175
|
} catch (e) {
|
|
171
|
-
|
|
176
|
+
X(e instanceof Error ? e.message : "Failed to delete event.");
|
|
172
177
|
}
|
|
173
178
|
}
|
|
174
|
-
},
|
|
175
|
-
|
|
179
|
+
}, be = async (e) => {
|
|
180
|
+
X(null);
|
|
176
181
|
try {
|
|
177
|
-
await
|
|
182
|
+
await fe({ variables: { registrationId: e } }), await U();
|
|
178
183
|
} catch (e) {
|
|
179
|
-
|
|
184
|
+
X(e instanceof Error ? e.message : "Failed to check in attendee.");
|
|
180
185
|
}
|
|
181
|
-
},
|
|
182
|
-
|
|
186
|
+
}, xe = async (e) => {
|
|
187
|
+
X(null);
|
|
183
188
|
try {
|
|
184
|
-
await
|
|
189
|
+
await me({ variables: { registrationId: e } }), await U();
|
|
185
190
|
} catch (e) {
|
|
186
|
-
|
|
191
|
+
X(e instanceof Error ? e.message : "Failed to cancel registration.");
|
|
187
192
|
}
|
|
188
|
-
},
|
|
189
|
-
return
|
|
190
|
-
title:
|
|
191
|
-
description:
|
|
192
|
-
actions: /* @__PURE__ */
|
|
193
|
+
}, Se = g(() => !Z || !Z.maxAttendees || Z.maxAttendees <= 0 ? 0 : Math.min(Z.registrationCount / Z.maxAttendees * 100, 100), [Z]), $ = G || de || pe || he;
|
|
194
|
+
return Z ? /* @__PURE__ */ k(l, {
|
|
195
|
+
title: Z.title,
|
|
196
|
+
description: Z.description || void 0,
|
|
197
|
+
actions: /* @__PURE__ */ k("div", {
|
|
193
198
|
className: "flex flex-wrap items-center gap-2",
|
|
194
199
|
children: [
|
|
195
|
-
/* @__PURE__ */
|
|
196
|
-
/* @__PURE__ */
|
|
197
|
-
onClick:
|
|
200
|
+
/* @__PURE__ */ O(f, { status: Z.status.toLowerCase() }),
|
|
201
|
+
/* @__PURE__ */ k("button", {
|
|
202
|
+
onClick: Q,
|
|
198
203
|
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",
|
|
199
|
-
children: [/* @__PURE__ */
|
|
204
|
+
children: [/* @__PURE__ */ O(v, { className: "h-4 w-4" }), "Back"]
|
|
200
205
|
}),
|
|
201
|
-
/* @__PURE__ */
|
|
202
|
-
onClick:
|
|
206
|
+
/* @__PURE__ */ k("button", {
|
|
207
|
+
onClick: _e,
|
|
203
208
|
disabled: $,
|
|
204
209
|
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",
|
|
205
|
-
children: [/* @__PURE__ */
|
|
210
|
+
children: [/* @__PURE__ */ O(re, { className: "h-4 w-4" }), "Manage"]
|
|
206
211
|
}),
|
|
207
|
-
/* @__PURE__ */
|
|
208
|
-
onClick: () => void
|
|
212
|
+
/* @__PURE__ */ k("button", {
|
|
213
|
+
onClick: () => void ye(),
|
|
209
214
|
disabled: $,
|
|
210
215
|
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",
|
|
211
|
-
children: [/* @__PURE__ */
|
|
216
|
+
children: [/* @__PURE__ */ O(ce, { className: "h-4 w-4" }), "Delete"]
|
|
212
217
|
})
|
|
213
218
|
]
|
|
214
219
|
}),
|
|
215
220
|
children: [
|
|
216
|
-
/* @__PURE__ */
|
|
217
|
-
|
|
221
|
+
/* @__PURE__ */ O(j, { children: "Full detail view for this event — schedule, location, speakers and live registration status. Use Manage to edit details or move the event through its lifecycle (Draft → Published → Registration Open → In Progress → Completed)." }),
|
|
222
|
+
Y && /* @__PURE__ */ O("div", {
|
|
218
223
|
className: "rounded-lg border border-status-error-border/30 bg-status-error-bg/10 px-4 py-3 text-sm text-status-error-text",
|
|
219
|
-
children:
|
|
224
|
+
children: Y
|
|
220
225
|
}),
|
|
221
|
-
/* @__PURE__ */
|
|
226
|
+
/* @__PURE__ */ O(A, { children: /* @__PURE__ */ k("div", {
|
|
222
227
|
className: "grid grid-cols-2 gap-4 lg:grid-cols-4",
|
|
223
228
|
children: [
|
|
224
|
-
/* @__PURE__ */
|
|
229
|
+
/* @__PURE__ */ O(u, {
|
|
225
230
|
featured: !0,
|
|
226
231
|
title: "Registrations",
|
|
227
|
-
value: c(
|
|
228
|
-
icon: /* @__PURE__ */
|
|
232
|
+
value: c(Z.registrationCount),
|
|
233
|
+
icon: /* @__PURE__ */ O(se, { className: "h-5 w-5" })
|
|
229
234
|
}),
|
|
230
|
-
/* @__PURE__ */
|
|
235
|
+
/* @__PURE__ */ O(u, {
|
|
231
236
|
title: "Capacity",
|
|
232
|
-
value:
|
|
233
|
-
icon: /* @__PURE__ */
|
|
237
|
+
value: Z.maxAttendees ? c(Z.maxAttendees) : "—",
|
|
238
|
+
icon: /* @__PURE__ */ O(C, { className: "h-5 w-5" })
|
|
234
239
|
}),
|
|
235
|
-
/* @__PURE__ */
|
|
240
|
+
/* @__PURE__ */ O(u, {
|
|
236
241
|
title: "Fill Rate",
|
|
237
|
-
value:
|
|
238
|
-
icon: /* @__PURE__ */
|
|
242
|
+
value: Z.maxAttendees ? ee(Se, 0) : "N/A",
|
|
243
|
+
icon: /* @__PURE__ */ O(ie, { className: "h-5 w-5" })
|
|
239
244
|
}),
|
|
240
|
-
/* @__PURE__ */
|
|
245
|
+
/* @__PURE__ */ O(u, {
|
|
241
246
|
title: "Speakers",
|
|
242
|
-
value:
|
|
243
|
-
icon: /* @__PURE__ */
|
|
247
|
+
value: Z.speakers.length,
|
|
248
|
+
icon: /* @__PURE__ */ O(S, { className: "h-5 w-5" })
|
|
244
249
|
})
|
|
245
250
|
]
|
|
246
251
|
}) }),
|
|
247
|
-
|
|
252
|
+
Z.coverImageUrl && /* @__PURE__ */ O("div", {
|
|
248
253
|
className: "overflow-hidden rounded-xl border border-border-seam bg-bg-sunken",
|
|
249
|
-
children: /* @__PURE__ */
|
|
250
|
-
src:
|
|
254
|
+
children: /* @__PURE__ */ O("img", {
|
|
255
|
+
src: Z.coverImageUrl,
|
|
251
256
|
alt: "",
|
|
252
257
|
className: "h-56 w-full object-cover"
|
|
253
258
|
})
|
|
254
259
|
}),
|
|
255
|
-
/* @__PURE__ */
|
|
260
|
+
/* @__PURE__ */ k("div", {
|
|
256
261
|
className: "grid grid-cols-1 gap-6 lg:grid-cols-3",
|
|
257
|
-
children: [/* @__PURE__ */
|
|
262
|
+
children: [/* @__PURE__ */ k("div", {
|
|
258
263
|
className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop lg:col-span-2",
|
|
259
|
-
children: [/* @__PURE__ */
|
|
264
|
+
children: [/* @__PURE__ */ O("h4", {
|
|
260
265
|
className: "mb-4 text-sm font-semibold text-text-primary",
|
|
261
266
|
children: "Schedule & Location"
|
|
262
|
-
}), /* @__PURE__ */
|
|
267
|
+
}), /* @__PURE__ */ k("div", {
|
|
263
268
|
className: "space-y-3 text-sm",
|
|
264
269
|
children: [
|
|
265
|
-
/* @__PURE__ */
|
|
270
|
+
/* @__PURE__ */ k("div", {
|
|
266
271
|
className: "flex items-start gap-2 text-text-secondary",
|
|
267
|
-
children: [/* @__PURE__ */
|
|
272
|
+
children: [/* @__PURE__ */ O(ne, { className: "mt-0.5 h-4 w-4 shrink-0" }), /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("p", {
|
|
268
273
|
className: "text-text-primary",
|
|
269
|
-
children:
|
|
270
|
-
}), /* @__PURE__ */
|
|
274
|
+
children: z(Z.startDate, Z.timezone)
|
|
275
|
+
}), /* @__PURE__ */ k("p", {
|
|
271
276
|
className: "text-xs",
|
|
272
277
|
children: [
|
|
273
278
|
"to ",
|
|
274
|
-
|
|
275
|
-
|
|
279
|
+
z(Z.endDate, Z.timezone),
|
|
280
|
+
Z.timezone ? ` (${Z.timezone})` : ""
|
|
276
281
|
]
|
|
277
282
|
})] })]
|
|
278
283
|
}),
|
|
279
|
-
/* @__PURE__ */
|
|
284
|
+
/* @__PURE__ */ k("div", {
|
|
280
285
|
className: "flex items-center gap-2 text-text-secondary",
|
|
281
|
-
children: [
|
|
282
|
-
href:
|
|
286
|
+
children: [Z.virtualUrl ? /* @__PURE__ */ O(w, { className: "h-4 w-4 shrink-0" }) : /* @__PURE__ */ O(ae, { className: "h-4 w-4 shrink-0" }), Z.virtualUrl && L(Z.virtualUrl) ? /* @__PURE__ */ k("a", {
|
|
287
|
+
href: Z.virtualUrl,
|
|
283
288
|
target: "_blank",
|
|
284
289
|
rel: "noopener noreferrer",
|
|
285
290
|
className: "inline-flex items-center gap-1 text-action-primary-bg hover:underline",
|
|
286
|
-
children: [
|
|
287
|
-
}) :
|
|
291
|
+
children: [Z.virtualUrl, /* @__PURE__ */ O(y, { className: "h-3.5 w-3.5" })]
|
|
292
|
+
}) : Z.virtualUrl ? /* @__PURE__ */ O("span", { children: Z.virtualUrl }) : /* @__PURE__ */ O("span", { children: Z.location || "Location TBD" })]
|
|
288
293
|
}),
|
|
289
|
-
|
|
294
|
+
Z.tags && Z.tags.length > 0 && /* @__PURE__ */ k("div", {
|
|
290
295
|
className: "flex flex-wrap items-center gap-1.5 pt-2",
|
|
291
|
-
children: [/* @__PURE__ */
|
|
296
|
+
children: [/* @__PURE__ */ O(oe, { className: "h-3.5 w-3.5 text-text-secondary" }), Z.tags.map((e) => /* @__PURE__ */ O("span", {
|
|
292
297
|
className: "inline-flex items-center rounded-full bg-bg-sunken px-2.5 py-0.5 text-xs font-medium text-text-primary",
|
|
293
298
|
children: e
|
|
294
299
|
}, e))]
|
|
295
300
|
})
|
|
296
301
|
]
|
|
297
302
|
})]
|
|
298
|
-
}), /* @__PURE__ */
|
|
303
|
+
}), /* @__PURE__ */ k("div", {
|
|
299
304
|
className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
|
|
300
|
-
children: [/* @__PURE__ */
|
|
305
|
+
children: [/* @__PURE__ */ k("h4", {
|
|
301
306
|
className: "mb-4 flex items-center gap-2 text-sm font-semibold text-text-primary",
|
|
302
|
-
children: [/* @__PURE__ */
|
|
303
|
-
}), /* @__PURE__ */
|
|
307
|
+
children: [/* @__PURE__ */ O(b, { className: "h-4 w-4 text-text-secondary" }), "Type"]
|
|
308
|
+
}), /* @__PURE__ */ O("p", {
|
|
304
309
|
className: "text-sm text-text-primary",
|
|
305
|
-
children:
|
|
310
|
+
children: I.find((e) => e.value === Z.type)?.label ?? Z.type
|
|
306
311
|
})]
|
|
307
312
|
})]
|
|
308
313
|
}),
|
|
309
|
-
/* @__PURE__ */
|
|
314
|
+
/* @__PURE__ */ k("div", {
|
|
310
315
|
className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
|
|
311
|
-
children: [/* @__PURE__ */
|
|
316
|
+
children: [/* @__PURE__ */ O("h4", {
|
|
312
317
|
className: "mb-4 text-sm font-semibold text-text-primary",
|
|
313
318
|
children: "Speakers"
|
|
314
|
-
}),
|
|
319
|
+
}), Z.speakers.length === 0 ? /* @__PURE__ */ O("p", {
|
|
315
320
|
className: "py-4 text-center text-sm text-text-secondary",
|
|
316
321
|
children: "No speakers added yet."
|
|
317
|
-
}) : /* @__PURE__ */
|
|
322
|
+
}) : /* @__PURE__ */ O("div", {
|
|
318
323
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",
|
|
319
|
-
children:
|
|
324
|
+
children: Z.speakers.map((e) => /* @__PURE__ */ k("div", {
|
|
320
325
|
className: "flex items-start gap-3 rounded-lg border border-border-subtle p-4",
|
|
321
|
-
children: [/* @__PURE__ */
|
|
326
|
+
children: [/* @__PURE__ */ O("div", {
|
|
322
327
|
className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-action-primary-bg/10 text-sm font-semibold text-primary",
|
|
323
328
|
children: e.name.split(/\s+/).filter(Boolean).map((e) => e[0]).join("").slice(0, 2).toUpperCase()
|
|
324
|
-
}), /* @__PURE__ */
|
|
329
|
+
}), /* @__PURE__ */ k("div", {
|
|
325
330
|
className: "min-w-0",
|
|
326
331
|
children: [
|
|
327
|
-
/* @__PURE__ */
|
|
332
|
+
/* @__PURE__ */ O("p", {
|
|
328
333
|
className: "truncate text-sm font-semibold text-text-primary",
|
|
329
334
|
children: e.name
|
|
330
335
|
}),
|
|
331
|
-
(e.title || e.company) && /* @__PURE__ */
|
|
336
|
+
(e.title || e.company) && /* @__PURE__ */ O("p", {
|
|
332
337
|
className: "truncate text-xs text-text-secondary",
|
|
333
338
|
children: [e.title, e.company].filter(Boolean).join(" · ")
|
|
334
339
|
}),
|
|
335
|
-
e.topic && /* @__PURE__ */
|
|
340
|
+
e.topic && /* @__PURE__ */ k("p", {
|
|
336
341
|
className: "mt-1 text-xs text-text-secondary",
|
|
337
342
|
children: ["Topic: ", e.topic]
|
|
338
343
|
})
|
|
@@ -341,79 +346,79 @@ var L = () => {
|
|
|
341
346
|
}, e.id))
|
|
342
347
|
})]
|
|
343
348
|
}),
|
|
344
|
-
/* @__PURE__ */
|
|
349
|
+
/* @__PURE__ */ k("div", {
|
|
345
350
|
className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
|
|
346
|
-
children: [/* @__PURE__ */
|
|
351
|
+
children: [/* @__PURE__ */ k("h4", {
|
|
347
352
|
className: "mb-4 text-sm font-semibold text-text-primary",
|
|
348
353
|
children: [
|
|
349
354
|
"Registrations (",
|
|
350
|
-
|
|
355
|
+
Z.registrations.length,
|
|
351
356
|
")"
|
|
352
357
|
]
|
|
353
|
-
}),
|
|
358
|
+
}), Z.registrations.length === 0 ? /* @__PURE__ */ O("p", {
|
|
354
359
|
className: "py-4 text-center text-sm text-text-secondary",
|
|
355
360
|
children: "No registrations yet."
|
|
356
|
-
}) : /* @__PURE__ */
|
|
361
|
+
}) : /* @__PURE__ */ O("div", {
|
|
357
362
|
className: "overflow-x-auto",
|
|
358
|
-
children: /* @__PURE__ */
|
|
363
|
+
children: /* @__PURE__ */ k("table", {
|
|
359
364
|
className: "w-full text-sm",
|
|
360
|
-
children: [/* @__PURE__ */
|
|
361
|
-
className: "border-b border-border-subtle text-
|
|
365
|
+
children: [/* @__PURE__ */ O("thead", { children: /* @__PURE__ */ k("tr", {
|
|
366
|
+
className: "border-b border-border-subtle text-start text-xs text-text-secondary",
|
|
362
367
|
children: [
|
|
363
|
-
/* @__PURE__ */
|
|
364
|
-
className: "py-2
|
|
368
|
+
/* @__PURE__ */ O("th", {
|
|
369
|
+
className: "py-2 pe-4 font-medium",
|
|
365
370
|
children: "Attendee"
|
|
366
371
|
}),
|
|
367
|
-
/* @__PURE__ */
|
|
368
|
-
className: "py-2
|
|
372
|
+
/* @__PURE__ */ O("th", {
|
|
373
|
+
className: "py-2 pe-4 font-medium",
|
|
369
374
|
children: "Company"
|
|
370
375
|
}),
|
|
371
|
-
/* @__PURE__ */
|
|
372
|
-
className: "py-2
|
|
376
|
+
/* @__PURE__ */ O("th", {
|
|
377
|
+
className: "py-2 pe-4 font-medium",
|
|
373
378
|
children: "Status"
|
|
374
379
|
}),
|
|
375
|
-
/* @__PURE__ */
|
|
376
|
-
className: "py-2
|
|
380
|
+
/* @__PURE__ */ O("th", {
|
|
381
|
+
className: "py-2 pe-4 font-medium",
|
|
377
382
|
children: "Actions"
|
|
378
383
|
})
|
|
379
384
|
]
|
|
380
|
-
}) }), /* @__PURE__ */
|
|
385
|
+
}) }), /* @__PURE__ */ O("tbody", { children: Z.registrations.map((e) => {
|
|
381
386
|
let t = e.status.toLowerCase(), n = e.status === "REGISTERED" || e.status === "CONFIRMED" || e.status === "WAITLISTED", r = e.status !== "CANCELLED" && e.status !== "CHECKED_IN";
|
|
382
|
-
return /* @__PURE__ */
|
|
387
|
+
return /* @__PURE__ */ k("tr", {
|
|
383
388
|
className: "border-b border-border-subtle/60 last:border-0",
|
|
384
389
|
children: [
|
|
385
|
-
/* @__PURE__ */
|
|
386
|
-
className: "py-2
|
|
387
|
-
children: [/* @__PURE__ */
|
|
390
|
+
/* @__PURE__ */ k("td", {
|
|
391
|
+
className: "py-2 pe-4",
|
|
392
|
+
children: [/* @__PURE__ */ O("p", {
|
|
388
393
|
className: "font-medium text-text-primary",
|
|
389
394
|
children: e.attendeeName
|
|
390
|
-
}), /* @__PURE__ */
|
|
395
|
+
}), /* @__PURE__ */ O("p", {
|
|
391
396
|
className: "text-xs text-text-secondary",
|
|
392
397
|
children: e.attendeeEmail
|
|
393
398
|
})]
|
|
394
399
|
}),
|
|
395
|
-
/* @__PURE__ */
|
|
396
|
-
className: "py-2
|
|
400
|
+
/* @__PURE__ */ O("td", {
|
|
401
|
+
className: "py-2 pe-4 text-text-secondary",
|
|
397
402
|
children: e.attendeeCompany || "—"
|
|
398
403
|
}),
|
|
399
|
-
/* @__PURE__ */
|
|
400
|
-
className: "py-2
|
|
401
|
-
children: /* @__PURE__ */
|
|
404
|
+
/* @__PURE__ */ O("td", {
|
|
405
|
+
className: "py-2 pe-4",
|
|
406
|
+
children: /* @__PURE__ */ O(f, { status: t })
|
|
402
407
|
}),
|
|
403
|
-
/* @__PURE__ */
|
|
404
|
-
className: "py-2
|
|
405
|
-
children: /* @__PURE__ */
|
|
408
|
+
/* @__PURE__ */ O("td", {
|
|
409
|
+
className: "py-2 pe-4",
|
|
410
|
+
children: /* @__PURE__ */ k("div", {
|
|
406
411
|
className: "flex items-center gap-2",
|
|
407
|
-
children: [n && /* @__PURE__ */
|
|
408
|
-
onClick: () => void
|
|
412
|
+
children: [n && /* @__PURE__ */ k("button", {
|
|
413
|
+
onClick: () => void be(e.id),
|
|
409
414
|
disabled: $,
|
|
410
415
|
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",
|
|
411
|
-
children: [/* @__PURE__ */
|
|
412
|
-
}), r && /* @__PURE__ */
|
|
413
|
-
onClick: () => void
|
|
416
|
+
children: [/* @__PURE__ */ O(x, { className: "h-3 w-3" }), "Check in"]
|
|
417
|
+
}), r && /* @__PURE__ */ k("button", {
|
|
418
|
+
onClick: () => void xe(e.id),
|
|
414
419
|
disabled: $,
|
|
415
420
|
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",
|
|
416
|
-
children: [/* @__PURE__ */
|
|
421
|
+
children: [/* @__PURE__ */ O(T, { className: "h-3 w-3" }), "Cancel"]
|
|
417
422
|
})]
|
|
418
423
|
})
|
|
419
424
|
})
|
|
@@ -423,190 +428,190 @@ var L = () => {
|
|
|
423
428
|
})
|
|
424
429
|
})]
|
|
425
430
|
}),
|
|
426
|
-
|
|
427
|
-
open:
|
|
428
|
-
onClose: () =>
|
|
431
|
+
q && /* @__PURE__ */ O(p, {
|
|
432
|
+
open: ge,
|
|
433
|
+
onClose: () => K(!1),
|
|
429
434
|
title: "Manage Event",
|
|
430
435
|
description: "Update event details or move it through its lifecycle.",
|
|
431
436
|
size: "lg",
|
|
432
|
-
footer: /* @__PURE__ */
|
|
433
|
-
onClick: () =>
|
|
437
|
+
footer: /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O("button", {
|
|
438
|
+
onClick: () => K(!1),
|
|
434
439
|
className: "rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken",
|
|
435
440
|
children: "Cancel"
|
|
436
|
-
}), /* @__PURE__ */
|
|
437
|
-
onClick: () => void
|
|
438
|
-
disabled:
|
|
441
|
+
}), /* @__PURE__ */ O("button", {
|
|
442
|
+
onClick: () => void ve(),
|
|
443
|
+
disabled: G,
|
|
439
444
|
className: "rounded-md bg-foreground px-4 py-2 text-sm font-medium text-background hover:bg-foreground/90 disabled:opacity-60",
|
|
440
|
-
children:
|
|
445
|
+
children: G ? "Saving..." : "Save Changes"
|
|
441
446
|
})] }),
|
|
442
|
-
children: /* @__PURE__ */
|
|
447
|
+
children: /* @__PURE__ */ k("div", {
|
|
443
448
|
className: "space-y-4",
|
|
444
449
|
children: [
|
|
445
|
-
/* @__PURE__ */
|
|
450
|
+
/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
|
|
446
451
|
className: "mb-1.5 block text-sm font-medium text-text-primary",
|
|
447
452
|
children: "Title"
|
|
448
|
-
}), /* @__PURE__ */
|
|
453
|
+
}), /* @__PURE__ */ O("input", {
|
|
449
454
|
type: "text",
|
|
450
|
-
value:
|
|
451
|
-
onChange: (e) =>
|
|
452
|
-
...
|
|
455
|
+
value: q.title,
|
|
456
|
+
onChange: (e) => J({
|
|
457
|
+
...q,
|
|
453
458
|
title: e.target.value
|
|
454
459
|
}),
|
|
455
460
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
456
461
|
})] }),
|
|
457
|
-
/* @__PURE__ */
|
|
462
|
+
/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
|
|
458
463
|
className: "mb-1.5 block text-sm font-medium text-text-primary",
|
|
459
464
|
children: "Description"
|
|
460
|
-
}), /* @__PURE__ */
|
|
465
|
+
}), /* @__PURE__ */ O("textarea", {
|
|
461
466
|
rows: 3,
|
|
462
|
-
value:
|
|
463
|
-
onChange: (e) =>
|
|
464
|
-
...
|
|
467
|
+
value: q.description,
|
|
468
|
+
onChange: (e) => J({
|
|
469
|
+
...q,
|
|
465
470
|
description: e.target.value
|
|
466
471
|
}),
|
|
467
472
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
468
473
|
})] }),
|
|
469
|
-
/* @__PURE__ */
|
|
474
|
+
/* @__PURE__ */ k("div", {
|
|
470
475
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
471
|
-
children: [/* @__PURE__ */
|
|
476
|
+
children: [/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
|
|
472
477
|
className: "mb-1.5 block text-sm font-medium text-text-primary",
|
|
473
478
|
children: "Type"
|
|
474
|
-
}), /* @__PURE__ */
|
|
475
|
-
value:
|
|
476
|
-
onChange: (e) =>
|
|
477
|
-
...
|
|
479
|
+
}), /* @__PURE__ */ O(M, {
|
|
480
|
+
value: q.type,
|
|
481
|
+
onChange: (e) => J({
|
|
482
|
+
...q,
|
|
478
483
|
type: e.target.value
|
|
479
484
|
}),
|
|
480
485
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
481
|
-
children:
|
|
486
|
+
children: I.map((e) => /* @__PURE__ */ O("option", {
|
|
482
487
|
value: e.value,
|
|
483
488
|
children: e.label
|
|
484
489
|
}, e.value))
|
|
485
|
-
})] }), /* @__PURE__ */
|
|
490
|
+
})] }), /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
|
|
486
491
|
className: "mb-1.5 block text-sm font-medium text-text-primary",
|
|
487
492
|
children: "Status"
|
|
488
|
-
}), /* @__PURE__ */
|
|
489
|
-
value:
|
|
490
|
-
onChange: (e) =>
|
|
491
|
-
...
|
|
493
|
+
}), /* @__PURE__ */ O(M, {
|
|
494
|
+
value: q.status,
|
|
495
|
+
onChange: (e) => J({
|
|
496
|
+
...q,
|
|
492
497
|
status: e.target.value
|
|
493
498
|
}),
|
|
494
499
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
495
|
-
children:
|
|
500
|
+
children: F.map((e) => /* @__PURE__ */ O("option", {
|
|
496
501
|
value: e.value,
|
|
497
502
|
children: e.label
|
|
498
503
|
}, e.value))
|
|
499
504
|
})] })]
|
|
500
505
|
}),
|
|
501
|
-
/* @__PURE__ */
|
|
506
|
+
/* @__PURE__ */ k("div", {
|
|
502
507
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
503
|
-
children: [/* @__PURE__ */
|
|
508
|
+
children: [/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
|
|
504
509
|
className: "mb-1.5 block text-sm font-medium text-text-primary",
|
|
505
510
|
children: "Start"
|
|
506
|
-
}), /* @__PURE__ */
|
|
511
|
+
}), /* @__PURE__ */ O("input", {
|
|
507
512
|
type: "datetime-local",
|
|
508
|
-
value:
|
|
509
|
-
onChange: (e) =>
|
|
510
|
-
...
|
|
513
|
+
value: q.startDate,
|
|
514
|
+
onChange: (e) => J({
|
|
515
|
+
...q,
|
|
511
516
|
startDate: e.target.value
|
|
512
517
|
}),
|
|
513
518
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
514
|
-
})] }), /* @__PURE__ */
|
|
519
|
+
})] }), /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
|
|
515
520
|
className: "mb-1.5 block text-sm font-medium text-text-primary",
|
|
516
521
|
children: "End"
|
|
517
|
-
}), /* @__PURE__ */
|
|
522
|
+
}), /* @__PURE__ */ O("input", {
|
|
518
523
|
type: "datetime-local",
|
|
519
|
-
value:
|
|
520
|
-
onChange: (e) =>
|
|
521
|
-
...
|
|
524
|
+
value: q.endDate,
|
|
525
|
+
onChange: (e) => J({
|
|
526
|
+
...q,
|
|
522
527
|
endDate: e.target.value
|
|
523
528
|
}),
|
|
524
529
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
525
530
|
})] })]
|
|
526
531
|
}),
|
|
527
|
-
/* @__PURE__ */
|
|
532
|
+
/* @__PURE__ */ k("div", {
|
|
528
533
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
529
|
-
children: [/* @__PURE__ */
|
|
534
|
+
children: [/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
|
|
530
535
|
className: "mb-1.5 block text-sm font-medium text-text-primary",
|
|
531
536
|
children: "Location"
|
|
532
|
-
}), /* @__PURE__ */
|
|
537
|
+
}), /* @__PURE__ */ O("input", {
|
|
533
538
|
type: "text",
|
|
534
|
-
value:
|
|
535
|
-
onChange: (e) =>
|
|
536
|
-
...
|
|
539
|
+
value: q.location,
|
|
540
|
+
onChange: (e) => J({
|
|
541
|
+
...q,
|
|
537
542
|
location: e.target.value
|
|
538
543
|
}),
|
|
539
544
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
540
|
-
})] }), /* @__PURE__ */
|
|
545
|
+
})] }), /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
|
|
541
546
|
className: "mb-1.5 block text-sm font-medium text-text-primary",
|
|
542
547
|
children: "Virtual URL"
|
|
543
|
-
}), /* @__PURE__ */
|
|
548
|
+
}), /* @__PURE__ */ O("input", {
|
|
544
549
|
type: "url",
|
|
545
|
-
value:
|
|
546
|
-
onChange: (e) =>
|
|
547
|
-
...
|
|
550
|
+
value: q.virtualUrl,
|
|
551
|
+
onChange: (e) => J({
|
|
552
|
+
...q,
|
|
548
553
|
virtualUrl: e.target.value
|
|
549
554
|
}),
|
|
550
555
|
placeholder: "https://",
|
|
551
556
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
552
557
|
})] })]
|
|
553
558
|
}),
|
|
554
|
-
/* @__PURE__ */
|
|
559
|
+
/* @__PURE__ */ k("div", {
|
|
555
560
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
556
|
-
children: [/* @__PURE__ */
|
|
561
|
+
children: [/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
|
|
557
562
|
className: "mb-1.5 block text-sm font-medium text-text-primary",
|
|
558
563
|
children: "Timezone (IANA)"
|
|
559
|
-
}), /* @__PURE__ */
|
|
564
|
+
}), /* @__PURE__ */ O("input", {
|
|
560
565
|
type: "text",
|
|
561
|
-
value:
|
|
562
|
-
onChange: (e) =>
|
|
563
|
-
...
|
|
566
|
+
value: q.timezone,
|
|
567
|
+
onChange: (e) => J({
|
|
568
|
+
...q,
|
|
564
569
|
timezone: e.target.value
|
|
565
570
|
}),
|
|
566
571
|
placeholder: "America/New_York",
|
|
567
572
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
568
|
-
})] }), /* @__PURE__ */
|
|
573
|
+
})] }), /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
|
|
569
574
|
className: "mb-1.5 block text-sm font-medium text-text-primary",
|
|
570
575
|
children: "Max Attendees"
|
|
571
|
-
}), /* @__PURE__ */
|
|
576
|
+
}), /* @__PURE__ */ O("input", {
|
|
572
577
|
type: "number",
|
|
573
578
|
min: 0,
|
|
574
|
-
value:
|
|
575
|
-
onChange: (e) =>
|
|
576
|
-
...
|
|
579
|
+
value: q.maxAttendees,
|
|
580
|
+
onChange: (e) => J({
|
|
581
|
+
...q,
|
|
577
582
|
maxAttendees: e.target.value
|
|
578
583
|
}),
|
|
579
584
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
580
585
|
})] })]
|
|
581
586
|
}),
|
|
582
|
-
|
|
587
|
+
Y && /* @__PURE__ */ O("p", {
|
|
583
588
|
className: "text-sm text-status-error-text",
|
|
584
|
-
children:
|
|
589
|
+
children: Y
|
|
585
590
|
})
|
|
586
591
|
]
|
|
587
592
|
})
|
|
588
593
|
})
|
|
589
594
|
]
|
|
590
|
-
}) : /* @__PURE__ */
|
|
595
|
+
}) : /* @__PURE__ */ O(l, {
|
|
591
596
|
title: "Event Details",
|
|
592
|
-
children: /* @__PURE__ */
|
|
593
|
-
loading:
|
|
594
|
-
error:
|
|
595
|
-
onRetry: () => void
|
|
597
|
+
children: /* @__PURE__ */ O(m, {
|
|
598
|
+
loading: le,
|
|
599
|
+
error: H,
|
|
600
|
+
onRetry: () => void U(),
|
|
596
601
|
hasData: !1,
|
|
597
|
-
children: /* @__PURE__ */
|
|
602
|
+
children: /* @__PURE__ */ O(d, {
|
|
598
603
|
illustration: "empty-generic",
|
|
599
604
|
title: "Event not found",
|
|
600
605
|
description: "The event you're looking for doesn't exist or has been removed.",
|
|
601
|
-
action: /* @__PURE__ */
|
|
602
|
-
onClick:
|
|
606
|
+
action: /* @__PURE__ */ k("button", {
|
|
607
|
+
onClick: Q,
|
|
603
608
|
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",
|
|
604
|
-
children: [/* @__PURE__ */
|
|
609
|
+
children: [/* @__PURE__ */ O(v, { className: "h-4 w-4" }), "Back to Events"]
|
|
605
610
|
})
|
|
606
611
|
})
|
|
607
612
|
})
|
|
608
613
|
});
|
|
609
614
|
};
|
|
610
|
-
export {
|
|
615
|
+
export { B as EventDetailsPage };
|
|
611
616
|
|
|
612
617
|
//# sourceMappingURL=EventDetailsPage.js.map
|