@burdenoff/microfe-headshotmarketing 2026.704.3 → 2026.704.5
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/wspace-operations.js +118 -111
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.js +27 -19
- package/dist/generated/wspace-types.js.map +1 -1
- package/dist/headshotmarketing/components/Toast.js +56 -2
- package/dist/headshotmarketing/components/Toast.js.map +1 -0
- package/dist/headshotmarketing/context/HeadshotmarketingBootstrapContext.js +1 -1
- package/dist/headshotmarketing/context/HeadshotmarketingBootstrapContext.js.map +1 -1
- package/dist/headshotmarketing/pages/HomeFunnel.js +54 -0
- package/dist/headshotmarketing/pages/HomeFunnel.js.map +1 -0
- package/dist/headshotmarketing/pages/HomePage.js +423 -259
- package/dist/headshotmarketing/pages/HomePage.js.map +1 -1
- package/dist/headshotmarketing/pages/HomeStatCard.js +79 -0
- package/dist/headshotmarketing/pages/HomeStatCard.js.map +1 -0
- package/dist/headshotmarketing/pages/ads/AdPlatformChips.js +93 -0
- package/dist/headshotmarketing/pages/ads/AdPlatformChips.js.map +1 -0
- package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js +452 -390
- package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/ReportsPage.js +405 -115
- package/dist/headshotmarketing/pages/analytics/ReportsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js +566 -346
- package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowCanvasNode.js +107 -0
- package/dist/headshotmarketing/pages/automation/WorkflowCanvasNode.js.map +1 -0
- package/dist/headshotmarketing/pages/automation/WorkflowNodeConfigPanel.js +213 -0
- package/dist/headshotmarketing/pages/automation/WorkflowNodeConfigPanel.js.map +1 -0
- package/dist/headshotmarketing/pages/automation/workflowBuilderModel.js +150 -0
- package/dist/headshotmarketing/pages/automation/workflowBuilderModel.js.map +1 -0
- package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js +380 -371
- package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js.map +1 -1
- package/dist/headshotmarketing/pages/builder/SectionCanvasBlock.js +92 -0
- package/dist/headshotmarketing/pages/builder/SectionCanvasBlock.js.map +1 -0
- package/dist/headshotmarketing/pages/builder/SectionContent.js +346 -0
- package/dist/headshotmarketing/pages/builder/SectionContent.js.map +1 -0
- package/dist/headshotmarketing/pages/builder/SectionInspector.js +358 -0
- package/dist/headshotmarketing/pages/builder/SectionInspector.js.map +1 -0
- package/dist/headshotmarketing/pages/builder/builderCatalog.js +274 -0
- package/dist/headshotmarketing/pages/builder/builderCatalog.js.map +1 -0
- package/dist/headshotmarketing/pages/content/AIToolsPage.js +479 -193
- package/dist/headshotmarketing/pages/content/AIToolsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/AssetLibraryPage.js +492 -197
- package/dist/headshotmarketing/pages/content/AssetLibraryPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/AssetThumbnail.js +37 -0
- package/dist/headshotmarketing/pages/content/AssetThumbnail.js.map +1 -0
- package/dist/headshotmarketing/pages/content/ContentCreationPage.js +672 -219
- package/dist/headshotmarketing/pages/content/ContentCreationPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentLibraryCard.js +200 -0
- package/dist/headshotmarketing/pages/content/ContentLibraryCard.js.map +1 -0
- package/dist/headshotmarketing/pages/content/ContentPage.js +224 -204
- package/dist/headshotmarketing/pages/content/ContentPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentSubNav.js +51 -0
- package/dist/headshotmarketing/pages/content/ContentSubNav.js.map +1 -0
- package/dist/headshotmarketing/pages/crm/LeadsPage.js +250 -131
- package/dist/headshotmarketing/pages/crm/LeadsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/LeadsWidgets.js +179 -0
- package/dist/headshotmarketing/pages/crm/LeadsWidgets.js.map +1 -0
- package/dist/headshotmarketing/pages/events/CreateEventPage.js +631 -379
- package/dist/headshotmarketing/pages/events/CreateEventPage.js.map +1 -1
- package/dist/headshotmarketing/pages/events/EventImageUpload.js +123 -0
- package/dist/headshotmarketing/pages/events/EventImageUpload.js.map +1 -0
- package/dist/headshotmarketing/pages/events/EventPagePreview.js +99 -0
- package/dist/headshotmarketing/pages/events/EventPagePreview.js.map +1 -0
- package/dist/headshotmarketing/pages/events/EventsPage.js +267 -228
- package/dist/headshotmarketing/pages/events/EventsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/seo/SeoScoreGauge.js +50 -0
- package/dist/headshotmarketing/pages/seo/SeoScoreGauge.js.map +1 -0
- package/dist/headshotmarketing/pages/seo/SeoScorePanel.js +147 -0
- package/dist/headshotmarketing/pages/seo/SeoScorePanel.js.map +1 -0
- package/dist/headshotmarketing/pages/seo/SeoToolsPage.js +562 -419
- package/dist/headshotmarketing/pages/seo/SeoToolsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/MediaDropZone.js +108 -0
- package/dist/headshotmarketing/pages/social-media/MediaDropZone.js.map +1 -0
- package/dist/headshotmarketing/pages/social-media/SocialComposerPreview.js +100 -0
- package/dist/headshotmarketing/pages/social-media/SocialComposerPreview.js.map +1 -0
- package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js +315 -250
- package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/socialComposerMeta.js +60 -0
- package/dist/headshotmarketing/pages/social-media/socialComposerMeta.js.map +1 -0
- package/dist/headshotmarketing/utils/automationMapper.js +1 -1
- package/dist/headshotmarketing/utils/automationMapper.js.map +1 -1
- package/dist/headshotmarketing/utils/contentMapper.js +4 -24
- package/dist/headshotmarketing/utils/contentMapper.js.map +1 -1
- package/dist/headshotmarketing/utils/eventsMapper.js +9 -9
- package/dist/headshotmarketing/utils/eventsMapper.js.map +1 -1
- package/dist/headshotmarketing/utils/helpers.js +7 -4
- package/dist/headshotmarketing/utils/helpers.js.map +1 -1
- package/dist/headshotmarketing/utils/influencerMapper.js +1 -1
- package/dist/headshotmarketing/utils/influencerMapper.js.map +1 -1
- package/dist/node_modules/lodash/_arrayEach.js +14 -0
- package/dist/node_modules/lodash/_arrayEach.js.map +1 -0
- package/dist/node_modules/lodash/_assignValue.js +17 -0
- package/dist/node_modules/lodash/_assignValue.js.map +1 -0
- package/dist/node_modules/lodash/_baseAssign.js +16 -0
- package/dist/node_modules/lodash/_baseAssign.js.map +1 -0
- package/dist/node_modules/lodash/_baseAssignIn.js +16 -0
- package/dist/node_modules/lodash/_baseAssignIn.js.map +1 -0
- package/dist/node_modules/lodash/_baseClone.js +64 -0
- package/dist/node_modules/lodash/_baseClone.js.map +1 -0
- package/dist/node_modules/lodash/_baseCreate.js +21 -0
- package/dist/node_modules/lodash/_baseCreate.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsMap.js +16 -0
- package/dist/node_modules/lodash/_baseIsMap.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsSet.js +16 -0
- package/dist/node_modules/lodash/_baseIsSet.js.map +1 -0
- package/dist/node_modules/lodash/_baseKeysIn.js +20 -0
- package/dist/node_modules/lodash/_baseKeysIn.js.map +1 -0
- package/dist/node_modules/lodash/_baseUnset.js +26 -0
- package/dist/node_modules/lodash/_baseUnset.js.map +1 -0
- package/dist/node_modules/lodash/_cloneArrayBuffer.js +16 -0
- package/dist/node_modules/lodash/_cloneArrayBuffer.js.map +1 -0
- package/dist/node_modules/lodash/_cloneBuffer.js +17 -0
- package/dist/node_modules/lodash/_cloneBuffer.js.map +1 -0
- package/dist/node_modules/lodash/_cloneDataView.js +16 -0
- package/dist/node_modules/lodash/_cloneDataView.js.map +1 -0
- package/dist/node_modules/lodash/_cloneRegExp.js +15 -0
- package/dist/node_modules/lodash/_cloneRegExp.js.map +1 -0
- package/dist/node_modules/lodash/_cloneSymbol.js +15 -0
- package/dist/node_modules/lodash/_cloneSymbol.js.map +1 -0
- package/dist/node_modules/lodash/_cloneTypedArray.js +16 -0
- package/dist/node_modules/lodash/_cloneTypedArray.js.map +1 -0
- package/dist/node_modules/lodash/_copyArray.js +15 -0
- package/dist/node_modules/lodash/_copyArray.js.map +1 -0
- package/dist/node_modules/lodash/_copyObject.js +22 -0
- package/dist/node_modules/lodash/_copyObject.js.map +1 -0
- package/dist/node_modules/lodash/_copySymbols.js +16 -0
- package/dist/node_modules/lodash/_copySymbols.js.map +1 -0
- package/dist/node_modules/lodash/_copySymbolsIn.js +16 -0
- package/dist/node_modules/lodash/_copySymbolsIn.js.map +1 -0
- package/dist/node_modules/lodash/_customOmitClone.js +15 -0
- package/dist/node_modules/lodash/_customOmitClone.js.map +1 -0
- package/dist/node_modules/lodash/_flatRest.js +17 -0
- package/dist/node_modules/lodash/_flatRest.js.map +1 -0
- package/dist/node_modules/lodash/_getAllKeysIn.js +17 -0
- package/dist/node_modules/lodash/_getAllKeysIn.js.map +1 -0
- package/dist/node_modules/lodash/_getSymbolsIn.js +18 -0
- package/dist/node_modules/lodash/_getSymbolsIn.js.map +1 -0
- package/dist/node_modules/lodash/_initCloneArray.js +15 -0
- package/dist/node_modules/lodash/_initCloneArray.js.map +1 -0
- package/dist/node_modules/lodash/_initCloneByTag.js +40 -0
- package/dist/node_modules/lodash/_initCloneByTag.js.map +1 -0
- package/dist/node_modules/lodash/_initCloneObject.js +17 -0
- package/dist/node_modules/lodash/_initCloneObject.js.map +1 -0
- package/dist/node_modules/lodash/_nativeKeysIn.js +15 -0
- package/dist/node_modules/lodash/_nativeKeysIn.js.map +1 -0
- package/dist/node_modules/lodash/_parent.js +16 -0
- package/dist/node_modules/lodash/_parent.js.map +1 -0
- package/dist/node_modules/lodash/flatten.js +15 -0
- package/dist/node_modules/lodash/flatten.js.map +1 -0
- package/dist/node_modules/lodash/isMap.js +14 -0
- package/dist/node_modules/lodash/isMap.js.map +1 -0
- package/dist/node_modules/lodash/isSet.js +14 -0
- package/dist/node_modules/lodash/isSet.js.map +1 -0
- package/dist/node_modules/lodash/keysIn.js +17 -0
- package/dist/node_modules/lodash/keysIn.js.map +1 -0
- package/dist/node_modules/lodash/omit.js +28 -0
- package/dist/node_modules/lodash/omit.js.map +1 -0
- package/dist/node_modules/recharts/es6/chart/FunnelChart.js +15 -0
- package/dist/node_modules/recharts/es6/chart/FunnelChart.js.map +1 -0
- package/dist/node_modules/recharts/es6/numberAxis/Funnel.js +370 -0
- package/dist/node_modules/recharts/es6/numberAxis/Funnel.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/ActiveShapeUtils.js +1 -1
- package/dist/node_modules/recharts/es6/util/FunnelUtils.js +81 -0
- package/dist/node_modules/recharts/es6/util/FunnelUtils.js.map +1 -0
- package/package.json +1 -1
|
@@ -1,278 +1,317 @@
|
|
|
1
1
|
import { useHeadshotMarketing as e } from "../../context/HeadshotMarketingContext.js";
|
|
2
|
-
import { cn as t,
|
|
3
|
-
import { PageLayout as
|
|
4
|
-
import { StatCard as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { Pagination as p } from "../../components/Pagination.js";
|
|
2
|
+
import { cn as t, formatNumber as n, formatPercentage as r, joinPath as i } from "../../utils/helpers.js";
|
|
3
|
+
import { PageLayout as a } from "../../components/PageLayout.js";
|
|
4
|
+
import { StatCard as o } from "../../components/StatCard.js";
|
|
5
|
+
import { EmptyState as s } from "../../components/EmptyState.js";
|
|
6
|
+
import { FilterBar as c } from "../../components/FilterBar.js";
|
|
7
|
+
import { QueryStateBoundary as l } from "../../components/QueryStateBoundary.js";
|
|
8
|
+
import { Pagination as u } from "../../components/Pagination.js";
|
|
10
9
|
import "../../components/index.js";
|
|
11
|
-
import { useHeadshotmarketingBootstrap as
|
|
12
|
-
import { usePagination as
|
|
13
|
-
import { toMarketingEventModel as
|
|
14
|
-
import { useEffect as
|
|
15
|
-
import { CalendarDays as
|
|
16
|
-
import {
|
|
17
|
-
import { EmphasisPanel as
|
|
10
|
+
import { useHeadshotmarketingBootstrap as d } from "../../hooks/useHeadshotmarketingBootstrap.js";
|
|
11
|
+
import { usePagination as f } from "../../hooks/usePagination.js";
|
|
12
|
+
import { toMarketingEventModel as ee } from "../../utils/eventsMapper.js";
|
|
13
|
+
import { useEffect as p, useMemo as m, useState as h } from "react";
|
|
14
|
+
import { ArrowUpRight as g, CalendarClock as _, CalendarDays as v, CalendarRange as te, Clock as ne, Gauge as y, MapPin as b, Plus as x, Ticket as S, Users as C, Video as w } from "lucide-react";
|
|
15
|
+
import { jsx as T, jsxs as E } from "react/jsx-runtime";
|
|
16
|
+
import { EmphasisPanel as D, PagePurpose as O } from "@burdenoff/fe-libs/ui";
|
|
18
17
|
//#region src/headshotmarketing/pages/events/EventsPage.tsx
|
|
19
|
-
var
|
|
20
|
-
conference: "
|
|
21
|
-
webinar: "
|
|
22
|
-
workshop: "
|
|
23
|
-
meetup: "
|
|
24
|
-
},
|
|
25
|
-
|
|
26
|
-
|
|
18
|
+
var k = {
|
|
19
|
+
conference: "Conference",
|
|
20
|
+
webinar: "Webinar",
|
|
21
|
+
workshop: "Workshop",
|
|
22
|
+
meetup: "Meetup"
|
|
23
|
+
}, A = {
|
|
24
|
+
upcoming: {
|
|
25
|
+
label: "Upcoming",
|
|
26
|
+
dot: "bg-[var(--color-status-warning-bg)]",
|
|
27
|
+
text: "text-status-warning-text"
|
|
28
|
+
},
|
|
29
|
+
live: {
|
|
30
|
+
label: "Live",
|
|
31
|
+
dot: "bg-[var(--color-status-success-bg)]",
|
|
32
|
+
text: "text-status-success-text"
|
|
33
|
+
},
|
|
34
|
+
completed: {
|
|
35
|
+
label: "Completed",
|
|
36
|
+
dot: "bg-[var(--color-status-info-bg)]",
|
|
37
|
+
text: "text-status-info-text"
|
|
38
|
+
},
|
|
39
|
+
cancelled: {
|
|
40
|
+
label: "Cancelled",
|
|
41
|
+
dot: "bg-[var(--color-status-error-bg)]",
|
|
42
|
+
text: "text-status-error-text"
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
function j(e, t) {
|
|
46
|
+
let n = new Date(e);
|
|
47
|
+
if (Number.isNaN(n.getTime())) return "Date to be announced";
|
|
48
|
+
let r = {
|
|
49
|
+
month: "short",
|
|
50
|
+
day: "numeric",
|
|
51
|
+
year: "numeric",
|
|
52
|
+
hour: "2-digit",
|
|
53
|
+
minute: "2-digit"
|
|
54
|
+
};
|
|
55
|
+
if (t) try {
|
|
56
|
+
return new Intl.DateTimeFormat("en-US", {
|
|
57
|
+
...r,
|
|
58
|
+
timeZone: t
|
|
59
|
+
}).format(n);
|
|
60
|
+
} catch {}
|
|
61
|
+
return new Intl.DateTimeFormat("en-US", r).format(n);
|
|
62
|
+
}
|
|
63
|
+
var M = () => {
|
|
64
|
+
let { navigate: M, basePath: N } = e(), { data: P, loading: F, error: I, refetch: L } = d(), [R, z] = h(""), [B, V] = h("all"), [H, U] = h("all"), { page: W, pageSize: G, offset: K, total: q, setPage: J, setPageSize: Y, setTotal: X } = f({ initialPageSize: 9 }), Z = () => M(i(N, "events/new")), Q = m(() => (P?.headshotmarketingEvents.items ?? []).map((e) => ee(e)), [P?.headshotmarketingEvents.items]), re = m(() => {
|
|
65
|
+
let e = /* @__PURE__ */ new Map();
|
|
66
|
+
for (let t of P?.headshotmarketingEvents.items ?? []) e.set(t.id, {
|
|
67
|
+
coverImageUrl: t.coverImageUrl ?? null,
|
|
68
|
+
virtualUrl: t.virtualUrl ?? null,
|
|
69
|
+
timezone: t.timezone ?? null
|
|
70
|
+
});
|
|
71
|
+
return e;
|
|
72
|
+
}, [P?.headshotmarketingEvents.items]), ie = m(() => Q.filter((e) => e.status === "upcoming").length, [Q]), ae = m(() => Q.reduce((e, t) => e + t.metrics.registrations, 0), [Q]), oe = m(() => {
|
|
73
|
+
let e = Q.filter((e) => e.maxCapacity > 0).map((e) => Math.min(e.metrics.registrations / e.maxCapacity * 100, 100));
|
|
74
|
+
return e.length > 0 ? e.reduce((e, t) => e + t, 0) / e.length : 0;
|
|
75
|
+
}, [Q]), se = m(() => {
|
|
76
|
+
let e = /* @__PURE__ */ new Date(), t = new Date(e.getFullYear(), Math.floor(e.getMonth() / 3) * 3, 1), n = new Date(t.getFullYear(), t.getMonth() + 3, 1);
|
|
77
|
+
return Q.filter((e) => {
|
|
78
|
+
let r = new Date(e.startDate);
|
|
79
|
+
return !Number.isNaN(r.getTime()) && r >= t && r < n;
|
|
80
|
+
}).length;
|
|
81
|
+
}, [Q]), $ = m(() => Q.filter((e) => {
|
|
82
|
+
let t = !R || e.name.toLowerCase().includes(R.toLowerCase()) || e.description.toLowerCase().includes(R.toLowerCase()), n = B === "all" || e.status === B, r = H === "all" || e.type === H;
|
|
27
83
|
return t && n && r;
|
|
28
84
|
}), [
|
|
29
85
|
Q,
|
|
30
|
-
|
|
86
|
+
R,
|
|
31
87
|
B,
|
|
32
88
|
H
|
|
33
89
|
]);
|
|
34
|
-
|
|
90
|
+
p(() => {
|
|
35
91
|
X($.length);
|
|
36
|
-
}, [$.length, X])
|
|
37
|
-
|
|
38
|
-
|
|
92
|
+
}, [$.length, X]), p(() => {
|
|
93
|
+
J(1);
|
|
94
|
+
}, [
|
|
95
|
+
R,
|
|
96
|
+
B,
|
|
97
|
+
H,
|
|
98
|
+
J
|
|
99
|
+
]);
|
|
100
|
+
let ce = $.slice(K, K + G);
|
|
101
|
+
return /* @__PURE__ */ E(a, {
|
|
39
102
|
title: "Events",
|
|
40
103
|
description: "Manage marketing events, webinars, and conferences",
|
|
41
|
-
actions: /* @__PURE__ */
|
|
104
|
+
actions: /* @__PURE__ */ E("button", {
|
|
42
105
|
onClick: Z,
|
|
43
|
-
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",
|
|
44
|
-
children: [/* @__PURE__ */
|
|
106
|
+
className: "inline-flex min-h-[44px] items-center gap-2 rounded-md bg-action-primary-bg px-3 py-2 text-sm font-medium text-action-primary-text shadow-pop transition-colors hover:bg-action-primary-bg/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]",
|
|
107
|
+
children: [/* @__PURE__ */ T(x, { className: "h-4 w-4" }), "Create Event"]
|
|
45
108
|
}),
|
|
46
|
-
children: [/* @__PURE__ */ O
|
|
47
|
-
loading:
|
|
48
|
-
error:
|
|
49
|
-
onRetry:
|
|
50
|
-
hasData: !!
|
|
109
|
+
children: [/* @__PURE__ */ T(O, { children: "Run webinars, conferences, workshops and meetups as part of your marketing. Create an event, track registrations against capacity, and see which formats fill up — so you know which ones are worth repeating." }), /* @__PURE__ */ E(l, {
|
|
110
|
+
loading: F,
|
|
111
|
+
error: I,
|
|
112
|
+
onRetry: L,
|
|
113
|
+
hasData: !!P,
|
|
51
114
|
children: [
|
|
52
|
-
/* @__PURE__ */
|
|
53
|
-
className: "grid grid-cols-2
|
|
115
|
+
/* @__PURE__ */ T(D, { children: /* @__PURE__ */ E("div", {
|
|
116
|
+
className: "grid grid-cols-2 gap-4 lg:grid-cols-4",
|
|
54
117
|
children: [
|
|
55
|
-
/* @__PURE__ */
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
118
|
+
/* @__PURE__ */ T(o, {
|
|
119
|
+
featured: !0,
|
|
120
|
+
title: "Upcoming Events",
|
|
121
|
+
value: ie,
|
|
122
|
+
icon: /* @__PURE__ */ T(_, { className: "h-5 w-5" })
|
|
59
123
|
}),
|
|
60
|
-
/* @__PURE__ */
|
|
61
|
-
title: "Registrations",
|
|
62
|
-
value:
|
|
63
|
-
icon: /* @__PURE__ */
|
|
124
|
+
/* @__PURE__ */ T(o, {
|
|
125
|
+
title: "Total Registrations",
|
|
126
|
+
value: n(ae),
|
|
127
|
+
icon: /* @__PURE__ */ T(S, { className: "h-5 w-5" })
|
|
64
128
|
}),
|
|
65
|
-
/* @__PURE__ */
|
|
66
|
-
title: "
|
|
67
|
-
value:
|
|
68
|
-
icon: /* @__PURE__ */
|
|
129
|
+
/* @__PURE__ */ T(o, {
|
|
130
|
+
title: "Avg Fill Rate",
|
|
131
|
+
value: r(oe, 0),
|
|
132
|
+
icon: /* @__PURE__ */ T(y, { className: "h-5 w-5" })
|
|
69
133
|
}),
|
|
70
|
-
/* @__PURE__ */
|
|
71
|
-
title: "
|
|
72
|
-
value:
|
|
73
|
-
icon: /* @__PURE__ */
|
|
134
|
+
/* @__PURE__ */ T(o, {
|
|
135
|
+
title: "Events This Quarter",
|
|
136
|
+
value: se,
|
|
137
|
+
icon: /* @__PURE__ */ T(te, { className: "h-5 w-5" })
|
|
74
138
|
})
|
|
75
139
|
]
|
|
76
140
|
}) }),
|
|
77
|
-
/* @__PURE__ */
|
|
78
|
-
searchValue:
|
|
79
|
-
onSearchChange:
|
|
141
|
+
/* @__PURE__ */ T(c, {
|
|
142
|
+
searchValue: R,
|
|
143
|
+
onSearchChange: z,
|
|
80
144
|
searchPlaceholder: "Search events...",
|
|
81
|
-
filters: /* @__PURE__ */
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
145
|
+
filters: /* @__PURE__ */ E("div", {
|
|
146
|
+
className: "flex flex-nowrap items-center gap-2 overflow-x-auto",
|
|
147
|
+
children: [/* @__PURE__ */ E("select", {
|
|
148
|
+
value: B,
|
|
149
|
+
onChange: (e) => V(e.target.value),
|
|
150
|
+
className: "rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
151
|
+
children: [
|
|
152
|
+
/* @__PURE__ */ T("option", {
|
|
153
|
+
value: "all",
|
|
154
|
+
children: "All Statuses"
|
|
155
|
+
}),
|
|
156
|
+
/* @__PURE__ */ T("option", {
|
|
157
|
+
value: "upcoming",
|
|
158
|
+
children: "Upcoming"
|
|
159
|
+
}),
|
|
160
|
+
/* @__PURE__ */ T("option", {
|
|
161
|
+
value: "live",
|
|
162
|
+
children: "Live"
|
|
163
|
+
}),
|
|
164
|
+
/* @__PURE__ */ T("option", {
|
|
165
|
+
value: "completed",
|
|
166
|
+
children: "Completed"
|
|
167
|
+
}),
|
|
168
|
+
/* @__PURE__ */ T("option", {
|
|
169
|
+
value: "cancelled",
|
|
170
|
+
children: "Cancelled"
|
|
171
|
+
})
|
|
172
|
+
]
|
|
173
|
+
}), /* @__PURE__ */ E("select", {
|
|
174
|
+
value: H,
|
|
175
|
+
onChange: (e) => U(e.target.value),
|
|
176
|
+
className: "rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
177
|
+
children: [
|
|
178
|
+
/* @__PURE__ */ T("option", {
|
|
179
|
+
value: "all",
|
|
180
|
+
children: "All Types"
|
|
181
|
+
}),
|
|
182
|
+
/* @__PURE__ */ T("option", {
|
|
183
|
+
value: "conference",
|
|
184
|
+
children: "Conference"
|
|
185
|
+
}),
|
|
186
|
+
/* @__PURE__ */ T("option", {
|
|
187
|
+
value: "webinar",
|
|
188
|
+
children: "Webinar"
|
|
189
|
+
}),
|
|
190
|
+
/* @__PURE__ */ T("option", {
|
|
191
|
+
value: "workshop",
|
|
192
|
+
children: "Workshop"
|
|
193
|
+
}),
|
|
194
|
+
/* @__PURE__ */ T("option", {
|
|
195
|
+
value: "meetup",
|
|
196
|
+
children: "Meetup"
|
|
197
|
+
})
|
|
198
|
+
]
|
|
199
|
+
})]
|
|
200
|
+
})
|
|
134
201
|
}),
|
|
135
|
-
$.length === 0
|
|
202
|
+
$.length === 0 ? /* @__PURE__ */ T(s, {
|
|
136
203
|
illustration: Q.length === 0 ? "empty-generic" : "empty-search",
|
|
137
204
|
title: Q.length === 0 ? "No events yet" : "No events match your filters",
|
|
138
205
|
description: Q.length === 0 ? "Create your first event to start collecting registrations and leads." : "Try a different search term, status or type.",
|
|
139
|
-
action: Q.length === 0 ? /* @__PURE__ */
|
|
206
|
+
action: Q.length === 0 ? /* @__PURE__ */ E("button", {
|
|
140
207
|
onClick: Z,
|
|
141
|
-
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",
|
|
142
|
-
children: [/* @__PURE__ */
|
|
208
|
+
className: "inline-flex min-h-[44px] 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",
|
|
209
|
+
children: [/* @__PURE__ */ T(x, { className: "h-4 w-4" }), "Create Event"]
|
|
143
210
|
}) : void 0
|
|
144
|
-
}),
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
className: "flex-1",
|
|
211
|
+
}) : /* @__PURE__ */ T("div", {
|
|
212
|
+
className: "grid gap-4 sm:grid-cols-2 xl:grid-cols-3",
|
|
213
|
+
children: ce.map((e) => {
|
|
214
|
+
let i = re.get(e.id), a = A[e.status], o = e.maxCapacity > 0, s = o ? Math.min(e.metrics.registrations / e.maxCapacity * 100, 100) : 0, c = o && e.metrics.registrations >= e.maxCapacity, l = e.isVirtual ? i?.virtualUrl : null;
|
|
215
|
+
return /* @__PURE__ */ E("article", {
|
|
216
|
+
className: "group flex flex-col overflow-hidden rounded-xl border border-border-seam bg-gloss-card shadow-pop transition-shadow duration-200 hover:shadow-[var(--shadow-pop-hover)]",
|
|
217
|
+
children: [/* @__PURE__ */ E("div", {
|
|
218
|
+
className: "relative h-40 w-full overflow-hidden bg-bg-sunken",
|
|
153
219
|
children: [
|
|
154
|
-
/* @__PURE__ */
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
className: t("rounded-full px-2.5 py-0.5 text-xs font-medium capitalize", M[e.type]),
|
|
163
|
-
children: e.type
|
|
164
|
-
}),
|
|
165
|
-
/* @__PURE__ */ O(l, { status: e.status })
|
|
166
|
-
]
|
|
220
|
+
i?.coverImageUrl ? /* @__PURE__ */ T("img", {
|
|
221
|
+
src: i.coverImageUrl,
|
|
222
|
+
alt: "",
|
|
223
|
+
loading: "lazy",
|
|
224
|
+
className: "h-full w-full object-cover transition-transform duration-300 group-hover:scale-[1.03]"
|
|
225
|
+
}) : /* @__PURE__ */ T("div", {
|
|
226
|
+
className: "flex h-full w-full items-center justify-center bg-gradient-to-br from-[var(--color-accent-soft)] to-bg-sunken",
|
|
227
|
+
children: /* @__PURE__ */ T(v, { className: "h-10 w-10 text-action-primary-bg/40" })
|
|
167
228
|
}),
|
|
168
|
-
/* @__PURE__ */
|
|
169
|
-
|
|
170
|
-
|
|
229
|
+
/* @__PURE__ */ T("div", { className: "pointer-events-none absolute inset-0 bg-gradient-to-t from-bg-canvas/70 via-transparent to-transparent" }),
|
|
230
|
+
/* @__PURE__ */ T("span", {
|
|
231
|
+
className: "absolute left-3 top-3 inline-flex items-center rounded-full border border-border-seam bg-bg-canvas/80 px-2.5 py-0.5 text-xs font-medium text-text-primary backdrop-blur-sm",
|
|
232
|
+
children: k[e.type]
|
|
171
233
|
}),
|
|
172
|
-
/* @__PURE__ */
|
|
173
|
-
className: "
|
|
174
|
-
children: [/* @__PURE__ */
|
|
234
|
+
/* @__PURE__ */ E("span", {
|
|
235
|
+
className: "absolute right-3 top-3 inline-flex items-center gap-1.5 rounded-full border border-border-seam bg-bg-canvas/80 px-2.5 py-0.5 text-xs font-medium backdrop-blur-sm",
|
|
236
|
+
children: [/* @__PURE__ */ T("span", { className: t("h-1.5 w-1.5 rounded-full", a.dot, e.status === "live" && "animate-pulse") }), /* @__PURE__ */ T("span", {
|
|
237
|
+
className: a.text,
|
|
238
|
+
children: a.label
|
|
239
|
+
})]
|
|
240
|
+
})
|
|
241
|
+
]
|
|
242
|
+
}), /* @__PURE__ */ E("div", {
|
|
243
|
+
className: "flex flex-1 flex-col gap-3 p-4",
|
|
244
|
+
children: [
|
|
245
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("h3", {
|
|
246
|
+
className: "line-clamp-1 text-sm font-semibold text-text-primary",
|
|
247
|
+
children: e.name
|
|
248
|
+
}), e.description && /* @__PURE__ */ T("p", {
|
|
249
|
+
className: "mt-1 line-clamp-2 text-xs text-text-secondary",
|
|
250
|
+
children: e.description
|
|
251
|
+
})] }),
|
|
252
|
+
/* @__PURE__ */ E("div", {
|
|
253
|
+
className: "space-y-1.5",
|
|
254
|
+
children: [/* @__PURE__ */ E("div", {
|
|
175
255
|
className: "flex items-center gap-1.5 text-xs text-text-secondary",
|
|
176
|
-
children: [/* @__PURE__ */
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
] })]
|
|
182
|
-
}), /* @__PURE__ */ k("div", {
|
|
256
|
+
children: [/* @__PURE__ */ T(ne, { className: "h-3.5 w-3.5 shrink-0" }), /* @__PURE__ */ T("span", {
|
|
257
|
+
className: "truncate",
|
|
258
|
+
children: j(e.startDate, i?.timezone ?? null)
|
|
259
|
+
})]
|
|
260
|
+
}), /* @__PURE__ */ E("div", {
|
|
183
261
|
className: "flex items-center gap-1.5 text-xs text-text-secondary",
|
|
184
|
-
children: [e.isVirtual ? /* @__PURE__ */
|
|
262
|
+
children: [e.isVirtual ? /* @__PURE__ */ T(w, { className: "h-3.5 w-3.5 shrink-0" }) : /* @__PURE__ */ T(b, { className: "h-3.5 w-3.5 shrink-0" }), /* @__PURE__ */ T("span", {
|
|
263
|
+
className: "truncate",
|
|
264
|
+
children: e.location
|
|
265
|
+
})]
|
|
185
266
|
})]
|
|
186
267
|
}),
|
|
187
|
-
/* @__PURE__ */
|
|
188
|
-
className: "mt-
|
|
189
|
-
children: [/* @__PURE__ */
|
|
190
|
-
className: "flex items-center justify-between text-xs
|
|
191
|
-
children: [/* @__PURE__ */
|
|
268
|
+
/* @__PURE__ */ E("div", {
|
|
269
|
+
className: "mt-auto space-y-1.5",
|
|
270
|
+
children: [/* @__PURE__ */ E("div", {
|
|
271
|
+
className: "flex items-center justify-between text-xs",
|
|
272
|
+
children: [/* @__PURE__ */ E("span", {
|
|
192
273
|
className: "text-text-secondary",
|
|
193
274
|
children: [
|
|
194
|
-
|
|
195
|
-
|
|
275
|
+
n(e.metrics.registrations),
|
|
276
|
+
o ? ` / ${n(e.maxCapacity)}` : "",
|
|
196
277
|
" ",
|
|
197
|
-
|
|
198
|
-
" registered"
|
|
278
|
+
"registered"
|
|
199
279
|
]
|
|
200
|
-
}), /* @__PURE__ */
|
|
201
|
-
className: "font-medium text-text
|
|
202
|
-
children:
|
|
203
|
-
})
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
280
|
+
}), o && (c ? /* @__PURE__ */ T("span", {
|
|
281
|
+
className: "font-medium text-status-success-text",
|
|
282
|
+
children: "Full"
|
|
283
|
+
}) : /* @__PURE__ */ T("span", {
|
|
284
|
+
className: "font-medium text-text-primary tabular-nums",
|
|
285
|
+
children: r(s, 0)
|
|
286
|
+
}))]
|
|
287
|
+
}), o && /* @__PURE__ */ T("div", {
|
|
288
|
+
className: "h-1.5 w-full overflow-hidden rounded-full bg-bg-sunken",
|
|
289
|
+
children: /* @__PURE__ */ T("div", {
|
|
290
|
+
className: t("h-full rounded-full transition-[width] duration-500", c ? "bg-status-success-bg" : "bg-action-primary-bg"),
|
|
291
|
+
style: { width: `${s}%` }
|
|
209
292
|
})
|
|
210
293
|
})]
|
|
211
294
|
}),
|
|
212
|
-
e.speakers.length > 0 && /* @__PURE__ */
|
|
213
|
-
className: "flex
|
|
214
|
-
children: [/* @__PURE__ */
|
|
215
|
-
className: "
|
|
216
|
-
children: "
|
|
217
|
-
}), /* @__PURE__ */ O("div", {
|
|
218
|
-
className: "flex flex-wrap gap-1",
|
|
219
|
-
children: e.speakers.map((e) => /* @__PURE__ */ O("span", {
|
|
220
|
-
className: "rounded-full bg-bg-sunken px-2 py-0.5 text-[10px] text-text-primary",
|
|
221
|
-
children: e.name
|
|
222
|
-
}, e.id))
|
|
295
|
+
e.speakers.length > 0 && /* @__PURE__ */ E("div", {
|
|
296
|
+
className: "flex items-center gap-1.5 text-xs text-text-secondary",
|
|
297
|
+
children: [/* @__PURE__ */ T(C, { className: "h-3.5 w-3.5 shrink-0" }), /* @__PURE__ */ E("span", {
|
|
298
|
+
className: "truncate",
|
|
299
|
+
children: [e.speakers.slice(0, 2).map((e) => e.name).join(", "), e.speakers.length > 2 ? ` +${e.speakers.length - 2}` : ""]
|
|
223
300
|
})]
|
|
224
301
|
}),
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
className: "text-text-secondary",
|
|
232
|
-
children: ["Attendance:", " "]
|
|
233
|
-
}), /* @__PURE__ */ O("span", {
|
|
234
|
-
className: "font-medium text-text-primary",
|
|
235
|
-
children: a(e.metrics.attendanceRate)
|
|
236
|
-
})]
|
|
237
|
-
}),
|
|
238
|
-
/* @__PURE__ */ k("div", {
|
|
239
|
-
className: "text-xs",
|
|
240
|
-
children: [/* @__PURE__ */ O("span", {
|
|
241
|
-
className: "text-text-secondary",
|
|
242
|
-
children: "Rating: "
|
|
243
|
-
}), /* @__PURE__ */ k("span", {
|
|
244
|
-
className: "font-medium text-text-primary flex items-center gap-0.5 inline-flex",
|
|
245
|
-
children: [/* @__PURE__ */ O(ee, { className: "h-3 w-3 text-status-warning-text fill-[var(--color-status-warning)]" }), e.metrics.averageRating]
|
|
246
|
-
})]
|
|
247
|
-
}),
|
|
248
|
-
/* @__PURE__ */ k("div", {
|
|
249
|
-
className: "text-xs",
|
|
250
|
-
children: [/* @__PURE__ */ O("span", {
|
|
251
|
-
className: "text-text-secondary",
|
|
252
|
-
children: "Revenue: "
|
|
253
|
-
}), /* @__PURE__ */ O("span", {
|
|
254
|
-
className: "font-medium text-text-primary",
|
|
255
|
-
children: n(e.metrics.totalRevenue)
|
|
256
|
-
})]
|
|
257
|
-
}),
|
|
258
|
-
/* @__PURE__ */ k("div", {
|
|
259
|
-
className: "text-xs",
|
|
260
|
-
children: [/* @__PURE__ */ O("span", {
|
|
261
|
-
className: "text-text-secondary",
|
|
262
|
-
children: "Leads: "
|
|
263
|
-
}), /* @__PURE__ */ O("span", {
|
|
264
|
-
className: "font-medium text-text-primary",
|
|
265
|
-
children: e.metrics.leadsGenerated
|
|
266
|
-
})]
|
|
267
|
-
})
|
|
268
|
-
]
|
|
302
|
+
l && /* @__PURE__ */ E("a", {
|
|
303
|
+
href: l,
|
|
304
|
+
target: "_blank",
|
|
305
|
+
rel: "noopener noreferrer",
|
|
306
|
+
className: "inline-flex min-h-[44px] items-center justify-center gap-1.5 rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-xs font-medium text-text-primary transition-colors hover:bg-bg-sunken focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]",
|
|
307
|
+
children: [e.status === "live" ? "Join now" : "Event link", /* @__PURE__ */ T(g, { className: "h-3.5 w-3.5" })]
|
|
269
308
|
})
|
|
270
309
|
]
|
|
271
|
-
})
|
|
272
|
-
})
|
|
273
|
-
}
|
|
310
|
+
})]
|
|
311
|
+
}, e.id);
|
|
312
|
+
})
|
|
274
313
|
}),
|
|
275
|
-
$.length > 0 && /* @__PURE__ */
|
|
314
|
+
$.length > 0 && /* @__PURE__ */ T(u, {
|
|
276
315
|
page: W,
|
|
277
316
|
pageSize: G,
|
|
278
317
|
total: q,
|
|
@@ -285,6 +324,6 @@ var M = {
|
|
|
285
324
|
});
|
|
286
325
|
};
|
|
287
326
|
//#endregion
|
|
288
|
-
export {
|
|
327
|
+
export { M as EventsPage };
|
|
289
328
|
|
|
290
329
|
//# sourceMappingURL=EventsPage.js.map
|